@everymatrix/casino-page-nd 1.53.12 → 1.54.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/components/{CasinoCalendar-pVz7jYqi.js → CasinoCalendar-B2vomzsf.js} +1205 -1166
  2. package/components/CasinoCalendar-CDVrxyQe.cjs +6 -0
  3. package/components/CasinoCalendarDailyDetails-7zAb7BF9.cjs +1 -0
  4. package/components/{CasinoCalendarDailyDetails-D7GkfhmR.js → CasinoCalendarDailyDetails-BCGdQSNl.js} +1 -1
  5. package/components/CasinoCalendarDailyItem-4YHj0r9V.cjs +1 -0
  6. package/components/{CasinoCalendarDailyItem-CU9qMJji.js → CasinoCalendarDailyItem-BzgTjc6A.js} +1 -1
  7. package/components/CasinoCollectionsProviders-D4MAEEgW.cjs +1 -0
  8. package/components/{CasinoCollectionsProviders-DxgdPTXN.js → CasinoCollectionsProviders-D6rovYy_.js} +242 -237
  9. package/components/CasinoFavoritesSectionNd-CbF2hHrz.cjs +1 -0
  10. package/components/{CasinoFavoritesSectionNd-B8EIXq01.js → CasinoFavoritesSectionNd-INQg8msA.js} +3 -3
  11. package/components/{CasinoFilter-C67EHGOs.js → CasinoFilter-BHlBiPqY.js} +54 -53
  12. package/components/CasinoFilter-BPHXroGh.cjs +1 -0
  13. package/components/{CasinoGameThumbnailNd-Dj9aITsK.js → CasinoGameThumbnailNd-4Vul04z-.js} +872 -856
  14. package/components/CasinoGameThumbnailNd-DX3_1UUn.cjs +39 -0
  15. package/components/CasinoGamesCategorySectionNd-CThuz0lZ.cjs +1 -0
  16. package/components/{CasinoGamesCategorySectionNd-OZ2HaGrH.js → CasinoGamesCategorySectionNd-I0eWiZjs.js} +674 -643
  17. package/components/CasinoJackpotBanner-3tJsMybK.cjs +1 -0
  18. package/components/{CasinoJackpotBanner-BRQqqpK8.js → CasinoJackpotBanner-B2cH0DUh.js} +157 -153
  19. package/components/{CasinoLastPlayedSectionNd--_9buYZx.js → CasinoLastPlayedSectionNd-BSzJtQMf.js} +2 -2
  20. package/components/CasinoLastPlayedSectionNd-Msd6Q6lK.cjs +1 -0
  21. package/components/{CasinoMostPlayedSectionNd-umJpV9lP.js → CasinoMostPlayedSectionNd-BP3wHHRU.js} +2 -2
  22. package/components/CasinoMostPlayedSectionNd-DbiLqqdm.cjs +1 -0
  23. package/components/CasinoMyGamesNd-B_-UbmIL.cjs +1 -0
  24. package/components/{CasinoMyGamesNd-Bosn4XLW.js → CasinoMyGamesNd-csZCp6GQ.js} +69 -68
  25. package/components/{CasinoPageNd-C2EI24cS.js → CasinoPageNd-BOEmR8fM.js} +343 -340
  26. package/components/CasinoPageNd-BgvDysBY.cjs +1 -0
  27. package/components/{CasinoRandomGame-BpYrX4Cp.js → CasinoRandomGame-6VOnC82y.js} +247 -231
  28. package/components/CasinoRandomGame-JdeKkDQP.cjs +2 -0
  29. package/components/{CasinoSearchNd-CmTarxBK.js → CasinoSearchNd-But6VEIj.js} +194 -192
  30. package/components/CasinoSearchNd-ClCSeV0E.cjs +1 -0
  31. package/components/CasinoSort-DBYruc_n.cjs +1 -0
  32. package/components/{CasinoSort-bFOcp6J4.js → CasinoSort-Du-XHuIh.js} +3 -2
  33. package/components/CasinoWinners-BUUOGc9x.cjs +1 -0
  34. package/components/{CasinoWinners-BUoqMo1a.js → CasinoWinners-D8QknKKW.js} +148 -146
  35. package/components/{GeneralAnimationLoading-CC5IRZHm.js → GeneralAnimationLoading-B16w9fAI.js} +1 -1
  36. package/components/GeneralAnimationLoading-BnTkXHOJ.cjs +1 -0
  37. package/es2015/casino-page-nd.cjs +1 -0
  38. package/es2015/casino-page-nd.js +16 -0
  39. package/package.json +19 -12
  40. package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +1 -0
  41. package/stencil/{casino-play-random-game-BrayzMrR.js → casino-play-random-game-CdK9RTmU.js} +62 -44
  42. package/stencil/casino-play-random-game-D5-NhS5J.cjs +371 -0
  43. package/stencil/{index-47910d1c-CWwDm8i3.js → index-47910d1c-BJIxkb-p.js} +238 -222
  44. package/stencil/index-47910d1c-CDXxJ6XN.cjs +1 -0
  45. package/esnext/casino-page-nd.js +0 -14
@@ -1,77 +1,106 @@
1
- function P() {
1
+ var wr = Object.defineProperty, Tr = Object.defineProperties;
2
+ var Hr = Object.getOwnPropertyDescriptors;
3
+ var st = Object.getOwnPropertySymbols;
4
+ var Br = Object.prototype.hasOwnProperty, Pr = Object.prototype.propertyIsEnumerable;
5
+ var Ie = (e, t, r) => t in e ? wr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ot = (e, t) => {
6
+ for (var r in t || (t = {}))
7
+ Br.call(t, r) && Ie(e, r, t[r]);
8
+ if (st)
9
+ for (var r of st(t))
10
+ Pr.call(t, r) && Ie(e, r, t[r]);
11
+ return e;
12
+ }, at = (e, t) => Tr(e, Hr(t));
13
+ var T = (e, t, r) => Ie(e, typeof t != "symbol" ? t + "" : t, r);
14
+ var ut = (e, t, r) => new Promise((n, i) => {
15
+ var s = (l) => {
16
+ try {
17
+ a(r.next(l));
18
+ } catch (u) {
19
+ i(u);
20
+ }
21
+ }, o = (l) => {
22
+ try {
23
+ a(r.throw(l));
24
+ } catch (u) {
25
+ i(u);
26
+ }
27
+ }, a = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(s, o);
28
+ a((r = r.apply(e, t)).next());
29
+ });
30
+ function A() {
2
31
  }
3
- function gr(e, t) {
32
+ function Ar(e, t) {
4
33
  for (const r in t) e[r] = t[r];
5
34
  return (
6
35
  /** @type {T & S} */
7
36
  e
8
37
  );
9
38
  }
10
- function Ct(e) {
39
+ function Dt(e) {
11
40
  return e();
12
41
  }
13
- function nt() {
42
+ function lt() {
14
43
  return /* @__PURE__ */ Object.create(null);
15
44
  }
16
- function X(e) {
17
- e.forEach(Ct);
45
+ function W(e) {
46
+ e.forEach(Dt);
18
47
  }
19
- function we(e) {
48
+ function Te(e) {
20
49
  return typeof e == "function";
21
50
  }
22
- function Lt(e, t) {
51
+ function Ut(e, t) {
23
52
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
24
53
  }
25
- let de;
26
- function Ki(e, t) {
27
- return e === t ? !0 : (de || (de = document.createElement("a")), de.href = t, e === de.href);
54
+ let pe;
55
+ function fs(e, t) {
56
+ return e === t ? !0 : (pe || (pe = document.createElement("a")), pe.href = t, e === pe.href);
28
57
  }
29
- function _r(e) {
58
+ function Or(e) {
30
59
  return Object.keys(e).length === 0;
31
60
  }
32
- function Nt(e, ...t) {
61
+ function Gt(e, ...t) {
33
62
  if (e == null) {
34
63
  for (const n of t)
35
64
  n(void 0);
36
- return P;
65
+ return A;
37
66
  }
38
67
  const r = e.subscribe(...t);
39
68
  return r.unsubscribe ? () => r.unsubscribe() : r;
40
69
  }
41
- function vr(e, t, r) {
42
- e.$$.on_destroy.push(Nt(t, r));
70
+ function Ir(e, t, r) {
71
+ e.$$.on_destroy.push(Gt(t, r));
43
72
  }
44
- function es(e, t, r, n) {
73
+ function cs(e, t, r, n) {
45
74
  if (e) {
46
- const i = Mt(e, t, r, n);
75
+ const i = Ft(e, t, r, n);
47
76
  return e[0](i);
48
77
  }
49
78
  }
50
- function Mt(e, t, r, n) {
51
- return e[1] && n ? gr(r.ctx.slice(), e[1](n(t))) : r.ctx;
79
+ function Ft(e, t, r, n) {
80
+ return e[1] && n ? Ar(r.ctx.slice(), e[1](n(t))) : r.ctx;
52
81
  }
53
- function ts(e, t, r, n) {
82
+ function ds(e, t, r, n) {
54
83
  if (e[2] && n) {
55
84
  const i = e[2](n(r));
56
85
  if (t.dirty === void 0)
57
86
  return i;
58
87
  if (typeof i == "object") {
59
- const s = [], a = Math.max(t.dirty.length, i.length);
60
- for (let o = 0; o < a; o += 1)
61
- s[o] = t.dirty[o] | i[o];
88
+ const s = [], o = Math.max(t.dirty.length, i.length);
89
+ for (let a = 0; a < o; a += 1)
90
+ s[a] = t.dirty[a] | i[a];
62
91
  return s;
63
92
  }
64
93
  return t.dirty | i;
65
94
  }
66
95
  return t.dirty;
67
96
  }
68
- function rs(e, t, r, n, i, s) {
97
+ function ps(e, t, r, n, i, s) {
69
98
  if (i) {
70
- const a = Mt(t, r, n, s);
71
- e.p(a, i);
99
+ const o = Ft(t, r, n, s);
100
+ e.p(o, i);
72
101
  }
73
102
  }
74
- function ns(e) {
103
+ function ms(e) {
75
104
  if (e.ctx.length > 32) {
76
105
  const t = [], r = e.ctx.length / 32;
77
106
  for (let n = 0; n < r; n++)
@@ -80,20 +109,20 @@ function ns(e) {
80
109
  }
81
110
  return -1;
82
111
  }
83
- function is(e) {
84
- return e && we(e.destroy) ? e.destroy : P;
112
+ function bs(e) {
113
+ return e && Te(e.destroy) ? e.destroy : A;
85
114
  }
86
- function fe(e, t) {
115
+ function ce(e, t) {
87
116
  e.appendChild(t);
88
117
  }
89
- function Er(e, t, r) {
90
- const n = xr(e);
118
+ function Cr(e, t, r) {
119
+ const n = Lr(e);
91
120
  if (!n.getElementById(t)) {
92
- const i = N("style");
93
- i.id = t, i.textContent = r, Sr(n, i);
121
+ const i = M("style");
122
+ i.id = t, i.textContent = r, Nr(n, i);
94
123
  }
95
124
  }
96
- function xr(e) {
125
+ function Lr(e) {
97
126
  if (!e) return document;
98
127
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
99
128
  return t && /** @type {ShadowRoot} */
@@ -102,118 +131,118 @@ function xr(e) {
102
131
  t
103
132
  ) : e.ownerDocument;
104
133
  }
105
- function Sr(e, t) {
106
- return fe(
134
+ function Nr(e, t) {
135
+ return ce(
107
136
  /** @type {Document} */
108
137
  e.head || e,
109
138
  t
110
139
  ), t.sheet;
111
140
  }
112
- function j(e, t, r) {
141
+ function k(e, t, r) {
113
142
  e.insertBefore(t, r || null);
114
143
  }
115
- function $(e) {
144
+ function D(e) {
116
145
  e.parentNode && e.parentNode.removeChild(e);
117
146
  }
118
- function wr(e, t) {
147
+ function Mr(e, t) {
119
148
  for (let r = 0; r < e.length; r += 1)
120
149
  e[r] && e[r].d(t);
121
150
  }
122
- function N(e) {
151
+ function M(e) {
123
152
  return document.createElement(e);
124
153
  }
125
- function Tr(e) {
154
+ function Rr(e) {
126
155
  return document.createElementNS("http://www.w3.org/2000/svg", e);
127
156
  }
128
- function Ke(e) {
157
+ function tt(e) {
129
158
  return document.createTextNode(e);
130
159
  }
131
- function Hr() {
132
- return Ke(" ");
160
+ function $r() {
161
+ return tt(" ");
133
162
  }
134
- function ss() {
135
- return Ke("");
163
+ function ys() {
164
+ return tt("");
136
165
  }
137
- function it(e, t, r, n) {
166
+ function ht(e, t, r, n) {
138
167
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
139
168
  }
140
- function os(e) {
169
+ function gs(e) {
141
170
  return function(t) {
142
171
  return t.stopPropagation(), e.call(this, t);
143
172
  };
144
173
  }
145
- function V(e, t, r) {
174
+ function X(e, t, r) {
146
175
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
147
176
  }
148
177
  function m(e, t, r) {
149
178
  const n = t.toLowerCase();
150
- n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : V(e, t, r);
179
+ n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : X(e, t, r);
151
180
  }
152
- function Br(e) {
181
+ function Dr(e) {
153
182
  return Array.from(e.childNodes);
154
183
  }
155
- function Pr(e, t) {
184
+ function Ur(e, t) {
156
185
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
157
186
  t);
158
187
  }
159
- function as(e, t) {
160
- e.value = t ?? "";
188
+ function _s(e, t) {
189
+ e.value = t == null ? "" : t;
161
190
  }
162
- function us(e, t, r, n) {
191
+ function vs(e, t, r, n) {
163
192
  r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
164
193
  }
165
- let pe;
166
- function Ar() {
167
- if (pe === void 0) {
168
- pe = !1;
194
+ let me;
195
+ function Gr() {
196
+ if (me === void 0) {
197
+ me = !1;
169
198
  try {
170
- typeof window < "u" && window.parent && window.parent.document;
171
- } catch {
172
- pe = !0;
199
+ typeof window != "undefined" && window.parent && window.parent.document;
200
+ } catch (e) {
201
+ me = !0;
173
202
  }
174
203
  }
175
- return pe;
204
+ return me;
176
205
  }
177
- function ls(e, t) {
206
+ function Es(e, t) {
178
207
  getComputedStyle(e).position === "static" && (e.style.position = "relative");
179
- const n = N("iframe");
208
+ const n = M("iframe");
180
209
  n.setAttribute(
181
210
  "style",
182
211
  "display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"
183
212
  ), n.setAttribute("aria-hidden", "true"), n.tabIndex = -1;
184
- const i = Ar();
213
+ const i = Gr();
185
214
  let s;
186
- return i ? (n.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", s = it(
215
+ return i ? (n.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", s = ht(
187
216
  window,
188
217
  "message",
189
218
  /** @param {MessageEvent} event */
190
- (a) => {
191
- a.source === n.contentWindow && t();
219
+ (o) => {
220
+ o.source === n.contentWindow && t();
192
221
  }
193
222
  )) : (n.src = "about:blank", n.onload = () => {
194
- s = it(n.contentWindow, "resize", t), t();
195
- }), fe(e, n), () => {
196
- (i || s && n.contentWindow) && s(), $(n);
223
+ s = ht(n.contentWindow, "resize", t), t();
224
+ }), ce(e, n), () => {
225
+ (i || s && n.contentWindow) && s(), D(n);
197
226
  };
198
227
  }
199
- function hs(e, t, r) {
228
+ function xs(e, t, r) {
200
229
  e.classList.toggle(t, !!r);
201
230
  }
202
- class fs {
203
- /**
204
- * @private
205
- * @default false
206
- */
207
- is_svg = !1;
208
- /** parent for creating node */
209
- e = void 0;
210
- /** html tag nodes */
211
- n = void 0;
212
- /** target */
213
- t = void 0;
214
- /** anchor */
215
- a = void 0;
231
+ class Ss {
216
232
  constructor(t = !1) {
233
+ /**
234
+ * @private
235
+ * @default false
236
+ */
237
+ T(this, "is_svg", !1);
238
+ /** parent for creating node */
239
+ T(this, "e");
240
+ /** html tag nodes */
241
+ T(this, "n");
242
+ /** target */
243
+ T(this, "t");
244
+ /** anchor */
245
+ T(this, "a");
217
246
  this.is_svg = t, this.e = this.n = null;
218
247
  }
219
248
  /**
@@ -230,10 +259,10 @@ class fs {
230
259
  * @returns {void}
231
260
  */
232
261
  m(t, r, n = null) {
233
- this.e || (this.is_svg ? this.e = Tr(
262
+ this.e || (this.is_svg ? this.e = Rr(
234
263
  /** @type {keyof SVGElementTagNameMap} */
235
264
  r.nodeName
236
- ) : this.e = N(
265
+ ) : this.e = M(
237
266
  /** @type {keyof HTMLElementTagNameMap} */
238
267
  r.nodeType === 11 ? "TEMPLATE" : r.nodeName
239
268
  ), this.t = r.tagName !== "TEMPLATE" ? r : (
@@ -254,7 +283,7 @@ class fs {
254
283
  * @returns {void} */
255
284
  i(t) {
256
285
  for (let r = 0; r < this.n.length; r += 1)
257
- j(this.t, this.n[r], t);
286
+ k(this.t, this.n[r], t);
258
287
  }
259
288
  /**
260
289
  * @param {string} html
@@ -266,10 +295,10 @@ class fs {
266
295
  /**
267
296
  * @returns {void} */
268
297
  d() {
269
- this.n.forEach($);
298
+ this.n.forEach(D);
270
299
  }
271
300
  }
272
- function Or(e) {
301
+ function Fr(e) {
273
302
  const t = {};
274
303
  return e.childNodes.forEach(
275
304
  /** @param {Element} node */
@@ -278,147 +307,147 @@ function Or(e) {
278
307
  }
279
308
  ), t;
280
309
  }
281
- let ue;
282
- function ae(e) {
283
- ue = e;
310
+ let le;
311
+ function ue(e) {
312
+ le = e;
284
313
  }
285
- function Ir() {
286
- if (!ue) throw new Error("Function called outside component initialization");
287
- return ue;
314
+ function jr() {
315
+ if (!le) throw new Error("Function called outside component initialization");
316
+ return le;
288
317
  }
289
- function Cr(e) {
290
- Ir().$$.on_mount.push(e);
318
+ function kr(e) {
319
+ jr().$$.on_mount.push(e);
291
320
  }
292
- const Q = [], $e = [];
293
- let J = [];
294
- const st = [], Rt = /* @__PURE__ */ Promise.resolve();
295
- let De = !1;
296
- function $t() {
297
- De || (De = !0, Rt.then(D));
321
+ const J = [], Ue = [];
322
+ let Y = [];
323
+ const ft = [], jt = /* @__PURE__ */ Promise.resolve();
324
+ let Ge = !1;
325
+ function kt() {
326
+ Ge || (Ge = !0, jt.then(U));
298
327
  }
299
- function cs() {
300
- return $t(), Rt;
328
+ function ws() {
329
+ return kt(), jt;
301
330
  }
302
- function Ue(e) {
303
- J.push(e);
331
+ function Fe(e) {
332
+ Y.push(e);
304
333
  }
305
- const Oe = /* @__PURE__ */ new Set();
306
- let q = 0;
307
- function D() {
308
- if (q !== 0)
334
+ const Ce = /* @__PURE__ */ new Set();
335
+ let Z = 0;
336
+ function U() {
337
+ if (Z !== 0)
309
338
  return;
310
- const e = ue;
339
+ const e = le;
311
340
  do {
312
341
  try {
313
- for (; q < Q.length; ) {
314
- const t = Q[q];
315
- q++, ae(t), Lr(t.$$);
342
+ for (; Z < J.length; ) {
343
+ const t = J[Z];
344
+ Z++, ue(t), Vr(t.$$);
316
345
  }
317
346
  } catch (t) {
318
- throw Q.length = 0, q = 0, t;
347
+ throw J.length = 0, Z = 0, t;
319
348
  }
320
- for (ae(null), Q.length = 0, q = 0; $e.length; ) $e.pop()();
321
- for (let t = 0; t < J.length; t += 1) {
322
- const r = J[t];
323
- Oe.has(r) || (Oe.add(r), r());
349
+ for (ue(null), J.length = 0, Z = 0; Ue.length; ) Ue.pop()();
350
+ for (let t = 0; t < Y.length; t += 1) {
351
+ const r = Y[t];
352
+ Ce.has(r) || (Ce.add(r), r());
324
353
  }
325
- J.length = 0;
326
- } while (Q.length);
327
- for (; st.length; )
328
- st.pop()();
329
- De = !1, Oe.clear(), ae(e);
354
+ Y.length = 0;
355
+ } while (J.length);
356
+ for (; ft.length; )
357
+ ft.pop()();
358
+ Ge = !1, Ce.clear(), ue(e);
330
359
  }
331
- function Lr(e) {
360
+ function Vr(e) {
332
361
  if (e.fragment !== null) {
333
- e.update(), X(e.before_update);
362
+ e.update(), W(e.before_update);
334
363
  const t = e.dirty;
335
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ue);
364
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Fe);
336
365
  }
337
366
  }
338
- function Nr(e) {
367
+ function Xr(e) {
339
368
  const t = [], r = [];
340
- J.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), J = t;
369
+ Y.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Y = t;
341
370
  }
342
- const ye = /* @__PURE__ */ new Set();
343
- let k;
344
- function ds() {
345
- k = {
371
+ const ge = /* @__PURE__ */ new Set();
372
+ let V;
373
+ function Ts() {
374
+ V = {
346
375
  r: 0,
347
376
  c: [],
348
- p: k
377
+ p: V
349
378
  // parent group
350
379
  };
351
380
  }
352
- function ps() {
353
- k.r || X(k.c), k = k.p;
381
+ function Hs() {
382
+ V.r || W(V.c), V = V.p;
354
383
  }
355
- function Dt(e, t) {
356
- e && e.i && (ye.delete(e), e.i(t));
384
+ function Vt(e, t) {
385
+ e && e.i && (ge.delete(e), e.i(t));
357
386
  }
358
- function ms(e, t, r, n) {
387
+ function Bs(e, t, r, n) {
359
388
  if (e && e.o) {
360
- if (ye.has(e)) return;
361
- ye.add(e), k.c.push(() => {
362
- ye.delete(e), n && (r && e.d(1), n());
389
+ if (ge.has(e)) return;
390
+ ge.add(e), V.c.push(() => {
391
+ ge.delete(e), n && (r && e.d(1), n());
363
392
  }), e.o(t);
364
393
  } else n && n();
365
394
  }
366
- function ot(e) {
367
- return e?.length !== void 0 ? e : Array.from(e);
395
+ function ct(e) {
396
+ return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
368
397
  }
369
- function bs(e, t) {
398
+ function Ps(e, t) {
370
399
  e.d(1), t.delete(e.key);
371
400
  }
372
- function ys(e, t, r, n, i, s, a, o, l, u, h, c) {
401
+ function As(e, t, r, n, i, s, o, a, l, u, h, c) {
373
402
  let f = e.length, p = s.length, b = f;
374
403
  const _ = {};
375
404
  for (; b--; ) _[e[b].key] = b;
376
- const S = [], A = /* @__PURE__ */ new Map(), H = /* @__PURE__ */ new Map(), w = [];
405
+ const S = [], O = /* @__PURE__ */ new Map(), P = /* @__PURE__ */ new Map(), H = [];
377
406
  for (b = p; b--; ) {
378
- const E = c(i, s, b), I = r(E);
379
- let C = a.get(I);
380
- C ? w.push(() => C.p(E, t)) : (C = u(I, E), C.c()), A.set(I, S[b] = C), I in _ && H.set(I, Math.abs(b - _[I]));
407
+ const E = c(i, s, b), C = r(E);
408
+ let L = o.get(C);
409
+ L ? H.push(() => L.p(E, t)) : (L = u(C, E), L.c()), O.set(C, S[b] = L), C in _ && P.set(C, Math.abs(b - _[C]));
381
410
  }
382
- const M = /* @__PURE__ */ new Set(), O = /* @__PURE__ */ new Set();
383
- function R(E) {
384
- Dt(E, 1), E.m(o, h), a.set(E.key, E), h = E.first, p--;
411
+ const R = /* @__PURE__ */ new Set(), I = /* @__PURE__ */ new Set();
412
+ function $(E) {
413
+ Vt(E, 1), E.m(a, h), o.set(E.key, E), h = E.first, p--;
385
414
  }
386
415
  for (; f && p; ) {
387
- const E = S[p - 1], I = e[f - 1], C = E.key, z = I.key;
388
- E === I ? (h = E.first, f--, p--) : A.has(z) ? !a.has(C) || M.has(C) ? R(E) : O.has(z) ? f-- : H.get(C) > H.get(z) ? (O.add(C), R(E)) : (M.add(z), f--) : (l(I, a), f--);
416
+ const E = S[p - 1], C = e[f - 1], L = E.key, q = C.key;
417
+ E === C ? (h = E.first, f--, p--) : O.has(q) ? !o.has(L) || R.has(L) ? $(E) : I.has(q) ? f-- : P.get(L) > P.get(q) ? (I.add(L), $(E)) : (R.add(q), f--) : (l(C, o), f--);
389
418
  }
390
419
  for (; f--; ) {
391
420
  const E = e[f];
392
- A.has(E.key) || l(E, a);
421
+ O.has(E.key) || l(E, o);
393
422
  }
394
- for (; p; ) R(S[p - 1]);
395
- return X(w), S;
423
+ for (; p; ) $(S[p - 1]);
424
+ return W(H), S;
396
425
  }
397
- function Mr(e, t, r) {
426
+ function Wr(e, t, r) {
398
427
  const { fragment: n, after_update: i } = e.$$;
399
- n && n.m(t, r), Ue(() => {
400
- const s = e.$$.on_mount.map(Ct).filter(we);
401
- e.$$.on_destroy ? e.$$.on_destroy.push(...s) : X(s), e.$$.on_mount = [];
402
- }), i.forEach(Ue);
428
+ n && n.m(t, r), Fe(() => {
429
+ const s = e.$$.on_mount.map(Dt).filter(Te);
430
+ e.$$.on_destroy ? e.$$.on_destroy.push(...s) : W(s), e.$$.on_mount = [];
431
+ }), i.forEach(Fe);
403
432
  }
404
- function Rr(e, t) {
433
+ function zr(e, t) {
405
434
  const r = e.$$;
406
- r.fragment !== null && (Nr(r.after_update), X(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
435
+ r.fragment !== null && (Xr(r.after_update), W(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
407
436
  }
408
- function $r(e, t) {
409
- e.$$.dirty[0] === -1 && (Q.push(e), $t(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
437
+ function qr(e, t) {
438
+ e.$$.dirty[0] === -1 && (J.push(e), kt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
410
439
  }
411
- function Dr(e, t, r, n, i, s, a = null, o = [-1]) {
412
- const l = ue;
413
- ae(e);
440
+ function Zr(e, t, r, n, i, s, o = null, a = [-1]) {
441
+ const l = le;
442
+ ue(e);
414
443
  const u = e.$$ = {
415
444
  fragment: null,
416
445
  ctx: [],
417
446
  // state
418
447
  props: s,
419
- update: P,
448
+ update: A,
420
449
  not_equal: i,
421
- bound: nt(),
450
+ bound: lt(),
422
451
  // lifecycle
423
452
  on_mount: [],
424
453
  on_destroy: [],
@@ -427,146 +456,150 @@ function Dr(e, t, r, n, i, s, a = null, o = [-1]) {
427
456
  after_update: [],
428
457
  context: new Map(t.context || (l ? l.$$.context : [])),
429
458
  // everything else
430
- callbacks: nt(),
431
- dirty: o,
459
+ callbacks: lt(),
460
+ dirty: a,
432
461
  skip_bound: !1,
433
462
  root: t.target || l.$$.root
434
463
  };
435
- a && a(u.root);
464
+ o && o(u.root);
436
465
  let h = !1;
437
466
  if (u.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
438
467
  const b = p.length ? p[0] : f;
439
- return u.ctx && i(u.ctx[c], u.ctx[c] = b) && (!u.skip_bound && u.bound[c] && u.bound[c](b), h && $r(e, c)), f;
440
- }) : [], u.update(), h = !0, X(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
468
+ return u.ctx && i(u.ctx[c], u.ctx[c] = b) && (!u.skip_bound && u.bound[c] && u.bound[c](b), h && qr(e, c)), f;
469
+ }) : [], u.update(), h = !0, W(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
441
470
  if (t.hydrate) {
442
- const c = Br(t.target);
443
- u.fragment && u.fragment.l(c), c.forEach($);
471
+ const c = Dr(t.target);
472
+ u.fragment && u.fragment.l(c), c.forEach(D);
444
473
  } else
445
474
  u.fragment && u.fragment.c();
446
- t.intro && Dt(e.$$.fragment), Mr(e, t.target, t.anchor), D();
475
+ t.intro && Vt(e.$$.fragment), Wr(e, t.target, t.anchor), U();
447
476
  }
448
- ae(l);
449
- }
450
- let Ut;
451
- typeof HTMLElement == "function" && (Ut = class extends HTMLElement {
452
- /** The Svelte component constructor */
453
- $$ctor;
454
- /** Slots */
455
- $$s;
456
- /** The Svelte component instance */
457
- $$c;
458
- /** Whether or not the custom element is connected */
459
- $$cn = !1;
460
- /** Component props data */
461
- $$d = {};
462
- /** `true` if currently in the process of reflecting component props back to attributes */
463
- $$r = !1;
464
- /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
465
- $$p_d = {};
466
- /** @type {Record<string, Function[]>} Event listeners */
467
- $$l = {};
468
- /** @type {Map<Function, Function>} Event listener unsubscribe functions */
469
- $$l_u = /* @__PURE__ */ new Map();
470
- constructor(e, t, r) {
471
- super(), this.$$ctor = e, this.$$s = t, r && this.attachShadow({ mode: "open" });
477
+ ue(l);
478
+ }
479
+ let Xt;
480
+ typeof HTMLElement == "function" && (Xt = class extends HTMLElement {
481
+ constructor(t, r, n) {
482
+ super();
483
+ /** The Svelte component constructor */
484
+ T(this, "$$ctor");
485
+ /** Slots */
486
+ T(this, "$$s");
487
+ /** The Svelte component instance */
488
+ T(this, "$$c");
489
+ /** Whether or not the custom element is connected */
490
+ T(this, "$$cn", !1);
491
+ /** Component props data */
492
+ T(this, "$$d", {});
493
+ /** `true` if currently in the process of reflecting component props back to attributes */
494
+ T(this, "$$r", !1);
495
+ /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
496
+ T(this, "$$p_d", {});
497
+ /** @type {Record<string, Function[]>} Event listeners */
498
+ T(this, "$$l", {});
499
+ /** @type {Map<Function, Function>} Event listener unsubscribe functions */
500
+ T(this, "$$l_u", /* @__PURE__ */ new Map());
501
+ this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
472
502
  }
473
- addEventListener(e, t, r) {
474
- if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
475
- const n = this.$$c.$on(e, t);
476
- this.$$l_u.set(t, n);
503
+ addEventListener(t, r, n) {
504
+ if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(r), this.$$c) {
505
+ const i = this.$$c.$on(t, r);
506
+ this.$$l_u.set(r, i);
477
507
  }
478
- super.addEventListener(e, t, r);
508
+ super.addEventListener(t, r, n);
479
509
  }
480
- removeEventListener(e, t, r) {
481
- if (super.removeEventListener(e, t, r), this.$$c) {
482
- const n = this.$$l_u.get(t);
483
- n && (n(), this.$$l_u.delete(t));
510
+ removeEventListener(t, r, n) {
511
+ if (super.removeEventListener(t, r, n), this.$$c) {
512
+ const i = this.$$l_u.get(r);
513
+ i && (i(), this.$$l_u.delete(r));
484
514
  }
485
515
  }
486
- async connectedCallback() {
487
- if (this.$$cn = !0, !this.$$c) {
488
- let e = function(i) {
489
- return () => {
490
- let s;
491
- return {
492
- c: function() {
493
- s = N("slot"), i !== "default" && V(s, "name", i);
494
- },
495
- /**
496
- * @param {HTMLElement} target
497
- * @param {HTMLElement} [anchor]
498
- */
499
- m: function(l, u) {
500
- j(l, s, u);
501
- },
502
- d: function(l) {
503
- l && $(s);
504
- }
516
+ connectedCallback() {
517
+ return ut(this, null, function* () {
518
+ if (this.$$cn = !0, !this.$$c) {
519
+ let t = function(s) {
520
+ return () => {
521
+ let o;
522
+ return {
523
+ c: function() {
524
+ o = M("slot"), s !== "default" && X(o, "name", s);
525
+ },
526
+ /**
527
+ * @param {HTMLElement} target
528
+ * @param {HTMLElement} [anchor]
529
+ */
530
+ m: function(u, h) {
531
+ k(u, o, h);
532
+ },
533
+ d: function(u) {
534
+ u && D(o);
535
+ }
536
+ };
505
537
  };
506
538
  };
507
- };
508
- if (await Promise.resolve(), !this.$$cn || this.$$c)
509
- return;
510
- const t = {}, r = Or(this);
511
- for (const i of this.$$s)
512
- i in r && (t[i] = [e(i)]);
513
- for (const i of this.attributes) {
514
- const s = this.$$g_p(i.name);
515
- s in this.$$d || (this.$$d[s] = ge(s, i.value, this.$$p_d, "toProp"));
516
- }
517
- for (const i in this.$$p_d)
518
- !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
519
- this.$$c = new this.$$ctor({
520
- target: this.shadowRoot || this,
521
- props: {
522
- ...this.$$d,
523
- $$slots: t,
524
- $$scope: {
525
- ctx: []
526
- }
539
+ if (yield Promise.resolve(), !this.$$cn || this.$$c)
540
+ return;
541
+ const r = {}, n = Fr(this);
542
+ for (const s of this.$$s)
543
+ s in n && (r[s] = [t(s)]);
544
+ for (const s of this.attributes) {
545
+ const o = this.$$g_p(s.name);
546
+ o in this.$$d || (this.$$d[o] = _e(o, s.value, this.$$p_d, "toProp"));
527
547
  }
528
- });
529
- const n = () => {
530
- this.$$r = !0;
531
- for (const i in this.$$p_d)
532
- if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
533
- const s = ge(
534
- i,
535
- this.$$d[i],
536
- this.$$p_d,
537
- "toAttribute"
538
- );
539
- s == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, s);
548
+ for (const s in this.$$p_d)
549
+ !(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
550
+ this.$$c = new this.$$ctor({
551
+ target: this.shadowRoot || this,
552
+ props: at(ot({}, this.$$d), {
553
+ $$slots: r,
554
+ $$scope: {
555
+ ctx: []
556
+ }
557
+ })
558
+ });
559
+ const i = () => {
560
+ this.$$r = !0;
561
+ for (const s in this.$$p_d)
562
+ if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
563
+ const o = _e(
564
+ s,
565
+ this.$$d[s],
566
+ this.$$p_d,
567
+ "toAttribute"
568
+ );
569
+ o == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, o);
570
+ }
571
+ this.$$r = !1;
572
+ };
573
+ this.$$c.$$.after_update.push(i), i();
574
+ for (const s in this.$$l)
575
+ for (const o of this.$$l[s]) {
576
+ const a = this.$$c.$on(s, o);
577
+ this.$$l_u.set(o, a);
540
578
  }
541
- this.$$r = !1;
542
- };
543
- this.$$c.$$.after_update.push(n), n();
544
- for (const i in this.$$l)
545
- for (const s of this.$$l[i]) {
546
- const a = this.$$c.$on(i, s);
547
- this.$$l_u.set(s, a);
548
- }
549
- this.$$l = {};
550
- }
579
+ this.$$l = {};
580
+ }
581
+ });
551
582
  }
552
583
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
553
584
  // and setting attributes through setAttribute etc, this is helpful
554
- attributeChangedCallback(e, t, r) {
555
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = ge(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
585
+ attributeChangedCallback(t, r, n) {
586
+ var i;
587
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = _e(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
556
588
  }
557
589
  disconnectedCallback() {
558
590
  this.$$cn = !1, Promise.resolve().then(() => {
559
591
  !this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
560
592
  });
561
593
  }
562
- $$g_p(e) {
594
+ $$g_p(t) {
563
595
  return Object.keys(this.$$p_d).find(
564
- (t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e
565
- ) || e;
596
+ (r) => this.$$p_d[r].attribute === t || !this.$$p_d[r].attribute && r.toLowerCase() === t
597
+ ) || t;
566
598
  }
567
599
  });
568
- function ge(e, t, r, n) {
569
- const i = r[e]?.type;
600
+ function _e(e, t, r, n) {
601
+ var s;
602
+ const i = (s = r[e]) == null ? void 0 : s.type;
570
603
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
571
604
  return t;
572
605
  if (n === "toAttribute")
@@ -577,7 +610,7 @@ function ge(e, t, r, n) {
577
610
  case "Boolean":
578
611
  return t ? "" : null;
579
612
  case "Number":
580
- return t ?? null;
613
+ return t == null ? null : t;
581
614
  default:
582
615
  return t;
583
616
  }
@@ -594,55 +627,59 @@ function ge(e, t, r, n) {
594
627
  return t;
595
628
  }
596
629
  }
597
- function Ur(e, t, r, n, i, s) {
598
- let a = class extends Ut {
630
+ function Qr(e, t, r, n, i, s) {
631
+ let o = class extends Xt {
599
632
  constructor() {
600
633
  super(e, r, i), this.$$p_d = t;
601
634
  }
602
635
  static get observedAttributes() {
603
636
  return Object.keys(t).map(
604
- (o) => (t[o].attribute || o).toLowerCase()
637
+ (a) => (t[a].attribute || a).toLowerCase()
605
638
  );
606
639
  }
607
640
  };
608
- return Object.keys(t).forEach((o) => {
609
- Object.defineProperty(a.prototype, o, {
641
+ return Object.keys(t).forEach((a) => {
642
+ Object.defineProperty(o.prototype, a, {
610
643
  get() {
611
- return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
644
+ return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
612
645
  },
613
646
  set(l) {
614
- l = ge(o, l, t), this.$$d[o] = l, this.$$c?.$set({ [o]: l });
647
+ var u;
648
+ l = _e(a, l, t), this.$$d[a] = l, (u = this.$$c) == null || u.$set({ [a]: l });
615
649
  }
616
650
  });
617
- }), n.forEach((o) => {
618
- Object.defineProperty(a.prototype, o, {
651
+ }), n.forEach((a) => {
652
+ Object.defineProperty(o.prototype, a, {
619
653
  get() {
620
- return this.$$c?.[o];
654
+ var l;
655
+ return (l = this.$$c) == null ? void 0 : l[a];
621
656
  }
622
657
  });
623
658
  }), e.element = /** @type {any} */
624
- a, a;
625
- }
626
- class Gr {
627
- /**
628
- * ### PRIVATE API
629
- *
630
- * Do not use, may change at any time
631
- *
632
- * @type {any}
633
- */
634
- $$ = void 0;
635
- /**
636
- * ### PRIVATE API
637
- *
638
- * Do not use, may change at any time
639
- *
640
- * @type {any}
641
- */
642
- $$set = void 0;
659
+ o, o;
660
+ }
661
+ class Jr {
662
+ constructor() {
663
+ /**
664
+ * ### PRIVATE API
665
+ *
666
+ * Do not use, may change at any time
667
+ *
668
+ * @type {any}
669
+ */
670
+ T(this, "$$");
671
+ /**
672
+ * ### PRIVATE API
673
+ *
674
+ * Do not use, may change at any time
675
+ *
676
+ * @type {any}
677
+ */
678
+ T(this, "$$set");
679
+ }
643
680
  /** @returns {void} */
644
681
  $destroy() {
645
- Rr(this, 1), this.$destroy = P;
682
+ zr(this, 1), this.$destroy = A;
646
683
  }
647
684
  /**
648
685
  * @template {Extract<keyof Events, string>} K
@@ -651,8 +688,8 @@ class Gr {
651
688
  * @returns {() => void}
652
689
  */
653
690
  $on(t, r) {
654
- if (!we(r))
655
- return P;
691
+ if (!Te(r))
692
+ return A;
656
693
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
657
694
  return n.push(r), () => {
658
695
  const i = n.indexOf(r);
@@ -664,22 +701,22 @@ class Gr {
664
701
  * @returns {void}
665
702
  */
666
703
  $set(t) {
667
- this.$$set && !_r(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
704
+ this.$$set && !Or(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
668
705
  }
669
706
  }
670
- const Fr = "4";
671
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Fr);
672
- var Ge = function(e, t) {
673
- return Ge = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
707
+ const Yr = "4";
708
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Yr);
709
+ var je = function(e, t) {
710
+ return je = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
674
711
  r.__proto__ = n;
675
712
  } || function(r, n) {
676
713
  for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
677
- }, Ge(e, t);
714
+ }, je(e, t);
678
715
  };
679
- function G(e, t) {
716
+ function F(e, t) {
680
717
  if (typeof t != "function" && t !== null)
681
718
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
682
- Ge(e, t);
719
+ je(e, t);
683
720
  function r() {
684
721
  this.constructor = e;
685
722
  }
@@ -694,7 +731,7 @@ var v = function() {
694
731
  return t;
695
732
  }, v.apply(this, arguments);
696
733
  };
697
- function jr(e, t) {
734
+ function Kr(e, t) {
698
735
  var r = {};
699
736
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
700
737
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -702,7 +739,7 @@ function jr(e, t) {
702
739
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
703
740
  return r;
704
741
  }
705
- function Fe(e) {
742
+ function ke(e) {
706
743
  var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
707
744
  if (r) return r.call(e);
708
745
  if (e && typeof e.length == "number") return {
@@ -712,38 +749,38 @@ function Fe(e) {
712
749
  };
713
750
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
714
751
  }
715
- function je(e, t) {
752
+ function Ve(e, t) {
716
753
  var r = typeof Symbol == "function" && e[Symbol.iterator];
717
754
  if (!r) return e;
718
- var n = r.call(e), i, s = [], a;
755
+ var n = r.call(e), i, s = [], o;
719
756
  try {
720
757
  for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; ) s.push(i.value);
721
- } catch (o) {
722
- a = { error: o };
758
+ } catch (a) {
759
+ o = { error: a };
723
760
  } finally {
724
761
  try {
725
762
  i && !i.done && (r = n.return) && r.call(n);
726
763
  } finally {
727
- if (a) throw a.error;
764
+ if (o) throw o.error;
728
765
  }
729
766
  }
730
767
  return s;
731
768
  }
732
- function Y(e, t, r) {
769
+ function K(e, t, r) {
733
770
  if (r || arguments.length === 2) for (var n = 0, i = t.length, s; n < i; n++)
734
771
  (s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
735
772
  return e.concat(s || Array.prototype.slice.call(t));
736
773
  }
737
- function U(e) {
774
+ function G(e) {
738
775
  return typeof e == "function";
739
776
  }
740
- function Gt(e) {
777
+ function Wt(e) {
741
778
  var t = function(n) {
742
779
  Error.call(n), n.stack = new Error().stack;
743
780
  }, r = e(t);
744
781
  return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
745
782
  }
746
- var Ie = Gt(function(e) {
783
+ var Le = Wt(function(e) {
747
784
  return function(r) {
748
785
  e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
749
786
  ` + r.map(function(n, i) {
@@ -752,13 +789,13 @@ var Ie = Gt(function(e) {
752
789
  `) : "", this.name = "UnsubscriptionError", this.errors = r;
753
790
  };
754
791
  });
755
- function ke(e, t) {
792
+ function Xe(e, t) {
756
793
  if (e) {
757
794
  var r = e.indexOf(t);
758
795
  0 <= r && e.splice(r, 1);
759
796
  }
760
797
  }
761
- var Te = function() {
798
+ var He = function() {
762
799
  function e(t) {
763
800
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
764
801
  }
@@ -766,11 +803,11 @@ var Te = function() {
766
803
  var t, r, n, i, s;
767
804
  if (!this.closed) {
768
805
  this.closed = !0;
769
- var a = this._parentage;
770
- if (a)
771
- if (this._parentage = null, Array.isArray(a))
806
+ var o = this._parentage;
807
+ if (o)
808
+ if (this._parentage = null, Array.isArray(o))
772
809
  try {
773
- for (var o = Fe(a), l = o.next(); !l.done; l = o.next()) {
810
+ for (var a = ke(o), l = a.next(); !l.done; l = a.next()) {
774
811
  var u = l.value;
775
812
  u.remove(this);
776
813
  }
@@ -778,30 +815,30 @@ var Te = function() {
778
815
  t = { error: _ };
779
816
  } finally {
780
817
  try {
781
- l && !l.done && (r = o.return) && r.call(o);
818
+ l && !l.done && (r = a.return) && r.call(a);
782
819
  } finally {
783
820
  if (t) throw t.error;
784
821
  }
785
822
  }
786
823
  else
787
- a.remove(this);
824
+ o.remove(this);
788
825
  var h = this.initialTeardown;
789
- if (U(h))
826
+ if (G(h))
790
827
  try {
791
828
  h();
792
829
  } catch (_) {
793
- s = _ instanceof Ie ? _.errors : [_];
830
+ s = _ instanceof Le ? _.errors : [_];
794
831
  }
795
832
  var c = this._finalizers;
796
833
  if (c) {
797
834
  this._finalizers = null;
798
835
  try {
799
- for (var f = Fe(c), p = f.next(); !p.done; p = f.next()) {
836
+ for (var f = ke(c), p = f.next(); !p.done; p = f.next()) {
800
837
  var b = p.value;
801
838
  try {
802
- at(b);
839
+ dt(b);
803
840
  } catch (_) {
804
- s = s ?? [], _ instanceof Ie ? s = Y(Y([], je(s)), je(_.errors)) : s.push(_);
841
+ s = s != null ? s : [], _ instanceof Le ? s = K(K([], Ve(s)), Ve(_.errors)) : s.push(_);
805
842
  }
806
843
  }
807
844
  } catch (_) {
@@ -815,13 +852,13 @@ var Te = function() {
815
852
  }
816
853
  }
817
854
  if (s)
818
- throw new Ie(s);
855
+ throw new Le(s);
819
856
  }
820
857
  }, e.prototype.add = function(t) {
821
858
  var r;
822
859
  if (t && t !== this)
823
860
  if (this.closed)
824
- at(t);
861
+ dt(t);
825
862
  else {
826
863
  if (t instanceof e) {
827
864
  if (t.closed || t._hasParent(this))
@@ -838,56 +875,56 @@ var Te = function() {
838
875
  this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
839
876
  }, e.prototype._removeParent = function(t) {
840
877
  var r = this._parentage;
841
- r === t ? this._parentage = null : Array.isArray(r) && ke(r, t);
878
+ r === t ? this._parentage = null : Array.isArray(r) && Xe(r, t);
842
879
  }, e.prototype.remove = function(t) {
843
880
  var r = this._finalizers;
844
- r && ke(r, t), t instanceof e && t._removeParent(this);
881
+ r && Xe(r, t), t instanceof e && t._removeParent(this);
845
882
  }, e.EMPTY = function() {
846
883
  var t = new e();
847
884
  return t.closed = !0, t;
848
885
  }(), e;
849
- }(), Ft = Te.EMPTY;
850
- function jt(e) {
851
- return e instanceof Te || e && "closed" in e && U(e.remove) && U(e.add) && U(e.unsubscribe);
886
+ }(), zt = He.EMPTY;
887
+ function qt(e) {
888
+ return e instanceof He || e && "closed" in e && G(e.remove) && G(e.add) && G(e.unsubscribe);
852
889
  }
853
- function at(e) {
854
- U(e) ? e() : e.unsubscribe();
890
+ function dt(e) {
891
+ G(e) ? e() : e.unsubscribe();
855
892
  }
856
- var kr = {
893
+ var en = {
857
894
  onUnhandledError: null,
858
895
  onStoppedNotification: null,
859
896
  Promise: void 0,
860
897
  useDeprecatedSynchronousErrorHandling: !1,
861
898
  useDeprecatedNextContext: !1
862
- }, Vr = {
899
+ }, tn = {
863
900
  setTimeout: function(e, t) {
864
901
  for (var r = [], n = 2; n < arguments.length; n++)
865
902
  r[n - 2] = arguments[n];
866
- return setTimeout.apply(void 0, Y([e, t], je(r)));
903
+ return setTimeout.apply(void 0, K([e, t], Ve(r)));
867
904
  },
868
905
  clearTimeout: function(e) {
869
906
  return clearTimeout(e);
870
907
  },
871
908
  delegate: void 0
872
909
  };
873
- function Xr(e) {
874
- Vr.setTimeout(function() {
910
+ function rn(e) {
911
+ tn.setTimeout(function() {
875
912
  throw e;
876
913
  });
877
914
  }
878
- function ut() {
915
+ function pt() {
879
916
  }
880
- function _e(e) {
917
+ function ve(e) {
881
918
  e();
882
919
  }
883
- var kt = function(e) {
884
- G(t, e);
920
+ var Zt = function(e) {
921
+ F(t, e);
885
922
  function t(r) {
886
923
  var n = e.call(this) || this;
887
- return n.isStopped = !1, r ? (n.destination = r, jt(r) && r.add(n)) : n.destination = qr, n;
924
+ return n.isStopped = !1, r ? (n.destination = r, qt(r) && r.add(n)) : n.destination = on, n;
888
925
  }
889
926
  return t.create = function(r, n, i) {
890
- return new Ve(r, n, i);
927
+ return new We(r, n, i);
891
928
  }, t.prototype.next = function(r) {
892
929
  this.isStopped || this._next(r);
893
930
  }, t.prototype.error = function(r) {
@@ -911,7 +948,7 @@ var kt = function(e) {
911
948
  this.unsubscribe();
912
949
  }
913
950
  }, t;
914
- }(Te), Wr = function() {
951
+ }(He), nn = function() {
915
952
  function e(t) {
916
953
  this.partialObserver = t;
917
954
  }
@@ -921,7 +958,7 @@ var kt = function(e) {
921
958
  try {
922
959
  r.next(t);
923
960
  } catch (n) {
924
- me(n);
961
+ be(n);
925
962
  }
926
963
  }, e.prototype.error = function(t) {
927
964
  var r = this.partialObserver;
@@ -929,56 +966,56 @@ var kt = function(e) {
929
966
  try {
930
967
  r.error(t);
931
968
  } catch (n) {
932
- me(n);
969
+ be(n);
933
970
  }
934
971
  else
935
- me(t);
972
+ be(t);
936
973
  }, e.prototype.complete = function() {
937
974
  var t = this.partialObserver;
938
975
  if (t.complete)
939
976
  try {
940
977
  t.complete();
941
978
  } catch (r) {
942
- me(r);
979
+ be(r);
943
980
  }
944
981
  }, e;
945
- }(), Ve = function(e) {
946
- G(t, e);
982
+ }(), We = function(e) {
983
+ F(t, e);
947
984
  function t(r, n, i) {
948
- var s = e.call(this) || this, a;
949
- return U(r) || !r ? a = {
950
- next: r ?? void 0,
951
- error: n ?? void 0,
952
- complete: i ?? void 0
953
- } : a = r, s.destination = new Wr(a), s;
985
+ var s = e.call(this) || this, o;
986
+ return G(r) || !r ? o = {
987
+ next: r != null ? r : void 0,
988
+ error: n != null ? n : void 0,
989
+ complete: i != null ? i : void 0
990
+ } : o = r, s.destination = new nn(o), s;
954
991
  }
955
992
  return t;
956
- }(kt);
957
- function me(e) {
958
- Xr(e);
993
+ }(Zt);
994
+ function be(e) {
995
+ rn(e);
959
996
  }
960
- function zr(e) {
997
+ function sn(e) {
961
998
  throw e;
962
999
  }
963
- var qr = {
1000
+ var on = {
964
1001
  closed: !0,
965
- next: ut,
966
- error: zr,
967
- complete: ut
968
- }, Zr = function() {
1002
+ next: pt,
1003
+ error: sn,
1004
+ complete: pt
1005
+ }, an = function() {
969
1006
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
970
1007
  }();
971
- function Qr(e) {
1008
+ function un(e) {
972
1009
  return e;
973
1010
  }
974
- function Jr(e) {
975
- return e.length === 0 ? Qr : e.length === 1 ? e[0] : function(r) {
1011
+ function ln(e) {
1012
+ return e.length === 0 ? un : e.length === 1 ? e[0] : function(r) {
976
1013
  return e.reduce(function(n, i) {
977
1014
  return i(n);
978
1015
  }, r);
979
1016
  };
980
1017
  }
981
- var lt = function() {
1018
+ var mt = function() {
982
1019
  function e(t) {
983
1020
  t && (this._subscribe = t);
984
1021
  }
@@ -986,10 +1023,10 @@ var lt = function() {
986
1023
  var r = new e();
987
1024
  return r.source = this, r.operator = t, r;
988
1025
  }, e.prototype.subscribe = function(t, r, n) {
989
- var i = this, s = Kr(t) ? t : new Ve(t, r, n);
990
- return _e(function() {
991
- var a = i, o = a.operator, l = a.source;
992
- s.add(o ? o.call(s, l) : l ? i._subscribe(s) : i._trySubscribe(s));
1026
+ var i = this, s = fn(t) ? t : new We(t, r, n);
1027
+ return ve(function() {
1028
+ var o = i, a = o.operator, l = o.source;
1029
+ s.add(a ? a.call(s, l) : l ? i._subscribe(s) : i._trySubscribe(s));
993
1030
  }), s;
994
1031
  }, e.prototype._trySubscribe = function(t) {
995
1032
  try {
@@ -999,37 +1036,37 @@ var lt = function() {
999
1036
  }
1000
1037
  }, e.prototype.forEach = function(t, r) {
1001
1038
  var n = this;
1002
- return r = ht(r), new r(function(i, s) {
1003
- var a = new Ve({
1004
- next: function(o) {
1039
+ return r = bt(r), new r(function(i, s) {
1040
+ var o = new We({
1041
+ next: function(a) {
1005
1042
  try {
1006
- t(o);
1043
+ t(a);
1007
1044
  } catch (l) {
1008
- s(l), a.unsubscribe();
1045
+ s(l), o.unsubscribe();
1009
1046
  }
1010
1047
  },
1011
1048
  error: s,
1012
1049
  complete: i
1013
1050
  });
1014
- n.subscribe(a);
1051
+ n.subscribe(o);
1015
1052
  });
1016
1053
  }, e.prototype._subscribe = function(t) {
1017
1054
  var r;
1018
1055
  return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
1019
- }, e.prototype[Zr] = function() {
1056
+ }, e.prototype[an] = function() {
1020
1057
  return this;
1021
1058
  }, e.prototype.pipe = function() {
1022
1059
  for (var t = [], r = 0; r < arguments.length; r++)
1023
1060
  t[r] = arguments[r];
1024
- return Jr(t)(this);
1061
+ return ln(t)(this);
1025
1062
  }, e.prototype.toPromise = function(t) {
1026
1063
  var r = this;
1027
- return t = ht(t), new t(function(n, i) {
1064
+ return t = bt(t), new t(function(n, i) {
1028
1065
  var s;
1029
- r.subscribe(function(a) {
1030
- return s = a;
1031
- }, function(a) {
1032
- return i(a);
1066
+ r.subscribe(function(o) {
1067
+ return s = o;
1068
+ }, function(o) {
1069
+ return i(o);
1033
1070
  }, function() {
1034
1071
  return n(s);
1035
1072
  });
@@ -1038,48 +1075,48 @@ var lt = function() {
1038
1075
  return new e(t);
1039
1076
  }, e;
1040
1077
  }();
1041
- function ht(e) {
1078
+ function bt(e) {
1042
1079
  var t;
1043
- return (t = e ?? kr.Promise) !== null && t !== void 0 ? t : Promise;
1080
+ return (t = e != null ? e : en.Promise) !== null && t !== void 0 ? t : Promise;
1044
1081
  }
1045
- function Yr(e) {
1046
- return e && U(e.next) && U(e.error) && U(e.complete);
1082
+ function hn(e) {
1083
+ return e && G(e.next) && G(e.error) && G(e.complete);
1047
1084
  }
1048
- function Kr(e) {
1049
- return e && e instanceof kt || Yr(e) && jt(e);
1085
+ function fn(e) {
1086
+ return e && e instanceof Zt || hn(e) && qt(e);
1050
1087
  }
1051
- var en = Gt(function(e) {
1088
+ var cn = Wt(function(e) {
1052
1089
  return function() {
1053
1090
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
1054
1091
  };
1055
- }), Vt = function(e) {
1056
- G(t, e);
1092
+ }), Qt = function(e) {
1093
+ F(t, e);
1057
1094
  function t() {
1058
1095
  var r = e.call(this) || this;
1059
1096
  return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
1060
1097
  }
1061
1098
  return t.prototype.lift = function(r) {
1062
- var n = new ft(this, this);
1099
+ var n = new yt(this, this);
1063
1100
  return n.operator = r, n;
1064
1101
  }, t.prototype._throwIfClosed = function() {
1065
1102
  if (this.closed)
1066
- throw new en();
1103
+ throw new cn();
1067
1104
  }, t.prototype.next = function(r) {
1068
1105
  var n = this;
1069
- _e(function() {
1106
+ ve(function() {
1070
1107
  var i, s;
1071
1108
  if (n._throwIfClosed(), !n.isStopped) {
1072
1109
  n.currentObservers || (n.currentObservers = Array.from(n.observers));
1073
1110
  try {
1074
- for (var a = Fe(n.currentObservers), o = a.next(); !o.done; o = a.next()) {
1075
- var l = o.value;
1111
+ for (var o = ke(n.currentObservers), a = o.next(); !a.done; a = o.next()) {
1112
+ var l = a.value;
1076
1113
  l.next(r);
1077
1114
  }
1078
1115
  } catch (u) {
1079
1116
  i = { error: u };
1080
1117
  } finally {
1081
1118
  try {
1082
- o && !o.done && (s = a.return) && s.call(a);
1119
+ a && !a.done && (s = o.return) && s.call(o);
1083
1120
  } finally {
1084
1121
  if (i) throw i.error;
1085
1122
  }
@@ -1088,7 +1125,7 @@ var en = Gt(function(e) {
1088
1125
  });
1089
1126
  }, t.prototype.error = function(r) {
1090
1127
  var n = this;
1091
- _e(function() {
1128
+ ve(function() {
1092
1129
  if (n._throwIfClosed(), !n.isStopped) {
1093
1130
  n.hasError = n.isStopped = !0, n.thrownError = r;
1094
1131
  for (var i = n.observers; i.length; )
@@ -1097,7 +1134,7 @@ var en = Gt(function(e) {
1097
1134
  });
1098
1135
  }, t.prototype.complete = function() {
1099
1136
  var r = this;
1100
- _e(function() {
1137
+ ve(function() {
1101
1138
  if (r._throwIfClosed(), !r.isStopped) {
1102
1139
  r.isStopped = !0;
1103
1140
  for (var n = r.observers; n.length; )
@@ -1118,21 +1155,21 @@ var en = Gt(function(e) {
1118
1155
  }, t.prototype._subscribe = function(r) {
1119
1156
  return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
1120
1157
  }, t.prototype._innerSubscribe = function(r) {
1121
- var n = this, i = this, s = i.hasError, a = i.isStopped, o = i.observers;
1122
- return s || a ? Ft : (this.currentObservers = null, o.push(r), new Te(function() {
1123
- n.currentObservers = null, ke(o, r);
1158
+ var n = this, i = this, s = i.hasError, o = i.isStopped, a = i.observers;
1159
+ return s || o ? zt : (this.currentObservers = null, a.push(r), new He(function() {
1160
+ n.currentObservers = null, Xe(a, r);
1124
1161
  }));
1125
1162
  }, t.prototype._checkFinalizedStatuses = function(r) {
1126
- var n = this, i = n.hasError, s = n.thrownError, a = n.isStopped;
1127
- i ? r.error(s) : a && r.complete();
1163
+ var n = this, i = n.hasError, s = n.thrownError, o = n.isStopped;
1164
+ i ? r.error(s) : o && r.complete();
1128
1165
  }, t.prototype.asObservable = function() {
1129
- var r = new lt();
1166
+ var r = new mt();
1130
1167
  return r.source = this, r;
1131
1168
  }, t.create = function(r, n) {
1132
- return new ft(r, n);
1169
+ return new yt(r, n);
1133
1170
  }, t;
1134
- }(lt), ft = function(e) {
1135
- G(t, e);
1171
+ }(mt), yt = function(e) {
1172
+ F(t, e);
1136
1173
  function t(r, n) {
1137
1174
  var i = e.call(this) || this;
1138
1175
  return i.destination = r, i.source = n, i;
@@ -1148,92 +1185,92 @@ var en = Gt(function(e) {
1148
1185
  (n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
1149
1186
  }, t.prototype._subscribe = function(r) {
1150
1187
  var n, i;
1151
- return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Ft;
1188
+ return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : zt;
1152
1189
  }, t;
1153
- }(Vt), Xt = {
1190
+ }(Qt), Jt = {
1154
1191
  now: function() {
1155
- return (Xt.delegate || Date).now();
1192
+ return (Jt.delegate || Date).now();
1156
1193
  },
1157
1194
  delegate: void 0
1158
- }, tn = function(e) {
1159
- G(t, e);
1195
+ }, dn = function(e) {
1196
+ F(t, e);
1160
1197
  function t(r, n, i) {
1161
- r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Xt);
1198
+ r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Jt);
1162
1199
  var s = e.call(this) || this;
1163
1200
  return s._bufferSize = r, s._windowTime = n, s._timestampProvider = i, s._buffer = [], s._infiniteTimeWindow = !0, s._infiniteTimeWindow = n === 1 / 0, s._bufferSize = Math.max(1, r), s._windowTime = Math.max(1, n), s;
1164
1201
  }
1165
1202
  return t.prototype.next = function(r) {
1166
- var n = this, i = n.isStopped, s = n._buffer, a = n._infiniteTimeWindow, o = n._timestampProvider, l = n._windowTime;
1167
- i || (s.push(r), !a && s.push(o.now() + l)), this._trimBuffer(), e.prototype.next.call(this, r);
1203
+ var n = this, i = n.isStopped, s = n._buffer, o = n._infiniteTimeWindow, a = n._timestampProvider, l = n._windowTime;
1204
+ i || (s.push(r), !o && s.push(a.now() + l)), this._trimBuffer(), e.prototype.next.call(this, r);
1168
1205
  }, t.prototype._subscribe = function(r) {
1169
1206
  this._throwIfClosed(), this._trimBuffer();
1170
- for (var n = this._innerSubscribe(r), i = this, s = i._infiniteTimeWindow, a = i._buffer, o = a.slice(), l = 0; l < o.length && !r.closed; l += s ? 1 : 2)
1171
- r.next(o[l]);
1207
+ for (var n = this._innerSubscribe(r), i = this, s = i._infiniteTimeWindow, o = i._buffer, a = o.slice(), l = 0; l < a.length && !r.closed; l += s ? 1 : 2)
1208
+ r.next(a[l]);
1172
1209
  return this._checkFinalizedStatuses(r), n;
1173
1210
  }, t.prototype._trimBuffer = function() {
1174
- var r = this, n = r._bufferSize, i = r._timestampProvider, s = r._buffer, a = r._infiniteTimeWindow, o = (a ? 1 : 2) * n;
1175
- if (n < 1 / 0 && o < s.length && s.splice(0, s.length - o), !a) {
1211
+ var r = this, n = r._bufferSize, i = r._timestampProvider, s = r._buffer, o = r._infiniteTimeWindow, a = (o ? 1 : 2) * n;
1212
+ if (n < 1 / 0 && a < s.length && s.splice(0, s.length - a), !o) {
1176
1213
  for (var l = i.now(), u = 0, h = 1; h < s.length && s[h] <= l; h += 2)
1177
1214
  u = h;
1178
1215
  u && s.splice(0, u + 1);
1179
1216
  }
1180
1217
  }, t;
1181
- }(Vt);
1182
- const ct = [], dt = {}, rn = (e, t = 0) => {
1183
- if (ct.indexOf(e) == -1) {
1184
- const r = new tn(t);
1185
- dt[e] = r, ct.push(e);
1218
+ }(Qt);
1219
+ const gt = [], _t = {}, pn = (e, t = 0) => {
1220
+ if (gt.indexOf(e) == -1) {
1221
+ const r = new dn(t);
1222
+ _t[e] = r, gt.push(e);
1186
1223
  }
1187
- return dt[e];
1188
- }, Z = [];
1189
- function nn(e, t) {
1224
+ return _t[e];
1225
+ }, Q = [];
1226
+ function mn(e, t) {
1190
1227
  return {
1191
- subscribe: He(e, t).subscribe
1228
+ subscribe: Be(e, t).subscribe
1192
1229
  };
1193
1230
  }
1194
- function He(e, t = P) {
1231
+ function Be(e, t = A) {
1195
1232
  let r;
1196
1233
  const n = /* @__PURE__ */ new Set();
1197
- function i(o) {
1198
- if (Lt(e, o) && (e = o, r)) {
1199
- const l = !Z.length;
1234
+ function i(a) {
1235
+ if (Ut(e, a) && (e = a, r)) {
1236
+ const l = !Q.length;
1200
1237
  for (const u of n)
1201
- u[1](), Z.push(u, e);
1238
+ u[1](), Q.push(u, e);
1202
1239
  if (l) {
1203
- for (let u = 0; u < Z.length; u += 2)
1204
- Z[u][0](Z[u + 1]);
1205
- Z.length = 0;
1240
+ for (let u = 0; u < Q.length; u += 2)
1241
+ Q[u][0](Q[u + 1]);
1242
+ Q.length = 0;
1206
1243
  }
1207
1244
  }
1208
1245
  }
1209
- function s(o) {
1210
- i(o(e));
1246
+ function s(a) {
1247
+ i(a(e));
1211
1248
  }
1212
- function a(o, l = P) {
1213
- const u = [o, l];
1214
- return n.add(u), n.size === 1 && (r = t(i, s) || P), o(e), () => {
1249
+ function o(a, l = A) {
1250
+ const u = [a, l];
1251
+ return n.add(u), n.size === 1 && (r = t(i, s) || A), a(e), () => {
1215
1252
  n.delete(u), n.size === 0 && r && (r(), r = null);
1216
1253
  };
1217
1254
  }
1218
- return { set: i, update: s, subscribe: a };
1255
+ return { set: i, update: s, subscribe: o };
1219
1256
  }
1220
- function ne(e, t, r) {
1257
+ function ie(e, t, r) {
1221
1258
  const n = !Array.isArray(e), i = n ? [e] : e;
1222
1259
  if (!i.every(Boolean))
1223
1260
  throw new Error("derived() expects stores as input, got a falsy value");
1224
1261
  const s = t.length < 2;
1225
- return nn(r, (a, o) => {
1262
+ return mn(r, (o, a) => {
1226
1263
  let l = !1;
1227
1264
  const u = [];
1228
- let h = 0, c = P;
1265
+ let h = 0, c = A;
1229
1266
  const f = () => {
1230
1267
  if (h)
1231
1268
  return;
1232
1269
  c();
1233
- const b = t(n ? u[0] : u, a, o);
1234
- s ? a(b) : c = we(b) ? b : P;
1270
+ const b = t(n ? u[0] : u, o, a);
1271
+ s ? o(b) : c = Te(b) ? b : A;
1235
1272
  }, p = i.map(
1236
- (b, _) => Nt(
1273
+ (b, _) => Gt(
1237
1274
  b,
1238
1275
  (S) => {
1239
1276
  u[_] = S, h &= ~(1 << _), l && f();
@@ -1244,118 +1281,118 @@ function ne(e, t, r) {
1244
1281
  )
1245
1282
  );
1246
1283
  return l = !0, f(), function() {
1247
- X(p), c(), l = !1;
1284
+ W(p), c(), l = !1;
1248
1285
  };
1249
1286
  });
1250
1287
  }
1251
- function sn(e) {
1288
+ function bn(e) {
1252
1289
  return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1253
1290
  }
1254
- var on = function(t) {
1255
- return an(t) && !un(t);
1291
+ var yn = function(t) {
1292
+ return gn(t) && !_n(t);
1256
1293
  };
1257
- function an(e) {
1294
+ function gn(e) {
1258
1295
  return !!e && typeof e == "object";
1259
1296
  }
1260
- function un(e) {
1297
+ function _n(e) {
1261
1298
  var t = Object.prototype.toString.call(e);
1262
- return t === "[object RegExp]" || t === "[object Date]" || fn(e);
1299
+ return t === "[object RegExp]" || t === "[object Date]" || xn(e);
1263
1300
  }
1264
- var ln = typeof Symbol == "function" && Symbol.for, hn = ln ? Symbol.for("react.element") : 60103;
1265
- function fn(e) {
1266
- return e.$$typeof === hn;
1301
+ var vn = typeof Symbol == "function" && Symbol.for, En = vn ? Symbol.for("react.element") : 60103;
1302
+ function xn(e) {
1303
+ return e.$$typeof === En;
1267
1304
  }
1268
- function cn(e) {
1305
+ function Sn(e) {
1269
1306
  return Array.isArray(e) ? [] : {};
1270
1307
  }
1271
- function le(e, t) {
1272
- return t.clone !== !1 && t.isMergeableObject(e) ? K(cn(e), e, t) : e;
1308
+ function he(e, t) {
1309
+ return t.clone !== !1 && t.isMergeableObject(e) ? ee(Sn(e), e, t) : e;
1273
1310
  }
1274
- function dn(e, t, r) {
1311
+ function wn(e, t, r) {
1275
1312
  return e.concat(t).map(function(n) {
1276
- return le(n, r);
1313
+ return he(n, r);
1277
1314
  });
1278
1315
  }
1279
- function pn(e, t) {
1316
+ function Tn(e, t) {
1280
1317
  if (!t.customMerge)
1281
- return K;
1318
+ return ee;
1282
1319
  var r = t.customMerge(e);
1283
- return typeof r == "function" ? r : K;
1320
+ return typeof r == "function" ? r : ee;
1284
1321
  }
1285
- function mn(e) {
1322
+ function Hn(e) {
1286
1323
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
1287
1324
  return Object.propertyIsEnumerable.call(e, t);
1288
1325
  }) : [];
1289
1326
  }
1290
- function pt(e) {
1291
- return Object.keys(e).concat(mn(e));
1327
+ function vt(e) {
1328
+ return Object.keys(e).concat(Hn(e));
1292
1329
  }
1293
- function Wt(e, t) {
1330
+ function Yt(e, t) {
1294
1331
  try {
1295
1332
  return t in e;
1296
- } catch {
1333
+ } catch (r) {
1297
1334
  return !1;
1298
1335
  }
1299
1336
  }
1300
- function bn(e, t) {
1301
- return Wt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1337
+ function Bn(e, t) {
1338
+ return Yt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1302
1339
  }
1303
- function yn(e, t, r) {
1340
+ function Pn(e, t, r) {
1304
1341
  var n = {};
1305
- return r.isMergeableObject(e) && pt(e).forEach(function(i) {
1306
- n[i] = le(e[i], r);
1307
- }), pt(t).forEach(function(i) {
1308
- bn(e, i) || (Wt(e, i) && r.isMergeableObject(t[i]) ? n[i] = pn(i, r)(e[i], t[i], r) : n[i] = le(t[i], r));
1342
+ return r.isMergeableObject(e) && vt(e).forEach(function(i) {
1343
+ n[i] = he(e[i], r);
1344
+ }), vt(t).forEach(function(i) {
1345
+ Bn(e, i) || (Yt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Tn(i, r)(e[i], t[i], r) : n[i] = he(t[i], r));
1309
1346
  }), n;
1310
1347
  }
1311
- function K(e, t, r) {
1312
- r = r || {}, r.arrayMerge = r.arrayMerge || dn, r.isMergeableObject = r.isMergeableObject || on, r.cloneUnlessOtherwiseSpecified = le;
1348
+ function ee(e, t, r) {
1349
+ r = r || {}, r.arrayMerge = r.arrayMerge || wn, r.isMergeableObject = r.isMergeableObject || yn, r.cloneUnlessOtherwiseSpecified = he;
1313
1350
  var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
1314
- return s ? n ? r.arrayMerge(e, t, r) : yn(e, t, r) : le(t, r);
1351
+ return s ? n ? r.arrayMerge(e, t, r) : Pn(e, t, r) : he(t, r);
1315
1352
  }
1316
- K.all = function(t, r) {
1353
+ ee.all = function(t, r) {
1317
1354
  if (!Array.isArray(t))
1318
1355
  throw new Error("first argument should be an array");
1319
1356
  return t.reduce(function(n, i) {
1320
- return K(n, i, r);
1357
+ return ee(n, i, r);
1321
1358
  }, {});
1322
1359
  };
1323
- var gn = K, _n = gn;
1324
- const vn = /* @__PURE__ */ sn(_n);
1325
- function Ce(e, t) {
1326
- var r = t && t.cache ? t.cache : Bn, n = t && t.serializer ? t.serializer : Tn, i = t && t.strategy ? t.strategy : xn;
1360
+ var An = ee, On = An;
1361
+ const In = /* @__PURE__ */ bn(On);
1362
+ function Ne(e, t) {
1363
+ var r = t && t.cache ? t.cache : Dn, n = t && t.serializer ? t.serializer : Rn, i = t && t.strategy ? t.strategy : Ln;
1327
1364
  return i(e, {
1328
1365
  cache: r,
1329
1366
  serializer: n
1330
1367
  });
1331
1368
  }
1332
- function En(e) {
1369
+ function Cn(e) {
1333
1370
  return e == null || typeof e == "number" || typeof e == "boolean";
1334
1371
  }
1335
- function zt(e, t, r, n) {
1336
- var i = En(n) ? n : r(n), s = t.get(i);
1337
- return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
1372
+ function Kt(e, t, r, n) {
1373
+ var i = Cn(n) ? n : r(n), s = t.get(i);
1374
+ return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
1338
1375
  }
1339
- function qt(e, t, r) {
1376
+ function er(e, t, r) {
1340
1377
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
1341
- return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
1378
+ return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
1342
1379
  }
1343
- function et(e, t, r, n, i) {
1380
+ function rt(e, t, r, n, i) {
1344
1381
  return r.bind(t, e, n, i);
1345
1382
  }
1346
- function xn(e, t) {
1347
- var r = e.length === 1 ? zt : qt;
1348
- return et(e, this, r, t.cache.create(), t.serializer);
1383
+ function Ln(e, t) {
1384
+ var r = e.length === 1 ? Kt : er;
1385
+ return rt(e, this, r, t.cache.create(), t.serializer);
1349
1386
  }
1350
- function Sn(e, t) {
1351
- return et(e, this, qt, t.cache.create(), t.serializer);
1387
+ function Nn(e, t) {
1388
+ return rt(e, this, er, t.cache.create(), t.serializer);
1352
1389
  }
1353
- function wn(e, t) {
1354
- return et(e, this, zt, t.cache.create(), t.serializer);
1390
+ function Mn(e, t) {
1391
+ return rt(e, this, Kt, t.cache.create(), t.serializer);
1355
1392
  }
1356
- var Tn = function() {
1393
+ var Rn = function() {
1357
1394
  return JSON.stringify(arguments);
1358
- }, Hn = (
1395
+ }, $n = (
1359
1396
  /** @class */
1360
1397
  function() {
1361
1398
  function e() {
@@ -1367,13 +1404,13 @@ var Tn = function() {
1367
1404
  this.cache[t] = r;
1368
1405
  }, e;
1369
1406
  }()
1370
- ), Bn = {
1407
+ ), Dn = {
1371
1408
  create: function() {
1372
- return new Hn();
1409
+ return new $n();
1373
1410
  }
1374
- }, Le = {
1375
- variadic: Sn,
1376
- monadic: wn
1411
+ }, Me = {
1412
+ variadic: Nn,
1413
+ monadic: Mn
1377
1414
  }, y;
1378
1415
  (function(e) {
1379
1416
  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";
@@ -1382,47 +1419,47 @@ var x;
1382
1419
  (function(e) {
1383
1420
  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";
1384
1421
  })(x || (x = {}));
1385
- var ee;
1422
+ var te;
1386
1423
  (function(e) {
1387
1424
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
1388
- })(ee || (ee = {}));
1389
- function mt(e) {
1425
+ })(te || (te = {}));
1426
+ function Et(e) {
1390
1427
  return e.type === x.literal;
1391
1428
  }
1392
- function Pn(e) {
1429
+ function Un(e) {
1393
1430
  return e.type === x.argument;
1394
1431
  }
1395
- function Zt(e) {
1432
+ function tr(e) {
1396
1433
  return e.type === x.number;
1397
1434
  }
1398
- function Qt(e) {
1435
+ function rr(e) {
1399
1436
  return e.type === x.date;
1400
1437
  }
1401
- function Jt(e) {
1438
+ function nr(e) {
1402
1439
  return e.type === x.time;
1403
1440
  }
1404
- function Yt(e) {
1441
+ function ir(e) {
1405
1442
  return e.type === x.select;
1406
1443
  }
1407
- function Kt(e) {
1444
+ function sr(e) {
1408
1445
  return e.type === x.plural;
1409
1446
  }
1410
- function An(e) {
1447
+ function Gn(e) {
1411
1448
  return e.type === x.pound;
1412
1449
  }
1413
- function er(e) {
1450
+ function or(e) {
1414
1451
  return e.type === x.tag;
1415
1452
  }
1416
- function tr(e) {
1417
- return !!(e && typeof e == "object" && e.type === ee.number);
1453
+ function ar(e) {
1454
+ return !!(e && typeof e == "object" && e.type === te.number);
1418
1455
  }
1419
- function Xe(e) {
1420
- return !!(e && typeof e == "object" && e.type === ee.dateTime);
1456
+ function ze(e) {
1457
+ return !!(e && typeof e == "object" && e.type === te.dateTime);
1421
1458
  }
1422
- var rr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, On = /(?:[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;
1423
- function In(e) {
1459
+ var ur = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Fn = /(?:[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;
1460
+ function jn(e) {
1424
1461
  var t = {};
1425
- return e.replace(On, function(r) {
1462
+ return e.replace(Fn, function(r) {
1426
1463
  var n = r.length;
1427
1464
  switch (r[0]) {
1428
1465
  case "G":
@@ -1511,36 +1548,36 @@ function In(e) {
1511
1548
  return "";
1512
1549
  }), t;
1513
1550
  }
1514
- var Cn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1515
- function Ln(e) {
1551
+ var kn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1552
+ function Vn(e) {
1516
1553
  if (e.length === 0)
1517
1554
  throw new Error("Number skeleton cannot be empty");
1518
- for (var t = e.split(Cn).filter(function(f) {
1555
+ for (var t = e.split(kn).filter(function(f) {
1519
1556
  return f.length > 0;
1520
1557
  }), r = [], n = 0, i = t; n < i.length; n++) {
1521
- var s = i[n], a = s.split("/");
1522
- if (a.length === 0)
1558
+ var s = i[n], o = s.split("/");
1559
+ if (o.length === 0)
1523
1560
  throw new Error("Invalid number skeleton");
1524
- for (var o = a[0], l = a.slice(1), u = 0, h = l; u < h.length; u++) {
1561
+ for (var a = o[0], l = o.slice(1), u = 0, h = l; u < h.length; u++) {
1525
1562
  var c = h[u];
1526
1563
  if (c.length === 0)
1527
1564
  throw new Error("Invalid number skeleton");
1528
1565
  }
1529
- r.push({ stem: o, options: l });
1566
+ r.push({ stem: a, options: l });
1530
1567
  }
1531
1568
  return r;
1532
1569
  }
1533
- function Nn(e) {
1570
+ function Xn(e) {
1534
1571
  return e.replace(/^(.*?)-/, "");
1535
1572
  }
1536
- var bt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, nr = /^(@+)?(\+|#+)?[rs]?$/g, Mn = /(\*)(0+)|(#+)(0+)|(0+)/g, ir = /^(0+)$/;
1537
- function yt(e) {
1573
+ var xt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, lr = /^(@+)?(\+|#+)?[rs]?$/g, Wn = /(\*)(0+)|(#+)(0+)|(0+)/g, hr = /^(0+)$/;
1574
+ function St(e) {
1538
1575
  var t = {};
1539
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(nr, function(r, n, i) {
1576
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(lr, function(r, n, i) {
1540
1577
  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)), "";
1541
1578
  }), t;
1542
1579
  }
1543
- function sr(e) {
1580
+ function fr(e) {
1544
1581
  switch (e) {
1545
1582
  case "sign-auto":
1546
1583
  return {
@@ -1580,7 +1617,7 @@ function sr(e) {
1580
1617
  };
1581
1618
  }
1582
1619
  }
1583
- function Rn(e) {
1620
+ function zn(e) {
1584
1621
  var t;
1585
1622
  if (e[0] === "E" && e[1] === "E" ? (t = {
1586
1623
  notation: "engineering"
@@ -1588,17 +1625,17 @@ function Rn(e) {
1588
1625
  notation: "scientific"
1589
1626
  }, e = e.slice(1)), t) {
1590
1627
  var r = e.slice(0, 2);
1591
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !ir.test(e))
1628
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !hr.test(e))
1592
1629
  throw new Error("Malformed concise eng/scientific notation");
1593
1630
  t.minimumIntegerDigits = e.length;
1594
1631
  }
1595
1632
  return t;
1596
1633
  }
1597
- function gt(e) {
1598
- var t = {}, r = sr(e);
1634
+ function wt(e) {
1635
+ var t = {}, r = fr(e);
1599
1636
  return r || t;
1600
1637
  }
1601
- function $n(e) {
1638
+ function qn(e) {
1602
1639
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
1603
1640
  var i = n[r];
1604
1641
  switch (i.stem) {
@@ -1622,7 +1659,7 @@ function $n(e) {
1622
1659
  continue;
1623
1660
  case "measure-unit":
1624
1661
  case "unit":
1625
- t.style = "unit", t.unit = Nn(i.options[0]);
1662
+ t.style = "unit", t.unit = Xn(i.options[0]);
1626
1663
  continue;
1627
1664
  case "compact-short":
1628
1665
  case "K":
@@ -1634,12 +1671,12 @@ function $n(e) {
1634
1671
  continue;
1635
1672
  case "scientific":
1636
1673
  t = v(v(v({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
1637
- return v(v({}, l), gt(u));
1674
+ return v(v({}, l), wt(u));
1638
1675
  }, {}));
1639
1676
  continue;
1640
1677
  case "engineering":
1641
1678
  t = v(v(v({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
1642
- return v(v({}, l), gt(u));
1679
+ return v(v({}, l), wt(u));
1643
1680
  }, {}));
1644
1681
  continue;
1645
1682
  case "notation-simple":
@@ -1684,7 +1721,7 @@ function $n(e) {
1684
1721
  case "integer-width":
1685
1722
  if (i.options.length > 1)
1686
1723
  throw new RangeError("integer-width stems only accept a single optional option");
1687
- i.options[0].replace(Mn, function(l, u, h, c, f, p) {
1724
+ i.options[0].replace(Wn, function(l, u, h, c, f, p) {
1688
1725
  if (u)
1689
1726
  t.minimumIntegerDigits = h.length;
1690
1727
  else {
@@ -1697,32 +1734,32 @@ function $n(e) {
1697
1734
  });
1698
1735
  continue;
1699
1736
  }
1700
- if (ir.test(i.stem)) {
1737
+ if (hr.test(i.stem)) {
1701
1738
  t.minimumIntegerDigits = i.stem.length;
1702
1739
  continue;
1703
1740
  }
1704
- if (bt.test(i.stem)) {
1741
+ if (xt.test(i.stem)) {
1705
1742
  if (i.options.length > 1)
1706
1743
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1707
- i.stem.replace(bt, function(l, u, h, c, f, p) {
1744
+ i.stem.replace(xt, function(l, u, h, c, f, p) {
1708
1745
  return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1709
1746
  });
1710
1747
  var s = i.options[0];
1711
- s === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = v(v({}, t), yt(s)));
1748
+ s === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = v(v({}, t), St(s)));
1712
1749
  continue;
1713
1750
  }
1714
- if (nr.test(i.stem)) {
1715
- t = v(v({}, t), yt(i.stem));
1751
+ if (lr.test(i.stem)) {
1752
+ t = v(v({}, t), St(i.stem));
1716
1753
  continue;
1717
1754
  }
1718
- var a = sr(i.stem);
1719
- a && (t = v(v({}, t), a));
1720
- var o = Rn(i.stem);
1755
+ var o = fr(i.stem);
1721
1756
  o && (t = v(v({}, t), o));
1757
+ var a = zn(i.stem);
1758
+ a && (t = v(v({}, t), a));
1722
1759
  }
1723
1760
  return t;
1724
1761
  }
1725
- var be = {
1762
+ var ye = {
1726
1763
  "001": [
1727
1764
  "H",
1728
1765
  "h"
@@ -3137,22 +3174,22 @@ var be = {
3137
3174
  "h"
3138
3175
  ]
3139
3176
  };
3140
- function Dn(e, t) {
3177
+ function Zn(e, t) {
3141
3178
  for (var r = "", n = 0; n < e.length; n++) {
3142
3179
  var i = e.charAt(n);
3143
3180
  if (i === "j") {
3144
3181
  for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
3145
3182
  s++, n++;
3146
- var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = Un(t);
3147
- for ((u == "H" || u == "k") && (o = 0); o-- > 0; )
3183
+ var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = Qn(t);
3184
+ for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
3148
3185
  r += l;
3149
- for (; a-- > 0; )
3186
+ for (; o-- > 0; )
3150
3187
  r = u + r;
3151
3188
  } else i === "J" ? r += "H" : r += i;
3152
3189
  }
3153
3190
  return r;
3154
3191
  }
3155
- function Un(e) {
3192
+ function Qn(e) {
3156
3193
  var t = e.hourCycle;
3157
3194
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
3158
3195
  e.hourCycles && // @ts-ignore
@@ -3171,23 +3208,23 @@ function Un(e) {
3171
3208
  }
3172
3209
  var r = e.language, n;
3173
3210
  r !== "root" && (n = e.maximize().region);
3174
- var i = be[n || ""] || be[r || ""] || be["".concat(r, "-001")] || be["001"];
3211
+ var i = ye[n || ""] || ye[r || ""] || ye["".concat(r, "-001")] || ye["001"];
3175
3212
  return i[0];
3176
3213
  }
3177
- var Ne, Gn = new RegExp("^".concat(rr.source, "*")), Fn = new RegExp("".concat(rr.source, "*$"));
3214
+ var Re, Jn = new RegExp("^".concat(ur.source, "*")), Yn = new RegExp("".concat(ur.source, "*$"));
3178
3215
  function g(e, t) {
3179
3216
  return { start: e, end: t };
3180
3217
  }
3181
- var jn = !!String.prototype.startsWith && "_a".startsWith("a", 1), kn = !!String.fromCodePoint, Vn = !!Object.fromEntries, Xn = !!String.prototype.codePointAt, Wn = !!String.prototype.trimStart, zn = !!String.prototype.trimEnd, qn = !!Number.isSafeInteger, Zn = qn ? Number.isSafeInteger : function(e) {
3218
+ var Kn = !!String.prototype.startsWith && "_a".startsWith("a", 1), ei = !!String.fromCodePoint, ti = !!Object.fromEntries, ri = !!String.prototype.codePointAt, ni = !!String.prototype.trimStart, ii = !!String.prototype.trimEnd, si = !!Number.isSafeInteger, oi = si ? Number.isSafeInteger : function(e) {
3182
3219
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
3183
- }, We = !0;
3220
+ }, qe = !0;
3184
3221
  try {
3185
- var Qn = ar("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3186
- We = ((Ne = Qn.exec("a")) === null || Ne === void 0 ? void 0 : Ne[0]) === "a";
3187
- } catch {
3188
- We = !1;
3222
+ var ai = dr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3223
+ qe = ((Re = ai.exec("a")) === null || Re === void 0 ? void 0 : Re[0]) === "a";
3224
+ } catch (e) {
3225
+ qe = !1;
3189
3226
  }
3190
- var _t = jn ? (
3227
+ var Tt = Kn ? (
3191
3228
  // Native
3192
3229
  function(t, r, n) {
3193
3230
  return t.startsWith(r, n);
@@ -3197,31 +3234,31 @@ var _t = jn ? (
3197
3234
  function(t, r, n) {
3198
3235
  return t.slice(n, n + r.length) === r;
3199
3236
  }
3200
- ), ze = kn ? String.fromCodePoint : (
3237
+ ), Ze = ei ? String.fromCodePoint : (
3201
3238
  // IE11
3202
3239
  function() {
3203
3240
  for (var t = [], r = 0; r < arguments.length; r++)
3204
3241
  t[r] = arguments[r];
3205
- for (var n = "", i = t.length, s = 0, a; i > s; ) {
3206
- if (a = t[s++], a > 1114111)
3207
- throw RangeError(a + " is not a valid code point");
3208
- n += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
3242
+ for (var n = "", i = t.length, s = 0, o; i > s; ) {
3243
+ if (o = t[s++], o > 1114111)
3244
+ throw RangeError(o + " is not a valid code point");
3245
+ n += o < 65536 ? String.fromCharCode(o) : String.fromCharCode(((o -= 65536) >> 10) + 55296, o % 1024 + 56320);
3209
3246
  }
3210
3247
  return n;
3211
3248
  }
3212
- ), vt = (
3249
+ ), Ht = (
3213
3250
  // native
3214
- Vn ? Object.fromEntries : (
3251
+ ti ? Object.fromEntries : (
3215
3252
  // Ponyfill
3216
3253
  function(t) {
3217
3254
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
3218
- var s = i[n], a = s[0], o = s[1];
3219
- r[a] = o;
3255
+ var s = i[n], o = s[0], a = s[1];
3256
+ r[o] = a;
3220
3257
  }
3221
3258
  return r;
3222
3259
  }
3223
3260
  )
3224
- ), or = Xn ? (
3261
+ ), cr = ri ? (
3225
3262
  // Native
3226
3263
  function(t, r) {
3227
3264
  return t.codePointAt(r);
@@ -3235,7 +3272,7 @@ var _t = jn ? (
3235
3272
  return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
3236
3273
  }
3237
3274
  }
3238
- ), Jn = Wn ? (
3275
+ ), ui = ni ? (
3239
3276
  // Native
3240
3277
  function(t) {
3241
3278
  return t.trimStart();
@@ -3243,9 +3280,9 @@ var _t = jn ? (
3243
3280
  ) : (
3244
3281
  // Ponyfill
3245
3282
  function(t) {
3246
- return t.replace(Gn, "");
3283
+ return t.replace(Jn, "");
3247
3284
  }
3248
- ), Yn = zn ? (
3285
+ ), li = ii ? (
3249
3286
  // Native
3250
3287
  function(t) {
3251
3288
  return t.trimEnd();
@@ -3253,32 +3290,32 @@ var _t = jn ? (
3253
3290
  ) : (
3254
3291
  // Ponyfill
3255
3292
  function(t) {
3256
- return t.replace(Fn, "");
3293
+ return t.replace(Yn, "");
3257
3294
  }
3258
3295
  );
3259
- function ar(e, t) {
3296
+ function dr(e, t) {
3260
3297
  return new RegExp(e, t);
3261
3298
  }
3262
- var qe;
3263
- if (We) {
3264
- var Et = ar("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3265
- qe = function(t, r) {
3299
+ var Qe;
3300
+ if (qe) {
3301
+ var Bt = dr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3302
+ Qe = function(t, r) {
3266
3303
  var n;
3267
- Et.lastIndex = r;
3268
- var i = Et.exec(t);
3304
+ Bt.lastIndex = r;
3305
+ var i = Bt.exec(t);
3269
3306
  return (n = i[1]) !== null && n !== void 0 ? n : "";
3270
3307
  };
3271
3308
  } else
3272
- qe = function(t, r) {
3309
+ Qe = function(t, r) {
3273
3310
  for (var n = []; ; ) {
3274
- var i = or(t, r);
3275
- if (i === void 0 || ur(i) || ri(i))
3311
+ var i = cr(t, r);
3312
+ if (i === void 0 || pr(i) || di(i))
3276
3313
  break;
3277
3314
  n.push(i), r += i >= 65536 ? 2 : 1;
3278
3315
  }
3279
- return ze.apply(void 0, n);
3316
+ return Ze.apply(void 0, n);
3280
3317
  };
3281
- var Kn = (
3318
+ var hi = (
3282
3319
  /** @class */
3283
3320
  function() {
3284
3321
  function e(t, r) {
@@ -3292,33 +3329,33 @@ var Kn = (
3292
3329
  for (var i = []; !this.isEOF(); ) {
3293
3330
  var s = this.char();
3294
3331
  if (s === 123) {
3295
- var a = this.parseArgument(t, n);
3296
- if (a.err)
3297
- return a;
3298
- i.push(a.val);
3332
+ var o = this.parseArgument(t, n);
3333
+ if (o.err)
3334
+ return o;
3335
+ i.push(o.val);
3299
3336
  } else {
3300
3337
  if (s === 125 && t > 0)
3301
3338
  break;
3302
3339
  if (s === 35 && (r === "plural" || r === "selectordinal")) {
3303
- var o = this.clonePosition();
3340
+ var a = this.clonePosition();
3304
3341
  this.bump(), i.push({
3305
3342
  type: x.pound,
3306
- location: g(o, this.clonePosition())
3343
+ location: g(a, this.clonePosition())
3307
3344
  });
3308
3345
  } else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
3309
3346
  if (n)
3310
3347
  break;
3311
3348
  return this.error(y.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
3312
- } else if (s === 60 && !this.ignoreTag && Ze(this.peek() || 0)) {
3313
- var a = this.parseTag(t, r);
3314
- if (a.err)
3315
- return a;
3316
- i.push(a.val);
3349
+ } else if (s === 60 && !this.ignoreTag && Je(this.peek() || 0)) {
3350
+ var o = this.parseTag(t, r);
3351
+ if (o.err)
3352
+ return o;
3353
+ i.push(o.val);
3317
3354
  } else {
3318
- var a = this.parseLiteral(t, r);
3319
- if (a.err)
3320
- return a;
3321
- i.push(a.val);
3355
+ var o = this.parseLiteral(t, r);
3356
+ if (o.err)
3357
+ return o;
3358
+ i.push(o.val);
3322
3359
  }
3323
3360
  }
3324
3361
  }
@@ -3340,27 +3377,27 @@ var Kn = (
3340
3377
  var s = this.parseMessage(t + 1, r, !0);
3341
3378
  if (s.err)
3342
3379
  return s;
3343
- var a = s.val, o = this.clonePosition();
3380
+ var o = s.val, a = this.clonePosition();
3344
3381
  if (this.bumpIf("</")) {
3345
- if (this.isEOF() || !Ze(this.char()))
3346
- return this.error(y.INVALID_TAG, g(o, this.clonePosition()));
3382
+ if (this.isEOF() || !Je(this.char()))
3383
+ return this.error(y.INVALID_TAG, g(a, this.clonePosition()));
3347
3384
  var l = this.clonePosition(), u = this.parseTagName();
3348
3385
  return i !== u ? this.error(y.UNMATCHED_CLOSING_TAG, g(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3349
3386
  val: {
3350
3387
  type: x.tag,
3351
3388
  value: i,
3352
- children: a,
3389
+ children: o,
3353
3390
  location: g(n, this.clonePosition())
3354
3391
  },
3355
3392
  err: null
3356
- } : this.error(y.INVALID_TAG, g(o, this.clonePosition())));
3393
+ } : this.error(y.INVALID_TAG, g(a, this.clonePosition())));
3357
3394
  } else
3358
3395
  return this.error(y.UNCLOSED_TAG, g(n, this.clonePosition()));
3359
3396
  } else
3360
3397
  return this.error(y.INVALID_TAG, g(n, this.clonePosition()));
3361
3398
  }, e.prototype.parseTagName = function() {
3362
3399
  var t = this.offset();
3363
- for (this.bump(); !this.isEOF() && ti(this.char()); )
3400
+ for (this.bump(); !this.isEOF() && ci(this.char()); )
3364
3401
  this.bump();
3365
3402
  return this.message.slice(t, this.offset());
3366
3403
  }, e.prototype.parseLiteral = function(t, r) {
@@ -3370,16 +3407,16 @@ var Kn = (
3370
3407
  i += s;
3371
3408
  continue;
3372
3409
  }
3373
- var a = this.tryParseUnquoted(t, r);
3374
- if (a) {
3375
- i += a;
3376
- continue;
3377
- }
3378
- var o = this.tryParseLeftAngleBracket();
3410
+ var o = this.tryParseUnquoted(t, r);
3379
3411
  if (o) {
3380
3412
  i += o;
3381
3413
  continue;
3382
3414
  }
3415
+ var a = this.tryParseLeftAngleBracket();
3416
+ if (a) {
3417
+ i += a;
3418
+ continue;
3419
+ }
3383
3420
  break;
3384
3421
  }
3385
3422
  var l = g(n, this.clonePosition());
@@ -3389,7 +3426,7 @@ var Kn = (
3389
3426
  };
3390
3427
  }, e.prototype.tryParseLeftAngleBracket = function() {
3391
3428
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
3392
- !ei(this.peek() || 0)) ? (this.bump(), "<") : null;
3429
+ !fi(this.peek() || 0)) ? (this.bump(), "<") : null;
3393
3430
  }, e.prototype.tryParseQuote = function(t) {
3394
3431
  if (this.isEOF() || this.char() !== 39)
3395
3432
  return null;
@@ -3423,12 +3460,12 @@ var Kn = (
3423
3460
  r.push(n);
3424
3461
  this.bump();
3425
3462
  }
3426
- return ze.apply(void 0, r);
3463
+ return Ze.apply(void 0, r);
3427
3464
  }, e.prototype.tryParseUnquoted = function(t, r) {
3428
3465
  if (this.isEOF())
3429
3466
  return null;
3430
3467
  var n = this.char();
3431
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ze(n));
3468
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ze(n));
3432
3469
  }, e.prototype.parseArgument = function(t, r) {
3433
3470
  var n = this.clonePosition();
3434
3471
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -3457,15 +3494,15 @@ var Kn = (
3457
3494
  return this.error(y.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
3458
3495
  }
3459
3496
  }, e.prototype.parseIdentifierIfPossible = function() {
3460
- var t = this.clonePosition(), r = this.offset(), n = qe(this.message, r), i = r + n.length;
3497
+ var t = this.clonePosition(), r = this.offset(), n = Qe(this.message, r), i = r + n.length;
3461
3498
  this.bumpTo(i);
3462
- var s = this.clonePosition(), a = g(t, s);
3463
- return { value: n, location: a };
3499
+ var s = this.clonePosition(), o = g(t, s);
3500
+ return { value: n, location: o };
3464
3501
  }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
3465
- var s, a = this.clonePosition(), o = this.parseIdentifierIfPossible().value, l = this.clonePosition();
3466
- switch (o) {
3502
+ var s, o = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
3503
+ switch (a) {
3467
3504
  case "":
3468
- return this.error(y.EXPECT_ARGUMENT_TYPE, g(a, l));
3505
+ return this.error(y.EXPECT_ARGUMENT_TYPE, g(o, l));
3469
3506
  case "number":
3470
3507
  case "date":
3471
3508
  case "time": {
@@ -3476,7 +3513,7 @@ var Kn = (
3476
3513
  var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
3477
3514
  if (c.err)
3478
3515
  return c;
3479
- var f = Yn(c.val);
3516
+ var f = li(c.val);
3480
3517
  if (f.length === 0)
3481
3518
  return this.error(y.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
3482
3519
  var p = g(h, this.clonePosition());
@@ -3486,9 +3523,9 @@ var Kn = (
3486
3523
  if (b.err)
3487
3524
  return b;
3488
3525
  var _ = g(i, this.clonePosition());
3489
- if (u && _t(u?.style, "::", 0)) {
3490
- var S = Jn(u.style.slice(2));
3491
- if (o === "number") {
3526
+ if (u && Tt(u == null ? void 0 : u.style, "::", 0)) {
3527
+ var S = ui(u.style.slice(2));
3528
+ if (a === "number") {
3492
3529
  var c = this.parseNumberSkeletonFromString(S, u.styleLocation);
3493
3530
  return c.err ? c : {
3494
3531
  val: { type: x.number, value: n, location: _, style: c.val },
@@ -3497,26 +3534,26 @@ var Kn = (
3497
3534
  } else {
3498
3535
  if (S.length === 0)
3499
3536
  return this.error(y.EXPECT_DATE_TIME_SKELETON, _);
3500
- var A = S;
3501
- this.locale && (A = Dn(S, this.locale));
3537
+ var O = S;
3538
+ this.locale && (O = Zn(S, this.locale));
3502
3539
  var f = {
3503
- type: ee.dateTime,
3504
- pattern: A,
3540
+ type: te.dateTime,
3541
+ pattern: O,
3505
3542
  location: u.styleLocation,
3506
- parsedOptions: this.shouldParseSkeletons ? In(A) : {}
3507
- }, H = o === "date" ? x.date : x.time;
3543
+ parsedOptions: this.shouldParseSkeletons ? jn(O) : {}
3544
+ }, P = a === "date" ? x.date : x.time;
3508
3545
  return {
3509
- val: { type: H, value: n, location: _, style: f },
3546
+ val: { type: P, value: n, location: _, style: f },
3510
3547
  err: null
3511
3548
  };
3512
3549
  }
3513
3550
  }
3514
3551
  return {
3515
3552
  val: {
3516
- type: o === "number" ? x.number : o === "date" ? x.date : x.time,
3553
+ type: a === "number" ? x.number : a === "date" ? x.date : x.time,
3517
3554
  value: n,
3518
3555
  location: _,
3519
- style: (s = u?.style) !== null && s !== void 0 ? s : null
3556
+ style: (s = u == null ? void 0 : u.style) !== null && s !== void 0 ? s : null
3520
3557
  },
3521
3558
  err: null
3522
3559
  };
@@ -3524,32 +3561,32 @@ var Kn = (
3524
3561
  case "plural":
3525
3562
  case "selectordinal":
3526
3563
  case "select": {
3527
- var w = this.clonePosition();
3564
+ var H = this.clonePosition();
3528
3565
  if (this.bumpSpace(), !this.bumpIf(","))
3529
- return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, g(w, v({}, w)));
3566
+ return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, g(H, v({}, H)));
3530
3567
  this.bumpSpace();
3531
- var M = this.parseIdentifierIfPossible(), O = 0;
3532
- if (o !== "select" && M.value === "offset") {
3568
+ var R = this.parseIdentifierIfPossible(), I = 0;
3569
+ if (a !== "select" && R.value === "offset") {
3533
3570
  if (!this.bumpIf(":"))
3534
3571
  return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g(this.clonePosition(), this.clonePosition()));
3535
3572
  this.bumpSpace();
3536
3573
  var c = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3537
3574
  if (c.err)
3538
3575
  return c;
3539
- this.bumpSpace(), M = this.parseIdentifierIfPossible(), O = c.val;
3576
+ this.bumpSpace(), R = this.parseIdentifierIfPossible(), I = c.val;
3540
3577
  }
3541
- var R = this.tryParsePluralOrSelectOptions(t, o, r, M);
3542
- if (R.err)
3543
- return R;
3578
+ var $ = this.tryParsePluralOrSelectOptions(t, a, r, R);
3579
+ if ($.err)
3580
+ return $;
3544
3581
  var b = this.tryParseArgumentClose(i);
3545
3582
  if (b.err)
3546
3583
  return b;
3547
3584
  var E = g(i, this.clonePosition());
3548
- return o === "select" ? {
3585
+ return a === "select" ? {
3549
3586
  val: {
3550
3587
  type: x.select,
3551
3588
  value: n,
3552
- options: vt(R.val),
3589
+ options: Ht($.val),
3553
3590
  location: E
3554
3591
  },
3555
3592
  err: null
@@ -3557,16 +3594,16 @@ var Kn = (
3557
3594
  val: {
3558
3595
  type: x.plural,
3559
3596
  value: n,
3560
- options: vt(R.val),
3561
- offset: O,
3562
- pluralType: o === "plural" ? "cardinal" : "ordinal",
3597
+ options: Ht($.val),
3598
+ offset: I,
3599
+ pluralType: a === "plural" ? "cardinal" : "ordinal",
3563
3600
  location: E
3564
3601
  },
3565
3602
  err: null
3566
3603
  };
3567
3604
  }
3568
3605
  default:
3569
- return this.error(y.INVALID_ARGUMENT_TYPE, g(a, l));
3606
+ return this.error(y.INVALID_ARGUMENT_TYPE, g(o, l));
3570
3607
  }
3571
3608
  }, e.prototype.tryParseArgumentClose = function(t) {
3572
3609
  return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, g(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
@@ -3608,21 +3645,21 @@ var Kn = (
3608
3645
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3609
3646
  var n = [];
3610
3647
  try {
3611
- n = Ln(t);
3612
- } catch {
3648
+ n = Vn(t);
3649
+ } catch (i) {
3613
3650
  return this.error(y.INVALID_NUMBER_SKELETON, r);
3614
3651
  }
3615
3652
  return {
3616
3653
  val: {
3617
- type: ee.number,
3654
+ type: te.number,
3618
3655
  tokens: n,
3619
3656
  location: r,
3620
- parsedOptions: this.shouldParseSkeletons ? $n(n) : {}
3657
+ parsedOptions: this.shouldParseSkeletons ? qn(n) : {}
3621
3658
  },
3622
3659
  err: null
3623
3660
  };
3624
3661
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
3625
- for (var s, a = !1, o = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
3662
+ for (var s, o = !1, a = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
3626
3663
  if (u.length === 0) {
3627
3664
  var c = this.clonePosition();
3628
3665
  if (r !== "select" && this.bumpIf("=")) {
@@ -3635,7 +3672,7 @@ var Kn = (
3635
3672
  }
3636
3673
  if (l.has(u))
3637
3674
  return this.error(r === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
3638
- u === "other" && (a = !0), this.bumpSpace();
3675
+ u === "other" && (o = !0), this.bumpSpace();
3639
3676
  var p = this.clonePosition();
3640
3677
  if (!this.bumpIf("{"))
3641
3678
  return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, g(this.clonePosition(), this.clonePosition()));
@@ -3645,7 +3682,7 @@ var Kn = (
3645
3682
  var _ = this.tryParseArgumentClose(p);
3646
3683
  if (_.err)
3647
3684
  return _;
3648
- o.push([
3685
+ a.push([
3649
3686
  u,
3650
3687
  {
3651
3688
  value: b.val,
@@ -3653,19 +3690,19 @@ var Kn = (
3653
3690
  }
3654
3691
  ]), l.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
3655
3692
  }
3656
- return o.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, g(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(y.MISSING_OTHER_CLAUSE, g(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
3693
+ return a.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, g(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(y.MISSING_OTHER_CLAUSE, g(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3657
3694
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
3658
3695
  var n = 1, i = this.clonePosition();
3659
3696
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
3660
- for (var s = !1, a = 0; !this.isEOF(); ) {
3661
- var o = this.char();
3662
- if (o >= 48 && o <= 57)
3663
- s = !0, a = a * 10 + (o - 48), this.bump();
3697
+ for (var s = !1, o = 0; !this.isEOF(); ) {
3698
+ var a = this.char();
3699
+ if (a >= 48 && a <= 57)
3700
+ s = !0, o = o * 10 + (a - 48), this.bump();
3664
3701
  else
3665
3702
  break;
3666
3703
  }
3667
3704
  var l = g(i, this.clonePosition());
3668
- return s ? (a *= n, Zn(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
3705
+ return s ? (o *= n, oi(o) ? { val: o, err: null } : this.error(r, l)) : this.error(t, l);
3669
3706
  }, e.prototype.offset = function() {
3670
3707
  return this.position.offset;
3671
3708
  }, e.prototype.isEOF = function() {
@@ -3680,7 +3717,7 @@ var Kn = (
3680
3717
  var t = this.position.offset;
3681
3718
  if (t >= this.message.length)
3682
3719
  throw Error("out of bound");
3683
- var r = or(this.message, t);
3720
+ var r = cr(this.message, t);
3684
3721
  if (r === void 0)
3685
3722
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3686
3723
  return r;
@@ -3699,7 +3736,7 @@ var Kn = (
3699
3736
  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);
3700
3737
  }
3701
3738
  }, e.prototype.bumpIf = function(t) {
3702
- if (_t(this.message, t, this.offset())) {
3739
+ if (Tt(this.message, t, this.offset())) {
3703
3740
  for (var r = 0; r < t.length; r++)
3704
3741
  this.bump();
3705
3742
  return !0;
@@ -3721,56 +3758,56 @@ var Kn = (
3721
3758
  break;
3722
3759
  }
3723
3760
  }, e.prototype.bumpSpace = function() {
3724
- for (; !this.isEOF() && ur(this.char()); )
3761
+ for (; !this.isEOF() && pr(this.char()); )
3725
3762
  this.bump();
3726
3763
  }, e.prototype.peek = function() {
3727
3764
  if (this.isEOF())
3728
3765
  return null;
3729
3766
  var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
3730
- return n ?? null;
3767
+ return n != null ? n : null;
3731
3768
  }, e;
3732
3769
  }()
3733
3770
  );
3734
- function Ze(e) {
3771
+ function Je(e) {
3735
3772
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3736
3773
  }
3737
- function ei(e) {
3738
- return Ze(e) || e === 47;
3774
+ function fi(e) {
3775
+ return Je(e) || e === 47;
3739
3776
  }
3740
- function ti(e) {
3777
+ function ci(e) {
3741
3778
  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;
3742
3779
  }
3743
- function ur(e) {
3780
+ function pr(e) {
3744
3781
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3745
3782
  }
3746
- function ri(e) {
3783
+ function di(e) {
3747
3784
  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;
3748
3785
  }
3749
- function Qe(e) {
3786
+ function Ye(e) {
3750
3787
  e.forEach(function(t) {
3751
- if (delete t.location, Yt(t) || Kt(t))
3788
+ if (delete t.location, ir(t) || sr(t))
3752
3789
  for (var r in t.options)
3753
- delete t.options[r].location, Qe(t.options[r].value);
3754
- else Zt(t) && tr(t.style) || (Qt(t) || Jt(t)) && Xe(t.style) ? delete t.style.location : er(t) && Qe(t.children);
3790
+ delete t.options[r].location, Ye(t.options[r].value);
3791
+ else tr(t) && ar(t.style) || (rr(t) || nr(t)) && ze(t.style) ? delete t.style.location : or(t) && Ye(t.children);
3755
3792
  });
3756
3793
  }
3757
- function ni(e, t) {
3794
+ function pi(e, t) {
3758
3795
  t === void 0 && (t = {}), t = v({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3759
- var r = new Kn(e, t).parse();
3796
+ var r = new hi(e, t).parse();
3760
3797
  if (r.err) {
3761
3798
  var n = SyntaxError(y[r.err.kind]);
3762
3799
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3763
3800
  }
3764
- return t?.captureLocation || Qe(r.val), r.val;
3801
+ return t != null && t.captureLocation || Ye(r.val), r.val;
3765
3802
  }
3766
- var te;
3803
+ var re;
3767
3804
  (function(e) {
3768
3805
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3769
- })(te || (te = {}));
3770
- var Be = (
3806
+ })(re || (re = {}));
3807
+ var Pe = (
3771
3808
  /** @class */
3772
3809
  function(e) {
3773
- G(t, e);
3810
+ F(t, e);
3774
3811
  function t(r, n, i) {
3775
3812
  var s = e.call(this, r) || this;
3776
3813
  return s.code = n, s.originalMessage = i, s;
@@ -3779,155 +3816,155 @@ var Be = (
3779
3816
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3780
3817
  }, t;
3781
3818
  }(Error)
3782
- ), xt = (
3819
+ ), Pt = (
3783
3820
  /** @class */
3784
3821
  function(e) {
3785
- G(t, e);
3822
+ F(t, e);
3786
3823
  function t(r, n, i, s) {
3787
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), te.INVALID_VALUE, s) || this;
3824
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), re.INVALID_VALUE, s) || this;
3788
3825
  }
3789
3826
  return t;
3790
- }(Be)
3791
- ), ii = (
3827
+ }(Pe)
3828
+ ), mi = (
3792
3829
  /** @class */
3793
3830
  function(e) {
3794
- G(t, e);
3831
+ F(t, e);
3795
3832
  function t(r, n, i) {
3796
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), te.INVALID_VALUE, i) || this;
3833
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), re.INVALID_VALUE, i) || this;
3797
3834
  }
3798
3835
  return t;
3799
- }(Be)
3800
- ), si = (
3836
+ }(Pe)
3837
+ ), bi = (
3801
3838
  /** @class */
3802
3839
  function(e) {
3803
- G(t, e);
3840
+ F(t, e);
3804
3841
  function t(r, n) {
3805
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), te.MISSING_VALUE, n) || this;
3842
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), re.MISSING_VALUE, n) || this;
3806
3843
  }
3807
3844
  return t;
3808
- }(Be)
3809
- ), T;
3845
+ }(Pe)
3846
+ ), B;
3810
3847
  (function(e) {
3811
3848
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3812
- })(T || (T = {}));
3813
- function oi(e) {
3849
+ })(B || (B = {}));
3850
+ function yi(e) {
3814
3851
  return e.length < 2 ? e : e.reduce(function(t, r) {
3815
3852
  var n = t[t.length - 1];
3816
- return !n || n.type !== T.literal || r.type !== T.literal ? t.push(r) : n.value += r.value, t;
3853
+ return !n || n.type !== B.literal || r.type !== B.literal ? t.push(r) : n.value += r.value, t;
3817
3854
  }, []);
3818
3855
  }
3819
- function ai(e) {
3856
+ function gi(e) {
3820
3857
  return typeof e == "function";
3821
3858
  }
3822
- function ve(e, t, r, n, i, s, a) {
3823
- if (e.length === 1 && mt(e[0]))
3859
+ function Ee(e, t, r, n, i, s, o) {
3860
+ if (e.length === 1 && Et(e[0]))
3824
3861
  return [
3825
3862
  {
3826
- type: T.literal,
3863
+ type: B.literal,
3827
3864
  value: e[0].value
3828
3865
  }
3829
3866
  ];
3830
- for (var o = [], l = 0, u = e; l < u.length; l++) {
3867
+ for (var a = [], l = 0, u = e; l < u.length; l++) {
3831
3868
  var h = u[l];
3832
- if (mt(h)) {
3833
- o.push({
3834
- type: T.literal,
3869
+ if (Et(h)) {
3870
+ a.push({
3871
+ type: B.literal,
3835
3872
  value: h.value
3836
3873
  });
3837
3874
  continue;
3838
3875
  }
3839
- if (An(h)) {
3840
- typeof s == "number" && o.push({
3841
- type: T.literal,
3876
+ if (Gn(h)) {
3877
+ typeof s == "number" && a.push({
3878
+ type: B.literal,
3842
3879
  value: r.getNumberFormat(t).format(s)
3843
3880
  });
3844
3881
  continue;
3845
3882
  }
3846
3883
  var c = h.value;
3847
3884
  if (!(i && c in i))
3848
- throw new si(c, a);
3885
+ throw new bi(c, o);
3849
3886
  var f = i[c];
3850
- if (Pn(h)) {
3851
- (!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), o.push({
3852
- type: typeof f == "string" ? T.literal : T.object,
3887
+ if (Un(h)) {
3888
+ (!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
3889
+ type: typeof f == "string" ? B.literal : B.object,
3853
3890
  value: f
3854
3891
  });
3855
3892
  continue;
3856
3893
  }
3857
- if (Qt(h)) {
3858
- var p = typeof h.style == "string" ? n.date[h.style] : Xe(h.style) ? h.style.parsedOptions : void 0;
3859
- o.push({
3860
- type: T.literal,
3894
+ if (rr(h)) {
3895
+ var p = typeof h.style == "string" ? n.date[h.style] : ze(h.style) ? h.style.parsedOptions : void 0;
3896
+ a.push({
3897
+ type: B.literal,
3861
3898
  value: r.getDateTimeFormat(t, p).format(f)
3862
3899
  });
3863
3900
  continue;
3864
3901
  }
3865
- if (Jt(h)) {
3866
- var p = typeof h.style == "string" ? n.time[h.style] : Xe(h.style) ? h.style.parsedOptions : n.time.medium;
3867
- o.push({
3868
- type: T.literal,
3902
+ if (nr(h)) {
3903
+ var p = typeof h.style == "string" ? n.time[h.style] : ze(h.style) ? h.style.parsedOptions : n.time.medium;
3904
+ a.push({
3905
+ type: B.literal,
3869
3906
  value: r.getDateTimeFormat(t, p).format(f)
3870
3907
  });
3871
3908
  continue;
3872
3909
  }
3873
- if (Zt(h)) {
3874
- var p = typeof h.style == "string" ? n.number[h.style] : tr(h.style) ? h.style.parsedOptions : void 0;
3875
- p && p.scale && (f = f * (p.scale || 1)), o.push({
3876
- type: T.literal,
3910
+ if (tr(h)) {
3911
+ var p = typeof h.style == "string" ? n.number[h.style] : ar(h.style) ? h.style.parsedOptions : void 0;
3912
+ p && p.scale && (f = f * (p.scale || 1)), a.push({
3913
+ type: B.literal,
3877
3914
  value: r.getNumberFormat(t, p).format(f)
3878
3915
  });
3879
3916
  continue;
3880
3917
  }
3881
- if (er(h)) {
3918
+ if (or(h)) {
3882
3919
  var b = h.children, _ = h.value, S = i[_];
3883
- if (!ai(S))
3884
- throw new ii(_, "function", a);
3885
- var A = ve(b, t, r, n, i, s), H = S(A.map(function(O) {
3886
- return O.value;
3920
+ if (!gi(S))
3921
+ throw new mi(_, "function", o);
3922
+ var O = Ee(b, t, r, n, i, s), P = S(O.map(function(I) {
3923
+ return I.value;
3887
3924
  }));
3888
- Array.isArray(H) || (H = [H]), o.push.apply(o, H.map(function(O) {
3925
+ Array.isArray(P) || (P = [P]), a.push.apply(a, P.map(function(I) {
3889
3926
  return {
3890
- type: typeof O == "string" ? T.literal : T.object,
3891
- value: O
3927
+ type: typeof I == "string" ? B.literal : B.object,
3928
+ value: I
3892
3929
  };
3893
3930
  }));
3894
3931
  }
3895
- if (Yt(h)) {
3896
- var w = h.options[f] || h.options.other;
3897
- if (!w)
3898
- throw new xt(h.value, f, Object.keys(h.options), a);
3899
- o.push.apply(o, ve(w.value, t, r, n, i));
3932
+ if (ir(h)) {
3933
+ var H = h.options[f] || h.options.other;
3934
+ if (!H)
3935
+ throw new Pt(h.value, f, Object.keys(h.options), o);
3936
+ a.push.apply(a, Ee(H.value, t, r, n, i));
3900
3937
  continue;
3901
3938
  }
3902
- if (Kt(h)) {
3903
- var w = h.options["=".concat(f)];
3904
- if (!w) {
3939
+ if (sr(h)) {
3940
+ var H = h.options["=".concat(f)];
3941
+ if (!H) {
3905
3942
  if (!Intl.PluralRules)
3906
- throw new Be(`Intl.PluralRules is not available in this environment.
3943
+ throw new Pe(`Intl.PluralRules is not available in this environment.
3907
3944
  Try polyfilling it using "@formatjs/intl-pluralrules"
3908
- `, te.MISSING_INTL_API, a);
3909
- var M = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
3910
- w = h.options[M] || h.options.other;
3945
+ `, re.MISSING_INTL_API, o);
3946
+ var R = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
3947
+ H = h.options[R] || h.options.other;
3911
3948
  }
3912
- if (!w)
3913
- throw new xt(h.value, f, Object.keys(h.options), a);
3914
- o.push.apply(o, ve(w.value, t, r, n, i, f - (h.offset || 0)));
3949
+ if (!H)
3950
+ throw new Pt(h.value, f, Object.keys(h.options), o);
3951
+ a.push.apply(a, Ee(H.value, t, r, n, i, f - (h.offset || 0)));
3915
3952
  continue;
3916
3953
  }
3917
3954
  }
3918
- return oi(o);
3955
+ return yi(a);
3919
3956
  }
3920
- function ui(e, t) {
3957
+ function _i(e, t) {
3921
3958
  return t ? v(v(v({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3922
3959
  return r[n] = v(v({}, e[n]), t[n] || {}), r;
3923
3960
  }, {})) : e;
3924
3961
  }
3925
- function li(e, t) {
3962
+ function vi(e, t) {
3926
3963
  return t ? Object.keys(e).reduce(function(r, n) {
3927
- return r[n] = ui(e[n], t[n]), r;
3964
+ return r[n] = _i(e[n], t[n]), r;
3928
3965
  }, v({}, e)) : e;
3929
3966
  }
3930
- function Me(e) {
3967
+ function $e(e) {
3931
3968
  return {
3932
3969
  create: function() {
3933
3970
  return {
@@ -3941,39 +3978,39 @@ function Me(e) {
3941
3978
  }
3942
3979
  };
3943
3980
  }
3944
- function hi(e) {
3981
+ function Ei(e) {
3945
3982
  return e === void 0 && (e = {
3946
3983
  number: {},
3947
3984
  dateTime: {},
3948
3985
  pluralRules: {}
3949
3986
  }), {
3950
- getNumberFormat: Ce(function() {
3987
+ getNumberFormat: Ne(function() {
3951
3988
  for (var t, r = [], n = 0; n < arguments.length; n++)
3952
3989
  r[n] = arguments[n];
3953
- return new ((t = Intl.NumberFormat).bind.apply(t, Y([void 0], r, !1)))();
3990
+ return new ((t = Intl.NumberFormat).bind.apply(t, K([void 0], r, !1)))();
3954
3991
  }, {
3955
- cache: Me(e.number),
3956
- strategy: Le.variadic
3992
+ cache: $e(e.number),
3993
+ strategy: Me.variadic
3957
3994
  }),
3958
- getDateTimeFormat: Ce(function() {
3995
+ getDateTimeFormat: Ne(function() {
3959
3996
  for (var t, r = [], n = 0; n < arguments.length; n++)
3960
3997
  r[n] = arguments[n];
3961
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Y([void 0], r, !1)))();
3998
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, K([void 0], r, !1)))();
3962
3999
  }, {
3963
- cache: Me(e.dateTime),
3964
- strategy: Le.variadic
4000
+ cache: $e(e.dateTime),
4001
+ strategy: Me.variadic
3965
4002
  }),
3966
- getPluralRules: Ce(function() {
4003
+ getPluralRules: Ne(function() {
3967
4004
  for (var t, r = [], n = 0; n < arguments.length; n++)
3968
4005
  r[n] = arguments[n];
3969
- return new ((t = Intl.PluralRules).bind.apply(t, Y([void 0], r, !1)))();
4006
+ return new ((t = Intl.PluralRules).bind.apply(t, K([void 0], r, !1)))();
3970
4007
  }, {
3971
- cache: Me(e.pluralRules),
3972
- strategy: Le.variadic
4008
+ cache: $e(e.pluralRules),
4009
+ strategy: Me.variadic
3973
4010
  })
3974
4011
  };
3975
4012
  }
3976
- var fi = (
4013
+ var xi = (
3977
4014
  /** @class */
3978
4015
  function() {
3979
4016
  function e(t, r, n, i) {
@@ -3988,11 +4025,11 @@ var fi = (
3988
4025
  if (u.length === 1)
3989
4026
  return u[0].value;
3990
4027
  var h = u.reduce(function(c, f) {
3991
- return !c.length || f.type !== T.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
4028
+ return !c.length || f.type !== B.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
3992
4029
  }, []);
3993
4030
  return h.length <= 1 ? h[0] || "" : h;
3994
4031
  }, this.formatToParts = function(l) {
3995
- return ve(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
4032
+ return Ee(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
3996
4033
  }, this.resolvedOptions = function() {
3997
4034
  var l;
3998
4035
  return {
@@ -4003,15 +4040,15 @@ var fi = (
4003
4040
  }, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
4004
4041
  if (this.message = t, !e.__parse)
4005
4042
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
4006
- var a = i || {};
4007
- a.formatters;
4008
- var o = jr(a, ["formatters"]);
4009
- this.ast = e.__parse(t, v(v({}, o), { locale: this.resolvedLocale }));
4043
+ var o = i || {};
4044
+ o.formatters;
4045
+ var a = Kr(o, ["formatters"]);
4046
+ this.ast = e.__parse(t, v(v({}, a), { locale: this.resolvedLocale }));
4010
4047
  } else
4011
4048
  this.ast = t;
4012
4049
  if (!Array.isArray(this.ast))
4013
4050
  throw new TypeError("A message must be provided as a String or AST.");
4014
- this.formats = li(e.formats, n), this.formatters = i && i.formatters || hi(this.formatterCache);
4051
+ this.formats = vi(e.formats, n), this.formatters = i && i.formatters || Ei(this.formatterCache);
4015
4052
  }
4016
4053
  return Object.defineProperty(e, "defaultLocale", {
4017
4054
  get: function() {
@@ -4020,11 +4057,11 @@ var fi = (
4020
4057
  enumerable: !1,
4021
4058
  configurable: !0
4022
4059
  }), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
4023
- if (!(typeof Intl.Locale > "u")) {
4060
+ if (typeof Intl.Locale != "undefined") {
4024
4061
  var r = Intl.NumberFormat.supportedLocalesOf(t);
4025
4062
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
4026
4063
  }
4027
- }, e.__parse = ni, e.formats = {
4064
+ }, e.__parse = pi, e.formats = {
4028
4065
  number: {
4029
4066
  integer: {
4030
4067
  maximumFractionDigits: 0
@@ -4085,7 +4122,7 @@ var fi = (
4085
4122
  }, e;
4086
4123
  }()
4087
4124
  );
4088
- function ci(e, t) {
4125
+ function Si(e, t) {
4089
4126
  if (t == null)
4090
4127
  return;
4091
4128
  if (t in e)
@@ -4106,92 +4143,92 @@ function ci(e, t) {
4106
4143
  n = void 0;
4107
4144
  return n;
4108
4145
  }
4109
- const F = {}, di = (e, t, r) => r && (t in F || (F[t] = {}), e in F[t] || (F[t][e] = r), r), lr = (e, t) => {
4146
+ const j = {}, wi = (e, t, r) => r && (t in j || (j[t] = {}), e in j[t] || (j[t][e] = r), r), mr = (e, t) => {
4110
4147
  if (t == null)
4111
4148
  return;
4112
- if (t in F && e in F[t])
4113
- return F[t][e];
4114
- const r = Pe(t);
4149
+ if (t in j && e in j[t])
4150
+ return j[t][e];
4151
+ const r = Ae(t);
4115
4152
  for (let n = 0; n < r.length; n++) {
4116
- const i = r[n], s = mi(i, e);
4153
+ const i = r[n], s = Hi(i, e);
4117
4154
  if (s)
4118
- return di(e, t, s);
4155
+ return wi(e, t, s);
4119
4156
  }
4120
4157
  };
4121
- let tt;
4122
- const ce = He({});
4123
- function pi(e) {
4124
- return tt[e] || null;
4158
+ let nt;
4159
+ const de = Be({});
4160
+ function Ti(e) {
4161
+ return nt[e] || null;
4125
4162
  }
4126
- function hr(e) {
4127
- return e in tt;
4163
+ function br(e) {
4164
+ return e in nt;
4128
4165
  }
4129
- function mi(e, t) {
4130
- if (!hr(e))
4166
+ function Hi(e, t) {
4167
+ if (!br(e))
4131
4168
  return null;
4132
- const r = pi(e);
4133
- return ci(r, t);
4169
+ const r = Ti(e);
4170
+ return Si(r, t);
4134
4171
  }
4135
- function bi(e) {
4172
+ function Bi(e) {
4136
4173
  if (e == null)
4137
4174
  return;
4138
- const t = Pe(e);
4175
+ const t = Ae(e);
4139
4176
  for (let r = 0; r < t.length; r++) {
4140
4177
  const n = t[r];
4141
- if (hr(n))
4178
+ if (br(n))
4142
4179
  return n;
4143
4180
  }
4144
4181
  }
4145
- function fr(e, ...t) {
4146
- delete F[e], ce.update((r) => (r[e] = vn.all([r[e] || {}, ...t]), r));
4182
+ function yr(e, ...t) {
4183
+ delete j[e], de.update((r) => (r[e] = In.all([r[e] || {}, ...t]), r));
4147
4184
  }
4148
- ne(
4149
- [ce],
4185
+ ie(
4186
+ [de],
4150
4187
  ([e]) => Object.keys(e)
4151
4188
  );
4152
- ce.subscribe((e) => tt = e);
4153
- const Ee = {};
4154
- function yi(e, t) {
4155
- Ee[e].delete(t), Ee[e].size === 0 && delete Ee[e];
4189
+ de.subscribe((e) => nt = e);
4190
+ const xe = {};
4191
+ function Pi(e, t) {
4192
+ xe[e].delete(t), xe[e].size === 0 && delete xe[e];
4156
4193
  }
4157
- function cr(e) {
4158
- return Ee[e];
4194
+ function gr(e) {
4195
+ return xe[e];
4159
4196
  }
4160
- function gi(e) {
4161
- return Pe(e).map((t) => {
4162
- const r = cr(t);
4197
+ function Ai(e) {
4198
+ return Ae(e).map((t) => {
4199
+ const r = gr(t);
4163
4200
  return [t, r ? [...r] : []];
4164
4201
  }).filter(([, t]) => t.length > 0);
4165
4202
  }
4166
- function Je(e) {
4167
- return e == null ? !1 : Pe(e).some(
4203
+ function Ke(e) {
4204
+ return e == null ? !1 : Ae(e).some(
4168
4205
  (t) => {
4169
4206
  var r;
4170
- return (r = cr(t)) == null ? void 0 : r.size;
4207
+ return (r = gr(t)) == null ? void 0 : r.size;
4171
4208
  }
4172
4209
  );
4173
4210
  }
4174
- function _i(e, t) {
4211
+ function Oi(e, t) {
4175
4212
  return Promise.all(
4176
- t.map((n) => (yi(e, n), n().then((i) => i.default || i)))
4177
- ).then((n) => fr(e, ...n));
4178
- }
4179
- const oe = {};
4180
- function dr(e) {
4181
- if (!Je(e))
4182
- return e in oe ? oe[e] : Promise.resolve();
4183
- const t = gi(e);
4184
- return oe[e] = Promise.all(
4213
+ t.map((n) => (Pi(e, n), n().then((i) => i.default || i)))
4214
+ ).then((n) => yr(e, ...n));
4215
+ }
4216
+ const ae = {};
4217
+ function _r(e) {
4218
+ if (!Ke(e))
4219
+ return e in ae ? ae[e] : Promise.resolve();
4220
+ const t = Ai(e);
4221
+ return ae[e] = Promise.all(
4185
4222
  t.map(
4186
- ([r, n]) => _i(r, n)
4223
+ ([r, n]) => Oi(r, n)
4187
4224
  )
4188
4225
  ).then(() => {
4189
- if (Je(e))
4190
- return dr(e);
4191
- delete oe[e];
4192
- }), oe[e];
4226
+ if (Ke(e))
4227
+ return _r(e);
4228
+ delete ae[e];
4229
+ }), ae[e];
4193
4230
  }
4194
- const vi = {
4231
+ const Ii = {
4195
4232
  number: {
4196
4233
  scientific: { notation: "scientific" },
4197
4234
  engineering: { notation: "engineering" },
@@ -4220,159 +4257,159 @@ const vi = {
4220
4257
  timeZoneName: "short"
4221
4258
  }
4222
4259
  }
4223
- }, Ei = {
4260
+ }, Ci = {
4224
4261
  fallbackLocale: null,
4225
4262
  loadingDelay: 200,
4226
- formats: vi,
4263
+ formats: Ii,
4227
4264
  warnOnMissingMessages: !0,
4228
4265
  handleMissingMessage: void 0,
4229
4266
  ignoreTag: !0
4230
- }, xi = Ei;
4231
- function re() {
4232
- return xi;
4267
+ }, Li = Ci;
4268
+ function ne() {
4269
+ return Li;
4233
4270
  }
4234
- const Re = He(!1);
4235
- var Si = Object.defineProperty, wi = Object.defineProperties, Ti = Object.getOwnPropertyDescriptors, St = Object.getOwnPropertySymbols, Hi = Object.prototype.hasOwnProperty, Bi = Object.prototype.propertyIsEnumerable, wt = (e, t, r) => t in e ? Si(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Pi = (e, t) => {
4271
+ const De = Be(!1);
4272
+ var Ni = Object.defineProperty, Mi = Object.defineProperties, Ri = Object.getOwnPropertyDescriptors, At = Object.getOwnPropertySymbols, $i = Object.prototype.hasOwnProperty, Di = Object.prototype.propertyIsEnumerable, Ot = (e, t, r) => t in e ? Ni(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ui = (e, t) => {
4236
4273
  for (var r in t)
4237
- Hi.call(t, r) && wt(e, r, t[r]);
4238
- if (St)
4239
- for (var r of St(t))
4240
- Bi.call(t, r) && wt(e, r, t[r]);
4274
+ $i.call(t, r) && Ot(e, r, t[r]);
4275
+ if (At)
4276
+ for (var r of At(t))
4277
+ Di.call(t, r) && Ot(e, r, t[r]);
4241
4278
  return e;
4242
- }, Ai = (e, t) => wi(e, Ti(t));
4243
- let Ye;
4244
- const xe = He(null);
4245
- function Tt(e) {
4279
+ }, Gi = (e, t) => Mi(e, Ri(t));
4280
+ let et;
4281
+ const Se = Be(null);
4282
+ function It(e) {
4246
4283
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
4247
4284
  }
4248
- function Pe(e, t = re().fallbackLocale) {
4249
- const r = Tt(e);
4250
- return t ? [.../* @__PURE__ */ new Set([...r, ...Tt(t)])] : r;
4285
+ function Ae(e, t = ne().fallbackLocale) {
4286
+ const r = It(e);
4287
+ return t ? [.../* @__PURE__ */ new Set([...r, ...It(t)])] : r;
4251
4288
  }
4252
- function W() {
4253
- return Ye ?? void 0;
4289
+ function z() {
4290
+ return et != null ? et : void 0;
4254
4291
  }
4255
- xe.subscribe((e) => {
4256
- Ye = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
4292
+ Se.subscribe((e) => {
4293
+ et = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
4257
4294
  });
4258
- const Oi = (e) => {
4259
- if (e && bi(e) && Je(e)) {
4260
- const { loadingDelay: t } = re();
4295
+ const Fi = (e) => {
4296
+ if (e && Bi(e) && Ke(e)) {
4297
+ const { loadingDelay: t } = ne();
4261
4298
  let r;
4262
- return typeof window < "u" && W() != null && t ? r = window.setTimeout(
4263
- () => Re.set(!0),
4299
+ return typeof window != "undefined" && z() != null && t ? r = window.setTimeout(
4300
+ () => De.set(!0),
4264
4301
  t
4265
- ) : Re.set(!0), dr(e).then(() => {
4266
- xe.set(e);
4302
+ ) : De.set(!0), _r(e).then(() => {
4303
+ Se.set(e);
4267
4304
  }).finally(() => {
4268
- clearTimeout(r), Re.set(!1);
4305
+ clearTimeout(r), De.set(!1);
4269
4306
  });
4270
4307
  }
4271
- return xe.set(e);
4272
- }, ie = Ai(Pi({}, xe), {
4273
- set: Oi
4274
- }), Ae = (e) => {
4308
+ return Se.set(e);
4309
+ }, se = Gi(Ui({}, Se), {
4310
+ set: Fi
4311
+ }), Oe = (e) => {
4275
4312
  const t = /* @__PURE__ */ Object.create(null);
4276
4313
  return (n) => {
4277
4314
  const i = JSON.stringify(n);
4278
4315
  return i in t ? t[i] : t[i] = e(n);
4279
4316
  };
4280
4317
  };
4281
- var Ii = Object.defineProperty, Se = Object.getOwnPropertySymbols, pr = Object.prototype.hasOwnProperty, mr = Object.prototype.propertyIsEnumerable, Ht = (e, t, r) => t in e ? Ii(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, rt = (e, t) => {
4318
+ var ji = Object.defineProperty, we = Object.getOwnPropertySymbols, vr = Object.prototype.hasOwnProperty, Er = Object.prototype.propertyIsEnumerable, Ct = (e, t, r) => t in e ? ji(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, it = (e, t) => {
4282
4319
  for (var r in t || (t = {}))
4283
- pr.call(t, r) && Ht(e, r, t[r]);
4284
- if (Se)
4285
- for (var r of Se(t))
4286
- mr.call(t, r) && Ht(e, r, t[r]);
4320
+ vr.call(t, r) && Ct(e, r, t[r]);
4321
+ if (we)
4322
+ for (var r of we(t))
4323
+ Er.call(t, r) && Ct(e, r, t[r]);
4287
4324
  return e;
4288
- }, se = (e, t) => {
4325
+ }, oe = (e, t) => {
4289
4326
  var r = {};
4290
4327
  for (var n in e)
4291
- pr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4292
- if (e != null && Se)
4293
- for (var n of Se(e))
4294
- t.indexOf(n) < 0 && mr.call(e, n) && (r[n] = e[n]);
4328
+ vr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4329
+ if (e != null && we)
4330
+ for (var n of we(e))
4331
+ t.indexOf(n) < 0 && Er.call(e, n) && (r[n] = e[n]);
4295
4332
  return r;
4296
4333
  };
4297
- const he = (e, t) => {
4298
- const { formats: r } = re();
4334
+ const fe = (e, t) => {
4335
+ const { formats: r } = ne();
4299
4336
  if (e in r && t in r[e])
4300
4337
  return r[e][t];
4301
4338
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
4302
- }, Ci = Ae(
4339
+ }, ki = Oe(
4303
4340
  (e) => {
4304
- var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
4341
+ var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
4305
4342
  if (r == null)
4306
4343
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
4307
- return n && (i = he("number", n)), new Intl.NumberFormat(r, i);
4344
+ return n && (i = fe("number", n)), new Intl.NumberFormat(r, i);
4308
4345
  }
4309
- ), Li = Ae(
4346
+ ), Vi = Oe(
4310
4347
  (e) => {
4311
- var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
4348
+ var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
4312
4349
  if (r == null)
4313
4350
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
4314
- return n ? i = he("date", n) : Object.keys(i).length === 0 && (i = he("date", "short")), new Intl.DateTimeFormat(r, i);
4351
+ return n ? i = fe("date", n) : Object.keys(i).length === 0 && (i = fe("date", "short")), new Intl.DateTimeFormat(r, i);
4315
4352
  }
4316
- ), Ni = Ae(
4353
+ ), Xi = Oe(
4317
4354
  (e) => {
4318
- var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
4355
+ var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
4319
4356
  if (r == null)
4320
4357
  throw new Error(
4321
4358
  '[svelte-i18n] A "locale" must be set to format time values'
4322
4359
  );
4323
- return n ? i = he("time", n) : Object.keys(i).length === 0 && (i = he("time", "short")), new Intl.DateTimeFormat(r, i);
4360
+ return n ? i = fe("time", n) : Object.keys(i).length === 0 && (i = fe("time", "short")), new Intl.DateTimeFormat(r, i);
4324
4361
  }
4325
- ), Mi = (e = {}) => {
4362
+ ), Wi = (e = {}) => {
4326
4363
  var t = e, {
4327
- locale: r = W()
4328
- } = t, n = se(t, [
4364
+ locale: r = z()
4365
+ } = t, n = oe(t, [
4329
4366
  "locale"
4330
4367
  ]);
4331
- return Ci(rt({ locale: r }, n));
4332
- }, Ri = (e = {}) => {
4368
+ return ki(it({ locale: r }, n));
4369
+ }, zi = (e = {}) => {
4333
4370
  var t = e, {
4334
- locale: r = W()
4335
- } = t, n = se(t, [
4371
+ locale: r = z()
4372
+ } = t, n = oe(t, [
4336
4373
  "locale"
4337
4374
  ]);
4338
- return Li(rt({ locale: r }, n));
4339
- }, $i = (e = {}) => {
4375
+ return Vi(it({ locale: r }, n));
4376
+ }, qi = (e = {}) => {
4340
4377
  var t = e, {
4341
- locale: r = W()
4342
- } = t, n = se(t, [
4378
+ locale: r = z()
4379
+ } = t, n = oe(t, [
4343
4380
  "locale"
4344
4381
  ]);
4345
- return Ni(rt({ locale: r }, n));
4346
- }, Di = Ae(
4382
+ return Xi(it({ locale: r }, n));
4383
+ }, Zi = Oe(
4347
4384
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
4348
- (e, t = W()) => new fi(e, t, re().formats, {
4349
- ignoreTag: re().ignoreTag
4385
+ (e, t = z()) => new xi(e, t, ne().formats, {
4386
+ ignoreTag: ne().ignoreTag
4350
4387
  })
4351
- ), Ui = (e, t = {}) => {
4388
+ ), Qi = (e, t = {}) => {
4352
4389
  var r, n, i, s;
4353
- let a = t;
4354
- typeof e == "object" && (a = e, e = a.id);
4390
+ let o = t;
4391
+ typeof e == "object" && (o = e, e = o.id);
4355
4392
  const {
4356
- values: o,
4357
- locale: l = W(),
4393
+ values: a,
4394
+ locale: l = z(),
4358
4395
  default: u
4359
- } = a;
4396
+ } = o;
4360
4397
  if (l == null)
4361
4398
  throw new Error(
4362
4399
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
4363
4400
  );
4364
- let h = lr(e, l);
4401
+ let h = mr(e, l);
4365
4402
  if (!h)
4366
- h = (s = (i = (n = (r = re()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
4403
+ h = (s = (i = (n = (r = ne()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
4367
4404
  else if (typeof h != "string")
4368
4405
  return console.warn(
4369
4406
  `[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.`
4370
4407
  ), h;
4371
- if (!o)
4408
+ if (!a)
4372
4409
  return h;
4373
4410
  let c = h;
4374
4411
  try {
4375
- c = Di(h, l).format(o);
4412
+ c = Zi(h, l).format(a);
4376
4413
  } catch (f) {
4377
4414
  f instanceof Error && console.warn(
4378
4415
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -4380,16 +4417,16 @@ const he = (e, t) => {
4380
4417
  );
4381
4418
  }
4382
4419
  return c;
4383
- }, Gi = (e, t) => $i(t).format(e), Fi = (e, t) => Ri(t).format(e), ji = (e, t) => Mi(t).format(e), ki = (e, t = W()) => lr(e, t), Vi = ne([ie, ce], () => Ui);
4384
- ne([ie], () => Gi);
4385
- ne([ie], () => Fi);
4386
- ne([ie], () => ji);
4387
- ne([ie, ce], () => ki);
4388
- window.emWidgets = { topic: rn };
4389
- const br = (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)), Xi = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4390
- function gs(e, t) {
4420
+ }, Ji = (e, t) => qi(t).format(e), Yi = (e, t) => zi(t).format(e), Ki = (e, t) => Wi(t).format(e), es = (e, t = z()) => mr(e, t), ts = ie([se, de], () => Qi);
4421
+ ie([se], () => Ji);
4422
+ ie([se], () => Yi);
4423
+ ie([se], () => Ki);
4424
+ ie([se, de], () => es);
4425
+ window.emWidgets = { topic: pn };
4426
+ const xr = (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)), rs = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4427
+ function Os(e, t) {
4391
4428
  const r = window.navigator.userAgent;
4392
- return br(r) ? t = e.filter((n) => {
4429
+ return xr(r) ? t = e.filter((n) => {
4393
4430
  if (n.gameModel && (n.gameModel.platform.includes("iPad") || n.gameModel.platform.includes("iPhone") || n.gameModel.platform.includes("Android")))
4394
4431
  return n;
4395
4432
  }) : t = e.filter((n) => {
@@ -4397,13 +4434,13 @@ function gs(e, t) {
4397
4434
  return n;
4398
4435
  }), t;
4399
4436
  }
4400
- function Bt(e, t) {
4401
- fr(e, t);
4437
+ function Lt(e, t) {
4438
+ yr(e, t);
4402
4439
  }
4403
- function Wi(e) {
4404
- ie.set(e);
4440
+ function ns(e) {
4441
+ se.set(e);
4405
4442
  }
4406
- const Pt = {
4443
+ const Nt = {
4407
4444
  en: {
4408
4445
  error: "500 Error - Internal Server Error"
4409
4446
  },
@@ -4423,7 +4460,7 @@ const Pt = {
4423
4460
  error: "500 Error - Internal Server Error"
4424
4461
  }
4425
4462
  };
4426
- if (typeof window < "u") {
4463
+ if (typeof window != "undefined") {
4427
4464
  let e = function(t) {
4428
4465
  return function(...r) {
4429
4466
  try {
@@ -4435,11 +4472,11 @@ if (typeof window < "u") {
4435
4472
  }
4436
4473
  };
4437
4474
  };
4438
- customElements.define = e(customElements.define), import("./CasinoCalendarDailyDetails-D7GkfhmR.js").then(({ default: t }) => {
4475
+ customElements.define = e(customElements.define), import("./CasinoCalendarDailyDetails-BCGdQSNl.js").then(({ default: t }) => {
4439
4476
  !customElements.get("casino-calendar-daily-details") && customElements.define("casino-calendar-daily-details", t.element);
4440
4477
  });
4441
4478
  }
4442
- if (typeof window < "u") {
4479
+ if (typeof window != "undefined") {
4443
4480
  let e = function(t) {
4444
4481
  return function(...r) {
4445
4482
  try {
@@ -4451,115 +4488,115 @@ if (typeof window < "u") {
4451
4488
  }
4452
4489
  };
4453
4490
  };
4454
- customElements.define = e(customElements.define), import("./CasinoCalendarDailyItem-CU9qMJji.js").then(({ default: t }) => {
4491
+ customElements.define = e(customElements.define), import("./CasinoCalendarDailyItem-BzgTjc6A.js").then(({ default: t }) => {
4455
4492
  !customElements.get("casino-calendar-daily-item") && customElements.define("casino-calendar-daily-item", t.element);
4456
4493
  });
4457
4494
  }
4458
- function zi(e) {
4459
- Er(e, "svelte-1bqenf9", `.CasinoCalendarItem.svelte-1bqenf9{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-1bqenf9{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-1bqenf9{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-1bqenf9{display:block;width:80px;height:80px;margin:0 auto
4495
+ function is(e) {
4496
+ Cr(e, "svelte-1bqenf9", `.CasinoCalendarItem.svelte-1bqenf9{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-1bqenf9{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-1bqenf9{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-1bqenf9{display:block;width:80px;height:80px;margin:0 auto
4460
4497
  }.LoadingSpinner.svelte-1bqenf9: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, #D0046C));border-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C)) transparent var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C)) transparent;animation:svelte-1bqenf9-LoadingSpinner 1.2s linear infinite}@keyframes svelte-1bqenf9-LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}`);
4461
4498
  }
4462
- function At(e, t, r) {
4499
+ function Mt(e, t, r) {
4463
4500
  const n = e.slice();
4464
4501
  return n[26] = t[r], n[28] = r, n;
4465
4502
  }
4466
- function qi(e) {
4467
- let t, r, n, i = ot(
4503
+ function ss(e) {
4504
+ let t, r, n, i = ct(
4468
4505
  /*calendarCollections*/
4469
4506
  e[5]
4470
4507
  ), s = [];
4471
- for (let o = 0; o < i.length; o += 1)
4472
- s[o] = Ot(At(e, i, o));
4473
- let a = (
4508
+ for (let a = 0; a < i.length; a += 1)
4509
+ s[a] = Rt(Mt(e, i, a));
4510
+ let o = (
4474
4511
  /*calendarModalOpened*/
4475
- e[10] == !0 && It(e)
4512
+ e[10] == !0 && $t(e)
4476
4513
  );
4477
4514
  return {
4478
4515
  c() {
4479
- t = N("div");
4480
- for (let o = 0; o < s.length; o += 1)
4481
- s[o].c();
4482
- r = Hr(), a && a.c(), V(t, "class", n = "CasinoCalendarItem " + /*mobileView*/
4516
+ t = M("div");
4517
+ for (let a = 0; a < s.length; a += 1)
4518
+ s[a].c();
4519
+ r = $r(), o && o.c(), X(t, "class", n = "CasinoCalendarItem " + /*mobileView*/
4483
4520
  (e[9] ? "Mobile" : "") + " svelte-1bqenf9");
4484
4521
  },
4485
- m(o, l) {
4486
- j(o, t, l);
4522
+ m(a, l) {
4523
+ k(a, t, l);
4487
4524
  for (let u = 0; u < s.length; u += 1)
4488
4525
  s[u] && s[u].m(t, null);
4489
- fe(t, r), a && a.m(t, null);
4526
+ ce(t, r), o && o.m(t, null);
4490
4527
  },
4491
- p(o, l) {
4528
+ p(a, l) {
4492
4529
  if (l & /*calendarCollections, lang, clientstyling, clientstylingurl, translationurl*/
4493
4530
  47) {
4494
- i = ot(
4531
+ i = ct(
4495
4532
  /*calendarCollections*/
4496
- o[5]
4533
+ a[5]
4497
4534
  );
4498
4535
  let u;
4499
4536
  for (u = 0; u < i.length; u += 1) {
4500
- const h = At(o, i, u);
4501
- s[u] ? s[u].p(h, l) : (s[u] = Ot(h), s[u].c(), s[u].m(t, r));
4537
+ const h = Mt(a, i, u);
4538
+ s[u] ? s[u].p(h, l) : (s[u] = Rt(h), s[u].c(), s[u].m(t, r));
4502
4539
  }
4503
4540
  for (; u < s.length; u += 1)
4504
4541
  s[u].d(1);
4505
4542
  s.length = i.length;
4506
4543
  }
4507
4544
  /*calendarModalOpened*/
4508
- o[10] == !0 ? a ? a.p(o, l) : (a = It(o), a.c(), a.m(t, null)) : a && (a.d(1), a = null), l & /*mobileView*/
4545
+ a[10] == !0 ? o ? o.p(a, l) : (o = $t(a), o.c(), o.m(t, null)) : o && (o.d(1), o = null), l & /*mobileView*/
4509
4546
  512 && n !== (n = "CasinoCalendarItem " + /*mobileView*/
4510
- (o[9] ? "Mobile" : "") + " svelte-1bqenf9") && V(t, "class", n);
4547
+ (a[9] ? "Mobile" : "") + " svelte-1bqenf9") && X(t, "class", n);
4511
4548
  },
4512
- d(o) {
4513
- o && $(t), wr(s, o), a && a.d();
4549
+ d(a) {
4550
+ a && D(t), Mr(s, a), o && o.d();
4514
4551
  }
4515
4552
  };
4516
4553
  }
4517
- function Zi(e) {
4554
+ function os(e) {
4518
4555
  let t;
4519
4556
  return {
4520
4557
  c() {
4521
- t = N("div"), V(t, "class", "LoadingSpinner svelte-1bqenf9");
4558
+ t = M("div"), X(t, "class", "LoadingSpinner svelte-1bqenf9");
4522
4559
  },
4523
4560
  m(r, n) {
4524
- j(r, t, n);
4561
+ k(r, t, n);
4525
4562
  },
4526
- p: P,
4563
+ p: A,
4527
4564
  d(r) {
4528
- r && $(t);
4565
+ r && D(t);
4529
4566
  }
4530
4567
  };
4531
4568
  }
4532
- function Qi(e) {
4569
+ function as(e) {
4533
4570
  let t, r = (
4534
4571
  /*$_*/
4535
4572
  e[11]("error") + ""
4536
4573
  ), n;
4537
4574
  return {
4538
4575
  c() {
4539
- t = N("p"), n = Ke(r), V(t, "class", "SearchLoading");
4576
+ t = M("p"), n = tt(r), X(t, "class", "SearchLoading");
4540
4577
  },
4541
4578
  m(i, s) {
4542
- j(i, t, s), fe(t, n);
4579
+ k(i, t, s), ce(t, n);
4543
4580
  },
4544
4581
  p(i, s) {
4545
4582
  s & /*$_*/
4546
4583
  2048 && r !== (r = /*$_*/
4547
- i[11]("error") + "") && Pr(n, r);
4584
+ i[11]("error") + "") && Ur(n, r);
4548
4585
  },
4549
4586
  d(i) {
4550
- i && $(t);
4587
+ i && D(t);
4551
4588
  }
4552
4589
  };
4553
4590
  }
4554
- function Ot(e) {
4555
- let t, r, n, i, s, a;
4591
+ function Rt(e) {
4592
+ let t, r, n, i, s, o;
4556
4593
  return {
4557
4594
  c() {
4558
- t = N("casino-calendar-daily-item"), m(t, "dailybackground", r = /*dailyCalendarData*/
4595
+ t = M("casino-calendar-daily-item"), m(t, "dailybackground", r = /*dailyCalendarData*/
4559
4596
  e[26].dailyBackground), m(t, "dailyicon", n = /*dailyCalendarData*/
4560
4597
  e[26].dailyIcon), m(t, "dailyday", i = /*dailyCalendarData*/
4561
4598
  e[26].dailyDay), m(t, "dailydescription", s = /*dailyCalendarData*/
4562
- e[26].dailyDescription), m(t, "dailybuttontitle", a = /*dailyCalendarData*/
4599
+ e[26].dailyDescription), m(t, "dailybuttontitle", o = /*dailyCalendarData*/
4563
4600
  e[26].dailyButtonTitle), m(
4564
4601
  t,
4565
4602
  "index",
@@ -4587,56 +4624,56 @@ function Ot(e) {
4587
4624
  e[3]
4588
4625
  );
4589
4626
  },
4590
- m(o, l) {
4591
- j(o, t, l);
4627
+ m(a, l) {
4628
+ k(a, t, l);
4592
4629
  },
4593
- p(o, l) {
4630
+ p(a, l) {
4594
4631
  l & /*calendarCollections*/
4595
4632
  32 && r !== (r = /*dailyCalendarData*/
4596
- o[26].dailyBackground) && m(t, "dailybackground", r), l & /*calendarCollections*/
4633
+ a[26].dailyBackground) && m(t, "dailybackground", r), l & /*calendarCollections*/
4597
4634
  32 && n !== (n = /*dailyCalendarData*/
4598
- o[26].dailyIcon) && m(t, "dailyicon", n), l & /*calendarCollections*/
4635
+ a[26].dailyIcon) && m(t, "dailyicon", n), l & /*calendarCollections*/
4599
4636
  32 && i !== (i = /*dailyCalendarData*/
4600
- o[26].dailyDay) && m(t, "dailyday", i), l & /*calendarCollections*/
4637
+ a[26].dailyDay) && m(t, "dailyday", i), l & /*calendarCollections*/
4601
4638
  32 && s !== (s = /*dailyCalendarData*/
4602
- o[26].dailyDescription) && m(t, "dailydescription", s), l & /*calendarCollections*/
4603
- 32 && a !== (a = /*dailyCalendarData*/
4604
- o[26].dailyButtonTitle) && m(t, "dailybuttontitle", a), l & /*lang*/
4639
+ a[26].dailyDescription) && m(t, "dailydescription", s), l & /*calendarCollections*/
4640
+ 32 && o !== (o = /*dailyCalendarData*/
4641
+ a[26].dailyButtonTitle) && m(t, "dailybuttontitle", o), l & /*lang*/
4605
4642
  1 && m(
4606
4643
  t,
4607
4644
  "lang",
4608
4645
  /*lang*/
4609
- o[0]
4646
+ a[0]
4610
4647
  ), l & /*clientstyling*/
4611
4648
  2 && m(
4612
4649
  t,
4613
4650
  "clientstyling",
4614
4651
  /*clientstyling*/
4615
- o[1]
4652
+ a[1]
4616
4653
  ), l & /*clientstylingurl*/
4617
4654
  4 && m(
4618
4655
  t,
4619
4656
  "clientstylingurl",
4620
4657
  /*clientstylingurl*/
4621
- o[2]
4658
+ a[2]
4622
4659
  ), l & /*translationurl*/
4623
4660
  8 && m(
4624
4661
  t,
4625
4662
  "translationurl",
4626
4663
  /*translationurl*/
4627
- o[3]
4664
+ a[3]
4628
4665
  );
4629
4666
  },
4630
- d(o) {
4631
- o && $(t);
4667
+ d(a) {
4668
+ a && D(t);
4632
4669
  }
4633
4670
  };
4634
4671
  }
4635
- function It(e) {
4636
- let t, r, n, i, s, a, o, l;
4672
+ function $t(e) {
4673
+ let t, r, n, i, s, o, a, l;
4637
4674
  return {
4638
4675
  c() {
4639
- t = N("div"), r = N("casino-calendar-daily-details"), m(r, "dailybackground", n = /*calendarCollections*/
4676
+ t = M("div"), r = M("casino-calendar-daily-details"), m(r, "dailybackground", n = /*calendarCollections*/
4640
4677
  e[5][
4641
4678
  /*selectedIndex*/
4642
4679
  e[6]
@@ -4648,11 +4685,11 @@ function It(e) {
4648
4685
  e[5][
4649
4686
  /*selectedIndex*/
4650
4687
  e[6]
4651
- ].dailyDay), m(r, "dailydescription", a = /*calendarCollections*/
4688
+ ].dailyDay), m(r, "dailydescription", o = /*calendarCollections*/
4652
4689
  e[5][
4653
4690
  /*selectedIndex*/
4654
4691
  e[6]
4655
- ].dailyDescription), m(r, "dailyicon", o = /*calendarCollections*/
4692
+ ].dailyDescription), m(r, "dailyicon", a = /*calendarCollections*/
4656
4693
  e[5][
4657
4694
  /*selectedIndex*/
4658
4695
  e[6]
@@ -4680,10 +4717,10 @@ function It(e) {
4680
4717
  "translationurl",
4681
4718
  /*translationurl*/
4682
4719
  e[3]
4683
- ), V(t, "class", "CalendarDetailsWrapper svelte-1bqenf9");
4720
+ ), X(t, "class", "CalendarDetailsWrapper svelte-1bqenf9");
4684
4721
  },
4685
4722
  m(u, h) {
4686
- j(u, t, h), fe(t, r);
4723
+ k(u, t, h), ce(t, r);
4687
4724
  },
4688
4725
  p(u, h) {
4689
4726
  h & /*calendarCollections, selectedIndex*/
@@ -4702,16 +4739,16 @@ function It(e) {
4702
4739
  /*selectedIndex*/
4703
4740
  u[6]
4704
4741
  ].dailyDay) && m(r, "dailyday", s), h & /*calendarCollections, selectedIndex*/
4705
- 96 && a !== (a = /*calendarCollections*/
4742
+ 96 && o !== (o = /*calendarCollections*/
4706
4743
  u[5][
4707
4744
  /*selectedIndex*/
4708
4745
  u[6]
4709
- ].dailyDescription) && m(r, "dailydescription", a), h & /*calendarCollections, selectedIndex*/
4710
- 96 && o !== (o = /*calendarCollections*/
4746
+ ].dailyDescription) && m(r, "dailydescription", o), h & /*calendarCollections, selectedIndex*/
4747
+ 96 && a !== (a = /*calendarCollections*/
4711
4748
  u[5][
4712
4749
  /*selectedIndex*/
4713
4750
  u[6]
4714
- ].dailyIcon) && m(r, "dailyicon", o), h & /*calendarCollections, selectedIndex*/
4751
+ ].dailyIcon) && m(r, "dailyicon", a), h & /*calendarCollections, selectedIndex*/
4715
4752
  96 && l !== (l = /*calendarCollections*/
4716
4753
  u[5][
4717
4754
  /*selectedIndex*/
@@ -4743,80 +4780,82 @@ function It(e) {
4743
4780
  );
4744
4781
  },
4745
4782
  d(u) {
4746
- u && $(t);
4783
+ u && D(t);
4747
4784
  }
4748
4785
  };
4749
4786
  }
4750
- function Ji(e) {
4787
+ function us(e) {
4751
4788
  let t;
4752
- function r(s, a) {
4789
+ function r(s, o) {
4790
+ var a;
4753
4791
  if (
4754
4792
  /*hasErrors*/
4755
4793
  s[8]
4756
- ) return Qi;
4794
+ ) return as;
4757
4795
  if (
4758
4796
  /*isLoading*/
4759
4797
  s[7]
4760
- ) return Zi;
4798
+ ) return os;
4761
4799
  if (
4762
4800
  /*calendarCollections*/
4763
- s[5]?.length
4764
- ) return qi;
4801
+ (a = s[5]) != null && a.length
4802
+ ) return ss;
4765
4803
  }
4766
4804
  let n = r(e), i = n && n(e);
4767
4805
  return {
4768
4806
  c() {
4769
- t = N("div"), i && i.c();
4807
+ t = M("div"), i && i.c();
4770
4808
  },
4771
- m(s, a) {
4772
- j(s, t, a), i && i.m(t, null), e[15](t);
4809
+ m(s, o) {
4810
+ k(s, t, o), i && i.m(t, null), e[15](t);
4773
4811
  },
4774
- p(s, [a]) {
4775
- n === (n = r(s)) && i ? i.p(s, a) : (i && i.d(1), i = n && n(s), i && (i.c(), i.m(t, null)));
4812
+ p(s, [o]) {
4813
+ n === (n = r(s)) && i ? i.p(s, o) : (i && i.d(1), i = n && n(s), i && (i.c(), i.m(t, null)));
4776
4814
  },
4777
- i: P,
4778
- o: P,
4815
+ i: A,
4816
+ o: A,
4779
4817
  d(s) {
4780
- s && $(t), i && i.d(), e[15](null);
4818
+ s && D(t), i && i.d(), e[15](null);
4781
4819
  }
4782
4820
  };
4783
4821
  }
4784
- function Yi(e, t, r) {
4822
+ function ls(e, t, r) {
4785
4823
  let n;
4786
- vr(e, Vi, (d) => r(11, n = d));
4787
- let { cmsendpoint: i = "" } = t, { env: s = "" } = t, { userroles: a = "" } = t, { lang: o = "en" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { translationurl: h } = t, c, f, p = 0, b = !0, _ = !1, S = !1, A = window.navigator.userAgent, H = !1;
4788
- const w = () => {
4789
- Wi(o);
4824
+ Ir(e, ts, (d) => r(11, n = d));
4825
+ let { cmsendpoint: i = "" } = t, { env: s = "" } = t, { userroles: o = "" } = t, { lang: a = "en" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { translationurl: h } = t, c, f, p = 0, b = !0, _ = !1, S = !1, O = window.navigator.userAgent, P = !1;
4826
+ const H = () => {
4827
+ ns(a);
4790
4828
  };
4791
- Object.keys(Pt).forEach((d) => {
4792
- Bt(d, Pt[d]);
4829
+ Object.keys(Nt).forEach((d) => {
4830
+ Lt(d, Nt[d]);
4793
4831
  });
4794
- const M = () => {
4832
+ const R = () => {
4795
4833
  let d = h;
4796
4834
  if (d)
4797
- return fetch(d).then((B) => B.json()).then((B) => {
4798
- Object.keys(B).forEach((L) => {
4799
- Bt(L, B[L]);
4835
+ return fetch(d).then((w) => w.json()).then((w) => {
4836
+ Object.keys(w).forEach((N) => {
4837
+ Lt(N, w[N]);
4800
4838
  });
4801
- }).catch((B) => {
4802
- console.log(B);
4839
+ }).catch((w) => {
4840
+ console.log(w);
4803
4841
  });
4804
- }, O = () => {
4842
+ }, I = () => {
4805
4843
  r(7, b = !0);
4806
- let d = new URL(`${i}/${o}/daily-calendar`);
4807
- d.searchParams.append("userRoles", a), d.searchParams.append("env", s);
4808
- let B = Xi(A);
4809
- B && (B === "PC" ? d.searchParams.append("device", "dk") : B === "iPad" || B === "iPhone" ? d.searchParams.append("device", "ios") : d.searchParams.append("device", "mtWeb")), fetch(d.href).then((L) => L.json()).then((L) => {
4810
- r(5, f = L);
4811
- }).catch((L) => {
4812
- console.log(L), r(8, _ = !0);
4844
+ let d = new URL(`${i}/${a}/daily-calendar`);
4845
+ d.searchParams.append("userRoles", o), d.searchParams.append("env", s);
4846
+ let w = rs(O);
4847
+ w && (w === "PC" ? d.searchParams.append("device", "dk") : w === "iPad" || w === "iPhone" ? d.searchParams.append("device", "ios") : d.searchParams.append("device", "mtWeb")), fetch(d.href).then((N) => N.json()).then((N) => {
4848
+ r(5, f = N);
4849
+ }).catch((N) => {
4850
+ console.log(N), r(8, _ = !0);
4813
4851
  }).finally(() => {
4814
4852
  r(7, b = !1);
4815
4853
  });
4816
- }, R = () => {
4817
- O();
4854
+ }, $ = () => {
4855
+ I();
4818
4856
  }, E = (d) => {
4819
- d.data && d.data.type == "OpenCalendar" && (r(6, p = d.data.index), r(10, H = !0), window.postMessage(
4857
+ var w;
4858
+ d.data && d.data.type == "OpenCalendar" && (r(6, p = d.data.index), r(10, P = !0), window.postMessage(
4820
4859
  {
4821
4860
  type: "ShowModal",
4822
4861
  selectedIndex: p,
@@ -4825,17 +4864,17 @@ function Yi(e, t, r) {
4825
4864
  window.location.href
4826
4865
  ), window.postMessage({
4827
4866
  type: "DailyEventsData",
4828
- data: f[p]?.dailyEvents
4829
- })), d.data && d.data.type == "ModalClosed" && r(10, H = !1);
4830
- }, I = () => {
4867
+ data: (w = f[p]) == null ? void 0 : w.dailyEvents
4868
+ })), d.data && d.data.type == "ModalClosed" && r(10, P = !1);
4869
+ }, C = () => {
4831
4870
  let d = document.createElement("style");
4832
4871
  d.innerHTML = l, c.appendChild(d);
4833
- }, C = () => {
4834
- let d = new URL(u), B = document.createElement("style");
4835
- fetch(d.href).then((L) => L.text()).then((L) => {
4836
- B.innerHTML = L, setTimeout(
4872
+ }, L = () => {
4873
+ let d = new URL(u), w = document.createElement("style");
4874
+ fetch(d.href).then((N) => N.text()).then((N) => {
4875
+ w.innerHTML = N, setTimeout(
4837
4876
  () => {
4838
- c.appendChild(B);
4877
+ c.appendChild(w);
4839
4878
  },
4840
4879
  1
4841
4880
  ), setTimeout(
@@ -4845,25 +4884,25 @@ function Yi(e, t, r) {
4845
4884
  );
4846
4885
  });
4847
4886
  };
4848
- Cr(() => (window.addEventListener("message", E, !1), br(A) && r(9, S = !0), () => {
4887
+ kr(() => (window.addEventListener("message", E, !1), xr(O) && r(9, S = !0), () => {
4849
4888
  window.removeEventListener("message", E);
4850
4889
  }));
4851
- function z(d) {
4852
- $e[d ? "unshift" : "push"](() => {
4890
+ function q(d) {
4891
+ Ue[d ? "unshift" : "push"](() => {
4853
4892
  c = d, r(4, c);
4854
4893
  });
4855
4894
  }
4856
4895
  return e.$$set = (d) => {
4857
- "cmsendpoint" in d && r(12, i = d.cmsendpoint), "env" in d && r(13, s = d.env), "userroles" in d && r(14, a = d.userroles), "lang" in d && r(0, o = d.lang), "clientstyling" in d && r(1, l = d.clientstyling), "clientstylingurl" in d && r(2, u = d.clientstylingurl), "translationurl" in d && r(3, h = d.translationurl);
4896
+ "cmsendpoint" in d && r(12, i = d.cmsendpoint), "env" in d && r(13, s = d.env), "userroles" in d && r(14, o = d.userroles), "lang" in d && r(0, a = d.lang), "clientstyling" in d && r(1, l = d.clientstyling), "clientstylingurl" in d && r(2, u = d.clientstylingurl), "translationurl" in d && r(3, h = d.translationurl);
4858
4897
  }, e.$$.update = () => {
4859
4898
  e.$$.dirty & /*cmsendpoint, lang, env, userroles*/
4860
- 28673 && i && o && s && a && R(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4861
- 18 && l && c && I(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4862
- 20 && u && c && C(), e.$$.dirty & /*lang*/
4863
- 1 && o && w(), e.$$.dirty & /*lang, translationurl*/
4864
- 9 && o && h && M();
4899
+ 28673 && i && a && s && o && $(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4900
+ 18 && l && c && C(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4901
+ 20 && u && c && L(), e.$$.dirty & /*lang*/
4902
+ 1 && a && H(), e.$$.dirty & /*lang, translationurl*/
4903
+ 9 && a && h && R();
4865
4904
  }, [
4866
- o,
4905
+ a,
4867
4906
  l,
4868
4907
  u,
4869
4908
  h,
@@ -4873,22 +4912,22 @@ function Yi(e, t, r) {
4873
4912
  b,
4874
4913
  _,
4875
4914
  S,
4876
- H,
4915
+ P,
4877
4916
  n,
4878
4917
  i,
4879
4918
  s,
4880
- a,
4881
- z
4919
+ o,
4920
+ q
4882
4921
  ];
4883
4922
  }
4884
- class yr extends Gr {
4923
+ class Sr extends Jr {
4885
4924
  constructor(t) {
4886
- super(), Dr(
4925
+ super(), Zr(
4887
4926
  this,
4888
4927
  t,
4889
- Yi,
4890
- Ji,
4891
- Lt,
4928
+ ls,
4929
+ us,
4930
+ Ut,
4892
4931
  {
4893
4932
  cmsendpoint: 12,
4894
4933
  env: 13,
@@ -4898,110 +4937,110 @@ class yr extends Gr {
4898
4937
  clientstylingurl: 2,
4899
4938
  translationurl: 3
4900
4939
  },
4901
- zi
4940
+ is
4902
4941
  );
4903
4942
  }
4904
4943
  get cmsendpoint() {
4905
4944
  return this.$$.ctx[12];
4906
4945
  }
4907
4946
  set cmsendpoint(t) {
4908
- this.$$set({ cmsendpoint: t }), D();
4947
+ this.$$set({ cmsendpoint: t }), U();
4909
4948
  }
4910
4949
  get env() {
4911
4950
  return this.$$.ctx[13];
4912
4951
  }
4913
4952
  set env(t) {
4914
- this.$$set({ env: t }), D();
4953
+ this.$$set({ env: t }), U();
4915
4954
  }
4916
4955
  get userroles() {
4917
4956
  return this.$$.ctx[14];
4918
4957
  }
4919
4958
  set userroles(t) {
4920
- this.$$set({ userroles: t }), D();
4959
+ this.$$set({ userroles: t }), U();
4921
4960
  }
4922
4961
  get lang() {
4923
4962
  return this.$$.ctx[0];
4924
4963
  }
4925
4964
  set lang(t) {
4926
- this.$$set({ lang: t }), D();
4965
+ this.$$set({ lang: t }), U();
4927
4966
  }
4928
4967
  get clientstyling() {
4929
4968
  return this.$$.ctx[1];
4930
4969
  }
4931
4970
  set clientstyling(t) {
4932
- this.$$set({ clientstyling: t }), D();
4971
+ this.$$set({ clientstyling: t }), U();
4933
4972
  }
4934
4973
  get clientstylingurl() {
4935
4974
  return this.$$.ctx[2];
4936
4975
  }
4937
4976
  set clientstylingurl(t) {
4938
- this.$$set({ clientstylingurl: t }), D();
4977
+ this.$$set({ clientstylingurl: t }), U();
4939
4978
  }
4940
4979
  get translationurl() {
4941
4980
  return this.$$.ctx[3];
4942
4981
  }
4943
4982
  set translationurl(t) {
4944
- this.$$set({ translationurl: t }), D();
4983
+ this.$$set({ translationurl: t }), U();
4945
4984
  }
4946
4985
  }
4947
- Ur(yr, { cmsendpoint: {}, env: {}, userroles: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
4948
- const _s = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4986
+ Qr(Sr, { cmsendpoint: {}, env: {}, userroles: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
4987
+ const Is = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4949
4988
  __proto__: null,
4950
- default: yr
4989
+ default: Sr
4951
4990
  }, Symbol.toStringTag, { value: "Module" }));
4952
4991
  export {
4953
- ie as $,
4954
- ts as A,
4955
- Pr as B,
4956
- wr as C,
4957
- P as D,
4958
- Ki as E,
4959
- Vi as F,
4960
- Tr as G,
4961
- ss as H,
4962
- us as I,
4963
- fs as J,
4964
- Ue as K,
4965
- ls as L,
4966
- X as M,
4967
- os as N,
4968
- ce as O,
4992
+ se as $,
4993
+ ds as A,
4994
+ Ur as B,
4995
+ Mr as C,
4996
+ A as D,
4997
+ fs as E,
4998
+ ts as F,
4999
+ Rr as G,
5000
+ ys as H,
5001
+ vs as I,
5002
+ Ss as J,
5003
+ Fe as K,
5004
+ Es as L,
5005
+ W as M,
5006
+ gs as N,
5007
+ de as O,
4969
5008
  m as P,
4970
- Xi as Q,
4971
- as as R,
4972
- Gr as S,
4973
- hs as T,
4974
- cs as U,
4975
- gs as V,
4976
- ys as W,
4977
- bs as X,
4978
- is as Y,
4979
- we as Z,
4980
- _s as _,
4981
- fr as a,
4982
- Er as b,
4983
- Ur as c,
4984
- j as d,
4985
- N as e,
4986
- D as f,
4987
- ps as g,
4988
- Dt as h,
4989
- Dr as i,
4990
- $ as j,
4991
- vr as k,
4992
- ds as l,
4993
- br as m,
4994
- $e as n,
4995
- Cr as o,
4996
- es as p,
4997
- ot as q,
4998
- Hr as r,
4999
- Lt as s,
5000
- ms as t,
5001
- Ke as u,
5002
- V as v,
5003
- fe as w,
5004
- it as x,
5005
- rs as y,
5006
- ns as z
5009
+ rs as Q,
5010
+ _s as R,
5011
+ Jr as S,
5012
+ xs as T,
5013
+ ws as U,
5014
+ Os as V,
5015
+ As as W,
5016
+ Ps as X,
5017
+ bs as Y,
5018
+ Te as Z,
5019
+ Is as _,
5020
+ yr as a,
5021
+ Cr as b,
5022
+ Qr as c,
5023
+ k as d,
5024
+ M as e,
5025
+ U as f,
5026
+ Hs as g,
5027
+ Vt as h,
5028
+ Zr as i,
5029
+ D as j,
5030
+ Ir as k,
5031
+ Ts as l,
5032
+ xr as m,
5033
+ Ue as n,
5034
+ kr as o,
5035
+ cs as p,
5036
+ ct as q,
5037
+ $r as r,
5038
+ Ut as s,
5039
+ Bs as t,
5040
+ tt as u,
5041
+ X as v,
5042
+ ce as w,
5043
+ ht as x,
5044
+ ps as y,
5045
+ ms as z
5007
5046
  };