@everymatrix/mini-games-hub 0.2.6 → 0.2.8

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 (74) hide show
  1. package/components/CoinFlip-BOrc1Sgy.cjs +1 -0
  2. package/components/CoinFlip-DgM6tDy5.js +390 -0
  3. package/components/CoinFlip-DiCOvx3Q.cjs +1 -0
  4. package/components/CoinFlip-uc2aguuz.js +355 -0
  5. package/components/CoinRoyale-BH73ZSrU.cjs +734 -0
  6. package/components/CoinRoyale-Bkr3Rd-u.cjs +734 -0
  7. package/components/CoinRoyale-DLL1bCAy.js +1032 -0
  8. package/components/CoinRoyale-fp-xfwl2.js +994 -0
  9. package/components/{GameCard-C-zSlvo1.cjs → GameCard-BiO9Cay-.cjs} +2 -2
  10. package/components/{GameCard-BQ6hFy67.js → GameCard-D78hDMaL.js} +24 -21
  11. package/components/{GameCard-vgoswSWl.cjs → GameCard-Qh_fk15-.cjs} +2 -2
  12. package/components/{GameCard-B3YKo9k6.js → GameCard-jCZ6S2Wu.js} +23 -23
  13. package/components/MiniGamesHub-5tuj6CDm.cjs +16 -0
  14. package/components/{MiniGamesHub-C0q9vZFD.js → MiniGamesHub-Bf2Cd1bB.js} +269 -202
  15. package/components/{MiniGamesHub-D5Y5OYt-.js → MiniGamesHub-KqAdBJEX.js} +231 -167
  16. package/components/MiniGamesHub-SxucWl3S.cjs +16 -0
  17. package/components/{WheelOfFortune-DC57_QGF.js → WheelOfFortune-8HCl7aHv.js} +186 -175
  18. package/components/{WheelOfFortune-u6v6YLc5.js → WheelOfFortune-CBYo6vCg.js} +146 -138
  19. package/components/{WheelOfFortune-2WKhJAdZ.cjs → WheelOfFortune-CDTzbAjp.cjs} +2 -2
  20. package/components/{WheelOfFortune-BJ9iMr53.cjs → WheelOfFortune-XfmUFV3-.cjs} +2 -2
  21. package/components/{WheelOfFortuneDrawResults-BKkTmsVC.cjs → WheelOfFortuneDrawResults-CASEqNiM.cjs} +1 -1
  22. package/components/{WheelOfFortuneDrawResults-D3rgrYi_.js → WheelOfFortuneDrawResults-DqgsImHB.js} +3 -3
  23. package/components/{WheelOfFortuneDrawResults-gx2xkUtF.js → WheelOfFortuneDrawResults-DsfJ3803.js} +3 -3
  24. package/components/{WheelOfFortuneDrawResults-DTufAeXD.cjs → WheelOfFortuneDrawResults-l8iWZa_e.cjs} +1 -1
  25. package/components/WheelOfFortuneHistory-CF8B0i5m.js +213 -0
  26. package/components/WheelOfFortuneHistory-Cnk8otCw.js +213 -0
  27. package/components/WheelOfFortuneHistory-DARohsMs.cjs +12 -0
  28. package/components/WheelOfFortuneHistory-ld2sGzjI.cjs +12 -0
  29. package/components/{WheelOfFortuneRules-DkQOlpqR.js → WheelOfFortuneRules-BZqR4cT9.js} +27 -27
  30. package/components/WheelOfFortuneRules-Bv-d_VAp.cjs +3 -0
  31. package/components/{WheelOfFortuneRules-BM75DT61.js → WheelOfFortuneRules-CRGG3J0S.js} +23 -23
  32. package/components/WheelOfFortuneRules-DLj96pqu.cjs +3 -0
  33. package/components/{WheelOfFortuneWheel-DmTRvIN6.js → WheelOfFortuneWheel-CiyQZNAd.js} +673 -664
  34. package/components/WheelOfFortuneWheel-CrRAYCB1.cjs +3 -0
  35. package/components/WheelOfFortuneWheel-DGD-zfeE.cjs +3 -0
  36. package/components/{WheelOfFortuneWheel-D_tfW-rK.js → WheelOfFortuneWheel-F62aU_CL.js} +186 -178
  37. package/components/bg-scene-Bz42V1FW.cjs +1 -0
  38. package/components/bg-scene-DpHgKCHj.js +4 -0
  39. package/components/coin-heads-BuJOLpyg.cjs +1 -0
  40. package/components/coin-heads-loqcEtH2.js +4 -0
  41. package/components/coin-tails-20vJmhwv.cjs +1 -0
  42. package/components/coin-tails-BTbsTwkz.js +4 -0
  43. package/components/{constants-BYsDpbRv.js → constants-BDSd8ptj.js} +25 -15
  44. package/components/constants-CoPH35Re.cjs +1 -0
  45. package/components/{sparkles-BnriHiyw.cjs → sparkles-9YGw1xiU.cjs} +1 -1
  46. package/components/{sparkles-DplvhrIm.cjs → sparkles-B3XdFovy.cjs} +1 -1
  47. package/components/{sparkles-CSfeD2Zu.js → sparkles-BWGIWWDc.js} +1 -1
  48. package/components/{sparkles-CTrQ372y.js → sparkles-uxV1OTbN.js} +1 -1
  49. package/components/{spin-controller-CIshWmlA.cjs → spin-controller-BXcblJt7.cjs} +1 -1
  50. package/components/{spin-controller-HS3m99tB.cjs → spin-controller-BzO5YNSN.cjs} +1 -1
  51. package/components/{spin-controller-BuBkKrNR.js → spin-controller-CZWa2gmm.js} +2 -2
  52. package/components/{spin-controller-REPdRwaB.js → spin-controller-D3hdDnQ0.js} +2 -2
  53. package/components/{utils-B86dsoC-.js → utils-3LNftCeZ.js} +976 -958
  54. package/components/utils-BxNmJ6YA.cjs +3 -0
  55. package/components/{utils-BtFS7k_l.js → utils-DGrEJJ_K.js} +1063 -1045
  56. package/components/utils-DyVEmMSf.cjs +3 -0
  57. package/es2015/mini-games-hub.cjs +1 -1
  58. package/es2015/mini-games-hub.js +1 -1
  59. package/esnext/mini-games-hub.cjs +1 -1
  60. package/esnext/mini-games-hub.js +1 -1
  61. package/package.json +1 -1
  62. package/components/MiniGamesHub-CfiDjCz7.cjs +0 -16
  63. package/components/MiniGamesHub-DYwmUNTy.cjs +0 -16
  64. package/components/WheelOfFortuneHistory-B-Yadw5p.js +0 -213
  65. package/components/WheelOfFortuneHistory-DdXxYW6M.cjs +0 -12
  66. package/components/WheelOfFortuneHistory-DhFZUmGd.cjs +0 -12
  67. package/components/WheelOfFortuneHistory-IM5H-der.js +0 -213
  68. package/components/WheelOfFortuneRules-D-xnWFIU.cjs +0 -3
  69. package/components/WheelOfFortuneRules-_a2c-LEy.cjs +0 -3
  70. package/components/WheelOfFortuneWheel-CUs0nOjA.cjs +0 -3
  71. package/components/WheelOfFortuneWheel-D9nXwM0H.cjs +0 -3
  72. package/components/constants-DM6Vdc6Z.cjs +0 -1
  73. package/components/utils-By_D2O28.cjs +0 -3
  74. package/components/utils-CSIl6eA7.cjs +0 -3
@@ -1,76 +1,77 @@
1
- var is = Object.defineProperty, ss = Object.defineProperties;
2
- var as = Object.getOwnPropertyDescriptors;
3
- var _n = Object.getOwnPropertySymbols;
4
- var os = Object.prototype.hasOwnProperty, us = Object.prototype.propertyIsEnumerable;
5
- var bn = (e) => {
1
+ var as = Object.defineProperty, os = Object.defineProperties;
2
+ var us = Object.getOwnPropertyDescriptors;
3
+ var yn = Object.getOwnPropertySymbols;
4
+ var ls = Object.prototype.hasOwnProperty, fs = Object.prototype.propertyIsEnumerable;
5
+ var gn = (e) => {
6
6
  throw TypeError(e);
7
7
  };
8
- var Mr = (e, t, r) => t in e ? is(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, yn = (e, t) => {
8
+ var Ar = (e, t, r) => t in e ? as(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, En = (e, t) => {
9
9
  for (var r in t || (t = {}))
10
- os.call(t, r) && Mr(e, r, t[r]);
11
- if (_n)
12
- for (var r of _n(t))
13
- us.call(t, r) && Mr(e, r, t[r]);
10
+ ls.call(t, r) && Ar(e, r, t[r]);
11
+ if (yn)
12
+ for (var r of yn(t))
13
+ fs.call(t, r) && Ar(e, r, t[r]);
14
14
  return e;
15
- }, gn = (e, t) => ss(e, as(t));
16
- var Ne = (e, t, r) => Mr(e, typeof t != "symbol" ? t + "" : t, r), Ar = (e, t, r) => t.has(e) || bn("Cannot " + r);
17
- var y = (e, t, r) => (Ar(e, t, "read from private field"), r ? r.call(e) : t.get(e)), te = (e, t, r) => t.has(e) ? bn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), fe = (e, t, r, n) => (Ar(e, t, "write to private field"), n ? n.call(e, r) : t.set(e, r), r), $ = (e, t, r) => (Ar(e, t, "access private method"), r);
18
- const ru = 1, nu = 2, iu = 4, su = 8, au = 16, ou = 1, uu = 4, lu = 8, fu = 16, hu = 1, cu = 2, ls = "[", fs = "[!", du = "[?", hs = "]", pr = {}, W = Symbol("uninitialized"), cs = "http://www.w3.org/1999/xhtml", pu = "http://www.w3.org/2000/svg", mu = "http://www.w3.org/1998/Math/MathML", jn = !1;
19
- var Yn = Array.isArray, ds = Array.prototype.indexOf, Rt = Array.prototype.includes, vu = Array.from, _u = Object.keys, ps = Object.defineProperty, Bt = Object.getOwnPropertyDescriptor, bu = Object.getOwnPropertyDescriptors, Vn = Object.prototype, ms = Array.prototype, Xn = Object.getPrototypeOf, En = Object.isExtensible;
15
+ }, xn = (e, t) => os(e, us(t));
16
+ var Ie = (e, t, r) => Ar(e, typeof t != "symbol" ? t + "" : t, r), Or = (e, t, r) => t.has(e) || gn("Cannot " + r);
17
+ var y = (e, t, r) => (Or(e, t, "read from private field"), r ? r.call(e) : t.get(e)), te = (e, t, r) => t.has(e) ? gn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), fe = (e, t, r, n) => (Or(e, t, "write to private field"), n ? n.call(e, r) : t.set(e, r), r), $ = (e, t, r) => (Or(e, t, "access private method"), r);
18
+ import { i as hs } from "./constants-BDSd8ptj.js";
19
+ const au = 1, ou = 2, uu = 4, lu = 8, fu = 16, hu = 1, cu = 4, du = 8, pu = 16, mu = 1, vu = 2, cs = "[", ds = "[!", _u = "[?", ps = "]", mr = {}, W = Symbol("uninitialized"), ms = "http://www.w3.org/1999/xhtml", bu = "http://www.w3.org/2000/svg", yu = "http://www.w3.org/1998/Math/MathML", Vn = !1;
20
+ var Xn = Array.isArray, vs = Array.prototype.indexOf, Ut = Array.prototype.includes, gu = Array.from, Eu = Object.keys, _s = Object.defineProperty, Ct = Object.getOwnPropertyDescriptor, xu = Object.getOwnPropertyDescriptors, Wn = Object.prototype, bs = Array.prototype, zn = Object.getPrototypeOf, Tn = Object.isExtensible;
20
21
  const tt = () => {
21
22
  };
22
- function Wn(e) {
23
+ function Zn(e) {
23
24
  for (var t = 0; t < e.length; t++)
24
25
  e[t]();
25
26
  }
26
- function zn() {
27
+ function qn() {
27
28
  var e, t, r = new Promise((n, i) => {
28
29
  e = n, t = i;
29
30
  });
30
31
  return { promise: r, resolve: e, reject: t };
31
32
  }
32
- const se = 2, vt = 4, jt = 8, Zn = 1 << 24, Ee = 16, Oe = 32, De = 64, vs = 128, rn = 256, Te = 512, z = 1024, V = 2048, me = 4096, ve = 8192, le = 16384, St = 32768, Ur = 1 << 25, rr = 65536, nr = 1 << 17, _s = 1 << 18, wt = 1 << 19, qn = 1 << 20, yu = 1 << 25, ir = 1 << 21, lt = 1 << 22, $e = 1 << 23, Or = Symbol("$state"), Qn = Symbol("component"), gu = Symbol("legacy props"), Eu = Symbol(""), bs = Symbol("attributes"), ys = Symbol("class"), gs = Symbol("style"), Es = Symbol("text"), Yt = new class extends Error {
33
+ const se = 2, vt = 4, Yt = 8, Qn = 1 << 24, Ee = 16, Oe = 32, De = 64, ys = 128, sn = 256, Te = 512, z = 1024, V = 2048, me = 4096, ve = 8192, le = 16384, St = 32768, Gr = 1 << 25, nr = 65536, ir = 1 << 17, gs = 1 << 18, wt = 1 << 19, Jn = 1 << 20, Tu = 1 << 25, sr = 1 << 21, lt = 1 << 22, $e = 1 << 23, Pr = Symbol("$state"), Kn = Symbol("component"), Su = Symbol("legacy props"), wu = Symbol(""), Es = Symbol("attributes"), xs = Symbol("class"), Ts = Symbol("style"), Ss = Symbol("text"), Vt = new class extends Error {
33
34
  constructor() {
34
35
  super(...arguments);
35
- Ne(this, "name", "StaleReactionError");
36
- Ne(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
36
+ Ie(this, "name", "StaleReactionError");
37
+ Ie(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
37
38
  }
38
39
  }();
39
- var kn;
40
- const Tu = (
40
+ var Yn;
41
+ const Hu = (
41
42
  // We gotta write it like this because after downleveling the pure comment may end up in the wrong location
42
- !!((kn = globalThis.document) != null && kn.contentType) && /* @__PURE__ */ globalThis.document.contentType.includes("xml")
43
- ), mr = 3, Jn = 8;
44
- function xs() {
43
+ !!((Yn = globalThis.document) != null && Yn.contentType) && /* @__PURE__ */ globalThis.document.contentType.includes("xml")
44
+ ), vr = 3, ei = 8;
45
+ function ws() {
45
46
  console.warn("https://svelte.dev/e/derived_inert");
46
47
  }
47
- function nn(e) {
48
+ function an(e) {
48
49
  console.warn("https://svelte.dev/e/hydration_mismatch");
49
50
  }
50
- function Su() {
51
+ function Au() {
51
52
  console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
52
53
  }
53
54
  let je = !1;
54
- function wu(e) {
55
+ function Ou(e) {
55
56
  je = e;
56
57
  }
57
58
  let Q;
58
59
  function _t(e) {
59
60
  if (e === null)
60
- throw nn(), pr;
61
+ throw an(), mr;
61
62
  return Q = e;
62
63
  }
63
- function Hu() {
64
+ function Pu() {
64
65
  return _t(/* @__PURE__ */ We(Q));
65
66
  }
66
- function Ts(e) {
67
+ function Ms(e) {
67
68
  if (je) {
68
69
  if (/* @__PURE__ */ We(Q) !== null)
69
- throw nn(), pr;
70
+ throw an(), mr;
70
71
  Q = e;
71
72
  }
72
73
  }
73
- function Mu(e = 1) {
74
+ function Nu(e = 1) {
74
75
  if (je) {
75
76
  for (var t = e, r = Q; t--; )
76
77
  r = /** @type {TemplateNode} */
@@ -78,17 +79,17 @@ function Mu(e = 1) {
78
79
  Q = r;
79
80
  }
80
81
  }
81
- function Au(e = !0) {
82
+ function Iu(e = !0) {
82
83
  for (var t = 0, r = Q; ; ) {
83
- if (r.nodeType === Jn) {
84
+ if (r.nodeType === ei) {
84
85
  var n = (
85
86
  /** @type {Comment} */
86
87
  r.data
87
88
  );
88
- if (n === hs) {
89
+ if (n === ps) {
89
90
  if (t === 0) return r;
90
91
  t -= 1;
91
- } else (n === ls || n === fs || // "[1", "[2", etc. for if blocks
92
+ } else (n === cs || n === ds || // "[1", "[2", etc. for if blocks
92
93
  n[0] === "[" && !isNaN(Number(n.slice(1)))) && (t += 1);
93
94
  }
94
95
  var i = (
@@ -98,68 +99,68 @@ function Au(e = !0) {
98
99
  e && r.remove(), r = i;
99
100
  }
100
101
  }
101
- function Ou(e) {
102
- if (!e || e.nodeType !== Jn)
103
- throw nn(), pr;
102
+ function Bu(e) {
103
+ if (!e || e.nodeType !== ei)
104
+ throw an(), mr;
104
105
  return (
105
106
  /** @type {Comment} */
106
107
  e.data
107
108
  );
108
109
  }
109
- function Kn(e) {
110
+ function ti(e) {
110
111
  return e === this.v;
111
112
  }
112
- function ei(e, t) {
113
+ function ri(e, t) {
113
114
  return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
114
115
  }
115
- function ti(e) {
116
- return !ei(e, this.v);
116
+ function ni(e) {
117
+ return !ri(e, this.v);
117
118
  }
118
- function Pu(e) {
119
+ function Cu(e) {
119
120
  throw new Error("https://svelte.dev/e/lifecycle_outside_component");
120
121
  }
121
- function Ss() {
122
+ function Hs() {
122
123
  throw new Error("https://svelte.dev/e/async_derived_orphan");
123
124
  }
124
- function Iu(e, t, r) {
125
+ function Du(e, t, r) {
125
126
  throw new Error("https://svelte.dev/e/each_key_duplicate");
126
127
  }
127
- function ws(e) {
128
+ function As(e) {
128
129
  throw new Error("https://svelte.dev/e/effect_in_teardown");
129
130
  }
130
- function Hs() {
131
+ function Os() {
131
132
  throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
132
133
  }
133
- function Ms(e) {
134
+ function Ps(e) {
134
135
  throw new Error("https://svelte.dev/e/effect_orphan");
135
136
  }
136
- function As() {
137
+ function Ns() {
137
138
  throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
138
139
  }
139
- function Nu() {
140
+ function Lu() {
140
141
  throw new Error("https://svelte.dev/e/hydration_failed");
141
142
  }
142
- function Bu(e) {
143
+ function Ru(e) {
143
144
  throw new Error("https://svelte.dev/e/props_invalid_value");
144
145
  }
145
- function Os() {
146
+ function Is() {
146
147
  throw new Error("https://svelte.dev/e/state_descriptors_fixed");
147
148
  }
148
- function Ps() {
149
+ function Bs() {
149
150
  throw new Error("https://svelte.dev/e/state_prototype_fixed");
150
151
  }
151
- function Is() {
152
+ function Cs() {
152
153
  throw new Error("https://svelte.dev/e/state_unsafe_mutation");
153
154
  }
154
- function Cu() {
155
+ function Uu() {
155
156
  throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
156
157
  }
157
- let Ns = !1;
158
- const Bs = [];
159
- function Du(e, t = !1, r = !1) {
160
- return Jt(e, /* @__PURE__ */ new Map(), "", Bs, null, r);
158
+ let Ds = !1;
159
+ const Ls = [];
160
+ function Fu(e, t = !1, r = !1) {
161
+ return Kt(e, /* @__PURE__ */ new Map(), "", Ls, null, r);
161
162
  }
162
- function Jt(e, t, r, n, i = null, s = !1) {
163
+ function Kt(e, t, r, n, i = null, s = !1) {
163
164
  if (typeof e == "object" && e !== null) {
164
165
  var a = t.get(e);
165
166
  if (a !== void 0) return a;
@@ -171,7 +172,7 @@ function Jt(e, t, r, n, i = null, s = !1) {
171
172
  /** @type {Snapshot<T>} */
172
173
  new Set(e)
173
174
  );
174
- if (Yn(e)) {
175
+ if (Xn(e)) {
175
176
  var u = (
176
177
  /** @type {Snapshot<any>} */
177
178
  Array(e.length)
@@ -179,14 +180,14 @@ function Jt(e, t, r, n, i = null, s = !1) {
179
180
  t.set(e, u), i !== null && t.set(i, u);
180
181
  for (var o = 0; o < e.length; o += 1) {
181
182
  var f = e[o];
182
- o in e && (u[o] = Jt(f, t, r, n, null, s));
183
+ o in e && (u[o] = Kt(f, t, r, n, null, s));
183
184
  }
184
185
  return u;
185
186
  }
186
- if (Xn(e) === Vn) {
187
+ if (zn(e) === Wn) {
187
188
  u = {}, t.set(e, u), i !== null && t.set(i, u);
188
189
  for (var l of Object.keys(e))
189
- u[l] = Jt(
190
+ u[l] = Kt(
190
191
  // @ts-expect-error
191
192
  e[l],
192
193
  t,
@@ -202,7 +203,7 @@ function Jt(e, t, r, n, i = null, s = !1) {
202
203
  structuredClone(e);
203
204
  if (typeof /** @type {T & { toJSON?: any } } */
204
205
  e.toJSON == "function" && !s)
205
- return Jt(
206
+ return Kt(
206
207
  /** @type {T & { toJSON(): any } } */
207
208
  e.toJSON(),
208
209
  t,
@@ -230,10 +231,10 @@ function Jt(e, t, r, n, i = null, s = !1) {
230
231
  }
231
232
  }
232
233
  let _e = null;
233
- function sr(e) {
234
+ function ar(e) {
234
235
  _e = e;
235
236
  }
236
- function Lu(e, t = !1, r) {
237
+ function Gu(e, t = !1, r) {
237
238
  _e = {
238
239
  p: _e,
239
240
  i: !1,
@@ -248,7 +249,7 @@ function Lu(e, t = !1, r) {
248
249
  l: null
249
250
  };
250
251
  }
251
- function Ru(e) {
252
+ function $u(e) {
252
253
  var t = (
253
254
  /** @type {ComponentContext} */
254
255
  _e
@@ -256,46 +257,46 @@ function Ru(e) {
256
257
  if (r !== null) {
257
258
  t.e = null;
258
259
  for (var n of r)
259
- _i(n);
260
+ yi(n);
260
261
  }
261
- return e !== void 0 && (t.x = e), t.i = !0, _e = t.p, Cs(e);
262
+ return e !== void 0 && (t.x = e), t.i = !0, _e = t.p, Rs(e);
262
263
  }
263
- function Cs(e = {}) {
264
- return ps(e, Qn, { value: !0 }), e;
264
+ function Rs(e = {}) {
265
+ return _s(e, Kn, { value: !0 }), e;
265
266
  }
266
- function ri() {
267
+ function ii() {
267
268
  return !0;
268
269
  }
269
270
  let Qe = [];
270
- function ni() {
271
+ function si() {
271
272
  var e = Qe;
272
- Qe = [], Wn(e);
273
+ Qe = [], Zn(e);
273
274
  }
274
- function Fr(e) {
275
- if (Qe.length === 0 && !Ct) {
275
+ function $r(e) {
276
+ if (Qe.length === 0 && !Dt) {
276
277
  var t = Qe;
277
278
  queueMicrotask(() => {
278
- t === Qe && ni();
279
+ t === Qe && si();
279
280
  });
280
281
  }
281
282
  Qe.push(e);
282
283
  }
283
- function Ds() {
284
+ function Us() {
284
285
  for (; Qe.length > 0; )
285
- ni();
286
+ si();
286
287
  }
287
- const Ls = -7169;
288
+ const Fs = -7169;
288
289
  function j(e, t) {
289
- e.f = e.f & Ls | t;
290
+ e.f = e.f & Fs | t;
290
291
  }
291
- function sn(e) {
292
+ function on(e) {
292
293
  e.f & Te || e.deps === null ? j(e, z) : j(e, me);
293
294
  }
294
- function Rs(e, t, r) {
295
+ function Gs(e, t, r) {
295
296
  e.f & V ? t.add(e) : e.f & me && r.add(e), j(e, z);
296
297
  }
297
- function vr(e) {
298
- var t = I, r = U;
298
+ function _r(e) {
299
+ var t = N, r = U;
299
300
  Xe(null), bt(null);
300
301
  try {
301
302
  return e();
@@ -303,8 +304,8 @@ function vr(e) {
303
304
  Xe(t), bt(r);
304
305
  }
305
306
  }
306
- function Us(e, t, r, n) {
307
- const i = an;
307
+ function $s(e, t, r, n) {
308
+ const i = un;
308
309
  var s = e.filter((c) => !c.settled), a = t.map(i);
309
310
  if (r.length === 0 && s.length === 0) {
310
311
  n(a);
@@ -313,50 +314,50 @@ function Us(e, t, r, n) {
313
314
  var u = (
314
315
  /** @type {Effect} */
315
316
  U
316
- ), o = Fs(), f = s.length === 1 ? s[0].promise : s.length > 1 ? Promise.all(s.map((c) => c.promise)) : null;
317
+ ), o = ks(), f = s.length === 1 ? s[0].promise : s.length > 1 ? Promise.all(s.map((c) => c.promise)) : null;
317
318
  function l(c) {
318
319
  if (!(u.f & le)) {
319
320
  o();
320
321
  try {
321
322
  n([...a, ...c]);
322
323
  } catch (p) {
323
- Ut(p, u);
324
+ Ft(p, u);
324
325
  }
325
- ar();
326
+ or();
326
327
  }
327
328
  }
328
- var h = ii();
329
+ var h = ai();
329
330
  if (r.length === 0) {
330
331
  f.then(() => l([])).finally(h);
331
332
  return;
332
333
  }
333
334
  function d() {
334
- Promise.all(r.map((c) => /* @__PURE__ */ Gs(c))).then(l).catch((c) => Ut(c, u)).finally(h);
335
+ Promise.all(r.map((c) => /* @__PURE__ */ js(c))).then(l).catch((c) => Ft(c, u)).finally(h);
335
336
  }
336
337
  f ? f.then(() => {
337
338
  if (u.f & le) {
338
339
  h();
339
340
  return;
340
341
  }
341
- o(), d(), ar();
342
+ o(), d(), or();
342
343
  }) : d();
343
344
  }
344
- function Fs() {
345
+ function ks() {
345
346
  var e = (
346
347
  /** @type {Effect} */
347
348
  U
348
- ), t = I, r = _e, n = (
349
+ ), t = N, r = _e, n = (
349
350
  /** @type {Batch} */
350
351
  B
351
352
  );
352
353
  return function(s = !0) {
353
- bt(e), Xe(t), sr(r), s && !(e.f & le) && (n == null || n.activate(), n == null || n.apply());
354
+ bt(e), Xe(t), ar(r), s && !(e.f & le) && (n == null || n.activate(), n == null || n.apply());
354
355
  };
355
356
  }
356
- function ar(e = !0) {
357
- bt(null), Xe(null), sr(null), e && (B == null || B.deactivate());
357
+ function or(e = !0) {
358
+ bt(null), Xe(null), ar(null), e && (B == null || B.deactivate());
358
359
  }
359
- function ii() {
360
+ function ai() {
360
361
  var e = (
361
362
  /** @type {Effect} */
362
363
  U
@@ -369,13 +370,13 @@ function ii() {
369
370
  };
370
371
  }
371
372
  // @__NO_SIDE_EFFECTS__
372
- function an(e) {
373
+ function un(e) {
373
374
  var t = se | V;
374
375
  return U !== null && (U.f |= wt), {
375
376
  ctx: _e,
376
377
  deps: null,
377
378
  effects: null,
378
- equals: Kn,
379
+ equals: ti,
379
380
  f: t,
380
381
  fn: e,
381
382
  reactions: null,
@@ -389,35 +390,35 @@ function an(e) {
389
390
  ac: null
390
391
  };
391
392
  }
392
- const Ot = Symbol("obsolete");
393
+ const Pt = Symbol("obsolete");
393
394
  // @__NO_SIDE_EFFECTS__
394
- function Gs(e, t, r) {
395
+ function js(e, t, r) {
395
396
  let n = (
396
397
  /** @type {Effect | null} */
397
398
  U
398
399
  );
399
- n === null && Ss();
400
+ n === null && Hs();
400
401
  var i = (
401
402
  /** @type {Promise<V>} */
402
403
  /** @type {unknown} */
403
404
  void 0
404
- ), s = _r(
405
+ ), s = br(
405
406
  /** @type {V} */
406
407
  W
407
- ), a = !I, u = /* @__PURE__ */ new Set();
408
- return Js(() => {
408
+ ), a = !N, u = /* @__PURE__ */ new Set();
409
+ return ta(() => {
409
410
  var c, p;
410
411
  var o = (
411
412
  /** @type {Effect} */
412
413
  U
413
- ), f = zn();
414
+ ), f = qn();
414
415
  i = f.promise;
415
416
  try {
416
417
  Promise.resolve(e()).then(f.resolve, (g) => {
417
- g !== Yt && f.reject(g);
418
- }).finally(ar);
418
+ g !== Vt && f.reject(g);
419
+ }).finally(or);
419
420
  } catch (g) {
420
- f.reject(g), ar();
421
+ f.reject(g), or();
421
422
  }
422
423
  var l = (
423
424
  /** @type {Batch} */
@@ -425,24 +426,24 @@ function Gs(e, t, r) {
425
426
  );
426
427
  if (a) {
427
428
  if (o.f & St)
428
- var h = ii();
429
+ var h = ai();
429
430
  if (
430
431
  // boundary can be null if the async derived is inside an $effect.root not connected to the component render tree
431
432
  (c = n.b) != null && c.is_rendered()
432
433
  )
433
- (p = l.async_deriveds.get(o)) == null || p.reject(Ot);
434
+ (p = l.async_deriveds.get(o)) == null || p.reject(Pt);
434
435
  else
435
436
  for (const g of u.values())
436
- g.reject(Ot);
437
+ g.reject(Pt);
437
438
  u.add(f), l.async_deriveds.set(o, f);
438
439
  }
439
440
  const d = (g, m = void 0) => {
440
- h == null || h(), u.delete(f), m !== Ot && (l.activate(), m ? (s.f |= $e, Vr(s, m)) : (s.f & $e && (s.f ^= $e), Vr(s, g)), l.deactivate());
441
+ h == null || h(), u.delete(f), m !== Pt && (l.activate(), m ? (s.f |= $e, Wr(s, m)) : (s.f & $e && (s.f ^= $e), Wr(s, g)), l.deactivate());
441
442
  };
442
443
  f.promise.then(d, (g) => d(null, g || "unknown"));
443
- }), Qs(() => {
444
+ }), ea(() => {
444
445
  for (const o of u)
445
- o.reject(Ot);
446
+ o.reject(Pt);
446
447
  }), new Promise((o) => {
447
448
  function f(l) {
448
449
  function h() {
@@ -454,16 +455,16 @@ function Gs(e, t, r) {
454
455
  });
455
456
  }
456
457
  // @__NO_SIDE_EFFECTS__
457
- function Uu(e) {
458
- const t = /* @__PURE__ */ an(e);
459
- return xi(t), t;
458
+ function ku(e) {
459
+ const t = /* @__PURE__ */ un(e);
460
+ return Si(t), t;
460
461
  }
461
462
  // @__NO_SIDE_EFFECTS__
462
- function Fu(e) {
463
- const t = /* @__PURE__ */ an(e);
464
- return t.equals = ti, t;
463
+ function ju(e) {
464
+ const t = /* @__PURE__ */ un(e);
465
+ return t.equals = ni, t;
465
466
  }
466
- function $s(e) {
467
+ function Ys(e) {
467
468
  var t = e.effects;
468
469
  if (t !== null) {
469
470
  e.effects = null;
@@ -474,70 +475,70 @@ function $s(e) {
474
475
  );
475
476
  }
476
477
  }
477
- function on(e) {
478
+ function ln(e) {
478
479
  var t, r = U, n = e.parent;
479
480
  if (!Ve && n !== null && e.v !== W && // if it was never evaluated before, it's guaranteed to fail downstream, so we try to execute instead
480
481
  n.f & (le | ve))
481
- return xs(), e.v;
482
+ return ws(), e.v;
482
483
  bt(n);
483
484
  try {
484
- $s(e), t = Hi(e);
485
+ Ys(e), t = Ai(e);
485
486
  } finally {
486
487
  bt(r);
487
488
  }
488
489
  return t;
489
490
  }
490
- function si(e) {
491
- var t = on(e);
492
- if (!e.equals(t) && (e.wv = Si(), (!(B != null && B.is_fork) || e.deps === null) && (B !== null ? (B.capture(e, t, !0), ke == null || ke.capture(e, t, !0)) : e.v = t, e.deps === null))) {
491
+ function oi(e) {
492
+ var t = ln(e);
493
+ if (!e.equals(t) && (e.wv = Mi(), (!(B != null && B.is_fork) || e.deps === null) && (B !== null ? (B.capture(e, t, !0), ke == null || ke.capture(e, t, !0)) : e.v = t, e.deps === null))) {
493
494
  j(e, z);
494
495
  return;
495
496
  }
496
- Ve || (re !== null ? (hn() || B != null && B.is_fork) && re.set(e, t) : sn(e));
497
+ Ve || (re !== null ? (dn() || B != null && B.is_fork) && re.set(e, t) : on(e));
497
498
  }
498
- function ks(e) {
499
+ function Vs(e) {
499
500
  var t;
500
501
  if (e.effects !== null)
501
502
  for (const r of e.effects)
502
- (r.teardown || r.ac) && ((t = r.teardown) == null || t.call(r), r.ac !== null && vr(() => {
503
- r.ac.abort(Yt), r.ac = null;
504
- }), r.fn !== null && (r.teardown = tt), Ft(r, 0), cn(r));
503
+ (r.teardown || r.ac) && ((t = r.teardown) == null || t.call(r), r.ac !== null && _r(() => {
504
+ r.ac.abort(Vt), r.ac = null;
505
+ }), r.fn !== null && (r.teardown = tt), Gt(r, 0), pn(r));
505
506
  }
506
- function ai(e) {
507
+ function ui(e) {
507
508
  if (e.effects !== null)
508
509
  for (const t of e.effects)
509
510
  t.teardown && t.fn !== null && yt(t);
510
511
  }
511
- let Pr = null, st = null, B = null, ke = null, re = null, Gr = null, Ct = !1, Ir = !1, Dt = null, Kt = null;
512
- var xn = 0;
513
- let js = 1;
514
- var ft, Fe, Ke, ht, ct, dt, Be, pt, he, kt, Ce, ge, He, mt, et, C, $r, kr, Pt, jr, oi, ui, ot, Ys, It;
515
- const dr = class dr {
512
+ let Nr = null, st = null, B = null, ke = null, re = null, kr = null, Dt = !1, Ir = !1, Lt = null, er = null;
513
+ var Sn = 0;
514
+ let Xs = 1;
515
+ var ft, Fe, Ke, ht, ct, dt, Be, pt, he, jt, Ce, ge, Me, mt, et, C, jr, Yr, Nt, Vr, li, fi, ot, Ws, It;
516
+ const pr = class pr {
516
517
  constructor() {
517
518
  te(this, C);
518
- Ne(this, "id", js++);
519
+ Ie(this, "id", Xs++);
519
520
  /** True as soon as `#process` was called */
520
521
  te(this, ft, !1);
521
- Ne(this, "linked", !0);
522
+ Ie(this, "linked", !0);
522
523
  /** @type {Batch | null} */
523
524
  te(this, Fe, null);
524
525
  /** @type {Batch | null} */
525
526
  te(this, Ke, null);
526
527
  /** @type {Map<Effect, ReturnType<typeof deferred<any>>>} */
527
- Ne(this, "async_deriveds", /* @__PURE__ */ new Map());
528
+ Ie(this, "async_deriveds", /* @__PURE__ */ new Map());
528
529
  /**
529
530
  * The current values of any signals that are updated in this batch.
530
531
  * Tuple format: [value, is_derived] (note: is_derived is false for deriveds, too, if they were overridden via assignment)
531
532
  * They keys of this map are identical to `this.#previous`
532
533
  * @type {Map<Value, [any, boolean]>}
533
534
  */
534
- Ne(this, "current", /* @__PURE__ */ new Map());
535
+ Ie(this, "current", /* @__PURE__ */ new Map());
535
536
  /**
536
537
  * The values of any signals (sources and deriveds) that are updated in this batch _before_ those updates took place.
537
538
  * They keys of this map are identical to `this.#current`
538
539
  * @type {Map<Value, any>}
539
540
  */
540
- Ne(this, "previous", /* @__PURE__ */ new Map());
541
+ Ie(this, "previous", /* @__PURE__ */ new Map());
541
542
  /**
542
543
  * When the batch is committed (and the DOM is updated), we need to remove old branches
543
544
  * and append new ones by calling the functions added inside (if/each/key/etc) blocks
@@ -580,7 +581,7 @@ const dr = class dr {
580
581
  * Effects created while this batch was active.
581
582
  * @type {Effect[]}
582
583
  */
583
- te(this, kt, []);
584
+ te(this, jt, []);
584
585
  /**
585
586
  * Deferred effects (which run after async work has completed) that are DIRTY
586
587
  * @type {Set<Effect>}
@@ -598,22 +599,22 @@ const dr = class dr {
598
599
  * so they can be rescheduled if the branch survives.
599
600
  * @type {Map<Effect, { d: Effect[], m: Effect[] }>}
600
601
  */
601
- te(this, He, /* @__PURE__ */ new Map());
602
+ te(this, Me, /* @__PURE__ */ new Map());
602
603
  /**
603
604
  * Inverse of #skipped_branches which we need to tell prior batches to unskip them when committing
604
605
  * @type {Set<Effect>}
605
606
  */
606
607
  te(this, mt, /* @__PURE__ */ new Set());
607
- Ne(this, "is_fork", !1);
608
+ Ie(this, "is_fork", !1);
608
609
  te(this, et, !1);
609
- st === null ? Pr = st = this : (fe(st, Ke, this), fe(this, Fe, st)), st = this;
610
+ st === null ? Nr = st = this : (fe(st, Ke, this), fe(this, Fe, st)), st = this;
610
611
  }
611
612
  /**
612
613
  * Add an effect to the #skipped_branches map and reset its children
613
614
  * @param {Effect} effect
614
615
  */
615
616
  skip_effect(t) {
616
- y(this, He).has(t) || y(this, He).set(t, { d: [], m: [] }), y(this, mt).delete(t);
617
+ y(this, Me).has(t) || y(this, Me).set(t, { d: [], m: [] }), y(this, mt).delete(t);
617
618
  }
618
619
  /**
619
620
  * Remove an effect from the #skipped_branches map and reschedule
@@ -622,9 +623,9 @@ const dr = class dr {
622
623
  * @param {(e: Effect) => void} callback
623
624
  */
624
625
  unskip_effect(t, r = (n) => this.schedule(n)) {
625
- var n = y(this, He).get(t);
626
+ var n = y(this, Me).get(t);
626
627
  if (n) {
627
- y(this, He).delete(t);
628
+ y(this, Me).delete(t);
628
629
  for (var i of n.d)
629
630
  j(i, V), r(i);
630
631
  for (i of n.m)
@@ -650,9 +651,9 @@ const dr = class dr {
650
651
  }
651
652
  flush() {
652
653
  try {
653
- Ir = !0, B = this, $(this, C, Pt).call(this);
654
+ Ir = !0, B = this, $(this, C, Nt).call(this);
654
655
  } finally {
655
- xn = 0, Gr = null, Dt = null, Kt = null, Ir = !1, B = null, re = null, Ae.clear();
656
+ Sn = 0, kr = null, Lt = null, er = null, Ir = !1, B = null, re = null, Ae.clear();
656
657
  }
657
658
  }
658
659
  discard() {
@@ -660,14 +661,14 @@ const dr = class dr {
660
661
  for (const r of y(this, ct)) r(this);
661
662
  y(this, ct).clear();
662
663
  for (const r of this.async_deriveds.values())
663
- r.reject(Ot);
664
+ r.reject(Pt);
664
665
  $(this, C, It).call(this), (t = y(this, pt)) == null || t.resolve();
665
666
  }
666
667
  /**
667
668
  * @param {Effect} effect
668
669
  */
669
670
  register_created_effect(t) {
670
- y(this, kt).push(t);
671
+ y(this, jt).push(t);
671
672
  }
672
673
  /**
673
674
  * @param {boolean} blocking
@@ -690,7 +691,7 @@ const dr = class dr {
690
691
  let i = (n = y(this, Be).get(r)) != null ? n : 0;
691
692
  i === 1 ? y(this, Be).delete(r) : y(this, Be).set(r, i - 1);
692
693
  }
693
- y(this, et) || (fe(this, et, !0), Fr(() => {
694
+ y(this, et) || (fe(this, et, !0), $r(() => {
694
695
  fe(this, et, !1), this.linked && this.flush();
695
696
  }));
696
697
  }
@@ -715,12 +716,12 @@ const dr = class dr {
715
716
  }
716
717
  settled() {
717
718
  var t;
718
- return ((t = y(this, pt)) != null ? t : fe(this, pt, zn())).promise;
719
+ return ((t = y(this, pt)) != null ? t : fe(this, pt, qn())).promise;
719
720
  }
720
721
  static ensure() {
721
722
  if (B === null) {
722
- const t = B = new dr();
723
- !Ir && !Ct && Fr(() => {
723
+ const t = B = new pr();
724
+ !Ir && !Dt && $r(() => {
724
725
  y(t, ft) || t.flush();
725
726
  });
726
727
  }
@@ -738,18 +739,18 @@ const dr = class dr {
738
739
  */
739
740
  schedule(t) {
740
741
  var r;
741
- if (Gr = t, (r = t.b) != null && r.is_pending && t.f & (vt | jt | Zn) && !(t.f & St)) {
742
+ if (kr = t, (r = t.b) != null && r.is_pending && t.f & (vt | Yt | Qn) && !(t.f & St)) {
742
743
  t.b.defer_effect(t);
743
744
  return;
744
745
  }
745
746
  y(this, he).push(t);
746
747
  }
747
748
  };
748
- ft = new WeakMap(), Fe = new WeakMap(), Ke = new WeakMap(), ht = new WeakMap(), ct = new WeakMap(), dt = new WeakMap(), Be = new WeakMap(), pt = new WeakMap(), he = new WeakMap(), kt = new WeakMap(), Ce = new WeakMap(), ge = new WeakMap(), He = new WeakMap(), mt = new WeakMap(), et = new WeakMap(), C = new WeakSet(), $r = function() {
749
+ ft = new WeakMap(), Fe = new WeakMap(), Ke = new WeakMap(), ht = new WeakMap(), ct = new WeakMap(), dt = new WeakMap(), Be = new WeakMap(), pt = new WeakMap(), he = new WeakMap(), jt = new WeakMap(), Ce = new WeakMap(), ge = new WeakMap(), Me = new WeakMap(), mt = new WeakMap(), et = new WeakMap(), C = new WeakSet(), jr = function() {
749
750
  if (this.is_fork) return !0;
750
751
  for (const n of y(this, Be).keys()) {
751
752
  for (var t = n, r = !1; t.parent !== null; ) {
752
- if (y(this, He).has(t)) {
753
+ if (y(this, Me).has(t)) {
753
754
  r = !0;
754
755
  break;
755
756
  }
@@ -768,7 +769,7 @@ ft = new WeakMap(), Fe = new WeakMap(), Ke = new WeakMap(), ht = new WeakMap(),
768
769
  * a single traversal — scheduling into other batches can never observe them
769
770
  * @returns {Effect[]}
770
771
  */
771
- kr = function() {
772
+ Yr = function() {
772
773
  var t = [];
773
774
  for (const s of y(this, he))
774
775
  if (!(s.f & le || !(s.f & (V | me)))) {
@@ -786,7 +787,7 @@ kr = function() {
786
787
  n || t.push(r);
787
788
  }
788
789
  return fe(this, he, []), t;
789
- }, Pt = function() {
790
+ }, Nt = function() {
790
791
  var u, o, f, l;
791
792
  fe(this, ft, !0);
792
793
  for (const h of y(this, Ce))
@@ -794,36 +795,36 @@ kr = function() {
794
795
  for (const h of y(this, ge))
795
796
  j(h, me), this.schedule(h);
796
797
  this.apply();
797
- for (var t = Dt = [], r = [], n = Kt = []; y(this, he).length > 0; ) {
798
- xn++ > 1e3 && ($(this, C, It).call(this), Vs());
799
- for (const h of $(this, C, kr).call(this))
798
+ for (var t = Lt = [], r = [], n = er = []; y(this, he).length > 0; ) {
799
+ Sn++ > 1e3 && ($(this, C, It).call(this), zs());
800
+ for (const h of $(this, C, Yr).call(this))
800
801
  try {
801
- $(this, C, jr).call(this, h, t, r);
802
+ $(this, C, Vr).call(this, h, t, r);
802
803
  } catch (d) {
803
- throw hi(h), $(this, C, $r).call(this) || this.discard(), d;
804
+ throw di(h), $(this, C, jr).call(this) || this.discard(), d;
804
805
  }
805
806
  }
806
807
  if (B = null, n.length > 0) {
807
- var i = dr.ensure();
808
+ var i = pr.ensure();
808
809
  for (const h of n)
809
810
  i.schedule(h);
810
811
  }
811
- if (Dt = null, Kt = null, $(this, C, $r).call(this)) {
812
+ if (Lt = null, er = null, $(this, C, jr).call(this)) {
812
813
  $(this, C, ot).call(this, r), $(this, C, ot).call(this, t);
813
- for (const [h, d] of y(this, He))
814
- fi(h, d);
814
+ for (const [h, d] of y(this, Me))
815
+ ci(h, d);
815
816
  n.length > 0 && /** @type {unknown} */
816
- $(u = B, C, Pt).call(u);
817
+ $(u = B, C, Nt).call(u);
817
818
  return;
818
819
  }
819
- const s = $(this, C, oi).call(this);
820
+ const s = $(this, C, li).call(this);
820
821
  if (s) {
821
- $(this, C, ot).call(this, r), $(this, C, ot).call(this, t), $(o = s, C, ui).call(o, this);
822
+ $(this, C, ot).call(this, r), $(this, C, ot).call(this, t), $(o = s, C, fi).call(o, this);
822
823
  return;
823
824
  }
824
825
  y(this, Ce).clear(), y(this, ge).clear();
825
826
  for (const h of y(this, ht)) h(this);
826
- y(this, ht).clear(), ke = this, Tn(r), Tn(t), ke = null, (f = y(this, pt)) == null || f.resolve();
827
+ y(this, ht).clear(), ke = this, wn(r), wn(t), ke = null, (f = y(this, pt)) == null || f.resolve();
827
828
  var a = (
828
829
  /** @type {Batch | null} */
829
830
  /** @type {unknown} */
@@ -836,7 +837,7 @@ kr = function() {
836
837
  fe(this, he, []);
837
838
  } else
838
839
  a = this;
839
- a !== null && (Ae.clear(), $(l = a, C, Pt).call(l));
840
+ a !== null && (Ae.clear(), $(l = a, C, Nt).call(l));
840
841
  }, /**
841
842
  * Traverse the effect tree, executing effects or stashing
842
843
  * them for later execution as appropriate
@@ -844,12 +845,12 @@ kr = function() {
844
845
  * @param {Effect[]} effects
845
846
  * @param {Effect[]} render_effects
846
847
  */
847
- jr = function(t, r, n) {
848
+ Vr = function(t, r, n) {
848
849
  t.f ^= z;
849
850
  for (var i = t.first; i !== null; ) {
850
- var s = i.f, a = (s & (Oe | De)) !== 0, u = a && (s & z) !== 0, o = u || (s & ve) !== 0 || y(this, He).has(i);
851
+ var s = i.f, a = (s & (Oe | De)) !== 0, u = a && (s & z) !== 0, o = u || (s & ve) !== 0 || y(this, Me).has(i);
851
852
  if (!o && i.fn !== null) {
852
- a ? i.f ^= z : s & vt ? r.push(i) : Vt(i) && (s & Ee && y(this, ge).add(i), yt(i));
853
+ a ? i.f ^= z : s & vt ? r.push(i) : Xt(i) && (s & Ee && y(this, ge).add(i), yt(i));
853
854
  var f = i.first;
854
855
  if (f !== null) {
855
856
  i = f;
@@ -865,7 +866,7 @@ jr = function(t, r, n) {
865
866
  i = i.parent;
866
867
  }
867
868
  }
868
- }, oi = function() {
869
+ }, li = function() {
869
870
  for (var t = y(this, Fe); t !== null; ) {
870
871
  if (!t.is_fork) {
871
872
  for (const [r, [, n]] of this.current)
@@ -878,7 +879,7 @@ jr = function(t, r, n) {
878
879
  }, /**
879
880
  * @param {Batch} batch
880
881
  */
881
- ui = function(t) {
882
+ fi = function(t) {
882
883
  var n;
883
884
  for (const [i, s] of t.current)
884
885
  !this.previous.has(i) && t.previous.has(i) && this.previous.set(i, t.previous.get(i)), this.current.set(i, s);
@@ -908,16 +909,16 @@ ui = function(t) {
908
909
  };
909
910
  for (const i of this.current.keys())
910
911
  r(i);
911
- this.oncommit(() => t.discard()), $(n = t, C, It).call(n), B = this, $(this, C, Pt).call(this);
912
+ this.oncommit(() => t.discard()), $(n = t, C, It).call(n), B = this, $(this, C, Nt).call(this);
912
913
  }, /**
913
914
  * @param {Effect[]} effects
914
915
  */
915
916
  ot = function(t) {
916
917
  for (var r = 0; r < t.length; r += 1)
917
- Rs(t[r], y(this, Ce), y(this, ge));
918
- }, Ys = function() {
918
+ Gs(t[r], y(this, Ce), y(this, ge));
919
+ }, Ws = function() {
919
920
  var h, d;
920
- for (let c = Pr; c !== null; c = y(c, Ke)) {
921
+ for (let c = Nr; c !== null; c = y(c, Ke)) {
921
922
  var t = c.id < this.id, r = [];
922
923
  for (const [p, [g, m]] of this.current) {
923
924
  if (c.current.has(p)) {
@@ -955,19 +956,19 @@ ot = function(t) {
955
956
  c.activate();
956
957
  var a = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Map();
957
958
  for (var o of r)
958
- li(o, s, a, u);
959
+ hi(o, s, a, u);
959
960
  u = /* @__PURE__ */ new Map();
960
961
  var f = [...c.current].filter(([p, g]) => {
961
962
  const m = this.current.get(p);
962
963
  return m ? m[0] !== g[0] || m[1] !== g[1] : !0;
963
964
  }).map(([p]) => p);
964
965
  if (f.length > 0)
965
- for (const p of y(this, kt))
966
- !(p.f & (le | ve | nr)) && un(p, f, u) && (p.f & (lt | Ee) ? (j(p, V), c.schedule(p)) : y(c, Ce).add(p));
966
+ for (const p of y(this, jt))
967
+ !(p.f & (le | ve | ir)) && fn(p, f, u) && (p.f & (lt | Ee) ? (j(p, V), c.schedule(p)) : y(c, Ce).add(p));
967
968
  if (y(c, he).length > 0 && !y(c, et)) {
968
969
  c.apply();
969
- for (var l of $(h = c, C, kr).call(h))
970
- $(d = c, C, jr).call(d, l, [], []);
970
+ for (var l of $(h = c, C, Yr).call(h))
971
+ $(d = c, C, Vr).call(d, l, [], []);
971
972
  }
972
973
  c.deactivate();
973
974
  }
@@ -976,16 +977,16 @@ ot = function(t) {
976
977
  }, It = function() {
977
978
  if (this.linked) {
978
979
  var t = y(this, Fe), r = y(this, Ke);
979
- t === null ? Pr = r : fe(t, Ke, r), r === null ? st = t : fe(r, Fe, t), this.linked = !1;
980
+ t === null ? Nr = r : fe(t, Ke, r), r === null ? st = t : fe(r, Fe, t), this.linked = !1;
980
981
  }
981
982
  };
982
- let nt = dr;
983
- function Gu(e) {
984
- var t = Ct, r = ke;
985
- ke = null, Ct = !0;
983
+ let nt = pr;
984
+ function Yu(e) {
985
+ var t = Dt, r = ke;
986
+ ke = null, Dt = !0;
986
987
  try {
987
988
  for (var n; ; ) {
988
- if (Ds(), B === null)
989
+ if (Us(), B === null)
989
990
  return (
990
991
  /** @type {T} */
991
992
  n
@@ -993,23 +994,23 @@ function Gu(e) {
993
994
  B.flush();
994
995
  }
995
996
  } finally {
996
- Ct = t, ke = r;
997
+ Dt = t, ke = r;
997
998
  }
998
999
  }
999
- function Vs() {
1000
+ function zs() {
1000
1001
  try {
1001
- As();
1002
+ Ns();
1002
1003
  } catch (e) {
1003
- Ut(e, Gr);
1004
+ Ft(e, kr);
1004
1005
  }
1005
1006
  }
1006
1007
  let ye = null;
1007
- function Tn(e) {
1008
+ function wn(e) {
1008
1009
  var t = e.length;
1009
1010
  if (t !== 0) {
1010
1011
  for (var r = 0; r < t; ) {
1011
1012
  var n = e[r++];
1012
- if (!(n.f & (le | ve)) && Vt(n) && (ye = /* @__PURE__ */ new Set(), yt(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null && yi(n), (ye == null ? void 0 : ye.size) > 0)) {
1013
+ if (!(n.f & (le | ve)) && Xt(n) && (ye = /* @__PURE__ */ new Set(), yt(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null && Ei(n), (ye == null ? void 0 : ye.size) > 0)) {
1013
1014
  Ae.clear();
1014
1015
  for (const i of ye) {
1015
1016
  if (i.f & (le | ve)) continue;
@@ -1028,30 +1029,30 @@ function Tn(e) {
1028
1029
  ye = null;
1029
1030
  }
1030
1031
  }
1031
- function li(e, t, r, n) {
1032
+ function hi(e, t, r, n) {
1032
1033
  if (!r.has(e) && (r.add(e), e.reactions !== null))
1033
1034
  for (const i of e.reactions) {
1034
1035
  const s = i.f;
1035
- s & se ? li(
1036
+ s & se ? hi(
1036
1037
  /** @type {Derived} */
1037
1038
  i,
1038
1039
  t,
1039
1040
  r,
1040
1041
  n
1041
- ) : s & (lt | Ee) && !(s & V) && un(i, t, n) && (j(i, V), ln(
1042
+ ) : s & (lt | Ee) && !(s & V) && fn(i, t, n) && (j(i, V), hn(
1042
1043
  /** @type {Effect} */
1043
1044
  i
1044
1045
  ));
1045
1046
  }
1046
1047
  }
1047
- function un(e, t, r) {
1048
+ function fn(e, t, r) {
1048
1049
  const n = r.get(e);
1049
1050
  if (n !== void 0) return n;
1050
1051
  if (e.deps !== null)
1051
1052
  for (const i of e.deps) {
1052
- if (Rt.call(t, i))
1053
+ if (Ut.call(t, i))
1053
1054
  return !0;
1054
- if (i.f & se && un(
1055
+ if (i.f & se && fn(
1055
1056
  /** @type {Derived} */
1056
1057
  i,
1057
1058
  t,
@@ -1065,31 +1066,31 @@ function un(e, t, r) {
1065
1066
  }
1066
1067
  return r.set(e, !1), !1;
1067
1068
  }
1068
- function ln(e) {
1069
+ function hn(e) {
1069
1070
  B.schedule(e);
1070
1071
  }
1071
- function fi(e, t) {
1072
+ function ci(e, t) {
1072
1073
  if (!(e.f & Oe && e.f & z)) {
1073
1074
  e.f & V ? t.d.push(e) : e.f & me && t.m.push(e), j(e, z);
1074
1075
  for (var r = e.first; r !== null; )
1075
- fi(r, t), r = r.next;
1076
+ ci(r, t), r = r.next;
1076
1077
  }
1077
1078
  }
1078
- function hi(e) {
1079
+ function di(e) {
1079
1080
  j(e, z);
1080
1081
  for (var t = e.first; t !== null; )
1081
- hi(t), t = t.next;
1082
+ di(t), t = t.next;
1082
1083
  }
1083
- let or = /* @__PURE__ */ new Set();
1084
+ let ur = /* @__PURE__ */ new Set();
1084
1085
  const Ae = /* @__PURE__ */ new Map();
1085
- let ci = !1;
1086
- function _r(e, t) {
1086
+ let pi = !1;
1087
+ function br(e, t) {
1087
1088
  var r = {
1088
1089
  f: 0,
1089
1090
  // TODO ideally we could skip this altogether, but it causes type errors
1090
1091
  v: e,
1091
1092
  reactions: null,
1092
- equals: Kn,
1093
+ equals: ti,
1093
1094
  rv: 0,
1094
1095
  wv: 0
1095
1096
  };
@@ -1097,23 +1098,23 @@ function _r(e, t) {
1097
1098
  }
1098
1099
  // @__NO_SIDE_EFFECTS__
1099
1100
  function Ue(e, t) {
1100
- const r = _r(e);
1101
- return xi(r), r;
1101
+ const r = br(e);
1102
+ return Si(r), r;
1102
1103
  }
1103
1104
  // @__NO_SIDE_EFFECTS__
1104
- function $u(e, t = !1, r = !0) {
1105
- const n = _r(e);
1106
- return t || (n.equals = ti), n;
1105
+ function Vu(e, t = !1, r = !0) {
1106
+ const n = br(e);
1107
+ return t || (n.equals = ni), n;
1107
1108
  }
1108
1109
  function Ze(e, t, r = !1) {
1109
- I !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
1110
+ N !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
1110
1111
  // to ensure we error if state is set inside an inspect effect
1111
- (!xe || I.f & nr) && ri() && I.f & (se | Ee | lt | nr) && (be === null || !be.has(e)) && Is();
1112
- let n = r ? Nt(t) : t;
1113
- return Vr(e, n, Kt);
1112
+ (!xe || N.f & ir) && ii() && N.f & (se | Ee | lt | ir) && (be === null || !be.has(e)) && Cs();
1113
+ let n = r ? Bt(t) : t;
1114
+ return Wr(e, n, er);
1114
1115
  }
1115
- var qe = null, Yr = 0;
1116
- function Vr(e, t, r = null) {
1116
+ var qe = null, Xr = 0;
1117
+ function Wr(e, t, r = null) {
1117
1118
  if (!e.equals(t)) {
1118
1119
  Ve ? Ae.set(e, t) : Ae.has(e) || Ae.set(e, e.v);
1119
1120
  var n = nt.ensure();
@@ -1122,41 +1123,41 @@ function Vr(e, t, r = null) {
1122
1123
  /** @type {Derived} */
1123
1124
  e
1124
1125
  );
1125
- e.f & V && on(i), re === null && sn(i);
1126
+ e.f & V && ln(i), re === null && on(i);
1126
1127
  }
1127
- e.wv = Si(), qe = null, Yr = 0, di(e, V, r), qe = null, U !== null && U.f & z && !(U.f & (Oe | De)) && (pe === null ? na([e]) : pe.push(e)), !n.is_fork && or.size > 0 && !ci && Xs();
1128
+ e.wv = Mi(), qe = null, Xr = 0, mi(e, V, r), qe = null, U !== null && U.f & z && !(U.f & (Oe | De)) && (pe === null ? aa([e]) : pe.push(e)), !n.is_fork && ur.size > 0 && !pi && Zs();
1128
1129
  }
1129
1130
  return t;
1130
1131
  }
1131
- function Xs() {
1132
- ci = !1;
1133
- for (const e of or) {
1132
+ function Zs() {
1133
+ pi = !1;
1134
+ for (const e of ur) {
1134
1135
  e.f & z && j(e, me);
1135
1136
  let t;
1136
1137
  try {
1137
- t = Vt(e);
1138
+ t = Xt(e);
1138
1139
  } catch (r) {
1139
1140
  t = !0;
1140
1141
  }
1141
1142
  t && yt(e);
1142
1143
  }
1143
- or.clear();
1144
+ ur.clear();
1144
1145
  }
1145
- function Lt(e) {
1146
+ function Rt(e) {
1146
1147
  Ze(e, e.v + 1);
1147
1148
  }
1148
- function di(e, t, r) {
1149
+ function mi(e, t, r) {
1149
1150
  var n = e.reactions;
1150
1151
  if (n !== null) {
1151
1152
  var i = n.length;
1152
- if (Yr += i, Yr > 1e5 && qe === null && (qe = /* @__PURE__ */ new Set()), qe !== null) {
1153
+ if (Xr += i, Xr > 1e5 && qe === null && (qe = /* @__PURE__ */ new Set()), qe !== null) {
1153
1154
  if (qe.has(e)) return;
1154
1155
  qe.add(e);
1155
1156
  }
1156
1157
  for (var s = 0; s < i; s++) {
1157
1158
  var a = n[s], u = a.f, o = (u & V) === 0;
1158
- if (o && j(a, t), u & nr)
1159
- or.add(
1159
+ if (o && j(a, t), u & ir)
1160
+ ur.add(
1160
1161
  /** @type {Effect} */
1161
1162
  a
1162
1163
  );
@@ -1165,30 +1166,30 @@ function di(e, t, r) {
1165
1166
  /** @type {Derived} */
1166
1167
  a
1167
1168
  );
1168
- re == null || re.delete(f), di(f, me, r);
1169
+ re == null || re.delete(f), mi(f, me, r);
1169
1170
  } else if (o) {
1170
1171
  var l = (
1171
1172
  /** @type {Effect} */
1172
1173
  a
1173
1174
  );
1174
- u & Ee && ye !== null && ye.add(l), r !== null ? r.push(l) : ln(l);
1175
+ u & Ee && ye !== null && ye.add(l), r !== null ? r.push(l) : hn(l);
1175
1176
  }
1176
1177
  }
1177
1178
  }
1178
1179
  }
1179
- function Nt(e) {
1180
- if (typeof e != "object" || e === null || Or in e || Qn in e)
1180
+ function Bt(e) {
1181
+ if (typeof e != "object" || e === null || Pr in e || Kn in e)
1181
1182
  return e;
1182
- const t = Xn(e);
1183
- if (t !== Vn && t !== ms)
1183
+ const t = zn(e);
1184
+ if (t !== Wn && t !== bs)
1184
1185
  return e;
1185
- var r = /* @__PURE__ */ new Map(), n = Yn(e), i = /* @__PURE__ */ Ue(0), s = rt, a = (u) => {
1186
+ var r = /* @__PURE__ */ new Map(), n = Xn(e), i = /* @__PURE__ */ Ue(0), s = rt, a = (u) => {
1186
1187
  if (rt === s)
1187
1188
  return u();
1188
- var o = I, f = rt;
1189
- Xe(null), Hn(s);
1189
+ var o = N, f = rt;
1190
+ Xe(null), An(s);
1190
1191
  var l = u();
1191
- return Xe(o), Hn(f), l;
1192
+ return Xe(o), An(f), l;
1192
1193
  };
1193
1194
  return n && r.set("length", /* @__PURE__ */ Ue(
1194
1195
  /** @type {any[]} */
@@ -1198,7 +1199,7 @@ function Nt(e) {
1198
1199
  e,
1199
1200
  {
1200
1201
  defineProperty(u, o, f) {
1201
- (!("value" in f) || f.configurable === !1 || f.enumerable === !1 || f.writable === !1) && Os();
1202
+ (!("value" in f) || f.configurable === !1 || f.enumerable === !1 || f.writable === !1) && Is();
1202
1203
  var l = r.get(o);
1203
1204
  return l === void 0 ? a(() => {
1204
1205
  var h = /* @__PURE__ */ Ue(f.value);
@@ -1210,19 +1211,19 @@ function Nt(e) {
1210
1211
  if (f === void 0) {
1211
1212
  if (o in u) {
1212
1213
  const l = a(() => /* @__PURE__ */ Ue(W));
1213
- r.set(o, l), Lt(i);
1214
+ r.set(o, l), Rt(i);
1214
1215
  }
1215
1216
  } else
1216
- Ze(f, W), Lt(i);
1217
+ Ze(f, W), Rt(i);
1217
1218
  return !0;
1218
1219
  },
1219
1220
  get(u, o, f) {
1220
1221
  var c;
1221
- if (o === Or)
1222
+ if (o === Pr)
1222
1223
  return e;
1223
1224
  var l = r.get(o), h = o in u;
1224
- if (l === void 0 && (!h || (c = Bt(u, o)) != null && c.writable) && (l = a(() => {
1225
- var p = Nt(h ? u[o] : W), g = /* @__PURE__ */ Ue(p);
1225
+ if (l === void 0 && (!h || (c = Ct(u, o)) != null && c.writable) && (l = a(() => {
1226
+ var p = Bt(h ? u[o] : W), g = /* @__PURE__ */ Ue(p);
1226
1227
  return g;
1227
1228
  }), r.set(o, l)), l !== void 0) {
1228
1229
  var d = ut(l);
@@ -1252,12 +1253,12 @@ function Nt(e) {
1252
1253
  },
1253
1254
  has(u, o) {
1254
1255
  var d;
1255
- if (o === Or)
1256
+ if (o === Pr)
1256
1257
  return !0;
1257
1258
  var f = r.get(o), l = f !== void 0 && f.v !== W || Reflect.has(u, o);
1258
- if (f !== void 0 || U !== null && (!l || (d = Bt(u, o)) != null && d.writable)) {
1259
+ if (f !== void 0 || U !== null && (!l || (d = Ct(u, o)) != null && d.writable)) {
1259
1260
  f === void 0 && (f = a(() => {
1260
- var c = l ? Nt(u[o]) : W, p = /* @__PURE__ */ Ue(c);
1261
+ var c = l ? Bt(u[o]) : W, p = /* @__PURE__ */ Ue(c);
1261
1262
  return p;
1262
1263
  }), r.set(o, f));
1263
1264
  var h = ut(f);
@@ -1267,7 +1268,7 @@ function Nt(e) {
1267
1268
  return l;
1268
1269
  },
1269
1270
  set(u, o, f, l) {
1270
- var H;
1271
+ var M;
1271
1272
  var h = r.get(o), d = o in u;
1272
1273
  if (n && o === "length")
1273
1274
  for (var c = f; c < /** @type {Source<number>} */
@@ -1276,10 +1277,10 @@ function Nt(e) {
1276
1277
  p !== void 0 ? Ze(p, W) : c in u && (p = a(() => /* @__PURE__ */ Ue(W)), r.set(c + "", p));
1277
1278
  }
1278
1279
  if (h === void 0)
1279
- (!d || (H = Bt(u, o)) != null && H.writable) && (h = a(() => /* @__PURE__ */ Ue(void 0)), Ze(h, Nt(f)), r.set(o, h));
1280
+ (!d || (M = Ct(u, o)) != null && M.writable) && (h = a(() => /* @__PURE__ */ Ue(void 0)), Ze(h, Bt(f)), r.set(o, h));
1280
1281
  else {
1281
1282
  d = h.v !== W;
1282
- var g = a(() => Nt(f));
1283
+ var g = a(() => Bt(f));
1283
1284
  Ze(h, g);
1284
1285
  }
1285
1286
  var m = Reflect.getOwnPropertyDescriptor(u, o);
@@ -1291,7 +1292,7 @@ function Nt(e) {
1291
1292
  ), O = Number(o);
1292
1293
  Number.isInteger(O) && O >= w.v && Ze(w, O + 1);
1293
1294
  }
1294
- Lt(i);
1295
+ Rt(i);
1295
1296
  }
1296
1297
  return !0;
1297
1298
  },
@@ -1306,75 +1307,75 @@ function Nt(e) {
1306
1307
  return o;
1307
1308
  },
1308
1309
  setPrototypeOf() {
1309
- Ps();
1310
+ Bs();
1310
1311
  }
1311
1312
  }
1312
1313
  );
1313
1314
  }
1314
- var Sn, Ws, pi, mi;
1315
- function ku() {
1316
- if (Sn === void 0) {
1317
- Sn = window, Ws = /Firefox/.test(navigator.userAgent);
1315
+ var Mn, qs, vi, _i;
1316
+ function Xu() {
1317
+ if (Mn === void 0) {
1318
+ Mn = window, qs = /Firefox/.test(navigator.userAgent);
1318
1319
  var e = Element.prototype, t = Node.prototype, r = Text.prototype;
1319
- pi = Bt(t, "firstChild").get, mi = Bt(t, "nextSibling").get, En(e) && (e[ys] = void 0, e[bs] = null, e[gs] = void 0, e.__e = void 0), En(r) && (r[Es] = void 0);
1320
+ vi = Ct(t, "firstChild").get, _i = Ct(t, "nextSibling").get, Tn(e) && (e[xs] = void 0, e[Es] = null, e[Ts] = void 0, e.__e = void 0), Tn(r) && (r[Ss] = void 0);
1320
1321
  }
1321
1322
  }
1322
- function ur(e = "") {
1323
+ function lr(e = "") {
1323
1324
  return document.createTextNode(e);
1324
1325
  }
1325
1326
  // @__NO_SIDE_EFFECTS__
1326
- function lr(e) {
1327
+ function fr(e) {
1327
1328
  return (
1328
1329
  /** @type {TemplateNode | null} */
1329
- pi.call(e)
1330
+ vi.call(e)
1330
1331
  );
1331
1332
  }
1332
1333
  // @__NO_SIDE_EFFECTS__
1333
1334
  function We(e) {
1334
1335
  return (
1335
1336
  /** @type {TemplateNode | null} */
1336
- mi.call(e)
1337
+ _i.call(e)
1337
1338
  );
1338
1339
  }
1339
- function zs(e, t) {
1340
+ function Qs(e, t) {
1340
1341
  if (!je)
1341
- return /* @__PURE__ */ lr(e);
1342
- var r = /* @__PURE__ */ lr(Q);
1342
+ return /* @__PURE__ */ fr(e);
1343
+ var r = /* @__PURE__ */ fr(Q);
1343
1344
  if (r === null)
1344
- r = Q.appendChild(ur());
1345
- else if (t && r.nodeType !== mr) {
1346
- var n = ur();
1345
+ r = Q.appendChild(lr());
1346
+ else if (t && r.nodeType !== vr) {
1347
+ var n = lr();
1347
1348
  return r == null || r.before(n), _t(n), n;
1348
1349
  }
1349
- return t && fn(
1350
+ return t && cn(
1350
1351
  /** @type {Text} */
1351
1352
  r
1352
1353
  ), _t(r), r;
1353
1354
  }
1354
- function ju(e, t = !1) {
1355
+ function Wu(e, t = !1) {
1355
1356
  if (!je) {
1356
- var r = /* @__PURE__ */ lr(e);
1357
+ var r = /* @__PURE__ */ fr(e);
1357
1358
  return r instanceof Comment && r.data === "" ? /* @__PURE__ */ We(r) : r;
1358
1359
  }
1359
1360
  if (t) {
1360
- if ((Q == null ? void 0 : Q.nodeType) !== mr) {
1361
- var n = ur();
1361
+ if ((Q == null ? void 0 : Q.nodeType) !== vr) {
1362
+ var n = lr();
1362
1363
  return Q == null || Q.before(n), _t(n), n;
1363
1364
  }
1364
- fn(
1365
+ cn(
1365
1366
  /** @type {Text} */
1366
1367
  Q
1367
1368
  );
1368
1369
  }
1369
1370
  return Q;
1370
1371
  }
1371
- function Yu(e, t = !1) {
1372
+ function zu(e, t = !1) {
1372
1373
  if (!je)
1373
- return /* @__PURE__ */ lr(e);
1374
- var r = zs(e, t);
1375
- return Ts(e), r;
1374
+ return /* @__PURE__ */ fr(e);
1375
+ var r = Qs(e, t);
1376
+ return Ms(e), r;
1376
1377
  }
1377
- function Vu(e, t = 1, r = !1) {
1378
+ function Zu(e, t = 1, r = !1) {
1378
1379
  let n = je ? Q : e;
1379
1380
  for (var i; t--; )
1380
1381
  i = n, n = /** @type {TemplateNode} */
@@ -1382,25 +1383,25 @@ function Vu(e, t = 1, r = !1) {
1382
1383
  if (!je)
1383
1384
  return n;
1384
1385
  if (r) {
1385
- if ((n == null ? void 0 : n.nodeType) !== mr) {
1386
- var s = ur();
1386
+ if ((n == null ? void 0 : n.nodeType) !== vr) {
1387
+ var s = lr();
1387
1388
  return n === null ? i == null || i.after(s) : n.before(s), _t(s), s;
1388
1389
  }
1389
- fn(
1390
+ cn(
1390
1391
  /** @type {Text} */
1391
1392
  n
1392
1393
  );
1393
1394
  }
1394
1395
  return _t(n), n;
1395
1396
  }
1396
- function Xu(e) {
1397
+ function qu(e) {
1397
1398
  e.textContent = "";
1398
1399
  }
1399
- function Wu() {
1400
+ function Qu() {
1400
1401
  return !1;
1401
1402
  }
1402
- function zu(e, t, r) {
1403
- return t == null || t === cs ? (
1403
+ function Ju(e, t, r) {
1404
+ return t == null || t === ms ? (
1404
1405
  /** @type {T extends keyof HTMLElementTagNameMap ? HTMLElementTagNameMap[T] : Element} */
1405
1406
  r ? document.createElement(e, { is: r }) : document.createElement(e)
1406
1407
  ) : (
@@ -1408,31 +1409,31 @@ function zu(e, t, r) {
1408
1409
  r ? document.createElementNS(t, e, { is: r }) : document.createElementNS(t, e)
1409
1410
  );
1410
1411
  }
1411
- function fn(e) {
1412
+ function cn(e) {
1412
1413
  if (
1413
1414
  /** @type {string} */
1414
1415
  e.nodeValue.length < 65536
1415
1416
  )
1416
1417
  return;
1417
1418
  let t = e.nextSibling;
1418
- for (; t !== null && t.nodeType === mr; )
1419
+ for (; t !== null && t.nodeType === vr; )
1419
1420
  t.remove(), e.nodeValue += /** @type {string} */
1420
1421
  t.nodeValue, t = e.nextSibling;
1421
1422
  }
1422
- function Zs(e) {
1423
+ function Js(e) {
1423
1424
  var t = U;
1424
1425
  if (t === null)
1425
- return I.f |= $e, e;
1426
+ return N.f |= $e, e;
1426
1427
  if (!(t.f & St) && !(t.f & vt))
1427
1428
  throw e;
1428
- Ut(e, t);
1429
+ Ft(e, t);
1429
1430
  }
1430
- function Ut(e, t) {
1431
- if (e === pr)
1431
+ function Ft(e, t) {
1432
+ if (e === mr)
1432
1433
  throw e;
1433
1434
  if (!(t !== null && t.f & le)) {
1434
1435
  for (; t !== null; ) {
1435
- if (t.f & vs && !(t.f & (le | Ur))) {
1436
+ if (t.f & ys && !(t.f & (le | Gr))) {
1436
1437
  if (!(t.f & St))
1437
1438
  throw e;
1438
1439
  try {
@@ -1447,10 +1448,10 @@ function Ut(e, t) {
1447
1448
  throw e;
1448
1449
  }
1449
1450
  }
1450
- function vi(e) {
1451
- U === null && (I === null && Ms(), Hs()), Ve && ws();
1451
+ function bi(e) {
1452
+ U === null && (N === null && Ps(), Os()), Ve && As();
1452
1453
  }
1453
- function qs(e, t) {
1454
+ function Ks(e, t) {
1454
1455
  var r = t.last;
1455
1456
  r === null ? t.last = t.first = e : (r.next = e, e.prev = r, t.last = e);
1456
1457
  }
@@ -1477,7 +1478,7 @@ function Se(e, t) {
1477
1478
  B == null || B.register_created_effect(n);
1478
1479
  var i = n;
1479
1480
  if (e & vt)
1480
- Dt !== null ? Dt.push(n) : nt.ensure().schedule(n);
1481
+ Lt !== null ? Lt.push(n) : nt.ensure().schedule(n);
1481
1482
  else if (t !== null) {
1482
1483
  try {
1483
1484
  yt(n);
@@ -1485,31 +1486,31 @@ function Se(e, t) {
1485
1486
  throw Ye(n), u;
1486
1487
  }
1487
1488
  i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && // either `null`, or a singular child
1488
- !(i.f & wt) && (i = i.first, e & Ee && e & rr && i !== null && (i.f |= rr));
1489
+ !(i.f & wt) && (i = i.first, e & Ee && e & nr && i !== null && (i.f |= nr));
1489
1490
  }
1490
- if (i !== null && (i.parent = r, r !== null && qs(i, r), I !== null && I.f & se && !(e & De))) {
1491
+ if (i !== null && (i.parent = r, r !== null && Ks(i, r), N !== null && N.f & se && !(e & De))) {
1491
1492
  var s = (
1492
1493
  /** @type {Derived} */
1493
- I
1494
+ N
1494
1495
  );
1495
1496
  ((a = s.effects) != null ? a : s.effects = []).push(i);
1496
1497
  }
1497
1498
  return n;
1498
1499
  }
1499
- function hn() {
1500
- return I !== null && !xe;
1500
+ function dn() {
1501
+ return N !== null && !xe;
1501
1502
  }
1502
- function Qs(e) {
1503
- const t = Se(jt, null);
1503
+ function ea(e) {
1504
+ const t = Se(Yt, null);
1504
1505
  return j(t, z), t.teardown = e, t;
1505
1506
  }
1506
- function Zu(e) {
1507
+ function Ku(e) {
1507
1508
  var i;
1508
- vi();
1509
+ bi();
1509
1510
  var t = (
1510
1511
  /** @type {Effect} */
1511
1512
  U.f
1512
- ), r = !I && (t & Oe) !== 0 && _e !== null && !_e.i;
1513
+ ), r = !N && (t & Oe) !== 0 && _e !== null && !_e.i;
1513
1514
  if (r) {
1514
1515
  var n = (
1515
1516
  /** @type {ComponentContext} */
@@ -1517,79 +1518,79 @@ function Zu(e) {
1517
1518
  );
1518
1519
  ((i = n.e) != null ? i : n.e = []).push(e);
1519
1520
  } else
1520
- return _i(e);
1521
+ return yi(e);
1521
1522
  }
1522
- function _i(e) {
1523
- return Se(vt | qn, e);
1523
+ function yi(e) {
1524
+ return Se(vt | Jn, e);
1524
1525
  }
1525
- function qu(e) {
1526
- return vi(), Se(jt | qn, e);
1526
+ function el(e) {
1527
+ return bi(), Se(Yt | Jn, e);
1527
1528
  }
1528
- function Qu(e) {
1529
+ function tl(e) {
1529
1530
  nt.ensure();
1530
1531
  const t = Se(De | wt, e);
1531
1532
  return () => {
1532
1533
  Ye(t);
1533
1534
  };
1534
1535
  }
1535
- function Ju(e) {
1536
+ function rl(e) {
1536
1537
  nt.ensure();
1537
1538
  const t = Se(De | wt, e);
1538
1539
  return (r = {}) => new Promise((n) => {
1539
- r.outro ? ra(t, () => {
1540
+ r.outro ? sa(t, () => {
1540
1541
  Ye(t), n(void 0);
1541
1542
  }) : (Ye(t), n(void 0));
1542
1543
  });
1543
1544
  }
1544
- function Ku(e) {
1545
+ function nl(e) {
1545
1546
  return Se(vt, e);
1546
1547
  }
1547
- function Js(e) {
1548
+ function ta(e) {
1548
1549
  return Se(lt | wt, e);
1549
1550
  }
1550
- function Ks(e, t = 0) {
1551
- return Se(jt | t, e);
1551
+ function ra(e, t = 0) {
1552
+ return Se(Yt | t, e);
1552
1553
  }
1553
- function el(e, t = [], r = [], n = []) {
1554
- Us(n, t, r, (i) => {
1555
- Se(jt, () => {
1554
+ function il(e, t = [], r = [], n = []) {
1555
+ $s(n, t, r, (i) => {
1556
+ Se(Yt, () => {
1556
1557
  e(...i.map(ut));
1557
1558
  });
1558
1559
  });
1559
1560
  }
1560
- function tl(e, t = 0) {
1561
+ function sl(e, t = 0) {
1561
1562
  var r = Se(Ee | t, e);
1562
1563
  return r;
1563
1564
  }
1564
- function rl(e) {
1565
+ function al(e) {
1565
1566
  return Se(Oe | wt, e);
1566
1567
  }
1567
- function bi(e) {
1568
+ function gi(e) {
1568
1569
  var t = e.teardown;
1569
1570
  if (t !== null) {
1570
- const r = Ve, n = I;
1571
- wn(!0), Xe(null);
1571
+ const r = Ve, n = N;
1572
+ Hn(!0), Xe(null);
1572
1573
  try {
1573
1574
  t.call(null);
1574
1575
  } catch (i) {
1575
- Ut(i, e.parent);
1576
+ Ft(i, e.parent);
1576
1577
  } finally {
1577
- wn(r), Xe(n);
1578
+ Hn(r), Xe(n);
1578
1579
  }
1579
1580
  }
1580
1581
  }
1581
- function cn(e, t = !1) {
1582
+ function pn(e, t = !1) {
1582
1583
  var r = e.first;
1583
1584
  for (e.first = e.last = null; r !== null; ) {
1584
1585
  const i = r.ac;
1585
- i !== null && vr(() => {
1586
- i.abort(Yt);
1586
+ i !== null && _r(() => {
1587
+ i.abort(Vt);
1587
1588
  });
1588
1589
  var n = r.next;
1589
1590
  r.f & De ? r.parent = null : Ye(r, t), r = n;
1590
1591
  }
1591
1592
  }
1592
- function ea(e) {
1593
+ function na(e) {
1593
1594
  for (var t = e.first; t !== null; ) {
1594
1595
  var r = t.next;
1595
1596
  t.f & Oe || Ye(t), t = r;
@@ -1597,32 +1598,32 @@ function ea(e) {
1597
1598
  }
1598
1599
  function Ye(e, t = !0) {
1599
1600
  var r = !1;
1600
- (t || e.f & _s) && e.nodes !== null && e.nodes.end !== null && (ta(
1601
+ (t || e.f & gs) && e.nodes !== null && e.nodes.end !== null && (ia(
1601
1602
  e.nodes.start,
1602
1603
  /** @type {TemplateNode} */
1603
1604
  e.nodes.end
1604
- ), r = !0), e.f |= Ur, cn(e, t && !r), Ft(e, 0);
1605
+ ), r = !0), e.f |= Gr, pn(e, t && !r), Gt(e, 0);
1605
1606
  var n = e.nodes && e.nodes.t;
1606
1607
  if (n !== null)
1607
1608
  for (const s of n)
1608
1609
  s.stop();
1609
- bi(e), e.f ^= Ur, e.f |= le;
1610
+ gi(e), e.f ^= Gr, e.f |= le;
1610
1611
  var i = e.parent;
1611
- i !== null && i.first !== null && yi(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
1612
+ i !== null && i.first !== null && Ei(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
1612
1613
  }
1613
- function ta(e, t) {
1614
+ function ia(e, t) {
1614
1615
  for (; e !== null; ) {
1615
1616
  var r = e === t ? null : /* @__PURE__ */ We(e);
1616
1617
  e.remove(), e = r;
1617
1618
  }
1618
1619
  }
1619
- function yi(e) {
1620
+ function Ei(e) {
1620
1621
  var t = e.parent, r = e.prev, n = e.next;
1621
1622
  r !== null && (r.next = n), n !== null && (n.prev = r), t !== null && (t.first === e && (t.first = n), t.last === e && (t.last = r));
1622
1623
  }
1623
- function ra(e, t, r = !0) {
1624
+ function sa(e, t, r = !0) {
1624
1625
  var n = [];
1625
- e.f |= rn, gi(e, n, !0);
1626
+ e.f |= sn, xi(e, n, !0);
1626
1627
  var i = () => {
1627
1628
  r && Ye(e), t && t();
1628
1629
  }, s = n.length;
@@ -1633,7 +1634,7 @@ function ra(e, t, r = !0) {
1633
1634
  } else
1634
1635
  i();
1635
1636
  }
1636
- function gi(e, t, r) {
1637
+ function xi(e, t, r) {
1637
1638
  if (!(e.f & ve)) {
1638
1639
  e.f ^= ve;
1639
1640
  var n = e.nodes && e.nodes.t;
@@ -1643,25 +1644,25 @@ function gi(e, t, r) {
1643
1644
  for (var i = e.first; i !== null; ) {
1644
1645
  var s = i.next;
1645
1646
  if (!(i.f & De)) {
1646
- var a = (i.f & rr) !== 0 || // If this is a branch effect without a block effect parent,
1647
+ var a = (i.f & nr) !== 0 || // If this is a branch effect without a block effect parent,
1647
1648
  // it means the parent block effect was pruned. In that case,
1648
1649
  // transparency information was transferred to the branch effect.
1649
1650
  (i.f & Oe) !== 0 && (e.f & Ee) !== 0;
1650
- gi(i, t, a ? r : !1);
1651
+ xi(i, t, a ? r : !1);
1651
1652
  }
1652
1653
  i = s;
1653
1654
  }
1654
1655
  }
1655
1656
  }
1656
- function nl(e) {
1657
- e.f &= ~rn, Ei(e, !0);
1657
+ function ol(e) {
1658
+ e.f &= ~sn, Ti(e, !0);
1658
1659
  }
1659
- function Ei(e, t) {
1660
- if (!(e.f & rn) && e.f & ve) {
1660
+ function Ti(e, t) {
1661
+ if (!(e.f & sn) && e.f & ve) {
1661
1662
  e.f ^= ve, e.f & z || (j(e, V), nt.ensure().schedule(e));
1662
1663
  for (var r = e.first; r !== null; ) {
1663
- var n = r.next, i = (r.f & rr) !== 0 || (r.f & Oe) !== 0;
1664
- Ei(r, i ? t : !1), r = n;
1664
+ var n = r.next, i = (r.f & nr) !== 0 || (r.f & Oe) !== 0;
1665
+ Ti(r, i ? t : !1), r = n;
1665
1666
  }
1666
1667
  var s = e.nodes && e.nodes.t;
1667
1668
  if (s !== null)
@@ -1669,7 +1670,7 @@ function Ei(e, t) {
1669
1670
  (a.is_global || t) && a.in();
1670
1671
  }
1671
1672
  }
1672
- function il(e, t) {
1673
+ function ul(e, t) {
1673
1674
  if (e.nodes)
1674
1675
  for (var r = e.nodes.start, n = e.nodes.end; r !== null; ) {
1675
1676
  var i = r === n ? null : /* @__PURE__ */ We(r);
@@ -1677,33 +1678,33 @@ function il(e, t) {
1677
1678
  }
1678
1679
  }
1679
1680
  let Ve = !1;
1680
- function wn(e) {
1681
+ function Hn(e) {
1681
1682
  Ve = e;
1682
1683
  }
1683
- let I = null, xe = !1;
1684
+ let N = null, xe = !1;
1684
1685
  function Xe(e) {
1685
- I = e;
1686
+ N = e;
1686
1687
  }
1687
1688
  let U = null;
1688
1689
  function bt(e) {
1689
1690
  U = e;
1690
1691
  }
1691
1692
  let be = null;
1692
- function xi(e) {
1693
- I !== null && (I.f & ir || I.f & se) && (be != null ? be : be = /* @__PURE__ */ new Set()).add(e);
1693
+ function Si(e) {
1694
+ N !== null && (N.f & sr || N.f & se) && (be != null ? be : be = /* @__PURE__ */ new Set()).add(e);
1694
1695
  }
1695
1696
  let ue = null, ce = 0, pe = null;
1696
- function na(e) {
1697
+ function aa(e) {
1697
1698
  pe = e;
1698
1699
  }
1699
- let Ti = 1, Je = 0, rt = Je;
1700
- function Hn(e) {
1700
+ let wi = 1, Je = 0, rt = Je;
1701
+ function An(e) {
1701
1702
  rt = e;
1702
1703
  }
1703
- function Si() {
1704
- return ++Ti;
1704
+ function Mi() {
1705
+ return ++wi;
1705
1706
  }
1706
- function Vt(e) {
1707
+ function Xt(e) {
1707
1708
  var t = e.f;
1708
1709
  if (t & V)
1709
1710
  return !0;
@@ -1713,10 +1714,10 @@ function Vt(e) {
1713
1714
  e.deps
1714
1715
  ), n = r.length, i = 0; i < n; i++) {
1715
1716
  var s = r[i];
1716
- if (Vt(
1717
+ if (Xt(
1717
1718
  /** @type {Derived} */
1718
1719
  s
1719
- ) && si(
1720
+ ) && oi(
1720
1721
  /** @type {Derived} */
1721
1722
  s
1722
1723
  ), s.wv > e.wv)
@@ -1728,40 +1729,40 @@ function Vt(e) {
1728
1729
  }
1729
1730
  return !1;
1730
1731
  }
1731
- function wi(e, t, r = !0) {
1732
+ function Hi(e, t, r = !0) {
1732
1733
  var n = e.reactions;
1733
1734
  if (n !== null && !(be !== null && be.has(e)))
1734
1735
  for (var i = 0; i < n.length; i++) {
1735
1736
  var s = n[i];
1736
- s.f & se ? wi(
1737
+ s.f & se ? Hi(
1737
1738
  /** @type {Derived} */
1738
1739
  s,
1739
1740
  t,
1740
1741
  !1
1741
- ) : t === s && (r ? j(s, V) : s.f & z && j(s, me), ln(
1742
+ ) : t === s && (r ? j(s, V) : s.f & z && j(s, me), hn(
1742
1743
  /** @type {Effect} */
1743
1744
  s
1744
1745
  ));
1745
1746
  }
1746
1747
  }
1747
- function Hi(e) {
1748
- var t = ue, r = ce, n = pe, i = I, s = be, a = _e, u = xe, o = rt, f = e.f;
1748
+ function Ai(e) {
1749
+ var t = ue, r = ce, n = pe, i = N, s = be, a = _e, u = xe, o = rt, f = e.f;
1749
1750
  ue = /** @type {null | Value[]} */
1750
- null, ce = 0, pe = null, I = f & (Oe | De) ? null : e, be = null, sr(e.ctx), xe = !1, rt = ++Je, e.ac !== null && (vr(() => {
1751
- e.ac.abort(Yt);
1751
+ null, ce = 0, pe = null, N = f & (Oe | De) ? null : e, be = null, ar(e.ctx), xe = !1, rt = ++Je, e.ac !== null && (_r(() => {
1752
+ e.ac.abort(Vt);
1752
1753
  }), e.ac = null);
1753
1754
  try {
1754
- e.f |= ir;
1755
+ e.f |= sr;
1755
1756
  var l = (
1756
1757
  /** @type {Function} */
1757
1758
  e.fn
1758
1759
  ), h = l();
1759
1760
  e.f |= St;
1760
- var d = Mn(e);
1761
- if (ri() && pe !== null && !xe && d !== null && !(e.f & (se | me | V)))
1761
+ var d = On(e);
1762
+ if (ii() && pe !== null && !xe && d !== null && !(e.f & (se | me | V)))
1762
1763
  for (var c = 0; c < /** @type {Source[]} */
1763
1764
  pe.length; c++)
1764
- wi(
1765
+ Hi(
1765
1766
  pe[c],
1766
1767
  /** @type {Effect} */
1767
1768
  e
@@ -1778,31 +1779,31 @@ function Hi(e) {
1778
1779
  }
1779
1780
  return e.f & $e && (e.f ^= $e), h;
1780
1781
  } catch (p) {
1781
- return Mn(e), Zs(p);
1782
+ return On(e), Js(p);
1782
1783
  } finally {
1783
- e.f ^= ir, ue = t, ce = r, pe = n, I = i, be = s, sr(a), xe = u, rt = o;
1784
+ e.f ^= sr, ue = t, ce = r, pe = n, N = i, be = s, ar(a), xe = u, rt = o;
1784
1785
  }
1785
1786
  }
1786
- function Mn(e) {
1787
+ function On(e) {
1787
1788
  var i, s;
1788
1789
  var t = e.deps, r = B == null ? void 0 : B.is_fork;
1789
1790
  if (ue !== null) {
1790
1791
  var n;
1791
- if (r || Ft(e, ce), t !== null && ce > 0)
1792
+ if (r || Gt(e, ce), t !== null && ce > 0)
1792
1793
  for (t.length = ce + ue.length, n = 0; n < ue.length; n++)
1793
1794
  t[ce + n] = ue[n];
1794
1795
  else
1795
1796
  e.deps = t = ue;
1796
- if (hn() && e.f & Te)
1797
+ if (dn() && e.f & Te)
1797
1798
  for (n = ce; n < t.length; n++)
1798
1799
  ((s = (i = t[n]).reactions) != null ? s : i.reactions = []).push(e);
1799
- } else !r && t !== null && ce < t.length && (Ft(e, ce), t.length = ce);
1800
+ } else !r && t !== null && ce < t.length && (Gt(e, ce), t.length = ce);
1800
1801
  return t;
1801
1802
  }
1802
- function ia(e, t) {
1803
+ function oa(e, t) {
1803
1804
  let r = t.reactions;
1804
1805
  if (r !== null) {
1805
- var n = ds.call(r, e);
1806
+ var n = vs.call(r, e);
1806
1807
  if (n !== -1) {
1807
1808
  var i = r.length - 1;
1808
1809
  i === 0 ? r = t.reactions = null : (r[n] = r[i], r.pop());
@@ -1811,21 +1812,21 @@ function ia(e, t) {
1811
1812
  if (r === null && t.f & se && // Destroying a child effect while updating a parent effect can cause a dependency to appear
1812
1813
  // to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
1813
1814
  // allows us to skip the expensive work of disconnecting and immediately reconnecting it
1814
- (ue === null || !Rt.call(ue, t))) {
1815
+ (ue === null || !Ut.call(ue, t))) {
1815
1816
  var s = (
1816
1817
  /** @type {Derived} */
1817
1818
  t
1818
1819
  );
1819
- s.f & Te && (s.f ^= Te), s.v !== W && sn(s), s.ac !== null && vr(() => {
1820
- s.ac.abort(Yt), s.ac = null, j(s, V);
1821
- }), ks(s), Ft(s, 0);
1820
+ s.f & Te && (s.f ^= Te), s.v !== W && on(s), s.ac !== null && _r(() => {
1821
+ s.ac.abort(Vt), s.ac = null, j(s, V);
1822
+ }), Vs(s), Gt(s, 0);
1822
1823
  }
1823
1824
  }
1824
- function Ft(e, t) {
1825
+ function Gt(e, t) {
1825
1826
  var r = e.deps;
1826
1827
  if (r !== null)
1827
1828
  for (var n = t; n < r.length; n++)
1828
- ia(e, r[n]);
1829
+ oa(e, r[n]);
1829
1830
  }
1830
1831
  function yt(e) {
1831
1832
  var t = e.f;
@@ -1834,11 +1835,11 @@ function yt(e) {
1834
1835
  var r = U;
1835
1836
  U = e;
1836
1837
  try {
1837
- t & (Ee | Zn) ? ea(e) : cn(e), bi(e);
1838
- var n = Hi(e);
1839
- e.teardown = typeof n == "function" ? n : null, e.wv = Ti;
1838
+ t & (Ee | Qn) ? na(e) : pn(e), gi(e);
1839
+ var n = Ai(e);
1840
+ e.teardown = typeof n == "function" ? n : null, e.wv = wi;
1840
1841
  var i;
1841
- jn && Ns && e.f & V && e.deps;
1842
+ Vn && Ds && e.f & V && e.deps;
1842
1843
  } finally {
1843
1844
  U = r;
1844
1845
  }
@@ -1847,16 +1848,16 @@ function yt(e) {
1847
1848
  function ut(e) {
1848
1849
  var l;
1849
1850
  var t = e.f, r = (t & se) !== 0;
1850
- if (I !== null && !xe) {
1851
+ if (N !== null && !xe) {
1851
1852
  var n = U !== null && (U.f & le) !== 0;
1852
1853
  if (!n && (be === null || !be.has(e))) {
1853
- var i = I.deps;
1854
- if (I.f & ir)
1854
+ var i = N.deps;
1855
+ if (N.f & sr)
1855
1856
  e.rv < Je && (e.rv = Je, ue === null && i !== null && i[ce] === e ? ce++ : ue === null ? ue = [e] : ue.push(e));
1856
1857
  else {
1857
- (l = I.deps) != null || (I.deps = []), Rt.call(I.deps, e) || I.deps.push(e);
1858
+ (l = N.deps) != null || (N.deps = []), Ut.call(N.deps, e) || N.deps.push(e);
1858
1859
  var s = e.reactions;
1859
- s === null ? e.reactions = [I] : Rt.call(s, I) || s.push(I);
1860
+ s === null ? e.reactions = [N] : Ut.call(s, N) || s.push(N);
1860
1861
  }
1861
1862
  }
1862
1863
  }
@@ -1869,10 +1870,10 @@ function ut(e) {
1869
1870
  );
1870
1871
  if (Ve) {
1871
1872
  var u = a.v;
1872
- return (!(a.f & z) && a.reactions !== null || Ai(a)) && (u = on(a)), Ae.set(a, u), u;
1873
+ return (!(a.f & z) && a.reactions !== null || Pi(a)) && (u = ln(a)), Ae.set(a, u), u;
1873
1874
  }
1874
- var o = (a.f & Te) === 0 && !xe && I !== null && (I.f & Te) !== 0, f = (a.f & St) === 0;
1875
- Vt(a) && (o && (a.f |= Te), si(a)), o && !f && (ai(a), Mi(a));
1875
+ var o = (a.f & Te) === 0 && !xe && N !== null && (N.f & Te) !== 0, f = (a.f & St) === 0;
1876
+ Xt(a) && (o && (a.f |= Te), oi(a)), o && !f && (ui(a), Oi(a));
1876
1877
  }
1877
1878
  if (re != null && re.has(e))
1878
1879
  return re.get(e);
@@ -1880,31 +1881,31 @@ function ut(e) {
1880
1881
  throw e.v;
1881
1882
  return e.v;
1882
1883
  }
1883
- function Mi(e) {
1884
+ function Oi(e) {
1884
1885
  if (e.f |= Te, e.deps !== null)
1885
1886
  for (const r of e.deps) {
1886
1887
  var t = r.reactions;
1887
- t === null ? r.reactions = [e] : Rt.call(t, e) || t.push(e), r.f & se && !(r.f & Te) && (ai(
1888
+ t === null ? r.reactions = [e] : Ut.call(t, e) || t.push(e), r.f & se && !(r.f & Te) && (ui(
1888
1889
  /** @type {Derived} */
1889
1890
  r
1890
- ), Mi(
1891
+ ), Oi(
1891
1892
  /** @type {Derived} */
1892
1893
  r
1893
1894
  ));
1894
1895
  }
1895
1896
  }
1896
- function Ai(e) {
1897
+ function Pi(e) {
1897
1898
  if (e.v === W) return !0;
1898
1899
  if (e.deps === null) return !1;
1899
1900
  for (const t of e.deps)
1900
- if (Ae.has(t) || t.f & se && Ai(
1901
+ if (Ae.has(t) || t.f & se && Pi(
1901
1902
  /** @type {Derived} */
1902
1903
  t
1903
1904
  ))
1904
1905
  return !0;
1905
1906
  return !1;
1906
1907
  }
1907
- function Oi(e) {
1908
+ function Ni(e) {
1908
1909
  var t = xe;
1909
1910
  try {
1910
1911
  return xe = !0, e();
@@ -1912,20 +1913,20 @@ function Oi(e) {
1912
1913
  xe = t;
1913
1914
  }
1914
1915
  }
1915
- function sl(e) {
1916
- let t = 0, r = _r(0), n;
1916
+ function ll(e) {
1917
+ let t = 0, r = br(0), n;
1917
1918
  return () => {
1918
- hn() && (ut(r), Ks(() => (t === 0 && (n = Oi(() => e(() => Lt(r)))), t += 1, () => {
1919
- Fr(() => {
1920
- t -= 1, t === 0 && (n == null || n(), n = void 0, Lt(r));
1919
+ dn() && (ut(r), ra(() => (t === 0 && (n = Ni(() => e(() => Rt(r)))), t += 1, () => {
1920
+ $r(() => {
1921
+ t -= 1, t === 0 && (n == null || n(), n = void 0, Rt(r));
1921
1922
  });
1922
1923
  })));
1923
1924
  };
1924
1925
  }
1925
- function Pi(e, t, r) {
1926
+ function Ii(e, t, r) {
1926
1927
  if (e == null)
1927
1928
  return t(void 0), r && r(void 0), tt;
1928
- const n = Oi(
1929
+ const n = Ni(
1929
1930
  () => e.subscribe(
1930
1931
  t,
1931
1932
  // @ts-expect-error
@@ -1935,16 +1936,16 @@ function Pi(e, t, r) {
1935
1936
  return n.unsubscribe ? () => n.unsubscribe() : n;
1936
1937
  }
1937
1938
  const at = [];
1938
- function sa(e, t) {
1939
+ function ua(e, t) {
1939
1940
  return {
1940
- subscribe: br(e, t).subscribe
1941
+ subscribe: yr(e, t).subscribe
1941
1942
  };
1942
1943
  }
1943
- function br(e, t = tt) {
1944
+ function yr(e, t = tt) {
1944
1945
  let r = null;
1945
1946
  const n = /* @__PURE__ */ new Set();
1946
1947
  function i(u) {
1947
- if (ei(e, u) && (e = u, r)) {
1948
+ if (ri(e, u) && (e = u, r)) {
1948
1949
  const o = !at.length;
1949
1950
  for (const f of n)
1950
1951
  f[1](), at.push(f, e);
@@ -1972,12 +1973,12 @@ function br(e, t = tt) {
1972
1973
  }
1973
1974
  return { set: i, update: s, subscribe: a };
1974
1975
  }
1975
- function Ht(e, t, r) {
1976
+ function Mt(e, t, r) {
1976
1977
  const n = !Array.isArray(e), i = n ? [e] : e;
1977
1978
  if (!i.every(Boolean))
1978
1979
  throw new Error("derived() expects stores as input, got a falsy value");
1979
1980
  const s = t.length < 2;
1980
- return sa(r, (a, u) => {
1981
+ return ua(r, (a, u) => {
1981
1982
  let o = !1;
1982
1983
  const f = [];
1983
1984
  let l = 0, h = tt;
@@ -1988,7 +1989,7 @@ function Ht(e, t, r) {
1988
1989
  const p = t(n ? f[0] : f, a, u);
1989
1990
  s ? a(p) : h = typeof p == "function" ? p : tt;
1990
1991
  }, c = i.map(
1991
- (p, g) => Pi(
1992
+ (p, g) => Ii(
1992
1993
  p,
1993
1994
  (m) => {
1994
1995
  f[g] = m, l &= ~(1 << g), o && d();
@@ -1999,79 +2000,79 @@ function Ht(e, t, r) {
1999
2000
  )
2000
2001
  );
2001
2002
  return o = !0, d(), function() {
2002
- Wn(c), h(), o = !1;
2003
+ Zn(c), h(), o = !1;
2003
2004
  };
2004
2005
  });
2005
2006
  }
2006
- function aa(e) {
2007
+ function la(e) {
2007
2008
  let t;
2008
- return Pi(e, (r) => t = r)(), t;
2009
+ return Ii(e, (r) => t = r)(), t;
2009
2010
  }
2010
- var Ii = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
2011
- function dn(e) {
2011
+ var Bi = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
2012
+ function mn(e) {
2012
2013
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
2013
2014
  }
2014
- var oa = function(t) {
2015
- return ua(t) && !la(t);
2015
+ var fa = function(t) {
2016
+ return ha(t) && !ca(t);
2016
2017
  };
2017
- function ua(e) {
2018
+ function ha(e) {
2018
2019
  return !!e && typeof e == "object";
2019
2020
  }
2020
- function la(e) {
2021
+ function ca(e) {
2021
2022
  var t = Object.prototype.toString.call(e);
2022
- return t === "[object RegExp]" || t === "[object Date]" || ca(e);
2023
+ return t === "[object RegExp]" || t === "[object Date]" || ma(e);
2023
2024
  }
2024
- var fa = typeof Symbol == "function" && Symbol.for, ha = fa ? Symbol.for("react.element") : 60103;
2025
- function ca(e) {
2026
- return e.$$typeof === ha;
2025
+ var da = typeof Symbol == "function" && Symbol.for, pa = da ? Symbol.for("react.element") : 60103;
2026
+ function ma(e) {
2027
+ return e.$$typeof === pa;
2027
2028
  }
2028
- function da(e) {
2029
+ function va(e) {
2029
2030
  return Array.isArray(e) ? [] : {};
2030
2031
  }
2031
- function Gt(e, t) {
2032
- return t.clone !== !1 && t.isMergeableObject(e) ? gt(da(e), e, t) : e;
2032
+ function $t(e, t) {
2033
+ return t.clone !== !1 && t.isMergeableObject(e) ? gt(va(e), e, t) : e;
2033
2034
  }
2034
- function pa(e, t, r) {
2035
+ function _a(e, t, r) {
2035
2036
  return e.concat(t).map(function(n) {
2036
- return Gt(n, r);
2037
+ return $t(n, r);
2037
2038
  });
2038
2039
  }
2039
- function ma(e, t) {
2040
+ function ba(e, t) {
2040
2041
  if (!t.customMerge)
2041
2042
  return gt;
2042
2043
  var r = t.customMerge(e);
2043
2044
  return typeof r == "function" ? r : gt;
2044
2045
  }
2045
- function va(e) {
2046
+ function ya(e) {
2046
2047
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
2047
2048
  return Object.propertyIsEnumerable.call(e, t);
2048
2049
  }) : [];
2049
2050
  }
2050
- function An(e) {
2051
- return Object.keys(e).concat(va(e));
2051
+ function Pn(e) {
2052
+ return Object.keys(e).concat(ya(e));
2052
2053
  }
2053
- function Ni(e, t) {
2054
+ function Ci(e, t) {
2054
2055
  try {
2055
2056
  return t in e;
2056
2057
  } catch (r) {
2057
2058
  return !1;
2058
2059
  }
2059
2060
  }
2060
- function _a(e, t) {
2061
- return Ni(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
2061
+ function ga(e, t) {
2062
+ return Ci(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
2062
2063
  }
2063
- function ba(e, t, r) {
2064
+ function Ea(e, t, r) {
2064
2065
  var n = {};
2065
- return r.isMergeableObject(e) && An(e).forEach(function(i) {
2066
- n[i] = Gt(e[i], r);
2067
- }), An(t).forEach(function(i) {
2068
- _a(e, i) || (Ni(e, i) && r.isMergeableObject(t[i]) ? n[i] = ma(i, r)(e[i], t[i], r) : n[i] = Gt(t[i], r));
2066
+ return r.isMergeableObject(e) && Pn(e).forEach(function(i) {
2067
+ n[i] = $t(e[i], r);
2068
+ }), Pn(t).forEach(function(i) {
2069
+ ga(e, i) || (Ci(e, i) && r.isMergeableObject(t[i]) ? n[i] = ba(i, r)(e[i], t[i], r) : n[i] = $t(t[i], r));
2069
2070
  }), n;
2070
2071
  }
2071
2072
  function gt(e, t, r) {
2072
- r = r || {}, r.arrayMerge = r.arrayMerge || pa, r.isMergeableObject = r.isMergeableObject || oa, r.cloneUnlessOtherwiseSpecified = Gt;
2073
+ r = r || {}, r.arrayMerge = r.arrayMerge || _a, r.isMergeableObject = r.isMergeableObject || fa, r.cloneUnlessOtherwiseSpecified = $t;
2073
2074
  var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
2074
- return s ? n ? r.arrayMerge(e, t, r) : ba(e, t, r) : Gt(t, r);
2075
+ return s ? n ? r.arrayMerge(e, t, r) : Ea(e, t, r) : $t(t, r);
2075
2076
  }
2076
2077
  gt.all = function(t, r) {
2077
2078
  if (!Array.isArray(t))
@@ -2080,34 +2081,34 @@ gt.all = function(t, r) {
2080
2081
  return gt(n, i, r);
2081
2082
  }, {});
2082
2083
  };
2083
- var ya = gt, ga = ya;
2084
- const Ea = /* @__PURE__ */ dn(ga);
2085
- var Xr = function(e, t) {
2086
- return Xr = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
2084
+ var xa = gt, Ta = xa;
2085
+ const Sa = /* @__PURE__ */ mn(Ta);
2086
+ var zr = function(e, t) {
2087
+ return zr = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
2087
2088
  r.__proto__ = n;
2088
2089
  } || function(r, n) {
2089
2090
  for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
2090
- }, Xr(e, t);
2091
+ }, zr(e, t);
2091
2092
  };
2092
- function yr(e, t) {
2093
+ function gr(e, t) {
2093
2094
  if (typeof t != "function" && t !== null)
2094
2095
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
2095
- Xr(e, t);
2096
+ zr(e, t);
2096
2097
  function r() {
2097
2098
  this.constructor = e;
2098
2099
  }
2099
2100
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
2100
2101
  }
2101
- var Me = function() {
2102
- return Me = Object.assign || function(t) {
2102
+ var He = function() {
2103
+ return He = Object.assign || function(t) {
2103
2104
  for (var r, n = 1, i = arguments.length; n < i; n++) {
2104
2105
  r = arguments[n];
2105
2106
  for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
2106
2107
  }
2107
2108
  return t;
2108
- }, Me.apply(this, arguments);
2109
+ }, He.apply(this, arguments);
2109
2110
  };
2110
- function xa(e, t) {
2111
+ function wa(e, t) {
2111
2112
  var r = {};
2112
2113
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
2113
2114
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -2115,42 +2116,42 @@ function xa(e, t) {
2115
2116
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
2116
2117
  return r;
2117
2118
  }
2118
- function Nr(e, t, r) {
2119
+ function Br(e, t, r) {
2119
2120
  if (r || arguments.length === 2) for (var n = 0, i = t.length, s; n < i; n++)
2120
2121
  (s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
2121
2122
  return e.concat(s || Array.prototype.slice.call(t));
2122
2123
  }
2123
- function Br(e, t) {
2124
- var r = t && t.cache ? t.cache : Oa, n = t && t.serializer ? t.serializer : Ma, i = t && t.strategy ? t.strategy : wa;
2124
+ function Cr(e, t) {
2125
+ var r = t && t.cache ? t.cache : Ia, n = t && t.serializer ? t.serializer : Pa, i = t && t.strategy ? t.strategy : Aa;
2125
2126
  return i(e, {
2126
2127
  cache: r,
2127
2128
  serializer: n
2128
2129
  });
2129
2130
  }
2130
- function Ta(e) {
2131
+ function Ma(e) {
2131
2132
  return e == null || typeof e == "number" || typeof e == "boolean";
2132
2133
  }
2133
- function Sa(e, t, r, n) {
2134
- var i = Ta(n) ? n : r(n), s = t.get(i);
2134
+ function Ha(e, t, r, n) {
2135
+ var i = Ma(n) ? n : r(n), s = t.get(i);
2135
2136
  return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
2136
2137
  }
2137
- function Bi(e, t, r) {
2138
+ function Di(e, t, r) {
2138
2139
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
2139
2140
  return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
2140
2141
  }
2141
- function Ci(e, t, r, n, i) {
2142
+ function Li(e, t, r, n, i) {
2142
2143
  return r.bind(t, e, n, i);
2143
2144
  }
2144
- function wa(e, t) {
2145
- var r = e.length === 1 ? Sa : Bi;
2146
- return Ci(e, this, r, t.cache.create(), t.serializer);
2145
+ function Aa(e, t) {
2146
+ var r = e.length === 1 ? Ha : Di;
2147
+ return Li(e, this, r, t.cache.create(), t.serializer);
2147
2148
  }
2148
- function Ha(e, t) {
2149
- return Ci(e, this, Bi, t.cache.create(), t.serializer);
2149
+ function Oa(e, t) {
2150
+ return Li(e, this, Di, t.cache.create(), t.serializer);
2150
2151
  }
2151
- var Ma = function() {
2152
+ var Pa = function() {
2152
2153
  return JSON.stringify(arguments);
2153
- }, Aa = (
2154
+ }, Na = (
2154
2155
  /** @class */
2155
2156
  function() {
2156
2157
  function e() {
@@ -2162,20 +2163,20 @@ var Ma = function() {
2162
2163
  this.cache[t] = r;
2163
2164
  }, e;
2164
2165
  }()
2165
- ), Oa = {
2166
+ ), Ia = {
2166
2167
  create: function() {
2167
- return new Aa();
2168
+ return new Na();
2168
2169
  }
2169
- }, Cr = {
2170
- variadic: Ha
2171
- }, fr = function() {
2172
- return fr = Object.assign || function(t) {
2170
+ }, Dr = {
2171
+ variadic: Oa
2172
+ }, hr = function() {
2173
+ return hr = Object.assign || function(t) {
2173
2174
  for (var r, n = 1, i = arguments.length; n < i; n++) {
2174
2175
  r = arguments[n];
2175
2176
  for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
2176
2177
  }
2177
2178
  return t;
2178
- }, fr.apply(this, arguments);
2179
+ }, hr.apply(this, arguments);
2179
2180
  };
2180
2181
  var P;
2181
2182
  (function(e) {
@@ -2189,43 +2190,43 @@ var Et;
2189
2190
  (function(e) {
2190
2191
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
2191
2192
  })(Et || (Et = {}));
2192
- function On(e) {
2193
+ function Nn(e) {
2193
2194
  return e.type === F.literal;
2194
2195
  }
2195
- function Pa(e) {
2196
+ function Ba(e) {
2196
2197
  return e.type === F.argument;
2197
2198
  }
2198
- function Di(e) {
2199
+ function Ri(e) {
2199
2200
  return e.type === F.number;
2200
2201
  }
2201
- function Li(e) {
2202
+ function Ui(e) {
2202
2203
  return e.type === F.date;
2203
2204
  }
2204
- function Ri(e) {
2205
+ function Fi(e) {
2205
2206
  return e.type === F.time;
2206
2207
  }
2207
- function Ui(e) {
2208
+ function Gi(e) {
2208
2209
  return e.type === F.select;
2209
2210
  }
2210
- function Fi(e) {
2211
+ function $i(e) {
2211
2212
  return e.type === F.plural;
2212
2213
  }
2213
- function Ia(e) {
2214
+ function Ca(e) {
2214
2215
  return e.type === F.pound;
2215
2216
  }
2216
- function Gi(e) {
2217
+ function ki(e) {
2217
2218
  return e.type === F.tag;
2218
2219
  }
2219
- function $i(e) {
2220
+ function ji(e) {
2220
2221
  return !!(e && typeof e == "object" && e.type === Et.number);
2221
2222
  }
2222
- function Wr(e) {
2223
+ function Zr(e) {
2223
2224
  return !!(e && typeof e == "object" && e.type === Et.dateTime);
2224
2225
  }
2225
- var ki = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Na = /(?:[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;
2226
- function Ba(e) {
2226
+ var Yi = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Da = /(?:[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;
2227
+ function La(e) {
2227
2228
  var t = {};
2228
- return e.replace(Na, function(r) {
2229
+ return e.replace(Da, function(r) {
2229
2230
  var n = r.length;
2230
2231
  switch (r[0]) {
2231
2232
  case "G":
@@ -2323,11 +2324,11 @@ var k = function() {
2323
2324
  return t;
2324
2325
  }, k.apply(this, arguments);
2325
2326
  };
2326
- var Ca = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
2327
- function Da(e) {
2327
+ var Ra = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
2328
+ function Ua(e) {
2328
2329
  if (e.length === 0)
2329
2330
  throw new Error("Number skeleton cannot be empty");
2330
- for (var t = e.split(Ca).filter(function(d) {
2331
+ for (var t = e.split(Ra).filter(function(d) {
2331
2332
  return d.length > 0;
2332
2333
  }), r = [], n = 0, i = t; n < i.length; n++) {
2333
2334
  var s = i[n], a = s.split("/");
@@ -2342,17 +2343,17 @@ function Da(e) {
2342
2343
  }
2343
2344
  return r;
2344
2345
  }
2345
- function La(e) {
2346
+ function Fa(e) {
2346
2347
  return e.replace(/^(.*?)-/, "");
2347
2348
  }
2348
- var Pn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, ji = /^(@+)?(\+|#+)?[rs]?$/g, Ra = /(\*)(0+)|(#+)(0+)|(0+)/g, Yi = /^(0+)$/;
2349
- function In(e) {
2349
+ var In = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Vi = /^(@+)?(\+|#+)?[rs]?$/g, Ga = /(\*)(0+)|(#+)(0+)|(0+)/g, Xi = /^(0+)$/;
2350
+ function Bn(e) {
2350
2351
  var t = {};
2351
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(ji, function(r, n, i) {
2352
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Vi, function(r, n, i) {
2352
2353
  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)), "";
2353
2354
  }), t;
2354
2355
  }
2355
- function Vi(e) {
2356
+ function Wi(e) {
2356
2357
  switch (e) {
2357
2358
  case "sign-auto":
2358
2359
  return {
@@ -2392,7 +2393,7 @@ function Vi(e) {
2392
2393
  };
2393
2394
  }
2394
2395
  }
2395
- function Ua(e) {
2396
+ function $a(e) {
2396
2397
  var t;
2397
2398
  if (e[0] === "E" && e[1] === "E" ? (t = {
2398
2399
  notation: "engineering"
@@ -2400,17 +2401,17 @@ function Ua(e) {
2400
2401
  notation: "scientific"
2401
2402
  }, e = e.slice(1)), t) {
2402
2403
  var r = e.slice(0, 2);
2403
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Yi.test(e))
2404
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Xi.test(e))
2404
2405
  throw new Error("Malformed concise eng/scientific notation");
2405
2406
  t.minimumIntegerDigits = e.length;
2406
2407
  }
2407
2408
  return t;
2408
2409
  }
2409
- function Nn(e) {
2410
- var t = {}, r = Vi(e);
2410
+ function Cn(e) {
2411
+ var t = {}, r = Wi(e);
2411
2412
  return r || t;
2412
2413
  }
2413
- function Fa(e) {
2414
+ function ka(e) {
2414
2415
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
2415
2416
  var i = n[r];
2416
2417
  switch (i.stem) {
@@ -2434,7 +2435,7 @@ function Fa(e) {
2434
2435
  continue;
2435
2436
  case "measure-unit":
2436
2437
  case "unit":
2437
- t.style = "unit", t.unit = La(i.options[0]);
2438
+ t.style = "unit", t.unit = Fa(i.options[0]);
2438
2439
  continue;
2439
2440
  case "compact-short":
2440
2441
  case "K":
@@ -2446,12 +2447,12 @@ function Fa(e) {
2446
2447
  continue;
2447
2448
  case "scientific":
2448
2449
  t = k(k(k({}, t), { notation: "scientific" }), i.options.reduce(function(o, f) {
2449
- return k(k({}, o), Nn(f));
2450
+ return k(k({}, o), Cn(f));
2450
2451
  }, {}));
2451
2452
  continue;
2452
2453
  case "engineering":
2453
2454
  t = k(k(k({}, t), { notation: "engineering" }), i.options.reduce(function(o, f) {
2454
- return k(k({}, o), Nn(f));
2455
+ return k(k({}, o), Cn(f));
2455
2456
  }, {}));
2456
2457
  continue;
2457
2458
  case "notation-simple":
@@ -2496,7 +2497,7 @@ function Fa(e) {
2496
2497
  case "integer-width":
2497
2498
  if (i.options.length > 1)
2498
2499
  throw new RangeError("integer-width stems only accept a single optional option");
2499
- i.options[0].replace(Ra, function(o, f, l, h, d, c) {
2500
+ i.options[0].replace(Ga, function(o, f, l, h, d, c) {
2500
2501
  if (f)
2501
2502
  t.minimumIntegerDigits = l.length;
2502
2503
  else {
@@ -2509,32 +2510,32 @@ function Fa(e) {
2509
2510
  });
2510
2511
  continue;
2511
2512
  }
2512
- if (Yi.test(i.stem)) {
2513
+ if (Xi.test(i.stem)) {
2513
2514
  t.minimumIntegerDigits = i.stem.length;
2514
2515
  continue;
2515
2516
  }
2516
- if (Pn.test(i.stem)) {
2517
+ if (In.test(i.stem)) {
2517
2518
  if (i.options.length > 1)
2518
2519
  throw new RangeError("Fraction-precision stems only accept a single optional option");
2519
- i.stem.replace(Pn, function(o, f, l, h, d, c) {
2520
+ i.stem.replace(In, function(o, f, l, h, d, c) {
2520
2521
  return l === "*" ? t.minimumFractionDigits = f.length : h && h[0] === "#" ? t.maximumFractionDigits = h.length : d && c ? (t.minimumFractionDigits = d.length, t.maximumFractionDigits = d.length + c.length) : (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length), "";
2521
2522
  });
2522
2523
  var s = i.options[0];
2523
- s === "w" ? t = k(k({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = k(k({}, t), In(s)));
2524
+ s === "w" ? t = k(k({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = k(k({}, t), Bn(s)));
2524
2525
  continue;
2525
2526
  }
2526
- if (ji.test(i.stem)) {
2527
- t = k(k({}, t), In(i.stem));
2527
+ if (Vi.test(i.stem)) {
2528
+ t = k(k({}, t), Bn(i.stem));
2528
2529
  continue;
2529
2530
  }
2530
- var a = Vi(i.stem);
2531
+ var a = Wi(i.stem);
2531
2532
  a && (t = k(k({}, t), a));
2532
- var u = Ua(i.stem);
2533
+ var u = $a(i.stem);
2533
2534
  u && (t = k(k({}, t), u));
2534
2535
  }
2535
2536
  return t;
2536
2537
  }
2537
- var qt = {
2538
+ var Qt = {
2538
2539
  "001": [
2539
2540
  "H",
2540
2541
  "h"
@@ -3949,13 +3950,13 @@ var qt = {
3949
3950
  "h"
3950
3951
  ]
3951
3952
  };
3952
- function Ga(e, t) {
3953
+ function ja(e, t) {
3953
3954
  for (var r = "", n = 0; n < e.length; n++) {
3954
3955
  var i = e.charAt(n);
3955
3956
  if (i === "j") {
3956
3957
  for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
3957
3958
  s++, n++;
3958
- var a = 1 + (s & 1), u = s < 2 ? 1 : 3 + (s >> 1), o = "a", f = $a(t);
3959
+ var a = 1 + (s & 1), u = s < 2 ? 1 : 3 + (s >> 1), o = "a", f = Ya(t);
3959
3960
  for ((f == "H" || f == "k") && (u = 0); u-- > 0; )
3960
3961
  r += o;
3961
3962
  for (; a-- > 0; )
@@ -3964,7 +3965,7 @@ function Ga(e, t) {
3964
3965
  }
3965
3966
  return r;
3966
3967
  }
3967
- function $a(e) {
3968
+ function Ya(e) {
3968
3969
  var t = e.hourCycle;
3969
3970
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
3970
3971
  e.hourCycles && // @ts-ignore
@@ -3983,23 +3984,23 @@ function $a(e) {
3983
3984
  }
3984
3985
  var r = e.language, n;
3985
3986
  r !== "root" && (n = e.maximize().region);
3986
- var i = qt[n || ""] || qt[r || ""] || qt["".concat(r, "-001")] || qt["001"];
3987
+ var i = Qt[n || ""] || Qt[r || ""] || Qt["".concat(r, "-001")] || Qt["001"];
3987
3988
  return i[0];
3988
3989
  }
3989
- var Dr, ka = new RegExp("^".concat(ki.source, "*")), ja = new RegExp("".concat(ki.source, "*$"));
3990
- function N(e, t) {
3990
+ var Lr, Va = new RegExp("^".concat(Yi.source, "*")), Xa = new RegExp("".concat(Yi.source, "*$"));
3991
+ function I(e, t) {
3991
3992
  return { start: e, end: t };
3992
3993
  }
3993
- var Ya = !!String.prototype.startsWith && "_a".startsWith("a", 1), Va = !!String.fromCodePoint, Xa = !!Object.fromEntries, Wa = !!String.prototype.codePointAt, za = !!String.prototype.trimStart, Za = !!String.prototype.trimEnd, qa = !!Number.isSafeInteger, Qa = qa ? Number.isSafeInteger : function(e) {
3994
+ var Wa = !!String.prototype.startsWith && "_a".startsWith("a", 1), za = !!String.fromCodePoint, Za = !!Object.fromEntries, qa = !!String.prototype.codePointAt, Qa = !!String.prototype.trimStart, Ja = !!String.prototype.trimEnd, Ka = !!Number.isSafeInteger, eo = Ka ? Number.isSafeInteger : function(e) {
3994
3995
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
3995
- }, zr = !0;
3996
+ }, qr = !0;
3996
3997
  try {
3997
- var Ja = Wi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3998
- zr = ((Dr = Ja.exec("a")) === null || Dr === void 0 ? void 0 : Dr[0]) === "a";
3998
+ var to = Zi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3999
+ qr = ((Lr = to.exec("a")) === null || Lr === void 0 ? void 0 : Lr[0]) === "a";
3999
4000
  } catch (e) {
4000
- zr = !1;
4001
+ qr = !1;
4001
4002
  }
4002
- var Bn = Ya ? (
4003
+ var Dn = Wa ? (
4003
4004
  // Native
4004
4005
  function(t, r, n) {
4005
4006
  return t.startsWith(r, n);
@@ -4009,7 +4010,7 @@ var Bn = Ya ? (
4009
4010
  function(t, r, n) {
4010
4011
  return t.slice(n, n + r.length) === r;
4011
4012
  }
4012
- ), Zr = Va ? String.fromCodePoint : (
4013
+ ), Qr = za ? String.fromCodePoint : (
4013
4014
  // IE11
4014
4015
  function() {
4015
4016
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -4021,9 +4022,9 @@ var Bn = Ya ? (
4021
4022
  }
4022
4023
  return n;
4023
4024
  }
4024
- ), Cn = (
4025
+ ), Ln = (
4025
4026
  // native
4026
- Xa ? Object.fromEntries : (
4027
+ Za ? Object.fromEntries : (
4027
4028
  // Ponyfill
4028
4029
  function(t) {
4029
4030
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -4033,7 +4034,7 @@ var Bn = Ya ? (
4033
4034
  return r;
4034
4035
  }
4035
4036
  )
4036
- ), Xi = Wa ? (
4037
+ ), zi = qa ? (
4037
4038
  // Native
4038
4039
  function(t, r) {
4039
4040
  return t.codePointAt(r);
@@ -4047,7 +4048,7 @@ var Bn = Ya ? (
4047
4048
  return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
4048
4049
  }
4049
4050
  }
4050
- ), Ka = za ? (
4051
+ ), ro = Qa ? (
4051
4052
  // Native
4052
4053
  function(t) {
4053
4054
  return t.trimStart();
@@ -4055,9 +4056,9 @@ var Bn = Ya ? (
4055
4056
  ) : (
4056
4057
  // Ponyfill
4057
4058
  function(t) {
4058
- return t.replace(ka, "");
4059
+ return t.replace(Va, "");
4059
4060
  }
4060
- ), eo = Za ? (
4061
+ ), no = Ja ? (
4061
4062
  // Native
4062
4063
  function(t) {
4063
4064
  return t.trimEnd();
@@ -4065,32 +4066,32 @@ var Bn = Ya ? (
4065
4066
  ) : (
4066
4067
  // Ponyfill
4067
4068
  function(t) {
4068
- return t.replace(ja, "");
4069
+ return t.replace(Xa, "");
4069
4070
  }
4070
4071
  );
4071
- function Wi(e, t) {
4072
+ function Zi(e, t) {
4072
4073
  return new RegExp(e, t);
4073
4074
  }
4074
- var qr;
4075
- if (zr) {
4076
- var Dn = Wi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
4077
- qr = function(t, r) {
4075
+ var Jr;
4076
+ if (qr) {
4077
+ var Rn = Zi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
4078
+ Jr = function(t, r) {
4078
4079
  var n;
4079
- Dn.lastIndex = r;
4080
- var i = Dn.exec(t);
4080
+ Rn.lastIndex = r;
4081
+ var i = Rn.exec(t);
4081
4082
  return (n = i[1]) !== null && n !== void 0 ? n : "";
4082
4083
  };
4083
4084
  } else
4084
- qr = function(t, r) {
4085
+ Jr = function(t, r) {
4085
4086
  for (var n = []; ; ) {
4086
- var i = Xi(t, r);
4087
- if (i === void 0 || zi(i) || io(i))
4087
+ var i = zi(t, r);
4088
+ if (i === void 0 || qi(i) || oo(i))
4088
4089
  break;
4089
4090
  n.push(i), r += i >= 65536 ? 2 : 1;
4090
4091
  }
4091
- return Zr.apply(void 0, n);
4092
+ return Qr.apply(void 0, n);
4092
4093
  };
4093
- var to = (
4094
+ var io = (
4094
4095
  /** @class */
4095
4096
  function() {
4096
4097
  function e(t, r) {
@@ -4115,13 +4116,13 @@ var to = (
4115
4116
  var u = this.clonePosition();
4116
4117
  this.bump(), i.push({
4117
4118
  type: F.pound,
4118
- location: N(u, this.clonePosition())
4119
+ location: I(u, this.clonePosition())
4119
4120
  });
4120
4121
  } else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
4121
4122
  if (n)
4122
4123
  break;
4123
- return this.error(P.UNMATCHED_CLOSING_TAG, N(this.clonePosition(), this.clonePosition()));
4124
- } else if (s === 60 && !this.ignoreTag && Qr(this.peek() || 0)) {
4124
+ return this.error(P.UNMATCHED_CLOSING_TAG, I(this.clonePosition(), this.clonePosition()));
4125
+ } else if (s === 60 && !this.ignoreTag && Kr(this.peek() || 0)) {
4125
4126
  var a = this.parseTag(t, r);
4126
4127
  if (a.err)
4127
4128
  return a;
@@ -4144,7 +4145,7 @@ var to = (
4144
4145
  val: {
4145
4146
  type: F.literal,
4146
4147
  value: "<".concat(i, "/>"),
4147
- location: N(n, this.clonePosition())
4148
+ location: I(n, this.clonePosition())
4148
4149
  },
4149
4150
  err: null
4150
4151
  };
@@ -4154,25 +4155,25 @@ var to = (
4154
4155
  return s;
4155
4156
  var a = s.val, u = this.clonePosition();
4156
4157
  if (this.bumpIf("</")) {
4157
- if (this.isEOF() || !Qr(this.char()))
4158
- return this.error(P.INVALID_TAG, N(u, this.clonePosition()));
4158
+ if (this.isEOF() || !Kr(this.char()))
4159
+ return this.error(P.INVALID_TAG, I(u, this.clonePosition()));
4159
4160
  var o = this.clonePosition(), f = this.parseTagName();
4160
- return i !== f ? this.error(P.UNMATCHED_CLOSING_TAG, N(o, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
4161
+ return i !== f ? this.error(P.UNMATCHED_CLOSING_TAG, I(o, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
4161
4162
  val: {
4162
4163
  type: F.tag,
4163
4164
  value: i,
4164
4165
  children: a,
4165
- location: N(n, this.clonePosition())
4166
+ location: I(n, this.clonePosition())
4166
4167
  },
4167
4168
  err: null
4168
- } : this.error(P.INVALID_TAG, N(u, this.clonePosition())));
4169
+ } : this.error(P.INVALID_TAG, I(u, this.clonePosition())));
4169
4170
  } else
4170
- return this.error(P.UNCLOSED_TAG, N(n, this.clonePosition()));
4171
+ return this.error(P.UNCLOSED_TAG, I(n, this.clonePosition()));
4171
4172
  } else
4172
- return this.error(P.INVALID_TAG, N(n, this.clonePosition()));
4173
+ return this.error(P.INVALID_TAG, I(n, this.clonePosition()));
4173
4174
  }, e.prototype.parseTagName = function() {
4174
4175
  var t = this.offset();
4175
- for (this.bump(); !this.isEOF() && no(this.char()); )
4176
+ for (this.bump(); !this.isEOF() && ao(this.char()); )
4176
4177
  this.bump();
4177
4178
  return this.message.slice(t, this.offset());
4178
4179
  }, e.prototype.parseLiteral = function(t, r) {
@@ -4194,14 +4195,14 @@ var to = (
4194
4195
  }
4195
4196
  break;
4196
4197
  }
4197
- var o = N(n, this.clonePosition());
4198
+ var o = I(n, this.clonePosition());
4198
4199
  return {
4199
4200
  val: { type: F.literal, value: i, location: o },
4200
4201
  err: null
4201
4202
  };
4202
4203
  }, e.prototype.tryParseLeftAngleBracket = function() {
4203
4204
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
4204
- !ro(this.peek() || 0)) ? (this.bump(), "<") : null;
4205
+ !so(this.peek() || 0)) ? (this.bump(), "<") : null;
4205
4206
  }, e.prototype.tryParseQuote = function(t) {
4206
4207
  if (this.isEOF() || this.char() !== 39)
4207
4208
  return null;
@@ -4235,23 +4236,23 @@ var to = (
4235
4236
  r.push(n);
4236
4237
  this.bump();
4237
4238
  }
4238
- return Zr.apply(void 0, r);
4239
+ return Qr.apply(void 0, r);
4239
4240
  }, e.prototype.tryParseUnquoted = function(t, r) {
4240
4241
  if (this.isEOF())
4241
4242
  return null;
4242
4243
  var n = this.char();
4243
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Zr(n));
4244
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Qr(n));
4244
4245
  }, e.prototype.parseArgument = function(t, r) {
4245
4246
  var n = this.clonePosition();
4246
4247
  if (this.bump(), this.bumpSpace(), this.isEOF())
4247
- return this.error(P.EXPECT_ARGUMENT_CLOSING_BRACE, N(n, this.clonePosition()));
4248
+ return this.error(P.EXPECT_ARGUMENT_CLOSING_BRACE, I(n, this.clonePosition()));
4248
4249
  if (this.char() === 125)
4249
- return this.bump(), this.error(P.EMPTY_ARGUMENT, N(n, this.clonePosition()));
4250
+ return this.bump(), this.error(P.EMPTY_ARGUMENT, I(n, this.clonePosition()));
4250
4251
  var i = this.parseIdentifierIfPossible().value;
4251
4252
  if (!i)
4252
- return this.error(P.MALFORMED_ARGUMENT, N(n, this.clonePosition()));
4253
+ return this.error(P.MALFORMED_ARGUMENT, I(n, this.clonePosition()));
4253
4254
  if (this.bumpSpace(), this.isEOF())
4254
- return this.error(P.EXPECT_ARGUMENT_CLOSING_BRACE, N(n, this.clonePosition()));
4255
+ return this.error(P.EXPECT_ARGUMENT_CLOSING_BRACE, I(n, this.clonePosition()));
4255
4256
  switch (this.char()) {
4256
4257
  case 125:
4257
4258
  return this.bump(), {
@@ -4259,25 +4260,25 @@ var to = (
4259
4260
  type: F.argument,
4260
4261
  // value does not include the opening and closing braces.
4261
4262
  value: i,
4262
- location: N(n, this.clonePosition())
4263
+ location: I(n, this.clonePosition())
4263
4264
  },
4264
4265
  err: null
4265
4266
  };
4266
4267
  case 44:
4267
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(P.EXPECT_ARGUMENT_CLOSING_BRACE, N(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
4268
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(P.EXPECT_ARGUMENT_CLOSING_BRACE, I(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
4268
4269
  default:
4269
- return this.error(P.MALFORMED_ARGUMENT, N(n, this.clonePosition()));
4270
+ return this.error(P.MALFORMED_ARGUMENT, I(n, this.clonePosition()));
4270
4271
  }
4271
4272
  }, e.prototype.parseIdentifierIfPossible = function() {
4272
- var t = this.clonePosition(), r = this.offset(), n = qr(this.message, r), i = r + n.length;
4273
+ var t = this.clonePosition(), r = this.offset(), n = Jr(this.message, r), i = r + n.length;
4273
4274
  this.bumpTo(i);
4274
- var s = this.clonePosition(), a = N(t, s);
4275
+ var s = this.clonePosition(), a = I(t, s);
4275
4276
  return { value: n, location: a };
4276
4277
  }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
4277
4278
  var s, a = this.clonePosition(), u = this.parseIdentifierIfPossible().value, o = this.clonePosition();
4278
4279
  switch (u) {
4279
4280
  case "":
4280
- return this.error(P.EXPECT_ARGUMENT_TYPE, N(a, o));
4281
+ return this.error(P.EXPECT_ARGUMENT_TYPE, I(a, o));
4281
4282
  case "number":
4282
4283
  case "date":
4283
4284
  case "time": {
@@ -4288,18 +4289,18 @@ var to = (
4288
4289
  var l = this.clonePosition(), h = this.parseSimpleArgStyleIfPossible();
4289
4290
  if (h.err)
4290
4291
  return h;
4291
- var d = eo(h.val);
4292
+ var d = no(h.val);
4292
4293
  if (d.length === 0)
4293
- return this.error(P.EXPECT_ARGUMENT_STYLE, N(this.clonePosition(), this.clonePosition()));
4294
- var c = N(l, this.clonePosition());
4294
+ return this.error(P.EXPECT_ARGUMENT_STYLE, I(this.clonePosition(), this.clonePosition()));
4295
+ var c = I(l, this.clonePosition());
4295
4296
  f = { style: d, styleLocation: c };
4296
4297
  }
4297
4298
  var p = this.tryParseArgumentClose(i);
4298
4299
  if (p.err)
4299
4300
  return p;
4300
- var g = N(i, this.clonePosition());
4301
- if (f && Bn(f == null ? void 0 : f.style, "::", 0)) {
4302
- var m = Ka(f.style.slice(2));
4301
+ var g = I(i, this.clonePosition());
4302
+ if (f && Dn(f == null ? void 0 : f.style, "::", 0)) {
4303
+ var m = ro(f.style.slice(2));
4303
4304
  if (u === "number") {
4304
4305
  var h = this.parseNumberSkeletonFromString(m, f.styleLocation);
4305
4306
  return h.err ? h : {
@@ -4310,12 +4311,12 @@ var to = (
4310
4311
  if (m.length === 0)
4311
4312
  return this.error(P.EXPECT_DATE_TIME_SKELETON, g);
4312
4313
  var w = m;
4313
- this.locale && (w = Ga(m, this.locale));
4314
+ this.locale && (w = ja(m, this.locale));
4314
4315
  var d = {
4315
4316
  type: Et.dateTime,
4316
4317
  pattern: w,
4317
4318
  location: f.styleLocation,
4318
- parsedOptions: this.shouldParseSkeletons ? Ba(w) : {}
4319
+ parsedOptions: this.shouldParseSkeletons ? La(w) : {}
4319
4320
  }, O = u === "date" ? F.date : F.time;
4320
4321
  return {
4321
4322
  val: { type: O, value: n, location: g, style: d },
@@ -4336,14 +4337,14 @@ var to = (
4336
4337
  case "plural":
4337
4338
  case "selectordinal":
4338
4339
  case "select": {
4339
- var H = this.clonePosition();
4340
+ var M = this.clonePosition();
4340
4341
  if (this.bumpSpace(), !this.bumpIf(","))
4341
- return this.error(P.EXPECT_SELECT_ARGUMENT_OPTIONS, N(H, fr({}, H)));
4342
+ return this.error(P.EXPECT_SELECT_ARGUMENT_OPTIONS, I(M, hr({}, M)));
4342
4343
  this.bumpSpace();
4343
4344
  var X = this.parseIdentifierIfPossible(), L = 0;
4344
4345
  if (u !== "select" && X.value === "offset") {
4345
4346
  if (!this.bumpIf(":"))
4346
- return this.error(P.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, N(this.clonePosition(), this.clonePosition()));
4347
+ return this.error(P.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, I(this.clonePosition(), this.clonePosition()));
4347
4348
  this.bumpSpace();
4348
4349
  var h = this.tryParseDecimalInteger(P.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, P.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
4349
4350
  if (h.err)
@@ -4356,12 +4357,12 @@ var to = (
4356
4357
  var p = this.tryParseArgumentClose(i);
4357
4358
  if (p.err)
4358
4359
  return p;
4359
- var ne = N(i, this.clonePosition());
4360
+ var ne = I(i, this.clonePosition());
4360
4361
  return u === "select" ? {
4361
4362
  val: {
4362
4363
  type: F.select,
4363
4364
  value: n,
4364
- options: Cn(Y.val),
4365
+ options: Ln(Y.val),
4365
4366
  location: ne
4366
4367
  },
4367
4368
  err: null
@@ -4369,7 +4370,7 @@ var to = (
4369
4370
  val: {
4370
4371
  type: F.plural,
4371
4372
  value: n,
4372
- options: Cn(Y.val),
4373
+ options: Ln(Y.val),
4373
4374
  offset: L,
4374
4375
  pluralType: u === "plural" ? "cardinal" : "ordinal",
4375
4376
  location: ne
@@ -4378,10 +4379,10 @@ var to = (
4378
4379
  };
4379
4380
  }
4380
4381
  default:
4381
- return this.error(P.INVALID_ARGUMENT_TYPE, N(a, o));
4382
+ return this.error(P.INVALID_ARGUMENT_TYPE, I(a, o));
4382
4383
  }
4383
4384
  }, e.prototype.tryParseArgumentClose = function(t) {
4384
- return this.isEOF() || this.char() !== 125 ? this.error(P.EXPECT_ARGUMENT_CLOSING_BRACE, N(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
4385
+ return this.isEOF() || this.char() !== 125 ? this.error(P.EXPECT_ARGUMENT_CLOSING_BRACE, I(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
4385
4386
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
4386
4387
  for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
4387
4388
  var n = this.char();
@@ -4390,7 +4391,7 @@ var to = (
4390
4391
  this.bump();
4391
4392
  var i = this.clonePosition();
4392
4393
  if (!this.bumpUntil("'"))
4393
- return this.error(P.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, N(i, this.clonePosition()));
4394
+ return this.error(P.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, I(i, this.clonePosition()));
4394
4395
  this.bump();
4395
4396
  break;
4396
4397
  }
@@ -4420,7 +4421,7 @@ var to = (
4420
4421
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
4421
4422
  var n = [];
4422
4423
  try {
4423
- n = Da(t);
4424
+ n = Ua(t);
4424
4425
  } catch (i) {
4425
4426
  return this.error(P.INVALID_NUMBER_SKELETON, r);
4426
4427
  }
@@ -4429,7 +4430,7 @@ var to = (
4429
4430
  type: Et.number,
4430
4431
  tokens: n,
4431
4432
  location: r,
4432
- parsedOptions: this.shouldParseSkeletons ? Fa(n) : {}
4433
+ parsedOptions: this.shouldParseSkeletons ? ka(n) : {}
4433
4434
  },
4434
4435
  err: null
4435
4436
  };
@@ -4441,7 +4442,7 @@ var to = (
4441
4442
  var d = this.tryParseDecimalInteger(P.EXPECT_PLURAL_ARGUMENT_SELECTOR, P.INVALID_PLURAL_ARGUMENT_SELECTOR);
4442
4443
  if (d.err)
4443
4444
  return d;
4444
- l = N(h, this.clonePosition()), f = this.message.slice(h.offset, this.offset());
4445
+ l = I(h, this.clonePosition()), f = this.message.slice(h.offset, this.offset());
4445
4446
  } else
4446
4447
  break;
4447
4448
  }
@@ -4450,7 +4451,7 @@ var to = (
4450
4451
  f === "other" && (a = !0), this.bumpSpace();
4451
4452
  var c = this.clonePosition();
4452
4453
  if (!this.bumpIf("{"))
4453
- return this.error(r === "select" ? P.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : P.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, N(this.clonePosition(), this.clonePosition()));
4454
+ return this.error(r === "select" ? P.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : P.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, I(this.clonePosition(), this.clonePosition()));
4454
4455
  var p = this.parseMessage(t + 1, r, n);
4455
4456
  if (p.err)
4456
4457
  return p;
@@ -4461,11 +4462,11 @@ var to = (
4461
4462
  f,
4462
4463
  {
4463
4464
  value: p.val,
4464
- location: N(c, this.clonePosition())
4465
+ location: I(c, this.clonePosition())
4465
4466
  }
4466
4467
  ]), o.add(f), this.bumpSpace(), s = this.parseIdentifierIfPossible(), f = s.value, l = s.location;
4467
4468
  }
4468
- return u.length === 0 ? this.error(r === "select" ? P.EXPECT_SELECT_ARGUMENT_SELECTOR : P.EXPECT_PLURAL_ARGUMENT_SELECTOR, N(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(P.MISSING_OTHER_CLAUSE, N(this.clonePosition(), this.clonePosition())) : { val: u, err: null };
4469
+ return u.length === 0 ? this.error(r === "select" ? P.EXPECT_SELECT_ARGUMENT_SELECTOR : P.EXPECT_PLURAL_ARGUMENT_SELECTOR, I(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(P.MISSING_OTHER_CLAUSE, I(this.clonePosition(), this.clonePosition())) : { val: u, err: null };
4469
4470
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
4470
4471
  var n = 1, i = this.clonePosition();
4471
4472
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
@@ -4476,8 +4477,8 @@ var to = (
4476
4477
  else
4477
4478
  break;
4478
4479
  }
4479
- var o = N(i, this.clonePosition());
4480
- return s ? (a *= n, Qa(a) ? { val: a, err: null } : this.error(r, o)) : this.error(t, o);
4480
+ var o = I(i, this.clonePosition());
4481
+ return s ? (a *= n, eo(a) ? { val: a, err: null } : this.error(r, o)) : this.error(t, o);
4481
4482
  }, e.prototype.offset = function() {
4482
4483
  return this.position.offset;
4483
4484
  }, e.prototype.isEOF = function() {
@@ -4492,7 +4493,7 @@ var to = (
4492
4493
  var t = this.position.offset;
4493
4494
  if (t >= this.message.length)
4494
4495
  throw Error("out of bound");
4495
- var r = Xi(this.message, t);
4496
+ var r = zi(this.message, t);
4496
4497
  if (r === void 0)
4497
4498
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
4498
4499
  return r;
@@ -4511,7 +4512,7 @@ var to = (
4511
4512
  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);
4512
4513
  }
4513
4514
  }, e.prototype.bumpIf = function(t) {
4514
- if (Bn(this.message, t, this.offset())) {
4515
+ if (Dn(this.message, t, this.offset())) {
4515
4516
  for (var r = 0; r < t.length; r++)
4516
4517
  this.bump();
4517
4518
  return !0;
@@ -4533,7 +4534,7 @@ var to = (
4533
4534
  break;
4534
4535
  }
4535
4536
  }, e.prototype.bumpSpace = function() {
4536
- for (; !this.isEOF() && zi(this.char()); )
4537
+ for (; !this.isEOF() && qi(this.char()); )
4537
4538
  this.bump();
4538
4539
  }, e.prototype.peek = function() {
4539
4540
  if (this.isEOF())
@@ -4543,46 +4544,46 @@ var to = (
4543
4544
  }, e;
4544
4545
  }()
4545
4546
  );
4546
- function Qr(e) {
4547
+ function Kr(e) {
4547
4548
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
4548
4549
  }
4549
- function ro(e) {
4550
- return Qr(e) || e === 47;
4550
+ function so(e) {
4551
+ return Kr(e) || e === 47;
4551
4552
  }
4552
- function no(e) {
4553
+ function ao(e) {
4553
4554
  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;
4554
4555
  }
4555
- function zi(e) {
4556
+ function qi(e) {
4556
4557
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
4557
4558
  }
4558
- function io(e) {
4559
+ function oo(e) {
4559
4560
  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;
4560
4561
  }
4561
- function Jr(e) {
4562
+ function en(e) {
4562
4563
  e.forEach(function(t) {
4563
- if (delete t.location, Ui(t) || Fi(t))
4564
+ if (delete t.location, Gi(t) || $i(t))
4564
4565
  for (var r in t.options)
4565
- delete t.options[r].location, Jr(t.options[r].value);
4566
- else Di(t) && $i(t.style) || (Li(t) || Ri(t)) && Wr(t.style) ? delete t.style.location : Gi(t) && Jr(t.children);
4566
+ delete t.options[r].location, en(t.options[r].value);
4567
+ else Ri(t) && ji(t.style) || (Ui(t) || Fi(t)) && Zr(t.style) ? delete t.style.location : ki(t) && en(t.children);
4567
4568
  });
4568
4569
  }
4569
- function so(e, t) {
4570
- t === void 0 && (t = {}), t = fr({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
4571
- var r = new to(e, t).parse();
4570
+ function uo(e, t) {
4571
+ t === void 0 && (t = {}), t = hr({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
4572
+ var r = new io(e, t).parse();
4572
4573
  if (r.err) {
4573
4574
  var n = SyntaxError(P[r.err.kind]);
4574
4575
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
4575
4576
  }
4576
- return t != null && t.captureLocation || Jr(r.val), r.val;
4577
+ return t != null && t.captureLocation || en(r.val), r.val;
4577
4578
  }
4578
4579
  var xt;
4579
4580
  (function(e) {
4580
4581
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
4581
4582
  })(xt || (xt = {}));
4582
- var gr = (
4583
+ var Er = (
4583
4584
  /** @class */
4584
4585
  function(e) {
4585
- yr(t, e);
4586
+ gr(t, e);
4586
4587
  function t(r, n, i) {
4587
4588
  var s = e.call(this, r) || this;
4588
4589
  return s.code = n, s.originalMessage = i, s;
@@ -4591,48 +4592,48 @@ var gr = (
4591
4592
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
4592
4593
  }, t;
4593
4594
  }(Error)
4594
- ), Ln = (
4595
+ ), Un = (
4595
4596
  /** @class */
4596
4597
  function(e) {
4597
- yr(t, e);
4598
+ gr(t, e);
4598
4599
  function t(r, n, i, s) {
4599
4600
  return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), xt.INVALID_VALUE, s) || this;
4600
4601
  }
4601
4602
  return t;
4602
- }(gr)
4603
- ), ao = (
4603
+ }(Er)
4604
+ ), lo = (
4604
4605
  /** @class */
4605
4606
  function(e) {
4606
- yr(t, e);
4607
+ gr(t, e);
4607
4608
  function t(r, n, i) {
4608
4609
  return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), xt.INVALID_VALUE, i) || this;
4609
4610
  }
4610
4611
  return t;
4611
- }(gr)
4612
- ), oo = (
4612
+ }(Er)
4613
+ ), fo = (
4613
4614
  /** @class */
4614
4615
  function(e) {
4615
- yr(t, e);
4616
+ gr(t, e);
4616
4617
  function t(r, n) {
4617
4618
  return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), xt.MISSING_VALUE, n) || this;
4618
4619
  }
4619
4620
  return t;
4620
- }(gr)
4621
+ }(Er)
4621
4622
  ), ae;
4622
4623
  (function(e) {
4623
4624
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
4624
4625
  })(ae || (ae = {}));
4625
- function uo(e) {
4626
+ function ho(e) {
4626
4627
  return e.length < 2 ? e : e.reduce(function(t, r) {
4627
4628
  var n = t[t.length - 1];
4628
4629
  return !n || n.type !== ae.literal || r.type !== ae.literal ? t.push(r) : n.value += r.value, t;
4629
4630
  }, []);
4630
4631
  }
4631
- function lo(e) {
4632
+ function co(e) {
4632
4633
  return typeof e == "function";
4633
4634
  }
4634
- function er(e, t, r, n, i, s, a) {
4635
- if (e.length === 1 && On(e[0]))
4635
+ function tr(e, t, r, n, i, s, a) {
4636
+ if (e.length === 1 && Nn(e[0]))
4636
4637
  return [
4637
4638
  {
4638
4639
  type: ae.literal,
@@ -4641,14 +4642,14 @@ function er(e, t, r, n, i, s, a) {
4641
4642
  ];
4642
4643
  for (var u = [], o = 0, f = e; o < f.length; o++) {
4643
4644
  var l = f[o];
4644
- if (On(l)) {
4645
+ if (Nn(l)) {
4645
4646
  u.push({
4646
4647
  type: ae.literal,
4647
4648
  value: l.value
4648
4649
  });
4649
4650
  continue;
4650
4651
  }
4651
- if (Ia(l)) {
4652
+ if (Ca(l)) {
4652
4653
  typeof s == "number" && u.push({
4653
4654
  type: ae.literal,
4654
4655
  value: r.getNumberFormat(t).format(s)
@@ -4657,44 +4658,44 @@ function er(e, t, r, n, i, s, a) {
4657
4658
  }
4658
4659
  var h = l.value;
4659
4660
  if (!(i && h in i))
4660
- throw new oo(h, a);
4661
+ throw new fo(h, a);
4661
4662
  var d = i[h];
4662
- if (Pa(l)) {
4663
+ if (Ba(l)) {
4663
4664
  (!d || typeof d == "string" || typeof d == "number") && (d = typeof d == "string" || typeof d == "number" ? String(d) : ""), u.push({
4664
4665
  type: typeof d == "string" ? ae.literal : ae.object,
4665
4666
  value: d
4666
4667
  });
4667
4668
  continue;
4668
4669
  }
4669
- if (Li(l)) {
4670
- var c = typeof l.style == "string" ? n.date[l.style] : Wr(l.style) ? l.style.parsedOptions : void 0;
4670
+ if (Ui(l)) {
4671
+ var c = typeof l.style == "string" ? n.date[l.style] : Zr(l.style) ? l.style.parsedOptions : void 0;
4671
4672
  u.push({
4672
4673
  type: ae.literal,
4673
4674
  value: r.getDateTimeFormat(t, c).format(d)
4674
4675
  });
4675
4676
  continue;
4676
4677
  }
4677
- if (Ri(l)) {
4678
- var c = typeof l.style == "string" ? n.time[l.style] : Wr(l.style) ? l.style.parsedOptions : n.time.medium;
4678
+ if (Fi(l)) {
4679
+ var c = typeof l.style == "string" ? n.time[l.style] : Zr(l.style) ? l.style.parsedOptions : n.time.medium;
4679
4680
  u.push({
4680
4681
  type: ae.literal,
4681
4682
  value: r.getDateTimeFormat(t, c).format(d)
4682
4683
  });
4683
4684
  continue;
4684
4685
  }
4685
- if (Di(l)) {
4686
- var c = typeof l.style == "string" ? n.number[l.style] : $i(l.style) ? l.style.parsedOptions : void 0;
4686
+ if (Ri(l)) {
4687
+ var c = typeof l.style == "string" ? n.number[l.style] : ji(l.style) ? l.style.parsedOptions : void 0;
4687
4688
  c && c.scale && (d = d * (c.scale || 1)), u.push({
4688
4689
  type: ae.literal,
4689
4690
  value: r.getNumberFormat(t, c).format(d)
4690
4691
  });
4691
4692
  continue;
4692
4693
  }
4693
- if (Gi(l)) {
4694
+ if (ki(l)) {
4694
4695
  var p = l.children, g = l.value, m = i[g];
4695
- if (!lo(m))
4696
- throw new ao(g, "function", a);
4697
- var w = er(p, t, r, n, i, s), O = m(w.map(function(L) {
4696
+ if (!co(m))
4697
+ throw new lo(g, "function", a);
4698
+ var w = tr(p, t, r, n, i, s), O = m(w.map(function(L) {
4698
4699
  return L.value;
4699
4700
  }));
4700
4701
  Array.isArray(O) || (O = [O]), u.push.apply(u, O.map(function(L) {
@@ -4704,42 +4705,42 @@ function er(e, t, r, n, i, s, a) {
4704
4705
  };
4705
4706
  }));
4706
4707
  }
4707
- if (Ui(l)) {
4708
- var H = l.options[d] || l.options.other;
4709
- if (!H)
4710
- throw new Ln(l.value, d, Object.keys(l.options), a);
4711
- u.push.apply(u, er(H.value, t, r, n, i));
4708
+ if (Gi(l)) {
4709
+ var M = l.options[d] || l.options.other;
4710
+ if (!M)
4711
+ throw new Un(l.value, d, Object.keys(l.options), a);
4712
+ u.push.apply(u, tr(M.value, t, r, n, i));
4712
4713
  continue;
4713
4714
  }
4714
- if (Fi(l)) {
4715
- var H = l.options["=".concat(d)];
4716
- if (!H) {
4715
+ if ($i(l)) {
4716
+ var M = l.options["=".concat(d)];
4717
+ if (!M) {
4717
4718
  if (!Intl.PluralRules)
4718
- throw new gr(`Intl.PluralRules is not available in this environment.
4719
+ throw new Er(`Intl.PluralRules is not available in this environment.
4719
4720
  Try polyfilling it using "@formatjs/intl-pluralrules"
4720
4721
  `, xt.MISSING_INTL_API, a);
4721
4722
  var X = r.getPluralRules(t, { type: l.pluralType }).select(d - (l.offset || 0));
4722
- H = l.options[X] || l.options.other;
4723
+ M = l.options[X] || l.options.other;
4723
4724
  }
4724
- if (!H)
4725
- throw new Ln(l.value, d, Object.keys(l.options), a);
4726
- u.push.apply(u, er(H.value, t, r, n, i, d - (l.offset || 0)));
4725
+ if (!M)
4726
+ throw new Un(l.value, d, Object.keys(l.options), a);
4727
+ u.push.apply(u, tr(M.value, t, r, n, i, d - (l.offset || 0)));
4727
4728
  continue;
4728
4729
  }
4729
4730
  }
4730
- return uo(u);
4731
+ return ho(u);
4731
4732
  }
4732
- function fo(e, t) {
4733
- return t ? Me(Me(Me({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
4734
- return r[n] = Me(Me({}, e[n]), t[n] || {}), r;
4733
+ function po(e, t) {
4734
+ return t ? He(He(He({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
4735
+ return r[n] = He(He({}, e[n]), t[n] || {}), r;
4735
4736
  }, {})) : e;
4736
4737
  }
4737
- function ho(e, t) {
4738
+ function mo(e, t) {
4738
4739
  return t ? Object.keys(e).reduce(function(r, n) {
4739
- return r[n] = fo(e[n], t[n]), r;
4740
- }, Me({}, e)) : e;
4740
+ return r[n] = po(e[n], t[n]), r;
4741
+ }, He({}, e)) : e;
4741
4742
  }
4742
- function Lr(e) {
4743
+ function Rr(e) {
4743
4744
  return {
4744
4745
  create: function() {
4745
4746
  return {
@@ -4753,39 +4754,39 @@ function Lr(e) {
4753
4754
  }
4754
4755
  };
4755
4756
  }
4756
- function co(e) {
4757
+ function vo(e) {
4757
4758
  return e === void 0 && (e = {
4758
4759
  number: {},
4759
4760
  dateTime: {},
4760
4761
  pluralRules: {}
4761
4762
  }), {
4762
- getNumberFormat: Br(function() {
4763
+ getNumberFormat: Cr(function() {
4763
4764
  for (var t, r = [], n = 0; n < arguments.length; n++)
4764
4765
  r[n] = arguments[n];
4765
- return new ((t = Intl.NumberFormat).bind.apply(t, Nr([void 0], r, !1)))();
4766
+ return new ((t = Intl.NumberFormat).bind.apply(t, Br([void 0], r, !1)))();
4766
4767
  }, {
4767
- cache: Lr(e.number),
4768
- strategy: Cr.variadic
4768
+ cache: Rr(e.number),
4769
+ strategy: Dr.variadic
4769
4770
  }),
4770
- getDateTimeFormat: Br(function() {
4771
+ getDateTimeFormat: Cr(function() {
4771
4772
  for (var t, r = [], n = 0; n < arguments.length; n++)
4772
4773
  r[n] = arguments[n];
4773
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Nr([void 0], r, !1)))();
4774
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Br([void 0], r, !1)))();
4774
4775
  }, {
4775
- cache: Lr(e.dateTime),
4776
- strategy: Cr.variadic
4776
+ cache: Rr(e.dateTime),
4777
+ strategy: Dr.variadic
4777
4778
  }),
4778
- getPluralRules: Br(function() {
4779
+ getPluralRules: Cr(function() {
4779
4780
  for (var t, r = [], n = 0; n < arguments.length; n++)
4780
4781
  r[n] = arguments[n];
4781
- return new ((t = Intl.PluralRules).bind.apply(t, Nr([void 0], r, !1)))();
4782
+ return new ((t = Intl.PluralRules).bind.apply(t, Br([void 0], r, !1)))();
4782
4783
  }, {
4783
- cache: Lr(e.pluralRules),
4784
- strategy: Cr.variadic
4784
+ cache: Rr(e.pluralRules),
4785
+ strategy: Dr.variadic
4785
4786
  })
4786
4787
  };
4787
4788
  }
4788
- var po = (
4789
+ var _o = (
4789
4790
  /** @class */
4790
4791
  function() {
4791
4792
  function e(t, r, n, i) {
@@ -4804,7 +4805,7 @@ var po = (
4804
4805
  }, []);
4805
4806
  return l.length <= 1 ? l[0] || "" : l;
4806
4807
  }, this.formatToParts = function(o) {
4807
- return er(s.ast, s.locales, s.formatters, s.formats, o, void 0, s.message);
4808
+ return tr(s.ast, s.locales, s.formatters, s.formats, o, void 0, s.message);
4808
4809
  }, this.resolvedOptions = function() {
4809
4810
  var o;
4810
4811
  return {
@@ -4817,13 +4818,13 @@ var po = (
4817
4818
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
4818
4819
  var a = i || {};
4819
4820
  a.formatters;
4820
- var u = xa(a, ["formatters"]);
4821
- this.ast = e.__parse(t, Me(Me({}, u), { locale: this.resolvedLocale }));
4821
+ var u = wa(a, ["formatters"]);
4822
+ this.ast = e.__parse(t, He(He({}, u), { locale: this.resolvedLocale }));
4822
4823
  } else
4823
4824
  this.ast = t;
4824
4825
  if (!Array.isArray(this.ast))
4825
4826
  throw new TypeError("A message must be provided as a String or AST.");
4826
- this.formats = ho(e.formats, n), this.formatters = i && i.formatters || co(this.formatterCache);
4827
+ this.formats = mo(e.formats, n), this.formatters = i && i.formatters || vo(this.formatterCache);
4827
4828
  }
4828
4829
  return Object.defineProperty(e, "defaultLocale", {
4829
4830
  get: function() {
@@ -4836,7 +4837,7 @@ var po = (
4836
4837
  var r = Intl.NumberFormat.supportedLocalesOf(t);
4837
4838
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
4838
4839
  }
4839
- }, e.__parse = so, e.formats = {
4840
+ }, e.__parse = uo, e.formats = {
4840
4841
  number: {
4841
4842
  integer: {
4842
4843
  maximumFractionDigits: 0
@@ -4897,7 +4898,7 @@ var po = (
4897
4898
  }, e;
4898
4899
  }()
4899
4900
  );
4900
- function mo(e, t) {
4901
+ function bo(e, t) {
4901
4902
  if (t == null)
4902
4903
  return;
4903
4904
  if (t in e)
@@ -4918,92 +4919,92 @@ function mo(e, t) {
4918
4919
  n = void 0;
4919
4920
  return n;
4920
4921
  }
4921
- const Ge = {}, vo = (e, t, r) => r && (t in Ge || (Ge[t] = {}), e in Ge[t] || (Ge[t][e] = r), r), Zi = (e, t) => {
4922
+ const Ge = {}, yo = (e, t, r) => r && (t in Ge || (Ge[t] = {}), e in Ge[t] || (Ge[t][e] = r), r), Qi = (e, t) => {
4922
4923
  if (t == null)
4923
4924
  return;
4924
4925
  if (t in Ge && e in Ge[t])
4925
4926
  return Ge[t][e];
4926
- const r = Er(t);
4927
+ const r = xr(t);
4927
4928
  for (let n = 0; n < r.length; n++) {
4928
- const i = r[n], s = bo(i, e);
4929
+ const i = r[n], s = Eo(i, e);
4929
4930
  if (s)
4930
- return vo(e, t, s);
4931
+ return yo(e, t, s);
4931
4932
  }
4932
4933
  };
4933
- let pn;
4934
- const Xt = br({});
4935
- function _o(e) {
4936
- return pn[e] || null;
4934
+ let vn;
4935
+ const Wt = yr({});
4936
+ function go(e) {
4937
+ return vn[e] || null;
4937
4938
  }
4938
- function qi(e) {
4939
- return e in pn;
4939
+ function Ji(e) {
4940
+ return e in vn;
4940
4941
  }
4941
- function bo(e, t) {
4942
- if (!qi(e))
4942
+ function Eo(e, t) {
4943
+ if (!Ji(e))
4943
4944
  return null;
4944
- const r = _o(e);
4945
- return mo(r, t);
4945
+ const r = go(e);
4946
+ return bo(r, t);
4946
4947
  }
4947
- function yo(e) {
4948
+ function xo(e) {
4948
4949
  if (e == null)
4949
4950
  return;
4950
- const t = Er(e);
4951
+ const t = xr(e);
4951
4952
  for (let r = 0; r < t.length; r++) {
4952
4953
  const n = t[r];
4953
- if (qi(n))
4954
+ if (Ji(n))
4954
4955
  return n;
4955
4956
  }
4956
4957
  }
4957
- function go(e, ...t) {
4958
- delete Ge[e], Xt.update((r) => (r[e] = Ea.all([r[e] || {}, ...t]), r));
4958
+ function To(e, ...t) {
4959
+ delete Ge[e], Wt.update((r) => (r[e] = Sa.all([r[e] || {}, ...t]), r));
4959
4960
  }
4960
- Ht(
4961
- [Xt],
4961
+ Mt(
4962
+ [Wt],
4962
4963
  ([e]) => Object.keys(e)
4963
4964
  );
4964
- Xt.subscribe((e) => pn = e);
4965
- const tr = {};
4966
- function Eo(e, t) {
4967
- tr[e].delete(t), tr[e].size === 0 && delete tr[e];
4965
+ Wt.subscribe((e) => vn = e);
4966
+ const rr = {};
4967
+ function So(e, t) {
4968
+ rr[e].delete(t), rr[e].size === 0 && delete rr[e];
4968
4969
  }
4969
- function Qi(e) {
4970
- return tr[e];
4970
+ function Ki(e) {
4971
+ return rr[e];
4971
4972
  }
4972
- function xo(e) {
4973
- return Er(e).map((t) => {
4974
- const r = Qi(t);
4973
+ function wo(e) {
4974
+ return xr(e).map((t) => {
4975
+ const r = Ki(t);
4975
4976
  return [t, r ? [...r] : []];
4976
4977
  }).filter(([, t]) => t.length > 0);
4977
4978
  }
4978
- function Kr(e) {
4979
- return e == null ? !1 : Er(e).some(
4979
+ function tn(e) {
4980
+ return e == null ? !1 : xr(e).some(
4980
4981
  (t) => {
4981
4982
  var r;
4982
- return (r = Qi(t)) == null ? void 0 : r.size;
4983
+ return (r = Ki(t)) == null ? void 0 : r.size;
4983
4984
  }
4984
4985
  );
4985
4986
  }
4986
- function To(e, t) {
4987
+ function Mo(e, t) {
4987
4988
  return Promise.all(
4988
- t.map((n) => (Eo(e, n), n().then((i) => i.default || i)))
4989
- ).then((n) => go(e, ...n));
4989
+ t.map((n) => (So(e, n), n().then((i) => i.default || i)))
4990
+ ).then((n) => To(e, ...n));
4990
4991
  }
4991
4992
  const At = {};
4992
- function Ji(e) {
4993
- if (!Kr(e))
4993
+ function es(e) {
4994
+ if (!tn(e))
4994
4995
  return e in At ? At[e] : Promise.resolve();
4995
- const t = xo(e);
4996
+ const t = wo(e);
4996
4997
  return At[e] = Promise.all(
4997
4998
  t.map(
4998
- ([r, n]) => To(r, n)
4999
+ ([r, n]) => Mo(r, n)
4999
5000
  )
5000
5001
  ).then(() => {
5001
- if (Kr(e))
5002
- return Ji(e);
5002
+ if (tn(e))
5003
+ return es(e);
5003
5004
  delete At[e];
5004
5005
  }), At[e];
5005
5006
  }
5006
- const So = {
5007
+ const Ho = {
5007
5008
  number: {
5008
5009
  scientific: { notation: "scientific" },
5009
5010
  engineering: { notation: "engineering" },
@@ -5032,135 +5033,135 @@ const So = {
5032
5033
  timeZoneName: "short"
5033
5034
  }
5034
5035
  }
5035
- }, wo = {
5036
+ }, Ao = {
5036
5037
  fallbackLocale: null,
5037
5038
  loadingDelay: 200,
5038
- formats: So,
5039
+ formats: Ho,
5039
5040
  warnOnMissingMessages: !0,
5040
5041
  handleMissingMessage: void 0,
5041
5042
  ignoreTag: !0
5042
- }, Ho = wo;
5043
+ }, Oo = Ao;
5043
5044
  function Tt() {
5044
- return Ho;
5045
+ return Oo;
5045
5046
  }
5046
- const Rr = br(!1);
5047
- var Mo = Object.defineProperty, Ao = Object.defineProperties, Oo = Object.getOwnPropertyDescriptors, Rn = Object.getOwnPropertySymbols, Po = Object.prototype.hasOwnProperty, Io = Object.prototype.propertyIsEnumerable, Un = (e, t, r) => t in e ? Mo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, No = (e, t) => {
5047
+ const Ur = yr(!1);
5048
+ var Po = Object.defineProperty, No = Object.defineProperties, Io = Object.getOwnPropertyDescriptors, Fn = Object.getOwnPropertySymbols, Bo = Object.prototype.hasOwnProperty, Co = Object.prototype.propertyIsEnumerable, Gn = (e, t, r) => t in e ? Po(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Do = (e, t) => {
5048
5049
  for (var r in t || (t = {}))
5049
- Po.call(t, r) && Un(e, r, t[r]);
5050
- if (Rn)
5051
- for (var r of Rn(t))
5052
- Io.call(t, r) && Un(e, r, t[r]);
5050
+ Bo.call(t, r) && Gn(e, r, t[r]);
5051
+ if (Fn)
5052
+ for (var r of Fn(t))
5053
+ Co.call(t, r) && Gn(e, r, t[r]);
5053
5054
  return e;
5054
- }, Bo = (e, t) => Ao(e, Oo(t));
5055
- let en;
5056
- const hr = br(null);
5057
- function Fn(e) {
5055
+ }, Lo = (e, t) => No(e, Io(t));
5056
+ let rn;
5057
+ const cr = yr(null);
5058
+ function $n(e) {
5058
5059
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
5059
5060
  }
5060
- function Er(e, t = Tt().fallbackLocale) {
5061
- const r = Fn(e);
5062
- return t ? [.../* @__PURE__ */ new Set([...r, ...Fn(t)])] : r;
5061
+ function xr(e, t = Tt().fallbackLocale) {
5062
+ const r = $n(e);
5063
+ return t ? [.../* @__PURE__ */ new Set([...r, ...$n(t)])] : r;
5063
5064
  }
5064
5065
  function it() {
5065
- return en != null ? en : void 0;
5066
+ return rn != null ? rn : void 0;
5066
5067
  }
5067
- hr.subscribe((e) => {
5068
- en = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
5068
+ cr.subscribe((e) => {
5069
+ rn = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
5069
5070
  });
5070
- const Co = (e) => {
5071
- if (e && yo(e) && Kr(e)) {
5071
+ const Ro = (e) => {
5072
+ if (e && xo(e) && tn(e)) {
5072
5073
  const { loadingDelay: t } = Tt();
5073
5074
  let r;
5074
5075
  return typeof window != "undefined" && it() != null && t ? r = window.setTimeout(
5075
- () => Rr.set(!0),
5076
+ () => Ur.set(!0),
5076
5077
  t
5077
- ) : Rr.set(!0), Ji(e).then(() => {
5078
- hr.set(e);
5078
+ ) : Ur.set(!0), es(e).then(() => {
5079
+ cr.set(e);
5079
5080
  }).finally(() => {
5080
- clearTimeout(r), Rr.set(!1);
5081
+ clearTimeout(r), Ur.set(!1);
5081
5082
  });
5082
5083
  }
5083
- return hr.set(e);
5084
- }, Wt = Bo(No({}, hr), {
5085
- set: Co
5086
- }), xr = (e) => {
5084
+ return cr.set(e);
5085
+ }, zt = Lo(Do({}, cr), {
5086
+ set: Ro
5087
+ }), Tr = (e) => {
5087
5088
  const t = /* @__PURE__ */ Object.create(null);
5088
5089
  return (n) => {
5089
5090
  const i = JSON.stringify(n);
5090
5091
  return i in t ? t[i] : t[i] = e(n);
5091
5092
  };
5092
5093
  };
5093
- var Do = Object.defineProperty, cr = Object.getOwnPropertySymbols, Ki = Object.prototype.hasOwnProperty, es = Object.prototype.propertyIsEnumerable, Gn = (e, t, r) => t in e ? Do(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, mn = (e, t) => {
5094
+ var Uo = Object.defineProperty, dr = Object.getOwnPropertySymbols, ts = Object.prototype.hasOwnProperty, rs = Object.prototype.propertyIsEnumerable, kn = (e, t, r) => t in e ? Uo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, _n = (e, t) => {
5094
5095
  for (var r in t || (t = {}))
5095
- Ki.call(t, r) && Gn(e, r, t[r]);
5096
- if (cr)
5097
- for (var r of cr(t))
5098
- es.call(t, r) && Gn(e, r, t[r]);
5096
+ ts.call(t, r) && kn(e, r, t[r]);
5097
+ if (dr)
5098
+ for (var r of dr(t))
5099
+ rs.call(t, r) && kn(e, r, t[r]);
5099
5100
  return e;
5100
- }, Mt = (e, t) => {
5101
+ }, Ht = (e, t) => {
5101
5102
  var r = {};
5102
5103
  for (var n in e)
5103
- Ki.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
5104
- if (e != null && cr)
5105
- for (var n of cr(e))
5106
- t.indexOf(n) < 0 && es.call(e, n) && (r[n] = e[n]);
5104
+ ts.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
5105
+ if (e != null && dr)
5106
+ for (var n of dr(e))
5107
+ t.indexOf(n) < 0 && rs.call(e, n) && (r[n] = e[n]);
5107
5108
  return r;
5108
5109
  };
5109
- const $t = (e, t) => {
5110
+ const kt = (e, t) => {
5110
5111
  const { formats: r } = Tt();
5111
5112
  if (e in r && t in r[e])
5112
5113
  return r[e][t];
5113
5114
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
5114
- }, Lo = xr(
5115
+ }, Fo = Tr(
5115
5116
  (e) => {
5116
- var t = e, { locale: r, format: n } = t, i = Mt(t, ["locale", "format"]);
5117
+ var t = e, { locale: r, format: n } = t, i = Ht(t, ["locale", "format"]);
5117
5118
  if (r == null)
5118
5119
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
5119
- return n && (i = $t("number", n)), new Intl.NumberFormat(r, i);
5120
+ return n && (i = kt("number", n)), new Intl.NumberFormat(r, i);
5120
5121
  }
5121
- ), Ro = xr(
5122
+ ), Go = Tr(
5122
5123
  (e) => {
5123
- var t = e, { locale: r, format: n } = t, i = Mt(t, ["locale", "format"]);
5124
+ var t = e, { locale: r, format: n } = t, i = Ht(t, ["locale", "format"]);
5124
5125
  if (r == null)
5125
5126
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
5126
- return n ? i = $t("date", n) : Object.keys(i).length === 0 && (i = $t("date", "short")), new Intl.DateTimeFormat(r, i);
5127
+ return n ? i = kt("date", n) : Object.keys(i).length === 0 && (i = kt("date", "short")), new Intl.DateTimeFormat(r, i);
5127
5128
  }
5128
- ), Uo = xr(
5129
+ ), $o = Tr(
5129
5130
  (e) => {
5130
- var t = e, { locale: r, format: n } = t, i = Mt(t, ["locale", "format"]);
5131
+ var t = e, { locale: r, format: n } = t, i = Ht(t, ["locale", "format"]);
5131
5132
  if (r == null)
5132
5133
  throw new Error(
5133
5134
  '[svelte-i18n] A "locale" must be set to format time values'
5134
5135
  );
5135
- return n ? i = $t("time", n) : Object.keys(i).length === 0 && (i = $t("time", "short")), new Intl.DateTimeFormat(r, i);
5136
+ return n ? i = kt("time", n) : Object.keys(i).length === 0 && (i = kt("time", "short")), new Intl.DateTimeFormat(r, i);
5136
5137
  }
5137
- ), Fo = (e = {}) => {
5138
+ ), ko = (e = {}) => {
5138
5139
  var t = e, {
5139
5140
  locale: r = it()
5140
- } = t, n = Mt(t, [
5141
+ } = t, n = Ht(t, [
5141
5142
  "locale"
5142
5143
  ]);
5143
- return Lo(mn({ locale: r }, n));
5144
- }, Go = (e = {}) => {
5144
+ return Fo(_n({ locale: r }, n));
5145
+ }, jo = (e = {}) => {
5145
5146
  var t = e, {
5146
5147
  locale: r = it()
5147
- } = t, n = Mt(t, [
5148
+ } = t, n = Ht(t, [
5148
5149
  "locale"
5149
5150
  ]);
5150
- return Ro(mn({ locale: r }, n));
5151
- }, $o = (e = {}) => {
5151
+ return Go(_n({ locale: r }, n));
5152
+ }, Yo = (e = {}) => {
5152
5153
  var t = e, {
5153
5154
  locale: r = it()
5154
- } = t, n = Mt(t, [
5155
+ } = t, n = Ht(t, [
5155
5156
  "locale"
5156
5157
  ]);
5157
- return Uo(mn({ locale: r }, n));
5158
- }, ko = xr(
5158
+ return $o(_n({ locale: r }, n));
5159
+ }, Vo = Tr(
5159
5160
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
5160
- (e, t = it()) => new po(e, t, Tt().formats, {
5161
+ (e, t = it()) => new _o(e, t, Tt().formats, {
5161
5162
  ignoreTag: Tt().ignoreTag
5162
5163
  })
5163
- ), jo = (e, t = {}) => {
5164
+ ), Xo = (e, t = {}) => {
5164
5165
  var r, n, i, s;
5165
5166
  let a = t;
5166
5167
  typeof e == "object" && (a = e, e = a.id);
@@ -5173,7 +5174,7 @@ const $t = (e, t) => {
5173
5174
  throw new Error(
5174
5175
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
5175
5176
  );
5176
- let l = Zi(e, o);
5177
+ let l = Qi(e, o);
5177
5178
  if (!l)
5178
5179
  l = (s = (i = (n = (r = Tt()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: o, id: e, defaultValue: f })) != null ? i : f) != null ? s : e;
5179
5180
  else if (typeof l != "string")
@@ -5184,7 +5185,7 @@ const $t = (e, t) => {
5184
5185
  return l;
5185
5186
  let h = l;
5186
5187
  try {
5187
- h = ko(l, o).format(u);
5188
+ h = Vo(l, o).format(u);
5188
5189
  } catch (d) {
5189
5190
  d instanceof Error && console.warn(
5190
5191
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -5192,25 +5193,25 @@ const $t = (e, t) => {
5192
5193
  );
5193
5194
  }
5194
5195
  return h;
5195
- }, Yo = (e, t) => $o(t).format(e), Vo = (e, t) => Go(t).format(e), Xo = (e, t) => Fo(t).format(e), Wo = (e, t = it()) => Zi(e, t), zo = Ht([Wt, Xt], () => jo);
5196
- Ht([Wt], () => Yo);
5197
- Ht([Wt], () => Vo);
5198
- Ht([Wt], () => Xo);
5199
- Ht([Wt, Xt], () => Wo);
5200
- var ts = { exports: {} };
5196
+ }, Wo = (e, t) => Yo(t).format(e), zo = (e, t) => jo(t).format(e), Zo = (e, t) => ko(t).format(e), qo = (e, t = it()) => Qi(e, t), Qo = Mt([zt, Wt], () => Xo);
5197
+ Mt([zt], () => Wo);
5198
+ Mt([zt], () => zo);
5199
+ Mt([zt], () => Zo);
5200
+ Mt([zt, Wt], () => qo);
5201
+ var ns = { exports: {} };
5201
5202
  (function(e, t) {
5202
5203
  (function(r, n) {
5203
5204
  e.exports = n();
5204
- })(Ii, function() {
5205
+ })(Bi, function() {
5205
5206
  var r = 1e3, n = 6e4, i = 36e5, s = "millisecond", a = "second", u = "minute", o = "hour", f = "day", l = "week", h = "month", d = "quarter", c = "year", p = "date", g = "Invalid Date", m = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, w = /\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, O = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(x) {
5206
5207
  var _ = ["th", "st", "nd", "rd"], v = x % 100;
5207
5208
  return "[" + x + (_[(v - 20) % 10] || _[v] || _[0]) + "]";
5208
- } }, H = function(x, _, v) {
5209
+ } }, M = function(x, _, v) {
5209
5210
  var E = String(x);
5210
5211
  return !E || E.length >= _ ? x : "" + Array(_ + 1 - E.length).join(v) + x;
5211
- }, X = { s: H, z: function(x) {
5212
+ }, X = { s: M, z: function(x) {
5212
5213
  var _ = -x.utcOffset(), v = Math.abs(_), E = Math.floor(v / 60), b = v % 60;
5213
- return (_ <= 0 ? "+" : "-") + H(E, 2, "0") + ":" + H(b, 2, "0");
5214
+ return (_ <= 0 ? "+" : "-") + M(E, 2, "0") + ":" + M(b, 2, "0");
5214
5215
  }, m: function x(_, v) {
5215
5216
  if (_.date() < v.date()) return -x(v, _);
5216
5217
  var E = 12 * (v.year() - _.year()) + (v.month() - _.month()), b = _.clone().add(E, h), T = v - b < 0, S = _.clone().add(E + (T ? -1 : 1), h);
@@ -5242,8 +5243,8 @@ var ts = { exports: {} };
5242
5243
  if (ie(x)) return x.clone();
5243
5244
  var v = typeof _ == "object" ? _ : {};
5244
5245
  return v.date = x, v.args = arguments, new Z(v);
5245
- }, M = X;
5246
- M.l = J, M.i = ie, M.w = function(x, _) {
5246
+ }, H = X;
5247
+ H.l = J, H.i = ie, H.w = function(x, _) {
5247
5248
  return D(x, { locale: _.$L, utc: _.$u, x: _.$x, $offset: _.$offset });
5248
5249
  };
5249
5250
  var Z = function() {
@@ -5255,7 +5256,7 @@ var ts = { exports: {} };
5255
5256
  this.$d = function(E) {
5256
5257
  var b = E.date, T = E.utc;
5257
5258
  if (b === null) return /* @__PURE__ */ new Date(NaN);
5258
- if (M.u(b)) return /* @__PURE__ */ new Date();
5259
+ if (H.u(b)) return /* @__PURE__ */ new Date();
5259
5260
  if (b instanceof Date) return new Date(b);
5260
5261
  if (typeof b == "string" && !/Z$/i.test(b)) {
5261
5262
  var S = b.match(m);
@@ -5270,7 +5271,7 @@ var ts = { exports: {} };
5270
5271
  var v = this.$d;
5271
5272
  this.$y = v.getFullYear(), this.$M = v.getMonth(), this.$D = v.getDate(), this.$W = v.getDay(), this.$H = v.getHours(), this.$m = v.getMinutes(), this.$s = v.getSeconds(), this.$ms = v.getMilliseconds();
5272
5273
  }, _.$utils = function() {
5273
- return M;
5274
+ return H;
5274
5275
  }, _.isValid = function() {
5275
5276
  return this.$d.toString() !== g;
5276
5277
  }, _.isSame = function(v, E) {
@@ -5281,17 +5282,17 @@ var ts = { exports: {} };
5281
5282
  }, _.isBefore = function(v, E) {
5282
5283
  return this.endOf(E) < D(v);
5283
5284
  }, _.$g = function(v, E, b) {
5284
- return M.u(v) ? this[E] : this.set(b, v);
5285
+ return H.u(v) ? this[E] : this.set(b, v);
5285
5286
  }, _.unix = function() {
5286
5287
  return Math.floor(this.valueOf() / 1e3);
5287
5288
  }, _.valueOf = function() {
5288
5289
  return this.$d.getTime();
5289
5290
  }, _.startOf = function(v, E) {
5290
- var b = this, T = !!M.u(E) || E, S = M.p(v), A = function(we, ee) {
5291
- var de = M.w(b.$u ? Date.UTC(b.$y, ee, we) : new Date(b.$y, ee, we), b);
5291
+ var b = this, T = !!H.u(E) || E, S = H.p(v), A = function(we, ee) {
5292
+ var de = H.w(b.$u ? Date.UTC(b.$y, ee, we) : new Date(b.$y, ee, we), b);
5292
5293
  return T ? de : de.endOf(f);
5293
5294
  }, R = function(we, ee) {
5294
- return M.w(b.toDate()[we].apply(b.toDate("s"), (T ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ee)), b);
5295
+ return H.w(b.toDate()[we].apply(b.toDate("s"), (T ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ee)), b);
5295
5296
  }, G = this.$W, q = this.$M, oe = this.$D, Le = "set" + (this.$u ? "UTC" : "");
5296
5297
  switch (S) {
5297
5298
  case c:
@@ -5316,7 +5317,7 @@ var ts = { exports: {} };
5316
5317
  }, _.endOf = function(v) {
5317
5318
  return this.startOf(v, !1);
5318
5319
  }, _.$set = function(v, E) {
5319
- var b, T = M.p(v), S = "set" + (this.$u ? "UTC" : ""), A = (b = {}, b[f] = S + "Date", b[p] = S + "Date", b[h] = S + "Month", b[c] = S + "FullYear", b[o] = S + "Hours", b[u] = S + "Minutes", b[a] = S + "Seconds", b[s] = S + "Milliseconds", b)[T], R = T === f ? this.$D + (E - this.$W) : E;
5320
+ var b, T = H.p(v), S = "set" + (this.$u ? "UTC" : ""), A = (b = {}, b[f] = S + "Date", b[p] = S + "Date", b[h] = S + "Month", b[c] = S + "FullYear", b[o] = S + "Hours", b[u] = S + "Minutes", b[a] = S + "Seconds", b[s] = S + "Milliseconds", b)[T], R = T === f ? this.$D + (E - this.$W) : E;
5320
5321
  if (T === h || T === c) {
5321
5322
  var G = this.clone().set(p, 1);
5322
5323
  G.$d[A](R), G.init(), this.$d = G.set(p, Math.min(this.$D, G.daysInMonth())).$d;
@@ -5325,44 +5326,44 @@ var ts = { exports: {} };
5325
5326
  }, _.set = function(v, E) {
5326
5327
  return this.clone().$set(v, E);
5327
5328
  }, _.get = function(v) {
5328
- return this[M.p(v)]();
5329
+ return this[H.p(v)]();
5329
5330
  }, _.add = function(v, E) {
5330
5331
  var b, T = this;
5331
5332
  v = Number(v);
5332
- var S = M.p(E), A = function(q) {
5333
+ var S = H.p(E), A = function(q) {
5333
5334
  var oe = D(T);
5334
- return M.w(oe.date(oe.date() + Math.round(q * v)), T);
5335
+ return H.w(oe.date(oe.date() + Math.round(q * v)), T);
5335
5336
  };
5336
5337
  if (S === h) return this.set(h, this.$M + v);
5337
5338
  if (S === c) return this.set(c, this.$y + v);
5338
5339
  if (S === f) return A(1);
5339
5340
  if (S === l) return A(7);
5340
5341
  var R = (b = {}, b[u] = n, b[o] = i, b[a] = r, b)[S] || 1, G = this.$d.getTime() + v * R;
5341
- return M.w(G, this);
5342
+ return H.w(G, this);
5342
5343
  }, _.subtract = function(v, E) {
5343
5344
  return this.add(-1 * v, E);
5344
5345
  }, _.format = function(v) {
5345
5346
  var E = this, b = this.$locale();
5346
5347
  if (!this.isValid()) return b.invalidDate || g;
5347
- var T = v || "YYYY-MM-DDTHH:mm:ssZ", S = M.z(this), A = this.$H, R = this.$m, G = this.$M, q = b.weekdays, oe = b.months, Le = b.meridiem, Pe = function(ee, de, Ie, Re) {
5348
- return ee && (ee[de] || ee(E, T)) || Ie[de].slice(0, Re);
5348
+ var T = v || "YYYY-MM-DDTHH:mm:ssZ", S = H.z(this), A = this.$H, R = this.$m, G = this.$M, q = b.weekdays, oe = b.months, Le = b.meridiem, Pe = function(ee, de, Ne, Re) {
5349
+ return ee && (ee[de] || ee(E, T)) || Ne[de].slice(0, Re);
5349
5350
  }, ze = function(ee) {
5350
- return M.s(A % 12 || 12, ee, "0");
5351
- }, we = Le || function(ee, de, Ie) {
5351
+ return H.s(A % 12 || 12, ee, "0");
5352
+ }, we = Le || function(ee, de, Ne) {
5352
5353
  var Re = ee < 12 ? "AM" : "PM";
5353
- return Ie ? Re.toLowerCase() : Re;
5354
+ return Ne ? Re.toLowerCase() : Re;
5354
5355
  };
5355
5356
  return T.replace(w, function(ee, de) {
5356
- return de || function(Ie) {
5357
- switch (Ie) {
5357
+ return de || function(Ne) {
5358
+ switch (Ne) {
5358
5359
  case "YY":
5359
5360
  return String(E.$y).slice(-2);
5360
5361
  case "YYYY":
5361
- return M.s(E.$y, 4, "0");
5362
+ return H.s(E.$y, 4, "0");
5362
5363
  case "M":
5363
5364
  return G + 1;
5364
5365
  case "MM":
5365
- return M.s(G + 1, 2, "0");
5366
+ return H.s(G + 1, 2, "0");
5366
5367
  case "MMM":
5367
5368
  return Pe(b.monthsShort, G, oe, 3);
5368
5369
  case "MMMM":
@@ -5370,7 +5371,7 @@ var ts = { exports: {} };
5370
5371
  case "D":
5371
5372
  return E.$D;
5372
5373
  case "DD":
5373
- return M.s(E.$D, 2, "0");
5374
+ return H.s(E.$D, 2, "0");
5374
5375
  case "d":
5375
5376
  return String(E.$W);
5376
5377
  case "dd":
@@ -5382,7 +5383,7 @@ var ts = { exports: {} };
5382
5383
  case "H":
5383
5384
  return String(A);
5384
5385
  case "HH":
5385
- return M.s(A, 2, "0");
5386
+ return H.s(A, 2, "0");
5386
5387
  case "h":
5387
5388
  return ze(1);
5388
5389
  case "hh":
@@ -5394,13 +5395,13 @@ var ts = { exports: {} };
5394
5395
  case "m":
5395
5396
  return String(R);
5396
5397
  case "mm":
5397
- return M.s(R, 2, "0");
5398
+ return H.s(R, 2, "0");
5398
5399
  case "s":
5399
5400
  return String(E.$s);
5400
5401
  case "ss":
5401
- return M.s(E.$s, 2, "0");
5402
+ return H.s(E.$s, 2, "0");
5402
5403
  case "SSS":
5403
- return M.s(E.$ms, 3, "0");
5404
+ return H.s(E.$ms, 3, "0");
5404
5405
  case "Z":
5405
5406
  return S;
5406
5407
  }
@@ -5410,8 +5411,8 @@ var ts = { exports: {} };
5410
5411
  }, _.utcOffset = function() {
5411
5412
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
5412
5413
  }, _.diff = function(v, E, b) {
5413
- var T, S = this, A = M.p(E), R = D(v), G = (R.utcOffset() - this.utcOffset()) * n, q = this - R, oe = function() {
5414
- return M.m(S, R);
5414
+ var T, S = this, A = H.p(E), R = D(v), G = (R.utcOffset() - this.utcOffset()) * n, q = this - R, oe = function() {
5415
+ return H.m(S, R);
5415
5416
  };
5416
5417
  switch (A) {
5417
5418
  case c:
@@ -5441,7 +5442,7 @@ var ts = { exports: {} };
5441
5442
  default:
5442
5443
  T = q;
5443
5444
  }
5444
- return b ? T : M.a(T);
5445
+ return b ? T : H.a(T);
5445
5446
  }, _.daysInMonth = function() {
5446
5447
  return this.endOf(h).$D;
5447
5448
  }, _.$locale = function() {
@@ -5451,7 +5452,7 @@ var ts = { exports: {} };
5451
5452
  var b = this.clone(), T = J(v, E, !0);
5452
5453
  return T && (b.$L = T), b;
5453
5454
  }, _.clone = function() {
5454
- return M.w(this.$d, this);
5455
+ return H.w(this.$d, this);
5455
5456
  }, _.toDate = function() {
5456
5457
  return new Date(this.valueOf());
5457
5458
  }, _.toJSON = function() {
@@ -5472,14 +5473,14 @@ var ts = { exports: {} };
5472
5473
  return D(1e3 * x);
5473
5474
  }, D.en = Y[L], D.Ls = Y, D.p = {}, D;
5474
5475
  });
5475
- })(ts);
5476
- var Zo = ts.exports;
5477
- const vn = /* @__PURE__ */ dn(Zo);
5478
- var rs = { exports: {} };
5476
+ })(ns);
5477
+ var Jo = ns.exports;
5478
+ const bn = /* @__PURE__ */ mn(Jo);
5479
+ var is = { exports: {} };
5479
5480
  (function(e, t) {
5480
5481
  (function(r, n) {
5481
5482
  e.exports = n();
5482
- })(Ii, function() {
5483
+ })(Bi, function() {
5483
5484
  var r = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, n = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, i = /\d/, s = /\d\d/, a = /\d\d?/, u = /\d*[^-_:/,()\s\d]+/, o = {}, f = function(m) {
5484
5485
  return (m = +m) + (m > 68 ? 1900 : 2e3);
5485
5486
  }, l = function(m) {
@@ -5489,16 +5490,16 @@ var rs = { exports: {} };
5489
5490
  }, h = [/[+-]\d\d:?(\d\d)?|Z/, function(m) {
5490
5491
  (this.zone || (this.zone = {})).offset = function(w) {
5491
5492
  if (!w || w === "Z") return 0;
5492
- var O = w.match(/([+-]|\d\d)/g), H = 60 * O[1] + (+O[2] || 0);
5493
- return H === 0 ? 0 : O[0] === "+" ? -H : H;
5493
+ var O = w.match(/([+-]|\d\d)/g), M = 60 * O[1] + (+O[2] || 0);
5494
+ return M === 0 ? 0 : O[0] === "+" ? -M : M;
5494
5495
  }(m);
5495
5496
  }], d = function(m) {
5496
5497
  var w = o[m];
5497
5498
  return w && (w.indexOf ? w : w.s.concat(w.f));
5498
5499
  }, c = function(m, w) {
5499
- var O, H = o.meridiem;
5500
- if (H) {
5501
- for (var X = 1; X <= 24; X += 1) if (m.indexOf(H(X, 0, w)) > -1) {
5500
+ var O, M = o.meridiem;
5501
+ if (M) {
5502
+ for (var X = 1; X <= 24; X += 1) if (m.indexOf(M(X, 0, w)) > -1) {
5502
5503
  O = X > 12;
5503
5504
  break;
5504
5505
  }
@@ -5518,10 +5519,10 @@ var rs = { exports: {} };
5518
5519
  this.milliseconds = +m;
5519
5520
  }], s: [a, l("seconds")], ss: [a, l("seconds")], m: [a, l("minutes")], mm: [a, l("minutes")], H: [a, l("hours")], h: [a, l("hours")], HH: [a, l("hours")], hh: [a, l("hours")], D: [a, l("day")], DD: [s, l("day")], Do: [u, function(m) {
5520
5521
  var w = o.ordinal, O = m.match(/\d+/);
5521
- if (this.day = O[0], w) for (var H = 1; H <= 31; H += 1) w(H).replace(/\[|\]/g, "") === m && (this.day = H);
5522
+ if (this.day = O[0], w) for (var M = 1; M <= 31; M += 1) w(M).replace(/\[|\]/g, "") === m && (this.day = M);
5522
5523
  }], w: [a, l("week")], ww: [s, l("week")], M: [a, l("month")], MM: [s, l("month")], MMM: [u, function(m) {
5523
- var w = d("months"), O = (d("monthsShort") || w.map(function(H) {
5524
- return H.slice(0, 3);
5524
+ var w = d("months"), O = (d("monthsShort") || w.map(function(M) {
5525
+ return M.slice(0, 3);
5525
5526
  })).indexOf(m) + 1;
5526
5527
  if (O < 1) throw new Error();
5527
5528
  this.month = O % 12 || O;
@@ -5535,22 +5536,22 @@ var rs = { exports: {} };
5535
5536
  function g(m) {
5536
5537
  var w, O;
5537
5538
  w = m, O = o && o.formats;
5538
- for (var H = (m = w.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(D, M, Z) {
5539
+ for (var M = (m = w.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(D, H, Z) {
5539
5540
  var K = Z && Z.toUpperCase();
5540
- return M || O[Z] || r[Z] || O[K].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(x, _, v) {
5541
+ return H || O[Z] || r[Z] || O[K].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(x, _, v) {
5541
5542
  return _ || v.slice(1);
5542
5543
  });
5543
- })).match(n), X = H.length, L = 0; L < X; L += 1) {
5544
- var Y = H[L], ne = p[Y], ie = ne && ne[0], J = ne && ne[1];
5545
- H[L] = J ? { regex: ie, parser: J } : Y.replace(/^\[|\]$/g, "");
5544
+ })).match(n), X = M.length, L = 0; L < X; L += 1) {
5545
+ var Y = M[L], ne = p[Y], ie = ne && ne[0], J = ne && ne[1];
5546
+ M[L] = J ? { regex: ie, parser: J } : Y.replace(/^\[|\]$/g, "");
5546
5547
  }
5547
5548
  return function(D) {
5548
- for (var M = {}, Z = 0, K = 0; Z < X; Z += 1) {
5549
- var x = H[Z];
5549
+ for (var H = {}, Z = 0, K = 0; Z < X; Z += 1) {
5550
+ var x = M[Z];
5550
5551
  if (typeof x == "string") K += x.length;
5551
5552
  else {
5552
5553
  var _ = x.regex, v = x.parser, E = D.slice(K), b = _.exec(E)[0];
5553
- v.call(M, b), D = D.replace(b, "");
5554
+ v.call(H, b), D = D.replace(b, "");
5554
5555
  }
5555
5556
  }
5556
5557
  return function(T) {
@@ -5559,26 +5560,26 @@ var rs = { exports: {} };
5559
5560
  var A = T.hours;
5560
5561
  S ? A < 12 && (T.hours += 12) : A === 12 && (T.hours = 0), delete T.afternoon;
5561
5562
  }
5562
- }(M), M;
5563
+ }(H), H;
5563
5564
  };
5564
5565
  }
5565
5566
  return function(m, w, O) {
5566
5567
  O.p.customParseFormat = !0, m && m.parseTwoDigitYear && (f = m.parseTwoDigitYear);
5567
- var H = w.prototype, X = H.parse;
5568
- H.parse = function(L) {
5568
+ var M = w.prototype, X = M.parse;
5569
+ M.parse = function(L) {
5569
5570
  var Y = L.date, ne = L.utc, ie = L.args;
5570
5571
  this.$u = ne;
5571
5572
  var J = ie[1];
5572
5573
  if (typeof J == "string") {
5573
- var D = ie[2] === !0, M = ie[3] === !0, Z = D || M, K = ie[2];
5574
- M && (K = ie[2]), o = this.$locale(), !D && K && (o = O.Ls[K]), this.$d = function(E, b, T, S) {
5574
+ var D = ie[2] === !0, H = ie[3] === !0, Z = D || H, K = ie[2];
5575
+ H && (K = ie[2]), o = this.$locale(), !D && K && (o = O.Ls[K]), this.$d = function(E, b, T, S) {
5575
5576
  try {
5576
5577
  if (["x", "X"].indexOf(b) > -1) return new Date((b === "X" ? 1e3 : 1) * E);
5577
- var A = g(b)(E), R = A.year, G = A.month, q = A.day, oe = A.hours, Le = A.minutes, Pe = A.seconds, ze = A.milliseconds, we = A.zone, ee = A.week, de = /* @__PURE__ */ new Date(), Ie = q || (R || G ? 1 : de.getDate()), Re = R || de.getFullYear(), zt = 0;
5578
- R && !G || (zt = G > 0 ? G - 1 : de.getMonth());
5579
- var Zt, Tr = oe || 0, Sr = Le || 0, wr = Pe || 0, Hr = ze || 0;
5580
- return we ? new Date(Date.UTC(Re, zt, Ie, Tr, Sr, wr, Hr + 60 * we.offset * 1e3)) : T ? new Date(Date.UTC(Re, zt, Ie, Tr, Sr, wr, Hr)) : (Zt = new Date(Re, zt, Ie, Tr, Sr, wr, Hr), ee && (Zt = S(Zt).week(ee).toDate()), Zt);
5581
- } catch (eu) {
5578
+ var A = g(b)(E), R = A.year, G = A.month, q = A.day, oe = A.hours, Le = A.minutes, Pe = A.seconds, ze = A.milliseconds, we = A.zone, ee = A.week, de = /* @__PURE__ */ new Date(), Ne = q || (R || G ? 1 : de.getDate()), Re = R || de.getFullYear(), Zt = 0;
5579
+ R && !G || (Zt = G > 0 ? G - 1 : de.getMonth());
5580
+ var qt, Sr = oe || 0, wr = Le || 0, Mr = Pe || 0, Hr = ze || 0;
5581
+ return we ? new Date(Date.UTC(Re, Zt, Ne, Sr, wr, Mr, Hr + 60 * we.offset * 1e3)) : T ? new Date(Date.UTC(Re, Zt, Ne, Sr, wr, Mr, Hr)) : (qt = new Date(Re, Zt, Ne, Sr, wr, Mr, Hr), ee && (qt = S(qt).week(ee).toDate()), qt);
5582
+ } catch (nu) {
5582
5583
  return /* @__PURE__ */ new Date("");
5583
5584
  }
5584
5585
  }(Y, J, ne, O), this.init(), K && K !== !0 && (this.$L = this.locale(K).$L), Z && Y != this.format(J) && (this.$d = /* @__PURE__ */ new Date("")), o = {};
@@ -5595,20 +5596,20 @@ var rs = { exports: {} };
5595
5596
  };
5596
5597
  };
5597
5598
  });
5598
- })(rs);
5599
- var qo = rs.exports;
5600
- const Qo = /* @__PURE__ */ dn(qo);
5601
- vn.extend(Qo);
5602
- const $n = (e) => vn(e).format("MMMM D, HH:mm"), al = () => typeof window == "undefined", ol = (e) => {
5603
- const t = vn(e);
5599
+ })(is);
5600
+ var Ko = is.exports;
5601
+ const eu = /* @__PURE__ */ mn(Ko);
5602
+ bn.extend(eu);
5603
+ const jn = (e) => bn(e).format("MMMM D, HH:mm"), fl = () => typeof window == "undefined", hl = (e) => {
5604
+ const t = bn(e);
5604
5605
  return {
5605
5606
  date: t.format("MMM D, YYYY"),
5606
5607
  // "Jun 22, 2026"
5607
5608
  time: t.format("HH:mm:ss")
5608
5609
  // "08:26:35"
5609
5610
  };
5610
- }, ul = (e, t) => {
5611
- var u, o, f, l, h, d, c, p, g, m, w, O, H, X, L, Y, ne, ie, J, D, M, Z, K, x, _;
5611
+ }, cl = (e, t) => {
5612
+ var u, o, f, l, h, d, c, p, g, m, w, O, M, X, L, Y, ne, ie, J, D, H, Z, K, x, _;
5612
5613
  if (!e) return {};
5613
5614
  const r = (u = e == null ? void 0 : e.program) != null ? u : {}, n = (o = r == null ? void 0 : r.wheelOfFortune) != null ? o : {}, i = (f = r == null ? void 0 : r.trigger) != null ? f : {}, s = (l = e == null ? void 0 : e.current) != null ? l : {}, a = (h = e == null ? void 0 : e.next) != null ? h : {};
5614
5615
  return {
@@ -5616,31 +5617,31 @@ const $n = (e) => vn(e).format("MMMM D, HH:mm"), al = () => typeof window == "un
5616
5617
  name: (m = (g = (c = r == null ? void 0 : r.name) == null ? void 0 : c[t]) != null ? g : (p = r == null ? void 0 : r.name) == null ? void 0 : p["*"]) != null ? m : null,
5617
5618
  type: (w = r == null ? void 0 : r.type) != null ? w : null,
5618
5619
  status: (O = r == null ? void 0 : r.status) != null ? O : null,
5619
- startTime: (H = i == null ? void 0 : i.startTime) != null ? H : null,
5620
+ startTime: (M = i == null ? void 0 : i.startTime) != null ? M : null,
5620
5621
  endTime: (X = i == null ? void 0 : i.endTime) != null ? X : null,
5621
5622
  periods: (L = i == null ? void 0 : i.periods) != null ? L : [],
5622
5623
  partitions: (Y = n == null ? void 0 : n.partitions) != null ? Y : [],
5623
5624
  descriptions: (D = (J = (ne = r == null ? void 0 : r.description) == null ? void 0 : ne[t]) != null ? J : (ie = r == null ? void 0 : r.description) == null ? void 0 : ie["*"]) != null ? D : null,
5624
- termsUrl: (x = (K = (M = r == null ? void 0 : r.termsUrl) == null ? void 0 : M[t]) != null ? K : (Z = r == null ? void 0 : r.termsUrl) == null ? void 0 : Z["*"]) != null ? x : null,
5625
+ termsUrl: (x = (K = (H = r == null ? void 0 : r.termsUrl) == null ? void 0 : H[t]) != null ? K : (Z = r == null ? void 0 : r.termsUrl) == null ? void 0 : Z["*"]) != null ? x : null,
5625
5626
  current: s,
5626
5627
  next: a,
5627
5628
  remainingTimes: (_ = s == null ? void 0 : s.remainingTimes) != null ? _ : 0
5628
5629
  };
5629
- }, ns = (e, t, r) => {
5630
+ }, ss = (e, t, r) => {
5630
5631
  e /= 255, t /= 255, r /= 255;
5631
5632
  const n = Math.max(e, t, r), i = Math.min(e, t, r), s = (n + i) / 2;
5632
5633
  if (n === i) return [0, 0, Math.round(s * 100)];
5633
5634
  const a = n - i, u = s > 0.5 ? a / (2 - n - i) : a / (n + i);
5634
5635
  let o = 0;
5635
5636
  return n === e ? o = ((t - r) / a + (t < r ? 6 : 0)) / 6 : n === t ? o = ((r - e) / a + 2) / 6 : o = ((e - t) / a + 4) / 6, [Math.round(o * 360), Math.round(u * 100), Math.round(s * 100)];
5636
- }, tn = (e, t, r) => {
5637
+ }, nn = (e, t, r) => {
5637
5638
  t /= 100, r /= 100;
5638
5639
  const n = t * Math.min(r, 1 - r), i = (s) => {
5639
5640
  const a = (s + e / 30) % 12;
5640
5641
  return Math.round(255 * (r - n * Math.max(Math.min(a - 3, 9 - a, 1), -1))).toString(16).padStart(2, "0");
5641
5642
  };
5642
5643
  return `#${i(0)}${i(8)}${i(4)}`;
5643
- }, ll = (e) => {
5644
+ }, dl = (e) => {
5644
5645
  const t = document.createElement("canvas");
5645
5646
  t.width = e.naturalWidth, t.height = e.naturalHeight;
5646
5647
  const r = t.getContext("2d");
@@ -5649,12 +5650,12 @@ const $n = (e) => vn(e).format("MMMM D, HH:mm"), al = () => typeof window == "un
5649
5650
  for (let o = 0; o < n.length; o += 16) {
5650
5651
  const [f, l, h, d] = [n[o], n[o + 1], n[o + 2], n[o + 3]];
5651
5652
  if (d < 128) continue;
5652
- const [c, p, g] = ns(f, l, h);
5653
+ const [c, p, g] = ss(f, l, h);
5653
5654
  if (p < 30 || g < 15 || g > 85) continue;
5654
5655
  const m = Math.floor(c / 360 * i) % i;
5655
5656
  s[m].count++, s[m].totalH += c, s[m].totalS += p, s[m].totalL += g;
5656
5657
  }
5657
- const a = s.map((o, f) => gn(yn({}, o), { i: f })).filter((o) => o.count > 20).sort((o, f) => f.count - o.count), u = [];
5658
+ const a = s.map((o, f) => xn(En({}, o), { i: f })).filter((o) => o.count > 20).sort((o, f) => f.count - o.count), u = [];
5658
5659
  for (const o of a)
5659
5660
  if (u.some((l) => {
5660
5661
  const h = Math.abs(l.i - o.i);
@@ -5662,31 +5663,31 @@ const $n = (e) => vn(e).format("MMMM D, HH:mm"), al = () => typeof window == "un
5662
5663
  }) || u.push(o), u.length === 2) break;
5663
5664
  return u.map((o) => {
5664
5665
  const f = o.totalH / o.count, l = Math.min(100, o.totalS / o.count * 1.15), h = Math.max(32, Math.min(52, o.totalL / o.count));
5665
- return tn(f, l, h);
5666
+ return nn(f, l, h);
5666
5667
  });
5667
- }, fl = (e) => {
5668
- const t = parseInt(e.slice(1, 3), 16), r = parseInt(e.slice(3, 5), 16), n = parseInt(e.slice(5, 7), 16), [i, s, a] = ns(t, r, n), u = tn(i, Math.min(100, s * 1.08), Math.min(78, a * 1.32)), o = tn(i, s, Math.max(14, a * 0.58));
5668
+ }, pl = (e) => {
5669
+ const t = parseInt(e.slice(1, 3), 16), r = parseInt(e.slice(3, 5), 16), n = parseInt(e.slice(5, 7), 16), [i, s, a] = ss(t, r, n), u = nn(i, Math.min(100, s * 1.08), Math.min(78, a * 1.32)), o = nn(i, s, Math.max(14, a * 0.58));
5669
5670
  return [u, e, o];
5670
- }, Qt = (e, t) => {
5671
+ }, Jt = (e, t) => {
5671
5672
  const r = (t - 90) * Math.PI / 180;
5672
5673
  return { x: e * Math.cos(r), y: e * Math.sin(r) };
5673
- }, hl = (e, t, r = 0.96, n = 0.225) => {
5674
- const i = Qt(r, e), s = Qt(r, t), a = Qt(n, t), u = Qt(n, e), o = t - e > 180 ? 1 : 0;
5674
+ }, ml = (e, t, r = 0.96, n = 0.225) => {
5675
+ const i = Jt(r, e), s = Jt(r, t), a = Jt(n, t), u = Jt(n, e), o = t - e > 180 ? 1 : 0;
5675
5676
  return `M ${i.x} ${i.y} A ${r} ${r} 0 ${o} 1 ${s.x} ${s.y} L ${a.x} ${a.y} A ${n} ${n} 0 ${o} 0 ${u.x} ${u.y} Z`;
5676
- }, cl = (e) => {
5677
+ }, vl = (e) => {
5677
5678
  var r, n, i;
5678
5679
  const t = e == null ? void 0 : e.name;
5679
5680
  return !t || typeof t != "object" ? "" : (i = (n = (r = t["*"]) != null ? r : t.en) != null ? n : Object.values(t)[0]) != null ? i : "";
5680
- }, dl = (e) => {
5681
+ }, _l = (e) => {
5681
5682
  var n, i, s;
5682
5683
  const t = e == null ? void 0 : e.image1;
5683
5684
  if (!t || typeof t != "object") return "";
5684
5685
  const r = (s = (i = (n = t["*"]) != null ? n : t.en) != null ? i : Object.values(t)[0]) != null ? s : "";
5685
5686
  return r.startsWith("//") ? `https:${r}` : r;
5686
- }, pl = () => typeof crypto != "undefined" && typeof crypto.randomUUID == "function" ? crypto.randomUUID() : Jo(), Jo = () => "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
5687
+ }, bl = () => typeof crypto != "undefined" && typeof crypto.randomUUID == "function" ? crypto.randomUUID() : tu(), tu = () => "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
5687
5688
  var t = Math.random() * 16 | 0, r = e == "x" ? t : t & 3 | 8;
5688
5689
  return r.toString(16);
5689
- }), ml = (e, t) => {
5690
+ }), yl = (e, t) => {
5690
5691
  var s, a, u, o, f, l, h, d, c, p, g;
5691
5692
  const r = t === "draw" ? e == null ? void 0 : e.item : (s = e == null ? void 0 : e.draw) != null ? s : {}, n = (a = r == null ? void 0 : r.result) != null ? a : {}, i = (o = (u = n == null ? void 0 : n.outcomes) == null ? void 0 : u[0]) != null ? o : {};
5692
5693
  return {
@@ -5699,7 +5700,7 @@ const $n = (e) => vn(e).format("MMMM D, HH:mm"), al = () => typeof window == "un
5699
5700
  lotteryProgramID: (g = r == null ? void 0 : r.lotteryProgramID) != null ? g : null,
5700
5701
  success: e == null ? void 0 : e.success
5701
5702
  };
5702
- }, Ko = [
5703
+ }, ru = [
5703
5704
  "days.sunday",
5704
5705
  "days.monday",
5705
5706
  "days.tuesday",
@@ -5707,12 +5708,12 @@ const $n = (e) => vn(e).format("MMMM D, HH:mm"), al = () => typeof window == "un
5707
5708
  "days.thursday",
5708
5709
  "days.friday",
5709
5710
  "days.saturday"
5710
- ], vl = (e) => {
5711
- const t = aa(zo);
5711
+ ], gl = (e) => {
5712
+ const t = la(Qo);
5712
5713
  if (!e) return "";
5713
- const { recurrenceType: r, frequency: n, dayFrom: i, dayTo: s, maxImplicitTickets: a, startTime: u, endTime: o } = e, f = r == null ? void 0 : r.toLowerCase(), l = a || 0, h = `${$n(u)} ~ ${$n(o)}`, d = i !== 0 || s !== 0, c = (p) => {
5714
+ const { recurrenceType: r, frequency: n, dayFrom: i, dayTo: s, maxImplicitTickets: a, startTime: u, endTime: o } = e, f = r == null ? void 0 : r.toLowerCase(), l = a || 0, h = `${jn(u)} ~ ${jn(o)}`, d = i !== 0 || s !== 0, c = (p) => {
5714
5715
  var g;
5715
- return t((g = Ko[p]) != null ? g : "");
5716
+ return t((g = ru[p]) != null ? g : "");
5716
5717
  };
5717
5718
  switch (f) {
5718
5719
  case "minute":
@@ -5728,148 +5729,165 @@ const $n = (e) => vn(e).format("MMMM D, HH:mm"), al = () => typeof window == "un
5728
5729
  default:
5729
5730
  return t("recurrence.single", { values: { count: l, range: h } });
5730
5731
  }
5732
+ }, Ot = (e, t) => e + Math.random() * (t - e), El = Array.from({ length: hs }, () => ({
5733
+ blue: Math.random() < 0.5,
5734
+ left: Ot(0, 100),
5735
+ size: Ot(2, 5),
5736
+ duration: Ot(5, 11),
5737
+ delay: Ot(0, 8),
5738
+ drift: Math.round(Ot(-30, 30))
5739
+ })), Fr = (e) => String(e).padStart(2, "0"), xl = (e) => {
5740
+ const t = Math.max(0, Math.floor((new Date(e != null ? e : "").getTime() - Date.now()) / 1e3)) || 0;
5741
+ return {
5742
+ days: Math.floor(t / 86400),
5743
+ hours: Fr(Math.floor(t % 86400 / 3600)),
5744
+ minutes: Fr(Math.floor(t % 3600 / 60)),
5745
+ seconds: Fr(t % 60)
5746
+ };
5731
5747
  };
5732
5748
  export {
5733
5749
  We as $,
5734
5750
  B as A,
5735
- vs as B,
5736
- ra as C,
5751
+ ys as B,
5752
+ sa as C,
5737
5753
  le as D,
5738
- il as E,
5739
- Rs as F,
5740
- sr as G,
5741
- du as H,
5754
+ ul as E,
5755
+ Gs as F,
5756
+ ar as G,
5757
+ _u as H,
5742
5758
  nt as I,
5743
5759
  _e as J,
5744
- Vr as K,
5760
+ Wr as K,
5745
5761
  ut as L,
5746
- pr as M,
5762
+ mr as M,
5747
5763
  Ye as N,
5748
- Mu as O,
5749
- Au as P,
5750
- rr as Q,
5764
+ Nu as O,
5765
+ Iu as P,
5766
+ nr as Q,
5751
5767
  St as R,
5752
5768
  wt as S,
5753
- cu as T,
5754
- Su as U,
5755
- Cu as V,
5756
- _r as W,
5757
- Es as X,
5758
- ku as Y,
5759
- Jn as Z,
5760
- ls as _,
5769
+ vu as T,
5770
+ Au as U,
5771
+ Uu as V,
5772
+ br as W,
5773
+ Ss as X,
5774
+ Xu as Y,
5775
+ ei as Z,
5776
+ cs as _,
5761
5777
  bt as a,
5762
- dn as a$,
5763
- wu as a0,
5764
- Nu as a1,
5765
- Xu as a2,
5766
- Ju as a3,
5767
- vu as a4,
5768
- Lu as a5,
5769
- Cs as a6,
5770
- hs as a7,
5771
- nn as a8,
5772
- Ru as a9,
5773
- Xn as aA,
5774
- bu as aB,
5775
- Eu as aC,
5776
- Tu as aD,
5777
- Ks as aE,
5778
- Or as aF,
5778
+ mn as a$,
5779
+ Ou as a0,
5780
+ Lu as a1,
5781
+ qu as a2,
5782
+ rl as a3,
5783
+ gu as a4,
5784
+ Gu as a5,
5785
+ Rs as a6,
5786
+ ps as a7,
5787
+ an as a8,
5788
+ $u as a9,
5789
+ zn as aA,
5790
+ wu as aB,
5791
+ xu as aC,
5792
+ Hu as aD,
5793
+ ra as aE,
5794
+ Pr as aF,
5779
5795
  tt as aG,
5780
- Pi as aH,
5781
- aa as aI,
5796
+ Ii as aH,
5797
+ la as aI,
5782
5798
  Ze as aJ,
5783
- an as aK,
5799
+ un as aK,
5784
5800
  Ve as aL,
5785
- Bt as aM,
5786
- Bu as aN,
5787
- uu as aO,
5788
- ou as aP,
5789
- Nt as aQ,
5790
- lu as aR,
5791
- fu as aS,
5792
- gu as aT,
5793
- Gu as aU,
5794
- _u as aV,
5795
- Qu as aW,
5796
- Wt as aX,
5797
- go as aY,
5798
- Xt as aZ,
5799
- Ii as a_,
5800
- nl as aa,
5801
- Wu as ab,
5802
- Pu as ac,
5803
- Zu as ad,
5804
- Oi as ae,
5805
- Iu as af,
5806
- iu as ag,
5807
- Fu as ah,
5808
- nu as ai,
5809
- ru as aj,
5810
- au as ak,
5811
- $u as al,
5812
- Yn as am,
5813
- yu as an,
5801
+ Ct as aM,
5802
+ Ru as aN,
5803
+ cu as aO,
5804
+ hu as aP,
5805
+ Bt as aQ,
5806
+ du as aR,
5807
+ pu as aS,
5808
+ Su as aT,
5809
+ Yu as aU,
5810
+ Eu as aV,
5811
+ tl as aW,
5812
+ zt as aX,
5813
+ To as aY,
5814
+ Wt as aZ,
5815
+ Bi as a_,
5816
+ ol as aa,
5817
+ Qu as ab,
5818
+ Cu as ac,
5819
+ Ku as ad,
5820
+ Ni as ae,
5821
+ Du as af,
5822
+ uu as ag,
5823
+ ju as ah,
5824
+ ou as ai,
5825
+ au as aj,
5826
+ fu as ak,
5827
+ Vu as al,
5828
+ Xn as am,
5829
+ Tu as an,
5814
5830
  ve as ao,
5815
5831
  Oe as ap,
5816
- su as aq,
5817
- el as ar,
5818
- ta as as,
5819
- pu as at,
5820
- mu as au,
5821
- Ku as av,
5822
- ys as aw,
5823
- gs as ax,
5824
- bs as ay,
5825
- cs as az,
5826
- I as b,
5827
- vn as b0,
5832
+ lu as aq,
5833
+ il as ar,
5834
+ ia as as,
5835
+ bu as at,
5836
+ yu as au,
5837
+ nl as av,
5838
+ xs as aw,
5839
+ Ts as ax,
5840
+ Es as ay,
5841
+ ms as az,
5842
+ N as b,
5843
+ bn as b0,
5828
5844
  Ue as b1,
5829
- ju as b2,
5830
- Vu as b3,
5831
- zo as b4,
5832
- ll as b5,
5833
- zs as b6,
5834
- pl as b7,
5835
- ml as b8,
5836
- Yu as b9,
5837
- Ts as ba,
5838
- Uu as bb,
5839
- fl as bc,
5840
- hl as bd,
5841
- Qt as be,
5842
- dl as bf,
5843
- cl as bg,
5844
- ol as bh,
5845
- vl as bi,
5846
- $n as bj,
5847
- Du as bk,
5848
- al as bl,
5849
- qu as bm,
5850
- ul as bn,
5845
+ Wu as b2,
5846
+ Zu as b3,
5847
+ Qo as b4,
5848
+ dl as b5,
5849
+ Qs as b6,
5850
+ zu as b7,
5851
+ bl as b8,
5852
+ yl as b9,
5853
+ Ms as ba,
5854
+ ku as bb,
5855
+ pl as bc,
5856
+ ml as bd,
5857
+ Jt as be,
5858
+ _l as bf,
5859
+ vl as bg,
5860
+ hl as bh,
5861
+ jn as bi,
5862
+ gl as bj,
5863
+ Fu as bk,
5864
+ xl as bl,
5865
+ El as bm,
5866
+ fl as bn,
5867
+ el as bo,
5868
+ cl as bp,
5851
5869
  U as c,
5852
- ps as d,
5853
- zu as e,
5854
- hu as f,
5855
- lr as g,
5870
+ _s as d,
5871
+ Ju as e,
5872
+ mu as f,
5873
+ fr as g,
5856
5874
  je as h,
5857
- Ws as i,
5858
- ur as j,
5875
+ qs as i,
5876
+ lr as j,
5859
5877
  Q as k,
5860
- mr as l,
5878
+ vr as l,
5861
5879
  _t as m,
5862
- fn as n,
5863
- Hu as o,
5864
- sl as p,
5865
- Fr as q,
5866
- tl as r,
5880
+ cn as n,
5881
+ Pu as o,
5882
+ ll as p,
5883
+ $r as q,
5884
+ sl as r,
5867
5885
  Xe as s,
5868
- Qs as t,
5869
- Ou as u,
5870
- fs as v,
5871
- vr as w,
5872
- rl as x,
5873
- Ur as y,
5874
- Ut as z
5886
+ ea as t,
5887
+ Bu as u,
5888
+ ds as v,
5889
+ _r as w,
5890
+ al as x,
5891
+ Gr as y,
5892
+ Ft as z
5875
5893
  };