@kpf_/kiso 1.1.0 → 1.1.1

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/dist/kiso.js CHANGED
@@ -2,7 +2,7 @@ import * as a from "react";
2
2
  import $, { createContext as he, useRef as W, useCallback as re, useEffect as fe, useState as ee, useMemo as me, useLayoutEffect as Ka, useContext as ae, forwardRef as p1, isValidElement as cl, cloneElement as h1, createElement as v1, Fragment as ct, useId as $e, useSyncExternalStore as g1, useReducer as ul } from "react";
3
3
  import * as rn from "react-dom";
4
4
  import b1, { flushSync as hr, createPortal as dl } from "react-dom";
5
- import { motion as bt, AnimatePresence as x1, useMotionValue as an, useSpring as on, useTransform as Jo } from "framer-motion";
5
+ import { motion as ut, AnimatePresence as x1, useMotionValue as an, useSpring as on, useTransform as Jo } from "framer-motion";
6
6
  var Ca = { exports: {} }, wn = {};
7
7
  /**
8
8
  * @license React
@@ -205,16 +205,16 @@ function w1() {
205
205
  ` + ie + y;
206
206
  }
207
207
  }
208
- var Le = !1, mt;
208
+ var Le = !1, pt;
209
209
  {
210
210
  var bn = typeof WeakMap == "function" ? WeakMap : Map;
211
- mt = new bn();
211
+ pt = new bn();
212
212
  }
213
213
  function xn(y, T) {
214
214
  if (!y || Le)
215
215
  return "";
216
216
  {
217
- var I = mt.get(y);
217
+ var I = pt.get(y);
218
218
  if (I !== void 0)
219
219
  return I;
220
220
  }
@@ -269,7 +269,7 @@ function w1() {
269
269
  if (xe--, Ae--, Ae < 0 || J[xe] !== Ze[Ae]) {
270
270
  var Ke = `
271
271
  ` + J[xe].replace(" at new ", " at ");
272
- return y.displayName && Ke.includes("<anonymous>") && (Ke = Ke.replace("<anonymous>", y.displayName)), typeof y == "function" && mt.set(y, Ke), Ke;
272
+ return y.displayName && Ke.includes("<anonymous>") && (Ke = Ke.replace("<anonymous>", y.displayName)), typeof y == "function" && pt.set(y, Ke), Ke;
273
273
  }
274
274
  while (xe >= 1 && Ae >= 0);
275
275
  break;
@@ -279,7 +279,7 @@ function w1() {
279
279
  Le = !1, Ee.current = ue, Q(), Error.prepareStackTrace = se;
280
280
  }
281
281
  var Kt = y ? y.displayName || y.name : "", Ot = Kt ? Ne(Kt) : "";
282
- return typeof y == "function" && mt.set(y, Ot), Ot;
282
+ return typeof y == "function" && pt.set(y, Ot), Ot;
283
283
  }
284
284
  function Wc(y, T, I) {
285
285
  return xn(y, !1);
@@ -1861,7 +1861,7 @@ function Pu(e, ...t) {
1861
1861
  const ve = (e) => {
1862
1862
  const t = (n) => n[e] || [];
1863
1863
  return t.isThemeGetter = !0, t;
1864
- }, Jl = /^\[(?:([a-z-]+):)?(.+)\]$/i, Ru = /^\d+\/\d+$/, Lu = /* @__PURE__ */ new Set(["px", "full", "screen"]), Fu = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Iu = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Ou = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, Hu = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Vu = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, pt = (e) => Jt(e) || Lu.has(e) || Ru.test(e), At = (e) => fn(e, "length", Gu), Jt = (e) => !!e && !Number.isNaN(Number(e)), ta = (e) => fn(e, "number", Jt), An = (e) => !!e && Number.isInteger(Number(e)), Zu = (e) => e.endsWith("%") && Jt(e.slice(0, -1)), Y = (e) => Jl.test(e), St = (e) => Fu.test(e), Du = /* @__PURE__ */ new Set(["length", "size", "percentage"]), _u = (e) => fn(e, Du, ei), Bu = (e) => fn(e, "position", ei), Wu = /* @__PURE__ */ new Set(["image", "url"]), zu = (e) => fn(e, Wu, Yu), Uu = (e) => fn(e, "", Ku), Sn = () => !0, fn = (e, t, n) => {
1864
+ }, Jl = /^\[(?:([a-z-]+):)?(.+)\]$/i, Ru = /^\d+\/\d+$/, Lu = /* @__PURE__ */ new Set(["px", "full", "screen"]), Fu = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Iu = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Ou = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, Hu = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Vu = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ht = (e) => Jt(e) || Lu.has(e) || Ru.test(e), At = (e) => fn(e, "length", Gu), Jt = (e) => !!e && !Number.isNaN(Number(e)), ta = (e) => fn(e, "number", Jt), An = (e) => !!e && Number.isInteger(Number(e)), Zu = (e) => e.endsWith("%") && Jt(e.slice(0, -1)), Y = (e) => Jl.test(e), St = (e) => Fu.test(e), Du = /* @__PURE__ */ new Set(["length", "size", "percentage"]), _u = (e) => fn(e, Du, ei), Bu = (e) => fn(e, "position", ei), Wu = /* @__PURE__ */ new Set(["image", "url"]), zu = (e) => fn(e, Wu, Yu), Uu = (e) => fn(e, "", Ku), Sn = () => !0, fn = (e, t, n) => {
1865
1865
  const r = Jl.exec(e);
1866
1866
  return r ? r[1] ? typeof t == "string" ? r[1] === t : t.has(r[1]) : n(r[2]) : !1;
1867
1867
  }, Gu = (e) => (
@@ -1870,13 +1870,13 @@ const ve = (e) => {
1870
1870
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
1871
1871
  Iu.test(e) && !Ou.test(e)
1872
1872
  ), ei = () => !1, Ku = (e) => Hu.test(e), Yu = (e) => Vu.test(e), qu = () => {
1873
- const e = ve("colors"), t = ve("spacing"), n = ve("blur"), r = ve("brightness"), o = ve("borderColor"), s = ve("borderRadius"), i = ve("borderSpacing"), l = ve("borderWidth"), u = ve("contrast"), d = ve("grayscale"), f = ve("hueRotate"), m = ve("invert"), v = ve("gap"), h = ve("gradientColorStops"), b = ve("gradientColorStopPositions"), p = ve("inset"), g = ve("margin"), x = ve("opacity"), w = ve("padding"), E = ve("saturate"), A = ve("scale"), S = ve("sepia"), k = ve("skew"), C = ve("space"), O = ve("translate"), F = () => ["auto", "contain", "none"], N = () => ["auto", "hidden", "clip", "visible", "scroll"], P = () => ["auto", Y, t], R = () => [Y, t], z = () => ["", pt, At], M = () => ["auto", Jt, Y], Z = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], D = () => ["solid", "dashed", "dotted", "double", "none"], G = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], j = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], H = () => ["", "0", Y], V = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], X = () => [Jt, Y];
1873
+ const e = ve("colors"), t = ve("spacing"), n = ve("blur"), r = ve("brightness"), o = ve("borderColor"), s = ve("borderRadius"), i = ve("borderSpacing"), l = ve("borderWidth"), u = ve("contrast"), d = ve("grayscale"), f = ve("hueRotate"), m = ve("invert"), v = ve("gap"), h = ve("gradientColorStops"), b = ve("gradientColorStopPositions"), p = ve("inset"), g = ve("margin"), x = ve("opacity"), w = ve("padding"), E = ve("saturate"), A = ve("scale"), S = ve("sepia"), k = ve("skew"), C = ve("space"), O = ve("translate"), F = () => ["auto", "contain", "none"], N = () => ["auto", "hidden", "clip", "visible", "scroll"], P = () => ["auto", Y, t], R = () => [Y, t], z = () => ["", ht, At], M = () => ["auto", Jt, Y], Z = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], D = () => ["solid", "dashed", "dotted", "double", "none"], G = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], j = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], H = () => ["", "0", Y], V = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], X = () => [Jt, Y];
1874
1874
  return {
1875
1875
  cacheSize: 500,
1876
1876
  separator: ":",
1877
1877
  theme: {
1878
1878
  colors: [Sn],
1879
- spacing: [pt, At],
1879
+ spacing: [ht, At],
1880
1880
  blur: ["none", "", St, Y],
1881
1881
  brightness: X(),
1882
1882
  borderColor: [e],
@@ -2616,7 +2616,7 @@ const ve = (e) => {
2616
2616
  * @see https://tailwindcss.com/docs/line-height
2617
2617
  */
2618
2618
  leading: [{
2619
- leading: ["none", "tight", "snug", "normal", "relaxed", "loose", pt, Y]
2619
+ leading: ["none", "tight", "snug", "normal", "relaxed", "loose", ht, Y]
2620
2620
  }],
2621
2621
  /**
2622
2622
  * List Style Image
@@ -2692,14 +2692,14 @@ const ve = (e) => {
2692
2692
  * @see https://tailwindcss.com/docs/text-decoration-thickness
2693
2693
  */
2694
2694
  "text-decoration-thickness": [{
2695
- decoration: ["auto", "from-font", pt, At]
2695
+ decoration: ["auto", "from-font", ht, At]
2696
2696
  }],
2697
2697
  /**
2698
2698
  * Text Underline Offset
2699
2699
  * @see https://tailwindcss.com/docs/text-underline-offset
2700
2700
  */
2701
2701
  "underline-offset": [{
2702
- "underline-offset": ["auto", pt, Y]
2702
+ "underline-offset": ["auto", ht, Y]
2703
2703
  }],
2704
2704
  /**
2705
2705
  * Text Decoration Color
@@ -3181,14 +3181,14 @@ const ve = (e) => {
3181
3181
  * @see https://tailwindcss.com/docs/outline-offset
3182
3182
  */
3183
3183
  "outline-offset": [{
3184
- "outline-offset": [pt, Y]
3184
+ "outline-offset": [ht, Y]
3185
3185
  }],
3186
3186
  /**
3187
3187
  * Outline Width
3188
3188
  * @see https://tailwindcss.com/docs/outline-width
3189
3189
  */
3190
3190
  "outline-w": [{
3191
- outline: [pt, At]
3191
+ outline: [ht, At]
3192
3192
  }],
3193
3193
  /**
3194
3194
  * Outline Color
@@ -3228,7 +3228,7 @@ const ve = (e) => {
3228
3228
  * @see https://tailwindcss.com/docs/ring-offset-width
3229
3229
  */
3230
3230
  "ring-offset-w": [{
3231
- "ring-offset": [pt, At]
3231
+ "ring-offset": [ht, At]
3232
3232
  }],
3233
3233
  /**
3234
3234
  * Ring Offset Color
@@ -3823,7 +3823,7 @@ const ve = (e) => {
3823
3823
  * @see https://tailwindcss.com/docs/stroke-width
3824
3824
  */
3825
3825
  "stroke-w": [{
3826
- stroke: [pt, At, ta]
3826
+ stroke: [ht, At, ta]
3827
3827
  }],
3828
3828
  /**
3829
3829
  * Stroke
@@ -4725,7 +4725,7 @@ function fi(...e) {
4725
4725
  } });
4726
4726
  return t;
4727
4727
  }
4728
- function ut(...e) {
4728
+ function dt(...e) {
4729
4729
  if (e.length === 0) return {};
4730
4730
  if (e.length === 1) return e[0];
4731
4731
  let t = {}, n = {};
@@ -5702,7 +5702,7 @@ function Ge(e) {
5702
5702
  var t;
5703
5703
  return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
5704
5704
  }
5705
- function ft(e) {
5705
+ function mt(e) {
5706
5706
  var t;
5707
5707
  return (t = (Hi(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
5708
5708
  }
@@ -5712,7 +5712,7 @@ function Hi(e) {
5712
5712
  function He(e) {
5713
5713
  return jr() ? e instanceof Element || e instanceof Ge(e).Element : !1;
5714
5714
  }
5715
- function dt(e) {
5715
+ function ft(e) {
5716
5716
  return jr() ? e instanceof HTMLElement || e instanceof Ge(e).HTMLElement : !1;
5717
5717
  }
5718
5718
  function Cs(e) {
@@ -5749,7 +5749,7 @@ function io(e) {
5749
5749
  }
5750
5750
  function af(e) {
5751
5751
  let t = Rt(e);
5752
- for (; dt(t) && !ln(t); ) {
5752
+ for (; ft(t) && !ln(t); ) {
5753
5753
  if (io(t))
5754
5754
  return t;
5755
5755
  if (Tr(t))
@@ -5785,13 +5785,13 @@ function Rt(e) {
5785
5785
  e.assignedSlot || // DOM Element detected.
5786
5786
  e.parentNode || // ShadowRoot detected.
5787
5787
  Cs(e) && e.host || // Fallback.
5788
- ft(e)
5788
+ mt(e)
5789
5789
  );
5790
5790
  return Cs(t) ? t.host : t;
5791
5791
  }
5792
5792
  function Vi(e) {
5793
5793
  const t = Rt(e);
5794
- return ln(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : dt(t) && Un(t) ? t : Vi(t);
5794
+ return ln(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : ft(t) && Un(t) ? t : Vi(t);
5795
5795
  }
5796
5796
  function Fn(e, t, n) {
5797
5797
  var r;
@@ -5847,11 +5847,11 @@ function Di(e) {
5847
5847
  return e === "y" ? "height" : "width";
5848
5848
  }
5849
5849
  const uf = /* @__PURE__ */ new Set(["top", "bottom"]);
5850
- function vt(e) {
5850
+ function gt(e) {
5851
5851
  return uf.has(Lt(e)) ? "y" : "x";
5852
5852
  }
5853
5853
  function _i(e) {
5854
- return Zi(vt(e));
5854
+ return Zi(gt(e));
5855
5855
  }
5856
5856
  function df(e, t, n) {
5857
5857
  n === void 0 && (n = !1);
@@ -5927,7 +5927,7 @@ function js(e, t, n) {
5927
5927
  reference: r,
5928
5928
  floating: o
5929
5929
  } = e;
5930
- const s = vt(t), i = _i(t), l = Di(i), u = Lt(t), d = s === "y", f = r.x + r.width / 2 - o.width / 2, m = r.y + r.height / 2 - o.height / 2, v = r[l] / 2 - o[l] / 2;
5930
+ const s = gt(t), i = _i(t), l = Di(i), u = Lt(t), d = s === "y", f = r.x + r.width / 2 - o.width / 2, m = r.y + r.height / 2 - o.height / 2, v = r[l] / 2 - o[l] / 2;
5931
5931
  let h;
5932
5932
  switch (u) {
5933
5933
  case "top":
@@ -6100,7 +6100,7 @@ const yf = function(e) {
6100
6100
  } = hn(e, t);
6101
6101
  if ((n = s.arrow) != null && n.alignmentOffset)
6102
6102
  return {};
6103
- const x = Lt(o), w = vt(l), E = Lt(l) === l, A = await (u.isRTL == null ? void 0 : u.isRTL(d.floating)), S = v || (E || !p ? [br(l)] : ff(l)), k = b !== "none";
6103
+ const x = Lt(o), w = gt(l), E = Lt(l) === l, A = await (u.isRTL == null ? void 0 : u.isRTL(d.floating)), S = v || (E || !p ? [br(l)] : ff(l)), k = b !== "none";
6104
6104
  !v && k && S.push(...vf(l, p, b, A));
6105
6105
  const C = [l, ...S], O = await Pr(t, g), F = [];
6106
6106
  let N = ((r = s.flip) == null ? void 0 : r.overflows) || [];
@@ -6114,9 +6114,9 @@ const yf = function(e) {
6114
6114
  }], !F.every((M) => M <= 0)) {
6115
6115
  var P, R;
6116
6116
  const M = (((P = s.flip) == null ? void 0 : P.index) || 0) + 1, Z = C[M];
6117
- if (Z && (!(m === "alignment" ? w !== vt(Z) : !1) || // We leave the current main axis only if every placement on that axis
6117
+ if (Z && (!(m === "alignment" ? w !== gt(Z) : !1) || // We leave the current main axis only if every placement on that axis
6118
6118
  // overflows the main axis.
6119
- N.every((j) => vt(j.placement) === w ? j.overflows[0] > 0 : !0)))
6119
+ N.every((j) => gt(j.placement) === w ? j.overflows[0] > 0 : !0)))
6120
6120
  return {
6121
6121
  data: {
6122
6122
  index: M,
@@ -6133,7 +6133,7 @@ const yf = function(e) {
6133
6133
  var z;
6134
6134
  const G = (z = N.filter((j) => {
6135
6135
  if (k) {
6136
- const H = vt(j.placement);
6136
+ const H = gt(j.placement);
6137
6137
  return H === w || // Create a bias to the `y` side axis due to horizontal
6138
6138
  // reading directions favoring greater width.
6139
6139
  H === "y";
@@ -6163,7 +6163,7 @@ async function Ef(e, t) {
6163
6163
  placement: n,
6164
6164
  platform: r,
6165
6165
  elements: o
6166
- } = e, s = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), i = Lt(n), l = Gn(n), u = vt(n) === "y", d = wf.has(i) ? -1 : 1, f = s && u ? -1 : 1, m = hn(t, e);
6166
+ } = e, s = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), i = Lt(n), l = Gn(n), u = gt(n) === "y", d = wf.has(i) ? -1 : 1, f = s && u ? -1 : 1, m = hn(t, e);
6167
6167
  let {
6168
6168
  mainAxis: v,
6169
6169
  crossAxis: h,
@@ -6235,7 +6235,7 @@ const Af = function(e) {
6235
6235
  } = hn(e, t), d = {
6236
6236
  x: n,
6237
6237
  y: r
6238
- }, f = await Pr(t, u), m = vt(Lt(o)), v = Zi(m);
6238
+ }, f = await Pr(t, u), m = gt(Lt(o)), v = Zi(m);
6239
6239
  let h = d[v], b = d[m];
6240
6240
  if (s) {
6241
6241
  const g = v === "y" ? "top" : "left", x = v === "y" ? "bottom" : "right", w = h + f[g], E = h - f[x];
@@ -6278,7 +6278,7 @@ const Af = function(e) {
6278
6278
  apply: u = () => {
6279
6279
  },
6280
6280
  ...d
6281
- } = hn(e, t), f = await Pr(t, d), m = Lt(o), v = Gn(o), h = vt(o) === "y", {
6281
+ } = hn(e, t), f = await Pr(t, d), m = Lt(o), v = Gn(o), h = gt(o) === "y", {
6282
6282
  width: b,
6283
6283
  height: p
6284
6284
  } = s.floating;
@@ -6307,7 +6307,7 @@ const Af = function(e) {
6307
6307
  function Bi(e) {
6308
6308
  const t = et(e);
6309
6309
  let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
6310
- const o = dt(e), s = o ? e.offsetWidth : n, i = o ? e.offsetHeight : r, l = In(n) !== s || In(r) !== i;
6310
+ const o = ft(e), s = o ? e.offsetWidth : n, i = o ? e.offsetHeight : r, l = In(n) !== s || In(r) !== i;
6311
6311
  return l && (n = s, r = i), {
6312
6312
  width: n,
6313
6313
  height: r,
@@ -6319,7 +6319,7 @@ function uo(e) {
6319
6319
  }
6320
6320
  function tn(e) {
6321
6321
  const t = uo(e);
6322
- if (!dt(t))
6322
+ if (!ft(t))
6323
6323
  return it(1);
6324
6324
  const n = t.getBoundingClientRect(), {
6325
6325
  width: r,
@@ -6367,7 +6367,7 @@ function Bt(e, t, n, r) {
6367
6367
  }
6368
6368
  function Rr(e, t) {
6369
6369
  const n = $r(e).scrollLeft;
6370
- return t ? t.left + n : Bt(ft(e)).left + n;
6370
+ return t ? t.left + n : Bt(mt(e)).left + n;
6371
6371
  }
6372
6372
  function zi(e, t) {
6373
6373
  const n = e.getBoundingClientRect(), r = n.left + t.scrollLeft - Rr(e, n), o = n.top + t.scrollTop;
@@ -6383,15 +6383,15 @@ function Nf(e) {
6383
6383
  offsetParent: r,
6384
6384
  strategy: o
6385
6385
  } = e;
6386
- const s = o === "fixed", i = ft(r), l = t ? Tr(t.floating) : !1;
6386
+ const s = o === "fixed", i = mt(r), l = t ? Tr(t.floating) : !1;
6387
6387
  if (r === i || l && s)
6388
6388
  return n;
6389
6389
  let u = {
6390
6390
  scrollLeft: 0,
6391
6391
  scrollTop: 0
6392
6392
  }, d = it(1);
6393
- const f = it(0), m = dt(r);
6394
- if ((m || !m && !s) && ((pn(r) !== "body" || Un(i)) && (u = $r(r)), dt(r))) {
6393
+ const f = it(0), m = ft(r);
6394
+ if ((m || !m && !s) && ((pn(r) !== "body" || Un(i)) && (u = $r(r)), ft(r))) {
6395
6395
  const h = Bt(r);
6396
6396
  d = tn(r), f.x = h.x + r.clientLeft, f.y = h.y + r.clientTop;
6397
6397
  }
@@ -6407,7 +6407,7 @@ function jf(e) {
6407
6407
  return Array.from(e.getClientRects());
6408
6408
  }
6409
6409
  function Tf(e) {
6410
- const t = ft(e), n = $r(e), r = e.ownerDocument.body, o = Oe(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), s = Oe(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
6410
+ const t = mt(e), n = $r(e), r = e.ownerDocument.body, o = Oe(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), s = Oe(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
6411
6411
  let i = -n.scrollLeft + Rr(e);
6412
6412
  const l = -n.scrollTop;
6413
6413
  return et(r).direction === "rtl" && (i += Oe(t.clientWidth, r.clientWidth) - o), {
@@ -6419,7 +6419,7 @@ function Tf(e) {
6419
6419
  }
6420
6420
  const Ts = 25;
6421
6421
  function $f(e, t) {
6422
- const n = Ge(e), r = ft(e), o = n.visualViewport;
6422
+ const n = Ge(e), r = mt(e), o = n.visualViewport;
6423
6423
  let s = r.clientWidth, i = r.clientHeight, l = 0, u = 0;
6424
6424
  if (o) {
6425
6425
  s = o.width, i = o.height;
@@ -6440,7 +6440,7 @@ function $f(e, t) {
6440
6440
  }
6441
6441
  const Pf = /* @__PURE__ */ new Set(["absolute", "fixed"]);
6442
6442
  function Rf(e, t) {
6443
- const n = Bt(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, s = dt(e) ? tn(e) : it(1), i = e.clientWidth * s.x, l = e.clientHeight * s.y, u = o * s.x, d = r * s.y;
6443
+ const n = Bt(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, s = ft(e) ? tn(e) : it(1), i = e.clientWidth * s.x, l = e.clientHeight * s.y, u = o * s.x, d = r * s.y;
6444
6444
  return {
6445
6445
  width: i,
6446
6446
  height: l,
@@ -6453,7 +6453,7 @@ function $s(e, t, n) {
6453
6453
  if (t === "viewport")
6454
6454
  r = $f(e, n);
6455
6455
  else if (t === "document")
6456
- r = Tf(ft(e));
6456
+ r = Tf(mt(e));
6457
6457
  else if (He(t))
6458
6458
  r = Rf(t, n);
6459
6459
  else {
@@ -6513,7 +6513,7 @@ function If(e) {
6513
6513
  };
6514
6514
  }
6515
6515
  function Of(e, t, n) {
6516
- const r = dt(t), o = ft(t), s = n === "fixed", i = Bt(e, !0, s, t);
6516
+ const r = ft(t), o = mt(t), s = n === "fixed", i = Bt(e, !0, s, t);
6517
6517
  let l = {
6518
6518
  scrollLeft: 0,
6519
6519
  scrollTop: 0
@@ -6540,18 +6540,18 @@ function ia(e) {
6540
6540
  return et(e).position === "static";
6541
6541
  }
6542
6542
  function Ps(e, t) {
6543
- if (!dt(e) || et(e).position === "fixed")
6543
+ if (!ft(e) || et(e).position === "fixed")
6544
6544
  return null;
6545
6545
  if (t)
6546
6546
  return t(e);
6547
6547
  let n = e.offsetParent;
6548
- return ft(e) === n && (n = n.ownerDocument.body), n;
6548
+ return mt(e) === n && (n = n.ownerDocument.body), n;
6549
6549
  }
6550
6550
  function Gi(e, t) {
6551
6551
  const n = Ge(e);
6552
6552
  if (Tr(e))
6553
6553
  return n;
6554
- if (!dt(e)) {
6554
+ if (!ft(e)) {
6555
6555
  let o = Rt(e);
6556
6556
  for (; o && !ln(o); ) {
6557
6557
  if (He(o) && !ia(o))
@@ -6582,7 +6582,7 @@ function Vf(e) {
6582
6582
  }
6583
6583
  const Zf = {
6584
6584
  convertOffsetParentRelativeRectToViewportRelativeRect: Nf,
6585
- getDocumentElement: ft,
6585
+ getDocumentElement: mt,
6586
6586
  getClippingRect: Ff,
6587
6587
  getOffsetParent: Gi,
6588
6588
  getElementRects: Hf,
@@ -6597,7 +6597,7 @@ function Ki(e, t) {
6597
6597
  }
6598
6598
  function Df(e, t) {
6599
6599
  let n = null, r;
6600
- const o = ft(e);
6600
+ const o = mt(e);
6601
6601
  function s() {
6602
6602
  var l;
6603
6603
  clearTimeout(r), (l = n) == null || l.disconnect(), n = null;
@@ -7489,7 +7489,7 @@ function p0() {
7489
7489
  e.current = !1;
7490
7490
  }), []), e;
7491
7491
  }
7492
- var gt = ((e) => (e[e.Forwards = 0] = "Forwards", e[e.Backwards = 1] = "Backwards", e))(gt || {});
7492
+ var bt = ((e) => (e[e.Forwards = 0] = "Forwards", e[e.Backwards = 1] = "Backwards", e))(bt || {});
7493
7493
  function h0() {
7494
7494
  let e = W(0);
7495
7495
  return Fi(!0, "keydown", (t) => {
@@ -7703,7 +7703,7 @@ function Q8(e, t) {
7703
7703
  }), p = L((F) => {
7704
7704
  var N;
7705
7705
  sn(F.currentTarget) || o || (f ? (u({ type: 0 }), (N = l.buttonElement) == null || N.focus()) : u({ type: 0 }));
7706
- }), { isFocusVisible: g, focusProps: x } = mn({ autoFocus: s }), { isHovered: w, hoverProps: E } = Zn({ isDisabled: o }), { pressed: A, pressProps: S } = Dn({ disabled: o }), k = ke({ open: l.disclosureState === 0, hover: w, active: A, disabled: o, focus: g, autofocus: s }), C = Bn(e, l.buttonElement), O = ut(f ? { ref: v, type: C, disabled: o || void 0, autoFocus: s, onKeyDown: h, onClick: p } : { ref: v, id: r, type: C, "aria-expanded": l.disclosureState === 0, "aria-controls": l.panelElement ? l.panelId : void 0, disabled: o || void 0, autoFocus: s, onKeyDown: h, onKeyUp: b, onClick: p }, x, E, S);
7706
+ }), { isFocusVisible: g, focusProps: x } = mn({ autoFocus: s }), { isHovered: w, hoverProps: E } = Zn({ isDisabled: o }), { pressed: A, pressProps: S } = Dn({ disabled: o }), k = ke({ open: l.disclosureState === 0, hover: w, active: A, disabled: o, focus: g, autofocus: s }), C = Bn(e, l.buttonElement), O = dt(f ? { ref: v, type: C, disabled: o || void 0, autoFocus: s, onKeyDown: h, onClick: p } : { ref: v, id: r, type: C, "aria-expanded": l.disclosureState === 0, "aria-controls": l.panelElement ? l.panelId : void 0, disabled: o || void 0, autoFocus: s, onKeyDown: h, onKeyUp: b, onClick: p }, x, E, S);
7707
7707
  return le()({ ourProps: O, theirProps: i, slot: k, defaultTag: X8, name: "Disclosure.Button" });
7708
7708
  }
7709
7709
  let J8 = "div", em = Qe.RenderStrategy | Qe.Static;
@@ -7915,7 +7915,7 @@ function pm(e, t) {
7915
7915
  let x = u2((N) => {
7916
7916
  var P;
7917
7917
  s || (h === Ie.Open ? (hr(() => n.send({ type: de.CloseMenu })), (P = u.current) == null || P.focus({ preventScroll: !0 })) : (N.preventDefault(), n.send({ type: de.OpenMenu, focus: { focus: Se.Nothing }, trigger: wr.Pointer })));
7918
- }), { isFocusVisible: w, focusProps: E } = mn({ autoFocus: i }), { isHovered: A, hoverProps: S } = Zn({ isDisabled: s }), { pressed: k, pressProps: C } = Dn({ disabled: s }), O = ke({ open: h === Ie.Open, active: k || h === Ie.Open, disabled: s, hover: A, focus: w, autofocus: i }), F = ut(d(), { ref: f, id: o, type: Bn(e, u.current), "aria-haspopup": "menu", "aria-controls": p == null ? void 0 : p.id, "aria-expanded": h === Ie.Open, disabled: s || void 0, autoFocus: i, onKeyDown: m, onKeyUp: v }, x, E, S, C);
7918
+ }), { isFocusVisible: w, focusProps: E } = mn({ autoFocus: i }), { isHovered: A, hoverProps: S } = Zn({ isDisabled: s }), { pressed: k, pressProps: C } = Dn({ disabled: s }), O = ke({ open: h === Ie.Open, active: k || h === Ie.Open, disabled: s, hover: A, focus: w, autofocus: i }), F = dt(d(), { ref: f, id: o, type: Bn(e, u.current), "aria-haspopup": "menu", "aria-controls": p == null ? void 0 : p.id, "aria-expanded": h === Ie.Open, disabled: s || void 0, autoFocus: i, onKeyDown: m, onKeyUp: v }, x, E, S, C);
7919
7919
  return le()({ ourProps: F, theirProps: l, slot: O, defaultTag: mm, name: "Menu.Button" });
7920
7920
  }
7921
7921
  let hm = "div", vm = Qe.RenderStrategy | Qe.Static;
@@ -7977,7 +7977,7 @@ function gm(e, t) {
7977
7977
  j.preventDefault();
7978
7978
  break;
7979
7979
  }
7980
- }), Z = ke({ open: x === Ie.Open }), D = ut(d ? h() : {}, { "aria-activedescendant": Fe(f, f.selectors.activeDescendantId), "aria-labelledby": Fe(f, (j) => {
7980
+ }), Z = ke({ open: x === Ie.Open }), D = dt(d ? h() : {}, { "aria-activedescendant": Fe(f, f.selectors.activeDescendantId), "aria-labelledby": Fe(f, (j) => {
7981
7981
  var H;
7982
7982
  return (H = j.buttonElement) == null ? void 0 : H.id;
7983
7983
  }), id: r, onKeyDown: z, onKeyUp: M, role: "menu", tabIndex: x === Ie.Open ? 0 : void 0, ref: g, style: { ...u.style, ...v, "--button-width": Si(k, w, !0).width }, ...Wn(C) }), G = le();
@@ -8164,11 +8164,11 @@ function _m(e, t) {
8164
8164
  sn(_.currentTarget) || o || (E ? (l.actions.close(), (Q = l.state.button) == null || Q.focus()) : (_.preventDefault(), _.stopPropagation(), l.state.popoverState === Ce.Closed ? (w == null || w(l.state.buttonId), l.actions.open()) : l.actions.close(), (Ee = l.state.button) == null || Ee.focus()));
8165
8165
  }), N = L((_) => {
8166
8166
  _.preventDefault(), _.stopPropagation();
8167
- }), { isFocusVisible: P, focusProps: R } = mn({ autoFocus: s }), { isHovered: z, hoverProps: M } = Zn({ isDisabled: o }), { pressed: Z, pressProps: D } = Dn({ disabled: o }), G = u === Ce.Open, j = ke({ open: G, active: Z || G, disabled: o, hover: z, focus: P, autofocus: s }), H = Bn(e, f), V = ut(E ? { ref: k, type: H, onKeyDown: C, onClick: F, disabled: o || void 0, autoFocus: s } : { ref: S, id: m, type: H, "aria-expanded": u === Ce.Open, "aria-controls": v ? h : void 0, disabled: o || void 0, autoFocus: s, onKeyDown: C, onKeyUp: O, onClick: F, onMouseDown: N }, R, M, D), X = h0(), ge = L(() => {
8167
+ }), { isFocusVisible: P, focusProps: R } = mn({ autoFocus: s }), { isHovered: z, hoverProps: M } = Zn({ isDisabled: o }), { pressed: Z, pressProps: D } = Dn({ disabled: o }), G = u === Ce.Open, j = ke({ open: G, active: Z || G, disabled: o, hover: z, focus: P, autofocus: s }), H = Bn(e, f), V = dt(E ? { ref: k, type: H, onKeyDown: C, onClick: F, disabled: o || void 0, autoFocus: s } : { ref: S, id: m, type: H, "aria-expanded": u === Ce.Open, "aria-controls": v ? h : void 0, disabled: o || void 0, autoFocus: s, onKeyDown: C, onKeyUp: O, onClick: F, onMouseDown: N }, R, M, D), X = h0(), ge = L(() => {
8168
8168
  if (!Je(l.state.panel)) return;
8169
8169
  let _ = l.state.panel;
8170
8170
  function Q() {
8171
- be(X.current, { [gt.Forwards]: () => We(_, ye.First), [gt.Backwards]: () => We(_, ye.Last) }) === Nt.Error && We(_n(Tt(l.state.button)).filter((Ee) => Ee.dataset.headlessuiFocusGuard !== "true"), be(X.current, { [gt.Forwards]: ye.Next, [gt.Backwards]: ye.Previous }), { relativeTo: l.state.button });
8171
+ be(X.current, { [bt.Forwards]: () => We(_, ye.First), [bt.Backwards]: () => We(_, ye.Last) }) === Nt.Error && We(_n(Tt(l.state.button)).filter((Ee) => Ee.dataset.headlessuiFocusGuard !== "true"), be(X.current, { [bt.Forwards]: ye.Next, [bt.Backwards]: ye.Previous }), { relativeTo: l.state.button });
8172
8172
  }
8173
8173
  Q();
8174
8174
  }), B = le();
@@ -8209,7 +8209,7 @@ function Gm(e, t) {
8209
8209
  let B = xt(E.current);
8210
8210
  E.current.contains(B) || We(E.current, ye.First);
8211
8211
  }, [b, o, E.current, v]);
8212
- let G = ke({ open: v === Ce.Open, close: f.actions.refocusableClose }), j = ut(A ? C() : {}, { ref: N, id: r, onKeyDown: D, onBlur: o && v === Ce.Open ? (B) => {
8212
+ let G = ke({ open: v === Ce.Open, close: f.actions.refocusableClose }), j = dt(A ? C() : {}, { ref: N, id: r, onKeyDown: D, onBlur: o && v === Ce.Open ? (B) => {
8213
8213
  var _, Q, Ee, ie, Ne;
8214
8214
  let Le = B.relatedTarget;
8215
8215
  Le && E.current && ((_ = E.current) != null && _.contains(Le) || (f.actions.close(), ((Ee = (Q = p.current) == null ? void 0 : Q.contains) != null && Ee.call(Q, Le) || (Ne = (ie = g.current) == null ? void 0 : ie.contains) != null && Ne.call(ie, Le)) && Le.focus({ preventScroll: !0 })));
@@ -8217,10 +8217,10 @@ function Gm(e, t) {
8217
8217
  let B = E.current;
8218
8218
  if (!B) return;
8219
8219
  function _() {
8220
- be(H.current, { [gt.Forwards]: () => {
8220
+ be(H.current, { [bt.Forwards]: () => {
8221
8221
  var Q;
8222
8222
  We(B, ye.First) === Nt.Error && ((Q = f.state.afterPanelSentinel.current) == null || Q.focus());
8223
- }, [gt.Backwards]: () => {
8223
+ }, [bt.Backwards]: () => {
8224
8224
  var Q;
8225
8225
  (Q = f.state.button) == null || Q.focus({ preventScroll: !0 });
8226
8226
  } });
@@ -8230,16 +8230,16 @@ function Gm(e, t) {
8230
8230
  let B = E.current;
8231
8231
  if (!B) return;
8232
8232
  function _() {
8233
- be(H.current, { [gt.Forwards]: () => {
8233
+ be(H.current, { [bt.Forwards]: () => {
8234
8234
  var Q;
8235
8235
  if (!f.state.button) return;
8236
- let Ee = (Q = Tt(f.state.button)) != null ? Q : document.body, ie = _n(Ee), Ne = ie.indexOf(f.state.button), Le = ie.slice(0, Ne + 1), mt = [...ie.slice(Ne + 1), ...Le];
8237
- for (let bn of mt.slice()) if (bn.dataset.headlessuiFocusGuard === "true" || O != null && O.contains(bn)) {
8238
- let xn = mt.indexOf(bn);
8239
- xn !== -1 && mt.splice(xn, 1);
8236
+ let Ee = (Q = Tt(f.state.button)) != null ? Q : document.body, ie = _n(Ee), Ne = ie.indexOf(f.state.button), Le = ie.slice(0, Ne + 1), pt = [...ie.slice(Ne + 1), ...Le];
8237
+ for (let bn of pt.slice()) if (bn.dataset.headlessuiFocusGuard === "true" || O != null && O.contains(bn)) {
8238
+ let xn = pt.indexOf(bn);
8239
+ xn !== -1 && pt.splice(xn, 1);
8240
8240
  }
8241
- We(mt, ye.First, { sorted: !1 });
8242
- }, [gt.Backwards]: () => {
8241
+ We(pt, ye.First, { sorted: !1 });
8242
+ }, [bt.Backwards]: () => {
8243
8243
  var Q;
8244
8244
  We(B, ye.Previous) === Nt.Error && ((Q = f.state.button) == null || Q.focus());
8245
8245
  } });
@@ -8295,7 +8295,7 @@ function o4(e, t) {
8295
8295
  ie.preventDefault(), P();
8296
8296
  }), z = L((ie) => {
8297
8297
  ie.key === q.Space ? (ie.preventDefault(), P()) : ie.key === q.Enter && Zd(ie.currentTarget);
8298
- }), M = L((ie) => ie.preventDefault()), Z = Ai(), D = e2(), { isFocusVisible: G, focusProps: j } = mn({ autoFocus: b }), { isHovered: H, hoverProps: V } = Zn({ isDisabled: l }), { pressed: X, pressProps: ge } = Dn({ disabled: l }), B = ke({ checked: k, disabled: l, hover: H, focus: G, active: X, autofocus: b, changing: F }), _ = ut({ id: i, ref: A, role: "switch", type: Bn(e, x), tabIndex: e.tabIndex === -1 ? 0 : (n = e.tabIndex) != null ? n : 0, "aria-checked": k, "aria-labelledby": Z, "aria-describedby": D, disabled: l || void 0, autoFocus: b, onClick: R, onKeyUp: z, onKeyPress: M }, j, V, ge), Q = re(() => {
8298
+ }), M = L((ie) => ie.preventDefault()), Z = Ai(), D = e2(), { isFocusVisible: G, focusProps: j } = mn({ autoFocus: b }), { isHovered: H, hoverProps: V } = Zn({ isDisabled: l }), { pressed: X, pressProps: ge } = Dn({ disabled: l }), B = ke({ checked: k, disabled: l, hover: H, focus: G, active: X, autofocus: b, changing: F }), _ = dt({ id: i, ref: A, role: "switch", type: Bn(e, x), tabIndex: e.tabIndex === -1 ? 0 : (n = e.tabIndex) != null ? n : 0, "aria-checked": k, "aria-labelledby": Z, "aria-describedby": D, disabled: l || void 0, autoFocus: b, onClick: R, onKeyUp: z, onKeyPress: M }, j, V, ge), Q = re(() => {
8299
8299
  if (S !== void 0) return C == null ? void 0 : C(S);
8300
8300
  }, [C, S]), Ee = le();
8301
8301
  return $.createElement($.Fragment, null, m != null && $.createElement(Ud, { disabled: l, data: { [m]: v || "on" }, overrides: { type: "checkbox", checked: k }, form: h, onReset: Q }), Ee({ ourProps: _, theirProps: p, slot: B, defaultTag: a4, name: "Switch" }));
@@ -8464,7 +8464,7 @@ function S4(e, t) {
8464
8464
  }));
8465
8465
  }), P = L((V) => {
8466
8466
  V.preventDefault();
8467
- }), { isFocusVisible: R, focusProps: z } = mn({ autoFocus: l }), { isHovered: M, hoverProps: Z } = Zn({ isDisabled: i }), { pressed: D, pressProps: G } = Dn({ disabled: i }), j = ke({ selected: k, hover: M, active: D, focus: R, autofocus: l, disabled: i }), H = ut({ ref: E, onKeyDown: O, onMouseDown: P, onClick: N, id: s, role: "tab", type: Bn(e, g), "aria-controls": (r = (n = h[S]) == null ? void 0 : n.current) == null ? void 0 : r.id, "aria-selected": k, tabIndex: k ? 0 : -1, disabled: i || void 0, autoFocus: l }, z, Z, G);
8467
+ }), { isFocusVisible: R, focusProps: z } = mn({ autoFocus: l }), { isHovered: M, hoverProps: Z } = Zn({ isDisabled: i }), { pressed: D, pressProps: G } = Dn({ disabled: i }), j = ke({ selected: k, hover: M, active: D, focus: R, autofocus: l, disabled: i }), H = dt({ ref: E, onKeyDown: O, onMouseDown: P, onClick: N, id: s, role: "tab", type: Bn(e, g), "aria-controls": (r = (n = h[S]) == null ? void 0 : n.current) == null ? void 0 : r.id, "aria-selected": k, tabIndex: k ? 0 : -1, disabled: i || void 0, autoFocus: l }, z, Z, G);
8468
8468
  return le()({ ourProps: H, theirProps: u, slot: j, defaultTag: A4, name: "Tabs.Tab" });
8469
8469
  }
8470
8470
  let C4 = "div";
@@ -8479,7 +8479,7 @@ function j4(e, t) {
8479
8479
  ce(() => h.registerPanel(b), [h, b]);
8480
8480
  let g = j0("panels"), x = v.indexOf(b);
8481
8481
  x === -1 && (x = g);
8482
- let w = x === f, { isFocusVisible: E, focusProps: A } = mn(), S = ke({ selected: w, focus: E }), k = ut({ ref: p, id: l, role: "tabpanel", "aria-labelledby": (r = (n = m[x]) == null ? void 0 : n.current) == null ? void 0 : r.id, tabIndex: w ? u : -1 }, A), C = le();
8482
+ let w = x === f, { isFocusVisible: E, focusProps: A } = mn(), S = ke({ selected: w, focus: E }), k = dt({ ref: p, id: l, role: "tabpanel", "aria-labelledby": (r = (n = m[x]) == null ? void 0 : n.current) == null ? void 0 : r.id, tabIndex: w ? u : -1 }, A), C = le();
8483
8483
  return !w && ((o = d.unmount) == null || o) && !((s = d.static) != null && s) ? $.createElement(Pt, { "aria-hidden": "true", ...k }) : C({ ourProps: k, theirProps: d, slot: S, defaultTag: k4, features: N4, visible: w, name: "Tabs.Panel" });
8484
8484
  }
8485
8485
  let T4 = oe(S4), $4 = oe(y4), P4 = oe(E4), R4 = oe(M4), L4 = oe(j4), Cn = Object.assign(T4, { Group: $4, List: P4, Panels: R4, Panel: L4 });
@@ -10575,7 +10575,7 @@ const qp = Gp, Xp = Kp, Qp = Yp, Jp = hc, vc = a.forwardRef(({ ...e }, t) => /*
10575
10575
  asChild: !0,
10576
10576
  ...e,
10577
10577
  children: /* @__PURE__ */ c.jsx(
10578
- bt.div,
10578
+ ut.div,
10579
10579
  {
10580
10580
  initial: { opacity: 0 },
10581
10581
  animate: { opacity: 1 },
@@ -10641,7 +10641,7 @@ const eh = {
10641
10641
  asChild: !0,
10642
10642
  ...r,
10643
10643
  children: /* @__PURE__ */ c.jsxs(
10644
- bt.div,
10644
+ ut.div,
10645
10645
  {
10646
10646
  initial: s.initial,
10647
10647
  animate: s.animate,
@@ -10699,7 +10699,7 @@ const wc = a.forwardRef(({ ...e }, t) => /* @__PURE__ */ c.jsx(
10699
10699
  }
10700
10700
  ));
10701
10701
  wc.displayName = pc.displayName;
10702
- const ht = {
10702
+ const vt = {
10703
10703
  Root: qp,
10704
10704
  Trigger: Xp,
10705
10705
  Content: gc,
@@ -12119,19 +12119,19 @@ const iv = a.memo(({
12119
12119
  onCancel: l,
12120
12120
  variant: u = "primary",
12121
12121
  trigger: d
12122
- }) => /* @__PURE__ */ c.jsxs(ht.Root, { open: e, onOpenChange: t, children: [
12123
- d && /* @__PURE__ */ c.jsx(ht.Trigger, { asChild: !0, children: d }),
12124
- /* @__PURE__ */ c.jsxs(ht.Content, { variant: "standard", rounded: "lg", children: [
12125
- /* @__PURE__ */ c.jsxs(ht.Header, { children: [
12122
+ }) => /* @__PURE__ */ c.jsxs(vt.Root, { open: e, onOpenChange: t, children: [
12123
+ d && /* @__PURE__ */ c.jsx(vt.Trigger, { asChild: !0, children: d }),
12124
+ /* @__PURE__ */ c.jsxs(vt.Content, { variant: "standard", rounded: "lg", children: [
12125
+ /* @__PURE__ */ c.jsxs(vt.Header, { children: [
12126
12126
  /* @__PURE__ */ c.jsxs(Me, { direction: "row", gap: 3, align: "center", children: [
12127
12127
  /* @__PURE__ */ c.jsx("div", { className: u === "destructive" ? "text-kiso-error" : "text-kiso-green", children: u === "destructive" ? /* @__PURE__ */ c.jsx(gu, { size: 24, weight: "duotone" }) : /* @__PURE__ */ c.jsx(qa, { size: 24, weight: "duotone" }) }),
12128
- /* @__PURE__ */ c.jsx(ht.Title, { children: n })
12128
+ /* @__PURE__ */ c.jsx(vt.Title, { children: n })
12129
12129
  ] }),
12130
- /* @__PURE__ */ c.jsx("div", { className: "mt-2", children: /* @__PURE__ */ c.jsx(ht.Description, { children: r }) })
12130
+ /* @__PURE__ */ c.jsx("div", { className: "mt-2", children: /* @__PURE__ */ c.jsx(vt.Description, { children: r }) })
12131
12131
  ] }),
12132
- /* @__PURE__ */ c.jsx("div", { className: "mt-6", children: /* @__PURE__ */ c.jsxs(ht.Footer, { children: [
12133
- /* @__PURE__ */ c.jsx(ht.Close, { asChild: !0, children: /* @__PURE__ */ c.jsx(De, { variant: "ghost", onClick: l, children: s }) }),
12134
- /* @__PURE__ */ c.jsx(ht.Close, { asChild: !0, children: /* @__PURE__ */ c.jsx(
12132
+ /* @__PURE__ */ c.jsx("div", { className: "mt-6", children: /* @__PURE__ */ c.jsxs(vt.Footer, { children: [
12133
+ /* @__PURE__ */ c.jsx(vt.Close, { asChild: !0, children: /* @__PURE__ */ c.jsx(De, { variant: "ghost", onClick: l, children: s }) }),
12134
+ /* @__PURE__ */ c.jsx(vt.Close, { asChild: !0, children: /* @__PURE__ */ c.jsx(
12135
12135
  De,
12136
12136
  {
12137
12137
  variant: u === "destructive" ? "destructive" : "primary",
@@ -12165,7 +12165,7 @@ const cv = a.memo(({ text: e, className: t }) => {
12165
12165
  }
12166
12166
  }), []);
12167
12167
  return /* @__PURE__ */ c.jsx(
12168
- bt.div,
12168
+ ut.div,
12169
12169
  {
12170
12170
  className: K("flex flex-wrap", t),
12171
12171
  variants: r,
@@ -12173,7 +12173,7 @@ const cv = a.memo(({ text: e, className: t }) => {
12173
12173
  whileInView: "visible",
12174
12174
  viewport: { once: !0 },
12175
12175
  children: n.map((s, i) => /* @__PURE__ */ c.jsx(
12176
- bt.span,
12176
+ ut.span,
12177
12177
  {
12178
12178
  variants: o,
12179
12179
  className: "inline-block whitespace-pre",
@@ -12193,27 +12193,39 @@ const uv = a.memo(({
12193
12193
  onChange: o,
12194
12194
  className: s
12195
12195
  }) => {
12196
- const i = a.useMemo(() => (r - e) / (t - e) * 100, [r, e, t]), l = a.useCallback((u) => {
12197
- o(Number(u.target.value));
12198
- }, [o]);
12199
- return /* @__PURE__ */ c.jsxs("div", { className: K("relative flex h-6 w-full items-center", s), children: [
12200
- /* @__PURE__ */ c.jsx("div", { className: "absolute h-1 w-full rounded-full bg-kiso-stroke", children: /* @__PURE__ */ c.jsx(
12201
- "div",
12196
+ const i = a.useMemo(() => (r - e) / (t - e) * 100, [r, e, t]), l = a.useCallback((d) => {
12197
+ o(Number(d.target.value));
12198
+ }, [o]), u = {
12199
+ duration: 0.3,
12200
+ ease: [0.42, 0, 0.58, 1]
12201
+ // ease-kiso
12202
+ };
12203
+ return /* @__PURE__ */ c.jsxs("div", { className: K("relative flex h-6 w-full items-center group", s), children: [
12204
+ /* @__PURE__ */ c.jsx("div", { className: "absolute h-1.5 w-full rounded-full bg-kiso-stroke/40 overflow-hidden", children: /* @__PURE__ */ c.jsx(
12205
+ ut.div,
12202
12206
  {
12203
- className: "absolute h-full rounded-full bg-kiso-green",
12204
- style: { width: `${i}%` }
12207
+ className: "h-full bg-kiso-green shadow-[0_0_12px_rgba(159,232,112,0.4)]",
12208
+ initial: !1,
12209
+ animate: { width: `${i}%` },
12210
+ transition: u
12205
12211
  }
12206
12212
  ) }),
12207
12213
  /* @__PURE__ */ c.jsx(
12208
- bt.div,
12214
+ ut.div,
12209
12215
  {
12210
- className: "pointer-events-none absolute h-5 w-5 rounded-full border-2 border-white bg-white shadow-kiso-sm ring-1 ring-kiso-stroke/20",
12211
- style: { left: `${i}%`, x: "-50%" },
12212
- whileTap: { scale: 1.3 },
12213
- transition: { type: "spring", stiffness: 400, damping: 25 },
12214
- children: /* @__PURE__ */ c.jsx("div", { className: "absolute inset-0 m-auto h-2 w-2 rounded-full bg-kiso-green" })
12216
+ className: "pointer-events-none absolute z-20 h-5 w-5 rounded-full border-[1.5px] border-white bg-white shadow-kiso-card flex items-center justify-center",
12217
+ initial: !1,
12218
+ animate: { left: `${i}%`, x: "-50%" },
12219
+ transition: u,
12220
+ whileHover: { scale: 1.1 },
12221
+ whileTap: { scale: 0.95 },
12222
+ children: /* @__PURE__ */ c.jsx("div", { className: "h-2 w-2 rounded-full bg-kiso-forest group-hover:bg-kiso-green transition-colors duration-300" })
12215
12223
  }
12216
12224
  ),
12225
+ /* @__PURE__ */ c.jsxs("div", { className: "absolute top-8 w-full flex justify-between px-0.5 pointer-events-none", children: [
12226
+ /* @__PURE__ */ c.jsx("span", { className: "text-[10px] font-bold text-kiso-forest/20 uppercase tracking-widest", children: e }),
12227
+ /* @__PURE__ */ c.jsx("span", { className: "text-[10px] font-bold text-kiso-forest/20 uppercase tracking-widest", children: t })
12228
+ ] }),
12217
12229
  /* @__PURE__ */ c.jsx(
12218
12230
  "input",
12219
12231
  {
@@ -12223,7 +12235,7 @@ const uv = a.memo(({
12223
12235
  step: n,
12224
12236
  value: r,
12225
12237
  onChange: l,
12226
- className: "absolute inset-0 h-full w-full opacity-0 cursor-pointer"
12238
+ className: "absolute inset-0 h-full w-full opacity-0 cursor-pointer z-30"
12227
12239
  }
12228
12240
  )
12229
12241
  ] });
@@ -12245,7 +12257,7 @@ function Cv({ children: e, direction: t = "forward", layoutId: n, className: r }
12245
12257
  })
12246
12258
  };
12247
12259
  return /* @__PURE__ */ c.jsx("div", { className: K("relative w-full overflow-hidden", r), children: /* @__PURE__ */ c.jsx(x1, { mode: "popLayout", initial: !1, custom: t, children: /* @__PURE__ */ c.jsx(
12248
- bt.div,
12260
+ ut.div,
12249
12261
  {
12250
12262
  custom: t,
12251
12263
  variants: o,
@@ -12268,7 +12280,7 @@ const dv = a.memo(({ children: e, strength: t = 0.5 }) => {
12268
12280
  r.set(0), o.set(0);
12269
12281
  };
12270
12282
  return /* @__PURE__ */ c.jsx(
12271
- bt.div,
12283
+ ut.div,
12272
12284
  {
12273
12285
  ref: n,
12274
12286
  onMouseMove: u,
@@ -12287,7 +12299,7 @@ const fv = a.memo(({ children: e, max: t = 15, perspective: n = 1e3 }) => {
12287
12299
  r.set(0.5), o.set(0.5);
12288
12300
  };
12289
12301
  return /* @__PURE__ */ c.jsx(
12290
- bt.div,
12302
+ ut.div,
12291
12303
  {
12292
12304
  onMouseMove: f,
12293
12305
  onMouseLeave: m,
@@ -12353,7 +12365,7 @@ const hv = a.memo(({
12353
12365
  className: "group relative overflow-hidden",
12354
12366
  children: [
12355
12367
  /* @__PURE__ */ c.jsx(
12356
- bt.div,
12368
+ ut.div,
12357
12369
  {
12358
12370
  className: "pointer-events-none absolute -inset-px z-10 transition-opacity duration-300 opacity-0 group-hover:opacity-100",
12359
12371
  style: {
@@ -12414,7 +12426,7 @@ export {
12414
12426
  je as Link,
12415
12427
  Qh as LoginForm,
12416
12428
  dv as Magnetic,
12417
- ht as Modal,
12429
+ vt as Modal,
12418
12430
  Yh as Navbar,
12419
12431
  u6 as OTPInput,
12420
12432
  Wh as Pagination,