@codemod.com/report-ui 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +254 -231
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
- import { jsx as w, Fragment as Dn, jsxs as A } from "react/jsx-runtime";
1
+ import { jsx as w, Fragment as Wt, jsxs as A } from "react/jsx-runtime";
2
2
  import * as m from "react";
3
- import ht, { createContext as Wt, useRef as ot, useId as gi, useContext as ce, useInsertionEffect as Tl, useCallback as mi, useMemo as Me, useEffect as vi, Children as np, isValidElement as op, useLayoutEffect as Al, useState as _e, forwardRef as Rt, Fragment as El, createElement as Te, Component as rp } from "react";
3
+ import ht, { createContext as Kt, useRef as ot, useId as gi, useContext as ce, useInsertionEffect as Tl, useCallback as mi, useMemo as Me, useEffect as vi, Children as np, isValidElement as op, useLayoutEffect as Al, useState as _e, forwardRef as Rt, Fragment as El, createElement as Te, Component as rp } from "react";
4
4
  import * as Mo from "react-dom";
5
5
  import ip from "react-dom";
6
6
  function Ms(e, t) {
@@ -55,7 +55,7 @@ function sp(e) {
55
55
  var Il = Symbol("radix.slottable");
56
56
  // @__NO_SIDE_EFFECTS__
57
57
  function ap(e) {
58
- const t = ({ children: n }) => /* @__PURE__ */ w(Dn, { children: n });
58
+ const t = ({ children: n }) => /* @__PURE__ */ w(Wt, { children: n });
59
59
  return t.displayName = `${e}.Slottable`, t.__radixId = Il, t;
60
60
  }
61
61
  var lp = /* @__PURE__ */ ap("Slottable");
@@ -340,7 +340,7 @@ function _s(e, ...t) {
340
340
  const ee = (e) => {
341
341
  const t = (n) => n[e] || [];
342
342
  return t.isThemeGetter = !0, t;
343
- }, Ll = /^\[(?:([a-z-]+):)?(.+)\]$/i, Pp = /^\d+\/\d+$/, Mp = /* @__PURE__ */ new Set(["px", "full", "screen"]), Tp = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Ap = /\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$/, Ep = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, _p = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Ip = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, We = (e) => kt(e) || Mp.has(e) || Pp.test(e), Qe = (e) => Kt(e, "length", $p), kt = (e) => !!e && !Number.isNaN(Number(e)), nr = (e) => Kt(e, "number", kt), rn = (e) => !!e && Number.isInteger(Number(e)), Dp = (e) => e.endsWith("%") && kt(e.slice(0, -1)), G = (e) => Ll.test(e), Je = (e) => Tp.test(e), Np = /* @__PURE__ */ new Set(["length", "size", "percentage"]), Vp = (e) => Kt(e, Np, Ol), Fp = (e) => Kt(e, "position", Ol), Lp = /* @__PURE__ */ new Set(["image", "url"]), Op = (e) => Kt(e, Lp, zp), kp = (e) => Kt(e, "", Bp), sn = () => !0, Kt = (e, t, n) => {
343
+ }, Ll = /^\[(?:([a-z-]+):)?(.+)\]$/i, Pp = /^\d+\/\d+$/, Mp = /* @__PURE__ */ new Set(["px", "full", "screen"]), Tp = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Ap = /\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$/, Ep = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, _p = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Ip = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, We = (e) => kt(e) || Mp.has(e) || Pp.test(e), Qe = (e) => qt(e, "length", $p), kt = (e) => !!e && !Number.isNaN(Number(e)), nr = (e) => qt(e, "number", kt), sn = (e) => !!e && Number.isInteger(Number(e)), Dp = (e) => e.endsWith("%") && kt(e.slice(0, -1)), G = (e) => Ll.test(e), Je = (e) => Tp.test(e), Np = /* @__PURE__ */ new Set(["length", "size", "percentage"]), Vp = (e) => qt(e, Np, Ol), Fp = (e) => qt(e, "position", Ol), Lp = /* @__PURE__ */ new Set(["image", "url"]), Op = (e) => qt(e, Lp, zp), kp = (e) => qt(e, "", Bp), an = () => !0, qt = (e, t, n) => {
344
344
  const o = Ll.exec(e);
345
345
  return o ? o[1] ? typeof t == "string" ? o[1] === t : t.has(o[1]) : n(o[2]) : !1;
346
346
  }, $p = (e) => (
@@ -354,7 +354,7 @@ const ee = (e) => {
354
354
  cacheSize: 500,
355
355
  separator: ":",
356
356
  theme: {
357
- colors: [sn],
357
+ colors: [an],
358
358
  spacing: [We, Qe],
359
359
  blur: ["none", "", Je, G],
360
360
  brightness: q(),
@@ -594,7 +594,7 @@ const ee = (e) => {
594
594
  * @see https://tailwindcss.com/docs/z-index
595
595
  */
596
596
  z: [{
597
- z: ["auto", rn, G]
597
+ z: ["auto", sn, G]
598
598
  }],
599
599
  // Flexbox and Grid
600
600
  /**
@@ -644,14 +644,14 @@ const ee = (e) => {
644
644
  * @see https://tailwindcss.com/docs/order
645
645
  */
646
646
  order: [{
647
- order: ["first", "last", "none", rn, G]
647
+ order: ["first", "last", "none", sn, G]
648
648
  }],
649
649
  /**
650
650
  * Grid Template Columns
651
651
  * @see https://tailwindcss.com/docs/grid-template-columns
652
652
  */
653
653
  "grid-cols": [{
654
- "grid-cols": [sn]
654
+ "grid-cols": [an]
655
655
  }],
656
656
  /**
657
657
  * Grid Column Start / End
@@ -659,7 +659,7 @@ const ee = (e) => {
659
659
  */
660
660
  "col-start-end": [{
661
661
  col: ["auto", {
662
- span: ["full", rn, G]
662
+ span: ["full", sn, G]
663
663
  }, G]
664
664
  }],
665
665
  /**
@@ -681,7 +681,7 @@ const ee = (e) => {
681
681
  * @see https://tailwindcss.com/docs/grid-template-rows
682
682
  */
683
683
  "grid-rows": [{
684
- "grid-rows": [sn]
684
+ "grid-rows": [an]
685
685
  }],
686
686
  /**
687
687
  * Grid Row Start / End
@@ -689,7 +689,7 @@ const ee = (e) => {
689
689
  */
690
690
  "row-start-end": [{
691
691
  row: ["auto", {
692
- span: [rn, G]
692
+ span: [sn, G]
693
693
  }, G]
694
694
  }],
695
695
  /**
@@ -1044,7 +1044,7 @@ const ee = (e) => {
1044
1044
  * @see https://tailwindcss.com/docs/font-family
1045
1045
  */
1046
1046
  "font-family": [{
1047
- font: [sn]
1047
+ font: [an]
1048
1048
  }],
1049
1049
  /**
1050
1050
  * Font Variant Numeric
@@ -1715,7 +1715,7 @@ const ee = (e) => {
1715
1715
  * @see https://tailwindcss.com/docs/box-shadow-color
1716
1716
  */
1717
1717
  "shadow-color": [{
1718
- shadow: [sn]
1718
+ shadow: [an]
1719
1719
  }],
1720
1720
  /**
1721
1721
  * Opacity
@@ -1994,7 +1994,7 @@ const ee = (e) => {
1994
1994
  * @see https://tailwindcss.com/docs/rotate
1995
1995
  */
1996
1996
  rotate: [{
1997
- rotate: [rn, G]
1997
+ rotate: [sn, G]
1998
1998
  }],
1999
1999
  /**
2000
2000
  * Translate X
@@ -2371,18 +2371,18 @@ const ee = (e) => {
2371
2371
  extend: i = {},
2372
2372
  override: s = {}
2373
2373
  }) => {
2374
- cn(e, "cacheSize", t), cn(e, "prefix", n), cn(e, "separator", o), cn(e, "experimentalParseClassName", r);
2374
+ un(e, "cacheSize", t), un(e, "prefix", n), un(e, "separator", o), un(e, "experimentalParseClassName", r);
2375
2375
  for (const a in s)
2376
2376
  Hp(e[a], s[a]);
2377
2377
  for (const a in i)
2378
2378
  jp(e[a], i[a]);
2379
2379
  return e;
2380
- }, cn = (e, t, n) => {
2380
+ }, un = (e, t, n) => {
2381
2381
  n !== void 0 && (e[t] = n);
2382
2382
  }, Hp = (e, t) => {
2383
2383
  if (t)
2384
2384
  for (const n in t)
2385
- cn(e, n, t[n]);
2385
+ un(e, n, t[n]);
2386
2386
  }, jp = (e, t) => {
2387
2387
  if (t)
2388
2388
  for (const n in t) {
@@ -2603,22 +2603,31 @@ const Zp = m.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ w(
2603
2603
  ));
2604
2604
  Zp.displayName = "CardFooter";
2605
2605
  function Qp({ stats: e, dryRun: t }) {
2606
- const n = [
2606
+ const n = e.filesModified + e.filesUnmodified;
2607
+ if (!(e.filesModified > 0))
2608
+ return /* @__PURE__ */ A("p", { className: "text-sm text-muted-foreground", children: [
2609
+ "Scanned ",
2610
+ n.toLocaleString(),
2611
+ " file",
2612
+ n !== 1 ? "s" : ""
2613
+ ] });
2614
+ const r = [
2607
2615
  {
2608
2616
  label: t ? "Would modify" : "Modified",
2609
2617
  value: e.filesModified,
2610
2618
  className: "text-green-400"
2611
2619
  },
2612
2620
  {
2613
- label: "Unmodified",
2614
- value: e.filesUnmodified,
2621
+ label: "Scanned",
2622
+ value: n,
2615
2623
  className: "text-muted-foreground"
2616
- },
2617
- {
2618
- label: "Errors",
2619
- value: e.filesWithErrors,
2620
- className: e.filesWithErrors > 0 ? "text-red-400" : "text-muted-foreground"
2621
- },
2624
+ }
2625
+ ];
2626
+ return e.filesWithErrors > 0 && r.push({
2627
+ label: "Errors",
2628
+ value: e.filesWithErrors,
2629
+ className: "text-red-400"
2630
+ }), r.push(
2622
2631
  {
2623
2632
  label: "Additions",
2624
2633
  value: e.totalAdditions,
@@ -2631,21 +2640,25 @@ function Qp({ stats: e, dryRun: t }) {
2631
2640
  prefix: "-",
2632
2641
  className: "text-red-400"
2633
2642
  }
2634
- ];
2635
- return /* @__PURE__ */ w("div", { className: "grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-5 gap-3", children: n.map((o) => /* @__PURE__ */ w(Nn, { children: /* @__PURE__ */ A(wi, { className: "p-4 text-center", children: [
2636
- /* @__PURE__ */ A("div", { className: `text-2xl font-bold font-mono ${o.className}`, children: [
2637
- o.prefix || "",
2638
- o.value.toLocaleString()
2643
+ ), /* @__PURE__ */ w("div", { className: U(
2644
+ "grid grid-cols-2 sm:grid-cols-3 gap-3",
2645
+ r.length === 3 && "lg:grid-cols-3",
2646
+ r.length === 4 && "lg:grid-cols-4",
2647
+ r.length === 5 && "lg:grid-cols-5"
2648
+ ), children: r.map((i) => /* @__PURE__ */ w(Nn, { children: /* @__PURE__ */ A(wi, { className: "p-4 text-center", children: [
2649
+ /* @__PURE__ */ A("div", { className: `text-2xl font-bold font-mono ${i.className}`, children: [
2650
+ i.prefix || "",
2651
+ i.value.toLocaleString()
2639
2652
  ] }),
2640
- /* @__PURE__ */ w("div", { className: "text-[11px] uppercase tracking-wider text-muted-foreground mt-1", children: o.label })
2641
- ] }) }, o.label)) });
2653
+ /* @__PURE__ */ w("div", { className: "text-[11px] uppercase tracking-wider text-muted-foreground mt-1", children: i.label })
2654
+ ] }) }, i.label)) });
2642
2655
  }
2643
- const xi = Wt({});
2656
+ const xi = Kt({});
2644
2657
  function Si(e) {
2645
2658
  const t = ot(null);
2646
2659
  return t.current === null && (t.current = e()), t.current;
2647
2660
  }
2648
- const Do = Wt(null), bi = Wt({
2661
+ const Do = Kt(null), bi = Kt({
2649
2662
  transformPagePoint: (e) => e,
2650
2663
  isStatic: !1,
2651
2664
  reducedMotion: "never"
@@ -2765,7 +2778,7 @@ const Ci = typeof window < "u", $l = Ci ? Al : vi, oh = ({ children: e, custom:
2765
2778
  }
2766
2779
  process.env.NODE_ENV !== "production" && i === "wait" && y.length > 1 && console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);
2767
2780
  const { forceRender: S } = ce(xi);
2768
- return w(Dn, { children: y.map((C) => {
2781
+ return w(Wt, { children: y.map((C) => {
2769
2782
  const b = Hn(C), M = s && !a ? !1 : c === y || u.includes(b), R = () => {
2770
2783
  if (p.has(b))
2771
2784
  p.set(b, !0);
@@ -2779,8 +2792,8 @@ const Ci = typeof window < "u", $l = Ci ? Al : vi, oh = ({ children: e, custom:
2779
2792
  return w(th, { isPresent: M, initial: !d.current || n ? void 0 : !1, custom: M ? void 0 : t, presenceAffectsLayout: r, mode: i, onExitComplete: M ? void 0 : R, children: C }, b);
2780
2793
  }) });
2781
2794
  }, he = /* @__NO_SIDE_EFFECTS__ */ (e) => e;
2782
- let qt = he, rt = he;
2783
- process.env.NODE_ENV !== "production" && (qt = (e, t) => {
2795
+ let Xt = he, rt = he;
2796
+ process.env.NODE_ENV !== "production" && (Xt = (e, t) => {
2784
2797
  !e && typeof console < "u" && console.warn(t);
2785
2798
  }, rt = (e, t) => {
2786
2799
  if (!e)
@@ -2869,7 +2882,7 @@ function Bl(e, t) {
2869
2882
  s[jn[x]].cancel(v);
2870
2883
  }, state: r, steps: s };
2871
2884
  }
2872
- const { schedule: te, cancel: it, state: se, steps: or } = Bl(typeof requestAnimationFrame < "u" ? requestAnimationFrame : he, !0), zl = Wt({ strict: !1 }), Vs = {
2885
+ const { schedule: te, cancel: it, state: se, steps: or } = Bl(typeof requestAnimationFrame < "u" ? requestAnimationFrame : he, !0), zl = Kt({ strict: !1 }), Vs = {
2873
2886
  animation: [
2874
2887
  "animate",
2875
2888
  "variants",
@@ -2967,8 +2980,8 @@ function dh(e) {
2967
2980
  get: (o, r) => r === "create" ? e : (t.has(r) || t.set(r, e(r)), t.get(r))
2968
2981
  });
2969
2982
  }
2970
- const Vo = Wt({});
2971
- function bn(e) {
2983
+ const Vo = Kt({});
2984
+ function Cn(e) {
2972
2985
  return typeof e == "string" || Array.isArray(e);
2973
2986
  }
2974
2987
  function Fo(e) {
@@ -2984,7 +2997,7 @@ const Pi = [
2984
2997
  "exit"
2985
2998
  ], Mi = ["initial", ...Pi];
2986
2999
  function Lo(e) {
2987
- return Fo(e.animate) || Mi.some((t) => bn(e[t]));
3000
+ return Fo(e.animate) || Mi.some((t) => Cn(e[t]));
2988
3001
  }
2989
3002
  function Hl(e) {
2990
3003
  return !!(Lo(e) || e.variants);
@@ -2993,8 +3006,8 @@ function fh(e, t) {
2993
3006
  if (Lo(e)) {
2994
3007
  const { initial: n, animate: o } = e;
2995
3008
  return {
2996
- initial: n === !1 || bn(n) ? n : void 0,
2997
- animate: bn(o) ? o : void 0
3009
+ initial: n === !1 || Cn(n) ? n : void 0,
3010
+ animate: Cn(o) ? o : void 0
2998
3011
  };
2999
3012
  }
3000
3013
  return e.inherit !== !1 ? t : {};
@@ -3023,7 +3036,7 @@ function gh(e, t, n) {
3023
3036
  [t]
3024
3037
  );
3025
3038
  }
3026
- const Ti = (e) => e.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), mh = "framerAppearId", jl = "data-" + Ti(mh), { schedule: Ai } = Bl(queueMicrotask, !1), Ul = Wt({});
3039
+ const Ti = (e) => e.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), mh = "framerAppearId", jl = "data-" + Ti(mh), { schedule: Ai } = Bl(queueMicrotask, !1), Ul = Kt({});
3027
3040
  function vh(e, t, n, o, r) {
3028
3041
  var i, s;
3029
3042
  const { visualElement: a } = ce(Vo), l = ce(zl), c = ce(Do), u = ce(bi).reducedMotion, d = ot(null);
@@ -3104,7 +3117,7 @@ function Sh(e, t) {
3104
3117
  const n = ce(zl).strict;
3105
3118
  if (process.env.NODE_ENV !== "production" && t && n) {
3106
3119
  const o = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
3107
- e.ignoreStrict ? qt(!1, o) : rt(!1, o);
3120
+ e.ignoreStrict ? Xt(!1, o) : rt(!1, o);
3108
3121
  }
3109
3122
  }
3110
3123
  function bh(e) {
@@ -3228,7 +3241,7 @@ function Th(e, t, n, o) {
3228
3241
  }
3229
3242
  return r;
3230
3243
  }
3231
- const Xt = [
3244
+ const Yt = [
3232
3245
  "transformPerspective",
3233
3246
  "x",
3234
3247
  "y",
@@ -3246,15 +3259,15 @@ const Xt = [
3246
3259
  "skew",
3247
3260
  "skewX",
3248
3261
  "skewY"
3249
- ], Pt = new Set(Xt), ql = (e) => (t) => typeof t == "string" && t.startsWith(e), Xl = /* @__PURE__ */ ql("--"), Ah = /* @__PURE__ */ ql("var(--"), Ii = (e) => Ah(e) ? Eh.test(e.split("/*")[0].trim()) : !1, Eh = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, Yl = (e, t) => t && typeof e == "number" ? t.transform(e) : e, Xe = (e, t, n) => n > t ? t : n < e ? e : n, Yt = {
3262
+ ], Pt = new Set(Yt), ql = (e) => (t) => typeof t == "string" && t.startsWith(e), Xl = /* @__PURE__ */ ql("--"), Ah = /* @__PURE__ */ ql("var(--"), Ii = (e) => Ah(e) ? Eh.test(e.split("/*")[0].trim()) : !1, Eh = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, Yl = (e, t) => t && typeof e == "number" ? t.transform(e) : e, Xe = (e, t, n) => n > t ? t : n < e ? e : n, Zt = {
3250
3263
  test: (e) => typeof e == "number",
3251
3264
  parse: parseFloat,
3252
3265
  transform: (e) => e
3253
- }, Cn = {
3254
- ...Yt,
3266
+ }, Rn = {
3267
+ ...Zt,
3255
3268
  transform: (e) => Xe(0, 1, e)
3256
3269
  }, Un = {
3257
- ...Yt,
3270
+ ...Zt,
3258
3271
  default: 1
3259
3272
  }, Vn = (e) => ({
3260
3273
  test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
@@ -3321,12 +3334,12 @@ const Xt = [
3321
3334
  z: O,
3322
3335
  perspective: O,
3323
3336
  transformPerspective: O,
3324
- opacity: Cn,
3337
+ opacity: Rn,
3325
3338
  originX: ks,
3326
3339
  originY: ks,
3327
3340
  originZ: O
3328
3341
  }, $s = {
3329
- ...Yt,
3342
+ ...Zt,
3330
3343
  transform: Math.round
3331
3344
  }, Di = {
3332
3345
  ...Dh,
@@ -3334,19 +3347,19 @@ const Xt = [
3334
3347
  zIndex: $s,
3335
3348
  size: O,
3336
3349
  // SVG
3337
- fillOpacity: Cn,
3338
- strokeOpacity: Cn,
3350
+ fillOpacity: Rn,
3351
+ strokeOpacity: Rn,
3339
3352
  numOctaves: $s
3340
3353
  }, Vh = {
3341
3354
  x: "translateX",
3342
3355
  y: "translateY",
3343
3356
  z: "translateZ",
3344
3357
  transformPerspective: "perspective"
3345
- }, Fh = Xt.length;
3358
+ }, Fh = Yt.length;
3346
3359
  function Lh(e, t, n) {
3347
3360
  let o = "", r = !0;
3348
3361
  for (let i = 0; i < Fh; i++) {
3349
- const s = Xt[i], a = e[s];
3362
+ const s = Yt[i], a = e[s];
3350
3363
  if (a === void 0)
3351
3364
  continue;
3352
3365
  let l = !0;
@@ -3486,7 +3499,7 @@ function nc(e, t, n) {
3486
3499
  const o = Oi(e, t, n);
3487
3500
  for (const r in e)
3488
3501
  if (ue(e[r]) || ue(t[r])) {
3489
- const i = Xt.indexOf(r) !== -1 ? "attr" + r.charAt(0).toUpperCase() + r.substring(1) : r;
3502
+ const i = Yt.indexOf(r) !== -1 ? "attr" + r.charAt(0).toUpperCase() + r.substring(1) : r;
3490
3503
  o[i] = e[r];
3491
3504
  }
3492
3505
  return o;
@@ -3728,20 +3741,20 @@ const ho = /* @__PURE__ */ tg(() => {
3728
3741
  function ac(e) {
3729
3742
  return !!(typeof e == "function" && ho() || !e || typeof e == "string" && (e in Or || ho()) || Bi(e) || Array.isArray(e) && e.every(ac));
3730
3743
  }
3731
- const un = ([e, t, n, o]) => `cubic-bezier(${e}, ${t}, ${n}, ${o})`, Or = {
3744
+ const dn = ([e, t, n, o]) => `cubic-bezier(${e}, ${t}, ${n}, ${o})`, Or = {
3732
3745
  linear: "linear",
3733
3746
  ease: "ease",
3734
3747
  easeIn: "ease-in",
3735
3748
  easeOut: "ease-out",
3736
3749
  easeInOut: "ease-in-out",
3737
- circIn: /* @__PURE__ */ un([0, 0.65, 0.55, 1]),
3738
- circOut: /* @__PURE__ */ un([0.55, 0, 1, 0.45]),
3739
- backIn: /* @__PURE__ */ un([0.31, 0.01, 0.66, -0.59]),
3740
- backOut: /* @__PURE__ */ un([0.33, 1.53, 0.69, 0.99])
3750
+ circIn: /* @__PURE__ */ dn([0, 0.65, 0.55, 1]),
3751
+ circOut: /* @__PURE__ */ dn([0.55, 0, 1, 0.45]),
3752
+ backIn: /* @__PURE__ */ dn([0.31, 0.01, 0.66, -0.59]),
3753
+ backOut: /* @__PURE__ */ dn([0.33, 1.53, 0.69, 0.99])
3741
3754
  };
3742
3755
  function lc(e, t) {
3743
3756
  if (e)
3744
- return typeof e == "function" && ho() ? sc(e, t) : Bi(e) ? un(e) : Array.isArray(e) ? e.map((n) => lc(n, t) || Or.easeOut) : Or[e];
3757
+ return typeof e == "function" && ho() ? sc(e, t) : Bi(e) ? dn(e) : Array.isArray(e) ? e.map((n) => lc(n, t) || Or.easeOut) : Or[e];
3745
3758
  }
3746
3759
  const Ae = {
3747
3760
  x: !1,
@@ -3798,7 +3811,7 @@ const dc = (e, t) => t ? e === t ? !0 : dc(e, t.parentElement) : !1, zi = (e) =>
3798
3811
  function ig(e) {
3799
3812
  return rg.has(e.tagName) || e.tabIndex !== -1;
3800
3813
  }
3801
- const dn = /* @__PURE__ */ new WeakSet();
3814
+ const fn = /* @__PURE__ */ new WeakSet();
3802
3815
  function js(e) {
3803
3816
  return (t) => {
3804
3817
  t.key === "Enter" && e(t);
@@ -3812,7 +3825,7 @@ const sg = (e, t) => {
3812
3825
  if (!n)
3813
3826
  return;
3814
3827
  const o = js(() => {
3815
- if (dn.has(n))
3828
+ if (fn.has(n))
3816
3829
  return;
3817
3830
  rr(n, "down");
3818
3831
  const r = js(() => {
@@ -3828,11 +3841,11 @@ function Us(e) {
3828
3841
  function ag(e, t, n = {}) {
3829
3842
  const [o, r, i] = uc(e, n), s = (a) => {
3830
3843
  const l = a.currentTarget;
3831
- if (!Us(a) || dn.has(l))
3844
+ if (!Us(a) || fn.has(l))
3832
3845
  return;
3833
- dn.add(l);
3846
+ fn.add(l);
3834
3847
  const c = t(a), u = (p, g) => {
3835
- window.removeEventListener("pointerup", d), window.removeEventListener("pointercancel", f), !(!Us(p) || !dn.has(l)) && (dn.delete(l), typeof c == "function" && c(p, { success: g }));
3848
+ window.removeEventListener("pointerup", d), window.removeEventListener("pointercancel", f), !(!Us(p) || !fn.has(l)) && (fn.delete(l), typeof c == "function" && c(p, { success: g }));
3836
3849
  }, d = (p) => {
3837
3850
  u(p, n.useGlobalTarget || dc(l, p.target));
3838
3851
  }, f = (p) => {
@@ -3858,7 +3871,7 @@ const fc = /* @__PURE__ */ new Set([
3858
3871
  "left",
3859
3872
  "right",
3860
3873
  "bottom",
3861
- ...Xt
3874
+ ...Yt
3862
3875
  ]);
3863
3876
  let oo;
3864
3877
  function cg() {
@@ -4100,11 +4113,11 @@ class dg {
4100
4113
  this.clearListeners(), this.stop(), this.stopPassiveEffect && this.stopPassiveEffect();
4101
4114
  }
4102
4115
  }
4103
- function Rn(e, t) {
4116
+ function Pn(e, t) {
4104
4117
  return new dg(e, t);
4105
4118
  }
4106
4119
  function fg(e, t, n) {
4107
- e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, Rn(n));
4120
+ e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, Pn(n));
4108
4121
  }
4109
4122
  function pg(e, t) {
4110
4123
  const n = Oo(e, t);
@@ -4144,7 +4157,7 @@ const mc = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, vc
4144
4157
  function yg(e) {
4145
4158
  return typeof e == "number" ? e === 0 : e !== null ? e === "none" || e === "0" || Cc(e) : !0;
4146
4159
  }
4147
- const mn = (e) => Math.round(e * 1e5) / 1e5, Ki = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
4160
+ const vn = (e) => Math.round(e * 1e5) / 1e5, Ki = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
4148
4161
  function wg(e) {
4149
4162
  return e == null;
4150
4163
  }
@@ -4159,12 +4172,12 @@ const xg = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
4159
4172
  alpha: a !== void 0 ? parseFloat(a) : 1
4160
4173
  };
4161
4174
  }, Sg = (e) => Xe(0, 255, e), ir = {
4162
- ...Yt,
4175
+ ...Zt,
4163
4176
  transform: (e) => Math.round(Sg(e))
4164
4177
  }, yt = {
4165
4178
  test: /* @__PURE__ */ qi("rgb", "red"),
4166
4179
  parse: /* @__PURE__ */ Rc("red", "green", "blue"),
4167
- transform: ({ red: e, green: t, blue: n, alpha: o = 1 }) => "rgba(" + ir.transform(e) + ", " + ir.transform(t) + ", " + ir.transform(n) + ", " + mn(Cn.transform(o)) + ")"
4180
+ transform: ({ red: e, green: t, blue: n, alpha: o = 1 }) => "rgba(" + ir.transform(e) + ", " + ir.transform(t) + ", " + ir.transform(n) + ", " + vn(Rn.transform(o)) + ")"
4168
4181
  };
4169
4182
  function bg(e) {
4170
4183
  let t = "", n = "", o = "", r = "";
@@ -4182,7 +4195,7 @@ const $r = {
4182
4195
  }, Nt = {
4183
4196
  test: /* @__PURE__ */ qi("hsl", "hue"),
4184
4197
  parse: /* @__PURE__ */ Rc("hue", "saturation", "lightness"),
4185
- transform: ({ hue: e, saturation: t, lightness: n, alpha: o = 1 }) => "hsla(" + Math.round(e) + ", " + ke.transform(mn(t)) + ", " + ke.transform(mn(n)) + ", " + mn(Cn.transform(o)) + ")"
4198
+ transform: ({ hue: e, saturation: t, lightness: n, alpha: o = 1 }) => "hsla(" + Math.round(e) + ", " + ke.transform(vn(t)) + ", " + ke.transform(vn(n)) + ", " + vn(Rn.transform(o)) + ")"
4186
4199
  }, le = {
4187
4200
  test: (e) => yt.test(e) || $r.test(e) || Nt.test(e),
4188
4201
  parse: (e) => yt.test(e) ? yt.parse(e) : Nt.test(e) ? Nt.parse(e) : $r.parse(e),
@@ -4193,7 +4206,7 @@ function Rg(e) {
4193
4206
  return isNaN(e) && typeof e == "string" && (((t = e.match(Ki)) === null || t === void 0 ? void 0 : t.length) || 0) + (((n = e.match(Cg)) === null || n === void 0 ? void 0 : n.length) || 0) > 0;
4194
4207
  }
4195
4208
  const Pc = "number", Mc = "color", Pg = "var", Mg = "var(", Ks = "${}", Tg = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
4196
- function Pn(e) {
4209
+ function Mn(e) {
4197
4210
  const t = e.toString(), n = [], o = {
4198
4211
  color: [],
4199
4212
  number: [],
@@ -4204,16 +4217,16 @@ function Pn(e) {
4204
4217
  return { values: n, split: a, indexes: o, types: r };
4205
4218
  }
4206
4219
  function Tc(e) {
4207
- return Pn(e).values;
4220
+ return Mn(e).values;
4208
4221
  }
4209
4222
  function Ac(e) {
4210
- const { split: t, types: n } = Pn(e), o = t.length;
4223
+ const { split: t, types: n } = Mn(e), o = t.length;
4211
4224
  return (r) => {
4212
4225
  let i = "";
4213
4226
  for (let s = 0; s < o; s++)
4214
4227
  if (i += t[s], r[s] !== void 0) {
4215
4228
  const a = n[s];
4216
- a === Pc ? i += mn(r[s]) : a === Mc ? i += le.transform(r[s]) : i += r[s];
4229
+ a === Pc ? i += vn(r[s]) : a === Mc ? i += le.transform(r[s]) : i += r[s];
4217
4230
  }
4218
4231
  return i;
4219
4232
  };
@@ -4272,13 +4285,13 @@ function Fg(e, t, n) {
4272
4285
  let o = 0, r;
4273
4286
  for (; o < e.length && !r; ) {
4274
4287
  const i = e[o];
4275
- typeof i == "string" && !Vg.has(i) && Pn(i).values.length && (r = e[o]), o++;
4288
+ typeof i == "string" && !Vg.has(i) && Mn(i).values.length && (r = e[o]), o++;
4276
4289
  }
4277
4290
  if (r && n)
4278
4291
  for (const i of t)
4279
4292
  e[i] = Ec(n, r);
4280
4293
  }
4281
- const qs = (e) => e === Yt || e === O, Xs = (e, t) => parseFloat(e.split(", ")[t]), Ys = (e, t) => (n, { transform: o }) => {
4294
+ const qs = (e) => e === Zt || e === O, Xs = (e, t) => parseFloat(e.split(", ")[t]), Ys = (e, t) => (n, { transform: o }) => {
4282
4295
  if (o === "none" || !o)
4283
4296
  return 0;
4284
4297
  const r = o.match(/^matrix3d\((.+)\)$/u);
@@ -4288,7 +4301,7 @@ const qs = (e) => e === Yt || e === O, Xs = (e, t) => parseFloat(e.split(", ")[t
4288
4301
  const i = o.match(/^matrix\((.+)\)$/u);
4289
4302
  return i ? Xs(i[1], e) : 0;
4290
4303
  }
4291
- }, Lg = /* @__PURE__ */ new Set(["x", "y", "z"]), Og = Xt.filter((e) => !Lg.has(e));
4304
+ }, Lg = /* @__PURE__ */ new Set(["x", "y", "z"]), Og = Yt.filter((e) => !Lg.has(e));
4292
4305
  function kg(e) {
4293
4306
  const t = [];
4294
4307
  return Og.forEach((n) => {
@@ -4407,7 +4420,7 @@ function Nc(e, t, n = 1) {
4407
4420
  const Vc = (e) => (t) => t.test(e), Hg = {
4408
4421
  test: (e) => e === "auto",
4409
4422
  parse: (e) => e
4410
- }, Fc = [Yt, O, ke, et, Ih, _h, Hg], Zs = (e) => Fc.find(Vc(e));
4423
+ }, Fc = [Zt, O, ke, et, Ih, _h, Hg], Zs = (e) => Fc.find(Vc(e));
4411
4424
  class Lc extends Yi {
4412
4425
  constructor(t, n, o, r, i) {
4413
4426
  super(t, n, o, r, i, !0);
@@ -4481,7 +4494,7 @@ function Ug(e, t, n, o) {
4481
4494
  if (t === "display" || t === "visibility")
4482
4495
  return !0;
4483
4496
  const i = e[e.length - 1], s = Qs(r, t), a = Qs(i, t);
4484
- return qt(s === a, `You are trying to animate ${t} from "${r}" to "${i}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${i} via the \`style\` property.`), !s || !a ? !1 : jg(e) || (n === "spring" || $i(n)) && o;
4497
+ return Xt(s === a, `You are trying to animate ${t} from "${r}" to "${i}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${i} via the \`style\` property.`), !s || !a ? !1 : jg(e) || (n === "spring" || $i(n)) && o;
4485
4498
  }
4486
4499
  const Wg = (e) => e !== null;
4487
4500
  function ko(e, { repeat: t, repeatType: n = "loop" }, o) {
@@ -4592,7 +4605,7 @@ const ar = (e, t, n) => {
4592
4605
  }, Xg = [$r, yt, Nt], Yg = (e) => Xg.find((t) => t.test(e));
4593
4606
  function Js(e) {
4594
4607
  const t = Yg(e);
4595
- if (qt(!!t, `'${e}' is not an animatable color. Use the equivalent color code instead.`), !t)
4608
+ if (Xt(!!t, `'${e}' is not an animatable color. Use the equivalent color code instead.`), !t)
4596
4609
  return !1;
4597
4610
  let n = t.parse(e);
4598
4611
  return t === Nt && (n = qg(n)), n;
@@ -4641,8 +4654,8 @@ function tm(e, t) {
4641
4654
  return o;
4642
4655
  }
4643
4656
  const nm = (e, t) => {
4644
- const n = st.createTransformer(t), o = Pn(e), r = Pn(t);
4645
- return o.indexes.var.length === r.indexes.var.length && o.indexes.color.length === r.indexes.color.length && o.indexes.number.length >= r.indexes.number.length ? Hr.has(e) && !r.values.length || Hr.has(t) && !o.values.length ? Qg(e, t) : Ln(kc(tm(o, r), r.values), n) : (qt(!0, `Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), go(e, t));
4657
+ const n = st.createTransformer(t), o = Mn(e), r = Mn(t);
4658
+ return o.indexes.var.length === r.indexes.var.length && o.indexes.color.length === r.indexes.color.length && o.indexes.number.length >= r.indexes.number.length ? Hr.has(e) && !r.values.length || Hr.has(t) && !o.values.length ? Qg(e, t) : Ln(kc(tm(o, r), r.values), n) : (Xt(!0, `Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), go(e, t));
4646
4659
  };
4647
4660
  function $c(e, t, n) {
4648
4661
  return typeof e == "number" && typeof t == "number" && typeof n == "number" ? re(e, t, n) : Zi(e)(e, t);
@@ -4683,7 +4696,7 @@ const oe = {
4683
4696
  }, ta = 1e-3;
4684
4697
  function rm({ duration: e = oe.duration, bounce: t = oe.bounce, velocity: n = oe.velocity, mass: o = oe.mass }) {
4685
4698
  let r, i;
4686
- qt(e <= /* @__PURE__ */ Oe(oe.maxDuration), "Spring duration must be 10 seconds or less");
4699
+ Xt(e <= /* @__PURE__ */ Oe(oe.maxDuration), "Spring duration must be 10 seconds or less");
4687
4700
  let s = 1 - t;
4688
4701
  s = Xe(oe.minDamping, oe.maxDamping, s), e = Xe(oe.minDuration, oe.maxDuration, /* @__PURE__ */ qe(e)), s < 1 ? (r = (c) => {
4689
4702
  const u = c * s, d = u * e, f = u - n, p = jr(c, s), g = Math.exp(-d);
@@ -5414,7 +5427,7 @@ function Uc(e) {
5414
5427
  const t = {};
5415
5428
  for (let n = 0; n < $m; n++) {
5416
5429
  const o = Mi[n], r = e.props[o];
5417
- (bn(r) || r === !1) && (t[o] = r);
5430
+ (Cn(r) || r === !1) && (t[o] = r);
5418
5431
  }
5419
5432
  return t;
5420
5433
  }
@@ -5440,7 +5453,7 @@ function Hm(e) {
5440
5453
  const { props: c } = e, u = Uc(e.parent) || {}, d = [], f = /* @__PURE__ */ new Set();
5441
5454
  let p = {}, g = 1 / 0;
5442
5455
  for (let y = 0; y < zm; y++) {
5443
- const v = Bm[y], x = n[v], S = c[v] !== void 0 ? c[v] : u[v], C = bn(S), b = v === l ? x.isActive : null;
5456
+ const v = Bm[y], x = n[v], S = c[v] !== void 0 ? c[v] : u[v], C = Cn(S), b = v === l ? x.isActive : null;
5444
5457
  b === !1 && (g = y);
5445
5458
  let M = S === u[v] && S !== c[v] && C;
5446
5459
  if (M && o && e.manuallyAnimateOnMount && (M = !1), x.protectedKeys = { ...p }, // If it isn't active and hasn't *just* been set as inactive
@@ -5594,7 +5607,7 @@ const qm = {
5594
5607
  Feature: Km
5595
5608
  }
5596
5609
  };
5597
- function Mn(e, t, n, o = { passive: !0 }) {
5610
+ function Tn(e, t, n, o = { passive: !0 }) {
5598
5611
  return e.addEventListener(t, n, o), () => e.removeEventListener(t, n);
5599
5612
  }
5600
5613
  function On(e) {
@@ -5606,8 +5619,8 @@ function On(e) {
5606
5619
  };
5607
5620
  }
5608
5621
  const Xm = (e) => (t) => zi(t) && e(t, On(t));
5609
- function vn(e, t, n, o) {
5610
- return Mn(e, t, Xm(n), o);
5622
+ function yn(e, t, n, o) {
5623
+ return Tn(e, t, Xm(n), o);
5611
5624
  }
5612
5625
  const la = (e, t) => Math.abs(e - t);
5613
5626
  function Ym(e, t) {
@@ -5641,7 +5654,7 @@ class Wc {
5641
5654
  const s = On(t), a = lr(s, this.transformPagePoint), { point: l } = a, { timestamp: c } = se;
5642
5655
  this.history = [{ ...l, timestamp: c }];
5643
5656
  const { onSessionStart: u } = n;
5644
- u && u(t, cr(a, this.history)), this.removeListeners = Ln(vn(this.contextWindow, "pointermove", this.handlePointerMove), vn(this.contextWindow, "pointerup", this.handlePointerUp), vn(this.contextWindow, "pointercancel", this.handlePointerUp));
5657
+ u && u(t, cr(a, this.history)), this.removeListeners = Ln(yn(this.contextWindow, "pointermove", this.handlePointerMove), yn(this.contextWindow, "pointerup", this.handlePointerUp), yn(this.contextWindow, "pointercancel", this.handlePointerUp));
5645
5658
  }
5646
5659
  updateHandlers(t) {
5647
5660
  this.handlers = t;
@@ -5698,7 +5711,7 @@ function ov(e, t, n) {
5698
5711
  function ua(e, t, n, o = 0.5) {
5699
5712
  e.origin = o, e.originPoint = re(t.min, t.max, e.origin), e.scale = xe(n) / xe(t), e.translate = re(n.min, n.max, e.origin) - e.originPoint, (e.scale >= Jm && e.scale <= ev || isNaN(e.scale)) && (e.scale = 1), (e.translate >= tv && e.translate <= nv || isNaN(e.translate)) && (e.translate = 0);
5700
5713
  }
5701
- function yn(e, t, n, o) {
5714
+ function wn(e, t, n, o) {
5702
5715
  ua(e.x, t.x, n.x, o ? o.originX : void 0), ua(e.y, t.y, n.y, o ? o.originY : void 0);
5703
5716
  }
5704
5717
  function da(e, t, n) {
@@ -5710,7 +5723,7 @@ function rv(e, t, n) {
5710
5723
  function fa(e, t, n) {
5711
5724
  e.min = t.min - n.min, e.max = e.min + xe(t);
5712
5725
  }
5713
- function wn(e, t, n) {
5726
+ function xn(e, t, n) {
5714
5727
  fa(e.x, t.x, n.x), fa(e.y, t.y, n.y);
5715
5728
  }
5716
5729
  function iv(e, { min: t, max: n }, o) {
@@ -6055,7 +6068,7 @@ class mv {
6055
6068
  if (!this.visualElement.current)
6056
6069
  return;
6057
6070
  gv.set(this.visualElement, this);
6058
- const t = this.visualElement.current, n = vn(t, "pointerdown", (l) => {
6071
+ const t = this.visualElement.current, n = yn(t, "pointerdown", (l) => {
6059
6072
  const { drag: c, dragListener: u = !0 } = this.getProps();
6060
6073
  c && u && this.start(l);
6061
6074
  }), o = () => {
@@ -6063,7 +6076,7 @@ class mv {
6063
6076
  Dt(l) && l.current && (this.constraints = this.resolveRefConstraints());
6064
6077
  }, { projection: r } = this.visualElement, i = r.addEventListener("measure", o);
6065
6078
  r && !r.layout && (r.root && r.root.updateScroll(), r.updateLayout()), te.read(o);
6066
- const s = Mn(window, "resize", () => this.scalePositionWithinConstraints()), a = r.addEventListener("didUpdate", ({ delta: l, hasLayoutChanged: c }) => {
6079
+ const s = Tn(window, "resize", () => this.scalePositionWithinConstraints()), a = r.addEventListener("didUpdate", ({ delta: l, hasLayoutChanged: c }) => {
6067
6080
  this.isDragging && c && (Re((u) => {
6068
6081
  const d = this.getAxisMotionValue(u);
6069
6082
  d && (this.originPoint[u] += l[u].translate, d.set(d.get() + l[u].translate));
@@ -6130,7 +6143,7 @@ class wv extends ut {
6130
6143
  };
6131
6144
  }
6132
6145
  mount() {
6133
- this.removePointerDownListener = vn(this.node.current, "pointerdown", (t) => this.onPointerDown(t));
6146
+ this.removePointerDownListener = yn(this.node.current, "pointerdown", (t) => this.onPointerDown(t));
6134
6147
  }
6135
6148
  update() {
6136
6149
  this.session && this.session.updateHandlers(this.createPanHandlers());
@@ -6154,7 +6167,7 @@ const ro = {
6154
6167
  function Pa(e, t) {
6155
6168
  return t.max === t.min ? 0 : e / (t.max - t.min) * 100;
6156
6169
  }
6157
- const an = {
6170
+ const ln = {
6158
6171
  correct: (e, t) => {
6159
6172
  if (!t.target)
6160
6173
  return e;
@@ -6223,7 +6236,7 @@ function tu(e) {
6223
6236
  }
6224
6237
  const bv = {
6225
6238
  borderRadius: {
6226
- ...an,
6239
+ ...ln,
6227
6240
  applyTo: [
6228
6241
  "borderTopLeftRadius",
6229
6242
  "borderTopRightRadius",
@@ -6231,14 +6244,14 @@ const bv = {
6231
6244
  "borderBottomRightRadius"
6232
6245
  ]
6233
6246
  },
6234
- borderTopLeftRadius: an,
6235
- borderTopRightRadius: an,
6236
- borderBottomLeftRadius: an,
6237
- borderBottomRightRadius: an,
6247
+ borderTopLeftRadius: ln,
6248
+ borderTopRightRadius: ln,
6249
+ borderBottomLeftRadius: ln,
6250
+ borderBottomRightRadius: ln,
6238
6251
  boxShadow: xv
6239
6252
  };
6240
6253
  function Cv(e, t, n) {
6241
- const o = ue(e) ? e : Rn(e);
6254
+ const o = ue(e) ? e : Pn(e);
6242
6255
  return o.start(Ji("", o, t, n)), o.animation;
6243
6256
  }
6244
6257
  function Rv(e) {
@@ -6408,7 +6421,7 @@ const vt = {
6408
6421
  totalNodes: 0,
6409
6422
  resolvedTargetDeltas: 0,
6410
6423
  recalculatedProjection: 0
6411
- }, fn = typeof window < "u" && window.MotionDebug !== void 0, dr = ["", "X", "Y", "Z"], kv = { visibility: "hidden" }, $a = 1e3;
6424
+ }, pn = typeof window < "u" && window.MotionDebug !== void 0, dr = ["", "X", "Y", "Z"], kv = { visibility: "hidden" }, $a = 1e3;
6412
6425
  let $v = 0;
6413
6426
  function fr(e, t, n, o) {
6414
6427
  const { latestValues: r } = t;
@@ -6434,7 +6447,7 @@ function au({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
6434
6447
  this.id = $v++, this.animationId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
6435
6448
  this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
6436
6449
  }, this.updateProjection = () => {
6437
- this.projectionUpdateScheduled = !1, fn && (vt.totalNodes = vt.resolvedTargetDeltas = vt.recalculatedProjection = 0), this.nodes.forEach(Gv), this.nodes.forEach(Kv), this.nodes.forEach(qv), this.nodes.forEach(Hv), fn && window.MotionDebug.record(vt);
6450
+ this.projectionUpdateScheduled = !1, pn && (vt.totalNodes = vt.resolvedTargetDeltas = vt.recalculatedProjection = 0), this.nodes.forEach(Gv), this.nodes.forEach(Kv), this.nodes.forEach(qv), this.nodes.forEach(Hv), pn && window.MotionDebug.record(vt);
6438
6451
  }, this.resolvedRelativeTargetAt = 0, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = s, this.root = a ? a.root || a : this, this.path = a ? [...a.path, a] : [], this.parent = a, this.depth = a ? a.depth + 1 : 0;
6439
6452
  for (let l = 0; l < this.path.length; l++)
6440
6453
  this.path[l].shouldResetTransform = !0;
@@ -6673,15 +6686,15 @@ function au({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
6673
6686
  if (!(!this.layout || !(d || f))) {
6674
6687
  if (this.resolvedRelativeTargetAt = se.timestamp, !this.targetDelta && !this.relativeTarget) {
6675
6688
  const p = this.getClosestProjectingParent();
6676
- p && p.layout && this.animationProgress !== 1 ? (this.relativeParent = p, this.forceRelativeParentToResolveTarget(), this.relativeTarget = ie(), this.relativeTargetOrigin = ie(), wn(this.relativeTargetOrigin, this.layout.layoutBox, p.layout.layoutBox), Ce(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
6689
+ p && p.layout && this.animationProgress !== 1 ? (this.relativeParent = p, this.forceRelativeParentToResolveTarget(), this.relativeTarget = ie(), this.relativeTargetOrigin = ie(), xn(this.relativeTargetOrigin, this.layout.layoutBox, p.layout.layoutBox), Ce(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
6677
6690
  }
6678
6691
  if (!(!this.relativeTarget && !this.targetDelta)) {
6679
6692
  if (this.target || (this.target = ie(), this.targetWithTransforms = ie()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), rv(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : Ce(this.target, this.layout.layoutBox), Qc(this.target, this.targetDelta)) : Ce(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget) {
6680
6693
  this.attemptToResolveRelativeTarget = !1;
6681
6694
  const p = this.getClosestProjectingParent();
6682
- p && !!p.resumingFrom == !!this.resumingFrom && !p.options.layoutScroll && p.target && this.animationProgress !== 1 ? (this.relativeParent = p, this.forceRelativeParentToResolveTarget(), this.relativeTarget = ie(), this.relativeTargetOrigin = ie(), wn(this.relativeTargetOrigin, this.target, p.target), Ce(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
6695
+ p && !!p.resumingFrom == !!this.resumingFrom && !p.options.layoutScroll && p.target && this.animationProgress !== 1 ? (this.relativeParent = p, this.forceRelativeParentToResolveTarget(), this.relativeTarget = ie(), this.relativeTargetOrigin = ie(), xn(this.relativeTargetOrigin, this.target, p.target), Ce(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
6683
6696
  }
6684
- fn && vt.resolvedTargetDeltas++;
6697
+ pn && vt.resolvedTargetDeltas++;
6685
6698
  }
6686
6699
  }
6687
6700
  }
@@ -6709,7 +6722,7 @@ function au({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
6709
6722
  this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
6710
6723
  return;
6711
6724
  }
6712
- !this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (_a(this.prevProjectionDelta.x, this.projectionDelta.x), _a(this.prevProjectionDelta.y, this.projectionDelta.y)), yn(this.projectionDelta, this.layoutCorrected, g, this.latestValues), (this.treeScale.x !== f || this.treeScale.y !== p || !ka(this.projectionDelta.x, this.prevProjectionDelta.x) || !ka(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", g)), fn && vt.recalculatedProjection++;
6725
+ !this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (_a(this.prevProjectionDelta.x, this.projectionDelta.x), _a(this.prevProjectionDelta.y, this.projectionDelta.y)), wn(this.projectionDelta, this.layoutCorrected, g, this.latestValues), (this.treeScale.x !== f || this.treeScale.y !== p || !ka(this.projectionDelta.x, this.prevProjectionDelta.x) || !ka(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", g)), pn && vt.recalculatedProjection++;
6713
6726
  }
6714
6727
  hide() {
6715
6728
  this.isVisible = !1;
@@ -6736,7 +6749,7 @@ function au({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
6736
6749
  let S;
6737
6750
  this.mixTargetDelta = (C) => {
6738
6751
  const b = C / 1e3;
6739
- Ga(d.x, s.x, b), Ga(d.y, s.y, b), this.setTargetDelta(d), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (wn(f, this.layout.layoutBox, this.relativeParent.layout.layoutBox), Zv(this.relativeTarget, this.relativeTargetOrigin, f, b), S && Fv(this.relativeTarget, S) && (this.isProjectionDirty = !1), S || (S = ie()), Ce(S, this.relativeTarget)), h && (this.animationValues = u, Ev(u, c, this.latestValues, b, x, v)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = b;
6752
+ Ga(d.x, s.x, b), Ga(d.y, s.y, b), this.setTargetDelta(d), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (xn(f, this.layout.layoutBox, this.relativeParent.layout.layoutBox), Zv(this.relativeTarget, this.relativeTargetOrigin, f, b), S && Fv(this.relativeTarget, S) && (this.isProjectionDirty = !1), S || (S = ie()), Ce(S, this.relativeTarget)), h && (this.animationValues = u, Ev(u, c, this.latestValues, b, x, v)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = b;
6740
6753
  }, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
6741
6754
  }
6742
6755
  startAnimation(s) {
@@ -6771,7 +6784,7 @@ function au({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
6771
6784
  const f = xe(this.layout.layoutBox.y);
6772
6785
  l.y.min = s.target.y.min, l.y.max = l.y.min + f;
6773
6786
  }
6774
- Ce(a, l), Lt(a, u), yn(this.projectionDeltaWithTransform, this.layoutCorrected, a, u);
6787
+ Ce(a, l), Lt(a, u), wn(this.projectionDeltaWithTransform, this.layoutCorrected, a, u);
6775
6788
  }
6776
6789
  }
6777
6790
  registerSharedNode(s, a) {
@@ -6887,9 +6900,9 @@ function zv(e) {
6887
6900
  f.max = f.min + p, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[d].max = e.relativeTarget[d].min + p);
6888
6901
  });
6889
6902
  const a = Vt();
6890
- yn(a, o, n.layoutBox);
6903
+ wn(a, o, n.layoutBox);
6891
6904
  const l = Vt();
6892
- s ? yn(l, e.applyTransform(r, !0), n.measuredBox) : yn(l, o, n.layoutBox);
6905
+ s ? wn(l, e.applyTransform(r, !0), n.measuredBox) : wn(l, o, n.layoutBox);
6893
6906
  const c = !ru(a);
6894
6907
  let u = !1;
6895
6908
  if (!e.resumeFrom) {
@@ -6898,9 +6911,9 @@ function zv(e) {
6898
6911
  const { snapshot: f, layout: p } = d;
6899
6912
  if (f && p) {
6900
6913
  const g = ie();
6901
- wn(g, n.layoutBox, f.layoutBox);
6914
+ xn(g, n.layoutBox, f.layoutBox);
6902
6915
  const h = ie();
6903
- wn(h, o, p.layoutBox), iu(g, h) || (u = !0), d.options.layoutRoot && (e.relativeTarget = h, e.relativeTargetOrigin = g, e.relativeParent = d);
6916
+ xn(h, o, p.layoutBox), iu(g, h) || (u = !0), d.options.layoutRoot && (e.relativeTarget = h, e.relativeTargetOrigin = g, e.relativeParent = d);
6904
6917
  }
6905
6918
  }
6906
6919
  }
@@ -6919,7 +6932,7 @@ function zv(e) {
6919
6932
  e.options.transition = void 0;
6920
6933
  }
6921
6934
  function Gv(e) {
6922
- fn && vt.totalNodes++, e.parent && (e.isProjecting() || (e.isProjectionDirty = e.parent.isProjectionDirty), e.isSharedProjectionDirty || (e.isSharedProjectionDirty = !!(e.isProjectionDirty || e.parent.isProjectionDirty || e.parent.isSharedProjectionDirty)), e.isTransformDirty || (e.isTransformDirty = e.parent.isTransformDirty));
6935
+ pn && vt.totalNodes++, e.parent && (e.isProjecting() || (e.isProjectionDirty = e.parent.isProjectionDirty), e.isSharedProjectionDirty || (e.isSharedProjectionDirty = !!(e.isProjectionDirty || e.parent.isProjectionDirty || e.parent.isSharedProjectionDirty)), e.isTransformDirty || (e.isTransformDirty = e.parent.isTransformDirty));
6923
6936
  }
6924
6937
  function Hv(e) {
6925
6938
  e.isProjectionDirty = e.isSharedProjectionDirty = e.isTransformDirty = !1;
@@ -6982,7 +6995,7 @@ function ty(e) {
6982
6995
  return e !== e.root && ((t = e.scroll) === null || t === void 0 ? void 0 : t.wasRoot);
6983
6996
  }
6984
6997
  const ny = au({
6985
- attachResizeListener: (e, t) => Mn(e, "resize", t),
6998
+ attachResizeListener: (e, t) => Tn(e, "resize", t),
6986
6999
  measureScroll: () => ({
6987
7000
  x: document.documentElement.scrollLeft || document.body.scrollLeft,
6988
7001
  y: document.documentElement.scrollTop || document.body.scrollTop
@@ -7047,7 +7060,7 @@ class iy extends ut {
7047
7060
  !this.isActive || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1);
7048
7061
  }
7049
7062
  mount() {
7050
- this.unmount = Ln(Mn(this.node.current, "focus", () => this.onFocus()), Mn(this.node.current, "blur", () => this.onBlur()));
7063
+ this.unmount = Ln(Tn(this.node.current, "focus", () => this.onFocus()), Tn(this.node.current, "blur", () => this.onBlur()));
7051
7064
  }
7052
7065
  unmount() {
7053
7066
  }
@@ -7157,14 +7170,14 @@ function wy(e, t, n) {
7157
7170
  if (ue(r))
7158
7171
  e.addValue(o, r), process.env.NODE_ENV === "development" && No(r.version === "11.18.1", `Attempting to mix Motion versions ${r.version} with 11.18.1 may not work as expected.`);
7159
7172
  else if (ue(i))
7160
- e.addValue(o, Rn(r, { owner: e }));
7173
+ e.addValue(o, Pn(r, { owner: e }));
7161
7174
  else if (i !== r)
7162
7175
  if (e.hasValue(o)) {
7163
7176
  const s = e.getValue(o);
7164
7177
  s.liveStyle === !0 ? s.jump(r) : s.hasAnimated || s.set(r);
7165
7178
  } else {
7166
7179
  const s = e.getStaticValue(o);
7167
- e.addValue(o, Rn(s !== void 0 ? s : r, { owner: e }));
7180
+ e.addValue(o, Pn(s !== void 0 ? s : r, { owner: e }));
7168
7181
  }
7169
7182
  }
7170
7183
  for (const o in n)
@@ -7330,7 +7343,7 @@ class xy {
7330
7343
  if (this.props.values && this.props.values[t])
7331
7344
  return this.props.values[t];
7332
7345
  let o = this.values.get(t);
7333
- return o === void 0 && n !== void 0 && (o = Rn(n === null ? void 0 : n, { owner: this }), this.addValue(t, o)), o;
7346
+ return o === void 0 && n !== void 0 && (o = Pn(n === null ? void 0 : n, { owner: this }), this.addValue(t, o)), o;
7334
7347
  }
7335
7348
  /**
7336
7349
  * If we're trying to animate to a previously unencountered value,
@@ -8249,12 +8262,12 @@ const uw = {
8249
8262
  onColumnOrderChange: Se("columnOrder", e)
8250
8263
  }),
8251
8264
  createColumn: (e, t) => {
8252
- e.getIndex = k((n) => [xn(t, n)], (n) => n.findIndex((o) => o.id === e.id), $(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (n) => {
8265
+ e.getIndex = k((n) => [Sn(t, n)], (n) => n.findIndex((o) => o.id === e.id), $(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (n) => {
8253
8266
  var o;
8254
- return ((o = xn(t, n)[0]) == null ? void 0 : o.id) === e.id;
8267
+ return ((o = Sn(t, n)[0]) == null ? void 0 : o.id) === e.id;
8255
8268
  }, e.getIsLastColumn = (n) => {
8256
8269
  var o;
8257
- const r = xn(t, n);
8270
+ const r = Sn(t, n);
8258
8271
  return ((o = r[r.length - 1]) == null ? void 0 : o.id) === e.id;
8259
8272
  };
8260
8273
  },
@@ -8389,7 +8402,7 @@ const qn = {
8389
8402
  var n, o, r;
8390
8403
  const i = t.getState().columnSizing[e.id];
8391
8404
  return Math.min(Math.max((n = e.columnDef.minSize) != null ? n : qn.minSize, (o = i ?? e.columnDef.size) != null ? o : qn.size), (r = e.columnDef.maxSize) != null ? r : qn.maxSize);
8392
- }, e.getStart = k((n) => [n, xn(t, n), t.getState().columnSizing], (n, o) => o.slice(0, e.getIndex(n)).reduce((r, i) => r + i.getSize(), 0), $(t.options, "debugColumns", "getStart")), e.getAfter = k((n) => [n, xn(t, n), t.getState().columnSizing], (n, o) => o.slice(e.getIndex(n) + 1).reduce((r, i) => r + i.getSize(), 0), $(t.options, "debugColumns", "getAfter")), e.resetSize = () => {
8405
+ }, e.getStart = k((n) => [n, Sn(t, n), t.getState().columnSizing], (n, o) => o.slice(0, e.getIndex(n)).reduce((r, i) => r + i.getSize(), 0), $(t.options, "debugColumns", "getStart")), e.getAfter = k((n) => [n, Sn(t, n), t.getState().columnSizing], (n, o) => o.slice(e.getIndex(n) + 1).reduce((r, i) => r + i.getSize(), 0), $(t.options, "debugColumns", "getAfter")), e.resetSize = () => {
8393
8406
  t.setColumnSizing((n) => {
8394
8407
  let {
8395
8408
  [e.id]: o,
@@ -8564,7 +8577,7 @@ const gw = {
8564
8577
  };
8565
8578
  }
8566
8579
  };
8567
- function xn(e, t) {
8580
+ function Sn(e, t) {
8568
8581
  return t ? t === "center" ? e.getCenterVisibleLeafColumns() : t === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
8569
8582
  }
8570
8583
  const mw = {
@@ -9067,7 +9080,7 @@ function bu(e, t) {
9067
9080
  }
9068
9081
  return n.length - o.length;
9069
9082
  }
9070
- const ln = {
9083
+ const cn = {
9071
9084
  alphanumeric: bw,
9072
9085
  alphanumericCaseSensitive: Cw,
9073
9086
  text: Rw,
@@ -9094,11 +9107,11 @@ const ln = {
9094
9107
  for (const r of n) {
9095
9108
  const i = r == null ? void 0 : r.getValue(e.id);
9096
9109
  if (Object.prototype.toString.call(i) === "[object Date]")
9097
- return ln.datetime;
9110
+ return cn.datetime;
9098
9111
  if (typeof i == "string" && (o = !0, i.split(ti).length > 1))
9099
- return ln.alphanumeric;
9112
+ return cn.alphanumeric;
9100
9113
  }
9101
- return o ? ln.text : ln.basic;
9114
+ return o ? cn.text : cn.basic;
9102
9115
  }, e.getAutoSortDir = () => {
9103
9116
  const n = t.getFilteredRowModel().flatRows[0];
9104
9117
  return typeof (n == null ? void 0 : n.getValue(e.id)) == "string" ? "asc" : "desc";
@@ -9106,7 +9119,7 @@ const ln = {
9106
9119
  var n, o;
9107
9120
  if (!e)
9108
9121
  throw new Error();
9109
- return $o(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : (n = (o = t.options.sortingFns) == null ? void 0 : o[e.columnDef.sortingFn]) != null ? n : ln[e.columnDef.sortingFn];
9122
+ return $o(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : (n = (o = t.options.sortingFns) == null ? void 0 : o[e.columnDef.sortingFn]) != null ? n : cn[e.columnDef.sortingFn];
9110
9123
  }, e.toggleSorting = (n, o) => {
9111
9124
  const r = e.getNextSortingOrder(), i = typeof n < "u" && n !== null;
9112
9125
  t.setSorting((s) => {
@@ -9653,7 +9666,7 @@ const jw = m.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ w(
9653
9666
  }
9654
9667
  ));
9655
9668
  jw.displayName = "TableCaption";
9656
- const Sn = m.forwardRef(
9669
+ const bn = m.forwardRef(
9657
9670
  ({ className: e, type: t, ...n }, o) => /* @__PURE__ */ w(
9658
9671
  "input",
9659
9672
  {
@@ -9667,7 +9680,7 @@ const Sn = m.forwardRef(
9667
9680
  }
9668
9681
  )
9669
9682
  );
9670
- Sn.displayName = "Input";
9683
+ bn.displayName = "Input";
9671
9684
  function N(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
9672
9685
  return function(r) {
9673
9686
  if (e == null || e(r), n === !1 || !r.defaultPrevented)
@@ -9726,7 +9739,7 @@ function Uw(...e) {
9726
9739
  }
9727
9740
  var de = globalThis != null && globalThis.document ? m.useLayoutEffect : () => {
9728
9741
  }, Ww = m[" useInsertionEffect ".trim().toString()] || de;
9729
- function Tn({
9742
+ function An({
9730
9743
  prop: e,
9731
9744
  defaultProp: t,
9732
9745
  onChange: n = () => {
@@ -10152,7 +10165,7 @@ function Ye(e, t) {
10152
10165
  function Ze(e) {
10153
10166
  return e.split("-")[0];
10154
10167
  }
10155
- function Zt(e) {
10168
+ function Qt(e) {
10156
10169
  return e.split("-")[1];
10157
10170
  }
10158
10171
  function as(e) {
@@ -10170,7 +10183,7 @@ function cs(e) {
10170
10183
  }
10171
10184
  function y0(e, t, n) {
10172
10185
  n === void 0 && (n = !1);
10173
- const o = Zt(e), r = cs(e), i = ls(r);
10186
+ const o = Qt(e), r = cs(e), i = ls(r);
10174
10187
  let s = r === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
10175
10188
  return t.reference[i] > t.floating[i] && (s = xo(s)), [s, xo(s)];
10176
10189
  }
@@ -10195,7 +10208,7 @@ function b0(e, t, n) {
10195
10208
  }
10196
10209
  }
10197
10210
  function C0(e, t, n, o) {
10198
- const r = Zt(e);
10211
+ const r = Qt(e);
10199
10212
  let i = b0(Ze(e), n === "start", o);
10200
10213
  return r && (i = i.map((s) => s + "-" + r), t && (i = i.concat(i.map(ii)))), i;
10201
10214
  }
@@ -10275,7 +10288,7 @@ function dl(e, t, n) {
10275
10288
  y: o.y
10276
10289
  };
10277
10290
  }
10278
- switch (Zt(t)) {
10291
+ switch (Qt(t)) {
10279
10292
  case "start":
10280
10293
  p[s] -= f * (n && c ? -1 : 1);
10281
10294
  break;
@@ -10346,7 +10359,7 @@ const P0 = async (e, t, n) => {
10346
10359
  middlewareData: p
10347
10360
  };
10348
10361
  };
10349
- async function An(e, t) {
10362
+ async function En(e, t) {
10350
10363
  var n;
10351
10364
  t === void 0 && (t = {});
10352
10365
  const {
@@ -10415,7 +10428,7 @@ const M0 = (e) => ({
10415
10428
  }, p = cs(r), g = ls(p), h = await s.getDimensions(c), y = p === "y", v = y ? "top" : "left", x = y ? "bottom" : "right", S = y ? "clientHeight" : "clientWidth", C = i.reference[g] + i.reference[p] - f[p] - i.floating[g], b = f[p] - i.reference[p], M = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
10416
10429
  let R = M ? M[S] : 0;
10417
10430
  (!R || !await (s.isElement == null ? void 0 : s.isElement(M))) && (R = a.floating[S] || i.floating[g]);
10418
- const P = C / 2 - b / 2, _ = R / 2 - h[g] / 2 - 1, D = lt(d[v], _), B = lt(d[x], _), I = D, H = R - h[g] - B, z = R / 2 - h[g] / 2 + P, K = ri(I, z, H), L = !l.arrow && Zt(r) != null && z !== K && i.reference[g] / 2 - (z < I ? D : B) - h[g] / 2 < 0, V = L ? z < I ? z - I : z - H : 0;
10431
+ const P = C / 2 - b / 2, _ = R / 2 - h[g] / 2 - 1, D = lt(d[v], _), B = lt(d[x], _), I = D, H = R - h[g] - B, z = R / 2 - h[g] / 2 + P, K = ri(I, z, H), L = !l.arrow && Qt(r) != null && z !== K && i.reference[g] / 2 - (z < I ? D : B) - h[g] / 2 < 0, V = L ? z < I ? z - I : z - H : 0;
10419
10432
  return {
10420
10433
  [p]: f[p] + V,
10421
10434
  data: {
@@ -10454,7 +10467,7 @@ const M0 = (e) => ({
10454
10467
  return {};
10455
10468
  const v = Ze(r), x = Le(a), S = Ze(a) === a, C = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), b = f || (S || !h ? [xo(a)] : w0(a)), M = g !== "none";
10456
10469
  !f && M && b.push(...C0(a, h, g, C));
10457
- const R = [a, ...b], P = await An(t, y), _ = [];
10470
+ const R = [a, ...b], P = await En(t, y), _ = [];
10458
10471
  let D = ((o = i.flip) == null ? void 0 : o.overflows) || [];
10459
10472
  if (u && _.push(P[v]), d) {
10460
10473
  const z = y0(r, s, C);
@@ -10534,7 +10547,7 @@ const A0 = function(e) {
10534
10547
  } = Ye(e, t);
10535
10548
  switch (o) {
10536
10549
  case "referenceHidden": {
10537
- const i = await An(t, {
10550
+ const i = await En(t, {
10538
10551
  ...r,
10539
10552
  elementContext: "reference"
10540
10553
  }), s = fl(i, n.reference);
@@ -10546,7 +10559,7 @@ const A0 = function(e) {
10546
10559
  };
10547
10560
  }
10548
10561
  case "escaped": {
10549
- const i = await An(t, {
10562
+ const i = await En(t, {
10550
10563
  ...r,
10551
10564
  altBoundary: !0
10552
10565
  }), s = fl(i, n.floating);
@@ -10568,7 +10581,7 @@ async function E0(e, t) {
10568
10581
  placement: n,
10569
10582
  platform: o,
10570
10583
  elements: r
10571
- } = e, i = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), s = Ze(n), a = Zt(n), l = Le(n) === "y", c = Nu.has(s) ? -1 : 1, u = i && l ? -1 : 1, d = Ye(t, e);
10584
+ } = e, i = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), s = Ze(n), a = Qt(n), l = Le(n) === "y", c = Nu.has(s) ? -1 : 1, u = i && l ? -1 : 1, d = Ye(t, e);
10572
10585
  let {
10573
10586
  mainAxis: f,
10574
10587
  crossAxis: p,
@@ -10640,7 +10653,7 @@ const _0 = function(e) {
10640
10653
  } = Ye(e, t), c = {
10641
10654
  x: n,
10642
10655
  y: o
10643
- }, u = await An(t, l), d = Le(Ze(r)), f = as(d);
10656
+ }, u = await En(t, l), d = Le(Ze(r)), f = as(d);
10644
10657
  let p = c[f], g = c[d];
10645
10658
  if (i) {
10646
10659
  const y = f === "y" ? "top" : "left", v = f === "y" ? "bottom" : "right", x = p + u[y], S = p - u[v];
@@ -10725,7 +10738,7 @@ const _0 = function(e) {
10725
10738
  apply: l = () => {
10726
10739
  },
10727
10740
  ...c
10728
- } = Ye(e, t), u = await An(t, c), d = Ze(r), f = Zt(r), p = Le(r) === "y", {
10741
+ } = Ye(e, t), u = await En(t, c), d = Ze(r), f = Qt(r), p = Le(r) === "y", {
10729
10742
  width: g,
10730
10743
  height: h
10731
10744
  } = i.floating;
@@ -10754,7 +10767,7 @@ const _0 = function(e) {
10754
10767
  function zo() {
10755
10768
  return typeof window < "u";
10756
10769
  }
10757
- function Qt(e) {
10770
+ function Jt(e) {
10758
10771
  return Vu(e) ? (e.nodeName || "").toLowerCase() : "#document";
10759
10772
  }
10760
10773
  function we(e) {
@@ -10789,7 +10802,7 @@ function kn(e) {
10789
10802
  }
10790
10803
  const F0 = /* @__PURE__ */ new Set(["table", "td", "th"]);
10791
10804
  function L0(e) {
10792
- return F0.has(Qt(e));
10805
+ return F0.has(Jt(e));
10793
10806
  }
10794
10807
  const O0 = [":popover-open", ":modal"];
10795
10808
  function Go(e) {
@@ -10822,7 +10835,7 @@ function ds() {
10822
10835
  }
10823
10836
  const G0 = /* @__PURE__ */ new Set(["html", "body", "#document"]);
10824
10837
  function Ut(e) {
10825
- return G0.has(Qt(e));
10838
+ return G0.has(Jt(e));
10826
10839
  }
10827
10840
  function Ne(e) {
10828
10841
  return we(e).getComputedStyle(e);
@@ -10837,7 +10850,7 @@ function Ho(e) {
10837
10850
  };
10838
10851
  }
10839
10852
  function ct(e) {
10840
- if (Qt(e) === "html")
10853
+ if (Jt(e) === "html")
10841
10854
  return e;
10842
10855
  const t = (
10843
10856
  // Step into the shadow DOM of the parent of a slotted node.
@@ -10852,15 +10865,15 @@ function Fu(e) {
10852
10865
  const t = ct(e);
10853
10866
  return Ut(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Ge(t) && kn(t) ? t : Fu(t);
10854
10867
  }
10855
- function En(e, t, n) {
10868
+ function _n(e, t, n) {
10856
10869
  var o;
10857
10870
  t === void 0 && (t = []), n === void 0 && (n = !0);
10858
10871
  const r = Fu(e), i = r === ((o = e.ownerDocument) == null ? void 0 : o.body), s = we(r);
10859
10872
  if (i) {
10860
10873
  const a = si(s);
10861
- return t.concat(s, s.visualViewport || [], kn(r) ? r : [], a && n ? En(a) : []);
10874
+ return t.concat(s, s.visualViewport || [], kn(r) ? r : [], a && n ? _n(a) : []);
10862
10875
  }
10863
- return t.concat(r, En(r, [], n));
10876
+ return t.concat(r, _n(r, [], n));
10864
10877
  }
10865
10878
  function si(e) {
10866
10879
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
@@ -10952,7 +10965,7 @@ function U0(e) {
10952
10965
  scrollTop: 0
10953
10966
  }, c = Be(1);
10954
10967
  const u = Be(0), d = Ge(o);
10955
- if ((d || !d && !i) && ((Qt(o) !== "body" || kn(s)) && (l = Ho(o)), Ge(o))) {
10968
+ if ((d || !d && !i) && ((Jt(o) !== "body" || kn(s)) && (l = Ho(o)), Ge(o))) {
10956
10969
  const p = St(o);
10957
10970
  c = $t(o), u.x = p.x + o.clientLeft, u.y = p.y + o.clientTop;
10958
10971
  }
@@ -11036,7 +11049,7 @@ function Z0(e, t) {
11036
11049
  const n = t.get(e);
11037
11050
  if (n)
11038
11051
  return n;
11039
- let o = En(e, [], !1).filter((a) => De(a) && Qt(a) !== "body"), r = null;
11052
+ let o = _n(e, [], !1).filter((a) => De(a) && Jt(a) !== "body"), r = null;
11040
11053
  const i = Ne(e).position === "fixed";
11041
11054
  let s = i ? ct(e) : e;
11042
11055
  for (; De(s) && !Ut(s); ) {
@@ -11084,7 +11097,7 @@ function ex(e, t, n) {
11084
11097
  l.x = jo(r);
11085
11098
  }
11086
11099
  if (o || !o && !i)
11087
- if ((Qt(t) !== "body" || kn(r)) && (a = Ho(t)), o) {
11100
+ if ((Jt(t) !== "body" || kn(r)) && (a = Ho(t)), o) {
11088
11101
  const p = St(t, !0, i, t);
11089
11102
  l.x = p.x + t.clientLeft, l.y = p.y + t.clientTop;
11090
11103
  } else r && c();
@@ -11210,7 +11223,7 @@ function ix(e, t, n, o) {
11210
11223
  elementResize: s = typeof ResizeObserver == "function",
11211
11224
  layoutShift: a = typeof IntersectionObserver == "function",
11212
11225
  animationFrame: l = !1
11213
- } = o, c = fs(e), u = r || i ? [...c ? En(c) : [], ...En(t)] : [];
11226
+ } = o, c = fs(e), u = r || i ? [...c ? _n(c) : [], ..._n(t)] : [];
11214
11227
  u.forEach((v) => {
11215
11228
  r && v.addEventListener("scroll", n, {
11216
11229
  passive: !0
@@ -11539,9 +11552,9 @@ var hs = "PopperContent", [Ax, Ex] = ju(hs), Xu = m.forwardRef(
11539
11552
  l && xx({ ...H }),
11540
11553
  Sx({
11541
11554
  ...H,
11542
- apply: ({ elements: me, rects: Ve, availableWidth: tn, availableHeight: nn }) => {
11543
- const { width: on, height: tp } = Ve.reference, Gn = me.floating.style;
11544
- Gn.setProperty("--radix-popper-available-width", `${tn}px`), Gn.setProperty("--radix-popper-available-height", `${nn}px`), Gn.setProperty("--radix-popper-anchor-width", `${on}px`), Gn.setProperty("--radix-popper-anchor-height", `${tp}px`);
11555
+ apply: ({ elements: me, rects: Ve, availableWidth: nn, availableHeight: on }) => {
11556
+ const { width: rn, height: tp } = Ve.reference, Gn = me.floating.style;
11557
+ Gn.setProperty("--radix-popper-available-width", `${nn}px`), Gn.setProperty("--radix-popper-available-height", `${on}px`), Gn.setProperty("--radix-popper-anchor-width", `${rn}px`), Gn.setProperty("--radix-popper-anchor-height", `${tp}px`);
11545
11558
  }
11546
11559
  }),
11547
11560
  C && Cx({ element: C, padding: a }),
@@ -11689,11 +11702,11 @@ gs.displayName = Nx;
11689
11702
  function Vx(e, t) {
11690
11703
  return m.useReducer((n, o) => t[n][o] ?? n, e);
11691
11704
  }
11692
- var Jt = (e) => {
11705
+ var en = (e) => {
11693
11706
  const { present: t, children: n } = e, o = Fx(t), r = typeof n == "function" ? n({ present: o.isPresent }) : m.Children.only(n), i = ne(o.ref, Lx(r));
11694
11707
  return typeof n == "function" || o.isPresent ? m.cloneElement(r, { ref: i }) : null;
11695
11708
  };
11696
- Jt.displayName = "Presence";
11709
+ en.displayName = "Presence";
11697
11710
  function Fx(e) {
11698
11711
  const [t, n] = m.useState(), o = m.useRef(null), r = m.useRef(e), i = m.useRef("none"), s = e ? "mounted" : "unmounted", [a, l] = Vx(s, {
11699
11712
  mounted: {
@@ -11770,7 +11783,7 @@ var Gx = m.forwardRef((e, t) => {
11770
11783
  onEntryFocus: c,
11771
11784
  preventScrollOnEntryFocus: u = !1,
11772
11785
  ...d
11773
- } = e, f = m.useRef(null), p = ne(t, f), g = Bo(i), [h, y] = Tn({
11786
+ } = e, f = m.useRef(null), p = ne(t, f), g = Bo(i), [h, y] = An({
11774
11787
  prop: s,
11775
11788
  defaultProp: a ?? null,
11776
11789
  onChange: l,
@@ -12441,7 +12454,7 @@ var ci = ["Enter", " "], DS = ["ArrowDown", "PageUp", "Home"], wd = ["ArrowUp",
12441
12454
  }, FS = {
12442
12455
  ltr: ["ArrowLeft"],
12443
12456
  rtl: ["ArrowRight"]
12444
- }, Bn = "Menu", [_n, LS, OS] = rs(Bn), [Tt, xd] = Mt(Bn, [
12457
+ }, Bn = "Menu", [In, LS, OS] = rs(Bn), [Tt, xd] = Mt(Bn, [
12445
12458
  OS,
12446
12459
  Uo,
12447
12460
  Wo
@@ -12488,13 +12501,13 @@ var ys = "MenuPortal", [zS, Cd] = Tt(ys, {
12488
12501
  forceMount: void 0
12489
12502
  }), Rd = (e) => {
12490
12503
  const { __scopeMenu: t, forceMount: n, children: o, container: r } = e, i = At(ys, t);
12491
- return /* @__PURE__ */ w(zS, { scope: t, forceMount: n, children: /* @__PURE__ */ w(Jt, { present: n || i.open, children: /* @__PURE__ */ w(gs, { asChild: !0, container: r, children: o }) }) });
12504
+ return /* @__PURE__ */ w(zS, { scope: t, forceMount: n, children: /* @__PURE__ */ w(en, { present: n || i.open, children: /* @__PURE__ */ w(gs, { asChild: !0, container: r, children: o }) }) });
12492
12505
  };
12493
12506
  Rd.displayName = ys;
12494
12507
  var Pe = "MenuContent", [GS, ws] = Tt(Pe), Pd = m.forwardRef(
12495
12508
  (e, t) => {
12496
12509
  const n = Cd(Pe, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, i = At(Pe, e.__scopeMenu), s = zn(Pe, e.__scopeMenu);
12497
- return /* @__PURE__ */ w(_n.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ w(Jt, { present: o || i.open, children: /* @__PURE__ */ w(_n.Slot, { scope: e.__scopeMenu, children: s.modal ? /* @__PURE__ */ w(HS, { ...r, ref: t }) : /* @__PURE__ */ w(jS, { ...r, ref: t }) }) }) });
12510
+ return /* @__PURE__ */ w(In.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ w(en, { present: o || i.open, children: /* @__PURE__ */ w(In.Slot, { scope: e.__scopeMenu, children: s.modal ? /* @__PURE__ */ w(HS, { ...r, ref: t }) : /* @__PURE__ */ w(jS, { ...r, ref: t }) }) }) });
12498
12511
  }
12499
12512
  ), HS = m.forwardRef(
12500
12513
  (e, t) => {
@@ -12649,7 +12662,7 @@ var Pe = "MenuContent", [GS, ws] = Tt(Pe), Pd = m.forwardRef(
12649
12662
  }),
12650
12663
  onPointerMove: N(
12651
12664
  e.onPointerMove,
12652
- In((T) => {
12665
+ Dn((T) => {
12653
12666
  const j = T.target, q = z.current !== T.clientX;
12654
12667
  if (T.currentTarget.contains(j) && q) {
12655
12668
  const pe = T.clientX > z.current ? "right" : "left";
@@ -12724,7 +12737,7 @@ var Td = m.forwardRef(
12724
12737
  const g = l.current;
12725
12738
  g && p((g.textContent ?? "").trim());
12726
12739
  }, [i.children]), /* @__PURE__ */ w(
12727
- _n.ItemSlot,
12740
+ In.ItemSlot,
12728
12741
  {
12729
12742
  scope: n,
12730
12743
  disabled: o,
@@ -12740,13 +12753,13 @@ var Td = m.forwardRef(
12740
12753
  ref: c,
12741
12754
  onPointerMove: N(
12742
12755
  e.onPointerMove,
12743
- In((g) => {
12756
+ Dn((g) => {
12744
12757
  o ? s.onItemLeave(g) : (s.onItemEnter(g), g.defaultPrevented || g.currentTarget.focus({ preventScroll: !0 }));
12745
12758
  })
12746
12759
  ),
12747
12760
  onPointerLeave: N(
12748
12761
  e.onPointerLeave,
12749
- In((g) => s.onItemLeave(g))
12762
+ Dn((g) => s.onItemLeave(g))
12750
12763
  ),
12751
12764
  onFocus: N(e.onFocus, () => d(!0)),
12752
12765
  onBlur: N(e.onBlur, () => d(!1))
@@ -12818,7 +12831,7 @@ var bs = "MenuItemIndicator", [Nd, ZS] = Tt(
12818
12831
  (e, t) => {
12819
12832
  const { __scopeMenu: n, forceMount: o, ...r } = e, i = ZS(bs, n);
12820
12833
  return /* @__PURE__ */ w(
12821
- Jt,
12834
+ en,
12822
12835
  {
12823
12836
  present: o || Ro(i.checked) || i.checked === !0,
12824
12837
  children: /* @__PURE__ */ w(
@@ -12856,9 +12869,9 @@ var JS = "MenuArrow", Ld = m.forwardRef(
12856
12869
  }
12857
12870
  );
12858
12871
  Ld.displayName = JS;
12859
- var eb = "MenuSub", [cR, Od] = Tt(eb), pn = "MenuSubTrigger", kd = m.forwardRef(
12872
+ var eb = "MenuSub", [cR, Od] = Tt(eb), hn = "MenuSubTrigger", kd = m.forwardRef(
12860
12873
  (e, t) => {
12861
- const n = At(pn, e.__scopeMenu), o = zn(pn, e.__scopeMenu), r = Od(pn, e.__scopeMenu), i = ws(pn, e.__scopeMenu), s = m.useRef(null), { pointerGraceTimerRef: a, onPointerGraceIntentChange: l } = i, c = { __scopeMenu: e.__scopeMenu }, u = m.useCallback(() => {
12874
+ const n = At(hn, e.__scopeMenu), o = zn(hn, e.__scopeMenu), r = Od(hn, e.__scopeMenu), i = ws(hn, e.__scopeMenu), s = m.useRef(null), { pointerGraceTimerRef: a, onPointerGraceIntentChange: l } = i, c = { __scopeMenu: e.__scopeMenu }, u = m.useCallback(() => {
12862
12875
  s.current && window.clearTimeout(s.current), s.current = null;
12863
12876
  }, []);
12864
12877
  return m.useEffect(() => u, [u]), m.useEffect(() => {
@@ -12882,7 +12895,7 @@ var eb = "MenuSub", [cR, Od] = Tt(eb), pn = "MenuSubTrigger", kd = m.forwardRef(
12882
12895
  },
12883
12896
  onPointerMove: N(
12884
12897
  e.onPointerMove,
12885
- In((d) => {
12898
+ Dn((d) => {
12886
12899
  i.onItemEnter(d), !d.defaultPrevented && !e.disabled && !n.open && !s.current && (i.onPointerGraceIntentChange(null), s.current = window.setTimeout(() => {
12887
12900
  n.onOpenChange(!0), u();
12888
12901
  }, 100));
@@ -12890,7 +12903,7 @@ var eb = "MenuSub", [cR, Od] = Tt(eb), pn = "MenuSubTrigger", kd = m.forwardRef(
12890
12903
  ),
12891
12904
  onPointerLeave: N(
12892
12905
  e.onPointerLeave,
12893
- In((d) => {
12906
+ Dn((d) => {
12894
12907
  var p, g;
12895
12908
  u();
12896
12909
  const f = (p = n.content) == null ? void 0 : p.getBoundingClientRect();
@@ -12926,11 +12939,11 @@ var eb = "MenuSub", [cR, Od] = Tt(eb), pn = "MenuSubTrigger", kd = m.forwardRef(
12926
12939
  ) });
12927
12940
  }
12928
12941
  );
12929
- kd.displayName = pn;
12942
+ kd.displayName = hn;
12930
12943
  var $d = "MenuSubContent", Bd = m.forwardRef(
12931
12944
  (e, t) => {
12932
12945
  const n = Cd(Pe, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, i = At(Pe, e.__scopeMenu), s = zn(Pe, e.__scopeMenu), a = Od($d, e.__scopeMenu), l = m.useRef(null), c = ne(t, l);
12933
- return /* @__PURE__ */ w(_n.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ w(Jt, { present: o || i.open, children: /* @__PURE__ */ w(_n.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ w(
12946
+ return /* @__PURE__ */ w(In.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ w(en, { present: o || i.open, children: /* @__PURE__ */ w(In.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ w(
12934
12947
  xs,
12935
12948
  {
12936
12949
  id: a.contentId,
@@ -13003,7 +13016,7 @@ function ib(e, t) {
13003
13016
  const n = { x: e.clientX, y: e.clientY };
13004
13017
  return rb(n, t);
13005
13018
  }
13006
- function In(e) {
13019
+ function Dn(e) {
13007
13020
  return (t) => t.pointerType === "mouse" ? e(t) : void 0;
13008
13021
  }
13009
13022
  var sb = bd, ab = vs, lb = Rd, cb = Pd, ub = Ss, db = Md, fb = Xo, pb = Ad, hb = _d, gb = Dd, mb = Vd, vb = Fd, yb = Ld, wb = kd, xb = Bd, Yo = "DropdownMenu", [Sb, uR] = Mt(
@@ -13018,7 +13031,7 @@ var sb = bd, ab = vs, lb = Rd, cb = Pd, ub = Ss, db = Md, fb = Xo, pb = Ad, hb =
13018
13031
  defaultOpen: i,
13019
13032
  onOpenChange: s,
13020
13033
  modal: a = !0
13021
- } = e, l = fe(t), c = m.useRef(null), [u, d] = Tn({
13034
+ } = e, l = fe(t), c = m.useRef(null), [u, d] = An({
13022
13035
  prop: r,
13023
13036
  defaultProp: i ?? !1,
13024
13037
  onChange: s,
@@ -13316,7 +13329,7 @@ function Jd({
13316
13329
  /* @__PURE__ */ A("div", { className: "relative flex-1 min-w-[180px] max-w-sm", children: [
13317
13330
  /* @__PURE__ */ w(pu, { className: "absolute left-2.5 top-2.5 h-4 w-4 text-muted-foreground" }),
13318
13331
  r ? /* @__PURE__ */ w(
13319
- Sn,
13332
+ bn,
13320
13333
  {
13321
13334
  placeholder: n,
13322
13335
  value: f,
@@ -13326,7 +13339,7 @@ function Jd({
13326
13339
  className: "pl-9 h-9"
13327
13340
  }
13328
13341
  ) : o ? /* @__PURE__ */ w(
13329
- Sn,
13342
+ bn,
13330
13343
  {
13331
13344
  placeholder: n,
13332
13345
  value: ((y = g.getColumn(o)) == null ? void 0 : y.getFilterValue()) ?? "",
@@ -13337,7 +13350,7 @@ function Jd({
13337
13350
  className: "pl-9 h-9"
13338
13351
  }
13339
13352
  ) : /* @__PURE__ */ w(
13340
- Sn,
13353
+ bn,
13341
13354
  {
13342
13355
  placeholder: n,
13343
13356
  value: f,
@@ -13742,10 +13755,10 @@ var ef = Object.freeze({
13742
13755
  )
13743
13756
  );
13744
13757
  vC.displayName = mC;
13745
- var yC = [" ", "Enter", "ArrowUp", "ArrowDown"], wC = [" ", "Enter"], bt = "Select", [Qo, Jo, xC] = rs(bt), [en, dR] = Mt(bt, [
13758
+ var yC = [" ", "Enter", "ArrowUp", "ArrowDown"], wC = [" ", "Enter"], bt = "Select", [Qo, Jo, xC] = rs(bt), [tn, dR] = Mt(bt, [
13746
13759
  xC,
13747
13760
  Uo
13748
- ]), er = Uo(), [SC, ft] = en(bt), [bC, CC] = en(bt), tf = (e) => {
13761
+ ]), er = Uo(), [SC, ft] = tn(bt), [bC, CC] = tn(bt), tf = (e) => {
13749
13762
  const {
13750
13763
  __scopeSelect: t,
13751
13764
  children: n,
@@ -13761,12 +13774,12 @@ var yC = [" ", "Enter", "ArrowUp", "ArrowDown"], wC = [" ", "Enter"], bt = "Sele
13761
13774
  disabled: f,
13762
13775
  required: p,
13763
13776
  form: g
13764
- } = e, h = er(t), [y, v] = m.useState(null), [x, S] = m.useState(null), [C, b] = m.useState(!1), M = Bo(c), [R, P] = Tn({
13777
+ } = e, h = er(t), [y, v] = m.useState(null), [x, S] = m.useState(null), [C, b] = m.useState(!1), M = Bo(c), [R, P] = An({
13765
13778
  prop: o,
13766
13779
  defaultProp: r ?? !1,
13767
13780
  onChange: i,
13768
13781
  caller: bt
13769
- }), [_, D] = Tn({
13782
+ }), [_, D] = An({
13770
13783
  prop: s,
13771
13784
  defaultProp: a,
13772
13785
  onChange: l,
@@ -13887,7 +13900,7 @@ var rf = "SelectValue", sf = m.forwardRef(
13887
13900
  ...a,
13888
13901
  ref: d,
13889
13902
  style: { pointerEvents: "none" },
13890
- children: Tf(l.value) ? /* @__PURE__ */ w(Dn, { children: s }) : i
13903
+ children: Tf(l.value) ? /* @__PURE__ */ w(Wt, { children: s }) : i
13891
13904
  }
13892
13905
  );
13893
13906
  }
@@ -13918,7 +13931,7 @@ var Ct = "SelectContent", cf = m.forwardRef(
13918
13931
  }
13919
13932
  );
13920
13933
  cf.displayName = Ct;
13921
- var Ee = 10, [uf, pt] = en(Ct), MC = "SelectContentImpl", TC = /* @__PURE__ */ zt("SelectContent.RemoveScroll"), df = m.forwardRef(
13934
+ var Ee = 10, [uf, pt] = tn(Ct), MC = "SelectContentImpl", TC = /* @__PURE__ */ zt("SelectContent.RemoveScroll"), df = m.forwardRef(
13922
13935
  (e, t) => {
13923
13936
  const {
13924
13937
  __scopeSelect: n,
@@ -14094,22 +14107,22 @@ var AC = "SelectItemAlignedPosition", ff = m.forwardRef((e, t) => {
14094
14107
  if (i.trigger && i.valueNode && a && c && h && y && v) {
14095
14108
  const R = i.trigger.getBoundingClientRect(), P = c.getBoundingClientRect(), _ = i.valueNode.getBoundingClientRect(), D = v.getBoundingClientRect();
14096
14109
  if (i.dir !== "rtl") {
14097
- const Z = D.left - P.left, Q = _.left - Z, me = R.left - Q, Ve = R.width + me, tn = Math.max(Ve, P.width), nn = window.innerWidth - Ee, on = Ml(Q, [
14110
+ const Z = D.left - P.left, Q = _.left - Z, me = R.left - Q, Ve = R.width + me, nn = Math.max(Ve, P.width), on = window.innerWidth - Ee, rn = Ml(Q, [
14098
14111
  Ee,
14099
14112
  // Prevents the content from going off the starting edge of the
14100
14113
  // viewport. It may still go off the ending edge, but this can be
14101
14114
  // controlled by the user since they may want to manage overflow in a
14102
14115
  // specific way.
14103
14116
  // https://github.com/radix-ui/primitives/issues/2049
14104
- Math.max(Ee, nn - tn)
14117
+ Math.max(Ee, on - nn)
14105
14118
  ]);
14106
- a.style.minWidth = Ve + "px", a.style.left = on + "px";
14119
+ a.style.minWidth = Ve + "px", a.style.left = rn + "px";
14107
14120
  } else {
14108
- const Z = P.right - D.right, Q = window.innerWidth - _.right - Z, me = window.innerWidth - R.right - Q, Ve = R.width + me, tn = Math.max(Ve, P.width), nn = window.innerWidth - Ee, on = Ml(Q, [
14121
+ const Z = P.right - D.right, Q = window.innerWidth - _.right - Z, me = window.innerWidth - R.right - Q, Ve = R.width + me, nn = Math.max(Ve, P.width), on = window.innerWidth - Ee, rn = Ml(Q, [
14109
14122
  Ee,
14110
- Math.max(Ee, nn - tn)
14123
+ Math.max(Ee, on - nn)
14111
14124
  ]);
14112
- a.style.minWidth = Ve + "px", a.style.right = on + "px";
14125
+ a.style.minWidth = Ve + "px", a.style.right = rn + "px";
14113
14126
  }
14114
14127
  const B = f(), I = window.innerHeight - Ee * 2, H = h.scrollHeight, z = window.getComputedStyle(c), K = parseInt(z.borderTopWidth, 10), L = parseInt(z.paddingTop, 10), V = parseInt(z.borderBottomWidth, 10), E = parseInt(z.paddingBottom, 10), T = K + L + H + E + V, j = Math.min(y.offsetHeight * 5, T), q = window.getComputedStyle(h), pe = parseInt(q.paddingTop, 10), je = parseInt(q.paddingBottom, 10), be = R.top + R.height / 2 - Ee, Ue = I - be, ge = y.offsetHeight / 2, F = y.offsetTop + ge, Y = K + L + F, J = T - Y;
14115
14128
  if (Y <= be) {
@@ -14223,10 +14236,10 @@ var EC = "SelectPopperPosition", ui = m.forwardRef((e, t) => {
14223
14236
  );
14224
14237
  });
14225
14238
  ui.displayName = EC;
14226
- var [_C, Rs] = en(Ct, {}), di = "SelectViewport", pf = m.forwardRef(
14239
+ var [_C, Rs] = tn(Ct, {}), di = "SelectViewport", pf = m.forwardRef(
14227
14240
  (e, t) => {
14228
14241
  const { __scopeSelect: n, nonce: o, ...r } = e, i = pt(di, n), s = Rs(di, n), a = ne(t, i.onViewportChange), l = m.useRef(0);
14229
- return /* @__PURE__ */ A(Dn, { children: [
14242
+ return /* @__PURE__ */ A(Wt, { children: [
14230
14243
  /* @__PURE__ */ w(
14231
14244
  "style",
14232
14245
  {
@@ -14276,7 +14289,7 @@ var [_C, Rs] = en(Ct, {}), di = "SelectViewport", pf = m.forwardRef(
14276
14289
  }
14277
14290
  );
14278
14291
  pf.displayName = di;
14279
- var hf = "SelectGroup", [IC, DC] = en(hf), NC = m.forwardRef(
14292
+ var hf = "SelectGroup", [IC, DC] = tn(hf), NC = m.forwardRef(
14280
14293
  (e, t) => {
14281
14294
  const { __scopeSelect: n, ...o } = e, r = xt();
14282
14295
  return /* @__PURE__ */ w(IC, { scope: n, id: r, children: /* @__PURE__ */ w(W.div, { role: "group", "aria-labelledby": r, ...o, ref: t }) });
@@ -14290,7 +14303,7 @@ var gf = "SelectLabel", mf = m.forwardRef(
14290
14303
  }
14291
14304
  );
14292
14305
  mf.displayName = gf;
14293
- var Po = "SelectItem", [VC, vf] = en(Po), yf = m.forwardRef(
14306
+ var Po = "SelectItem", [VC, vf] = tn(Po), yf = m.forwardRef(
14294
14307
  (e, t) => {
14295
14308
  const {
14296
14309
  __scopeSelect: n,
@@ -14374,9 +14387,9 @@ var Po = "SelectItem", [VC, vf] = en(Po), yf = m.forwardRef(
14374
14387
  }
14375
14388
  );
14376
14389
  yf.displayName = Po;
14377
- var hn = "SelectItemText", wf = m.forwardRef(
14390
+ var gn = "SelectItemText", wf = m.forwardRef(
14378
14391
  (e, t) => {
14379
- const { __scopeSelect: n, className: o, style: r, ...i } = e, s = ft(hn, n), a = pt(hn, n), l = vf(hn, n), c = CC(hn, n), [u, d] = m.useState(null), f = ne(
14392
+ const { __scopeSelect: n, className: o, style: r, ...i } = e, s = ft(gn, n), a = pt(gn, n), l = vf(gn, n), c = CC(gn, n), [u, d] = m.useState(null), f = ne(
14380
14393
  t,
14381
14394
  (v) => d(v),
14382
14395
  l.onItemTextChange,
@@ -14388,13 +14401,13 @@ var hn = "SelectItemText", wf = m.forwardRef(
14388
14401
  () => /* @__PURE__ */ w("option", { value: l.value, disabled: l.disabled, children: p }, l.value),
14389
14402
  [l.disabled, l.value, p]
14390
14403
  ), { onNativeOptionAdd: h, onNativeOptionRemove: y } = c;
14391
- return de(() => (h(g), () => y(g)), [h, y, g]), /* @__PURE__ */ A(Dn, { children: [
14404
+ return de(() => (h(g), () => y(g)), [h, y, g]), /* @__PURE__ */ A(Wt, { children: [
14392
14405
  /* @__PURE__ */ w(W.span, { id: l.textId, ...i, ref: f }),
14393
14406
  l.isSelected && s.valueNode && !s.valueNodeHasChildren ? Mo.createPortal(i.children, s.valueNode) : null
14394
14407
  ] });
14395
14408
  }
14396
14409
  );
14397
- wf.displayName = hn;
14410
+ wf.displayName = gn;
14398
14411
  var xf = "SelectItemIndicator", Sf = m.forwardRef(
14399
14412
  (e, t) => {
14400
14413
  const { __scopeSelect: n, ...o } = e;
@@ -14626,7 +14639,7 @@ const qC = m.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ w(
14626
14639
  }
14627
14640
  ));
14628
14641
  qC.displayName = Df.displayName;
14629
- const gn = m.forwardRef(({ className: e, children: t, ...n }, o) => /* @__PURE__ */ A(
14642
+ const mn = m.forwardRef(({ className: e, children: t, ...n }, o) => /* @__PURE__ */ A(
14630
14643
  Nf,
14631
14644
  {
14632
14645
  ref: o,
@@ -14641,7 +14654,7 @@ const gn = m.forwardRef(({ className: e, children: t, ...n }, o) => /* @__PURE__
14641
14654
  ]
14642
14655
  }
14643
14656
  ));
14644
- gn.displayName = Nf.displayName;
14657
+ mn.displayName = Nf.displayName;
14645
14658
  const XC = m.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ w(
14646
14659
  Lf,
14647
14660
  {
@@ -14712,7 +14725,7 @@ function YC({ diffs: e }) {
14712
14725
  /* @__PURE__ */ A("div", { className: "relative flex-1 min-w-[180px] max-w-sm", children: [
14713
14726
  /* @__PURE__ */ w(pu, { className: "absolute left-2.5 top-2.5 h-4 w-4 text-muted-foreground" }),
14714
14727
  /* @__PURE__ */ w(
14715
- Sn,
14728
+ bn,
14716
14729
  {
14717
14730
  placeholder: "Filter files...",
14718
14731
  value: t,
@@ -14731,10 +14744,10 @@ function YC({ diffs: e }) {
14731
14744
  children: [
14732
14745
  /* @__PURE__ */ w(Of, { className: "w-[140px] h-9", children: /* @__PURE__ */ w(KC, { placeholder: "Sort by..." }) }),
14733
14746
  /* @__PURE__ */ A(Bf, { children: [
14734
- /* @__PURE__ */ w(gn, { value: "path", children: "Sort by path" }),
14735
- /* @__PURE__ */ w(gn, { value: "additions", children: "Sort by additions" }),
14736
- /* @__PURE__ */ w(gn, { value: "deletions", children: "Sort by deletions" }),
14737
- /* @__PURE__ */ w(gn, { value: "total", children: "Sort by total" })
14747
+ /* @__PURE__ */ w(mn, { value: "path", children: "Sort by path" }),
14748
+ /* @__PURE__ */ w(mn, { value: "additions", children: "Sort by additions" }),
14749
+ /* @__PURE__ */ w(mn, { value: "deletions", children: "Sort by deletions" }),
14750
+ /* @__PURE__ */ w(mn, { value: "total", children: "Sort by total" })
14738
14751
  ] })
14739
14752
  ]
14740
14753
  }
@@ -14833,7 +14846,7 @@ var tr = "Tabs", [JC, fR] = Mt(tr, [
14833
14846
  dir: a,
14834
14847
  activationMode: l = "automatic",
14835
14848
  ...c
14836
- } = e, u = Bo(a), [d, f] = Tn({
14849
+ } = e, u = Bo(a), [d, f] = An({
14837
14850
  prop: o,
14838
14851
  onChange: r,
14839
14852
  defaultProp: i ?? "",
@@ -14934,7 +14947,7 @@ var Kf = "TabsContent", qf = m.forwardRef(
14934
14947
  return m.useEffect(() => {
14935
14948
  const f = requestAnimationFrame(() => d.current = !1);
14936
14949
  return () => cancelAnimationFrame(f);
14937
- }, []), /* @__PURE__ */ w(Jt, { present: r || u, children: ({ present: f }) => /* @__PURE__ */ w(
14950
+ }, []), /* @__PURE__ */ w(en, { present: r || u, children: ({ present: f }) => /* @__PURE__ */ w(
14938
14951
  W.div,
14939
14952
  {
14940
14953
  "data-state": u ? "active" : "inactive",
@@ -15017,23 +15030,33 @@ const uo = m.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ w(
15017
15030
  ));
15018
15031
  uo.displayName = Jf.displayName;
15019
15032
  function pR({ data: e, actions: t }) {
15020
- const n = Object.keys(e.metrics).length > 0, o = e.diffs.length > 0, r = e.diffs.some((i) => !!i.diffText);
15033
+ const n = Object.keys(e.metrics).length > 0, o = e.diffs.length > 0, r = e.diffs.some((c) => !!c.diffText), i = e.stats.filesModified > 0, s = !n && !i, a = [
15034
+ o && "files",
15035
+ n && "metrics",
15036
+ r && "diffs"
15037
+ ].filter(Boolean), l = a[0];
15021
15038
  return /* @__PURE__ */ w("div", { className: "min-h-screen", children: /* @__PURE__ */ A("div", { className: "max-w-[1100px] mx-auto px-6 py-8", children: [
15022
15039
  /* @__PURE__ */ w(Xp, { report: e }),
15023
- /* @__PURE__ */ w(Qp, { stats: e.stats, dryRun: e.dryRun }),
15024
- (n || o) && /* @__PURE__ */ A(nR, { defaultValue: o ? "files" : "metrics", className: "mt-8", children: [
15025
- /* @__PURE__ */ A(ep, { children: [
15026
- o && /* @__PURE__ */ A(co, { value: "files", children: [
15027
- "Files (",
15028
- e.diffs.length,
15029
- ")"
15040
+ s ? /* @__PURE__ */ A("div", { className: "mt-12 flex flex-col items-center text-center py-16", children: [
15041
+ /* @__PURE__ */ w("div", { className: "text-4xl mb-4", children: "" }),
15042
+ /* @__PURE__ */ w("h2", { className: "text-lg font-semibold", children: "No changes needed" }),
15043
+ /* @__PURE__ */ w("p", { className: "text-sm text-muted-foreground mt-2 max-w-md", children: "Running this codemod had no effect on the repository. The code already matches the expected patterns." })
15044
+ ] }) : /* @__PURE__ */ A(Wt, { children: [
15045
+ /* @__PURE__ */ w(Qp, { stats: e.stats, dryRun: e.dryRun }),
15046
+ a.length > 0 && /* @__PURE__ */ A(nR, { defaultValue: l, className: "mt-8", children: [
15047
+ a.length > 1 && /* @__PURE__ */ A(ep, { children: [
15048
+ o && /* @__PURE__ */ A(co, { value: "files", children: [
15049
+ "Files (",
15050
+ e.diffs.length,
15051
+ ")"
15052
+ ] }),
15053
+ n && /* @__PURE__ */ w(co, { value: "metrics", children: "Metrics" }),
15054
+ r && /* @__PURE__ */ w(co, { value: "diffs", children: "Diffs" })
15030
15055
  ] }),
15031
- n && /* @__PURE__ */ w(co, { value: "metrics", children: "Metrics" }),
15032
- r && /* @__PURE__ */ w(co, { value: "diffs", children: "Diffs" })
15033
- ] }),
15034
- o && /* @__PURE__ */ w(uo, { value: "files", children: /* @__PURE__ */ w(sC, { diffs: e.diffs }) }),
15035
- n && /* @__PURE__ */ w(uo, { value: "metrics", children: /* @__PURE__ */ w(iC, { metrics: e.metrics }) }),
15036
- r && /* @__PURE__ */ w(uo, { value: "diffs", children: /* @__PURE__ */ w(YC, { diffs: e.diffs }) })
15056
+ o && /* @__PURE__ */ w(uo, { value: "files", children: /* @__PURE__ */ w(sC, { diffs: e.diffs }) }),
15057
+ n && /* @__PURE__ */ w(uo, { value: "metrics", children: /* @__PURE__ */ w(iC, { metrics: e.metrics }) }),
15058
+ r && /* @__PURE__ */ w(uo, { value: "diffs", children: /* @__PURE__ */ w(YC, { diffs: e.diffs }) })
15059
+ ] })
15037
15060
  ] }),
15038
15061
  /* @__PURE__ */ A("div", { className: "mt-12 pt-6 border-t border-border flex items-center justify-between flex-wrap gap-4", children: [
15039
15062
  t ?? /* @__PURE__ */ w("div", {}),
@@ -15074,13 +15097,13 @@ export {
15074
15097
  tC as DropdownMenuSeparator,
15075
15098
  Zb as DropdownMenuTrigger,
15076
15099
  sC as FileList,
15077
- Sn as Input,
15100
+ bn as Input,
15078
15101
  iC as MetricsSection,
15079
15102
  Xp as ReportHeader,
15080
15103
  pR as ReportViewer,
15081
15104
  WC as Select,
15082
15105
  Bf as SelectContent,
15083
- gn as SelectItem,
15106
+ mn as SelectItem,
15084
15107
  Of as SelectTrigger,
15085
15108
  KC as SelectValue,
15086
15109
  Qp as StatsCards,