@mriqbox/ui-kit 1.0.1 → 1.0.3

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/README.md CHANGED
@@ -1,71 +1,75 @@
1
- # Mri UI
2
-
3
- Biblioteca oficial de componentes de UI para o ecossistema Mri.
4
-
5
- Desenhada para ser moderna, responsiva e com suporte nativo a temas escuros (Dark Mode), utilizando **React**, **Tailwind CSS** e **Radix UI**.
6
-
7
- ## Instalação
8
-
9
- ```bash
10
- pnpm add @mriqbox/ui-kit
11
- # ou
12
- npm install @mriqbox/ui-kit
13
- ```
14
-
15
- ## Configuração
16
-
17
- ### 1. CSS Global
18
-
19
- Adicione o CSS da biblioteca no arquivo de entrada da sua aplicação (ex: `main.tsx` ou `App.tsx`):
20
-
21
- ```tsx
22
- import '@mriqbox/ui-kit/dist/style.css';
23
- ```
24
-
25
- ### 2. Tailwind CSS
26
-
27
- Para que o Tailwind da sua aplicação reconheça as classes da biblioteca, adicione o caminho do pacote ao seu `tailwind.config.js`:
28
-
29
- ```js
30
- module.exports = {
31
- content: [
32
- "./src/**/*.{ts,tsx}",
33
- "./node_modules/@mriqbox/ui-kit/dist/**/*.{js,mjs}"
34
- ],
35
- // ...
36
- }
37
- ```
38
-
39
- ## Uso
40
-
41
- Importe os componentes diretamente do pacote:
42
-
43
- ```tsx
44
- import { Button, Modal } from '@mriqbox/ui-kit';
45
-
46
- function App() {
47
- return (
48
- <div>
49
- <Button variant="primary">Clique Aqui</Button>
50
-
51
- <Modal open={true}>
52
- {/* Conteúdo do Modal */}
53
- </Modal>
54
- </div>
55
- );
56
- }
57
- ```
58
-
59
- ## Documentação
60
-
61
- Para ver todos os componentes disponíveis e suas propriedades, consulte nosso Storybook:
62
-
63
- [Link para o Storybook](https://ui.mriqbox.com.br)
64
-
65
- ## Desenvolvimento
66
-
67
- Para rodar o projeto localmente:
68
-
69
- 1. Clone o repositório.
70
- 2. Instale dependências: `pnpm install`
71
- 3. Inicie o Storybook: `pnpm storybook`
1
+ # Mri UI
2
+
3
+ ![CI](https://github.com/mri-Qbox-Brasil/mri-ui-kit/actions/workflows/ci.yml/badge.svg)
4
+ ![NPM Version](https://img.shields.io/npm/v/@mriqbox/ui-kit)
5
+
6
+ Biblioteca oficial de componentes de UI para o ecossistema Mri.
7
+
8
+ Desenhada para ser moderna, responsiva e com suporte nativo a temas escuros (Dark Mode), utilizando **React**, **Tailwind CSS**, **Radix UI** e seguindo a arquitetura do **shadcn/ui**.
9
+
10
+ ## 🚀 Como usar
11
+
12
+ Você pode utilizar esta biblioteca de duas formas principais:
13
+
14
+ ### 1. Pacote NPM (Uso Tradicional)
15
+ Ideal se você quer apenas usar os componentes prontos e receber atualizações automáticas.
16
+
17
+ ```bash
18
+ pnpm add @mriqbox/ui-kit
19
+ # ou
20
+ npm install @mriqbox/ui-kit
21
+ ```
22
+
23
+ **Uso:**
24
+ ```tsx
25
+ import { Button } from '@mriqbox/ui-kit';
26
+
27
+ export default function MyComponent() {
28
+ return <Button>Clique aqui</Button>;
29
+ }
30
+ ```
31
+
32
+ ### 2. Shadcn CLI / Copy & Paste (Controle Total)
33
+ Ideal se você quer ter o código dos componentes no seu projeto para customizá-los livremente ("Own your UI").
34
+
35
+ Este projeto contém um arquivo `components.json` na raiz, permitindo o uso da CLI do shadcn.
36
+
37
+ **Adicionar componente via CLI:**
38
+ No diretório raiz deste projeto:
39
+ ```bash
40
+ npx shadcn-ui@latest add button
41
+ ```
42
+ Isso irá baixar o código do componente `Button` para `src/components/ui/button.tsx`.
43
+
44
+ ## ⚙️ Configuração (Para uso via NPM)
45
+
46
+ Se você instalou via NPM, precisa configurar seu projeto para carregar os estilos corretamente.
47
+
48
+ ### 1. Importar CSS Global
49
+ Adicione no seu arquivo de entrada (ex: `main.tsx` ou `App.tsx`):
50
+ ```tsx
51
+ import '@mriqbox/ui-kit/dist/style.css';
52
+ ```
53
+
54
+ ### 2. Configurar Tailwind CSS
55
+ No seu `tailwind.config.js`, adicione o caminho da biblioteca para o `content`:
56
+
57
+ ```js
58
+ module.exports = {
59
+ content: [
60
+ "./src/**/*.{ts,tsx}",
61
+ "./node_modules/@mriqbox/ui-kit/dist/**/*.{js,mjs}" // <--- Adicione esta linha
62
+ ],
63
+ // ...
64
+ }
65
+ ```
66
+
67
+ ## 📚 Documentação
68
+ Para ver todos os componentes disponíveis e suas propriedades, consulte nosso Storybook:
69
+ [**Acessar Storybook**](https://ui.mriqbox.com.br)
70
+
71
+ ## 🛠️ Desenvolvimento Local
72
+
73
+ 1. Clone o repositório.
74
+ 2. Instale dependências: `pnpm install`
75
+ 3. Inicie o Storybook: `pnpm storybook`
@@ -1,9 +1,7 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
+ import { badgeVariants } from './badge-variants';
2
3
  import * as React from "react";
3
- declare const badgeVariants: (props?: ({
4
- variant?: "default" | "destructive" | "outline" | "secondary" | null | undefined;
5
- } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
4
  export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
7
5
  }
8
6
  declare function Badge({ className, variant, ...props }: BadgeProps): import("react/jsx-runtime").JSX.Element;
9
- export { Badge, badgeVariants };
7
+ export { Badge };
@@ -1,11 +1,7 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
+ import { buttonVariants } from './button-variants';
2
3
  import * as React from "react";
3
- declare const buttonVariants: (props?: ({
4
- variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
5
- size?: "default" | "sm" | "lg" | "icon" | null | undefined;
6
- } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
4
  export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
8
5
  asChild?: boolean;
9
6
  }
10
- declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
11
- export { Button, buttonVariants };
7
+ export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,3 @@
1
+ export declare const badgeVariants: (props?: ({
2
+ variant?: "default" | "destructive" | "outline" | "secondary" | null | undefined;
3
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -0,0 +1,4 @@
1
+ export declare const buttonVariants: (props?: ({
2
+ variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
3
+ size?: "default" | "sm" | "lg" | "icon" | null | undefined;
4
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
package/dist/index.d.ts CHANGED
@@ -13,3 +13,5 @@ export * from './components/ui/SelectSearch';
13
13
  export * from './components/ui/Table';
14
14
  export * from './lib/utils';
15
15
  export * from './components/ui/Sidebar';
16
+ export * from './components/ui/button-variants';
17
+ export * from './components/ui/badge-variants';
package/dist/index.es.js CHANGED
@@ -748,15 +748,39 @@ const an = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, ln = Vn, U
748
748
  ] : c;
749
749
  }, []);
750
750
  return ln(e, a, u, r == null ? void 0 : r.class, r == null ? void 0 : r.className);
751
- }, Cr = "-", Ji = (e) => {
752
- const t = es(e), {
751
+ }, Ji = Un(
752
+ "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
753
+ {
754
+ variants: {
755
+ variant: {
756
+ default: "bg-primary text-primary-foreground shadow hover:bg-primary/90",
757
+ destructive: "bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",
758
+ outline: "border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",
759
+ secondary: "bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",
760
+ ghost: "hover:bg-accent hover:text-accent-foreground",
761
+ link: "text-primary underline-offset-4 hover:underline"
762
+ },
763
+ size: {
764
+ default: "h-9 px-4 py-2",
765
+ sm: "h-8 rounded-md px-3 text-xs",
766
+ lg: "h-10 rounded-md px-8",
767
+ icon: "h-9 w-9"
768
+ }
769
+ },
770
+ defaultVariants: {
771
+ variant: "default",
772
+ size: "default"
773
+ }
774
+ }
775
+ ), Cr = "-", Qi = (e) => {
776
+ const t = ts(e), {
753
777
  conflictingClassGroups: r,
754
778
  conflictingClassGroupModifiers: n
755
779
  } = e;
756
780
  return {
757
781
  getClassGroupId: (a) => {
758
782
  const s = a.split(Cr);
759
- return s[0] === "" && s.length !== 1 && s.shift(), Hn(s, t) || Qi(a);
783
+ return s[0] === "" && s.length !== 1 && s.shift(), Hn(s, t) || es(a);
760
784
  },
761
785
  getConflictingClassGroupIds: (a, s) => {
762
786
  const u = r[a] || [];
@@ -776,13 +800,13 @@ const an = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, ln = Vn, U
776
800
  return (a = t.validators.find(({
777
801
  validator: s
778
802
  }) => s(i))) == null ? void 0 : a.classGroupId;
779
- }, cn = /^\[(.+)\]$/, Qi = (e) => {
803
+ }, cn = /^\[(.+)\]$/, es = (e) => {
780
804
  if (cn.test(e)) {
781
805
  const t = cn.exec(e)[1], r = t == null ? void 0 : t.substring(0, t.indexOf(":"));
782
806
  if (r)
783
807
  return "arbitrary.." + r;
784
808
  }
785
- }, es = (e) => {
809
+ }, ts = (e) => {
786
810
  const {
787
811
  theme: t,
788
812
  prefix: r
@@ -790,7 +814,7 @@ const an = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, ln = Vn, U
790
814
  nextPart: /* @__PURE__ */ new Map(),
791
815
  validators: []
792
816
  };
793
- return rs(Object.entries(e.classGroups), r).forEach(([i, a]) => {
817
+ return ns(Object.entries(e.classGroups), r).forEach(([i, a]) => {
794
818
  mr(a, n, i, t);
795
819
  }), n;
796
820
  }, mr = (e, t, r, n) => {
@@ -801,7 +825,7 @@ const an = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, ln = Vn, U
801
825
  return;
802
826
  }
803
827
  if (typeof o == "function") {
804
- if (ts(o)) {
828
+ if (rs(o)) {
805
829
  mr(o(n), t, r, n);
806
830
  return;
807
831
  }
@@ -823,10 +847,10 @@ const an = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, ln = Vn, U
823
847
  validators: []
824
848
  }), r = r.nextPart.get(n);
825
849
  }), r;
826
- }, ts = (e) => e.isThemeGetter, rs = (e, t) => t ? e.map(([r, n]) => {
850
+ }, rs = (e) => e.isThemeGetter, ns = (e, t) => t ? e.map(([r, n]) => {
827
851
  const o = n.map((i) => typeof i == "string" ? t + i : typeof i == "object" ? Object.fromEntries(Object.entries(i).map(([a, s]) => [t + a, s])) : i);
828
852
  return [r, o];
829
- }) : e, ns = (e) => {
853
+ }) : e, os = (e) => {
830
854
  if (e < 1)
831
855
  return {
832
856
  get: () => {
@@ -850,7 +874,7 @@ const an = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, ln = Vn, U
850
874
  r.has(i) ? r.set(i, a) : o(i, a);
851
875
  }
852
876
  };
853
- }, Gn = "!", os = (e) => {
877
+ }, Gn = "!", is = (e) => {
854
878
  const {
855
879
  separator: t,
856
880
  experimentalParseClassName: r
@@ -883,7 +907,7 @@ const an = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, ln = Vn, U
883
907
  className: s,
884
908
  parseClassName: a
885
909
  }) : a;
886
- }, is = (e) => {
910
+ }, ss = (e) => {
887
911
  if (e.length <= 1)
888
912
  return e;
889
913
  const t = [];
@@ -891,16 +915,16 @@ const an = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, ln = Vn, U
891
915
  return e.forEach((n) => {
892
916
  n[0] === "[" ? (t.push(...r.sort(), n), r = []) : r.push(n);
893
917
  }), t.push(...r.sort()), t;
894
- }, ss = (e) => ({
895
- cache: ns(e.cacheSize),
896
- parseClassName: os(e),
897
- ...Ji(e)
898
- }), as = /\s+/, ls = (e, t) => {
918
+ }, as = (e) => ({
919
+ cache: os(e.cacheSize),
920
+ parseClassName: is(e),
921
+ ...Qi(e)
922
+ }), ls = /\s+/, cs = (e, t) => {
899
923
  const {
900
924
  parseClassName: r,
901
925
  getClassGroupId: n,
902
926
  getConflictingClassGroupIds: o
903
- } = t, i = [], a = e.trim().split(as);
927
+ } = t, i = [], a = e.trim().split(ls);
904
928
  let s = "";
905
929
  for (let u = a.length - 1; u >= 0; u -= 1) {
906
930
  const c = a[u], {
@@ -921,7 +945,7 @@ const an = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, ln = Vn, U
921
945
  }
922
946
  y = !1;
923
947
  }
924
- const b = is(d).join(":"), x = p ? b + Gn : b, w = x + g;
948
+ const b = ss(d).join(":"), x = p ? b + Gn : b, w = x + g;
925
949
  if (i.includes(w))
926
950
  continue;
927
951
  i.push(w);
@@ -934,7 +958,7 @@ const an = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, ln = Vn, U
934
958
  }
935
959
  return s;
936
960
  };
937
- function cs() {
961
+ function us() {
938
962
  let e = 0, t, r, n = "";
939
963
  for (; e < arguments.length; )
940
964
  (t = arguments[e++]) && (r = Yn(t)) && (n && (n += " "), n += r);
@@ -948,35 +972,35 @@ const Yn = (e) => {
948
972
  e[n] && (t = Yn(e[n])) && (r && (r += " "), r += t);
949
973
  return r;
950
974
  };
951
- function us(e, ...t) {
975
+ function ds(e, ...t) {
952
976
  let r, n, o, i = a;
953
977
  function a(u) {
954
978
  const c = t.reduce((d, p) => p(d), e());
955
- return r = ss(c), n = r.cache.get, o = r.cache.set, i = s, s(u);
979
+ return r = as(c), n = r.cache.get, o = r.cache.set, i = s, s(u);
956
980
  }
957
981
  function s(u) {
958
982
  const c = n(u);
959
983
  if (c)
960
984
  return c;
961
- const d = ls(u, r);
985
+ const d = cs(u, r);
962
986
  return o(u, d), d;
963
987
  }
964
988
  return function() {
965
- return i(cs.apply(null, arguments));
989
+ return i(us.apply(null, arguments));
966
990
  };
967
991
  }
968
992
  const ee = (e) => {
969
993
  const t = (r) => r[e] || [];
970
994
  return t.isThemeGetter = !0, t;
971
- }, Kn = /^\[(?:([a-z-]+):)?(.+)\]$/i, ds = /^\d+\/\d+$/, fs = /* @__PURE__ */ new Set(["px", "full", "screen"]), ps = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, ms = /\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$/, hs = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, gs = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, vs = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Pe = (e) => et(e) || fs.has(e) || ds.test(e), Oe = (e) => st(e, "length", Ss), et = (e) => !!e && !Number.isNaN(Number(e)), er = (e) => st(e, "number", et), mt = (e) => !!e && Number.isInteger(Number(e)), bs = (e) => e.endsWith("%") && et(e.slice(0, -1)), L = (e) => Kn.test(e), je = (e) => ps.test(e), ys = /* @__PURE__ */ new Set(["length", "size", "percentage"]), xs = (e) => st(e, ys, Xn), ws = (e) => st(e, "position", Xn), Cs = /* @__PURE__ */ new Set(["image", "url"]), Es = (e) => st(e, Cs, Ps), Rs = (e) => st(e, "", ks), ht = () => !0, st = (e, t, r) => {
995
+ }, Kn = /^\[(?:([a-z-]+):)?(.+)\]$/i, fs = /^\d+\/\d+$/, ps = /* @__PURE__ */ new Set(["px", "full", "screen"]), ms = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, hs = /\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$/, gs = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, vs = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, bs = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Pe = (e) => et(e) || ps.has(e) || fs.test(e), Oe = (e) => st(e, "length", ks), et = (e) => !!e && !Number.isNaN(Number(e)), er = (e) => st(e, "number", et), mt = (e) => !!e && Number.isInteger(Number(e)), ys = (e) => e.endsWith("%") && et(e.slice(0, -1)), L = (e) => Kn.test(e), je = (e) => ms.test(e), xs = /* @__PURE__ */ new Set(["length", "size", "percentage"]), ws = (e) => st(e, xs, Xn), Cs = (e) => st(e, "position", Xn), Es = /* @__PURE__ */ new Set(["image", "url"]), Rs = (e) => st(e, Es, As), Ss = (e) => st(e, "", Ps), ht = () => !0, st = (e, t, r) => {
972
996
  const n = Kn.exec(e);
973
997
  return n ? n[1] ? typeof t == "string" ? n[1] === t : t.has(n[1]) : r(n[2]) : !1;
974
- }, Ss = (e) => (
998
+ }, ks = (e) => (
975
999
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
976
1000
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
977
1001
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
978
- ms.test(e) && !hs.test(e)
979
- ), Xn = () => !1, ks = (e) => gs.test(e), Ps = (e) => vs.test(e), As = () => {
1002
+ hs.test(e) && !gs.test(e)
1003
+ ), Xn = () => !1, Ps = (e) => vs.test(e), As = (e) => bs.test(e), Ns = () => {
980
1004
  const e = ee("colors"), t = ee("spacing"), r = ee("blur"), n = ee("brightness"), o = ee("borderColor"), i = ee("borderRadius"), a = ee("borderSpacing"), s = ee("borderWidth"), u = ee("contrast"), c = ee("grayscale"), d = ee("hueRotate"), p = ee("invert"), h = ee("gap"), v = ee("gradientColorStops"), y = ee("gradientColorStopPositions"), g = ee("inset"), b = ee("margin"), x = ee("opacity"), w = ee("padding"), P = ee("saturate"), R = ee("scale"), S = ee("sepia"), N = ee("skew"), k = ee("space"), W = ee("translate"), H = () => ["auto", "contain", "none"], $ = () => ["auto", "hidden", "clip", "visible", "scroll"], Y = () => ["auto", L, t], j = () => [L, t], B = () => ["", Pe, Oe], D = () => ["auto", et, L], Z = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], G = () => ["solid", "dashed", "dotted", "double", "none"], q = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], M = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], J = () => ["", "0", L], se = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], oe = () => [et, L];
981
1005
  return {
982
1006
  cacheSize: 500,
@@ -996,7 +1020,7 @@ const ee = (e) => {
996
1020
  invert: J(),
997
1021
  gap: j(),
998
1022
  gradientColorStops: [e],
999
- gradientColorStopPositions: [bs, Oe],
1023
+ gradientColorStopPositions: [ys, Oe],
1000
1024
  inset: Y(),
1001
1025
  margin: Y(),
1002
1026
  opacity: oe(),
@@ -1909,7 +1933,7 @@ const ee = (e) => {
1909
1933
  * @see https://tailwindcss.com/docs/background-position
1910
1934
  */
1911
1935
  "bg-position": [{
1912
- bg: [...Z(), ws]
1936
+ bg: [...Z(), Cs]
1913
1937
  }],
1914
1938
  /**
1915
1939
  * Background Repeat
@@ -1925,7 +1949,7 @@ const ee = (e) => {
1925
1949
  * @see https://tailwindcss.com/docs/background-size
1926
1950
  */
1927
1951
  "bg-size": [{
1928
- bg: ["auto", "cover", "contain", xs]
1952
+ bg: ["auto", "cover", "contain", ws]
1929
1953
  }],
1930
1954
  /**
1931
1955
  * Background Image
@@ -1934,7 +1958,7 @@ const ee = (e) => {
1934
1958
  "bg-image": [{
1935
1959
  bg: ["none", {
1936
1960
  "gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
1937
- }, Es]
1961
+ }, Rs]
1938
1962
  }],
1939
1963
  /**
1940
1964
  * Background Color
@@ -2350,7 +2374,7 @@ const ee = (e) => {
2350
2374
  * @see https://tailwindcss.com/docs/box-shadow
2351
2375
  */
2352
2376
  shadow: [{
2353
- shadow: ["", "inner", "none", je, Rs]
2377
+ shadow: ["", "inner", "none", je, Ss]
2354
2378
  }],
2355
2379
  /**
2356
2380
  * Box Shadow Color
@@ -3005,41 +3029,17 @@ const ee = (e) => {
3005
3029
  "font-size": ["leading"]
3006
3030
  }
3007
3031
  };
3008
- }, Ns = /* @__PURE__ */ us(As);
3032
+ }, Os = /* @__PURE__ */ ds(Ns);
3009
3033
  function V(...e) {
3010
- return Ns(Vn(e));
3034
+ return Os(Vn(e));
3011
3035
  }
3012
- const Os = Un(
3013
- "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
3014
- {
3015
- variants: {
3016
- variant: {
3017
- default: "bg-primary text-primary-foreground shadow hover:bg-primary/90",
3018
- destructive: "bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",
3019
- outline: "border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",
3020
- secondary: "bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",
3021
- ghost: "hover:bg-accent hover:text-accent-foreground",
3022
- link: "text-primary underline-offset-4 hover:underline"
3023
- },
3024
- size: {
3025
- default: "h-9 px-4 py-2",
3026
- sm: "h-8 rounded-md px-3 text-xs",
3027
- lg: "h-10 rounded-md px-8",
3028
- icon: "h-9 w-9"
3029
- }
3030
- },
3031
- defaultVariants: {
3032
- variant: "default",
3033
- size: "default"
3034
- }
3035
- }
3036
- ), Er = l.forwardRef(
3036
+ const Er = l.forwardRef(
3037
3037
  ({ className: e, variant: t, size: r, asChild: n = !1, ...o }, i) => {
3038
3038
  const a = n ? Gi : "button";
3039
3039
  return /* @__PURE__ */ m.jsx(
3040
3040
  a,
3041
3041
  {
3042
- className: V(Os({ variant: t, size: r, className: e })),
3042
+ className: V(Ji({ variant: t, size: r, className: e })),
3043
3043
  ref: i,
3044
3044
  ...o
3045
3045
  }
@@ -4957,7 +4957,7 @@ ec.displayName = "CommandShortcut";
4957
4957
  function tc({ children: e, onClose: t, className: r }) {
4958
4958
  return rn(() => {
4959
4959
  function n(o) {
4960
- (o.key === "Escape" || o.key === "Esc") && t && t();
4960
+ (o.key === "Escape" || o.key === "Esc") && (t == null || t());
4961
4961
  }
4962
4962
  return window.addEventListener("keydown", n), () => window.removeEventListener("keydown", n);
4963
4963
  }, [t]), rn(() => {
@@ -7055,6 +7055,6 @@ export {
7055
7055
  nd as VerifyIcon,
7056
7056
  ad as WarnIcon,
7057
7057
  js as badgeVariants,
7058
- Os as buttonVariants,
7058
+ Ji as buttonVariants,
7059
7059
  V as cn
7060
7060
  };
package/dist/index.umd.js CHANGED
@@ -27,7 +27,7 @@ Check the top-level render call using <`+A+">.")}return C}}function Di(f,C){{if(
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,qr,Ye,od,Ye),Li[Ye+qr]=!0}}return f===n?Qu(ae):Ju(ae),ae}}function ed(f,C,A){return Fi(f,C,A,!0)}function td(f,C,A){return Fi(f,C,A,!1)}var rd=td,nd=ed;mt.Fragment=n,mt.jsx=rd,mt.jsxs=nd}()),mt}process.env.NODE_ENV==="production"?Jt.exports=Wi():Jt.exports=$i();var m=Jt.exports;function rn(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Te(...e){return t=>{let r=!1;const n=e.map(o=>{const i=rn(o,t);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let o=0;o<n.length;o++){const i=n[o];typeof i=="function"?i():rn(e[o],null)}}}}function be(...e){return l.useCallback(Te(...e),e)}var Bi=Symbol.for("react.lazy"),Rt=l[" use ".trim().toString()];function zi(e){return typeof e=="object"&&e!==null&&"then"in e}function nn(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Bi&&"_payload"in e&&zi(e._payload)}function on(e){const t=Hi(e),r=l.forwardRef((n,o)=>{let{children:i,...s}=n;nn(i)&&typeof Rt=="function"&&(i=Rt(i._payload));const a=l.Children.toArray(i),u=a.find(Gi);if(u){const c=u.props.children,d=a.map(p=>p===u?l.Children.count(c)>1?l.Children.only(null):l.isValidElement(c)?c.props.children:null:p);return m.jsx(t,{...s,ref:o,children:l.isValidElement(c)?l.cloneElement(c,void 0,d):null})}return m.jsx(t,{...s,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}var Vi=on("Slot");function Hi(e){const t=l.forwardRef((r,n)=>{let{children:o,...i}=r;if(nn(o)&&typeof Rt=="function"&&(o=Rt(o._payload)),l.isValidElement(o)){const s=Ki(o),a=Yi(i,o.props);return o.type!==l.Fragment&&(a.ref=n?Te(n,s):s),l.cloneElement(o,a)}return l.Children.count(o)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ui=Symbol("radix.slottable");function Gi(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ui}function Yi(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...a)=>{const u=i(...a);return o(...a),u}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function Ki(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function an(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=an(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function sn(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=an(e))&&(n&&(n+=" "),n+=t);return n}const ln=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,cn=sn,un=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return cn(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(c=>{const d=r==null?void 0:r[c],p=i==null?void 0:i[c];if(d===null)return null;const h=ln(d)||ln(p);return o[c][h]}),a=r&&Object.entries(r).reduce((c,d)=>{let[p,h]=d;return h===void 0||(c[p]=h),c},{}),u=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((c,d)=>{let{class:p,className:h,...v}=d;return Object.entries(v).every(y=>{let[g,b]=y;return Array.isArray(b)?b.includes({...i,...a}[g]):{...i,...a}[g]===b})?[...c,p,h]:c},[]);return cn(e,s,u,r==null?void 0:r.class,r==null?void 0:r.className)},Qt="-",Xi=e=>{const t=Zi(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{const a=s.split(Qt);return a[0]===""&&a.length!==1&&a.shift(),dn(a,t)||qi(s)},getConflictingClassGroupIds:(s,a)=>{const u=r[s]||[];return a&&n[s]?[...u,...n[s]]:u}}},dn=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?dn(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(Qt);return(s=t.validators.find(({validator:a})=>a(i)))==null?void 0:s.classGroupId},fn=/^\[(.+)\]$/,qi=e=>{if(fn.test(e)){const t=fn.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Zi=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return Qi(Object.entries(e.classGroups),r).forEach(([i,s])=>{er(s,n,i,t)}),n},er=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:pn(t,o);i.classGroupId=r;return}if(typeof o=="function"){if(Ji(o)){er(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([i,s])=>{er(s,pn(t,i),r,n)})})},pn=(e,t)=>{let r=e;return t.split(Qt).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},Ji=e=>e.isThemeGetter,Qi=(e,t)=>t?e.map(([r,n])=>{const o=n.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([s,a])=>[t+s,a])):i);return[r,o]}):e,ea=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(i,s)=>{r.set(i,s),t++,t>e&&(t=0,n=r,r=new Map)};return{get(i){let s=r.get(i);if(s!==void 0)return s;if((s=n.get(i))!==void 0)return o(i,s),s},set(i,s){r.has(i)?r.set(i,s):o(i,s)}}},mn="!",ta=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,o=t[0],i=t.length,s=a=>{const u=[];let c=0,d=0,p;for(let b=0;b<a.length;b++){let w=a[b];if(c===0){if(w===o&&(n||a.slice(b,b+i)===t)){u.push(a.slice(d,b)),d=b+i;continue}if(w==="/"){p=b;continue}}w==="["?c++:w==="]"&&c--}const h=u.length===0?a:a.substring(d),v=h.startsWith(mn),y=v?h.substring(1):h,g=p&&p>d?p-d:void 0;return{modifiers:u,hasImportantModifier:v,baseClassName:y,maybePostfixModifierPosition:g}};return r?a=>r({className:a,parseClassName:s}):s},ra=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},na=e=>({cache:ea(e.cacheSize),parseClassName:ta(e),...Xi(e)}),oa=/\s+/,ia=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o}=t,i=[],s=e.trim().split(oa);let a="";for(let u=s.length-1;u>=0;u-=1){const c=s[u],{modifiers:d,hasImportantModifier:p,baseClassName:h,maybePostfixModifierPosition:v}=r(c);let y=!!v,g=n(y?h.substring(0,v):h);if(!g){if(!y){a=c+(a.length>0?" "+a:a);continue}if(g=n(h),!g){a=c+(a.length>0?" "+a:a);continue}y=!1}const b=ra(d).join(":"),w=p?b+mn:b,x=w+g;if(i.includes(x))continue;i.push(x);const P=o(g,y);for(let R=0;R<P.length;++R){const S=P[R];i.push(w+S)}a=c+(a.length>0?" "+a:a)}return a};function aa(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=hn(t))&&(n&&(n+=" "),n+=r);return n}const hn=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=hn(e[n]))&&(r&&(r+=" "),r+=t);return r};function sa(e,...t){let r,n,o,i=s;function s(u){const c=t.reduce((d,p)=>p(d),e());return r=na(c),n=r.cache.get,o=r.cache.set,i=a,a(u)}function a(u){const c=n(u);if(c)return c;const d=ia(u,r);return o(u,d),d}return function(){return i(aa.apply(null,arguments))}}const te=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},gn=/^\[(?:([a-z-]+):)?(.+)\]$/i,la=/^\d+\/\d+$/,ca=new Set(["px","full","screen"]),ua=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,da=/\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$/,fa=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,pa=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ma=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ae=e=>Ke(e)||ca.has(e)||la.test(e),_e=e=>Xe(e,"length",Ca),Ke=e=>!!e&&!Number.isNaN(Number(e)),tr=e=>Xe(e,"number",Ke),ht=e=>!!e&&Number.isInteger(Number(e)),ha=e=>e.endsWith("%")&&Ke(e.slice(0,-1)),I=e=>gn.test(e),Me=e=>ua.test(e),ga=new Set(["length","size","percentage"]),va=e=>Xe(e,ga,vn),ba=e=>Xe(e,"position",vn),ya=new Set(["image","url"]),wa=e=>Xe(e,ya,Ra),xa=e=>Xe(e,"",Ea),gt=()=>!0,Xe=(e,t,r)=>{const n=gn.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},Ca=e=>da.test(e)&&!fa.test(e),vn=()=>!1,Ea=e=>pa.test(e),Ra=e=>ma.test(e),Sa=sa(()=>{const e=te("colors"),t=te("spacing"),r=te("blur"),n=te("brightness"),o=te("borderColor"),i=te("borderRadius"),s=te("borderSpacing"),a=te("borderWidth"),u=te("contrast"),c=te("grayscale"),d=te("hueRotate"),p=te("invert"),h=te("gap"),v=te("gradientColorStops"),y=te("gradientColorStopPositions"),g=te("inset"),b=te("margin"),w=te("opacity"),x=te("padding"),P=te("saturate"),R=te("scale"),S=te("sepia"),N=te("skew"),k=te("space"),B=te("translate"),G=()=>["auto","contain","none"],z=()=>["auto","hidden","clip","visible","scroll"],K=()=>["auto",I,t],T=()=>[I,t],V=()=>["",Ae,_e],L=()=>["auto",Ke,I],J=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Y=()=>["solid","dashed","dotted","double","none"],Z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],D=()=>["start","end","center","between","around","evenly","stretch"],Q=()=>["","0",I],se=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ie=()=>[Ke,I];return{cacheSize:500,separator:":",theme:{colors:[gt],spacing:[Ae,_e],blur:["none","",Me,I],brightness:ie(),borderColor:[e],borderRadius:["none","","full",Me,I],borderSpacing:T(),borderWidth:V(),contrast:ie(),grayscale:Q(),hueRotate:ie(),invert:Q(),gap:T(),gradientColorStops:[e],gradientColorStopPositions:[ha,_e],inset:K(),margin:K(),opacity:ie(),padding:T(),saturate:ie(),scale:ie(),sepia:Q(),skew:ie(),space:T(),translate:T()},classGroups:{aspect:[{aspect:["auto","square","video",I]}],container:["container"],columns:[{columns:[Me]}],"break-after":[{"break-after":se()}],"break-before":[{"break-before":se()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...J(),I]}],overflow:[{overflow:z()}],"overflow-x":[{"overflow-x":z()}],"overflow-y":[{"overflow-y":z()}],overscroll:[{overscroll:G()}],"overscroll-x":[{"overscroll-x":G()}],"overscroll-y":[{"overscroll-y":G()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ht,I]}],basis:[{basis:K()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",I]}],grow:[{grow:Q()}],shrink:[{shrink:Q()}],order:[{order:["first","last","none",ht,I]}],"grid-cols":[{"grid-cols":[gt]}],"col-start-end":[{col:["auto",{span:["full",ht,I]},I]}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":[gt]}],"row-start-end":[{row:["auto",{span:[ht,I]},I]}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",I]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",I]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...D()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...D(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...D(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",I,t]}],"min-w":[{"min-w":[I,t,"min","max","fit"]}],"max-w":[{"max-w":[I,t,"none","full","min","max","fit","prose",{screen:[Me]},Me]}],h:[{h:[I,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[I,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[I,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[I,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Me,_e]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",tr]}],"font-family":[{font:[gt]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",I]}],"line-clamp":[{"line-clamp":["none",Ke,tr]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ae,I]}],"list-image":[{"list-image":["none",I]}],"list-style-type":[{list:["none","disc","decimal",I]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[w]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[w]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Y(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ae,_e]}],"underline-offset":[{"underline-offset":["auto",Ae,I]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",I]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",I]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[w]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...J(),ba]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",va]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},wa]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[w]}],"border-style":[{border:[...Y(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[w]}],"divide-style":[{divide:Y()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...Y()]}],"outline-offset":[{"outline-offset":[Ae,I]}],"outline-w":[{outline:[Ae,_e]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:V()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[w]}],"ring-offset-w":[{"ring-offset":[Ae,_e]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Me,xa]}],"shadow-color":[{shadow:[gt]}],opacity:[{opacity:[w]}],"mix-blend":[{"mix-blend":[...Z(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Z()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",Me,I]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[p]}],saturate:[{saturate:[P]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[w]}],"backdrop-saturate":[{"backdrop-saturate":[P]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",I]}],duration:[{duration:ie()}],ease:[{ease:["linear","in","out","in-out",I]}],delay:[{delay:ie()}],animate:[{animate:["none","spin","ping","pulse","bounce",I]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[R]}],"scale-x":[{"scale-x":[R]}],"scale-y":[{"scale-y":[R]}],rotate:[{rotate:[ht,I]}],"translate-x":[{"translate-x":[B]}],"translate-y":[{"translate-y":[B]}],"skew-x":[{"skew-x":[N]}],"skew-y":[{"skew-y":[N]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",I]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",I]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",I]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ae,_e,tr]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}});function $(...e){return Sa(sn(e))}const bn=un("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),St=l.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...o},i)=>{const s=n?Vi:"button";return m.jsx(s,{className:$(bn({variant:t,size:r,className:e})),ref:i,...o})});St.displayName="Button";function ka(e){return m.jsx("input",{...e,className:$("w-full rounded-lg border border-input bg-background/50 px-3 py-2 text-sm text-foreground focus:border-ring focus:outline-none placeholder:text-muted-foreground transition-colors disabled:opacity-50",e.className)})}const yn=un("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Pa({className:e,variant:t,...r}){return m.jsx("div",{className:$(yn({variant:t}),e),...r})}const wn=l.forwardRef(({className:e,...t},r)=>m.jsx("div",{ref:r,className:$("rounded-xl border bg-card text-card-foreground shadow",e),...t}));wn.displayName="Card";const xn=l.forwardRef(({className:e,...t},r)=>m.jsx("div",{ref:r,className:$("flex flex-col space-y-1.5 p-6",e),...t}));xn.displayName="CardHeader";const Cn=l.forwardRef(({className:e,...t},r)=>m.jsx("div",{ref:r,className:$("font-semibold leading-none tracking-tight",e),...t}));Cn.displayName="CardTitle";const En=l.forwardRef(({className:e,...t},r)=>m.jsx("div",{ref:r,className:$("text-sm text-muted-foreground",e),...t}));En.displayName="CardDescription";const Rn=l.forwardRef(({className:e,...t},r)=>m.jsx("div",{ref:r,className:$("p-6 pt-0",e),...t}));Rn.displayName="CardContent";const Sn=l.forwardRef(({className:e,...t},r)=>m.jsx("div",{ref:r,className:$("flex items-center p-6 pt-0",e),...t}));Sn.displayName="CardFooter";var kn=1,Aa=.9,Na=.8,Oa=.17,rr=.1,nr=.999,ja=.9999,Ta=.99,_a=/[\\\/_+.#"@\[\(\{&]/,Ma=/[\\\/_+.#"@\[\(\{&]/g,Da=/[\s-]/,Pn=/[\s-]/g;function or(e,t,r,n,o,i,s){if(i===t.length)return o===e.length?kn:Ta;var a=`${o},${i}`;if(s[a]!==void 0)return s[a];for(var u=n.charAt(i),c=r.indexOf(u,o),d=0,p,h,v,y;c>=0;)p=or(e,t,r,n,c+1,i+1,s),p>d&&(c===o?p*=kn:_a.test(e.charAt(c-1))?(p*=Na,v=e.slice(o,c-1).match(Ma),v&&o>0&&(p*=Math.pow(nr,v.length))):Da.test(e.charAt(c-1))?(p*=Aa,y=e.slice(o,c-1).match(Pn),y&&o>0&&(p*=Math.pow(nr,y.length))):(p*=Oa,o>0&&(p*=Math.pow(nr,c-o))),e.charAt(c)!==t.charAt(i)&&(p*=ja)),(p<rr&&r.charAt(c-1)===n.charAt(i+1)||n.charAt(i+1)===n.charAt(i)&&r.charAt(c-1)!==n.charAt(i))&&(h=or(e,t,r,n,c+1,i+2,s),h*rr>p&&(p=h*rr)),p>d&&(d=p),c=r.indexOf(u,c+1);return s[a]=d,d}function An(e){return e.toLowerCase().replace(Pn," ")}function Ia(e,t,r){return e=r&&r.length>0?`${e+" "+r.join(" ")}`:e,or(e,t,An(e),An(t),0,0,{})}function pe(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function La(e,t){const r=l.createContext(t),n=i=>{const{children:s,...a}=i,u=l.useMemo(()=>a,Object.values(a));return m.jsx(r.Provider,{value:u,children:s})};n.displayName=e+"Provider";function o(i){const s=l.useContext(r);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[n,o]}function ir(e,t=[]){let r=[];function n(i,s){const a=l.createContext(s),u=r.length;r=[...r,s];const c=p=>{var w;const{scope:h,children:v,...y}=p,g=((w=h==null?void 0:h[e])==null?void 0:w[u])||a,b=l.useMemo(()=>y,Object.values(y));return m.jsx(g.Provider,{value:b,children:v})};c.displayName=i+"Provider";function d(p,h){var g;const v=((g=h==null?void 0:h[e])==null?void 0:g[u])||a,y=l.useContext(v);if(y)return y;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[c,d]}const o=()=>{const i=r.map(s=>l.createContext(s));return function(a){const u=(a==null?void 0:a[e])||i;return l.useMemo(()=>({[`__scope${e}`]:{...a,[e]:u}}),[a,u])}};return o.scopeName=e,[n,Fa(o,...t)]}function Fa(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=n.reduce((a,{useScope:u,scopeName:c})=>{const p=u(i)[`__scope${c}`];return{...a,...p}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}var De=globalThis!=null&&globalThis.document?l.useLayoutEffect:()=>{},Wa=l[" useId ".trim().toString()]||(()=>{}),$a=0;function Ce(e){const[t,r]=l.useState(Wa());return De(()=>{r(n=>n??String($a++))},[e]),t?`radix-${t}`:""}var Ba=l[" useInsertionEffect ".trim().toString()]||De;function Nn({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,i,s]=za({defaultProp:t,onChange:r}),a=e!==void 0,u=a?e:o;{const d=l.useRef(e!==void 0);l.useEffect(()=>{const p=d.current;p!==a&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=a},[a,n])}const c=l.useCallback(d=>{var p;if(a){const h=Va(d)?d(e):d;h!==e&&((p=s.current)==null||p.call(s,h))}else i(d)},[a,e,i,s]);return[u,c]}function za({defaultProp:e,onChange:t}){const[r,n]=l.useState(e),o=l.useRef(r),i=l.useRef(t);return Ba(()=>{i.current=t},[t]),l.useEffect(()=>{var s;o.current!==r&&((s=i.current)==null||s.call(i,r),o.current=r)},[r,o]),[r,n,i]}function Va(e){return typeof e=="function"}function ar(e){const t=Ha(e),r=l.forwardRef((n,o)=>{const{children:i,...s}=n,a=l.Children.toArray(i),u=a.find(Ga);if(u){const c=u.props.children,d=a.map(p=>p===u?l.Children.count(c)>1?l.Children.only(null):l.isValidElement(c)?c.props.children:null:p);return m.jsx(t,{...s,ref:o,children:l.isValidElement(c)?l.cloneElement(c,void 0,d):null})}return m.jsx(t,{...s,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function Ha(e){const t=l.forwardRef((r,n)=>{const{children:o,...i}=r;if(l.isValidElement(o)){const s=Ka(o),a=Ya(i,o.props);return o.type!==l.Fragment&&(a.ref=n?Te(n,s):s),l.cloneElement(o,a)}return l.Children.count(o)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ua=Symbol("radix.slottable");function Ga(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ua}function Ya(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...a)=>{const u=i(...a);return o(...a),u}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function Ka(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Xa=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ue=Xa.reduce((e,t)=>{const r=ar(`Primitive.${t}`),n=l.forwardRef((o,i)=>{const{asChild:s,...a}=o,u=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(u,{...a,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function qa(e,t){e&&Qr.flushSync(()=>e.dispatchEvent(t))}function qe(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function Za(e,t=globalThis==null?void 0:globalThis.document){const r=qe(e);l.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var Ja="DismissableLayer",sr="dismissableLayer.update",Qa="dismissableLayer.pointerDownOutside",es="dismissableLayer.focusOutside",On,jn=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),lr=l.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...u}=e,c=l.useContext(jn),[d,p]=l.useState(null),h=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=l.useState({}),y=be(t,k=>p(k)),g=Array.from(c.layers),[b]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),w=g.indexOf(b),x=d?g.indexOf(d):-1,P=c.layersWithOutsidePointerEventsDisabled.size>0,R=x>=w,S=ns(k=>{const B=k.target,G=[...c.branches].some(z=>z.contains(B));!R||G||(o==null||o(k),s==null||s(k),k.defaultPrevented||a==null||a())},h),N=os(k=>{const B=k.target;[...c.branches].some(z=>z.contains(B))||(i==null||i(k),s==null||s(k),k.defaultPrevented||a==null||a())},h);return Za(k=>{x===c.layers.size-1&&(n==null||n(k),!k.defaultPrevented&&a&&(k.preventDefault(),a()))},h),l.useEffect(()=>{if(d)return r&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(On=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),Tn(),()=>{r&&c.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=On)}},[d,h,r,c]),l.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),Tn())},[d,c]),l.useEffect(()=>{const k=()=>v({});return document.addEventListener(sr,k),()=>document.removeEventListener(sr,k)},[]),m.jsx(ue.div,{...u,ref:y,style:{pointerEvents:P?R?"auto":"none":void 0,...e.style},onFocusCapture:pe(e.onFocusCapture,N.onFocusCapture),onBlurCapture:pe(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:pe(e.onPointerDownCapture,S.onPointerDownCapture)})});lr.displayName=Ja;var ts="DismissableLayerBranch",rs=l.forwardRef((e,t)=>{const r=l.useContext(jn),n=l.useRef(null),o=be(t,n);return l.useEffect(()=>{const i=n.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),m.jsx(ue.div,{...e,ref:o})});rs.displayName=ts;function ns(e,t=globalThis==null?void 0:globalThis.document){const r=qe(e),n=l.useRef(!1),o=l.useRef(()=>{});return l.useEffect(()=>{const i=a=>{if(a.target&&!n.current){let u=function(){_n(Qa,r,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}else t.removeEventListener("click",o.current);n.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function os(e,t=globalThis==null?void 0:globalThis.document){const r=qe(e),n=l.useRef(!1);return l.useEffect(()=>{const o=i=>{i.target&&!n.current&&_n(es,r,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Tn(){const e=new CustomEvent(sr);document.dispatchEvent(e)}function _n(e,t,r,{discrete:n}){const o=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?qa(o,i):o.dispatchEvent(i)}var cr="focusScope.autoFocusOnMount",ur="focusScope.autoFocusOnUnmount",Mn={bubbles:!1,cancelable:!0},is="FocusScope",dr=l.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,u]=l.useState(null),c=qe(o),d=qe(i),p=l.useRef(null),h=be(t,g=>u(g)),v=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(n){let g=function(P){if(v.paused||!a)return;const R=P.target;a.contains(R)?p.current=R:Ie(p.current,{select:!0})},b=function(P){if(v.paused||!a)return;const R=P.relatedTarget;R!==null&&(a.contains(R)||Ie(p.current,{select:!0}))},w=function(P){if(document.activeElement===document.body)for(const S of P)S.removedNodes.length>0&&Ie(a)};document.addEventListener("focusin",g),document.addEventListener("focusout",b);const x=new MutationObserver(w);return a&&x.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",b),x.disconnect()}}},[n,a,v.paused]),l.useEffect(()=>{if(a){Ln.add(v);const g=document.activeElement;if(!a.contains(g)){const w=new CustomEvent(cr,Mn);a.addEventListener(cr,c),a.dispatchEvent(w),w.defaultPrevented||(as(ds(Dn(a)),{select:!0}),document.activeElement===g&&Ie(a))}return()=>{a.removeEventListener(cr,c),setTimeout(()=>{const w=new CustomEvent(ur,Mn);a.addEventListener(ur,d),a.dispatchEvent(w),w.defaultPrevented||Ie(g??document.body,{select:!0}),a.removeEventListener(ur,d),Ln.remove(v)},0)}}},[a,c,d,v]);const y=l.useCallback(g=>{if(!r&&!n||v.paused)return;const b=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,w=document.activeElement;if(b&&w){const x=g.currentTarget,[P,R]=ss(x);P&&R?!g.shiftKey&&w===R?(g.preventDefault(),r&&Ie(P,{select:!0})):g.shiftKey&&w===P&&(g.preventDefault(),r&&Ie(R,{select:!0})):w===x&&g.preventDefault()}},[r,n,v.paused]);return m.jsx(ue.div,{tabIndex:-1,...s,ref:h,onKeyDown:y})});dr.displayName=is;function as(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Ie(n,{select:t}),document.activeElement!==r)return}function ss(e){const t=Dn(e),r=In(t,e),n=In(t.reverse(),e);return[r,n]}function Dn(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function In(e,t){for(const r of e)if(!ls(r,{upTo:t}))return r}function ls(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function cs(e){return e instanceof HTMLInputElement&&"select"in e}function Ie(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&cs(e)&&t&&e.select()}}var Ln=us();function us(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=Fn(e,t),e.unshift(t)},remove(t){var r;e=Fn(e,t),(r=e[0])==null||r.resume()}}}function Fn(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function ds(e){return e.filter(t=>t.tagName!=="A")}var fs="Portal",fr=l.forwardRef((e,t)=>{var a;const{container:r,...n}=e,[o,i]=l.useState(!1);De(()=>i(!0),[]);const s=r||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?Zr.createPortal(m.jsx(ue.div,{...n,ref:t}),s):null});fr.displayName=fs;function ps(e,t){return l.useReducer((r,n)=>t[r][n]??r,e)}var Ze=e=>{const{present:t,children:r}=e,n=ms(t),o=typeof r=="function"?r({present:n.isPresent}):l.Children.only(r),i=be(n.ref,hs(o));return typeof r=="function"||n.isPresent?l.cloneElement(o,{ref:i}):null};Ze.displayName="Presence";function ms(e){const[t,r]=l.useState(),n=l.useRef(null),o=l.useRef(e),i=l.useRef("none"),s=e?"mounted":"unmounted",[a,u]=ps(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect(()=>{const c=kt(n.current);i.current=a==="mounted"?c:"none"},[a]),De(()=>{const c=n.current,d=o.current;if(d!==e){const h=i.current,v=kt(c);e?u("MOUNT"):v==="none"||(c==null?void 0:c.display)==="none"?u("UNMOUNT"):u(d&&h!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,u]),De(()=>{if(t){let c;const d=t.ownerDocument.defaultView??window,p=v=>{const g=kt(n.current).includes(CSS.escape(v.animationName));if(v.target===t&&g&&(u("ANIMATION_END"),!o.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",c=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},h=v=>{v.target===t&&(i.current=kt(n.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{d.clearTimeout(c),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:l.useCallback(c=>{n.current=c?getComputedStyle(c):null,r(c)},[])}}function kt(e){return(e==null?void 0:e.animationName)||"none"}function hs(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var pr=0;function Wn(){l.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??$n()),document.body.insertAdjacentElement("beforeend",e[1]??$n()),pr++,()=>{pr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),pr--}},[])}function $n(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Ee=function(){return Ee=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Ee.apply(this,arguments)};function Bn(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function gs(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Pt="right-scroll-bar-position",At="width-before-scroll-bar",vs="with-scroll-bars-hidden",bs="--removed-body-scroll-bar-size";function mr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function ys(e,t){var r=le.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var ws=typeof window<"u"?l.useLayoutEffect:l.useEffect,zn=new WeakMap;function xs(e,t){var r=ys(null,function(n){return e.forEach(function(o){return mr(o,n)})});return ws(function(){var n=zn.get(r);if(n){var o=new Set(n),i=new Set(e),s=r.current;o.forEach(function(a){i.has(a)||mr(a,null)}),i.forEach(function(a){o.has(a)||mr(a,s)})}zn.set(r,e)},[e]),r}function Cs(e){return e}function Es(e,t){t===void 0&&(t=Cs);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(i){var s=t(i,n);return r.push(s),function(){r=r.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(n=!0;r.length;){var s=r;r=[],s.forEach(i)}r={push:function(a){return i(a)},filter:function(){return r}}},assignMedium:function(i){n=!0;var s=[];if(r.length){var a=r;r=[],a.forEach(i),s=r}var u=function(){var d=s;s=[],d.forEach(i)},c=function(){return Promise.resolve().then(u)};c(),r={push:function(d){s.push(d),c()},filter:function(d){return s=s.filter(d),r}}}};return o}function Rs(e){e===void 0&&(e={});var t=Es(null);return t.options=Ee({async:!0,ssr:!1},e),t}var Vn=function(e){var t=e.sideCar,r=Bn(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return l.createElement(n,Ee({},r))};Vn.isSideCarExport=!0;function Ss(e,t){return e.useMedium(t),Vn}var Hn=Rs(),hr=function(){},Nt=l.forwardRef(function(e,t){var r=l.useRef(null),n=l.useState({onScrollCapture:hr,onWheelCapture:hr,onTouchMoveCapture:hr}),o=n[0],i=n[1],s=e.forwardProps,a=e.children,u=e.className,c=e.removeScrollBar,d=e.enabled,p=e.shards,h=e.sideCar,v=e.noRelative,y=e.noIsolation,g=e.inert,b=e.allowPinchZoom,w=e.as,x=w===void 0?"div":w,P=e.gapMode,R=Bn(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=h,N=xs([r,t]),k=Ee(Ee({},R),o);return l.createElement(l.Fragment,null,d&&l.createElement(S,{sideCar:Hn,removeScrollBar:c,shards:p,noRelative:v,noIsolation:y,inert:g,setCallbacks:i,allowPinchZoom:!!b,lockRef:r,gapMode:P}),s?l.cloneElement(l.Children.only(a),Ee(Ee({},k),{ref:N})):l.createElement(x,Ee({},k,{className:u,ref:N}),a))});Nt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Nt.classNames={fullWidth:At,zeroRight:Pt};var ks=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Ps(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=ks();return t&&e.setAttribute("nonce",t),e}function As(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ns(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Os=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Ps())&&(As(t,r),Ns(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},js=function(){var e=Os();return function(t,r){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Un=function(){var e=js(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},Ts={left:0,top:0,right:0,gap:0},gr=function(e){return parseInt(e||"",10)||0},_s=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[gr(r),gr(n),gr(o)]},Ms=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Ts;var t=_s(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},Ds=Un(),Je="data-scroll-locked",Is=function(e,t,r,n){var o=e.left,i=e.top,s=e.right,a=e.gap;return r===void 0&&(r="margin"),`
30
+ <%s key={someKey} {...props} />`,qr,Ye,od,Ye),Li[Ye+qr]=!0}}return f===n?Qu(ae):Ju(ae),ae}}function ed(f,C,A){return Fi(f,C,A,!0)}function td(f,C,A){return Fi(f,C,A,!1)}var rd=td,nd=ed;mt.Fragment=n,mt.jsx=rd,mt.jsxs=nd}()),mt}process.env.NODE_ENV==="production"?Jt.exports=Wi():Jt.exports=$i();var m=Jt.exports;function rn(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Te(...e){return t=>{let r=!1;const n=e.map(o=>{const i=rn(o,t);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let o=0;o<n.length;o++){const i=n[o];typeof i=="function"?i():rn(e[o],null)}}}}function be(...e){return l.useCallback(Te(...e),e)}var Bi=Symbol.for("react.lazy"),Rt=l[" use ".trim().toString()];function zi(e){return typeof e=="object"&&e!==null&&"then"in e}function nn(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Bi&&"_payload"in e&&zi(e._payload)}function on(e){const t=Hi(e),r=l.forwardRef((n,o)=>{let{children:i,...s}=n;nn(i)&&typeof Rt=="function"&&(i=Rt(i._payload));const a=l.Children.toArray(i),u=a.find(Gi);if(u){const c=u.props.children,d=a.map(p=>p===u?l.Children.count(c)>1?l.Children.only(null):l.isValidElement(c)?c.props.children:null:p);return m.jsx(t,{...s,ref:o,children:l.isValidElement(c)?l.cloneElement(c,void 0,d):null})}return m.jsx(t,{...s,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}var Vi=on("Slot");function Hi(e){const t=l.forwardRef((r,n)=>{let{children:o,...i}=r;if(nn(o)&&typeof Rt=="function"&&(o=Rt(o._payload)),l.isValidElement(o)){const s=Ki(o),a=Yi(i,o.props);return o.type!==l.Fragment&&(a.ref=n?Te(n,s):s),l.cloneElement(o,a)}return l.Children.count(o)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ui=Symbol("radix.slottable");function Gi(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ui}function Yi(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...a)=>{const u=i(...a);return o(...a),u}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function Ki(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function an(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=an(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function sn(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=an(e))&&(n&&(n+=" "),n+=t);return n}const ln=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,cn=sn,un=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return cn(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(c=>{const d=r==null?void 0:r[c],p=i==null?void 0:i[c];if(d===null)return null;const h=ln(d)||ln(p);return o[c][h]}),a=r&&Object.entries(r).reduce((c,d)=>{let[p,h]=d;return h===void 0||(c[p]=h),c},{}),u=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((c,d)=>{let{class:p,className:h,...v}=d;return Object.entries(v).every(y=>{let[g,b]=y;return Array.isArray(b)?b.includes({...i,...a}[g]):{...i,...a}[g]===b})?[...c,p,h]:c},[]);return cn(e,s,u,r==null?void 0:r.class,r==null?void 0:r.className)},dn=un("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Qt="-",Xi=e=>{const t=Zi(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{const a=s.split(Qt);return a[0]===""&&a.length!==1&&a.shift(),fn(a,t)||qi(s)},getConflictingClassGroupIds:(s,a)=>{const u=r[s]||[];return a&&n[s]?[...u,...n[s]]:u}}},fn=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?fn(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(Qt);return(s=t.validators.find(({validator:a})=>a(i)))==null?void 0:s.classGroupId},pn=/^\[(.+)\]$/,qi=e=>{if(pn.test(e)){const t=pn.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Zi=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return Qi(Object.entries(e.classGroups),r).forEach(([i,s])=>{er(s,n,i,t)}),n},er=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:mn(t,o);i.classGroupId=r;return}if(typeof o=="function"){if(Ji(o)){er(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([i,s])=>{er(s,mn(t,i),r,n)})})},mn=(e,t)=>{let r=e;return t.split(Qt).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},Ji=e=>e.isThemeGetter,Qi=(e,t)=>t?e.map(([r,n])=>{const o=n.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([s,a])=>[t+s,a])):i);return[r,o]}):e,ea=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(i,s)=>{r.set(i,s),t++,t>e&&(t=0,n=r,r=new Map)};return{get(i){let s=r.get(i);if(s!==void 0)return s;if((s=n.get(i))!==void 0)return o(i,s),s},set(i,s){r.has(i)?r.set(i,s):o(i,s)}}},hn="!",ta=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,o=t[0],i=t.length,s=a=>{const u=[];let c=0,d=0,p;for(let b=0;b<a.length;b++){let w=a[b];if(c===0){if(w===o&&(n||a.slice(b,b+i)===t)){u.push(a.slice(d,b)),d=b+i;continue}if(w==="/"){p=b;continue}}w==="["?c++:w==="]"&&c--}const h=u.length===0?a:a.substring(d),v=h.startsWith(hn),y=v?h.substring(1):h,g=p&&p>d?p-d:void 0;return{modifiers:u,hasImportantModifier:v,baseClassName:y,maybePostfixModifierPosition:g}};return r?a=>r({className:a,parseClassName:s}):s},ra=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},na=e=>({cache:ea(e.cacheSize),parseClassName:ta(e),...Xi(e)}),oa=/\s+/,ia=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o}=t,i=[],s=e.trim().split(oa);let a="";for(let u=s.length-1;u>=0;u-=1){const c=s[u],{modifiers:d,hasImportantModifier:p,baseClassName:h,maybePostfixModifierPosition:v}=r(c);let y=!!v,g=n(y?h.substring(0,v):h);if(!g){if(!y){a=c+(a.length>0?" "+a:a);continue}if(g=n(h),!g){a=c+(a.length>0?" "+a:a);continue}y=!1}const b=ra(d).join(":"),w=p?b+hn:b,x=w+g;if(i.includes(x))continue;i.push(x);const P=o(g,y);for(let R=0;R<P.length;++R){const S=P[R];i.push(w+S)}a=c+(a.length>0?" "+a:a)}return a};function aa(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=gn(t))&&(n&&(n+=" "),n+=r);return n}const gn=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=gn(e[n]))&&(r&&(r+=" "),r+=t);return r};function sa(e,...t){let r,n,o,i=s;function s(u){const c=t.reduce((d,p)=>p(d),e());return r=na(c),n=r.cache.get,o=r.cache.set,i=a,a(u)}function a(u){const c=n(u);if(c)return c;const d=ia(u,r);return o(u,d),d}return function(){return i(aa.apply(null,arguments))}}const te=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},vn=/^\[(?:([a-z-]+):)?(.+)\]$/i,la=/^\d+\/\d+$/,ca=new Set(["px","full","screen"]),ua=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,da=/\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$/,fa=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,pa=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ma=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ae=e=>Ke(e)||ca.has(e)||la.test(e),_e=e=>Xe(e,"length",Ca),Ke=e=>!!e&&!Number.isNaN(Number(e)),tr=e=>Xe(e,"number",Ke),ht=e=>!!e&&Number.isInteger(Number(e)),ha=e=>e.endsWith("%")&&Ke(e.slice(0,-1)),I=e=>vn.test(e),Me=e=>ua.test(e),ga=new Set(["length","size","percentage"]),va=e=>Xe(e,ga,bn),ba=e=>Xe(e,"position",bn),ya=new Set(["image","url"]),wa=e=>Xe(e,ya,Ra),xa=e=>Xe(e,"",Ea),gt=()=>!0,Xe=(e,t,r)=>{const n=vn.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},Ca=e=>da.test(e)&&!fa.test(e),bn=()=>!1,Ea=e=>pa.test(e),Ra=e=>ma.test(e),Sa=sa(()=>{const e=te("colors"),t=te("spacing"),r=te("blur"),n=te("brightness"),o=te("borderColor"),i=te("borderRadius"),s=te("borderSpacing"),a=te("borderWidth"),u=te("contrast"),c=te("grayscale"),d=te("hueRotate"),p=te("invert"),h=te("gap"),v=te("gradientColorStops"),y=te("gradientColorStopPositions"),g=te("inset"),b=te("margin"),w=te("opacity"),x=te("padding"),P=te("saturate"),R=te("scale"),S=te("sepia"),N=te("skew"),k=te("space"),B=te("translate"),G=()=>["auto","contain","none"],z=()=>["auto","hidden","clip","visible","scroll"],K=()=>["auto",I,t],T=()=>[I,t],V=()=>["",Ae,_e],L=()=>["auto",Ke,I],J=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Y=()=>["solid","dashed","dotted","double","none"],Z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],D=()=>["start","end","center","between","around","evenly","stretch"],Q=()=>["","0",I],se=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ie=()=>[Ke,I];return{cacheSize:500,separator:":",theme:{colors:[gt],spacing:[Ae,_e],blur:["none","",Me,I],brightness:ie(),borderColor:[e],borderRadius:["none","","full",Me,I],borderSpacing:T(),borderWidth:V(),contrast:ie(),grayscale:Q(),hueRotate:ie(),invert:Q(),gap:T(),gradientColorStops:[e],gradientColorStopPositions:[ha,_e],inset:K(),margin:K(),opacity:ie(),padding:T(),saturate:ie(),scale:ie(),sepia:Q(),skew:ie(),space:T(),translate:T()},classGroups:{aspect:[{aspect:["auto","square","video",I]}],container:["container"],columns:[{columns:[Me]}],"break-after":[{"break-after":se()}],"break-before":[{"break-before":se()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...J(),I]}],overflow:[{overflow:z()}],"overflow-x":[{"overflow-x":z()}],"overflow-y":[{"overflow-y":z()}],overscroll:[{overscroll:G()}],"overscroll-x":[{"overscroll-x":G()}],"overscroll-y":[{"overscroll-y":G()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ht,I]}],basis:[{basis:K()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",I]}],grow:[{grow:Q()}],shrink:[{shrink:Q()}],order:[{order:["first","last","none",ht,I]}],"grid-cols":[{"grid-cols":[gt]}],"col-start-end":[{col:["auto",{span:["full",ht,I]},I]}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":[gt]}],"row-start-end":[{row:["auto",{span:[ht,I]},I]}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",I]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",I]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...D()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...D(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...D(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",I,t]}],"min-w":[{"min-w":[I,t,"min","max","fit"]}],"max-w":[{"max-w":[I,t,"none","full","min","max","fit","prose",{screen:[Me]},Me]}],h:[{h:[I,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[I,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[I,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[I,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Me,_e]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",tr]}],"font-family":[{font:[gt]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",I]}],"line-clamp":[{"line-clamp":["none",Ke,tr]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ae,I]}],"list-image":[{"list-image":["none",I]}],"list-style-type":[{list:["none","disc","decimal",I]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[w]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[w]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Y(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ae,_e]}],"underline-offset":[{"underline-offset":["auto",Ae,I]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",I]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",I]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[w]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...J(),ba]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",va]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},wa]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[w]}],"border-style":[{border:[...Y(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[w]}],"divide-style":[{divide:Y()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...Y()]}],"outline-offset":[{"outline-offset":[Ae,I]}],"outline-w":[{outline:[Ae,_e]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:V()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[w]}],"ring-offset-w":[{"ring-offset":[Ae,_e]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Me,xa]}],"shadow-color":[{shadow:[gt]}],opacity:[{opacity:[w]}],"mix-blend":[{"mix-blend":[...Z(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Z()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",Me,I]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[p]}],saturate:[{saturate:[P]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[w]}],"backdrop-saturate":[{"backdrop-saturate":[P]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",I]}],duration:[{duration:ie()}],ease:[{ease:["linear","in","out","in-out",I]}],delay:[{delay:ie()}],animate:[{animate:["none","spin","ping","pulse","bounce",I]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[R]}],"scale-x":[{"scale-x":[R]}],"scale-y":[{"scale-y":[R]}],rotate:[{rotate:[ht,I]}],"translate-x":[{"translate-x":[B]}],"translate-y":[{"translate-y":[B]}],"skew-x":[{"skew-x":[N]}],"skew-y":[{"skew-y":[N]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",I]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",I]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",I]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ae,_e,tr]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}});function $(...e){return Sa(sn(e))}const St=l.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...o},i)=>{const s=n?Vi:"button";return m.jsx(s,{className:$(dn({variant:t,size:r,className:e})),ref:i,...o})});St.displayName="Button";function ka(e){return m.jsx("input",{...e,className:$("w-full rounded-lg border border-input bg-background/50 px-3 py-2 text-sm text-foreground focus:border-ring focus:outline-none placeholder:text-muted-foreground transition-colors disabled:opacity-50",e.className)})}const yn=un("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Pa({className:e,variant:t,...r}){return m.jsx("div",{className:$(yn({variant:t}),e),...r})}const wn=l.forwardRef(({className:e,...t},r)=>m.jsx("div",{ref:r,className:$("rounded-xl border bg-card text-card-foreground shadow",e),...t}));wn.displayName="Card";const xn=l.forwardRef(({className:e,...t},r)=>m.jsx("div",{ref:r,className:$("flex flex-col space-y-1.5 p-6",e),...t}));xn.displayName="CardHeader";const Cn=l.forwardRef(({className:e,...t},r)=>m.jsx("div",{ref:r,className:$("font-semibold leading-none tracking-tight",e),...t}));Cn.displayName="CardTitle";const En=l.forwardRef(({className:e,...t},r)=>m.jsx("div",{ref:r,className:$("text-sm text-muted-foreground",e),...t}));En.displayName="CardDescription";const Rn=l.forwardRef(({className:e,...t},r)=>m.jsx("div",{ref:r,className:$("p-6 pt-0",e),...t}));Rn.displayName="CardContent";const Sn=l.forwardRef(({className:e,...t},r)=>m.jsx("div",{ref:r,className:$("flex items-center p-6 pt-0",e),...t}));Sn.displayName="CardFooter";var kn=1,Aa=.9,Na=.8,Oa=.17,rr=.1,nr=.999,ja=.9999,Ta=.99,_a=/[\\\/_+.#"@\[\(\{&]/,Ma=/[\\\/_+.#"@\[\(\{&]/g,Da=/[\s-]/,Pn=/[\s-]/g;function or(e,t,r,n,o,i,s){if(i===t.length)return o===e.length?kn:Ta;var a=`${o},${i}`;if(s[a]!==void 0)return s[a];for(var u=n.charAt(i),c=r.indexOf(u,o),d=0,p,h,v,y;c>=0;)p=or(e,t,r,n,c+1,i+1,s),p>d&&(c===o?p*=kn:_a.test(e.charAt(c-1))?(p*=Na,v=e.slice(o,c-1).match(Ma),v&&o>0&&(p*=Math.pow(nr,v.length))):Da.test(e.charAt(c-1))?(p*=Aa,y=e.slice(o,c-1).match(Pn),y&&o>0&&(p*=Math.pow(nr,y.length))):(p*=Oa,o>0&&(p*=Math.pow(nr,c-o))),e.charAt(c)!==t.charAt(i)&&(p*=ja)),(p<rr&&r.charAt(c-1)===n.charAt(i+1)||n.charAt(i+1)===n.charAt(i)&&r.charAt(c-1)!==n.charAt(i))&&(h=or(e,t,r,n,c+1,i+2,s),h*rr>p&&(p=h*rr)),p>d&&(d=p),c=r.indexOf(u,c+1);return s[a]=d,d}function An(e){return e.toLowerCase().replace(Pn," ")}function Ia(e,t,r){return e=r&&r.length>0?`${e+" "+r.join(" ")}`:e,or(e,t,An(e),An(t),0,0,{})}function pe(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function La(e,t){const r=l.createContext(t),n=i=>{const{children:s,...a}=i,u=l.useMemo(()=>a,Object.values(a));return m.jsx(r.Provider,{value:u,children:s})};n.displayName=e+"Provider";function o(i){const s=l.useContext(r);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[n,o]}function ir(e,t=[]){let r=[];function n(i,s){const a=l.createContext(s),u=r.length;r=[...r,s];const c=p=>{var w;const{scope:h,children:v,...y}=p,g=((w=h==null?void 0:h[e])==null?void 0:w[u])||a,b=l.useMemo(()=>y,Object.values(y));return m.jsx(g.Provider,{value:b,children:v})};c.displayName=i+"Provider";function d(p,h){var g;const v=((g=h==null?void 0:h[e])==null?void 0:g[u])||a,y=l.useContext(v);if(y)return y;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[c,d]}const o=()=>{const i=r.map(s=>l.createContext(s));return function(a){const u=(a==null?void 0:a[e])||i;return l.useMemo(()=>({[`__scope${e}`]:{...a,[e]:u}}),[a,u])}};return o.scopeName=e,[n,Fa(o,...t)]}function Fa(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=n.reduce((a,{useScope:u,scopeName:c})=>{const p=u(i)[`__scope${c}`];return{...a,...p}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}var De=globalThis!=null&&globalThis.document?l.useLayoutEffect:()=>{},Wa=l[" useId ".trim().toString()]||(()=>{}),$a=0;function Ce(e){const[t,r]=l.useState(Wa());return De(()=>{r(n=>n??String($a++))},[e]),t?`radix-${t}`:""}var Ba=l[" useInsertionEffect ".trim().toString()]||De;function Nn({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,i,s]=za({defaultProp:t,onChange:r}),a=e!==void 0,u=a?e:o;{const d=l.useRef(e!==void 0);l.useEffect(()=>{const p=d.current;p!==a&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=a},[a,n])}const c=l.useCallback(d=>{var p;if(a){const h=Va(d)?d(e):d;h!==e&&((p=s.current)==null||p.call(s,h))}else i(d)},[a,e,i,s]);return[u,c]}function za({defaultProp:e,onChange:t}){const[r,n]=l.useState(e),o=l.useRef(r),i=l.useRef(t);return Ba(()=>{i.current=t},[t]),l.useEffect(()=>{var s;o.current!==r&&((s=i.current)==null||s.call(i,r),o.current=r)},[r,o]),[r,n,i]}function Va(e){return typeof e=="function"}function ar(e){const t=Ha(e),r=l.forwardRef((n,o)=>{const{children:i,...s}=n,a=l.Children.toArray(i),u=a.find(Ga);if(u){const c=u.props.children,d=a.map(p=>p===u?l.Children.count(c)>1?l.Children.only(null):l.isValidElement(c)?c.props.children:null:p);return m.jsx(t,{...s,ref:o,children:l.isValidElement(c)?l.cloneElement(c,void 0,d):null})}return m.jsx(t,{...s,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function Ha(e){const t=l.forwardRef((r,n)=>{const{children:o,...i}=r;if(l.isValidElement(o)){const s=Ka(o),a=Ya(i,o.props);return o.type!==l.Fragment&&(a.ref=n?Te(n,s):s),l.cloneElement(o,a)}return l.Children.count(o)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ua=Symbol("radix.slottable");function Ga(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ua}function Ya(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...a)=>{const u=i(...a);return o(...a),u}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function Ka(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Xa=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ue=Xa.reduce((e,t)=>{const r=ar(`Primitive.${t}`),n=l.forwardRef((o,i)=>{const{asChild:s,...a}=o,u=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(u,{...a,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function qa(e,t){e&&Qr.flushSync(()=>e.dispatchEvent(t))}function qe(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function Za(e,t=globalThis==null?void 0:globalThis.document){const r=qe(e);l.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var Ja="DismissableLayer",sr="dismissableLayer.update",Qa="dismissableLayer.pointerDownOutside",es="dismissableLayer.focusOutside",On,jn=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),lr=l.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...u}=e,c=l.useContext(jn),[d,p]=l.useState(null),h=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=l.useState({}),y=be(t,k=>p(k)),g=Array.from(c.layers),[b]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),w=g.indexOf(b),x=d?g.indexOf(d):-1,P=c.layersWithOutsidePointerEventsDisabled.size>0,R=x>=w,S=ns(k=>{const B=k.target,G=[...c.branches].some(z=>z.contains(B));!R||G||(o==null||o(k),s==null||s(k),k.defaultPrevented||a==null||a())},h),N=os(k=>{const B=k.target;[...c.branches].some(z=>z.contains(B))||(i==null||i(k),s==null||s(k),k.defaultPrevented||a==null||a())},h);return Za(k=>{x===c.layers.size-1&&(n==null||n(k),!k.defaultPrevented&&a&&(k.preventDefault(),a()))},h),l.useEffect(()=>{if(d)return r&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(On=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),Tn(),()=>{r&&c.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=On)}},[d,h,r,c]),l.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),Tn())},[d,c]),l.useEffect(()=>{const k=()=>v({});return document.addEventListener(sr,k),()=>document.removeEventListener(sr,k)},[]),m.jsx(ue.div,{...u,ref:y,style:{pointerEvents:P?R?"auto":"none":void 0,...e.style},onFocusCapture:pe(e.onFocusCapture,N.onFocusCapture),onBlurCapture:pe(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:pe(e.onPointerDownCapture,S.onPointerDownCapture)})});lr.displayName=Ja;var ts="DismissableLayerBranch",rs=l.forwardRef((e,t)=>{const r=l.useContext(jn),n=l.useRef(null),o=be(t,n);return l.useEffect(()=>{const i=n.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),m.jsx(ue.div,{...e,ref:o})});rs.displayName=ts;function ns(e,t=globalThis==null?void 0:globalThis.document){const r=qe(e),n=l.useRef(!1),o=l.useRef(()=>{});return l.useEffect(()=>{const i=a=>{if(a.target&&!n.current){let u=function(){_n(Qa,r,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}else t.removeEventListener("click",o.current);n.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function os(e,t=globalThis==null?void 0:globalThis.document){const r=qe(e),n=l.useRef(!1);return l.useEffect(()=>{const o=i=>{i.target&&!n.current&&_n(es,r,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Tn(){const e=new CustomEvent(sr);document.dispatchEvent(e)}function _n(e,t,r,{discrete:n}){const o=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?qa(o,i):o.dispatchEvent(i)}var cr="focusScope.autoFocusOnMount",ur="focusScope.autoFocusOnUnmount",Mn={bubbles:!1,cancelable:!0},is="FocusScope",dr=l.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,u]=l.useState(null),c=qe(o),d=qe(i),p=l.useRef(null),h=be(t,g=>u(g)),v=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(n){let g=function(P){if(v.paused||!a)return;const R=P.target;a.contains(R)?p.current=R:Ie(p.current,{select:!0})},b=function(P){if(v.paused||!a)return;const R=P.relatedTarget;R!==null&&(a.contains(R)||Ie(p.current,{select:!0}))},w=function(P){if(document.activeElement===document.body)for(const S of P)S.removedNodes.length>0&&Ie(a)};document.addEventListener("focusin",g),document.addEventListener("focusout",b);const x=new MutationObserver(w);return a&&x.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",b),x.disconnect()}}},[n,a,v.paused]),l.useEffect(()=>{if(a){Ln.add(v);const g=document.activeElement;if(!a.contains(g)){const w=new CustomEvent(cr,Mn);a.addEventListener(cr,c),a.dispatchEvent(w),w.defaultPrevented||(as(ds(Dn(a)),{select:!0}),document.activeElement===g&&Ie(a))}return()=>{a.removeEventListener(cr,c),setTimeout(()=>{const w=new CustomEvent(ur,Mn);a.addEventListener(ur,d),a.dispatchEvent(w),w.defaultPrevented||Ie(g??document.body,{select:!0}),a.removeEventListener(ur,d),Ln.remove(v)},0)}}},[a,c,d,v]);const y=l.useCallback(g=>{if(!r&&!n||v.paused)return;const b=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,w=document.activeElement;if(b&&w){const x=g.currentTarget,[P,R]=ss(x);P&&R?!g.shiftKey&&w===R?(g.preventDefault(),r&&Ie(P,{select:!0})):g.shiftKey&&w===P&&(g.preventDefault(),r&&Ie(R,{select:!0})):w===x&&g.preventDefault()}},[r,n,v.paused]);return m.jsx(ue.div,{tabIndex:-1,...s,ref:h,onKeyDown:y})});dr.displayName=is;function as(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Ie(n,{select:t}),document.activeElement!==r)return}function ss(e){const t=Dn(e),r=In(t,e),n=In(t.reverse(),e);return[r,n]}function Dn(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function In(e,t){for(const r of e)if(!ls(r,{upTo:t}))return r}function ls(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function cs(e){return e instanceof HTMLInputElement&&"select"in e}function Ie(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&cs(e)&&t&&e.select()}}var Ln=us();function us(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=Fn(e,t),e.unshift(t)},remove(t){var r;e=Fn(e,t),(r=e[0])==null||r.resume()}}}function Fn(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function ds(e){return e.filter(t=>t.tagName!=="A")}var fs="Portal",fr=l.forwardRef((e,t)=>{var a;const{container:r,...n}=e,[o,i]=l.useState(!1);De(()=>i(!0),[]);const s=r||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?Zr.createPortal(m.jsx(ue.div,{...n,ref:t}),s):null});fr.displayName=fs;function ps(e,t){return l.useReducer((r,n)=>t[r][n]??r,e)}var Ze=e=>{const{present:t,children:r}=e,n=ms(t),o=typeof r=="function"?r({present:n.isPresent}):l.Children.only(r),i=be(n.ref,hs(o));return typeof r=="function"||n.isPresent?l.cloneElement(o,{ref:i}):null};Ze.displayName="Presence";function ms(e){const[t,r]=l.useState(),n=l.useRef(null),o=l.useRef(e),i=l.useRef("none"),s=e?"mounted":"unmounted",[a,u]=ps(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect(()=>{const c=kt(n.current);i.current=a==="mounted"?c:"none"},[a]),De(()=>{const c=n.current,d=o.current;if(d!==e){const h=i.current,v=kt(c);e?u("MOUNT"):v==="none"||(c==null?void 0:c.display)==="none"?u("UNMOUNT"):u(d&&h!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,u]),De(()=>{if(t){let c;const d=t.ownerDocument.defaultView??window,p=v=>{const g=kt(n.current).includes(CSS.escape(v.animationName));if(v.target===t&&g&&(u("ANIMATION_END"),!o.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",c=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},h=v=>{v.target===t&&(i.current=kt(n.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{d.clearTimeout(c),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:l.useCallback(c=>{n.current=c?getComputedStyle(c):null,r(c)},[])}}function kt(e){return(e==null?void 0:e.animationName)||"none"}function hs(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var pr=0;function Wn(){l.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??$n()),document.body.insertAdjacentElement("beforeend",e[1]??$n()),pr++,()=>{pr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),pr--}},[])}function $n(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Ee=function(){return Ee=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Ee.apply(this,arguments)};function Bn(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function gs(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Pt="right-scroll-bar-position",At="width-before-scroll-bar",vs="with-scroll-bars-hidden",bs="--removed-body-scroll-bar-size";function mr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function ys(e,t){var r=le.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var ws=typeof window<"u"?l.useLayoutEffect:l.useEffect,zn=new WeakMap;function xs(e,t){var r=ys(null,function(n){return e.forEach(function(o){return mr(o,n)})});return ws(function(){var n=zn.get(r);if(n){var o=new Set(n),i=new Set(e),s=r.current;o.forEach(function(a){i.has(a)||mr(a,null)}),i.forEach(function(a){o.has(a)||mr(a,s)})}zn.set(r,e)},[e]),r}function Cs(e){return e}function Es(e,t){t===void 0&&(t=Cs);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(i){var s=t(i,n);return r.push(s),function(){r=r.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(n=!0;r.length;){var s=r;r=[],s.forEach(i)}r={push:function(a){return i(a)},filter:function(){return r}}},assignMedium:function(i){n=!0;var s=[];if(r.length){var a=r;r=[],a.forEach(i),s=r}var u=function(){var d=s;s=[],d.forEach(i)},c=function(){return Promise.resolve().then(u)};c(),r={push:function(d){s.push(d),c()},filter:function(d){return s=s.filter(d),r}}}};return o}function Rs(e){e===void 0&&(e={});var t=Es(null);return t.options=Ee({async:!0,ssr:!1},e),t}var Vn=function(e){var t=e.sideCar,r=Bn(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return l.createElement(n,Ee({},r))};Vn.isSideCarExport=!0;function Ss(e,t){return e.useMedium(t),Vn}var Hn=Rs(),hr=function(){},Nt=l.forwardRef(function(e,t){var r=l.useRef(null),n=l.useState({onScrollCapture:hr,onWheelCapture:hr,onTouchMoveCapture:hr}),o=n[0],i=n[1],s=e.forwardProps,a=e.children,u=e.className,c=e.removeScrollBar,d=e.enabled,p=e.shards,h=e.sideCar,v=e.noRelative,y=e.noIsolation,g=e.inert,b=e.allowPinchZoom,w=e.as,x=w===void 0?"div":w,P=e.gapMode,R=Bn(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=h,N=xs([r,t]),k=Ee(Ee({},R),o);return l.createElement(l.Fragment,null,d&&l.createElement(S,{sideCar:Hn,removeScrollBar:c,shards:p,noRelative:v,noIsolation:y,inert:g,setCallbacks:i,allowPinchZoom:!!b,lockRef:r,gapMode:P}),s?l.cloneElement(l.Children.only(a),Ee(Ee({},k),{ref:N})):l.createElement(x,Ee({},k,{className:u,ref:N}),a))});Nt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Nt.classNames={fullWidth:At,zeroRight:Pt};var ks=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Ps(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=ks();return t&&e.setAttribute("nonce",t),e}function As(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ns(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Os=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Ps())&&(As(t,r),Ns(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},js=function(){var e=Os();return function(t,r){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Un=function(){var e=js(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},Ts={left:0,top:0,right:0,gap:0},gr=function(e){return parseInt(e||"",10)||0},_s=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[gr(r),gr(n),gr(o)]},Ms=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Ts;var t=_s(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},Ds=Un(),Je="data-scroll-locked",Is=function(e,t,r,n){var o=e.left,i=e.top,s=e.right,a=e.gap;return r===void 0&&(r="margin"),`
31
31
  .`.concat(vs,` {
32
32
  overflow: hidden `).concat(n,`;
33
33
  padding-right: `).concat(a,"px ").concat(n,`;
@@ -111,4 +111,4 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
111
111
  *
112
112
  * This source code is licensed under the ISC license.
113
113
  * See the LICENSE file in the root directory of this source tree.
114
- */const Bl=ot("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),kr=l.forwardRef(({className:e,...t},r)=>m.jsx(de,{ref:r,className:$("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));kr.displayName=de.displayName;const Pr=l.forwardRef(({className:e,...t},r)=>m.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[m.jsx($l,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),m.jsx(de.Input,{ref:r,className:$("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));Pr.displayName=de.Input.displayName;const Co=l.forwardRef(({className:e,...t},r)=>m.jsx(de.List,{ref:r,className:$("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));Co.displayName=de.List.displayName;const Ar=l.forwardRef((e,t)=>m.jsx(de.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));Ar.displayName=de.Empty.displayName;const Nr=l.forwardRef(({className:e,...t},r)=>m.jsx(de.Group,{ref:r,className:$("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));Nr.displayName=de.Group.displayName;const Eo=l.forwardRef(({className:e,...t},r)=>m.jsx(de.Separator,{ref:r,className:$("-mx-1 h-px bg-border",e),...t}));Eo.displayName=de.Separator.displayName;const Or=l.forwardRef(({className:e,...t},r)=>m.jsx(de.Item,{ref:r,className:$("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground",e),...t}));Or.displayName=de.Item.displayName;const Ro=({className:e,...t})=>m.jsx("span",{className:$("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});Ro.displayName="CommandShortcut";function So({children:e,onClose:t,className:r}){return le.useEffect(()=>{function n(o){(o.key==="Escape"||o.key==="Esc")&&t&&t()}return window.addEventListener("keydown",n),()=>window.removeEventListener("keydown",n)},[t]),le.useEffect(()=>{try{document.body.dataset.psModalOpen="true"}catch{}return()=>{try{delete document.body.dataset.psModalOpen}catch{}}},[]),m.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[m.jsx("div",{className:"absolute inset-0 bg-background/80 backdrop-blur-sm transition-opacity",onClick:t}),m.jsx("div",{className:$("relative w-full max-w-sm transform rounded-xl bg-card border border-border p-6 shadow-2xl transition-all","animate-in fade-in zoom-in-95 duration-200",r),children:e})]})}function zl({title:e,children:t,onClose:r,className:n}){return m.jsxs(So,{onClose:r,className:n,children:[m.jsxs("div",{className:"flex items-center justify-between mb-6",children:[m.jsx("h3",{className:"text-xl font-bold tracking-tight text-foreground",children:e}),m.jsx("button",{onClick:r,className:"text-muted-foreground hover:text-foreground transition-colors",children:m.jsx(Bl,{className:"w-5 h-5"})})]}),m.jsx("div",{children:t})]})}const Vl=(e={})=>m.jsxs("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),m.jsx("circle",{cx:"12",cy:"9",r:"2.5",fill:"currentColor"})]}),Hl=(e={})=>m.jsxs("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{d:"M21 15v4a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),m.jsx("path",{d:"M7 10l5-5 5 5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),m.jsx("path",{d:"M12 5v12",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),Ul=(e={})=>m.jsxs("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{d:"M21 12H7",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),m.jsx("path",{d:"M11 16l-4-4 4-4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),Gl=(e={})=>m.jsxs("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{d:"M21 12a9 9 0 11-3-6.6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),m.jsx("path",{d:"M12 8v8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),m.jsx("path",{d:"M8 12h8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),Yl=(e={})=>m.jsx("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M20 6L9 17l-5-5",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})}),Kl=(e={})=>m.jsxs("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("rect",{x:"2",y:"7",width:"20",height:"14",rx:"2",stroke:"currentColor",strokeWidth:"1.5"}),m.jsx("path",{d:"M12 11v6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),m.jsx("circle",{cx:"12",cy:"10",r:"1.5",fill:"currentColor"})]}),Xl=(e={})=>m.jsxs("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{d:"M16 3l3 3v11a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V6l3-3",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),m.jsx("path",{d:"M9 8h6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),ql=(e={})=>m.jsxs("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{d:"M2 12s4-7 10-7 10 7 10 7-4 7-10 7S2 12 2 12z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),m.jsx("circle",{cx:"12",cy:"12",r:"3",stroke:"currentColor",strokeWidth:"1.5"})]}),Zl=(e={})=>m.jsxs("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{d:"M10.29 3.86L1.82 18a2 2 0 001.71 3h16.94a2 2 0 001.71-3L13.71 3.86a2 2 0 00-3.42 0z",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"}),m.jsx("path",{d:"M12 9v4",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"}),m.jsx("circle",{cx:"12",cy:"17",r:"0.8",fill:"currentColor"})]}),Jl=(e={})=>m.jsxs("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{d:"M20 21v-2a4 4 0 00-4-4H8a4 4 0 00-4 4v2",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),m.jsx("circle",{cx:"12",cy:"7",r:"4",stroke:"currentColor",strokeWidth:"1.5"}),m.jsx("path",{d:"M15 10l-6-6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),Ql=(e={})=>m.jsxs("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("circle",{cx:"12",cy:"12",r:"9",stroke:"currentColor",strokeWidth:"1.5"}),m.jsx("path",{d:"M4.93 4.93l14.14 14.14",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]});function ec({title:e,icon:t,count:r,countLabel:n,children:o,className:i,...s}){return m.jsxs("div",{className:$("w-full h-auto min-h-[5rem] border-b border-border flex items-center justify-between py-4 px-6 bg-card/30 shrink-0",i),...s,children:[m.jsxs("div",{className:"flex items-center gap-4",children:[m.jsxs("div",{className:"flex items-center gap-3",children:[m.jsx(t,{className:"w-6 h-6 text-primary"}),m.jsx("h1",{className:"text-xl font-bold tracking-tight text-foreground",children:e})]}),r!==void 0&&m.jsxs("div",{className:"bg-primary/20 text-primary text-xs font-bold px-2 py-0.5 rounded-full",children:[r," ",(n||"Records").toUpperCase()]})]}),m.jsx("div",{className:"flex items-center gap-3",children:o})]})}const tc=["top","right","bottom","left"],We=Math.min,me=Math.max,Lt=Math.round,Ft=Math.floor,Re=e=>({x:e,y:e}),rc={left:"right",right:"left",bottom:"top",top:"bottom"},nc={start:"end",end:"start"};function jr(e,t,r){return me(e,We(t,r))}function Ne(e,t){return typeof e=="function"?e(t):e}function Oe(e){return e.split("-")[0]}function it(e){return e.split("-")[1]}function Tr(e){return e==="x"?"y":"x"}function _r(e){return e==="y"?"height":"width"}const oc=new Set(["top","bottom"]);function Se(e){return oc.has(Oe(e))?"y":"x"}function Mr(e){return Tr(Se(e))}function ic(e,t,r){r===void 0&&(r=!1);const n=it(e),o=Mr(e),i=_r(o);let s=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Wt(s)),[s,Wt(s)]}function ac(e){const t=Wt(e);return[Dr(e),t,Dr(t)]}function Dr(e){return e.replace(/start|end/g,t=>nc[t])}const ko=["left","right"],Po=["right","left"],sc=["top","bottom"],lc=["bottom","top"];function cc(e,t,r){switch(e){case"top":case"bottom":return r?t?Po:ko:t?ko:Po;case"left":case"right":return t?sc:lc;default:return[]}}function uc(e,t,r,n){const o=it(e);let i=cc(Oe(e),r==="start",n);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Dr)))),i}function Wt(e){return e.replace(/left|right|bottom|top/g,t=>rc[t])}function dc(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ao(e){return typeof e!="number"?dc(e):{top:e,right:e,bottom:e,left:e}}function $t(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function No(e,t,r){let{reference:n,floating:o}=e;const i=Se(t),s=Mr(t),a=_r(s),u=Oe(t),c=i==="y",d=n.x+n.width/2-o.width/2,p=n.y+n.height/2-o.height/2,h=n[a]/2-o[a]/2;let v;switch(u){case"top":v={x:d,y:n.y-o.height};break;case"bottom":v={x:d,y:n.y+n.height};break;case"right":v={x:n.x+n.width,y:p};break;case"left":v={x:n.x-o.width,y:p};break;default:v={x:n.x,y:n.y}}switch(it(t)){case"start":v[s]-=h*(r&&c?-1:1);break;case"end":v[s]+=h*(r&&c?-1:1);break}return v}const fc=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:s}=r,a=i.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:p}=No(c,n,u),h=n,v={},y=0;for(let g=0;g<a.length;g++){const{name:b,fn:w}=a[g],{x,y:P,data:R,reset:S}=await w({x:d,y:p,initialPlacement:n,placement:h,strategy:o,middlewareData:v,rects:c,platform:s,elements:{reference:e,floating:t}});d=x??d,p=P??p,v={...v,[b]:{...v[b],...R}},S&&y<=50&&(y++,typeof S=="object"&&(S.placement&&(h=S.placement),S.rects&&(c=S.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):S.rects),{x:d,y:p}=No(c,h,u)),g=-1)}return{x:d,y:p,placement:h,strategy:o,middlewareData:v}};async function yt(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:i,rects:s,elements:a,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:h=!1,padding:v=0}=Ne(t,e),y=Ao(v),b=a[h?p==="floating"?"reference":"floating":p],w=$t(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(b)))==null||r?b:b.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:u})),x=p==="floating"?{x:n,y:o,width:s.floating.width,height:s.floating.height}:s.reference,P=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),R=await(i.isElement==null?void 0:i.isElement(P))?await(i.getScale==null?void 0:i.getScale(P))||{x:1,y:1}:{x:1,y:1},S=$t(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:P,strategy:u}):x);return{top:(w.top-S.top+y.top)/R.y,bottom:(S.bottom-w.bottom+y.bottom)/R.y,left:(w.left-S.left+y.left)/R.x,right:(S.right-w.right+y.right)/R.x}}const pc=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:i,platform:s,elements:a,middlewareData:u}=t,{element:c,padding:d=0}=Ne(e,t)||{};if(c==null)return{};const p=Ao(d),h={x:r,y:n},v=Mr(o),y=_r(v),g=await s.getDimensions(c),b=v==="y",w=b?"top":"left",x=b?"bottom":"right",P=b?"clientHeight":"clientWidth",R=i.reference[y]+i.reference[v]-h[v]-i.floating[y],S=h[v]-i.reference[v],N=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let k=N?N[P]:0;(!k||!await(s.isElement==null?void 0:s.isElement(N)))&&(k=a.floating[P]||i.floating[y]);const B=R/2-S/2,G=k/2-g[y]/2-1,z=We(p[w],G),K=We(p[x],G),T=z,V=k-g[y]-K,L=k/2-g[y]/2+B,J=jr(T,L,V),Y=!u.arrow&&it(o)!=null&&L!==J&&i.reference[y]/2-(L<T?z:K)-g[y]/2<0,Z=Y?L<T?L-T:L-V:0;return{[v]:h[v]+Z,data:{[v]:J,centerOffset:L-J-Z,...Y&&{alignmentOffset:Z}},reset:Y}}}),mc=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:u,elements:c}=t,{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:h,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:g=!0,...b}=Ne(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const w=Oe(o),x=Se(a),P=Oe(a)===a,R=await(u.isRTL==null?void 0:u.isRTL(c.floating)),S=h||(P||!g?[Wt(a)]:ac(a)),N=y!=="none";!h&&N&&S.push(...uc(a,g,y,R));const k=[a,...S],B=await yt(t,b),G=[];let z=((n=i.flip)==null?void 0:n.overflows)||[];if(d&&G.push(B[w]),p){const L=ic(o,s,R);G.push(B[L[0]],B[L[1]])}if(z=[...z,{placement:o,overflows:G}],!G.every(L=>L<=0)){var K,T;const L=(((K=i.flip)==null?void 0:K.index)||0)+1,J=k[L];if(J&&(!(p==="alignment"?x!==Se(J):!1)||z.every(D=>Se(D.placement)===x?D.overflows[0]>0:!0)))return{data:{index:L,overflows:z},reset:{placement:J}};let Y=(T=z.filter(Z=>Z.overflows[0]<=0).sort((Z,D)=>Z.overflows[1]-D.overflows[1])[0])==null?void 0:T.placement;if(!Y)switch(v){case"bestFit":{var V;const Z=(V=z.filter(D=>{if(N){const Q=Se(D.placement);return Q===x||Q==="y"}return!0}).map(D=>[D.placement,D.overflows.filter(Q=>Q>0).reduce((Q,se)=>Q+se,0)]).sort((D,Q)=>D[1]-Q[1])[0])==null?void 0:V[0];Z&&(Y=Z);break}case"initialPlacement":Y=a;break}if(o!==Y)return{reset:{placement:Y}}}return{}}}};function Oo(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function jo(e){return tc.some(t=>e[t]>=0)}const hc=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=Ne(e,t);switch(n){case"referenceHidden":{const i=await yt(t,{...o,elementContext:"reference"}),s=Oo(i,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:jo(s)}}}case"escaped":{const i=await yt(t,{...o,altBoundary:!0}),s=Oo(i,r.floating);return{data:{escapedOffsets:s,escaped:jo(s)}}}default:return{}}}}},To=new Set(["left","top"]);async function gc(e,t){const{placement:r,platform:n,elements:o}=e,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),s=Oe(r),a=it(r),u=Se(r)==="y",c=To.has(s)?-1:1,d=i&&u?-1:1,p=Ne(t,e);let{mainAxis:h,crossAxis:v,alignmentAxis:y}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof y=="number"&&(v=a==="end"?y*-1:y),u?{x:v*d,y:h*c}:{x:h*c,y:v*d}}const vc=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:s,middlewareData:a}=t,u=await gc(t,e);return s===((r=a.offset)==null?void 0:r.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:s}}}}},bc=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:b=>{let{x:w,y:x}=b;return{x:w,y:x}}},...u}=Ne(e,t),c={x:r,y:n},d=await yt(t,u),p=Se(Oe(o)),h=Tr(p);let v=c[h],y=c[p];if(i){const b=h==="y"?"top":"left",w=h==="y"?"bottom":"right",x=v+d[b],P=v-d[w];v=jr(x,v,P)}if(s){const b=p==="y"?"top":"left",w=p==="y"?"bottom":"right",x=y+d[b],P=y-d[w];y=jr(x,y,P)}const g=a.fn({...t,[h]:v,[p]:y});return{...g,data:{x:g.x-r,y:g.y-n,enabled:{[h]:i,[p]:s}}}}}},yc=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:u=!0,crossAxis:c=!0}=Ne(e,t),d={x:r,y:n},p=Se(o),h=Tr(p);let v=d[h],y=d[p];const g=Ne(a,t),b=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(u){const P=h==="y"?"height":"width",R=i.reference[h]-i.floating[P]+b.mainAxis,S=i.reference[h]+i.reference[P]-b.mainAxis;v<R?v=R:v>S&&(v=S)}if(c){var w,x;const P=h==="y"?"width":"height",R=To.has(Oe(o)),S=i.reference[p]-i.floating[P]+(R&&((w=s.offset)==null?void 0:w[p])||0)+(R?0:b.crossAxis),N=i.reference[p]+i.reference[P]+(R?0:((x=s.offset)==null?void 0:x[p])||0)-(R?b.crossAxis:0);y<S?y=S:y>N&&(y=N)}return{[h]:v,[p]:y}}}},wc=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:u=()=>{},...c}=Ne(e,t),d=await yt(t,c),p=Oe(o),h=it(o),v=Se(o)==="y",{width:y,height:g}=i.floating;let b,w;p==="top"||p==="bottom"?(b=p,w=h===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(w=p,b=h==="end"?"top":"bottom");const x=g-d.top-d.bottom,P=y-d.left-d.right,R=We(g-d[b],x),S=We(y-d[w],P),N=!t.middlewareData.shift;let k=R,B=S;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(B=P),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(k=x),N&&!h){const z=me(d.left,0),K=me(d.right,0),T=me(d.top,0),V=me(d.bottom,0);v?B=y-2*(z!==0||K!==0?z+K:me(d.left,d.right)):k=g-2*(T!==0||V!==0?T+V:me(d.top,d.bottom))}await u({...t,availableWidth:B,availableHeight:k});const G=await s.getDimensions(a.floating);return y!==G.width||g!==G.height?{reset:{rects:!0}}:{}}}};function Bt(){return typeof window<"u"}function at(e){return _o(e)?(e.nodeName||"").toLowerCase():"#document"}function he(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ke(e){var t;return(t=(_o(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function _o(e){return Bt()?e instanceof Node||e instanceof he(e).Node:!1}function we(e){return Bt()?e instanceof Element||e instanceof he(e).Element:!1}function Pe(e){return Bt()?e instanceof HTMLElement||e instanceof he(e).HTMLElement:!1}function Mo(e){return!Bt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof he(e).ShadowRoot}const xc=new Set(["inline","contents"]);function wt(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=xe(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!xc.has(o)}const Cc=new Set(["table","td","th"]);function Ec(e){return Cc.has(at(e))}const Rc=[":popover-open",":modal"];function zt(e){return Rc.some(t=>{try{return e.matches(t)}catch{return!1}})}const Sc=["transform","translate","scale","rotate","perspective"],kc=["transform","translate","scale","rotate","perspective","filter"],Pc=["paint","layout","strict","content"];function Ir(e){const t=Lr(),r=we(e)?xe(e):e;return Sc.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||kc.some(n=>(r.willChange||"").includes(n))||Pc.some(n=>(r.contain||"").includes(n))}function Ac(e){let t=$e(e);for(;Pe(t)&&!st(t);){if(Ir(t))return t;if(zt(t))return null;t=$e(t)}return null}function Lr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Nc=new Set(["html","body","#document"]);function st(e){return Nc.has(at(e))}function xe(e){return he(e).getComputedStyle(e)}function Vt(e){return we(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function $e(e){if(at(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Mo(e)&&e.host||ke(e);return Mo(t)?t.host:t}function Do(e){const t=$e(e);return st(t)?e.ownerDocument?e.ownerDocument.body:e.body:Pe(t)&&wt(t)?t:Do(t)}function xt(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=Do(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),s=he(o);if(i){const a=Fr(s);return t.concat(s,s.visualViewport||[],wt(o)?o:[],a&&r?xt(a):[])}return t.concat(o,xt(o,[],r))}function Fr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Io(e){const t=xe(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Pe(e),i=o?e.offsetWidth:r,s=o?e.offsetHeight:n,a=Lt(r)!==i||Lt(n)!==s;return a&&(r=i,n=s),{width:r,height:n,$:a}}function Wr(e){return we(e)?e:e.contextElement}function lt(e){const t=Wr(e);if(!Pe(t))return Re(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=Io(t);let s=(i?Lt(r.width):r.width)/n,a=(i?Lt(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Oc=Re(0);function Lo(e){const t=he(e);return!Lr()||!t.visualViewport?Oc:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function jc(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==he(e)?!1:t}function He(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),i=Wr(e);let s=Re(1);t&&(n?we(n)&&(s=lt(n)):s=lt(e));const a=jc(i,r,n)?Lo(i):Re(0);let u=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,d=o.width/s.x,p=o.height/s.y;if(i){const h=he(i),v=n&&we(n)?he(n):n;let y=h,g=Fr(y);for(;g&&n&&v!==y;){const b=lt(g),w=g.getBoundingClientRect(),x=xe(g),P=w.left+(g.clientLeft+parseFloat(x.paddingLeft))*b.x,R=w.top+(g.clientTop+parseFloat(x.paddingTop))*b.y;u*=b.x,c*=b.y,d*=b.x,p*=b.y,u+=P,c+=R,y=he(g),g=Fr(y)}}return $t({width:d,height:p,x:u,y:c})}function Ht(e,t){const r=Vt(e).scrollLeft;return t?t.left+r:He(ke(e)).left+r}function Fo(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-Ht(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function Tc(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i=o==="fixed",s=ke(n),a=t?zt(t.floating):!1;if(n===s||a&&i)return r;let u={scrollLeft:0,scrollTop:0},c=Re(1);const d=Re(0),p=Pe(n);if((p||!p&&!i)&&((at(n)!=="body"||wt(s))&&(u=Vt(n)),Pe(n))){const v=He(n);c=lt(n),d.x=v.x+n.clientLeft,d.y=v.y+n.clientTop}const h=s&&!p&&!i?Fo(s,u):Re(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-u.scrollLeft*c.x+d.x+h.x,y:r.y*c.y-u.scrollTop*c.y+d.y+h.y}}function _c(e){return Array.from(e.getClientRects())}function Mc(e){const t=ke(e),r=Vt(e),n=e.ownerDocument.body,o=me(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=me(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+Ht(e);const a=-r.scrollTop;return xe(n).direction==="rtl"&&(s+=me(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:s,y:a}}const Wo=25;function Dc(e,t){const r=he(e),n=ke(e),o=r.visualViewport;let i=n.clientWidth,s=n.clientHeight,a=0,u=0;if(o){i=o.width,s=o.height;const d=Lr();(!d||d&&t==="fixed")&&(a=o.offsetLeft,u=o.offsetTop)}const c=Ht(n);if(c<=0){const d=n.ownerDocument,p=d.body,h=getComputedStyle(p),v=d.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,y=Math.abs(n.clientWidth-p.clientWidth-v);y<=Wo&&(i-=y)}else c<=Wo&&(i+=c);return{width:i,height:s,x:a,y:u}}const Ic=new Set(["absolute","fixed"]);function Lc(e,t){const r=He(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=Pe(e)?lt(e):Re(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,u=o*i.x,c=n*i.y;return{width:s,height:a,x:u,y:c}}function $o(e,t,r){let n;if(t==="viewport")n=Dc(e,r);else if(t==="document")n=Mc(ke(e));else if(we(t))n=Lc(t,r);else{const o=Lo(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return $t(n)}function Bo(e,t){const r=$e(e);return r===t||!we(r)||st(r)?!1:xe(r).position==="fixed"||Bo(r,t)}function Fc(e,t){const r=t.get(e);if(r)return r;let n=xt(e,[],!1).filter(a=>we(a)&&at(a)!=="body"),o=null;const i=xe(e).position==="fixed";let s=i?$e(e):e;for(;we(s)&&!st(s);){const a=xe(s),u=Ir(s);!u&&a.position==="fixed"&&(o=null),(i?!u&&!o:!u&&a.position==="static"&&!!o&&Ic.has(o.position)||wt(s)&&!u&&Bo(e,s))?n=n.filter(d=>d!==s):o=a,s=$e(s)}return t.set(e,n),n}function Wc(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const s=[...r==="clippingAncestors"?zt(t)?[]:Fc(t,this._c):[].concat(r),n],a=s[0],u=s.reduce((c,d)=>{const p=$o(t,d,o);return c.top=me(p.top,c.top),c.right=We(p.right,c.right),c.bottom=We(p.bottom,c.bottom),c.left=me(p.left,c.left),c},$o(t,a,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function $c(e){const{width:t,height:r}=Io(e);return{width:t,height:r}}function Bc(e,t,r){const n=Pe(t),o=ke(t),i=r==="fixed",s=He(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const u=Re(0);function c(){u.x=Ht(o)}if(n||!n&&!i)if((at(t)!=="body"||wt(o))&&(a=Vt(t)),n){const v=He(t,!0,i,t);u.x=v.x+t.clientLeft,u.y=v.y+t.clientTop}else o&&c();i&&!n&&o&&c();const d=o&&!n&&!i?Fo(o,a):Re(0),p=s.left+a.scrollLeft-u.x-d.x,h=s.top+a.scrollTop-u.y-d.y;return{x:p,y:h,width:s.width,height:s.height}}function $r(e){return xe(e).position==="static"}function zo(e,t){if(!Pe(e)||xe(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return ke(e)===r&&(r=r.ownerDocument.body),r}function Vo(e,t){const r=he(e);if(zt(e))return r;if(!Pe(e)){let o=$e(e);for(;o&&!st(o);){if(we(o)&&!$r(o))return o;o=$e(o)}return r}let n=zo(e,t);for(;n&&Ec(n)&&$r(n);)n=zo(n,t);return n&&st(n)&&$r(n)&&!Ir(n)?r:n||Ac(e)||r}const zc=async function(e){const t=this.getOffsetParent||Vo,r=this.getDimensions,n=await r(e.floating);return{reference:Bc(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Vc(e){return xe(e).direction==="rtl"}const Hc={convertOffsetParentRelativeRectToViewportRelativeRect:Tc,getDocumentElement:ke,getClippingRect:Wc,getOffsetParent:Vo,getElementRects:zc,getClientRects:_c,getDimensions:$c,getScale:lt,isElement:we,isRTL:Vc};function Ho(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Uc(e,t){let r=null,n;const o=ke(e);function i(){var a;clearTimeout(n),(a=r)==null||a.disconnect(),r=null}function s(a,u){a===void 0&&(a=!1),u===void 0&&(u=1),i();const c=e.getBoundingClientRect(),{left:d,top:p,width:h,height:v}=c;if(a||t(),!h||!v)return;const y=Ft(p),g=Ft(o.clientWidth-(d+h)),b=Ft(o.clientHeight-(p+v)),w=Ft(d),P={rootMargin:-y+"px "+-g+"px "+-b+"px "+-w+"px",threshold:me(0,We(1,u))||1};let R=!0;function S(N){const k=N[0].intersectionRatio;if(k!==u){if(!R)return s();k?s(!1,k):n=setTimeout(()=>{s(!1,1e-7)},1e3)}k===1&&!Ho(c,e.getBoundingClientRect())&&s(),R=!1}try{r=new IntersectionObserver(S,{...P,root:o.ownerDocument})}catch{r=new IntersectionObserver(S,P)}r.observe(e)}return s(!0),i}function Gc(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:u=!1}=n,c=Wr(e),d=o||i?[...c?xt(c):[],...xt(t)]:[];d.forEach(w=>{o&&w.addEventListener("scroll",r,{passive:!0}),i&&w.addEventListener("resize",r)});const p=c&&a?Uc(c,r):null;let h=-1,v=null;s&&(v=new ResizeObserver(w=>{let[x]=w;x&&x.target===c&&v&&(v.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var P;(P=v)==null||P.observe(t)})),r()}),c&&!u&&v.observe(c),v.observe(t));let y,g=u?He(e):null;u&&b();function b(){const w=He(e);g&&!Ho(g,w)&&r(),g=w,y=requestAnimationFrame(b)}return r(),()=>{var w;d.forEach(x=>{o&&x.removeEventListener("scroll",r),i&&x.removeEventListener("resize",r)}),p==null||p(),(w=v)==null||w.disconnect(),v=null,u&&cancelAnimationFrame(y)}}const Yc=vc,Kc=bc,Xc=mc,qc=wc,Zc=hc,Uo=pc,Jc=yc,Qc=(e,t,r)=>{const n=new Map,o={platform:Hc,...r},i={...o.platform,_c:n};return fc(e,t,{...o,platform:i})};var eu=typeof document<"u",tu=function(){},Ut=eu?le.useLayoutEffect:tu;function Gt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!Gt(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const i=o[n];if(!(i==="_owner"&&e.$$typeof)&&!Gt(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Go(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Yo(e,t){const r=Go(e);return Math.round(t*r)/r}function Br(e){const t=l.useRef(e);return Ut(()=>{t.current=e}),t}function ru(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:u,open:c}=e,[d,p]=l.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[h,v]=l.useState(n);Gt(h,n)||v(n);const[y,g]=l.useState(null),[b,w]=l.useState(null),x=l.useCallback(D=>{D!==N.current&&(N.current=D,g(D))},[]),P=l.useCallback(D=>{D!==k.current&&(k.current=D,w(D))},[]),R=i||y,S=s||b,N=l.useRef(null),k=l.useRef(null),B=l.useRef(d),G=u!=null,z=Br(u),K=Br(o),T=Br(c),V=l.useCallback(()=>{if(!N.current||!k.current)return;const D={placement:t,strategy:r,middleware:h};K.current&&(D.platform=K.current),Qc(N.current,k.current,D).then(Q=>{const se={...Q,isPositioned:T.current!==!1};L.current&&!Gt(B.current,se)&&(B.current=se,Qr.flushSync(()=>{p(se)}))})},[h,t,r,K,T]);Ut(()=>{c===!1&&B.current.isPositioned&&(B.current.isPositioned=!1,p(D=>({...D,isPositioned:!1})))},[c]);const L=l.useRef(!1);Ut(()=>(L.current=!0,()=>{L.current=!1}),[]),Ut(()=>{if(R&&(N.current=R),S&&(k.current=S),R&&S){if(z.current)return z.current(R,S,V);V()}},[R,S,V,z,G]);const J=l.useMemo(()=>({reference:N,floating:k,setReference:x,setFloating:P}),[x,P]),Y=l.useMemo(()=>({reference:R,floating:S}),[R,S]),Z=l.useMemo(()=>{const D={position:r,left:0,top:0};if(!Y.floating)return D;const Q=Yo(Y.floating,d.x),se=Yo(Y.floating,d.y);return a?{...D,transform:"translate("+Q+"px, "+se+"px)",...Go(Y.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:Q,top:se}},[r,a,Y.floating,d.x,d.y]);return l.useMemo(()=>({...d,update:V,refs:J,elements:Y,floatingStyles:Z}),[d,V,J,Y,Z])}const nu=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?Uo({element:n.current,padding:o}).fn(r):{}:n?Uo({element:n,padding:o}).fn(r):{}}}},ou=(e,t)=>({...Yc(e),options:[e,t]}),iu=(e,t)=>({...Kc(e),options:[e,t]}),au=(e,t)=>({...Jc(e),options:[e,t]}),su=(e,t)=>({...Xc(e),options:[e,t]}),lu=(e,t)=>({...qc(e),options:[e,t]}),cu=(e,t)=>({...Zc(e),options:[e,t]}),uu=(e,t)=>({...nu(e),options:[e,t]});var du="Arrow",Ko=l.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...i}=e;return m.jsx(ue.svg,{...i,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:m.jsx("polygon",{points:"0,0 30,0 15,10"})})});Ko.displayName=du;var fu=Ko;function pu(e){const[t,r]=l.useState(void 0);return De(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,a;if("borderBoxSize"in i){const u=i.borderBoxSize,c=Array.isArray(u)?u[0]:u;s=c.inlineSize,a=c.blockSize}else s=e.offsetWidth,a=e.offsetHeight;r({width:s,height:a})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var zr="Popper",[Xo,qo]=ir(zr),[mu,Zo]=Xo(zr),Jo=e=>{const{__scopePopper:t,children:r}=e,[n,o]=l.useState(null);return m.jsx(mu,{scope:t,anchor:n,onAnchorChange:o,children:r})};Jo.displayName=zr;var Qo="PopperAnchor",ei=l.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,i=Zo(Qo,r),s=l.useRef(null),a=be(t,s),u=l.useRef(null);return l.useEffect(()=>{const c=u.current;u.current=(n==null?void 0:n.current)||s.current,c!==u.current&&i.onAnchorChange(u.current)}),n?null:m.jsx(ue.div,{...o,ref:a})});ei.displayName=Qo;var Vr="PopperContent",[hu,gu]=Xo(Vr),ti=l.forwardRef((e,t)=>{var X,ne,re,ge,Kt,Et;const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:u=!0,collisionBoundary:c=[],collisionPadding:d=0,sticky:p="partial",hideWhenDetached:h=!1,updatePositionStrategy:v="optimized",onPlaced:y,...g}=e,b=Zo(Vr,r),[w,x]=l.useState(null),P=be(t,Ue=>x(Ue)),[R,S]=l.useState(null),N=pu(R),k=(N==null?void 0:N.width)??0,B=(N==null?void 0:N.height)??0,G=n+(i!=="center"?"-"+i:""),z=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},K=Array.isArray(c)?c:[c],T=K.length>0,V={padding:z,boundary:K.filter(bu),altBoundary:T},{refs:L,floatingStyles:J,placement:Y,isPositioned:Z,middlewareData:D}=ru({strategy:"fixed",placement:G,whileElementsMounted:(...Ue)=>Gc(...Ue,{animationFrame:v==="always"}),elements:{reference:b.anchor},middleware:[ou({mainAxis:o+B,alignmentAxis:s}),u&&iu({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?au():void 0,...V}),u&&su({...V}),lu({...V,apply:({elements:Ue,rects:Xt,availableWidth:ut,availableHeight:Ge})=>{const{width:qt,height:Zt}=Xt.reference,je=Ue.floating.style;je.setProperty("--radix-popper-available-width",`${ut}px`),je.setProperty("--radix-popper-available-height",`${Ge}px`),je.setProperty("--radix-popper-anchor-width",`${qt}px`),je.setProperty("--radix-popper-anchor-height",`${Zt}px`)}}),R&&uu({element:R,padding:a}),yu({arrowWidth:k,arrowHeight:B}),h&&cu({strategy:"referenceHidden",...V})]}),[Q,se]=oi(Y),ie=qe(y);De(()=>{Z&&(ie==null||ie())},[Z,ie]);const E=(X=D.arrow)==null?void 0:X.x,_=(ne=D.arrow)==null?void 0:ne.y,F=((re=D.arrow)==null?void 0:re.centerOffset)!==0,[j,U]=l.useState();return De(()=>{w&&U(window.getComputedStyle(w).zIndex)},[w]),m.jsx("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:Z?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:j,"--radix-popper-transform-origin":[(ge=D.transformOrigin)==null?void 0:ge.x,(Kt=D.transformOrigin)==null?void 0:Kt.y].join(" "),...((Et=D.hide)==null?void 0:Et.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:m.jsx(hu,{scope:r,placedSide:Q,onArrowChange:S,arrowX:E,arrowY:_,shouldHideArrow:F,children:m.jsx(ue.div,{"data-side":Q,"data-align":se,...g,ref:P,style:{...g.style,animation:Z?void 0:"none"}})})})});ti.displayName=Vr;var ri="PopperArrow",vu={top:"bottom",right:"left",bottom:"top",left:"right"},ni=l.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,i=gu(ri,n),s=vu[i.placedSide];return m.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:m.jsx(fu,{...o,ref:r,style:{...o.style,display:"block"}})})});ni.displayName=ri;function bu(e){return e!==null}var yu=e=>({name:"transformOrigin",options:e,fn(t){var b,w,x;const{placement:r,rects:n,middlewareData:o}=t,s=((b=o.arrow)==null?void 0:b.centerOffset)!==0,a=s?0:e.arrowWidth,u=s?0:e.arrowHeight,[c,d]=oi(r),p={start:"0%",center:"50%",end:"100%"}[d],h=(((w=o.arrow)==null?void 0:w.x)??0)+a/2,v=(((x=o.arrow)==null?void 0:x.y)??0)+u/2;let y="",g="";return c==="bottom"?(y=s?p:`${h}px`,g=`${-u}px`):c==="top"?(y=s?p:`${h}px`,g=`${n.floating.height+u}px`):c==="right"?(y=`${-u}px`,g=s?p:`${v}px`):c==="left"&&(y=`${n.floating.width+u}px`,g=s?p:`${v}px`),{data:{x:y,y:g}}}});function oi(e){const[t,r="center"]=e.split("-");return[t,r]}var wu=Jo,ii=ei,xu=ti,Cu=ni,Yt="Popover",[ai]=ir(Yt,[qo]),Ct=qo(),[Eu,Be]=ai(Yt),si=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:o,onOpenChange:i,modal:s=!1}=e,a=Ct(t),u=l.useRef(null),[c,d]=l.useState(!1),[p,h]=Nn({prop:n,defaultProp:o??!1,onChange:i,caller:Yt});return m.jsx(wu,{...a,children:m.jsx(Eu,{scope:t,contentId:Ce(),triggerRef:u,open:p,onOpenChange:h,onOpenToggle:l.useCallback(()=>h(v=>!v),[h]),hasCustomAnchor:c,onCustomAnchorAdd:l.useCallback(()=>d(!0),[]),onCustomAnchorRemove:l.useCallback(()=>d(!1),[]),modal:s,children:r})})};si.displayName=Yt;var li="PopoverAnchor",Ru=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Be(li,r),i=Ct(r),{onCustomAnchorAdd:s,onCustomAnchorRemove:a}=o;return l.useEffect(()=>(s(),()=>a()),[s,a]),m.jsx(ii,{...i,...n,ref:t})});Ru.displayName=li;var ci="PopoverTrigger",ui=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Be(ci,r),i=Ct(r),s=be(t,o.triggerRef),a=m.jsx(ue.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":hi(o.open),...n,ref:s,onClick:pe(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?a:m.jsx(ii,{asChild:!0,...i,children:a})});ui.displayName=ci;var Hr="PopoverPortal",[Su,ku]=ai(Hr,{forceMount:void 0}),di=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,i=Be(Hr,t);return m.jsx(Su,{scope:t,forceMount:r,children:m.jsx(Ze,{present:r||i.open,children:m.jsx(fr,{asChild:!0,container:o,children:n})})})};di.displayName=Hr;var ct="PopoverContent",fi=l.forwardRef((e,t)=>{const r=ku(ct,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,i=Be(ct,e.__scopePopover);return m.jsx(Ze,{present:n||i.open,children:i.modal?m.jsx(Au,{...o,ref:t}):m.jsx(Nu,{...o,ref:t})})});fi.displayName=ct;var Pu=ar("PopoverContent.RemoveScroll"),Au=l.forwardRef((e,t)=>{const r=Be(ct,e.__scopePopover),n=l.useRef(null),o=be(t,n),i=l.useRef(!1);return l.useEffect(()=>{const s=n.current;if(s)return eo(s)},[]),m.jsx(br,{as:Pu,allowPinchZoom:!0,children:m.jsx(pi,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:pe(e.onCloseAutoFocus,s=>{var a;s.preventDefault(),i.current||(a=r.triggerRef.current)==null||a.focus()}),onPointerDownOutside:pe(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,u=a.button===0&&a.ctrlKey===!0,c=a.button===2||u;i.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:pe(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),Nu=l.forwardRef((e,t)=>{const r=Be(ct,e.__scopePopover),n=l.useRef(!1),o=l.useRef(!1);return m.jsx(pi,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var s,a;(s=e.onCloseAutoFocus)==null||s.call(e,i),i.defaultPrevented||(n.current||(a=r.triggerRef.current)==null||a.focus(),i.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:i=>{var u,c;(u=e.onInteractOutside)==null||u.call(e,i),i.defaultPrevented||(n.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;((c=r.triggerRef.current)==null?void 0:c.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),pi=l.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEscapeKeyDown:a,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,...p}=e,h=Be(ct,r),v=Ct(r);return Wn(),m.jsx(dr,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:i,children:m.jsx(lr,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:d,onEscapeKeyDown:a,onPointerDownOutside:u,onFocusOutside:c,onDismiss:()=>h.onOpenChange(!1),children:m.jsx(xu,{"data-state":hi(h.open),role:"dialog",id:h.contentId,...v,...p,ref:t,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),mi="PopoverClose",Ou=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Be(mi,r);return m.jsx(ue.button,{type:"button",...n,ref:t,onClick:pe(e.onClick,()=>o.onOpenChange(!1))})});Ou.displayName=mi;var ju="PopoverArrow",Tu=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Ct(r);return m.jsx(Cu,{...o,...n,ref:t})});Tu.displayName=ju;function hi(e){return e?"open":"closed"}var _u=si,Mu=ui,Du=di,gi=fi;const vi=_u,bi=Mu,Ur=l.forwardRef(({className:e,align:t="center",sideOffset:r=4,...n},o)=>m.jsx(Du,{children:m.jsx(gi,{ref:o,align:t,sideOffset:r,className:$("z-50 w-72 rounded-md border border-border_primary bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));Ur.displayName=gi.displayName;function Iu({options:e,value:t,onChange:r,placeholder:n="Select...",searchPlaceholder:o="Search...",emptyMessage:i="No results found.",className:s,disabled:a}){const[u,c]=le.useState(!1),d=e.find(p=>String(p.value)===String(t));return m.jsxs(vi,{open:u,onOpenChange:c,children:[m.jsx(bi,{asChild:!0,children:m.jsxs(St,{variant:"outline",role:"combobox",disabled:a,"aria-expanded":u,className:$("w-full justify-between bg-background border-border hover:bg-muted hover:text-foreground text-foreground",s),children:[m.jsx("span",{className:"truncate",children:d?d.label:n}),m.jsx(Wl,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),m.jsx(Ur,{className:"w-[--radix-popover-trigger-width] p-0 border-border bg-popover",children:m.jsxs(kr,{className:"bg-transparent",children:[m.jsx(Pr,{placeholder:o,className:"h-9"}),m.jsx(Ar,{children:i}),m.jsx(Nr,{className:"max-h-60 overflow-auto p-1",children:e.map(p=>m.jsxs(Or,{value:p.label,onSelect:()=>{r(String(p.value)),c(!1)},className:"aria-selected:bg-accent aria-selected:text-accent-foreground rounded-md cursor-pointer",children:[m.jsx(Il,{className:$("mr-2 h-4 w-4 text-primary",String(t)===String(p.value)?"opacity-100":"opacity-0")}),m.jsx("span",{className:"truncate",children:p.label})]},p.value))})]})})]})}const yi=l.forwardRef(({className:e,...t},r)=>m.jsx("div",{className:"relative w-full overflow-auto",children:m.jsx("table",{ref:r,className:$("w-full caption-bottom text-sm",e),...t})}));yi.displayName="Table";const wi=l.forwardRef(({className:e,...t},r)=>m.jsx("thead",{ref:r,className:$("[&_tr]:border-b",e),...t}));wi.displayName="TableHeader";const xi=l.forwardRef(({className:e,...t},r)=>m.jsx("tbody",{ref:r,className:$("[&_tr:last-child]:border-0",e),...t}));xi.displayName="TableBody";const Ci=l.forwardRef(({className:e,...t},r)=>m.jsx("tfoot",{ref:r,className:$("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));Ci.displayName="TableFooter";const Ei=l.forwardRef(({className:e,...t},r)=>m.jsx("tr",{ref:r,className:$("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));Ei.displayName="TableRow";const Ri=l.forwardRef(({className:e,...t},r)=>m.jsx("th",{ref:r,className:$("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[0.5px]",e),...t}));Ri.displayName="TableHead";const Si=l.forwardRef(({className:e,...t},r)=>m.jsx("td",{ref:r,className:$("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[0.5px]",e),...t}));Si.displayName="TableCell";const ki=l.forwardRef(({className:e,...t},r)=>m.jsx("caption",{ref:r,className:$("mt-4 text-sm text-muted-foreground",e),...t}));ki.displayName="TableCaption";function Lu({items:e,activeRoute:t,onNavigate:r,collapsed:n=!1,onToggleCollapse:o,footer:i,children:s,className:a}){const u=({item:c})=>{if(c.divider)return m.jsx("div",{className:"my-2 border-b border-white/5 opacity-50"});const d=c.icon,p=c.route&&t===c.route;return m.jsxs(St,{variant:"ghost",className:$("w-full justify-start gap-3 relative transition-all duration-200 border",n&&"justify-center px-0",p?"bg-primary/10 text-primary border-primary/50 shadow-[inset_3px_0_0_0_var(--primary)]":"border-transparent text-muted-foreground hover:text-foreground hover:bg-muted",a),onClick:()=>{c.onClick&&c.onClick(),c.route&&r&&r(c.route)},title:n?c.label:void 0,children:[m.jsx(d,{className:$("h-5 w-5 shrink-0",p?"text-primary drop-shadow-[0_0_8px_rgba(0,227,150,0.5)]":"")}),!n&&m.jsx("span",{className:$("truncate font-medium",p?"text-foreground":"text-muted-foreground"),children:c.label}),n&&p&&m.jsx("div",{className:"absolute inset-0 bg-primary/10 rounded-md z-[-1]"})]})};return m.jsxs("div",{className:$("h-full flex flex-col items-center py-4 border-r border-border transition-all duration-300 bg-card",n?"w-16 px-2":"w-60 px-3",a),children:[m.jsxs("div",{className:"flex-1 flex flex-col gap-1 w-full overflow-y-auto pr-1 no-scrollbar",children:[e.map((c,d)=>m.jsx(u,{item:c},d)),s]}),m.jsxs("div",{className:"mt-auto w-full flex flex-col gap-2 pt-4 border-t border-border",children:[i,o&&m.jsx("button",{onClick:o,className:$("flex items-center justify-center p-2 rounded-lg hover:bg-muted transition-colors text-muted-foreground hover:text-foreground w-full mt-2"),children:n?m.jsx(Fl,{className:"h-5 w-5"}):m.jsx(Ll,{className:"h-5 w-5"})})]})]})}O.Badge=Pa,O.BanIcon=Ql,O.BringIcon=Hl,O.Button=St,O.Card=wn,O.CardContent=Rn,O.CardDescription=En,O.CardFooter=Sn,O.CardHeader=xn,O.CardTitle=Cn,O.ClothingIcon=Xl,O.Command=kr,O.CommandEmpty=Ar,O.CommandGroup=Nr,O.CommandInput=Pr,O.CommandItem=Or,O.CommandList=Co,O.CommandSeparator=Eo,O.CommandShortcut=Ro,O.Dialog=zl,O.EyeIcon=ql,O.Input=ka,O.KickIcon=Jl,O.Modal=So,O.MoneyIcon=Kl,O.PageHeader=ec,O.Popover=vi,O.PopoverContent=Ur,O.PopoverTrigger=bi,O.ReviveIcon=Gl,O.SelectSearch=Iu,O.SendBackIcon=Ul,O.Sidebar=Lu,O.Table=yi,O.TableBody=xi,O.TableCaption=ki,O.TableCell=Si,O.TableFooter=Ci,O.TableHead=Ri,O.TableHeader=wi,O.TableRow=Ei,O.TeleportIcon=Vl,O.VerifyIcon=Yl,O.WarnIcon=Zl,O.badgeVariants=yn,O.buttonVariants=bn,O.cn=$,Object.defineProperty(O,Symbol.toStringTag,{value:"Module"})});
114
+ */const Bl=ot("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),kr=l.forwardRef(({className:e,...t},r)=>m.jsx(de,{ref:r,className:$("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));kr.displayName=de.displayName;const Pr=l.forwardRef(({className:e,...t},r)=>m.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[m.jsx($l,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),m.jsx(de.Input,{ref:r,className:$("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));Pr.displayName=de.Input.displayName;const Co=l.forwardRef(({className:e,...t},r)=>m.jsx(de.List,{ref:r,className:$("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));Co.displayName=de.List.displayName;const Ar=l.forwardRef((e,t)=>m.jsx(de.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));Ar.displayName=de.Empty.displayName;const Nr=l.forwardRef(({className:e,...t},r)=>m.jsx(de.Group,{ref:r,className:$("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));Nr.displayName=de.Group.displayName;const Eo=l.forwardRef(({className:e,...t},r)=>m.jsx(de.Separator,{ref:r,className:$("-mx-1 h-px bg-border",e),...t}));Eo.displayName=de.Separator.displayName;const Or=l.forwardRef(({className:e,...t},r)=>m.jsx(de.Item,{ref:r,className:$("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground",e),...t}));Or.displayName=de.Item.displayName;const Ro=({className:e,...t})=>m.jsx("span",{className:$("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});Ro.displayName="CommandShortcut";function So({children:e,onClose:t,className:r}){return le.useEffect(()=>{function n(o){(o.key==="Escape"||o.key==="Esc")&&(t==null||t())}return window.addEventListener("keydown",n),()=>window.removeEventListener("keydown",n)},[t]),le.useEffect(()=>{try{document.body.dataset.psModalOpen="true"}catch{}return()=>{try{delete document.body.dataset.psModalOpen}catch{}}},[]),m.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[m.jsx("div",{className:"absolute inset-0 bg-background/80 backdrop-blur-sm transition-opacity",onClick:t}),m.jsx("div",{className:$("relative w-full max-w-sm transform rounded-xl bg-card border border-border p-6 shadow-2xl transition-all","animate-in fade-in zoom-in-95 duration-200",r),children:e})]})}function zl({title:e,children:t,onClose:r,className:n}){return m.jsxs(So,{onClose:r,className:n,children:[m.jsxs("div",{className:"flex items-center justify-between mb-6",children:[m.jsx("h3",{className:"text-xl font-bold tracking-tight text-foreground",children:e}),m.jsx("button",{onClick:r,className:"text-muted-foreground hover:text-foreground transition-colors",children:m.jsx(Bl,{className:"w-5 h-5"})})]}),m.jsx("div",{children:t})]})}const Vl=(e={})=>m.jsxs("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),m.jsx("circle",{cx:"12",cy:"9",r:"2.5",fill:"currentColor"})]}),Hl=(e={})=>m.jsxs("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{d:"M21 15v4a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),m.jsx("path",{d:"M7 10l5-5 5 5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),m.jsx("path",{d:"M12 5v12",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),Ul=(e={})=>m.jsxs("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{d:"M21 12H7",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),m.jsx("path",{d:"M11 16l-4-4 4-4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),Gl=(e={})=>m.jsxs("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{d:"M21 12a9 9 0 11-3-6.6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),m.jsx("path",{d:"M12 8v8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),m.jsx("path",{d:"M8 12h8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),Yl=(e={})=>m.jsx("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M20 6L9 17l-5-5",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})}),Kl=(e={})=>m.jsxs("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("rect",{x:"2",y:"7",width:"20",height:"14",rx:"2",stroke:"currentColor",strokeWidth:"1.5"}),m.jsx("path",{d:"M12 11v6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),m.jsx("circle",{cx:"12",cy:"10",r:"1.5",fill:"currentColor"})]}),Xl=(e={})=>m.jsxs("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{d:"M16 3l3 3v11a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V6l3-3",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),m.jsx("path",{d:"M9 8h6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),ql=(e={})=>m.jsxs("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{d:"M2 12s4-7 10-7 10 7 10 7-4 7-10 7S2 12 2 12z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),m.jsx("circle",{cx:"12",cy:"12",r:"3",stroke:"currentColor",strokeWidth:"1.5"})]}),Zl=(e={})=>m.jsxs("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{d:"M10.29 3.86L1.82 18a2 2 0 001.71 3h16.94a2 2 0 001.71-3L13.71 3.86a2 2 0 00-3.42 0z",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"}),m.jsx("path",{d:"M12 9v4",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"}),m.jsx("circle",{cx:"12",cy:"17",r:"0.8",fill:"currentColor"})]}),Jl=(e={})=>m.jsxs("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{d:"M20 21v-2a4 4 0 00-4-4H8a4 4 0 00-4 4v2",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),m.jsx("circle",{cx:"12",cy:"7",r:"4",stroke:"currentColor",strokeWidth:"1.5"}),m.jsx("path",{d:"M15 10l-6-6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),Ql=(e={})=>m.jsxs("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("circle",{cx:"12",cy:"12",r:"9",stroke:"currentColor",strokeWidth:"1.5"}),m.jsx("path",{d:"M4.93 4.93l14.14 14.14",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]});function ec({title:e,icon:t,count:r,countLabel:n,children:o,className:i,...s}){return m.jsxs("div",{className:$("w-full h-auto min-h-[5rem] border-b border-border flex items-center justify-between py-4 px-6 bg-card/30 shrink-0",i),...s,children:[m.jsxs("div",{className:"flex items-center gap-4",children:[m.jsxs("div",{className:"flex items-center gap-3",children:[m.jsx(t,{className:"w-6 h-6 text-primary"}),m.jsx("h1",{className:"text-xl font-bold tracking-tight text-foreground",children:e})]}),r!==void 0&&m.jsxs("div",{className:"bg-primary/20 text-primary text-xs font-bold px-2 py-0.5 rounded-full",children:[r," ",(n||"Records").toUpperCase()]})]}),m.jsx("div",{className:"flex items-center gap-3",children:o})]})}const tc=["top","right","bottom","left"],We=Math.min,me=Math.max,Lt=Math.round,Ft=Math.floor,Re=e=>({x:e,y:e}),rc={left:"right",right:"left",bottom:"top",top:"bottom"},nc={start:"end",end:"start"};function jr(e,t,r){return me(e,We(t,r))}function Ne(e,t){return typeof e=="function"?e(t):e}function Oe(e){return e.split("-")[0]}function it(e){return e.split("-")[1]}function Tr(e){return e==="x"?"y":"x"}function _r(e){return e==="y"?"height":"width"}const oc=new Set(["top","bottom"]);function Se(e){return oc.has(Oe(e))?"y":"x"}function Mr(e){return Tr(Se(e))}function ic(e,t,r){r===void 0&&(r=!1);const n=it(e),o=Mr(e),i=_r(o);let s=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Wt(s)),[s,Wt(s)]}function ac(e){const t=Wt(e);return[Dr(e),t,Dr(t)]}function Dr(e){return e.replace(/start|end/g,t=>nc[t])}const ko=["left","right"],Po=["right","left"],sc=["top","bottom"],lc=["bottom","top"];function cc(e,t,r){switch(e){case"top":case"bottom":return r?t?Po:ko:t?ko:Po;case"left":case"right":return t?sc:lc;default:return[]}}function uc(e,t,r,n){const o=it(e);let i=cc(Oe(e),r==="start",n);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Dr)))),i}function Wt(e){return e.replace(/left|right|bottom|top/g,t=>rc[t])}function dc(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ao(e){return typeof e!="number"?dc(e):{top:e,right:e,bottom:e,left:e}}function $t(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function No(e,t,r){let{reference:n,floating:o}=e;const i=Se(t),s=Mr(t),a=_r(s),u=Oe(t),c=i==="y",d=n.x+n.width/2-o.width/2,p=n.y+n.height/2-o.height/2,h=n[a]/2-o[a]/2;let v;switch(u){case"top":v={x:d,y:n.y-o.height};break;case"bottom":v={x:d,y:n.y+n.height};break;case"right":v={x:n.x+n.width,y:p};break;case"left":v={x:n.x-o.width,y:p};break;default:v={x:n.x,y:n.y}}switch(it(t)){case"start":v[s]-=h*(r&&c?-1:1);break;case"end":v[s]+=h*(r&&c?-1:1);break}return v}const fc=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:s}=r,a=i.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:p}=No(c,n,u),h=n,v={},y=0;for(let g=0;g<a.length;g++){const{name:b,fn:w}=a[g],{x,y:P,data:R,reset:S}=await w({x:d,y:p,initialPlacement:n,placement:h,strategy:o,middlewareData:v,rects:c,platform:s,elements:{reference:e,floating:t}});d=x??d,p=P??p,v={...v,[b]:{...v[b],...R}},S&&y<=50&&(y++,typeof S=="object"&&(S.placement&&(h=S.placement),S.rects&&(c=S.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):S.rects),{x:d,y:p}=No(c,h,u)),g=-1)}return{x:d,y:p,placement:h,strategy:o,middlewareData:v}};async function yt(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:i,rects:s,elements:a,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:h=!1,padding:v=0}=Ne(t,e),y=Ao(v),b=a[h?p==="floating"?"reference":"floating":p],w=$t(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(b)))==null||r?b:b.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:u})),x=p==="floating"?{x:n,y:o,width:s.floating.width,height:s.floating.height}:s.reference,P=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),R=await(i.isElement==null?void 0:i.isElement(P))?await(i.getScale==null?void 0:i.getScale(P))||{x:1,y:1}:{x:1,y:1},S=$t(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:P,strategy:u}):x);return{top:(w.top-S.top+y.top)/R.y,bottom:(S.bottom-w.bottom+y.bottom)/R.y,left:(w.left-S.left+y.left)/R.x,right:(S.right-w.right+y.right)/R.x}}const pc=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:i,platform:s,elements:a,middlewareData:u}=t,{element:c,padding:d=0}=Ne(e,t)||{};if(c==null)return{};const p=Ao(d),h={x:r,y:n},v=Mr(o),y=_r(v),g=await s.getDimensions(c),b=v==="y",w=b?"top":"left",x=b?"bottom":"right",P=b?"clientHeight":"clientWidth",R=i.reference[y]+i.reference[v]-h[v]-i.floating[y],S=h[v]-i.reference[v],N=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let k=N?N[P]:0;(!k||!await(s.isElement==null?void 0:s.isElement(N)))&&(k=a.floating[P]||i.floating[y]);const B=R/2-S/2,G=k/2-g[y]/2-1,z=We(p[w],G),K=We(p[x],G),T=z,V=k-g[y]-K,L=k/2-g[y]/2+B,J=jr(T,L,V),Y=!u.arrow&&it(o)!=null&&L!==J&&i.reference[y]/2-(L<T?z:K)-g[y]/2<0,Z=Y?L<T?L-T:L-V:0;return{[v]:h[v]+Z,data:{[v]:J,centerOffset:L-J-Z,...Y&&{alignmentOffset:Z}},reset:Y}}}),mc=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:u,elements:c}=t,{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:h,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:g=!0,...b}=Ne(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const w=Oe(o),x=Se(a),P=Oe(a)===a,R=await(u.isRTL==null?void 0:u.isRTL(c.floating)),S=h||(P||!g?[Wt(a)]:ac(a)),N=y!=="none";!h&&N&&S.push(...uc(a,g,y,R));const k=[a,...S],B=await yt(t,b),G=[];let z=((n=i.flip)==null?void 0:n.overflows)||[];if(d&&G.push(B[w]),p){const L=ic(o,s,R);G.push(B[L[0]],B[L[1]])}if(z=[...z,{placement:o,overflows:G}],!G.every(L=>L<=0)){var K,T;const L=(((K=i.flip)==null?void 0:K.index)||0)+1,J=k[L];if(J&&(!(p==="alignment"?x!==Se(J):!1)||z.every(D=>Se(D.placement)===x?D.overflows[0]>0:!0)))return{data:{index:L,overflows:z},reset:{placement:J}};let Y=(T=z.filter(Z=>Z.overflows[0]<=0).sort((Z,D)=>Z.overflows[1]-D.overflows[1])[0])==null?void 0:T.placement;if(!Y)switch(v){case"bestFit":{var V;const Z=(V=z.filter(D=>{if(N){const Q=Se(D.placement);return Q===x||Q==="y"}return!0}).map(D=>[D.placement,D.overflows.filter(Q=>Q>0).reduce((Q,se)=>Q+se,0)]).sort((D,Q)=>D[1]-Q[1])[0])==null?void 0:V[0];Z&&(Y=Z);break}case"initialPlacement":Y=a;break}if(o!==Y)return{reset:{placement:Y}}}return{}}}};function Oo(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function jo(e){return tc.some(t=>e[t]>=0)}const hc=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=Ne(e,t);switch(n){case"referenceHidden":{const i=await yt(t,{...o,elementContext:"reference"}),s=Oo(i,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:jo(s)}}}case"escaped":{const i=await yt(t,{...o,altBoundary:!0}),s=Oo(i,r.floating);return{data:{escapedOffsets:s,escaped:jo(s)}}}default:return{}}}}},To=new Set(["left","top"]);async function gc(e,t){const{placement:r,platform:n,elements:o}=e,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),s=Oe(r),a=it(r),u=Se(r)==="y",c=To.has(s)?-1:1,d=i&&u?-1:1,p=Ne(t,e);let{mainAxis:h,crossAxis:v,alignmentAxis:y}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof y=="number"&&(v=a==="end"?y*-1:y),u?{x:v*d,y:h*c}:{x:h*c,y:v*d}}const vc=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:s,middlewareData:a}=t,u=await gc(t,e);return s===((r=a.offset)==null?void 0:r.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:s}}}}},bc=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:b=>{let{x:w,y:x}=b;return{x:w,y:x}}},...u}=Ne(e,t),c={x:r,y:n},d=await yt(t,u),p=Se(Oe(o)),h=Tr(p);let v=c[h],y=c[p];if(i){const b=h==="y"?"top":"left",w=h==="y"?"bottom":"right",x=v+d[b],P=v-d[w];v=jr(x,v,P)}if(s){const b=p==="y"?"top":"left",w=p==="y"?"bottom":"right",x=y+d[b],P=y-d[w];y=jr(x,y,P)}const g=a.fn({...t,[h]:v,[p]:y});return{...g,data:{x:g.x-r,y:g.y-n,enabled:{[h]:i,[p]:s}}}}}},yc=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:u=!0,crossAxis:c=!0}=Ne(e,t),d={x:r,y:n},p=Se(o),h=Tr(p);let v=d[h],y=d[p];const g=Ne(a,t),b=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(u){const P=h==="y"?"height":"width",R=i.reference[h]-i.floating[P]+b.mainAxis,S=i.reference[h]+i.reference[P]-b.mainAxis;v<R?v=R:v>S&&(v=S)}if(c){var w,x;const P=h==="y"?"width":"height",R=To.has(Oe(o)),S=i.reference[p]-i.floating[P]+(R&&((w=s.offset)==null?void 0:w[p])||0)+(R?0:b.crossAxis),N=i.reference[p]+i.reference[P]+(R?0:((x=s.offset)==null?void 0:x[p])||0)-(R?b.crossAxis:0);y<S?y=S:y>N&&(y=N)}return{[h]:v,[p]:y}}}},wc=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:u=()=>{},...c}=Ne(e,t),d=await yt(t,c),p=Oe(o),h=it(o),v=Se(o)==="y",{width:y,height:g}=i.floating;let b,w;p==="top"||p==="bottom"?(b=p,w=h===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(w=p,b=h==="end"?"top":"bottom");const x=g-d.top-d.bottom,P=y-d.left-d.right,R=We(g-d[b],x),S=We(y-d[w],P),N=!t.middlewareData.shift;let k=R,B=S;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(B=P),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(k=x),N&&!h){const z=me(d.left,0),K=me(d.right,0),T=me(d.top,0),V=me(d.bottom,0);v?B=y-2*(z!==0||K!==0?z+K:me(d.left,d.right)):k=g-2*(T!==0||V!==0?T+V:me(d.top,d.bottom))}await u({...t,availableWidth:B,availableHeight:k});const G=await s.getDimensions(a.floating);return y!==G.width||g!==G.height?{reset:{rects:!0}}:{}}}};function Bt(){return typeof window<"u"}function at(e){return _o(e)?(e.nodeName||"").toLowerCase():"#document"}function he(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ke(e){var t;return(t=(_o(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function _o(e){return Bt()?e instanceof Node||e instanceof he(e).Node:!1}function we(e){return Bt()?e instanceof Element||e instanceof he(e).Element:!1}function Pe(e){return Bt()?e instanceof HTMLElement||e instanceof he(e).HTMLElement:!1}function Mo(e){return!Bt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof he(e).ShadowRoot}const xc=new Set(["inline","contents"]);function wt(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=xe(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!xc.has(o)}const Cc=new Set(["table","td","th"]);function Ec(e){return Cc.has(at(e))}const Rc=[":popover-open",":modal"];function zt(e){return Rc.some(t=>{try{return e.matches(t)}catch{return!1}})}const Sc=["transform","translate","scale","rotate","perspective"],kc=["transform","translate","scale","rotate","perspective","filter"],Pc=["paint","layout","strict","content"];function Ir(e){const t=Lr(),r=we(e)?xe(e):e;return Sc.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||kc.some(n=>(r.willChange||"").includes(n))||Pc.some(n=>(r.contain||"").includes(n))}function Ac(e){let t=$e(e);for(;Pe(t)&&!st(t);){if(Ir(t))return t;if(zt(t))return null;t=$e(t)}return null}function Lr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Nc=new Set(["html","body","#document"]);function st(e){return Nc.has(at(e))}function xe(e){return he(e).getComputedStyle(e)}function Vt(e){return we(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function $e(e){if(at(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Mo(e)&&e.host||ke(e);return Mo(t)?t.host:t}function Do(e){const t=$e(e);return st(t)?e.ownerDocument?e.ownerDocument.body:e.body:Pe(t)&&wt(t)?t:Do(t)}function xt(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=Do(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),s=he(o);if(i){const a=Fr(s);return t.concat(s,s.visualViewport||[],wt(o)?o:[],a&&r?xt(a):[])}return t.concat(o,xt(o,[],r))}function Fr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Io(e){const t=xe(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Pe(e),i=o?e.offsetWidth:r,s=o?e.offsetHeight:n,a=Lt(r)!==i||Lt(n)!==s;return a&&(r=i,n=s),{width:r,height:n,$:a}}function Wr(e){return we(e)?e:e.contextElement}function lt(e){const t=Wr(e);if(!Pe(t))return Re(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=Io(t);let s=(i?Lt(r.width):r.width)/n,a=(i?Lt(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Oc=Re(0);function Lo(e){const t=he(e);return!Lr()||!t.visualViewport?Oc:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function jc(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==he(e)?!1:t}function He(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),i=Wr(e);let s=Re(1);t&&(n?we(n)&&(s=lt(n)):s=lt(e));const a=jc(i,r,n)?Lo(i):Re(0);let u=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,d=o.width/s.x,p=o.height/s.y;if(i){const h=he(i),v=n&&we(n)?he(n):n;let y=h,g=Fr(y);for(;g&&n&&v!==y;){const b=lt(g),w=g.getBoundingClientRect(),x=xe(g),P=w.left+(g.clientLeft+parseFloat(x.paddingLeft))*b.x,R=w.top+(g.clientTop+parseFloat(x.paddingTop))*b.y;u*=b.x,c*=b.y,d*=b.x,p*=b.y,u+=P,c+=R,y=he(g),g=Fr(y)}}return $t({width:d,height:p,x:u,y:c})}function Ht(e,t){const r=Vt(e).scrollLeft;return t?t.left+r:He(ke(e)).left+r}function Fo(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-Ht(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function Tc(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i=o==="fixed",s=ke(n),a=t?zt(t.floating):!1;if(n===s||a&&i)return r;let u={scrollLeft:0,scrollTop:0},c=Re(1);const d=Re(0),p=Pe(n);if((p||!p&&!i)&&((at(n)!=="body"||wt(s))&&(u=Vt(n)),Pe(n))){const v=He(n);c=lt(n),d.x=v.x+n.clientLeft,d.y=v.y+n.clientTop}const h=s&&!p&&!i?Fo(s,u):Re(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-u.scrollLeft*c.x+d.x+h.x,y:r.y*c.y-u.scrollTop*c.y+d.y+h.y}}function _c(e){return Array.from(e.getClientRects())}function Mc(e){const t=ke(e),r=Vt(e),n=e.ownerDocument.body,o=me(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=me(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+Ht(e);const a=-r.scrollTop;return xe(n).direction==="rtl"&&(s+=me(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:s,y:a}}const Wo=25;function Dc(e,t){const r=he(e),n=ke(e),o=r.visualViewport;let i=n.clientWidth,s=n.clientHeight,a=0,u=0;if(o){i=o.width,s=o.height;const d=Lr();(!d||d&&t==="fixed")&&(a=o.offsetLeft,u=o.offsetTop)}const c=Ht(n);if(c<=0){const d=n.ownerDocument,p=d.body,h=getComputedStyle(p),v=d.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,y=Math.abs(n.clientWidth-p.clientWidth-v);y<=Wo&&(i-=y)}else c<=Wo&&(i+=c);return{width:i,height:s,x:a,y:u}}const Ic=new Set(["absolute","fixed"]);function Lc(e,t){const r=He(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=Pe(e)?lt(e):Re(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,u=o*i.x,c=n*i.y;return{width:s,height:a,x:u,y:c}}function $o(e,t,r){let n;if(t==="viewport")n=Dc(e,r);else if(t==="document")n=Mc(ke(e));else if(we(t))n=Lc(t,r);else{const o=Lo(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return $t(n)}function Bo(e,t){const r=$e(e);return r===t||!we(r)||st(r)?!1:xe(r).position==="fixed"||Bo(r,t)}function Fc(e,t){const r=t.get(e);if(r)return r;let n=xt(e,[],!1).filter(a=>we(a)&&at(a)!=="body"),o=null;const i=xe(e).position==="fixed";let s=i?$e(e):e;for(;we(s)&&!st(s);){const a=xe(s),u=Ir(s);!u&&a.position==="fixed"&&(o=null),(i?!u&&!o:!u&&a.position==="static"&&!!o&&Ic.has(o.position)||wt(s)&&!u&&Bo(e,s))?n=n.filter(d=>d!==s):o=a,s=$e(s)}return t.set(e,n),n}function Wc(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const s=[...r==="clippingAncestors"?zt(t)?[]:Fc(t,this._c):[].concat(r),n],a=s[0],u=s.reduce((c,d)=>{const p=$o(t,d,o);return c.top=me(p.top,c.top),c.right=We(p.right,c.right),c.bottom=We(p.bottom,c.bottom),c.left=me(p.left,c.left),c},$o(t,a,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function $c(e){const{width:t,height:r}=Io(e);return{width:t,height:r}}function Bc(e,t,r){const n=Pe(t),o=ke(t),i=r==="fixed",s=He(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const u=Re(0);function c(){u.x=Ht(o)}if(n||!n&&!i)if((at(t)!=="body"||wt(o))&&(a=Vt(t)),n){const v=He(t,!0,i,t);u.x=v.x+t.clientLeft,u.y=v.y+t.clientTop}else o&&c();i&&!n&&o&&c();const d=o&&!n&&!i?Fo(o,a):Re(0),p=s.left+a.scrollLeft-u.x-d.x,h=s.top+a.scrollTop-u.y-d.y;return{x:p,y:h,width:s.width,height:s.height}}function $r(e){return xe(e).position==="static"}function zo(e,t){if(!Pe(e)||xe(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return ke(e)===r&&(r=r.ownerDocument.body),r}function Vo(e,t){const r=he(e);if(zt(e))return r;if(!Pe(e)){let o=$e(e);for(;o&&!st(o);){if(we(o)&&!$r(o))return o;o=$e(o)}return r}let n=zo(e,t);for(;n&&Ec(n)&&$r(n);)n=zo(n,t);return n&&st(n)&&$r(n)&&!Ir(n)?r:n||Ac(e)||r}const zc=async function(e){const t=this.getOffsetParent||Vo,r=this.getDimensions,n=await r(e.floating);return{reference:Bc(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Vc(e){return xe(e).direction==="rtl"}const Hc={convertOffsetParentRelativeRectToViewportRelativeRect:Tc,getDocumentElement:ke,getClippingRect:Wc,getOffsetParent:Vo,getElementRects:zc,getClientRects:_c,getDimensions:$c,getScale:lt,isElement:we,isRTL:Vc};function Ho(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Uc(e,t){let r=null,n;const o=ke(e);function i(){var a;clearTimeout(n),(a=r)==null||a.disconnect(),r=null}function s(a,u){a===void 0&&(a=!1),u===void 0&&(u=1),i();const c=e.getBoundingClientRect(),{left:d,top:p,width:h,height:v}=c;if(a||t(),!h||!v)return;const y=Ft(p),g=Ft(o.clientWidth-(d+h)),b=Ft(o.clientHeight-(p+v)),w=Ft(d),P={rootMargin:-y+"px "+-g+"px "+-b+"px "+-w+"px",threshold:me(0,We(1,u))||1};let R=!0;function S(N){const k=N[0].intersectionRatio;if(k!==u){if(!R)return s();k?s(!1,k):n=setTimeout(()=>{s(!1,1e-7)},1e3)}k===1&&!Ho(c,e.getBoundingClientRect())&&s(),R=!1}try{r=new IntersectionObserver(S,{...P,root:o.ownerDocument})}catch{r=new IntersectionObserver(S,P)}r.observe(e)}return s(!0),i}function Gc(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:u=!1}=n,c=Wr(e),d=o||i?[...c?xt(c):[],...xt(t)]:[];d.forEach(w=>{o&&w.addEventListener("scroll",r,{passive:!0}),i&&w.addEventListener("resize",r)});const p=c&&a?Uc(c,r):null;let h=-1,v=null;s&&(v=new ResizeObserver(w=>{let[x]=w;x&&x.target===c&&v&&(v.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var P;(P=v)==null||P.observe(t)})),r()}),c&&!u&&v.observe(c),v.observe(t));let y,g=u?He(e):null;u&&b();function b(){const w=He(e);g&&!Ho(g,w)&&r(),g=w,y=requestAnimationFrame(b)}return r(),()=>{var w;d.forEach(x=>{o&&x.removeEventListener("scroll",r),i&&x.removeEventListener("resize",r)}),p==null||p(),(w=v)==null||w.disconnect(),v=null,u&&cancelAnimationFrame(y)}}const Yc=vc,Kc=bc,Xc=mc,qc=wc,Zc=hc,Uo=pc,Jc=yc,Qc=(e,t,r)=>{const n=new Map,o={platform:Hc,...r},i={...o.platform,_c:n};return fc(e,t,{...o,platform:i})};var eu=typeof document<"u",tu=function(){},Ut=eu?le.useLayoutEffect:tu;function Gt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!Gt(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const i=o[n];if(!(i==="_owner"&&e.$$typeof)&&!Gt(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Go(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Yo(e,t){const r=Go(e);return Math.round(t*r)/r}function Br(e){const t=l.useRef(e);return Ut(()=>{t.current=e}),t}function ru(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:u,open:c}=e,[d,p]=l.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[h,v]=l.useState(n);Gt(h,n)||v(n);const[y,g]=l.useState(null),[b,w]=l.useState(null),x=l.useCallback(D=>{D!==N.current&&(N.current=D,g(D))},[]),P=l.useCallback(D=>{D!==k.current&&(k.current=D,w(D))},[]),R=i||y,S=s||b,N=l.useRef(null),k=l.useRef(null),B=l.useRef(d),G=u!=null,z=Br(u),K=Br(o),T=Br(c),V=l.useCallback(()=>{if(!N.current||!k.current)return;const D={placement:t,strategy:r,middleware:h};K.current&&(D.platform=K.current),Qc(N.current,k.current,D).then(Q=>{const se={...Q,isPositioned:T.current!==!1};L.current&&!Gt(B.current,se)&&(B.current=se,Qr.flushSync(()=>{p(se)}))})},[h,t,r,K,T]);Ut(()=>{c===!1&&B.current.isPositioned&&(B.current.isPositioned=!1,p(D=>({...D,isPositioned:!1})))},[c]);const L=l.useRef(!1);Ut(()=>(L.current=!0,()=>{L.current=!1}),[]),Ut(()=>{if(R&&(N.current=R),S&&(k.current=S),R&&S){if(z.current)return z.current(R,S,V);V()}},[R,S,V,z,G]);const J=l.useMemo(()=>({reference:N,floating:k,setReference:x,setFloating:P}),[x,P]),Y=l.useMemo(()=>({reference:R,floating:S}),[R,S]),Z=l.useMemo(()=>{const D={position:r,left:0,top:0};if(!Y.floating)return D;const Q=Yo(Y.floating,d.x),se=Yo(Y.floating,d.y);return a?{...D,transform:"translate("+Q+"px, "+se+"px)",...Go(Y.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:Q,top:se}},[r,a,Y.floating,d.x,d.y]);return l.useMemo(()=>({...d,update:V,refs:J,elements:Y,floatingStyles:Z}),[d,V,J,Y,Z])}const nu=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?Uo({element:n.current,padding:o}).fn(r):{}:n?Uo({element:n,padding:o}).fn(r):{}}}},ou=(e,t)=>({...Yc(e),options:[e,t]}),iu=(e,t)=>({...Kc(e),options:[e,t]}),au=(e,t)=>({...Jc(e),options:[e,t]}),su=(e,t)=>({...Xc(e),options:[e,t]}),lu=(e,t)=>({...qc(e),options:[e,t]}),cu=(e,t)=>({...Zc(e),options:[e,t]}),uu=(e,t)=>({...nu(e),options:[e,t]});var du="Arrow",Ko=l.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...i}=e;return m.jsx(ue.svg,{...i,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:m.jsx("polygon",{points:"0,0 30,0 15,10"})})});Ko.displayName=du;var fu=Ko;function pu(e){const[t,r]=l.useState(void 0);return De(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,a;if("borderBoxSize"in i){const u=i.borderBoxSize,c=Array.isArray(u)?u[0]:u;s=c.inlineSize,a=c.blockSize}else s=e.offsetWidth,a=e.offsetHeight;r({width:s,height:a})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var zr="Popper",[Xo,qo]=ir(zr),[mu,Zo]=Xo(zr),Jo=e=>{const{__scopePopper:t,children:r}=e,[n,o]=l.useState(null);return m.jsx(mu,{scope:t,anchor:n,onAnchorChange:o,children:r})};Jo.displayName=zr;var Qo="PopperAnchor",ei=l.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,i=Zo(Qo,r),s=l.useRef(null),a=be(t,s),u=l.useRef(null);return l.useEffect(()=>{const c=u.current;u.current=(n==null?void 0:n.current)||s.current,c!==u.current&&i.onAnchorChange(u.current)}),n?null:m.jsx(ue.div,{...o,ref:a})});ei.displayName=Qo;var Vr="PopperContent",[hu,gu]=Xo(Vr),ti=l.forwardRef((e,t)=>{var X,ne,re,ge,Kt,Et;const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:u=!0,collisionBoundary:c=[],collisionPadding:d=0,sticky:p="partial",hideWhenDetached:h=!1,updatePositionStrategy:v="optimized",onPlaced:y,...g}=e,b=Zo(Vr,r),[w,x]=l.useState(null),P=be(t,Ue=>x(Ue)),[R,S]=l.useState(null),N=pu(R),k=(N==null?void 0:N.width)??0,B=(N==null?void 0:N.height)??0,G=n+(i!=="center"?"-"+i:""),z=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},K=Array.isArray(c)?c:[c],T=K.length>0,V={padding:z,boundary:K.filter(bu),altBoundary:T},{refs:L,floatingStyles:J,placement:Y,isPositioned:Z,middlewareData:D}=ru({strategy:"fixed",placement:G,whileElementsMounted:(...Ue)=>Gc(...Ue,{animationFrame:v==="always"}),elements:{reference:b.anchor},middleware:[ou({mainAxis:o+B,alignmentAxis:s}),u&&iu({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?au():void 0,...V}),u&&su({...V}),lu({...V,apply:({elements:Ue,rects:Xt,availableWidth:ut,availableHeight:Ge})=>{const{width:qt,height:Zt}=Xt.reference,je=Ue.floating.style;je.setProperty("--radix-popper-available-width",`${ut}px`),je.setProperty("--radix-popper-available-height",`${Ge}px`),je.setProperty("--radix-popper-anchor-width",`${qt}px`),je.setProperty("--radix-popper-anchor-height",`${Zt}px`)}}),R&&uu({element:R,padding:a}),yu({arrowWidth:k,arrowHeight:B}),h&&cu({strategy:"referenceHidden",...V})]}),[Q,se]=oi(Y),ie=qe(y);De(()=>{Z&&(ie==null||ie())},[Z,ie]);const E=(X=D.arrow)==null?void 0:X.x,_=(ne=D.arrow)==null?void 0:ne.y,F=((re=D.arrow)==null?void 0:re.centerOffset)!==0,[j,U]=l.useState();return De(()=>{w&&U(window.getComputedStyle(w).zIndex)},[w]),m.jsx("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:Z?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:j,"--radix-popper-transform-origin":[(ge=D.transformOrigin)==null?void 0:ge.x,(Kt=D.transformOrigin)==null?void 0:Kt.y].join(" "),...((Et=D.hide)==null?void 0:Et.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:m.jsx(hu,{scope:r,placedSide:Q,onArrowChange:S,arrowX:E,arrowY:_,shouldHideArrow:F,children:m.jsx(ue.div,{"data-side":Q,"data-align":se,...g,ref:P,style:{...g.style,animation:Z?void 0:"none"}})})})});ti.displayName=Vr;var ri="PopperArrow",vu={top:"bottom",right:"left",bottom:"top",left:"right"},ni=l.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,i=gu(ri,n),s=vu[i.placedSide];return m.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:m.jsx(fu,{...o,ref:r,style:{...o.style,display:"block"}})})});ni.displayName=ri;function bu(e){return e!==null}var yu=e=>({name:"transformOrigin",options:e,fn(t){var b,w,x;const{placement:r,rects:n,middlewareData:o}=t,s=((b=o.arrow)==null?void 0:b.centerOffset)!==0,a=s?0:e.arrowWidth,u=s?0:e.arrowHeight,[c,d]=oi(r),p={start:"0%",center:"50%",end:"100%"}[d],h=(((w=o.arrow)==null?void 0:w.x)??0)+a/2,v=(((x=o.arrow)==null?void 0:x.y)??0)+u/2;let y="",g="";return c==="bottom"?(y=s?p:`${h}px`,g=`${-u}px`):c==="top"?(y=s?p:`${h}px`,g=`${n.floating.height+u}px`):c==="right"?(y=`${-u}px`,g=s?p:`${v}px`):c==="left"&&(y=`${n.floating.width+u}px`,g=s?p:`${v}px`),{data:{x:y,y:g}}}});function oi(e){const[t,r="center"]=e.split("-");return[t,r]}var wu=Jo,ii=ei,xu=ti,Cu=ni,Yt="Popover",[ai]=ir(Yt,[qo]),Ct=qo(),[Eu,Be]=ai(Yt),si=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:o,onOpenChange:i,modal:s=!1}=e,a=Ct(t),u=l.useRef(null),[c,d]=l.useState(!1),[p,h]=Nn({prop:n,defaultProp:o??!1,onChange:i,caller:Yt});return m.jsx(wu,{...a,children:m.jsx(Eu,{scope:t,contentId:Ce(),triggerRef:u,open:p,onOpenChange:h,onOpenToggle:l.useCallback(()=>h(v=>!v),[h]),hasCustomAnchor:c,onCustomAnchorAdd:l.useCallback(()=>d(!0),[]),onCustomAnchorRemove:l.useCallback(()=>d(!1),[]),modal:s,children:r})})};si.displayName=Yt;var li="PopoverAnchor",Ru=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Be(li,r),i=Ct(r),{onCustomAnchorAdd:s,onCustomAnchorRemove:a}=o;return l.useEffect(()=>(s(),()=>a()),[s,a]),m.jsx(ii,{...i,...n,ref:t})});Ru.displayName=li;var ci="PopoverTrigger",ui=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Be(ci,r),i=Ct(r),s=be(t,o.triggerRef),a=m.jsx(ue.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":hi(o.open),...n,ref:s,onClick:pe(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?a:m.jsx(ii,{asChild:!0,...i,children:a})});ui.displayName=ci;var Hr="PopoverPortal",[Su,ku]=ai(Hr,{forceMount:void 0}),di=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,i=Be(Hr,t);return m.jsx(Su,{scope:t,forceMount:r,children:m.jsx(Ze,{present:r||i.open,children:m.jsx(fr,{asChild:!0,container:o,children:n})})})};di.displayName=Hr;var ct="PopoverContent",fi=l.forwardRef((e,t)=>{const r=ku(ct,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,i=Be(ct,e.__scopePopover);return m.jsx(Ze,{present:n||i.open,children:i.modal?m.jsx(Au,{...o,ref:t}):m.jsx(Nu,{...o,ref:t})})});fi.displayName=ct;var Pu=ar("PopoverContent.RemoveScroll"),Au=l.forwardRef((e,t)=>{const r=Be(ct,e.__scopePopover),n=l.useRef(null),o=be(t,n),i=l.useRef(!1);return l.useEffect(()=>{const s=n.current;if(s)return eo(s)},[]),m.jsx(br,{as:Pu,allowPinchZoom:!0,children:m.jsx(pi,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:pe(e.onCloseAutoFocus,s=>{var a;s.preventDefault(),i.current||(a=r.triggerRef.current)==null||a.focus()}),onPointerDownOutside:pe(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,u=a.button===0&&a.ctrlKey===!0,c=a.button===2||u;i.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:pe(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),Nu=l.forwardRef((e,t)=>{const r=Be(ct,e.__scopePopover),n=l.useRef(!1),o=l.useRef(!1);return m.jsx(pi,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var s,a;(s=e.onCloseAutoFocus)==null||s.call(e,i),i.defaultPrevented||(n.current||(a=r.triggerRef.current)==null||a.focus(),i.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:i=>{var u,c;(u=e.onInteractOutside)==null||u.call(e,i),i.defaultPrevented||(n.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;((c=r.triggerRef.current)==null?void 0:c.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),pi=l.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEscapeKeyDown:a,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,...p}=e,h=Be(ct,r),v=Ct(r);return Wn(),m.jsx(dr,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:i,children:m.jsx(lr,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:d,onEscapeKeyDown:a,onPointerDownOutside:u,onFocusOutside:c,onDismiss:()=>h.onOpenChange(!1),children:m.jsx(xu,{"data-state":hi(h.open),role:"dialog",id:h.contentId,...v,...p,ref:t,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),mi="PopoverClose",Ou=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Be(mi,r);return m.jsx(ue.button,{type:"button",...n,ref:t,onClick:pe(e.onClick,()=>o.onOpenChange(!1))})});Ou.displayName=mi;var ju="PopoverArrow",Tu=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Ct(r);return m.jsx(Cu,{...o,...n,ref:t})});Tu.displayName=ju;function hi(e){return e?"open":"closed"}var _u=si,Mu=ui,Du=di,gi=fi;const vi=_u,bi=Mu,Ur=l.forwardRef(({className:e,align:t="center",sideOffset:r=4,...n},o)=>m.jsx(Du,{children:m.jsx(gi,{ref:o,align:t,sideOffset:r,className:$("z-50 w-72 rounded-md border border-border_primary bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));Ur.displayName=gi.displayName;function Iu({options:e,value:t,onChange:r,placeholder:n="Select...",searchPlaceholder:o="Search...",emptyMessage:i="No results found.",className:s,disabled:a}){const[u,c]=le.useState(!1),d=e.find(p=>String(p.value)===String(t));return m.jsxs(vi,{open:u,onOpenChange:c,children:[m.jsx(bi,{asChild:!0,children:m.jsxs(St,{variant:"outline",role:"combobox",disabled:a,"aria-expanded":u,className:$("w-full justify-between bg-background border-border hover:bg-muted hover:text-foreground text-foreground",s),children:[m.jsx("span",{className:"truncate",children:d?d.label:n}),m.jsx(Wl,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),m.jsx(Ur,{className:"w-[--radix-popover-trigger-width] p-0 border-border bg-popover",children:m.jsxs(kr,{className:"bg-transparent",children:[m.jsx(Pr,{placeholder:o,className:"h-9"}),m.jsx(Ar,{children:i}),m.jsx(Nr,{className:"max-h-60 overflow-auto p-1",children:e.map(p=>m.jsxs(Or,{value:p.label,onSelect:()=>{r(String(p.value)),c(!1)},className:"aria-selected:bg-accent aria-selected:text-accent-foreground rounded-md cursor-pointer",children:[m.jsx(Il,{className:$("mr-2 h-4 w-4 text-primary",String(t)===String(p.value)?"opacity-100":"opacity-0")}),m.jsx("span",{className:"truncate",children:p.label})]},p.value))})]})})]})}const yi=l.forwardRef(({className:e,...t},r)=>m.jsx("div",{className:"relative w-full overflow-auto",children:m.jsx("table",{ref:r,className:$("w-full caption-bottom text-sm",e),...t})}));yi.displayName="Table";const wi=l.forwardRef(({className:e,...t},r)=>m.jsx("thead",{ref:r,className:$("[&_tr]:border-b",e),...t}));wi.displayName="TableHeader";const xi=l.forwardRef(({className:e,...t},r)=>m.jsx("tbody",{ref:r,className:$("[&_tr:last-child]:border-0",e),...t}));xi.displayName="TableBody";const Ci=l.forwardRef(({className:e,...t},r)=>m.jsx("tfoot",{ref:r,className:$("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));Ci.displayName="TableFooter";const Ei=l.forwardRef(({className:e,...t},r)=>m.jsx("tr",{ref:r,className:$("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));Ei.displayName="TableRow";const Ri=l.forwardRef(({className:e,...t},r)=>m.jsx("th",{ref:r,className:$("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[0.5px]",e),...t}));Ri.displayName="TableHead";const Si=l.forwardRef(({className:e,...t},r)=>m.jsx("td",{ref:r,className:$("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[0.5px]",e),...t}));Si.displayName="TableCell";const ki=l.forwardRef(({className:e,...t},r)=>m.jsx("caption",{ref:r,className:$("mt-4 text-sm text-muted-foreground",e),...t}));ki.displayName="TableCaption";function Lu({items:e,activeRoute:t,onNavigate:r,collapsed:n=!1,onToggleCollapse:o,footer:i,children:s,className:a}){const u=({item:c})=>{if(c.divider)return m.jsx("div",{className:"my-2 border-b border-white/5 opacity-50"});const d=c.icon,p=c.route&&t===c.route;return m.jsxs(St,{variant:"ghost",className:$("w-full justify-start gap-3 relative transition-all duration-200 border",n&&"justify-center px-0",p?"bg-primary/10 text-primary border-primary/50 shadow-[inset_3px_0_0_0_var(--primary)]":"border-transparent text-muted-foreground hover:text-foreground hover:bg-muted",a),onClick:()=>{c.onClick&&c.onClick(),c.route&&r&&r(c.route)},title:n?c.label:void 0,children:[m.jsx(d,{className:$("h-5 w-5 shrink-0",p?"text-primary drop-shadow-[0_0_8px_rgba(0,227,150,0.5)]":"")}),!n&&m.jsx("span",{className:$("truncate font-medium",p?"text-foreground":"text-muted-foreground"),children:c.label}),n&&p&&m.jsx("div",{className:"absolute inset-0 bg-primary/10 rounded-md z-[-1]"})]})};return m.jsxs("div",{className:$("h-full flex flex-col items-center py-4 border-r border-border transition-all duration-300 bg-card",n?"w-16 px-2":"w-60 px-3",a),children:[m.jsxs("div",{className:"flex-1 flex flex-col gap-1 w-full overflow-y-auto pr-1 no-scrollbar",children:[e.map((c,d)=>m.jsx(u,{item:c},d)),s]}),m.jsxs("div",{className:"mt-auto w-full flex flex-col gap-2 pt-4 border-t border-border",children:[i,o&&m.jsx("button",{onClick:o,className:$("flex items-center justify-center p-2 rounded-lg hover:bg-muted transition-colors text-muted-foreground hover:text-foreground w-full mt-2"),children:n?m.jsx(Fl,{className:"h-5 w-5"}):m.jsx(Ll,{className:"h-5 w-5"})})]})]})}O.Badge=Pa,O.BanIcon=Ql,O.BringIcon=Hl,O.Button=St,O.Card=wn,O.CardContent=Rn,O.CardDescription=En,O.CardFooter=Sn,O.CardHeader=xn,O.CardTitle=Cn,O.ClothingIcon=Xl,O.Command=kr,O.CommandEmpty=Ar,O.CommandGroup=Nr,O.CommandInput=Pr,O.CommandItem=Or,O.CommandList=Co,O.CommandSeparator=Eo,O.CommandShortcut=Ro,O.Dialog=zl,O.EyeIcon=ql,O.Input=ka,O.KickIcon=Jl,O.Modal=So,O.MoneyIcon=Kl,O.PageHeader=ec,O.Popover=vi,O.PopoverContent=Ur,O.PopoverTrigger=bi,O.ReviveIcon=Gl,O.SelectSearch=Iu,O.SendBackIcon=Ul,O.Sidebar=Lu,O.Table=yi,O.TableBody=xi,O.TableCaption=ki,O.TableCell=Si,O.TableFooter=Ci,O.TableHead=Ri,O.TableHeader=wi,O.TableRow=Ei,O.TeleportIcon=Vl,O.VerifyIcon=Yl,O.WarnIcon=Zl,O.badgeVariants=yn,O.buttonVariants=dn,O.cn=$,Object.defineProperty(O,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,63 +1,69 @@
1
- {
2
- "name": "@mriqbox/ui-kit",
3
- "publishConfig": {
4
- "access": "public"
5
- },
6
- "version": "1.0.1",
7
- "type": "module",
8
- "main": "./dist/index.umd.js",
9
- "module": "./dist/index.es.js",
10
- "types": "./dist/index.d.ts",
11
- "exports": {
12
- ".": {
13
- "import": "./dist/index.es.js",
14
- "require": "./dist/index.umd.js",
15
- "types": "./dist/index.d.ts"
16
- },
17
- "./dist/style.css": "./dist/style.css"
18
- },
19
- "files": [
20
- "dist"
21
- ],
22
- "scripts": {
23
- "dev": "vite",
24
- "build": "tsc && vite build",
25
- "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
26
- "preview": "vite preview",
27
- "storybook": "storybook dev -p 6006",
28
- "build-storybook": "storybook build"
29
- },
30
- "dependencies": {
31
- "@radix-ui/react-dialog": "^1.0.5",
32
- "@radix-ui/react-popover": "^1.0.7",
33
- "@radix-ui/react-slot": "^1.0.2",
34
- "class-variance-authority": "^0.7.0",
35
- "clsx": "^2.1.0",
36
- "cmdk": "^1.0.0",
37
- "lucide-react": "^0.344.0",
38
- "react": "^18.2.0",
39
- "react-dom": "^18.2.0",
40
- "tailwind-merge": "^2.2.1"
41
- },
42
- "devDependencies": {
43
- "@storybook/addon-essentials": "^7.6.17",
44
- "@storybook/addon-interactions": "^7.6.17",
45
- "@storybook/addon-links": "^7.6.17",
46
- "@storybook/blocks": "^7.6.17",
47
- "@storybook/manager-api": "^8.6.14",
48
- "@storybook/react": "^7.6.17",
49
- "@storybook/react-vite": "^7.6.17",
50
- "@storybook/theming": "^8.6.14",
51
- "@types/react": "^18.2.64",
52
- "@types/react-dom": "^18.2.21",
53
- "@vitejs/plugin-react": "^4.2.1",
54
- "autoprefixer": "^10.4.18",
55
- "postcss": "^8.4.35",
56
- "storybook": "^7.6.17",
57
- "tailwindcss": "^3.4.1",
58
- "tailwindcss-animate": "^1.0.7",
59
- "typescript": "^5.2.2",
60
- "vite": "^5.1.6",
61
- "vite-plugin-dts": "^3.7.3"
62
- }
1
+ {
2
+ "name": "@mriqbox/ui-kit",
3
+ "publishConfig": {
4
+ "access": "public"
5
+ },
6
+ "version": "1.0.3",
7
+ "type": "module",
8
+ "main": "./dist/index.umd.js",
9
+ "module": "./dist/index.es.js",
10
+ "types": "./dist/index.d.ts",
11
+ "exports": {
12
+ ".": {
13
+ "import": "./dist/index.es.js",
14
+ "require": "./dist/index.umd.js",
15
+ "types": "./dist/index.d.ts"
16
+ },
17
+ "./dist/style.css": "./dist/style.css"
18
+ },
19
+ "files": [
20
+ "dist"
21
+ ],
22
+ "dependencies": {
23
+ "@radix-ui/react-dialog": "^1.0.5",
24
+ "@radix-ui/react-popover": "^1.0.7",
25
+ "@radix-ui/react-slot": "^1.0.2",
26
+ "class-variance-authority": "^0.7.0",
27
+ "clsx": "^2.1.0",
28
+ "cmdk": "^1.0.0",
29
+ "lucide-react": "^0.344.0",
30
+ "react": "^18.2.0",
31
+ "react-dom": "^18.2.0",
32
+ "tailwind-merge": "^2.2.1"
33
+ },
34
+ "devDependencies": {
35
+ "@eslint/js": "^9.39.2",
36
+ "@storybook/addon-essentials": "^7.6.17",
37
+ "@storybook/addon-interactions": "^7.6.17",
38
+ "@storybook/addon-links": "^7.6.17",
39
+ "@storybook/blocks": "^7.6.17",
40
+ "@storybook/manager-api": "^8.6.14",
41
+ "@storybook/react": "^7.6.17",
42
+ "@storybook/react-vite": "^7.6.17",
43
+ "@storybook/theming": "^8.6.14",
44
+ "@types/react": "^18.2.64",
45
+ "@types/react-dom": "^18.2.21",
46
+ "@vitejs/plugin-react": "^4.2.1",
47
+ "autoprefixer": "^10.4.18",
48
+ "eslint": "^9.39.2",
49
+ "eslint-plugin-react-hooks": "^7.0.1",
50
+ "eslint-plugin-react-refresh": "^0.4.26",
51
+ "globals": "^17.0.0",
52
+ "postcss": "^8.4.35",
53
+ "storybook": "^7.6.17",
54
+ "tailwindcss": "^3.4.1",
55
+ "tailwindcss-animate": "^1.0.7",
56
+ "typescript": "^5.2.2",
57
+ "typescript-eslint": "^8.53.0",
58
+ "vite": "^5.1.6",
59
+ "vite-plugin-dts": "^3.7.3"
60
+ },
61
+ "scripts": {
62
+ "dev": "vite",
63
+ "build": "tsc && vite build",
64
+ "lint": "eslint . --report-unused-disable-directives --max-warnings 10",
65
+ "preview": "vite preview",
66
+ "storybook": "storybook dev -p 6006",
67
+ "build-storybook": "storybook build"
68
+ }
63
69
  }