highsoft-ui 1.0.65 → 1.0.67

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.
@@ -1,14 +1,14 @@
1
- import { jsx as w, jsxs as q, Fragment as ee } from "react/jsx-runtime";
2
- import { z as Xe, b as Qe } from "../../utils-C7rfowvr.js";
1
+ import { jsx as w, jsxs as q, Fragment as ne } from "react/jsx-runtime";
2
+ import { z as Qe, b as qe } from "../../utils-C7rfowvr.js";
3
3
  import * as g from "react";
4
- import { useLayoutEffect as qe } from "react";
5
- import { u as kt, P as ft, c as ne, a as yt, b as Ge, d as Ue, e as Ze, f as st, g as oe, h as Je, i as tn, R as en, j as nn, k as on, F as rn, D as sn, C as cn } from "../../index-CM3YgRXK.js";
6
- import { _ as At } from "../../extends-hS2Bh-Yp.js";
7
- import { c as an } from "../../clsx-OuTLNxxd.js";
8
- import { Button as ln } from "../Button/index.js";
9
- import * as fn from "react-dom";
10
- var un = function(e) {
11
- return /* @__PURE__ */ w("svg", At({
4
+ import { useLayoutEffect as Ge } from "react";
5
+ import { u as Mt, P as ft, c as oe, a as yt, b as Ue, d as Ze, e as Je, f as st, g as re, h as tn, i as en, R as nn, j as on, k as rn, F as sn, D as cn, C as an } from "../../index-CM3YgRXK.js";
6
+ import { _ as bt } from "../../extends-hS2Bh-Yp.js";
7
+ import { c as ln } from "../../clsx-OuTLNxxd.js";
8
+ import { Button as fn } from "../Button/index.js";
9
+ import * as un from "react-dom";
10
+ var dn = function(e) {
11
+ return /* @__PURE__ */ w("svg", bt({
12
12
  xmlns: "http://www.w3.org/2000/svg",
13
13
  width: 24,
14
14
  height: 24,
@@ -23,8 +23,8 @@ var un = function(e) {
23
23
  d: "M15 17v4H9v-4m-3.8 0h13.6c1.1201 0 1.6802 0 2.108-.218a2 2 0 0 0 .874-.874C22 15.4802 22 14.9201 22 13.8V6.2c0-1.1201 0-1.6802-.218-2.108a2 2 0 0 0-.874-.874C20.4802 3 19.9201 3 18.8 3H5.2c-1.1201 0-1.6802 0-2.108.218a2 2 0 0 0-.874.874C2 4.5198 2 5.08 2 6.2v7.6c0 1.1201 0 1.6802.218 2.108.1917.3763.4977.6823.874.874C3.5198 17 4.08 17 5.2 17"
24
24
  })
25
25
  }));
26
- }, dn = function(e) {
27
- return /* @__PURE__ */ w("svg", At({
26
+ }, pn = function(e) {
27
+ return /* @__PURE__ */ w("svg", bt({
28
28
  xmlns: "http://www.w3.org/2000/svg",
29
29
  width: 24,
30
30
  height: 24,
@@ -39,8 +39,8 @@ var un = function(e) {
39
39
  d: "M21.9548 12.9564c-1.3769 2.4153-3.9757 4.0437-6.9548 4.0437-4.4183 0-8-3.5817-8-8 0-2.9794 1.6287-5.5783 4.0443-6.9552C5.9698 2.5261 2 6.7994 2 11.9998c0 5.5229 4.4772 10 10 10 5.2002 0 9.4733-3.9693 9.9548-9.0434"
40
40
  })
41
41
  }));
42
- }, pn = function(e) {
43
- return /* @__PURE__ */ w("svg", At({
42
+ }, hn = function(e) {
43
+ return /* @__PURE__ */ w("svg", bt({
44
44
  xmlns: "http://www.w3.org/2000/svg",
45
45
  width: 24,
46
46
  height: 24,
@@ -55,8 +55,8 @@ var un = function(e) {
55
55
  d: "M3 8h12m0 0c0 1.6569 1.3431 3 3 3s3-1.3431 3-3-1.3431-3-3-3-3 1.3431-3 3m-6 8h12M9 16c0 1.6569-1.3431 3-3 3s-3-1.3431-3-3 1.3431-3 3-3 3 1.3431 3 3"
56
56
  })
57
57
  }));
58
- }, hn = function(e) {
59
- return /* @__PURE__ */ w("svg", At({
58
+ }, mn = function(e) {
59
+ return /* @__PURE__ */ w("svg", bt({
60
60
  xmlns: "http://www.w3.org/2000/svg",
61
61
  width: 24,
62
62
  height: 24,
@@ -72,9 +72,9 @@ var un = function(e) {
72
72
  })
73
73
  }));
74
74
  };
75
- function mn(t) {
75
+ function gn(t) {
76
76
  const [e, n] = g.useState(void 0);
77
- return kt(() => {
77
+ return Mt(() => {
78
78
  if (t) {
79
79
  n({ width: t.offsetWidth, height: t.offsetHeight });
80
80
  const o = new ResizeObserver((r) => {
@@ -94,22 +94,22 @@ function mn(t) {
94
94
  n(void 0);
95
95
  }, [t]), e;
96
96
  }
97
- const gn = ["top", "right", "bottom", "left"], G = Math.min, H = Math.max, gt = Math.round, ht = Math.floor, j = (t) => ({
97
+ const wn = ["top", "right", "bottom", "left"], G = Math.min, W = Math.max, gt = Math.round, ht = Math.floor, j = (t) => ({
98
98
  x: t,
99
99
  y: t
100
- }), wn = {
100
+ }), vn = {
101
101
  left: "right",
102
102
  right: "left",
103
103
  bottom: "top",
104
104
  top: "bottom"
105
- }, vn = {
105
+ }, xn = {
106
106
  start: "end",
107
107
  end: "start"
108
108
  };
109
- function Mt(t, e, n) {
110
- return H(t, G(e, n));
109
+ function Dt(t, e, n) {
110
+ return W(t, G(e, n));
111
111
  }
112
- function X(t, e) {
112
+ function K(t, e) {
113
113
  return typeof t == "function" ? t(e) : t;
114
114
  }
115
115
  function Q(t) {
@@ -118,54 +118,54 @@ function Q(t) {
118
118
  function ot(t) {
119
119
  return t.split("-")[1];
120
120
  }
121
- function Lt(t) {
121
+ function Tt(t) {
122
122
  return t === "x" ? "y" : "x";
123
123
  }
124
- function Tt(t) {
124
+ function Nt(t) {
125
125
  return t === "y" ? "height" : "width";
126
126
  }
127
- const xn = /* @__PURE__ */ new Set(["top", "bottom"]);
127
+ const yn = /* @__PURE__ */ new Set(["top", "bottom"]);
128
128
  function V(t) {
129
- return xn.has(Q(t)) ? "y" : "x";
129
+ return yn.has(Q(t)) ? "y" : "x";
130
130
  }
131
- function Nt(t) {
132
- return Lt(V(t));
131
+ function Ft(t) {
132
+ return Tt(V(t));
133
133
  }
134
- function yn(t, e, n) {
134
+ function bn(t, e, n) {
135
135
  n === void 0 && (n = !1);
136
- const o = ot(t), r = Nt(t), i = Tt(r);
136
+ const o = ot(t), r = Ft(t), i = Nt(r);
137
137
  let s = r === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
138
138
  return e.reference[i] > e.floating[i] && (s = wt(s)), [s, wt(s)];
139
139
  }
140
140
  function An(t) {
141
141
  const e = wt(t);
142
- return [Dt(t), e, Dt(e)];
142
+ return [Lt(t), e, Lt(e)];
143
143
  }
144
- function Dt(t) {
145
- return t.replace(/start|end/g, (e) => vn[e]);
144
+ function Lt(t) {
145
+ return t.replace(/start|end/g, (e) => xn[e]);
146
146
  }
147
- const Yt = ["left", "right"], Kt = ["right", "left"], Pn = ["top", "bottom"], bn = ["bottom", "top"];
148
- function Cn(t, e, n) {
147
+ const Xt = ["left", "right"], Yt = ["right", "left"], Pn = ["top", "bottom"], Cn = ["bottom", "top"];
148
+ function Rn(t, e, n) {
149
149
  switch (t) {
150
150
  case "top":
151
151
  case "bottom":
152
- return n ? e ? Kt : Yt : e ? Yt : Kt;
152
+ return n ? e ? Yt : Xt : e ? Xt : Yt;
153
153
  case "left":
154
154
  case "right":
155
- return e ? Pn : bn;
155
+ return e ? Pn : Cn;
156
156
  default:
157
157
  return [];
158
158
  }
159
159
  }
160
- function Rn(t, e, n, o) {
160
+ function On(t, e, n, o) {
161
161
  const r = ot(t);
162
- let i = Cn(Q(t), n === "start", o);
163
- return r && (i = i.map((s) => s + "-" + r), e && (i = i.concat(i.map(Dt)))), i;
162
+ let i = Rn(Q(t), n === "start", o);
163
+ return r && (i = i.map((s) => s + "-" + r), e && (i = i.concat(i.map(Lt)))), i;
164
164
  }
165
165
  function wt(t) {
166
- return t.replace(/left|right|bottom|top/g, (e) => wn[e]);
166
+ return t.replace(/left|right|bottom|top/g, (e) => vn[e]);
167
167
  }
168
- function On(t) {
168
+ function Sn(t) {
169
169
  return {
170
170
  top: 0,
171
171
  right: 0,
@@ -174,8 +174,8 @@ function On(t) {
174
174
  ...t
175
175
  };
176
176
  }
177
- function re(t) {
178
- return typeof t != "number" ? On(t) : {
177
+ function ie(t) {
178
+ return typeof t != "number" ? Sn(t) : {
179
179
  top: t,
180
180
  right: t,
181
181
  bottom: t,
@@ -200,12 +200,12 @@ function vt(t) {
200
200
  y: n
201
201
  };
202
202
  }
203
- function Xt(t, e, n) {
203
+ function Kt(t, e, n) {
204
204
  let {
205
205
  reference: o,
206
206
  floating: r
207
207
  } = t;
208
- const i = V(e), s = Nt(e), c = Tt(s), a = Q(e), l = i === "y", f = o.x + o.width / 2 - r.width / 2, u = o.y + o.height / 2 - r.height / 2, p = o[c] / 2 - r[c] / 2;
208
+ const i = V(e), s = Ft(e), c = Nt(s), a = Q(e), l = i === "y", f = o.x + o.width / 2 - r.width / 2, u = o.y + o.height / 2 - r.height / 2, p = o[c] / 2 - r[c] / 2;
209
209
  let d;
210
210
  switch (a) {
211
211
  case "top":
@@ -248,7 +248,7 @@ function Xt(t, e, n) {
248
248
  }
249
249
  return d;
250
250
  }
251
- const Sn = async (t, e, n) => {
251
+ const En = async (t, e, n) => {
252
252
  const {
253
253
  placement: o = "bottom",
254
254
  strategy: r = "absolute",
@@ -262,16 +262,16 @@ const Sn = async (t, e, n) => {
262
262
  }), {
263
263
  x: f,
264
264
  y: u
265
- } = Xt(l, o, a), p = o, d = {}, h = 0;
265
+ } = Kt(l, o, a), p = o, d = {}, h = 0;
266
266
  for (let m = 0; m < c.length; m++) {
267
267
  const {
268
268
  name: x,
269
269
  fn: v
270
270
  } = c[m], {
271
271
  x: y,
272
- y: b,
273
- data: A,
274
- reset: P
272
+ y: P,
273
+ data: b,
274
+ reset: A
275
275
  } = await v({
276
276
  x: f,
277
277
  y: u,
@@ -286,20 +286,20 @@ const Sn = async (t, e, n) => {
286
286
  floating: e
287
287
  }
288
288
  });
289
- f = y ?? f, u = b ?? u, d = {
289
+ f = y ?? f, u = P ?? u, d = {
290
290
  ...d,
291
291
  [x]: {
292
292
  ...d[x],
293
- ...A
293
+ ...b
294
294
  }
295
- }, P && h <= 50 && (h++, typeof P == "object" && (P.placement && (p = P.placement), P.rects && (l = P.rects === !0 ? await s.getElementRects({
295
+ }, A && h <= 50 && (h++, typeof A == "object" && (A.placement && (p = A.placement), A.rects && (l = A.rects === !0 ? await s.getElementRects({
296
296
  reference: t,
297
297
  floating: e,
298
298
  strategy: r
299
- }) : P.rects), {
299
+ }) : A.rects), {
300
300
  x: f,
301
301
  y: u
302
- } = Xt(l, p, a)), m = -1);
302
+ } = Kt(l, p, a)), m = -1);
303
303
  }
304
304
  return {
305
305
  x: f,
@@ -325,7 +325,7 @@ async function at(t, e) {
325
325
  elementContext: u = "floating",
326
326
  altBoundary: p = !1,
327
327
  padding: d = 0
328
- } = X(e, t), h = re(d), x = c[p ? u === "floating" ? "reference" : "floating" : u], v = vt(await i.getClippingRect({
328
+ } = K(e, t), h = ie(d), x = c[p ? u === "floating" ? "reference" : "floating" : u], v = vt(await i.getClippingRect({
329
329
  element: (n = await (i.isElement == null ? void 0 : i.isElement(x))) == null || n ? x : x.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(c.floating)),
330
330
  boundary: l,
331
331
  rootBoundary: f,
@@ -335,26 +335,26 @@ async function at(t, e) {
335
335
  y: r,
336
336
  width: s.floating.width,
337
337
  height: s.floating.height
338
- } : s.reference, b = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(c.floating)), A = await (i.isElement == null ? void 0 : i.isElement(b)) ? await (i.getScale == null ? void 0 : i.getScale(b)) || {
338
+ } : s.reference, P = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(c.floating)), b = await (i.isElement == null ? void 0 : i.isElement(P)) ? await (i.getScale == null ? void 0 : i.getScale(P)) || {
339
339
  x: 1,
340
340
  y: 1
341
341
  } : {
342
342
  x: 1,
343
343
  y: 1
344
- }, P = vt(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
344
+ }, A = vt(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
345
345
  elements: c,
346
346
  rect: y,
347
- offsetParent: b,
347
+ offsetParent: P,
348
348
  strategy: a
349
349
  }) : y);
350
350
  return {
351
- top: (v.top - P.top + h.top) / A.y,
352
- bottom: (P.bottom - v.bottom + h.bottom) / A.y,
353
- left: (v.left - P.left + h.left) / A.x,
354
- right: (P.right - v.right + h.right) / A.x
351
+ top: (v.top - A.top + h.top) / b.y,
352
+ bottom: (A.bottom - v.bottom + h.bottom) / b.y,
353
+ left: (v.left - A.left + h.left) / b.x,
354
+ right: (A.right - v.right + h.right) / b.x
355
355
  };
356
356
  }
357
- const En = (t) => ({
357
+ const kn = (t) => ({
358
358
  name: "arrow",
359
359
  options: t,
360
360
  async fn(e) {
@@ -369,16 +369,16 @@ const En = (t) => ({
369
369
  } = e, {
370
370
  element: l,
371
371
  padding: f = 0
372
- } = X(t, e) || {};
372
+ } = K(t, e) || {};
373
373
  if (l == null)
374
374
  return {};
375
- const u = re(f), p = {
375
+ const u = ie(f), p = {
376
376
  x: n,
377
377
  y: o
378
- }, d = Nt(r), h = Tt(d), m = await s.getDimensions(l), x = d === "y", v = x ? "top" : "left", y = x ? "bottom" : "right", b = x ? "clientHeight" : "clientWidth", A = i.reference[h] + i.reference[d] - p[d] - i.floating[h], P = p[d] - i.reference[d], O = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l));
379
- let R = O ? O[b] : 0;
380
- (!R || !await (s.isElement == null ? void 0 : s.isElement(O))) && (R = c.floating[b] || i.floating[h]);
381
- const _ = A / 2 - P / 2, F = R / 2 - m[h] / 2 - 1, D = G(u[v], F), T = G(u[y], F), N = D, E = R - m[h] - T, S = R / 2 - m[h] / 2 + _, $ = Mt(N, S, E), k = !a.arrow && ot(r) != null && S !== $ && i.reference[h] / 2 - (S < N ? D : T) - m[h] / 2 < 0, M = k ? S < N ? S - N : S - E : 0;
378
+ }, d = Ft(r), h = Nt(d), m = await s.getDimensions(l), x = d === "y", v = x ? "top" : "left", y = x ? "bottom" : "right", P = x ? "clientHeight" : "clientWidth", b = i.reference[h] + i.reference[d] - p[d] - i.floating[h], A = p[d] - i.reference[d], O = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l));
379
+ let R = O ? O[P] : 0;
380
+ (!R || !await (s.isElement == null ? void 0 : s.isElement(O))) && (R = c.floating[P] || i.floating[h]);
381
+ const L = b / 2 - A / 2, F = R / 2 - m[h] / 2 - 1, D = G(u[v], F), T = G(u[y], F), N = D, E = R - m[h] - T, S = R / 2 - m[h] / 2 + L, $ = Dt(N, S, E), k = !a.arrow && ot(r) != null && S !== $ && i.reference[h] / 2 - (S < N ? D : T) - m[h] / 2 < 0, M = k ? S < N ? S - N : S - E : 0;
382
382
  return {
383
383
  [d]: p[d] + M,
384
384
  data: {
@@ -391,7 +391,7 @@ const En = (t) => ({
391
391
  reset: k
392
392
  };
393
393
  }
394
- }), kn = function(t) {
394
+ }), Mn = function(t) {
395
395
  return t === void 0 && (t = {}), {
396
396
  name: "flip",
397
397
  options: t,
@@ -412,16 +412,16 @@ const En = (t) => ({
412
412
  fallbackAxisSideDirection: h = "none",
413
413
  flipAlignment: m = !0,
414
414
  ...x
415
- } = X(t, e);
415
+ } = K(t, e);
416
416
  if ((n = i.arrow) != null && n.alignmentOffset)
417
417
  return {};
418
- const v = Q(r), y = V(c), b = Q(c) === c, A = await (a.isRTL == null ? void 0 : a.isRTL(l.floating)), P = p || (b || !m ? [wt(c)] : An(c)), O = h !== "none";
419
- !p && O && P.push(...Rn(c, m, h, A));
420
- const R = [c, ...P], _ = await at(e, x), F = [];
418
+ const v = Q(r), y = V(c), P = Q(c) === c, b = await (a.isRTL == null ? void 0 : a.isRTL(l.floating)), A = p || (P || !m ? [wt(c)] : An(c)), O = h !== "none";
419
+ !p && O && A.push(...On(c, m, h, b));
420
+ const R = [c, ...A], L = await at(e, x), F = [];
421
421
  let D = ((o = i.flip) == null ? void 0 : o.overflows) || [];
422
- if (f && F.push(_[v]), u) {
423
- const S = yn(r, s, A);
424
- F.push(_[S[0]], _[S[1]]);
422
+ if (f && F.push(L[v]), u) {
423
+ const S = bn(r, s, b);
424
+ F.push(L[S[0]], L[S[1]]);
425
425
  }
426
426
  if (D = [...D, {
427
427
  placement: r,
@@ -448,13 +448,13 @@ const En = (t) => ({
448
448
  var E;
449
449
  const M = (E = D.filter((C) => {
450
450
  if (O) {
451
- const L = V(C.placement);
452
- return L === y || // Create a bias to the `y` side axis due to horizontal
451
+ const _ = V(C.placement);
452
+ return _ === y || // Create a bias to the `y` side axis due to horizontal
453
453
  // reading directions favoring greater width.
454
- L === "y";
454
+ _ === "y";
455
455
  }
456
456
  return !0;
457
- }).map((C) => [C.placement, C.overflows.filter((L) => L > 0).reduce((L, z) => L + z, 0)]).sort((C, L) => C[1] - L[1])[0]) == null ? void 0 : E[0];
457
+ }).map((C) => [C.placement, C.overflows.filter((_) => _ > 0).reduce((_, z) => _ + z, 0)]).sort((C, _) => C[1] - _[1])[0]) == null ? void 0 : E[0];
458
458
  M && (k = M);
459
459
  break;
460
460
  }
@@ -482,9 +482,9 @@ function Qt(t, e) {
482
482
  };
483
483
  }
484
484
  function qt(t) {
485
- return gn.some((e) => t[e] >= 0);
485
+ return wn.some((e) => t[e] >= 0);
486
486
  }
487
- const Mn = function(t) {
487
+ const Dn = function(t) {
488
488
  return t === void 0 && (t = {}), {
489
489
  name: "hide",
490
490
  options: t,
@@ -494,7 +494,7 @@ const Mn = function(t) {
494
494
  } = e, {
495
495
  strategy: o = "referenceHidden",
496
496
  ...r
497
- } = X(t, e);
497
+ } = K(t, e);
498
498
  switch (o) {
499
499
  case "referenceHidden": {
500
500
  const i = await at(e, {
@@ -525,13 +525,13 @@ const Mn = function(t) {
525
525
  }
526
526
  }
527
527
  };
528
- }, ie = /* @__PURE__ */ new Set(["left", "top"]);
529
- async function Dn(t, e) {
528
+ }, se = /* @__PURE__ */ new Set(["left", "top"]);
529
+ async function Ln(t, e) {
530
530
  const {
531
531
  placement: n,
532
532
  platform: o,
533
533
  elements: r
534
- } = t, i = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), s = Q(n), c = ot(n), a = V(n) === "y", l = ie.has(s) ? -1 : 1, f = i && a ? -1 : 1, u = X(e, t);
534
+ } = t, i = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), s = Q(n), c = ot(n), a = V(n) === "y", l = se.has(s) ? -1 : 1, f = i && a ? -1 : 1, u = K(e, t);
535
535
  let {
536
536
  mainAxis: p,
537
537
  crossAxis: d,
@@ -564,7 +564,7 @@ const _n = function(t) {
564
564
  y: i,
565
565
  placement: s,
566
566
  middlewareData: c
567
- } = e, a = await Dn(e, t);
567
+ } = e, a = await Ln(e, t);
568
568
  return s === ((n = c.offset) == null ? void 0 : n.placement) && (o = c.arrow) != null && o.alignmentOffset ? {} : {
569
569
  x: r + a.x,
570
570
  y: i + a.y,
@@ -575,7 +575,7 @@ const _n = function(t) {
575
575
  };
576
576
  }
577
577
  };
578
- }, Ln = function(t) {
578
+ }, Tn = function(t) {
579
579
  return t === void 0 && (t = {}), {
580
580
  name: "shift",
581
581
  options: t,
@@ -600,18 +600,18 @@ const _n = function(t) {
600
600
  }
601
601
  },
602
602
  ...a
603
- } = X(t, e), l = {
603
+ } = K(t, e), l = {
604
604
  x: n,
605
605
  y: o
606
- }, f = await at(e, a), u = V(Q(r)), p = Lt(u);
606
+ }, f = await at(e, a), u = V(Q(r)), p = Tt(u);
607
607
  let d = l[p], h = l[u];
608
608
  if (i) {
609
- const x = p === "y" ? "top" : "left", v = p === "y" ? "bottom" : "right", y = d + f[x], b = d - f[v];
610
- d = Mt(y, d, b);
609
+ const x = p === "y" ? "top" : "left", v = p === "y" ? "bottom" : "right", y = d + f[x], P = d - f[v];
610
+ d = Dt(y, d, P);
611
611
  }
612
612
  if (s) {
613
- const x = u === "y" ? "top" : "left", v = u === "y" ? "bottom" : "right", y = h + f[x], b = h - f[v];
614
- h = Mt(y, h, b);
613
+ const x = u === "y" ? "top" : "left", v = u === "y" ? "bottom" : "right", y = h + f[x], P = h - f[v];
614
+ h = Dt(y, h, P);
615
615
  }
616
616
  const m = c.fn({
617
617
  ...e,
@@ -631,7 +631,7 @@ const _n = function(t) {
631
631
  };
632
632
  }
633
633
  };
634
- }, Tn = function(t) {
634
+ }, Nn = function(t) {
635
635
  return t === void 0 && (t = {}), {
636
636
  options: t,
637
637
  fn(e) {
@@ -645,12 +645,12 @@ const _n = function(t) {
645
645
  offset: c = 0,
646
646
  mainAxis: a = !0,
647
647
  crossAxis: l = !0
648
- } = X(t, e), f = {
648
+ } = K(t, e), f = {
649
649
  x: n,
650
650
  y: o
651
- }, u = V(r), p = Lt(u);
651
+ }, u = V(r), p = Tt(u);
652
652
  let d = f[p], h = f[u];
653
- const m = X(c, e), x = typeof m == "number" ? {
653
+ const m = K(c, e), x = typeof m == "number" ? {
654
654
  mainAxis: m,
655
655
  crossAxis: 0
656
656
  } : {
@@ -659,13 +659,13 @@ const _n = function(t) {
659
659
  ...m
660
660
  };
661
661
  if (a) {
662
- const b = p === "y" ? "height" : "width", A = i.reference[p] - i.floating[b] + x.mainAxis, P = i.reference[p] + i.reference[b] - x.mainAxis;
663
- d < A ? d = A : d > P && (d = P);
662
+ const P = p === "y" ? "height" : "width", b = i.reference[p] - i.floating[P] + x.mainAxis, A = i.reference[p] + i.reference[P] - x.mainAxis;
663
+ d < b ? d = b : d > A && (d = A);
664
664
  }
665
665
  if (l) {
666
666
  var v, y;
667
- const b = p === "y" ? "width" : "height", A = ie.has(Q(r)), P = i.reference[u] - i.floating[b] + (A && ((v = s.offset) == null ? void 0 : v[u]) || 0) + (A ? 0 : x.crossAxis), O = i.reference[u] + i.reference[b] + (A ? 0 : ((y = s.offset) == null ? void 0 : y[u]) || 0) - (A ? x.crossAxis : 0);
668
- h < P ? h = P : h > O && (h = O);
667
+ const P = p === "y" ? "width" : "height", b = se.has(Q(r)), A = i.reference[u] - i.floating[P] + (b && ((v = s.offset) == null ? void 0 : v[u]) || 0) + (b ? 0 : x.crossAxis), O = i.reference[u] + i.reference[P] + (b ? 0 : ((y = s.offset) == null ? void 0 : y[u]) || 0) - (b ? x.crossAxis : 0);
668
+ h < A ? h = A : h > O && (h = O);
669
669
  }
670
670
  return {
671
671
  [p]: d,
@@ -673,7 +673,7 @@ const _n = function(t) {
673
673
  };
674
674
  }
675
675
  };
676
- }, Nn = function(t) {
676
+ }, Fn = function(t) {
677
677
  return t === void 0 && (t = {}), {
678
678
  name: "size",
679
679
  options: t,
@@ -688,21 +688,21 @@ const _n = function(t) {
688
688
  apply: a = () => {
689
689
  },
690
690
  ...l
691
- } = X(t, e), f = await at(e, l), u = Q(r), p = ot(r), d = V(r) === "y", {
691
+ } = K(t, e), f = await at(e, l), u = Q(r), p = ot(r), d = V(r) === "y", {
692
692
  width: h,
693
693
  height: m
694
694
  } = i.floating;
695
695
  let x, v;
696
696
  u === "top" || u === "bottom" ? (x = u, v = p === (await (s.isRTL == null ? void 0 : s.isRTL(c.floating)) ? "start" : "end") ? "left" : "right") : (v = u, x = p === "end" ? "top" : "bottom");
697
- const y = m - f.top - f.bottom, b = h - f.left - f.right, A = G(m - f[x], y), P = G(h - f[v], b), O = !e.middlewareData.shift;
698
- let R = A, _ = P;
699
- if ((n = e.middlewareData.shift) != null && n.enabled.x && (_ = b), (o = e.middlewareData.shift) != null && o.enabled.y && (R = y), O && !p) {
700
- const D = H(f.left, 0), T = H(f.right, 0), N = H(f.top, 0), E = H(f.bottom, 0);
701
- d ? _ = h - 2 * (D !== 0 || T !== 0 ? D + T : H(f.left, f.right)) : R = m - 2 * (N !== 0 || E !== 0 ? N + E : H(f.top, f.bottom));
697
+ const y = m - f.top - f.bottom, P = h - f.left - f.right, b = G(m - f[x], y), A = G(h - f[v], P), O = !e.middlewareData.shift;
698
+ let R = b, L = A;
699
+ if ((n = e.middlewareData.shift) != null && n.enabled.x && (L = P), (o = e.middlewareData.shift) != null && o.enabled.y && (R = y), O && !p) {
700
+ const D = W(f.left, 0), T = W(f.right, 0), N = W(f.top, 0), E = W(f.bottom, 0);
701
+ d ? L = h - 2 * (D !== 0 || T !== 0 ? D + T : W(f.left, f.right)) : R = m - 2 * (N !== 0 || E !== 0 ? N + E : W(f.top, f.bottom));
702
702
  }
703
703
  await a({
704
704
  ...e,
705
- availableWidth: _,
705
+ availableWidth: L,
706
706
  availableHeight: R
707
707
  });
708
708
  const F = await s.getDimensions(c.floating);
@@ -714,33 +714,33 @@ const _n = function(t) {
714
714
  }
715
715
  };
716
716
  };
717
- function Pt() {
717
+ function At() {
718
718
  return typeof window < "u";
719
719
  }
720
720
  function rt(t) {
721
- return se(t) ? (t.nodeName || "").toLowerCase() : "#document";
721
+ return ce(t) ? (t.nodeName || "").toLowerCase() : "#document";
722
722
  }
723
- function W(t) {
723
+ function H(t) {
724
724
  var e;
725
725
  return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
726
726
  }
727
- function K(t) {
727
+ function Y(t) {
728
728
  var e;
729
- return (e = (se(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
729
+ return (e = (ce(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
730
730
  }
731
- function se(t) {
732
- return Pt() ? t instanceof Node || t instanceof W(t).Node : !1;
731
+ function ce(t) {
732
+ return At() ? t instanceof Node || t instanceof H(t).Node : !1;
733
733
  }
734
734
  function I(t) {
735
- return Pt() ? t instanceof Element || t instanceof W(t).Element : !1;
735
+ return At() ? t instanceof Element || t instanceof H(t).Element : !1;
736
736
  }
737
- function Y(t) {
738
- return Pt() ? t instanceof HTMLElement || t instanceof W(t).HTMLElement : !1;
737
+ function X(t) {
738
+ return At() ? t instanceof HTMLElement || t instanceof H(t).HTMLElement : !1;
739
739
  }
740
740
  function Gt(t) {
741
- return !Pt() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof W(t).ShadowRoot;
741
+ return !At() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof H(t).ShadowRoot;
742
742
  }
743
- const Fn = /* @__PURE__ */ new Set(["inline", "contents"]);
743
+ const $n = /* @__PURE__ */ new Set(["inline", "contents"]);
744
744
  function ut(t) {
745
745
  const {
746
746
  overflow: e,
@@ -748,15 +748,15 @@ function ut(t) {
748
748
  overflowY: o,
749
749
  display: r
750
750
  } = B(t);
751
- return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !Fn.has(r);
751
+ return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !$n.has(r);
752
752
  }
753
- const $n = /* @__PURE__ */ new Set(["table", "td", "th"]);
753
+ const Wn = /* @__PURE__ */ new Set(["table", "td", "th"]);
754
754
  function Hn(t) {
755
- return $n.has(rt(t));
755
+ return Wn.has(rt(t));
756
756
  }
757
- const Wn = [":popover-open", ":modal"];
758
- function bt(t) {
759
- return Wn.some((e) => {
757
+ const In = [":popover-open", ":modal"];
758
+ function Pt(t) {
759
+ return In.some((e) => {
760
760
  try {
761
761
  return t.matches(e);
762
762
  } catch {
@@ -764,31 +764,31 @@ function bt(t) {
764
764
  }
765
765
  });
766
766
  }
767
- const In = ["transform", "translate", "scale", "rotate", "perspective"], Bn = ["transform", "translate", "scale", "rotate", "perspective", "filter"], zn = ["paint", "layout", "strict", "content"];
768
- function Ft(t) {
769
- const e = $t(), n = I(t) ? B(t) : t;
770
- return In.some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !e && (n.filter ? n.filter !== "none" : !1) || Bn.some((o) => (n.willChange || "").includes(o)) || zn.some((o) => (n.contain || "").includes(o));
767
+ const Bn = ["transform", "translate", "scale", "rotate", "perspective"], zn = ["transform", "translate", "scale", "rotate", "perspective", "filter"], Vn = ["paint", "layout", "strict", "content"];
768
+ function $t(t) {
769
+ const e = Wt(), n = I(t) ? B(t) : t;
770
+ return Bn.some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !e && (n.filter ? n.filter !== "none" : !1) || zn.some((o) => (n.willChange || "").includes(o)) || Vn.some((o) => (n.contain || "").includes(o));
771
771
  }
772
- function Vn(t) {
772
+ function jn(t) {
773
773
  let e = U(t);
774
- for (; Y(e) && !et(e); ) {
775
- if (Ft(e))
774
+ for (; X(e) && !et(e); ) {
775
+ if ($t(e))
776
776
  return e;
777
- if (bt(e))
777
+ if (Pt(e))
778
778
  return null;
779
779
  e = U(e);
780
780
  }
781
781
  return null;
782
782
  }
783
- function $t() {
783
+ function Wt() {
784
784
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
785
785
  }
786
- const jn = /* @__PURE__ */ new Set(["html", "body", "#document"]);
786
+ const Xn = /* @__PURE__ */ new Set(["html", "body", "#document"]);
787
787
  function et(t) {
788
- return jn.has(rt(t));
788
+ return Xn.has(rt(t));
789
789
  }
790
790
  function B(t) {
791
- return W(t).getComputedStyle(t);
791
+ return H(t).getComputedStyle(t);
792
792
  }
793
793
  function Ct(t) {
794
794
  return I(t) ? {
@@ -807,18 +807,18 @@ function U(t) {
807
807
  t.assignedSlot || // DOM Element detected.
808
808
  t.parentNode || // ShadowRoot detected.
809
809
  Gt(t) && t.host || // Fallback.
810
- K(t)
810
+ Y(t)
811
811
  );
812
812
  return Gt(e) ? e.host : e;
813
813
  }
814
- function ce(t) {
814
+ function ae(t) {
815
815
  const e = U(t);
816
- return et(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : Y(e) && ut(e) ? e : ce(e);
816
+ return et(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : X(e) && ut(e) ? e : ae(e);
817
817
  }
818
818
  function lt(t, e, n) {
819
819
  var o;
820
820
  e === void 0 && (e = []), n === void 0 && (n = !0);
821
- const r = ce(t), i = r === ((o = t.ownerDocument) == null ? void 0 : o.body), s = W(r);
821
+ const r = ae(t), i = r === ((o = t.ownerDocument) == null ? void 0 : o.body), s = H(r);
822
822
  if (i) {
823
823
  const c = _t(s);
824
824
  return e.concat(s, s.visualViewport || [], ut(r) ? r : [], c && n ? lt(c) : []);
@@ -828,10 +828,10 @@ function lt(t, e, n) {
828
828
  function _t(t) {
829
829
  return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
830
830
  }
831
- function ae(t) {
831
+ function le(t) {
832
832
  const e = B(t);
833
833
  let n = parseFloat(e.width) || 0, o = parseFloat(e.height) || 0;
834
- const r = Y(t), i = r ? t.offsetWidth : n, s = r ? t.offsetHeight : o, c = gt(n) !== i || gt(o) !== s;
834
+ const r = X(t), i = r ? t.offsetWidth : n, s = r ? t.offsetHeight : o, c = gt(n) !== i || gt(o) !== s;
835
835
  return c && (n = i, o = s), {
836
836
  width: n,
837
837
  height: o,
@@ -843,13 +843,13 @@ function Ht(t) {
843
843
  }
844
844
  function tt(t) {
845
845
  const e = Ht(t);
846
- if (!Y(e))
846
+ if (!X(e))
847
847
  return j(1);
848
848
  const n = e.getBoundingClientRect(), {
849
849
  width: o,
850
850
  height: r,
851
851
  $: i
852
- } = ae(e);
852
+ } = le(e);
853
853
  let s = (i ? gt(n.width) : n.width) / o, c = (i ? gt(n.height) : n.height) / r;
854
854
  return (!s || !Number.isFinite(s)) && (s = 1), (!c || !Number.isFinite(c)) && (c = 1), {
855
855
  x: s,
@@ -857,29 +857,29 @@ function tt(t) {
857
857
  };
858
858
  }
859
859
  const Yn = /* @__PURE__ */ j(0);
860
- function le(t) {
861
- const e = W(t);
862
- return !$t() || !e.visualViewport ? Yn : {
860
+ function fe(t) {
861
+ const e = H(t);
862
+ return !Wt() || !e.visualViewport ? Yn : {
863
863
  x: e.visualViewport.offsetLeft,
864
864
  y: e.visualViewport.offsetTop
865
865
  };
866
866
  }
867
867
  function Kn(t, e, n) {
868
- return e === void 0 && (e = !1), !n || e && n !== W(t) ? !1 : e;
868
+ return e === void 0 && (e = !1), !n || e && n !== H(t) ? !1 : e;
869
869
  }
870
870
  function J(t, e, n, o) {
871
871
  e === void 0 && (e = !1), n === void 0 && (n = !1);
872
872
  const r = t.getBoundingClientRect(), i = Ht(t);
873
873
  let s = j(1);
874
874
  e && (o ? I(o) && (s = tt(o)) : s = tt(t));
875
- const c = Kn(i, n, o) ? le(i) : j(0);
875
+ const c = Kn(i, n, o) ? fe(i) : j(0);
876
876
  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;
877
877
  if (i) {
878
- const p = W(i), d = o && I(o) ? W(o) : o;
878
+ const p = H(i), d = o && I(o) ? H(o) : o;
879
879
  let h = p, m = _t(h);
880
880
  for (; m && o && d !== h; ) {
881
- const x = tt(m), v = m.getBoundingClientRect(), y = B(m), b = v.left + (m.clientLeft + parseFloat(y.paddingLeft)) * x.x, A = v.top + (m.clientTop + parseFloat(y.paddingTop)) * x.y;
882
- a *= x.x, l *= x.y, f *= x.x, u *= x.y, a += b, l += A, h = W(m), m = _t(h);
881
+ const x = tt(m), v = m.getBoundingClientRect(), y = B(m), P = v.left + (m.clientLeft + parseFloat(y.paddingLeft)) * x.x, b = v.top + (m.clientTop + parseFloat(y.paddingTop)) * x.y;
882
+ a *= x.x, l *= x.y, f *= x.x, u *= x.y, a += P, l += b, h = H(m), m = _t(h);
883
883
  }
884
884
  }
885
885
  return vt({
@@ -889,41 +889,37 @@ function J(t, e, n, o) {
889
889
  y: l
890
890
  });
891
891
  }
892
- function Wt(t, e) {
892
+ function Rt(t, e) {
893
893
  const n = Ct(t).scrollLeft;
894
- return e ? e.left + n : J(K(t)).left + n;
894
+ return e ? e.left + n : J(Y(t)).left + n;
895
895
  }
896
- function fe(t, e, n) {
897
- n === void 0 && (n = !1);
898
- const o = t.getBoundingClientRect(), r = o.left + e.scrollLeft - (n ? 0 : (
899
- // RTL <body> scrollbar.
900
- Wt(t, o)
901
- )), i = o.top + e.scrollTop;
896
+ function ue(t, e) {
897
+ const n = t.getBoundingClientRect(), o = n.left + e.scrollLeft - Rt(t, n), r = n.top + e.scrollTop;
902
898
  return {
903
- x: r,
904
- y: i
899
+ x: o,
900
+ y: r
905
901
  };
906
902
  }
907
- function Xn(t) {
903
+ function Qn(t) {
908
904
  let {
909
905
  elements: e,
910
906
  rect: n,
911
907
  offsetParent: o,
912
908
  strategy: r
913
909
  } = t;
914
- const i = r === "fixed", s = K(o), c = e ? bt(e.floating) : !1;
910
+ const i = r === "fixed", s = Y(o), c = e ? Pt(e.floating) : !1;
915
911
  if (o === s || c && i)
916
912
  return n;
917
913
  let a = {
918
914
  scrollLeft: 0,
919
915
  scrollTop: 0
920
916
  }, l = j(1);
921
- const f = j(0), u = Y(o);
922
- if ((u || !u && !i) && ((rt(o) !== "body" || ut(s)) && (a = Ct(o)), Y(o))) {
917
+ const f = j(0), u = X(o);
918
+ if ((u || !u && !i) && ((rt(o) !== "body" || ut(s)) && (a = Ct(o)), X(o))) {
923
919
  const d = J(o);
924
920
  l = tt(o), f.x = d.x + o.clientLeft, f.y = d.y + o.clientTop;
925
921
  }
926
- const p = s && !u && !i ? fe(s, a, !0) : j(0);
922
+ const p = s && !u && !i ? ue(s, a) : j(0);
927
923
  return {
928
924
  width: n.width * l.x,
929
925
  height: n.height * l.y,
@@ -931,28 +927,34 @@ function Xn(t) {
931
927
  y: n.y * l.y - a.scrollTop * l.y + f.y + p.y
932
928
  };
933
929
  }
934
- function Qn(t) {
930
+ function qn(t) {
935
931
  return Array.from(t.getClientRects());
936
932
  }
937
- function qn(t) {
938
- const e = K(t), n = Ct(t), o = t.ownerDocument.body, r = H(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), i = H(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
939
- let s = -n.scrollLeft + Wt(t);
933
+ function Gn(t) {
934
+ const e = Y(t), n = Ct(t), o = t.ownerDocument.body, r = W(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), i = W(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
935
+ let s = -n.scrollLeft + Rt(t);
940
936
  const c = -n.scrollTop;
941
- return B(o).direction === "rtl" && (s += H(e.clientWidth, o.clientWidth) - r), {
937
+ return B(o).direction === "rtl" && (s += W(e.clientWidth, o.clientWidth) - r), {
942
938
  width: r,
943
939
  height: i,
944
940
  x: s,
945
941
  y: c
946
942
  };
947
943
  }
948
- function Gn(t, e) {
949
- const n = W(t), o = K(t), r = n.visualViewport;
944
+ const Ut = 25;
945
+ function Un(t, e) {
946
+ const n = H(t), o = Y(t), r = n.visualViewport;
950
947
  let i = o.clientWidth, s = o.clientHeight, c = 0, a = 0;
951
948
  if (r) {
952
949
  i = r.width, s = r.height;
953
- const l = $t();
954
- (!l || l && e === "fixed") && (c = r.offsetLeft, a = r.offsetTop);
950
+ const f = Wt();
951
+ (!f || f && e === "fixed") && (c = r.offsetLeft, a = r.offsetTop);
955
952
  }
953
+ const l = Rt(o);
954
+ if (l <= 0) {
955
+ const f = o.ownerDocument, u = f.body, p = getComputedStyle(u), d = f.compatMode === "CSS1Compat" && parseFloat(p.marginLeft) + parseFloat(p.marginRight) || 0, h = Math.abs(o.clientWidth - u.clientWidth - d);
956
+ h <= Ut && (i -= h);
957
+ } else l <= Ut && (i += l);
956
958
  return {
957
959
  width: i,
958
960
  height: s,
@@ -960,9 +962,9 @@ function Gn(t, e) {
960
962
  y: a
961
963
  };
962
964
  }
963
- const Un = /* @__PURE__ */ new Set(["absolute", "fixed"]);
964
- function Zn(t, e) {
965
- const n = J(t, !0, e === "fixed"), o = n.top + t.clientTop, r = n.left + t.clientLeft, i = Y(t) ? tt(t) : j(1), s = t.clientWidth * i.x, c = t.clientHeight * i.y, a = r * i.x, l = o * i.y;
965
+ const Zn = /* @__PURE__ */ new Set(["absolute", "fixed"]);
966
+ function Jn(t, e) {
967
+ const n = J(t, !0, e === "fixed"), o = n.top + t.clientTop, r = n.left + t.clientLeft, i = X(t) ? tt(t) : j(1), s = t.clientWidth * i.x, c = t.clientHeight * i.y, a = r * i.x, l = o * i.y;
966
968
  return {
967
969
  width: s,
968
970
  height: c,
@@ -970,16 +972,16 @@ function Zn(t, e) {
970
972
  y: l
971
973
  };
972
974
  }
973
- function Ut(t, e, n) {
975
+ function Zt(t, e, n) {
974
976
  let o;
975
977
  if (e === "viewport")
976
- o = Gn(t, n);
978
+ o = Un(t, n);
977
979
  else if (e === "document")
978
- o = qn(K(t));
980
+ o = Gn(Y(t));
979
981
  else if (I(e))
980
- o = Zn(e, n);
982
+ o = Jn(e, n);
981
983
  else {
982
- const r = le(t);
984
+ const r = fe(t);
983
985
  o = {
984
986
  x: e.x - r.x,
985
987
  y: e.y - r.y,
@@ -989,11 +991,11 @@ function Ut(t, e, n) {
989
991
  }
990
992
  return vt(o);
991
993
  }
992
- function ue(t, e) {
994
+ function de(t, e) {
993
995
  const n = U(t);
994
- return n === e || !I(n) || et(n) ? !1 : B(n).position === "fixed" || ue(n, e);
996
+ return n === e || !I(n) || et(n) ? !1 : B(n).position === "fixed" || de(n, e);
995
997
  }
996
- function Jn(t, e) {
998
+ function to(t, e) {
997
999
  const n = e.get(t);
998
1000
  if (n)
999
1001
  return n;
@@ -1001,22 +1003,22 @@ function Jn(t, e) {
1001
1003
  const i = B(t).position === "fixed";
1002
1004
  let s = i ? U(t) : t;
1003
1005
  for (; I(s) && !et(s); ) {
1004
- const c = B(s), a = Ft(s);
1005
- !a && c.position === "fixed" && (r = null), (i ? !a && !r : !a && c.position === "static" && !!r && Un.has(r.position) || ut(s) && !a && ue(t, s)) ? o = o.filter((f) => f !== s) : r = c, s = U(s);
1006
+ const c = B(s), a = $t(s);
1007
+ !a && c.position === "fixed" && (r = null), (i ? !a && !r : !a && c.position === "static" && !!r && Zn.has(r.position) || ut(s) && !a && de(t, s)) ? o = o.filter((f) => f !== s) : r = c, s = U(s);
1006
1008
  }
1007
1009
  return e.set(t, o), o;
1008
1010
  }
1009
- function to(t) {
1011
+ function eo(t) {
1010
1012
  let {
1011
1013
  element: e,
1012
1014
  boundary: n,
1013
1015
  rootBoundary: o,
1014
1016
  strategy: r
1015
1017
  } = t;
1016
- const s = [...n === "clippingAncestors" ? bt(e) ? [] : Jn(e, this._c) : [].concat(n), o], c = s[0], a = s.reduce((l, f) => {
1017
- const u = Ut(e, f, r);
1018
- return l.top = H(u.top, l.top), l.right = G(u.right, l.right), l.bottom = G(u.bottom, l.bottom), l.left = H(u.left, l.left), l;
1019
- }, Ut(e, c, r));
1018
+ const s = [...n === "clippingAncestors" ? Pt(e) ? [] : to(e, this._c) : [].concat(n), o], c = s[0], a = s.reduce((l, f) => {
1019
+ const u = Zt(e, f, r);
1020
+ return l.top = W(u.top, l.top), l.right = G(u.right, l.right), l.bottom = G(u.bottom, l.bottom), l.left = W(u.left, l.left), l;
1021
+ }, Zt(e, c, r));
1020
1022
  return {
1021
1023
  width: a.right - a.left,
1022
1024
  height: a.bottom - a.top,
@@ -1024,25 +1026,25 @@ function to(t) {
1024
1026
  y: a.top
1025
1027
  };
1026
1028
  }
1027
- function eo(t) {
1029
+ function no(t) {
1028
1030
  const {
1029
1031
  width: e,
1030
1032
  height: n
1031
- } = ae(t);
1033
+ } = le(t);
1032
1034
  return {
1033
1035
  width: e,
1034
1036
  height: n
1035
1037
  };
1036
1038
  }
1037
- function no(t, e, n) {
1038
- const o = Y(e), r = K(e), i = n === "fixed", s = J(t, !0, i, e);
1039
+ function oo(t, e, n) {
1040
+ const o = X(e), r = Y(e), i = n === "fixed", s = J(t, !0, i, e);
1039
1041
  let c = {
1040
1042
  scrollLeft: 0,
1041
1043
  scrollTop: 0
1042
1044
  };
1043
1045
  const a = j(0);
1044
1046
  function l() {
1045
- a.x = Wt(r);
1047
+ a.x = Rt(r);
1046
1048
  }
1047
1049
  if (o || !o && !i)
1048
1050
  if ((rt(e) !== "body" || ut(r)) && (c = Ct(e)), o) {
@@ -1050,7 +1052,7 @@ function no(t, e, n) {
1050
1052
  a.x = d.x + e.clientLeft, a.y = d.y + e.clientTop;
1051
1053
  } else r && l();
1052
1054
  i && !o && r && l();
1053
- const f = r && !o && !i ? fe(r, c) : j(0), u = s.left + c.scrollLeft - a.x - f.x, p = s.top + c.scrollTop - a.y - f.y;
1055
+ const f = r && !o && !i ? ue(r, c) : j(0), u = s.left + c.scrollLeft - a.x - f.x, p = s.top + c.scrollTop - a.y - f.y;
1054
1056
  return {
1055
1057
  x: u,
1056
1058
  y: p,
@@ -1058,39 +1060,39 @@ function no(t, e, n) {
1058
1060
  height: s.height
1059
1061
  };
1060
1062
  }
1061
- function Ot(t) {
1063
+ function St(t) {
1062
1064
  return B(t).position === "static";
1063
1065
  }
1064
- function Zt(t, e) {
1065
- if (!Y(t) || B(t).position === "fixed")
1066
+ function Jt(t, e) {
1067
+ if (!X(t) || B(t).position === "fixed")
1066
1068
  return null;
1067
1069
  if (e)
1068
1070
  return e(t);
1069
1071
  let n = t.offsetParent;
1070
- return K(t) === n && (n = n.ownerDocument.body), n;
1072
+ return Y(t) === n && (n = n.ownerDocument.body), n;
1071
1073
  }
1072
- function de(t, e) {
1073
- const n = W(t);
1074
- if (bt(t))
1074
+ function pe(t, e) {
1075
+ const n = H(t);
1076
+ if (Pt(t))
1075
1077
  return n;
1076
- if (!Y(t)) {
1078
+ if (!X(t)) {
1077
1079
  let r = U(t);
1078
1080
  for (; r && !et(r); ) {
1079
- if (I(r) && !Ot(r))
1081
+ if (I(r) && !St(r))
1080
1082
  return r;
1081
1083
  r = U(r);
1082
1084
  }
1083
1085
  return n;
1084
1086
  }
1085
- let o = Zt(t, e);
1086
- for (; o && Hn(o) && Ot(o); )
1087
- o = Zt(o, e);
1088
- return o && et(o) && Ot(o) && !Ft(o) ? n : o || Vn(t) || n;
1087
+ let o = Jt(t, e);
1088
+ for (; o && Hn(o) && St(o); )
1089
+ o = Jt(o, e);
1090
+ return o && et(o) && St(o) && !$t(o) ? n : o || jn(t) || n;
1089
1091
  }
1090
- const oo = async function(t) {
1091
- const e = this.getOffsetParent || de, n = this.getDimensions, o = await n(t.floating);
1092
+ const ro = async function(t) {
1093
+ const e = this.getOffsetParent || pe, n = this.getDimensions, o = await n(t.floating);
1092
1094
  return {
1093
- reference: no(t.reference, await e(t.floating), t.strategy),
1095
+ reference: oo(t.reference, await e(t.floating), t.strategy),
1094
1096
  floating: {
1095
1097
  x: 0,
1096
1098
  y: 0,
@@ -1099,27 +1101,27 @@ const oo = async function(t) {
1099
1101
  }
1100
1102
  };
1101
1103
  };
1102
- function ro(t) {
1104
+ function io(t) {
1103
1105
  return B(t).direction === "rtl";
1104
1106
  }
1105
- const io = {
1106
- convertOffsetParentRelativeRectToViewportRelativeRect: Xn,
1107
- getDocumentElement: K,
1108
- getClippingRect: to,
1109
- getOffsetParent: de,
1110
- getElementRects: oo,
1111
- getClientRects: Qn,
1112
- getDimensions: eo,
1107
+ const so = {
1108
+ convertOffsetParentRelativeRectToViewportRelativeRect: Qn,
1109
+ getDocumentElement: Y,
1110
+ getClippingRect: eo,
1111
+ getOffsetParent: pe,
1112
+ getElementRects: ro,
1113
+ getClientRects: qn,
1114
+ getDimensions: no,
1113
1115
  getScale: tt,
1114
1116
  isElement: I,
1115
- isRTL: ro
1117
+ isRTL: io
1116
1118
  };
1117
- function pe(t, e) {
1119
+ function he(t, e) {
1118
1120
  return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
1119
1121
  }
1120
- function so(t, e) {
1122
+ function co(t, e) {
1121
1123
  let n = null, o;
1122
- const r = K(t);
1124
+ const r = Y(t);
1123
1125
  function i() {
1124
1126
  var c;
1125
1127
  clearTimeout(o), (c = n) == null || c.disconnect(), n = null;
@@ -1134,36 +1136,36 @@ function so(t, e) {
1134
1136
  } = l;
1135
1137
  if (c || e(), !p || !d)
1136
1138
  return;
1137
- const h = ht(u), m = ht(r.clientWidth - (f + p)), x = ht(r.clientHeight - (u + d)), v = ht(f), b = {
1139
+ const h = ht(u), m = ht(r.clientWidth - (f + p)), x = ht(r.clientHeight - (u + d)), v = ht(f), P = {
1138
1140
  rootMargin: -h + "px " + -m + "px " + -x + "px " + -v + "px",
1139
- threshold: H(0, G(1, a)) || 1
1141
+ threshold: W(0, G(1, a)) || 1
1140
1142
  };
1141
- let A = !0;
1142
- function P(O) {
1143
+ let b = !0;
1144
+ function A(O) {
1143
1145
  const R = O[0].intersectionRatio;
1144
1146
  if (R !== a) {
1145
- if (!A)
1147
+ if (!b)
1146
1148
  return s();
1147
1149
  R ? s(!1, R) : o = setTimeout(() => {
1148
1150
  s(!1, 1e-7);
1149
1151
  }, 1e3);
1150
1152
  }
1151
- R === 1 && !pe(l, t.getBoundingClientRect()) && s(), A = !1;
1153
+ R === 1 && !he(l, t.getBoundingClientRect()) && s(), b = !1;
1152
1154
  }
1153
1155
  try {
1154
- n = new IntersectionObserver(P, {
1155
- ...b,
1156
+ n = new IntersectionObserver(A, {
1157
+ ...P,
1156
1158
  // Handle <iframe>s
1157
1159
  root: r.ownerDocument
1158
1160
  });
1159
1161
  } catch {
1160
- n = new IntersectionObserver(P, b);
1162
+ n = new IntersectionObserver(A, P);
1161
1163
  }
1162
1164
  n.observe(t);
1163
1165
  }
1164
1166
  return s(!0), i;
1165
1167
  }
1166
- function co(t, e, n, o) {
1168
+ function ao(t, e, n, o) {
1167
1169
  o === void 0 && (o = {});
1168
1170
  const {
1169
1171
  ancestorScroll: r = !0,
@@ -1177,20 +1179,20 @@ function co(t, e, n, o) {
1177
1179
  passive: !0
1178
1180
  }), i && v.addEventListener("resize", n);
1179
1181
  });
1180
- const u = l && c ? so(l, n) : null;
1182
+ const u = l && c ? co(l, n) : null;
1181
1183
  let p = -1, d = null;
1182
1184
  s && (d = new ResizeObserver((v) => {
1183
1185
  let [y] = v;
1184
1186
  y && y.target === l && d && (d.unobserve(e), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
1185
- var b;
1186
- (b = d) == null || b.observe(e);
1187
+ var P;
1188
+ (P = d) == null || P.observe(e);
1187
1189
  })), n();
1188
1190
  }), l && !a && d.observe(l), d.observe(e));
1189
1191
  let h, m = a ? J(t) : null;
1190
1192
  a && x();
1191
1193
  function x() {
1192
1194
  const v = J(t);
1193
- m && !pe(m, v) && n(), m = v, h = requestAnimationFrame(x);
1195
+ m && !he(m, v) && n(), m = v, h = requestAnimationFrame(x);
1194
1196
  }
1195
1197
  return n(), () => {
1196
1198
  var v;
@@ -1199,21 +1201,21 @@ function co(t, e, n, o) {
1199
1201
  }), u?.(), (v = d) == null || v.disconnect(), d = null, a && cancelAnimationFrame(h);
1200
1202
  };
1201
1203
  }
1202
- const ao = _n, lo = Ln, fo = kn, uo = Nn, po = Mn, Jt = En, ho = Tn, mo = (t, e, n) => {
1204
+ const lo = _n, fo = Tn, uo = Mn, po = Fn, ho = Dn, te = kn, mo = Nn, go = (t, e, n) => {
1203
1205
  const o = /* @__PURE__ */ new Map(), r = {
1204
- platform: io,
1206
+ platform: so,
1205
1207
  ...n
1206
1208
  }, i = {
1207
1209
  ...r.platform,
1208
1210
  _c: o
1209
1211
  };
1210
- return Sn(t, e, {
1212
+ return En(t, e, {
1211
1213
  ...r,
1212
1214
  platform: i
1213
1215
  });
1214
1216
  };
1215
- var go = typeof document < "u", wo = function() {
1216
- }, mt = go ? qe : wo;
1217
+ var wo = typeof document < "u", vo = function() {
1218
+ }, mt = wo ? Ge : vo;
1217
1219
  function xt(t, e) {
1218
1220
  if (t === e)
1219
1221
  return !0;
@@ -1244,20 +1246,20 @@ function xt(t, e) {
1244
1246
  }
1245
1247
  return t !== t && e !== e;
1246
1248
  }
1247
- function he(t) {
1249
+ function me(t) {
1248
1250
  return typeof window > "u" ? 1 : (t.ownerDocument.defaultView || window).devicePixelRatio || 1;
1249
1251
  }
1250
- function te(t, e) {
1251
- const n = he(t);
1252
+ function ee(t, e) {
1253
+ const n = me(t);
1252
1254
  return Math.round(e * n) / n;
1253
1255
  }
1254
- function St(t) {
1256
+ function Et(t) {
1255
1257
  const e = g.useRef(t);
1256
1258
  return mt(() => {
1257
1259
  e.current = t;
1258
1260
  }), e;
1259
1261
  }
1260
- function vo(t) {
1262
+ function xo(t) {
1261
1263
  t === void 0 && (t = {});
1262
1264
  const {
1263
1265
  placement: e = "bottom",
@@ -1282,9 +1284,9 @@ function vo(t) {
1282
1284
  xt(p, o) || d(o);
1283
1285
  const [h, m] = g.useState(null), [x, v] = g.useState(null), y = g.useCallback((C) => {
1284
1286
  C !== O.current && (O.current = C, m(C));
1285
- }, []), b = g.useCallback((C) => {
1287
+ }, []), P = g.useCallback((C) => {
1286
1288
  C !== R.current && (R.current = C, v(C));
1287
- }, []), A = i || h, P = s || x, O = g.useRef(null), R = g.useRef(null), _ = g.useRef(f), F = a != null, D = St(a), T = St(r), N = St(l), E = g.useCallback(() => {
1289
+ }, []), b = i || h, A = s || x, O = g.useRef(null), R = g.useRef(null), L = g.useRef(f), F = a != null, D = Et(a), T = Et(r), N = Et(l), E = g.useCallback(() => {
1288
1290
  if (!O.current || !R.current)
1289
1291
  return;
1290
1292
  const C = {
@@ -1292,22 +1294,22 @@ function vo(t) {
1292
1294
  strategy: n,
1293
1295
  middleware: p
1294
1296
  };
1295
- T.current && (C.platform = T.current), mo(O.current, R.current, C).then((L) => {
1297
+ T.current && (C.platform = T.current), go(O.current, R.current, C).then((_) => {
1296
1298
  const z = {
1297
- ...L,
1299
+ ..._,
1298
1300
  // The floating element's position may be recomputed while it's closed
1299
1301
  // but still mounted (such as when transitioning out). To ensure
1300
1302
  // `isPositioned` will be `false` initially on the next open, avoid
1301
1303
  // setting it to `true` when `open === false` (must be specified).
1302
1304
  isPositioned: N.current !== !1
1303
1305
  };
1304
- S.current && !xt(_.current, z) && (_.current = z, fn.flushSync(() => {
1306
+ S.current && !xt(L.current, z) && (L.current = z, un.flushSync(() => {
1305
1307
  u(z);
1306
1308
  }));
1307
1309
  });
1308
1310
  }, [p, e, n, T, N]);
1309
1311
  mt(() => {
1310
- l === !1 && _.current.isPositioned && (_.current.isPositioned = !1, u((C) => ({
1312
+ l === !1 && L.current.isPositioned && (L.current.isPositioned = !1, u((C) => ({
1311
1313
  ...C,
1312
1314
  isPositioned: !1
1313
1315
  })));
@@ -1316,21 +1318,21 @@ function vo(t) {
1316
1318
  mt(() => (S.current = !0, () => {
1317
1319
  S.current = !1;
1318
1320
  }), []), mt(() => {
1319
- if (A && (O.current = A), P && (R.current = P), A && P) {
1321
+ if (b && (O.current = b), A && (R.current = A), b && A) {
1320
1322
  if (D.current)
1321
- return D.current(A, P, E);
1323
+ return D.current(b, A, E);
1322
1324
  E();
1323
1325
  }
1324
- }, [A, P, E, D, F]);
1326
+ }, [b, A, E, D, F]);
1325
1327
  const $ = g.useMemo(() => ({
1326
1328
  reference: O,
1327
1329
  floating: R,
1328
1330
  setReference: y,
1329
- setFloating: b
1330
- }), [y, b]), k = g.useMemo(() => ({
1331
- reference: A,
1332
- floating: P
1333
- }), [A, P]), M = g.useMemo(() => {
1331
+ setFloating: P
1332
+ }), [y, P]), k = g.useMemo(() => ({
1333
+ reference: b,
1334
+ floating: A
1335
+ }), [b, A]), M = g.useMemo(() => {
1334
1336
  const C = {
1335
1337
  position: n,
1336
1338
  left: 0,
@@ -1338,16 +1340,16 @@ function vo(t) {
1338
1340
  };
1339
1341
  if (!k.floating)
1340
1342
  return C;
1341
- const L = te(k.floating, f.x), z = te(k.floating, f.y);
1343
+ const _ = ee(k.floating, f.x), z = ee(k.floating, f.y);
1342
1344
  return c ? {
1343
1345
  ...C,
1344
- transform: "translate(" + L + "px, " + z + "px)",
1345
- ...he(k.floating) >= 1.5 && {
1346
+ transform: "translate(" + _ + "px, " + z + "px)",
1347
+ ...me(k.floating) >= 1.5 && {
1346
1348
  willChange: "transform"
1347
1349
  }
1348
1350
  } : {
1349
1351
  position: n,
1350
- left: L,
1352
+ left: _,
1351
1353
  top: z
1352
1354
  };
1353
1355
  }, [n, c, k.floating, f.x, f.y]);
@@ -1359,7 +1361,7 @@ function vo(t) {
1359
1361
  floatingStyles: M
1360
1362
  }), [f, E, $, k, M]);
1361
1363
  }
1362
- const xo = (t) => {
1364
+ const yo = (t) => {
1363
1365
  function e(n) {
1364
1366
  return {}.hasOwnProperty.call(n, "current");
1365
1367
  }
@@ -1371,26 +1373,23 @@ const xo = (t) => {
1371
1373
  element: o,
1372
1374
  padding: r
1373
1375
  } = typeof t == "function" ? t(n) : t;
1374
- return o && e(o) ? o.current != null ? Jt({
1376
+ return o && e(o) ? o.current != null ? te({
1375
1377
  element: o.current,
1376
1378
  padding: r
1377
- }).fn(n) : {} : o ? Jt({
1379
+ }).fn(n) : {} : o ? te({
1378
1380
  element: o,
1379
1381
  padding: r
1380
1382
  }).fn(n) : {};
1381
1383
  }
1382
1384
  };
1383
- }, yo = (t, e) => ({
1384
- ...ao(t),
1385
+ }, bo = (t, e) => ({
1386
+ ...lo(t),
1385
1387
  options: [t, e]
1386
1388
  }), Ao = (t, e) => ({
1387
- ...lo(t),
1389
+ ...fo(t),
1388
1390
  options: [t, e]
1389
1391
  }), Po = (t, e) => ({
1390
- ...ho(t),
1391
- options: [t, e]
1392
- }), bo = (t, e) => ({
1393
- ...fo(t),
1392
+ ...mo(t),
1394
1393
  options: [t, e]
1395
1394
  }), Co = (t, e) => ({
1396
1395
  ...uo(t),
@@ -1399,10 +1398,13 @@ const xo = (t) => {
1399
1398
  ...po(t),
1400
1399
  options: [t, e]
1401
1400
  }), Oo = (t, e) => ({
1402
- ...xo(t),
1401
+ ...ho(t),
1402
+ options: [t, e]
1403
+ }), So = (t, e) => ({
1404
+ ...yo(t),
1403
1405
  options: [t, e]
1404
1406
  });
1405
- var So = "Arrow", me = g.forwardRef((t, e) => {
1407
+ var Eo = "Arrow", ge = g.forwardRef((t, e) => {
1406
1408
  const { children: n, width: o = 10, height: r = 5, ...i } = t;
1407
1409
  return /* @__PURE__ */ w(
1408
1410
  ft.svg,
@@ -1417,23 +1419,23 @@ var So = "Arrow", me = g.forwardRef((t, e) => {
1417
1419
  }
1418
1420
  );
1419
1421
  });
1420
- me.displayName = So;
1421
- var Eo = me, It = "Popper", [ge, we] = ne(It), [ko, ve] = ge(It), xe = (t) => {
1422
+ ge.displayName = Eo;
1423
+ var ko = ge, It = "Popper", [we, ve] = oe(It), [Mo, xe] = we(It), ye = (t) => {
1422
1424
  const { __scopePopper: e, children: n } = t, [o, r] = g.useState(null);
1423
- return /* @__PURE__ */ w(ko, { scope: e, anchor: o, onAnchorChange: r, children: n });
1425
+ return /* @__PURE__ */ w(Mo, { scope: e, anchor: o, onAnchorChange: r, children: n });
1424
1426
  };
1425
- xe.displayName = It;
1426
- var ye = "PopperAnchor", Ae = g.forwardRef(
1427
+ ye.displayName = It;
1428
+ var be = "PopperAnchor", Ae = g.forwardRef(
1427
1429
  (t, e) => {
1428
- const { __scopePopper: n, virtualRef: o, ...r } = t, i = ve(ye, n), s = g.useRef(null), c = yt(e, s), a = g.useRef(null);
1430
+ const { __scopePopper: n, virtualRef: o, ...r } = t, i = xe(be, n), s = g.useRef(null), c = yt(e, s), a = g.useRef(null);
1429
1431
  return g.useEffect(() => {
1430
1432
  const l = a.current;
1431
1433
  a.current = o?.current || s.current, l !== a.current && i.onAnchorChange(a.current);
1432
1434
  }), o ? null : /* @__PURE__ */ w(ft.div, { ...r, ref: c });
1433
1435
  }
1434
1436
  );
1435
- Ae.displayName = ye;
1436
- var Bt = "PopperContent", [Mo, Do] = ge(Bt), Pe = g.forwardRef(
1437
+ Ae.displayName = be;
1438
+ var Bt = "PopperContent", [Do, Lo] = we(Bt), Pe = g.forwardRef(
1437
1439
  (t, e) => {
1438
1440
  const {
1439
1441
  __scopePopper: n,
@@ -1450,48 +1452,48 @@ var Bt = "PopperContent", [Mo, Do] = ge(Bt), Pe = g.forwardRef(
1450
1452
  updatePositionStrategy: d = "optimized",
1451
1453
  onPlaced: h,
1452
1454
  ...m
1453
- } = t, x = ve(Bt, n), [v, y] = g.useState(null), b = yt(e, (it) => y(it)), [A, P] = g.useState(null), O = mn(A), R = O?.width ?? 0, _ = O?.height ?? 0, F = o + (i !== "center" ? "-" + i : ""), D = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, T = Array.isArray(l) ? l : [l], N = T.length > 0, E = {
1455
+ } = t, x = xe(Bt, n), [v, y] = g.useState(null), P = yt(e, (it) => y(it)), [b, A] = g.useState(null), O = gn(b), R = O?.width ?? 0, L = O?.height ?? 0, F = o + (i !== "center" ? "-" + i : ""), D = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, T = Array.isArray(l) ? l : [l], N = T.length > 0, E = {
1454
1456
  padding: D,
1455
- boundary: T.filter(Lo),
1457
+ boundary: T.filter(To),
1456
1458
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
1457
1459
  altBoundary: N
1458
- }, { refs: S, floatingStyles: $, placement: k, isPositioned: M, middlewareData: C } = vo({
1460
+ }, { refs: S, floatingStyles: $, placement: k, isPositioned: M, middlewareData: C } = xo({
1459
1461
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
1460
1462
  strategy: "fixed",
1461
1463
  placement: F,
1462
- whileElementsMounted: (...it) => co(...it, {
1464
+ whileElementsMounted: (...it) => ao(...it, {
1463
1465
  animationFrame: d === "always"
1464
1466
  }),
1465
1467
  elements: {
1466
1468
  reference: x.anchor
1467
1469
  },
1468
1470
  middleware: [
1469
- yo({ mainAxis: r + _, alignmentAxis: s }),
1471
+ bo({ mainAxis: r + L, alignmentAxis: s }),
1470
1472
  a && Ao({
1471
1473
  mainAxis: !0,
1472
1474
  crossAxis: !1,
1473
1475
  limiter: u === "partial" ? Po() : void 0,
1474
1476
  ...E
1475
1477
  }),
1476
- a && bo({ ...E }),
1477
- Co({
1478
+ a && Co({ ...E }),
1479
+ Ro({
1478
1480
  ...E,
1479
- apply: ({ elements: it, rects: jt, availableWidth: Ve, availableHeight: je }) => {
1481
+ apply: ({ elements: it, rects: jt, availableWidth: je, availableHeight: Xe }) => {
1480
1482
  const { width: Ye, height: Ke } = jt.reference, pt = it.floating.style;
1481
- pt.setProperty("--radix-popper-available-width", `${Ve}px`), pt.setProperty("--radix-popper-available-height", `${je}px`), pt.setProperty("--radix-popper-anchor-width", `${Ye}px`), pt.setProperty("--radix-popper-anchor-height", `${Ke}px`);
1483
+ pt.setProperty("--radix-popper-available-width", `${je}px`), pt.setProperty("--radix-popper-available-height", `${Xe}px`), pt.setProperty("--radix-popper-anchor-width", `${Ye}px`), pt.setProperty("--radix-popper-anchor-height", `${Ke}px`);
1482
1484
  }
1483
1485
  }),
1484
- A && Oo({ element: A, padding: c }),
1485
- To({ arrowWidth: R, arrowHeight: _ }),
1486
- p && Ro({ strategy: "referenceHidden", ...E })
1486
+ b && So({ element: b, padding: c }),
1487
+ No({ arrowWidth: R, arrowHeight: L }),
1488
+ p && Oo({ strategy: "referenceHidden", ...E })
1487
1489
  ]
1488
- }), [L, z] = Re(k), Vt = Ge(h);
1489
- kt(() => {
1490
+ }), [_, z] = Oe(k), Vt = Ue(h);
1491
+ Mt(() => {
1490
1492
  M && Vt?.();
1491
1493
  }, [M, Vt]);
1492
- const He = C.arrow?.x, We = C.arrow?.y, Ie = C.arrow?.centerOffset !== 0, [Be, ze] = g.useState();
1493
- return kt(() => {
1494
- v && ze(window.getComputedStyle(v).zIndex);
1494
+ const He = C.arrow?.x, Ie = C.arrow?.y, Be = C.arrow?.centerOffset !== 0, [ze, Ve] = g.useState();
1495
+ return Mt(() => {
1496
+ v && Ve(window.getComputedStyle(v).zIndex);
1495
1497
  }, [v]), /* @__PURE__ */ w(
1496
1498
  "div",
1497
1499
  {
@@ -1502,7 +1504,7 @@ var Bt = "PopperContent", [Mo, Do] = ge(Bt), Pe = g.forwardRef(
1502
1504
  transform: M ? $.transform : "translate(0, -200%)",
1503
1505
  // keep off the page when measuring
1504
1506
  minWidth: "max-content",
1505
- zIndex: Be,
1507
+ zIndex: ze,
1506
1508
  "--radix-popper-transform-origin": [
1507
1509
  C.transformOrigin?.x,
1508
1510
  C.transformOrigin?.y
@@ -1517,21 +1519,21 @@ var Bt = "PopperContent", [Mo, Do] = ge(Bt), Pe = g.forwardRef(
1517
1519
  },
1518
1520
  dir: t.dir,
1519
1521
  children: /* @__PURE__ */ w(
1520
- Mo,
1522
+ Do,
1521
1523
  {
1522
1524
  scope: n,
1523
- placedSide: L,
1524
- onArrowChange: P,
1525
+ placedSide: _,
1526
+ onArrowChange: A,
1525
1527
  arrowX: He,
1526
- arrowY: We,
1527
- shouldHideArrow: Ie,
1528
+ arrowY: Ie,
1529
+ shouldHideArrow: Be,
1528
1530
  children: /* @__PURE__ */ w(
1529
1531
  ft.div,
1530
1532
  {
1531
- "data-side": L,
1533
+ "data-side": _,
1532
1534
  "data-align": z,
1533
1535
  ...m,
1534
- ref: b,
1536
+ ref: P,
1535
1537
  style: {
1536
1538
  ...m.style,
1537
1539
  // if the PopperContent hasn't been placed yet (not all measurements done)
@@ -1547,13 +1549,13 @@ var Bt = "PopperContent", [Mo, Do] = ge(Bt), Pe = g.forwardRef(
1547
1549
  }
1548
1550
  );
1549
1551
  Pe.displayName = Bt;
1550
- var be = "PopperArrow", _o = {
1552
+ var Ce = "PopperArrow", _o = {
1551
1553
  top: "bottom",
1552
1554
  right: "left",
1553
1555
  bottom: "top",
1554
1556
  left: "right"
1555
- }, Ce = g.forwardRef(function(e, n) {
1556
- const { __scopePopper: o, ...r } = e, i = Do(be, o), s = _o[i.placedSide];
1557
+ }, Re = g.forwardRef(function(e, n) {
1558
+ const { __scopePopper: o, ...r } = e, i = Lo(Ce, o), s = _o[i.placedSide];
1557
1559
  return (
1558
1560
  // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
1559
1561
  // doesn't report size as we'd expect on SVG elements.
@@ -1582,7 +1584,7 @@ var be = "PopperArrow", _o = {
1582
1584
  visibility: i.shouldHideArrow ? "hidden" : void 0
1583
1585
  },
1584
1586
  children: /* @__PURE__ */ w(
1585
- Eo,
1587
+ ko,
1586
1588
  {
1587
1589
  ...r,
1588
1590
  ref: n,
@@ -1597,26 +1599,26 @@ var be = "PopperArrow", _o = {
1597
1599
  )
1598
1600
  );
1599
1601
  });
1600
- Ce.displayName = be;
1601
- function Lo(t) {
1602
+ Re.displayName = Ce;
1603
+ function To(t) {
1602
1604
  return t !== null;
1603
1605
  }
1604
- var To = (t) => ({
1606
+ var No = (t) => ({
1605
1607
  name: "transformOrigin",
1606
1608
  options: t,
1607
1609
  fn(e) {
1608
- const { placement: n, rects: o, middlewareData: r } = e, s = r.arrow?.centerOffset !== 0, c = s ? 0 : t.arrowWidth, a = s ? 0 : t.arrowHeight, [l, f] = Re(n), u = { start: "0%", center: "50%", end: "100%" }[f], p = (r.arrow?.x ?? 0) + c / 2, d = (r.arrow?.y ?? 0) + a / 2;
1610
+ const { placement: n, rects: o, middlewareData: r } = e, s = r.arrow?.centerOffset !== 0, c = s ? 0 : t.arrowWidth, a = s ? 0 : t.arrowHeight, [l, f] = Oe(n), u = { start: "0%", center: "50%", end: "100%" }[f], p = (r.arrow?.x ?? 0) + c / 2, d = (r.arrow?.y ?? 0) + a / 2;
1609
1611
  let h = "", m = "";
1610
1612
  return l === "bottom" ? (h = s ? u : `${p}px`, m = `${-a}px`) : l === "top" ? (h = s ? u : `${p}px`, m = `${o.floating.height + a}px`) : l === "right" ? (h = `${-a}px`, m = s ? u : `${d}px`) : l === "left" && (h = `${o.floating.width + a}px`, m = s ? u : `${d}px`), { data: { x: h, y: m } };
1611
1613
  }
1612
1614
  });
1613
- function Re(t) {
1615
+ function Oe(t) {
1614
1616
  const [e, n = "center"] = t.split("-");
1615
1617
  return [e, n];
1616
1618
  }
1617
- var No = xe, Oe = Ae, Fo = Pe, $o = Ce, Rt = "Popover", [Se, fr] = ne(Rt, [
1618
- we
1619
- ]), dt = we(), [Ho, Z] = Se(Rt), Ee = (t) => {
1619
+ var Fo = ye, Se = Ae, $o = Pe, Wo = Re, Ot = "Popover", [Ee, ur] = oe(Ot, [
1620
+ ve
1621
+ ]), dt = ve(), [Ho, Z] = Ee(Ot), ke = (t) => {
1620
1622
  const {
1621
1623
  __scopePopover: e,
1622
1624
  children: n,
@@ -1624,17 +1626,17 @@ var No = xe, Oe = Ae, Fo = Pe, $o = Ce, Rt = "Popover", [Se, fr] = ne(Rt, [
1624
1626
  defaultOpen: r,
1625
1627
  onOpenChange: i,
1626
1628
  modal: s = !1
1627
- } = t, c = dt(e), a = g.useRef(null), [l, f] = g.useState(!1), [u, p] = Ue({
1629
+ } = t, c = dt(e), a = g.useRef(null), [l, f] = g.useState(!1), [u, p] = Ze({
1628
1630
  prop: o,
1629
1631
  defaultProp: r ?? !1,
1630
1632
  onChange: i,
1631
- caller: Rt
1633
+ caller: Ot
1632
1634
  });
1633
- return /* @__PURE__ */ w(No, { ...c, children: /* @__PURE__ */ w(
1635
+ return /* @__PURE__ */ w(Fo, { ...c, children: /* @__PURE__ */ w(
1634
1636
  Ho,
1635
1637
  {
1636
1638
  scope: e,
1637
- contentId: Ze(),
1639
+ contentId: Je(),
1638
1640
  triggerRef: a,
1639
1641
  open: u,
1640
1642
  onOpenChange: p,
@@ -1647,55 +1649,55 @@ var No = xe, Oe = Ae, Fo = Pe, $o = Ce, Rt = "Popover", [Se, fr] = ne(Rt, [
1647
1649
  }
1648
1650
  ) });
1649
1651
  };
1650
- Ee.displayName = Rt;
1651
- var ke = "PopoverAnchor", Me = g.forwardRef(
1652
+ ke.displayName = Ot;
1653
+ var Me = "PopoverAnchor", De = g.forwardRef(
1652
1654
  (t, e) => {
1653
- const { __scopePopover: n, ...o } = t, r = Z(ke, n), i = dt(n), { onCustomAnchorAdd: s, onCustomAnchorRemove: c } = r;
1654
- return g.useEffect(() => (s(), () => c()), [s, c]), /* @__PURE__ */ w(Oe, { ...i, ...o, ref: e });
1655
+ const { __scopePopover: n, ...o } = t, r = Z(Me, n), i = dt(n), { onCustomAnchorAdd: s, onCustomAnchorRemove: c } = r;
1656
+ return g.useEffect(() => (s(), () => c()), [s, c]), /* @__PURE__ */ w(Se, { ...i, ...o, ref: e });
1655
1657
  }
1656
1658
  );
1657
- Me.displayName = ke;
1658
- var De = "PopoverTrigger", _e = g.forwardRef(
1659
+ De.displayName = Me;
1660
+ var Le = "PopoverTrigger", _e = g.forwardRef(
1659
1661
  (t, e) => {
1660
- const { __scopePopover: n, ...o } = t, r = Z(De, n), i = dt(n), s = yt(e, r.triggerRef), c = /* @__PURE__ */ w(
1662
+ const { __scopePopover: n, ...o } = t, r = Z(Le, n), i = dt(n), s = yt(e, r.triggerRef), c = /* @__PURE__ */ w(
1661
1663
  ft.button,
1662
1664
  {
1663
1665
  type: "button",
1664
1666
  "aria-haspopup": "dialog",
1665
1667
  "aria-expanded": r.open,
1666
1668
  "aria-controls": r.contentId,
1667
- "data-state": $e(r.open),
1669
+ "data-state": We(r.open),
1668
1670
  ...o,
1669
1671
  ref: s,
1670
1672
  onClick: st(t.onClick, r.onOpenToggle)
1671
1673
  }
1672
1674
  );
1673
- return r.hasCustomAnchor ? c : /* @__PURE__ */ w(Oe, { asChild: !0, ...i, children: c });
1675
+ return r.hasCustomAnchor ? c : /* @__PURE__ */ w(Se, { asChild: !0, ...i, children: c });
1674
1676
  }
1675
1677
  );
1676
- _e.displayName = De;
1677
- var zt = "PopoverPortal", [Wo, Io] = Se(zt, {
1678
+ _e.displayName = Le;
1679
+ var zt = "PopoverPortal", [Io, Bo] = Ee(zt, {
1678
1680
  forceMount: void 0
1679
- }), Le = (t) => {
1681
+ }), Te = (t) => {
1680
1682
  const { __scopePopover: e, forceMount: n, children: o, container: r } = t, i = Z(zt, e);
1681
- return /* @__PURE__ */ w(Wo, { scope: e, forceMount: n, children: /* @__PURE__ */ w(oe, { present: n || i.open, children: /* @__PURE__ */ w(Je, { asChild: !0, container: r, children: o }) }) });
1683
+ return /* @__PURE__ */ w(Io, { scope: e, forceMount: n, children: /* @__PURE__ */ w(re, { present: n || i.open, children: /* @__PURE__ */ w(tn, { asChild: !0, container: r, children: o }) }) });
1682
1684
  };
1683
- Le.displayName = zt;
1684
- var nt = "PopoverContent", Te = g.forwardRef(
1685
+ Te.displayName = zt;
1686
+ var nt = "PopoverContent", Ne = g.forwardRef(
1685
1687
  (t, e) => {
1686
- const n = Io(nt, t.__scopePopover), { forceMount: o = n.forceMount, ...r } = t, i = Z(nt, t.__scopePopover);
1687
- return /* @__PURE__ */ w(oe, { present: o || i.open, children: i.modal ? /* @__PURE__ */ w(zo, { ...r, ref: e }) : /* @__PURE__ */ w(Vo, { ...r, ref: e }) });
1688
+ const n = Bo(nt, t.__scopePopover), { forceMount: o = n.forceMount, ...r } = t, i = Z(nt, t.__scopePopover);
1689
+ return /* @__PURE__ */ w(re, { present: o || i.open, children: i.modal ? /* @__PURE__ */ w(Vo, { ...r, ref: e }) : /* @__PURE__ */ w(jo, { ...r, ref: e }) });
1688
1690
  }
1689
1691
  );
1690
- Te.displayName = nt;
1691
- var Bo = nn("PopoverContent.RemoveScroll"), zo = g.forwardRef(
1692
+ Ne.displayName = nt;
1693
+ var zo = on("PopoverContent.RemoveScroll"), Vo = g.forwardRef(
1692
1694
  (t, e) => {
1693
1695
  const n = Z(nt, t.__scopePopover), o = g.useRef(null), r = yt(e, o), i = g.useRef(!1);
1694
1696
  return g.useEffect(() => {
1695
1697
  const s = o.current;
1696
- if (s) return tn(s);
1697
- }, []), /* @__PURE__ */ w(en, { as: Bo, allowPinchZoom: !0, children: /* @__PURE__ */ w(
1698
- Ne,
1698
+ if (s) return en(s);
1699
+ }, []), /* @__PURE__ */ w(nn, { as: zo, allowPinchZoom: !0, children: /* @__PURE__ */ w(
1700
+ Fe,
1699
1701
  {
1700
1702
  ...t,
1701
1703
  ref: r,
@@ -1720,11 +1722,11 @@ var Bo = nn("PopoverContent.RemoveScroll"), zo = g.forwardRef(
1720
1722
  }
1721
1723
  ) });
1722
1724
  }
1723
- ), Vo = g.forwardRef(
1725
+ ), jo = g.forwardRef(
1724
1726
  (t, e) => {
1725
1727
  const n = Z(nt, t.__scopePopover), o = g.useRef(!1), r = g.useRef(!1);
1726
1728
  return /* @__PURE__ */ w(
1727
- Ne,
1729
+ Fe,
1728
1730
  {
1729
1731
  ...t,
1730
1732
  ref: e,
@@ -1741,7 +1743,7 @@ var Bo = nn("PopoverContent.RemoveScroll"), zo = g.forwardRef(
1741
1743
  }
1742
1744
  );
1743
1745
  }
1744
- ), Ne = g.forwardRef(
1746
+ ), Fe = g.forwardRef(
1745
1747
  (t, e) => {
1746
1748
  const {
1747
1749
  __scopePopover: n,
@@ -1755,8 +1757,8 @@ var Bo = nn("PopoverContent.RemoveScroll"), zo = g.forwardRef(
1755
1757
  onInteractOutside: f,
1756
1758
  ...u
1757
1759
  } = t, p = Z(nt, n), d = dt(n);
1758
- return on(), /* @__PURE__ */ w(
1759
- rn,
1760
+ return rn(), /* @__PURE__ */ w(
1761
+ sn,
1760
1762
  {
1761
1763
  asChild: !0,
1762
1764
  loop: !0,
@@ -1764,7 +1766,7 @@ var Bo = nn("PopoverContent.RemoveScroll"), zo = g.forwardRef(
1764
1766
  onMountAutoFocus: r,
1765
1767
  onUnmountAutoFocus: i,
1766
1768
  children: /* @__PURE__ */ w(
1767
- sn,
1769
+ cn,
1768
1770
  {
1769
1771
  asChild: !0,
1770
1772
  disableOutsidePointerEvents: s,
@@ -1774,9 +1776,9 @@ var Bo = nn("PopoverContent.RemoveScroll"), zo = g.forwardRef(
1774
1776
  onFocusOutside: l,
1775
1777
  onDismiss: () => p.onOpenChange(!1),
1776
1778
  children: /* @__PURE__ */ w(
1777
- Fo,
1779
+ $o,
1778
1780
  {
1779
- "data-state": $e(p.open),
1781
+ "data-state": We(p.open),
1780
1782
  role: "dialog",
1781
1783
  id: p.contentId,
1782
1784
  ...d,
@@ -1797,9 +1799,9 @@ var Bo = nn("PopoverContent.RemoveScroll"), zo = g.forwardRef(
1797
1799
  }
1798
1800
  );
1799
1801
  }
1800
- ), Fe = "PopoverClose", jo = g.forwardRef(
1802
+ ), $e = "PopoverClose", Xo = g.forwardRef(
1801
1803
  (t, e) => {
1802
- const { __scopePopover: n, ...o } = t, r = Z(Fe, n);
1804
+ const { __scopePopover: n, ...o } = t, r = Z($e, n);
1803
1805
  return /* @__PURE__ */ w(
1804
1806
  ft.button,
1805
1807
  {
@@ -1811,66 +1813,66 @@ var Bo = nn("PopoverContent.RemoveScroll"), zo = g.forwardRef(
1811
1813
  );
1812
1814
  }
1813
1815
  );
1814
- jo.displayName = Fe;
1816
+ Xo.displayName = $e;
1815
1817
  var Yo = "PopoverArrow", Ko = g.forwardRef(
1816
1818
  (t, e) => {
1817
1819
  const { __scopePopover: n, ...o } = t, r = dt(n);
1818
- return /* @__PURE__ */ w($o, { ...r, ...o, ref: e });
1820
+ return /* @__PURE__ */ w(Wo, { ...r, ...o, ref: e });
1819
1821
  }
1820
1822
  );
1821
1823
  Ko.displayName = Yo;
1822
- function $e(t) {
1824
+ function We(t) {
1823
1825
  return t ? "open" : "closed";
1824
1826
  }
1825
- var Xo = Ee, Qo = Me, qo = _e, Go = Le, Uo = Te;
1826
- const Zo = "gQIKVa_anchor", Jo = "gQIKVa_check", tr = "gQIKVa_container", er = "gQIKVa_radio", nr = "gQIKVa_radioInput", ct = {
1827
- anchor: Zo,
1828
- check: Jo,
1829
- container: tr,
1830
- radio: er,
1831
- radioInput: nr
1827
+ var Qo = ke, qo = De, Go = _e, Uo = Te, Zo = Ne;
1828
+ const Jo = "gQIKVa_anchor", tr = "gQIKVa_check", er = "gQIKVa_container", nr = "gQIKVa_radio", or = "gQIKVa_radioInput", ct = {
1829
+ anchor: Jo,
1830
+ check: tr,
1831
+ container: er,
1832
+ radio: nr,
1833
+ radioInput: or
1832
1834
  };
1833
- function Et({ children: t, id: e, ...n }) {
1834
- return /* @__PURE__ */ q(ee, { children: [
1835
+ function kt({ children: t, id: e, ...n }) {
1836
+ return /* @__PURE__ */ q(ne, { children: [
1835
1837
  /* @__PURE__ */ w(
1836
1838
  "input",
1837
1839
  {
1838
1840
  type: "radio",
1839
1841
  id: e,
1840
- className: an(ct.radioInput, "sr-only"),
1842
+ className: ln(ct.radioInput, "sr-only"),
1841
1843
  ...n
1842
1844
  }
1843
1845
  ),
1844
1846
  /* @__PURE__ */ q("label", { htmlFor: e, className: ct.radio, children: [
1845
1847
  t,
1846
- /* @__PURE__ */ w(cn, { className: ct.check })
1848
+ /* @__PURE__ */ w(an, { className: ct.check })
1847
1849
  ] })
1848
1850
  ] });
1849
1851
  }
1850
- function ur() {
1851
- const { theme: t, systemTheme: e, setTheme: n } = Xe(), o = Qe();
1852
- return /* @__PURE__ */ q(Xo, { children: [
1853
- /* @__PURE__ */ w(qo, { asChild: !0, children: /* @__PURE__ */ q(ln, { variant: "transparent", "aria-label": "Preferences", children: [
1854
- /* @__PURE__ */ w(pn, {}),
1855
- /* @__PURE__ */ w(Qo, { className: ct.anchor })
1852
+ function dr() {
1853
+ const { theme: t, systemTheme: e, setTheme: n } = Qe(), o = qe();
1854
+ return /* @__PURE__ */ q(Qo, { children: [
1855
+ /* @__PURE__ */ w(Go, { asChild: !0, children: /* @__PURE__ */ q(fn, { variant: "transparent", "aria-label": "Preferences", children: [
1856
+ /* @__PURE__ */ w(hn, {}),
1857
+ /* @__PURE__ */ w(qo, { className: ct.anchor })
1856
1858
  ] }) }),
1857
- /* @__PURE__ */ w(Go, { children: /* @__PURE__ */ w(
1858
- Uo,
1859
+ /* @__PURE__ */ w(Uo, { children: /* @__PURE__ */ w(
1860
+ Zo,
1859
1861
  {
1860
1862
  sideOffset: 8,
1861
1863
  hideWhenDetached: !0,
1862
1864
  className: ct.container,
1863
- children: o && /* @__PURE__ */ q(ee, { children: [
1865
+ children: o && /* @__PURE__ */ q(ne, { children: [
1864
1866
  /* @__PURE__ */ w("span", { children: "Appearance" }),
1865
1867
  /* @__PURE__ */ q(
1866
- Et,
1868
+ kt,
1867
1869
  {
1868
1870
  id: "system",
1869
1871
  name: "theme",
1870
1872
  checked: t === "system",
1871
1873
  onChange: () => n("system"),
1872
1874
  children: [
1873
- /* @__PURE__ */ w(un, {}),
1875
+ /* @__PURE__ */ w(dn, {}),
1874
1876
  "Auto (",
1875
1877
  e,
1876
1878
  ")"
@@ -1878,27 +1880,27 @@ function ur() {
1878
1880
  }
1879
1881
  ),
1880
1882
  /* @__PURE__ */ q(
1881
- Et,
1883
+ kt,
1882
1884
  {
1883
1885
  id: "light",
1884
1886
  name: "theme",
1885
1887
  checked: t === "light",
1886
1888
  onChange: () => n("light"),
1887
1889
  children: [
1888
- /* @__PURE__ */ w(hn, {}),
1890
+ /* @__PURE__ */ w(mn, {}),
1889
1891
  "Light"
1890
1892
  ]
1891
1893
  }
1892
1894
  ),
1893
1895
  /* @__PURE__ */ q(
1894
- Et,
1896
+ kt,
1895
1897
  {
1896
1898
  id: "dark",
1897
1899
  name: "theme",
1898
1900
  checked: t === "dark",
1899
1901
  onChange: () => n("dark"),
1900
1902
  children: [
1901
- /* @__PURE__ */ w(dn, {}),
1903
+ /* @__PURE__ */ w(pn, {}),
1902
1904
  "Dark"
1903
1905
  ]
1904
1906
  }
@@ -1909,6 +1911,6 @@ function ur() {
1909
1911
  ] });
1910
1912
  }
1911
1913
  export {
1912
- ur as PrefPanel,
1913
- Et as PrefRadio
1914
+ dr as PrefPanel,
1915
+ kt as PrefRadio
1914
1916
  };