@everymatrix/casino-page 1.56.0 → 1.56.2

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