@tempots/ui 1.2.1 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -1,17 +1,17 @@
1
- var fe = Object.defineProperty;
2
- var de = (t, e, n) => e in t ? fe(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
- var Ct = (t, e, n) => de(t, typeof e != "symbol" ? e + "" : e, n);
4
- import { makeProviderMark as Bt, Fragment as _, OnBrowserCtx as xt, Async as Pt, OnHeadlessCtx as he, UseProvider as Ut, makeProp as W, renderableOfTNode as lt, getWindow as vt, Signal as _t, html as It, on as jt, Value as J, attr as Yt, WithProvider as me, OnDispose as k, Empty as nt, OneOfType as bt, makeSignal as pe, OnElement as G, Portal as qt, When as Kt, Ensure as ge, OneOfTuple as ye, makeComputedOf as we, Prop as xe } from "@tempots/dom";
5
- import { delayed as Xt, AsyncResult as P, interval as ve } from "@tempots/std";
6
- const be = (t) => {
1
+ var de = Object.defineProperty;
2
+ var he = (t, e, n) => e in t ? de(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
+ var kt = (t, e, n) => he(t, typeof e != "symbol" ? e + "" : e, n);
4
+ import { makeProviderMark as zt, Fragment as X, WithBrowserCtx as xt, Async as Ct, WithHeadlessCtx as me, UseProvider as Bt, prop as W, renderableOfTNode as ct, getWindow as vt, Signal as Ut, html as _t, on as It, Value as J, attr as jt, SetProvider as pe, OnDispose as T, Empty as pt, OneOfType as Yt, WithElement as G, Portal as qt, When as Kt, OneOfTuple as ge, computedOf as ye, Prop as we } from "@tempots/dom";
5
+ import { delayed as Xt, AsyncResult as P, interval as xe } from "@tempots/std";
6
+ const ve = (t) => {
7
7
  const e = t.split("/").pop();
8
8
  if (e == null || e.startsWith(".")) return;
9
9
  const n = e.split(".") || [];
10
10
  return n.length > 1 ? "." + n.pop() : void 0;
11
- }, Ae = (t, e) => {
12
- const n = be(e);
11
+ }, be = (t, e) => {
12
+ const n = ve(e);
13
13
  return n != null && (t.length === 0 || !t.some((o) => n == o));
14
- }, Re = (t, e, n, o) => {
14
+ }, Ae = (t, e, n, o) => {
15
15
  let r = t.target;
16
16
  for (; r != null && !(r instanceof HTMLAnchorElement); )
17
17
  r = r.parentElement;
@@ -20,14 +20,14 @@ const be = (t) => {
20
20
  const i = r;
21
21
  if (t.button !== 0 || t.ctrlKey || t.metaKey || i.target !== "_self" && i.target !== "" || i.getAttribute("download") != null)
22
22
  return !0;
23
- const { pathname: s, search: c, hash: a } = i;
23
+ const { pathname: s, search: c, hash: l } = i;
24
24
  if (o) {
25
- const l = s + c + a, f = i.getAttribute("href");
26
- if (!(f != null && f.startsWith("#")) && f !== l)
25
+ const a = s + c + l, f = i.getAttribute("href");
26
+ if (!(f != null && f.startsWith("#")) && f !== a)
27
27
  return !0;
28
28
  }
29
- return e ? !1 : Ae(n, s);
30
- }, Ee = (t, e = {
29
+ return e ? !1 : be(n, s);
30
+ }, Re = (t, e = {
31
31
  ignoreUrlWithExtension: !0,
32
32
  allowedExtensions: [],
33
33
  ignoreExternalUrl: !0
@@ -36,30 +36,30 @@ const be = (t) => {
36
36
  (o) => o.startsWith(".") ? o : "." + o
37
37
  ) : [];
38
38
  return (o) => {
39
- Re(
39
+ Ae(
40
40
  o,
41
41
  e.ignoreUrlWithExtension ?? !0,
42
42
  n,
43
43
  e.ignoreExternalUrl ?? !0
44
44
  ) || t() && o.preventDefault();
45
45
  };
46
- }, Oe = Bt("LocationProvider"), Cn = (t) => _(
47
- xt(() => Pt(
48
- import("./browser-location-12vUH3Kv.js").then((e) => e.ProvideBrowserLocation),
46
+ }, Ee = zt("LocationProvider"), Tn = (t) => X(
47
+ xt(() => Ct(
48
+ import("./browser-location-Wn6jT0ta.js").then((e) => e.ProvideBrowserLocation),
49
49
  (e) => e(t)
50
50
  )),
51
- he((e) => Pt(
52
- import("./headless-location-Ba_ht5ZQ.js").then((n) => n.ProvideHeadlessLocation),
51
+ me((e) => Ct(
52
+ import("./headless-location-CR5zPUNK.js").then((n) => n.ProvideHeadlessLocation),
53
53
  (n) => n(e.container.currentURL, t)
54
54
  ))
55
- ), Jt = (t) => Ut(Oe, (e) => (n) => {
55
+ ), Jt = (t) => Bt(Ee, (e) => (n) => {
56
56
  const o = W(e.value, e.equals);
57
57
  e.feedProp(o), o.on(e.set);
58
- const r = lt(t(o))(n);
58
+ const r = ct(t(o))(n);
59
59
  return (i) => {
60
60
  o.dispose(), r(i);
61
61
  };
62
- }), Pn = (t, e) => t.pathname === e.pathname && JSON.stringify(t.search) === JSON.stringify(e.search) && t.hash === e.hash, Le = (t, e) => {
62
+ }), kn = (t, e) => t.pathname === e.pathname && JSON.stringify(t.search) === JSON.stringify(e.search) && t.hash === e.hash, Oe = (t, e) => {
63
63
  var i;
64
64
  const n = new URL(t, e ?? ((i = vt()) == null ? void 0 : i.location.toString())), o = Object.fromEntries(n.searchParams.entries());
65
65
  let r = n.hash;
@@ -68,53 +68,50 @@ const be = (t) => {
68
68
  search: o,
69
69
  hash: r === "" ? void 0 : r
70
70
  };
71
- }, ke = (t, e) => {
72
- const n = Le(e);
71
+ }, Le = (t, e) => {
72
+ const n = Oe(e);
73
73
  return t.set(n), t;
74
- }, Dn = (t) => {
74
+ }, Cn = (t) => {
75
75
  const n = new URLSearchParams(t.search).toString(), o = t.hash;
76
76
  return `${t.pathname}${n ? `?${n}` : ""}${o ? `#${o}` : ""}`;
77
77
  }, Se = (t, ...e) => {
78
- if (typeof t == "string" || _t.is(t))
78
+ if (typeof t == "string" || Ut.is(t))
79
79
  return Se({ href: t }, ...e);
80
80
  const { href: n, ...o } = t;
81
- return Jt((r) => It.a(
82
- jt.click(
83
- Ee(() => (ke(r, J.get(n)), !0), o)
81
+ return Jt((r) => _t.a(
82
+ It.click(
83
+ Re(() => (Le(r, J.get(n)), !0), o)
84
84
  ),
85
- Yt.href(n),
85
+ jt.href(n),
86
86
  ...e
87
87
  ));
88
- }, Gt = Bt("Appearance"), Wn = (t) => {
89
- const e = vt(), n = e != null && e.matchMedia != null && e.matchMedia("(prefers-color-scheme: dark)").matches, o = W(n ? "dark" : "light"), r = (s) => {
90
- o.set(s.matches ? "dark" : "light");
91
- }, i = e != null && e.matchMedia != null ? e.matchMedia("(prefers-color-scheme: dark)") : void 0;
92
- return i == null || i.addEventListener("change", r), _(
93
- me(Gt, o, t),
94
- k(() => i == null ? void 0 : i.removeEventListener("change", r))
88
+ }, Gt = zt("Appearance"), Pn = (t) => {
89
+ const e = vt(), n = e != null && e.matchMedia != null ? e.matchMedia("(prefers-color-scheme: dark)") : void 0, o = (n == null ? void 0 : n.matches) ?? !1, r = W(o ? "dark" : "light"), i = (s) => {
90
+ r.set(s.matches ? "dark" : "light");
91
+ };
92
+ return n == null || n.addEventListener("change", i), X(
93
+ pe(Gt, r, t),
94
+ T(() => n == null ? void 0 : n.removeEventListener("change", i))
95
95
  );
96
- }, Fn = (t) => Ut(Gt, t), Te = (t, e) => {
96
+ }, Dn = (t) => Bt(Gt, t), Qt = (t, e) => {
97
97
  if (typeof e == "function")
98
- return Te(t, { success: e });
99
- const n = e.failure ?? ((s) => _(
100
- k(s.on(console.error)),
101
- s.map((c) => `Error: ${c}`)
102
- )), o = e.success, r = e.loading ?? (() => nt), i = e.notAsked ?? (() => nt);
103
- return bt(J.toSignal(t), {
98
+ return Qt(t, { success: e });
99
+ const n = e.failure ?? ((s) => s.map((c) => `Error: ${c}`)), o = e.success, r = e.loading ?? (() => pt), i = e.notAsked ?? (() => pt);
100
+ return Yt(J.toSignal(t), {
104
101
  AsyncSuccess: (s) => o(s.$.value),
105
102
  AsyncFailure: (s) => n(s.$.error),
106
- Loading: (s) => r(s.$.previousValue ?? pe(void 0)),
103
+ Loading: (s) => r(s.map((c) => c.previousValue)),
107
104
  NotAsked: i
108
105
  });
109
- }, Mn = (t = 10) => G((e) => k(Xt(() => e == null ? void 0 : e.focus(), t))), Nn = (t = 10) => G((e) => {
106
+ }, Wn = (t = 10) => G((e) => T(Xt(() => e == null ? void 0 : e.focus(), t))), Fn = (t = 10) => G((e) => {
110
107
  const n = Xt(() => e.select(), t);
111
- return k(n);
112
- }), $n = G((t) => {
108
+ return T(n);
109
+ }), Mn = G((t) => {
113
110
  const e = t.style.getPropertyValue(":empty");
114
- return t.style.setProperty(":empty", "display:none"), k((n) => {
111
+ return t.style.setProperty(":empty", "display:none"), T((n) => {
115
112
  n && t.style.setProperty(":empty", e);
116
113
  });
117
- }), Vn = (t) => qt("head > title", Yt.innerText(t)), Ce = {
114
+ }), Nn = (t) => qt("head > title", jt.innerText(t)), Te = {
118
115
  partial: {
119
116
  root: null,
120
117
  rootMargin: "0px",
@@ -128,80 +125,80 @@ const be = (t) => {
128
125
  }, et = {
129
126
  partial: /* @__PURE__ */ new Map(),
130
127
  full: /* @__PURE__ */ new Map()
131
- }, q = {
128
+ }, Y = {
132
129
  partial: null,
133
130
  full: null
134
131
  };
135
- function Pe(t) {
136
- return q[t] == null && (q[t] = new IntersectionObserver((e) => {
132
+ function ke(t) {
133
+ return Y[t] == null && (Y[t] = new IntersectionObserver((e) => {
137
134
  e.forEach((n) => {
138
135
  const o = et[t].get(n.target);
139
136
  o == null || o.set(n.isIntersecting);
140
137
  });
141
- }, Ce[t])), q[t];
138
+ }, Te[t])), Y[t];
142
139
  }
143
- const De = (t, e) => {
140
+ const Ce = (t, e) => {
144
141
  const n = W(!1);
145
- return _(
142
+ return X(
146
143
  G((o) => {
147
- const r = typeof IntersectionObserver < "u" ? Pe(t) : null;
148
- return et[t].set(o, n), r == null || r.observe(o), k(() => {
144
+ const r = typeof IntersectionObserver < "u" ? ke(t) : null;
145
+ return et[t].set(o, n), r == null || r.observe(o), T(() => {
149
146
  var i;
150
- n.dispose(), r == null || r.unobserve(o), et[t].delete(o), et[t].size === 0 && ((i = q[t]) == null || i.disconnect(), q[t] = null);
147
+ n.dispose(), r == null || r.unobserve(o), et[t].delete(o), et[t].size === 0 && ((i = Y[t]) == null || i.disconnect(), Y[t] = null);
151
148
  });
152
149
  }),
153
- lt(e(n))
150
+ ct(e(n))
154
151
  );
155
- }, Hn = (t, e, n) => De(t, (o) => Kt(o, e, n ?? (() => nt))), ot = Math.min, M = Math.max, rt = Math.round, tt = Math.floor, O = (t) => ({
152
+ }, Vn = (t, e, n) => Ce(t, (o) => Kt(o, e, n ?? (() => pt))), nt = Math.min, M = Math.max, ot = Math.round, tt = Math.floor, O = (t) => ({
156
153
  x: t,
157
154
  y: t
158
- }), We = {
155
+ }), Pe = {
159
156
  left: "right",
160
157
  right: "left",
161
158
  bottom: "top",
162
159
  top: "bottom"
163
- }, Fe = {
160
+ }, De = {
164
161
  start: "end",
165
162
  end: "start"
166
163
  };
167
- function Dt(t, e, n) {
168
- return M(t, ot(e, n));
164
+ function Pt(t, e, n) {
165
+ return M(t, nt(e, n));
169
166
  }
170
- function at(t, e) {
167
+ function lt(t, e) {
171
168
  return typeof t == "function" ? t(e) : t;
172
169
  }
173
170
  function N(t) {
174
171
  return t.split("-")[0];
175
172
  }
176
- function ut(t) {
173
+ function at(t) {
177
174
  return t.split("-")[1];
178
175
  }
179
- function Qt(t) {
176
+ function Zt(t) {
180
177
  return t === "x" ? "y" : "x";
181
178
  }
182
- function Zt(t) {
179
+ function te(t) {
183
180
  return t === "y" ? "height" : "width";
184
181
  }
185
182
  function B(t) {
186
183
  return ["top", "bottom"].includes(N(t)) ? "y" : "x";
187
184
  }
188
- function te(t) {
189
- return Qt(B(t));
185
+ function ee(t) {
186
+ return Zt(B(t));
190
187
  }
191
- function Me(t, e, n) {
188
+ function We(t, e, n) {
192
189
  n === void 0 && (n = !1);
193
- const o = ut(t), r = te(t), i = Zt(r);
190
+ const o = at(t), r = ee(t), i = te(r);
194
191
  let s = r === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
195
- return e.reference[i] > e.floating[i] && (s = it(s)), [s, it(s)];
192
+ return e.reference[i] > e.floating[i] && (s = rt(s)), [s, rt(s)];
196
193
  }
197
- function Ne(t) {
198
- const e = it(t);
194
+ function Fe(t) {
195
+ const e = rt(t);
199
196
  return [gt(t), e, gt(e)];
200
197
  }
201
198
  function gt(t) {
202
- return t.replace(/start|end/g, (e) => Fe[e]);
199
+ return t.replace(/start|end/g, (e) => De[e]);
203
200
  }
204
- function $e(t, e, n) {
201
+ function Me(t, e, n) {
205
202
  const o = ["left", "right"], r = ["right", "left"], i = ["top", "bottom"], s = ["bottom", "top"];
206
203
  switch (t) {
207
204
  case "top":
@@ -214,15 +211,15 @@ function $e(t, e, n) {
214
211
  return [];
215
212
  }
216
213
  }
217
- function Ve(t, e, n, o) {
218
- const r = ut(t);
219
- let i = $e(N(t), n === "start", o);
214
+ function Ne(t, e, n, o) {
215
+ const r = at(t);
216
+ let i = Me(N(t), n === "start", o);
220
217
  return r && (i = i.map((s) => s + "-" + r), e && (i = i.concat(i.map(gt)))), i;
221
218
  }
222
- function it(t) {
223
- return t.replace(/left|right|bottom|top/g, (e) => We[e]);
219
+ function rt(t) {
220
+ return t.replace(/left|right|bottom|top/g, (e) => Pe[e]);
224
221
  }
225
- function He(t) {
222
+ function Ve(t) {
226
223
  return {
227
224
  top: 0,
228
225
  right: 0,
@@ -231,15 +228,15 @@ function He(t) {
231
228
  ...t
232
229
  };
233
230
  }
234
- function ze(t) {
235
- return typeof t != "number" ? He(t) : {
231
+ function $e(t) {
232
+ return typeof t != "number" ? Ve(t) : {
236
233
  top: t,
237
234
  right: t,
238
235
  bottom: t,
239
236
  left: t
240
237
  };
241
238
  }
242
- function st(t) {
239
+ function it(t) {
243
240
  const {
244
241
  x: e,
245
242
  y: n,
@@ -257,14 +254,14 @@ function st(t) {
257
254
  y: n
258
255
  };
259
256
  }
260
- function Wt(t, e, n) {
257
+ function Dt(t, e, n) {
261
258
  let {
262
259
  reference: o,
263
260
  floating: r
264
261
  } = t;
265
- const i = B(e), s = te(e), c = Zt(s), a = N(e), l = i === "y", f = o.x + o.width / 2 - r.width / 2, u = o.y + o.height / 2 - r.height / 2, h = o[c] / 2 - r[c] / 2;
262
+ const i = B(e), s = ee(e), c = te(s), l = N(e), a = i === "y", f = o.x + o.width / 2 - r.width / 2, u = o.y + o.height / 2 - r.height / 2, h = o[c] / 2 - r[c] / 2;
266
263
  let d;
267
- switch (a) {
264
+ switch (l) {
268
265
  case "top":
269
266
  d = {
270
267
  x: f,
@@ -295,31 +292,31 @@ function Wt(t, e, n) {
295
292
  y: o.y
296
293
  };
297
294
  }
298
- switch (ut(e)) {
295
+ switch (at(e)) {
299
296
  case "start":
300
- d[s] -= h * (n && l ? -1 : 1);
297
+ d[s] -= h * (n && a ? -1 : 1);
301
298
  break;
302
299
  case "end":
303
- d[s] += h * (n && l ? -1 : 1);
300
+ d[s] += h * (n && a ? -1 : 1);
304
301
  break;
305
302
  }
306
303
  return d;
307
304
  }
308
- const Be = async (t, e, n) => {
305
+ const He = async (t, e, n) => {
309
306
  const {
310
307
  placement: o = "bottom",
311
308
  strategy: r = "absolute",
312
309
  middleware: i = [],
313
310
  platform: s
314
- } = n, c = i.filter(Boolean), a = await (s.isRTL == null ? void 0 : s.isRTL(e));
315
- let l = await s.getElementRects({
311
+ } = n, c = i.filter(Boolean), l = await (s.isRTL == null ? void 0 : s.isRTL(e));
312
+ let a = await s.getElementRects({
316
313
  reference: t,
317
314
  floating: e,
318
315
  strategy: r
319
316
  }), {
320
317
  x: f,
321
318
  y: u
322
- } = Wt(l, o, a), h = o, d = {}, m = 0;
319
+ } = Dt(a, o, l), h = o, d = {}, m = 0;
323
320
  for (let g = 0; g < c.length; g++) {
324
321
  const {
325
322
  name: y,
@@ -336,7 +333,7 @@ const Be = async (t, e, n) => {
336
333
  placement: h,
337
334
  strategy: r,
338
335
  middlewareData: d,
339
- rects: l,
336
+ rects: a,
340
337
  platform: s,
341
338
  elements: {
342
339
  reference: t,
@@ -349,14 +346,14 @@ const Be = async (t, e, n) => {
349
346
  ...d[y],
350
347
  ...b
351
348
  }
352
- }, v && m <= 50 && (m++, typeof v == "object" && (v.placement && (h = v.placement), v.rects && (l = v.rects === !0 ? await s.getElementRects({
349
+ }, v && m <= 50 && (m++, typeof v == "object" && (v.placement && (h = v.placement), v.rects && (a = v.rects === !0 ? await s.getElementRects({
353
350
  reference: t,
354
351
  floating: e,
355
352
  strategy: r
356
353
  }) : v.rects), {
357
354
  x: f,
358
355
  y: u
359
- } = Wt(l, h, a)), g = -1);
356
+ } = Dt(a, h, l)), g = -1);
360
357
  }
361
358
  return {
362
359
  x: f,
@@ -366,7 +363,7 @@ const Be = async (t, e, n) => {
366
363
  middlewareData: d
367
364
  };
368
365
  };
369
- async function ee(t, e) {
366
+ async function ne(t, e) {
370
367
  var n;
371
368
  e === void 0 && (e = {});
372
369
  const {
@@ -375,18 +372,18 @@ async function ee(t, e) {
375
372
  platform: i,
376
373
  rects: s,
377
374
  elements: c,
378
- strategy: a
375
+ strategy: l
379
376
  } = t, {
380
- boundary: l = "clippingAncestors",
377
+ boundary: a = "clippingAncestors",
381
378
  rootBoundary: f = "viewport",
382
379
  elementContext: u = "floating",
383
380
  altBoundary: h = !1,
384
381
  padding: d = 0
385
- } = at(e, t), m = ze(d), y = c[h ? u === "floating" ? "reference" : "floating" : u], p = st(await i.getClippingRect({
382
+ } = lt(e, t), m = $e(d), y = c[h ? u === "floating" ? "reference" : "floating" : u], p = it(await i.getClippingRect({
386
383
  element: (n = await (i.isElement == null ? void 0 : i.isElement(y))) == null || n ? y : y.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(c.floating)),
387
- boundary: l,
384
+ boundary: a,
388
385
  rootBoundary: f,
389
- strategy: a
386
+ strategy: l
390
387
  })), w = u === "floating" ? {
391
388
  x: o,
392
389
  y: r,
@@ -398,11 +395,11 @@ async function ee(t, e) {
398
395
  } : {
399
396
  x: 1,
400
397
  y: 1
401
- }, v = st(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
398
+ }, v = it(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
402
399
  elements: c,
403
400
  rect: w,
404
401
  offsetParent: x,
405
- strategy: a
402
+ strategy: l
406
403
  }) : w);
407
404
  return {
408
405
  top: (p.top - v.top + m.top) / b.y,
@@ -411,7 +408,7 @@ async function ee(t, e) {
411
408
  right: (v.right - p.right + m.right) / b.x
412
409
  };
413
410
  }
414
- const Ue = function(t) {
411
+ const ze = function(t) {
415
412
  return t === void 0 && (t = {}), {
416
413
  name: "flip",
417
414
  options: t,
@@ -422,8 +419,8 @@ const Ue = function(t) {
422
419
  middlewareData: i,
423
420
  rects: s,
424
421
  initialPlacement: c,
425
- platform: a,
426
- elements: l
422
+ platform: l,
423
+ elements: a
427
424
  } = e, {
428
425
  mainAxis: f = !0,
429
426
  crossAxis: u = !0,
@@ -432,58 +429,58 @@ const Ue = function(t) {
432
429
  fallbackAxisSideDirection: m = "none",
433
430
  flipAlignment: g = !0,
434
431
  ...y
435
- } = at(t, e);
432
+ } = lt(t, e);
436
433
  if ((n = i.arrow) != null && n.alignmentOffset)
437
434
  return {};
438
- const p = N(r), w = B(c), x = N(c) === c, b = await (a.isRTL == null ? void 0 : a.isRTL(l.floating)), v = h || (x || !g ? [it(c)] : Ne(c)), V = m !== "none";
439
- !h && V && v.push(...Ve(c, g, m, b));
440
- const ae = [c, ...v], mt = await ee(e, y), Z = [];
441
- let j = ((o = i.flip) == null ? void 0 : o.overflows) || [];
442
- if (f && Z.push(mt[p]), u) {
443
- const F = Me(r, s, b);
444
- Z.push(mt[F[0]], mt[F[1]]);
435
+ const p = N(r), w = B(c), x = N(c) === c, b = await (l.isRTL == null ? void 0 : l.isRTL(a.floating)), v = h || (x || !g ? [rt(c)] : Fe(c)), $ = m !== "none";
436
+ !h && $ && v.push(...Ne(c, g, m, b));
437
+ const ue = [c, ...v], ht = await ne(e, y), Z = [];
438
+ let I = ((o = i.flip) == null ? void 0 : o.overflows) || [];
439
+ if (f && Z.push(ht[p]), u) {
440
+ const F = We(r, s, b);
441
+ Z.push(ht[F[0]], ht[F[1]]);
445
442
  }
446
- if (j = [...j, {
443
+ if (I = [...I, {
447
444
  placement: r,
448
445
  overflows: Z
449
446
  }], !Z.every((F) => F <= 0)) {
450
- var Lt, kt;
451
- const F = (((Lt = i.flip) == null ? void 0 : Lt.index) || 0) + 1, Tt = ae[F];
447
+ var Ot, Lt;
448
+ const F = (((Ot = i.flip) == null ? void 0 : Ot.index) || 0) + 1, Tt = ue[F];
452
449
  if (Tt)
453
450
  return {
454
451
  data: {
455
452
  index: F,
456
- overflows: j
453
+ overflows: I
457
454
  },
458
455
  reset: {
459
456
  placement: Tt
460
457
  }
461
458
  };
462
- let Y = (kt = j.filter((H) => H.overflows[0] <= 0).sort((H, T) => H.overflows[1] - T.overflows[1])[0]) == null ? void 0 : kt.placement;
463
- if (!Y)
459
+ let j = (Lt = I.filter((H) => H.overflows[0] <= 0).sort((H, k) => H.overflows[1] - k.overflows[1])[0]) == null ? void 0 : Lt.placement;
460
+ if (!j)
464
461
  switch (d) {
465
462
  case "bestFit": {
466
463
  var St;
467
- const H = (St = j.filter((T) => {
468
- if (V) {
469
- const C = B(T.placement);
464
+ const H = (St = I.filter((k) => {
465
+ if ($) {
466
+ const C = B(k.placement);
470
467
  return C === w || // Create a bias to the `y` side axis due to horizontal
471
468
  // reading directions favoring greater width.
472
469
  C === "y";
473
470
  }
474
471
  return !0;
475
- }).map((T) => [T.placement, T.overflows.filter((C) => C > 0).reduce((C, ue) => C + ue, 0)]).sort((T, C) => T[1] - C[1])[0]) == null ? void 0 : St[0];
476
- H && (Y = H);
472
+ }).map((k) => [k.placement, k.overflows.filter((C) => C > 0).reduce((C, fe) => C + fe, 0)]).sort((k, C) => k[1] - C[1])[0]) == null ? void 0 : St[0];
473
+ H && (j = H);
477
474
  break;
478
475
  }
479
476
  case "initialPlacement":
480
- Y = c;
477
+ j = c;
481
478
  break;
482
479
  }
483
- if (r !== Y)
480
+ if (r !== j)
484
481
  return {
485
482
  reset: {
486
- placement: Y
483
+ placement: j
487
484
  }
488
485
  };
489
486
  }
@@ -491,12 +488,12 @@ const Ue = function(t) {
491
488
  }
492
489
  };
493
490
  };
494
- async function _e(t, e) {
491
+ async function Be(t, e) {
495
492
  const {
496
493
  placement: n,
497
494
  platform: o,
498
495
  elements: r
499
- } = t, i = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), s = N(n), c = ut(n), a = B(n) === "y", l = ["left", "top"].includes(s) ? -1 : 1, f = i && a ? -1 : 1, u = at(e, t);
496
+ } = t, i = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), s = N(n), c = at(n), l = B(n) === "y", a = ["left", "top"].includes(s) ? -1 : 1, f = i && l ? -1 : 1, u = lt(e, t);
500
497
  let {
501
498
  mainAxis: h,
502
499
  crossAxis: d,
@@ -510,15 +507,15 @@ async function _e(t, e) {
510
507
  crossAxis: u.crossAxis || 0,
511
508
  alignmentAxis: u.alignmentAxis
512
509
  };
513
- return c && typeof m == "number" && (d = c === "end" ? m * -1 : m), a ? {
510
+ return c && typeof m == "number" && (d = c === "end" ? m * -1 : m), l ? {
514
511
  x: d * f,
515
- y: h * l
512
+ y: h * a
516
513
  } : {
517
- x: h * l,
514
+ x: h * a,
518
515
  y: d * f
519
516
  };
520
517
  }
521
- const Ie = function(t) {
518
+ const Ue = function(t) {
522
519
  return t === void 0 && (t = 0), {
523
520
  name: "offset",
524
521
  options: t,
@@ -529,18 +526,18 @@ const Ie = function(t) {
529
526
  y: i,
530
527
  placement: s,
531
528
  middlewareData: c
532
- } = e, a = await _e(e, t);
529
+ } = e, l = await Be(e, t);
533
530
  return s === ((n = c.offset) == null ? void 0 : n.placement) && (o = c.arrow) != null && o.alignmentOffset ? {} : {
534
- x: r + a.x,
535
- y: i + a.y,
531
+ x: r + l.x,
532
+ y: i + l.y,
536
533
  data: {
537
- ...a,
534
+ ...l,
538
535
  placement: s
539
536
  }
540
537
  };
541
538
  }
542
539
  };
543
- }, je = function(t) {
540
+ }, _e = function(t) {
544
541
  return t === void 0 && (t = {}), {
545
542
  name: "shift",
546
543
  options: t,
@@ -564,19 +561,19 @@ const Ie = function(t) {
564
561
  };
565
562
  }
566
563
  },
567
- ...a
568
- } = at(t, e), l = {
564
+ ...l
565
+ } = lt(t, e), a = {
569
566
  x: n,
570
567
  y: o
571
- }, f = await ee(e, a), u = B(N(r)), h = Qt(u);
572
- let d = l[h], m = l[u];
568
+ }, f = await ne(e, l), u = B(N(r)), h = Zt(u);
569
+ let d = a[h], m = a[u];
573
570
  if (i) {
574
571
  const y = h === "y" ? "top" : "left", p = h === "y" ? "bottom" : "right", w = d + f[y], x = d - f[p];
575
- d = Dt(w, d, x);
572
+ d = Pt(w, d, x);
576
573
  }
577
574
  if (s) {
578
575
  const y = u === "y" ? "top" : "left", p = u === "y" ? "bottom" : "right", w = m + f[y], x = m - f[p];
579
- m = Dt(w, m, x);
576
+ m = Pt(w, m, x);
580
577
  }
581
578
  const g = c.fn({
582
579
  ...e,
@@ -597,11 +594,11 @@ const Ie = function(t) {
597
594
  }
598
595
  };
599
596
  };
600
- function ft() {
597
+ function ut() {
601
598
  return typeof window < "u";
602
599
  }
603
- function I(t) {
604
- return ne(t) ? (t.nodeName || "").toLowerCase() : "#document";
600
+ function _(t) {
601
+ return oe(t) ? (t.nodeName || "").toLowerCase() : "#document";
605
602
  }
606
603
  function A(t) {
607
604
  var e;
@@ -609,19 +606,19 @@ function A(t) {
609
606
  }
610
607
  function S(t) {
611
608
  var e;
612
- return (e = (ne(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
609
+ return (e = (oe(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
613
610
  }
614
- function ne(t) {
615
- return ft() ? t instanceof Node || t instanceof A(t).Node : !1;
611
+ function oe(t) {
612
+ return ut() ? t instanceof Node || t instanceof A(t).Node : !1;
616
613
  }
617
614
  function R(t) {
618
- return ft() ? t instanceof Element || t instanceof A(t).Element : !1;
615
+ return ut() ? t instanceof Element || t instanceof A(t).Element : !1;
619
616
  }
620
617
  function L(t) {
621
- return ft() ? t instanceof HTMLElement || t instanceof A(t).HTMLElement : !1;
618
+ return ut() ? t instanceof HTMLElement || t instanceof A(t).HTMLElement : !1;
622
619
  }
623
- function Ft(t) {
624
- return !ft() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof A(t).ShadowRoot;
620
+ function Wt(t) {
621
+ return !ut() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof A(t).ShadowRoot;
625
622
  }
626
623
  function Q(t) {
627
624
  const {
@@ -632,10 +629,10 @@ function Q(t) {
632
629
  } = E(t);
633
630
  return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !["inline", "contents"].includes(r);
634
631
  }
635
- function Ye(t) {
636
- return ["table", "td", "th"].includes(I(t));
632
+ function Ie(t) {
633
+ return ["table", "td", "th"].includes(_(t));
637
634
  }
638
- function dt(t) {
635
+ function ft(t) {
639
636
  return [":popover-open", ":modal"].some((e) => {
640
637
  try {
641
638
  return t.matches(e);
@@ -644,31 +641,31 @@ function dt(t) {
644
641
  }
645
642
  });
646
643
  }
647
- function At(t) {
648
- const e = Rt(), n = R(t) ? E(t) : t;
644
+ function bt(t) {
645
+ const e = At(), n = R(t) ? E(t) : t;
649
646
  return n.transform !== "none" || n.perspective !== "none" || (n.containerType ? n.containerType !== "normal" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !e && (n.filter ? n.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((o) => (n.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (n.contain || "").includes(o));
650
647
  }
651
- function qe(t) {
648
+ function je(t) {
652
649
  let e = D(t);
653
650
  for (; L(e) && !U(e); ) {
654
- if (At(e))
651
+ if (bt(e))
655
652
  return e;
656
- if (dt(e))
653
+ if (ft(e))
657
654
  return null;
658
655
  e = D(e);
659
656
  }
660
657
  return null;
661
658
  }
662
- function Rt() {
659
+ function At() {
663
660
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
664
661
  }
665
662
  function U(t) {
666
- return ["html", "body", "#document"].includes(I(t));
663
+ return ["html", "body", "#document"].includes(_(t));
667
664
  }
668
665
  function E(t) {
669
666
  return A(t).getComputedStyle(t);
670
667
  }
671
- function ht(t) {
668
+ function dt(t) {
672
669
  return R(t) ? {
673
670
  scrollLeft: t.scrollLeft,
674
671
  scrollTop: t.scrollTop
@@ -678,143 +675,143 @@ function ht(t) {
678
675
  };
679
676
  }
680
677
  function D(t) {
681
- if (I(t) === "html")
678
+ if (_(t) === "html")
682
679
  return t;
683
680
  const e = (
684
681
  // Step into the shadow DOM of the parent of a slotted node.
685
682
  t.assignedSlot || // DOM Element detected.
686
683
  t.parentNode || // ShadowRoot detected.
687
- Ft(t) && t.host || // Fallback.
684
+ Wt(t) && t.host || // Fallback.
688
685
  S(t)
689
686
  );
690
- return Ft(e) ? e.host : e;
687
+ return Wt(e) ? e.host : e;
691
688
  }
692
- function oe(t) {
689
+ function re(t) {
693
690
  const e = D(t);
694
- return U(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : L(e) && Q(e) ? e : oe(e);
691
+ return U(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : L(e) && Q(e) ? e : re(e);
695
692
  }
696
- function K(t, e, n) {
693
+ function q(t, e, n) {
697
694
  var o;
698
695
  e === void 0 && (e = []), n === void 0 && (n = !0);
699
- const r = oe(t), i = r === ((o = t.ownerDocument) == null ? void 0 : o.body), s = A(r);
696
+ const r = re(t), i = r === ((o = t.ownerDocument) == null ? void 0 : o.body), s = A(r);
700
697
  if (i) {
701
698
  const c = yt(s);
702
- return e.concat(s, s.visualViewport || [], Q(r) ? r : [], c && n ? K(c) : []);
699
+ return e.concat(s, s.visualViewport || [], Q(r) ? r : [], c && n ? q(c) : []);
703
700
  }
704
- return e.concat(r, K(r, [], n));
701
+ return e.concat(r, q(r, [], n));
705
702
  }
706
703
  function yt(t) {
707
704
  return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
708
705
  }
709
- function re(t) {
706
+ function ie(t) {
710
707
  const e = E(t);
711
708
  let n = parseFloat(e.width) || 0, o = parseFloat(e.height) || 0;
712
- const r = L(t), i = r ? t.offsetWidth : n, s = r ? t.offsetHeight : o, c = rt(n) !== i || rt(o) !== s;
709
+ const r = L(t), i = r ? t.offsetWidth : n, s = r ? t.offsetHeight : o, c = ot(n) !== i || ot(o) !== s;
713
710
  return c && (n = i, o = s), {
714
711
  width: n,
715
712
  height: o,
716
713
  $: c
717
714
  };
718
715
  }
719
- function Et(t) {
716
+ function Rt(t) {
720
717
  return R(t) ? t : t.contextElement;
721
718
  }
722
719
  function z(t) {
723
- const e = Et(t);
720
+ const e = Rt(t);
724
721
  if (!L(e))
725
722
  return O(1);
726
723
  const n = e.getBoundingClientRect(), {
727
724
  width: o,
728
725
  height: r,
729
726
  $: i
730
- } = re(e);
731
- let s = (i ? rt(n.width) : n.width) / o, c = (i ? rt(n.height) : n.height) / r;
727
+ } = ie(e);
728
+ let s = (i ? ot(n.width) : n.width) / o, c = (i ? ot(n.height) : n.height) / r;
732
729
  return (!s || !Number.isFinite(s)) && (s = 1), (!c || !Number.isFinite(c)) && (c = 1), {
733
730
  x: s,
734
731
  y: c
735
732
  };
736
733
  }
737
- const Ke = /* @__PURE__ */ O(0);
738
- function ie(t) {
734
+ const Ye = /* @__PURE__ */ O(0);
735
+ function se(t) {
739
736
  const e = A(t);
740
- return !Rt() || !e.visualViewport ? Ke : {
737
+ return !At() || !e.visualViewport ? Ye : {
741
738
  x: e.visualViewport.offsetLeft,
742
739
  y: e.visualViewport.offsetTop
743
740
  };
744
741
  }
745
- function Xe(t, e, n) {
742
+ function qe(t, e, n) {
746
743
  return e === void 0 && (e = !1), !n || e && n !== A(t) ? !1 : e;
747
744
  }
748
- function $(t, e, n, o) {
745
+ function V(t, e, n, o) {
749
746
  e === void 0 && (e = !1), n === void 0 && (n = !1);
750
- const r = t.getBoundingClientRect(), i = Et(t);
747
+ const r = t.getBoundingClientRect(), i = Rt(t);
751
748
  let s = O(1);
752
749
  e && (o ? R(o) && (s = z(o)) : s = z(t));
753
- const c = Xe(i, n, o) ? ie(i) : O(0);
754
- let a = (r.left + c.x) / s.x, l = (r.top + c.y) / s.y, f = r.width / s.x, u = r.height / s.y;
750
+ const c = qe(i, n, o) ? se(i) : O(0);
751
+ let l = (r.left + c.x) / s.x, a = (r.top + c.y) / s.y, f = r.width / s.x, u = r.height / s.y;
755
752
  if (i) {
756
753
  const h = A(i), d = o && R(o) ? A(o) : o;
757
754
  let m = h, g = yt(m);
758
755
  for (; g && o && d !== m; ) {
759
756
  const y = z(g), p = g.getBoundingClientRect(), w = E(g), x = p.left + (g.clientLeft + parseFloat(w.paddingLeft)) * y.x, b = p.top + (g.clientTop + parseFloat(w.paddingTop)) * y.y;
760
- a *= y.x, l *= y.y, f *= y.x, u *= y.y, a += x, l += b, m = A(g), g = yt(m);
757
+ l *= y.x, a *= y.y, f *= y.x, u *= y.y, l += x, a += b, m = A(g), g = yt(m);
761
758
  }
762
759
  }
763
- return st({
760
+ return it({
764
761
  width: f,
765
762
  height: u,
766
- x: a,
767
- y: l
763
+ x: l,
764
+ y: a
768
765
  });
769
766
  }
770
- function Ot(t, e) {
771
- const n = ht(t).scrollLeft;
772
- return e ? e.left + n : $(S(t)).left + n;
767
+ function Et(t, e) {
768
+ const n = dt(t).scrollLeft;
769
+ return e ? e.left + n : V(S(t)).left + n;
773
770
  }
774
- function se(t, e, n) {
771
+ function ce(t, e, n) {
775
772
  n === void 0 && (n = !1);
776
773
  const o = t.getBoundingClientRect(), r = o.left + e.scrollLeft - (n ? 0 : (
777
774
  // RTL <body> scrollbar.
778
- Ot(t, o)
775
+ Et(t, o)
779
776
  )), i = o.top + e.scrollTop;
780
777
  return {
781
778
  x: r,
782
779
  y: i
783
780
  };
784
781
  }
785
- function Je(t) {
782
+ function Ke(t) {
786
783
  let {
787
784
  elements: e,
788
785
  rect: n,
789
786
  offsetParent: o,
790
787
  strategy: r
791
788
  } = t;
792
- const i = r === "fixed", s = S(o), c = e ? dt(e.floating) : !1;
789
+ const i = r === "fixed", s = S(o), c = e ? ft(e.floating) : !1;
793
790
  if (o === s || c && i)
794
791
  return n;
795
- let a = {
792
+ let l = {
796
793
  scrollLeft: 0,
797
794
  scrollTop: 0
798
- }, l = O(1);
795
+ }, a = O(1);
799
796
  const f = O(0), u = L(o);
800
- if ((u || !u && !i) && ((I(o) !== "body" || Q(s)) && (a = ht(o)), L(o))) {
801
- const d = $(o);
802
- l = z(o), f.x = d.x + o.clientLeft, f.y = d.y + o.clientTop;
797
+ if ((u || !u && !i) && ((_(o) !== "body" || Q(s)) && (l = dt(o)), L(o))) {
798
+ const d = V(o);
799
+ a = z(o), f.x = d.x + o.clientLeft, f.y = d.y + o.clientTop;
803
800
  }
804
- const h = s && !u && !i ? se(s, a, !0) : O(0);
801
+ const h = s && !u && !i ? ce(s, l, !0) : O(0);
805
802
  return {
806
- width: n.width * l.x,
807
- height: n.height * l.y,
808
- x: n.x * l.x - a.scrollLeft * l.x + f.x + h.x,
809
- y: n.y * l.y - a.scrollTop * l.y + f.y + h.y
803
+ width: n.width * a.x,
804
+ height: n.height * a.y,
805
+ x: n.x * a.x - l.scrollLeft * a.x + f.x + h.x,
806
+ y: n.y * a.y - l.scrollTop * a.y + f.y + h.y
810
807
  };
811
808
  }
812
- function Ge(t) {
809
+ function Xe(t) {
813
810
  return Array.from(t.getClientRects());
814
811
  }
815
- function Qe(t) {
816
- const e = S(t), n = ht(t), o = t.ownerDocument.body, r = M(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), i = M(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
817
- let s = -n.scrollLeft + Ot(t);
812
+ function Je(t) {
813
+ const e = S(t), n = dt(t), o = t.ownerDocument.body, r = M(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), i = M(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
814
+ let s = -n.scrollLeft + Et(t);
818
815
  const c = -n.scrollTop;
819
816
  return E(o).direction === "rtl" && (s += M(e.clientWidth, o.clientWidth) - r), {
820
817
  width: r,
@@ -823,40 +820,40 @@ function Qe(t) {
823
820
  y: c
824
821
  };
825
822
  }
826
- function Ze(t, e) {
823
+ function Ge(t, e) {
827
824
  const n = A(t), o = S(t), r = n.visualViewport;
828
- let i = o.clientWidth, s = o.clientHeight, c = 0, a = 0;
825
+ let i = o.clientWidth, s = o.clientHeight, c = 0, l = 0;
829
826
  if (r) {
830
827
  i = r.width, s = r.height;
831
- const l = Rt();
832
- (!l || l && e === "fixed") && (c = r.offsetLeft, a = r.offsetTop);
828
+ const a = At();
829
+ (!a || a && e === "fixed") && (c = r.offsetLeft, l = r.offsetTop);
833
830
  }
834
831
  return {
835
832
  width: i,
836
833
  height: s,
837
834
  x: c,
838
- y: a
835
+ y: l
839
836
  };
840
837
  }
841
- function tn(t, e) {
842
- const n = $(t, !0, e === "fixed"), o = n.top + t.clientTop, r = n.left + t.clientLeft, i = L(t) ? z(t) : O(1), s = t.clientWidth * i.x, c = t.clientHeight * i.y, a = r * i.x, l = o * i.y;
838
+ function Qe(t, e) {
839
+ const n = V(t, !0, e === "fixed"), o = n.top + t.clientTop, r = n.left + t.clientLeft, i = L(t) ? z(t) : O(1), s = t.clientWidth * i.x, c = t.clientHeight * i.y, l = r * i.x, a = o * i.y;
843
840
  return {
844
841
  width: s,
845
842
  height: c,
846
- x: a,
847
- y: l
843
+ x: l,
844
+ y: a
848
845
  };
849
846
  }
850
- function Mt(t, e, n) {
847
+ function Ft(t, e, n) {
851
848
  let o;
852
849
  if (e === "viewport")
853
- o = Ze(t, n);
850
+ o = Ge(t, n);
854
851
  else if (e === "document")
855
- o = Qe(S(t));
852
+ o = Je(S(t));
856
853
  else if (R(e))
857
- o = tn(e, n);
854
+ o = Qe(e, n);
858
855
  else {
859
- const r = ie(t);
856
+ const r = se(t);
860
857
  o = {
861
858
  x: e.x - r.x,
862
859
  y: e.y - r.y,
@@ -864,66 +861,66 @@ function Mt(t, e, n) {
864
861
  height: e.height
865
862
  };
866
863
  }
867
- return st(o);
864
+ return it(o);
868
865
  }
869
- function ce(t, e) {
866
+ function le(t, e) {
870
867
  const n = D(t);
871
- return n === e || !R(n) || U(n) ? !1 : E(n).position === "fixed" || ce(n, e);
868
+ return n === e || !R(n) || U(n) ? !1 : E(n).position === "fixed" || le(n, e);
872
869
  }
873
- function en(t, e) {
870
+ function Ze(t, e) {
874
871
  const n = e.get(t);
875
872
  if (n)
876
873
  return n;
877
- let o = K(t, [], !1).filter((c) => R(c) && I(c) !== "body"), r = null;
874
+ let o = q(t, [], !1).filter((c) => R(c) && _(c) !== "body"), r = null;
878
875
  const i = E(t).position === "fixed";
879
876
  let s = i ? D(t) : t;
880
877
  for (; R(s) && !U(s); ) {
881
- const c = E(s), a = At(s);
882
- !a && c.position === "fixed" && (r = null), (i ? !a && !r : !a && c.position === "static" && !!r && ["absolute", "fixed"].includes(r.position) || Q(s) && !a && ce(t, s)) ? o = o.filter((f) => f !== s) : r = c, s = D(s);
878
+ const c = E(s), l = bt(s);
879
+ !l && c.position === "fixed" && (r = null), (i ? !l && !r : !l && c.position === "static" && !!r && ["absolute", "fixed"].includes(r.position) || Q(s) && !l && le(t, s)) ? o = o.filter((f) => f !== s) : r = c, s = D(s);
883
880
  }
884
881
  return e.set(t, o), o;
885
882
  }
886
- function nn(t) {
883
+ function tn(t) {
887
884
  let {
888
885
  element: e,
889
886
  boundary: n,
890
887
  rootBoundary: o,
891
888
  strategy: r
892
889
  } = t;
893
- const s = [...n === "clippingAncestors" ? dt(e) ? [] : en(e, this._c) : [].concat(n), o], c = s[0], a = s.reduce((l, f) => {
894
- const u = Mt(e, f, r);
895
- return l.top = M(u.top, l.top), l.right = ot(u.right, l.right), l.bottom = ot(u.bottom, l.bottom), l.left = M(u.left, l.left), l;
896
- }, Mt(e, c, r));
890
+ const s = [...n === "clippingAncestors" ? ft(e) ? [] : Ze(e, this._c) : [].concat(n), o], c = s[0], l = s.reduce((a, f) => {
891
+ const u = Ft(e, f, r);
892
+ return a.top = M(u.top, a.top), a.right = nt(u.right, a.right), a.bottom = nt(u.bottom, a.bottom), a.left = M(u.left, a.left), a;
893
+ }, Ft(e, c, r));
897
894
  return {
898
- width: a.right - a.left,
899
- height: a.bottom - a.top,
900
- x: a.left,
901
- y: a.top
895
+ width: l.right - l.left,
896
+ height: l.bottom - l.top,
897
+ x: l.left,
898
+ y: l.top
902
899
  };
903
900
  }
904
- function on(t) {
901
+ function en(t) {
905
902
  const {
906
903
  width: e,
907
904
  height: n
908
- } = re(t);
905
+ } = ie(t);
909
906
  return {
910
907
  width: e,
911
908
  height: n
912
909
  };
913
910
  }
914
- function rn(t, e, n) {
915
- const o = L(e), r = S(e), i = n === "fixed", s = $(t, !0, i, e);
911
+ function nn(t, e, n) {
912
+ const o = L(e), r = S(e), i = n === "fixed", s = V(t, !0, i, e);
916
913
  let c = {
917
914
  scrollLeft: 0,
918
915
  scrollTop: 0
919
916
  };
920
- const a = O(0);
917
+ const l = O(0);
921
918
  if (o || !o && !i)
922
- if ((I(e) !== "body" || Q(r)) && (c = ht(e)), o) {
923
- const h = $(e, !0, i, e);
924
- a.x = h.x + e.clientLeft, a.y = h.y + e.clientTop;
925
- } else r && (a.x = Ot(r));
926
- const l = r && !o && !i ? se(r, c) : O(0), f = s.left + c.scrollLeft - a.x - l.x, u = s.top + c.scrollTop - a.y - l.y;
919
+ if ((_(e) !== "body" || Q(r)) && (c = dt(e)), o) {
920
+ const h = V(e, !0, i, e);
921
+ l.x = h.x + e.clientLeft, l.y = h.y + e.clientTop;
922
+ } else r && (l.x = Et(r));
923
+ const a = r && !o && !i ? ce(r, c) : O(0), f = s.left + c.scrollLeft - l.x - a.x, u = s.top + c.scrollTop - l.y - a.y;
927
924
  return {
928
925
  x: f,
929
926
  y: u,
@@ -931,10 +928,10 @@ function rn(t, e, n) {
931
928
  height: s.height
932
929
  };
933
930
  }
934
- function pt(t) {
931
+ function mt(t) {
935
932
  return E(t).position === "static";
936
933
  }
937
- function Nt(t, e) {
934
+ function Mt(t, e) {
938
935
  if (!L(t) || E(t).position === "fixed")
939
936
  return null;
940
937
  if (e)
@@ -942,28 +939,28 @@ function Nt(t, e) {
942
939
  let n = t.offsetParent;
943
940
  return S(t) === n && (n = n.ownerDocument.body), n;
944
941
  }
945
- function le(t, e) {
942
+ function ae(t, e) {
946
943
  const n = A(t);
947
- if (dt(t))
944
+ if (ft(t))
948
945
  return n;
949
946
  if (!L(t)) {
950
947
  let r = D(t);
951
948
  for (; r && !U(r); ) {
952
- if (R(r) && !pt(r))
949
+ if (R(r) && !mt(r))
953
950
  return r;
954
951
  r = D(r);
955
952
  }
956
953
  return n;
957
954
  }
958
- let o = Nt(t, e);
959
- for (; o && Ye(o) && pt(o); )
960
- o = Nt(o, e);
961
- return o && U(o) && pt(o) && !At(o) ? n : o || qe(t) || n;
955
+ let o = Mt(t, e);
956
+ for (; o && Ie(o) && mt(o); )
957
+ o = Mt(o, e);
958
+ return o && U(o) && mt(o) && !bt(o) ? n : o || je(t) || n;
962
959
  }
963
- const sn = async function(t) {
964
- const e = this.getOffsetParent || le, n = this.getDimensions, o = await n(t.floating);
960
+ const on = async function(t) {
961
+ const e = this.getOffsetParent || ae, n = this.getDimensions, o = await n(t.floating);
965
962
  return {
966
- reference: rn(t.reference, await e(t.floating), t.strategy),
963
+ reference: nn(t.reference, await e(t.floating), t.strategy),
967
964
  floating: {
968
965
  x: 0,
969
966
  y: 0,
@@ -972,49 +969,49 @@ const sn = async function(t) {
972
969
  }
973
970
  };
974
971
  };
975
- function cn(t) {
972
+ function rn(t) {
976
973
  return E(t).direction === "rtl";
977
974
  }
978
- const ln = {
979
- convertOffsetParentRelativeRectToViewportRelativeRect: Je,
975
+ const sn = {
976
+ convertOffsetParentRelativeRectToViewportRelativeRect: Ke,
980
977
  getDocumentElement: S,
981
- getClippingRect: nn,
982
- getOffsetParent: le,
983
- getElementRects: sn,
984
- getClientRects: Ge,
985
- getDimensions: on,
978
+ getClippingRect: tn,
979
+ getOffsetParent: ae,
980
+ getElementRects: on,
981
+ getClientRects: Xe,
982
+ getDimensions: en,
986
983
  getScale: z,
987
984
  isElement: R,
988
- isRTL: cn
985
+ isRTL: rn
989
986
  };
990
- function an(t, e) {
987
+ function cn(t, e) {
991
988
  let n = null, o;
992
989
  const r = S(t);
993
990
  function i() {
994
991
  var c;
995
992
  clearTimeout(o), (c = n) == null || c.disconnect(), n = null;
996
993
  }
997
- function s(c, a) {
998
- c === void 0 && (c = !1), a === void 0 && (a = 1), i();
994
+ function s(c, l) {
995
+ c === void 0 && (c = !1), l === void 0 && (l = 1), i();
999
996
  const {
1000
- left: l,
997
+ left: a,
1001
998
  top: f,
1002
999
  width: u,
1003
1000
  height: h
1004
1001
  } = t.getBoundingClientRect();
1005
1002
  if (c || e(), !u || !h)
1006
1003
  return;
1007
- const d = tt(f), m = tt(r.clientWidth - (l + u)), g = tt(r.clientHeight - (f + h)), y = tt(l), w = {
1004
+ const d = tt(f), m = tt(r.clientWidth - (a + u)), g = tt(r.clientHeight - (f + h)), y = tt(a), w = {
1008
1005
  rootMargin: -d + "px " + -m + "px " + -g + "px " + -y + "px",
1009
- threshold: M(0, ot(1, a)) || 1
1006
+ threshold: M(0, nt(1, l)) || 1
1010
1007
  };
1011
1008
  let x = !0;
1012
1009
  function b(v) {
1013
- const V = v[0].intersectionRatio;
1014
- if (V !== a) {
1010
+ const $ = v[0].intersectionRatio;
1011
+ if ($ !== l) {
1015
1012
  if (!x)
1016
1013
  return s();
1017
- V ? s(!1, V) : o = setTimeout(() => {
1014
+ $ ? s(!1, $) : o = setTimeout(() => {
1018
1015
  s(!1, 1e-7);
1019
1016
  }, 1e3);
1020
1017
  }
@@ -1033,55 +1030,55 @@ function an(t, e) {
1033
1030
  }
1034
1031
  return s(!0), i;
1035
1032
  }
1036
- function un(t, e, n, o) {
1033
+ function ln(t, e, n, o) {
1037
1034
  o === void 0 && (o = {});
1038
1035
  const {
1039
1036
  ancestorScroll: r = !0,
1040
1037
  ancestorResize: i = !0,
1041
1038
  elementResize: s = typeof ResizeObserver == "function",
1042
1039
  layoutShift: c = typeof IntersectionObserver == "function",
1043
- animationFrame: a = !1
1044
- } = o, l = Et(t), f = r || i ? [...l ? K(l) : [], ...K(e)] : [];
1040
+ animationFrame: l = !1
1041
+ } = o, a = Rt(t), f = r || i ? [...a ? q(a) : [], ...q(e)] : [];
1045
1042
  f.forEach((p) => {
1046
1043
  r && p.addEventListener("scroll", n, {
1047
1044
  passive: !0
1048
1045
  }), i && p.addEventListener("resize", n);
1049
1046
  });
1050
- const u = l && c ? an(l, n) : null;
1047
+ const u = a && c ? cn(a, n) : null;
1051
1048
  let h = -1, d = null;
1052
1049
  s && (d = new ResizeObserver((p) => {
1053
1050
  let [w] = p;
1054
- w && w.target === l && d && (d.unobserve(e), cancelAnimationFrame(h), h = requestAnimationFrame(() => {
1051
+ w && w.target === a && d && (d.unobserve(e), cancelAnimationFrame(h), h = requestAnimationFrame(() => {
1055
1052
  var x;
1056
1053
  (x = d) == null || x.observe(e);
1057
1054
  })), n();
1058
- }), l && !a && d.observe(l), d.observe(e));
1059
- let m, g = a ? $(t) : null;
1060
- a && y();
1055
+ }), a && !l && d.observe(a), d.observe(e));
1056
+ let m, g = l ? V(t) : null;
1057
+ l && y();
1061
1058
  function y() {
1062
- const p = $(t);
1059
+ const p = V(t);
1063
1060
  g && (p.x !== g.x || p.y !== g.y || p.width !== g.width || p.height !== g.height) && n(), g = p, m = requestAnimationFrame(y);
1064
1061
  }
1065
1062
  return n(), () => {
1066
1063
  var p;
1067
1064
  f.forEach((w) => {
1068
1065
  r && w.removeEventListener("scroll", n), i && w.removeEventListener("resize", n);
1069
- }), u == null || u(), (p = d) == null || p.disconnect(), d = null, a && cancelAnimationFrame(m);
1066
+ }), u == null || u(), (p = d) == null || p.disconnect(), d = null, l && cancelAnimationFrame(m);
1070
1067
  };
1071
1068
  }
1072
- const fn = Ie, dn = je, $t = Ue, hn = (t, e, n) => {
1069
+ const an = Ue, un = _e, Nt = ze, fn = (t, e, n) => {
1073
1070
  const o = /* @__PURE__ */ new Map(), r = {
1074
- platform: ln,
1071
+ platform: sn,
1075
1072
  ...n
1076
1073
  }, i = {
1077
1074
  ...r.platform,
1078
1075
  _c: o
1079
1076
  };
1080
- return Be(t, e, {
1077
+ return He(t, e, {
1081
1078
  ...r,
1082
1079
  platform: i
1083
1080
  });
1084
- }, zn = ({
1081
+ }, $n = ({
1085
1082
  content: t,
1086
1083
  open: e,
1087
1084
  placement: n,
@@ -1092,22 +1089,22 @@ const fn = Ie, dn = je, $t = Ue, hn = (t, e, n) => {
1092
1089
  s,
1093
1090
  () => qt(
1094
1091
  "body",
1095
- It.div(
1096
- G((a) => {
1097
- const l = a;
1098
- return l.style.position = "absolute", k(
1099
- un(c, l, async () => {
1100
- const { x: f, y: u } = await hn(c, l, {
1092
+ _t.div(
1093
+ G((l) => {
1094
+ const a = l;
1095
+ return a.style.position = "absolute", T(
1096
+ ln(c, a, async () => {
1097
+ const { x: f, y: u } = await fn(c, a, {
1101
1098
  placement: n,
1102
1099
  strategy: "absolute",
1103
1100
  middleware: [
1104
- $t(),
1105
- fn({ mainAxis: o, crossAxis: r }),
1106
- dn(),
1107
- $t()
1101
+ Nt(),
1102
+ an({ mainAxis: o, crossAxis: r }),
1103
+ un(),
1104
+ Nt()
1108
1105
  ]
1109
1106
  });
1110
- l.style.top = `${u}px`, l.style.left = `${f}px`;
1107
+ a.style.top = `${u}px`, a.style.left = `${f}px`;
1111
1108
  })
1112
1109
  );
1113
1110
  }),
@@ -1115,88 +1112,81 @@ const fn = Ie, dn = je, $t = Ue, hn = (t, e, n) => {
1115
1112
  )
1116
1113
  )
1117
1114
  );
1118
- }), mn = ({
1119
- request: t,
1120
- load: e,
1121
- convertError: n
1122
- }) => {
1115
+ }), dn = (t, e, n) => {
1123
1116
  const o = W(P.notAsked), r = o.map(
1124
1117
  (u) => P.isSuccess(u) ? u.value : void 0
1125
1118
  ), i = o.map(
1126
1119
  (u) => P.isFailure(u) ? u.error : void 0
1127
1120
  ), s = o.map((u) => P.isLoading(u));
1128
1121
  let c;
1129
- const a = async (u) => {
1122
+ const l = async (u) => {
1130
1123
  c == null || c.abort(), c = new AbortController();
1131
1124
  const h = c.signal, d = o.get();
1132
1125
  o.set(P.loading(P.getOrUndefined(d)));
1133
1126
  try {
1134
1127
  const m = await e({ request: u, abortSignal: h, previous: d });
1135
- c = void 0, o.set(P.success(m));
1128
+ await Promise.resolve(), c = void 0, o.set(P.success(m));
1136
1129
  } catch (m) {
1137
1130
  c = void 0, o.set(P.failure(n(m)));
1138
1131
  }
1139
- }, l = () => a(t.get()), f = () => {
1132
+ }, a = () => l(t.get()), f = () => {
1140
1133
  c == null || c.abort(), c = void 0, o.dispose();
1141
1134
  };
1142
- return o.onDispose(t.on(a)), {
1135
+ return o.onDispose(t.on(l)), {
1143
1136
  status: o,
1144
1137
  value: r,
1145
1138
  error: i,
1146
1139
  loading: s,
1147
- reload: l,
1140
+ reload: a,
1148
1141
  dispose: f
1149
1142
  };
1150
- }, pn = (t, e) => {
1151
- const { status: n, dispose: o, reload: r } = t, { notAsked: i, loading: s, error: c, success: a } = e;
1152
- return _(
1153
- k(o),
1154
- bt(n, {
1155
- NotAsked: () => i != null ? i(r) : void 0,
1156
- Loading: (l) => s != null ? s(l.$.previousValue, r) : ge(
1157
- l.$.previousValue,
1158
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
1159
- (f) => a(f, r),
1160
- // TODO unsure why this is needed
1161
- () => nt
1162
- ),
1163
- AsyncFailure: (l) => c != null ? c(l.$.error, r) : void 0,
1164
- AsyncSuccess: (l) => a(l.$.value, r)
1143
+ }, hn = (t, e) => {
1144
+ const { status: n, dispose: o, reload: r } = t, { loading: i, failure: s, success: c } = e;
1145
+ return X(
1146
+ T(o),
1147
+ Qt(n, {
1148
+ loading: i != null ? (l) => i(l, r) : void 0,
1149
+ failure: s != null ? (l) => s(l, r) : void 0,
1150
+ success: (l) => c(l, r)
1165
1151
  })
1166
1152
  );
1167
- }, Bn = (t) => {
1168
- const e = mn(t);
1169
- return pn(e, t);
1170
- }, gn = (t, e) => {
1153
+ }, Hn = ({
1154
+ request: t,
1155
+ load: e,
1156
+ mapError: n = (o) => o
1157
+ }) => {
1158
+ const o = dn(t, e, n);
1159
+ return (r) => hn(o, r);
1160
+ }, mn = (t, e) => {
1171
1161
  if (typeof e == "function")
1172
- return gn(t, { success: e });
1173
- const n = e.failure ?? ((r) => _(
1174
- k(r.on(console.error)),
1162
+ return mn(t, { success: e });
1163
+ const n = e.failure ?? ((r) => X(
1164
+ T(r.on(console.error)),
1175
1165
  r.map((i) => `Error: ${i}`)
1176
1166
  )), o = e.success;
1177
- return bt(J.toSignal(t), {
1167
+ return Yt(J.toSignal(t), {
1178
1168
  Success: (r) => o(r.$.value),
1179
1169
  Failure: (r) => n(r.$.error)
1180
1170
  });
1181
- }, Un = () => jt.focus((t) => {
1171
+ }, zn = () => It.focus((t) => {
1182
1172
  var e;
1183
1173
  return (e = t.target) == null ? void 0 : e.select();
1184
- }), _n = (t) => xt((e) => {
1174
+ }), Bn = (t) => xt((e) => {
1185
1175
  const { element: n } = e, o = W({
1186
1176
  width: n.clientWidth,
1187
1177
  height: n.clientHeight
1188
- }), r = lt(t(o))(e), i = () => {
1178
+ }), r = ct(t(o))(e), i = () => {
1189
1179
  o.set({ width: n.clientWidth, height: n.clientHeight });
1190
1180
  };
1191
1181
  let s;
1192
- return typeof ResizeObserver == "function" && (s = new ResizeObserver(i), s.observe(n)), k((c) => {
1182
+ return typeof ResizeObserver == "function" && (s = new ResizeObserver(i), s.observe(n)), T((c) => {
1193
1183
  s == null || s.disconnect(), r(c);
1194
1184
  });
1195
- }), In = (t) => (e) => {
1185
+ }), Un = (t) => (e) => {
1196
1186
  const n = vt(), o = W({
1197
1187
  width: (n == null ? void 0 : n.innerWidth) ?? 0,
1198
1188
  height: (n == null ? void 0 : n.innerHeight) ?? 0
1199
- }), r = lt(t(o))(e), i = () => {
1189
+ }), r = ct(t(o))(e), i = () => {
1200
1190
  o.set({
1201
1191
  width: (n == null ? void 0 : n.innerWidth) ?? 0,
1202
1192
  height: (n == null ? void 0 : n.innerHeight) ?? 0
@@ -1205,7 +1195,7 @@ const fn = Ie, dn = je, $t = Ue, hn = (t, e, n) => {
1205
1195
  return n == null || n.addEventListener("resize", i), (s) => {
1206
1196
  n == null || n.removeEventListener("resize", i), r(s);
1207
1197
  };
1208
- }, yn = (t, e) => {
1198
+ }, pn = (t, e) => {
1209
1199
  const n = e.split("/").filter((r) => r !== ""), o = {};
1210
1200
  for (let r = 0; r < t.length; r++) {
1211
1201
  const i = t[r], s = n[r];
@@ -1220,21 +1210,21 @@ const fn = Ie, dn = je, $t = Ue, hn = (t, e, n) => {
1220
1210
  return { params: o, path: e };
1221
1211
  }
1222
1212
  return n.length !== t.length ? null : { params: o, path: e };
1223
- }, wn = (t) => t.split("/").map((e) => e.startsWith(":") ? { type: "param", name: e.slice(1) } : e === "*" ? { type: "catch-all" } : { type: "literal", value: e }).filter((e) => e.type !== "literal" || e.value !== ""), xn = (t) => {
1213
+ }, gn = (t) => t.split("/").map((e) => e.startsWith(":") ? { type: "param", name: e.slice(1) } : e === "*" ? { type: "catch-all" } : { type: "literal", value: e }).filter((e) => e.type !== "literal" || e.value !== ""), yn = (t) => {
1224
1214
  const e = t.map((n) => {
1225
- const o = wn(n);
1215
+ const o = gn(n);
1226
1216
  return { route: n, segments: o };
1227
1217
  });
1228
1218
  return function(o) {
1229
1219
  for (const { segments: r, route: i } of e) {
1230
- const s = yn(r, o);
1220
+ const s = pn(r, o);
1231
1221
  if (s)
1232
1222
  return { ...s, route: i };
1233
1223
  }
1234
1224
  return null;
1235
1225
  };
1236
- }, jn = (t) => {
1237
- const e = xn(Object.keys(t));
1226
+ }, _n = (t) => {
1227
+ const e = yn(Object.keys(t));
1238
1228
  return Jt((n) => {
1239
1229
  const o = n.map((r) => {
1240
1230
  const i = e(r.pathname);
@@ -1248,16 +1238,16 @@ const fn = Ie, dn = je, $t = Ue, hn = (t, e, n) => {
1248
1238
  hash: r.hash
1249
1239
  };
1250
1240
  });
1251
- return ye(
1241
+ return ge(
1252
1242
  o.map((r) => [r.route, r]),
1253
1243
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
1254
1244
  t
1255
1245
  );
1256
1246
  });
1257
- }, ct = 60 * 1e3, wt = 60 * ct, X = 24 * wt, Vt = 7 * X, Ht = 30 * X, vn = 365 * X, bn = [
1247
+ }, st = 60 * 1e3, wt = 60 * st, K = 24 * wt, Vt = 7 * K, $t = 30 * K, wn = 365 * K, xn = [
1258
1248
  {
1259
- max: ct * 90,
1260
- value: ct,
1249
+ max: st * 90,
1250
+ value: st,
1261
1251
  name: "minute",
1262
1252
  past: { singular: "a minute ago", plural: "{} minutes ago" },
1263
1253
  future: { singular: "in a minute", plural: "in {} minutes" }
@@ -1270,8 +1260,8 @@ const fn = Ie, dn = je, $t = Ue, hn = (t, e, n) => {
1270
1260
  future: { singular: "in an hour", plural: "in {} hours" }
1271
1261
  },
1272
1262
  {
1273
- max: X * 10,
1274
- value: X,
1263
+ max: K * 10,
1264
+ value: K,
1275
1265
  name: "day",
1276
1266
  past: { singular: "yesterday", plural: "{} days ago" },
1277
1267
  future: { singular: "tomorrow", plural: "in {} days" }
@@ -1284,21 +1274,21 @@ const fn = Ie, dn = je, $t = Ue, hn = (t, e, n) => {
1284
1274
  future: { singular: "in a week", plural: "in {} weeks" }
1285
1275
  },
1286
1276
  {
1287
- max: Ht * 18,
1288
- value: Ht,
1277
+ max: $t * 18,
1278
+ value: $t,
1289
1279
  name: "month",
1290
1280
  past: { singular: "last month", plural: "{} months ago" },
1291
1281
  future: { singular: "in a month", plural: "in {} months" }
1292
1282
  },
1293
1283
  {
1294
1284
  max: 1 / 0,
1295
- value: vn,
1285
+ value: wn,
1296
1286
  name: "year",
1297
1287
  past: { singular: "last year", plural: "{} years ago" },
1298
1288
  future: { singular: "in a year", plural: "in {} years" }
1299
1289
  }
1300
1290
  ];
1301
- function zt(t, e, n, o) {
1291
+ function Ht(t, e, n, o) {
1302
1292
  const r = Math.round(t / e);
1303
1293
  return r <= 1 ? n : o.replace(
1304
1294
  "{}",
@@ -1308,77 +1298,77 @@ function zt(t, e, n, o) {
1308
1298
  })
1309
1299
  );
1310
1300
  }
1311
- const An = (t = 1e3) => {
1312
- const e = W(/* @__PURE__ */ new Date()), n = ve(() => e.set(/* @__PURE__ */ new Date()), t);
1301
+ const vn = (t = 1e3) => {
1302
+ const e = W(/* @__PURE__ */ new Date()), n = xe(() => e.set(/* @__PURE__ */ new Date()), t);
1313
1303
  return e.onDispose(n), e;
1314
- }, Rn = (t) => {
1304
+ }, bn = (t) => {
1315
1305
  const e = Math.abs(t);
1316
- if (e < ct)
1306
+ if (e < st)
1317
1307
  return t < 0 ? "just now" : "in a moment";
1318
- for (const n of bn)
1308
+ for (const n of xn)
1319
1309
  if (e < n.max)
1320
- return t < 0 ? zt(e, n.value, n.past.singular, n.past.plural) : zt(e, n.value, n.future.singular, n.future.plural);
1310
+ return t < 0 ? Ht(e, n.value, n.past.singular, n.past.plural) : Ht(e, n.value, n.future.singular, n.future.plural);
1321
1311
  throw new Error("unreachable");
1322
- }, En = (t, { now: e, frequency: n = 1e4 } = {}) => {
1323
- const o = e != null ? _t.is(e) ? e.derive() : W(e) : An(n), r = we(
1312
+ }, An = (t, { now: e, frequency: n = 1e4 } = {}) => {
1313
+ const o = e != null ? Ut.is(e) ? e.derive() : W(e) : vn(n), r = ye(
1324
1314
  t,
1325
1315
  o
1326
1316
  )((i, s) => i.getTime() - s.getTime());
1327
1317
  return r.onDispose(() => J.dispose(o)), r;
1328
- }, On = (t, e = {}) => {
1329
- const n = En(t, e), o = n.map(Rn);
1318
+ }, Rn = (t, e = {}) => {
1319
+ const n = An(t, e), o = n.map(bn);
1330
1320
  return o.onDispose(n.dispose), o;
1331
- }, Yn = (t, e = {}) => On(t, e);
1332
- class Ln extends xe {
1321
+ }, In = (t, e = {}) => Rn(t, e);
1322
+ class En extends we {
1333
1323
  constructor() {
1334
1324
  super(...arguments);
1335
1325
  /**
1336
1326
  * Triggers an update of the Ticker by incrementing its internal value.
1337
1327
  * @returns void
1338
1328
  */
1339
- Ct(this, "tick", () => this.update((n) => n + 1));
1329
+ kt(this, "tick", () => this.update((n) => n + 1));
1340
1330
  }
1341
1331
  }
1342
- const qn = (t = 0) => new Ln(t, (e, n) => e === n);
1332
+ const jn = (t = 0) => new En(t, (e, n) => e === n);
1343
1333
  export {
1344
1334
  Se as Anchor,
1345
- Te as AsyncResultView,
1346
- Mn as AutoFocus,
1347
- Nn as AutoSelect,
1348
- _n as ElementSize,
1349
- Vn as HTMLTitle,
1350
- $n as HiddenWhenEmpty,
1351
- De as InViewport,
1352
- Oe as LocationProviderMarker,
1353
- zn as PopOver,
1354
- Wn as ProvideAppearance,
1355
- Cn as ProvideLocation,
1356
- Bn as Resource,
1357
- pn as ResourceDisplay,
1358
- gn as ResultView,
1359
- jn as Router,
1360
- Un as SelectOnFocus,
1361
- Ln as Ticker,
1362
- Fn as UseAppearance,
1335
+ Qt as AsyncResultView,
1336
+ Wn as AutoFocus,
1337
+ Fn as AutoSelect,
1338
+ Bn as ElementSize,
1339
+ Nn as HTMLTitle,
1340
+ Mn as HiddenWhenEmpty,
1341
+ Ce as InViewport,
1342
+ Ee as LocationProviderMarker,
1343
+ $n as PopOver,
1344
+ Pn as ProvideAppearance,
1345
+ Hn as Resource,
1346
+ hn as ResourceDisplay,
1347
+ mn as ResultView,
1348
+ _n as Router,
1349
+ zn as SelectOnFocus,
1350
+ Tn as SetLocation,
1351
+ En as Ticker,
1352
+ Dn as UseAppearance,
1363
1353
  Jt as UseLocation,
1364
- Hn as WhenInViewport,
1365
- In as WindowSize,
1366
- Ae as _checkExtensionCondition,
1367
- be as _getExtension,
1368
- xn as _makeRouteMatcher,
1369
- wn as _parseRouteSegments,
1354
+ Vn as WhenInViewport,
1355
+ Un as WindowSize,
1356
+ be as _checkExtensionCondition,
1357
+ ve as _getExtension,
1358
+ yn as _makeRouteMatcher,
1359
+ gn as _parseRouteSegments,
1370
1360
  Gt as appearanceMarker,
1371
- Pn as areLocationsEqual,
1372
- Ee as handleAnchorClick,
1373
- Le as locationFromURL,
1374
- An as makeNowSignal,
1375
- Yn as makeRelativeTime,
1376
- En as makeRelativeTimeMillisSignal,
1377
- On as makeRelativeTimeSignal,
1378
- mn as makeResource,
1379
- qn as makeTicker,
1380
- yn as matchesRoute,
1381
- ke as setLocationFromUrl,
1382
- Rn as timeDiffToString,
1383
- Dn as urlFromLocation
1361
+ kn as areLocationsEqual,
1362
+ Re as handleAnchorClick,
1363
+ Oe as locationFromURL,
1364
+ dn as makeResource,
1365
+ pn as matchesRoute,
1366
+ vn as nowSignal,
1367
+ In as relativeTime,
1368
+ An as relativeTimeMillisSignal,
1369
+ Rn as relativeTimeSignal,
1370
+ Le as setLocationFromUrl,
1371
+ jn as ticker,
1372
+ bn as timeDiffToString,
1373
+ Cn as urlFromLocation
1384
1374
  };