@everymatrix/casino-lobby 1.62.4 → 1.63.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/components/{CasinoCalendar-zRo_9Za0.js → CasinoCalendar-CNMPPqgx.js} +1285 -1469
  2. package/components/{CasinoCalendar-CinFtvuW.js → CasinoCalendar-DF0Pr_uv.js} +1025 -1209
  3. package/components/CasinoCalendar-DoxssdOG.cjs +19 -0
  4. package/components/{CasinoCalendarDailyDetails-qkwXMyxI.js → CasinoCalendarDailyDetails-305OBzqh.js} +1 -1
  5. package/components/{CasinoCalendarDailyDetails-Cn37GUIj.cjs → CasinoCalendarDailyDetails-DUp41baV.cjs} +1 -1
  6. package/components/{CasinoCalendarDailyDetails-DL8uHwSN.js → CasinoCalendarDailyDetails-OB1lJeYE.js} +1 -1
  7. package/components/{CasinoCalendarDailyItem-Bo9evLEj.cjs → CasinoCalendarDailyItem-B-DrlkeE.cjs} +1 -1
  8. package/components/{CasinoCalendarDailyItem-DoK3veTp.js → CasinoCalendarDailyItem-D51VouvS.js} +1 -1
  9. package/components/{CasinoCalendarDailyItem-DcqDKyz5.js → CasinoCalendarDailyItem-O-Ka4MG6.js} +1 -1
  10. package/components/{CasinoCategoriesSlider-BBVXEukg.js → CasinoCategoriesSlider-BRS5bbYT.js} +2 -2
  11. package/components/{CasinoCategoriesSlider-n2yKGzdi.cjs → CasinoCategoriesSlider-BiaZvSw4.cjs} +1 -1
  12. package/components/{CasinoCategoriesSlider-YxbN9BpC.js → CasinoCategoriesSlider-Bte1Sqxk.js} +2 -2
  13. package/components/{CasinoCollectionsProviders-CPX65G1M.cjs → CasinoCollectionsProviders-CMAAQr-q.cjs} +1 -1
  14. package/components/{CasinoCollectionsProviders-BvaxV9cb.js → CasinoCollectionsProviders-eQakUMn6.js} +1 -1
  15. package/components/{CasinoCollectionsProviders-Q0qcn7b_.js → CasinoCollectionsProviders-kaCgm3e1.js} +1 -1
  16. package/components/{CasinoFavoritesSection-Cd6MZupk.js → CasinoFavoritesSection-B2bVaaP6.js} +2 -2
  17. package/components/{CasinoFavoritesSection-xJDOrF1U.cjs → CasinoFavoritesSection-CzigR-dL.cjs} +1 -1
  18. package/components/{CasinoFavoritesSection-UQwc5GZl.js → CasinoFavoritesSection-hUEe-Tf0.js} +2 -2
  19. package/components/{CasinoFilter-DbcntrTg.js → CasinoFilter-CE3HGSQ0.js} +1 -1
  20. package/components/{CasinoFilter-DhiwjMr2.cjs → CasinoFilter-CaXIhjO3.cjs} +1 -1
  21. package/components/{CasinoFilter-ChsEa9Bx.js → CasinoFilter-g1NekVQ2.js} +1 -1
  22. package/components/CasinoGameThumbnail-DCRwj3vq.js +4360 -0
  23. package/components/CasinoGameThumbnail-DUG_Uqdj.js +4376 -0
  24. package/components/CasinoGameThumbnail-ODsH-VZ2.cjs +47 -0
  25. package/components/{CasinoGamesCategorySection-cBmXlPvr.js → CasinoGamesCategorySection-CLNhR4hD.js} +5 -5
  26. package/components/CasinoGamesCategorySection-CsL3VdHS.cjs +1 -0
  27. package/components/{CasinoGamesCategorySection-BR2fAhuE.js → CasinoGamesCategorySection-l-jRCUnZ.js} +5 -5
  28. package/components/CasinoJackpotBanner-BGP5NlAK.cjs +1 -0
  29. package/components/CasinoJackpotBanner-DiFabula.js +806 -0
  30. package/components/CasinoJackpotBanner-DnctL7sJ.js +810 -0
  31. package/components/{CasinoLastPlayedSection-DVxFmxMo.js → CasinoLastPlayedSection-BO-V6sRP.js} +2 -2
  32. package/components/{CasinoLastPlayedSection-BNxagQvQ.js → CasinoLastPlayedSection-Ce3mzuku.js} +2 -2
  33. package/components/{CasinoLastPlayedSection-BOI5jZer.cjs → CasinoLastPlayedSection-WTRz13SW.cjs} +1 -1
  34. package/components/CasinoLobby-CbK-afWM.cjs +1 -0
  35. package/components/CasinoLobby-CoHmXJCL.js +2001 -0
  36. package/components/CasinoLobby-zjNcK2iE.js +2001 -0
  37. package/components/{CasinoMostPlayedSection-BHHfXpGE.js → CasinoMostPlayedSection-CJg1aY33.js} +2 -2
  38. package/components/{CasinoMostPlayedSection-BVW9W67v.js → CasinoMostPlayedSection-Di8djDRq.js} +2 -2
  39. package/components/{CasinoMostPlayedSection-BcCGC9g9.cjs → CasinoMostPlayedSection-fwCxYxEp.cjs} +1 -1
  40. package/components/{CasinoMyGames-D24uWAzu.cjs → CasinoMyGames-5EDtkMnj.cjs} +1 -1
  41. package/components/{CasinoMyGames-D-icoklv.js → CasinoMyGames-C2kQ8Kej.js} +4 -4
  42. package/components/{CasinoMyGames-C701AMQV.js → CasinoMyGames-D5jH8lu_.js} +4 -4
  43. package/components/{CasinoPage-S3VM_WgK.js → CasinoPage-BgHbGm-g.js} +817 -776
  44. package/components/CasinoPage-DYbiUa8_.cjs +1 -0
  45. package/components/{CasinoPage-Ch58J2dv.js → CasinoPage-Dc9zsqhK.js} +815 -774
  46. package/components/{CasinoRandomGame-CbQvQHMi.js → CasinoRandomGame-BB4A3Me6.js} +1 -1
  47. package/components/{CasinoRandomGame-neIdOgUC.js → CasinoRandomGame-BalTtz4n.js} +1 -1
  48. package/components/{CasinoRandomGame-D4bGW7wH.cjs → CasinoRandomGame-qzNaZ__f.cjs} +1 -1
  49. package/components/CasinoSearch-DEbU_mnO.cjs +1 -0
  50. package/components/{CasinoSearch-7Ub5S3Xz.js → CasinoSearch-KJl38A6K.js} +335 -306
  51. package/components/{CasinoSearch-DqwsOjH4.js → CasinoSearch-_Q2V5zZj.js} +319 -290
  52. package/components/{CasinoSlider-TfFHBss2.js → CasinoSlider-CCs2pkhA.js} +15 -15
  53. package/components/{CasinoSlider-CotyciEv.cjs → CasinoSlider-Q3CLkzHo.cjs} +1 -1
  54. package/components/{CasinoSlider-DGETBGTm.js → CasinoSlider-VfpP1c2C.js} +15 -15
  55. package/components/{CasinoSort-B-2h6Htw.js → CasinoSort-BFlIPfWc.js} +1 -1
  56. package/components/{CasinoSort-Cmgp5JM5.js → CasinoSort-BRX2Xq-L.js} +1 -1
  57. package/components/{CasinoSort-X6V8pABW.cjs → CasinoSort-Ds5Gxm-O.cjs} +1 -1
  58. package/components/CasinoWinners-B_hz9jpe.cjs +1 -0
  59. package/components/CasinoWinners-DMV8Yt40.js +983 -0
  60. package/components/CasinoWinners-j5Ay-YXI.js +981 -0
  61. package/components/{GeneralAnimationLoading-B1-7gNLR.js → GeneralAnimationLoading-7OFxqSZ5.js} +1 -1
  62. package/components/{GeneralAnimationLoading-BV3DII71.js → GeneralAnimationLoading-BdfUf0_9.js} +1 -1
  63. package/components/{GeneralAnimationLoading-DasE8cAb.cjs → GeneralAnimationLoading-cgso8Mxu.cjs} +1 -1
  64. package/es2015/casino-lobby.cjs +1 -1
  65. package/es2015/casino-lobby.js +1 -1
  66. package/esnext/casino-lobby.js +1 -1
  67. package/package.json +1 -1
  68. package/stencil/{casino-play-random-game-6EpPs13y.js → casino-play-random-game-BYqESYAt.js} +6 -1
  69. package/stencil/{casino-play-random-game-BUvMKyaw.js → casino-play-random-game-QQFB7p9f.js} +6 -1
  70. package/stencil/{casino-play-random-game-IjQER553.cjs → casino-play-random-game-cxzdDqDs.cjs} +6 -1
  71. package/stencil/{index-ab3202d6-c7Vf1NJ1.cjs → index-ab3202d6-4wRb7_uS.cjs} +1 -1
  72. package/stencil/{index-ab3202d6-9zuW-dLG.js → index-ab3202d6-ClNgaMg-.js} +1 -1
  73. package/stencil/{index-ab3202d6-CGVciVSL.js → index-ab3202d6-CvVYHCZs.js} +1 -1
  74. package/components/CasinoCalendar-B4GcXKnc.cjs +0 -22
  75. package/components/CasinoGamePage-C7LOIY6s.js +0 -4240
  76. package/components/CasinoGamePage-CmF8v1Cv.cjs +0 -18
  77. package/components/CasinoGamePage-DccB7M76.js +0 -4219
  78. package/components/CasinoGameThumbnail-BtO5lRYS.cjs +0 -38
  79. package/components/CasinoGameThumbnail-CZYWQzTY.js +0 -1836
  80. package/components/CasinoGameThumbnail-DZFIn3jP.js +0 -1852
  81. package/components/CasinoGamesCategorySection-CrrqpZDw.cjs +0 -1
  82. package/components/CasinoJackpotBanner-BhgV3UvA.js +0 -698
  83. package/components/CasinoJackpotBanner-CkVmxLVH.js +0 -694
  84. package/components/CasinoJackpotBanner-D5DqHlAR.cjs +0 -1
  85. package/components/CasinoLobby-BbG0IOww.js +0 -2445
  86. package/components/CasinoLobby-Dw7hk99v.js +0 -2445
  87. package/components/CasinoLobby-FeJfp1Qi.cjs +0 -1
  88. package/components/CasinoModal-7GCtnm_K.cjs +0 -1
  89. package/components/CasinoModal-DRoX6zuP.js +0 -368
  90. package/components/CasinoModal-DTJpGGWW.js +0 -368
  91. package/components/CasinoPage-CL8oluns.cjs +0 -1
  92. package/components/CasinoSearch-CPESM7xA.cjs +0 -1
  93. package/components/CasinoWinners-BSQs3S54.js +0 -980
  94. package/components/CasinoWinners-CuaTZjz4.cjs +0 -1
  95. package/components/CasinoWinners-CyDC7j5x.js +0 -978
@@ -1,36 +1,35 @@
1
- var Gr = Object.defineProperty, Fr = Object.defineProperties;
2
- var jr = Object.getOwnPropertyDescriptors;
3
- var yt = Object.getOwnPropertySymbols;
4
- var kr = Object.prototype.hasOwnProperty, Vr = Object.prototype.propertyIsEnumerable;
5
- var De = (e, t, r) => t in e ? Gr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, gt = (e, t) => {
1
+ var Pr = Object.defineProperty, Br = Object.defineProperties;
2
+ var Ar = Object.getOwnPropertyDescriptors;
3
+ var ut = Object.getOwnPropertySymbols;
4
+ var Or = Object.prototype.hasOwnProperty, Ir = Object.prototype.propertyIsEnumerable;
5
+ var Ce = (e, t, r) => t in e ? Pr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, lt = (e, t) => {
6
6
  for (var r in t || (t = {}))
7
- kr.call(t, r) && De(e, r, t[r]);
8
- if (yt)
9
- for (var r of yt(t))
10
- Vr.call(t, r) && De(e, r, t[r]);
7
+ Or.call(t, r) && Ce(e, r, t[r]);
8
+ if (ut)
9
+ for (var r of ut(t))
10
+ Ir.call(t, r) && Ce(e, r, t[r]);
11
11
  return e;
12
- }, vt = (e, t) => Fr(e, jr(t));
13
- var A = (e, t, r) => (De(e, typeof t != "symbol" ? t + "" : t, r), r);
14
- var _t = (e, t, r) => new Promise((n, i) => {
15
- var s = (l) => {
12
+ }, ht = (e, t) => Br(e, Ar(t));
13
+ var T = (e, t, r) => (Ce(e, typeof t != "symbol" ? t + "" : t, r), r);
14
+ var ct = (e, t, r) => new Promise((n, i) => {
15
+ var o = (l) => {
16
16
  try {
17
- o(r.next(l));
17
+ a(r.next(l));
18
18
  } catch (u) {
19
19
  i(u);
20
20
  }
21
- }, a = (l) => {
21
+ }, s = (l) => {
22
22
  try {
23
- o(r.throw(l));
23
+ a(r.throw(l));
24
24
  } catch (u) {
25
25
  i(u);
26
26
  }
27
- }, o = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(s, a);
28
- o((r = r.apply(e, t)).next());
27
+ }, a = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(o, s);
28
+ a((r = r.apply(e, t)).next());
29
29
  });
30
30
  function O() {
31
31
  }
32
- const Xr = (e) => e;
33
- function Wr(e, t) {
32
+ function Cr(e, t) {
34
33
  for (const r in t)
35
34
  e[r] = t[r];
36
35
  return (
@@ -38,29 +37,29 @@ function Wr(e, t) {
38
37
  e
39
38
  );
40
39
  }
41
- function Jt(e) {
40
+ function Gt(e) {
42
41
  return e();
43
42
  }
44
- function Et() {
43
+ function ft() {
45
44
  return /* @__PURE__ */ Object.create(null);
46
45
  }
47
- function X(e) {
48
- e.forEach(Jt);
46
+ function W(e) {
47
+ e.forEach(Gt);
49
48
  }
50
- function de(e) {
49
+ function we(e) {
51
50
  return typeof e == "function";
52
51
  }
53
- function Yt(e, t) {
52
+ function Ft(e, t) {
54
53
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
55
54
  }
56
- let ye;
57
- function Us(e, t) {
58
- return e === t ? !0 : (ye || (ye = document.createElement("a")), ye.href = t, e === ye.href);
55
+ let de;
56
+ function yo(e, t) {
57
+ return e === t ? !0 : (de || (de = document.createElement("a")), de.href = t, e === de.href);
59
58
  }
60
- function zr(e) {
59
+ function Lr(e) {
61
60
  return Object.keys(e).length === 0;
62
61
  }
63
- function Kt(e, ...t) {
62
+ function jt(e, ...t) {
64
63
  if (e == null) {
65
64
  for (const n of t)
66
65
  n(void 0);
@@ -69,40 +68,40 @@ function Kt(e, ...t) {
69
68
  const r = e.subscribe(...t);
70
69
  return r.unsubscribe ? () => r.unsubscribe() : r;
71
70
  }
72
- function Zr(e, t, r) {
73
- e.$$.on_destroy.push(Kt(t, r));
71
+ function Nr(e, t, r) {
72
+ e.$$.on_destroy.push(jt(t, r));
74
73
  }
75
- function Gs(e, t, r, n) {
74
+ function go(e, t, r, n) {
76
75
  if (e) {
77
- const i = er(e, t, r, n);
76
+ const i = kt(e, t, r, n);
78
77
  return e[0](i);
79
78
  }
80
79
  }
81
- function er(e, t, r, n) {
82
- return e[1] && n ? Wr(r.ctx.slice(), e[1](n(t))) : r.ctx;
80
+ function kt(e, t, r, n) {
81
+ return e[1] && n ? Cr(r.ctx.slice(), e[1](n(t))) : r.ctx;
83
82
  }
84
- function Fs(e, t, r, n) {
83
+ function vo(e, t, r, n) {
85
84
  if (e[2] && n) {
86
85
  const i = e[2](n(r));
87
86
  if (t.dirty === void 0)
88
87
  return i;
89
88
  if (typeof i == "object") {
90
- const s = [], a = Math.max(t.dirty.length, i.length);
91
- for (let o = 0; o < a; o += 1)
92
- s[o] = t.dirty[o] | i[o];
93
- return s;
89
+ const o = [], s = Math.max(t.dirty.length, i.length);
90
+ for (let a = 0; a < s; a += 1)
91
+ o[a] = t.dirty[a] | i[a];
92
+ return o;
94
93
  }
95
94
  return t.dirty | i;
96
95
  }
97
96
  return t.dirty;
98
97
  }
99
- function js(e, t, r, n, i, s) {
98
+ function _o(e, t, r, n, i, o) {
100
99
  if (i) {
101
- const a = er(t, r, n, s);
102
- e.p(a, i);
100
+ const s = kt(t, r, n, o);
101
+ e.p(s, i);
103
102
  }
104
103
  }
105
- function ks(e) {
104
+ function Eo(e) {
106
105
  if (e.ctx.length > 32) {
107
106
  const t = [], r = e.ctx.length / 32;
108
107
  for (let n = 0; n < r; n++)
@@ -111,39 +110,20 @@ function ks(e) {
111
110
  }
112
111
  return -1;
113
112
  }
114
- function Vs(e) {
115
- return e && de(e.destroy) ? e.destroy : O;
116
- }
117
- const tr = typeof window != "undefined";
118
- let Qr = tr ? () => window.performance.now() : () => Date.now(), ct = tr ? (e) => requestAnimationFrame(e) : O;
119
- const Y = /* @__PURE__ */ new Set();
120
- function rr(e) {
121
- Y.forEach((t) => {
122
- t.c(e) || (Y.delete(t), t.f());
123
- }), Y.size !== 0 && ct(rr);
124
- }
125
- function qr(e) {
126
- let t;
127
- return Y.size === 0 && ct(rr), {
128
- promise: new Promise((r) => {
129
- Y.add(t = { c: e, f: r });
130
- }),
131
- abort() {
132
- Y.delete(t);
133
- }
134
- };
113
+ function xo(e) {
114
+ return e && we(e.destroy) ? e.destroy : O;
135
115
  }
136
- function pe(e, t) {
116
+ function Te(e, t) {
137
117
  e.appendChild(t);
138
118
  }
139
- function Jr(e, t, r) {
140
- const n = ft(e);
119
+ function Mr(e, t, r) {
120
+ const n = Rr(e);
141
121
  if (!n.getElementById(t)) {
142
- const i = $("style");
143
- i.id = t, i.textContent = r, nr(n, i);
122
+ const i = D("style");
123
+ i.id = t, i.textContent = r, $r(n, i);
144
124
  }
145
125
  }
146
- function ft(e) {
126
+ function Rr(e) {
147
127
  if (!e)
148
128
  return document;
149
129
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -153,125 +133,84 @@ function ft(e) {
153
133
  t
154
134
  ) : e.ownerDocument;
155
135
  }
156
- function Yr(e) {
157
- const t = $("style");
158
- return t.textContent = "/* empty */", nr(ft(e), t), t.sheet;
159
- }
160
- function nr(e, t) {
161
- return pe(
136
+ function $r(e, t) {
137
+ return Te(
162
138
  /** @type {Document} */
163
139
  e.head || e,
164
140
  t
165
141
  ), t.sheet;
166
142
  }
167
- function W(e, t, r) {
143
+ function V(e, t, r) {
168
144
  e.insertBefore(t, r || null);
169
145
  }
170
- function R(e) {
146
+ function G(e) {
171
147
  e.parentNode && e.parentNode.removeChild(e);
172
148
  }
173
- function Kr(e, t) {
149
+ function Dr(e, t) {
174
150
  for (let r = 0; r < e.length; r += 1)
175
151
  e[r] && e[r].d(t);
176
152
  }
177
- function $(e) {
153
+ function D(e) {
178
154
  return document.createElement(e);
179
155
  }
180
- function en(e) {
156
+ function Ur(e) {
181
157
  return document.createElementNS("http://www.w3.org/2000/svg", e);
182
158
  }
183
- function dt(e) {
159
+ function ot(e) {
184
160
  return document.createTextNode(e);
185
161
  }
186
- function tn() {
187
- return dt(" ");
162
+ function Gr() {
163
+ return ot(" ");
188
164
  }
189
- function Xs() {
190
- return dt("");
165
+ function So() {
166
+ return ot("");
191
167
  }
192
- function xt(e, t, r, n) {
168
+ function wo(e, t, r, n) {
193
169
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
194
170
  }
195
- function Ws(e) {
171
+ function To(e) {
196
172
  return function(t) {
197
173
  return t.stopPropagation(), e.call(this, t);
198
174
  };
199
175
  }
200
- function V(e, t, r) {
176
+ function k(e, t, r) {
201
177
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
202
178
  }
203
- function b(e, t, r) {
179
+ function d(e, t, r) {
204
180
  const n = t.toLowerCase();
205
- n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : V(e, t, r);
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);
206
182
  }
207
- function rn(e) {
183
+ function Fr(e) {
208
184
  return Array.from(e.childNodes);
209
185
  }
210
- function nn(e, t) {
186
+ function jr(e, t) {
211
187
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
212
188
  t);
213
189
  }
214
- function zs(e, t) {
190
+ function Ho(e, t) {
215
191
  e.value = t == null ? "" : t;
216
192
  }
217
- function Zs(e, t, r, n) {
193
+ function Po(e, t, r, n) {
218
194
  r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
219
195
  }
220
- let ge;
221
- function sn() {
222
- if (ge === void 0) {
223
- ge = !1;
224
- try {
225
- typeof window != "undefined" && window.parent && window.parent.document;
226
- } catch (e) {
227
- ge = !0;
228
- }
229
- }
230
- return ge;
231
- }
232
- function Qs(e, t) {
233
- getComputedStyle(e).position === "static" && (e.style.position = "relative");
234
- const n = $("iframe");
235
- n.setAttribute(
236
- "style",
237
- "display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"
238
- ), n.setAttribute("aria-hidden", "true"), n.tabIndex = -1;
239
- const i = sn();
240
- let s;
241
- return i ? (n.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", s = xt(
242
- window,
243
- "message",
244
- /** @param {MessageEvent} event */
245
- (a) => {
246
- a.source === n.contentWindow && t();
247
- }
248
- )) : (n.src = "about:blank", n.onload = () => {
249
- s = xt(n.contentWindow, "resize", t), t();
250
- }), pe(e, n), () => {
251
- (i || s && n.contentWindow) && s(), R(n);
252
- };
253
- }
254
- function qs(e, t, r) {
196
+ function Bo(e, t, r) {
255
197
  e.classList.toggle(t, !!r);
256
198
  }
257
- function on(e, t, { bubbles: r = !1, cancelable: n = !1 } = {}) {
258
- return new CustomEvent(e, { detail: t, bubbles: r, cancelable: n });
259
- }
260
- class Js {
199
+ class Ao {
261
200
  constructor(t = !1) {
262
201
  /**
263
202
  * @private
264
203
  * @default false
265
204
  */
266
- A(this, "is_svg", !1);
205
+ T(this, "is_svg", !1);
267
206
  /** parent for creating node */
268
- A(this, "e");
207
+ T(this, "e");
269
208
  /** html tag nodes */
270
- A(this, "n");
209
+ T(this, "n");
271
210
  /** target */
272
- A(this, "t");
211
+ T(this, "t");
273
212
  /** anchor */
274
- A(this, "a");
213
+ T(this, "a");
275
214
  this.is_svg = t, this.e = this.n = null;
276
215
  }
277
216
  /**
@@ -288,10 +227,10 @@ class Js {
288
227
  * @returns {void}
289
228
  */
290
229
  m(t, r, n = null) {
291
- this.e || (this.is_svg ? this.e = en(
230
+ this.e || (this.is_svg ? this.e = Ur(
292
231
  /** @type {keyof SVGElementTagNameMap} */
293
232
  r.nodeName
294
- ) : this.e = $(
233
+ ) : this.e = D(
295
234
  /** @type {keyof HTMLElementTagNameMap} */
296
235
  r.nodeType === 11 ? "TEMPLATE" : r.nodeName
297
236
  ), this.t = r.tagName !== "TEMPLATE" ? r : (
@@ -312,7 +251,7 @@ class Js {
312
251
  * @returns {void} */
313
252
  i(t) {
314
253
  for (let r = 0; r < this.n.length; r += 1)
315
- W(this.t, this.n[r], t);
254
+ V(this.t, this.n[r], t);
316
255
  }
317
256
  /**
318
257
  * @param {string} html
@@ -324,10 +263,10 @@ class Js {
324
263
  /**
325
264
  * @returns {void} */
326
265
  d() {
327
- this.n.forEach(R);
266
+ this.n.forEach(G);
328
267
  }
329
268
  }
330
- function an(e) {
269
+ function kr(e) {
331
270
  const t = {};
332
271
  return e.childNodes.forEach(
333
272
  /** @param {Element} node */
@@ -336,279 +275,161 @@ function an(e) {
336
275
  }
337
276
  ), t;
338
277
  }
339
- const He = /* @__PURE__ */ new Map();
340
- let Pe = 0;
341
- function un(e) {
342
- let t = 5381, r = e.length;
343
- for (; r--; )
344
- t = (t << 5) - t ^ e.charCodeAt(r);
345
- return t >>> 0;
346
- }
347
- function ln(e, t) {
348
- const r = { stylesheet: Yr(t), rules: {} };
349
- return He.set(e, r), r;
350
- }
351
- function wt(e, t, r, n, i, s, a, o = 0) {
352
- const l = 16.666 / n;
353
- let u = `{
354
- `;
355
- for (let _ = 0; _ <= 1; _ += l) {
356
- const T = t + (r - t) * s(_);
357
- u += _ * 100 + `%{${a(T, 1 - T)}}
358
- `;
359
- }
360
- const h = u + `100% {${a(r, 1 - r)}}
361
- }`, f = `__svelte_${un(h)}_${o}`, c = ft(e), { stylesheet: p, rules: d } = He.get(c) || ln(c, e);
362
- d[f] || (d[f] = !0, p.insertRule(`@keyframes ${f} ${h}`, p.cssRules.length));
363
- const m = e.style.animation || "";
364
- return e.style.animation = `${m ? `${m}, ` : ""}${f} ${n}ms linear ${i}ms 1 both`, Pe += 1, f;
365
- }
366
- function hn(e, t) {
367
- const r = (e.style.animation || "").split(", "), n = r.filter(
368
- t ? (s) => s.indexOf(t) < 0 : (s) => s.indexOf("__svelte") === -1
369
- // remove all Svelte animations
370
- ), i = r.length - n.length;
371
- i && (e.style.animation = n.join(", "), Pe -= i, Pe || cn());
372
- }
373
- function cn() {
374
- ct(() => {
375
- Pe || (He.forEach((e) => {
376
- const { ownerNode: t } = e.stylesheet;
377
- t && R(t);
378
- }), He.clear());
379
- });
380
- }
381
- let he;
382
- function le(e) {
383
- he = e;
278
+ let ue;
279
+ function ae(e) {
280
+ ue = e;
384
281
  }
385
- function pt() {
386
- if (!he)
282
+ function Vt() {
283
+ if (!ue)
387
284
  throw new Error("Function called outside component initialization");
388
- return he;
285
+ return ue;
389
286
  }
390
- function Ys(e) {
391
- pt().$$.before_update.push(e);
287
+ function Vr(e) {
288
+ Vt().$$.on_mount.push(e);
392
289
  }
393
- function fn(e) {
394
- pt().$$.on_mount.push(e);
395
- }
396
- function Ks(e) {
397
- pt().$$.on_destroy.push(e);
290
+ function Oo(e) {
291
+ Vt().$$.on_destroy.push(e);
398
292
  }
399
- const J = [], Ze = [];
400
- let K = [];
401
- const St = [], ir = /* @__PURE__ */ Promise.resolve();
402
- let Qe = !1;
403
- function sr() {
404
- Qe || (Qe = !0, ir.then(D));
293
+ const J = [], Fe = [];
294
+ let Y = [];
295
+ const dt = [], Xt = /* @__PURE__ */ Promise.resolve();
296
+ let je = !1;
297
+ function Wt() {
298
+ je || (je = !0, Xt.then(R));
405
299
  }
406
- function eo() {
407
- return sr(), ir;
300
+ function Io() {
301
+ return Wt(), Xt;
408
302
  }
409
- function Ae(e) {
410
- K.push(e);
303
+ function ke(e) {
304
+ Y.push(e);
411
305
  }
412
- const Ue = /* @__PURE__ */ new Set();
306
+ const Le = /* @__PURE__ */ new Set();
413
307
  let Q = 0;
414
- function D() {
308
+ function R() {
415
309
  if (Q !== 0)
416
310
  return;
417
- const e = he;
311
+ const e = ue;
418
312
  do {
419
313
  try {
420
314
  for (; Q < J.length; ) {
421
315
  const t = J[Q];
422
- Q++, le(t), dn(t.$$);
316
+ Q++, ae(t), Xr(t.$$);
423
317
  }
424
318
  } catch (t) {
425
319
  throw J.length = 0, Q = 0, t;
426
320
  }
427
- for (le(null), J.length = 0, Q = 0; Ze.length; )
428
- Ze.pop()();
429
- for (let t = 0; t < K.length; t += 1) {
430
- const r = K[t];
431
- Ue.has(r) || (Ue.add(r), r());
321
+ for (ae(null), J.length = 0, Q = 0; Fe.length; )
322
+ Fe.pop()();
323
+ for (let t = 0; t < Y.length; t += 1) {
324
+ const r = Y[t];
325
+ Le.has(r) || (Le.add(r), r());
432
326
  }
433
- K.length = 0;
327
+ Y.length = 0;
434
328
  } while (J.length);
435
- for (; St.length; )
436
- St.pop()();
437
- Qe = !1, Ue.clear(), le(e);
329
+ for (; dt.length; )
330
+ dt.pop()();
331
+ je = !1, Le.clear(), ae(e);
438
332
  }
439
- function dn(e) {
333
+ function Xr(e) {
440
334
  if (e.fragment !== null) {
441
- e.update(), X(e.before_update);
335
+ e.update(), W(e.before_update);
442
336
  const t = e.dirty;
443
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ae);
337
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(ke);
444
338
  }
445
339
  }
446
- function pn(e) {
340
+ function Wr(e) {
447
341
  const t = [], r = [];
448
- K.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), K = t;
449
- }
450
- let ae;
451
- function mn() {
452
- return ae || (ae = Promise.resolve(), ae.then(() => {
453
- ae = null;
454
- })), ae;
455
- }
456
- function Ge(e, t, r) {
457
- e.dispatchEvent(on(`${t ? "intro" : "outro"}${r}`));
342
+ Y.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Y = t;
458
343
  }
459
- const Ee = /* @__PURE__ */ new Set();
460
- let G;
461
- function to() {
462
- G = {
344
+ const be = /* @__PURE__ */ new Set();
345
+ let X;
346
+ function Co() {
347
+ X = {
463
348
  r: 0,
464
349
  c: [],
465
- p: G
350
+ p: X
466
351
  // parent group
467
352
  };
468
353
  }
469
- function ro() {
470
- G.r || X(G.c), G = G.p;
354
+ function Lo() {
355
+ X.r || W(X.c), X = X.p;
471
356
  }
472
- function or(e, t) {
473
- e && e.i && (Ee.delete(e), e.i(t));
357
+ function zt(e, t) {
358
+ e && e.i && (be.delete(e), e.i(t));
474
359
  }
475
- function bn(e, t, r, n) {
360
+ function zr(e, t, r, n) {
476
361
  if (e && e.o) {
477
- if (Ee.has(e))
362
+ if (be.has(e))
478
363
  return;
479
- Ee.add(e), G.c.push(() => {
480
- Ee.delete(e), n && (r && e.d(1), n());
364
+ be.add(e), X.c.push(() => {
365
+ be.delete(e), n && (r && e.d(1), n());
481
366
  }), e.o(t);
482
367
  } else
483
368
  n && n();
484
369
  }
485
- const yn = { duration: 0 };
486
- function no(e, t, r, n) {
487
- let s = t(e, r, { direction: "both" }), a = n ? 0 : 1, o = null, l = null, u = null, h;
488
- function f() {
489
- u && hn(e, u);
490
- }
491
- function c(d, m) {
492
- const _ = (
493
- /** @type {Program['d']} */
494
- d.b - a
495
- );
496
- return m *= Math.abs(_), {
497
- a,
498
- b: d.b,
499
- d: _,
500
- duration: m,
501
- start: d.start,
502
- end: d.start + m,
503
- group: d.group
504
- };
505
- }
506
- function p(d) {
507
- const {
508
- delay: m = 0,
509
- duration: _ = 300,
510
- easing: T = Xr,
511
- tick: H = O,
512
- css: S
513
- } = s || yn, I = {
514
- start: Qr() + m,
515
- b: d
516
- };
517
- d || (I.group = G, G.r += 1), "inert" in e && (d ? h !== void 0 && (e.inert = h) : (h = /** @type {HTMLElement} */
518
- e.inert, e.inert = !0)), o || l ? l = I : (S && (f(), u = wt(e, a, d, _, m, T, S)), d && H(0, 1), o = c(I, _), Ae(() => Ge(e, d, "start")), qr((P) => {
519
- if (l && P > l.start && (o = c(l, _), l = null, Ge(e, o.b, "start"), S && (f(), u = wt(
520
- e,
521
- a,
522
- o.b,
523
- o.duration,
524
- 0,
525
- T,
526
- s.css
527
- ))), o) {
528
- if (P >= o.end)
529
- H(a = o.b, 1 - a), Ge(e, o.b, "end"), l || (o.b ? f() : --o.group.r || X(o.group.c)), o = null;
530
- else if (P >= o.start) {
531
- const N = P - o.start;
532
- a = o.a + o.d * T(N / o.duration), H(a, 1 - a);
533
- }
534
- }
535
- return !!(o || l);
536
- }));
537
- }
538
- return {
539
- run(d) {
540
- de(s) ? mn().then(() => {
541
- s = s({ direction: d ? "in" : "out" }), p(d);
542
- }) : p(d);
543
- },
544
- end() {
545
- f(), o = l = null;
546
- }
547
- };
548
- }
549
- function Tt(e) {
370
+ function pt(e) {
550
371
  return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
551
372
  }
552
- function io(e, t) {
373
+ function No(e, t) {
553
374
  e.d(1), t.delete(e.key);
554
375
  }
555
- function so(e, t) {
556
- bn(e, 1, 1, () => {
376
+ function Mo(e, t) {
377
+ zr(e, 1, 1, () => {
557
378
  t.delete(e.key);
558
379
  });
559
380
  }
560
- function oo(e, t, r, n, i, s, a, o, l, u, h, f) {
561
- let c = e.length, p = s.length, d = c;
562
- const m = {};
563
- for (; d--; )
564
- m[e[d].key] = d;
565
- const _ = [], T = /* @__PURE__ */ new Map(), H = /* @__PURE__ */ new Map(), S = [];
566
- for (d = p; d--; ) {
567
- const x = f(i, s, d), M = r(x);
568
- let L = a.get(M);
569
- L ? S.push(() => L.p(x, t)) : (L = u(M, x), L.c()), T.set(M, _[d] = L), M in m && H.set(M, Math.abs(d - m[M]));
381
+ function Ro(e, t, r, n, i, o, s, a, l, u, h, f) {
382
+ let c = e.length, m = o.length, b = c;
383
+ const g = {};
384
+ for (; b--; )
385
+ g[e[b].key] = b;
386
+ const S = [], I = /* @__PURE__ */ new Map(), B = /* @__PURE__ */ new Map(), w = [];
387
+ for (b = m; b--; ) {
388
+ const E = f(i, o, b), L = r(E);
389
+ let A = s.get(L);
390
+ A ? w.push(() => A.p(E, t)) : (A = u(L, E), A.c()), I.set(L, S[b] = A), L in g && B.set(L, Math.abs(b - g[L]));
570
391
  }
571
- const I = /* @__PURE__ */ new Set(), P = /* @__PURE__ */ new Set();
572
- function N(x) {
573
- or(x, 1), x.m(o, h), a.set(x.key, x), h = x.first, p--;
392
+ const N = /* @__PURE__ */ new Set(), C = /* @__PURE__ */ new Set();
393
+ function M(E) {
394
+ zt(E, 1), E.m(a, h), s.set(E.key, E), h = E.first, m--;
574
395
  }
575
- for (; c && p; ) {
576
- const x = _[p - 1], M = e[c - 1], L = x.key, Z = M.key;
577
- x === M ? (h = x.first, c--, p--) : T.has(Z) ? !a.has(L) || I.has(L) ? N(x) : P.has(Z) ? c-- : H.get(L) > H.get(Z) ? (P.add(L), N(x)) : (I.add(Z), c--) : (l(M, a), c--);
396
+ for (; c && m; ) {
397
+ const E = S[m - 1], L = e[c - 1], A = E.key, Z = L.key;
398
+ E === L ? (h = E.first, c--, m--) : I.has(Z) ? !s.has(A) || N.has(A) ? M(E) : C.has(Z) ? c-- : B.get(A) > B.get(Z) ? (C.add(A), M(E)) : (N.add(Z), c--) : (l(L, s), c--);
578
399
  }
579
400
  for (; c--; ) {
580
- const x = e[c];
581
- T.has(x.key) || l(x, a);
401
+ const E = e[c];
402
+ I.has(E.key) || l(E, s);
582
403
  }
583
- for (; p; )
584
- N(_[p - 1]);
585
- return X(S), _;
404
+ for (; m; )
405
+ M(S[m - 1]);
406
+ return W(w), S;
586
407
  }
587
- function gn(e, t, r) {
408
+ function Zr(e, t, r) {
588
409
  const { fragment: n, after_update: i } = e.$$;
589
- n && n.m(t, r), Ae(() => {
590
- const s = e.$$.on_mount.map(Jt).filter(de);
591
- e.$$.on_destroy ? e.$$.on_destroy.push(...s) : X(s), e.$$.on_mount = [];
592
- }), i.forEach(Ae);
410
+ n && n.m(t, r), ke(() => {
411
+ const o = e.$$.on_mount.map(Gt).filter(we);
412
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : W(o), e.$$.on_mount = [];
413
+ }), i.forEach(ke);
593
414
  }
594
- function vn(e, t) {
415
+ function Qr(e, t) {
595
416
  const r = e.$$;
596
- r.fragment !== null && (pn(r.after_update), X(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
417
+ r.fragment !== null && (Wr(r.after_update), W(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
597
418
  }
598
- function _n(e, t) {
599
- e.$$.dirty[0] === -1 && (J.push(e), sr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
419
+ function qr(e, t) {
420
+ e.$$.dirty[0] === -1 && (J.push(e), Wt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
600
421
  }
601
- function En(e, t, r, n, i, s, a = null, o = [-1]) {
602
- const l = he;
603
- le(e);
422
+ function Jr(e, t, r, n, i, o, s = null, a = [-1]) {
423
+ const l = ue;
424
+ ae(e);
604
425
  const u = e.$$ = {
605
426
  fragment: null,
606
427
  ctx: [],
607
428
  // state
608
- props: s,
429
+ props: o,
609
430
  update: O,
610
431
  not_equal: i,
611
- bound: Et(),
432
+ bound: ft(),
612
433
  // lifecycle
613
434
  on_mount: [],
614
435
  on_destroy: [],
@@ -617,48 +438,48 @@ function En(e, t, r, n, i, s, a = null, o = [-1]) {
617
438
  after_update: [],
618
439
  context: new Map(t.context || (l ? l.$$.context : [])),
619
440
  // everything else
620
- callbacks: Et(),
621
- dirty: o,
441
+ callbacks: ft(),
442
+ dirty: a,
622
443
  skip_bound: !1,
623
444
  root: t.target || l.$$.root
624
445
  };
625
- a && a(u.root);
446
+ s && s(u.root);
626
447
  let h = !1;
627
- if (u.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
628
- const d = p.length ? p[0] : c;
629
- return u.ctx && i(u.ctx[f], u.ctx[f] = d) && (!u.skip_bound && u.bound[f] && u.bound[f](d), h && _n(e, f)), c;
630
- }) : [], u.update(), h = !0, X(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
448
+ if (u.ctx = r ? r(e, t.props || {}, (f, c, ...m) => {
449
+ const b = m.length ? m[0] : c;
450
+ 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;
451
+ }) : [], u.update(), h = !0, W(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
631
452
  if (t.hydrate) {
632
- const f = rn(t.target);
633
- u.fragment && u.fragment.l(f), f.forEach(R);
453
+ const f = Fr(t.target);
454
+ u.fragment && u.fragment.l(f), f.forEach(G);
634
455
  } else
635
456
  u.fragment && u.fragment.c();
636
- t.intro && or(e.$$.fragment), gn(e, t.target, t.anchor), D();
457
+ t.intro && zt(e.$$.fragment), Zr(e, t.target, t.anchor), R();
637
458
  }
638
- le(l);
459
+ ae(l);
639
460
  }
640
- let ar;
641
- typeof HTMLElement == "function" && (ar = class extends HTMLElement {
461
+ let Zt;
462
+ typeof HTMLElement == "function" && (Zt = class extends HTMLElement {
642
463
  constructor(t, r, n) {
643
464
  super();
644
465
  /** The Svelte component constructor */
645
- A(this, "$$ctor");
466
+ T(this, "$$ctor");
646
467
  /** Slots */
647
- A(this, "$$s");
468
+ T(this, "$$s");
648
469
  /** The Svelte component instance */
649
- A(this, "$$c");
470
+ T(this, "$$c");
650
471
  /** Whether or not the custom element is connected */
651
- A(this, "$$cn", !1);
472
+ T(this, "$$cn", !1);
652
473
  /** Component props data */
653
- A(this, "$$d", {});
474
+ T(this, "$$d", {});
654
475
  /** `true` if currently in the process of reflecting component props back to attributes */
655
- A(this, "$$r", !1);
476
+ T(this, "$$r", !1);
656
477
  /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
657
- A(this, "$$p_d", {});
478
+ T(this, "$$p_d", {});
658
479
  /** @type {Record<string, Function[]>} Event listeners */
659
- A(this, "$$l", {});
480
+ T(this, "$$l", {});
660
481
  /** @type {Map<Function, Function>} Event listener unsubscribe functions */
661
- A(this, "$$l_u", /* @__PURE__ */ new Map());
482
+ T(this, "$$l_u", /* @__PURE__ */ new Map());
662
483
  this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
663
484
  }
664
485
  addEventListener(t, r, n) {
@@ -675,42 +496,42 @@ typeof HTMLElement == "function" && (ar = class extends HTMLElement {
675
496
  }
676
497
  }
677
498
  connectedCallback() {
678
- return _t(this, null, function* () {
499
+ return ct(this, null, function* () {
679
500
  if (this.$$cn = !0, !this.$$c) {
680
- let t = function(s) {
501
+ let t = function(o) {
681
502
  return () => {
682
- let a;
503
+ let s;
683
504
  return {
684
505
  c: function() {
685
- a = $("slot"), s !== "default" && V(a, "name", s);
506
+ s = D("slot"), o !== "default" && k(s, "name", o);
686
507
  },
687
508
  /**
688
509
  * @param {HTMLElement} target
689
510
  * @param {HTMLElement} [anchor]
690
511
  */
691
512
  m: function(u, h) {
692
- W(u, a, h);
513
+ V(u, s, h);
693
514
  },
694
515
  d: function(u) {
695
- u && R(a);
516
+ u && G(s);
696
517
  }
697
518
  };
698
519
  };
699
520
  };
700
521
  if (yield Promise.resolve(), !this.$$cn || this.$$c)
701
522
  return;
702
- const r = {}, n = an(this);
703
- for (const s of this.$$s)
704
- s in n && (r[s] = [t(s)]);
705
- for (const s of this.attributes) {
706
- const a = this.$$g_p(s.name);
707
- a in this.$$d || (this.$$d[a] = xe(a, s.value, this.$$p_d, "toProp"));
523
+ const r = {}, n = kr(this);
524
+ for (const o of this.$$s)
525
+ o in n && (r[o] = [t(o)]);
526
+ for (const o of this.attributes) {
527
+ const s = this.$$g_p(o.name);
528
+ s in this.$$d || (this.$$d[s] = ye(s, o.value, this.$$p_d, "toProp"));
708
529
  }
709
- for (const s in this.$$p_d)
710
- !(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
530
+ for (const o in this.$$p_d)
531
+ !(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
711
532
  this.$$c = new this.$$ctor({
712
533
  target: this.shadowRoot || this,
713
- props: vt(gt({}, this.$$d), {
534
+ props: ht(lt({}, this.$$d), {
714
535
  $$slots: r,
715
536
  $$scope: {
716
537
  ctx: []
@@ -719,23 +540,23 @@ typeof HTMLElement == "function" && (ar = class extends HTMLElement {
719
540
  });
720
541
  const i = () => {
721
542
  this.$$r = !0;
722
- for (const s in this.$$p_d)
723
- if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
724
- const a = xe(
725
- s,
726
- this.$$d[s],
543
+ for (const o in this.$$p_d)
544
+ if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
545
+ const s = ye(
546
+ o,
547
+ this.$$d[o],
727
548
  this.$$p_d,
728
549
  "toAttribute"
729
550
  );
730
- a == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, a);
551
+ s == null ? this.removeAttribute(this.$$p_d[o].attribute || o) : this.setAttribute(this.$$p_d[o].attribute || o, s);
731
552
  }
732
553
  this.$$r = !1;
733
554
  };
734
555
  this.$$c.$$.after_update.push(i), i();
735
- for (const s in this.$$l)
736
- for (const a of this.$$l[s]) {
737
- const o = this.$$c.$on(s, a);
738
- this.$$l_u.set(a, o);
556
+ for (const o in this.$$l)
557
+ for (const s of this.$$l[o]) {
558
+ const a = this.$$c.$on(o, s);
559
+ this.$$l_u.set(s, a);
739
560
  }
740
561
  this.$$l = {};
741
562
  }
@@ -745,7 +566,7 @@ typeof HTMLElement == "function" && (ar = class extends HTMLElement {
745
566
  // and setting attributes through setAttribute etc, this is helpful
746
567
  attributeChangedCallback(t, r, n) {
747
568
  var i;
748
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = xe(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
569
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = ye(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
749
570
  }
750
571
  disconnectedCallback() {
751
572
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -758,9 +579,9 @@ typeof HTMLElement == "function" && (ar = class extends HTMLElement {
758
579
  ) || t;
759
580
  }
760
581
  });
761
- function xe(e, t, r, n) {
762
- var s;
763
- const i = (s = r[e]) == null ? void 0 : s.type;
582
+ function ye(e, t, r, n) {
583
+ var o;
584
+ const i = (o = r[e]) == null ? void 0 : o.type;
764
585
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
765
586
  return t;
766
587
  if (n === "toAttribute")
@@ -788,38 +609,38 @@ function xe(e, t, r, n) {
788
609
  return t;
789
610
  }
790
611
  }
791
- function xn(e, t, r, n, i, s) {
792
- let a = class extends ar {
612
+ function Yr(e, t, r, n, i, o) {
613
+ let s = class extends Zt {
793
614
  constructor() {
794
615
  super(e, r, i), this.$$p_d = t;
795
616
  }
796
617
  static get observedAttributes() {
797
618
  return Object.keys(t).map(
798
- (o) => (t[o].attribute || o).toLowerCase()
619
+ (a) => (t[a].attribute || a).toLowerCase()
799
620
  );
800
621
  }
801
622
  };
802
- return Object.keys(t).forEach((o) => {
803
- Object.defineProperty(a.prototype, o, {
623
+ return Object.keys(t).forEach((a) => {
624
+ Object.defineProperty(s.prototype, a, {
804
625
  get() {
805
- return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
626
+ return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
806
627
  },
807
628
  set(l) {
808
629
  var u;
809
- l = xe(o, l, t), this.$$d[o] = l, (u = this.$$c) == null || u.$set({ [o]: l });
630
+ l = ye(a, l, t), this.$$d[a] = l, (u = this.$$c) == null || u.$set({ [a]: l });
810
631
  }
811
632
  });
812
- }), n.forEach((o) => {
813
- Object.defineProperty(a.prototype, o, {
633
+ }), n.forEach((a) => {
634
+ Object.defineProperty(s.prototype, a, {
814
635
  get() {
815
636
  var l;
816
- return (l = this.$$c) == null ? void 0 : l[o];
637
+ return (l = this.$$c) == null ? void 0 : l[a];
817
638
  }
818
639
  });
819
640
  }), e.element = /** @type {any} */
820
- a, a;
641
+ s, s;
821
642
  }
822
- class wn {
643
+ class Kr {
823
644
  constructor() {
824
645
  /**
825
646
  * ### PRIVATE API
@@ -828,7 +649,7 @@ class wn {
828
649
  *
829
650
  * @type {any}
830
651
  */
831
- A(this, "$$");
652
+ T(this, "$$");
832
653
  /**
833
654
  * ### PRIVATE API
834
655
  *
@@ -836,11 +657,11 @@ class wn {
836
657
  *
837
658
  * @type {any}
838
659
  */
839
- A(this, "$$set");
660
+ T(this, "$$set");
840
661
  }
841
662
  /** @returns {void} */
842
663
  $destroy() {
843
- vn(this, 1), this.$destroy = O;
664
+ Qr(this, 1), this.$destroy = O;
844
665
  }
845
666
  /**
846
667
  * @template {Extract<keyof Events, string>} K
@@ -849,7 +670,7 @@ class wn {
849
670
  * @returns {() => void}
850
671
  */
851
672
  $on(t, r) {
852
- if (!de(r))
673
+ if (!we(r))
853
674
  return O;
854
675
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
855
676
  return n.push(r), () => {
@@ -862,11 +683,11 @@ class wn {
862
683
  * @returns {void}
863
684
  */
864
685
  $set(t) {
865
- this.$$set && !zr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
686
+ this.$$set && !Lr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
866
687
  }
867
688
  }
868
- const Sn = "4";
869
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Sn);
689
+ const en = "4";
690
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(en);
870
691
  /*! *****************************************************************************
871
692
  Copyright (c) Microsoft Corporation.
872
693
 
@@ -881,24 +702,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
881
702
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
882
703
  PERFORMANCE OF THIS SOFTWARE.
883
704
  ***************************************************************************** */
884
- var qe = function(e, t) {
885
- return qe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
705
+ var Ve = function(e, t) {
706
+ return Ve = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
886
707
  r.__proto__ = n;
887
708
  } || function(r, n) {
888
709
  for (var i in n)
889
710
  Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
890
- }, qe(e, t);
711
+ }, Ve(e, t);
891
712
  };
892
- function me(e, t) {
713
+ function ce(e, t) {
893
714
  if (typeof t != "function" && t !== null)
894
715
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
895
- qe(e, t);
716
+ Ve(e, t);
896
717
  function r() {
897
718
  this.constructor = e;
898
719
  }
899
720
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
900
721
  }
901
- function Je(e) {
722
+ function Xe(e) {
902
723
  var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
903
724
  if (r)
904
725
  return r.call(e);
@@ -910,42 +731,42 @@ function Je(e) {
910
731
  };
911
732
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
912
733
  }
913
- function Ye(e, t) {
734
+ function We(e, t) {
914
735
  var r = typeof Symbol == "function" && e[Symbol.iterator];
915
736
  if (!r)
916
737
  return e;
917
- var n = r.call(e), i, s = [], a;
738
+ var n = r.call(e), i, o = [], s;
918
739
  try {
919
740
  for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
920
- s.push(i.value);
921
- } catch (o) {
922
- a = { error: o };
741
+ o.push(i.value);
742
+ } catch (a) {
743
+ s = { error: a };
923
744
  } finally {
924
745
  try {
925
746
  i && !i.done && (r = n.return) && r.call(n);
926
747
  } finally {
927
- if (a)
928
- throw a.error;
748
+ if (s)
749
+ throw s.error;
929
750
  }
930
751
  }
931
- return s;
752
+ return o;
932
753
  }
933
- function Ke(e, t, r) {
754
+ function ze(e, t, r) {
934
755
  if (arguments.length === 2)
935
- for (var n = 0, i = t.length, s; n < i; n++)
936
- (s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
937
- return e.concat(s || t);
756
+ for (var n = 0, i = t.length, o; n < i; n++)
757
+ (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
758
+ return e.concat(o || t);
938
759
  }
939
- function F(e) {
760
+ function U(e) {
940
761
  return typeof e == "function";
941
762
  }
942
- function ur(e) {
763
+ function Qt(e) {
943
764
  var t = function(n) {
944
765
  Error.call(n), n.stack = new Error().stack;
945
766
  }, r = e(t);
946
767
  return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
947
768
  }
948
- var Fe = ur(function(e) {
769
+ var Ne = Qt(function(e) {
949
770
  return function(r) {
950
771
  e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
951
772
  ` + r.map(function(n, i) {
@@ -954,78 +775,78 @@ var Fe = ur(function(e) {
954
775
  `) : "", this.name = "UnsubscriptionError", this.errors = r;
955
776
  };
956
777
  });
957
- function et(e, t) {
778
+ function Ze(e, t) {
958
779
  if (e) {
959
780
  var r = e.indexOf(t);
960
781
  0 <= r && e.splice(r, 1);
961
782
  }
962
783
  }
963
- var Ce = function() {
784
+ var He = function() {
964
785
  function e(t) {
965
786
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
966
787
  }
967
788
  return e.prototype.unsubscribe = function() {
968
- var t, r, n, i, s;
789
+ var t, r, n, i, o;
969
790
  if (!this.closed) {
970
791
  this.closed = !0;
971
- var a = this._parentage;
972
- if (a)
973
- if (this._parentage = null, Array.isArray(a))
792
+ var s = this._parentage;
793
+ if (s)
794
+ if (this._parentage = null, Array.isArray(s))
974
795
  try {
975
- for (var o = Je(a), l = o.next(); !l.done; l = o.next()) {
796
+ for (var a = Xe(s), l = a.next(); !l.done; l = a.next()) {
976
797
  var u = l.value;
977
798
  u.remove(this);
978
799
  }
979
- } catch (m) {
980
- t = { error: m };
800
+ } catch (g) {
801
+ t = { error: g };
981
802
  } finally {
982
803
  try {
983
- l && !l.done && (r = o.return) && r.call(o);
804
+ l && !l.done && (r = a.return) && r.call(a);
984
805
  } finally {
985
806
  if (t)
986
807
  throw t.error;
987
808
  }
988
809
  }
989
810
  else
990
- a.remove(this);
811
+ s.remove(this);
991
812
  var h = this.initialTeardown;
992
- if (F(h))
813
+ if (U(h))
993
814
  try {
994
815
  h();
995
- } catch (m) {
996
- s = m instanceof Fe ? m.errors : [m];
816
+ } catch (g) {
817
+ o = g instanceof Ne ? g.errors : [g];
997
818
  }
998
819
  var f = this._finalizers;
999
820
  if (f) {
1000
821
  this._finalizers = null;
1001
822
  try {
1002
- for (var c = Je(f), p = c.next(); !p.done; p = c.next()) {
1003
- var d = p.value;
823
+ for (var c = Xe(f), m = c.next(); !m.done; m = c.next()) {
824
+ var b = m.value;
1004
825
  try {
1005
- Ht(d);
1006
- } catch (m) {
1007
- s = s != null ? s : [], m instanceof Fe ? s = Ke(Ke([], Ye(s)), Ye(m.errors)) : s.push(m);
826
+ mt(b);
827
+ } catch (g) {
828
+ o = o != null ? o : [], g instanceof Ne ? o = ze(ze([], We(o)), We(g.errors)) : o.push(g);
1008
829
  }
1009
830
  }
1010
- } catch (m) {
1011
- n = { error: m };
831
+ } catch (g) {
832
+ n = { error: g };
1012
833
  } finally {
1013
834
  try {
1014
- p && !p.done && (i = c.return) && i.call(c);
835
+ m && !m.done && (i = c.return) && i.call(c);
1015
836
  } finally {
1016
837
  if (n)
1017
838
  throw n.error;
1018
839
  }
1019
840
  }
1020
841
  }
1021
- if (s)
1022
- throw new Fe(s);
842
+ if (o)
843
+ throw new Ne(o);
1023
844
  }
1024
845
  }, e.prototype.add = function(t) {
1025
846
  var r;
1026
847
  if (t && t !== this)
1027
848
  if (this.closed)
1028
- Ht(t);
849
+ mt(t);
1029
850
  else {
1030
851
  if (t instanceof e) {
1031
852
  if (t.closed || t._hasParent(this))
@@ -1042,52 +863,52 @@ var Ce = function() {
1042
863
  this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
1043
864
  }, e.prototype._removeParent = function(t) {
1044
865
  var r = this._parentage;
1045
- r === t ? this._parentage = null : Array.isArray(r) && et(r, t);
866
+ r === t ? this._parentage = null : Array.isArray(r) && Ze(r, t);
1046
867
  }, e.prototype.remove = function(t) {
1047
868
  var r = this._finalizers;
1048
- r && et(r, t), t instanceof e && t._removeParent(this);
869
+ r && Ze(r, t), t instanceof e && t._removeParent(this);
1049
870
  }, e.EMPTY = function() {
1050
871
  var t = new e();
1051
872
  return t.closed = !0, t;
1052
873
  }(), e;
1053
- }(), lr = Ce.EMPTY;
1054
- function hr(e) {
1055
- return e instanceof Ce || e && "closed" in e && F(e.remove) && F(e.add) && F(e.unsubscribe);
874
+ }(), qt = He.EMPTY;
875
+ function Jt(e) {
876
+ return e instanceof He || e && "closed" in e && U(e.remove) && U(e.add) && U(e.unsubscribe);
1056
877
  }
1057
- function Ht(e) {
1058
- F(e) ? e() : e.unsubscribe();
878
+ function mt(e) {
879
+ U(e) ? e() : e.unsubscribe();
1059
880
  }
1060
- var Tn = {
881
+ var tn = {
1061
882
  Promise: void 0
1062
- }, Hn = {
883
+ }, rn = {
1063
884
  setTimeout: function(e, t) {
1064
885
  for (var r = [], n = 2; n < arguments.length; n++)
1065
886
  r[n - 2] = arguments[n];
1066
- return setTimeout.apply(void 0, Ke([e, t], Ye(r)));
887
+ return setTimeout.apply(void 0, ze([e, t], We(r)));
1067
888
  },
1068
889
  clearTimeout: function(e) {
1069
890
  return clearTimeout(e);
1070
891
  },
1071
892
  delegate: void 0
1072
893
  };
1073
- function Pn(e) {
1074
- Hn.setTimeout(function() {
894
+ function nn(e) {
895
+ rn.setTimeout(function() {
1075
896
  throw e;
1076
897
  });
1077
898
  }
1078
- function Pt() {
899
+ function bt() {
1079
900
  }
1080
- function we(e) {
901
+ function ge(e) {
1081
902
  e();
1082
903
  }
1083
- var cr = function(e) {
1084
- me(t, e);
904
+ var Yt = function(e) {
905
+ ce(t, e);
1085
906
  function t(r) {
1086
907
  var n = e.call(this) || this;
1087
- return n.isStopped = !1, r ? (n.destination = r, hr(r) && r.add(n)) : n.destination = On, n;
908
+ return n.isStopped = !1, r ? (n.destination = r, Jt(r) && r.add(n)) : n.destination = an, n;
1088
909
  }
1089
910
  return t.create = function(r, n, i) {
1090
- return new tt(r, n, i);
911
+ return new Qe(r, n, i);
1091
912
  }, t.prototype.next = function(r) {
1092
913
  this.isStopped || this._next(r);
1093
914
  }, t.prototype.error = function(r) {
@@ -1111,7 +932,7 @@ var cr = function(e) {
1111
932
  this.unsubscribe();
1112
933
  }
1113
934
  }, t;
1114
- }(Ce), An = function() {
935
+ }(He), on = function() {
1115
936
  function e(t) {
1116
937
  this.partialObserver = t;
1117
938
  }
@@ -1121,7 +942,7 @@ var cr = function(e) {
1121
942
  try {
1122
943
  r.next(t);
1123
944
  } catch (n) {
1124
- ve(n);
945
+ pe(n);
1125
946
  }
1126
947
  }, e.prototype.error = function(t) {
1127
948
  var r = this.partialObserver;
@@ -1129,56 +950,56 @@ var cr = function(e) {
1129
950
  try {
1130
951
  r.error(t);
1131
952
  } catch (n) {
1132
- ve(n);
953
+ pe(n);
1133
954
  }
1134
955
  else
1135
- ve(t);
956
+ pe(t);
1136
957
  }, e.prototype.complete = function() {
1137
958
  var t = this.partialObserver;
1138
959
  if (t.complete)
1139
960
  try {
1140
961
  t.complete();
1141
962
  } catch (r) {
1142
- ve(r);
963
+ pe(r);
1143
964
  }
1144
965
  }, e;
1145
- }(), tt = function(e) {
1146
- me(t, e);
966
+ }(), Qe = function(e) {
967
+ ce(t, e);
1147
968
  function t(r, n, i) {
1148
- var s = e.call(this) || this, a;
1149
- return F(r) || !r ? a = {
969
+ var o = e.call(this) || this, s;
970
+ return U(r) || !r ? s = {
1150
971
  next: r != null ? r : void 0,
1151
972
  error: n != null ? n : void 0,
1152
973
  complete: i != null ? i : void 0
1153
- } : a = r, s.destination = new An(a), s;
974
+ } : s = r, o.destination = new on(s), o;
1154
975
  }
1155
976
  return t;
1156
- }(cr);
1157
- function ve(e) {
1158
- Pn(e);
977
+ }(Yt);
978
+ function pe(e) {
979
+ nn(e);
1159
980
  }
1160
- function Bn(e) {
981
+ function sn(e) {
1161
982
  throw e;
1162
983
  }
1163
- var On = {
984
+ var an = {
1164
985
  closed: !0,
1165
- next: Pt,
1166
- error: Bn,
1167
- complete: Pt
1168
- }, In = function() {
986
+ next: bt,
987
+ error: sn,
988
+ complete: bt
989
+ }, un = function() {
1169
990
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
1170
991
  }();
1171
- function Cn(e) {
992
+ function ln(e) {
1172
993
  return e;
1173
994
  }
1174
- function Ln(e) {
1175
- return e.length === 0 ? Cn : e.length === 1 ? e[0] : function(r) {
995
+ function hn(e) {
996
+ return e.length === 0 ? ln : e.length === 1 ? e[0] : function(r) {
1176
997
  return e.reduce(function(n, i) {
1177
998
  return i(n);
1178
999
  }, r);
1179
1000
  };
1180
1001
  }
1181
- var At = function() {
1002
+ var yt = function() {
1182
1003
  function e(t) {
1183
1004
  t && (this._subscribe = t);
1184
1005
  }
@@ -1186,11 +1007,11 @@ var At = function() {
1186
1007
  var r = new e();
1187
1008
  return r.source = this, r.operator = t, r;
1188
1009
  }, e.prototype.subscribe = function(t, r, n) {
1189
- var i = this, s = Mn(t) ? t : new tt(t, r, n);
1190
- return we(function() {
1191
- var a = i, o = a.operator, l = a.source;
1192
- s.add(o ? o.call(s, l) : l ? i._subscribe(s) : i._trySubscribe(s));
1193
- }), s;
1010
+ var i = this, o = fn(t) ? t : new Qe(t, r, n);
1011
+ return ge(function() {
1012
+ var s = i, a = s.operator, l = s.source;
1013
+ o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
1014
+ }), o;
1194
1015
  }, e.prototype._trySubscribe = function(t) {
1195
1016
  try {
1196
1017
  return this._subscribe(t);
@@ -1199,87 +1020,87 @@ var At = function() {
1199
1020
  }
1200
1021
  }, e.prototype.forEach = function(t, r) {
1201
1022
  var n = this;
1202
- return r = Bt(r), new r(function(i, s) {
1203
- var a = new tt({
1204
- next: function(o) {
1023
+ return r = gt(r), new r(function(i, o) {
1024
+ var s = new Qe({
1025
+ next: function(a) {
1205
1026
  try {
1206
- t(o);
1027
+ t(a);
1207
1028
  } catch (l) {
1208
- s(l), a.unsubscribe();
1029
+ o(l), s.unsubscribe();
1209
1030
  }
1210
1031
  },
1211
- error: s,
1032
+ error: o,
1212
1033
  complete: i
1213
1034
  });
1214
- n.subscribe(a);
1035
+ n.subscribe(s);
1215
1036
  });
1216
1037
  }, e.prototype._subscribe = function(t) {
1217
1038
  var r;
1218
1039
  return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
1219
- }, e.prototype[In] = function() {
1040
+ }, e.prototype[un] = function() {
1220
1041
  return this;
1221
1042
  }, e.prototype.pipe = function() {
1222
1043
  for (var t = [], r = 0; r < arguments.length; r++)
1223
1044
  t[r] = arguments[r];
1224
- return Ln(t)(this);
1045
+ return hn(t)(this);
1225
1046
  }, e.prototype.toPromise = function(t) {
1226
1047
  var r = this;
1227
- return t = Bt(t), new t(function(n, i) {
1228
- var s;
1229
- r.subscribe(function(a) {
1230
- return s = a;
1231
- }, function(a) {
1232
- return i(a);
1048
+ return t = gt(t), new t(function(n, i) {
1049
+ var o;
1050
+ r.subscribe(function(s) {
1051
+ return o = s;
1052
+ }, function(s) {
1053
+ return i(s);
1233
1054
  }, function() {
1234
- return n(s);
1055
+ return n(o);
1235
1056
  });
1236
1057
  });
1237
1058
  }, e.create = function(t) {
1238
1059
  return new e(t);
1239
1060
  }, e;
1240
1061
  }();
1241
- function Bt(e) {
1062
+ function gt(e) {
1242
1063
  var t;
1243
- return (t = e != null ? e : Tn.Promise) !== null && t !== void 0 ? t : Promise;
1064
+ return (t = e != null ? e : tn.Promise) !== null && t !== void 0 ? t : Promise;
1244
1065
  }
1245
- function Nn(e) {
1246
- return e && F(e.next) && F(e.error) && F(e.complete);
1066
+ function cn(e) {
1067
+ return e && U(e.next) && U(e.error) && U(e.complete);
1247
1068
  }
1248
- function Mn(e) {
1249
- return e && e instanceof cr || Nn(e) && hr(e);
1069
+ function fn(e) {
1070
+ return e && e instanceof Yt || cn(e) && Jt(e);
1250
1071
  }
1251
- var $n = ur(function(e) {
1072
+ var dn = Qt(function(e) {
1252
1073
  return function() {
1253
1074
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
1254
1075
  };
1255
- }), fr = function(e) {
1256
- me(t, e);
1076
+ }), Kt = function(e) {
1077
+ ce(t, e);
1257
1078
  function t() {
1258
1079
  var r = e.call(this) || this;
1259
1080
  return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
1260
1081
  }
1261
1082
  return t.prototype.lift = function(r) {
1262
- var n = new Ot(this, this);
1083
+ var n = new vt(this, this);
1263
1084
  return n.operator = r, n;
1264
1085
  }, t.prototype._throwIfClosed = function() {
1265
1086
  if (this.closed)
1266
- throw new $n();
1087
+ throw new dn();
1267
1088
  }, t.prototype.next = function(r) {
1268
1089
  var n = this;
1269
- we(function() {
1270
- var i, s;
1090
+ ge(function() {
1091
+ var i, o;
1271
1092
  if (n._throwIfClosed(), !n.isStopped) {
1272
1093
  n.currentObservers || (n.currentObservers = Array.from(n.observers));
1273
1094
  try {
1274
- for (var a = Je(n.currentObservers), o = a.next(); !o.done; o = a.next()) {
1275
- var l = o.value;
1095
+ for (var s = Xe(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
1096
+ var l = a.value;
1276
1097
  l.next(r);
1277
1098
  }
1278
1099
  } catch (u) {
1279
1100
  i = { error: u };
1280
1101
  } finally {
1281
1102
  try {
1282
- o && !o.done && (s = a.return) && s.call(a);
1103
+ a && !a.done && (o = s.return) && o.call(s);
1283
1104
  } finally {
1284
1105
  if (i)
1285
1106
  throw i.error;
@@ -1289,7 +1110,7 @@ var $n = ur(function(e) {
1289
1110
  });
1290
1111
  }, t.prototype.error = function(r) {
1291
1112
  var n = this;
1292
- we(function() {
1113
+ ge(function() {
1293
1114
  if (n._throwIfClosed(), !n.isStopped) {
1294
1115
  n.hasError = n.isStopped = !0, n.thrownError = r;
1295
1116
  for (var i = n.observers; i.length; )
@@ -1298,7 +1119,7 @@ var $n = ur(function(e) {
1298
1119
  });
1299
1120
  }, t.prototype.complete = function() {
1300
1121
  var r = this;
1301
- we(function() {
1122
+ ge(function() {
1302
1123
  if (r._throwIfClosed(), !r.isStopped) {
1303
1124
  r.isStopped = !0;
1304
1125
  for (var n = r.observers; n.length; )
@@ -1319,21 +1140,21 @@ var $n = ur(function(e) {
1319
1140
  }, t.prototype._subscribe = function(r) {
1320
1141
  return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
1321
1142
  }, t.prototype._innerSubscribe = function(r) {
1322
- var n = this, i = this, s = i.hasError, a = i.isStopped, o = i.observers;
1323
- return s || a ? lr : (this.currentObservers = null, o.push(r), new Ce(function() {
1324
- n.currentObservers = null, et(o, r);
1143
+ var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
1144
+ return o || s ? qt : (this.currentObservers = null, a.push(r), new He(function() {
1145
+ n.currentObservers = null, Ze(a, r);
1325
1146
  }));
1326
1147
  }, t.prototype._checkFinalizedStatuses = function(r) {
1327
- var n = this, i = n.hasError, s = n.thrownError, a = n.isStopped;
1328
- i ? r.error(s) : a && r.complete();
1148
+ var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
1149
+ i ? r.error(o) : s && r.complete();
1329
1150
  }, t.prototype.asObservable = function() {
1330
- var r = new At();
1151
+ var r = new yt();
1331
1152
  return r.source = this, r;
1332
1153
  }, t.create = function(r, n) {
1333
- return new Ot(r, n);
1154
+ return new vt(r, n);
1334
1155
  }, t;
1335
- }(At), Ot = function(e) {
1336
- me(t, e);
1156
+ }(yt), vt = function(e) {
1157
+ ce(t, e);
1337
1158
  function t(r, n) {
1338
1159
  var i = e.call(this) || this;
1339
1160
  return i.destination = r, i.source = n, i;
@@ -1349,54 +1170,54 @@ var $n = ur(function(e) {
1349
1170
  (n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
1350
1171
  }, t.prototype._subscribe = function(r) {
1351
1172
  var n, i;
1352
- return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : lr;
1173
+ return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : qt;
1353
1174
  }, t;
1354
- }(fr), dr = {
1175
+ }(Kt), er = {
1355
1176
  now: function() {
1356
- return (dr.delegate || Date).now();
1177
+ return (er.delegate || Date).now();
1357
1178
  },
1358
1179
  delegate: void 0
1359
- }, Rn = function(e) {
1360
- me(t, e);
1180
+ }, pn = function(e) {
1181
+ ce(t, e);
1361
1182
  function t(r, n, i) {
1362
- r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = dr);
1363
- var s = e.call(this) || this;
1364
- return s._bufferSize = r, s._windowTime = n, s._timestampProvider = i, s._buffer = [], s._infiniteTimeWindow = !0, s._infiniteTimeWindow = n === 1 / 0, s._bufferSize = Math.max(1, r), s._windowTime = Math.max(1, n), s;
1183
+ r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = er);
1184
+ var o = e.call(this) || this;
1185
+ 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;
1365
1186
  }
1366
1187
  return t.prototype.next = function(r) {
1367
- var n = this, i = n.isStopped, s = n._buffer, a = n._infiniteTimeWindow, o = n._timestampProvider, l = n._windowTime;
1368
- i || (s.push(r), !a && s.push(o.now() + l)), this._trimBuffer(), e.prototype.next.call(this, r);
1188
+ var n = this, i = n.isStopped, o = n._buffer, s = n._infiniteTimeWindow, a = n._timestampProvider, l = n._windowTime;
1189
+ i || (o.push(r), !s && o.push(a.now() + l)), this._trimBuffer(), e.prototype.next.call(this, r);
1369
1190
  }, t.prototype._subscribe = function(r) {
1370
1191
  this._throwIfClosed(), this._trimBuffer();
1371
- for (var n = this._innerSubscribe(r), i = this, s = i._infiniteTimeWindow, a = i._buffer, o = a.slice(), l = 0; l < o.length && !r.closed; l += s ? 1 : 2)
1372
- r.next(o[l]);
1192
+ 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)
1193
+ r.next(a[l]);
1373
1194
  return this._checkFinalizedStatuses(r), n;
1374
1195
  }, t.prototype._trimBuffer = function() {
1375
- var r = this, n = r._bufferSize, i = r._timestampProvider, s = r._buffer, a = r._infiniteTimeWindow, o = (a ? 1 : 2) * n;
1376
- if (n < 1 / 0 && o < s.length && s.splice(0, s.length - o), !a) {
1377
- for (var l = i.now(), u = 0, h = 1; h < s.length && s[h] <= l; h += 2)
1196
+ var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, s = r._infiniteTimeWindow, a = (s ? 1 : 2) * n;
1197
+ if (n < 1 / 0 && a < o.length && o.splice(0, o.length - a), !s) {
1198
+ for (var l = i.now(), u = 0, h = 1; h < o.length && o[h] <= l; h += 2)
1378
1199
  u = h;
1379
- u && s.splice(0, u + 1);
1200
+ u && o.splice(0, u + 1);
1380
1201
  }
1381
1202
  }, t;
1382
- }(fr);
1383
- const It = [], Ct = {}, Dn = (e, t = 0) => {
1384
- if (It.indexOf(e) == -1) {
1385
- const r = new Rn(t);
1386
- Ct[e] = r, It.push(e);
1203
+ }(Kt);
1204
+ const _t = [], Et = {}, mn = (e, t = 0) => {
1205
+ if (_t.indexOf(e) == -1) {
1206
+ const r = new pn(t);
1207
+ Et[e] = r, _t.push(e);
1387
1208
  }
1388
- return Ct[e];
1209
+ return Et[e];
1389
1210
  }, q = [];
1390
- function Un(e, t) {
1211
+ function bn(e, t) {
1391
1212
  return {
1392
- subscribe: Le(e, t).subscribe
1213
+ subscribe: Pe(e, t).subscribe
1393
1214
  };
1394
1215
  }
1395
- function Le(e, t = O) {
1216
+ function Pe(e, t = O) {
1396
1217
  let r;
1397
1218
  const n = /* @__PURE__ */ new Set();
1398
- function i(o) {
1399
- if (Yt(e, o) && (e = o, r)) {
1219
+ function i(a) {
1220
+ if (Ft(e, a) && (e = a, r)) {
1400
1221
  const l = !q.length;
1401
1222
  for (const u of n)
1402
1223
  u[1](), q.push(u, e);
@@ -1407,23 +1228,23 @@ function Le(e, t = O) {
1407
1228
  }
1408
1229
  }
1409
1230
  }
1410
- function s(o) {
1411
- i(o(e));
1231
+ function o(a) {
1232
+ i(a(e));
1412
1233
  }
1413
- function a(o, l = O) {
1414
- const u = [o, l];
1415
- return n.add(u), n.size === 1 && (r = t(i, s) || O), o(e), () => {
1234
+ function s(a, l = O) {
1235
+ const u = [a, l];
1236
+ return n.add(u), n.size === 1 && (r = t(i, o) || O), a(e), () => {
1416
1237
  n.delete(u), n.size === 0 && r && (r(), r = null);
1417
1238
  };
1418
1239
  }
1419
- return { set: i, update: s, subscribe: a };
1240
+ return { set: i, update: o, subscribe: s };
1420
1241
  }
1421
- function ie(e, t, r) {
1242
+ function ne(e, t, r) {
1422
1243
  const n = !Array.isArray(e), i = n ? [e] : e;
1423
1244
  if (!i.every(Boolean))
1424
1245
  throw new Error("derived() expects stores as input, got a falsy value");
1425
- const s = t.length < 2;
1426
- return Un(r, (a, o) => {
1246
+ const o = t.length < 2;
1247
+ return bn(r, (s, a) => {
1427
1248
  let l = !1;
1428
1249
  const u = [];
1429
1250
  let h = 0, f = O;
@@ -1431,126 +1252,126 @@ function ie(e, t, r) {
1431
1252
  if (h)
1432
1253
  return;
1433
1254
  f();
1434
- const d = t(n ? u[0] : u, a, o);
1435
- s ? a(d) : f = de(d) ? d : O;
1436
- }, p = i.map(
1437
- (d, m) => Kt(
1438
- d,
1439
- (_) => {
1440
- u[m] = _, h &= ~(1 << m), l && c();
1255
+ const b = t(n ? u[0] : u, s, a);
1256
+ o ? s(b) : f = we(b) ? b : O;
1257
+ }, m = i.map(
1258
+ (b, g) => jt(
1259
+ b,
1260
+ (S) => {
1261
+ u[g] = S, h &= ~(1 << g), l && c();
1441
1262
  },
1442
1263
  () => {
1443
- h |= 1 << m;
1264
+ h |= 1 << g;
1444
1265
  }
1445
1266
  )
1446
1267
  );
1447
1268
  return l = !0, c(), function() {
1448
- X(p), f(), l = !1;
1269
+ W(m), f(), l = !1;
1449
1270
  };
1450
1271
  });
1451
1272
  }
1452
- function Gn(e) {
1273
+ function yn(e) {
1453
1274
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1454
1275
  }
1455
- var Fn = function(t) {
1456
- return jn(t) && !kn(t);
1276
+ var gn = function(t) {
1277
+ return vn(t) && !_n(t);
1457
1278
  };
1458
- function jn(e) {
1279
+ function vn(e) {
1459
1280
  return !!e && typeof e == "object";
1460
1281
  }
1461
- function kn(e) {
1282
+ function _n(e) {
1462
1283
  var t = Object.prototype.toString.call(e);
1463
- return t === "[object RegExp]" || t === "[object Date]" || Wn(e);
1284
+ return t === "[object RegExp]" || t === "[object Date]" || Sn(e);
1464
1285
  }
1465
- var Vn = typeof Symbol == "function" && Symbol.for, Xn = Vn ? Symbol.for("react.element") : 60103;
1466
- function Wn(e) {
1467
- return e.$$typeof === Xn;
1286
+ var En = typeof Symbol == "function" && Symbol.for, xn = En ? Symbol.for("react.element") : 60103;
1287
+ function Sn(e) {
1288
+ return e.$$typeof === xn;
1468
1289
  }
1469
- function zn(e) {
1290
+ function wn(e) {
1470
1291
  return Array.isArray(e) ? [] : {};
1471
1292
  }
1472
- function ce(e, t) {
1473
- return t.clone !== !1 && t.isMergeableObject(e) ? ee(zn(e), e, t) : e;
1293
+ function le(e, t) {
1294
+ return t.clone !== !1 && t.isMergeableObject(e) ? K(wn(e), e, t) : e;
1474
1295
  }
1475
- function Zn(e, t, r) {
1296
+ function Tn(e, t, r) {
1476
1297
  return e.concat(t).map(function(n) {
1477
- return ce(n, r);
1298
+ return le(n, r);
1478
1299
  });
1479
1300
  }
1480
- function Qn(e, t) {
1301
+ function Hn(e, t) {
1481
1302
  if (!t.customMerge)
1482
- return ee;
1303
+ return K;
1483
1304
  var r = t.customMerge(e);
1484
- return typeof r == "function" ? r : ee;
1305
+ return typeof r == "function" ? r : K;
1485
1306
  }
1486
- function qn(e) {
1307
+ function Pn(e) {
1487
1308
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
1488
1309
  return Object.propertyIsEnumerable.call(e, t);
1489
1310
  }) : [];
1490
1311
  }
1491
- function Lt(e) {
1492
- return Object.keys(e).concat(qn(e));
1312
+ function xt(e) {
1313
+ return Object.keys(e).concat(Pn(e));
1493
1314
  }
1494
- function pr(e, t) {
1315
+ function tr(e, t) {
1495
1316
  try {
1496
1317
  return t in e;
1497
1318
  } catch (r) {
1498
1319
  return !1;
1499
1320
  }
1500
1321
  }
1501
- function Jn(e, t) {
1502
- return pr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1322
+ function Bn(e, t) {
1323
+ return tr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1503
1324
  }
1504
- function Yn(e, t, r) {
1325
+ function An(e, t, r) {
1505
1326
  var n = {};
1506
- return r.isMergeableObject(e) && Lt(e).forEach(function(i) {
1507
- n[i] = ce(e[i], r);
1508
- }), Lt(t).forEach(function(i) {
1509
- Jn(e, i) || (pr(e, i) && r.isMergeableObject(t[i]) ? n[i] = Qn(i, r)(e[i], t[i], r) : n[i] = ce(t[i], r));
1327
+ return r.isMergeableObject(e) && xt(e).forEach(function(i) {
1328
+ n[i] = le(e[i], r);
1329
+ }), xt(t).forEach(function(i) {
1330
+ Bn(e, i) || (tr(e, i) && r.isMergeableObject(t[i]) ? n[i] = Hn(i, r)(e[i], t[i], r) : n[i] = le(t[i], r));
1510
1331
  }), n;
1511
1332
  }
1512
- function ee(e, t, r) {
1513
- r = r || {}, r.arrayMerge = r.arrayMerge || Zn, r.isMergeableObject = r.isMergeableObject || Fn, r.cloneUnlessOtherwiseSpecified = ce;
1514
- var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
1515
- return s ? n ? r.arrayMerge(e, t, r) : Yn(e, t, r) : ce(t, r);
1333
+ function K(e, t, r) {
1334
+ r = r || {}, r.arrayMerge = r.arrayMerge || Tn, r.isMergeableObject = r.isMergeableObject || gn, r.cloneUnlessOtherwiseSpecified = le;
1335
+ var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
1336
+ return o ? n ? r.arrayMerge(e, t, r) : An(e, t, r) : le(t, r);
1516
1337
  }
1517
- ee.all = function(t, r) {
1338
+ K.all = function(t, r) {
1518
1339
  if (!Array.isArray(t))
1519
1340
  throw new Error("first argument should be an array");
1520
1341
  return t.reduce(function(n, i) {
1521
- return ee(n, i, r);
1342
+ return K(n, i, r);
1522
1343
  }, {});
1523
1344
  };
1524
- var Kn = ee, ei = Kn;
1525
- const ti = /* @__PURE__ */ Gn(ei);
1526
- var rt = function(e, t) {
1527
- return rt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
1345
+ var On = K, In = On;
1346
+ const Cn = /* @__PURE__ */ yn(In);
1347
+ var qe = function(e, t) {
1348
+ return qe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
1528
1349
  r.__proto__ = n;
1529
1350
  } || function(r, n) {
1530
1351
  for (var i in n)
1531
1352
  Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
1532
- }, rt(e, t);
1353
+ }, qe(e, t);
1533
1354
  };
1534
- function Ne(e, t) {
1355
+ function Be(e, t) {
1535
1356
  if (typeof t != "function" && t !== null)
1536
1357
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
1537
- rt(e, t);
1358
+ qe(e, t);
1538
1359
  function r() {
1539
1360
  this.constructor = e;
1540
1361
  }
1541
1362
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
1542
1363
  }
1543
- var U = function() {
1544
- return U = Object.assign || function(t) {
1364
+ var $ = function() {
1365
+ return $ = Object.assign || function(t) {
1545
1366
  for (var r, n = 1, i = arguments.length; n < i; n++) {
1546
1367
  r = arguments[n];
1547
- for (var s in r)
1548
- Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
1368
+ for (var o in r)
1369
+ Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1549
1370
  }
1550
1371
  return t;
1551
- }, U.apply(this, arguments);
1372
+ }, $.apply(this, arguments);
1552
1373
  };
1553
- function ri(e, t) {
1374
+ function Ln(e, t) {
1554
1375
  var r = {};
1555
1376
  for (var n in e)
1556
1377
  Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
@@ -1559,43 +1380,43 @@ function ri(e, t) {
1559
1380
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
1560
1381
  return r;
1561
1382
  }
1562
- function je(e, t, r) {
1383
+ function Me(e, t, r) {
1563
1384
  if (r || arguments.length === 2)
1564
- for (var n = 0, i = t.length, s; n < i; n++)
1565
- (s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
1566
- return e.concat(s || Array.prototype.slice.call(t));
1385
+ for (var n = 0, i = t.length, o; n < i; n++)
1386
+ (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
1387
+ return e.concat(o || Array.prototype.slice.call(t));
1567
1388
  }
1568
- function ke(e, t) {
1569
- var r = t && t.cache ? t.cache : li, n = t && t.serializer ? t.serializer : ai, i = t && t.strategy ? t.strategy : si;
1389
+ function Re(e, t) {
1390
+ var r = t && t.cache ? t.cache : Gn, n = t && t.serializer ? t.serializer : Dn, i = t && t.strategy ? t.strategy : Rn;
1570
1391
  return i(e, {
1571
1392
  cache: r,
1572
1393
  serializer: n
1573
1394
  });
1574
1395
  }
1575
- function ni(e) {
1396
+ function Nn(e) {
1576
1397
  return e == null || typeof e == "number" || typeof e == "boolean";
1577
1398
  }
1578
- function ii(e, t, r, n) {
1579
- var i = ni(n) ? n : r(n), s = t.get(i);
1580
- return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
1399
+ function Mn(e, t, r, n) {
1400
+ var i = Nn(n) ? n : r(n), o = t.get(i);
1401
+ return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
1581
1402
  }
1582
- function mr(e, t, r) {
1583
- var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
1584
- return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
1403
+ function rr(e, t, r) {
1404
+ var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
1405
+ return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
1585
1406
  }
1586
- function br(e, t, r, n, i) {
1407
+ function nr(e, t, r, n, i) {
1587
1408
  return r.bind(t, e, n, i);
1588
1409
  }
1589
- function si(e, t) {
1590
- var r = e.length === 1 ? ii : mr;
1591
- return br(e, this, r, t.cache.create(), t.serializer);
1410
+ function Rn(e, t) {
1411
+ var r = e.length === 1 ? Mn : rr;
1412
+ return nr(e, this, r, t.cache.create(), t.serializer);
1592
1413
  }
1593
- function oi(e, t) {
1594
- return br(e, this, mr, t.cache.create(), t.serializer);
1414
+ function $n(e, t) {
1415
+ return nr(e, this, rr, t.cache.create(), t.serializer);
1595
1416
  }
1596
- var ai = function() {
1417
+ var Dn = function() {
1597
1418
  return JSON.stringify(arguments);
1598
- }, ui = (
1419
+ }, Un = (
1599
1420
  /** @class */
1600
1421
  function() {
1601
1422
  function e() {
@@ -1607,71 +1428,71 @@ var ai = function() {
1607
1428
  this.cache[t] = r;
1608
1429
  }, e;
1609
1430
  }()
1610
- ), li = {
1431
+ ), Gn = {
1611
1432
  create: function() {
1612
- return new ui();
1433
+ return new Un();
1613
1434
  }
1614
- }, Ve = {
1615
- variadic: oi
1616
- }, Be = function() {
1617
- return Be = Object.assign || function(t) {
1435
+ }, $e = {
1436
+ variadic: $n
1437
+ }, Ee = function() {
1438
+ return Ee = Object.assign || function(t) {
1618
1439
  for (var r, n = 1, i = arguments.length; n < i; n++) {
1619
1440
  r = arguments[n];
1620
- for (var s in r)
1621
- Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
1441
+ for (var o in r)
1442
+ Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1622
1443
  }
1623
1444
  return t;
1624
- }, Be.apply(this, arguments);
1445
+ }, Ee.apply(this, arguments);
1625
1446
  };
1626
- var g;
1447
+ var y;
1627
1448
  (function(e) {
1628
1449
  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";
1629
- })(g || (g = {}));
1630
- var E;
1450
+ })(y || (y = {}));
1451
+ var _;
1631
1452
  (function(e) {
1632
1453
  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";
1633
- })(E || (E = {}));
1634
- var te;
1454
+ })(_ || (_ = {}));
1455
+ var ee;
1635
1456
  (function(e) {
1636
1457
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
1637
- })(te || (te = {}));
1638
- function Nt(e) {
1639
- return e.type === E.literal;
1458
+ })(ee || (ee = {}));
1459
+ function St(e) {
1460
+ return e.type === _.literal;
1640
1461
  }
1641
- function hi(e) {
1642
- return e.type === E.argument;
1462
+ function Fn(e) {
1463
+ return e.type === _.argument;
1643
1464
  }
1644
- function yr(e) {
1645
- return e.type === E.number;
1465
+ function ir(e) {
1466
+ return e.type === _.number;
1646
1467
  }
1647
- function gr(e) {
1648
- return e.type === E.date;
1468
+ function or(e) {
1469
+ return e.type === _.date;
1649
1470
  }
1650
- function vr(e) {
1651
- return e.type === E.time;
1471
+ function sr(e) {
1472
+ return e.type === _.time;
1652
1473
  }
1653
- function _r(e) {
1654
- return e.type === E.select;
1474
+ function ar(e) {
1475
+ return e.type === _.select;
1655
1476
  }
1656
- function Er(e) {
1657
- return e.type === E.plural;
1477
+ function ur(e) {
1478
+ return e.type === _.plural;
1658
1479
  }
1659
- function ci(e) {
1660
- return e.type === E.pound;
1480
+ function jn(e) {
1481
+ return e.type === _.pound;
1661
1482
  }
1662
- function xr(e) {
1663
- return e.type === E.tag;
1483
+ function lr(e) {
1484
+ return e.type === _.tag;
1664
1485
  }
1665
- function wr(e) {
1666
- return !!(e && typeof e == "object" && e.type === te.number);
1486
+ function hr(e) {
1487
+ return !!(e && typeof e == "object" && e.type === ee.number);
1667
1488
  }
1668
- function nt(e) {
1669
- return !!(e && typeof e == "object" && e.type === te.dateTime);
1489
+ function Je(e) {
1490
+ return !!(e && typeof e == "object" && e.type === ee.dateTime);
1670
1491
  }
1671
- var Sr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, fi = /(?:[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;
1672
- function di(e) {
1492
+ var cr = /[ \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;
1493
+ function Vn(e) {
1673
1494
  var t = {};
1674
- return e.replace(fi, function(r) {
1495
+ return e.replace(kn, function(r) {
1675
1496
  var n = r.length;
1676
1497
  switch (r[0]) {
1677
1498
  case "G":
@@ -1760,46 +1581,46 @@ function di(e) {
1760
1581
  return "";
1761
1582
  }), t;
1762
1583
  }
1763
- var w = function() {
1764
- return w = Object.assign || function(t) {
1584
+ var x = function() {
1585
+ return x = Object.assign || function(t) {
1765
1586
  for (var r, n = 1, i = arguments.length; n < i; n++) {
1766
1587
  r = arguments[n];
1767
- for (var s in r)
1768
- Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
1588
+ for (var o in r)
1589
+ Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1769
1590
  }
1770
1591
  return t;
1771
- }, w.apply(this, arguments);
1592
+ }, x.apply(this, arguments);
1772
1593
  };
1773
- var pi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1774
- function mi(e) {
1594
+ var Xn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1595
+ function Wn(e) {
1775
1596
  if (e.length === 0)
1776
1597
  throw new Error("Number skeleton cannot be empty");
1777
- for (var t = e.split(pi).filter(function(c) {
1598
+ for (var t = e.split(Xn).filter(function(c) {
1778
1599
  return c.length > 0;
1779
1600
  }), r = [], n = 0, i = t; n < i.length; n++) {
1780
- var s = i[n], a = s.split("/");
1781
- if (a.length === 0)
1601
+ var o = i[n], s = o.split("/");
1602
+ if (s.length === 0)
1782
1603
  throw new Error("Invalid number skeleton");
1783
- for (var o = a[0], l = a.slice(1), u = 0, h = l; u < h.length; u++) {
1604
+ for (var a = s[0], l = s.slice(1), u = 0, h = l; u < h.length; u++) {
1784
1605
  var f = h[u];
1785
1606
  if (f.length === 0)
1786
1607
  throw new Error("Invalid number skeleton");
1787
1608
  }
1788
- r.push({ stem: o, options: l });
1609
+ r.push({ stem: a, options: l });
1789
1610
  }
1790
1611
  return r;
1791
1612
  }
1792
- function bi(e) {
1613
+ function zn(e) {
1793
1614
  return e.replace(/^(.*?)-/, "");
1794
1615
  }
1795
- var Mt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Tr = /^(@+)?(\+|#+)?[rs]?$/g, yi = /(\*)(0+)|(#+)(0+)|(0+)/g, Hr = /^(0+)$/;
1796
- function $t(e) {
1616
+ var wt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, fr = /^(@+)?(\+|#+)?[rs]?$/g, Zn = /(\*)(0+)|(#+)(0+)|(0+)/g, dr = /^(0+)$/;
1617
+ function Tt(e) {
1797
1618
  var t = {};
1798
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Tr, function(r, n, i) {
1619
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(fr, function(r, n, i) {
1799
1620
  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)), "";
1800
1621
  }), t;
1801
1622
  }
1802
- function Pr(e) {
1623
+ function pr(e) {
1803
1624
  switch (e) {
1804
1625
  case "sign-auto":
1805
1626
  return {
@@ -1839,7 +1660,7 @@ function Pr(e) {
1839
1660
  };
1840
1661
  }
1841
1662
  }
1842
- function gi(e) {
1663
+ function Qn(e) {
1843
1664
  var t;
1844
1665
  if (e[0] === "E" && e[1] === "E" ? (t = {
1845
1666
  notation: "engineering"
@@ -1847,17 +1668,17 @@ function gi(e) {
1847
1668
  notation: "scientific"
1848
1669
  }, e = e.slice(1)), t) {
1849
1670
  var r = e.slice(0, 2);
1850
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Hr.test(e))
1671
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !dr.test(e))
1851
1672
  throw new Error("Malformed concise eng/scientific notation");
1852
1673
  t.minimumIntegerDigits = e.length;
1853
1674
  }
1854
1675
  return t;
1855
1676
  }
1856
- function Rt(e) {
1857
- var t = {}, r = Pr(e);
1677
+ function Ht(e) {
1678
+ var t = {}, r = pr(e);
1858
1679
  return r || t;
1859
1680
  }
1860
- function vi(e) {
1681
+ function qn(e) {
1861
1682
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
1862
1683
  var i = n[r];
1863
1684
  switch (i.stem) {
@@ -1881,7 +1702,7 @@ function vi(e) {
1881
1702
  continue;
1882
1703
  case "measure-unit":
1883
1704
  case "unit":
1884
- t.style = "unit", t.unit = bi(i.options[0]);
1705
+ t.style = "unit", t.unit = zn(i.options[0]);
1885
1706
  continue;
1886
1707
  case "compact-short":
1887
1708
  case "K":
@@ -1892,13 +1713,13 @@ function vi(e) {
1892
1713
  t.notation = "compact", t.compactDisplay = "long";
1893
1714
  continue;
1894
1715
  case "scientific":
1895
- t = w(w(w({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
1896
- return w(w({}, l), Rt(u));
1716
+ t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
1717
+ return x(x({}, l), Ht(u));
1897
1718
  }, {}));
1898
1719
  continue;
1899
1720
  case "engineering":
1900
- t = w(w(w({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
1901
- return w(w({}, l), Rt(u));
1721
+ t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
1722
+ return x(x({}, l), Ht(u));
1902
1723
  }, {}));
1903
1724
  continue;
1904
1725
  case "notation-simple":
@@ -1943,45 +1764,45 @@ function vi(e) {
1943
1764
  case "integer-width":
1944
1765
  if (i.options.length > 1)
1945
1766
  throw new RangeError("integer-width stems only accept a single optional option");
1946
- i.options[0].replace(yi, function(l, u, h, f, c, p) {
1767
+ i.options[0].replace(Zn, function(l, u, h, f, c, m) {
1947
1768
  if (u)
1948
1769
  t.minimumIntegerDigits = h.length;
1949
1770
  else {
1950
1771
  if (f && c)
1951
1772
  throw new Error("We currently do not support maximum integer digits");
1952
- if (p)
1773
+ if (m)
1953
1774
  throw new Error("We currently do not support exact integer digits");
1954
1775
  }
1955
1776
  return "";
1956
1777
  });
1957
1778
  continue;
1958
1779
  }
1959
- if (Hr.test(i.stem)) {
1780
+ if (dr.test(i.stem)) {
1960
1781
  t.minimumIntegerDigits = i.stem.length;
1961
1782
  continue;
1962
1783
  }
1963
- if (Mt.test(i.stem)) {
1784
+ if (wt.test(i.stem)) {
1964
1785
  if (i.options.length > 1)
1965
1786
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1966
- i.stem.replace(Mt, function(l, u, h, f, c, p) {
1967
- 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), "";
1787
+ i.stem.replace(wt, function(l, u, h, f, c, m) {
1788
+ 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), "";
1968
1789
  });
1969
- var s = i.options[0];
1970
- s === "w" ? t = w(w({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = w(w({}, t), $t(s)));
1790
+ var o = i.options[0];
1791
+ o === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = x(x({}, t), Tt(o)));
1971
1792
  continue;
1972
1793
  }
1973
- if (Tr.test(i.stem)) {
1974
- t = w(w({}, t), $t(i.stem));
1794
+ if (fr.test(i.stem)) {
1795
+ t = x(x({}, t), Tt(i.stem));
1975
1796
  continue;
1976
1797
  }
1977
- var a = Pr(i.stem);
1978
- a && (t = w(w({}, t), a));
1979
- var o = gi(i.stem);
1980
- o && (t = w(w({}, t), o));
1798
+ var s = pr(i.stem);
1799
+ s && (t = x(x({}, t), s));
1800
+ var a = Qn(i.stem);
1801
+ a && (t = x(x({}, t), a));
1981
1802
  }
1982
1803
  return t;
1983
1804
  }
1984
- var _e = {
1805
+ var me = {
1985
1806
  "001": [
1986
1807
  "H",
1987
1808
  "h"
@@ -3396,23 +3217,23 @@ var _e = {
3396
3217
  "h"
3397
3218
  ]
3398
3219
  };
3399
- function _i(e, t) {
3220
+ function Jn(e, t) {
3400
3221
  for (var r = "", n = 0; n < e.length; n++) {
3401
3222
  var i = e.charAt(n);
3402
3223
  if (i === "j") {
3403
- for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
3404
- s++, n++;
3405
- var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = Ei(t);
3406
- for ((u == "H" || u == "k") && (o = 0); o-- > 0; )
3224
+ for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
3225
+ o++, n++;
3226
+ var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Yn(t);
3227
+ for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
3407
3228
  r += l;
3408
- for (; a-- > 0; )
3229
+ for (; s-- > 0; )
3409
3230
  r = u + r;
3410
3231
  } else
3411
3232
  i === "J" ? r += "H" : r += i;
3412
3233
  }
3413
3234
  return r;
3414
3235
  }
3415
- function Ei(e) {
3236
+ function Yn(e) {
3416
3237
  var t = e.hourCycle;
3417
3238
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
3418
3239
  e.hourCycles && // @ts-ignore
@@ -3431,23 +3252,23 @@ function Ei(e) {
3431
3252
  }
3432
3253
  var r = e.language, n;
3433
3254
  r !== "root" && (n = e.maximize().region);
3434
- var i = _e[n || ""] || _e[r || ""] || _e["".concat(r, "-001")] || _e["001"];
3255
+ var i = me[n || ""] || me[r || ""] || me["".concat(r, "-001")] || me["001"];
3435
3256
  return i[0];
3436
3257
  }
3437
- var Xe, xi = new RegExp("^".concat(Sr.source, "*")), wi = new RegExp("".concat(Sr.source, "*$"));
3258
+ var De, Kn = new RegExp("^".concat(cr.source, "*")), ei = new RegExp("".concat(cr.source, "*$"));
3438
3259
  function v(e, t) {
3439
3260
  return { start: e, end: t };
3440
3261
  }
3441
- var Si = !!String.prototype.startsWith && "_a".startsWith("a", 1), Ti = !!String.fromCodePoint, Hi = !!Object.fromEntries, Pi = !!String.prototype.codePointAt, Ai = !!String.prototype.trimStart, Bi = !!String.prototype.trimEnd, Oi = !!Number.isSafeInteger, Ii = Oi ? Number.isSafeInteger : function(e) {
3262
+ 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) {
3442
3263
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
3443
- }, it = !0;
3264
+ }, Ye = !0;
3444
3265
  try {
3445
- var Ci = Br("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3446
- it = ((Xe = Ci.exec("a")) === null || Xe === void 0 ? void 0 : Xe[0]) === "a";
3266
+ var li = br("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3267
+ Ye = ((De = li.exec("a")) === null || De === void 0 ? void 0 : De[0]) === "a";
3447
3268
  } catch (e) {
3448
- it = !1;
3269
+ Ye = !1;
3449
3270
  }
3450
- var Dt = Si ? (
3271
+ var Pt = ti ? (
3451
3272
  // Native
3452
3273
  function(t, r, n) {
3453
3274
  return t.startsWith(r, n);
@@ -3457,31 +3278,31 @@ var Dt = Si ? (
3457
3278
  function(t, r, n) {
3458
3279
  return t.slice(n, n + r.length) === r;
3459
3280
  }
3460
- ), st = Ti ? String.fromCodePoint : (
3281
+ ), Ke = ri ? String.fromCodePoint : (
3461
3282
  // IE11
3462
3283
  function() {
3463
3284
  for (var t = [], r = 0; r < arguments.length; r++)
3464
3285
  t[r] = arguments[r];
3465
- for (var n = "", i = t.length, s = 0, a; i > s; ) {
3466
- if (a = t[s++], a > 1114111)
3467
- throw RangeError(a + " is not a valid code point");
3468
- n += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
3286
+ for (var n = "", i = t.length, o = 0, s; i > o; ) {
3287
+ if (s = t[o++], s > 1114111)
3288
+ throw RangeError(s + " is not a valid code point");
3289
+ n += s < 65536 ? String.fromCharCode(s) : String.fromCharCode(((s -= 65536) >> 10) + 55296, s % 1024 + 56320);
3469
3290
  }
3470
3291
  return n;
3471
3292
  }
3472
- ), Ut = (
3293
+ ), Bt = (
3473
3294
  // native
3474
- Hi ? Object.fromEntries : (
3295
+ ni ? Object.fromEntries : (
3475
3296
  // Ponyfill
3476
3297
  function(t) {
3477
3298
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
3478
- var s = i[n], a = s[0], o = s[1];
3479
- r[a] = o;
3299
+ var o = i[n], s = o[0], a = o[1];
3300
+ r[s] = a;
3480
3301
  }
3481
3302
  return r;
3482
3303
  }
3483
3304
  )
3484
- ), Ar = Pi ? (
3305
+ ), mr = ii ? (
3485
3306
  // Native
3486
3307
  function(t, r) {
3487
3308
  return t.codePointAt(r);
@@ -3491,11 +3312,11 @@ var Dt = Si ? (
3491
3312
  function(t, r) {
3492
3313
  var n = t.length;
3493
3314
  if (!(r < 0 || r >= n)) {
3494
- var i = t.charCodeAt(r), s;
3495
- return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
3315
+ var i = t.charCodeAt(r), o;
3316
+ return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
3496
3317
  }
3497
3318
  }
3498
- ), Li = Ai ? (
3319
+ ), hi = oi ? (
3499
3320
  // Native
3500
3321
  function(t) {
3501
3322
  return t.trimStart();
@@ -3503,9 +3324,9 @@ var Dt = Si ? (
3503
3324
  ) : (
3504
3325
  // Ponyfill
3505
3326
  function(t) {
3506
- return t.replace(xi, "");
3327
+ return t.replace(Kn, "");
3507
3328
  }
3508
- ), Ni = Bi ? (
3329
+ ), ci = si ? (
3509
3330
  // Native
3510
3331
  function(t) {
3511
3332
  return t.trimEnd();
@@ -3513,32 +3334,32 @@ var Dt = Si ? (
3513
3334
  ) : (
3514
3335
  // Ponyfill
3515
3336
  function(t) {
3516
- return t.replace(wi, "");
3337
+ return t.replace(ei, "");
3517
3338
  }
3518
3339
  );
3519
- function Br(e, t) {
3340
+ function br(e, t) {
3520
3341
  return new RegExp(e, t);
3521
3342
  }
3522
- var ot;
3523
- if (it) {
3524
- var Gt = Br("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3525
- ot = function(t, r) {
3343
+ var et;
3344
+ if (Ye) {
3345
+ var At = br("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3346
+ et = function(t, r) {
3526
3347
  var n;
3527
- Gt.lastIndex = r;
3528
- var i = Gt.exec(t);
3348
+ At.lastIndex = r;
3349
+ var i = At.exec(t);
3529
3350
  return (n = i[1]) !== null && n !== void 0 ? n : "";
3530
3351
  };
3531
3352
  } else
3532
- ot = function(t, r) {
3353
+ et = function(t, r) {
3533
3354
  for (var n = []; ; ) {
3534
- var i = Ar(t, r);
3535
- if (i === void 0 || Or(i) || Di(i))
3355
+ var i = mr(t, r);
3356
+ if (i === void 0 || yr(i) || mi(i))
3536
3357
  break;
3537
3358
  n.push(i), r += i >= 65536 ? 2 : 1;
3538
3359
  }
3539
- return st.apply(void 0, n);
3360
+ return Ke.apply(void 0, n);
3540
3361
  };
3541
- var Mi = (
3362
+ var fi = (
3542
3363
  /** @class */
3543
3364
  function() {
3544
3365
  function e(t, r) {
@@ -3550,35 +3371,35 @@ var Mi = (
3550
3371
  return this.parseMessage(0, "", !1);
3551
3372
  }, e.prototype.parseMessage = function(t, r, n) {
3552
3373
  for (var i = []; !this.isEOF(); ) {
3553
- var s = this.char();
3554
- if (s === 123) {
3555
- var a = this.parseArgument(t, n);
3556
- if (a.err)
3557
- return a;
3558
- i.push(a.val);
3374
+ var o = this.char();
3375
+ if (o === 123) {
3376
+ var s = this.parseArgument(t, n);
3377
+ if (s.err)
3378
+ return s;
3379
+ i.push(s.val);
3559
3380
  } else {
3560
- if (s === 125 && t > 0)
3381
+ if (o === 125 && t > 0)
3561
3382
  break;
3562
- if (s === 35 && (r === "plural" || r === "selectordinal")) {
3563
- var o = this.clonePosition();
3383
+ if (o === 35 && (r === "plural" || r === "selectordinal")) {
3384
+ var a = this.clonePosition();
3564
3385
  this.bump(), i.push({
3565
- type: E.pound,
3566
- location: v(o, this.clonePosition())
3386
+ type: _.pound,
3387
+ location: v(a, this.clonePosition())
3567
3388
  });
3568
- } else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
3389
+ } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
3569
3390
  if (n)
3570
3391
  break;
3571
- return this.error(g.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
3572
- } else if (s === 60 && !this.ignoreTag && at(this.peek() || 0)) {
3573
- var a = this.parseTag(t, r);
3574
- if (a.err)
3575
- return a;
3576
- i.push(a.val);
3392
+ return this.error(y.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
3393
+ } else if (o === 60 && !this.ignoreTag && tt(this.peek() || 0)) {
3394
+ var s = this.parseTag(t, r);
3395
+ if (s.err)
3396
+ return s;
3397
+ i.push(s.val);
3577
3398
  } else {
3578
- var a = this.parseLiteral(t, r);
3579
- if (a.err)
3580
- return a;
3581
- i.push(a.val);
3399
+ var s = this.parseLiteral(t, r);
3400
+ if (s.err)
3401
+ return s;
3402
+ i.push(s.val);
3582
3403
  }
3583
3404
  }
3584
3405
  }
@@ -3590,66 +3411,66 @@ var Mi = (
3590
3411
  if (this.bumpSpace(), this.bumpIf("/>"))
3591
3412
  return {
3592
3413
  val: {
3593
- type: E.literal,
3414
+ type: _.literal,
3594
3415
  value: "<".concat(i, "/>"),
3595
3416
  location: v(n, this.clonePosition())
3596
3417
  },
3597
3418
  err: null
3598
3419
  };
3599
3420
  if (this.bumpIf(">")) {
3600
- var s = this.parseMessage(t + 1, r, !0);
3601
- if (s.err)
3602
- return s;
3603
- var a = s.val, o = this.clonePosition();
3421
+ var o = this.parseMessage(t + 1, r, !0);
3422
+ if (o.err)
3423
+ return o;
3424
+ var s = o.val, a = this.clonePosition();
3604
3425
  if (this.bumpIf("</")) {
3605
- if (this.isEOF() || !at(this.char()))
3606
- return this.error(g.INVALID_TAG, v(o, this.clonePosition()));
3426
+ if (this.isEOF() || !tt(this.char()))
3427
+ return this.error(y.INVALID_TAG, v(a, this.clonePosition()));
3607
3428
  var l = this.clonePosition(), u = this.parseTagName();
3608
- return i !== u ? this.error(g.UNMATCHED_CLOSING_TAG, v(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3429
+ return i !== u ? this.error(y.UNMATCHED_CLOSING_TAG, v(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3609
3430
  val: {
3610
- type: E.tag,
3431
+ type: _.tag,
3611
3432
  value: i,
3612
- children: a,
3433
+ children: s,
3613
3434
  location: v(n, this.clonePosition())
3614
3435
  },
3615
3436
  err: null
3616
- } : this.error(g.INVALID_TAG, v(o, this.clonePosition())));
3437
+ } : this.error(y.INVALID_TAG, v(a, this.clonePosition())));
3617
3438
  } else
3618
- return this.error(g.UNCLOSED_TAG, v(n, this.clonePosition()));
3439
+ return this.error(y.UNCLOSED_TAG, v(n, this.clonePosition()));
3619
3440
  } else
3620
- return this.error(g.INVALID_TAG, v(n, this.clonePosition()));
3441
+ return this.error(y.INVALID_TAG, v(n, this.clonePosition()));
3621
3442
  }, e.prototype.parseTagName = function() {
3622
3443
  var t = this.offset();
3623
- for (this.bump(); !this.isEOF() && Ri(this.char()); )
3444
+ for (this.bump(); !this.isEOF() && pi(this.char()); )
3624
3445
  this.bump();
3625
3446
  return this.message.slice(t, this.offset());
3626
3447
  }, e.prototype.parseLiteral = function(t, r) {
3627
3448
  for (var n = this.clonePosition(), i = ""; ; ) {
3628
- var s = this.tryParseQuote(r);
3449
+ var o = this.tryParseQuote(r);
3450
+ if (o) {
3451
+ i += o;
3452
+ continue;
3453
+ }
3454
+ var s = this.tryParseUnquoted(t, r);
3629
3455
  if (s) {
3630
3456
  i += s;
3631
3457
  continue;
3632
3458
  }
3633
- var a = this.tryParseUnquoted(t, r);
3459
+ var a = this.tryParseLeftAngleBracket();
3634
3460
  if (a) {
3635
3461
  i += a;
3636
3462
  continue;
3637
3463
  }
3638
- var o = this.tryParseLeftAngleBracket();
3639
- if (o) {
3640
- i += o;
3641
- continue;
3642
- }
3643
3464
  break;
3644
3465
  }
3645
3466
  var l = v(n, this.clonePosition());
3646
3467
  return {
3647
- val: { type: E.literal, value: i, location: l },
3468
+ val: { type: _.literal, value: i, location: l },
3648
3469
  err: null
3649
3470
  };
3650
3471
  }, e.prototype.tryParseLeftAngleBracket = function() {
3651
3472
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
3652
- !$i(this.peek() || 0)) ? (this.bump(), "<") : null;
3473
+ !di(this.peek() || 0)) ? (this.bump(), "<") : null;
3653
3474
  }, e.prototype.tryParseQuote = function(t) {
3654
3475
  if (this.isEOF() || this.char() !== 39)
3655
3476
  return null;
@@ -3683,28 +3504,28 @@ var Mi = (
3683
3504
  r.push(n);
3684
3505
  this.bump();
3685
3506
  }
3686
- return st.apply(void 0, r);
3507
+ return Ke.apply(void 0, r);
3687
3508
  }, e.prototype.tryParseUnquoted = function(t, r) {
3688
3509
  if (this.isEOF())
3689
3510
  return null;
3690
3511
  var n = this.char();
3691
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), st(n));
3512
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ke(n));
3692
3513
  }, e.prototype.parseArgument = function(t, r) {
3693
3514
  var n = this.clonePosition();
3694
3515
  if (this.bump(), this.bumpSpace(), this.isEOF())
3695
- return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
3516
+ return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
3696
3517
  if (this.char() === 125)
3697
- return this.bump(), this.error(g.EMPTY_ARGUMENT, v(n, this.clonePosition()));
3518
+ return this.bump(), this.error(y.EMPTY_ARGUMENT, v(n, this.clonePosition()));
3698
3519
  var i = this.parseIdentifierIfPossible().value;
3699
3520
  if (!i)
3700
- return this.error(g.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
3521
+ return this.error(y.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
3701
3522
  if (this.bumpSpace(), this.isEOF())
3702
- return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
3523
+ return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
3703
3524
  switch (this.char()) {
3704
3525
  case 125:
3705
3526
  return this.bump(), {
3706
3527
  val: {
3707
- type: E.argument,
3528
+ type: _.argument,
3708
3529
  // value does not include the opening and closing braces.
3709
3530
  value: i,
3710
3531
  location: v(n, this.clonePosition())
@@ -3712,20 +3533,20 @@ var Mi = (
3712
3533
  err: null
3713
3534
  };
3714
3535
  case 44:
3715
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
3536
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
3716
3537
  default:
3717
- return this.error(g.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
3538
+ return this.error(y.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
3718
3539
  }
3719
3540
  }, e.prototype.parseIdentifierIfPossible = function() {
3720
- var t = this.clonePosition(), r = this.offset(), n = ot(this.message, r), i = r + n.length;
3541
+ var t = this.clonePosition(), r = this.offset(), n = et(this.message, r), i = r + n.length;
3721
3542
  this.bumpTo(i);
3722
- var s = this.clonePosition(), a = v(t, s);
3723
- return { value: n, location: a };
3543
+ var o = this.clonePosition(), s = v(t, o);
3544
+ return { value: n, location: s };
3724
3545
  }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
3725
- var s, a = this.clonePosition(), o = this.parseIdentifierIfPossible().value, l = this.clonePosition();
3726
- switch (o) {
3546
+ var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
3547
+ switch (a) {
3727
3548
  case "":
3728
- return this.error(g.EXPECT_ARGUMENT_TYPE, v(a, l));
3549
+ return this.error(y.EXPECT_ARGUMENT_TYPE, v(s, l));
3729
3550
  case "number":
3730
3551
  case "date":
3731
3552
  case "time": {
@@ -3736,47 +3557,47 @@ var Mi = (
3736
3557
  var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
3737
3558
  if (f.err)
3738
3559
  return f;
3739
- var c = Ni(f.val);
3560
+ var c = ci(f.val);
3740
3561
  if (c.length === 0)
3741
- return this.error(g.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
3742
- var p = v(h, this.clonePosition());
3743
- u = { style: c, styleLocation: p };
3562
+ return this.error(y.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
3563
+ var m = v(h, this.clonePosition());
3564
+ u = { style: c, styleLocation: m };
3744
3565
  }
3745
- var d = this.tryParseArgumentClose(i);
3746
- if (d.err)
3747
- return d;
3748
- var m = v(i, this.clonePosition());
3749
- if (u && Dt(u == null ? void 0 : u.style, "::", 0)) {
3750
- var _ = Li(u.style.slice(2));
3751
- if (o === "number") {
3752
- var f = this.parseNumberSkeletonFromString(_, u.styleLocation);
3566
+ var b = this.tryParseArgumentClose(i);
3567
+ if (b.err)
3568
+ return b;
3569
+ var g = v(i, this.clonePosition());
3570
+ if (u && Pt(u == null ? void 0 : u.style, "::", 0)) {
3571
+ var S = hi(u.style.slice(2));
3572
+ if (a === "number") {
3573
+ var f = this.parseNumberSkeletonFromString(S, u.styleLocation);
3753
3574
  return f.err ? f : {
3754
- val: { type: E.number, value: n, location: m, style: f.val },
3575
+ val: { type: _.number, value: n, location: g, style: f.val },
3755
3576
  err: null
3756
3577
  };
3757
3578
  } else {
3758
- if (_.length === 0)
3759
- return this.error(g.EXPECT_DATE_TIME_SKELETON, m);
3760
- var T = _;
3761
- this.locale && (T = _i(_, this.locale));
3579
+ if (S.length === 0)
3580
+ return this.error(y.EXPECT_DATE_TIME_SKELETON, g);
3581
+ var I = S;
3582
+ this.locale && (I = Jn(S, this.locale));
3762
3583
  var c = {
3763
- type: te.dateTime,
3764
- pattern: T,
3584
+ type: ee.dateTime,
3585
+ pattern: I,
3765
3586
  location: u.styleLocation,
3766
- parsedOptions: this.shouldParseSkeletons ? di(T) : {}
3767
- }, H = o === "date" ? E.date : E.time;
3587
+ parsedOptions: this.shouldParseSkeletons ? Vn(I) : {}
3588
+ }, B = a === "date" ? _.date : _.time;
3768
3589
  return {
3769
- val: { type: H, value: n, location: m, style: c },
3590
+ val: { type: B, value: n, location: g, style: c },
3770
3591
  err: null
3771
3592
  };
3772
3593
  }
3773
3594
  }
3774
3595
  return {
3775
3596
  val: {
3776
- type: o === "number" ? E.number : o === "date" ? E.date : E.time,
3597
+ type: a === "number" ? _.number : a === "date" ? _.date : _.time,
3777
3598
  value: n,
3778
- location: m,
3779
- style: (s = u == null ? void 0 : u.style) !== null && s !== void 0 ? s : null
3599
+ location: g,
3600
+ style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
3780
3601
  },
3781
3602
  err: null
3782
3603
  };
@@ -3784,52 +3605,52 @@ var Mi = (
3784
3605
  case "plural":
3785
3606
  case "selectordinal":
3786
3607
  case "select": {
3787
- var S = this.clonePosition();
3608
+ var w = this.clonePosition();
3788
3609
  if (this.bumpSpace(), !this.bumpIf(","))
3789
- return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS, v(S, Be({}, S)));
3610
+ return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, v(w, Ee({}, w)));
3790
3611
  this.bumpSpace();
3791
- var I = this.parseIdentifierIfPossible(), P = 0;
3792
- if (o !== "select" && I.value === "offset") {
3612
+ var N = this.parseIdentifierIfPossible(), C = 0;
3613
+ if (a !== "select" && N.value === "offset") {
3793
3614
  if (!this.bumpIf(":"))
3794
- return this.error(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v(this.clonePosition(), this.clonePosition()));
3615
+ return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v(this.clonePosition(), this.clonePosition()));
3795
3616
  this.bumpSpace();
3796
- var f = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3617
+ var f = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3797
3618
  if (f.err)
3798
3619
  return f;
3799
- this.bumpSpace(), I = this.parseIdentifierIfPossible(), P = f.val;
3620
+ this.bumpSpace(), N = this.parseIdentifierIfPossible(), C = f.val;
3800
3621
  }
3801
- var N = this.tryParsePluralOrSelectOptions(t, o, r, I);
3802
- if (N.err)
3803
- return N;
3804
- var d = this.tryParseArgumentClose(i);
3805
- if (d.err)
3806
- return d;
3807
- var x = v(i, this.clonePosition());
3808
- return o === "select" ? {
3622
+ var M = this.tryParsePluralOrSelectOptions(t, a, r, N);
3623
+ if (M.err)
3624
+ return M;
3625
+ var b = this.tryParseArgumentClose(i);
3626
+ if (b.err)
3627
+ return b;
3628
+ var E = v(i, this.clonePosition());
3629
+ return a === "select" ? {
3809
3630
  val: {
3810
- type: E.select,
3631
+ type: _.select,
3811
3632
  value: n,
3812
- options: Ut(N.val),
3813
- location: x
3633
+ options: Bt(M.val),
3634
+ location: E
3814
3635
  },
3815
3636
  err: null
3816
3637
  } : {
3817
3638
  val: {
3818
- type: E.plural,
3639
+ type: _.plural,
3819
3640
  value: n,
3820
- options: Ut(N.val),
3821
- offset: P,
3822
- pluralType: o === "plural" ? "cardinal" : "ordinal",
3823
- location: x
3641
+ options: Bt(M.val),
3642
+ offset: C,
3643
+ pluralType: a === "plural" ? "cardinal" : "ordinal",
3644
+ location: E
3824
3645
  },
3825
3646
  err: null
3826
3647
  };
3827
3648
  }
3828
3649
  default:
3829
- return this.error(g.INVALID_ARGUMENT_TYPE, v(a, l));
3650
+ return this.error(y.INVALID_ARGUMENT_TYPE, v(s, l));
3830
3651
  }
3831
3652
  }, e.prototype.tryParseArgumentClose = function(t) {
3832
- return this.isEOF() || this.char() !== 125 ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, v(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
3653
+ return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
3833
3654
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
3834
3655
  for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
3835
3656
  var n = this.char();
@@ -3838,7 +3659,7 @@ var Mi = (
3838
3659
  this.bump();
3839
3660
  var i = this.clonePosition();
3840
3661
  if (!this.bumpUntil("'"))
3841
- return this.error(g.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, v(i, this.clonePosition()));
3662
+ return this.error(y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, v(i, this.clonePosition()));
3842
3663
  this.bump();
3843
3664
  break;
3844
3665
  }
@@ -3868,25 +3689,25 @@ var Mi = (
3868
3689
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3869
3690
  var n = [];
3870
3691
  try {
3871
- n = mi(t);
3692
+ n = Wn(t);
3872
3693
  } catch (i) {
3873
- return this.error(g.INVALID_NUMBER_SKELETON, r);
3694
+ return this.error(y.INVALID_NUMBER_SKELETON, r);
3874
3695
  }
3875
3696
  return {
3876
3697
  val: {
3877
- type: te.number,
3698
+ type: ee.number,
3878
3699
  tokens: n,
3879
3700
  location: r,
3880
- parsedOptions: this.shouldParseSkeletons ? vi(n) : {}
3701
+ parsedOptions: this.shouldParseSkeletons ? qn(n) : {}
3881
3702
  },
3882
3703
  err: null
3883
3704
  };
3884
3705
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
3885
- for (var s, a = !1, o = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
3706
+ for (var o, s = !1, a = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
3886
3707
  if (u.length === 0) {
3887
3708
  var f = this.clonePosition();
3888
3709
  if (r !== "select" && this.bumpIf("=")) {
3889
- var c = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_SELECTOR, g.INVALID_PLURAL_ARGUMENT_SELECTOR);
3710
+ var c = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_SELECTOR, y.INVALID_PLURAL_ARGUMENT_SELECTOR);
3890
3711
  if (c.err)
3891
3712
  return c;
3892
3713
  h = v(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
@@ -3894,38 +3715,38 @@ var Mi = (
3894
3715
  break;
3895
3716
  }
3896
3717
  if (l.has(u))
3897
- return this.error(r === "select" ? g.DUPLICATE_SELECT_ARGUMENT_SELECTOR : g.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
3898
- u === "other" && (a = !0), this.bumpSpace();
3899
- var p = this.clonePosition();
3718
+ return this.error(r === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
3719
+ u === "other" && (s = !0), this.bumpSpace();
3720
+ var m = this.clonePosition();
3900
3721
  if (!this.bumpIf("{"))
3901
- return this.error(r === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : g.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, v(this.clonePosition(), this.clonePosition()));
3902
- var d = this.parseMessage(t + 1, r, n);
3903
- if (d.err)
3904
- return d;
3905
- var m = this.tryParseArgumentClose(p);
3906
- if (m.err)
3907
- return m;
3908
- o.push([
3722
+ return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, v(this.clonePosition(), this.clonePosition()));
3723
+ var b = this.parseMessage(t + 1, r, n);
3724
+ if (b.err)
3725
+ return b;
3726
+ var g = this.tryParseArgumentClose(m);
3727
+ if (g.err)
3728
+ return g;
3729
+ a.push([
3909
3730
  u,
3910
3731
  {
3911
- value: d.val,
3912
- location: v(p, this.clonePosition())
3732
+ value: b.val,
3733
+ location: v(m, this.clonePosition())
3913
3734
  }
3914
- ]), l.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
3735
+ ]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
3915
3736
  }
3916
- return o.length === 0 ? this.error(r === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR : g.EXPECT_PLURAL_ARGUMENT_SELECTOR, v(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(g.MISSING_OTHER_CLAUSE, v(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
3737
+ 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 };
3917
3738
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
3918
3739
  var n = 1, i = this.clonePosition();
3919
3740
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
3920
- for (var s = !1, a = 0; !this.isEOF(); ) {
3921
- var o = this.char();
3922
- if (o >= 48 && o <= 57)
3923
- s = !0, a = a * 10 + (o - 48), this.bump();
3741
+ for (var o = !1, s = 0; !this.isEOF(); ) {
3742
+ var a = this.char();
3743
+ if (a >= 48 && a <= 57)
3744
+ o = !0, s = s * 10 + (a - 48), this.bump();
3924
3745
  else
3925
3746
  break;
3926
3747
  }
3927
3748
  var l = v(i, this.clonePosition());
3928
- return s ? (a *= n, Ii(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
3749
+ return o ? (s *= n, ui(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
3929
3750
  }, e.prototype.offset = function() {
3930
3751
  return this.position.offset;
3931
3752
  }, e.prototype.isEOF = function() {
@@ -3940,7 +3761,7 @@ var Mi = (
3940
3761
  var t = this.position.offset;
3941
3762
  if (t >= this.message.length)
3942
3763
  throw Error("out of bound");
3943
- var r = Ar(this.message, t);
3764
+ var r = mr(this.message, t);
3944
3765
  if (r === void 0)
3945
3766
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3946
3767
  return r;
@@ -3959,7 +3780,7 @@ var Mi = (
3959
3780
  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);
3960
3781
  }
3961
3782
  }, e.prototype.bumpIf = function(t) {
3962
- if (Dt(this.message, t, this.offset())) {
3783
+ if (Pt(this.message, t, this.offset())) {
3963
3784
  for (var r = 0; r < t.length; r++)
3964
3785
  this.bump();
3965
3786
  return !0;
@@ -3981,7 +3802,7 @@ var Mi = (
3981
3802
  break;
3982
3803
  }
3983
3804
  }, e.prototype.bumpSpace = function() {
3984
- for (; !this.isEOF() && Or(this.char()); )
3805
+ for (; !this.isEOF() && yr(this.char()); )
3985
3806
  this.bump();
3986
3807
  }, e.prototype.peek = function() {
3987
3808
  if (this.isEOF())
@@ -3991,204 +3812,204 @@ var Mi = (
3991
3812
  }, e;
3992
3813
  }()
3993
3814
  );
3994
- function at(e) {
3815
+ function tt(e) {
3995
3816
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3996
3817
  }
3997
- function $i(e) {
3998
- return at(e) || e === 47;
3818
+ function di(e) {
3819
+ return tt(e) || e === 47;
3999
3820
  }
4000
- function Ri(e) {
3821
+ function pi(e) {
4001
3822
  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;
4002
3823
  }
4003
- function Or(e) {
3824
+ function yr(e) {
4004
3825
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
4005
3826
  }
4006
- function Di(e) {
3827
+ function mi(e) {
4007
3828
  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;
4008
3829
  }
4009
- function ut(e) {
3830
+ function rt(e) {
4010
3831
  e.forEach(function(t) {
4011
- if (delete t.location, _r(t) || Er(t))
3832
+ if (delete t.location, ar(t) || ur(t))
4012
3833
  for (var r in t.options)
4013
- delete t.options[r].location, ut(t.options[r].value);
3834
+ delete t.options[r].location, rt(t.options[r].value);
4014
3835
  else
4015
- yr(t) && wr(t.style) || (gr(t) || vr(t)) && nt(t.style) ? delete t.style.location : xr(t) && ut(t.children);
3836
+ ir(t) && hr(t.style) || (or(t) || sr(t)) && Je(t.style) ? delete t.style.location : lr(t) && rt(t.children);
4016
3837
  });
4017
3838
  }
4018
- function Ui(e, t) {
4019
- t === void 0 && (t = {}), t = Be({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
4020
- var r = new Mi(e, t).parse();
3839
+ function bi(e, t) {
3840
+ t === void 0 && (t = {}), t = Ee({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3841
+ var r = new fi(e, t).parse();
4021
3842
  if (r.err) {
4022
- var n = SyntaxError(g[r.err.kind]);
3843
+ var n = SyntaxError(y[r.err.kind]);
4023
3844
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
4024
3845
  }
4025
- return t != null && t.captureLocation || ut(r.val), r.val;
3846
+ return t != null && t.captureLocation || rt(r.val), r.val;
4026
3847
  }
4027
- var re;
3848
+ var te;
4028
3849
  (function(e) {
4029
3850
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
4030
- })(re || (re = {}));
4031
- var Me = (
3851
+ })(te || (te = {}));
3852
+ var Ae = (
4032
3853
  /** @class */
4033
3854
  function(e) {
4034
- Ne(t, e);
3855
+ Be(t, e);
4035
3856
  function t(r, n, i) {
4036
- var s = e.call(this, r) || this;
4037
- return s.code = n, s.originalMessage = i, s;
3857
+ var o = e.call(this, r) || this;
3858
+ return o.code = n, o.originalMessage = i, o;
4038
3859
  }
4039
3860
  return t.prototype.toString = function() {
4040
3861
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
4041
3862
  }, t;
4042
3863
  }(Error)
4043
- ), Ft = (
3864
+ ), Ot = (
4044
3865
  /** @class */
4045
3866
  function(e) {
4046
- Ne(t, e);
4047
- function t(r, n, i, s) {
4048
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), re.INVALID_VALUE, s) || this;
3867
+ Be(t, e);
3868
+ function t(r, n, i, o) {
3869
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), te.INVALID_VALUE, o) || this;
4049
3870
  }
4050
3871
  return t;
4051
- }(Me)
4052
- ), Gi = (
3872
+ }(Ae)
3873
+ ), yi = (
4053
3874
  /** @class */
4054
3875
  function(e) {
4055
- Ne(t, e);
3876
+ Be(t, e);
4056
3877
  function t(r, n, i) {
4057
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), re.INVALID_VALUE, i) || this;
3878
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), te.INVALID_VALUE, i) || this;
4058
3879
  }
4059
3880
  return t;
4060
- }(Me)
4061
- ), Fi = (
3881
+ }(Ae)
3882
+ ), gi = (
4062
3883
  /** @class */
4063
3884
  function(e) {
4064
- Ne(t, e);
3885
+ Be(t, e);
4065
3886
  function t(r, n) {
4066
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), re.MISSING_VALUE, n) || this;
3887
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), te.MISSING_VALUE, n) || this;
4067
3888
  }
4068
3889
  return t;
4069
- }(Me)
4070
- ), B;
3890
+ }(Ae)
3891
+ ), H;
4071
3892
  (function(e) {
4072
3893
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
4073
- })(B || (B = {}));
4074
- function ji(e) {
3894
+ })(H || (H = {}));
3895
+ function vi(e) {
4075
3896
  return e.length < 2 ? e : e.reduce(function(t, r) {
4076
3897
  var n = t[t.length - 1];
4077
- return !n || n.type !== B.literal || r.type !== B.literal ? t.push(r) : n.value += r.value, t;
3898
+ return !n || n.type !== H.literal || r.type !== H.literal ? t.push(r) : n.value += r.value, t;
4078
3899
  }, []);
4079
3900
  }
4080
- function ki(e) {
3901
+ function _i(e) {
4081
3902
  return typeof e == "function";
4082
3903
  }
4083
- function Se(e, t, r, n, i, s, a) {
4084
- if (e.length === 1 && Nt(e[0]))
3904
+ function ve(e, t, r, n, i, o, s) {
3905
+ if (e.length === 1 && St(e[0]))
4085
3906
  return [
4086
3907
  {
4087
- type: B.literal,
3908
+ type: H.literal,
4088
3909
  value: e[0].value
4089
3910
  }
4090
3911
  ];
4091
- for (var o = [], l = 0, u = e; l < u.length; l++) {
3912
+ for (var a = [], l = 0, u = e; l < u.length; l++) {
4092
3913
  var h = u[l];
4093
- if (Nt(h)) {
4094
- o.push({
4095
- type: B.literal,
3914
+ if (St(h)) {
3915
+ a.push({
3916
+ type: H.literal,
4096
3917
  value: h.value
4097
3918
  });
4098
3919
  continue;
4099
3920
  }
4100
- if (ci(h)) {
4101
- typeof s == "number" && o.push({
4102
- type: B.literal,
4103
- value: r.getNumberFormat(t).format(s)
3921
+ if (jn(h)) {
3922
+ typeof o == "number" && a.push({
3923
+ type: H.literal,
3924
+ value: r.getNumberFormat(t).format(o)
4104
3925
  });
4105
3926
  continue;
4106
3927
  }
4107
3928
  var f = h.value;
4108
3929
  if (!(i && f in i))
4109
- throw new Fi(f, a);
3930
+ throw new gi(f, s);
4110
3931
  var c = i[f];
4111
- if (hi(h)) {
4112
- (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), o.push({
4113
- type: typeof c == "string" ? B.literal : B.object,
3932
+ if (Fn(h)) {
3933
+ (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
3934
+ type: typeof c == "string" ? H.literal : H.object,
4114
3935
  value: c
4115
3936
  });
4116
3937
  continue;
4117
3938
  }
4118
- if (gr(h)) {
4119
- var p = typeof h.style == "string" ? n.date[h.style] : nt(h.style) ? h.style.parsedOptions : void 0;
4120
- o.push({
4121
- type: B.literal,
4122
- value: r.getDateTimeFormat(t, p).format(c)
3939
+ if (or(h)) {
3940
+ var m = typeof h.style == "string" ? n.date[h.style] : Je(h.style) ? h.style.parsedOptions : void 0;
3941
+ a.push({
3942
+ type: H.literal,
3943
+ value: r.getDateTimeFormat(t, m).format(c)
4123
3944
  });
4124
3945
  continue;
4125
3946
  }
4126
- if (vr(h)) {
4127
- var p = typeof h.style == "string" ? n.time[h.style] : nt(h.style) ? h.style.parsedOptions : n.time.medium;
4128
- o.push({
4129
- type: B.literal,
4130
- value: r.getDateTimeFormat(t, p).format(c)
3947
+ if (sr(h)) {
3948
+ var m = typeof h.style == "string" ? n.time[h.style] : Je(h.style) ? h.style.parsedOptions : n.time.medium;
3949
+ a.push({
3950
+ type: H.literal,
3951
+ value: r.getDateTimeFormat(t, m).format(c)
4131
3952
  });
4132
3953
  continue;
4133
3954
  }
4134
- if (yr(h)) {
4135
- var p = typeof h.style == "string" ? n.number[h.style] : wr(h.style) ? h.style.parsedOptions : void 0;
4136
- p && p.scale && (c = c * (p.scale || 1)), o.push({
4137
- type: B.literal,
4138
- value: r.getNumberFormat(t, p).format(c)
3955
+ if (ir(h)) {
3956
+ var m = typeof h.style == "string" ? n.number[h.style] : hr(h.style) ? h.style.parsedOptions : void 0;
3957
+ m && m.scale && (c = c * (m.scale || 1)), a.push({
3958
+ type: H.literal,
3959
+ value: r.getNumberFormat(t, m).format(c)
4139
3960
  });
4140
3961
  continue;
4141
3962
  }
4142
- if (xr(h)) {
4143
- var d = h.children, m = h.value, _ = i[m];
4144
- if (!ki(_))
4145
- throw new Gi(m, "function", a);
4146
- var T = Se(d, t, r, n, i, s), H = _(T.map(function(P) {
4147
- return P.value;
3963
+ if (lr(h)) {
3964
+ var b = h.children, g = h.value, S = i[g];
3965
+ if (!_i(S))
3966
+ throw new yi(g, "function", s);
3967
+ var I = ve(b, t, r, n, i, o), B = S(I.map(function(C) {
3968
+ return C.value;
4148
3969
  }));
4149
- Array.isArray(H) || (H = [H]), o.push.apply(o, H.map(function(P) {
3970
+ Array.isArray(B) || (B = [B]), a.push.apply(a, B.map(function(C) {
4150
3971
  return {
4151
- type: typeof P == "string" ? B.literal : B.object,
4152
- value: P
3972
+ type: typeof C == "string" ? H.literal : H.object,
3973
+ value: C
4153
3974
  };
4154
3975
  }));
4155
3976
  }
4156
- if (_r(h)) {
4157
- var S = h.options[c] || h.options.other;
4158
- if (!S)
4159
- throw new Ft(h.value, c, Object.keys(h.options), a);
4160
- o.push.apply(o, Se(S.value, t, r, n, i));
3977
+ if (ar(h)) {
3978
+ var w = h.options[c] || h.options.other;
3979
+ if (!w)
3980
+ throw new Ot(h.value, c, Object.keys(h.options), s);
3981
+ a.push.apply(a, ve(w.value, t, r, n, i));
4161
3982
  continue;
4162
3983
  }
4163
- if (Er(h)) {
4164
- var S = h.options["=".concat(c)];
4165
- if (!S) {
3984
+ if (ur(h)) {
3985
+ var w = h.options["=".concat(c)];
3986
+ if (!w) {
4166
3987
  if (!Intl.PluralRules)
4167
- throw new Me(`Intl.PluralRules is not available in this environment.
3988
+ throw new Ae(`Intl.PluralRules is not available in this environment.
4168
3989
  Try polyfilling it using "@formatjs/intl-pluralrules"
4169
- `, re.MISSING_INTL_API, a);
4170
- var I = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
4171
- S = h.options[I] || h.options.other;
3990
+ `, te.MISSING_INTL_API, s);
3991
+ var N = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
3992
+ w = h.options[N] || h.options.other;
4172
3993
  }
4173
- if (!S)
4174
- throw new Ft(h.value, c, Object.keys(h.options), a);
4175
- o.push.apply(o, Se(S.value, t, r, n, i, c - (h.offset || 0)));
3994
+ if (!w)
3995
+ throw new Ot(h.value, c, Object.keys(h.options), s);
3996
+ a.push.apply(a, ve(w.value, t, r, n, i, c - (h.offset || 0)));
4176
3997
  continue;
4177
3998
  }
4178
3999
  }
4179
- return ji(o);
4000
+ return vi(a);
4180
4001
  }
4181
- function Vi(e, t) {
4182
- return t ? U(U(U({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
4183
- return r[n] = U(U({}, e[n]), t[n] || {}), r;
4002
+ function Ei(e, t) {
4003
+ return t ? $($($({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
4004
+ return r[n] = $($({}, e[n]), t[n] || {}), r;
4184
4005
  }, {})) : e;
4185
4006
  }
4186
- function Xi(e, t) {
4007
+ function xi(e, t) {
4187
4008
  return t ? Object.keys(e).reduce(function(r, n) {
4188
- return r[n] = Vi(e[n], t[n]), r;
4189
- }, U({}, e)) : e;
4009
+ return r[n] = Ei(e[n], t[n]), r;
4010
+ }, $({}, e)) : e;
4190
4011
  }
4191
- function We(e) {
4012
+ function Ue(e) {
4192
4013
  return {
4193
4014
  create: function() {
4194
4015
  return {
@@ -4202,77 +4023,77 @@ function We(e) {
4202
4023
  }
4203
4024
  };
4204
4025
  }
4205
- function Wi(e) {
4026
+ function Si(e) {
4206
4027
  return e === void 0 && (e = {
4207
4028
  number: {},
4208
4029
  dateTime: {},
4209
4030
  pluralRules: {}
4210
4031
  }), {
4211
- getNumberFormat: ke(function() {
4032
+ getNumberFormat: Re(function() {
4212
4033
  for (var t, r = [], n = 0; n < arguments.length; n++)
4213
4034
  r[n] = arguments[n];
4214
- return new ((t = Intl.NumberFormat).bind.apply(t, je([void 0], r, !1)))();
4035
+ return new ((t = Intl.NumberFormat).bind.apply(t, Me([void 0], r, !1)))();
4215
4036
  }, {
4216
- cache: We(e.number),
4217
- strategy: Ve.variadic
4037
+ cache: Ue(e.number),
4038
+ strategy: $e.variadic
4218
4039
  }),
4219
- getDateTimeFormat: ke(function() {
4040
+ getDateTimeFormat: Re(function() {
4220
4041
  for (var t, r = [], n = 0; n < arguments.length; n++)
4221
4042
  r[n] = arguments[n];
4222
- return new ((t = Intl.DateTimeFormat).bind.apply(t, je([void 0], r, !1)))();
4043
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Me([void 0], r, !1)))();
4223
4044
  }, {
4224
- cache: We(e.dateTime),
4225
- strategy: Ve.variadic
4045
+ cache: Ue(e.dateTime),
4046
+ strategy: $e.variadic
4226
4047
  }),
4227
- getPluralRules: ke(function() {
4048
+ getPluralRules: Re(function() {
4228
4049
  for (var t, r = [], n = 0; n < arguments.length; n++)
4229
4050
  r[n] = arguments[n];
4230
- return new ((t = Intl.PluralRules).bind.apply(t, je([void 0], r, !1)))();
4051
+ return new ((t = Intl.PluralRules).bind.apply(t, Me([void 0], r, !1)))();
4231
4052
  }, {
4232
- cache: We(e.pluralRules),
4233
- strategy: Ve.variadic
4053
+ cache: Ue(e.pluralRules),
4054
+ strategy: $e.variadic
4234
4055
  })
4235
4056
  };
4236
4057
  }
4237
- var zi = (
4058
+ var wi = (
4238
4059
  /** @class */
4239
4060
  function() {
4240
4061
  function e(t, r, n, i) {
4241
4062
  r === void 0 && (r = e.defaultLocale);
4242
- var s = this;
4063
+ var o = this;
4243
4064
  if (this.formatterCache = {
4244
4065
  number: {},
4245
4066
  dateTime: {},
4246
4067
  pluralRules: {}
4247
4068
  }, this.format = function(l) {
4248
- var u = s.formatToParts(l);
4069
+ var u = o.formatToParts(l);
4249
4070
  if (u.length === 1)
4250
4071
  return u[0].value;
4251
4072
  var h = u.reduce(function(f, c) {
4252
- return !f.length || c.type !== B.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
4073
+ return !f.length || c.type !== H.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
4253
4074
  }, []);
4254
4075
  return h.length <= 1 ? h[0] || "" : h;
4255
4076
  }, this.formatToParts = function(l) {
4256
- return Se(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
4077
+ return ve(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
4257
4078
  }, this.resolvedOptions = function() {
4258
4079
  var l;
4259
4080
  return {
4260
- locale: ((l = s.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(s.locales)[0]
4081
+ locale: ((l = o.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
4261
4082
  };
4262
4083
  }, this.getAst = function() {
4263
- return s.ast;
4084
+ return o.ast;
4264
4085
  }, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
4265
4086
  if (this.message = t, !e.__parse)
4266
4087
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
4267
- var a = i || {};
4268
- a.formatters;
4269
- var o = ri(a, ["formatters"]);
4270
- this.ast = e.__parse(t, U(U({}, o), { locale: this.resolvedLocale }));
4088
+ var s = i || {};
4089
+ s.formatters;
4090
+ var a = Ln(s, ["formatters"]);
4091
+ this.ast = e.__parse(t, $($({}, a), { locale: this.resolvedLocale }));
4271
4092
  } else
4272
4093
  this.ast = t;
4273
4094
  if (!Array.isArray(this.ast))
4274
4095
  throw new TypeError("A message must be provided as a String or AST.");
4275
- this.formats = Xi(e.formats, n), this.formatters = i && i.formatters || Wi(this.formatterCache);
4096
+ this.formats = xi(e.formats, n), this.formatters = i && i.formatters || Si(this.formatterCache);
4276
4097
  }
4277
4098
  return Object.defineProperty(e, "defaultLocale", {
4278
4099
  get: function() {
@@ -4285,7 +4106,7 @@ var zi = (
4285
4106
  var r = Intl.NumberFormat.supportedLocalesOf(t);
4286
4107
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
4287
4108
  }
4288
- }, e.__parse = Ui, e.formats = {
4109
+ }, e.__parse = bi, e.formats = {
4289
4110
  number: {
4290
4111
  integer: {
4291
4112
  maximumFractionDigits: 0
@@ -4346,7 +4167,7 @@ var zi = (
4346
4167
  }, e;
4347
4168
  }()
4348
4169
  );
4349
- function Zi(e, t) {
4170
+ function Ti(e, t) {
4350
4171
  if (t == null)
4351
4172
  return;
4352
4173
  if (t in e)
@@ -4356,9 +4177,9 @@ function Zi(e, t) {
4356
4177
  for (let i = 0; i < r.length; i++)
4357
4178
  if (typeof n == "object") {
4358
4179
  if (i > 0) {
4359
- const s = r.slice(i, r.length).join(".");
4360
- if (s in n) {
4361
- n = n[s];
4180
+ const o = r.slice(i, r.length).join(".");
4181
+ if (o in n) {
4182
+ n = n[o];
4362
4183
  break;
4363
4184
  }
4364
4185
  }
@@ -4367,92 +4188,92 @@ function Zi(e, t) {
4367
4188
  n = void 0;
4368
4189
  return n;
4369
4190
  }
4370
- const k = {}, Qi = (e, t, r) => r && (t in k || (k[t] = {}), e in k[t] || (k[t][e] = r), r), Ir = (e, t) => {
4191
+ const j = {}, Hi = (e, t, r) => r && (t in j || (j[t] = {}), e in j[t] || (j[t][e] = r), r), gr = (e, t) => {
4371
4192
  if (t == null)
4372
4193
  return;
4373
- if (t in k && e in k[t])
4374
- return k[t][e];
4375
- const r = $e(t);
4194
+ if (t in j && e in j[t])
4195
+ return j[t][e];
4196
+ const r = Oe(t);
4376
4197
  for (let n = 0; n < r.length; n++) {
4377
- const i = r[n], s = Ji(i, e);
4378
- if (s)
4379
- return Qi(e, t, s);
4198
+ const i = r[n], o = Bi(i, e);
4199
+ if (o)
4200
+ return Hi(e, t, o);
4380
4201
  }
4381
4202
  };
4382
- let mt;
4383
- const be = Le({});
4384
- function qi(e) {
4385
- return mt[e] || null;
4203
+ let st;
4204
+ const fe = Pe({});
4205
+ function Pi(e) {
4206
+ return st[e] || null;
4386
4207
  }
4387
- function Cr(e) {
4388
- return e in mt;
4208
+ function vr(e) {
4209
+ return e in st;
4389
4210
  }
4390
- function Ji(e, t) {
4391
- if (!Cr(e))
4211
+ function Bi(e, t) {
4212
+ if (!vr(e))
4392
4213
  return null;
4393
- const r = qi(e);
4394
- return Zi(r, t);
4214
+ const r = Pi(e);
4215
+ return Ti(r, t);
4395
4216
  }
4396
- function Yi(e) {
4217
+ function Ai(e) {
4397
4218
  if (e == null)
4398
4219
  return;
4399
- const t = $e(e);
4220
+ const t = Oe(e);
4400
4221
  for (let r = 0; r < t.length; r++) {
4401
4222
  const n = t[r];
4402
- if (Cr(n))
4223
+ if (vr(n))
4403
4224
  return n;
4404
4225
  }
4405
4226
  }
4406
- function Lr(e, ...t) {
4407
- delete k[e], be.update((r) => (r[e] = ti.all([r[e] || {}, ...t]), r));
4227
+ function _r(e, ...t) {
4228
+ delete j[e], fe.update((r) => (r[e] = Cn.all([r[e] || {}, ...t]), r));
4408
4229
  }
4409
- ie(
4410
- [be],
4230
+ ne(
4231
+ [fe],
4411
4232
  ([e]) => Object.keys(e)
4412
4233
  );
4413
- be.subscribe((e) => mt = e);
4414
- const Te = {};
4415
- function Ki(e, t) {
4416
- Te[e].delete(t), Te[e].size === 0 && delete Te[e];
4234
+ fe.subscribe((e) => st = e);
4235
+ const _e = {};
4236
+ function Oi(e, t) {
4237
+ _e[e].delete(t), _e[e].size === 0 && delete _e[e];
4417
4238
  }
4418
- function Nr(e) {
4419
- return Te[e];
4239
+ function Er(e) {
4240
+ return _e[e];
4420
4241
  }
4421
- function es(e) {
4422
- return $e(e).map((t) => {
4423
- const r = Nr(t);
4242
+ function Ii(e) {
4243
+ return Oe(e).map((t) => {
4244
+ const r = Er(t);
4424
4245
  return [t, r ? [...r] : []];
4425
4246
  }).filter(([, t]) => t.length > 0);
4426
4247
  }
4427
- function lt(e) {
4428
- return e == null ? !1 : $e(e).some(
4248
+ function nt(e) {
4249
+ return e == null ? !1 : Oe(e).some(
4429
4250
  (t) => {
4430
4251
  var r;
4431
- return (r = Nr(t)) == null ? void 0 : r.size;
4252
+ return (r = Er(t)) == null ? void 0 : r.size;
4432
4253
  }
4433
4254
  );
4434
4255
  }
4435
- function ts(e, t) {
4256
+ function Ci(e, t) {
4436
4257
  return Promise.all(
4437
- t.map((n) => (Ki(e, n), n().then((i) => i.default || i)))
4438
- ).then((n) => Lr(e, ...n));
4439
- }
4440
- const ue = {};
4441
- function Mr(e) {
4442
- if (!lt(e))
4443
- return e in ue ? ue[e] : Promise.resolve();
4444
- const t = es(e);
4445
- return ue[e] = Promise.all(
4258
+ t.map((n) => (Oi(e, n), n().then((i) => i.default || i)))
4259
+ ).then((n) => _r(e, ...n));
4260
+ }
4261
+ const se = {};
4262
+ function xr(e) {
4263
+ if (!nt(e))
4264
+ return e in se ? se[e] : Promise.resolve();
4265
+ const t = Ii(e);
4266
+ return se[e] = Promise.all(
4446
4267
  t.map(
4447
- ([r, n]) => ts(r, n)
4268
+ ([r, n]) => Ci(r, n)
4448
4269
  )
4449
4270
  ).then(() => {
4450
- if (lt(e))
4451
- return Mr(e);
4452
- delete ue[e];
4453
- }), ue[e];
4271
+ if (nt(e))
4272
+ return xr(e);
4273
+ delete se[e];
4274
+ }), se[e];
4454
4275
  }
4455
- const rs = {
4276
+ const Li = {
4456
4277
  number: {
4457
4278
  scientific: { notation: "scientific" },
4458
4279
  engineering: { notation: "engineering" },
@@ -4481,159 +4302,159 @@ const rs = {
4481
4302
  timeZoneName: "short"
4482
4303
  }
4483
4304
  }
4484
- }, ns = {
4305
+ }, Ni = {
4485
4306
  fallbackLocale: null,
4486
4307
  loadingDelay: 200,
4487
- formats: rs,
4308
+ formats: Li,
4488
4309
  warnOnMissingMessages: !0,
4489
4310
  handleMissingMessage: void 0,
4490
4311
  ignoreTag: !0
4491
- }, is = ns;
4492
- function ne() {
4493
- return is;
4312
+ }, Mi = Ni;
4313
+ function re() {
4314
+ return Mi;
4494
4315
  }
4495
- const ze = Le(!1);
4496
- var ss = Object.defineProperty, os = Object.defineProperties, as = Object.getOwnPropertyDescriptors, jt = Object.getOwnPropertySymbols, us = Object.prototype.hasOwnProperty, ls = Object.prototype.propertyIsEnumerable, kt = (e, t, r) => t in e ? ss(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, hs = (e, t) => {
4316
+ const Ge = Pe(!1);
4317
+ 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) => {
4497
4318
  for (var r in t || (t = {}))
4498
- us.call(t, r) && kt(e, r, t[r]);
4499
- if (jt)
4500
- for (var r of jt(t))
4501
- ls.call(t, r) && kt(e, r, t[r]);
4319
+ Ui.call(t, r) && Ct(e, r, t[r]);
4320
+ if (It)
4321
+ for (var r of It(t))
4322
+ Gi.call(t, r) && Ct(e, r, t[r]);
4502
4323
  return e;
4503
- }, cs = (e, t) => os(e, as(t));
4504
- let ht;
4505
- const Oe = Le(null);
4506
- function Vt(e) {
4324
+ }, ji = (e, t) => $i(e, Di(t));
4325
+ let it;
4326
+ const xe = Pe(null);
4327
+ function Lt(e) {
4507
4328
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
4508
4329
  }
4509
- function $e(e, t = ne().fallbackLocale) {
4510
- const r = Vt(e);
4511
- return t ? [.../* @__PURE__ */ new Set([...r, ...Vt(t)])] : r;
4330
+ function Oe(e, t = re().fallbackLocale) {
4331
+ const r = Lt(e);
4332
+ return t ? [.../* @__PURE__ */ new Set([...r, ...Lt(t)])] : r;
4512
4333
  }
4513
4334
  function z() {
4514
- return ht != null ? ht : void 0;
4335
+ return it != null ? it : void 0;
4515
4336
  }
4516
- Oe.subscribe((e) => {
4517
- ht = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
4337
+ xe.subscribe((e) => {
4338
+ it = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
4518
4339
  });
4519
- const fs = (e) => {
4520
- if (e && Yi(e) && lt(e)) {
4521
- const { loadingDelay: t } = ne();
4340
+ const ki = (e) => {
4341
+ if (e && Ai(e) && nt(e)) {
4342
+ const { loadingDelay: t } = re();
4522
4343
  let r;
4523
4344
  return typeof window != "undefined" && z() != null && t ? r = window.setTimeout(
4524
- () => ze.set(!0),
4345
+ () => Ge.set(!0),
4525
4346
  t
4526
- ) : ze.set(!0), Mr(e).then(() => {
4527
- Oe.set(e);
4347
+ ) : Ge.set(!0), xr(e).then(() => {
4348
+ xe.set(e);
4528
4349
  }).finally(() => {
4529
- clearTimeout(r), ze.set(!1);
4350
+ clearTimeout(r), Ge.set(!1);
4530
4351
  });
4531
4352
  }
4532
- return Oe.set(e);
4533
- }, se = cs(hs({}, Oe), {
4534
- set: fs
4535
- }), Re = (e) => {
4353
+ return xe.set(e);
4354
+ }, ie = ji(Fi({}, xe), {
4355
+ set: ki
4356
+ }), Ie = (e) => {
4536
4357
  const t = /* @__PURE__ */ Object.create(null);
4537
4358
  return (n) => {
4538
4359
  const i = JSON.stringify(n);
4539
4360
  return i in t ? t[i] : t[i] = e(n);
4540
4361
  };
4541
4362
  };
4542
- var ds = Object.defineProperty, Ie = Object.getOwnPropertySymbols, $r = Object.prototype.hasOwnProperty, Rr = Object.prototype.propertyIsEnumerable, Xt = (e, t, r) => t in e ? ds(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, bt = (e, t) => {
4363
+ var Vi = Object.defineProperty, Se = Object.getOwnPropertySymbols, Sr = Object.prototype.hasOwnProperty, wr = Object.prototype.propertyIsEnumerable, Nt = (e, t, r) => t in e ? Vi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, at = (e, t) => {
4543
4364
  for (var r in t || (t = {}))
4544
- $r.call(t, r) && Xt(e, r, t[r]);
4545
- if (Ie)
4546
- for (var r of Ie(t))
4547
- Rr.call(t, r) && Xt(e, r, t[r]);
4365
+ Sr.call(t, r) && Nt(e, r, t[r]);
4366
+ if (Se)
4367
+ for (var r of Se(t))
4368
+ wr.call(t, r) && Nt(e, r, t[r]);
4548
4369
  return e;
4549
4370
  }, oe = (e, t) => {
4550
4371
  var r = {};
4551
4372
  for (var n in e)
4552
- $r.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4553
- if (e != null && Ie)
4554
- for (var n of Ie(e))
4555
- t.indexOf(n) < 0 && Rr.call(e, n) && (r[n] = e[n]);
4373
+ Sr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4374
+ if (e != null && Se)
4375
+ for (var n of Se(e))
4376
+ t.indexOf(n) < 0 && wr.call(e, n) && (r[n] = e[n]);
4556
4377
  return r;
4557
4378
  };
4558
- const fe = (e, t) => {
4559
- const { formats: r } = ne();
4379
+ const he = (e, t) => {
4380
+ const { formats: r } = re();
4560
4381
  if (e in r && t in r[e])
4561
4382
  return r[e][t];
4562
4383
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
4563
- }, ps = Re(
4384
+ }, Xi = Ie(
4564
4385
  (e) => {
4565
4386
  var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
4566
4387
  if (r == null)
4567
4388
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
4568
- return n && (i = fe("number", n)), new Intl.NumberFormat(r, i);
4389
+ return n && (i = he("number", n)), new Intl.NumberFormat(r, i);
4569
4390
  }
4570
- ), ms = Re(
4391
+ ), Wi = Ie(
4571
4392
  (e) => {
4572
4393
  var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
4573
4394
  if (r == null)
4574
4395
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
4575
- return n ? i = fe("date", n) : Object.keys(i).length === 0 && (i = fe("date", "short")), new Intl.DateTimeFormat(r, i);
4396
+ return n ? i = he("date", n) : Object.keys(i).length === 0 && (i = he("date", "short")), new Intl.DateTimeFormat(r, i);
4576
4397
  }
4577
- ), bs = Re(
4398
+ ), zi = Ie(
4578
4399
  (e) => {
4579
4400
  var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
4580
4401
  if (r == null)
4581
4402
  throw new Error(
4582
4403
  '[svelte-i18n] A "locale" must be set to format time values'
4583
4404
  );
4584
- return n ? i = fe("time", n) : Object.keys(i).length === 0 && (i = fe("time", "short")), new Intl.DateTimeFormat(r, i);
4405
+ return n ? i = he("time", n) : Object.keys(i).length === 0 && (i = he("time", "short")), new Intl.DateTimeFormat(r, i);
4585
4406
  }
4586
- ), ys = (e = {}) => {
4407
+ ), Zi = (e = {}) => {
4587
4408
  var t = e, {
4588
4409
  locale: r = z()
4589
4410
  } = t, n = oe(t, [
4590
4411
  "locale"
4591
4412
  ]);
4592
- return ps(bt({ locale: r }, n));
4593
- }, gs = (e = {}) => {
4413
+ return Xi(at({ locale: r }, n));
4414
+ }, Qi = (e = {}) => {
4594
4415
  var t = e, {
4595
4416
  locale: r = z()
4596
4417
  } = t, n = oe(t, [
4597
4418
  "locale"
4598
4419
  ]);
4599
- return ms(bt({ locale: r }, n));
4600
- }, vs = (e = {}) => {
4420
+ return Wi(at({ locale: r }, n));
4421
+ }, qi = (e = {}) => {
4601
4422
  var t = e, {
4602
4423
  locale: r = z()
4603
4424
  } = t, n = oe(t, [
4604
4425
  "locale"
4605
4426
  ]);
4606
- return bs(bt({ locale: r }, n));
4607
- }, _s = Re(
4427
+ return zi(at({ locale: r }, n));
4428
+ }, Ji = Ie(
4608
4429
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
4609
- (e, t = z()) => new zi(e, t, ne().formats, {
4610
- ignoreTag: ne().ignoreTag
4430
+ (e, t = z()) => new wi(e, t, re().formats, {
4431
+ ignoreTag: re().ignoreTag
4611
4432
  })
4612
- ), Es = (e, t = {}) => {
4613
- var r, n, i, s;
4614
- let a = t;
4615
- typeof e == "object" && (a = e, e = a.id);
4433
+ ), Yi = (e, t = {}) => {
4434
+ var r, n, i, o;
4435
+ let s = t;
4436
+ typeof e == "object" && (s = e, e = s.id);
4616
4437
  const {
4617
- values: o,
4438
+ values: a,
4618
4439
  locale: l = z(),
4619
4440
  default: u
4620
- } = a;
4441
+ } = s;
4621
4442
  if (l == null)
4622
4443
  throw new Error(
4623
4444
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
4624
4445
  );
4625
- let h = Ir(e, l);
4446
+ let h = gr(e, l);
4626
4447
  if (!h)
4627
- h = (s = (i = (n = (r = ne()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
4448
+ 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;
4628
4449
  else if (typeof h != "string")
4629
4450
  return console.warn(
4630
4451
  `[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.`
4631
4452
  ), h;
4632
- if (!o)
4453
+ if (!a)
4633
4454
  return h;
4634
4455
  let f = h;
4635
4456
  try {
4636
- f = _s(h, l).format(o);
4457
+ f = Ji(h, l).format(a);
4637
4458
  } catch (c) {
4638
4459
  c instanceof Error && console.warn(
4639
4460
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -4641,16 +4462,16 @@ const fe = (e, t) => {
4641
4462
  );
4642
4463
  }
4643
4464
  return f;
4644
- }, xs = (e, t) => vs(t).format(e), ws = (e, t) => gs(t).format(e), Ss = (e, t) => ys(t).format(e), Ts = (e, t = z()) => Ir(e, t), Hs = ie([se, be], () => Es);
4645
- ie([se], () => xs);
4646
- ie([se], () => ws);
4647
- ie([se], () => Ss);
4648
- ie([se, be], () => Ts);
4649
- window.emWidgets = { topic: Dn };
4650
- const Dr = (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)), Ps = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4651
- function ao(e, t) {
4465
+ }, Ki = (e, t) => qi(t).format(e), eo = (e, t) => Qi(t).format(e), to = (e, t) => Zi(t).format(e), ro = (e, t = z()) => gr(e, t), no = ne([ie, fe], () => Yi);
4466
+ ne([ie], () => Ki);
4467
+ ne([ie], () => eo);
4468
+ ne([ie], () => to);
4469
+ ne([ie, fe], () => ro);
4470
+ window.emWidgets = { topic: mn };
4471
+ const Tr = (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";
4472
+ function $o(e, t) {
4652
4473
  const r = window.navigator.userAgent;
4653
- return Dr(r) ? t = e.filter((n) => {
4474
+ return Tr(r) ? t = e.filter((n) => {
4654
4475
  if (n.gameModel && (n.gameModel.platform.includes("iPad") || n.gameModel.platform.includes("iPhone") || n.gameModel.platform.includes("Android")))
4655
4476
  return n;
4656
4477
  }) : t = e.filter((n) => {
@@ -4658,24 +4479,24 @@ function ao(e, t) {
4658
4479
  return n;
4659
4480
  }), t;
4660
4481
  }
4661
- function uo(e, t) {
4482
+ function Do(e, t) {
4662
4483
  return new Promise((r, n) => {
4663
4484
  const i = new Headers();
4664
4485
  i.append("X-SessionID", t);
4665
- const s = {
4486
+ const o = {
4666
4487
  method: "GET",
4667
4488
  headers: i
4668
4489
  };
4669
- fetch(`${e}/v1/player/session/player`, s).then((a) => a.json()).then((a) => r(a)).catch((a) => n(a));
4490
+ fetch(`${e}/v1/player/session/player`, o).then((s) => s.json()).then((s) => r(s)).catch((s) => n(s));
4670
4491
  });
4671
4492
  }
4672
- function As(e, t) {
4493
+ function oo(e, t) {
4673
4494
  if (e) {
4674
4495
  const r = document.createElement("style");
4675
4496
  r.innerHTML = t, e.appendChild(r);
4676
4497
  }
4677
4498
  }
4678
- function Bs(e, t) {
4499
+ function so(e, t) {
4679
4500
  const r = new URL(t);
4680
4501
  fetch(r.href).then((n) => n.text()).then((n) => {
4681
4502
  const i = document.createElement("style");
@@ -4684,7 +4505,7 @@ function Bs(e, t) {
4684
4505
  console.error("There was an error while trying to load client styling from URL", n);
4685
4506
  });
4686
4507
  }
4687
- function Os(e, t, r) {
4508
+ function ao(e, t, r) {
4688
4509
  if (window.emMessageBus) {
4689
4510
  const n = document.createElement("style");
4690
4511
  window.emMessageBus.subscribe(t, (i) => {
@@ -4692,13 +4513,13 @@ function Os(e, t, r) {
4692
4513
  });
4693
4514
  }
4694
4515
  }
4695
- function Wt(e, t) {
4696
- Lr(e, t);
4516
+ function Mt(e, t) {
4517
+ _r(e, t);
4697
4518
  }
4698
- function Is(e) {
4699
- se.set(e);
4519
+ function uo(e) {
4520
+ ie.set(e);
4700
4521
  }
4701
- const zt = {
4522
+ const Rt = {
4702
4523
  en: {
4703
4524
  error: "500 Error - Internal Server Error"
4704
4525
  },
@@ -4730,7 +4551,7 @@ if (typeof window != "undefined") {
4730
4551
  }
4731
4552
  };
4732
4553
  };
4733
- customElements.define = e(customElements.define), import("./CasinoCalendarDailyDetails-DL8uHwSN.js").then(({ default: t }) => {
4554
+ customElements.define = e(customElements.define), import("./CasinoCalendarDailyDetails-OB1lJeYE.js").then(({ default: t }) => {
4734
4555
  !customElements.get("casino-calendar-daily-details") && customElements.define("casino-calendar-daily-details", t.element);
4735
4556
  });
4736
4557
  }
@@ -4746,255 +4567,255 @@ if (typeof window != "undefined") {
4746
4567
  }
4747
4568
  };
4748
4569
  };
4749
- customElements.define = e(customElements.define), import("./CasinoCalendarDailyItem-DoK3veTp.js").then(({ default: t }) => {
4570
+ customElements.define = e(customElements.define), import("./CasinoCalendarDailyItem-D51VouvS.js").then(({ default: t }) => {
4750
4571
  !customElements.get("casino-calendar-daily-item") && customElements.define("casino-calendar-daily-item", t.element);
4751
4572
  });
4752
4573
  }
4753
- function Cs(e) {
4754
- Jr(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
4574
+ function lo(e) {
4575
+ Mr(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
4755
4576
  }.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)}}`);
4756
4577
  }
4757
- function Zt(e, t, r) {
4578
+ function $t(e, t, r) {
4758
4579
  const n = e.slice();
4759
4580
  return n[26] = t[r], n[28] = r, n;
4760
4581
  }
4761
- function Ls(e) {
4762
- let t, r, n, i = Tt(
4582
+ function ho(e) {
4583
+ let t, r, n, i = pt(
4763
4584
  /*calendarCollections*/
4764
4585
  e[6]
4765
- ), s = [];
4766
- for (let o = 0; o < i.length; o += 1)
4767
- s[o] = Qt(Zt(e, i, o));
4768
- let a = (
4586
+ ), o = [];
4587
+ for (let a = 0; a < i.length; a += 1)
4588
+ o[a] = Dt($t(e, i, a));
4589
+ let s = (
4769
4590
  /*calendarModalOpened*/
4770
- e[11] == !0 && qt(e)
4591
+ e[11] == !0 && Ut(e)
4771
4592
  );
4772
4593
  return {
4773
4594
  c() {
4774
- t = $("div");
4775
- for (let o = 0; o < s.length; o += 1)
4776
- s[o].c();
4777
- r = tn(), a && a.c(), V(t, "class", n = "CasinoCalendarItem " + /*mobileView*/
4595
+ t = D("div");
4596
+ for (let a = 0; a < o.length; a += 1)
4597
+ o[a].c();
4598
+ r = Gr(), s && s.c(), k(t, "class", n = "CasinoCalendarItem " + /*mobileView*/
4778
4599
  (e[10] ? "Mobile" : "") + " svelte-61avp5");
4779
4600
  },
4780
- m(o, l) {
4781
- W(o, t, l);
4782
- for (let u = 0; u < s.length; u += 1)
4783
- s[u] && s[u].m(t, null);
4784
- pe(t, r), a && a.m(t, null);
4601
+ m(a, l) {
4602
+ V(a, t, l);
4603
+ for (let u = 0; u < o.length; u += 1)
4604
+ o[u] && o[u].m(t, null);
4605
+ Te(t, r), s && s.m(t, null);
4785
4606
  },
4786
- p(o, l) {
4607
+ p(a, l) {
4787
4608
  if (l & /*calendarCollections, lang, clientstyling, clientstylingurl, mbsource, translationurl*/
4788
4609
  95) {
4789
- i = Tt(
4610
+ i = pt(
4790
4611
  /*calendarCollections*/
4791
- o[6]
4612
+ a[6]
4792
4613
  );
4793
4614
  let u;
4794
4615
  for (u = 0; u < i.length; u += 1) {
4795
- const h = Zt(o, i, u);
4796
- s[u] ? s[u].p(h, l) : (s[u] = Qt(h), s[u].c(), s[u].m(t, r));
4616
+ const h = $t(a, i, u);
4617
+ o[u] ? o[u].p(h, l) : (o[u] = Dt(h), o[u].c(), o[u].m(t, r));
4797
4618
  }
4798
- for (; u < s.length; u += 1)
4799
- s[u].d(1);
4800
- s.length = i.length;
4619
+ for (; u < o.length; u += 1)
4620
+ o[u].d(1);
4621
+ o.length = i.length;
4801
4622
  }
4802
4623
  /*calendarModalOpened*/
4803
- o[11] == !0 ? a ? a.p(o, l) : (a = qt(o), a.c(), a.m(t, null)) : a && (a.d(1), a = null), l & /*mobileView*/
4624
+ a[11] == !0 ? s ? s.p(a, l) : (s = Ut(a), s.c(), s.m(t, null)) : s && (s.d(1), s = null), l & /*mobileView*/
4804
4625
  1024 && n !== (n = "CasinoCalendarItem " + /*mobileView*/
4805
- (o[10] ? "Mobile" : "") + " svelte-61avp5") && V(t, "class", n);
4626
+ (a[10] ? "Mobile" : "") + " svelte-61avp5") && k(t, "class", n);
4806
4627
  },
4807
- d(o) {
4808
- o && R(t), Kr(s, o), a && a.d();
4628
+ d(a) {
4629
+ a && G(t), Dr(o, a), s && s.d();
4809
4630
  }
4810
4631
  };
4811
4632
  }
4812
- function Ns(e) {
4633
+ function co(e) {
4813
4634
  let t;
4814
4635
  return {
4815
4636
  c() {
4816
- t = $("div"), V(t, "class", "LoadingSpinner svelte-61avp5");
4637
+ t = D("div"), k(t, "class", "LoadingSpinner svelte-61avp5");
4817
4638
  },
4818
4639
  m(r, n) {
4819
- W(r, t, n);
4640
+ V(r, t, n);
4820
4641
  },
4821
4642
  p: O,
4822
4643
  d(r) {
4823
- r && R(t);
4644
+ r && G(t);
4824
4645
  }
4825
4646
  };
4826
4647
  }
4827
- function Ms(e) {
4648
+ function fo(e) {
4828
4649
  let t, r = (
4829
4650
  /*$_*/
4830
4651
  e[12]("error") + ""
4831
4652
  ), n;
4832
4653
  return {
4833
4654
  c() {
4834
- t = $("p"), n = dt(r), V(t, "class", "SearchLoading svelte-61avp5");
4655
+ t = D("p"), n = ot(r), k(t, "class", "SearchLoading svelte-61avp5");
4835
4656
  },
4836
- m(i, s) {
4837
- W(i, t, s), pe(t, n);
4657
+ m(i, o) {
4658
+ V(i, t, o), Te(t, n);
4838
4659
  },
4839
- p(i, s) {
4840
- s & /*$_*/
4660
+ p(i, o) {
4661
+ o & /*$_*/
4841
4662
  4096 && r !== (r = /*$_*/
4842
- i[12]("error") + "") && nn(n, r);
4663
+ i[12]("error") + "") && jr(n, r);
4843
4664
  },
4844
4665
  d(i) {
4845
- i && R(t);
4666
+ i && G(t);
4846
4667
  }
4847
4668
  };
4848
4669
  }
4849
- function Qt(e) {
4850
- let t, r, n, i, s, a;
4670
+ function Dt(e) {
4671
+ let t, r, n, i, o, s;
4851
4672
  return {
4852
4673
  c() {
4853
- t = $("casino-calendar-daily-item"), b(t, "dailybackground", r = /*dailyCalendarData*/
4854
- e[26].dailyBackground), b(t, "dailyicon", n = /*dailyCalendarData*/
4855
- e[26].dailyIcon), b(t, "dailyday", i = /*dailyCalendarData*/
4856
- e[26].dailyDay), b(t, "dailydescription", s = /*dailyCalendarData*/
4857
- e[26].dailyDescription), b(t, "dailybuttontitle", a = /*dailyCalendarData*/
4858
- e[26].dailyButtonTitle), b(
4674
+ t = D("casino-calendar-daily-item"), d(t, "dailybackground", r = /*dailyCalendarData*/
4675
+ e[26].dailyBackground), d(t, "dailyicon", n = /*dailyCalendarData*/
4676
+ e[26].dailyIcon), d(t, "dailyday", i = /*dailyCalendarData*/
4677
+ e[26].dailyDay), d(t, "dailydescription", o = /*dailyCalendarData*/
4678
+ e[26].dailyDescription), d(t, "dailybuttontitle", s = /*dailyCalendarData*/
4679
+ e[26].dailyButtonTitle), d(
4859
4680
  t,
4860
4681
  "index",
4861
4682
  /*index*/
4862
4683
  e[28]
4863
- ), b(
4684
+ ), d(
4864
4685
  t,
4865
4686
  "lang",
4866
4687
  /*lang*/
4867
4688
  e[0]
4868
- ), b(
4689
+ ), d(
4869
4690
  t,
4870
4691
  "clientstyling",
4871
4692
  /*clientstyling*/
4872
4693
  e[1]
4873
- ), b(
4694
+ ), d(
4874
4695
  t,
4875
4696
  "clientstylingurl",
4876
4697
  /*clientstylingurl*/
4877
4698
  e[2]
4878
- ), b(
4699
+ ), d(
4879
4700
  t,
4880
4701
  "mbsource",
4881
4702
  /*mbsource*/
4882
4703
  e[4]
4883
- ), b(
4704
+ ), d(
4884
4705
  t,
4885
4706
  "translationurl",
4886
4707
  /*translationurl*/
4887
4708
  e[3]
4888
- ), b(t, "class", "svelte-61avp5");
4709
+ ), d(t, "class", "svelte-61avp5");
4889
4710
  },
4890
- m(o, l) {
4891
- W(o, t, l);
4711
+ m(a, l) {
4712
+ V(a, t, l);
4892
4713
  },
4893
- p(o, l) {
4714
+ p(a, l) {
4894
4715
  l & /*calendarCollections*/
4895
4716
  64 && r !== (r = /*dailyCalendarData*/
4896
- o[26].dailyBackground) && b(t, "dailybackground", r), l & /*calendarCollections*/
4717
+ a[26].dailyBackground) && d(t, "dailybackground", r), l & /*calendarCollections*/
4897
4718
  64 && n !== (n = /*dailyCalendarData*/
4898
- o[26].dailyIcon) && b(t, "dailyicon", n), l & /*calendarCollections*/
4719
+ a[26].dailyIcon) && d(t, "dailyicon", n), l & /*calendarCollections*/
4899
4720
  64 && i !== (i = /*dailyCalendarData*/
4900
- o[26].dailyDay) && b(t, "dailyday", i), l & /*calendarCollections*/
4721
+ a[26].dailyDay) && d(t, "dailyday", i), l & /*calendarCollections*/
4722
+ 64 && o !== (o = /*dailyCalendarData*/
4723
+ a[26].dailyDescription) && d(t, "dailydescription", o), l & /*calendarCollections*/
4901
4724
  64 && s !== (s = /*dailyCalendarData*/
4902
- o[26].dailyDescription) && b(t, "dailydescription", s), l & /*calendarCollections*/
4903
- 64 && a !== (a = /*dailyCalendarData*/
4904
- o[26].dailyButtonTitle) && b(t, "dailybuttontitle", a), l & /*lang*/
4905
- 1 && b(
4725
+ a[26].dailyButtonTitle) && d(t, "dailybuttontitle", s), l & /*lang*/
4726
+ 1 && d(
4906
4727
  t,
4907
4728
  "lang",
4908
4729
  /*lang*/
4909
- o[0]
4730
+ a[0]
4910
4731
  ), l & /*clientstyling*/
4911
- 2 && b(
4732
+ 2 && d(
4912
4733
  t,
4913
4734
  "clientstyling",
4914
4735
  /*clientstyling*/
4915
- o[1]
4736
+ a[1]
4916
4737
  ), l & /*clientstylingurl*/
4917
- 4 && b(
4738
+ 4 && d(
4918
4739
  t,
4919
4740
  "clientstylingurl",
4920
4741
  /*clientstylingurl*/
4921
- o[2]
4742
+ a[2]
4922
4743
  ), l & /*mbsource*/
4923
- 16 && b(
4744
+ 16 && d(
4924
4745
  t,
4925
4746
  "mbsource",
4926
4747
  /*mbsource*/
4927
- o[4]
4748
+ a[4]
4928
4749
  ), l & /*translationurl*/
4929
- 8 && b(
4750
+ 8 && d(
4930
4751
  t,
4931
4752
  "translationurl",
4932
4753
  /*translationurl*/
4933
- o[3]
4754
+ a[3]
4934
4755
  );
4935
4756
  },
4936
- d(o) {
4937
- o && R(t);
4757
+ d(a) {
4758
+ a && G(t);
4938
4759
  }
4939
4760
  };
4940
4761
  }
4941
- function qt(e) {
4942
- let t, r, n, i, s, a, o, l;
4762
+ function Ut(e) {
4763
+ let t, r, n, i, o, s, a, l;
4943
4764
  return {
4944
4765
  c() {
4945
- t = $("div"), r = $("casino-calendar-daily-details"), b(r, "dailybackground", n = /*calendarCollections*/
4766
+ t = D("div"), r = D("casino-calendar-daily-details"), d(r, "dailybackground", n = /*calendarCollections*/
4946
4767
  e[6][
4947
4768
  /*selectedIndex*/
4948
4769
  e[7]
4949
- ].dailyBackground), b(r, "dailybuttontitle", i = /*calendarCollections*/
4770
+ ].dailyBackground), d(r, "dailybuttontitle", i = /*calendarCollections*/
4950
4771
  e[6][
4951
4772
  /*selectedIndex*/
4952
4773
  e[7]
4953
- ].dailyButtonTitle), b(r, "dailyday", s = /*calendarCollections*/
4774
+ ].dailyButtonTitle), d(r, "dailyday", o = /*calendarCollections*/
4954
4775
  e[6][
4955
4776
  /*selectedIndex*/
4956
4777
  e[7]
4957
- ].dailyDay), b(r, "dailydescription", a = /*calendarCollections*/
4778
+ ].dailyDay), d(r, "dailydescription", s = /*calendarCollections*/
4958
4779
  e[6][
4959
4780
  /*selectedIndex*/
4960
4781
  e[7]
4961
- ].dailyDescription), b(r, "dailyicon", o = /*calendarCollections*/
4782
+ ].dailyDescription), d(r, "dailyicon", a = /*calendarCollections*/
4962
4783
  e[6][
4963
4784
  /*selectedIndex*/
4964
4785
  e[7]
4965
- ].dailyIcon), b(r, "dailytitle", l = /*calendarCollections*/
4786
+ ].dailyIcon), d(r, "dailytitle", l = /*calendarCollections*/
4966
4787
  e[6][
4967
4788
  /*selectedIndex*/
4968
4789
  e[7]
4969
- ].dailyTitle), b(
4790
+ ].dailyTitle), d(
4970
4791
  r,
4971
4792
  "lang",
4972
4793
  /*lang*/
4973
4794
  e[0]
4974
- ), b(
4795
+ ), d(
4975
4796
  r,
4976
4797
  "clientstyling",
4977
4798
  /*clientstyling*/
4978
4799
  e[1]
4979
- ), b(
4800
+ ), d(
4980
4801
  r,
4981
4802
  "clientstylingurl",
4982
4803
  /*clientstylingurl*/
4983
4804
  e[2]
4984
- ), b(
4805
+ ), d(
4985
4806
  r,
4986
4807
  "mbsource",
4987
4808
  /*mbsource*/
4988
4809
  e[4]
4989
- ), b(
4810
+ ), d(
4990
4811
  r,
4991
4812
  "translationurl",
4992
4813
  /*translationurl*/
4993
4814
  e[3]
4994
- ), b(r, "class", "svelte-61avp5"), V(t, "class", "CalendarDetailsWrapper svelte-61avp5");
4815
+ ), d(r, "class", "svelte-61avp5"), k(t, "class", "CalendarDetailsWrapper svelte-61avp5");
4995
4816
  },
4996
4817
  m(u, h) {
4997
- W(u, t, h), pe(t, r);
4818
+ V(u, t, h), Te(t, r);
4998
4819
  },
4999
4820
  p(u, h) {
5000
4821
  h & /*calendarCollections, selectedIndex*/
@@ -5002,57 +4823,57 @@ function qt(e) {
5002
4823
  u[6][
5003
4824
  /*selectedIndex*/
5004
4825
  u[7]
5005
- ].dailyBackground) && b(r, "dailybackground", n), h & /*calendarCollections, selectedIndex*/
4826
+ ].dailyBackground) && d(r, "dailybackground", n), h & /*calendarCollections, selectedIndex*/
5006
4827
  192 && i !== (i = /*calendarCollections*/
5007
4828
  u[6][
5008
4829
  /*selectedIndex*/
5009
4830
  u[7]
5010
- ].dailyButtonTitle) && b(r, "dailybuttontitle", i), h & /*calendarCollections, selectedIndex*/
5011
- 192 && s !== (s = /*calendarCollections*/
4831
+ ].dailyButtonTitle) && d(r, "dailybuttontitle", i), h & /*calendarCollections, selectedIndex*/
4832
+ 192 && o !== (o = /*calendarCollections*/
5012
4833
  u[6][
5013
4834
  /*selectedIndex*/
5014
4835
  u[7]
5015
- ].dailyDay) && b(r, "dailyday", s), h & /*calendarCollections, selectedIndex*/
5016
- 192 && a !== (a = /*calendarCollections*/
4836
+ ].dailyDay) && d(r, "dailyday", o), h & /*calendarCollections, selectedIndex*/
4837
+ 192 && s !== (s = /*calendarCollections*/
5017
4838
  u[6][
5018
4839
  /*selectedIndex*/
5019
4840
  u[7]
5020
- ].dailyDescription) && b(r, "dailydescription", a), h & /*calendarCollections, selectedIndex*/
5021
- 192 && o !== (o = /*calendarCollections*/
4841
+ ].dailyDescription) && d(r, "dailydescription", s), h & /*calendarCollections, selectedIndex*/
4842
+ 192 && a !== (a = /*calendarCollections*/
5022
4843
  u[6][
5023
4844
  /*selectedIndex*/
5024
4845
  u[7]
5025
- ].dailyIcon) && b(r, "dailyicon", o), h & /*calendarCollections, selectedIndex*/
4846
+ ].dailyIcon) && d(r, "dailyicon", a), h & /*calendarCollections, selectedIndex*/
5026
4847
  192 && l !== (l = /*calendarCollections*/
5027
4848
  u[6][
5028
4849
  /*selectedIndex*/
5029
4850
  u[7]
5030
- ].dailyTitle) && b(r, "dailytitle", l), h & /*lang*/
5031
- 1 && b(
4851
+ ].dailyTitle) && d(r, "dailytitle", l), h & /*lang*/
4852
+ 1 && d(
5032
4853
  r,
5033
4854
  "lang",
5034
4855
  /*lang*/
5035
4856
  u[0]
5036
4857
  ), h & /*clientstyling*/
5037
- 2 && b(
4858
+ 2 && d(
5038
4859
  r,
5039
4860
  "clientstyling",
5040
4861
  /*clientstyling*/
5041
4862
  u[1]
5042
4863
  ), h & /*clientstylingurl*/
5043
- 4 && b(
4864
+ 4 && d(
5044
4865
  r,
5045
4866
  "clientstylingurl",
5046
4867
  /*clientstylingurl*/
5047
4868
  u[2]
5048
4869
  ), h & /*mbsource*/
5049
- 16 && b(
4870
+ 16 && d(
5050
4871
  r,
5051
4872
  "mbsource",
5052
4873
  /*mbsource*/
5053
4874
  u[4]
5054
4875
  ), h & /*translationurl*/
5055
- 8 && b(
4876
+ 8 && d(
5056
4877
  r,
5057
4878
  "translationurl",
5058
4879
  /*translationurl*/
@@ -5060,145 +4881,145 @@ function qt(e) {
5060
4881
  );
5061
4882
  },
5062
4883
  d(u) {
5063
- u && R(t);
4884
+ u && G(t);
5064
4885
  }
5065
4886
  };
5066
4887
  }
5067
- function $s(e) {
4888
+ function po(e) {
5068
4889
  let t;
5069
- function r(s, a) {
5070
- var o;
4890
+ function r(o, s) {
4891
+ var a;
5071
4892
  if (
5072
4893
  /*hasErrors*/
5073
- s[9]
4894
+ o[9]
5074
4895
  )
5075
- return Ms;
4896
+ return fo;
5076
4897
  if (
5077
4898
  /*isLoading*/
5078
- s[8]
4899
+ o[8]
5079
4900
  )
5080
- return Ns;
4901
+ return co;
5081
4902
  if (
5082
4903
  /*calendarCollections*/
5083
- (o = s[6]) != null && o.length
4904
+ (a = o[6]) != null && a.length
5084
4905
  )
5085
- return Ls;
4906
+ return ho;
5086
4907
  }
5087
4908
  let n = r(e), i = n && n(e);
5088
4909
  return {
5089
4910
  c() {
5090
- t = $("div"), i && i.c(), V(t, "class", "svelte-61avp5");
4911
+ t = D("div"), i && i.c(), k(t, "class", "svelte-61avp5");
5091
4912
  },
5092
- m(s, a) {
5093
- W(s, t, a), i && i.m(t, null), e[16](t);
4913
+ m(o, s) {
4914
+ V(o, t, s), i && i.m(t, null), e[16](t);
5094
4915
  },
5095
- p(s, [a]) {
5096
- n === (n = r(s)) && i ? i.p(s, a) : (i && i.d(1), i = n && n(s), i && (i.c(), i.m(t, null)));
4916
+ p(o, [s]) {
4917
+ n === (n = r(o)) && i ? i.p(o, s) : (i && i.d(1), i = n && n(o), i && (i.c(), i.m(t, null)));
5097
4918
  },
5098
4919
  i: O,
5099
4920
  o: O,
5100
- d(s) {
5101
- s && R(t), i && i.d(), e[16](null);
4921
+ d(o) {
4922
+ o && G(t), i && i.d(), e[16](null);
5102
4923
  }
5103
4924
  };
5104
4925
  }
5105
- function Rs(e, t, r) {
4926
+ function mo(e, t, r) {
5106
4927
  let n;
5107
- Zr(e, Hs, (y) => r(12, n = y));
5108
- let { cmsendpoint: i = "" } = t, { env: s = "" } = t, { userroles: a = "" } = t, { lang: o = "en" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { translationurl: h } = t, { mbsource: f } = t, c, p, d = 0, m = !0, _ = !1, T = !1, H = window.navigator.userAgent, S = !1;
5109
- const I = () => {
5110
- Is(o);
4928
+ Nr(e, no, (p) => r(12, n = p));
4929
+ 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, S = !1, I = !1, B = window.navigator.userAgent, w = !1;
4930
+ const N = () => {
4931
+ uo(a);
5111
4932
  };
5112
- Object.keys(zt).forEach((y) => {
5113
- Wt(y, zt[y]);
4933
+ Object.keys(Rt).forEach((p) => {
4934
+ Mt(p, Rt[p]);
5114
4935
  });
5115
- const P = () => {
5116
- let y = h;
5117
- if (y)
5118
- return fetch(y).then((C) => C.json()).then((C) => {
5119
- Object.keys(C).forEach((j) => {
5120
- Wt(j, C[j]);
4936
+ const C = () => {
4937
+ let p = h;
4938
+ if (p)
4939
+ return fetch(p).then((P) => P.json()).then((P) => {
4940
+ Object.keys(P).forEach((F) => {
4941
+ Mt(F, P[F]);
5121
4942
  });
5122
- }).catch((C) => {
5123
- console.log(C);
4943
+ }).catch((P) => {
4944
+ console.log(P);
5124
4945
  });
5125
- }, N = () => {
5126
- r(8, m = !0);
5127
- let y = new URL(`${i}/${o}/daily-calendar`);
5128
- y.searchParams.append("userRoles", a), y.searchParams.append("env", s);
5129
- let C = Ps(H);
5130
- C && (C === "PC" ? y.searchParams.append("device", "dk") : C === "iPad" || C === "iPhone" ? y.searchParams.append("device", "ios") : y.searchParams.append("device", "mtWeb")), fetch(y.href).then((j) => j.json()).then((j) => {
5131
- r(6, p = j);
5132
- }).catch((j) => {
5133
- console.log(j), r(9, _ = !0);
4946
+ }, M = () => {
4947
+ r(8, g = !0);
4948
+ let p = new URL(`${i}/${a}/daily-calendar`);
4949
+ p.searchParams.append("userRoles", s), p.searchParams.append("env", o);
4950
+ let P = io(B);
4951
+ P && (P === "PC" ? p.searchParams.append("device", "dk") : P === "iPad" || P === "iPhone" ? p.searchParams.append("device", "ios") : p.searchParams.append("device", "mtWeb")), fetch(p.href).then((F) => F.json()).then((F) => {
4952
+ r(6, m = F);
4953
+ }).catch((F) => {
4954
+ console.log(F), r(9, S = !0);
5134
4955
  }).finally(() => {
5135
- x(), r(8, m = !1);
4956
+ E(), r(8, g = !1);
5136
4957
  });
5137
- }, x = () => {
5138
- const y = c.getRootNode().host;
5139
- y.dispatchEvent(new CustomEvent("data-loaded", { bubbles: !0, detail: { target: y } }));
5140
- }, M = () => {
5141
- N();
5142
- }, L = (y) => {
5143
- var C;
5144
- y.data && y.data.type == "OpenCalendar" && (r(7, d = y.data.index), r(11, S = !0), window.postMessage(
4958
+ }, E = () => {
4959
+ const p = c.getRootNode().host;
4960
+ p.dispatchEvent(new CustomEvent("data-loaded", { bubbles: !0, detail: { target: p } }));
4961
+ }, L = () => {
4962
+ M();
4963
+ }, A = (p) => {
4964
+ var P;
4965
+ p.data && p.data.type == "OpenCalendar" && (r(7, b = p.data.index), r(11, w = !0), window.postMessage(
5145
4966
  {
5146
4967
  type: "ShowModal",
5147
- selectedIndex: d,
4968
+ selectedIndex: b,
5148
4969
  identifier: "Calendar"
5149
4970
  },
5150
4971
  window.location.href
5151
4972
  ), window.postMessage({
5152
4973
  type: "DailyEventsData",
5153
- data: (C = p[d]) == null ? void 0 : C.dailyEvents
5154
- })), y.data && y.data.type == "ModalClosed" && r(11, S = !1);
4974
+ data: (P = m[b]) == null ? void 0 : P.dailyEvents
4975
+ })), p.data && p.data.type == "ModalClosed" && r(11, w = !1);
5155
4976
  };
5156
- fn(() => (window.addEventListener("message", L, !1), Dr(H) && r(10, T = !0), () => {
5157
- window.removeEventListener("message", L);
4977
+ Vr(() => (window.addEventListener("message", A, !1), Tr(B) && r(10, I = !0), () => {
4978
+ window.removeEventListener("message", A);
5158
4979
  }));
5159
- function Z(y) {
5160
- Ze[y ? "unshift" : "push"](() => {
5161
- c = y, r(5, c);
4980
+ function Z(p) {
4981
+ Fe[p ? "unshift" : "push"](() => {
4982
+ c = p, r(5, c);
5162
4983
  });
5163
4984
  }
5164
- return e.$$set = (y) => {
5165
- "cmsendpoint" in y && r(13, i = y.cmsendpoint), "env" in y && r(14, s = y.env), "userroles" in y && r(15, a = y.userroles), "lang" in y && r(0, o = y.lang), "clientstyling" in y && r(1, l = y.clientstyling), "clientstylingurl" in y && r(2, u = y.clientstylingurl), "translationurl" in y && r(3, h = y.translationurl), "mbsource" in y && r(4, f = y.mbsource);
4985
+ return e.$$set = (p) => {
4986
+ "cmsendpoint" in p && r(13, i = p.cmsendpoint), "env" in p && r(14, o = p.env), "userroles" in p && r(15, s = p.userroles), "lang" in p && r(0, a = p.lang), "clientstyling" in p && r(1, l = p.clientstyling), "clientstylingurl" in p && r(2, u = p.clientstylingurl), "translationurl" in p && r(3, h = p.translationurl), "mbsource" in p && r(4, f = p.mbsource);
5166
4987
  }, e.$$.update = () => {
5167
4988
  e.$$.dirty & /*cmsendpoint, lang, env, userroles*/
5168
- 57345 && i && o && s && a && M(), e.$$.dirty & /*clientstyling, customStylingContainer*/
5169
- 34 && l && c && As(c, l), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
5170
- 36 && u && c && Bs(c, u), e.$$.dirty & /*customStylingContainer, mbsource*/
5171
- 48 && c && Os(c, `${f}.Style`), e.$$.dirty & /*lang*/
5172
- 1 && o && I(), e.$$.dirty & /*lang, translationurl*/
5173
- 9 && o && h && P();
4989
+ 57345 && i && a && o && s && L(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4990
+ 34 && l && c && oo(c, l), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4991
+ 36 && u && c && so(c, u), e.$$.dirty & /*customStylingContainer, mbsource*/
4992
+ 48 && c && ao(c, `${f}.Style`), e.$$.dirty & /*lang*/
4993
+ 1 && a && N(), e.$$.dirty & /*lang, translationurl*/
4994
+ 9 && a && h && C();
5174
4995
  }, [
5175
- o,
4996
+ a,
5176
4997
  l,
5177
4998
  u,
5178
4999
  h,
5179
5000
  f,
5180
5001
  c,
5181
- p,
5182
- d,
5183
5002
  m,
5184
- _,
5185
- T,
5003
+ b,
5004
+ g,
5186
5005
  S,
5006
+ I,
5007
+ w,
5187
5008
  n,
5188
5009
  i,
5010
+ o,
5189
5011
  s,
5190
- a,
5191
5012
  Z
5192
5013
  ];
5193
5014
  }
5194
- class Ur extends wn {
5015
+ class Hr extends Kr {
5195
5016
  constructor(t) {
5196
- super(), En(
5017
+ super(), Jr(
5197
5018
  this,
5198
5019
  t,
5199
- Rs,
5200
- $s,
5201
- Yt,
5020
+ mo,
5021
+ po,
5022
+ Ft,
5202
5023
  {
5203
5024
  cmsendpoint: 13,
5204
5025
  env: 14,
@@ -5209,125 +5030,120 @@ class Ur extends wn {
5209
5030
  translationurl: 3,
5210
5031
  mbsource: 4
5211
5032
  },
5212
- Cs
5033
+ lo
5213
5034
  );
5214
5035
  }
5215
5036
  get cmsendpoint() {
5216
5037
  return this.$$.ctx[13];
5217
5038
  }
5218
5039
  set cmsendpoint(t) {
5219
- this.$$set({ cmsendpoint: t }), D();
5040
+ this.$$set({ cmsendpoint: t }), R();
5220
5041
  }
5221
5042
  get env() {
5222
5043
  return this.$$.ctx[14];
5223
5044
  }
5224
5045
  set env(t) {
5225
- this.$$set({ env: t }), D();
5046
+ this.$$set({ env: t }), R();
5226
5047
  }
5227
5048
  get userroles() {
5228
5049
  return this.$$.ctx[15];
5229
5050
  }
5230
5051
  set userroles(t) {
5231
- this.$$set({ userroles: t }), D();
5052
+ this.$$set({ userroles: t }), R();
5232
5053
  }
5233
5054
  get lang() {
5234
5055
  return this.$$.ctx[0];
5235
5056
  }
5236
5057
  set lang(t) {
5237
- this.$$set({ lang: t }), D();
5058
+ this.$$set({ lang: t }), R();
5238
5059
  }
5239
5060
  get clientstyling() {
5240
5061
  return this.$$.ctx[1];
5241
5062
  }
5242
5063
  set clientstyling(t) {
5243
- this.$$set({ clientstyling: t }), D();
5064
+ this.$$set({ clientstyling: t }), R();
5244
5065
  }
5245
5066
  get clientstylingurl() {
5246
5067
  return this.$$.ctx[2];
5247
5068
  }
5248
5069
  set clientstylingurl(t) {
5249
- this.$$set({ clientstylingurl: t }), D();
5070
+ this.$$set({ clientstylingurl: t }), R();
5250
5071
  }
5251
5072
  get translationurl() {
5252
5073
  return this.$$.ctx[3];
5253
5074
  }
5254
5075
  set translationurl(t) {
5255
- this.$$set({ translationurl: t }), D();
5076
+ this.$$set({ translationurl: t }), R();
5256
5077
  }
5257
5078
  get mbsource() {
5258
5079
  return this.$$.ctx[4];
5259
5080
  }
5260
5081
  set mbsource(t) {
5261
- this.$$set({ mbsource: t }), D();
5082
+ this.$$set({ mbsource: t }), R();
5262
5083
  }
5263
5084
  }
5264
- xn(Ur, { cmsendpoint: {}, env: {}, userroles: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
5265
- const lo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5085
+ Yr(Hr, { cmsendpoint: {}, env: {}, userroles: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
5086
+ const Uo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5266
5087
  __proto__: null,
5267
- default: Ur
5088
+ default: Hr
5268
5089
  }, Symbol.toStringTag, { value: "Module" }));
5269
5090
  export {
5270
- se as $,
5271
- xt as A,
5272
- tn as B,
5273
- Ze as C,
5274
- Us as D,
5275
- b as E,
5276
- en as F,
5277
- Xs as G,
5278
- Js as H,
5279
- Zs as I,
5280
- As as J,
5281
- Bs as K,
5282
- Os as L,
5283
- xn as M,
5284
- Hs as N,
5285
- Ps as O,
5286
- Vs as P,
5287
- eo as Q,
5288
- X as R,
5289
- wn as S,
5290
- Ws as T,
5291
- be as U,
5292
- zs as V,
5293
- Ys as W,
5294
- uo as X,
5295
- qs as Y,
5296
- Ks as Z,
5297
- ao as _,
5298
- Lr as a,
5299
- oo as a0,
5300
- io as a1,
5301
- Xr as a2,
5302
- no as a3,
5303
- Ae as a4,
5304
- Qs as a5,
5305
- so as a6,
5306
- de as a7,
5307
- lo as a8,
5308
- Jr as b,
5309
- or as c,
5310
- R as d,
5311
- ro as e,
5312
- D as f,
5313
- to as g,
5314
- W as h,
5315
- En as i,
5316
- $ as j,
5317
- Zr as k,
5318
- Dr as l,
5319
- nn as m,
5091
+ ie as $,
5092
+ wo as A,
5093
+ Gr as B,
5094
+ Fe as C,
5095
+ yo as D,
5096
+ d as E,
5097
+ Ur as F,
5098
+ So as G,
5099
+ Ao as H,
5100
+ Po as I,
5101
+ oo as J,
5102
+ so as K,
5103
+ ao as L,
5104
+ Yr as M,
5105
+ no as N,
5106
+ io as O,
5107
+ xo as P,
5108
+ Io as Q,
5109
+ W as R,
5110
+ Kr as S,
5111
+ To as T,
5112
+ fe as U,
5113
+ Ho as V,
5114
+ Bo as W,
5115
+ Oo as X,
5116
+ $o as Y,
5117
+ Ro as Z,
5118
+ No as _,
5119
+ _r as a,
5120
+ Do as a0,
5121
+ Mo as a1,
5122
+ we as a2,
5123
+ Uo as a3,
5124
+ Mr as b,
5125
+ zt as c,
5126
+ G as d,
5127
+ Lo as e,
5128
+ R as f,
5129
+ Co as g,
5130
+ V as h,
5131
+ Jr as i,
5132
+ D as j,
5133
+ Nr as k,
5134
+ Tr as l,
5135
+ jr as m,
5320
5136
  O as n,
5321
- fn as o,
5322
- pe as p,
5323
- dt as q,
5324
- V as r,
5325
- Yt as s,
5326
- bn as t,
5327
- Gs as u,
5328
- Tt as v,
5329
- Kr as w,
5330
- js as x,
5331
- ks as y,
5332
- Fs as z
5137
+ Vr as o,
5138
+ Te as p,
5139
+ ot as q,
5140
+ k as r,
5141
+ Ft as s,
5142
+ zr as t,
5143
+ go as u,
5144
+ pt as v,
5145
+ Dr as w,
5146
+ _o as x,
5147
+ Eo as y,
5148
+ vo as z
5333
5149
  };