@sigtes/ui 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/dist/components/badge/Badge.d.ts +6 -0
  2. package/dist/components/badge/badgeVariants.d.ts +3 -0
  3. package/dist/components/badge/index.d.ts +2 -0
  4. package/dist/components/button/Button.d.ts +1 -5
  5. package/dist/components/button/buttonVariants.d.ts +4 -0
  6. package/dist/components/button/index.d.ts +2 -1
  7. package/dist/components/calendar/Calendar.d.ts +7 -0
  8. package/dist/components/calendar/DatePicker.d.ts +6 -0
  9. package/dist/components/calendar/DateRangePicker.d.ts +9 -0
  10. package/dist/components/calendar/index.d.ts +4 -0
  11. package/dist/components/card/Card.d.ts +8 -0
  12. package/dist/components/card/CardExample.d.ts +1 -0
  13. package/dist/components/card/index.d.ts +1 -0
  14. package/dist/components/checkbox/Checkbox.d.ts +3 -0
  15. package/dist/components/checkbox/index.d.ts +1 -0
  16. package/dist/components/collapsible/Collapsible.d.ts +4 -0
  17. package/dist/components/collapsible/index.d.ts +1 -0
  18. package/dist/components/combobox/Combobox.d.ts +10 -0
  19. package/dist/components/combobox/index.d.ts +1 -0
  20. package/dist/components/command/Command.d.ts +17 -0
  21. package/dist/components/command/index.d.ts +1 -0
  22. package/dist/components/data-table-faceted-filter/data-table-faceted-filter.d.ts +17 -0
  23. package/dist/components/data-table-faceted-filter/index.d.ts +1 -0
  24. package/dist/components/dialog/Dialog.d.ts +14 -0
  25. package/dist/components/dialog/index.d.ts +1 -0
  26. package/dist/components/form/Form.d.ts +23 -0
  27. package/dist/components/form/index.d.ts +1 -0
  28. package/dist/components/input/Input.d.ts +2 -2
  29. package/dist/components/popover/Popover.d.ts +6 -0
  30. package/dist/components/popover/index.d.ts +1 -0
  31. package/dist/components/separator/Separator.d.ts +3 -0
  32. package/dist/components/separator/index.d.ts +1 -0
  33. package/dist/components/skeleton/Skeleton.d.ts +1 -0
  34. package/dist/components/skeleton/index.d.ts +1 -0
  35. package/dist/components/sonner/Sonner.d.ts +2 -0
  36. package/dist/components/sonner/index.d.ts +3 -0
  37. package/dist/components/table/DataTable.d.ts +1 -7
  38. package/dist/components/tabs/Tabs.d.ts +6 -0
  39. package/dist/components/tabs/index.d.ts +1 -0
  40. package/dist/components/textarea/Textarea.d.ts +2 -0
  41. package/dist/components/textarea/index.d.ts +1 -0
  42. package/dist/components.cjs.js +756 -0
  43. package/dist/components.es.js +29483 -0
  44. package/dist/globals.css +1 -1
  45. package/dist/hooks/index.d.ts +4 -0
  46. package/dist/hooks/useErrors/index.d.ts +1 -0
  47. package/dist/hooks/useErrors/useErrors.d.ts +13 -0
  48. package/dist/hooks/useFormState/index.d.ts +1 -0
  49. package/dist/hooks/useFormState/useFormState.d.ts +19 -0
  50. package/dist/hooks.cjs.js +1 -0
  51. package/dist/hooks.es.js +52 -0
  52. package/dist/index.d.ts +19 -2
  53. package/dist/locale-provider-CMJmJPPz.js +1111 -0
  54. package/dist/locale-provider-muU_nRQs.cjs +22 -0
  55. package/dist/providers/index.d.ts +3 -0
  56. package/dist/providers/locale-provider/index.d.ts +1 -0
  57. package/dist/providers/locale-provider/locale-provider.d.ts +11 -0
  58. package/dist/providers/theme-provider/ThemeProvider.d.ts +3 -0
  59. package/dist/providers/theme-provider/index.d.ts +2 -0
  60. package/dist/providers/user-provider/UserProvider.d.ts +25 -0
  61. package/dist/providers/user-provider/index.d.ts +1 -0
  62. package/dist/providers.cjs.js +1 -0
  63. package/dist/providers.es.js +128 -0
  64. package/package.json +27 -6
  65. package/dist/index.cjs.js +0 -505
  66. package/dist/index.es.js +0 -8306
@@ -0,0 +1,756 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("./locale-provider-muU_nRQs.cjs"),P=require("react"),oe=require("@radix-ui/react-slot"),me=require("class-variance-authority"),Xv=require("tailwind-merge"),Lt=require("@tanstack/react-table"),co=require("@dnd-kit/sortable"),Ft=require("@dnd-kit/core"),ak=require("@radix-ui/react-dropdown-menu"),pe=require("lucide-react"),Wt=require("@tabler/icons-react"),sk=require("@radix-ui/react-select"),ik=require("@dnd-kit/modifiers"),ck=require("@radix-ui/react-label"),uk=require("@dnd-kit/utilities"),zt=require("react-day-picker"),lk=require("@radix-ui/react-popover"),dk=require("@radix-ui/react-checkbox"),fk=require("@radix-ui/react-collapsible"),Le=require("react-dom"),Tr=require("cmdk"),mk=require("@radix-ui/react-separator"),As=require("react-hook-form"),pk=require("next-themes"),qv=require("sonner"),vk=require("@radix-ui/react-tabs");function jt(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const i=jt(P),je=jt(ak),Ce=jt(sk),gk=jt(ck),uo=jt(lk),$d=jt(dk),Xl=jt(fk),We=jt(Le),hk=jt(mk),ni=jt(vk),Is=me.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function Gv(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=Gv(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function bk(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Gv(e))&&(n&&(n+=" "),n+=t);return n}function F(...e){return Xv.twMerge(bk(e))}function qe({className:e,variant:t,size:r,asChild:n=!1,...o}){const a=n?oe.Slot:"button";return C.jsxRuntimeExports.jsx(a,{"data-slot":"button",className:F(Is({variant:t,size:r,className:e})),...o})}function Zv({className:e,...t}){return C.jsxRuntimeExports.jsx("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:C.jsxRuntimeExports.jsx("table",{"data-slot":"table",className:F("w-full caption-bottom text-sm",e),...t})})}function Jv({className:e,...t}){return C.jsxRuntimeExports.jsx("thead",{"data-slot":"table-header",className:F("[&_tr]:border-b",e),...t})}function Qv({className:e,...t}){return C.jsxRuntimeExports.jsx("tbody",{"data-slot":"table-body",className:F("[&_tr:last-child]:border-0",e),...t})}function yk({className:e,...t}){return C.jsxRuntimeExports.jsx("tfoot",{"data-slot":"table-footer",className:F("bg-muted/50 border-t font-medium [&>tr]:last:border-b-0",e),...t})}function Fs({className:e,...t}){return C.jsxRuntimeExports.jsx("tr",{"data-slot":"table-row",className:F("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",e),...t})}function eg({className:e,...t}){return C.jsxRuntimeExports.jsx("th",{"data-slot":"table-head",className:F("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t})}function ql({className:e,...t}){return C.jsxRuntimeExports.jsx("td",{"data-slot":"table-cell",className:F("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t})}function wk({className:e,...t}){return C.jsxRuntimeExports.jsx("caption",{"data-slot":"table-caption",className:F("text-muted-foreground mt-4 text-sm",e),...t})}function Ju({...e}){return C.jsxRuntimeExports.jsx(je.Root,{"data-slot":"dropdown-menu",...e})}function xk({...e}){return C.jsxRuntimeExports.jsx(je.Portal,{"data-slot":"dropdown-menu-portal",...e})}function Ls({...e}){return C.jsxRuntimeExports.jsx(je.Trigger,{"data-slot":"dropdown-menu-trigger",...e})}function Qu({className:e,sideOffset:t=4,...r}){return C.jsxRuntimeExports.jsx(je.Portal,{children:C.jsxRuntimeExports.jsx(je.Content,{"data-slot":"dropdown-menu-content",sideOffset:t,className:F("bg-popover text-popover-foreground 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 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",e),...r})})}function Ek({...e}){return C.jsxRuntimeExports.jsx(je.Group,{"data-slot":"dropdown-menu-group",...e})}function kk({className:e,inset:t,variant:r="default",...n}){return C.jsxRuntimeExports.jsx(je.Item,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":r,className:F("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...n})}function tg({className:e,children:t,checked:r,...n}){return C.jsxRuntimeExports.jsxs(je.CheckboxItem,{"data-slot":"dropdown-menu-checkbox-item",className:F("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),checked:r,...n,children:[C.jsxRuntimeExports.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:C.jsxRuntimeExports.jsx(je.ItemIndicator,{children:C.jsxRuntimeExports.jsx(pe.CheckIcon,{className:"size-4"})})}),t]})}function rg({...e}){return C.jsxRuntimeExports.jsx(je.RadioGroup,{"data-slot":"dropdown-menu-radio-group",...e})}function ng({className:e,children:t,...r}){return C.jsxRuntimeExports.jsxs(je.RadioItem,{"data-slot":"dropdown-menu-radio-item",className:F("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r,children:[C.jsxRuntimeExports.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:C.jsxRuntimeExports.jsx(je.ItemIndicator,{children:C.jsxRuntimeExports.jsx(pe.CircleIcon,{className:"size-2 fill-current"})})}),t]})}function Sk({className:e,inset:t,...r}){return C.jsxRuntimeExports.jsx(je.Label,{"data-slot":"dropdown-menu-label","data-inset":t,className:F("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",e),...r})}function jk({className:e,...t}){return C.jsxRuntimeExports.jsx(je.Separator,{"data-slot":"dropdown-menu-separator",className:F("bg-border -mx-1 my-1 h-px",e),...t})}function Ck({className:e,...t}){return C.jsxRuntimeExports.jsx("span",{"data-slot":"dropdown-menu-shortcut",className:F("text-muted-foreground ml-auto text-xs tracking-widest",e),...t})}function Rk({...e}){return C.jsxRuntimeExports.jsx(je.Sub,{"data-slot":"dropdown-menu-sub",...e})}function Nk({className:e,inset:t,children:r,...n}){return C.jsxRuntimeExports.jsxs(je.SubTrigger,{"data-slot":"dropdown-menu-sub-trigger","data-inset":t,className:F("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8",e),...n,children:[r,C.jsxRuntimeExports.jsx(pe.ChevronRightIcon,{className:"ml-auto size-4"})]})}function Tk({className:e,...t}){return C.jsxRuntimeExports.jsx(je.SubContent,{"data-slot":"dropdown-menu-sub-content",className:F("bg-popover text-popover-foreground 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 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",e),...t})}function Ok(){return C.jsxRuntimeExports.jsx(Ls,{asChild:!0,children:C.jsxRuntimeExports.jsxs(qe,{variant:"ghost",className:"data-[state=open]:bg-muted text-muted-foreground flex size-8 p-0",size:"icon",children:[C.jsxRuntimeExports.jsx(Wt.IconDotsVertical,{className:"size-4"}),C.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Abrir Menu"})]})})}function og({...e}){return C.jsxRuntimeExports.jsx(Ce.Root,{"data-slot":"select",...e})}function _k({...e}){return C.jsxRuntimeExports.jsx(Ce.Group,{"data-slot":"select-group",...e})}function ag({...e}){return C.jsxRuntimeExports.jsx(Ce.Value,{"data-slot":"select-value",...e})}function sg({className:e,size:t="default",children:r,...n}){return C.jsxRuntimeExports.jsxs(Ce.Trigger,{"data-slot":"select-trigger","data-size":t,className:F("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...n,children:[r,C.jsxRuntimeExports.jsx(Ce.Icon,{asChild:!0,children:C.jsxRuntimeExports.jsx(pe.ChevronDownIcon,{className:"size-4 opacity-50"})})]})}function ig({className:e,children:t,position:r="popper",...n}){return C.jsxRuntimeExports.jsx(Ce.Portal,{children:C.jsxRuntimeExports.jsxs(Ce.Content,{"data-slot":"select-content",className:F("bg-popover text-popover-foreground 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 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,...n,children:[C.jsxRuntimeExports.jsx(ug,{}),C.jsxRuntimeExports.jsx(Ce.Viewport,{className:F("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),C.jsxRuntimeExports.jsx(lg,{})]})})}function Dk({className:e,...t}){return C.jsxRuntimeExports.jsx(Ce.Label,{"data-slot":"select-label",className:F("text-muted-foreground px-2 py-1.5 text-xs",e),...t})}function cg({className:e,children:t,...r}){return C.jsxRuntimeExports.jsxs(Ce.Item,{"data-slot":"select-item",className:F("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...r,children:[C.jsxRuntimeExports.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:C.jsxRuntimeExports.jsx(Ce.ItemIndicator,{children:C.jsxRuntimeExports.jsx(pe.CheckIcon,{className:"size-4"})})}),C.jsxRuntimeExports.jsx(Ce.ItemText,{children:t})]})}function Pk({className:e,...t}){return C.jsxRuntimeExports.jsx(Ce.Separator,{"data-slot":"select-separator",className:F("bg-border pointer-events-none -mx-1 my-1 h-px",e),...t})}function ug({className:e,...t}){return C.jsxRuntimeExports.jsx(Ce.ScrollUpButton,{"data-slot":"select-scroll-up-button",className:F("flex cursor-default items-center justify-center py-1",e),...t,children:C.jsxRuntimeExports.jsx(pe.ChevronUpIcon,{className:"size-4"})})}function lg({className:e,...t}){return C.jsxRuntimeExports.jsx(Ce.ScrollDownButton,{"data-slot":"select-scroll-down-button",className:F("flex cursor-default items-center justify-center py-1",e),...t,children:C.jsxRuntimeExports.jsx(pe.ChevronDownIcon,{className:"size-4"})})}function dg({className:e,type:t,...r}){return C.jsxRuntimeExports.jsx("input",{type:t,"data-slot":"input",className:F("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...r})}function Gl({className:e,...t}){return C.jsxRuntimeExports.jsx(gk.Root,{"data-slot":"label",className:F("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}function Mk({data:e,columns:t,getRowId:r,onRowOrderChange:n,onRowClick:o=()=>{},tableKey:a,Actions:c,defaultColumnFilter:s}){const p=`tablePageSize_${a}`,l=`tableColumnVisibility_${a}`,[u,m]=P.useState(()=>{if(typeof window>"u")return{};const D=localStorage.getItem(l);return D?JSON.parse(D):{}}),[v,h]=P.useState({pageIndex:0,pageSize:Number(typeof window<"u"&&localStorage.getItem(p))||10}),x=P.useId(),d=Ft.useSensors(Ft.useSensor(Ft.MouseSensor,{}),Ft.useSensor(Ft.TouchSensor,{}),Ft.useSensor(Ft.KeyboardSensor,{})),g=P.useMemo(()=>e?.map(({id:D})=>D)||[],[e]),[b,y]=P.useState(e),[w,E]=P.useState({}),[j,T]=P.useState([]),[S,R]=P.useState([]);P.useEffect(()=>{y(e)},[e]),P.useEffect(()=>{localStorage.setItem(l,JSON.stringify(u))},[u,l]),P.useEffect(()=>{localStorage.setItem(p,String(v.pageSize))},[v.pageSize,p]);function M({columns:D}){let Y=!1;for(const U of D)if(U.id==="drag"){Y=!0;break}const H={id:"drag"};return Y?[...D]:[H,...D]}function L(D){const{active:Y,over:H}=D;Y&&H&&Y.id!==H.id&&y(U=>{const V=U.findIndex(N=>N.id===Y.id),f=U.findIndex(N=>N.id===H.id),k=co.arrayMove(U,V,f);return n&&n(k),k})}const I=Lt.useReactTable({data:b,columns:M({columns:t}),state:{sorting:S,columnVisibility:u,rowSelection:w,columnFilters:j,pagination:v},getRowId:r,enableRowSelection:!0,onRowSelectionChange:E,onSortingChange:R,onColumnFiltersChange:T,onColumnVisibilityChange:m,onPaginationChange:h,getCoreRowModel:Lt.getCoreRowModel(),getFilteredRowModel:Lt.getFilteredRowModel(),getPaginationRowModel:Lt.getPaginationRowModel(),getSortedRowModel:Lt.getSortedRowModel(),getFacetedRowModel:Lt.getFacetedRowModel(),getFacetedUniqueValues:Lt.getFacetedUniqueValues()});function B(){const D=I.getAllColumns()[1].columnDef;return String(D.id)?String(D.id):String(D.header)}const[K,z]=P.useState(s??B());return C.jsxRuntimeExports.jsxs("div",{children:[C.jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between px-4 lg:px-6 mb-5 gap-2",children:[C.jsxRuntimeExports.jsxs("div",{className:"relative w-full h-[32px]",children:[C.jsxRuntimeExports.jsx(pe.Search,{className:"absolute left-3 top-1/2 w-4 -translate-y-1/2 text-muted-foreground"}),C.jsxRuntimeExports.jsx(dg,{type:"text",placeholder:"",className:"pl-10 h-[32px]",value:I.getColumn(K)?.getFilterValue()??"",onChange:D=>{I.getColumn(K)?.setFilterValue(D.target.value)}})]}),C.jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:[C.jsxRuntimeExports.jsxs(Ju,{children:[C.jsxRuntimeExports.jsx(Ls,{asChild:!0,children:C.jsxRuntimeExports.jsxs(qe,{variant:"outline",size:"sm",children:[C.jsxRuntimeExports.jsx(pe.FilterIcon,{}),C.jsxRuntimeExports.jsx("span",{className:"sm:hidden lg:inline",children:K||"Filtro"}),C.jsxRuntimeExports.jsx("span",{className:"lg:hidden",children:K||"Filtro"}),C.jsxRuntimeExports.jsx(Wt.IconChevronDown,{})]})}),C.jsxRuntimeExports.jsx(Qu,{align:"end",className:"w-56",children:C.jsxRuntimeExports.jsx(rg,{value:K,onValueChange:D=>{T([]),z(D)},children:I.getAllColumns().filter(D=>typeof D.accessorFn<"u"&&D.getCanHide()).map(D=>{const Y=D.columnDef.id?String(D.columnDef.id):String(D.columnDef.header);return C.jsxRuntimeExports.jsx(ng,{value:Y,children:Y},Y)})})})]}),C.jsxRuntimeExports.jsxs(Ju,{children:[C.jsxRuntimeExports.jsx(Ls,{asChild:!0,children:C.jsxRuntimeExports.jsxs(qe,{variant:"outline",size:"sm",children:[C.jsxRuntimeExports.jsx(Wt.IconLayoutColumns,{}),C.jsxRuntimeExports.jsx("span",{className:"hidden lg:inline",children:"Colunas"}),C.jsxRuntimeExports.jsx("span",{className:"lg:hidden",children:"Colunas"}),C.jsxRuntimeExports.jsx(Wt.IconChevronDown,{})]})}),C.jsxRuntimeExports.jsx(Qu,{align:"end",className:"w-56",children:I.getAllColumns().filter(D=>typeof D.accessorFn<"u"&&D.getCanHide()).map(D=>C.jsxRuntimeExports.jsx(tg,{className:"capitalize",checked:D.getIsVisible(),onCheckedChange:Y=>{D.toggleVisibility(!!Y)},children:D.columnDef.id?String(D.columnDef.id):String(D.columnDef.header)},D.id))})]}),c]})]}),C.jsxRuntimeExports.jsxs("div",{className:"relative flex flex-col gap-4 overflow-auto px-4 lg:px-6",children:[C.jsxRuntimeExports.jsx("div",{className:"overflow-hidden rounded-lg border",children:C.jsxRuntimeExports.jsx(Ft.DndContext,{collisionDetection:Ft.closestCenter,modifiers:[ik.restrictToVerticalAxis],onDragEnd:L,sensors:d,id:x,children:C.jsxRuntimeExports.jsxs(Zv,{children:[C.jsxRuntimeExports.jsx(Jv,{className:"sticky top-0 z-10",children:I.getHeaderGroups().map(D=>C.jsxRuntimeExports.jsx(Fs,{children:D.headers.map(Y=>C.jsxRuntimeExports.jsx(eg,{colSpan:Y.colSpan,children:Y.isPlaceholder?null:Lt.flexRender(Y.column.columnDef.header,Y.getContext())},Y.id))},D.id))}),C.jsxRuntimeExports.jsx(co.SortableContext,{items:g,strategy:co.verticalListSortingStrategy,children:C.jsxRuntimeExports.jsx(Qv,{className:"**:data-[slot=table-cell]:first:w-8",children:I.getRowModel().rows?.length?I.getRowModel().rows.map(D=>C.jsxRuntimeExports.jsx(fg,{row:D,onRowClick:o},D.id)):C.jsxRuntimeExports.jsx(Fs,{children:C.jsxRuntimeExports.jsx(ql,{colSpan:t.length,className:"h-24 text-center",children:"Nenhum Resultado."})})})})]})})}),C.jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between px-4",children:[C.jsxRuntimeExports.jsxs("div",{className:"text-muted-foreground hidden flex-1 text-sm lg:flex",children:[I.getFilteredSelectedRowModel().rows.length," de"," ",I.getFilteredRowModel().rows.length," linhas selecionadas."]}),C.jsxRuntimeExports.jsxs("div",{className:"flex w-full items-center gap-8 lg:w-fit",children:[C.jsxRuntimeExports.jsxs("div",{className:"hidden items-center gap-2 lg:flex",children:[C.jsxRuntimeExports.jsx(Gl,{htmlFor:"rows-per-page",className:"text-sm font-medium",children:"linhas por paginas"}),C.jsxRuntimeExports.jsxs(og,{value:`${I.getState().pagination.pageSize}`,onValueChange:D=>{I.setPageSize(Number(D))},children:[C.jsxRuntimeExports.jsx(sg,{size:"sm",className:"w-20",id:"rows-per-page",children:C.jsxRuntimeExports.jsx(ag,{placeholder:I.getState().pagination.pageSize})}),C.jsxRuntimeExports.jsx(ig,{side:"top",children:[10,20,30,40,50].map(D=>C.jsxRuntimeExports.jsx(cg,{value:`${D}`,children:D},D))})]})]}),C.jsxRuntimeExports.jsxs("div",{className:"flex w-fit items-center justify-center text-sm font-medium",children:["Página ",I.getState().pagination.pageIndex+1," de"," ",I.getPageCount()]}),C.jsxRuntimeExports.jsxs("div",{className:"ml-auto flex items-center gap-2 lg:ml-0",children:[C.jsxRuntimeExports.jsxs(qe,{variant:"outline",className:"hidden h-8 w-8 p-0 lg:flex",onClick:()=>I.setPageIndex(0),disabled:!I.getCanPreviousPage(),children:[C.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Go to first page"}),C.jsxRuntimeExports.jsx(Wt.IconChevronsLeft,{})]}),C.jsxRuntimeExports.jsxs(qe,{variant:"outline",className:"size-8",size:"icon",onClick:()=>I.previousPage(),disabled:!I.getCanPreviousPage(),children:[C.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Go to previous page"}),C.jsxRuntimeExports.jsx(Wt.IconChevronLeft,{})]}),C.jsxRuntimeExports.jsxs(qe,{variant:"outline",className:"size-8",size:"icon",onClick:()=>I.nextPage(),disabled:!I.getCanNextPage(),children:[C.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Go to next page"}),C.jsxRuntimeExports.jsx(Wt.IconChevronRight,{})]}),C.jsxRuntimeExports.jsxs(qe,{variant:"outline",className:"hidden size-8 lg:flex",size:"icon",onClick:()=>I.setPageIndex(I.getPageCount()-1),disabled:!I.getCanNextPage(),children:[C.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Go to last page"}),C.jsxRuntimeExports.jsx(Wt.IconChevronsRight,{})]})]})]})]})]})]})}function fg({row:e,onRowClick:t=()=>{}}){const{transform:r,transition:n,setNodeRef:o,isDragging:a}=co.useSortable({id:e.original.id});return C.jsxRuntimeExports.jsx(Fs,{"data-state":e.getIsSelected()&&"selected","data-dragging":a,ref:o,style:{transform:uk.CSS.Transform.toString(r),transition:n,cursor:"grab"},onClick:()=>{t(e.original)},children:e.getVisibleCells().map(c=>C.jsxRuntimeExports.jsx(ql,{className:"cursor-pointer",children:Lt.flexRender(c.column.columnDef.cell,c.getContext())},c.id))})}function Ak({id:e}){const{attributes:t,listeners:r}=co.useSortable({id:e});return C.jsxRuntimeExports.jsxs(qe,{...t,...r,variant:"ghost",size:"icon",className:"text-muted-foreground size-7 hover:bg-transparent cursor-pointer",children:[C.jsxRuntimeExports.jsx(Wt.IconGripVertical,{className:"text-muted-foreground size-3"}),C.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Drag to reorder"})]})}function Zl({className:e,classNames:t,showOutsideDays:r=!0,captionLayout:n="label",buttonVariant:o="ghost",formatters:a,components:c,...s}){const p=zt.getDefaultClassNames();return C.jsxRuntimeExports.jsx(zt.DayPicker,{showOutsideDays:r,className:F("bg-background group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,e),captionLayout:n,formatters:{formatMonthDropdown:l=>l.toLocaleString("default",{month:"short"}),...a},classNames:{root:F("w-fit",p.root),months:F("flex gap-4 flex-col md:flex-row relative",p.months),month:F("flex flex-col w-full gap-4",p.month),nav:F("flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between",p.nav),button_previous:F(Is({variant:o}),"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",p.button_previous),button_next:F(Is({variant:o}),"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",p.button_next),month_caption:F("flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)",p.month_caption),dropdowns:F("w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5",p.dropdowns),dropdown_root:F("relative has-focus:border-ring border border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] rounded-md",p.dropdown_root),dropdown:F("absolute bg-popover inset-0 opacity-0",p.dropdown),caption_label:F("select-none font-medium",n==="label"?"text-sm":"rounded-md pl-2 pr-1 flex items-center gap-1 text-sm h-8 [&>svg]:text-muted-foreground [&>svg]:size-3.5",p.caption_label),table:"w-full border-collapse",weekdays:F("flex",p.weekdays),weekday:F("text-muted-foreground rounded-md flex-1 font-normal text-[0.8rem] select-none",p.weekday),week:F("flex w-full mt-2",p.week),week_number_header:F("select-none w-(--cell-size)",p.week_number_header),week_number:F("text-[0.8rem] select-none text-muted-foreground",p.week_number),day:F("relative w-full h-full p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md group/day aspect-square select-none",p.day),range_start:F("rounded-l-md bg-accent",p.range_start),range_middle:F("rounded-none",p.range_middle),range_end:F("rounded-r-md bg-accent",p.range_end),today:F("bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",p.today),outside:F("text-muted-foreground aria-selected:text-muted-foreground",p.outside),disabled:F("text-muted-foreground opacity-50",p.disabled),hidden:F("invisible",p.hidden),...t},components:{Root:({className:l,rootRef:u,...m})=>C.jsxRuntimeExports.jsx("div",{"data-slot":"calendar",ref:u,className:F(l),...m}),Chevron:({className:l,orientation:u,...m})=>u==="left"?C.jsxRuntimeExports.jsx(pe.ChevronLeftIcon,{className:F("size-4",l),...m}):u==="right"?C.jsxRuntimeExports.jsx(pe.ChevronRightIcon,{className:F("size-4",l),...m}):C.jsxRuntimeExports.jsx(pe.ChevronDownIcon,{className:F("size-4",l),...m}),DayButton:mg,WeekNumber:({children:l,...u})=>C.jsxRuntimeExports.jsx("td",{...u,children:C.jsxRuntimeExports.jsx("div",{className:"flex size-(--cell-size) items-center justify-center text-center",children:l})}),...c},...s})}function mg({className:e,day:t,modifiers:r,...n}){const o=zt.getDefaultClassNames(),a=P.useRef(null);return P.useEffect(()=>{r.focused&&a.current?.focus()},[r.focused]),C.jsxRuntimeExports.jsx(qe,{ref:a,variant:"ghost",size:"icon","data-day":t.date.toLocaleDateString(),"data-selected-single":r.selected&&!r.range_start&&!r.range_end&&!r.range_middle,"data-range-start":r.range_start,"data-range-end":r.range_end,"data-range-middle":r.range_middle,className:F("data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 dark:hover:text-accent-foreground flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md [&>span]:text-xs [&>span]:opacity-70",o.day,e),...n})}const pg=6048e5,Ik=864e5,Yd=Symbol.for("constructDateFrom");function ur(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Yd in e?e[Yd](t):e instanceof Date?new e.constructor(t):new Date(t)}function Je(e,t){return ur(t||e,e)}let Fk={};function oi(){return Fk}function lo(e,t){const r=oi(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=Je(e,t?.in),a=o.getDay(),c=(a<n?7:0)+a-n;return o.setDate(o.getDate()-c),o.setHours(0,0,0,0),o}function Ws(e,t){return lo(e,{...t,weekStartsOn:1})}function vg(e,t){const r=Je(e,t?.in),n=r.getFullYear(),o=ur(r,0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);const a=Ws(o),c=ur(r,0);c.setFullYear(n,0,4),c.setHours(0,0,0,0);const s=Ws(c);return r.getTime()>=a.getTime()?n+1:r.getTime()>=s.getTime()?n:n-1}function Ud(e){const t=Je(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function Lk(e,...t){const r=ur.bind(null,t.find(n=>typeof n=="object"));return t.map(r)}function Bd(e,t){const r=Je(e,t?.in);return r.setHours(0,0,0,0),r}function Wk(e,t,r){const[n,o]=Lk(r?.in,e,t),a=Bd(n),c=Bd(o),s=+a-Ud(a),p=+c-Ud(c);return Math.round((s-p)/Ik)}function zk(e,t){const r=vg(e,t),n=ur(e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),Ws(n)}function $k(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Yk(e){return!(!$k(e)&&typeof e!="number"||isNaN(+Je(e)))}function Uk(e,t){const r=Je(e,t?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}function Bk(e,t){const r=Je(e,t?.in);return Wk(r,Uk(r))+1}function Kk(e,t){const r=Je(e,t?.in),n=+Ws(r)-+zk(r);return Math.round(n/pg)+1}function gg(e,t){const r=Je(e,t?.in),n=r.getFullYear(),o=oi(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,c=ur(t?.in||e,0);c.setFullYear(n+1,0,a),c.setHours(0,0,0,0);const s=lo(c,t),p=ur(t?.in||e,0);p.setFullYear(n,0,a),p.setHours(0,0,0,0);const l=lo(p,t);return+r>=+s?n+1:+r>=+l?n:n-1}function Hk(e,t){const r=oi(),n=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=gg(e,t),a=ur(t?.in||e,0);return a.setFullYear(o,0,n),a.setHours(0,0,0,0),lo(a,t)}function Vk(e,t){const r=Je(e,t?.in),n=+lo(r,t)-+Hk(r,t);return Math.round(n/pg)+1}function ie(e,t){const r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}const Ht={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return ie(t==="yy"?n%100:n,t.length)},M(e,t){const r=e.getMonth();return t==="M"?String(r+1):ie(r+1,2)},d(e,t){return ie(e.getDate(),t.length)},a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return ie(e.getHours()%12||12,t.length)},H(e,t){return ie(e.getHours(),t.length)},m(e,t){return ie(e.getMinutes(),t.length)},s(e,t){return ie(e.getSeconds(),t.length)},S(e,t){const r=t.length,n=e.getMilliseconds(),o=Math.trunc(n*Math.pow(10,r-3));return ie(o,t.length)}},Pr={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Kd={G:function(e,t,r){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){const n=e.getFullYear(),o=n>0?n:1-n;return r.ordinalNumber(o,{unit:"year"})}return Ht.y(e,t)},Y:function(e,t,r,n){const o=gg(e,n),a=o>0?o:1-o;if(t==="YY"){const c=a%100;return ie(c,2)}return t==="Yo"?r.ordinalNumber(a,{unit:"year"}):ie(a,t.length)},R:function(e,t){const r=vg(e);return ie(r,t.length)},u:function(e,t){const r=e.getFullYear();return ie(r,t.length)},Q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return ie(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return ie(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){const n=e.getMonth();switch(t){case"M":case"MM":return Ht.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return ie(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){const o=Vk(e,n);return t==="wo"?r.ordinalNumber(o,{unit:"week"}):ie(o,t.length)},I:function(e,t,r){const n=Kk(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):ie(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):Ht.d(e,t)},D:function(e,t,r){const n=Bk(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):ie(n,t.length)},E:function(e,t,r){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){const o=e.getDay(),a=(o-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return ie(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){const o=e.getDay(),a=(o-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return ie(a,t.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,r){const n=e.getDay(),o=n===0?7:n;switch(t){case"i":return String(o);case"ii":return ie(o,t.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,r){const n=e.getHours();let o;switch(n===12?o=Pr.noon:n===0?o=Pr.midnight:o=n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,r){const n=e.getHours();let o;switch(n>=17?o=Pr.evening:n>=12?o=Pr.afternoon:n>=4?o=Pr.morning:o=Pr.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return Ht.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):Ht.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):ie(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):ie(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):Ht.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):Ht.s(e,t)},S:function(e,t){return Ht.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return Vd(n);case"XXXX":case"XX":return mr(n);case"XXXXX":case"XXX":default:return mr(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return Vd(n);case"xxxx":case"xx":return mr(n);case"xxxxx":case"xxx":default:return mr(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Hd(n,":");case"OOOO":default:return"GMT"+mr(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Hd(n,":");case"zzzz":default:return"GMT"+mr(n,":")}},t:function(e,t,r){const n=Math.trunc(+e/1e3);return ie(n,t.length)},T:function(e,t,r){return ie(+e,t.length)}};function Hd(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),o=Math.trunc(n/60),a=n%60;return a===0?r+String(o):r+String(o)+t+ie(a,2)}function Vd(e,t){return e%60===0?(e>0?"-":"+")+ie(Math.abs(e)/60,2):mr(e,t)}function mr(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),o=ie(Math.trunc(n/60),2),a=ie(n%60,2);return r+o+t+a}const Xd=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},hg=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Xk=(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],o=r[2];if(!o)return Xd(e,t);let a;switch(n){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",Xd(n,t)).replace("{{time}}",hg(o,t))},qk={p:hg,P:Xk},Gk=/^D+$/,Zk=/^Y+$/,Jk=["D","DD","YY","YYYY"];function Qk(e){return Gk.test(e)}function eS(e){return Zk.test(e)}function tS(e,t,r){const n=rS(e,t,r);if(console.warn(n),Jk.includes(e))throw new RangeError(n)}function rS(e,t,r){const n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const nS=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,oS=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,aS=/^'([^]*?)'?$/,sS=/''/g,iS=/[a-zA-Z]/;function el(e,t,r){const n=oi(),o=r?.locale??n.locale??C.enUS,a=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,c=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,s=Je(e,r?.in);if(!Yk(s))throw new RangeError("Invalid time value");let p=t.match(oS).map(u=>{const m=u[0];if(m==="p"||m==="P"){const v=qk[m];return v(u,o.formatLong)}return u}).join("").match(nS).map(u=>{if(u==="''")return{isToken:!1,value:"'"};const m=u[0];if(m==="'")return{isToken:!1,value:cS(u)};if(Kd[m])return{isToken:!0,value:u};if(m.match(iS))throw new RangeError("Format string contains an unescaped latin alphabet character `"+m+"`");return{isToken:!1,value:u}});o.localize.preprocessor&&(p=o.localize.preprocessor(s,p));const l={firstWeekContainsDate:a,weekStartsOn:c,locale:o};return p.map(u=>{if(!u.isToken)return u.value;const m=u.value;(!r?.useAdditionalWeekYearTokens&&eS(m)||!r?.useAdditionalDayOfYearTokens&&Qk(m))&&tS(m,t,String(e));const v=Kd[m[0]];return v(s,m,o.localize,l)}).join("")}function cS(e){const t=e.match(aS);return t?t[1].replace(sS,"'"):e}function To({...e}){return C.jsxRuntimeExports.jsx(uo.Root,{"data-slot":"popover",...e})}function Oo({...e}){return C.jsxRuntimeExports.jsx(uo.Trigger,{"data-slot":"popover-trigger",...e})}function _o({className:e,align:t="center",sideOffset:r=4,...n}){return C.jsxRuntimeExports.jsx(uo.Portal,{children:C.jsxRuntimeExports.jsx(uo.Content,{"data-slot":"popover-content",align:t,sideOffset:r,className:F("bg-popover text-popover-foreground 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 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",e),...n})})}function uS({...e}){return C.jsxRuntimeExports.jsx(uo.Anchor,{"data-slot":"popover-anchor",...e})}function lS({value:e,onChange:t=()=>{}}){const[r,n]=P.useState(e),{locale:o}=C.useLocale();return C.jsxRuntimeExports.jsxs(To,{children:[C.jsxRuntimeExports.jsx(Oo,{asChild:!0,children:C.jsxRuntimeExports.jsxs(qe,{variant:"outline",className:F("justify-start text-left font-normal cursor-pointer h-[32px] border-dashed",!r&&"text-muted-foreground"),children:[C.jsxRuntimeExports.jsx(pe.Calendar,{className:"mr-2 h-4 w-4"}),r?el(new zt.TZDate(r.toString(),"UTC"),"dd 'de' MMMM 'de' yyyy",{locale:o}):C.jsxRuntimeExports.jsx("span",{children:"Selecione uma data"})]})}),C.jsxRuntimeExports.jsx(_o,{className:"w-auto p-0",children:C.jsxRuntimeExports.jsx(Zl,{mode:"single",captionLayout:"dropdown",locale:o,timeZone:"UTC",selected:r,defaultMonth:e?new zt.TZDate(e.toString()):new zt.TZDate,onSelect:a=>{n(a),t(a)},endMonth:new zt.TZDate(2099,11)})})]})}function dS({locale:e,value:t,onChange:r=()=>{}}){const[n,o]=P.useState(t),{locale:a}=C.useLocale();return C.jsxRuntimeExports.jsxs(To,{children:[C.jsxRuntimeExports.jsx(Oo,{asChild:!0,children:C.jsxRuntimeExports.jsxs(qe,{variant:"outline",className:F("justify-start text-left font-normal cursor-pointer h-[32px] border-dashed",!n&&"text-muted-foreground"),children:[C.jsxRuntimeExports.jsx(pe.Calendar,{className:"mr-2 h-4 w-4"}),n?.from&&n?.to?`${el(n.from,"dd/MM/yy")} - ${el(n.to,"dd/MM/yy")}`:C.jsxRuntimeExports.jsx("span",{children:"Selecione um período"})]})}),C.jsxRuntimeExports.jsx(_o,{className:"w-auto p-0",children:C.jsxRuntimeExports.jsx(Zl,{mode:"range",selected:n,onSelect:c=>{c&&(o(c),r(c))},locale:e||a,captionLayout:"dropdown",endMonth:new zt.TZDate(2099,11),numberOfMonths:1,className:"rounded-lg border shadow-sm"})})]})}const bg=me.cva("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function us({className:e,variant:t,asChild:r=!1,...n}){const o=r?oe.Slot:"span";return C.jsxRuntimeExports.jsx(o,{"data-slot":"badge",className:F(bg({variant:t}),e),...n})}function fS({className:e,...t}){return C.jsxRuntimeExports.jsx("div",{"data-slot":"card",className:F("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...t})}function mS({className:e,...t}){return C.jsxRuntimeExports.jsx("div",{"data-slot":"card-header",className:F("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function pS({className:e,...t}){return C.jsxRuntimeExports.jsx("div",{"data-slot":"card-title",className:F("leading-none font-semibold",e),...t})}function vS({className:e,...t}){return C.jsxRuntimeExports.jsx("div",{"data-slot":"card-description",className:F("text-muted-foreground text-sm",e),...t})}function gS({className:e,...t}){return C.jsxRuntimeExports.jsx("div",{"data-slot":"card-action",className:F("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...t})}function hS({className:e,...t}){return C.jsxRuntimeExports.jsx("div",{"data-slot":"card-content",className:F("px-6",e),...t})}function bS({className:e,...t}){return C.jsxRuntimeExports.jsx("div",{"data-slot":"card-footer",className:F("flex items-center px-6 [.border-t]:pt-6",e),...t})}function yS({className:e,...t}){return C.jsxRuntimeExports.jsx($d.Root,{"data-slot":"checkbox",className:F("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:C.jsxRuntimeExports.jsx($d.Indicator,{"data-slot":"checkbox-indicator",className:"flex items-center justify-center text-current transition-none",children:C.jsxRuntimeExports.jsx(pe.CheckIcon,{className:"size-3.5"})})})}function wS({...e}){return C.jsxRuntimeExports.jsx(Xl.Root,{"data-slot":"collapsible",...e})}function xS({...e}){return C.jsxRuntimeExports.jsx(Xl.CollapsibleTrigger,{"data-slot":"collapsible-trigger",...e})}function ES({...e}){return C.jsxRuntimeExports.jsx(Xl.CollapsibleContent,{"data-slot":"collapsible-content",...e})}function sr(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e?.(o),r===!1||!o.defaultPrevented)return t?.(o)}}function qd(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function kS(...e){return t=>{let r=!1;const n=e.map(o=>{const a=qd(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():qd(e[o],null)}}}}function Or(...e){return i.useCallback(kS(...e),e)}function SS(e,t){const r=i.createContext(t),n=a=>{const{children:c,...s}=a,p=i.useMemo(()=>s,Object.values(s));return C.jsxRuntimeExports.jsx(r.Provider,{value:p,children:c})};n.displayName=e+"Provider";function o(a){const c=i.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function jS(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),p=r.length;r=[...r,c];const l=m=>{const{scope:v,children:h,...x}=m,d=v?.[e]?.[p]||s,g=i.useMemo(()=>x,Object.values(x));return C.jsxRuntimeExports.jsx(d.Provider,{value:g,children:h})};l.displayName=a+"Provider";function u(m,v){const h=v?.[e]?.[p]||s,x=i.useContext(h);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${m}\` must be used within \`${a}\``)}return[l,u]}const o=()=>{const a=r.map(c=>i.createContext(c));return function(s){const p=s?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...s,[e]:p}}),[s,p])}};return o.scopeName=e,[n,CS(o,...t)]}function CS(...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(a){const c=n.reduce((s,{useScope:p,scopeName:l})=>{const m=p(a)[`__scope${l}`];return{...s,...m}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return r.scopeName=t.scopeName,r}var fo=globalThis?.document?i.useLayoutEffect:()=>{},RS=i[" useId ".trim().toString()]||(()=>{}),NS=0;function Ji(e){const[t,r]=i.useState(RS());return fo(()=>{r(n=>n??String(NS++))},[e]),e||(t?`radix-${t}`:"")}var TS=i[" useInsertionEffect ".trim().toString()]||fo;function OS({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,c]=_S({defaultProp:t,onChange:r}),s=e!==void 0,p=s?e:o;{const u=i.useRef(e!==void 0);i.useEffect(()=>{const m=u.current;m!==s&&console.warn(`${n} is changing from ${m?"controlled":"uncontrolled"} to ${s?"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.`),u.current=s},[s,n])}const l=i.useCallback(u=>{if(s){const m=DS(u)?u(e):u;m!==e&&c.current?.(m)}else a(u)},[s,e,a,c]);return[p,l]}function _S({defaultProp:e,onChange:t}){const[r,n]=i.useState(e),o=i.useRef(r),a=i.useRef(t);return TS(()=>{a.current=t},[t]),i.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}function DS(e){return typeof e=="function"}var PS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ut=PS.reduce((e,t)=>{const r=oe.createSlot(`Primitive.${t}`),n=i.forwardRef((o,a)=>{const{asChild:c,...s}=o,p=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),C.jsxRuntimeExports.jsx(p,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function MS(e,t){e&&We.flushSync(()=>e.dispatchEvent(t))}function mo(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function AS(e,t=globalThis?.document){const r=mo(e);i.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 IS="DismissableLayer",tl="dismissableLayer.update",FS="dismissableLayer.pointerDownOutside",LS="dismissableLayer.focusOutside",Gd,yg=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),wg=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...p}=e,l=i.useContext(yg),[u,m]=i.useState(null),v=u?.ownerDocument??globalThis?.document,[,h]=i.useState({}),x=Or(t,S=>m(S)),d=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),b=d.indexOf(g),y=u?d.indexOf(u):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,E=y>=b,j=$S(S=>{const R=S.target,M=[...l.branches].some(L=>L.contains(R));!E||M||(o?.(S),c?.(S),S.defaultPrevented||s?.())},v),T=YS(S=>{const R=S.target;[...l.branches].some(L=>L.contains(R))||(a?.(S),c?.(S),S.defaultPrevented||s?.())},v);return AS(S=>{y===l.layers.size-1&&(n?.(S),!S.defaultPrevented&&s&&(S.preventDefault(),s()))},v),i.useEffect(()=>{if(u)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Gd=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),Zd(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Gd)}},[u,v,r,l]),i.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),Zd())},[u,l]),i.useEffect(()=>{const S=()=>h({});return document.addEventListener(tl,S),()=>document.removeEventListener(tl,S)},[]),C.jsxRuntimeExports.jsx(Ut.div,{...p,ref:x,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:sr(e.onFocusCapture,T.onFocusCapture),onBlurCapture:sr(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:sr(e.onPointerDownCapture,j.onPointerDownCapture)})});wg.displayName=IS;var WS="DismissableLayerBranch",zS=i.forwardRef((e,t)=>{const r=i.useContext(yg),n=i.useRef(null),o=Or(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),C.jsxRuntimeExports.jsx(Ut.div,{...e,ref:o})});zS.displayName=WS;function $S(e,t=globalThis?.document){const r=mo(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let p=function(){xg(FS,r,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=p,t.addEventListener("click",o.current,{once:!0})):p()}else t.removeEventListener("click",o.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function YS(e,t=globalThis?.document){const r=mo(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&xg(LS,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Zd(){const e=new CustomEvent(tl);document.dispatchEvent(e)}function xg(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?MS(o,a):o.dispatchEvent(a)}var Qi="focusScope.autoFocusOnMount",ec="focusScope.autoFocusOnUnmount",Jd={bubbles:!1,cancelable:!0},US="FocusScope",Eg=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,p]=i.useState(null),l=mo(o),u=mo(a),m=i.useRef(null),v=Or(t,d=>p(d)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let d=function(w){if(h.paused||!s)return;const E=w.target;s.contains(E)?m.current=E:Xt(m.current,{select:!0})},g=function(w){if(h.paused||!s)return;const E=w.relatedTarget;E!==null&&(s.contains(E)||Xt(m.current,{select:!0}))},b=function(w){if(document.activeElement===document.body)for(const j of w)j.removedNodes.length>0&&Xt(s)};document.addEventListener("focusin",d),document.addEventListener("focusout",g);const y=new MutationObserver(b);return s&&y.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",d),document.removeEventListener("focusout",g),y.disconnect()}}},[n,s,h.paused]),i.useEffect(()=>{if(s){ef.add(h);const d=document.activeElement;if(!s.contains(d)){const b=new CustomEvent(Qi,Jd);s.addEventListener(Qi,l),s.dispatchEvent(b),b.defaultPrevented||(BS(qS(kg(s)),{select:!0}),document.activeElement===d&&Xt(s))}return()=>{s.removeEventListener(Qi,l),setTimeout(()=>{const b=new CustomEvent(ec,Jd);s.addEventListener(ec,u),s.dispatchEvent(b),b.defaultPrevented||Xt(d??document.body,{select:!0}),s.removeEventListener(ec,u),ef.remove(h)},0)}}},[s,l,u,h]);const x=i.useCallback(d=>{if(!r&&!n||h.paused)return;const g=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,b=document.activeElement;if(g&&b){const y=d.currentTarget,[w,E]=KS(y);w&&E?!d.shiftKey&&b===E?(d.preventDefault(),r&&Xt(w,{select:!0})):d.shiftKey&&b===w&&(d.preventDefault(),r&&Xt(E,{select:!0})):b===y&&d.preventDefault()}},[r,n,h.paused]);return C.jsxRuntimeExports.jsx(Ut.div,{tabIndex:-1,...c,ref:v,onKeyDown:x})});Eg.displayName=US;function BS(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Xt(n,{select:t}),document.activeElement!==r)return}function KS(e){const t=kg(e),r=Qd(t,e),n=Qd(t.reverse(),e);return[r,n]}function kg(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 Qd(e,t){for(const r of e)if(!HS(r,{upTo:t}))return r}function HS(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 VS(e){return e instanceof HTMLInputElement&&"select"in e}function Xt(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&VS(e)&&t&&e.select()}}var ef=XS();function XS(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=tf(e,t),e.unshift(t)},remove(t){e=tf(e,t),e[0]?.resume()}}}function tf(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function qS(e){return e.filter(t=>t.tagName!=="A")}var GS="Portal",Sg=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);fo(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?Le.createPortal(C.jsxRuntimeExports.jsx(Ut.div,{...n,ref:t}),c):null});Sg.displayName=GS;function ZS(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var ai=e=>{const{present:t,children:r}=e,n=JS(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=Or(n.ref,QS(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};ai.displayName="Presence";function JS(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,p]=ZS(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const l=Ko(n.current);a.current=s==="mounted"?l:"none"},[s]),fo(()=>{const l=n.current,u=o.current;if(u!==e){const v=a.current,h=Ko(l);e?p("MOUNT"):h==="none"||l?.display==="none"?p("UNMOUNT"):p(u&&v!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,p]),fo(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,m=h=>{const d=Ko(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&d&&(p("ANIMATION_END"),!o.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},v=h=>{h.target===t&&(a.current=Ko(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else p("ANIMATION_END")},[t,p]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function Ko(e){return e?.animationName||"none"}function QS(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var tc=0;function ej(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??rf()),document.body.insertAdjacentElement("beforeend",e[1]??rf()),tc++,()=>{tc===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),tc--}},[])}function rf(){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 et=function(){return et=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},et.apply(this,arguments)};function jg(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 tj(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var ls="right-scroll-bar-position",ds="width-before-scroll-bar",rj="with-scroll-bars-hidden",nj="--removed-body-scroll-bar-size";function rc(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function oj(e,t){var r=P.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 aj=typeof window<"u"?i.useLayoutEffect:i.useEffect,nf=new WeakMap;function sj(e,t){var r=oj(null,function(n){return e.forEach(function(o){return rc(o,n)})});return aj(function(){var n=nf.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||rc(s,null)}),a.forEach(function(s){o.has(s)||rc(s,c)})}nf.set(r,e)},[e]),r}function ij(e){return e}function cj(e,t){t===void 0&&(t=ij);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(a){var c=t(a,n);return r.push(c),function(){r=r.filter(function(s){return s!==c})}},assignSyncMedium:function(a){for(n=!0;r.length;){var c=r;r=[],c.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var c=[];if(r.length){var s=r;r=[],s.forEach(a),c=r}var p=function(){var u=c;c=[],u.forEach(a)},l=function(){return Promise.resolve().then(p)};l(),r={push:function(u){c.push(u),l()},filter:function(u){return c=c.filter(u),r}}}};return o}function uj(e){e===void 0&&(e={});var t=cj(null);return t.options=et({async:!0,ssr:!1},e),t}var Cg=function(e){var t=e.sideCar,r=jg(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 i.createElement(n,et({},r))};Cg.isSideCarExport=!0;function lj(e,t){return e.useMedium(t),Cg}var Rg=uj(),nc=function(){},si=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:nc,onWheelCapture:nc,onTouchMoveCapture:nc}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,p=e.className,l=e.removeScrollBar,u=e.enabled,m=e.shards,v=e.sideCar,h=e.noRelative,x=e.noIsolation,d=e.inert,g=e.allowPinchZoom,b=e.as,y=b===void 0?"div":b,w=e.gapMode,E=jg(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),j=v,T=sj([r,t]),S=et(et({},E),o);return i.createElement(i.Fragment,null,u&&i.createElement(j,{sideCar:Rg,removeScrollBar:l,shards:m,noRelative:h,noIsolation:x,inert:d,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),et(et({},S),{ref:T})):i.createElement(y,et({},S,{className:p,ref:T}),s))});si.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};si.classNames={fullWidth:ds,zeroRight:ls};var dj=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function fj(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=dj();return t&&e.setAttribute("nonce",t),e}function mj(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function pj(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var vj=function(){var e=0,t=null;return{add:function(r){e==0&&(t=fj())&&(mj(t,r),pj(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},gj=function(){var e=vj();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Ng=function(){var e=gj(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},hj={left:0,top:0,right:0,gap:0},oc=function(e){return parseInt(e||"",10)||0},bj=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[oc(r),oc(n),oc(o)]},yj=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return hj;var t=bj(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])}},wj=Ng(),bn="data-scroll-locked",xj=function(e,t,r,n){var o=e.left,a=e.top,c=e.right,s=e.gap;return r===void 0&&(r="margin"),`
2
+ .`.concat(rj,` {
3
+ overflow: hidden `).concat(n,`;
4
+ padding-right: `).concat(s,"px ").concat(n,`;
5
+ }
6
+ body[`).concat(bn,`] {
7
+ overflow: hidden `).concat(n,`;
8
+ overscroll-behavior: contain;
9
+ `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
10
+ padding-left: `.concat(o,`px;
11
+ padding-top: `).concat(a,`px;
12
+ padding-right: `).concat(c,`px;
13
+ margin-left:0;
14
+ margin-top:0;
15
+ margin-right: `).concat(s,"px ").concat(n,`;
16
+ `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
17
+ }
18
+
19
+ .`).concat(ls,` {
20
+ right: `).concat(s,"px ").concat(n,`;
21
+ }
22
+
23
+ .`).concat(ds,` {
24
+ margin-right: `).concat(s,"px ").concat(n,`;
25
+ }
26
+
27
+ .`).concat(ls," .").concat(ls,` {
28
+ right: 0 `).concat(n,`;
29
+ }
30
+
31
+ .`).concat(ds," .").concat(ds,` {
32
+ margin-right: 0 `).concat(n,`;
33
+ }
34
+
35
+ body[`).concat(bn,`] {
36
+ `).concat(nj,": ").concat(s,`px;
37
+ }
38
+ `)},of=function(){var e=parseInt(document.body.getAttribute(bn)||"0",10);return isFinite(e)?e:0},Ej=function(){i.useEffect(function(){return document.body.setAttribute(bn,(of()+1).toString()),function(){var e=of()-1;e<=0?document.body.removeAttribute(bn):document.body.setAttribute(bn,e.toString())}},[])},kj=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;Ej();var a=i.useMemo(function(){return yj(o)},[o]);return i.createElement(wj,{styles:xj(a,!t,o,r?"":"!important")})},rl=!1;if(typeof window<"u")try{var Ho=Object.defineProperty({},"passive",{get:function(){return rl=!0,!0}});window.addEventListener("test",Ho,Ho),window.removeEventListener("test",Ho,Ho)}catch{rl=!1}var Mr=rl?{passive:!1}:!1,Sj=function(e){return e.tagName==="TEXTAREA"},Tg=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!Sj(e)&&r[t]==="visible")},jj=function(e){return Tg(e,"overflowY")},Cj=function(e){return Tg(e,"overflowX")},af=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=Og(e,n);if(o){var a=_g(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},Rj=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},Nj=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},Og=function(e,t){return e==="v"?jj(t):Cj(t)},_g=function(e,t){return e==="v"?Rj(t):Nj(t)},Tj=function(e,t){return e==="h"&&t==="rtl"?-1:1},Oj=function(e,t,r,n,o){var a=Tj(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,p=t.contains(s),l=!1,u=c>0,m=0,v=0;do{if(!s)break;var h=_g(e,s),x=h[0],d=h[1],g=h[2],b=d-g-a*x;(x||b)&&Og(e,s)&&(m+=b,v+=x);var y=s.parentNode;s=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!p&&s!==document.body||p&&(t.contains(s)||t===s));return(u&&Math.abs(m)<1||!u&&Math.abs(v)<1)&&(l=!0),l},Vo=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},sf=function(e){return[e.deltaX,e.deltaY]},cf=function(e){return e&&"current"in e?e.current:e},_j=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Dj=function(e){return`
39
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
40
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
41
+ `)},Pj=0,Ar=[];function Mj(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(Pj++)[0],a=i.useState(Ng)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var d=tj([e.lockRef.current],(e.shards||[]).map(cf),!0).filter(Boolean);return d.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),d.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(d,g){if("touches"in d&&d.touches.length===2||d.type==="wheel"&&d.ctrlKey)return!c.current.allowPinchZoom;var b=Vo(d),y=r.current,w="deltaX"in d?d.deltaX:y[0]-b[0],E="deltaY"in d?d.deltaY:y[1]-b[1],j,T=d.target,S=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in d&&S==="h"&&T.type==="range")return!1;var R=af(S,T);if(!R)return!0;if(R?j=S:(j=S==="v"?"h":"v",R=af(S,T)),!R)return!1;if(!n.current&&"changedTouches"in d&&(w||E)&&(n.current=j),!j)return!0;var M=n.current||j;return Oj(M,g,d,M==="h"?w:E)},[]),p=i.useCallback(function(d){var g=d;if(!(!Ar.length||Ar[Ar.length-1]!==a)){var b="deltaY"in g?sf(g):Vo(g),y=t.current.filter(function(j){return j.name===g.type&&(j.target===g.target||g.target===j.shadowParent)&&_j(j.delta,b)})[0];if(y&&y.should){g.cancelable&&g.preventDefault();return}if(!y){var w=(c.current.shards||[]).map(cf).filter(Boolean).filter(function(j){return j.contains(g.target)}),E=w.length>0?s(g,w[0]):!c.current.noIsolation;E&&g.cancelable&&g.preventDefault()}}},[]),l=i.useCallback(function(d,g,b,y){var w={name:d,delta:g,target:b,should:y,shadowParent:Aj(b)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),u=i.useCallback(function(d){r.current=Vo(d),n.current=void 0},[]),m=i.useCallback(function(d){l(d.type,sf(d),d.target,s(d,e.lockRef.current))},[]),v=i.useCallback(function(d){l(d.type,Vo(d),d.target,s(d,e.lockRef.current))},[]);i.useEffect(function(){return Ar.push(a),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:v}),document.addEventListener("wheel",p,Mr),document.addEventListener("touchmove",p,Mr),document.addEventListener("touchstart",u,Mr),function(){Ar=Ar.filter(function(d){return d!==a}),document.removeEventListener("wheel",p,Mr),document.removeEventListener("touchmove",p,Mr),document.removeEventListener("touchstart",u,Mr)}},[]);var h=e.removeScrollBar,x=e.inert;return i.createElement(i.Fragment,null,x?i.createElement(a,{styles:Dj(o)}):null,h?i.createElement(kj,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Aj(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Ij=lj(Rg,Mj);var Dg=i.forwardRef(function(e,t){return i.createElement(si,et({},e,{ref:t,sideCar:Ij}))});Dg.classNames=si.classNames;var Fj=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ir=new WeakMap,Xo=new WeakMap,qo={},ac=0,Pg=function(e){return e&&(e.host||Pg(e.parentNode))},Lj=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Pg(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},Wj=function(e,t,r,n){var o=Lj(t,Array.isArray(e)?e:[e]);qo[r]||(qo[r]=new WeakMap);var a=qo[r],c=[],s=new Set,p=new Set(o),l=function(m){!m||s.has(m)||(s.add(m),l(m.parentNode))};o.forEach(l);var u=function(m){!m||p.has(m)||Array.prototype.forEach.call(m.children,function(v){if(s.has(v))u(v);else try{var h=v.getAttribute(n),x=h!==null&&h!=="false",d=(Ir.get(v)||0)+1,g=(a.get(v)||0)+1;Ir.set(v,d),a.set(v,g),c.push(v),d===1&&x&&Xo.set(v,!0),g===1&&v.setAttribute(r,"true"),x||v.setAttribute(n,"true")}catch(b){console.error("aria-hidden: cannot operate on ",v,b)}})};return u(t),s.clear(),ac++,function(){c.forEach(function(m){var v=Ir.get(m)-1,h=a.get(m)-1;Ir.set(m,v),a.set(m,h),v||(Xo.has(m)||m.removeAttribute(n),Xo.delete(m)),h||m.removeAttribute(r)}),ac--,ac||(Ir=new WeakMap,Ir=new WeakMap,Xo=new WeakMap,qo={})}},zj=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=Fj(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),Wj(n,o,r,"aria-hidden")):function(){return null}},ii="Dialog",[Mg]=jS(ii),[$j,Qe]=Mg(ii),Ag=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:c=!0}=e,s=i.useRef(null),p=i.useRef(null),[l,u]=OS({prop:n,defaultProp:o??!1,onChange:a,caller:ii});return C.jsxRuntimeExports.jsx($j,{scope:t,triggerRef:s,contentRef:p,contentId:Ji(),titleId:Ji(),descriptionId:Ji(),open:l,onOpenChange:u,onOpenToggle:i.useCallback(()=>u(m=>!m),[u]),modal:c,children:r})};Ag.displayName=ii;var Ig="DialogTrigger",Fg=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Qe(Ig,r),a=Or(t,o.triggerRef);return C.jsxRuntimeExports.jsx(Ut.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":ed(o.open),...n,ref:a,onClick:sr(e.onClick,o.onOpenToggle)})});Fg.displayName=Ig;var Jl="DialogPortal",[Yj,Lg]=Mg(Jl,{forceMount:void 0}),Wg=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,a=Qe(Jl,t);return C.jsxRuntimeExports.jsx(Yj,{scope:t,forceMount:r,children:i.Children.map(n,c=>C.jsxRuntimeExports.jsx(ai,{present:r||a.open,children:C.jsxRuntimeExports.jsx(Sg,{asChild:!0,container:o,children:c})}))})};Wg.displayName=Jl;var zs="DialogOverlay",zg=i.forwardRef((e,t)=>{const r=Lg(zs,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Qe(zs,e.__scopeDialog);return a.modal?C.jsxRuntimeExports.jsx(ai,{present:n||a.open,children:C.jsxRuntimeExports.jsx(Bj,{...o,ref:t})}):null});zg.displayName=zs;var Uj=oe.createSlot("DialogOverlay.RemoveScroll"),Bj=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Qe(zs,r);return C.jsxRuntimeExports.jsx(Dg,{as:Uj,allowPinchZoom:!0,shards:[o.contentRef],children:C.jsxRuntimeExports.jsx(Ut.div,{"data-state":ed(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),hr="DialogContent",$g=i.forwardRef((e,t)=>{const r=Lg(hr,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Qe(hr,e.__scopeDialog);return C.jsxRuntimeExports.jsx(ai,{present:n||a.open,children:a.modal?C.jsxRuntimeExports.jsx(Kj,{...o,ref:t}):C.jsxRuntimeExports.jsx(Hj,{...o,ref:t})})});$g.displayName=hr;var Kj=i.forwardRef((e,t)=>{const r=Qe(hr,e.__scopeDialog),n=i.useRef(null),o=Or(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return zj(a)},[]),C.jsxRuntimeExports.jsx(Yg,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:sr(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:sr(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:sr(e.onFocusOutside,a=>a.preventDefault())})}),Hj=i.forwardRef((e,t)=>{const r=Qe(hr,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return C.jsxRuntimeExports.jsx(Yg,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=a.target;r.triggerRef.current?.contains(c)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Yg=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=Qe(hr,r),p=i.useRef(null),l=Or(t,p);return ej(),C.jsxRuntimeExports.jsxs(C.jsxRuntimeExports.Fragment,{children:[C.jsxRuntimeExports.jsx(Eg,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:C.jsxRuntimeExports.jsx(wg,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":ed(s.open),...c,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),C.jsxRuntimeExports.jsxs(C.jsxRuntimeExports.Fragment,{children:[C.jsxRuntimeExports.jsx(Vj,{titleId:s.titleId}),C.jsxRuntimeExports.jsx(qj,{contentRef:p,descriptionId:s.descriptionId})]})]})}),Ql="DialogTitle",Ug=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Qe(Ql,r);return C.jsxRuntimeExports.jsx(Ut.h2,{id:o.titleId,...n,ref:t})});Ug.displayName=Ql;var Bg="DialogDescription",Kg=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Qe(Bg,r);return C.jsxRuntimeExports.jsx(Ut.p,{id:o.descriptionId,...n,ref:t})});Kg.displayName=Bg;var Hg="DialogClose",Vg=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Qe(Hg,r);return C.jsxRuntimeExports.jsx(Ut.button,{type:"button",...n,ref:t,onClick:sr(e.onClick,()=>o.onOpenChange(!1))})});Vg.displayName=Hg;function ed(e){return e?"open":"closed"}var Xg="DialogTitleWarning",[zK,qg]=SS(Xg,{contentName:hr,titleName:Ql,docsSlug:"dialog"}),Vj=({titleId:e})=>{const t=qg(Xg),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
42
+
43
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
44
+
45
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},Xj="DialogDescriptionWarning",qj=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${qg(Xj).contentName}}.`;return i.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},Gj=Ag,Zj=Fg,Jj=Wg,Qj=zg,eC=$g,tC=Ug,rC=Kg,Gg=Vg;function Zg({...e}){return C.jsxRuntimeExports.jsx(Gj,{"data-slot":"dialog",...e})}function nC({...e}){return C.jsxRuntimeExports.jsx(Zj,{"data-slot":"dialog-trigger",...e})}function Jg({...e}){return C.jsxRuntimeExports.jsx(Jj,{"data-slot":"dialog-portal",...e})}function oC({...e}){return C.jsxRuntimeExports.jsx(Gg,{"data-slot":"dialog-close",...e})}function Qg({className:e,...t}){return C.jsxRuntimeExports.jsx(Qj,{"data-slot":"dialog-overlay",className:F("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function eh({className:e,children:t,showCloseButton:r=!0,...n}){return C.jsxRuntimeExports.jsxs(Jg,{"data-slot":"dialog-portal",children:[C.jsxRuntimeExports.jsx(Qg,{}),C.jsxRuntimeExports.jsxs(eC,{"data-slot":"dialog-content",className:F("bg-background 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",e),...n,children:[t,r&&C.jsxRuntimeExports.jsxs(Gg,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[C.jsxRuntimeExports.jsx(pe.XIcon,{}),C.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function th({className:e,...t}){return C.jsxRuntimeExports.jsx("div",{"data-slot":"dialog-header",className:F("flex flex-col gap-2 text-center sm:text-left",e),...t})}function aC({className:e,...t}){return C.jsxRuntimeExports.jsx("div",{"data-slot":"dialog-footer",className:F("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function rh({className:e,...t}){return C.jsxRuntimeExports.jsx(tC,{"data-slot":"dialog-title",className:F("text-lg leading-none font-semibold",e),...t})}function nh({className:e,...t}){return C.jsxRuntimeExports.jsx(rC,{"data-slot":"dialog-description",className:F("text-muted-foreground text-sm",e),...t})}function ci({className:e,...t}){return C.jsxRuntimeExports.jsx(Tr.Command,{"data-slot":"command",className:F("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...t})}function sC({title:e="Command Palette",description:t="Search for a command to run...",children:r,className:n,showCloseButton:o=!0,...a}){return C.jsxRuntimeExports.jsxs(Zg,{...a,children:[C.jsxRuntimeExports.jsxs(th,{className:"sr-only",children:[C.jsxRuntimeExports.jsx(rh,{children:e}),C.jsxRuntimeExports.jsx(nh,{children:t})]}),C.jsxRuntimeExports.jsx(eh,{className:F("overflow-hidden p-0",n),showCloseButton:o,children:C.jsxRuntimeExports.jsx(ci,{className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:r})})]})}function td({className:e,...t}){return C.jsxRuntimeExports.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[C.jsxRuntimeExports.jsx(pe.SearchIcon,{className:"size-4 shrink-0 opacity-50"}),C.jsxRuntimeExports.jsx(Tr.Command.Input,{"data-slot":"command-input",className:F("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),...t})]})}function rd({className:e,...t}){return C.jsxRuntimeExports.jsx(Tr.Command.List,{"data-slot":"command-list",className:F("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",e),...t})}function nd({...e}){return C.jsxRuntimeExports.jsx(Tr.Command.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...e})}function $s({className:e,...t}){return C.jsxRuntimeExports.jsx(Tr.Command.Group,{"data-slot":"command-group",className:F("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),...t})}function oh({className:e,...t}){return C.jsxRuntimeExports.jsx(Tr.Command.Separator,{"data-slot":"command-separator",className:F("bg-border -mx-1 h-px",e),...t})}function Ys({className:e,...t}){return C.jsxRuntimeExports.jsx(Tr.Command.Item,{"data-slot":"command-item",className:F("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function iC({className:e,...t}){return C.jsxRuntimeExports.jsx("span",{"data-slot":"command-shortcut",className:F("text-muted-foreground ml-auto text-xs tracking-widest",e),...t})}var sc={exports:{}},Xn={};/**
46
+ * @license React
47
+ * react-jsx-runtime.production.js
48
+ *
49
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
50
+ *
51
+ * This source code is licensed under the MIT license found in the
52
+ * LICENSE file in the root directory of this source tree.
53
+ */var uf;function cC(){if(uf)return Xn;uf=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var c=null;if(a!==void 0&&(c=""+a),o.key!==void 0&&(c=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:c,ref:o!==void 0?o:null,props:a}}return Xn.Fragment=t,Xn.jsx=r,Xn.jsxs=r,Xn}var Go={};/**
54
+ * @license React
55
+ * react-jsx-runtime.development.js
56
+ *
57
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
58
+ *
59
+ * This source code is licensed under the MIT license found in the
60
+ * LICENSE file in the root directory of this source tree.
61
+ */var lf;function uC(){return lf||(lf=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===L?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case d:return"Fragment";case b:return"Profiler";case g:return"StrictMode";case j:return"Suspense";case T:return"SuspenseList";case M:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case x:return"Portal";case w:return(f.displayName||"Context")+".Provider";case y:return(f._context.displayName||"Context")+".Consumer";case E:var k=f.render;return f=f.displayName,f||(f=k.displayName||k.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case S:return k=f.displayName||null,k!==null?k:e(f.type)||"Memo";case R:k=f._payload,f=f._init;try{return e(f(k))}catch{}}return null}function t(f){return""+f}function r(f){try{t(f);var k=!1}catch{k=!0}if(k){k=console;var N=k.error,O=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return N.call(k,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",O),t(f)}}function n(f){if(f===d)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===R)return"<...>";try{var k=e(f);return k?"<"+k+">":"<...>"}catch{return"<...>"}}function o(){var f=I.A;return f===null?null:f.getOwner()}function a(){return Error("react-stack-top-frame")}function c(f){if(B.call(f,"key")){var k=Object.getOwnPropertyDescriptor(f,"key").get;if(k&&k.isReactWarning)return!1}return f.key!==void 0}function s(f,k){function N(){D||(D=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",k))}N.isReactWarning=!0,Object.defineProperty(f,"key",{get:N,configurable:!0})}function p(){var f=e(this.type);return Y[f]||(Y[f]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),f=this.props.ref,f!==void 0?f:null}function l(f,k,N,O,W,A,ae,X){return N=A.ref,f={$$typeof:h,type:f,key:k,props:A,_owner:W},(N!==void 0?N:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:p}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ae}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function u(f,k,N,O,W,A,ae,X){var _=k.children;if(_!==void 0)if(O)if(K(_)){for(O=0;O<_.length;O++)m(_[O]);Object.freeze&&Object.freeze(_)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else m(_);if(B.call(k,"key")){_=e(f);var $=Object.keys(k).filter(function(fe){return fe!=="key"});O=0<$.length?"{key: someKey, "+$.join(": ..., ")+": ...}":"{key: someKey}",V[_+O]||($=0<$.length?"{"+$.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
62
+ let props = %s;
63
+ <%s {...props} />
64
+ React keys must be passed directly to JSX without using spread:
65
+ let props = %s;
66
+ <%s key={someKey} {...props} />`,O,_,$,_),V[_+O]=!0)}if(_=null,N!==void 0&&(r(N),_=""+N),c(k)&&(r(k.key),_=""+k.key),"key"in k){N={};for(var se in k)se!=="key"&&(N[se]=k[se])}else N=k;return _&&s(N,typeof f=="function"?f.displayName||f.name||"Unknown":f),l(f,_,A,W,o(),N,ae,X)}function m(f){typeof f=="object"&&f!==null&&f.$$typeof===h&&f._store&&(f._store.validated=1)}var v=P,h=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),w=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),M=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,K=Array.isArray,z=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(f){return f()}};var D,Y={},H=v.react_stack_bottom_frame.bind(v,a)(),U=z(n(a)),V={};Go.Fragment=d,Go.jsx=function(f,k,N,O,W){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,k,N,!1,O,W,A?Error("react-stack-top-frame"):H,A?z(n(f)):U)},Go.jsxs=function(f,k,N,O,W){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,k,N,!0,O,W,A?Error("react-stack-top-frame"):H,A?z(n(f)):U)}})()),Go}var df;function lC(){return df||(df=1,process.env.NODE_ENV==="production"?sc.exports=cC():sc.exports=uC()),sc.exports}var ue=lC();P.createContext({locale:void 0});const dC=me.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function ah(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=ah(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function fC(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=ah(e))&&(n&&(n+=" "),n+=t);return n}function mC(...e){return Xv.twMerge(fC(e))}function sh({className:e,variant:t,size:r,asChild:n=!1,...o}){const a=n?oe.Slot:"button";return ue.jsx(a,{"data-slot":"button",className:mC(dC({variant:t,size:r,className:e})),...o})}me.cva("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function ir(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function ff(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function pC(...e){return t=>{let r=!1;const n=e.map(o=>{const a=ff(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():ff(e[o],null)}}}}function _r(...e){return i.useCallback(pC(...e),e)}function vC(e,t){const r=i.createContext(t),n=a=>{const{children:c,...s}=a,p=i.useMemo(()=>s,Object.values(s));return ue.jsx(r.Provider,{value:p,children:c})};n.displayName=e+"Provider";function o(a){const c=i.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function gC(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),p=r.length;r=[...r,c];const l=m=>{const{scope:v,children:h,...x}=m,d=v?.[e]?.[p]||s,g=i.useMemo(()=>x,Object.values(x));return ue.jsx(d.Provider,{value:g,children:h})};l.displayName=a+"Provider";function u(m,v){const h=v?.[e]?.[p]||s,x=i.useContext(h);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${m}\` must be used within \`${a}\``)}return[l,u]}const o=()=>{const a=r.map(c=>i.createContext(c));return function(c){const s=c?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:s}}),[c,s])}};return o.scopeName=e,[n,hC(o,...t)]}function hC(...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(o){const a=n.reduce((c,{useScope:s,scopeName:p})=>{const l=s(o)[`__scope${p}`];return{...c,...l}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var nl=globalThis?.document?i.useLayoutEffect:()=>{},bC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Bt=bC.reduce((e,t)=>{const r=oe.createSlot(`Primitive.${t}`),n=i.forwardRef((o,a)=>{const{asChild:c,...s}=o,p=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),ue.jsx(p,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function yC(e,t){e&&We.flushSync(()=>e.dispatchEvent(t))}function po(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function wC(e,t=globalThis?.document){const r=po(e);i.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 xC="DismissableLayer",ol="dismissableLayer.update",EC="dismissableLayer.pointerDownOutside",kC="dismissableLayer.focusOutside",mf,ih=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ch=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...p}=e,l=i.useContext(ih),[u,m]=i.useState(null),v=u?.ownerDocument??globalThis?.document,[,h]=i.useState({}),x=_r(t,S=>m(S)),d=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),b=d.indexOf(g),y=u?d.indexOf(u):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,E=y>=b,j=CC(S=>{const R=S.target,M=[...l.branches].some(L=>L.contains(R));!E||M||(o?.(S),c?.(S),S.defaultPrevented||s?.())},v),T=RC(S=>{const R=S.target;[...l.branches].some(M=>M.contains(R))||(a?.(S),c?.(S),S.defaultPrevented||s?.())},v);return wC(S=>{y===l.layers.size-1&&(n?.(S),!S.defaultPrevented&&s&&(S.preventDefault(),s()))},v),i.useEffect(()=>{if(u)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(mf=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),pf(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=mf)}},[u,v,r,l]),i.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),pf())},[u,l]),i.useEffect(()=>{const S=()=>h({});return document.addEventListener(ol,S),()=>document.removeEventListener(ol,S)},[]),ue.jsx(Bt.div,{...p,ref:x,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:ir(e.onFocusCapture,T.onFocusCapture),onBlurCapture:ir(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:ir(e.onPointerDownCapture,j.onPointerDownCapture)})});ch.displayName=xC;var SC="DismissableLayerBranch",jC=i.forwardRef((e,t)=>{const r=i.useContext(ih),n=i.useRef(null),o=_r(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),ue.jsx(Bt.div,{...e,ref:o})});jC.displayName=SC;function CC(e,t=globalThis?.document){const r=po(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let p=function(){uh(EC,r,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=p,t.addEventListener("click",o.current,{once:!0})):p()}else t.removeEventListener("click",o.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function RC(e,t=globalThis?.document){const r=po(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&uh(kC,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function pf(){const e=new CustomEvent(ol);document.dispatchEvent(e)}function uh(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?yC(o,a):o.dispatchEvent(a)}var ic="focusScope.autoFocusOnMount",cc="focusScope.autoFocusOnUnmount",vf={bubbles:!1,cancelable:!0},NC="FocusScope",lh=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,p]=i.useState(null),l=po(o),u=po(a),m=i.useRef(null),v=_r(t,d=>p(d)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let d=function(w){if(h.paused||!s)return;const E=w.target;s.contains(E)?m.current=E:qt(m.current,{select:!0})},g=function(w){if(h.paused||!s)return;const E=w.relatedTarget;E!==null&&(s.contains(E)||qt(m.current,{select:!0}))},b=function(w){if(document.activeElement===document.body)for(const E of w)E.removedNodes.length>0&&qt(s)};document.addEventListener("focusin",d),document.addEventListener("focusout",g);const y=new MutationObserver(b);return s&&y.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",d),document.removeEventListener("focusout",g),y.disconnect()}}},[n,s,h.paused]),i.useEffect(()=>{if(s){hf.add(h);const d=document.activeElement;if(!s.contains(d)){const g=new CustomEvent(ic,vf);s.addEventListener(ic,l),s.dispatchEvent(g),g.defaultPrevented||(TC(MC(dh(s)),{select:!0}),document.activeElement===d&&qt(s))}return()=>{s.removeEventListener(ic,l),setTimeout(()=>{const g=new CustomEvent(cc,vf);s.addEventListener(cc,u),s.dispatchEvent(g),g.defaultPrevented||qt(d??document.body,{select:!0}),s.removeEventListener(cc,u),hf.remove(h)},0)}}},[s,l,u,h]);const x=i.useCallback(d=>{if(!r&&!n||h.paused)return;const g=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,b=document.activeElement;if(g&&b){const y=d.currentTarget,[w,E]=OC(y);w&&E?!d.shiftKey&&b===E?(d.preventDefault(),r&&qt(w,{select:!0})):d.shiftKey&&b===w&&(d.preventDefault(),r&&qt(E,{select:!0})):b===y&&d.preventDefault()}},[r,n,h.paused]);return ue.jsx(Bt.div,{tabIndex:-1,...c,ref:v,onKeyDown:x})});lh.displayName=NC;function TC(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(qt(n,{select:t}),document.activeElement!==r)return}function OC(e){const t=dh(e),r=gf(t,e),n=gf(t.reverse(),e);return[r,n]}function dh(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 gf(e,t){for(const r of e)if(!_C(r,{upTo:t}))return r}function _C(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 DC(e){return e instanceof HTMLInputElement&&"select"in e}function qt(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&DC(e)&&t&&e.select()}}var hf=PC();function PC(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=bf(e,t),e.unshift(t)},remove(t){e=bf(e,t),e[0]?.resume()}}}function bf(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function MC(e){return e.filter(t=>t.tagName!=="A")}var AC="Portal",IC=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);nl(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?Le.createPortal(ue.jsx(Bt.div,{...n,ref:t}),c):null});IC.displayName=AC;function FC(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var od=e=>{const{present:t,children:r}=e,n=LC(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=_r(n.ref,WC(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};od.displayName="Presence";function LC(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,p]=FC(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const l=Zo(n.current);a.current=s==="mounted"?l:"none"},[s]),nl(()=>{const l=n.current,u=o.current;if(u!==e){const m=a.current,v=Zo(l);e?p("MOUNT"):v==="none"||l?.display==="none"?p("UNMOUNT"):p(u&&m!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,p]),nl(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,m=h=>{const x=Zo(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&x&&(p("ANIMATION_END"),!o.current)){const d=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=d)})}},v=h=>{h.target===t&&(a.current=Zo(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else p("ANIMATION_END")},[t,p]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function Zo(e){return e?.animationName||"none"}function WC(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var uc=0;function zC(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??yf()),document.body.insertAdjacentElement("beforeend",e[1]??yf()),uc++,()=>{uc===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),uc--}},[])}function yf(){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 tt=function(){return tt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},tt.apply(this,arguments)};function fh(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 $C(e,t,r){for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var fs="right-scroll-bar-position",ms="width-before-scroll-bar",YC="with-scroll-bars-hidden",UC="--removed-body-scroll-bar-size";function lc(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function BC(e,t){var r=P.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 KC=typeof window<"u"?i.useLayoutEffect:i.useEffect,wf=new WeakMap;function HC(e,t){var r=BC(null,function(n){return e.forEach(function(o){return lc(o,n)})});return KC(function(){var n=wf.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||lc(s,null)}),a.forEach(function(s){o.has(s)||lc(s,c)})}wf.set(r,e)},[e]),r}function VC(e){return e}function XC(e,t){t===void 0&&(t=VC);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(a){var c=t(a,n);return r.push(c),function(){r=r.filter(function(s){return s!==c})}},assignSyncMedium:function(a){for(n=!0;r.length;){var c=r;r=[],c.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var c=[];if(r.length){var s=r;r=[],s.forEach(a),c=r}var p=function(){var u=c;c=[],u.forEach(a)},l=function(){return Promise.resolve().then(p)};l(),r={push:function(u){c.push(u),l()},filter:function(u){return c=c.filter(u),r}}}};return o}function qC(e){e===void 0&&(e={});var t=XC(null);return t.options=tt({async:!0,ssr:!1},e),t}var mh=function(e){var t=e.sideCar,r=fh(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 i.createElement(n,tt({},r))};mh.isSideCarExport=!0;function GC(e,t){return e.useMedium(t),mh}var ph=qC(),dc=function(){},ui=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:dc,onWheelCapture:dc,onTouchMoveCapture:dc}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,p=e.className,l=e.removeScrollBar,u=e.enabled,m=e.shards,v=e.sideCar,h=e.noRelative,x=e.noIsolation,d=e.inert,g=e.allowPinchZoom,b=e.as,y=b===void 0?"div":b,w=e.gapMode,E=fh(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),j=v,T=HC([r,t]),S=tt(tt({},E),o);return i.createElement(i.Fragment,null,u&&i.createElement(j,{sideCar:ph,removeScrollBar:l,shards:m,noRelative:h,noIsolation:x,inert:d,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),tt(tt({},S),{ref:T})):i.createElement(y,tt({},S,{className:p,ref:T}),s))});ui.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ui.classNames={fullWidth:ms,zeroRight:fs};var ZC=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function JC(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=ZC();return t&&e.setAttribute("nonce",t),e}function QC(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function eR(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var tR=function(){var e=0,t=null;return{add:function(r){e==0&&(t=JC())&&(QC(t,r),eR(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},rR=function(){var e=tR();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},vh=function(){var e=rR(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},nR={left:0,top:0,right:0,gap:0},fc=function(e){return parseInt(e||"",10)||0},oR=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[fc(r),fc(n),fc(o)]},aR=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return nR;var t=oR(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])}},sR=vh(),yn="data-scroll-locked",iR=function(e,t,r,n){var o=e.left,a=e.top,c=e.right,s=e.gap;return r===void 0&&(r="margin"),`
67
+ .`.concat(YC,` {
68
+ overflow: hidden `).concat(n,`;
69
+ padding-right: `).concat(s,"px ").concat(n,`;
70
+ }
71
+ body[`).concat(yn,`] {
72
+ overflow: hidden `).concat(n,`;
73
+ overscroll-behavior: contain;
74
+ `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
75
+ padding-left: `.concat(o,`px;
76
+ padding-top: `).concat(a,`px;
77
+ padding-right: `).concat(c,`px;
78
+ margin-left:0;
79
+ margin-top:0;
80
+ margin-right: `).concat(s,"px ").concat(n,`;
81
+ `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
82
+ }
83
+
84
+ .`).concat(fs,` {
85
+ right: `).concat(s,"px ").concat(n,`;
86
+ }
87
+
88
+ .`).concat(ms,` {
89
+ margin-right: `).concat(s,"px ").concat(n,`;
90
+ }
91
+
92
+ .`).concat(fs," .").concat(fs,` {
93
+ right: 0 `).concat(n,`;
94
+ }
95
+
96
+ .`).concat(ms," .").concat(ms,` {
97
+ margin-right: 0 `).concat(n,`;
98
+ }
99
+
100
+ body[`).concat(yn,`] {
101
+ `).concat(UC,": ").concat(s,`px;
102
+ }
103
+ `)},xf=function(){var e=parseInt(document.body.getAttribute(yn)||"0",10);return isFinite(e)?e:0},cR=function(){i.useEffect(function(){return document.body.setAttribute(yn,(xf()+1).toString()),function(){var e=xf()-1;e<=0?document.body.removeAttribute(yn):document.body.setAttribute(yn,e.toString())}},[])},uR=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;cR();var a=i.useMemo(function(){return aR(o)},[o]);return i.createElement(sR,{styles:iR(a,!t,o,r?"":"!important")})},al=!1;if(typeof window<"u")try{var Jo=Object.defineProperty({},"passive",{get:function(){return al=!0,!0}});window.addEventListener("test",Jo,Jo),window.removeEventListener("test",Jo,Jo)}catch{al=!1}var Fr=al?{passive:!1}:!1,lR=function(e){return e.tagName==="TEXTAREA"},gh=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!lR(e)&&r[t]==="visible")},dR=function(e){return gh(e,"overflowY")},fR=function(e){return gh(e,"overflowX")},Ef=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=hh(e,n);if(o){var a=bh(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},mR=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},pR=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},hh=function(e,t){return e==="v"?dR(t):fR(t)},bh=function(e,t){return e==="v"?mR(t):pR(t)},vR=function(e,t){return e==="h"&&t==="rtl"?-1:1},gR=function(e,t,r,n,o){var a=vR(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,p=t.contains(s),l=!1,u=c>0,m=0,v=0;do{if(!s)break;var h=bh(e,s),x=h[0],d=h[1],g=h[2],b=d-g-a*x;(x||b)&&hh(e,s)&&(m+=b,v+=x);var y=s.parentNode;s=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!p&&s!==document.body||p&&(t.contains(s)||t===s));return(u&&Math.abs(m)<1||!u&&Math.abs(v)<1)&&(l=!0),l},Qo=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},kf=function(e){return[e.deltaX,e.deltaY]},Sf=function(e){return e&&"current"in e?e.current:e},hR=function(e,t){return e[0]===t[0]&&e[1]===t[1]},bR=function(e){return`
104
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
105
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
106
+ `)},yR=0,Lr=[];function wR(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(yR++)[0],a=i.useState(vh)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var d=$C([e.lockRef.current],(e.shards||[]).map(Sf)).filter(Boolean);return d.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),d.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(d,g){if("touches"in d&&d.touches.length===2||d.type==="wheel"&&d.ctrlKey)return!c.current.allowPinchZoom;var b=Qo(d),y=r.current,w="deltaX"in d?d.deltaX:y[0]-b[0],E="deltaY"in d?d.deltaY:y[1]-b[1],j,T=d.target,S=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in d&&S==="h"&&T.type==="range")return!1;var R=Ef(S,T);if(!R)return!0;if(R?j=S:(j=S==="v"?"h":"v",R=Ef(S,T)),!R)return!1;if(!n.current&&"changedTouches"in d&&(w||E)&&(n.current=j),!j)return!0;var M=n.current||j;return gR(M,g,d,M==="h"?w:E)},[]),p=i.useCallback(function(d){var g=d;if(!(!Lr.length||Lr[Lr.length-1]!==a)){var b="deltaY"in g?kf(g):Qo(g),y=t.current.filter(function(j){return j.name===g.type&&(j.target===g.target||g.target===j.shadowParent)&&hR(j.delta,b)})[0];if(y&&y.should){g.cancelable&&g.preventDefault();return}if(!y){var w=(c.current.shards||[]).map(Sf).filter(Boolean).filter(function(j){return j.contains(g.target)}),E=w.length>0?s(g,w[0]):!c.current.noIsolation;E&&g.cancelable&&g.preventDefault()}}},[]),l=i.useCallback(function(d,g,b,y){var w={name:d,delta:g,target:b,should:y,shadowParent:xR(b)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),u=i.useCallback(function(d){r.current=Qo(d),n.current=void 0},[]),m=i.useCallback(function(d){l(d.type,kf(d),d.target,s(d,e.lockRef.current))},[]),v=i.useCallback(function(d){l(d.type,Qo(d),d.target,s(d,e.lockRef.current))},[]);i.useEffect(function(){return Lr.push(a),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:v}),document.addEventListener("wheel",p,Fr),document.addEventListener("touchmove",p,Fr),document.addEventListener("touchstart",u,Fr),function(){Lr=Lr.filter(function(d){return d!==a}),document.removeEventListener("wheel",p,Fr),document.removeEventListener("touchmove",p,Fr),document.removeEventListener("touchstart",u,Fr)}},[]);var h=e.removeScrollBar,x=e.inert;return i.createElement(i.Fragment,null,x?i.createElement(a,{styles:bR(o)}):null,h?i.createElement(uR,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function xR(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const ER=GC(ph,wR);var yh=i.forwardRef(function(e,t){return i.createElement(ui,tt({},e,{ref:t,sideCar:ER}))});yh.classNames=ui.classNames;var kR=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Wr=new WeakMap,ea=new WeakMap,ta={},mc=0,wh=function(e){return e&&(e.host||wh(e.parentNode))},SR=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=wh(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},jR=function(e,t,r,n){var o=SR(t,Array.isArray(e)?e:[e]);ta[r]||(ta[r]=new WeakMap);var a=ta[r],c=[],s=new Set,p=new Set(o),l=function(m){!m||s.has(m)||(s.add(m),l(m.parentNode))};o.forEach(l);var u=function(m){!m||p.has(m)||Array.prototype.forEach.call(m.children,function(v){if(s.has(v))u(v);else try{var h=v.getAttribute(n),x=h!==null&&h!=="false",d=(Wr.get(v)||0)+1,g=(a.get(v)||0)+1;Wr.set(v,d),a.set(v,g),c.push(v),d===1&&x&&ea.set(v,!0),g===1&&v.setAttribute(r,"true"),x||v.setAttribute(n,"true")}catch(b){console.error("aria-hidden: cannot operate on ",v,b)}})};return u(t),s.clear(),mc++,function(){c.forEach(function(m){var v=Wr.get(m)-1,h=a.get(m)-1;Wr.set(m,v),a.set(m,h),v||(ea.has(m)||m.removeAttribute(n),ea.delete(m)),h||m.removeAttribute(r)}),mc--,mc||(Wr=new WeakMap,Wr=new WeakMap,ea=new WeakMap,ta={})}},CR=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=kR(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),jR(n,o,r,"aria-hidden")):function(){return null}},xh="Dialog",[Eh]=gC(xh),[$K,Ct]=Eh(xh),kh="DialogTrigger",RR=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ct(kh,r),a=_r(t,o.triggerRef);return ue.jsx(Bt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":sd(o.open),...n,ref:a,onClick:ir(e.onClick,o.onOpenToggle)})});RR.displayName=kh;var NR="DialogPortal",[YK,Sh]=Eh(NR,{forceMount:void 0}),Us="DialogOverlay",TR=i.forwardRef((e,t)=>{const r=Sh(Us,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Ct(Us,e.__scopeDialog);return a.modal?ue.jsx(od,{present:n||a.open,children:ue.jsx(_R,{...o,ref:t})}):null});TR.displayName=Us;var OR=oe.createSlot("DialogOverlay.RemoveScroll"),_R=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ct(Us,r);return ue.jsx(yh,{as:OR,allowPinchZoom:!0,shards:[o.contentRef],children:ue.jsx(Bt.div,{"data-state":sd(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),br="DialogContent",DR=i.forwardRef((e,t)=>{const r=Sh(br,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Ct(br,e.__scopeDialog);return ue.jsx(od,{present:n||a.open,children:a.modal?ue.jsx(PR,{...o,ref:t}):ue.jsx(MR,{...o,ref:t})})});DR.displayName=br;var PR=i.forwardRef((e,t)=>{const r=Ct(br,e.__scopeDialog),n=i.useRef(null),o=_r(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return CR(a)},[]),ue.jsx(jh,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ir(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:ir(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:ir(e.onFocusOutside,a=>a.preventDefault())})}),MR=i.forwardRef((e,t)=>{const r=Ct(br,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return ue.jsx(jh,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=a.target;r.triggerRef.current?.contains(c)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),jh=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=Ct(br,r),p=i.useRef(null),l=_r(t,p);return zC(),ue.jsxs(ue.Fragment,{children:[ue.jsx(lh,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:ue.jsx(ch,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":sd(s.open),...c,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),ue.jsxs(ue.Fragment,{children:[ue.jsx(LR,{titleId:s.titleId}),ue.jsx(zR,{contentRef:p,descriptionId:s.descriptionId})]})]})}),ad="DialogTitle",AR=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ct(ad,r);return ue.jsx(Bt.h2,{id:o.titleId,...n,ref:t})});AR.displayName=ad;var Ch="DialogDescription",IR=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ct(Ch,r);return ue.jsx(Bt.p,{id:o.descriptionId,...n,ref:t})});IR.displayName=Ch;var Rh="DialogClose",FR=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ct(Rh,r);return ue.jsx(Bt.button,{type:"button",...n,ref:t,onClick:ir(e.onClick,()=>o.onOpenChange(!1))})});FR.displayName=Rh;function sd(e){return e?"open":"closed"}var Nh="DialogTitleWarning",[UK,Th]=vC(Nh,{contentName:br,titleName:ad,docsSlug:"dialog"}),LR=({titleId:e})=>{const t=Th(Nh),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
107
+
108
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
109
+
110
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},WR="DialogDescriptionWarning",zR=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Th(WR).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},pc={exports:{}},qn={};/**
111
+ * @license React
112
+ * react-jsx-runtime.production.js
113
+ *
114
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
115
+ *
116
+ * This source code is licensed under the MIT license found in the
117
+ * LICENSE file in the root directory of this source tree.
118
+ */var jf;function $R(){if(jf)return qn;jf=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var c=null;if(a!==void 0&&(c=""+a),o.key!==void 0&&(c=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:c,ref:o!==void 0?o:null,props:a}}return qn.Fragment=t,qn.jsx=r,qn.jsxs=r,qn}var ra={};/**
119
+ * @license React
120
+ * react-jsx-runtime.development.js
121
+ *
122
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
123
+ *
124
+ * This source code is licensed under the MIT license found in the
125
+ * LICENSE file in the root directory of this source tree.
126
+ */var Cf;function YR(){return Cf||(Cf=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===L?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case d:return"Fragment";case b:return"Profiler";case g:return"StrictMode";case j:return"Suspense";case T:return"SuspenseList";case M:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case x:return"Portal";case w:return(f.displayName||"Context")+".Provider";case y:return(f._context.displayName||"Context")+".Consumer";case E:var k=f.render;return f=f.displayName,f||(f=k.displayName||k.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case S:return k=f.displayName||null,k!==null?k:e(f.type)||"Memo";case R:k=f._payload,f=f._init;try{return e(f(k))}catch{}}return null}function t(f){return""+f}function r(f){try{t(f);var k=!1}catch{k=!0}if(k){k=console;var N=k.error,O=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return N.call(k,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",O),t(f)}}function n(f){if(f===d)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===R)return"<...>";try{var k=e(f);return k?"<"+k+">":"<...>"}catch{return"<...>"}}function o(){var f=I.A;return f===null?null:f.getOwner()}function a(){return Error("react-stack-top-frame")}function c(f){if(B.call(f,"key")){var k=Object.getOwnPropertyDescriptor(f,"key").get;if(k&&k.isReactWarning)return!1}return f.key!==void 0}function s(f,k){function N(){D||(D=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",k))}N.isReactWarning=!0,Object.defineProperty(f,"key",{get:N,configurable:!0})}function p(){var f=e(this.type);return Y[f]||(Y[f]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),f=this.props.ref,f!==void 0?f:null}function l(f,k,N,O,W,A,ae,X){return N=A.ref,f={$$typeof:h,type:f,key:k,props:A,_owner:W},(N!==void 0?N:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:p}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ae}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function u(f,k,N,O,W,A,ae,X){var _=k.children;if(_!==void 0)if(O)if(K(_)){for(O=0;O<_.length;O++)m(_[O]);Object.freeze&&Object.freeze(_)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else m(_);if(B.call(k,"key")){_=e(f);var $=Object.keys(k).filter(function(fe){return fe!=="key"});O=0<$.length?"{key: someKey, "+$.join(": ..., ")+": ...}":"{key: someKey}",V[_+O]||($=0<$.length?"{"+$.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
127
+ let props = %s;
128
+ <%s {...props} />
129
+ React keys must be passed directly to JSX without using spread:
130
+ let props = %s;
131
+ <%s key={someKey} {...props} />`,O,_,$,_),V[_+O]=!0)}if(_=null,N!==void 0&&(r(N),_=""+N),c(k)&&(r(k.key),_=""+k.key),"key"in k){N={};for(var se in k)se!=="key"&&(N[se]=k[se])}else N=k;return _&&s(N,typeof f=="function"?f.displayName||f.name||"Unknown":f),l(f,_,A,W,o(),N,ae,X)}function m(f){typeof f=="object"&&f!==null&&f.$$typeof===h&&f._store&&(f._store.validated=1)}var v=P,h=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),w=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),M=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,K=Array.isArray,z=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(f){return f()}};var D,Y={},H=v.react_stack_bottom_frame.bind(v,a)(),U=z(n(a)),V={};ra.Fragment=d,ra.jsx=function(f,k,N,O,W){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,k,N,!1,O,W,A?Error("react-stack-top-frame"):H,A?z(n(f)):U)},ra.jsxs=function(f,k,N,O,W){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,k,N,!0,O,W,A?Error("react-stack-top-frame"):H,A?z(n(f)):U)}})()),ra}var Rf;function UR(){return Rf||(Rf=1,process.env.NODE_ENV==="production"?pc.exports=$R():pc.exports=YR()),pc.exports}var q=UR();P.createContext({locale:void 0});var BR=(e,t,r,n,o,a,c,s)=>{let p=document.documentElement,l=["light","dark"];function u(h){(Array.isArray(e)?e:[e]).forEach(x=>{let d=x==="class",g=d&&a?o.map(b=>a[b]||b):o;d?(p.classList.remove(...g),p.classList.add(a&&a[h]?a[h]:h)):p.setAttribute(x,h)}),m(h)}function m(h){s&&l.includes(h)&&(p.style.colorScheme=h)}function v(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)u(n);else try{let h=localStorage.getItem(t)||r,x=c&&h==="system"?v():h;u(x)}catch{}};i.createContext(void 0);i.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:o,defaultTheme:a,value:c,themes:s,nonce:p,scriptProps:l})=>{let u=JSON.stringify([r,t,a,e,s,c,n,o]).slice(1,-1);return i.createElement("script",{...l,suppressHydrationWarning:!0,nonce:typeof window>"u"?p:"",dangerouslySetInnerHTML:{__html:`(${BR.toString()})(${u})`}})});function KR(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}Array(12).fill(0);let sl=1;class HR{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const r=this.subscribers.indexOf(t);this.subscribers.splice(r,1)}),this.publish=t=>{this.subscribers.forEach(r=>r(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var r;const{message:n,...o}=t,a=typeof t?.id=="number"||((r=t.id)==null?void 0:r.length)>0?t.id:sl++,c=this.toasts.find(p=>p.id===a),s=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),c?this.toasts=this.toasts.map(p=>p.id===a?(this.publish({...p,...t,id:a,title:n}),{...p,...t,id:a,dismissible:s,title:n}):p):this.addToast({title:n,...o,dismissible:s,id:a}),a},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:t,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(n=>n({id:r.id,dismiss:!0}))}),t),this.message=(t,r)=>this.create({...r,message:t}),this.error=(t,r)=>this.create({...r,message:t,type:"error"}),this.success=(t,r)=>this.create({...r,type:"success",message:t}),this.info=(t,r)=>this.create({...r,type:"info",message:t}),this.warning=(t,r)=>this.create({...r,type:"warning",message:t}),this.loading=(t,r)=>this.create({...r,type:"loading",message:t}),this.promise=(t,r)=>{if(!r)return;let n;r.loading!==void 0&&(n=this.create({...r,promise:t,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let a=n!==void 0,c;const s=o.then(async l=>{if(c=["resolve",l],P.isValidElement(l))a=!1,this.create({id:n,type:"default",message:l});else if(XR(l)&&!l.ok){a=!1;const u=typeof r.error=="function"?await r.error(`HTTP error! status: ${l.status}`):r.error,m=typeof r.description=="function"?await r.description(`HTTP error! status: ${l.status}`):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:m,...v})}else if(l instanceof Error){a=!1;const u=typeof r.error=="function"?await r.error(l):r.error,m=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:m,...v})}else if(r.success!==void 0){a=!1;const u=typeof r.success=="function"?await r.success(l):r.success,m=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"success",description:m,...v})}}).catch(async l=>{if(c=["reject",l],r.error!==void 0){a=!1;const u=typeof r.error=="function"?await r.error(l):r.error,m=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:m,...v})}}).finally(()=>{a&&(this.dismiss(n),n=void 0),r.finally==null||r.finally.call(r)}),p=()=>new Promise((l,u)=>s.then(()=>c[0]==="reject"?u(c[1]):l(c[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:p}:Object.assign(n,{unwrap:p})},this.custom=(t,r)=>{const n=r?.id||sl++;return this.create({jsx:t(n),id:n,...r}),n},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const ze=new HR,VR=(e,t)=>{const r=t?.id||sl++;return ze.addToast({title:e,...t,id:r}),r},XR=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",qR=VR,GR=()=>ze.toasts,ZR=()=>ze.getActiveToasts();Object.assign(qR,{success:ze.success,info:ze.info,warning:ze.warning,error:ze.error,custom:ze.custom,message:ze.message,promise:ze.promise,dismiss:ze.dismiss,loading:ze.loading},{getHistory:GR,getToasts:ZR});KR("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");me.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});me.cva("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function ge(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function Nf(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function JR(...e){return t=>{let r=!1;const n=e.map(o=>{const a=Nf(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():Nf(e[o],null)}}}}function vt(...e){return i.useCallback(JR(...e),e)}function QR(e,t){const r=i.createContext(t),n=a=>{const{children:c,...s}=a,p=i.useMemo(()=>s,Object.values(s));return q.jsx(r.Provider,{value:p,children:c})};n.displayName=e+"Provider";function o(a){const c=i.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function li(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),p=r.length;r=[...r,c];const l=m=>{const{scope:v,children:h,...x}=m,d=v?.[e]?.[p]||s,g=i.useMemo(()=>x,Object.values(x));return q.jsx(d.Provider,{value:g,children:h})};l.displayName=a+"Provider";function u(m,v){const h=v?.[e]?.[p]||s,x=i.useContext(h);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${m}\` must be used within \`${a}\``)}return[l,u]}const o=()=>{const a=r.map(c=>i.createContext(c));return function(c){const s=c?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:s}}),[c,s])}};return o.scopeName=e,[n,eN(o,...t)]}function eN(...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(o){const a=n.reduce((c,{useScope:s,scopeName:p})=>{const l=s(o)[`__scope${p}`];return{...c,...l}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var vo=globalThis?.document?i.useLayoutEffect:()=>{},tN=i[" useId ".trim().toString()]||(()=>{}),rN=0;function Oh(e){const[t,r]=i.useState(tN());return vo(()=>{r(n=>n??String(rN++))},[e]),t?`radix-${t}`:""}var nN=i[" useInsertionEffect ".trim().toString()]||vo;function _h({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,c]=oN({defaultProp:t,onChange:r}),s=e!==void 0,p=s?e:o;{const u=i.useRef(e!==void 0);i.useEffect(()=>{const m=u.current;m!==s&&console.warn(`${n} is changing from ${m?"controlled":"uncontrolled"} to ${s?"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.`),u.current=s},[s,n])}const l=i.useCallback(u=>{if(s){const m=aN(u)?u(e):u;m!==e&&c.current?.(m)}else a(u)},[s,e,a,c]);return[p,l]}function oN({defaultProp:e,onChange:t}){const[r,n]=i.useState(e),o=i.useRef(r),a=i.useRef(t);return nN(()=>{a.current=t},[t]),i.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}function aN(e){return typeof e=="function"}var sN=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Re=sN.reduce((e,t)=>{const r=oe.createSlot(`Primitive.${t}`),n=i.forwardRef((o,a)=>{const{asChild:c,...s}=o,p=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),q.jsx(p,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function iN(e,t){e&&We.flushSync(()=>e.dispatchEvent(t))}function _n(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function cN(e,t=globalThis?.document){const r=_n(e);i.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 uN="DismissableLayer",il="dismissableLayer.update",lN="dismissableLayer.pointerDownOutside",dN="dismissableLayer.focusOutside",Tf,Dh=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ph=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...p}=e,l=i.useContext(Dh),[u,m]=i.useState(null),v=u?.ownerDocument??globalThis?.document,[,h]=i.useState({}),x=vt(t,S=>m(S)),d=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),b=d.indexOf(g),y=u?d.indexOf(u):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,E=y>=b,j=pN(S=>{const R=S.target,M=[...l.branches].some(L=>L.contains(R));!E||M||(o?.(S),c?.(S),S.defaultPrevented||s?.())},v),T=vN(S=>{const R=S.target;[...l.branches].some(M=>M.contains(R))||(a?.(S),c?.(S),S.defaultPrevented||s?.())},v);return cN(S=>{y===l.layers.size-1&&(n?.(S),!S.defaultPrevented&&s&&(S.preventDefault(),s()))},v),i.useEffect(()=>{if(u)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Tf=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),Of(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Tf)}},[u,v,r,l]),i.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),Of())},[u,l]),i.useEffect(()=>{const S=()=>h({});return document.addEventListener(il,S),()=>document.removeEventListener(il,S)},[]),q.jsx(Re.div,{...p,ref:x,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:ge(e.onFocusCapture,T.onFocusCapture),onBlurCapture:ge(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:ge(e.onPointerDownCapture,j.onPointerDownCapture)})});Ph.displayName=uN;var fN="DismissableLayerBranch",mN=i.forwardRef((e,t)=>{const r=i.useContext(Dh),n=i.useRef(null),o=vt(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),q.jsx(Re.div,{...e,ref:o})});mN.displayName=fN;function pN(e,t=globalThis?.document){const r=_n(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let p=function(){Mh(lN,r,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=p,t.addEventListener("click",o.current,{once:!0})):p()}else t.removeEventListener("click",o.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function vN(e,t=globalThis?.document){const r=_n(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&Mh(dN,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Of(){const e=new CustomEvent(il);document.dispatchEvent(e)}function Mh(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?iN(o,a):o.dispatchEvent(a)}var vc="focusScope.autoFocusOnMount",gc="focusScope.autoFocusOnUnmount",_f={bubbles:!1,cancelable:!0},gN="FocusScope",Ah=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,p]=i.useState(null),l=_n(o),u=_n(a),m=i.useRef(null),v=vt(t,d=>p(d)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let d=function(w){if(h.paused||!s)return;const E=w.target;s.contains(E)?m.current=E:Gt(m.current,{select:!0})},g=function(w){if(h.paused||!s)return;const E=w.relatedTarget;E!==null&&(s.contains(E)||Gt(m.current,{select:!0}))},b=function(w){if(document.activeElement===document.body)for(const E of w)E.removedNodes.length>0&&Gt(s)};document.addEventListener("focusin",d),document.addEventListener("focusout",g);const y=new MutationObserver(b);return s&&y.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",d),document.removeEventListener("focusout",g),y.disconnect()}}},[n,s,h.paused]),i.useEffect(()=>{if(s){Pf.add(h);const d=document.activeElement;if(!s.contains(d)){const g=new CustomEvent(vc,_f);s.addEventListener(vc,l),s.dispatchEvent(g),g.defaultPrevented||(hN(EN(Ih(s)),{select:!0}),document.activeElement===d&&Gt(s))}return()=>{s.removeEventListener(vc,l),setTimeout(()=>{const g=new CustomEvent(gc,_f);s.addEventListener(gc,u),s.dispatchEvent(g),g.defaultPrevented||Gt(d??document.body,{select:!0}),s.removeEventListener(gc,u),Pf.remove(h)},0)}}},[s,l,u,h]);const x=i.useCallback(d=>{if(!r&&!n||h.paused)return;const g=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,b=document.activeElement;if(g&&b){const y=d.currentTarget,[w,E]=bN(y);w&&E?!d.shiftKey&&b===E?(d.preventDefault(),r&&Gt(w,{select:!0})):d.shiftKey&&b===w&&(d.preventDefault(),r&&Gt(E,{select:!0})):b===y&&d.preventDefault()}},[r,n,h.paused]);return q.jsx(Re.div,{tabIndex:-1,...c,ref:v,onKeyDown:x})});Ah.displayName=gN;function hN(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Gt(n,{select:t}),document.activeElement!==r)return}function bN(e){const t=Ih(e),r=Df(t,e),n=Df(t.reverse(),e);return[r,n]}function Ih(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 Df(e,t){for(const r of e)if(!yN(r,{upTo:t}))return r}function yN(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 wN(e){return e instanceof HTMLInputElement&&"select"in e}function Gt(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&wN(e)&&t&&e.select()}}var Pf=xN();function xN(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=Mf(e,t),e.unshift(t)},remove(t){e=Mf(e,t),e[0]?.resume()}}}function Mf(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function EN(e){return e.filter(t=>t.tagName!=="A")}var kN="Portal",SN=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);vo(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?Le.createPortal(q.jsx(Re.div,{...n,ref:t}),c):null});SN.displayName=kN;function jN(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var di=e=>{const{present:t,children:r}=e,n=CN(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=vt(n.ref,RN(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};di.displayName="Presence";function CN(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,p]=jN(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const l=na(n.current);a.current=s==="mounted"?l:"none"},[s]),vo(()=>{const l=n.current,u=o.current;if(u!==e){const m=a.current,v=na(l);e?p("MOUNT"):v==="none"||l?.display==="none"?p("UNMOUNT"):p(u&&m!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,p]),vo(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,m=h=>{const x=na(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&x&&(p("ANIMATION_END"),!o.current)){const d=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=d)})}},v=h=>{h.target===t&&(a.current=na(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else p("ANIMATION_END")},[t,p]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function na(e){return e?.animationName||"none"}function RN(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var hc=0;function NN(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Af()),document.body.insertAdjacentElement("beforeend",e[1]??Af()),hc++,()=>{hc===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),hc--}},[])}function Af(){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 rt=function(){return rt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},rt.apply(this,arguments)};function Fh(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 TN(e,t,r){for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var ps="right-scroll-bar-position",vs="width-before-scroll-bar",ON="with-scroll-bars-hidden",_N="--removed-body-scroll-bar-size";function bc(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function DN(e,t){var r=P.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 PN=typeof window<"u"?i.useLayoutEffect:i.useEffect,If=new WeakMap;function MN(e,t){var r=DN(null,function(n){return e.forEach(function(o){return bc(o,n)})});return PN(function(){var n=If.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||bc(s,null)}),a.forEach(function(s){o.has(s)||bc(s,c)})}If.set(r,e)},[e]),r}function AN(e){return e}function IN(e,t){t===void 0&&(t=AN);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(a){var c=t(a,n);return r.push(c),function(){r=r.filter(function(s){return s!==c})}},assignSyncMedium:function(a){for(n=!0;r.length;){var c=r;r=[],c.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var c=[];if(r.length){var s=r;r=[],s.forEach(a),c=r}var p=function(){var u=c;c=[],u.forEach(a)},l=function(){return Promise.resolve().then(p)};l(),r={push:function(u){c.push(u),l()},filter:function(u){return c=c.filter(u),r}}}};return o}function FN(e){e===void 0&&(e={});var t=IN(null);return t.options=rt({async:!0,ssr:!1},e),t}var Lh=function(e){var t=e.sideCar,r=Fh(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 i.createElement(n,rt({},r))};Lh.isSideCarExport=!0;function LN(e,t){return e.useMedium(t),Lh}var Wh=FN(),yc=function(){},fi=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:yc,onWheelCapture:yc,onTouchMoveCapture:yc}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,p=e.className,l=e.removeScrollBar,u=e.enabled,m=e.shards,v=e.sideCar,h=e.noRelative,x=e.noIsolation,d=e.inert,g=e.allowPinchZoom,b=e.as,y=b===void 0?"div":b,w=e.gapMode,E=Fh(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),j=v,T=MN([r,t]),S=rt(rt({},E),o);return i.createElement(i.Fragment,null,u&&i.createElement(j,{sideCar:Wh,removeScrollBar:l,shards:m,noRelative:h,noIsolation:x,inert:d,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),rt(rt({},S),{ref:T})):i.createElement(y,rt({},S,{className:p,ref:T}),s))});fi.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};fi.classNames={fullWidth:vs,zeroRight:ps};var WN=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function zN(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=WN();return t&&e.setAttribute("nonce",t),e}function $N(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function YN(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var UN=function(){var e=0,t=null;return{add:function(r){e==0&&(t=zN())&&($N(t,r),YN(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},BN=function(){var e=UN();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},zh=function(){var e=BN(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},KN={left:0,top:0,right:0,gap:0},wc=function(e){return parseInt(e||"",10)||0},HN=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[wc(r),wc(n),wc(o)]},VN=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return KN;var t=HN(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])}},XN=zh(),wn="data-scroll-locked",qN=function(e,t,r,n){var o=e.left,a=e.top,c=e.right,s=e.gap;return r===void 0&&(r="margin"),`
132
+ .`.concat(ON,` {
133
+ overflow: hidden `).concat(n,`;
134
+ padding-right: `).concat(s,"px ").concat(n,`;
135
+ }
136
+ body[`).concat(wn,`] {
137
+ overflow: hidden `).concat(n,`;
138
+ overscroll-behavior: contain;
139
+ `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
140
+ padding-left: `.concat(o,`px;
141
+ padding-top: `).concat(a,`px;
142
+ padding-right: `).concat(c,`px;
143
+ margin-left:0;
144
+ margin-top:0;
145
+ margin-right: `).concat(s,"px ").concat(n,`;
146
+ `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
147
+ }
148
+
149
+ .`).concat(ps,` {
150
+ right: `).concat(s,"px ").concat(n,`;
151
+ }
152
+
153
+ .`).concat(vs,` {
154
+ margin-right: `).concat(s,"px ").concat(n,`;
155
+ }
156
+
157
+ .`).concat(ps," .").concat(ps,` {
158
+ right: 0 `).concat(n,`;
159
+ }
160
+
161
+ .`).concat(vs," .").concat(vs,` {
162
+ margin-right: 0 `).concat(n,`;
163
+ }
164
+
165
+ body[`).concat(wn,`] {
166
+ `).concat(_N,": ").concat(s,`px;
167
+ }
168
+ `)},Ff=function(){var e=parseInt(document.body.getAttribute(wn)||"0",10);return isFinite(e)?e:0},GN=function(){i.useEffect(function(){return document.body.setAttribute(wn,(Ff()+1).toString()),function(){var e=Ff()-1;e<=0?document.body.removeAttribute(wn):document.body.setAttribute(wn,e.toString())}},[])},ZN=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;GN();var a=i.useMemo(function(){return VN(o)},[o]);return i.createElement(XN,{styles:qN(a,!t,o,r?"":"!important")})},cl=!1;if(typeof window<"u")try{var oa=Object.defineProperty({},"passive",{get:function(){return cl=!0,!0}});window.addEventListener("test",oa,oa),window.removeEventListener("test",oa,oa)}catch{cl=!1}var zr=cl?{passive:!1}:!1,JN=function(e){return e.tagName==="TEXTAREA"},$h=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!JN(e)&&r[t]==="visible")},QN=function(e){return $h(e,"overflowY")},eT=function(e){return $h(e,"overflowX")},Lf=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=Yh(e,n);if(o){var a=Uh(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},tT=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},rT=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},Yh=function(e,t){return e==="v"?QN(t):eT(t)},Uh=function(e,t){return e==="v"?tT(t):rT(t)},nT=function(e,t){return e==="h"&&t==="rtl"?-1:1},oT=function(e,t,r,n,o){var a=nT(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,p=t.contains(s),l=!1,u=c>0,m=0,v=0;do{if(!s)break;var h=Uh(e,s),x=h[0],d=h[1],g=h[2],b=d-g-a*x;(x||b)&&Yh(e,s)&&(m+=b,v+=x);var y=s.parentNode;s=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!p&&s!==document.body||p&&(t.contains(s)||t===s));return(u&&Math.abs(m)<1||!u&&Math.abs(v)<1)&&(l=!0),l},aa=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Wf=function(e){return[e.deltaX,e.deltaY]},zf=function(e){return e&&"current"in e?e.current:e},aT=function(e,t){return e[0]===t[0]&&e[1]===t[1]},sT=function(e){return`
169
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
170
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
171
+ `)},iT=0,$r=[];function cT(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(iT++)[0],a=i.useState(zh)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var d=TN([e.lockRef.current],(e.shards||[]).map(zf)).filter(Boolean);return d.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),d.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(d,g){if("touches"in d&&d.touches.length===2||d.type==="wheel"&&d.ctrlKey)return!c.current.allowPinchZoom;var b=aa(d),y=r.current,w="deltaX"in d?d.deltaX:y[0]-b[0],E="deltaY"in d?d.deltaY:y[1]-b[1],j,T=d.target,S=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in d&&S==="h"&&T.type==="range")return!1;var R=Lf(S,T);if(!R)return!0;if(R?j=S:(j=S==="v"?"h":"v",R=Lf(S,T)),!R)return!1;if(!n.current&&"changedTouches"in d&&(w||E)&&(n.current=j),!j)return!0;var M=n.current||j;return oT(M,g,d,M==="h"?w:E)},[]),p=i.useCallback(function(d){var g=d;if(!(!$r.length||$r[$r.length-1]!==a)){var b="deltaY"in g?Wf(g):aa(g),y=t.current.filter(function(j){return j.name===g.type&&(j.target===g.target||g.target===j.shadowParent)&&aT(j.delta,b)})[0];if(y&&y.should){g.cancelable&&g.preventDefault();return}if(!y){var w=(c.current.shards||[]).map(zf).filter(Boolean).filter(function(j){return j.contains(g.target)}),E=w.length>0?s(g,w[0]):!c.current.noIsolation;E&&g.cancelable&&g.preventDefault()}}},[]),l=i.useCallback(function(d,g,b,y){var w={name:d,delta:g,target:b,should:y,shadowParent:uT(b)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),u=i.useCallback(function(d){r.current=aa(d),n.current=void 0},[]),m=i.useCallback(function(d){l(d.type,Wf(d),d.target,s(d,e.lockRef.current))},[]),v=i.useCallback(function(d){l(d.type,aa(d),d.target,s(d,e.lockRef.current))},[]);i.useEffect(function(){return $r.push(a),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:v}),document.addEventListener("wheel",p,zr),document.addEventListener("touchmove",p,zr),document.addEventListener("touchstart",u,zr),function(){$r=$r.filter(function(d){return d!==a}),document.removeEventListener("wheel",p,zr),document.removeEventListener("touchmove",p,zr),document.removeEventListener("touchstart",u,zr)}},[]);var h=e.removeScrollBar,x=e.inert;return i.createElement(i.Fragment,null,x?i.createElement(a,{styles:sT(o)}):null,h?i.createElement(ZN,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function uT(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const lT=LN(Wh,cT);var Bh=i.forwardRef(function(e,t){return i.createElement(fi,rt({},e,{ref:t,sideCar:lT}))});Bh.classNames=fi.classNames;var dT=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Yr=new WeakMap,sa=new WeakMap,ia={},xc=0,Kh=function(e){return e&&(e.host||Kh(e.parentNode))},fT=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Kh(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},mT=function(e,t,r,n){var o=fT(t,Array.isArray(e)?e:[e]);ia[r]||(ia[r]=new WeakMap);var a=ia[r],c=[],s=new Set,p=new Set(o),l=function(m){!m||s.has(m)||(s.add(m),l(m.parentNode))};o.forEach(l);var u=function(m){!m||p.has(m)||Array.prototype.forEach.call(m.children,function(v){if(s.has(v))u(v);else try{var h=v.getAttribute(n),x=h!==null&&h!=="false",d=(Yr.get(v)||0)+1,g=(a.get(v)||0)+1;Yr.set(v,d),a.set(v,g),c.push(v),d===1&&x&&sa.set(v,!0),g===1&&v.setAttribute(r,"true"),x||v.setAttribute(n,"true")}catch(b){console.error("aria-hidden: cannot operate on ",v,b)}})};return u(t),s.clear(),xc++,function(){c.forEach(function(m){var v=Yr.get(m)-1,h=a.get(m)-1;Yr.set(m,v),a.set(m,h),v||(sa.has(m)||m.removeAttribute(n),sa.delete(m)),h||m.removeAttribute(r)}),xc--,xc||(Yr=new WeakMap,Yr=new WeakMap,sa=new WeakMap,ia={})}},pT=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=dT(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),mT(n,o,r,"aria-hidden")):function(){return null}},Hh="Dialog",[Vh]=li(Hh),[BK,Rt]=Vh(Hh),Xh="DialogTrigger",vT=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Rt(Xh,r),a=vt(t,o.triggerRef);return q.jsx(Re.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":cd(o.open),...n,ref:a,onClick:ge(e.onClick,o.onOpenToggle)})});vT.displayName=Xh;var gT="DialogPortal",[KK,qh]=Vh(gT,{forceMount:void 0}),Bs="DialogOverlay",hT=i.forwardRef((e,t)=>{const r=qh(Bs,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Rt(Bs,e.__scopeDialog);return a.modal?q.jsx(di,{present:n||a.open,children:q.jsx(yT,{...o,ref:t})}):null});hT.displayName=Bs;var bT=oe.createSlot("DialogOverlay.RemoveScroll"),yT=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Rt(Bs,r);return q.jsx(Bh,{as:bT,allowPinchZoom:!0,shards:[o.contentRef],children:q.jsx(Re.div,{"data-state":cd(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),yr="DialogContent",wT=i.forwardRef((e,t)=>{const r=qh(yr,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Rt(yr,e.__scopeDialog);return q.jsx(di,{present:n||a.open,children:a.modal?q.jsx(xT,{...o,ref:t}):q.jsx(ET,{...o,ref:t})})});wT.displayName=yr;var xT=i.forwardRef((e,t)=>{const r=Rt(yr,e.__scopeDialog),n=i.useRef(null),o=vt(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return pT(a)},[]),q.jsx(Gh,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ge(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:ge(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:ge(e.onFocusOutside,a=>a.preventDefault())})}),ET=i.forwardRef((e,t)=>{const r=Rt(yr,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return q.jsx(Gh,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=a.target;r.triggerRef.current?.contains(c)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Gh=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=Rt(yr,r),p=i.useRef(null),l=vt(t,p);return NN(),q.jsxs(q.Fragment,{children:[q.jsx(Ah,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:q.jsx(Ph,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":cd(s.open),...c,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),q.jsxs(q.Fragment,{children:[q.jsx(CT,{titleId:s.titleId}),q.jsx(NT,{contentRef:p,descriptionId:s.descriptionId})]})]})}),id="DialogTitle",kT=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Rt(id,r);return q.jsx(Re.h2,{id:o.titleId,...n,ref:t})});kT.displayName=id;var Zh="DialogDescription",ST=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Rt(Zh,r);return q.jsx(Re.p,{id:o.descriptionId,...n,ref:t})});ST.displayName=Zh;var Jh="DialogClose",jT=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Rt(Jh,r);return q.jsx(Re.button,{type:"button",...n,ref:t,onClick:ge(e.onClick,()=>o.onOpenChange(!1))})});jT.displayName=Jh;function cd(e){return e?"open":"closed"}var Qh="DialogTitleWarning",[HK,eb]=QR(Qh,{contentName:yr,titleName:id,docsSlug:"dialog"}),CT=({titleId:e})=>{const t=eb(Qh),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
172
+
173
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
174
+
175
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},RT="DialogDescriptionWarning",NT=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${eb(RT).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Ec={exports:{}},Gn={};/**
176
+ * @license React
177
+ * react-jsx-runtime.production.js
178
+ *
179
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
180
+ *
181
+ * This source code is licensed under the MIT license found in the
182
+ * LICENSE file in the root directory of this source tree.
183
+ */var $f;function TT(){if($f)return Gn;$f=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var c=null;if(a!==void 0&&(c=""+a),o.key!==void 0&&(c=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:c,ref:o!==void 0?o:null,props:a}}return Gn.Fragment=t,Gn.jsx=r,Gn.jsxs=r,Gn}var ca={};/**
184
+ * @license React
185
+ * react-jsx-runtime.development.js
186
+ *
187
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
188
+ *
189
+ * This source code is licensed under the MIT license found in the
190
+ * LICENSE file in the root directory of this source tree.
191
+ */var Yf;function OT(){return Yf||(Yf=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===L?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case d:return"Fragment";case b:return"Profiler";case g:return"StrictMode";case j:return"Suspense";case T:return"SuspenseList";case M:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case x:return"Portal";case w:return(f.displayName||"Context")+".Provider";case y:return(f._context.displayName||"Context")+".Consumer";case E:var k=f.render;return f=f.displayName,f||(f=k.displayName||k.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case S:return k=f.displayName||null,k!==null?k:e(f.type)||"Memo";case R:k=f._payload,f=f._init;try{return e(f(k))}catch{}}return null}function t(f){return""+f}function r(f){try{t(f);var k=!1}catch{k=!0}if(k){k=console;var N=k.error,O=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return N.call(k,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",O),t(f)}}function n(f){if(f===d)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===R)return"<...>";try{var k=e(f);return k?"<"+k+">":"<...>"}catch{return"<...>"}}function o(){var f=I.A;return f===null?null:f.getOwner()}function a(){return Error("react-stack-top-frame")}function c(f){if(B.call(f,"key")){var k=Object.getOwnPropertyDescriptor(f,"key").get;if(k&&k.isReactWarning)return!1}return f.key!==void 0}function s(f,k){function N(){D||(D=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",k))}N.isReactWarning=!0,Object.defineProperty(f,"key",{get:N,configurable:!0})}function p(){var f=e(this.type);return Y[f]||(Y[f]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),f=this.props.ref,f!==void 0?f:null}function l(f,k,N,O,W,A,ae,X){return N=A.ref,f={$$typeof:h,type:f,key:k,props:A,_owner:W},(N!==void 0?N:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:p}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ae}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function u(f,k,N,O,W,A,ae,X){var _=k.children;if(_!==void 0)if(O)if(K(_)){for(O=0;O<_.length;O++)m(_[O]);Object.freeze&&Object.freeze(_)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else m(_);if(B.call(k,"key")){_=e(f);var $=Object.keys(k).filter(function(fe){return fe!=="key"});O=0<$.length?"{key: someKey, "+$.join(": ..., ")+": ...}":"{key: someKey}",V[_+O]||($=0<$.length?"{"+$.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
192
+ let props = %s;
193
+ <%s {...props} />
194
+ React keys must be passed directly to JSX without using spread:
195
+ let props = %s;
196
+ <%s key={someKey} {...props} />`,O,_,$,_),V[_+O]=!0)}if(_=null,N!==void 0&&(r(N),_=""+N),c(k)&&(r(k.key),_=""+k.key),"key"in k){N={};for(var se in k)se!=="key"&&(N[se]=k[se])}else N=k;return _&&s(N,typeof f=="function"?f.displayName||f.name||"Unknown":f),l(f,_,A,W,o(),N,ae,X)}function m(f){typeof f=="object"&&f!==null&&f.$$typeof===h&&f._store&&(f._store.validated=1)}var v=P,h=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),w=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),M=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,K=Array.isArray,z=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(f){return f()}};var D,Y={},H=v.react_stack_bottom_frame.bind(v,a)(),U=z(n(a)),V={};ca.Fragment=d,ca.jsx=function(f,k,N,O,W){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,k,N,!1,O,W,A?Error("react-stack-top-frame"):H,A?z(n(f)):U)},ca.jsxs=function(f,k,N,O,W){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,k,N,!0,O,W,A?Error("react-stack-top-frame"):H,A?z(n(f)):U)}})()),ca}var Uf;function _T(){return Uf||(Uf=1,process.env.NODE_ENV==="production"?Ec.exports=TT():Ec.exports=OT()),Ec.exports}var G=_T();P.createContext({locale:void 0});var DT=(e,t,r,n,o,a,c,s)=>{let p=document.documentElement,l=["light","dark"];function u(h){(Array.isArray(e)?e:[e]).forEach(x=>{let d=x==="class",g=d&&a?o.map(b=>a[b]||b):o;d?(p.classList.remove(...g),p.classList.add(a&&a[h]?a[h]:h)):p.setAttribute(x,h)}),m(h)}function m(h){s&&l.includes(h)&&(p.style.colorScheme=h)}function v(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)u(n);else try{let h=localStorage.getItem(t)||r,x=c&&h==="system"?v():h;u(x)}catch{}};i.createContext(void 0);i.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:o,defaultTheme:a,value:c,themes:s,nonce:p,scriptProps:l})=>{let u=JSON.stringify([r,t,a,e,s,c,n,o]).slice(1,-1);return i.createElement("script",{...l,suppressHydrationWarning:!0,nonce:typeof window>"u"?p:"",dangerouslySetInnerHTML:{__html:`(${DT.toString()})(${u})`}})});me.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});me.cva("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function he(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function Bf(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function PT(...e){return t=>{let r=!1;const n=e.map(o=>{const a=Bf(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():Bf(e[o],null)}}}}function gt(...e){return i.useCallback(PT(...e),e)}function MT(e,t){const r=i.createContext(t),n=a=>{const{children:c,...s}=a,p=i.useMemo(()=>s,Object.values(s));return G.jsx(r.Provider,{value:p,children:c})};n.displayName=e+"Provider";function o(a){const c=i.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function mi(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),p=r.length;r=[...r,c];const l=m=>{const{scope:v,children:h,...x}=m,d=v?.[e]?.[p]||s,g=i.useMemo(()=>x,Object.values(x));return G.jsx(d.Provider,{value:g,children:h})};l.displayName=a+"Provider";function u(m,v){const h=v?.[e]?.[p]||s,x=i.useContext(h);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${m}\` must be used within \`${a}\``)}return[l,u]}const o=()=>{const a=r.map(c=>i.createContext(c));return function(c){const s=c?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:s}}),[c,s])}};return o.scopeName=e,[n,AT(o,...t)]}function AT(...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(o){const a=n.reduce((c,{useScope:s,scopeName:p})=>{const l=s(o)[`__scope${p}`];return{...c,...l}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var go=globalThis?.document?i.useLayoutEffect:()=>{},IT=i[" useId ".trim().toString()]||(()=>{}),FT=0;function tb(e){const[t,r]=i.useState(IT());return go(()=>{r(n=>n??String(FT++))},[e]),t?`radix-${t}`:""}var LT=i[" useInsertionEffect ".trim().toString()]||go;function rb({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,c]=WT({defaultProp:t,onChange:r}),s=e!==void 0,p=s?e:o;{const u=i.useRef(e!==void 0);i.useEffect(()=>{const m=u.current;m!==s&&console.warn(`${n} is changing from ${m?"controlled":"uncontrolled"} to ${s?"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.`),u.current=s},[s,n])}const l=i.useCallback(u=>{if(s){const m=zT(u)?u(e):u;m!==e&&c.current?.(m)}else a(u)},[s,e,a,c]);return[p,l]}function WT({defaultProp:e,onChange:t}){const[r,n]=i.useState(e),o=i.useRef(r),a=i.useRef(t);return LT(()=>{a.current=t},[t]),i.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}function zT(e){return typeof e=="function"}var $T=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ne=$T.reduce((e,t)=>{const r=oe.createSlot(`Primitive.${t}`),n=i.forwardRef((o,a)=>{const{asChild:c,...s}=o,p=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),G.jsx(p,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function YT(e,t){e&&We.flushSync(()=>e.dispatchEvent(t))}function Dn(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function UT(e,t=globalThis?.document){const r=Dn(e);i.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 BT="DismissableLayer",ul="dismissableLayer.update",KT="dismissableLayer.pointerDownOutside",HT="dismissableLayer.focusOutside",Kf,nb=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ob=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...p}=e,l=i.useContext(nb),[u,m]=i.useState(null),v=u?.ownerDocument??globalThis?.document,[,h]=i.useState({}),x=gt(t,S=>m(S)),d=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),b=d.indexOf(g),y=u?d.indexOf(u):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,E=y>=b,j=qT(S=>{const R=S.target,M=[...l.branches].some(L=>L.contains(R));!E||M||(o?.(S),c?.(S),S.defaultPrevented||s?.())},v),T=GT(S=>{const R=S.target;[...l.branches].some(M=>M.contains(R))||(a?.(S),c?.(S),S.defaultPrevented||s?.())},v);return UT(S=>{y===l.layers.size-1&&(n?.(S),!S.defaultPrevented&&s&&(S.preventDefault(),s()))},v),i.useEffect(()=>{if(u)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Kf=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),Hf(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Kf)}},[u,v,r,l]),i.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),Hf())},[u,l]),i.useEffect(()=>{const S=()=>h({});return document.addEventListener(ul,S),()=>document.removeEventListener(ul,S)},[]),G.jsx(Ne.div,{...p,ref:x,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:he(e.onFocusCapture,T.onFocusCapture),onBlurCapture:he(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:he(e.onPointerDownCapture,j.onPointerDownCapture)})});ob.displayName=BT;var VT="DismissableLayerBranch",XT=i.forwardRef((e,t)=>{const r=i.useContext(nb),n=i.useRef(null),o=gt(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),G.jsx(Ne.div,{...e,ref:o})});XT.displayName=VT;function qT(e,t=globalThis?.document){const r=Dn(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let p=function(){ab(KT,r,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=p,t.addEventListener("click",o.current,{once:!0})):p()}else t.removeEventListener("click",o.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function GT(e,t=globalThis?.document){const r=Dn(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&ab(HT,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Hf(){const e=new CustomEvent(ul);document.dispatchEvent(e)}function ab(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?YT(o,a):o.dispatchEvent(a)}var kc="focusScope.autoFocusOnMount",Sc="focusScope.autoFocusOnUnmount",Vf={bubbles:!1,cancelable:!0},ZT="FocusScope",sb=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,p]=i.useState(null),l=Dn(o),u=Dn(a),m=i.useRef(null),v=gt(t,d=>p(d)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let d=function(w){if(h.paused||!s)return;const E=w.target;s.contains(E)?m.current=E:Zt(m.current,{select:!0})},g=function(w){if(h.paused||!s)return;const E=w.relatedTarget;E!==null&&(s.contains(E)||Zt(m.current,{select:!0}))},b=function(w){if(document.activeElement===document.body)for(const E of w)E.removedNodes.length>0&&Zt(s)};document.addEventListener("focusin",d),document.addEventListener("focusout",g);const y=new MutationObserver(b);return s&&y.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",d),document.removeEventListener("focusout",g),y.disconnect()}}},[n,s,h.paused]),i.useEffect(()=>{if(s){qf.add(h);const d=document.activeElement;if(!s.contains(d)){const g=new CustomEvent(kc,Vf);s.addEventListener(kc,l),s.dispatchEvent(g),g.defaultPrevented||(JT(nO(ib(s)),{select:!0}),document.activeElement===d&&Zt(s))}return()=>{s.removeEventListener(kc,l),setTimeout(()=>{const g=new CustomEvent(Sc,Vf);s.addEventListener(Sc,u),s.dispatchEvent(g),g.defaultPrevented||Zt(d??document.body,{select:!0}),s.removeEventListener(Sc,u),qf.remove(h)},0)}}},[s,l,u,h]);const x=i.useCallback(d=>{if(!r&&!n||h.paused)return;const g=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,b=document.activeElement;if(g&&b){const y=d.currentTarget,[w,E]=QT(y);w&&E?!d.shiftKey&&b===E?(d.preventDefault(),r&&Zt(w,{select:!0})):d.shiftKey&&b===w&&(d.preventDefault(),r&&Zt(E,{select:!0})):b===y&&d.preventDefault()}},[r,n,h.paused]);return G.jsx(Ne.div,{tabIndex:-1,...c,ref:v,onKeyDown:x})});sb.displayName=ZT;function JT(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Zt(n,{select:t}),document.activeElement!==r)return}function QT(e){const t=ib(e),r=Xf(t,e),n=Xf(t.reverse(),e);return[r,n]}function ib(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 Xf(e,t){for(const r of e)if(!eO(r,{upTo:t}))return r}function eO(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 tO(e){return e instanceof HTMLInputElement&&"select"in e}function Zt(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&tO(e)&&t&&e.select()}}var qf=rO();function rO(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=Gf(e,t),e.unshift(t)},remove(t){e=Gf(e,t),e[0]?.resume()}}}function Gf(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function nO(e){return e.filter(t=>t.tagName!=="A")}var oO="Portal",aO=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);go(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?Le.createPortal(G.jsx(Ne.div,{...n,ref:t}),c):null});aO.displayName=oO;function sO(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var pi=e=>{const{present:t,children:r}=e,n=iO(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=gt(n.ref,cO(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};pi.displayName="Presence";function iO(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,p]=sO(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const l=ua(n.current);a.current=s==="mounted"?l:"none"},[s]),go(()=>{const l=n.current,u=o.current;if(u!==e){const m=a.current,v=ua(l);e?p("MOUNT"):v==="none"||l?.display==="none"?p("UNMOUNT"):p(u&&m!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,p]),go(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,m=h=>{const x=ua(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&x&&(p("ANIMATION_END"),!o.current)){const d=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=d)})}},v=h=>{h.target===t&&(a.current=ua(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else p("ANIMATION_END")},[t,p]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function ua(e){return e?.animationName||"none"}function cO(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var jc=0;function uO(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Zf()),document.body.insertAdjacentElement("beforeend",e[1]??Zf()),jc++,()=>{jc===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),jc--}},[])}function Zf(){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 nt=function(){return nt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},nt.apply(this,arguments)};function cb(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 lO(e,t,r){for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var gs="right-scroll-bar-position",hs="width-before-scroll-bar",dO="with-scroll-bars-hidden",fO="--removed-body-scroll-bar-size";function Cc(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function mO(e,t){var r=P.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 pO=typeof window<"u"?i.useLayoutEffect:i.useEffect,Jf=new WeakMap;function vO(e,t){var r=mO(null,function(n){return e.forEach(function(o){return Cc(o,n)})});return pO(function(){var n=Jf.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||Cc(s,null)}),a.forEach(function(s){o.has(s)||Cc(s,c)})}Jf.set(r,e)},[e]),r}function gO(e){return e}function hO(e,t){t===void 0&&(t=gO);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(a){var c=t(a,n);return r.push(c),function(){r=r.filter(function(s){return s!==c})}},assignSyncMedium:function(a){for(n=!0;r.length;){var c=r;r=[],c.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var c=[];if(r.length){var s=r;r=[],s.forEach(a),c=r}var p=function(){var u=c;c=[],u.forEach(a)},l=function(){return Promise.resolve().then(p)};l(),r={push:function(u){c.push(u),l()},filter:function(u){return c=c.filter(u),r}}}};return o}function bO(e){e===void 0&&(e={});var t=hO(null);return t.options=nt({async:!0,ssr:!1},e),t}var ub=function(e){var t=e.sideCar,r=cb(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 i.createElement(n,nt({},r))};ub.isSideCarExport=!0;function yO(e,t){return e.useMedium(t),ub}var lb=bO(),Rc=function(){},vi=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:Rc,onWheelCapture:Rc,onTouchMoveCapture:Rc}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,p=e.className,l=e.removeScrollBar,u=e.enabled,m=e.shards,v=e.sideCar,h=e.noRelative,x=e.noIsolation,d=e.inert,g=e.allowPinchZoom,b=e.as,y=b===void 0?"div":b,w=e.gapMode,E=cb(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),j=v,T=vO([r,t]),S=nt(nt({},E),o);return i.createElement(i.Fragment,null,u&&i.createElement(j,{sideCar:lb,removeScrollBar:l,shards:m,noRelative:h,noIsolation:x,inert:d,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),nt(nt({},S),{ref:T})):i.createElement(y,nt({},S,{className:p,ref:T}),s))});vi.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};vi.classNames={fullWidth:hs,zeroRight:gs};var wO=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function xO(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=wO();return t&&e.setAttribute("nonce",t),e}function EO(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function kO(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var SO=function(){var e=0,t=null;return{add:function(r){e==0&&(t=xO())&&(EO(t,r),kO(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},jO=function(){var e=SO();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},db=function(){var e=jO(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},CO={left:0,top:0,right:0,gap:0},Nc=function(e){return parseInt(e||"",10)||0},RO=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[Nc(r),Nc(n),Nc(o)]},NO=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return CO;var t=RO(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])}},TO=db(),xn="data-scroll-locked",OO=function(e,t,r,n){var o=e.left,a=e.top,c=e.right,s=e.gap;return r===void 0&&(r="margin"),`
197
+ .`.concat(dO,` {
198
+ overflow: hidden `).concat(n,`;
199
+ padding-right: `).concat(s,"px ").concat(n,`;
200
+ }
201
+ body[`).concat(xn,`] {
202
+ overflow: hidden `).concat(n,`;
203
+ overscroll-behavior: contain;
204
+ `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
205
+ padding-left: `.concat(o,`px;
206
+ padding-top: `).concat(a,`px;
207
+ padding-right: `).concat(c,`px;
208
+ margin-left:0;
209
+ margin-top:0;
210
+ margin-right: `).concat(s,"px ").concat(n,`;
211
+ `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
212
+ }
213
+
214
+ .`).concat(gs,` {
215
+ right: `).concat(s,"px ").concat(n,`;
216
+ }
217
+
218
+ .`).concat(hs,` {
219
+ margin-right: `).concat(s,"px ").concat(n,`;
220
+ }
221
+
222
+ .`).concat(gs," .").concat(gs,` {
223
+ right: 0 `).concat(n,`;
224
+ }
225
+
226
+ .`).concat(hs," .").concat(hs,` {
227
+ margin-right: 0 `).concat(n,`;
228
+ }
229
+
230
+ body[`).concat(xn,`] {
231
+ `).concat(fO,": ").concat(s,`px;
232
+ }
233
+ `)},Qf=function(){var e=parseInt(document.body.getAttribute(xn)||"0",10);return isFinite(e)?e:0},_O=function(){i.useEffect(function(){return document.body.setAttribute(xn,(Qf()+1).toString()),function(){var e=Qf()-1;e<=0?document.body.removeAttribute(xn):document.body.setAttribute(xn,e.toString())}},[])},DO=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;_O();var a=i.useMemo(function(){return NO(o)},[o]);return i.createElement(TO,{styles:OO(a,!t,o,r?"":"!important")})},ll=!1;if(typeof window<"u")try{var la=Object.defineProperty({},"passive",{get:function(){return ll=!0,!0}});window.addEventListener("test",la,la),window.removeEventListener("test",la,la)}catch{ll=!1}var Ur=ll?{passive:!1}:!1,PO=function(e){return e.tagName==="TEXTAREA"},fb=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!PO(e)&&r[t]==="visible")},MO=function(e){return fb(e,"overflowY")},AO=function(e){return fb(e,"overflowX")},em=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=mb(e,n);if(o){var a=pb(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},IO=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},FO=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},mb=function(e,t){return e==="v"?MO(t):AO(t)},pb=function(e,t){return e==="v"?IO(t):FO(t)},LO=function(e,t){return e==="h"&&t==="rtl"?-1:1},WO=function(e,t,r,n,o){var a=LO(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,p=t.contains(s),l=!1,u=c>0,m=0,v=0;do{if(!s)break;var h=pb(e,s),x=h[0],d=h[1],g=h[2],b=d-g-a*x;(x||b)&&mb(e,s)&&(m+=b,v+=x);var y=s.parentNode;s=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!p&&s!==document.body||p&&(t.contains(s)||t===s));return(u&&Math.abs(m)<1||!u&&Math.abs(v)<1)&&(l=!0),l},da=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},tm=function(e){return[e.deltaX,e.deltaY]},rm=function(e){return e&&"current"in e?e.current:e},zO=function(e,t){return e[0]===t[0]&&e[1]===t[1]},$O=function(e){return`
234
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
235
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
236
+ `)},YO=0,Br=[];function UO(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(YO++)[0],a=i.useState(db)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var d=lO([e.lockRef.current],(e.shards||[]).map(rm)).filter(Boolean);return d.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),d.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(d,g){if("touches"in d&&d.touches.length===2||d.type==="wheel"&&d.ctrlKey)return!c.current.allowPinchZoom;var b=da(d),y=r.current,w="deltaX"in d?d.deltaX:y[0]-b[0],E="deltaY"in d?d.deltaY:y[1]-b[1],j,T=d.target,S=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in d&&S==="h"&&T.type==="range")return!1;var R=em(S,T);if(!R)return!0;if(R?j=S:(j=S==="v"?"h":"v",R=em(S,T)),!R)return!1;if(!n.current&&"changedTouches"in d&&(w||E)&&(n.current=j),!j)return!0;var M=n.current||j;return WO(M,g,d,M==="h"?w:E)},[]),p=i.useCallback(function(d){var g=d;if(!(!Br.length||Br[Br.length-1]!==a)){var b="deltaY"in g?tm(g):da(g),y=t.current.filter(function(j){return j.name===g.type&&(j.target===g.target||g.target===j.shadowParent)&&zO(j.delta,b)})[0];if(y&&y.should){g.cancelable&&g.preventDefault();return}if(!y){var w=(c.current.shards||[]).map(rm).filter(Boolean).filter(function(j){return j.contains(g.target)}),E=w.length>0?s(g,w[0]):!c.current.noIsolation;E&&g.cancelable&&g.preventDefault()}}},[]),l=i.useCallback(function(d,g,b,y){var w={name:d,delta:g,target:b,should:y,shadowParent:BO(b)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),u=i.useCallback(function(d){r.current=da(d),n.current=void 0},[]),m=i.useCallback(function(d){l(d.type,tm(d),d.target,s(d,e.lockRef.current))},[]),v=i.useCallback(function(d){l(d.type,da(d),d.target,s(d,e.lockRef.current))},[]);i.useEffect(function(){return Br.push(a),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:v}),document.addEventListener("wheel",p,Ur),document.addEventListener("touchmove",p,Ur),document.addEventListener("touchstart",u,Ur),function(){Br=Br.filter(function(d){return d!==a}),document.removeEventListener("wheel",p,Ur),document.removeEventListener("touchmove",p,Ur),document.removeEventListener("touchstart",u,Ur)}},[]);var h=e.removeScrollBar,x=e.inert;return i.createElement(i.Fragment,null,x?i.createElement(a,{styles:$O(o)}):null,h?i.createElement(DO,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function BO(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const KO=yO(lb,UO);var vb=i.forwardRef(function(e,t){return i.createElement(vi,nt({},e,{ref:t,sideCar:KO}))});vb.classNames=vi.classNames;var HO=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Kr=new WeakMap,fa=new WeakMap,ma={},Tc=0,gb=function(e){return e&&(e.host||gb(e.parentNode))},VO=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=gb(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},XO=function(e,t,r,n){var o=VO(t,Array.isArray(e)?e:[e]);ma[r]||(ma[r]=new WeakMap);var a=ma[r],c=[],s=new Set,p=new Set(o),l=function(m){!m||s.has(m)||(s.add(m),l(m.parentNode))};o.forEach(l);var u=function(m){!m||p.has(m)||Array.prototype.forEach.call(m.children,function(v){if(s.has(v))u(v);else try{var h=v.getAttribute(n),x=h!==null&&h!=="false",d=(Kr.get(v)||0)+1,g=(a.get(v)||0)+1;Kr.set(v,d),a.set(v,g),c.push(v),d===1&&x&&fa.set(v,!0),g===1&&v.setAttribute(r,"true"),x||v.setAttribute(n,"true")}catch(b){console.error("aria-hidden: cannot operate on ",v,b)}})};return u(t),s.clear(),Tc++,function(){c.forEach(function(m){var v=Kr.get(m)-1,h=a.get(m)-1;Kr.set(m,v),a.set(m,h),v||(fa.has(m)||m.removeAttribute(n),fa.delete(m)),h||m.removeAttribute(r)}),Tc--,Tc||(Kr=new WeakMap,Kr=new WeakMap,fa=new WeakMap,ma={})}},qO=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=HO(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),XO(n,o,r,"aria-hidden")):function(){return null}},hb="Dialog",[bb]=mi(hb),[VK,Nt]=bb(hb),yb="DialogTrigger",GO=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Nt(yb,r),a=gt(t,o.triggerRef);return G.jsx(Ne.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":ld(o.open),...n,ref:a,onClick:he(e.onClick,o.onOpenToggle)})});GO.displayName=yb;var ZO="DialogPortal",[XK,wb]=bb(ZO,{forceMount:void 0}),Ks="DialogOverlay",JO=i.forwardRef((e,t)=>{const r=wb(Ks,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Nt(Ks,e.__scopeDialog);return a.modal?G.jsx(pi,{present:n||a.open,children:G.jsx(e_,{...o,ref:t})}):null});JO.displayName=Ks;var QO=oe.createSlot("DialogOverlay.RemoveScroll"),e_=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Nt(Ks,r);return G.jsx(vb,{as:QO,allowPinchZoom:!0,shards:[o.contentRef],children:G.jsx(Ne.div,{"data-state":ld(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),wr="DialogContent",t_=i.forwardRef((e,t)=>{const r=wb(wr,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Nt(wr,e.__scopeDialog);return G.jsx(pi,{present:n||a.open,children:a.modal?G.jsx(r_,{...o,ref:t}):G.jsx(n_,{...o,ref:t})})});t_.displayName=wr;var r_=i.forwardRef((e,t)=>{const r=Nt(wr,e.__scopeDialog),n=i.useRef(null),o=gt(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return qO(a)},[]),G.jsx(xb,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:he(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:he(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:he(e.onFocusOutside,a=>a.preventDefault())})}),n_=i.forwardRef((e,t)=>{const r=Nt(wr,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return G.jsx(xb,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=a.target;r.triggerRef.current?.contains(c)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),xb=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=Nt(wr,r),p=i.useRef(null),l=gt(t,p);return uO(),G.jsxs(G.Fragment,{children:[G.jsx(sb,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:G.jsx(ob,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":ld(s.open),...c,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),G.jsxs(G.Fragment,{children:[G.jsx(i_,{titleId:s.titleId}),G.jsx(u_,{contentRef:p,descriptionId:s.descriptionId})]})]})}),ud="DialogTitle",o_=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Nt(ud,r);return G.jsx(Ne.h2,{id:o.titleId,...n,ref:t})});o_.displayName=ud;var Eb="DialogDescription",a_=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Nt(Eb,r);return G.jsx(Ne.p,{id:o.descriptionId,...n,ref:t})});a_.displayName=Eb;var kb="DialogClose",s_=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Nt(kb,r);return G.jsx(Ne.button,{type:"button",...n,ref:t,onClick:he(e.onClick,()=>o.onOpenChange(!1))})});s_.displayName=kb;function ld(e){return e?"open":"closed"}var Sb="DialogTitleWarning",[qK,jb]=MT(Sb,{contentName:wr,titleName:ud,docsSlug:"dialog"}),i_=({titleId:e})=>{const t=jb(Sb),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
237
+
238
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
239
+
240
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},c_="DialogDescriptionWarning",u_=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${jb(c_).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Oc={exports:{}},Zn={};/**
241
+ * @license React
242
+ * react-jsx-runtime.production.js
243
+ *
244
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
245
+ *
246
+ * This source code is licensed under the MIT license found in the
247
+ * LICENSE file in the root directory of this source tree.
248
+ */var nm;function l_(){if(nm)return Zn;nm=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var c=null;if(a!==void 0&&(c=""+a),o.key!==void 0&&(c=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:c,ref:o!==void 0?o:null,props:a}}return Zn.Fragment=t,Zn.jsx=r,Zn.jsxs=r,Zn}var pa={};/**
249
+ * @license React
250
+ * react-jsx-runtime.development.js
251
+ *
252
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
253
+ *
254
+ * This source code is licensed under the MIT license found in the
255
+ * LICENSE file in the root directory of this source tree.
256
+ */var om;function d_(){return om||(om=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===L?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case d:return"Fragment";case b:return"Profiler";case g:return"StrictMode";case j:return"Suspense";case T:return"SuspenseList";case M:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case x:return"Portal";case w:return(f.displayName||"Context")+".Provider";case y:return(f._context.displayName||"Context")+".Consumer";case E:var k=f.render;return f=f.displayName,f||(f=k.displayName||k.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case S:return k=f.displayName||null,k!==null?k:e(f.type)||"Memo";case R:k=f._payload,f=f._init;try{return e(f(k))}catch{}}return null}function t(f){return""+f}function r(f){try{t(f);var k=!1}catch{k=!0}if(k){k=console;var N=k.error,O=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return N.call(k,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",O),t(f)}}function n(f){if(f===d)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===R)return"<...>";try{var k=e(f);return k?"<"+k+">":"<...>"}catch{return"<...>"}}function o(){var f=I.A;return f===null?null:f.getOwner()}function a(){return Error("react-stack-top-frame")}function c(f){if(B.call(f,"key")){var k=Object.getOwnPropertyDescriptor(f,"key").get;if(k&&k.isReactWarning)return!1}return f.key!==void 0}function s(f,k){function N(){D||(D=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",k))}N.isReactWarning=!0,Object.defineProperty(f,"key",{get:N,configurable:!0})}function p(){var f=e(this.type);return Y[f]||(Y[f]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),f=this.props.ref,f!==void 0?f:null}function l(f,k,N,O,W,A,ae,X){return N=A.ref,f={$$typeof:h,type:f,key:k,props:A,_owner:W},(N!==void 0?N:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:p}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ae}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function u(f,k,N,O,W,A,ae,X){var _=k.children;if(_!==void 0)if(O)if(K(_)){for(O=0;O<_.length;O++)m(_[O]);Object.freeze&&Object.freeze(_)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else m(_);if(B.call(k,"key")){_=e(f);var $=Object.keys(k).filter(function(fe){return fe!=="key"});O=0<$.length?"{key: someKey, "+$.join(": ..., ")+": ...}":"{key: someKey}",V[_+O]||($=0<$.length?"{"+$.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
257
+ let props = %s;
258
+ <%s {...props} />
259
+ React keys must be passed directly to JSX without using spread:
260
+ let props = %s;
261
+ <%s key={someKey} {...props} />`,O,_,$,_),V[_+O]=!0)}if(_=null,N!==void 0&&(r(N),_=""+N),c(k)&&(r(k.key),_=""+k.key),"key"in k){N={};for(var se in k)se!=="key"&&(N[se]=k[se])}else N=k;return _&&s(N,typeof f=="function"?f.displayName||f.name||"Unknown":f),l(f,_,A,W,o(),N,ae,X)}function m(f){typeof f=="object"&&f!==null&&f.$$typeof===h&&f._store&&(f._store.validated=1)}var v=P,h=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),w=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),M=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,K=Array.isArray,z=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(f){return f()}};var D,Y={},H=v.react_stack_bottom_frame.bind(v,a)(),U=z(n(a)),V={};pa.Fragment=d,pa.jsx=function(f,k,N,O,W){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,k,N,!1,O,W,A?Error("react-stack-top-frame"):H,A?z(n(f)):U)},pa.jsxs=function(f,k,N,O,W){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,k,N,!0,O,W,A?Error("react-stack-top-frame"):H,A?z(n(f)):U)}})()),pa}var am;function f_(){return am||(am=1,process.env.NODE_ENV==="production"?Oc.exports=l_():Oc.exports=d_()),Oc.exports}var Z=f_();P.createContext({locale:void 0});var m_=(e,t,r,n,o,a,c,s)=>{let p=document.documentElement,l=["light","dark"];function u(h){(Array.isArray(e)?e:[e]).forEach(x=>{let d=x==="class",g=d&&a?o.map(b=>a[b]||b):o;d?(p.classList.remove(...g),p.classList.add(a&&a[h]?a[h]:h)):p.setAttribute(x,h)}),m(h)}function m(h){s&&l.includes(h)&&(p.style.colorScheme=h)}function v(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)u(n);else try{let h=localStorage.getItem(t)||r,x=c&&h==="system"?v():h;u(x)}catch{}};i.createContext(void 0);i.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:o,defaultTheme:a,value:c,themes:s,nonce:p,scriptProps:l})=>{let u=JSON.stringify([r,t,a,e,s,c,n,o]).slice(1,-1);return i.createElement("script",{...l,suppressHydrationWarning:!0,nonce:typeof window>"u"?p:"",dangerouslySetInnerHTML:{__html:`(${m_.toString()})(${u})`}})});me.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});me.cva("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function be(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function sm(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function p_(...e){return t=>{let r=!1;const n=e.map(o=>{const a=sm(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():sm(e[o],null)}}}}function ht(...e){return i.useCallback(p_(...e),e)}function v_(e,t){const r=i.createContext(t),n=a=>{const{children:c,...s}=a,p=i.useMemo(()=>s,Object.values(s));return Z.jsx(r.Provider,{value:p,children:c})};n.displayName=e+"Provider";function o(a){const c=i.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function gi(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),p=r.length;r=[...r,c];const l=m=>{const{scope:v,children:h,...x}=m,d=v?.[e]?.[p]||s,g=i.useMemo(()=>x,Object.values(x));return Z.jsx(d.Provider,{value:g,children:h})};l.displayName=a+"Provider";function u(m,v){const h=v?.[e]?.[p]||s,x=i.useContext(h);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${m}\` must be used within \`${a}\``)}return[l,u]}const o=()=>{const a=r.map(c=>i.createContext(c));return function(c){const s=c?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:s}}),[c,s])}};return o.scopeName=e,[n,g_(o,...t)]}function g_(...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(o){const a=n.reduce((c,{useScope:s,scopeName:p})=>{const l=s(o)[`__scope${p}`];return{...c,...l}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var ho=globalThis?.document?i.useLayoutEffect:()=>{},h_=i[" useId ".trim().toString()]||(()=>{}),b_=0;function Cb(e){const[t,r]=i.useState(h_());return ho(()=>{r(n=>n??String(b_++))},[e]),t?`radix-${t}`:""}var y_=i[" useInsertionEffect ".trim().toString()]||ho;function Rb({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,c]=w_({defaultProp:t,onChange:r}),s=e!==void 0,p=s?e:o;{const u=i.useRef(e!==void 0);i.useEffect(()=>{const m=u.current;m!==s&&console.warn(`${n} is changing from ${m?"controlled":"uncontrolled"} to ${s?"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.`),u.current=s},[s,n])}const l=i.useCallback(u=>{if(s){const m=x_(u)?u(e):u;m!==e&&c.current?.(m)}else a(u)},[s,e,a,c]);return[p,l]}function w_({defaultProp:e,onChange:t}){const[r,n]=i.useState(e),o=i.useRef(r),a=i.useRef(t);return y_(()=>{a.current=t},[t]),i.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}function x_(e){return typeof e=="function"}var E_=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Te=E_.reduce((e,t)=>{const r=oe.createSlot(`Primitive.${t}`),n=i.forwardRef((o,a)=>{const{asChild:c,...s}=o,p=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),Z.jsx(p,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function k_(e,t){e&&We.flushSync(()=>e.dispatchEvent(t))}function Pn(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function S_(e,t=globalThis?.document){const r=Pn(e);i.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 j_="DismissableLayer",dl="dismissableLayer.update",C_="dismissableLayer.pointerDownOutside",R_="dismissableLayer.focusOutside",im,Nb=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Tb=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...p}=e,l=i.useContext(Nb),[u,m]=i.useState(null),v=u?.ownerDocument??globalThis?.document,[,h]=i.useState({}),x=ht(t,S=>m(S)),d=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),b=d.indexOf(g),y=u?d.indexOf(u):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,E=y>=b,j=O_(S=>{const R=S.target,M=[...l.branches].some(L=>L.contains(R));!E||M||(o?.(S),c?.(S),S.defaultPrevented||s?.())},v),T=__(S=>{const R=S.target;[...l.branches].some(M=>M.contains(R))||(a?.(S),c?.(S),S.defaultPrevented||s?.())},v);return S_(S=>{y===l.layers.size-1&&(n?.(S),!S.defaultPrevented&&s&&(S.preventDefault(),s()))},v),i.useEffect(()=>{if(u)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(im=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),cm(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=im)}},[u,v,r,l]),i.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),cm())},[u,l]),i.useEffect(()=>{const S=()=>h({});return document.addEventListener(dl,S),()=>document.removeEventListener(dl,S)},[]),Z.jsx(Te.div,{...p,ref:x,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:be(e.onFocusCapture,T.onFocusCapture),onBlurCapture:be(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:be(e.onPointerDownCapture,j.onPointerDownCapture)})});Tb.displayName=j_;var N_="DismissableLayerBranch",T_=i.forwardRef((e,t)=>{const r=i.useContext(Nb),n=i.useRef(null),o=ht(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),Z.jsx(Te.div,{...e,ref:o})});T_.displayName=N_;function O_(e,t=globalThis?.document){const r=Pn(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let p=function(){Ob(C_,r,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=p,t.addEventListener("click",o.current,{once:!0})):p()}else t.removeEventListener("click",o.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function __(e,t=globalThis?.document){const r=Pn(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&Ob(R_,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function cm(){const e=new CustomEvent(dl);document.dispatchEvent(e)}function Ob(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?k_(o,a):o.dispatchEvent(a)}var _c="focusScope.autoFocusOnMount",Dc="focusScope.autoFocusOnUnmount",um={bubbles:!1,cancelable:!0},D_="FocusScope",_b=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,p]=i.useState(null),l=Pn(o),u=Pn(a),m=i.useRef(null),v=ht(t,d=>p(d)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let d=function(w){if(h.paused||!s)return;const E=w.target;s.contains(E)?m.current=E:Jt(m.current,{select:!0})},g=function(w){if(h.paused||!s)return;const E=w.relatedTarget;E!==null&&(s.contains(E)||Jt(m.current,{select:!0}))},b=function(w){if(document.activeElement===document.body)for(const E of w)E.removedNodes.length>0&&Jt(s)};document.addEventListener("focusin",d),document.addEventListener("focusout",g);const y=new MutationObserver(b);return s&&y.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",d),document.removeEventListener("focusout",g),y.disconnect()}}},[n,s,h.paused]),i.useEffect(()=>{if(s){dm.add(h);const d=document.activeElement;if(!s.contains(d)){const g=new CustomEvent(_c,um);s.addEventListener(_c,l),s.dispatchEvent(g),g.defaultPrevented||(P_(L_(Db(s)),{select:!0}),document.activeElement===d&&Jt(s))}return()=>{s.removeEventListener(_c,l),setTimeout(()=>{const g=new CustomEvent(Dc,um);s.addEventListener(Dc,u),s.dispatchEvent(g),g.defaultPrevented||Jt(d??document.body,{select:!0}),s.removeEventListener(Dc,u),dm.remove(h)},0)}}},[s,l,u,h]);const x=i.useCallback(d=>{if(!r&&!n||h.paused)return;const g=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,b=document.activeElement;if(g&&b){const y=d.currentTarget,[w,E]=M_(y);w&&E?!d.shiftKey&&b===E?(d.preventDefault(),r&&Jt(w,{select:!0})):d.shiftKey&&b===w&&(d.preventDefault(),r&&Jt(E,{select:!0})):b===y&&d.preventDefault()}},[r,n,h.paused]);return Z.jsx(Te.div,{tabIndex:-1,...c,ref:v,onKeyDown:x})});_b.displayName=D_;function P_(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Jt(n,{select:t}),document.activeElement!==r)return}function M_(e){const t=Db(e),r=lm(t,e),n=lm(t.reverse(),e);return[r,n]}function Db(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 lm(e,t){for(const r of e)if(!A_(r,{upTo:t}))return r}function A_(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 I_(e){return e instanceof HTMLInputElement&&"select"in e}function Jt(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&I_(e)&&t&&e.select()}}var dm=F_();function F_(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=fm(e,t),e.unshift(t)},remove(t){e=fm(e,t),e[0]?.resume()}}}function fm(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function L_(e){return e.filter(t=>t.tagName!=="A")}var W_="Portal",z_=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);ho(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?Le.createPortal(Z.jsx(Te.div,{...n,ref:t}),c):null});z_.displayName=W_;function $_(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var hi=e=>{const{present:t,children:r}=e,n=Y_(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=ht(n.ref,U_(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};hi.displayName="Presence";function Y_(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,p]=$_(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const l=va(n.current);a.current=s==="mounted"?l:"none"},[s]),ho(()=>{const l=n.current,u=o.current;if(u!==e){const m=a.current,v=va(l);e?p("MOUNT"):v==="none"||l?.display==="none"?p("UNMOUNT"):p(u&&m!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,p]),ho(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,m=h=>{const x=va(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&x&&(p("ANIMATION_END"),!o.current)){const d=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=d)})}},v=h=>{h.target===t&&(a.current=va(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else p("ANIMATION_END")},[t,p]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function va(e){return e?.animationName||"none"}function U_(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Pc=0;function B_(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??mm()),document.body.insertAdjacentElement("beforeend",e[1]??mm()),Pc++,()=>{Pc===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Pc--}},[])}function mm(){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 ot=function(){return ot=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},ot.apply(this,arguments)};function Pb(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 K_(e,t,r){for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var bs="right-scroll-bar-position",ys="width-before-scroll-bar",H_="with-scroll-bars-hidden",V_="--removed-body-scroll-bar-size";function Mc(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function X_(e,t){var r=P.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 q_=typeof window<"u"?i.useLayoutEffect:i.useEffect,pm=new WeakMap;function G_(e,t){var r=X_(null,function(n){return e.forEach(function(o){return Mc(o,n)})});return q_(function(){var n=pm.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||Mc(s,null)}),a.forEach(function(s){o.has(s)||Mc(s,c)})}pm.set(r,e)},[e]),r}function Z_(e){return e}function J_(e,t){t===void 0&&(t=Z_);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(a){var c=t(a,n);return r.push(c),function(){r=r.filter(function(s){return s!==c})}},assignSyncMedium:function(a){for(n=!0;r.length;){var c=r;r=[],c.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var c=[];if(r.length){var s=r;r=[],s.forEach(a),c=r}var p=function(){var u=c;c=[],u.forEach(a)},l=function(){return Promise.resolve().then(p)};l(),r={push:function(u){c.push(u),l()},filter:function(u){return c=c.filter(u),r}}}};return o}function Q_(e){e===void 0&&(e={});var t=J_(null);return t.options=ot({async:!0,ssr:!1},e),t}var Mb=function(e){var t=e.sideCar,r=Pb(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 i.createElement(n,ot({},r))};Mb.isSideCarExport=!0;function eD(e,t){return e.useMedium(t),Mb}var Ab=Q_(),Ac=function(){},bi=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:Ac,onWheelCapture:Ac,onTouchMoveCapture:Ac}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,p=e.className,l=e.removeScrollBar,u=e.enabled,m=e.shards,v=e.sideCar,h=e.noRelative,x=e.noIsolation,d=e.inert,g=e.allowPinchZoom,b=e.as,y=b===void 0?"div":b,w=e.gapMode,E=Pb(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),j=v,T=G_([r,t]),S=ot(ot({},E),o);return i.createElement(i.Fragment,null,u&&i.createElement(j,{sideCar:Ab,removeScrollBar:l,shards:m,noRelative:h,noIsolation:x,inert:d,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),ot(ot({},S),{ref:T})):i.createElement(y,ot({},S,{className:p,ref:T}),s))});bi.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};bi.classNames={fullWidth:ys,zeroRight:bs};var tD=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function rD(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=tD();return t&&e.setAttribute("nonce",t),e}function nD(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function oD(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var aD=function(){var e=0,t=null;return{add:function(r){e==0&&(t=rD())&&(nD(t,r),oD(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},sD=function(){var e=aD();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Ib=function(){var e=sD(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},iD={left:0,top:0,right:0,gap:0},Ic=function(e){return parseInt(e||"",10)||0},cD=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[Ic(r),Ic(n),Ic(o)]},uD=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return iD;var t=cD(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])}},lD=Ib(),En="data-scroll-locked",dD=function(e,t,r,n){var o=e.left,a=e.top,c=e.right,s=e.gap;return r===void 0&&(r="margin"),`
262
+ .`.concat(H_,` {
263
+ overflow: hidden `).concat(n,`;
264
+ padding-right: `).concat(s,"px ").concat(n,`;
265
+ }
266
+ body[`).concat(En,`] {
267
+ overflow: hidden `).concat(n,`;
268
+ overscroll-behavior: contain;
269
+ `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
270
+ padding-left: `.concat(o,`px;
271
+ padding-top: `).concat(a,`px;
272
+ padding-right: `).concat(c,`px;
273
+ margin-left:0;
274
+ margin-top:0;
275
+ margin-right: `).concat(s,"px ").concat(n,`;
276
+ `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
277
+ }
278
+
279
+ .`).concat(bs,` {
280
+ right: `).concat(s,"px ").concat(n,`;
281
+ }
282
+
283
+ .`).concat(ys,` {
284
+ margin-right: `).concat(s,"px ").concat(n,`;
285
+ }
286
+
287
+ .`).concat(bs," .").concat(bs,` {
288
+ right: 0 `).concat(n,`;
289
+ }
290
+
291
+ .`).concat(ys," .").concat(ys,` {
292
+ margin-right: 0 `).concat(n,`;
293
+ }
294
+
295
+ body[`).concat(En,`] {
296
+ `).concat(V_,": ").concat(s,`px;
297
+ }
298
+ `)},vm=function(){var e=parseInt(document.body.getAttribute(En)||"0",10);return isFinite(e)?e:0},fD=function(){i.useEffect(function(){return document.body.setAttribute(En,(vm()+1).toString()),function(){var e=vm()-1;e<=0?document.body.removeAttribute(En):document.body.setAttribute(En,e.toString())}},[])},mD=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;fD();var a=i.useMemo(function(){return uD(o)},[o]);return i.createElement(lD,{styles:dD(a,!t,o,r?"":"!important")})},fl=!1;if(typeof window<"u")try{var ga=Object.defineProperty({},"passive",{get:function(){return fl=!0,!0}});window.addEventListener("test",ga,ga),window.removeEventListener("test",ga,ga)}catch{fl=!1}var Hr=fl?{passive:!1}:!1,pD=function(e){return e.tagName==="TEXTAREA"},Fb=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!pD(e)&&r[t]==="visible")},vD=function(e){return Fb(e,"overflowY")},gD=function(e){return Fb(e,"overflowX")},gm=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=Lb(e,n);if(o){var a=Wb(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},hD=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},bD=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},Lb=function(e,t){return e==="v"?vD(t):gD(t)},Wb=function(e,t){return e==="v"?hD(t):bD(t)},yD=function(e,t){return e==="h"&&t==="rtl"?-1:1},wD=function(e,t,r,n,o){var a=yD(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,p=t.contains(s),l=!1,u=c>0,m=0,v=0;do{if(!s)break;var h=Wb(e,s),x=h[0],d=h[1],g=h[2],b=d-g-a*x;(x||b)&&Lb(e,s)&&(m+=b,v+=x);var y=s.parentNode;s=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!p&&s!==document.body||p&&(t.contains(s)||t===s));return(u&&Math.abs(m)<1||!u&&Math.abs(v)<1)&&(l=!0),l},ha=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},hm=function(e){return[e.deltaX,e.deltaY]},bm=function(e){return e&&"current"in e?e.current:e},xD=function(e,t){return e[0]===t[0]&&e[1]===t[1]},ED=function(e){return`
299
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
300
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
301
+ `)},kD=0,Vr=[];function SD(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(kD++)[0],a=i.useState(Ib)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var d=K_([e.lockRef.current],(e.shards||[]).map(bm)).filter(Boolean);return d.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),d.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(d,g){if("touches"in d&&d.touches.length===2||d.type==="wheel"&&d.ctrlKey)return!c.current.allowPinchZoom;var b=ha(d),y=r.current,w="deltaX"in d?d.deltaX:y[0]-b[0],E="deltaY"in d?d.deltaY:y[1]-b[1],j,T=d.target,S=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in d&&S==="h"&&T.type==="range")return!1;var R=gm(S,T);if(!R)return!0;if(R?j=S:(j=S==="v"?"h":"v",R=gm(S,T)),!R)return!1;if(!n.current&&"changedTouches"in d&&(w||E)&&(n.current=j),!j)return!0;var M=n.current||j;return wD(M,g,d,M==="h"?w:E)},[]),p=i.useCallback(function(d){var g=d;if(!(!Vr.length||Vr[Vr.length-1]!==a)){var b="deltaY"in g?hm(g):ha(g),y=t.current.filter(function(j){return j.name===g.type&&(j.target===g.target||g.target===j.shadowParent)&&xD(j.delta,b)})[0];if(y&&y.should){g.cancelable&&g.preventDefault();return}if(!y){var w=(c.current.shards||[]).map(bm).filter(Boolean).filter(function(j){return j.contains(g.target)}),E=w.length>0?s(g,w[0]):!c.current.noIsolation;E&&g.cancelable&&g.preventDefault()}}},[]),l=i.useCallback(function(d,g,b,y){var w={name:d,delta:g,target:b,should:y,shadowParent:jD(b)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),u=i.useCallback(function(d){r.current=ha(d),n.current=void 0},[]),m=i.useCallback(function(d){l(d.type,hm(d),d.target,s(d,e.lockRef.current))},[]),v=i.useCallback(function(d){l(d.type,ha(d),d.target,s(d,e.lockRef.current))},[]);i.useEffect(function(){return Vr.push(a),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:v}),document.addEventListener("wheel",p,Hr),document.addEventListener("touchmove",p,Hr),document.addEventListener("touchstart",u,Hr),function(){Vr=Vr.filter(function(d){return d!==a}),document.removeEventListener("wheel",p,Hr),document.removeEventListener("touchmove",p,Hr),document.removeEventListener("touchstart",u,Hr)}},[]);var h=e.removeScrollBar,x=e.inert;return i.createElement(i.Fragment,null,x?i.createElement(a,{styles:ED(o)}):null,h?i.createElement(mD,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function jD(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const CD=eD(Ab,SD);var zb=i.forwardRef(function(e,t){return i.createElement(bi,ot({},e,{ref:t,sideCar:CD}))});zb.classNames=bi.classNames;var RD=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Xr=new WeakMap,ba=new WeakMap,ya={},Fc=0,$b=function(e){return e&&(e.host||$b(e.parentNode))},ND=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=$b(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},TD=function(e,t,r,n){var o=ND(t,Array.isArray(e)?e:[e]);ya[r]||(ya[r]=new WeakMap);var a=ya[r],c=[],s=new Set,p=new Set(o),l=function(m){!m||s.has(m)||(s.add(m),l(m.parentNode))};o.forEach(l);var u=function(m){!m||p.has(m)||Array.prototype.forEach.call(m.children,function(v){if(s.has(v))u(v);else try{var h=v.getAttribute(n),x=h!==null&&h!=="false",d=(Xr.get(v)||0)+1,g=(a.get(v)||0)+1;Xr.set(v,d),a.set(v,g),c.push(v),d===1&&x&&ba.set(v,!0),g===1&&v.setAttribute(r,"true"),x||v.setAttribute(n,"true")}catch(b){console.error("aria-hidden: cannot operate on ",v,b)}})};return u(t),s.clear(),Fc++,function(){c.forEach(function(m){var v=Xr.get(m)-1,h=a.get(m)-1;Xr.set(m,v),a.set(m,h),v||(ba.has(m)||m.removeAttribute(n),ba.delete(m)),h||m.removeAttribute(r)}),Fc--,Fc||(Xr=new WeakMap,Xr=new WeakMap,ba=new WeakMap,ya={})}},OD=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=RD(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),TD(n,o,r,"aria-hidden")):function(){return null}},Yb="Dialog",[Ub]=gi(Yb),[GK,Tt]=Ub(Yb),Bb="DialogTrigger",_D=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Tt(Bb,r),a=ht(t,o.triggerRef);return Z.jsx(Te.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":fd(o.open),...n,ref:a,onClick:be(e.onClick,o.onOpenToggle)})});_D.displayName=Bb;var DD="DialogPortal",[ZK,Kb]=Ub(DD,{forceMount:void 0}),Hs="DialogOverlay",PD=i.forwardRef((e,t)=>{const r=Kb(Hs,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Tt(Hs,e.__scopeDialog);return a.modal?Z.jsx(hi,{present:n||a.open,children:Z.jsx(AD,{...o,ref:t})}):null});PD.displayName=Hs;var MD=oe.createSlot("DialogOverlay.RemoveScroll"),AD=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Tt(Hs,r);return Z.jsx(zb,{as:MD,allowPinchZoom:!0,shards:[o.contentRef],children:Z.jsx(Te.div,{"data-state":fd(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),xr="DialogContent",ID=i.forwardRef((e,t)=>{const r=Kb(xr,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Tt(xr,e.__scopeDialog);return Z.jsx(hi,{present:n||a.open,children:a.modal?Z.jsx(FD,{...o,ref:t}):Z.jsx(LD,{...o,ref:t})})});ID.displayName=xr;var FD=i.forwardRef((e,t)=>{const r=Tt(xr,e.__scopeDialog),n=i.useRef(null),o=ht(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return OD(a)},[]),Z.jsx(Hb,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:be(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:be(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:be(e.onFocusOutside,a=>a.preventDefault())})}),LD=i.forwardRef((e,t)=>{const r=Tt(xr,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return Z.jsx(Hb,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=a.target;r.triggerRef.current?.contains(c)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Hb=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=Tt(xr,r),p=i.useRef(null),l=ht(t,p);return B_(),Z.jsxs(Z.Fragment,{children:[Z.jsx(_b,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:Z.jsx(Tb,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":fd(s.open),...c,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),Z.jsxs(Z.Fragment,{children:[Z.jsx(YD,{titleId:s.titleId}),Z.jsx(BD,{contentRef:p,descriptionId:s.descriptionId})]})]})}),dd="DialogTitle",WD=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Tt(dd,r);return Z.jsx(Te.h2,{id:o.titleId,...n,ref:t})});WD.displayName=dd;var Vb="DialogDescription",zD=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Tt(Vb,r);return Z.jsx(Te.p,{id:o.descriptionId,...n,ref:t})});zD.displayName=Vb;var Xb="DialogClose",$D=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Tt(Xb,r);return Z.jsx(Te.button,{type:"button",...n,ref:t,onClick:be(e.onClick,()=>o.onOpenChange(!1))})});$D.displayName=Xb;function fd(e){return e?"open":"closed"}var qb="DialogTitleWarning",[JK,Gb]=v_(qb,{contentName:xr,titleName:dd,docsSlug:"dialog"}),YD=({titleId:e})=>{const t=Gb(qb),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
302
+
303
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
304
+
305
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},UD="DialogDescriptionWarning",BD=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Gb(UD).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Lc={exports:{}},Jn={};/**
306
+ * @license React
307
+ * react-jsx-runtime.production.js
308
+ *
309
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
310
+ *
311
+ * This source code is licensed under the MIT license found in the
312
+ * LICENSE file in the root directory of this source tree.
313
+ */var ym;function KD(){if(ym)return Jn;ym=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var c=null;if(a!==void 0&&(c=""+a),o.key!==void 0&&(c=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:c,ref:o!==void 0?o:null,props:a}}return Jn.Fragment=t,Jn.jsx=r,Jn.jsxs=r,Jn}var wa={};/**
314
+ * @license React
315
+ * react-jsx-runtime.development.js
316
+ *
317
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
318
+ *
319
+ * This source code is licensed under the MIT license found in the
320
+ * LICENSE file in the root directory of this source tree.
321
+ */var wm;function HD(){return wm||(wm=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===L?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case d:return"Fragment";case b:return"Profiler";case g:return"StrictMode";case j:return"Suspense";case T:return"SuspenseList";case M:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case x:return"Portal";case w:return(f.displayName||"Context")+".Provider";case y:return(f._context.displayName||"Context")+".Consumer";case E:var k=f.render;return f=f.displayName,f||(f=k.displayName||k.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case S:return k=f.displayName||null,k!==null?k:e(f.type)||"Memo";case R:k=f._payload,f=f._init;try{return e(f(k))}catch{}}return null}function t(f){return""+f}function r(f){try{t(f);var k=!1}catch{k=!0}if(k){k=console;var N=k.error,O=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return N.call(k,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",O),t(f)}}function n(f){if(f===d)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===R)return"<...>";try{var k=e(f);return k?"<"+k+">":"<...>"}catch{return"<...>"}}function o(){var f=I.A;return f===null?null:f.getOwner()}function a(){return Error("react-stack-top-frame")}function c(f){if(B.call(f,"key")){var k=Object.getOwnPropertyDescriptor(f,"key").get;if(k&&k.isReactWarning)return!1}return f.key!==void 0}function s(f,k){function N(){D||(D=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",k))}N.isReactWarning=!0,Object.defineProperty(f,"key",{get:N,configurable:!0})}function p(){var f=e(this.type);return Y[f]||(Y[f]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),f=this.props.ref,f!==void 0?f:null}function l(f,k,N,O,W,A,ae,X){return N=A.ref,f={$$typeof:h,type:f,key:k,props:A,_owner:W},(N!==void 0?N:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:p}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ae}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function u(f,k,N,O,W,A,ae,X){var _=k.children;if(_!==void 0)if(O)if(K(_)){for(O=0;O<_.length;O++)m(_[O]);Object.freeze&&Object.freeze(_)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else m(_);if(B.call(k,"key")){_=e(f);var $=Object.keys(k).filter(function(fe){return fe!=="key"});O=0<$.length?"{key: someKey, "+$.join(": ..., ")+": ...}":"{key: someKey}",V[_+O]||($=0<$.length?"{"+$.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
322
+ let props = %s;
323
+ <%s {...props} />
324
+ React keys must be passed directly to JSX without using spread:
325
+ let props = %s;
326
+ <%s key={someKey} {...props} />`,O,_,$,_),V[_+O]=!0)}if(_=null,N!==void 0&&(r(N),_=""+N),c(k)&&(r(k.key),_=""+k.key),"key"in k){N={};for(var se in k)se!=="key"&&(N[se]=k[se])}else N=k;return _&&s(N,typeof f=="function"?f.displayName||f.name||"Unknown":f),l(f,_,A,W,o(),N,ae,X)}function m(f){typeof f=="object"&&f!==null&&f.$$typeof===h&&f._store&&(f._store.validated=1)}var v=P,h=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),w=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),M=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,K=Array.isArray,z=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(f){return f()}};var D,Y={},H=v.react_stack_bottom_frame.bind(v,a)(),U=z(n(a)),V={};wa.Fragment=d,wa.jsx=function(f,k,N,O,W){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,k,N,!1,O,W,A?Error("react-stack-top-frame"):H,A?z(n(f)):U)},wa.jsxs=function(f,k,N,O,W){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,k,N,!0,O,W,A?Error("react-stack-top-frame"):H,A?z(n(f)):U)}})()),wa}var xm;function VD(){return xm||(xm=1,process.env.NODE_ENV==="production"?Lc.exports=KD():Lc.exports=HD()),Lc.exports}var J=VD();P.createContext({locale:void 0});var XD=(e,t,r,n,o,a,c,s)=>{let p=document.documentElement,l=["light","dark"];function u(h){(Array.isArray(e)?e:[e]).forEach(x=>{let d=x==="class",g=d&&a?o.map(b=>a[b]||b):o;d?(p.classList.remove(...g),p.classList.add(a&&a[h]?a[h]:h)):p.setAttribute(x,h)}),m(h)}function m(h){s&&l.includes(h)&&(p.style.colorScheme=h)}function v(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)u(n);else try{let h=localStorage.getItem(t)||r,x=c&&h==="system"?v():h;u(x)}catch{}};i.createContext(void 0);i.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:o,defaultTheme:a,value:c,themes:s,nonce:p,scriptProps:l})=>{let u=JSON.stringify([r,t,a,e,s,c,n,o]).slice(1,-1);return i.createElement("script",{...l,suppressHydrationWarning:!0,nonce:typeof window>"u"?p:"",dangerouslySetInnerHTML:{__html:`(${XD.toString()})(${u})`}})});me.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});me.cva("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function ye(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function Em(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function qD(...e){return t=>{let r=!1;const n=e.map(o=>{const a=Em(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():Em(e[o],null)}}}}function bt(...e){return i.useCallback(qD(...e),e)}function GD(e,t){const r=i.createContext(t),n=a=>{const{children:c,...s}=a,p=i.useMemo(()=>s,Object.values(s));return J.jsx(r.Provider,{value:p,children:c})};n.displayName=e+"Provider";function o(a){const c=i.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function yi(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),p=r.length;r=[...r,c];const l=m=>{const{scope:v,children:h,...x}=m,d=v?.[e]?.[p]||s,g=i.useMemo(()=>x,Object.values(x));return J.jsx(d.Provider,{value:g,children:h})};l.displayName=a+"Provider";function u(m,v){const h=v?.[e]?.[p]||s,x=i.useContext(h);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${m}\` must be used within \`${a}\``)}return[l,u]}const o=()=>{const a=r.map(c=>i.createContext(c));return function(c){const s=c?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:s}}),[c,s])}};return o.scopeName=e,[n,ZD(o,...t)]}function ZD(...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(o){const a=n.reduce((c,{useScope:s,scopeName:p})=>{const l=s(o)[`__scope${p}`];return{...c,...l}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var bo=globalThis?.document?i.useLayoutEffect:()=>{},JD=i[" useId ".trim().toString()]||(()=>{}),QD=0;function Zb(e){const[t,r]=i.useState(JD());return bo(()=>{r(n=>n??String(QD++))},[e]),t?`radix-${t}`:""}var eP=i[" useInsertionEffect ".trim().toString()]||bo;function Jb({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,c]=tP({defaultProp:t,onChange:r}),s=e!==void 0,p=s?e:o;{const u=i.useRef(e!==void 0);i.useEffect(()=>{const m=u.current;m!==s&&console.warn(`${n} is changing from ${m?"controlled":"uncontrolled"} to ${s?"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.`),u.current=s},[s,n])}const l=i.useCallback(u=>{if(s){const m=rP(u)?u(e):u;m!==e&&c.current?.(m)}else a(u)},[s,e,a,c]);return[p,l]}function tP({defaultProp:e,onChange:t}){const[r,n]=i.useState(e),o=i.useRef(r),a=i.useRef(t);return eP(()=>{a.current=t},[t]),i.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}function rP(e){return typeof e=="function"}var nP=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Oe=nP.reduce((e,t)=>{const r=oe.createSlot(`Primitive.${t}`),n=i.forwardRef((o,a)=>{const{asChild:c,...s}=o,p=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),J.jsx(p,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function oP(e,t){e&&We.flushSync(()=>e.dispatchEvent(t))}function Mn(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function aP(e,t=globalThis?.document){const r=Mn(e);i.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 sP="DismissableLayer",ml="dismissableLayer.update",iP="dismissableLayer.pointerDownOutside",cP="dismissableLayer.focusOutside",km,Qb=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ey=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...p}=e,l=i.useContext(Qb),[u,m]=i.useState(null),v=u?.ownerDocument??globalThis?.document,[,h]=i.useState({}),x=bt(t,S=>m(S)),d=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),b=d.indexOf(g),y=u?d.indexOf(u):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,E=y>=b,j=dP(S=>{const R=S.target,M=[...l.branches].some(L=>L.contains(R));!E||M||(o?.(S),c?.(S),S.defaultPrevented||s?.())},v),T=fP(S=>{const R=S.target;[...l.branches].some(M=>M.contains(R))||(a?.(S),c?.(S),S.defaultPrevented||s?.())},v);return aP(S=>{y===l.layers.size-1&&(n?.(S),!S.defaultPrevented&&s&&(S.preventDefault(),s()))},v),i.useEffect(()=>{if(u)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(km=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),Sm(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=km)}},[u,v,r,l]),i.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),Sm())},[u,l]),i.useEffect(()=>{const S=()=>h({});return document.addEventListener(ml,S),()=>document.removeEventListener(ml,S)},[]),J.jsx(Oe.div,{...p,ref:x,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:ye(e.onFocusCapture,T.onFocusCapture),onBlurCapture:ye(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:ye(e.onPointerDownCapture,j.onPointerDownCapture)})});ey.displayName=sP;var uP="DismissableLayerBranch",lP=i.forwardRef((e,t)=>{const r=i.useContext(Qb),n=i.useRef(null),o=bt(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),J.jsx(Oe.div,{...e,ref:o})});lP.displayName=uP;function dP(e,t=globalThis?.document){const r=Mn(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let p=function(){ty(iP,r,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=p,t.addEventListener("click",o.current,{once:!0})):p()}else t.removeEventListener("click",o.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function fP(e,t=globalThis?.document){const r=Mn(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&ty(cP,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Sm(){const e=new CustomEvent(ml);document.dispatchEvent(e)}function ty(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?oP(o,a):o.dispatchEvent(a)}var Wc="focusScope.autoFocusOnMount",zc="focusScope.autoFocusOnUnmount",jm={bubbles:!1,cancelable:!0},mP="FocusScope",ry=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,p]=i.useState(null),l=Mn(o),u=Mn(a),m=i.useRef(null),v=bt(t,d=>p(d)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let d=function(w){if(h.paused||!s)return;const E=w.target;s.contains(E)?m.current=E:Qt(m.current,{select:!0})},g=function(w){if(h.paused||!s)return;const E=w.relatedTarget;E!==null&&(s.contains(E)||Qt(m.current,{select:!0}))},b=function(w){if(document.activeElement===document.body)for(const E of w)E.removedNodes.length>0&&Qt(s)};document.addEventListener("focusin",d),document.addEventListener("focusout",g);const y=new MutationObserver(b);return s&&y.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",d),document.removeEventListener("focusout",g),y.disconnect()}}},[n,s,h.paused]),i.useEffect(()=>{if(s){Rm.add(h);const d=document.activeElement;if(!s.contains(d)){const g=new CustomEvent(Wc,jm);s.addEventListener(Wc,l),s.dispatchEvent(g),g.defaultPrevented||(pP(yP(ny(s)),{select:!0}),document.activeElement===d&&Qt(s))}return()=>{s.removeEventListener(Wc,l),setTimeout(()=>{const g=new CustomEvent(zc,jm);s.addEventListener(zc,u),s.dispatchEvent(g),g.defaultPrevented||Qt(d??document.body,{select:!0}),s.removeEventListener(zc,u),Rm.remove(h)},0)}}},[s,l,u,h]);const x=i.useCallback(d=>{if(!r&&!n||h.paused)return;const g=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,b=document.activeElement;if(g&&b){const y=d.currentTarget,[w,E]=vP(y);w&&E?!d.shiftKey&&b===E?(d.preventDefault(),r&&Qt(w,{select:!0})):d.shiftKey&&b===w&&(d.preventDefault(),r&&Qt(E,{select:!0})):b===y&&d.preventDefault()}},[r,n,h.paused]);return J.jsx(Oe.div,{tabIndex:-1,...c,ref:v,onKeyDown:x})});ry.displayName=mP;function pP(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Qt(n,{select:t}),document.activeElement!==r)return}function vP(e){const t=ny(e),r=Cm(t,e),n=Cm(t.reverse(),e);return[r,n]}function ny(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 Cm(e,t){for(const r of e)if(!gP(r,{upTo:t}))return r}function gP(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 hP(e){return e instanceof HTMLInputElement&&"select"in e}function Qt(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&hP(e)&&t&&e.select()}}var Rm=bP();function bP(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=Nm(e,t),e.unshift(t)},remove(t){e=Nm(e,t),e[0]?.resume()}}}function Nm(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function yP(e){return e.filter(t=>t.tagName!=="A")}var wP="Portal",xP=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);bo(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?Le.createPortal(J.jsx(Oe.div,{...n,ref:t}),c):null});xP.displayName=wP;function EP(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var wi=e=>{const{present:t,children:r}=e,n=kP(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=bt(n.ref,SP(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};wi.displayName="Presence";function kP(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,p]=EP(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const l=xa(n.current);a.current=s==="mounted"?l:"none"},[s]),bo(()=>{const l=n.current,u=o.current;if(u!==e){const m=a.current,v=xa(l);e?p("MOUNT"):v==="none"||l?.display==="none"?p("UNMOUNT"):p(u&&m!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,p]),bo(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,m=h=>{const x=xa(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&x&&(p("ANIMATION_END"),!o.current)){const d=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=d)})}},v=h=>{h.target===t&&(a.current=xa(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else p("ANIMATION_END")},[t,p]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function xa(e){return e?.animationName||"none"}function SP(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var $c=0;function jP(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Tm()),document.body.insertAdjacentElement("beforeend",e[1]??Tm()),$c++,()=>{$c===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),$c--}},[])}function Tm(){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 at=function(){return at=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},at.apply(this,arguments)};function oy(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 CP(e,t,r){for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var ws="right-scroll-bar-position",xs="width-before-scroll-bar",RP="with-scroll-bars-hidden",NP="--removed-body-scroll-bar-size";function Yc(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function TP(e,t){var r=P.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 OP=typeof window<"u"?i.useLayoutEffect:i.useEffect,Om=new WeakMap;function _P(e,t){var r=TP(null,function(n){return e.forEach(function(o){return Yc(o,n)})});return OP(function(){var n=Om.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||Yc(s,null)}),a.forEach(function(s){o.has(s)||Yc(s,c)})}Om.set(r,e)},[e]),r}function DP(e){return e}function PP(e,t){t===void 0&&(t=DP);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(a){var c=t(a,n);return r.push(c),function(){r=r.filter(function(s){return s!==c})}},assignSyncMedium:function(a){for(n=!0;r.length;){var c=r;r=[],c.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var c=[];if(r.length){var s=r;r=[],s.forEach(a),c=r}var p=function(){var u=c;c=[],u.forEach(a)},l=function(){return Promise.resolve().then(p)};l(),r={push:function(u){c.push(u),l()},filter:function(u){return c=c.filter(u),r}}}};return o}function MP(e){e===void 0&&(e={});var t=PP(null);return t.options=at({async:!0,ssr:!1},e),t}var ay=function(e){var t=e.sideCar,r=oy(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 i.createElement(n,at({},r))};ay.isSideCarExport=!0;function AP(e,t){return e.useMedium(t),ay}var sy=MP(),Uc=function(){},xi=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:Uc,onWheelCapture:Uc,onTouchMoveCapture:Uc}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,p=e.className,l=e.removeScrollBar,u=e.enabled,m=e.shards,v=e.sideCar,h=e.noRelative,x=e.noIsolation,d=e.inert,g=e.allowPinchZoom,b=e.as,y=b===void 0?"div":b,w=e.gapMode,E=oy(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),j=v,T=_P([r,t]),S=at(at({},E),o);return i.createElement(i.Fragment,null,u&&i.createElement(j,{sideCar:sy,removeScrollBar:l,shards:m,noRelative:h,noIsolation:x,inert:d,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),at(at({},S),{ref:T})):i.createElement(y,at({},S,{className:p,ref:T}),s))});xi.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};xi.classNames={fullWidth:xs,zeroRight:ws};var IP=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function FP(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=IP();return t&&e.setAttribute("nonce",t),e}function LP(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function WP(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var zP=function(){var e=0,t=null;return{add:function(r){e==0&&(t=FP())&&(LP(t,r),WP(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},$P=function(){var e=zP();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},iy=function(){var e=$P(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},YP={left:0,top:0,right:0,gap:0},Bc=function(e){return parseInt(e||"",10)||0},UP=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[Bc(r),Bc(n),Bc(o)]},BP=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return YP;var t=UP(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])}},KP=iy(),kn="data-scroll-locked",HP=function(e,t,r,n){var o=e.left,a=e.top,c=e.right,s=e.gap;return r===void 0&&(r="margin"),`
327
+ .`.concat(RP,` {
328
+ overflow: hidden `).concat(n,`;
329
+ padding-right: `).concat(s,"px ").concat(n,`;
330
+ }
331
+ body[`).concat(kn,`] {
332
+ overflow: hidden `).concat(n,`;
333
+ overscroll-behavior: contain;
334
+ `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
335
+ padding-left: `.concat(o,`px;
336
+ padding-top: `).concat(a,`px;
337
+ padding-right: `).concat(c,`px;
338
+ margin-left:0;
339
+ margin-top:0;
340
+ margin-right: `).concat(s,"px ").concat(n,`;
341
+ `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
342
+ }
343
+
344
+ .`).concat(ws,` {
345
+ right: `).concat(s,"px ").concat(n,`;
346
+ }
347
+
348
+ .`).concat(xs,` {
349
+ margin-right: `).concat(s,"px ").concat(n,`;
350
+ }
351
+
352
+ .`).concat(ws," .").concat(ws,` {
353
+ right: 0 `).concat(n,`;
354
+ }
355
+
356
+ .`).concat(xs," .").concat(xs,` {
357
+ margin-right: 0 `).concat(n,`;
358
+ }
359
+
360
+ body[`).concat(kn,`] {
361
+ `).concat(NP,": ").concat(s,`px;
362
+ }
363
+ `)},_m=function(){var e=parseInt(document.body.getAttribute(kn)||"0",10);return isFinite(e)?e:0},VP=function(){i.useEffect(function(){return document.body.setAttribute(kn,(_m()+1).toString()),function(){var e=_m()-1;e<=0?document.body.removeAttribute(kn):document.body.setAttribute(kn,e.toString())}},[])},XP=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;VP();var a=i.useMemo(function(){return BP(o)},[o]);return i.createElement(KP,{styles:HP(a,!t,o,r?"":"!important")})},pl=!1;if(typeof window<"u")try{var Ea=Object.defineProperty({},"passive",{get:function(){return pl=!0,!0}});window.addEventListener("test",Ea,Ea),window.removeEventListener("test",Ea,Ea)}catch{pl=!1}var qr=pl?{passive:!1}:!1,qP=function(e){return e.tagName==="TEXTAREA"},cy=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!qP(e)&&r[t]==="visible")},GP=function(e){return cy(e,"overflowY")},ZP=function(e){return cy(e,"overflowX")},Dm=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=uy(e,n);if(o){var a=ly(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},JP=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},QP=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},uy=function(e,t){return e==="v"?GP(t):ZP(t)},ly=function(e,t){return e==="v"?JP(t):QP(t)},eM=function(e,t){return e==="h"&&t==="rtl"?-1:1},tM=function(e,t,r,n,o){var a=eM(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,p=t.contains(s),l=!1,u=c>0,m=0,v=0;do{if(!s)break;var h=ly(e,s),x=h[0],d=h[1],g=h[2],b=d-g-a*x;(x||b)&&uy(e,s)&&(m+=b,v+=x);var y=s.parentNode;s=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!p&&s!==document.body||p&&(t.contains(s)||t===s));return(u&&Math.abs(m)<1||!u&&Math.abs(v)<1)&&(l=!0),l},ka=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Pm=function(e){return[e.deltaX,e.deltaY]},Mm=function(e){return e&&"current"in e?e.current:e},rM=function(e,t){return e[0]===t[0]&&e[1]===t[1]},nM=function(e){return`
364
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
365
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
366
+ `)},oM=0,Gr=[];function aM(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(oM++)[0],a=i.useState(iy)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var d=CP([e.lockRef.current],(e.shards||[]).map(Mm)).filter(Boolean);return d.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),d.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(d,g){if("touches"in d&&d.touches.length===2||d.type==="wheel"&&d.ctrlKey)return!c.current.allowPinchZoom;var b=ka(d),y=r.current,w="deltaX"in d?d.deltaX:y[0]-b[0],E="deltaY"in d?d.deltaY:y[1]-b[1],j,T=d.target,S=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in d&&S==="h"&&T.type==="range")return!1;var R=Dm(S,T);if(!R)return!0;if(R?j=S:(j=S==="v"?"h":"v",R=Dm(S,T)),!R)return!1;if(!n.current&&"changedTouches"in d&&(w||E)&&(n.current=j),!j)return!0;var M=n.current||j;return tM(M,g,d,M==="h"?w:E)},[]),p=i.useCallback(function(d){var g=d;if(!(!Gr.length||Gr[Gr.length-1]!==a)){var b="deltaY"in g?Pm(g):ka(g),y=t.current.filter(function(j){return j.name===g.type&&(j.target===g.target||g.target===j.shadowParent)&&rM(j.delta,b)})[0];if(y&&y.should){g.cancelable&&g.preventDefault();return}if(!y){var w=(c.current.shards||[]).map(Mm).filter(Boolean).filter(function(j){return j.contains(g.target)}),E=w.length>0?s(g,w[0]):!c.current.noIsolation;E&&g.cancelable&&g.preventDefault()}}},[]),l=i.useCallback(function(d,g,b,y){var w={name:d,delta:g,target:b,should:y,shadowParent:sM(b)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),u=i.useCallback(function(d){r.current=ka(d),n.current=void 0},[]),m=i.useCallback(function(d){l(d.type,Pm(d),d.target,s(d,e.lockRef.current))},[]),v=i.useCallback(function(d){l(d.type,ka(d),d.target,s(d,e.lockRef.current))},[]);i.useEffect(function(){return Gr.push(a),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:v}),document.addEventListener("wheel",p,qr),document.addEventListener("touchmove",p,qr),document.addEventListener("touchstart",u,qr),function(){Gr=Gr.filter(function(d){return d!==a}),document.removeEventListener("wheel",p,qr),document.removeEventListener("touchmove",p,qr),document.removeEventListener("touchstart",u,qr)}},[]);var h=e.removeScrollBar,x=e.inert;return i.createElement(i.Fragment,null,x?i.createElement(a,{styles:nM(o)}):null,h?i.createElement(XP,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function sM(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const iM=AP(sy,aM);var dy=i.forwardRef(function(e,t){return i.createElement(xi,at({},e,{ref:t,sideCar:iM}))});dy.classNames=xi.classNames;var cM=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Zr=new WeakMap,Sa=new WeakMap,ja={},Kc=0,fy=function(e){return e&&(e.host||fy(e.parentNode))},uM=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=fy(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},lM=function(e,t,r,n){var o=uM(t,Array.isArray(e)?e:[e]);ja[r]||(ja[r]=new WeakMap);var a=ja[r],c=[],s=new Set,p=new Set(o),l=function(m){!m||s.has(m)||(s.add(m),l(m.parentNode))};o.forEach(l);var u=function(m){!m||p.has(m)||Array.prototype.forEach.call(m.children,function(v){if(s.has(v))u(v);else try{var h=v.getAttribute(n),x=h!==null&&h!=="false",d=(Zr.get(v)||0)+1,g=(a.get(v)||0)+1;Zr.set(v,d),a.set(v,g),c.push(v),d===1&&x&&Sa.set(v,!0),g===1&&v.setAttribute(r,"true"),x||v.setAttribute(n,"true")}catch(b){console.error("aria-hidden: cannot operate on ",v,b)}})};return u(t),s.clear(),Kc++,function(){c.forEach(function(m){var v=Zr.get(m)-1,h=a.get(m)-1;Zr.set(m,v),a.set(m,h),v||(Sa.has(m)||m.removeAttribute(n),Sa.delete(m)),h||m.removeAttribute(r)}),Kc--,Kc||(Zr=new WeakMap,Zr=new WeakMap,Sa=new WeakMap,ja={})}},dM=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=cM(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),lM(n,o,r,"aria-hidden")):function(){return null}},my="Dialog",[py]=yi(my),[QK,Ot]=py(my),vy="DialogTrigger",fM=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ot(vy,r),a=bt(t,o.triggerRef);return J.jsx(Oe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":pd(o.open),...n,ref:a,onClick:ye(e.onClick,o.onOpenToggle)})});fM.displayName=vy;var mM="DialogPortal",[e8,gy]=py(mM,{forceMount:void 0}),Vs="DialogOverlay",pM=i.forwardRef((e,t)=>{const r=gy(Vs,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Ot(Vs,e.__scopeDialog);return a.modal?J.jsx(wi,{present:n||a.open,children:J.jsx(gM,{...o,ref:t})}):null});pM.displayName=Vs;var vM=oe.createSlot("DialogOverlay.RemoveScroll"),gM=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ot(Vs,r);return J.jsx(dy,{as:vM,allowPinchZoom:!0,shards:[o.contentRef],children:J.jsx(Oe.div,{"data-state":pd(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Er="DialogContent",hM=i.forwardRef((e,t)=>{const r=gy(Er,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Ot(Er,e.__scopeDialog);return J.jsx(wi,{present:n||a.open,children:a.modal?J.jsx(bM,{...o,ref:t}):J.jsx(yM,{...o,ref:t})})});hM.displayName=Er;var bM=i.forwardRef((e,t)=>{const r=Ot(Er,e.__scopeDialog),n=i.useRef(null),o=bt(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return dM(a)},[]),J.jsx(hy,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ye(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:ye(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:ye(e.onFocusOutside,a=>a.preventDefault())})}),yM=i.forwardRef((e,t)=>{const r=Ot(Er,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return J.jsx(hy,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=a.target;r.triggerRef.current?.contains(c)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),hy=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=Ot(Er,r),p=i.useRef(null),l=bt(t,p);return jP(),J.jsxs(J.Fragment,{children:[J.jsx(ry,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:J.jsx(ey,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":pd(s.open),...c,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),J.jsxs(J.Fragment,{children:[J.jsx(kM,{titleId:s.titleId}),J.jsx(jM,{contentRef:p,descriptionId:s.descriptionId})]})]})}),md="DialogTitle",wM=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ot(md,r);return J.jsx(Oe.h2,{id:o.titleId,...n,ref:t})});wM.displayName=md;var by="DialogDescription",xM=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ot(by,r);return J.jsx(Oe.p,{id:o.descriptionId,...n,ref:t})});xM.displayName=by;var yy="DialogClose",EM=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ot(yy,r);return J.jsx(Oe.button,{type:"button",...n,ref:t,onClick:ye(e.onClick,()=>o.onOpenChange(!1))})});EM.displayName=yy;function pd(e){return e?"open":"closed"}var wy="DialogTitleWarning",[t8,xy]=GD(wy,{contentName:Er,titleName:md,docsSlug:"dialog"}),kM=({titleId:e})=>{const t=xy(wy),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
367
+
368
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
369
+
370
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},SM="DialogDescriptionWarning",jM=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${xy(SM).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Hc={exports:{}},Qn={};/**
371
+ * @license React
372
+ * react-jsx-runtime.production.js
373
+ *
374
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
375
+ *
376
+ * This source code is licensed under the MIT license found in the
377
+ * LICENSE file in the root directory of this source tree.
378
+ */var Am;function CM(){if(Am)return Qn;Am=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var c=null;if(a!==void 0&&(c=""+a),o.key!==void 0&&(c=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:c,ref:o!==void 0?o:null,props:a}}return Qn.Fragment=t,Qn.jsx=r,Qn.jsxs=r,Qn}var Ca={};/**
379
+ * @license React
380
+ * react-jsx-runtime.development.js
381
+ *
382
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
383
+ *
384
+ * This source code is licensed under the MIT license found in the
385
+ * LICENSE file in the root directory of this source tree.
386
+ */var Im;function RM(){return Im||(Im=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===L?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case d:return"Fragment";case b:return"Profiler";case g:return"StrictMode";case j:return"Suspense";case T:return"SuspenseList";case M:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case x:return"Portal";case w:return(f.displayName||"Context")+".Provider";case y:return(f._context.displayName||"Context")+".Consumer";case E:var k=f.render;return f=f.displayName,f||(f=k.displayName||k.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case S:return k=f.displayName||null,k!==null?k:e(f.type)||"Memo";case R:k=f._payload,f=f._init;try{return e(f(k))}catch{}}return null}function t(f){return""+f}function r(f){try{t(f);var k=!1}catch{k=!0}if(k){k=console;var N=k.error,O=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return N.call(k,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",O),t(f)}}function n(f){if(f===d)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===R)return"<...>";try{var k=e(f);return k?"<"+k+">":"<...>"}catch{return"<...>"}}function o(){var f=I.A;return f===null?null:f.getOwner()}function a(){return Error("react-stack-top-frame")}function c(f){if(B.call(f,"key")){var k=Object.getOwnPropertyDescriptor(f,"key").get;if(k&&k.isReactWarning)return!1}return f.key!==void 0}function s(f,k){function N(){D||(D=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",k))}N.isReactWarning=!0,Object.defineProperty(f,"key",{get:N,configurable:!0})}function p(){var f=e(this.type);return Y[f]||(Y[f]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),f=this.props.ref,f!==void 0?f:null}function l(f,k,N,O,W,A,ae,X){return N=A.ref,f={$$typeof:h,type:f,key:k,props:A,_owner:W},(N!==void 0?N:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:p}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ae}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function u(f,k,N,O,W,A,ae,X){var _=k.children;if(_!==void 0)if(O)if(K(_)){for(O=0;O<_.length;O++)m(_[O]);Object.freeze&&Object.freeze(_)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else m(_);if(B.call(k,"key")){_=e(f);var $=Object.keys(k).filter(function(fe){return fe!=="key"});O=0<$.length?"{key: someKey, "+$.join(": ..., ")+": ...}":"{key: someKey}",V[_+O]||($=0<$.length?"{"+$.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
387
+ let props = %s;
388
+ <%s {...props} />
389
+ React keys must be passed directly to JSX without using spread:
390
+ let props = %s;
391
+ <%s key={someKey} {...props} />`,O,_,$,_),V[_+O]=!0)}if(_=null,N!==void 0&&(r(N),_=""+N),c(k)&&(r(k.key),_=""+k.key),"key"in k){N={};for(var se in k)se!=="key"&&(N[se]=k[se])}else N=k;return _&&s(N,typeof f=="function"?f.displayName||f.name||"Unknown":f),l(f,_,A,W,o(),N,ae,X)}function m(f){typeof f=="object"&&f!==null&&f.$$typeof===h&&f._store&&(f._store.validated=1)}var v=P,h=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),w=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),M=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,K=Array.isArray,z=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(f){return f()}};var D,Y={},H=v.react_stack_bottom_frame.bind(v,a)(),U=z(n(a)),V={};Ca.Fragment=d,Ca.jsx=function(f,k,N,O,W){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,k,N,!1,O,W,A?Error("react-stack-top-frame"):H,A?z(n(f)):U)},Ca.jsxs=function(f,k,N,O,W){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,k,N,!0,O,W,A?Error("react-stack-top-frame"):H,A?z(n(f)):U)}})()),Ca}var Fm;function NM(){return Fm||(Fm=1,process.env.NODE_ENV==="production"?Hc.exports=CM():Hc.exports=RM()),Hc.exports}var Q=NM();P.createContext({locale:void 0});var TM=(e,t,r,n,o,a,c,s)=>{let p=document.documentElement,l=["light","dark"];function u(h){(Array.isArray(e)?e:[e]).forEach(x=>{let d=x==="class",g=d&&a?o.map(b=>a[b]||b):o;d?(p.classList.remove(...g),p.classList.add(a&&a[h]?a[h]:h)):p.setAttribute(x,h)}),m(h)}function m(h){s&&l.includes(h)&&(p.style.colorScheme=h)}function v(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)u(n);else try{let h=localStorage.getItem(t)||r,x=c&&h==="system"?v():h;u(x)}catch{}};i.createContext(void 0);i.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:o,defaultTheme:a,value:c,themes:s,nonce:p,scriptProps:l})=>{let u=JSON.stringify([r,t,a,e,s,c,n,o]).slice(1,-1);return i.createElement("script",{...l,suppressHydrationWarning:!0,nonce:typeof window>"u"?p:"",dangerouslySetInnerHTML:{__html:`(${TM.toString()})(${u})`}})});me.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});me.cva("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function we(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function Lm(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function OM(...e){return t=>{let r=!1;const n=e.map(o=>{const a=Lm(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():Lm(e[o],null)}}}}function yt(...e){return i.useCallback(OM(...e),e)}function _M(e,t){const r=i.createContext(t),n=a=>{const{children:c,...s}=a,p=i.useMemo(()=>s,Object.values(s));return Q.jsx(r.Provider,{value:p,children:c})};n.displayName=e+"Provider";function o(a){const c=i.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function Ei(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),p=r.length;r=[...r,c];const l=m=>{const{scope:v,children:h,...x}=m,d=v?.[e]?.[p]||s,g=i.useMemo(()=>x,Object.values(x));return Q.jsx(d.Provider,{value:g,children:h})};l.displayName=a+"Provider";function u(m,v){const h=v?.[e]?.[p]||s,x=i.useContext(h);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${m}\` must be used within \`${a}\``)}return[l,u]}const o=()=>{const a=r.map(c=>i.createContext(c));return function(c){const s=c?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:s}}),[c,s])}};return o.scopeName=e,[n,DM(o,...t)]}function DM(...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(o){const a=n.reduce((c,{useScope:s,scopeName:p})=>{const l=s(o)[`__scope${p}`];return{...c,...l}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var yo=globalThis?.document?i.useLayoutEffect:()=>{},PM=i[" useId ".trim().toString()]||(()=>{}),MM=0;function Ey(e){const[t,r]=i.useState(PM());return yo(()=>{r(n=>n??String(MM++))},[e]),t?`radix-${t}`:""}var AM=i[" useInsertionEffect ".trim().toString()]||yo;function ky({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,c]=IM({defaultProp:t,onChange:r}),s=e!==void 0,p=s?e:o;{const u=i.useRef(e!==void 0);i.useEffect(()=>{const m=u.current;m!==s&&console.warn(`${n} is changing from ${m?"controlled":"uncontrolled"} to ${s?"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.`),u.current=s},[s,n])}const l=i.useCallback(u=>{if(s){const m=FM(u)?u(e):u;m!==e&&c.current?.(m)}else a(u)},[s,e,a,c]);return[p,l]}function IM({defaultProp:e,onChange:t}){const[r,n]=i.useState(e),o=i.useRef(r),a=i.useRef(t);return AM(()=>{a.current=t},[t]),i.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}function FM(e){return typeof e=="function"}var LM=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],_e=LM.reduce((e,t)=>{const r=oe.createSlot(`Primitive.${t}`),n=i.forwardRef((o,a)=>{const{asChild:c,...s}=o,p=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),Q.jsx(p,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function WM(e,t){e&&We.flushSync(()=>e.dispatchEvent(t))}function An(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function zM(e,t=globalThis?.document){const r=An(e);i.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 $M="DismissableLayer",vl="dismissableLayer.update",YM="dismissableLayer.pointerDownOutside",UM="dismissableLayer.focusOutside",Wm,Sy=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),jy=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...p}=e,l=i.useContext(Sy),[u,m]=i.useState(null),v=u?.ownerDocument??globalThis?.document,[,h]=i.useState({}),x=yt(t,S=>m(S)),d=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),b=d.indexOf(g),y=u?d.indexOf(u):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,E=y>=b,j=HM(S=>{const R=S.target,M=[...l.branches].some(L=>L.contains(R));!E||M||(o?.(S),c?.(S),S.defaultPrevented||s?.())},v),T=VM(S=>{const R=S.target;[...l.branches].some(M=>M.contains(R))||(a?.(S),c?.(S),S.defaultPrevented||s?.())},v);return zM(S=>{y===l.layers.size-1&&(n?.(S),!S.defaultPrevented&&s&&(S.preventDefault(),s()))},v),i.useEffect(()=>{if(u)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Wm=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),zm(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Wm)}},[u,v,r,l]),i.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),zm())},[u,l]),i.useEffect(()=>{const S=()=>h({});return document.addEventListener(vl,S),()=>document.removeEventListener(vl,S)},[]),Q.jsx(_e.div,{...p,ref:x,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:we(e.onFocusCapture,T.onFocusCapture),onBlurCapture:we(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:we(e.onPointerDownCapture,j.onPointerDownCapture)})});jy.displayName=$M;var BM="DismissableLayerBranch",KM=i.forwardRef((e,t)=>{const r=i.useContext(Sy),n=i.useRef(null),o=yt(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),Q.jsx(_e.div,{...e,ref:o})});KM.displayName=BM;function HM(e,t=globalThis?.document){const r=An(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let p=function(){Cy(YM,r,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=p,t.addEventListener("click",o.current,{once:!0})):p()}else t.removeEventListener("click",o.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function VM(e,t=globalThis?.document){const r=An(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&Cy(UM,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function zm(){const e=new CustomEvent(vl);document.dispatchEvent(e)}function Cy(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?WM(o,a):o.dispatchEvent(a)}var Vc="focusScope.autoFocusOnMount",Xc="focusScope.autoFocusOnUnmount",$m={bubbles:!1,cancelable:!0},XM="FocusScope",Ry=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,p]=i.useState(null),l=An(o),u=An(a),m=i.useRef(null),v=yt(t,d=>p(d)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let d=function(w){if(h.paused||!s)return;const E=w.target;s.contains(E)?m.current=E:er(m.current,{select:!0})},g=function(w){if(h.paused||!s)return;const E=w.relatedTarget;E!==null&&(s.contains(E)||er(m.current,{select:!0}))},b=function(w){if(document.activeElement===document.body)for(const E of w)E.removedNodes.length>0&&er(s)};document.addEventListener("focusin",d),document.addEventListener("focusout",g);const y=new MutationObserver(b);return s&&y.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",d),document.removeEventListener("focusout",g),y.disconnect()}}},[n,s,h.paused]),i.useEffect(()=>{if(s){Um.add(h);const d=document.activeElement;if(!s.contains(d)){const g=new CustomEvent(Vc,$m);s.addEventListener(Vc,l),s.dispatchEvent(g),g.defaultPrevented||(qM(eA(Ny(s)),{select:!0}),document.activeElement===d&&er(s))}return()=>{s.removeEventListener(Vc,l),setTimeout(()=>{const g=new CustomEvent(Xc,$m);s.addEventListener(Xc,u),s.dispatchEvent(g),g.defaultPrevented||er(d??document.body,{select:!0}),s.removeEventListener(Xc,u),Um.remove(h)},0)}}},[s,l,u,h]);const x=i.useCallback(d=>{if(!r&&!n||h.paused)return;const g=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,b=document.activeElement;if(g&&b){const y=d.currentTarget,[w,E]=GM(y);w&&E?!d.shiftKey&&b===E?(d.preventDefault(),r&&er(w,{select:!0})):d.shiftKey&&b===w&&(d.preventDefault(),r&&er(E,{select:!0})):b===y&&d.preventDefault()}},[r,n,h.paused]);return Q.jsx(_e.div,{tabIndex:-1,...c,ref:v,onKeyDown:x})});Ry.displayName=XM;function qM(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(er(n,{select:t}),document.activeElement!==r)return}function GM(e){const t=Ny(e),r=Ym(t,e),n=Ym(t.reverse(),e);return[r,n]}function Ny(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 Ym(e,t){for(const r of e)if(!ZM(r,{upTo:t}))return r}function ZM(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 JM(e){return e instanceof HTMLInputElement&&"select"in e}function er(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&JM(e)&&t&&e.select()}}var Um=QM();function QM(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=Bm(e,t),e.unshift(t)},remove(t){e=Bm(e,t),e[0]?.resume()}}}function Bm(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function eA(e){return e.filter(t=>t.tagName!=="A")}var tA="Portal",rA=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);yo(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?Le.createPortal(Q.jsx(_e.div,{...n,ref:t}),c):null});rA.displayName=tA;function nA(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var ki=e=>{const{present:t,children:r}=e,n=oA(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=yt(n.ref,aA(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};ki.displayName="Presence";function oA(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,p]=nA(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const l=Ra(n.current);a.current=s==="mounted"?l:"none"},[s]),yo(()=>{const l=n.current,u=o.current;if(u!==e){const m=a.current,v=Ra(l);e?p("MOUNT"):v==="none"||l?.display==="none"?p("UNMOUNT"):p(u&&m!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,p]),yo(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,m=h=>{const x=Ra(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&x&&(p("ANIMATION_END"),!o.current)){const d=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=d)})}},v=h=>{h.target===t&&(a.current=Ra(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else p("ANIMATION_END")},[t,p]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function Ra(e){return e?.animationName||"none"}function aA(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var qc=0;function sA(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Km()),document.body.insertAdjacentElement("beforeend",e[1]??Km()),qc++,()=>{qc===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),qc--}},[])}function Km(){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 st=function(){return st=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},st.apply(this,arguments)};function Ty(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 iA(e,t,r){for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var Es="right-scroll-bar-position",ks="width-before-scroll-bar",cA="with-scroll-bars-hidden",uA="--removed-body-scroll-bar-size";function Gc(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function lA(e,t){var r=P.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 dA=typeof window<"u"?i.useLayoutEffect:i.useEffect,Hm=new WeakMap;function fA(e,t){var r=lA(null,function(n){return e.forEach(function(o){return Gc(o,n)})});return dA(function(){var n=Hm.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||Gc(s,null)}),a.forEach(function(s){o.has(s)||Gc(s,c)})}Hm.set(r,e)},[e]),r}function mA(e){return e}function pA(e,t){t===void 0&&(t=mA);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(a){var c=t(a,n);return r.push(c),function(){r=r.filter(function(s){return s!==c})}},assignSyncMedium:function(a){for(n=!0;r.length;){var c=r;r=[],c.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var c=[];if(r.length){var s=r;r=[],s.forEach(a),c=r}var p=function(){var u=c;c=[],u.forEach(a)},l=function(){return Promise.resolve().then(p)};l(),r={push:function(u){c.push(u),l()},filter:function(u){return c=c.filter(u),r}}}};return o}function vA(e){e===void 0&&(e={});var t=pA(null);return t.options=st({async:!0,ssr:!1},e),t}var Oy=function(e){var t=e.sideCar,r=Ty(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 i.createElement(n,st({},r))};Oy.isSideCarExport=!0;function gA(e,t){return e.useMedium(t),Oy}var _y=vA(),Zc=function(){},Si=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:Zc,onWheelCapture:Zc,onTouchMoveCapture:Zc}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,p=e.className,l=e.removeScrollBar,u=e.enabled,m=e.shards,v=e.sideCar,h=e.noRelative,x=e.noIsolation,d=e.inert,g=e.allowPinchZoom,b=e.as,y=b===void 0?"div":b,w=e.gapMode,E=Ty(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),j=v,T=fA([r,t]),S=st(st({},E),o);return i.createElement(i.Fragment,null,u&&i.createElement(j,{sideCar:_y,removeScrollBar:l,shards:m,noRelative:h,noIsolation:x,inert:d,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),st(st({},S),{ref:T})):i.createElement(y,st({},S,{className:p,ref:T}),s))});Si.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Si.classNames={fullWidth:ks,zeroRight:Es};var hA=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function bA(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=hA();return t&&e.setAttribute("nonce",t),e}function yA(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function wA(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var xA=function(){var e=0,t=null;return{add:function(r){e==0&&(t=bA())&&(yA(t,r),wA(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},EA=function(){var e=xA();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Dy=function(){var e=EA(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},kA={left:0,top:0,right:0,gap:0},Jc=function(e){return parseInt(e||"",10)||0},SA=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[Jc(r),Jc(n),Jc(o)]},jA=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return kA;var t=SA(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])}},CA=Dy(),Sn="data-scroll-locked",RA=function(e,t,r,n){var o=e.left,a=e.top,c=e.right,s=e.gap;return r===void 0&&(r="margin"),`
392
+ .`.concat(cA,` {
393
+ overflow: hidden `).concat(n,`;
394
+ padding-right: `).concat(s,"px ").concat(n,`;
395
+ }
396
+ body[`).concat(Sn,`] {
397
+ overflow: hidden `).concat(n,`;
398
+ overscroll-behavior: contain;
399
+ `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
400
+ padding-left: `.concat(o,`px;
401
+ padding-top: `).concat(a,`px;
402
+ padding-right: `).concat(c,`px;
403
+ margin-left:0;
404
+ margin-top:0;
405
+ margin-right: `).concat(s,"px ").concat(n,`;
406
+ `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
407
+ }
408
+
409
+ .`).concat(Es,` {
410
+ right: `).concat(s,"px ").concat(n,`;
411
+ }
412
+
413
+ .`).concat(ks,` {
414
+ margin-right: `).concat(s,"px ").concat(n,`;
415
+ }
416
+
417
+ .`).concat(Es," .").concat(Es,` {
418
+ right: 0 `).concat(n,`;
419
+ }
420
+
421
+ .`).concat(ks," .").concat(ks,` {
422
+ margin-right: 0 `).concat(n,`;
423
+ }
424
+
425
+ body[`).concat(Sn,`] {
426
+ `).concat(uA,": ").concat(s,`px;
427
+ }
428
+ `)},Vm=function(){var e=parseInt(document.body.getAttribute(Sn)||"0",10);return isFinite(e)?e:0},NA=function(){i.useEffect(function(){return document.body.setAttribute(Sn,(Vm()+1).toString()),function(){var e=Vm()-1;e<=0?document.body.removeAttribute(Sn):document.body.setAttribute(Sn,e.toString())}},[])},TA=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;NA();var a=i.useMemo(function(){return jA(o)},[o]);return i.createElement(CA,{styles:RA(a,!t,o,r?"":"!important")})},gl=!1;if(typeof window<"u")try{var Na=Object.defineProperty({},"passive",{get:function(){return gl=!0,!0}});window.addEventListener("test",Na,Na),window.removeEventListener("test",Na,Na)}catch{gl=!1}var Jr=gl?{passive:!1}:!1,OA=function(e){return e.tagName==="TEXTAREA"},Py=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!OA(e)&&r[t]==="visible")},_A=function(e){return Py(e,"overflowY")},DA=function(e){return Py(e,"overflowX")},Xm=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=My(e,n);if(o){var a=Ay(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},PA=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},MA=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},My=function(e,t){return e==="v"?_A(t):DA(t)},Ay=function(e,t){return e==="v"?PA(t):MA(t)},AA=function(e,t){return e==="h"&&t==="rtl"?-1:1},IA=function(e,t,r,n,o){var a=AA(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,p=t.contains(s),l=!1,u=c>0,m=0,v=0;do{if(!s)break;var h=Ay(e,s),x=h[0],d=h[1],g=h[2],b=d-g-a*x;(x||b)&&My(e,s)&&(m+=b,v+=x);var y=s.parentNode;s=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!p&&s!==document.body||p&&(t.contains(s)||t===s));return(u&&Math.abs(m)<1||!u&&Math.abs(v)<1)&&(l=!0),l},Ta=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},qm=function(e){return[e.deltaX,e.deltaY]},Gm=function(e){return e&&"current"in e?e.current:e},FA=function(e,t){return e[0]===t[0]&&e[1]===t[1]},LA=function(e){return`
429
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
430
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
431
+ `)},WA=0,Qr=[];function zA(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(WA++)[0],a=i.useState(Dy)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var d=iA([e.lockRef.current],(e.shards||[]).map(Gm)).filter(Boolean);return d.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),d.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(d,g){if("touches"in d&&d.touches.length===2||d.type==="wheel"&&d.ctrlKey)return!c.current.allowPinchZoom;var b=Ta(d),y=r.current,w="deltaX"in d?d.deltaX:y[0]-b[0],E="deltaY"in d?d.deltaY:y[1]-b[1],j,T=d.target,S=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in d&&S==="h"&&T.type==="range")return!1;var R=Xm(S,T);if(!R)return!0;if(R?j=S:(j=S==="v"?"h":"v",R=Xm(S,T)),!R)return!1;if(!n.current&&"changedTouches"in d&&(w||E)&&(n.current=j),!j)return!0;var M=n.current||j;return IA(M,g,d,M==="h"?w:E)},[]),p=i.useCallback(function(d){var g=d;if(!(!Qr.length||Qr[Qr.length-1]!==a)){var b="deltaY"in g?qm(g):Ta(g),y=t.current.filter(function(j){return j.name===g.type&&(j.target===g.target||g.target===j.shadowParent)&&FA(j.delta,b)})[0];if(y&&y.should){g.cancelable&&g.preventDefault();return}if(!y){var w=(c.current.shards||[]).map(Gm).filter(Boolean).filter(function(j){return j.contains(g.target)}),E=w.length>0?s(g,w[0]):!c.current.noIsolation;E&&g.cancelable&&g.preventDefault()}}},[]),l=i.useCallback(function(d,g,b,y){var w={name:d,delta:g,target:b,should:y,shadowParent:$A(b)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),u=i.useCallback(function(d){r.current=Ta(d),n.current=void 0},[]),m=i.useCallback(function(d){l(d.type,qm(d),d.target,s(d,e.lockRef.current))},[]),v=i.useCallback(function(d){l(d.type,Ta(d),d.target,s(d,e.lockRef.current))},[]);i.useEffect(function(){return Qr.push(a),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:v}),document.addEventListener("wheel",p,Jr),document.addEventListener("touchmove",p,Jr),document.addEventListener("touchstart",u,Jr),function(){Qr=Qr.filter(function(d){return d!==a}),document.removeEventListener("wheel",p,Jr),document.removeEventListener("touchmove",p,Jr),document.removeEventListener("touchstart",u,Jr)}},[]);var h=e.removeScrollBar,x=e.inert;return i.createElement(i.Fragment,null,x?i.createElement(a,{styles:LA(o)}):null,h?i.createElement(TA,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function $A(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const YA=gA(_y,zA);var Iy=i.forwardRef(function(e,t){return i.createElement(Si,st({},e,{ref:t,sideCar:YA}))});Iy.classNames=Si.classNames;var UA=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},en=new WeakMap,Oa=new WeakMap,_a={},Qc=0,Fy=function(e){return e&&(e.host||Fy(e.parentNode))},BA=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Fy(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},KA=function(e,t,r,n){var o=BA(t,Array.isArray(e)?e:[e]);_a[r]||(_a[r]=new WeakMap);var a=_a[r],c=[],s=new Set,p=new Set(o),l=function(m){!m||s.has(m)||(s.add(m),l(m.parentNode))};o.forEach(l);var u=function(m){!m||p.has(m)||Array.prototype.forEach.call(m.children,function(v){if(s.has(v))u(v);else try{var h=v.getAttribute(n),x=h!==null&&h!=="false",d=(en.get(v)||0)+1,g=(a.get(v)||0)+1;en.set(v,d),a.set(v,g),c.push(v),d===1&&x&&Oa.set(v,!0),g===1&&v.setAttribute(r,"true"),x||v.setAttribute(n,"true")}catch(b){console.error("aria-hidden: cannot operate on ",v,b)}})};return u(t),s.clear(),Qc++,function(){c.forEach(function(m){var v=en.get(m)-1,h=a.get(m)-1;en.set(m,v),a.set(m,h),v||(Oa.has(m)||m.removeAttribute(n),Oa.delete(m)),h||m.removeAttribute(r)}),Qc--,Qc||(en=new WeakMap,en=new WeakMap,Oa=new WeakMap,_a={})}},HA=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=UA(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),KA(n,o,r,"aria-hidden")):function(){return null}},Ly="Dialog",[Wy]=Ei(Ly),[r8,_t]=Wy(Ly),zy="DialogTrigger",VA=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=_t(zy,r),a=yt(t,o.triggerRef);return Q.jsx(_e.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":gd(o.open),...n,ref:a,onClick:we(e.onClick,o.onOpenToggle)})});VA.displayName=zy;var XA="DialogPortal",[n8,$y]=Wy(XA,{forceMount:void 0}),Xs="DialogOverlay",qA=i.forwardRef((e,t)=>{const r=$y(Xs,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=_t(Xs,e.__scopeDialog);return a.modal?Q.jsx(ki,{present:n||a.open,children:Q.jsx(ZA,{...o,ref:t})}):null});qA.displayName=Xs;var GA=oe.createSlot("DialogOverlay.RemoveScroll"),ZA=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=_t(Xs,r);return Q.jsx(Iy,{as:GA,allowPinchZoom:!0,shards:[o.contentRef],children:Q.jsx(_e.div,{"data-state":gd(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),kr="DialogContent",JA=i.forwardRef((e,t)=>{const r=$y(kr,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=_t(kr,e.__scopeDialog);return Q.jsx(ki,{present:n||a.open,children:a.modal?Q.jsx(QA,{...o,ref:t}):Q.jsx(eI,{...o,ref:t})})});JA.displayName=kr;var QA=i.forwardRef((e,t)=>{const r=_t(kr,e.__scopeDialog),n=i.useRef(null),o=yt(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return HA(a)},[]),Q.jsx(Yy,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:we(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:we(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:we(e.onFocusOutside,a=>a.preventDefault())})}),eI=i.forwardRef((e,t)=>{const r=_t(kr,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return Q.jsx(Yy,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=a.target;r.triggerRef.current?.contains(c)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Yy=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=_t(kr,r),p=i.useRef(null),l=yt(t,p);return sA(),Q.jsxs(Q.Fragment,{children:[Q.jsx(Ry,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:Q.jsx(jy,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":gd(s.open),...c,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),Q.jsxs(Q.Fragment,{children:[Q.jsx(oI,{titleId:s.titleId}),Q.jsx(sI,{contentRef:p,descriptionId:s.descriptionId})]})]})}),vd="DialogTitle",tI=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=_t(vd,r);return Q.jsx(_e.h2,{id:o.titleId,...n,ref:t})});tI.displayName=vd;var Uy="DialogDescription",rI=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=_t(Uy,r);return Q.jsx(_e.p,{id:o.descriptionId,...n,ref:t})});rI.displayName=Uy;var By="DialogClose",nI=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=_t(By,r);return Q.jsx(_e.button,{type:"button",...n,ref:t,onClick:we(e.onClick,()=>o.onOpenChange(!1))})});nI.displayName=By;function gd(e){return e?"open":"closed"}var Ky="DialogTitleWarning",[o8,Hy]=_M(Ky,{contentName:kr,titleName:vd,docsSlug:"dialog"}),oI=({titleId:e})=>{const t=Hy(Ky),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
432
+
433
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
434
+
435
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},aI="DialogDescriptionWarning",sI=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Hy(aI).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},eu={exports:{}},eo={};/**
436
+ * @license React
437
+ * react-jsx-runtime.production.js
438
+ *
439
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
440
+ *
441
+ * This source code is licensed under the MIT license found in the
442
+ * LICENSE file in the root directory of this source tree.
443
+ */var Zm;function iI(){if(Zm)return eo;Zm=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var c=null;if(a!==void 0&&(c=""+a),o.key!==void 0&&(c=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:c,ref:o!==void 0?o:null,props:a}}return eo.Fragment=t,eo.jsx=r,eo.jsxs=r,eo}var Da={};/**
444
+ * @license React
445
+ * react-jsx-runtime.development.js
446
+ *
447
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
448
+ *
449
+ * This source code is licensed under the MIT license found in the
450
+ * LICENSE file in the root directory of this source tree.
451
+ */var Jm;function cI(){return Jm||(Jm=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===L?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case d:return"Fragment";case b:return"Profiler";case g:return"StrictMode";case j:return"Suspense";case T:return"SuspenseList";case M:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case x:return"Portal";case w:return(f.displayName||"Context")+".Provider";case y:return(f._context.displayName||"Context")+".Consumer";case E:var k=f.render;return f=f.displayName,f||(f=k.displayName||k.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case S:return k=f.displayName||null,k!==null?k:e(f.type)||"Memo";case R:k=f._payload,f=f._init;try{return e(f(k))}catch{}}return null}function t(f){return""+f}function r(f){try{t(f);var k=!1}catch{k=!0}if(k){k=console;var N=k.error,O=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return N.call(k,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",O),t(f)}}function n(f){if(f===d)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===R)return"<...>";try{var k=e(f);return k?"<"+k+">":"<...>"}catch{return"<...>"}}function o(){var f=I.A;return f===null?null:f.getOwner()}function a(){return Error("react-stack-top-frame")}function c(f){if(B.call(f,"key")){var k=Object.getOwnPropertyDescriptor(f,"key").get;if(k&&k.isReactWarning)return!1}return f.key!==void 0}function s(f,k){function N(){D||(D=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",k))}N.isReactWarning=!0,Object.defineProperty(f,"key",{get:N,configurable:!0})}function p(){var f=e(this.type);return Y[f]||(Y[f]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),f=this.props.ref,f!==void 0?f:null}function l(f,k,N,O,W,A,ae,X){return N=A.ref,f={$$typeof:h,type:f,key:k,props:A,_owner:W},(N!==void 0?N:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:p}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ae}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function u(f,k,N,O,W,A,ae,X){var _=k.children;if(_!==void 0)if(O)if(K(_)){for(O=0;O<_.length;O++)m(_[O]);Object.freeze&&Object.freeze(_)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else m(_);if(B.call(k,"key")){_=e(f);var $=Object.keys(k).filter(function(fe){return fe!=="key"});O=0<$.length?"{key: someKey, "+$.join(": ..., ")+": ...}":"{key: someKey}",V[_+O]||($=0<$.length?"{"+$.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
452
+ let props = %s;
453
+ <%s {...props} />
454
+ React keys must be passed directly to JSX without using spread:
455
+ let props = %s;
456
+ <%s key={someKey} {...props} />`,O,_,$,_),V[_+O]=!0)}if(_=null,N!==void 0&&(r(N),_=""+N),c(k)&&(r(k.key),_=""+k.key),"key"in k){N={};for(var se in k)se!=="key"&&(N[se]=k[se])}else N=k;return _&&s(N,typeof f=="function"?f.displayName||f.name||"Unknown":f),l(f,_,A,W,o(),N,ae,X)}function m(f){typeof f=="object"&&f!==null&&f.$$typeof===h&&f._store&&(f._store.validated=1)}var v=P,h=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),w=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),M=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,K=Array.isArray,z=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(f){return f()}};var D,Y={},H=v.react_stack_bottom_frame.bind(v,a)(),U=z(n(a)),V={};Da.Fragment=d,Da.jsx=function(f,k,N,O,W){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,k,N,!1,O,W,A?Error("react-stack-top-frame"):H,A?z(n(f)):U)},Da.jsxs=function(f,k,N,O,W){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,k,N,!0,O,W,A?Error("react-stack-top-frame"):H,A?z(n(f)):U)}})()),Da}var Qm;function uI(){return Qm||(Qm=1,process.env.NODE_ENV==="production"?eu.exports=iI():eu.exports=cI()),eu.exports}var ee=uI();P.createContext({locale:void 0});var lI=(e,t,r,n,o,a,c,s)=>{let p=document.documentElement,l=["light","dark"];function u(h){(Array.isArray(e)?e:[e]).forEach(x=>{let d=x==="class",g=d&&a?o.map(b=>a[b]||b):o;d?(p.classList.remove(...g),p.classList.add(a&&a[h]?a[h]:h)):p.setAttribute(x,h)}),m(h)}function m(h){s&&l.includes(h)&&(p.style.colorScheme=h)}function v(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)u(n);else try{let h=localStorage.getItem(t)||r,x=c&&h==="system"?v():h;u(x)}catch{}};i.createContext(void 0);i.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:o,defaultTheme:a,value:c,themes:s,nonce:p,scriptProps:l})=>{let u=JSON.stringify([r,t,a,e,s,c,n,o]).slice(1,-1);return i.createElement("script",{...l,suppressHydrationWarning:!0,nonce:typeof window>"u"?p:"",dangerouslySetInnerHTML:{__html:`(${lI.toString()})(${u})`}})});me.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});me.cva("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function xe(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function ep(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function dI(...e){return t=>{let r=!1;const n=e.map(o=>{const a=ep(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():ep(e[o],null)}}}}function wt(...e){return i.useCallback(dI(...e),e)}function fI(e,t){const r=i.createContext(t),n=a=>{const{children:c,...s}=a,p=i.useMemo(()=>s,Object.values(s));return ee.jsx(r.Provider,{value:p,children:c})};n.displayName=e+"Provider";function o(a){const c=i.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function ji(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),p=r.length;r=[...r,c];const l=m=>{const{scope:v,children:h,...x}=m,d=v?.[e]?.[p]||s,g=i.useMemo(()=>x,Object.values(x));return ee.jsx(d.Provider,{value:g,children:h})};l.displayName=a+"Provider";function u(m,v){const h=v?.[e]?.[p]||s,x=i.useContext(h);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${m}\` must be used within \`${a}\``)}return[l,u]}const o=()=>{const a=r.map(c=>i.createContext(c));return function(c){const s=c?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:s}}),[c,s])}};return o.scopeName=e,[n,mI(o,...t)]}function mI(...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(o){const a=n.reduce((c,{useScope:s,scopeName:p})=>{const l=s(o)[`__scope${p}`];return{...c,...l}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var wo=globalThis?.document?i.useLayoutEffect:()=>{},pI=i[" useId ".trim().toString()]||(()=>{}),vI=0;function Vy(e){const[t,r]=i.useState(pI());return wo(()=>{r(n=>n??String(vI++))},[e]),t?`radix-${t}`:""}var gI=i[" useInsertionEffect ".trim().toString()]||wo;function Xy({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,c]=hI({defaultProp:t,onChange:r}),s=e!==void 0,p=s?e:o;{const u=i.useRef(e!==void 0);i.useEffect(()=>{const m=u.current;m!==s&&console.warn(`${n} is changing from ${m?"controlled":"uncontrolled"} to ${s?"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.`),u.current=s},[s,n])}const l=i.useCallback(u=>{if(s){const m=bI(u)?u(e):u;m!==e&&c.current?.(m)}else a(u)},[s,e,a,c]);return[p,l]}function hI({defaultProp:e,onChange:t}){const[r,n]=i.useState(e),o=i.useRef(r),a=i.useRef(t);return gI(()=>{a.current=t},[t]),i.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}function bI(e){return typeof e=="function"}var yI=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],De=yI.reduce((e,t)=>{const r=oe.createSlot(`Primitive.${t}`),n=i.forwardRef((o,a)=>{const{asChild:c,...s}=o,p=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),ee.jsx(p,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function wI(e,t){e&&We.flushSync(()=>e.dispatchEvent(t))}function In(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function xI(e,t=globalThis?.document){const r=In(e);i.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 EI="DismissableLayer",hl="dismissableLayer.update",kI="dismissableLayer.pointerDownOutside",SI="dismissableLayer.focusOutside",tp,qy=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Gy=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...p}=e,l=i.useContext(qy),[u,m]=i.useState(null),v=u?.ownerDocument??globalThis?.document,[,h]=i.useState({}),x=wt(t,S=>m(S)),d=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),b=d.indexOf(g),y=u?d.indexOf(u):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,E=y>=b,j=RI(S=>{const R=S.target,M=[...l.branches].some(L=>L.contains(R));!E||M||(o?.(S),c?.(S),S.defaultPrevented||s?.())},v),T=NI(S=>{const R=S.target;[...l.branches].some(M=>M.contains(R))||(a?.(S),c?.(S),S.defaultPrevented||s?.())},v);return xI(S=>{y===l.layers.size-1&&(n?.(S),!S.defaultPrevented&&s&&(S.preventDefault(),s()))},v),i.useEffect(()=>{if(u)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(tp=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),rp(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=tp)}},[u,v,r,l]),i.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),rp())},[u,l]),i.useEffect(()=>{const S=()=>h({});return document.addEventListener(hl,S),()=>document.removeEventListener(hl,S)},[]),ee.jsx(De.div,{...p,ref:x,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:xe(e.onFocusCapture,T.onFocusCapture),onBlurCapture:xe(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:xe(e.onPointerDownCapture,j.onPointerDownCapture)})});Gy.displayName=EI;var jI="DismissableLayerBranch",CI=i.forwardRef((e,t)=>{const r=i.useContext(qy),n=i.useRef(null),o=wt(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),ee.jsx(De.div,{...e,ref:o})});CI.displayName=jI;function RI(e,t=globalThis?.document){const r=In(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let p=function(){Zy(kI,r,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=p,t.addEventListener("click",o.current,{once:!0})):p()}else t.removeEventListener("click",o.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function NI(e,t=globalThis?.document){const r=In(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&Zy(SI,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function rp(){const e=new CustomEvent(hl);document.dispatchEvent(e)}function Zy(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?wI(o,a):o.dispatchEvent(a)}var tu="focusScope.autoFocusOnMount",ru="focusScope.autoFocusOnUnmount",np={bubbles:!1,cancelable:!0},TI="FocusScope",Jy=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,p]=i.useState(null),l=In(o),u=In(a),m=i.useRef(null),v=wt(t,d=>p(d)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let d=function(w){if(h.paused||!s)return;const E=w.target;s.contains(E)?m.current=E:tr(m.current,{select:!0})},g=function(w){if(h.paused||!s)return;const E=w.relatedTarget;E!==null&&(s.contains(E)||tr(m.current,{select:!0}))},b=function(w){if(document.activeElement===document.body)for(const E of w)E.removedNodes.length>0&&tr(s)};document.addEventListener("focusin",d),document.addEventListener("focusout",g);const y=new MutationObserver(b);return s&&y.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",d),document.removeEventListener("focusout",g),y.disconnect()}}},[n,s,h.paused]),i.useEffect(()=>{if(s){ap.add(h);const d=document.activeElement;if(!s.contains(d)){const g=new CustomEvent(tu,np);s.addEventListener(tu,l),s.dispatchEvent(g),g.defaultPrevented||(OI(AI(Qy(s)),{select:!0}),document.activeElement===d&&tr(s))}return()=>{s.removeEventListener(tu,l),setTimeout(()=>{const g=new CustomEvent(ru,np);s.addEventListener(ru,u),s.dispatchEvent(g),g.defaultPrevented||tr(d??document.body,{select:!0}),s.removeEventListener(ru,u),ap.remove(h)},0)}}},[s,l,u,h]);const x=i.useCallback(d=>{if(!r&&!n||h.paused)return;const g=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,b=document.activeElement;if(g&&b){const y=d.currentTarget,[w,E]=_I(y);w&&E?!d.shiftKey&&b===E?(d.preventDefault(),r&&tr(w,{select:!0})):d.shiftKey&&b===w&&(d.preventDefault(),r&&tr(E,{select:!0})):b===y&&d.preventDefault()}},[r,n,h.paused]);return ee.jsx(De.div,{tabIndex:-1,...c,ref:v,onKeyDown:x})});Jy.displayName=TI;function OI(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(tr(n,{select:t}),document.activeElement!==r)return}function _I(e){const t=Qy(e),r=op(t,e),n=op(t.reverse(),e);return[r,n]}function Qy(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 op(e,t){for(const r of e)if(!DI(r,{upTo:t}))return r}function DI(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 PI(e){return e instanceof HTMLInputElement&&"select"in e}function tr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&PI(e)&&t&&e.select()}}var ap=MI();function MI(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=sp(e,t),e.unshift(t)},remove(t){e=sp(e,t),e[0]?.resume()}}}function sp(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function AI(e){return e.filter(t=>t.tagName!=="A")}var II="Portal",FI=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);wo(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?Le.createPortal(ee.jsx(De.div,{...n,ref:t}),c):null});FI.displayName=II;function LI(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var Ci=e=>{const{present:t,children:r}=e,n=WI(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=wt(n.ref,zI(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};Ci.displayName="Presence";function WI(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,p]=LI(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const l=Pa(n.current);a.current=s==="mounted"?l:"none"},[s]),wo(()=>{const l=n.current,u=o.current;if(u!==e){const m=a.current,v=Pa(l);e?p("MOUNT"):v==="none"||l?.display==="none"?p("UNMOUNT"):p(u&&m!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,p]),wo(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,m=h=>{const x=Pa(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&x&&(p("ANIMATION_END"),!o.current)){const d=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=d)})}},v=h=>{h.target===t&&(a.current=Pa(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else p("ANIMATION_END")},[t,p]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function Pa(e){return e?.animationName||"none"}function zI(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var nu=0;function $I(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ip()),document.body.insertAdjacentElement("beforeend",e[1]??ip()),nu++,()=>{nu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),nu--}},[])}function ip(){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 it=function(){return it=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},it.apply(this,arguments)};function e0(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 YI(e,t,r){for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var Ss="right-scroll-bar-position",js="width-before-scroll-bar",UI="with-scroll-bars-hidden",BI="--removed-body-scroll-bar-size";function ou(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function KI(e,t){var r=P.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 HI=typeof window<"u"?i.useLayoutEffect:i.useEffect,cp=new WeakMap;function VI(e,t){var r=KI(null,function(n){return e.forEach(function(o){return ou(o,n)})});return HI(function(){var n=cp.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||ou(s,null)}),a.forEach(function(s){o.has(s)||ou(s,c)})}cp.set(r,e)},[e]),r}function XI(e){return e}function qI(e,t){t===void 0&&(t=XI);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(a){var c=t(a,n);return r.push(c),function(){r=r.filter(function(s){return s!==c})}},assignSyncMedium:function(a){for(n=!0;r.length;){var c=r;r=[],c.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var c=[];if(r.length){var s=r;r=[],s.forEach(a),c=r}var p=function(){var u=c;c=[],u.forEach(a)},l=function(){return Promise.resolve().then(p)};l(),r={push:function(u){c.push(u),l()},filter:function(u){return c=c.filter(u),r}}}};return o}function GI(e){e===void 0&&(e={});var t=qI(null);return t.options=it({async:!0,ssr:!1},e),t}var t0=function(e){var t=e.sideCar,r=e0(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 i.createElement(n,it({},r))};t0.isSideCarExport=!0;function ZI(e,t){return e.useMedium(t),t0}var r0=GI(),au=function(){},Ri=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:au,onWheelCapture:au,onTouchMoveCapture:au}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,p=e.className,l=e.removeScrollBar,u=e.enabled,m=e.shards,v=e.sideCar,h=e.noRelative,x=e.noIsolation,d=e.inert,g=e.allowPinchZoom,b=e.as,y=b===void 0?"div":b,w=e.gapMode,E=e0(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),j=v,T=VI([r,t]),S=it(it({},E),o);return i.createElement(i.Fragment,null,u&&i.createElement(j,{sideCar:r0,removeScrollBar:l,shards:m,noRelative:h,noIsolation:x,inert:d,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),it(it({},S),{ref:T})):i.createElement(y,it({},S,{className:p,ref:T}),s))});Ri.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ri.classNames={fullWidth:js,zeroRight:Ss};var JI=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function QI(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=JI();return t&&e.setAttribute("nonce",t),e}function eF(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function tF(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var rF=function(){var e=0,t=null;return{add:function(r){e==0&&(t=QI())&&(eF(t,r),tF(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},nF=function(){var e=rF();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},n0=function(){var e=nF(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},oF={left:0,top:0,right:0,gap:0},su=function(e){return parseInt(e||"",10)||0},aF=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[su(r),su(n),su(o)]},sF=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return oF;var t=aF(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])}},iF=n0(),jn="data-scroll-locked",cF=function(e,t,r,n){var o=e.left,a=e.top,c=e.right,s=e.gap;return r===void 0&&(r="margin"),`
457
+ .`.concat(UI,` {
458
+ overflow: hidden `).concat(n,`;
459
+ padding-right: `).concat(s,"px ").concat(n,`;
460
+ }
461
+ body[`).concat(jn,`] {
462
+ overflow: hidden `).concat(n,`;
463
+ overscroll-behavior: contain;
464
+ `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
465
+ padding-left: `.concat(o,`px;
466
+ padding-top: `).concat(a,`px;
467
+ padding-right: `).concat(c,`px;
468
+ margin-left:0;
469
+ margin-top:0;
470
+ margin-right: `).concat(s,"px ").concat(n,`;
471
+ `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
472
+ }
473
+
474
+ .`).concat(Ss,` {
475
+ right: `).concat(s,"px ").concat(n,`;
476
+ }
477
+
478
+ .`).concat(js,` {
479
+ margin-right: `).concat(s,"px ").concat(n,`;
480
+ }
481
+
482
+ .`).concat(Ss," .").concat(Ss,` {
483
+ right: 0 `).concat(n,`;
484
+ }
485
+
486
+ .`).concat(js," .").concat(js,` {
487
+ margin-right: 0 `).concat(n,`;
488
+ }
489
+
490
+ body[`).concat(jn,`] {
491
+ `).concat(BI,": ").concat(s,`px;
492
+ }
493
+ `)},up=function(){var e=parseInt(document.body.getAttribute(jn)||"0",10);return isFinite(e)?e:0},uF=function(){i.useEffect(function(){return document.body.setAttribute(jn,(up()+1).toString()),function(){var e=up()-1;e<=0?document.body.removeAttribute(jn):document.body.setAttribute(jn,e.toString())}},[])},lF=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;uF();var a=i.useMemo(function(){return sF(o)},[o]);return i.createElement(iF,{styles:cF(a,!t,o,r?"":"!important")})},bl=!1;if(typeof window<"u")try{var Ma=Object.defineProperty({},"passive",{get:function(){return bl=!0,!0}});window.addEventListener("test",Ma,Ma),window.removeEventListener("test",Ma,Ma)}catch{bl=!1}var tn=bl?{passive:!1}:!1,dF=function(e){return e.tagName==="TEXTAREA"},o0=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!dF(e)&&r[t]==="visible")},fF=function(e){return o0(e,"overflowY")},mF=function(e){return o0(e,"overflowX")},lp=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=a0(e,n);if(o){var a=s0(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},pF=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},vF=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},a0=function(e,t){return e==="v"?fF(t):mF(t)},s0=function(e,t){return e==="v"?pF(t):vF(t)},gF=function(e,t){return e==="h"&&t==="rtl"?-1:1},hF=function(e,t,r,n,o){var a=gF(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,p=t.contains(s),l=!1,u=c>0,m=0,v=0;do{if(!s)break;var h=s0(e,s),x=h[0],d=h[1],g=h[2],b=d-g-a*x;(x||b)&&a0(e,s)&&(m+=b,v+=x);var y=s.parentNode;s=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!p&&s!==document.body||p&&(t.contains(s)||t===s));return(u&&Math.abs(m)<1||!u&&Math.abs(v)<1)&&(l=!0),l},Aa=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},dp=function(e){return[e.deltaX,e.deltaY]},fp=function(e){return e&&"current"in e?e.current:e},bF=function(e,t){return e[0]===t[0]&&e[1]===t[1]},yF=function(e){return`
494
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
495
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
496
+ `)},wF=0,rn=[];function xF(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(wF++)[0],a=i.useState(n0)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var d=YI([e.lockRef.current],(e.shards||[]).map(fp)).filter(Boolean);return d.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),d.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(d,g){if("touches"in d&&d.touches.length===2||d.type==="wheel"&&d.ctrlKey)return!c.current.allowPinchZoom;var b=Aa(d),y=r.current,w="deltaX"in d?d.deltaX:y[0]-b[0],E="deltaY"in d?d.deltaY:y[1]-b[1],j,T=d.target,S=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in d&&S==="h"&&T.type==="range")return!1;var R=lp(S,T);if(!R)return!0;if(R?j=S:(j=S==="v"?"h":"v",R=lp(S,T)),!R)return!1;if(!n.current&&"changedTouches"in d&&(w||E)&&(n.current=j),!j)return!0;var M=n.current||j;return hF(M,g,d,M==="h"?w:E)},[]),p=i.useCallback(function(d){var g=d;if(!(!rn.length||rn[rn.length-1]!==a)){var b="deltaY"in g?dp(g):Aa(g),y=t.current.filter(function(j){return j.name===g.type&&(j.target===g.target||g.target===j.shadowParent)&&bF(j.delta,b)})[0];if(y&&y.should){g.cancelable&&g.preventDefault();return}if(!y){var w=(c.current.shards||[]).map(fp).filter(Boolean).filter(function(j){return j.contains(g.target)}),E=w.length>0?s(g,w[0]):!c.current.noIsolation;E&&g.cancelable&&g.preventDefault()}}},[]),l=i.useCallback(function(d,g,b,y){var w={name:d,delta:g,target:b,should:y,shadowParent:EF(b)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),u=i.useCallback(function(d){r.current=Aa(d),n.current=void 0},[]),m=i.useCallback(function(d){l(d.type,dp(d),d.target,s(d,e.lockRef.current))},[]),v=i.useCallback(function(d){l(d.type,Aa(d),d.target,s(d,e.lockRef.current))},[]);i.useEffect(function(){return rn.push(a),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:v}),document.addEventListener("wheel",p,tn),document.addEventListener("touchmove",p,tn),document.addEventListener("touchstart",u,tn),function(){rn=rn.filter(function(d){return d!==a}),document.removeEventListener("wheel",p,tn),document.removeEventListener("touchmove",p,tn),document.removeEventListener("touchstart",u,tn)}},[]);var h=e.removeScrollBar,x=e.inert;return i.createElement(i.Fragment,null,x?i.createElement(a,{styles:yF(o)}):null,h?i.createElement(lF,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function EF(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const kF=ZI(r0,xF);var i0=i.forwardRef(function(e,t){return i.createElement(Ri,it({},e,{ref:t,sideCar:kF}))});i0.classNames=Ri.classNames;var SF=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},nn=new WeakMap,Ia=new WeakMap,Fa={},iu=0,c0=function(e){return e&&(e.host||c0(e.parentNode))},jF=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=c0(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},CF=function(e,t,r,n){var o=jF(t,Array.isArray(e)?e:[e]);Fa[r]||(Fa[r]=new WeakMap);var a=Fa[r],c=[],s=new Set,p=new Set(o),l=function(m){!m||s.has(m)||(s.add(m),l(m.parentNode))};o.forEach(l);var u=function(m){!m||p.has(m)||Array.prototype.forEach.call(m.children,function(v){if(s.has(v))u(v);else try{var h=v.getAttribute(n),x=h!==null&&h!=="false",d=(nn.get(v)||0)+1,g=(a.get(v)||0)+1;nn.set(v,d),a.set(v,g),c.push(v),d===1&&x&&Ia.set(v,!0),g===1&&v.setAttribute(r,"true"),x||v.setAttribute(n,"true")}catch(b){console.error("aria-hidden: cannot operate on ",v,b)}})};return u(t),s.clear(),iu++,function(){c.forEach(function(m){var v=nn.get(m)-1,h=a.get(m)-1;nn.set(m,v),a.set(m,h),v||(Ia.has(m)||m.removeAttribute(n),Ia.delete(m)),h||m.removeAttribute(r)}),iu--,iu||(nn=new WeakMap,nn=new WeakMap,Ia=new WeakMap,Fa={})}},RF=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=SF(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),CF(n,o,r,"aria-hidden")):function(){return null}},u0="Dialog",[l0]=ji(u0),[a8,Dt]=l0(u0),d0="DialogTrigger",NF=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Dt(d0,r),a=wt(t,o.triggerRef);return ee.jsx(De.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":bd(o.open),...n,ref:a,onClick:xe(e.onClick,o.onOpenToggle)})});NF.displayName=d0;var TF="DialogPortal",[s8,f0]=l0(TF,{forceMount:void 0}),qs="DialogOverlay",OF=i.forwardRef((e,t)=>{const r=f0(qs,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Dt(qs,e.__scopeDialog);return a.modal?ee.jsx(Ci,{present:n||a.open,children:ee.jsx(DF,{...o,ref:t})}):null});OF.displayName=qs;var _F=oe.createSlot("DialogOverlay.RemoveScroll"),DF=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Dt(qs,r);return ee.jsx(i0,{as:_F,allowPinchZoom:!0,shards:[o.contentRef],children:ee.jsx(De.div,{"data-state":bd(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Sr="DialogContent",PF=i.forwardRef((e,t)=>{const r=f0(Sr,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Dt(Sr,e.__scopeDialog);return ee.jsx(Ci,{present:n||a.open,children:a.modal?ee.jsx(MF,{...o,ref:t}):ee.jsx(AF,{...o,ref:t})})});PF.displayName=Sr;var MF=i.forwardRef((e,t)=>{const r=Dt(Sr,e.__scopeDialog),n=i.useRef(null),o=wt(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return RF(a)},[]),ee.jsx(m0,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:xe(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:xe(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:xe(e.onFocusOutside,a=>a.preventDefault())})}),AF=i.forwardRef((e,t)=>{const r=Dt(Sr,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return ee.jsx(m0,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=a.target;r.triggerRef.current?.contains(c)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),m0=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=Dt(Sr,r),p=i.useRef(null),l=wt(t,p);return $I(),ee.jsxs(ee.Fragment,{children:[ee.jsx(Jy,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:ee.jsx(Gy,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":bd(s.open),...c,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),ee.jsxs(ee.Fragment,{children:[ee.jsx(WF,{titleId:s.titleId}),ee.jsx($F,{contentRef:p,descriptionId:s.descriptionId})]})]})}),hd="DialogTitle",IF=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Dt(hd,r);return ee.jsx(De.h2,{id:o.titleId,...n,ref:t})});IF.displayName=hd;var p0="DialogDescription",FF=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Dt(p0,r);return ee.jsx(De.p,{id:o.descriptionId,...n,ref:t})});FF.displayName=p0;var v0="DialogClose",LF=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Dt(v0,r);return ee.jsx(De.button,{type:"button",...n,ref:t,onClick:xe(e.onClick,()=>o.onOpenChange(!1))})});LF.displayName=v0;function bd(e){return e?"open":"closed"}var g0="DialogTitleWarning",[i8,h0]=fI(g0,{contentName:Sr,titleName:hd,docsSlug:"dialog"}),WF=({titleId:e})=>{const t=h0(g0),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
497
+
498
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
499
+
500
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},zF="DialogDescriptionWarning",$F=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${h0(zF).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},cu={exports:{}},to={};/**
501
+ * @license React
502
+ * react-jsx-runtime.production.js
503
+ *
504
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
505
+ *
506
+ * This source code is licensed under the MIT license found in the
507
+ * LICENSE file in the root directory of this source tree.
508
+ */var mp;function YF(){if(mp)return to;mp=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var c=null;if(a!==void 0&&(c=""+a),o.key!==void 0&&(c=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:c,ref:o!==void 0?o:null,props:a}}return to.Fragment=t,to.jsx=r,to.jsxs=r,to}var La={};/**
509
+ * @license React
510
+ * react-jsx-runtime.development.js
511
+ *
512
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
513
+ *
514
+ * This source code is licensed under the MIT license found in the
515
+ * LICENSE file in the root directory of this source tree.
516
+ */var pp;function UF(){return pp||(pp=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===L?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case d:return"Fragment";case b:return"Profiler";case g:return"StrictMode";case j:return"Suspense";case T:return"SuspenseList";case M:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case x:return"Portal";case w:return(f.displayName||"Context")+".Provider";case y:return(f._context.displayName||"Context")+".Consumer";case E:var k=f.render;return f=f.displayName,f||(f=k.displayName||k.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case S:return k=f.displayName||null,k!==null?k:e(f.type)||"Memo";case R:k=f._payload,f=f._init;try{return e(f(k))}catch{}}return null}function t(f){return""+f}function r(f){try{t(f);var k=!1}catch{k=!0}if(k){k=console;var N=k.error,O=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return N.call(k,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",O),t(f)}}function n(f){if(f===d)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===R)return"<...>";try{var k=e(f);return k?"<"+k+">":"<...>"}catch{return"<...>"}}function o(){var f=I.A;return f===null?null:f.getOwner()}function a(){return Error("react-stack-top-frame")}function c(f){if(B.call(f,"key")){var k=Object.getOwnPropertyDescriptor(f,"key").get;if(k&&k.isReactWarning)return!1}return f.key!==void 0}function s(f,k){function N(){D||(D=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",k))}N.isReactWarning=!0,Object.defineProperty(f,"key",{get:N,configurable:!0})}function p(){var f=e(this.type);return Y[f]||(Y[f]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),f=this.props.ref,f!==void 0?f:null}function l(f,k,N,O,W,A,ae,X){return N=A.ref,f={$$typeof:h,type:f,key:k,props:A,_owner:W},(N!==void 0?N:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:p}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ae}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function u(f,k,N,O,W,A,ae,X){var _=k.children;if(_!==void 0)if(O)if(K(_)){for(O=0;O<_.length;O++)m(_[O]);Object.freeze&&Object.freeze(_)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else m(_);if(B.call(k,"key")){_=e(f);var $=Object.keys(k).filter(function(fe){return fe!=="key"});O=0<$.length?"{key: someKey, "+$.join(": ..., ")+": ...}":"{key: someKey}",V[_+O]||($=0<$.length?"{"+$.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
517
+ let props = %s;
518
+ <%s {...props} />
519
+ React keys must be passed directly to JSX without using spread:
520
+ let props = %s;
521
+ <%s key={someKey} {...props} />`,O,_,$,_),V[_+O]=!0)}if(_=null,N!==void 0&&(r(N),_=""+N),c(k)&&(r(k.key),_=""+k.key),"key"in k){N={};for(var se in k)se!=="key"&&(N[se]=k[se])}else N=k;return _&&s(N,typeof f=="function"?f.displayName||f.name||"Unknown":f),l(f,_,A,W,o(),N,ae,X)}function m(f){typeof f=="object"&&f!==null&&f.$$typeof===h&&f._store&&(f._store.validated=1)}var v=P,h=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),w=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),M=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,K=Array.isArray,z=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(f){return f()}};var D,Y={},H=v.react_stack_bottom_frame.bind(v,a)(),U=z(n(a)),V={};La.Fragment=d,La.jsx=function(f,k,N,O,W){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,k,N,!1,O,W,A?Error("react-stack-top-frame"):H,A?z(n(f)):U)},La.jsxs=function(f,k,N,O,W){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,k,N,!0,O,W,A?Error("react-stack-top-frame"):H,A?z(n(f)):U)}})()),La}var vp;function BF(){return vp||(vp=1,process.env.NODE_ENV==="production"?cu.exports=YF():cu.exports=UF()),cu.exports}var te=BF();P.createContext({locale:void 0});var KF=(e,t,r,n,o,a,c,s)=>{let p=document.documentElement,l=["light","dark"];function u(h){(Array.isArray(e)?e:[e]).forEach(x=>{let d=x==="class",g=d&&a?o.map(b=>a[b]||b):o;d?(p.classList.remove(...g),p.classList.add(a&&a[h]?a[h]:h)):p.setAttribute(x,h)}),m(h)}function m(h){s&&l.includes(h)&&(p.style.colorScheme=h)}function v(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)u(n);else try{let h=localStorage.getItem(t)||r,x=c&&h==="system"?v():h;u(x)}catch{}};i.createContext(void 0);i.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:o,defaultTheme:a,value:c,themes:s,nonce:p,scriptProps:l})=>{let u=JSON.stringify([r,t,a,e,s,c,n,o]).slice(1,-1);return i.createElement("script",{...l,suppressHydrationWarning:!0,nonce:typeof window>"u"?p:"",dangerouslySetInnerHTML:{__html:`(${KF.toString()})(${u})`}})});me.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});me.cva("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function Ee(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function gp(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function HF(...e){return t=>{let r=!1;const n=e.map(o=>{const a=gp(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():gp(e[o],null)}}}}function xt(...e){return i.useCallback(HF(...e),e)}function VF(e,t){const r=i.createContext(t),n=a=>{const{children:c,...s}=a,p=i.useMemo(()=>s,Object.values(s));return te.jsx(r.Provider,{value:p,children:c})};n.displayName=e+"Provider";function o(a){const c=i.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function Ni(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),p=r.length;r=[...r,c];const l=m=>{const{scope:v,children:h,...x}=m,d=v?.[e]?.[p]||s,g=i.useMemo(()=>x,Object.values(x));return te.jsx(d.Provider,{value:g,children:h})};l.displayName=a+"Provider";function u(m,v){const h=v?.[e]?.[p]||s,x=i.useContext(h);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${m}\` must be used within \`${a}\``)}return[l,u]}const o=()=>{const a=r.map(c=>i.createContext(c));return function(c){const s=c?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:s}}),[c,s])}};return o.scopeName=e,[n,XF(o,...t)]}function XF(...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(o){const a=n.reduce((c,{useScope:s,scopeName:p})=>{const l=s(o)[`__scope${p}`];return{...c,...l}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var xo=globalThis?.document?i.useLayoutEffect:()=>{},qF=i[" useId ".trim().toString()]||(()=>{}),GF=0;function b0(e){const[t,r]=i.useState(qF());return xo(()=>{r(n=>n??String(GF++))},[e]),t?`radix-${t}`:""}var ZF=i[" useInsertionEffect ".trim().toString()]||xo;function y0({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,c]=JF({defaultProp:t,onChange:r}),s=e!==void 0,p=s?e:o;{const u=i.useRef(e!==void 0);i.useEffect(()=>{const m=u.current;m!==s&&console.warn(`${n} is changing from ${m?"controlled":"uncontrolled"} to ${s?"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.`),u.current=s},[s,n])}const l=i.useCallback(u=>{if(s){const m=QF(u)?u(e):u;m!==e&&c.current?.(m)}else a(u)},[s,e,a,c]);return[p,l]}function JF({defaultProp:e,onChange:t}){const[r,n]=i.useState(e),o=i.useRef(r),a=i.useRef(t);return ZF(()=>{a.current=t},[t]),i.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}function QF(e){return typeof e=="function"}var eL=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Pe=eL.reduce((e,t)=>{const r=oe.createSlot(`Primitive.${t}`),n=i.forwardRef((o,a)=>{const{asChild:c,...s}=o,p=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),te.jsx(p,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function tL(e,t){e&&We.flushSync(()=>e.dispatchEvent(t))}function Fn(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function rL(e,t=globalThis?.document){const r=Fn(e);i.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 nL="DismissableLayer",yl="dismissableLayer.update",oL="dismissableLayer.pointerDownOutside",aL="dismissableLayer.focusOutside",hp,w0=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),x0=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...p}=e,l=i.useContext(w0),[u,m]=i.useState(null),v=u?.ownerDocument??globalThis?.document,[,h]=i.useState({}),x=xt(t,S=>m(S)),d=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),b=d.indexOf(g),y=u?d.indexOf(u):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,E=y>=b,j=cL(S=>{const R=S.target,M=[...l.branches].some(L=>L.contains(R));!E||M||(o?.(S),c?.(S),S.defaultPrevented||s?.())},v),T=uL(S=>{const R=S.target;[...l.branches].some(M=>M.contains(R))||(a?.(S),c?.(S),S.defaultPrevented||s?.())},v);return rL(S=>{y===l.layers.size-1&&(n?.(S),!S.defaultPrevented&&s&&(S.preventDefault(),s()))},v),i.useEffect(()=>{if(u)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(hp=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),bp(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=hp)}},[u,v,r,l]),i.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),bp())},[u,l]),i.useEffect(()=>{const S=()=>h({});return document.addEventListener(yl,S),()=>document.removeEventListener(yl,S)},[]),te.jsx(Pe.div,{...p,ref:x,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:Ee(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Ee(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Ee(e.onPointerDownCapture,j.onPointerDownCapture)})});x0.displayName=nL;var sL="DismissableLayerBranch",iL=i.forwardRef((e,t)=>{const r=i.useContext(w0),n=i.useRef(null),o=xt(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),te.jsx(Pe.div,{...e,ref:o})});iL.displayName=sL;function cL(e,t=globalThis?.document){const r=Fn(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let p=function(){E0(oL,r,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=p,t.addEventListener("click",o.current,{once:!0})):p()}else t.removeEventListener("click",o.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function uL(e,t=globalThis?.document){const r=Fn(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&E0(aL,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function bp(){const e=new CustomEvent(yl);document.dispatchEvent(e)}function E0(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?tL(o,a):o.dispatchEvent(a)}var uu="focusScope.autoFocusOnMount",lu="focusScope.autoFocusOnUnmount",yp={bubbles:!1,cancelable:!0},lL="FocusScope",k0=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,p]=i.useState(null),l=Fn(o),u=Fn(a),m=i.useRef(null),v=xt(t,d=>p(d)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let d=function(w){if(h.paused||!s)return;const E=w.target;s.contains(E)?m.current=E:rr(m.current,{select:!0})},g=function(w){if(h.paused||!s)return;const E=w.relatedTarget;E!==null&&(s.contains(E)||rr(m.current,{select:!0}))},b=function(w){if(document.activeElement===document.body)for(const E of w)E.removedNodes.length>0&&rr(s)};document.addEventListener("focusin",d),document.addEventListener("focusout",g);const y=new MutationObserver(b);return s&&y.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",d),document.removeEventListener("focusout",g),y.disconnect()}}},[n,s,h.paused]),i.useEffect(()=>{if(s){xp.add(h);const d=document.activeElement;if(!s.contains(d)){const g=new CustomEvent(uu,yp);s.addEventListener(uu,l),s.dispatchEvent(g),g.defaultPrevented||(dL(gL(S0(s)),{select:!0}),document.activeElement===d&&rr(s))}return()=>{s.removeEventListener(uu,l),setTimeout(()=>{const g=new CustomEvent(lu,yp);s.addEventListener(lu,u),s.dispatchEvent(g),g.defaultPrevented||rr(d??document.body,{select:!0}),s.removeEventListener(lu,u),xp.remove(h)},0)}}},[s,l,u,h]);const x=i.useCallback(d=>{if(!r&&!n||h.paused)return;const g=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,b=document.activeElement;if(g&&b){const y=d.currentTarget,[w,E]=fL(y);w&&E?!d.shiftKey&&b===E?(d.preventDefault(),r&&rr(w,{select:!0})):d.shiftKey&&b===w&&(d.preventDefault(),r&&rr(E,{select:!0})):b===y&&d.preventDefault()}},[r,n,h.paused]);return te.jsx(Pe.div,{tabIndex:-1,...c,ref:v,onKeyDown:x})});k0.displayName=lL;function dL(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(rr(n,{select:t}),document.activeElement!==r)return}function fL(e){const t=S0(e),r=wp(t,e),n=wp(t.reverse(),e);return[r,n]}function S0(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 wp(e,t){for(const r of e)if(!mL(r,{upTo:t}))return r}function mL(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 pL(e){return e instanceof HTMLInputElement&&"select"in e}function rr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&pL(e)&&t&&e.select()}}var xp=vL();function vL(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=Ep(e,t),e.unshift(t)},remove(t){e=Ep(e,t),e[0]?.resume()}}}function Ep(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function gL(e){return e.filter(t=>t.tagName!=="A")}var hL="Portal",bL=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);xo(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?Le.createPortal(te.jsx(Pe.div,{...n,ref:t}),c):null});bL.displayName=hL;function yL(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var Ti=e=>{const{present:t,children:r}=e,n=wL(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=xt(n.ref,xL(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};Ti.displayName="Presence";function wL(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,p]=yL(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const l=Wa(n.current);a.current=s==="mounted"?l:"none"},[s]),xo(()=>{const l=n.current,u=o.current;if(u!==e){const m=a.current,v=Wa(l);e?p("MOUNT"):v==="none"||l?.display==="none"?p("UNMOUNT"):p(u&&m!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,p]),xo(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,m=h=>{const x=Wa(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&x&&(p("ANIMATION_END"),!o.current)){const d=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=d)})}},v=h=>{h.target===t&&(a.current=Wa(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else p("ANIMATION_END")},[t,p]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function Wa(e){return e?.animationName||"none"}function xL(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var du=0;function EL(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??kp()),document.body.insertAdjacentElement("beforeend",e[1]??kp()),du++,()=>{du===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),du--}},[])}function kp(){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 ct=function(){return ct=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},ct.apply(this,arguments)};function j0(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 kL(e,t,r){for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var Cs="right-scroll-bar-position",Rs="width-before-scroll-bar",SL="with-scroll-bars-hidden",jL="--removed-body-scroll-bar-size";function fu(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function CL(e,t){var r=P.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 RL=typeof window<"u"?i.useLayoutEffect:i.useEffect,Sp=new WeakMap;function NL(e,t){var r=CL(null,function(n){return e.forEach(function(o){return fu(o,n)})});return RL(function(){var n=Sp.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||fu(s,null)}),a.forEach(function(s){o.has(s)||fu(s,c)})}Sp.set(r,e)},[e]),r}function TL(e){return e}function OL(e,t){t===void 0&&(t=TL);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(a){var c=t(a,n);return r.push(c),function(){r=r.filter(function(s){return s!==c})}},assignSyncMedium:function(a){for(n=!0;r.length;){var c=r;r=[],c.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var c=[];if(r.length){var s=r;r=[],s.forEach(a),c=r}var p=function(){var u=c;c=[],u.forEach(a)},l=function(){return Promise.resolve().then(p)};l(),r={push:function(u){c.push(u),l()},filter:function(u){return c=c.filter(u),r}}}};return o}function _L(e){e===void 0&&(e={});var t=OL(null);return t.options=ct({async:!0,ssr:!1},e),t}var C0=function(e){var t=e.sideCar,r=j0(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 i.createElement(n,ct({},r))};C0.isSideCarExport=!0;function DL(e,t){return e.useMedium(t),C0}var R0=_L(),mu=function(){},Oi=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:mu,onWheelCapture:mu,onTouchMoveCapture:mu}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,p=e.className,l=e.removeScrollBar,u=e.enabled,m=e.shards,v=e.sideCar,h=e.noRelative,x=e.noIsolation,d=e.inert,g=e.allowPinchZoom,b=e.as,y=b===void 0?"div":b,w=e.gapMode,E=j0(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),j=v,T=NL([r,t]),S=ct(ct({},E),o);return i.createElement(i.Fragment,null,u&&i.createElement(j,{sideCar:R0,removeScrollBar:l,shards:m,noRelative:h,noIsolation:x,inert:d,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),ct(ct({},S),{ref:T})):i.createElement(y,ct({},S,{className:p,ref:T}),s))});Oi.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Oi.classNames={fullWidth:Rs,zeroRight:Cs};var PL=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function ML(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=PL();return t&&e.setAttribute("nonce",t),e}function AL(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function IL(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var FL=function(){var e=0,t=null;return{add:function(r){e==0&&(t=ML())&&(AL(t,r),IL(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},LL=function(){var e=FL();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},N0=function(){var e=LL(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},WL={left:0,top:0,right:0,gap:0},pu=function(e){return parseInt(e||"",10)||0},zL=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[pu(r),pu(n),pu(o)]},$L=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return WL;var t=zL(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])}},YL=N0(),Cn="data-scroll-locked",UL=function(e,t,r,n){var o=e.left,a=e.top,c=e.right,s=e.gap;return r===void 0&&(r="margin"),`
522
+ .`.concat(SL,` {
523
+ overflow: hidden `).concat(n,`;
524
+ padding-right: `).concat(s,"px ").concat(n,`;
525
+ }
526
+ body[`).concat(Cn,`] {
527
+ overflow: hidden `).concat(n,`;
528
+ overscroll-behavior: contain;
529
+ `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
530
+ padding-left: `.concat(o,`px;
531
+ padding-top: `).concat(a,`px;
532
+ padding-right: `).concat(c,`px;
533
+ margin-left:0;
534
+ margin-top:0;
535
+ margin-right: `).concat(s,"px ").concat(n,`;
536
+ `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
537
+ }
538
+
539
+ .`).concat(Cs,` {
540
+ right: `).concat(s,"px ").concat(n,`;
541
+ }
542
+
543
+ .`).concat(Rs,` {
544
+ margin-right: `).concat(s,"px ").concat(n,`;
545
+ }
546
+
547
+ .`).concat(Cs," .").concat(Cs,` {
548
+ right: 0 `).concat(n,`;
549
+ }
550
+
551
+ .`).concat(Rs," .").concat(Rs,` {
552
+ margin-right: 0 `).concat(n,`;
553
+ }
554
+
555
+ body[`).concat(Cn,`] {
556
+ `).concat(jL,": ").concat(s,`px;
557
+ }
558
+ `)},jp=function(){var e=parseInt(document.body.getAttribute(Cn)||"0",10);return isFinite(e)?e:0},BL=function(){i.useEffect(function(){return document.body.setAttribute(Cn,(jp()+1).toString()),function(){var e=jp()-1;e<=0?document.body.removeAttribute(Cn):document.body.setAttribute(Cn,e.toString())}},[])},KL=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;BL();var a=i.useMemo(function(){return $L(o)},[o]);return i.createElement(YL,{styles:UL(a,!t,o,r?"":"!important")})},wl=!1;if(typeof window<"u")try{var za=Object.defineProperty({},"passive",{get:function(){return wl=!0,!0}});window.addEventListener("test",za,za),window.removeEventListener("test",za,za)}catch{wl=!1}var on=wl?{passive:!1}:!1,HL=function(e){return e.tagName==="TEXTAREA"},T0=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!HL(e)&&r[t]==="visible")},VL=function(e){return T0(e,"overflowY")},XL=function(e){return T0(e,"overflowX")},Cp=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=O0(e,n);if(o){var a=_0(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},qL=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},GL=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},O0=function(e,t){return e==="v"?VL(t):XL(t)},_0=function(e,t){return e==="v"?qL(t):GL(t)},ZL=function(e,t){return e==="h"&&t==="rtl"?-1:1},JL=function(e,t,r,n,o){var a=ZL(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,p=t.contains(s),l=!1,u=c>0,m=0,v=0;do{if(!s)break;var h=_0(e,s),x=h[0],d=h[1],g=h[2],b=d-g-a*x;(x||b)&&O0(e,s)&&(m+=b,v+=x);var y=s.parentNode;s=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!p&&s!==document.body||p&&(t.contains(s)||t===s));return(u&&Math.abs(m)<1||!u&&Math.abs(v)<1)&&(l=!0),l},$a=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Rp=function(e){return[e.deltaX,e.deltaY]},Np=function(e){return e&&"current"in e?e.current:e},QL=function(e,t){return e[0]===t[0]&&e[1]===t[1]},e2=function(e){return`
559
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
560
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
561
+ `)},t2=0,an=[];function r2(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(t2++)[0],a=i.useState(N0)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var d=kL([e.lockRef.current],(e.shards||[]).map(Np)).filter(Boolean);return d.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),d.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(d,g){if("touches"in d&&d.touches.length===2||d.type==="wheel"&&d.ctrlKey)return!c.current.allowPinchZoom;var b=$a(d),y=r.current,w="deltaX"in d?d.deltaX:y[0]-b[0],E="deltaY"in d?d.deltaY:y[1]-b[1],j,T=d.target,S=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in d&&S==="h"&&T.type==="range")return!1;var R=Cp(S,T);if(!R)return!0;if(R?j=S:(j=S==="v"?"h":"v",R=Cp(S,T)),!R)return!1;if(!n.current&&"changedTouches"in d&&(w||E)&&(n.current=j),!j)return!0;var M=n.current||j;return JL(M,g,d,M==="h"?w:E)},[]),p=i.useCallback(function(d){var g=d;if(!(!an.length||an[an.length-1]!==a)){var b="deltaY"in g?Rp(g):$a(g),y=t.current.filter(function(j){return j.name===g.type&&(j.target===g.target||g.target===j.shadowParent)&&QL(j.delta,b)})[0];if(y&&y.should){g.cancelable&&g.preventDefault();return}if(!y){var w=(c.current.shards||[]).map(Np).filter(Boolean).filter(function(j){return j.contains(g.target)}),E=w.length>0?s(g,w[0]):!c.current.noIsolation;E&&g.cancelable&&g.preventDefault()}}},[]),l=i.useCallback(function(d,g,b,y){var w={name:d,delta:g,target:b,should:y,shadowParent:n2(b)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),u=i.useCallback(function(d){r.current=$a(d),n.current=void 0},[]),m=i.useCallback(function(d){l(d.type,Rp(d),d.target,s(d,e.lockRef.current))},[]),v=i.useCallback(function(d){l(d.type,$a(d),d.target,s(d,e.lockRef.current))},[]);i.useEffect(function(){return an.push(a),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:v}),document.addEventListener("wheel",p,on),document.addEventListener("touchmove",p,on),document.addEventListener("touchstart",u,on),function(){an=an.filter(function(d){return d!==a}),document.removeEventListener("wheel",p,on),document.removeEventListener("touchmove",p,on),document.removeEventListener("touchstart",u,on)}},[]);var h=e.removeScrollBar,x=e.inert;return i.createElement(i.Fragment,null,x?i.createElement(a,{styles:e2(o)}):null,h?i.createElement(KL,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function n2(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const o2=DL(R0,r2);var D0=i.forwardRef(function(e,t){return i.createElement(Oi,ct({},e,{ref:t,sideCar:o2}))});D0.classNames=Oi.classNames;var a2=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},sn=new WeakMap,Ya=new WeakMap,Ua={},vu=0,P0=function(e){return e&&(e.host||P0(e.parentNode))},s2=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=P0(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},i2=function(e,t,r,n){var o=s2(t,Array.isArray(e)?e:[e]);Ua[r]||(Ua[r]=new WeakMap);var a=Ua[r],c=[],s=new Set,p=new Set(o),l=function(m){!m||s.has(m)||(s.add(m),l(m.parentNode))};o.forEach(l);var u=function(m){!m||p.has(m)||Array.prototype.forEach.call(m.children,function(v){if(s.has(v))u(v);else try{var h=v.getAttribute(n),x=h!==null&&h!=="false",d=(sn.get(v)||0)+1,g=(a.get(v)||0)+1;sn.set(v,d),a.set(v,g),c.push(v),d===1&&x&&Ya.set(v,!0),g===1&&v.setAttribute(r,"true"),x||v.setAttribute(n,"true")}catch(b){console.error("aria-hidden: cannot operate on ",v,b)}})};return u(t),s.clear(),vu++,function(){c.forEach(function(m){var v=sn.get(m)-1,h=a.get(m)-1;sn.set(m,v),a.set(m,h),v||(Ya.has(m)||m.removeAttribute(n),Ya.delete(m)),h||m.removeAttribute(r)}),vu--,vu||(sn=new WeakMap,sn=new WeakMap,Ya=new WeakMap,Ua={})}},c2=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=a2(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),i2(n,o,r,"aria-hidden")):function(){return null}},M0="Dialog",[A0]=Ni(M0),[c8,Pt]=A0(M0),I0="DialogTrigger",u2=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Pt(I0,r),a=xt(t,o.triggerRef);return te.jsx(Pe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":wd(o.open),...n,ref:a,onClick:Ee(e.onClick,o.onOpenToggle)})});u2.displayName=I0;var l2="DialogPortal",[u8,F0]=A0(l2,{forceMount:void 0}),Gs="DialogOverlay",d2=i.forwardRef((e,t)=>{const r=F0(Gs,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Pt(Gs,e.__scopeDialog);return a.modal?te.jsx(Ti,{present:n||a.open,children:te.jsx(m2,{...o,ref:t})}):null});d2.displayName=Gs;var f2=oe.createSlot("DialogOverlay.RemoveScroll"),m2=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Pt(Gs,r);return te.jsx(D0,{as:f2,allowPinchZoom:!0,shards:[o.contentRef],children:te.jsx(Pe.div,{"data-state":wd(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),jr="DialogContent",p2=i.forwardRef((e,t)=>{const r=F0(jr,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Pt(jr,e.__scopeDialog);return te.jsx(Ti,{present:n||a.open,children:a.modal?te.jsx(v2,{...o,ref:t}):te.jsx(g2,{...o,ref:t})})});p2.displayName=jr;var v2=i.forwardRef((e,t)=>{const r=Pt(jr,e.__scopeDialog),n=i.useRef(null),o=xt(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return c2(a)},[]),te.jsx(L0,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ee(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:Ee(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:Ee(e.onFocusOutside,a=>a.preventDefault())})}),g2=i.forwardRef((e,t)=>{const r=Pt(jr,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return te.jsx(L0,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=a.target;r.triggerRef.current?.contains(c)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),L0=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=Pt(jr,r),p=i.useRef(null),l=xt(t,p);return EL(),te.jsxs(te.Fragment,{children:[te.jsx(k0,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:te.jsx(x0,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":wd(s.open),...c,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),te.jsxs(te.Fragment,{children:[te.jsx(w2,{titleId:s.titleId}),te.jsx(E2,{contentRef:p,descriptionId:s.descriptionId})]})]})}),yd="DialogTitle",h2=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Pt(yd,r);return te.jsx(Pe.h2,{id:o.titleId,...n,ref:t})});h2.displayName=yd;var W0="DialogDescription",b2=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Pt(W0,r);return te.jsx(Pe.p,{id:o.descriptionId,...n,ref:t})});b2.displayName=W0;var z0="DialogClose",y2=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Pt(z0,r);return te.jsx(Pe.button,{type:"button",...n,ref:t,onClick:Ee(e.onClick,()=>o.onOpenChange(!1))})});y2.displayName=z0;function wd(e){return e?"open":"closed"}var $0="DialogTitleWarning",[l8,Y0]=VF($0,{contentName:jr,titleName:yd,docsSlug:"dialog"}),w2=({titleId:e})=>{const t=Y0($0),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
562
+
563
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
564
+
565
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},x2="DialogDescriptionWarning",E2=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Y0(x2).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},gu={exports:{}},ro={};/**
566
+ * @license React
567
+ * react-jsx-runtime.production.js
568
+ *
569
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
570
+ *
571
+ * This source code is licensed under the MIT license found in the
572
+ * LICENSE file in the root directory of this source tree.
573
+ */var Tp;function k2(){if(Tp)return ro;Tp=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var c=null;if(a!==void 0&&(c=""+a),o.key!==void 0&&(c=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:c,ref:o!==void 0?o:null,props:a}}return ro.Fragment=t,ro.jsx=r,ro.jsxs=r,ro}var Ba={};/**
574
+ * @license React
575
+ * react-jsx-runtime.development.js
576
+ *
577
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
578
+ *
579
+ * This source code is licensed under the MIT license found in the
580
+ * LICENSE file in the root directory of this source tree.
581
+ */var Op;function S2(){return Op||(Op=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===L?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case d:return"Fragment";case b:return"Profiler";case g:return"StrictMode";case j:return"Suspense";case T:return"SuspenseList";case M:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case x:return"Portal";case w:return(f.displayName||"Context")+".Provider";case y:return(f._context.displayName||"Context")+".Consumer";case E:var k=f.render;return f=f.displayName,f||(f=k.displayName||k.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case S:return k=f.displayName||null,k!==null?k:e(f.type)||"Memo";case R:k=f._payload,f=f._init;try{return e(f(k))}catch{}}return null}function t(f){return""+f}function r(f){try{t(f);var k=!1}catch{k=!0}if(k){k=console;var N=k.error,O=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return N.call(k,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",O),t(f)}}function n(f){if(f===d)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===R)return"<...>";try{var k=e(f);return k?"<"+k+">":"<...>"}catch{return"<...>"}}function o(){var f=I.A;return f===null?null:f.getOwner()}function a(){return Error("react-stack-top-frame")}function c(f){if(B.call(f,"key")){var k=Object.getOwnPropertyDescriptor(f,"key").get;if(k&&k.isReactWarning)return!1}return f.key!==void 0}function s(f,k){function N(){D||(D=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",k))}N.isReactWarning=!0,Object.defineProperty(f,"key",{get:N,configurable:!0})}function p(){var f=e(this.type);return Y[f]||(Y[f]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),f=this.props.ref,f!==void 0?f:null}function l(f,k,N,O,W,A,ae,X){return N=A.ref,f={$$typeof:h,type:f,key:k,props:A,_owner:W},(N!==void 0?N:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:p}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ae}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function u(f,k,N,O,W,A,ae,X){var _=k.children;if(_!==void 0)if(O)if(K(_)){for(O=0;O<_.length;O++)m(_[O]);Object.freeze&&Object.freeze(_)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else m(_);if(B.call(k,"key")){_=e(f);var $=Object.keys(k).filter(function(fe){return fe!=="key"});O=0<$.length?"{key: someKey, "+$.join(": ..., ")+": ...}":"{key: someKey}",V[_+O]||($=0<$.length?"{"+$.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
582
+ let props = %s;
583
+ <%s {...props} />
584
+ React keys must be passed directly to JSX without using spread:
585
+ let props = %s;
586
+ <%s key={someKey} {...props} />`,O,_,$,_),V[_+O]=!0)}if(_=null,N!==void 0&&(r(N),_=""+N),c(k)&&(r(k.key),_=""+k.key),"key"in k){N={};for(var se in k)se!=="key"&&(N[se]=k[se])}else N=k;return _&&s(N,typeof f=="function"?f.displayName||f.name||"Unknown":f),l(f,_,A,W,o(),N,ae,X)}function m(f){typeof f=="object"&&f!==null&&f.$$typeof===h&&f._store&&(f._store.validated=1)}var v=P,h=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),w=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),M=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,K=Array.isArray,z=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(f){return f()}};var D,Y={},H=v.react_stack_bottom_frame.bind(v,a)(),U=z(n(a)),V={};Ba.Fragment=d,Ba.jsx=function(f,k,N,O,W){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,k,N,!1,O,W,A?Error("react-stack-top-frame"):H,A?z(n(f)):U)},Ba.jsxs=function(f,k,N,O,W){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,k,N,!0,O,W,A?Error("react-stack-top-frame"):H,A?z(n(f)):U)}})()),Ba}var _p;function j2(){return _p||(_p=1,process.env.NODE_ENV==="production"?gu.exports=k2():gu.exports=S2()),gu.exports}var re=j2();P.createContext({locale:void 0});var C2=(e,t,r,n,o,a,c,s)=>{let p=document.documentElement,l=["light","dark"];function u(h){(Array.isArray(e)?e:[e]).forEach(x=>{let d=x==="class",g=d&&a?o.map(b=>a[b]||b):o;d?(p.classList.remove(...g),p.classList.add(a&&a[h]?a[h]:h)):p.setAttribute(x,h)}),m(h)}function m(h){s&&l.includes(h)&&(p.style.colorScheme=h)}function v(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)u(n);else try{let h=localStorage.getItem(t)||r,x=c&&h==="system"?v():h;u(x)}catch{}};i.createContext(void 0);i.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:o,defaultTheme:a,value:c,themes:s,nonce:p,scriptProps:l})=>{let u=JSON.stringify([r,t,a,e,s,c,n,o]).slice(1,-1);return i.createElement("script",{...l,suppressHydrationWarning:!0,nonce:typeof window>"u"?p:"",dangerouslySetInnerHTML:{__html:`(${C2.toString()})(${u})`}})});me.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});me.cva("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function ke(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function Dp(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function R2(...e){return t=>{let r=!1;const n=e.map(o=>{const a=Dp(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():Dp(e[o],null)}}}}function Et(...e){return i.useCallback(R2(...e),e)}function N2(e,t){const r=i.createContext(t),n=a=>{const{children:c,...s}=a,p=i.useMemo(()=>s,Object.values(s));return re.jsx(r.Provider,{value:p,children:c})};n.displayName=e+"Provider";function o(a){const c=i.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function _i(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),p=r.length;r=[...r,c];const l=m=>{const{scope:v,children:h,...x}=m,d=v?.[e]?.[p]||s,g=i.useMemo(()=>x,Object.values(x));return re.jsx(d.Provider,{value:g,children:h})};l.displayName=a+"Provider";function u(m,v){const h=v?.[e]?.[p]||s,x=i.useContext(h);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${m}\` must be used within \`${a}\``)}return[l,u]}const o=()=>{const a=r.map(c=>i.createContext(c));return function(c){const s=c?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:s}}),[c,s])}};return o.scopeName=e,[n,T2(o,...t)]}function T2(...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(o){const a=n.reduce((c,{useScope:s,scopeName:p})=>{const l=s(o)[`__scope${p}`];return{...c,...l}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var Eo=globalThis?.document?i.useLayoutEffect:()=>{},O2=i[" useId ".trim().toString()]||(()=>{}),_2=0;function U0(e){const[t,r]=i.useState(O2());return Eo(()=>{r(n=>n??String(_2++))},[e]),t?`radix-${t}`:""}var D2=i[" useInsertionEffect ".trim().toString()]||Eo;function B0({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,c]=P2({defaultProp:t,onChange:r}),s=e!==void 0,p=s?e:o;{const u=i.useRef(e!==void 0);i.useEffect(()=>{const m=u.current;m!==s&&console.warn(`${n} is changing from ${m?"controlled":"uncontrolled"} to ${s?"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.`),u.current=s},[s,n])}const l=i.useCallback(u=>{if(s){const m=M2(u)?u(e):u;m!==e&&c.current?.(m)}else a(u)},[s,e,a,c]);return[p,l]}function P2({defaultProp:e,onChange:t}){const[r,n]=i.useState(e),o=i.useRef(r),a=i.useRef(t);return D2(()=>{a.current=t},[t]),i.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}function M2(e){return typeof e=="function"}var A2=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Me=A2.reduce((e,t)=>{const r=oe.createSlot(`Primitive.${t}`),n=i.forwardRef((o,a)=>{const{asChild:c,...s}=o,p=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),re.jsx(p,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function I2(e,t){e&&We.flushSync(()=>e.dispatchEvent(t))}function Ln(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function F2(e,t=globalThis?.document){const r=Ln(e);i.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 L2="DismissableLayer",xl="dismissableLayer.update",W2="dismissableLayer.pointerDownOutside",z2="dismissableLayer.focusOutside",Pp,K0=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),H0=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...p}=e,l=i.useContext(K0),[u,m]=i.useState(null),v=u?.ownerDocument??globalThis?.document,[,h]=i.useState({}),x=Et(t,S=>m(S)),d=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),b=d.indexOf(g),y=u?d.indexOf(u):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,E=y>=b,j=U2(S=>{const R=S.target,M=[...l.branches].some(L=>L.contains(R));!E||M||(o?.(S),c?.(S),S.defaultPrevented||s?.())},v),T=B2(S=>{const R=S.target;[...l.branches].some(M=>M.contains(R))||(a?.(S),c?.(S),S.defaultPrevented||s?.())},v);return F2(S=>{y===l.layers.size-1&&(n?.(S),!S.defaultPrevented&&s&&(S.preventDefault(),s()))},v),i.useEffect(()=>{if(u)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Pp=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),Mp(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Pp)}},[u,v,r,l]),i.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),Mp())},[u,l]),i.useEffect(()=>{const S=()=>h({});return document.addEventListener(xl,S),()=>document.removeEventListener(xl,S)},[]),re.jsx(Me.div,{...p,ref:x,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:ke(e.onFocusCapture,T.onFocusCapture),onBlurCapture:ke(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:ke(e.onPointerDownCapture,j.onPointerDownCapture)})});H0.displayName=L2;var $2="DismissableLayerBranch",Y2=i.forwardRef((e,t)=>{const r=i.useContext(K0),n=i.useRef(null),o=Et(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),re.jsx(Me.div,{...e,ref:o})});Y2.displayName=$2;function U2(e,t=globalThis?.document){const r=Ln(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let p=function(){V0(W2,r,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=p,t.addEventListener("click",o.current,{once:!0})):p()}else t.removeEventListener("click",o.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function B2(e,t=globalThis?.document){const r=Ln(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&V0(z2,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Mp(){const e=new CustomEvent(xl);document.dispatchEvent(e)}function V0(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?I2(o,a):o.dispatchEvent(a)}var hu="focusScope.autoFocusOnMount",bu="focusScope.autoFocusOnUnmount",Ap={bubbles:!1,cancelable:!0},K2="FocusScope",X0=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,p]=i.useState(null),l=Ln(o),u=Ln(a),m=i.useRef(null),v=Et(t,d=>p(d)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let d=function(w){if(h.paused||!s)return;const E=w.target;s.contains(E)?m.current=E:nr(m.current,{select:!0})},g=function(w){if(h.paused||!s)return;const E=w.relatedTarget;E!==null&&(s.contains(E)||nr(m.current,{select:!0}))},b=function(w){if(document.activeElement===document.body)for(const E of w)E.removedNodes.length>0&&nr(s)};document.addEventListener("focusin",d),document.addEventListener("focusout",g);const y=new MutationObserver(b);return s&&y.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",d),document.removeEventListener("focusout",g),y.disconnect()}}},[n,s,h.paused]),i.useEffect(()=>{if(s){Fp.add(h);const d=document.activeElement;if(!s.contains(d)){const g=new CustomEvent(hu,Ap);s.addEventListener(hu,l),s.dispatchEvent(g),g.defaultPrevented||(H2(Z2(q0(s)),{select:!0}),document.activeElement===d&&nr(s))}return()=>{s.removeEventListener(hu,l),setTimeout(()=>{const g=new CustomEvent(bu,Ap);s.addEventListener(bu,u),s.dispatchEvent(g),g.defaultPrevented||nr(d??document.body,{select:!0}),s.removeEventListener(bu,u),Fp.remove(h)},0)}}},[s,l,u,h]);const x=i.useCallback(d=>{if(!r&&!n||h.paused)return;const g=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,b=document.activeElement;if(g&&b){const y=d.currentTarget,[w,E]=V2(y);w&&E?!d.shiftKey&&b===E?(d.preventDefault(),r&&nr(w,{select:!0})):d.shiftKey&&b===w&&(d.preventDefault(),r&&nr(E,{select:!0})):b===y&&d.preventDefault()}},[r,n,h.paused]);return re.jsx(Me.div,{tabIndex:-1,...c,ref:v,onKeyDown:x})});X0.displayName=K2;function H2(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(nr(n,{select:t}),document.activeElement!==r)return}function V2(e){const t=q0(e),r=Ip(t,e),n=Ip(t.reverse(),e);return[r,n]}function q0(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 Ip(e,t){for(const r of e)if(!X2(r,{upTo:t}))return r}function X2(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 q2(e){return e instanceof HTMLInputElement&&"select"in e}function nr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&q2(e)&&t&&e.select()}}var Fp=G2();function G2(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=Lp(e,t),e.unshift(t)},remove(t){e=Lp(e,t),e[0]?.resume()}}}function Lp(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function Z2(e){return e.filter(t=>t.tagName!=="A")}var J2="Portal",Q2=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);Eo(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?Le.createPortal(re.jsx(Me.div,{...n,ref:t}),c):null});Q2.displayName=J2;function e5(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var Di=e=>{const{present:t,children:r}=e,n=t5(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=Et(n.ref,r5(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};Di.displayName="Presence";function t5(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,p]=e5(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const l=Ka(n.current);a.current=s==="mounted"?l:"none"},[s]),Eo(()=>{const l=n.current,u=o.current;if(u!==e){const m=a.current,v=Ka(l);e?p("MOUNT"):v==="none"||l?.display==="none"?p("UNMOUNT"):p(u&&m!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,p]),Eo(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,m=h=>{const x=Ka(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&x&&(p("ANIMATION_END"),!o.current)){const d=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=d)})}},v=h=>{h.target===t&&(a.current=Ka(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else p("ANIMATION_END")},[t,p]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function Ka(e){return e?.animationName||"none"}function r5(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var yu=0;function n5(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Wp()),document.body.insertAdjacentElement("beforeend",e[1]??Wp()),yu++,()=>{yu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),yu--}},[])}function Wp(){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 ut=function(){return ut=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},ut.apply(this,arguments)};function G0(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 o5(e,t,r){for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var Ns="right-scroll-bar-position",Ts="width-before-scroll-bar",a5="with-scroll-bars-hidden",s5="--removed-body-scroll-bar-size";function wu(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function i5(e,t){var r=P.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 c5=typeof window<"u"?i.useLayoutEffect:i.useEffect,zp=new WeakMap;function u5(e,t){var r=i5(null,function(n){return e.forEach(function(o){return wu(o,n)})});return c5(function(){var n=zp.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||wu(s,null)}),a.forEach(function(s){o.has(s)||wu(s,c)})}zp.set(r,e)},[e]),r}function l5(e){return e}function d5(e,t){t===void 0&&(t=l5);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(a){var c=t(a,n);return r.push(c),function(){r=r.filter(function(s){return s!==c})}},assignSyncMedium:function(a){for(n=!0;r.length;){var c=r;r=[],c.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var c=[];if(r.length){var s=r;r=[],s.forEach(a),c=r}var p=function(){var u=c;c=[],u.forEach(a)},l=function(){return Promise.resolve().then(p)};l(),r={push:function(u){c.push(u),l()},filter:function(u){return c=c.filter(u),r}}}};return o}function f5(e){e===void 0&&(e={});var t=d5(null);return t.options=ut({async:!0,ssr:!1},e),t}var Z0=function(e){var t=e.sideCar,r=G0(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 i.createElement(n,ut({},r))};Z0.isSideCarExport=!0;function m5(e,t){return e.useMedium(t),Z0}var J0=f5(),xu=function(){},Pi=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:xu,onWheelCapture:xu,onTouchMoveCapture:xu}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,p=e.className,l=e.removeScrollBar,u=e.enabled,m=e.shards,v=e.sideCar,h=e.noRelative,x=e.noIsolation,d=e.inert,g=e.allowPinchZoom,b=e.as,y=b===void 0?"div":b,w=e.gapMode,E=G0(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),j=v,T=u5([r,t]),S=ut(ut({},E),o);return i.createElement(i.Fragment,null,u&&i.createElement(j,{sideCar:J0,removeScrollBar:l,shards:m,noRelative:h,noIsolation:x,inert:d,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),ut(ut({},S),{ref:T})):i.createElement(y,ut({},S,{className:p,ref:T}),s))});Pi.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Pi.classNames={fullWidth:Ts,zeroRight:Ns};var p5=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function v5(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=p5();return t&&e.setAttribute("nonce",t),e}function g5(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function h5(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var b5=function(){var e=0,t=null;return{add:function(r){e==0&&(t=v5())&&(g5(t,r),h5(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},y5=function(){var e=b5();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Q0=function(){var e=y5(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},w5={left:0,top:0,right:0,gap:0},Eu=function(e){return parseInt(e||"",10)||0},x5=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[Eu(r),Eu(n),Eu(o)]},E5=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return w5;var t=x5(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])}},k5=Q0(),Rn="data-scroll-locked",S5=function(e,t,r,n){var o=e.left,a=e.top,c=e.right,s=e.gap;return r===void 0&&(r="margin"),`
587
+ .`.concat(a5,` {
588
+ overflow: hidden `).concat(n,`;
589
+ padding-right: `).concat(s,"px ").concat(n,`;
590
+ }
591
+ body[`).concat(Rn,`] {
592
+ overflow: hidden `).concat(n,`;
593
+ overscroll-behavior: contain;
594
+ `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
595
+ padding-left: `.concat(o,`px;
596
+ padding-top: `).concat(a,`px;
597
+ padding-right: `).concat(c,`px;
598
+ margin-left:0;
599
+ margin-top:0;
600
+ margin-right: `).concat(s,"px ").concat(n,`;
601
+ `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
602
+ }
603
+
604
+ .`).concat(Ns,` {
605
+ right: `).concat(s,"px ").concat(n,`;
606
+ }
607
+
608
+ .`).concat(Ts,` {
609
+ margin-right: `).concat(s,"px ").concat(n,`;
610
+ }
611
+
612
+ .`).concat(Ns," .").concat(Ns,` {
613
+ right: 0 `).concat(n,`;
614
+ }
615
+
616
+ .`).concat(Ts," .").concat(Ts,` {
617
+ margin-right: 0 `).concat(n,`;
618
+ }
619
+
620
+ body[`).concat(Rn,`] {
621
+ `).concat(s5,": ").concat(s,`px;
622
+ }
623
+ `)},$p=function(){var e=parseInt(document.body.getAttribute(Rn)||"0",10);return isFinite(e)?e:0},j5=function(){i.useEffect(function(){return document.body.setAttribute(Rn,($p()+1).toString()),function(){var e=$p()-1;e<=0?document.body.removeAttribute(Rn):document.body.setAttribute(Rn,e.toString())}},[])},C5=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;j5();var a=i.useMemo(function(){return E5(o)},[o]);return i.createElement(k5,{styles:S5(a,!t,o,r?"":"!important")})},El=!1;if(typeof window<"u")try{var Ha=Object.defineProperty({},"passive",{get:function(){return El=!0,!0}});window.addEventListener("test",Ha,Ha),window.removeEventListener("test",Ha,Ha)}catch{El=!1}var cn=El?{passive:!1}:!1,R5=function(e){return e.tagName==="TEXTAREA"},ew=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!R5(e)&&r[t]==="visible")},N5=function(e){return ew(e,"overflowY")},T5=function(e){return ew(e,"overflowX")},Yp=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=tw(e,n);if(o){var a=rw(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},O5=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},_5=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},tw=function(e,t){return e==="v"?N5(t):T5(t)},rw=function(e,t){return e==="v"?O5(t):_5(t)},D5=function(e,t){return e==="h"&&t==="rtl"?-1:1},P5=function(e,t,r,n,o){var a=D5(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,p=t.contains(s),l=!1,u=c>0,m=0,v=0;do{if(!s)break;var h=rw(e,s),x=h[0],d=h[1],g=h[2],b=d-g-a*x;(x||b)&&tw(e,s)&&(m+=b,v+=x);var y=s.parentNode;s=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!p&&s!==document.body||p&&(t.contains(s)||t===s));return(u&&Math.abs(m)<1||!u&&Math.abs(v)<1)&&(l=!0),l},Va=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Up=function(e){return[e.deltaX,e.deltaY]},Bp=function(e){return e&&"current"in e?e.current:e},M5=function(e,t){return e[0]===t[0]&&e[1]===t[1]},A5=function(e){return`
624
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
625
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
626
+ `)},I5=0,un=[];function F5(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(I5++)[0],a=i.useState(Q0)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var d=o5([e.lockRef.current],(e.shards||[]).map(Bp)).filter(Boolean);return d.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),d.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(d,g){if("touches"in d&&d.touches.length===2||d.type==="wheel"&&d.ctrlKey)return!c.current.allowPinchZoom;var b=Va(d),y=r.current,w="deltaX"in d?d.deltaX:y[0]-b[0],E="deltaY"in d?d.deltaY:y[1]-b[1],j,T=d.target,S=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in d&&S==="h"&&T.type==="range")return!1;var R=Yp(S,T);if(!R)return!0;if(R?j=S:(j=S==="v"?"h":"v",R=Yp(S,T)),!R)return!1;if(!n.current&&"changedTouches"in d&&(w||E)&&(n.current=j),!j)return!0;var M=n.current||j;return P5(M,g,d,M==="h"?w:E)},[]),p=i.useCallback(function(d){var g=d;if(!(!un.length||un[un.length-1]!==a)){var b="deltaY"in g?Up(g):Va(g),y=t.current.filter(function(j){return j.name===g.type&&(j.target===g.target||g.target===j.shadowParent)&&M5(j.delta,b)})[0];if(y&&y.should){g.cancelable&&g.preventDefault();return}if(!y){var w=(c.current.shards||[]).map(Bp).filter(Boolean).filter(function(j){return j.contains(g.target)}),E=w.length>0?s(g,w[0]):!c.current.noIsolation;E&&g.cancelable&&g.preventDefault()}}},[]),l=i.useCallback(function(d,g,b,y){var w={name:d,delta:g,target:b,should:y,shadowParent:L5(b)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),u=i.useCallback(function(d){r.current=Va(d),n.current=void 0},[]),m=i.useCallback(function(d){l(d.type,Up(d),d.target,s(d,e.lockRef.current))},[]),v=i.useCallback(function(d){l(d.type,Va(d),d.target,s(d,e.lockRef.current))},[]);i.useEffect(function(){return un.push(a),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:v}),document.addEventListener("wheel",p,cn),document.addEventListener("touchmove",p,cn),document.addEventListener("touchstart",u,cn),function(){un=un.filter(function(d){return d!==a}),document.removeEventListener("wheel",p,cn),document.removeEventListener("touchmove",p,cn),document.removeEventListener("touchstart",u,cn)}},[]);var h=e.removeScrollBar,x=e.inert;return i.createElement(i.Fragment,null,x?i.createElement(a,{styles:A5(o)}):null,h?i.createElement(C5,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function L5(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const W5=m5(J0,F5);var nw=i.forwardRef(function(e,t){return i.createElement(Pi,ut({},e,{ref:t,sideCar:W5}))});nw.classNames=Pi.classNames;var z5=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ln=new WeakMap,Xa=new WeakMap,qa={},ku=0,ow=function(e){return e&&(e.host||ow(e.parentNode))},$5=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=ow(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},Y5=function(e,t,r,n){var o=$5(t,Array.isArray(e)?e:[e]);qa[r]||(qa[r]=new WeakMap);var a=qa[r],c=[],s=new Set,p=new Set(o),l=function(m){!m||s.has(m)||(s.add(m),l(m.parentNode))};o.forEach(l);var u=function(m){!m||p.has(m)||Array.prototype.forEach.call(m.children,function(v){if(s.has(v))u(v);else try{var h=v.getAttribute(n),x=h!==null&&h!=="false",d=(ln.get(v)||0)+1,g=(a.get(v)||0)+1;ln.set(v,d),a.set(v,g),c.push(v),d===1&&x&&Xa.set(v,!0),g===1&&v.setAttribute(r,"true"),x||v.setAttribute(n,"true")}catch(b){console.error("aria-hidden: cannot operate on ",v,b)}})};return u(t),s.clear(),ku++,function(){c.forEach(function(m){var v=ln.get(m)-1,h=a.get(m)-1;ln.set(m,v),a.set(m,h),v||(Xa.has(m)||m.removeAttribute(n),Xa.delete(m)),h||m.removeAttribute(r)}),ku--,ku||(ln=new WeakMap,ln=new WeakMap,Xa=new WeakMap,qa={})}},U5=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=z5(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),Y5(n,o,r,"aria-hidden")):function(){return null}},aw="Dialog",[sw]=_i(aw),[d8,Mt]=sw(aw),iw="DialogTrigger",B5=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Mt(iw,r),a=Et(t,o.triggerRef);return re.jsx(Me.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Ed(o.open),...n,ref:a,onClick:ke(e.onClick,o.onOpenToggle)})});B5.displayName=iw;var K5="DialogPortal",[f8,cw]=sw(K5,{forceMount:void 0}),Zs="DialogOverlay",H5=i.forwardRef((e,t)=>{const r=cw(Zs,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Mt(Zs,e.__scopeDialog);return a.modal?re.jsx(Di,{present:n||a.open,children:re.jsx(X5,{...o,ref:t})}):null});H5.displayName=Zs;var V5=oe.createSlot("DialogOverlay.RemoveScroll"),X5=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Mt(Zs,r);return re.jsx(nw,{as:V5,allowPinchZoom:!0,shards:[o.contentRef],children:re.jsx(Me.div,{"data-state":Ed(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Cr="DialogContent",q5=i.forwardRef((e,t)=>{const r=cw(Cr,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Mt(Cr,e.__scopeDialog);return re.jsx(Di,{present:n||a.open,children:a.modal?re.jsx(G5,{...o,ref:t}):re.jsx(Z5,{...o,ref:t})})});q5.displayName=Cr;var G5=i.forwardRef((e,t)=>{const r=Mt(Cr,e.__scopeDialog),n=i.useRef(null),o=Et(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return U5(a)},[]),re.jsx(uw,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ke(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:ke(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:ke(e.onFocusOutside,a=>a.preventDefault())})}),Z5=i.forwardRef((e,t)=>{const r=Mt(Cr,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return re.jsx(uw,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=a.target;r.triggerRef.current?.contains(c)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),uw=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=Mt(Cr,r),p=i.useRef(null),l=Et(t,p);return n5(),re.jsxs(re.Fragment,{children:[re.jsx(X0,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:re.jsx(H0,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Ed(s.open),...c,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),re.jsxs(re.Fragment,{children:[re.jsx(t4,{titleId:s.titleId}),re.jsx(n4,{contentRef:p,descriptionId:s.descriptionId})]})]})}),xd="DialogTitle",J5=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Mt(xd,r);return re.jsx(Me.h2,{id:o.titleId,...n,ref:t})});J5.displayName=xd;var lw="DialogDescription",Q5=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Mt(lw,r);return re.jsx(Me.p,{id:o.descriptionId,...n,ref:t})});Q5.displayName=lw;var dw="DialogClose",e4=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Mt(dw,r);return re.jsx(Me.button,{type:"button",...n,ref:t,onClick:ke(e.onClick,()=>o.onOpenChange(!1))})});e4.displayName=dw;function Ed(e){return e?"open":"closed"}var fw="DialogTitleWarning",[m8,mw]=N2(fw,{contentName:Cr,titleName:xd,docsSlug:"dialog"}),t4=({titleId:e})=>{const t=mw(fw),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
627
+
628
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
629
+
630
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},r4="DialogDescriptionWarning",n4=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${mw(r4).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Su={exports:{}},no={};/**
631
+ * @license React
632
+ * react-jsx-runtime.production.js
633
+ *
634
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
635
+ *
636
+ * This source code is licensed under the MIT license found in the
637
+ * LICENSE file in the root directory of this source tree.
638
+ */var Kp;function o4(){if(Kp)return no;Kp=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var c=null;if(a!==void 0&&(c=""+a),o.key!==void 0&&(c=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:c,ref:o!==void 0?o:null,props:a}}return no.Fragment=t,no.jsx=r,no.jsxs=r,no}var Ga={};/**
639
+ * @license React
640
+ * react-jsx-runtime.development.js
641
+ *
642
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
643
+ *
644
+ * This source code is licensed under the MIT license found in the
645
+ * LICENSE file in the root directory of this source tree.
646
+ */var Hp;function a4(){return Hp||(Hp=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===L?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case d:return"Fragment";case b:return"Profiler";case g:return"StrictMode";case j:return"Suspense";case T:return"SuspenseList";case M:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case x:return"Portal";case w:return(f.displayName||"Context")+".Provider";case y:return(f._context.displayName||"Context")+".Consumer";case E:var k=f.render;return f=f.displayName,f||(f=k.displayName||k.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case S:return k=f.displayName||null,k!==null?k:e(f.type)||"Memo";case R:k=f._payload,f=f._init;try{return e(f(k))}catch{}}return null}function t(f){return""+f}function r(f){try{t(f);var k=!1}catch{k=!0}if(k){k=console;var N=k.error,O=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return N.call(k,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",O),t(f)}}function n(f){if(f===d)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===R)return"<...>";try{var k=e(f);return k?"<"+k+">":"<...>"}catch{return"<...>"}}function o(){var f=I.A;return f===null?null:f.getOwner()}function a(){return Error("react-stack-top-frame")}function c(f){if(B.call(f,"key")){var k=Object.getOwnPropertyDescriptor(f,"key").get;if(k&&k.isReactWarning)return!1}return f.key!==void 0}function s(f,k){function N(){D||(D=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",k))}N.isReactWarning=!0,Object.defineProperty(f,"key",{get:N,configurable:!0})}function p(){var f=e(this.type);return Y[f]||(Y[f]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),f=this.props.ref,f!==void 0?f:null}function l(f,k,N,O,W,A,ae,X){return N=A.ref,f={$$typeof:h,type:f,key:k,props:A,_owner:W},(N!==void 0?N:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:p}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ae}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function u(f,k,N,O,W,A,ae,X){var _=k.children;if(_!==void 0)if(O)if(K(_)){for(O=0;O<_.length;O++)m(_[O]);Object.freeze&&Object.freeze(_)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else m(_);if(B.call(k,"key")){_=e(f);var $=Object.keys(k).filter(function(fe){return fe!=="key"});O=0<$.length?"{key: someKey, "+$.join(": ..., ")+": ...}":"{key: someKey}",V[_+O]||($=0<$.length?"{"+$.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
647
+ let props = %s;
648
+ <%s {...props} />
649
+ React keys must be passed directly to JSX without using spread:
650
+ let props = %s;
651
+ <%s key={someKey} {...props} />`,O,_,$,_),V[_+O]=!0)}if(_=null,N!==void 0&&(r(N),_=""+N),c(k)&&(r(k.key),_=""+k.key),"key"in k){N={};for(var se in k)se!=="key"&&(N[se]=k[se])}else N=k;return _&&s(N,typeof f=="function"?f.displayName||f.name||"Unknown":f),l(f,_,A,W,o(),N,ae,X)}function m(f){typeof f=="object"&&f!==null&&f.$$typeof===h&&f._store&&(f._store.validated=1)}var v=P,h=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),w=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),M=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,K=Array.isArray,z=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(f){return f()}};var D,Y={},H=v.react_stack_bottom_frame.bind(v,a)(),U=z(n(a)),V={};Ga.Fragment=d,Ga.jsx=function(f,k,N,O,W){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,k,N,!1,O,W,A?Error("react-stack-top-frame"):H,A?z(n(f)):U)},Ga.jsxs=function(f,k,N,O,W){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,k,N,!0,O,W,A?Error("react-stack-top-frame"):H,A?z(n(f)):U)}})()),Ga}var Vp;function s4(){return Vp||(Vp=1,process.env.NODE_ENV==="production"?Su.exports=o4():Su.exports=a4()),Su.exports}var ne=s4();P.createContext({locale:void 0});var i4=(e,t,r,n,o,a,c,s)=>{let p=document.documentElement,l=["light","dark"];function u(h){(Array.isArray(e)?e:[e]).forEach(x=>{let d=x==="class",g=d&&a?o.map(b=>a[b]||b):o;d?(p.classList.remove(...g),p.classList.add(a&&a[h]?a[h]:h)):p.setAttribute(x,h)}),m(h)}function m(h){s&&l.includes(h)&&(p.style.colorScheme=h)}function v(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)u(n);else try{let h=localStorage.getItem(t)||r,x=c&&h==="system"?v():h;u(x)}catch{}};i.createContext(void 0);i.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:o,defaultTheme:a,value:c,themes:s,nonce:p,scriptProps:l})=>{let u=JSON.stringify([r,t,a,e,s,c,n,o]).slice(1,-1);return i.createElement("script",{...l,suppressHydrationWarning:!0,nonce:typeof window>"u"?p:"",dangerouslySetInnerHTML:{__html:`(${i4.toString()})(${u})`}})});me.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});me.cva("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function Se(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function Xp(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function c4(...e){return t=>{let r=!1;const n=e.map(o=>{const a=Xp(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():Xp(e[o],null)}}}}function kt(...e){return i.useCallback(c4(...e),e)}function u4(e,t){const r=i.createContext(t),n=a=>{const{children:c,...s}=a,p=i.useMemo(()=>s,Object.values(s));return ne.jsx(r.Provider,{value:p,children:c})};n.displayName=e+"Provider";function o(a){const c=i.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function Mi(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),p=r.length;r=[...r,c];const l=m=>{const{scope:v,children:h,...x}=m,d=v?.[e]?.[p]||s,g=i.useMemo(()=>x,Object.values(x));return ne.jsx(d.Provider,{value:g,children:h})};l.displayName=a+"Provider";function u(m,v){const h=v?.[e]?.[p]||s,x=i.useContext(h);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${m}\` must be used within \`${a}\``)}return[l,u]}const o=()=>{const a=r.map(c=>i.createContext(c));return function(c){const s=c?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:s}}),[c,s])}};return o.scopeName=e,[n,l4(o,...t)]}function l4(...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(o){const a=n.reduce((c,{useScope:s,scopeName:p})=>{const l=s(o)[`__scope${p}`];return{...c,...l}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var ko=globalThis?.document?i.useLayoutEffect:()=>{},d4=i[" useId ".trim().toString()]||(()=>{}),f4=0;function pw(e){const[t,r]=i.useState(d4());return ko(()=>{r(n=>n??String(f4++))},[e]),t?`radix-${t}`:""}var m4=i[" useInsertionEffect ".trim().toString()]||ko;function vw({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,c]=p4({defaultProp:t,onChange:r}),s=e!==void 0,p=s?e:o;{const u=i.useRef(e!==void 0);i.useEffect(()=>{const m=u.current;m!==s&&console.warn(`${n} is changing from ${m?"controlled":"uncontrolled"} to ${s?"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.`),u.current=s},[s,n])}const l=i.useCallback(u=>{if(s){const m=v4(u)?u(e):u;m!==e&&c.current?.(m)}else a(u)},[s,e,a,c]);return[p,l]}function p4({defaultProp:e,onChange:t}){const[r,n]=i.useState(e),o=i.useRef(r),a=i.useRef(t);return m4(()=>{a.current=t},[t]),i.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}function v4(e){return typeof e=="function"}var g4=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ae=g4.reduce((e,t)=>{const r=oe.createSlot(`Primitive.${t}`),n=i.forwardRef((o,a)=>{const{asChild:c,...s}=o,p=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),ne.jsx(p,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function h4(e,t){e&&We.flushSync(()=>e.dispatchEvent(t))}function Wn(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function b4(e,t=globalThis?.document){const r=Wn(e);i.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 y4="DismissableLayer",kl="dismissableLayer.update",w4="dismissableLayer.pointerDownOutside",x4="dismissableLayer.focusOutside",qp,gw=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),hw=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...p}=e,l=i.useContext(gw),[u,m]=i.useState(null),v=u?.ownerDocument??globalThis?.document,[,h]=i.useState({}),x=kt(t,S=>m(S)),d=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),b=d.indexOf(g),y=u?d.indexOf(u):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,E=y>=b,j=S4(S=>{const R=S.target,M=[...l.branches].some(L=>L.contains(R));!E||M||(o?.(S),c?.(S),S.defaultPrevented||s?.())},v),T=j4(S=>{const R=S.target;[...l.branches].some(M=>M.contains(R))||(a?.(S),c?.(S),S.defaultPrevented||s?.())},v);return b4(S=>{y===l.layers.size-1&&(n?.(S),!S.defaultPrevented&&s&&(S.preventDefault(),s()))},v),i.useEffect(()=>{if(u)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(qp=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),Gp(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=qp)}},[u,v,r,l]),i.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),Gp())},[u,l]),i.useEffect(()=>{const S=()=>h({});return document.addEventListener(kl,S),()=>document.removeEventListener(kl,S)},[]),ne.jsx(Ae.div,{...p,ref:x,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:Se(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Se(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Se(e.onPointerDownCapture,j.onPointerDownCapture)})});hw.displayName=y4;var E4="DismissableLayerBranch",k4=i.forwardRef((e,t)=>{const r=i.useContext(gw),n=i.useRef(null),o=kt(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),ne.jsx(Ae.div,{...e,ref:o})});k4.displayName=E4;function S4(e,t=globalThis?.document){const r=Wn(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let p=function(){bw(w4,r,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=p,t.addEventListener("click",o.current,{once:!0})):p()}else t.removeEventListener("click",o.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function j4(e,t=globalThis?.document){const r=Wn(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&bw(x4,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Gp(){const e=new CustomEvent(kl);document.dispatchEvent(e)}function bw(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?h4(o,a):o.dispatchEvent(a)}var ju="focusScope.autoFocusOnMount",Cu="focusScope.autoFocusOnUnmount",Zp={bubbles:!1,cancelable:!0},C4="FocusScope",yw=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,p]=i.useState(null),l=Wn(o),u=Wn(a),m=i.useRef(null),v=kt(t,d=>p(d)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let d=function(w){if(h.paused||!s)return;const E=w.target;s.contains(E)?m.current=E:or(m.current,{select:!0})},g=function(w){if(h.paused||!s)return;const E=w.relatedTarget;E!==null&&(s.contains(E)||or(m.current,{select:!0}))},b=function(w){if(document.activeElement===document.body)for(const E of w)E.removedNodes.length>0&&or(s)};document.addEventListener("focusin",d),document.addEventListener("focusout",g);const y=new MutationObserver(b);return s&&y.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",d),document.removeEventListener("focusout",g),y.disconnect()}}},[n,s,h.paused]),i.useEffect(()=>{if(s){Qp.add(h);const d=document.activeElement;if(!s.contains(d)){const g=new CustomEvent(ju,Zp);s.addEventListener(ju,l),s.dispatchEvent(g),g.defaultPrevented||(R4(D4(ww(s)),{select:!0}),document.activeElement===d&&or(s))}return()=>{s.removeEventListener(ju,l),setTimeout(()=>{const g=new CustomEvent(Cu,Zp);s.addEventListener(Cu,u),s.dispatchEvent(g),g.defaultPrevented||or(d??document.body,{select:!0}),s.removeEventListener(Cu,u),Qp.remove(h)},0)}}},[s,l,u,h]);const x=i.useCallback(d=>{if(!r&&!n||h.paused)return;const g=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,b=document.activeElement;if(g&&b){const y=d.currentTarget,[w,E]=N4(y);w&&E?!d.shiftKey&&b===E?(d.preventDefault(),r&&or(w,{select:!0})):d.shiftKey&&b===w&&(d.preventDefault(),r&&or(E,{select:!0})):b===y&&d.preventDefault()}},[r,n,h.paused]);return ne.jsx(Ae.div,{tabIndex:-1,...c,ref:v,onKeyDown:x})});yw.displayName=C4;function R4(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(or(n,{select:t}),document.activeElement!==r)return}function N4(e){const t=ww(e),r=Jp(t,e),n=Jp(t.reverse(),e);return[r,n]}function ww(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 Jp(e,t){for(const r of e)if(!T4(r,{upTo:t}))return r}function T4(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 O4(e){return e instanceof HTMLInputElement&&"select"in e}function or(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&O4(e)&&t&&e.select()}}var Qp=_4();function _4(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=ev(e,t),e.unshift(t)},remove(t){e=ev(e,t),e[0]?.resume()}}}function ev(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function D4(e){return e.filter(t=>t.tagName!=="A")}var P4="Portal",M4=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);ko(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?Le.createPortal(ne.jsx(Ae.div,{...n,ref:t}),c):null});M4.displayName=P4;function A4(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var Ai=e=>{const{present:t,children:r}=e,n=I4(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=kt(n.ref,F4(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};Ai.displayName="Presence";function I4(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,p]=A4(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const l=Za(n.current);a.current=s==="mounted"?l:"none"},[s]),ko(()=>{const l=n.current,u=o.current;if(u!==e){const m=a.current,v=Za(l);e?p("MOUNT"):v==="none"||l?.display==="none"?p("UNMOUNT"):p(u&&m!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,p]),ko(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,m=h=>{const x=Za(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&x&&(p("ANIMATION_END"),!o.current)){const d=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=d)})}},v=h=>{h.target===t&&(a.current=Za(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else p("ANIMATION_END")},[t,p]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function Za(e){return e?.animationName||"none"}function F4(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Ru=0;function L4(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??tv()),document.body.insertAdjacentElement("beforeend",e[1]??tv()),Ru++,()=>{Ru===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Ru--}},[])}function tv(){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 lt=function(){return lt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},lt.apply(this,arguments)};function xw(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 W4(e,t,r){for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var Os="right-scroll-bar-position",_s="width-before-scroll-bar",z4="with-scroll-bars-hidden",$4="--removed-body-scroll-bar-size";function Nu(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Y4(e,t){var r=P.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 U4=typeof window<"u"?i.useLayoutEffect:i.useEffect,rv=new WeakMap;function B4(e,t){var r=Y4(null,function(n){return e.forEach(function(o){return Nu(o,n)})});return U4(function(){var n=rv.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||Nu(s,null)}),a.forEach(function(s){o.has(s)||Nu(s,c)})}rv.set(r,e)},[e]),r}function K4(e){return e}function H4(e,t){t===void 0&&(t=K4);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(a){var c=t(a,n);return r.push(c),function(){r=r.filter(function(s){return s!==c})}},assignSyncMedium:function(a){for(n=!0;r.length;){var c=r;r=[],c.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var c=[];if(r.length){var s=r;r=[],s.forEach(a),c=r}var p=function(){var u=c;c=[],u.forEach(a)},l=function(){return Promise.resolve().then(p)};l(),r={push:function(u){c.push(u),l()},filter:function(u){return c=c.filter(u),r}}}};return o}function V4(e){e===void 0&&(e={});var t=H4(null);return t.options=lt({async:!0,ssr:!1},e),t}var Ew=function(e){var t=e.sideCar,r=xw(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 i.createElement(n,lt({},r))};Ew.isSideCarExport=!0;function X4(e,t){return e.useMedium(t),Ew}var kw=V4(),Tu=function(){},Ii=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:Tu,onWheelCapture:Tu,onTouchMoveCapture:Tu}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,p=e.className,l=e.removeScrollBar,u=e.enabled,m=e.shards,v=e.sideCar,h=e.noRelative,x=e.noIsolation,d=e.inert,g=e.allowPinchZoom,b=e.as,y=b===void 0?"div":b,w=e.gapMode,E=xw(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),j=v,T=B4([r,t]),S=lt(lt({},E),o);return i.createElement(i.Fragment,null,u&&i.createElement(j,{sideCar:kw,removeScrollBar:l,shards:m,noRelative:h,noIsolation:x,inert:d,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),lt(lt({},S),{ref:T})):i.createElement(y,lt({},S,{className:p,ref:T}),s))});Ii.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ii.classNames={fullWidth:_s,zeroRight:Os};var q4=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function G4(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=q4();return t&&e.setAttribute("nonce",t),e}function Z4(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function J4(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Q4=function(){var e=0,t=null;return{add:function(r){e==0&&(t=G4())&&(Z4(t,r),J4(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},eW=function(){var e=Q4();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Sw=function(){var e=eW(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},tW={left:0,top:0,right:0,gap:0},Ou=function(e){return parseInt(e||"",10)||0},rW=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[Ou(r),Ou(n),Ou(o)]},nW=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return tW;var t=rW(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])}},oW=Sw(),Nn="data-scroll-locked",aW=function(e,t,r,n){var o=e.left,a=e.top,c=e.right,s=e.gap;return r===void 0&&(r="margin"),`
652
+ .`.concat(z4,` {
653
+ overflow: hidden `).concat(n,`;
654
+ padding-right: `).concat(s,"px ").concat(n,`;
655
+ }
656
+ body[`).concat(Nn,`] {
657
+ overflow: hidden `).concat(n,`;
658
+ overscroll-behavior: contain;
659
+ `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
660
+ padding-left: `.concat(o,`px;
661
+ padding-top: `).concat(a,`px;
662
+ padding-right: `).concat(c,`px;
663
+ margin-left:0;
664
+ margin-top:0;
665
+ margin-right: `).concat(s,"px ").concat(n,`;
666
+ `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
667
+ }
668
+
669
+ .`).concat(Os,` {
670
+ right: `).concat(s,"px ").concat(n,`;
671
+ }
672
+
673
+ .`).concat(_s,` {
674
+ margin-right: `).concat(s,"px ").concat(n,`;
675
+ }
676
+
677
+ .`).concat(Os," .").concat(Os,` {
678
+ right: 0 `).concat(n,`;
679
+ }
680
+
681
+ .`).concat(_s," .").concat(_s,` {
682
+ margin-right: 0 `).concat(n,`;
683
+ }
684
+
685
+ body[`).concat(Nn,`] {
686
+ `).concat($4,": ").concat(s,`px;
687
+ }
688
+ `)},nv=function(){var e=parseInt(document.body.getAttribute(Nn)||"0",10);return isFinite(e)?e:0},sW=function(){i.useEffect(function(){return document.body.setAttribute(Nn,(nv()+1).toString()),function(){var e=nv()-1;e<=0?document.body.removeAttribute(Nn):document.body.setAttribute(Nn,e.toString())}},[])},iW=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;sW();var a=i.useMemo(function(){return nW(o)},[o]);return i.createElement(oW,{styles:aW(a,!t,o,r?"":"!important")})},Sl=!1;if(typeof window<"u")try{var Ja=Object.defineProperty({},"passive",{get:function(){return Sl=!0,!0}});window.addEventListener("test",Ja,Ja),window.removeEventListener("test",Ja,Ja)}catch{Sl=!1}var dn=Sl?{passive:!1}:!1,cW=function(e){return e.tagName==="TEXTAREA"},jw=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!cW(e)&&r[t]==="visible")},uW=function(e){return jw(e,"overflowY")},lW=function(e){return jw(e,"overflowX")},ov=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=Cw(e,n);if(o){var a=Rw(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},dW=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},fW=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},Cw=function(e,t){return e==="v"?uW(t):lW(t)},Rw=function(e,t){return e==="v"?dW(t):fW(t)},mW=function(e,t){return e==="h"&&t==="rtl"?-1:1},pW=function(e,t,r,n,o){var a=mW(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,p=t.contains(s),l=!1,u=c>0,m=0,v=0;do{if(!s)break;var h=Rw(e,s),x=h[0],d=h[1],g=h[2],b=d-g-a*x;(x||b)&&Cw(e,s)&&(m+=b,v+=x);var y=s.parentNode;s=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!p&&s!==document.body||p&&(t.contains(s)||t===s));return(u&&Math.abs(m)<1||!u&&Math.abs(v)<1)&&(l=!0),l},Qa=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},av=function(e){return[e.deltaX,e.deltaY]},sv=function(e){return e&&"current"in e?e.current:e},vW=function(e,t){return e[0]===t[0]&&e[1]===t[1]},gW=function(e){return`
689
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
690
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
691
+ `)},hW=0,fn=[];function bW(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(hW++)[0],a=i.useState(Sw)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var d=W4([e.lockRef.current],(e.shards||[]).map(sv)).filter(Boolean);return d.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),d.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(d,g){if("touches"in d&&d.touches.length===2||d.type==="wheel"&&d.ctrlKey)return!c.current.allowPinchZoom;var b=Qa(d),y=r.current,w="deltaX"in d?d.deltaX:y[0]-b[0],E="deltaY"in d?d.deltaY:y[1]-b[1],j,T=d.target,S=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in d&&S==="h"&&T.type==="range")return!1;var R=ov(S,T);if(!R)return!0;if(R?j=S:(j=S==="v"?"h":"v",R=ov(S,T)),!R)return!1;if(!n.current&&"changedTouches"in d&&(w||E)&&(n.current=j),!j)return!0;var M=n.current||j;return pW(M,g,d,M==="h"?w:E)},[]),p=i.useCallback(function(d){var g=d;if(!(!fn.length||fn[fn.length-1]!==a)){var b="deltaY"in g?av(g):Qa(g),y=t.current.filter(function(j){return j.name===g.type&&(j.target===g.target||g.target===j.shadowParent)&&vW(j.delta,b)})[0];if(y&&y.should){g.cancelable&&g.preventDefault();return}if(!y){var w=(c.current.shards||[]).map(sv).filter(Boolean).filter(function(j){return j.contains(g.target)}),E=w.length>0?s(g,w[0]):!c.current.noIsolation;E&&g.cancelable&&g.preventDefault()}}},[]),l=i.useCallback(function(d,g,b,y){var w={name:d,delta:g,target:b,should:y,shadowParent:yW(b)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),u=i.useCallback(function(d){r.current=Qa(d),n.current=void 0},[]),m=i.useCallback(function(d){l(d.type,av(d),d.target,s(d,e.lockRef.current))},[]),v=i.useCallback(function(d){l(d.type,Qa(d),d.target,s(d,e.lockRef.current))},[]);i.useEffect(function(){return fn.push(a),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:v}),document.addEventListener("wheel",p,dn),document.addEventListener("touchmove",p,dn),document.addEventListener("touchstart",u,dn),function(){fn=fn.filter(function(d){return d!==a}),document.removeEventListener("wheel",p,dn),document.removeEventListener("touchmove",p,dn),document.removeEventListener("touchstart",u,dn)}},[]);var h=e.removeScrollBar,x=e.inert;return i.createElement(i.Fragment,null,x?i.createElement(a,{styles:gW(o)}):null,h?i.createElement(iW,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function yW(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const wW=X4(kw,bW);var Nw=i.forwardRef(function(e,t){return i.createElement(Ii,lt({},e,{ref:t,sideCar:wW}))});Nw.classNames=Ii.classNames;var xW=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},mn=new WeakMap,es=new WeakMap,ts={},_u=0,Tw=function(e){return e&&(e.host||Tw(e.parentNode))},EW=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Tw(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},kW=function(e,t,r,n){var o=EW(t,Array.isArray(e)?e:[e]);ts[r]||(ts[r]=new WeakMap);var a=ts[r],c=[],s=new Set,p=new Set(o),l=function(m){!m||s.has(m)||(s.add(m),l(m.parentNode))};o.forEach(l);var u=function(m){!m||p.has(m)||Array.prototype.forEach.call(m.children,function(v){if(s.has(v))u(v);else try{var h=v.getAttribute(n),x=h!==null&&h!=="false",d=(mn.get(v)||0)+1,g=(a.get(v)||0)+1;mn.set(v,d),a.set(v,g),c.push(v),d===1&&x&&es.set(v,!0),g===1&&v.setAttribute(r,"true"),x||v.setAttribute(n,"true")}catch(b){console.error("aria-hidden: cannot operate on ",v,b)}})};return u(t),s.clear(),_u++,function(){c.forEach(function(m){var v=mn.get(m)-1,h=a.get(m)-1;mn.set(m,v),a.set(m,h),v||(es.has(m)||m.removeAttribute(n),es.delete(m)),h||m.removeAttribute(r)}),_u--,_u||(mn=new WeakMap,mn=new WeakMap,es=new WeakMap,ts={})}},SW=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=xW(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),kW(n,o,r,"aria-hidden")):function(){return null}},Ow="Dialog",[_w]=Mi(Ow),[p8,At]=_w(Ow),Dw="DialogTrigger",jW=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=At(Dw,r),a=kt(t,o.triggerRef);return ne.jsx(Ae.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Sd(o.open),...n,ref:a,onClick:Se(e.onClick,o.onOpenToggle)})});jW.displayName=Dw;var CW="DialogPortal",[v8,Pw]=_w(CW,{forceMount:void 0}),Js="DialogOverlay",RW=i.forwardRef((e,t)=>{const r=Pw(Js,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=At(Js,e.__scopeDialog);return a.modal?ne.jsx(Ai,{present:n||a.open,children:ne.jsx(TW,{...o,ref:t})}):null});RW.displayName=Js;var NW=oe.createSlot("DialogOverlay.RemoveScroll"),TW=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=At(Js,r);return ne.jsx(Nw,{as:NW,allowPinchZoom:!0,shards:[o.contentRef],children:ne.jsx(Ae.div,{"data-state":Sd(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Rr="DialogContent",OW=i.forwardRef((e,t)=>{const r=Pw(Rr,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=At(Rr,e.__scopeDialog);return ne.jsx(Ai,{present:n||a.open,children:a.modal?ne.jsx(_W,{...o,ref:t}):ne.jsx(DW,{...o,ref:t})})});OW.displayName=Rr;var _W=i.forwardRef((e,t)=>{const r=At(Rr,e.__scopeDialog),n=i.useRef(null),o=kt(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return SW(a)},[]),ne.jsx(Mw,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Se(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:Se(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:Se(e.onFocusOutside,a=>a.preventDefault())})}),DW=i.forwardRef((e,t)=>{const r=At(Rr,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return ne.jsx(Mw,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=a.target;r.triggerRef.current?.contains(c)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Mw=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=At(Rr,r),p=i.useRef(null),l=kt(t,p);return L4(),ne.jsxs(ne.Fragment,{children:[ne.jsx(yw,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:ne.jsx(hw,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Sd(s.open),...c,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),ne.jsxs(ne.Fragment,{children:[ne.jsx(IW,{titleId:s.titleId}),ne.jsx(LW,{contentRef:p,descriptionId:s.descriptionId})]})]})}),kd="DialogTitle",PW=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=At(kd,r);return ne.jsx(Ae.h2,{id:o.titleId,...n,ref:t})});PW.displayName=kd;var Aw="DialogDescription",MW=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=At(Aw,r);return ne.jsx(Ae.p,{id:o.descriptionId,...n,ref:t})});MW.displayName=Aw;var Iw="DialogClose",AW=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=At(Iw,r);return ne.jsx(Ae.button,{type:"button",...n,ref:t,onClick:Se(e.onClick,()=>o.onOpenChange(!1))})});AW.displayName=Iw;function Sd(e){return e?"open":"closed"}var Fw="DialogTitleWarning",[g8,Lw]=u4(Fw,{contentName:Rr,titleName:kd,docsSlug:"dialog"}),IW=({titleId:e})=>{const t=Lw(Fw),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
692
+
693
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
694
+
695
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},FW="DialogDescriptionWarning",LW=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Lw(FW).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Du={exports:{}},oo={};/**
696
+ * @license React
697
+ * react-jsx-runtime.production.js
698
+ *
699
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
700
+ *
701
+ * This source code is licensed under the MIT license found in the
702
+ * LICENSE file in the root directory of this source tree.
703
+ */var iv;function WW(){if(iv)return oo;iv=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var c=null;if(a!==void 0&&(c=""+a),o.key!==void 0&&(c=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:c,ref:o!==void 0?o:null,props:a}}return oo.Fragment=t,oo.jsx=r,oo.jsxs=r,oo}var rs={};/**
704
+ * @license React
705
+ * react-jsx-runtime.development.js
706
+ *
707
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
708
+ *
709
+ * This source code is licensed under the MIT license found in the
710
+ * LICENSE file in the root directory of this source tree.
711
+ */var cv;function zW(){return cv||(cv=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===L?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case d:return"Fragment";case b:return"Profiler";case g:return"StrictMode";case j:return"Suspense";case T:return"SuspenseList";case M:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case x:return"Portal";case w:return(f.displayName||"Context")+".Provider";case y:return(f._context.displayName||"Context")+".Consumer";case E:var k=f.render;return f=f.displayName,f||(f=k.displayName||k.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case S:return k=f.displayName||null,k!==null?k:e(f.type)||"Memo";case R:k=f._payload,f=f._init;try{return e(f(k))}catch{}}return null}function t(f){return""+f}function r(f){try{t(f);var k=!1}catch{k=!0}if(k){k=console;var N=k.error,O=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return N.call(k,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",O),t(f)}}function n(f){if(f===d)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===R)return"<...>";try{var k=e(f);return k?"<"+k+">":"<...>"}catch{return"<...>"}}function o(){var f=I.A;return f===null?null:f.getOwner()}function a(){return Error("react-stack-top-frame")}function c(f){if(B.call(f,"key")){var k=Object.getOwnPropertyDescriptor(f,"key").get;if(k&&k.isReactWarning)return!1}return f.key!==void 0}function s(f,k){function N(){D||(D=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",k))}N.isReactWarning=!0,Object.defineProperty(f,"key",{get:N,configurable:!0})}function p(){var f=e(this.type);return Y[f]||(Y[f]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),f=this.props.ref,f!==void 0?f:null}function l(f,k,N,O,W,A,ae,X){return N=A.ref,f={$$typeof:h,type:f,key:k,props:A,_owner:W},(N!==void 0?N:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:p}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ae}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function u(f,k,N,O,W,A,ae,X){var _=k.children;if(_!==void 0)if(O)if(K(_)){for(O=0;O<_.length;O++)m(_[O]);Object.freeze&&Object.freeze(_)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else m(_);if(B.call(k,"key")){_=e(f);var $=Object.keys(k).filter(function(fe){return fe!=="key"});O=0<$.length?"{key: someKey, "+$.join(": ..., ")+": ...}":"{key: someKey}",V[_+O]||($=0<$.length?"{"+$.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
712
+ let props = %s;
713
+ <%s {...props} />
714
+ React keys must be passed directly to JSX without using spread:
715
+ let props = %s;
716
+ <%s key={someKey} {...props} />`,O,_,$,_),V[_+O]=!0)}if(_=null,N!==void 0&&(r(N),_=""+N),c(k)&&(r(k.key),_=""+k.key),"key"in k){N={};for(var se in k)se!=="key"&&(N[se]=k[se])}else N=k;return _&&s(N,typeof f=="function"?f.displayName||f.name||"Unknown":f),l(f,_,A,W,o(),N,ae,X)}function m(f){typeof f=="object"&&f!==null&&f.$$typeof===h&&f._store&&(f._store.validated=1)}var v=P,h=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),w=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),M=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,K=Array.isArray,z=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(f){return f()}};var D,Y={},H=v.react_stack_bottom_frame.bind(v,a)(),U=z(n(a)),V={};rs.Fragment=d,rs.jsx=function(f,k,N,O,W){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,k,N,!1,O,W,A?Error("react-stack-top-frame"):H,A?z(n(f)):U)},rs.jsxs=function(f,k,N,O,W){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,k,N,!0,O,W,A?Error("react-stack-top-frame"):H,A?z(n(f)):U)}})()),rs}var uv;function $W(){return uv||(uv=1,process.env.NODE_ENV==="production"?Du.exports=WW():Du.exports=zW()),Du.exports}var le=$W();const YW={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},UW=(e,t,r)=>{let n;const o=YW[e];return typeof o=="string"?n=o:t===1?n=o.one:n=o.other.replace("{{count}}",t.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function Pu(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const BW={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},KW={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},HW={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},VW={date:Pu({formats:BW,defaultWidth:"full"}),time:Pu({formats:KW,defaultWidth:"full"}),dateTime:Pu({formats:HW,defaultWidth:"full"})},XW={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},qW=(e,t,r,n)=>XW[e];function ao(e){return(t,r)=>{const n=r?.context?String(r.context):"standalone";let o;if(n==="formatting"&&e.formattingValues){const c=e.defaultFormattingWidth||e.defaultWidth,s=r?.width?String(r.width):c;o=e.formattingValues[s]||e.formattingValues[c]}else{const c=e.defaultWidth,s=r?.width?String(r.width):e.defaultWidth;o=e.values[s]||e.values[c]}const a=e.argumentCallback?e.argumentCallback(t):t;return o[a]}}const GW={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},ZW={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},JW={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},QW={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},ez={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},tz={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},rz=(e,t)=>{const r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},nz={ordinalNumber:rz,era:ao({values:GW,defaultWidth:"wide"}),quarter:ao({values:ZW,defaultWidth:"wide",argumentCallback:e=>e-1}),month:ao({values:JW,defaultWidth:"wide"}),day:ao({values:QW,defaultWidth:"wide"}),dayPeriod:ao({values:ez,defaultWidth:"wide",formattingValues:tz,defaultFormattingWidth:"wide"})};function so(e){return(t,r={})=>{const n=r.width,o=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;const c=a[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],p=Array.isArray(s)?az(s,m=>m.test(c)):oz(s,m=>m.test(c));let l;l=e.valueCallback?e.valueCallback(p):p,l=r.valueCallback?r.valueCallback(l):l;const u=t.slice(c.length);return{value:l,rest:u}}}function oz(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function az(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function sz(e){return(t,r={})=>{const n=t.match(e.matchPattern);if(!n)return null;const o=n[0],a=t.match(e.parsePattern);if(!a)return null;let c=e.valueCallback?e.valueCallback(a[0]):a[0];c=r.valueCallback?r.valueCallback(c):c;const s=t.slice(o.length);return{value:c,rest:s}}}const iz=/^(\d+)(th|st|nd|rd)?/i,cz=/\d+/i,uz={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},lz={any:[/^b/i,/^(a|c)/i]},dz={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},fz={any:[/1/i,/2/i,/3/i,/4/i]},mz={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},pz={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},vz={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},gz={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},hz={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},bz={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},yz={ordinalNumber:sz({matchPattern:iz,parsePattern:cz,valueCallback:e=>parseInt(e,10)}),era:so({matchPatterns:uz,defaultMatchWidth:"wide",parsePatterns:lz,defaultParseWidth:"any"}),quarter:so({matchPatterns:dz,defaultMatchWidth:"wide",parsePatterns:fz,defaultParseWidth:"any",valueCallback:e=>e+1}),month:so({matchPatterns:mz,defaultMatchWidth:"wide",parsePatterns:pz,defaultParseWidth:"any"}),day:so({matchPatterns:vz,defaultMatchWidth:"wide",parsePatterns:gz,defaultParseWidth:"any"}),dayPeriod:so({matchPatterns:hz,defaultMatchWidth:"any",parsePatterns:bz,defaultParseWidth:"any"})},Ww={code:"en-US",formatDistance:UW,formatLong:VW,formatRelative:qW,localize:nz,match:yz,options:{weekStartsOn:0,firstWeekContainsDate:1}};P.createContext({locale:void 0});me.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function wz(e,t,r="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:e,timeZoneName:r}).format(t).split(/\s/g).slice(2).join(" ")}const xz={},io={};function vr(e,t){try{const r=(xz[e]||=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format)(t).split("GMT")[1];return r in io?io[r]:lv(r,r.split(":"))}catch{if(e in io)return io[e];const r=e?.match(Ez);return r?lv(e,r.slice(1)):NaN}}const Ez=/([+-]\d\d):?(\d\d)?/;function lv(e,t){const r=+(t[0]||0),n=+(t[1]||0),o=+(t[2]||0)/60;return io[e]=r*60+n>0?r*60+n+o:r*60-n-o}class ft extends Date{constructor(...t){super(),t.length>1&&typeof t[t.length-1]=="string"&&(this.timeZone=t.pop()),this.internal=new Date,isNaN(vr(this.timeZone,this))?this.setTime(NaN):t.length?typeof t[0]=="number"&&(t.length===1||t.length===2&&typeof t[1]!="number")?this.setTime(t[0]):typeof t[0]=="string"?this.setTime(+new Date(t[0])):t[0]instanceof Date?this.setTime(+t[0]):(this.setTime(+new Date(...t)),zw(this),jl(this)):this.setTime(Date.now())}static tz(t,...r){return r.length?new ft(...r,t):new ft(Date.now(),t)}withTimeZone(t){return new ft(+this,t)}getTimezoneOffset(){const t=-vr(this.timeZone,this);return t>0?Math.floor(t):Math.ceil(t)}setTime(t){return Date.prototype.setTime.apply(this,arguments),jl(this),+this}[Symbol.for("constructDateFrom")](t){return new ft(+new Date(t),this.timeZone)}}const dv=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!dv.test(e))return;const t=e.replace(dv,"$1UTC");ft.prototype[t]&&(e.startsWith("get")?ft.prototype[e]=function(){return this.internal[t]()}:(ft.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),kz(this),+this},ft.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),jl(this),+this}))});function jl(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-vr(e.timeZone,e)*60))}function kz(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),zw(e)}function zw(e){const t=vr(e.timeZone,e),r=t>0?Math.floor(t):Math.ceil(t),n=new Date(+e);n.setUTCHours(n.getUTCHours()-1);const o=-new Date(+e).getTimezoneOffset(),a=-new Date(+n).getTimezoneOffset(),c=o-a,s=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();c&&s&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+c);const p=o-r;p&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+p);const l=new Date(+e);l.setUTCSeconds(0);const u=o>0?l.getSeconds():(l.getSeconds()-60)%60,m=Math.round(-(vr(e.timeZone,e)*60))%60;(m||u)&&(e.internal.setUTCSeconds(e.internal.getUTCSeconds()+m),Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+m+u));const v=vr(e.timeZone,e),h=v>0?Math.floor(v):Math.ceil(v),x=-new Date(+e).getTimezoneOffset()-h,d=h!==r,g=x-p;if(d&&g){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+g);const b=vr(e.timeZone,e),y=b>0?Math.floor(b):Math.ceil(b),w=h-y;w&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+w),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+w))}}class gr extends ft{static tz(t,...r){return r.length?new gr(...r,t):new gr(Date.now(),t)}toISOString(){const[t,r,n]=this.tzComponents(),o=`${t}${r}:${n}`;return this.internal.toISOString().slice(0,-1)+o}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[t,r,n,o]=this.internal.toUTCString().split(" ");return`${t?.slice(0,-1)} ${n} ${r} ${o}`}toTimeString(){const t=this.internal.toUTCString().split(" ")[4],[r,n,o]=this.tzComponents();return`${t} GMT${r}${n}${o} (${wz(this.timeZone,this)})`}toLocaleString(t,r){return Date.prototype.toLocaleString.call(this,t,{...r,timeZone:r?.timeZone||this.timeZone})}toLocaleDateString(t,r){return Date.prototype.toLocaleDateString.call(this,t,{...r,timeZone:r?.timeZone||this.timeZone})}toLocaleTimeString(t,r){return Date.prototype.toLocaleTimeString.call(this,t,{...r,timeZone:r?.timeZone||this.timeZone})}tzComponents(){const t=this.getTimezoneOffset(),r=t>0?"-":"+",n=String(Math.floor(Math.abs(t)/60)).padStart(2,"0"),o=String(Math.abs(t)%60).padStart(2,"0");return[r,n,o]}withTimeZone(t){return new gr(+this,t)}[Symbol.for("constructDateFrom")](t){return new gr(+new Date(t),this.timeZone)}}const $w=6048e5,Sz=864e5,fv=Symbol.for("constructDateFrom");function ve(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&fv in e?e[fv](t):e instanceof Date?new e.constructor(t):new Date(t)}function de(e,t){return ve(t||e,e)}function Yw(e,t,r){const n=de(e,r?.in);return isNaN(t)?ve(e,NaN):(t&&n.setDate(n.getDate()+t),n)}function Uw(e,t,r){const n=de(e,r?.in);if(isNaN(t))return ve(e,NaN);if(!t)return n;const o=n.getDate(),a=ve(e,n.getTime());a.setMonth(n.getMonth()+t+1,0);const c=a.getDate();return o>=c?a:(n.setFullYear(a.getFullYear(),a.getMonth(),o),n)}let jz={};function Do(){return jz}function zn(e,t){const r=Do(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=de(e,t?.in),a=o.getDay(),c=(a<n?7:0)+a-n;return o.setDate(o.getDate()-c),o.setHours(0,0,0,0),o}function So(e,t){return zn(e,{...t,weekStartsOn:1})}function Bw(e,t){const r=de(e,t?.in),n=r.getFullYear(),o=ve(r,0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);const a=So(o),c=ve(r,0);c.setFullYear(n,0,4),c.setHours(0,0,0,0);const s=So(c);return r.getTime()>=a.getTime()?n+1:r.getTime()>=s.getTime()?n:n-1}function mv(e){const t=de(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function Kn(e,...t){const r=ve.bind(null,t.find(n=>typeof n=="object"));return t.map(r)}function jo(e,t){const r=de(e,t?.in);return r.setHours(0,0,0,0),r}function Kw(e,t,r){const[n,o]=Kn(r?.in,e,t),a=jo(n),c=jo(o),s=+a-mv(a),p=+c-mv(c);return Math.round((s-p)/Sz)}function Cz(e,t){const r=Bw(e,t),n=ve(e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),So(n)}function Rz(e,t,r){return Yw(e,t*7,r)}function Nz(e,t,r){return Uw(e,t*12,r)}function Tz(e,t){let r,n=t?.in;return e.forEach(o=>{!n&&typeof o=="object"&&(n=ve.bind(null,o));const a=de(o,n);(!r||r<a||isNaN(+a))&&(r=a)}),ve(n,r||NaN)}function Oz(e,t){let r,n=t?.in;return e.forEach(o=>{!n&&typeof o=="object"&&(n=ve.bind(null,o));const a=de(o,n);(!r||r>a||isNaN(+a))&&(r=a)}),ve(n,r||NaN)}function _z(e,t,r){const[n,o]=Kn(r?.in,e,t);return+jo(n)==+jo(o)}function Hw(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Dz(e){return!(!Hw(e)&&typeof e!="number"||isNaN(+de(e)))}function Pz(e,t,r){const[n,o]=Kn(r?.in,e,t),a=n.getFullYear()-o.getFullYear(),c=n.getMonth()-o.getMonth();return a*12+c}function Mz(e,t){const r=de(e,t?.in),n=r.getMonth();return r.setFullYear(r.getFullYear(),n+1,0),r.setHours(23,59,59,999),r}function Az(e,t){const[r,n]=Kn(e,t.start,t.end);return{start:r,end:n}}function Iz(e,t){const{start:r,end:n}=Az(t?.in,e);let o=+r>+n;const a=o?+r:+n,c=o?n:r;c.setHours(0,0,0,0),c.setDate(1);let s=1;const p=[];for(;+c<=a;)p.push(ve(r,c)),c.setMonth(c.getMonth()+s);return o?p.reverse():p}function Fz(e,t){const r=de(e,t?.in);return r.setDate(1),r.setHours(0,0,0,0),r}function Lz(e,t){const r=de(e,t?.in),n=r.getFullYear();return r.setFullYear(n+1,0,0),r.setHours(23,59,59,999),r}function Vw(e,t){const r=de(e,t?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}function Xw(e,t){const r=Do(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=de(e,t?.in),a=o.getDay(),c=(a<n?-7:0)+6-(a-n);return o.setDate(o.getDate()+c),o.setHours(23,59,59,999),o}function Wz(e,t){return Xw(e,{...t,weekStartsOn:1})}function zz(e,t){const r=de(e,t?.in);return Kw(r,Vw(r))+1}function qw(e,t){const r=de(e,t?.in),n=+So(r)-+Cz(r);return Math.round(n/$w)+1}function Gw(e,t){const r=de(e,t?.in),n=r.getFullYear(),o=Do(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,c=ve(t?.in||e,0);c.setFullYear(n+1,0,a),c.setHours(0,0,0,0);const s=zn(c,t),p=ve(t?.in||e,0);p.setFullYear(n,0,a),p.setHours(0,0,0,0);const l=zn(p,t);return+r>=+s?n+1:+r>=+l?n:n-1}function $z(e,t){const r=Do(),n=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=Gw(e,t),a=ve(t?.in||e,0);return a.setFullYear(o,0,n),a.setHours(0,0,0,0),zn(a,t)}function Zw(e,t){const r=de(e,t?.in),n=+zn(r,t)-+$z(r,t);return Math.round(n/$w)+1}function ce(e,t){const r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}const Vt={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return ce(t==="yy"?n%100:n,t.length)},M(e,t){const r=e.getMonth();return t==="M"?String(r+1):ce(r+1,2)},d(e,t){return ce(e.getDate(),t.length)},a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return ce(e.getHours()%12||12,t.length)},H(e,t){return ce(e.getHours(),t.length)},m(e,t){return ce(e.getMinutes(),t.length)},s(e,t){return ce(e.getSeconds(),t.length)},S(e,t){const r=t.length,n=e.getMilliseconds(),o=Math.trunc(n*Math.pow(10,r-3));return ce(o,t.length)}},pn={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},pv={G:function(e,t,r){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){const n=e.getFullYear(),o=n>0?n:1-n;return r.ordinalNumber(o,{unit:"year"})}return Vt.y(e,t)},Y:function(e,t,r,n){const o=Gw(e,n),a=o>0?o:1-o;if(t==="YY"){const c=a%100;return ce(c,2)}return t==="Yo"?r.ordinalNumber(a,{unit:"year"}):ce(a,t.length)},R:function(e,t){const r=Bw(e);return ce(r,t.length)},u:function(e,t){const r=e.getFullYear();return ce(r,t.length)},Q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return ce(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return ce(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){const n=e.getMonth();switch(t){case"M":case"MM":return Vt.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return ce(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){const o=Zw(e,n);return t==="wo"?r.ordinalNumber(o,{unit:"week"}):ce(o,t.length)},I:function(e,t,r){const n=qw(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):ce(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):Vt.d(e,t)},D:function(e,t,r){const n=zz(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):ce(n,t.length)},E:function(e,t,r){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){const o=e.getDay(),a=(o-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return ce(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){const o=e.getDay(),a=(o-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return ce(a,t.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,r){const n=e.getDay(),o=n===0?7:n;switch(t){case"i":return String(o);case"ii":return ce(o,t.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){const n=e.getHours();let o;switch(n===12?o=pn.noon:n===0?o=pn.midnight:o=n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,r){const n=e.getHours();let o;switch(n>=17?o=pn.evening:n>=12?o=pn.afternoon:n>=4?o=pn.morning:o=pn.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return Vt.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):Vt.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):ce(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):ce(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):Vt.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):Vt.s(e,t)},S:function(e,t){return Vt.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return gv(n);case"XXXX":case"XX":return pr(n);case"XXXXX":case"XXX":default:return pr(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return gv(n);case"xxxx":case"xx":return pr(n);case"xxxxx":case"xxx":default:return pr(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+vv(n,":");case"OOOO":default:return"GMT"+pr(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+vv(n,":");case"zzzz":default:return"GMT"+pr(n,":")}},t:function(e,t,r){const n=Math.trunc(+e/1e3);return ce(n,t.length)},T:function(e,t,r){return ce(+e,t.length)}};function vv(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),o=Math.trunc(n/60),a=n%60;return a===0?r+String(o):r+String(o)+t+ce(a,2)}function gv(e,t){return e%60===0?(e>0?"-":"+")+ce(Math.abs(e)/60,2):pr(e,t)}function pr(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),o=ce(Math.trunc(n/60),2),a=ce(n%60,2);return r+o+t+a}const hv=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Jw=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Yz=(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],o=r[2];if(!o)return hv(e,t);let a;switch(n){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",hv(n,t)).replace("{{time}}",Jw(o,t))},Uz={p:Jw,P:Yz},Bz=/^D+$/,Kz=/^Y+$/,Hz=["D","DD","YY","YYYY"];function Vz(e){return Bz.test(e)}function Xz(e){return Kz.test(e)}function qz(e,t,r){const n=Gz(e,t,r);if(console.warn(n),Hz.includes(e))throw new RangeError(n)}function Gz(e,t,r){const n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Zz=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Jz=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Qz=/^'([^]*?)'?$/,e$=/''/g,t$=/[a-zA-Z]/;function r$(e,t,r){const n=Do(),o=r?.locale??n.locale??Ww,a=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,c=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,s=de(e,r?.in);if(!Dz(s))throw new RangeError("Invalid time value");let p=t.match(Jz).map(u=>{const m=u[0];if(m==="p"||m==="P"){const v=Uz[m];return v(u,o.formatLong)}return u}).join("").match(Zz).map(u=>{if(u==="''")return{isToken:!1,value:"'"};const m=u[0];if(m==="'")return{isToken:!1,value:n$(u)};if(pv[m])return{isToken:!0,value:u};if(m.match(t$))throw new RangeError("Format string contains an unescaped latin alphabet character `"+m+"`");return{isToken:!1,value:u}});o.localize.preprocessor&&(p=o.localize.preprocessor(s,p));const l={firstWeekContainsDate:a,weekStartsOn:c,locale:o};return p.map(u=>{if(!u.isToken)return u.value;const m=u.value;(!r?.useAdditionalWeekYearTokens&&Xz(m)||!r?.useAdditionalDayOfYearTokens&&Vz(m))&&qz(m,t,String(e));const v=pv[m[0]];return v(s,m,o.localize,l)}).join("")}function n$(e){const t=e.match(Qz);return t?t[1].replace(e$,"'"):e}function o$(e,t){const r=de(e,t?.in),n=r.getFullYear(),o=r.getMonth(),a=ve(r,0);return a.setFullYear(n,o+1,0),a.setHours(0,0,0,0),a.getDate()}function a$(e,t){return de(e,t?.in).getMonth()}function s$(e,t){return de(e,t?.in).getFullYear()}function i$(e,t){return+de(e)>+de(t)}function c$(e,t){return+de(e)<+de(t)}function u$(e,t,r){const[n,o]=Kn(r?.in,e,t);return n.getFullYear()===o.getFullYear()&&n.getMonth()===o.getMonth()}function l$(e,t,r){const[n,o]=Kn(r?.in,e,t);return n.getFullYear()===o.getFullYear()}function d$(e,t,r){const n=de(e,r?.in),o=n.getFullYear(),a=n.getDate(),c=ve(e,0);c.setFullYear(o,t,15),c.setHours(0,0,0,0);const s=o$(c);return n.setMonth(t,Math.min(a,s)),n}function f$(e,t,r){const n=de(e,r?.in);return isNaN(+n)?ve(e,NaN):(n.setFullYear(t),n)}const bv=5,m$=4;function p$(e,t){const r=t.startOfMonth(e),n=r.getDay()>0?r.getDay():7,o=t.addDays(e,-n+1),a=t.addDays(o,bv*7-1);return t.getMonth(e)===t.getMonth(a)?bv:m$}function Qw(e,t){const r=t.startOfMonth(e),n=r.getDay();return n===1?r:n===0?t.addDays(r,-6):t.addDays(r,-1*(n-1))}function v$(e,t){const r=Qw(e,t),n=p$(e,t);return t.addDays(r,n*7-1)}class Co{constructor(t,r){this.Date=Date,this.today=()=>this.overrides?.today?this.overrides.today():this.options.timeZone?gr.tz(this.options.timeZone):new this.Date,this.newDate=(n,o,a)=>this.overrides?.newDate?this.overrides.newDate(n,o,a):this.options.timeZone?new gr(n,o,a,this.options.timeZone):new Date(n,o,a),this.addDays=(n,o)=>this.overrides?.addDays?this.overrides.addDays(n,o):Yw(n,o),this.addMonths=(n,o)=>this.overrides?.addMonths?this.overrides.addMonths(n,o):Uw(n,o),this.addWeeks=(n,o)=>this.overrides?.addWeeks?this.overrides.addWeeks(n,o):Rz(n,o),this.addYears=(n,o)=>this.overrides?.addYears?this.overrides.addYears(n,o):Nz(n,o),this.differenceInCalendarDays=(n,o)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(n,o):Kw(n,o),this.differenceInCalendarMonths=(n,o)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(n,o):Pz(n,o),this.eachMonthOfInterval=n=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(n):Iz(n),this.endOfBroadcastWeek=n=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(n):v$(n,this),this.endOfISOWeek=n=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(n):Wz(n),this.endOfMonth=n=>this.overrides?.endOfMonth?this.overrides.endOfMonth(n):Mz(n),this.endOfWeek=(n,o)=>this.overrides?.endOfWeek?this.overrides.endOfWeek(n,o):Xw(n,this.options),this.endOfYear=n=>this.overrides?.endOfYear?this.overrides.endOfYear(n):Lz(n),this.format=(n,o,a)=>{const c=this.overrides?.format?this.overrides.format(n,o,this.options):r$(n,o,this.options);return this.options.numerals&&this.options.numerals!=="latn"?this.replaceDigits(c):c},this.getISOWeek=n=>this.overrides?.getISOWeek?this.overrides.getISOWeek(n):qw(n),this.getMonth=(n,o)=>this.overrides?.getMonth?this.overrides.getMonth(n,this.options):a$(n,this.options),this.getYear=(n,o)=>this.overrides?.getYear?this.overrides.getYear(n,this.options):s$(n,this.options),this.getWeek=(n,o)=>this.overrides?.getWeek?this.overrides.getWeek(n,this.options):Zw(n,this.options),this.isAfter=(n,o)=>this.overrides?.isAfter?this.overrides.isAfter(n,o):i$(n,o),this.isBefore=(n,o)=>this.overrides?.isBefore?this.overrides.isBefore(n,o):c$(n,o),this.isDate=n=>this.overrides?.isDate?this.overrides.isDate(n):Hw(n),this.isSameDay=(n,o)=>this.overrides?.isSameDay?this.overrides.isSameDay(n,o):_z(n,o),this.isSameMonth=(n,o)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(n,o):u$(n,o),this.isSameYear=(n,o)=>this.overrides?.isSameYear?this.overrides.isSameYear(n,o):l$(n,o),this.max=n=>this.overrides?.max?this.overrides.max(n):Tz(n),this.min=n=>this.overrides?.min?this.overrides.min(n):Oz(n),this.setMonth=(n,o)=>this.overrides?.setMonth?this.overrides.setMonth(n,o):d$(n,o),this.setYear=(n,o)=>this.overrides?.setYear?this.overrides.setYear(n,o):f$(n,o),this.startOfBroadcastWeek=(n,o)=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(n,this):Qw(n,this),this.startOfDay=n=>this.overrides?.startOfDay?this.overrides.startOfDay(n):jo(n),this.startOfISOWeek=n=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(n):So(n),this.startOfMonth=n=>this.overrides?.startOfMonth?this.overrides.startOfMonth(n):Fz(n),this.startOfWeek=(n,o)=>this.overrides?.startOfWeek?this.overrides.startOfWeek(n,this.options):zn(n,this.options),this.startOfYear=n=>this.overrides?.startOfYear?this.overrides.startOfYear(n):Vw(n),this.options={locale:Ww,...t},this.overrides=r}getDigitMap(){const{numerals:t="latn"}=this.options,r=new Intl.NumberFormat("en-US",{numberingSystem:t}),n={};for(let o=0;o<10;o++)n[o.toString()]=r.format(o);return n}replaceDigits(t){const r=this.getDigitMap();return t.replace(/\d/g,n=>r[n]||n)}formatNumber(t){return this.replaceDigits(t.toString())}getMonthYearOrder(){const t=this.options.locale?.code;return t&&Co.yearFirstLocales.has(t)?"year-first":"month-first"}formatMonthYear(t){const{locale:r,timeZone:n,numerals:o}=this.options,a=r?.code;if(a&&Co.yearFirstLocales.has(a))try{return new Intl.DateTimeFormat(a,{month:"long",year:"numeric",timeZone:n,numberingSystem:o}).format(t)}catch{}const c=this.getMonthYearOrder()==="year-first"?"y LLLL":"LLLL y";return this.format(t,c)}}Co.yearFirstLocales=new Set(["eu","hu","ja","ja-Hira","ja-JP","ko","ko-KR","lt","lt-LT","lv","lv-LV","mn","mn-MN","zh","zh-CN","zh-HK","zh-TW"]);new Co;var yv;(function(e){e.Root="root",e.Chevron="chevron",e.Day="day",e.DayButton="day_button",e.CaptionLabel="caption_label",e.Dropdowns="dropdowns",e.Dropdown="dropdown",e.DropdownRoot="dropdown_root",e.Footer="footer",e.MonthGrid="month_grid",e.MonthCaption="month_caption",e.MonthsDropdown="months_dropdown",e.Month="month",e.Months="months",e.Nav="nav",e.NextMonthButton="button_next",e.PreviousMonthButton="button_previous",e.Week="week",e.Weeks="weeks",e.Weekday="weekday",e.Weekdays="weekdays",e.WeekNumber="week_number",e.WeekNumberHeader="week_number_header",e.YearsDropdown="years_dropdown"})(yv||(yv={}));var wv;(function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"})(wv||(wv={}));var xv;(function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"})(xv||(xv={}));var Ev;(function(e){e.weeks_before_enter="weeks_before_enter",e.weeks_before_exit="weeks_before_exit",e.weeks_after_enter="weeks_after_enter",e.weeks_after_exit="weeks_after_exit",e.caption_after_enter="caption_after_enter",e.caption_after_exit="caption_after_exit",e.caption_before_enter="caption_before_enter",e.caption_before_exit="caption_before_exit"})(Ev||(Ev={}));P.createContext(void 0);var kv;(function(e){e[e.Today=0]="Today",e[e.Selected=1]="Selected",e[e.LastFocused=2]="LastFocused",e[e.FocusedModifier=3]="FocusedModifier"})(kv||(kv={}));function cr(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function Sv(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function g$(...e){return t=>{let r=!1;const n=e.map(o=>{const a=Sv(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():Sv(e[o],null)}}}}function fr(...e){return i.useCallback(g$(...e),e)}function ex(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),p=r.length;r=[...r,c];const l=m=>{const{scope:v,children:h,...x}=m,d=v?.[e]?.[p]||s,g=i.useMemo(()=>x,Object.values(x));return le.jsx(d.Provider,{value:g,children:h})};l.displayName=a+"Provider";function u(m,v){const h=v?.[e]?.[p]||s,x=i.useContext(h);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${m}\` must be used within \`${a}\``)}return[l,u]}const o=()=>{const a=r.map(c=>i.createContext(c));return function(c){const s=c?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:s}}),[c,s])}};return o.scopeName=e,[n,h$(o,...t)]}function h$(...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(o){const a=n.reduce((c,{useScope:s,scopeName:p})=>{const l=s(o)[`__scope${p}`];return{...c,...l}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var b$=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Kt=b$.reduce((e,t)=>{const r=oe.createSlot(`Primitive.${t}`),n=i.forwardRef((o,a)=>{const{asChild:c,...s}=o,p=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),le.jsx(p,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function y$(e,t){e&&We.flushSync(()=>e.dispatchEvent(t))}function $n(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function w$(e,t=globalThis?.document){const r=$n(e);i.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 x$="DismissableLayer",Cl="dismissableLayer.update",E$="dismissableLayer.pointerDownOutside",k$="dismissableLayer.focusOutside",jv,tx=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),rx=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...p}=e,l=i.useContext(tx),[u,m]=i.useState(null),v=u?.ownerDocument??globalThis?.document,[,h]=i.useState({}),x=fr(t,S=>m(S)),d=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),b=d.indexOf(g),y=u?d.indexOf(u):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,E=y>=b,j=C$(S=>{const R=S.target,M=[...l.branches].some(L=>L.contains(R));!E||M||(o?.(S),c?.(S),S.defaultPrevented||s?.())},v),T=R$(S=>{const R=S.target;[...l.branches].some(M=>M.contains(R))||(a?.(S),c?.(S),S.defaultPrevented||s?.())},v);return w$(S=>{y===l.layers.size-1&&(n?.(S),!S.defaultPrevented&&s&&(S.preventDefault(),s()))},v),i.useEffect(()=>{if(u)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(jv=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),Cv(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=jv)}},[u,v,r,l]),i.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),Cv())},[u,l]),i.useEffect(()=>{const S=()=>h({});return document.addEventListener(Cl,S),()=>document.removeEventListener(Cl,S)},[]),le.jsx(Kt.div,{...p,ref:x,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:cr(e.onFocusCapture,T.onFocusCapture),onBlurCapture:cr(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:cr(e.onPointerDownCapture,j.onPointerDownCapture)})});rx.displayName=x$;var S$="DismissableLayerBranch",j$=i.forwardRef((e,t)=>{const r=i.useContext(tx),n=i.useRef(null),o=fr(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),le.jsx(Kt.div,{...e,ref:o})});j$.displayName=S$;function C$(e,t=globalThis?.document){const r=$n(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let p=function(){nx(E$,r,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=p,t.addEventListener("click",o.current,{once:!0})):p()}else t.removeEventListener("click",o.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function R$(e,t=globalThis?.document){const r=$n(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&nx(k$,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Cv(){const e=new CustomEvent(Cl);document.dispatchEvent(e)}function nx(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?y$(o,a):o.dispatchEvent(a)}var Mu=0;function N$(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Rv()),document.body.insertAdjacentElement("beforeend",e[1]??Rv()),Mu++,()=>{Mu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Mu--}},[])}function Rv(){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 Au="focusScope.autoFocusOnMount",Iu="focusScope.autoFocusOnUnmount",Nv={bubbles:!1,cancelable:!0},T$="FocusScope",ox=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,p]=i.useState(null),l=$n(o),u=$n(a),m=i.useRef(null),v=fr(t,d=>p(d)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let d=function(w){if(h.paused||!s)return;const E=w.target;s.contains(E)?m.current=E:ar(m.current,{select:!0})},g=function(w){if(h.paused||!s)return;const E=w.relatedTarget;E!==null&&(s.contains(E)||ar(m.current,{select:!0}))},b=function(w){if(document.activeElement===document.body)for(const E of w)E.removedNodes.length>0&&ar(s)};document.addEventListener("focusin",d),document.addEventListener("focusout",g);const y=new MutationObserver(b);return s&&y.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",d),document.removeEventListener("focusout",g),y.disconnect()}}},[n,s,h.paused]),i.useEffect(()=>{if(s){Ov.add(h);const d=document.activeElement;if(!s.contains(d)){const g=new CustomEvent(Au,Nv);s.addEventListener(Au,l),s.dispatchEvent(g),g.defaultPrevented||(O$(A$(ax(s)),{select:!0}),document.activeElement===d&&ar(s))}return()=>{s.removeEventListener(Au,l),setTimeout(()=>{const g=new CustomEvent(Iu,Nv);s.addEventListener(Iu,u),s.dispatchEvent(g),g.defaultPrevented||ar(d??document.body,{select:!0}),s.removeEventListener(Iu,u),Ov.remove(h)},0)}}},[s,l,u,h]);const x=i.useCallback(d=>{if(!r&&!n||h.paused)return;const g=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,b=document.activeElement;if(g&&b){const y=d.currentTarget,[w,E]=_$(y);w&&E?!d.shiftKey&&b===E?(d.preventDefault(),r&&ar(w,{select:!0})):d.shiftKey&&b===w&&(d.preventDefault(),r&&ar(E,{select:!0})):b===y&&d.preventDefault()}},[r,n,h.paused]);return le.jsx(Kt.div,{tabIndex:-1,...c,ref:v,onKeyDown:x})});ox.displayName=T$;function O$(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(ar(n,{select:t}),document.activeElement!==r)return}function _$(e){const t=ax(e),r=Tv(t,e),n=Tv(t.reverse(),e);return[r,n]}function ax(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 Tv(e,t){for(const r of e)if(!D$(r,{upTo:t}))return r}function D$(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 P$(e){return e instanceof HTMLInputElement&&"select"in e}function ar(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&P$(e)&&t&&e.select()}}var Ov=M$();function M$(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=_v(e,t),e.unshift(t)},remove(t){e=_v(e,t),e[0]?.resume()}}}function _v(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function A$(e){return e.filter(t=>t.tagName!=="A")}var Yn=globalThis?.document?i.useLayoutEffect:()=>{};const I$=["top","right","bottom","left"],lr=Math.min,Ie=Math.max,Qs=Math.round,ns=Math.floor,pt=e=>({x:e,y:e}),F$={left:"right",right:"left",bottom:"top",top:"bottom"},L$={start:"end",end:"start"};function Rl(e,t,r){return Ie(e,lr(t,r))}function $t(e,t){return typeof e=="function"?e(t):e}function Yt(e){return e.split("-")[0]}function Hn(e){return e.split("-")[1]}function jd(e){return e==="x"?"y":"x"}function Cd(e){return e==="y"?"height":"width"}const W$=new Set(["top","bottom"]);function mt(e){return W$.has(Yt(e))?"y":"x"}function Rd(e){return jd(mt(e))}function z$(e,t,r){r===void 0&&(r=!1);const n=Hn(e),o=Rd(e),a=Cd(o);let c=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(c=ei(c)),[c,ei(c)]}function $$(e){const t=ei(e);return[Nl(e),t,Nl(t)]}function Nl(e){return e.replace(/start|end/g,t=>L$[t])}const Dv=["left","right"],Pv=["right","left"],Y$=["top","bottom"],U$=["bottom","top"];function B$(e,t,r){switch(e){case"top":case"bottom":return r?t?Pv:Dv:t?Dv:Pv;case"left":case"right":return t?Y$:U$;default:return[]}}function K$(e,t,r,n){const o=Hn(e);let a=B$(Yt(e),r==="start",n);return o&&(a=a.map(c=>c+"-"+o),t&&(a=a.concat(a.map(Nl)))),a}function ei(e){return e.replace(/left|right|bottom|top/g,t=>F$[t])}function H$(e){return{top:0,right:0,bottom:0,left:0,...e}}function sx(e){return typeof e!="number"?H$(e):{top:e,right:e,bottom:e,left:e}}function ti(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 Mv(e,t,r){let{reference:n,floating:o}=e;const a=mt(t),c=Rd(t),s=Cd(c),p=Yt(t),l=a==="y",u=n.x+n.width/2-o.width/2,m=n.y+n.height/2-o.height/2,v=n[s]/2-o[s]/2;let h;switch(p){case"top":h={x:u,y:n.y-o.height};break;case"bottom":h={x:u,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:m};break;case"left":h={x:n.x-o.width,y:m};break;default:h={x:n.x,y:n.y}}switch(Hn(t)){case"start":h[c]-=v*(r&&l?-1:1);break;case"end":h[c]+=v*(r&&l?-1:1);break}return h}const V$=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:c}=r,s=a.filter(Boolean),p=await(c.isRTL==null?void 0:c.isRTL(t));let l=await c.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:m}=Mv(l,n,p),v=n,h={},x=0;for(let d=0;d<s.length;d++){const{name:g,fn:b}=s[d],{x:y,y:w,data:E,reset:j}=await b({x:u,y:m,initialPlacement:n,placement:v,strategy:o,middlewareData:h,rects:l,platform:c,elements:{reference:e,floating:t}});u=y??u,m=w??m,h={...h,[g]:{...h[g],...E}},j&&x<=50&&(x++,typeof j=="object"&&(j.placement&&(v=j.placement),j.rects&&(l=j.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:o}):j.rects),{x:u,y:m}=Mv(l,v,p)),d=-1)}return{x:u,y:m,placement:v,strategy:o,middlewareData:h}};async function Ro(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:a,rects:c,elements:s,strategy:p}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:m="floating",altBoundary:v=!1,padding:h=0}=$t(t,e),x=sx(h),d=s[v?m==="floating"?"reference":"floating":m],g=ti(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(d)))==null||r?d:d.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:l,rootBoundary:u,strategy:p})),b=m==="floating"?{x:n,y:o,width:c.floating.width,height:c.floating.height}:c.reference,y=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),w=await(a.isElement==null?void 0:a.isElement(y))?await(a.getScale==null?void 0:a.getScale(y))||{x:1,y:1}:{x:1,y:1},E=ti(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:y,strategy:p}):b);return{top:(g.top-E.top+x.top)/w.y,bottom:(E.bottom-g.bottom+x.bottom)/w.y,left:(g.left-E.left+x.left)/w.x,right:(E.right-g.right+x.right)/w.x}}const X$=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:a,platform:c,elements:s,middlewareData:p}=t,{element:l,padding:u=0}=$t(e,t)||{};if(l==null)return{};const m=sx(u),v={x:r,y:n},h=Rd(o),x=Cd(h),d=await c.getDimensions(l),g=h==="y",b=g?"top":"left",y=g?"bottom":"right",w=g?"clientHeight":"clientWidth",E=a.reference[x]+a.reference[h]-v[h]-a.floating[x],j=v[h]-a.reference[h],T=await(c.getOffsetParent==null?void 0:c.getOffsetParent(l));let S=T?T[w]:0;(!S||!await(c.isElement==null?void 0:c.isElement(T)))&&(S=s.floating[w]||a.floating[x]);const R=E/2-j/2,M=S/2-d[x]/2-1,L=lr(m[b],M),I=lr(m[y],M),B=L,K=S-d[x]-I,z=S/2-d[x]/2+R,D=Rl(B,z,K),Y=!p.arrow&&Hn(o)!=null&&z!==D&&a.reference[x]/2-(z<B?L:I)-d[x]/2<0,H=Y?z<B?z-B:z-K:0;return{[h]:v[h]+H,data:{[h]:D,centerOffset:z-D-H,...Y&&{alignmentOffset:H}},reset:Y}}}),q$=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:a,rects:c,initialPlacement:s,platform:p,elements:l}=t,{mainAxis:u=!0,crossAxis:m=!0,fallbackPlacements:v,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:d=!0,...g}=$t(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const b=Yt(o),y=mt(s),w=Yt(s)===s,E=await(p.isRTL==null?void 0:p.isRTL(l.floating)),j=v||(w||!d?[ei(s)]:$$(s)),T=x!=="none";!v&&T&&j.push(...K$(s,d,x,E));const S=[s,...j],R=await Ro(t,g),M=[];let L=((n=a.flip)==null?void 0:n.overflows)||[];if(u&&M.push(R[b]),m){const z=z$(o,c,E);M.push(R[z[0]],R[z[1]])}if(L=[...L,{placement:o,overflows:M}],!M.every(z=>z<=0)){var I,B;const z=(((I=a.flip)==null?void 0:I.index)||0)+1,D=S[z];if(D&&(!(m==="alignment"&&y!==mt(D))||L.every(H=>mt(H.placement)===y?H.overflows[0]>0:!0)))return{data:{index:z,overflows:L},reset:{placement:D}};let Y=(B=L.filter(H=>H.overflows[0]<=0).sort((H,U)=>H.overflows[1]-U.overflows[1])[0])==null?void 0:B.placement;if(!Y)switch(h){case"bestFit":{var K;const H=(K=L.filter(U=>{if(T){const V=mt(U.placement);return V===y||V==="y"}return!0}).map(U=>[U.placement,U.overflows.filter(V=>V>0).reduce((V,f)=>V+f,0)]).sort((U,V)=>U[1]-V[1])[0])==null?void 0:K[0];H&&(Y=H);break}case"initialPlacement":Y=s;break}if(o!==Y)return{reset:{placement:Y}}}return{}}}};function Av(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Iv(e){return I$.some(t=>e[t]>=0)}const G$=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=$t(e,t);switch(n){case"referenceHidden":{const a=await Ro(t,{...o,elementContext:"reference"}),c=Av(a,r.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:Iv(c)}}}case"escaped":{const a=await Ro(t,{...o,altBoundary:!0}),c=Av(a,r.floating);return{data:{escapedOffsets:c,escaped:Iv(c)}}}default:return{}}}}},ix=new Set(["left","top"]);async function Z$(e,t){const{placement:r,platform:n,elements:o}=e,a=await(n.isRTL==null?void 0:n.isRTL(o.floating)),c=Yt(r),s=Hn(r),p=mt(r)==="y",l=ix.has(c)?-1:1,u=a&&p?-1:1,m=$t(t,e);let{mainAxis:v,crossAxis:h,alignmentAxis:x}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return s&&typeof x=="number"&&(h=s==="end"?x*-1:x),p?{x:h*u,y:v*l}:{x:v*l,y:h*u}}const J$=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:a,placement:c,middlewareData:s}=t,p=await Z$(t,e);return c===((r=s.offset)==null?void 0:r.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:o+p.x,y:a+p.y,data:{...p,placement:c}}}}},Q$=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:a=!0,crossAxis:c=!1,limiter:s={fn:g=>{let{x:b,y}=g;return{x:b,y}}},...p}=$t(e,t),l={x:r,y:n},u=await Ro(t,p),m=mt(Yt(o)),v=jd(m);let h=l[v],x=l[m];if(a){const g=v==="y"?"top":"left",b=v==="y"?"bottom":"right",y=h+u[g],w=h-u[b];h=Rl(y,h,w)}if(c){const g=m==="y"?"top":"left",b=m==="y"?"bottom":"right",y=x+u[g],w=x-u[b];x=Rl(y,x,w)}const d=s.fn({...t,[v]:h,[m]:x});return{...d,data:{x:d.x-r,y:d.y-n,enabled:{[v]:a,[m]:c}}}}}},eY=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:a,middlewareData:c}=t,{offset:s=0,mainAxis:p=!0,crossAxis:l=!0}=$t(e,t),u={x:r,y:n},m=mt(o),v=jd(m);let h=u[v],x=u[m];const d=$t(s,t),g=typeof d=="number"?{mainAxis:d,crossAxis:0}:{mainAxis:0,crossAxis:0,...d};if(p){const w=v==="y"?"height":"width",E=a.reference[v]-a.floating[w]+g.mainAxis,j=a.reference[v]+a.reference[w]-g.mainAxis;h<E?h=E:h>j&&(h=j)}if(l){var b,y;const w=v==="y"?"width":"height",E=ix.has(Yt(o)),j=a.reference[m]-a.floating[w]+(E&&((b=c.offset)==null?void 0:b[m])||0)+(E?0:g.crossAxis),T=a.reference[m]+a.reference[w]+(E?0:((y=c.offset)==null?void 0:y[m])||0)-(E?g.crossAxis:0);x<j?x=j:x>T&&(x=T)}return{[v]:h,[m]:x}}}},tY=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:a,platform:c,elements:s}=t,{apply:p=()=>{},...l}=$t(e,t),u=await Ro(t,l),m=Yt(o),v=Hn(o),h=mt(o)==="y",{width:x,height:d}=a.floating;let g,b;m==="top"||m==="bottom"?(g=m,b=v===(await(c.isRTL==null?void 0:c.isRTL(s.floating))?"start":"end")?"left":"right"):(b=m,g=v==="end"?"top":"bottom");const y=d-u.top-u.bottom,w=x-u.left-u.right,E=lr(d-u[g],y),j=lr(x-u[b],w),T=!t.middlewareData.shift;let S=E,R=j;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(R=w),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(S=y),T&&!v){const L=Ie(u.left,0),I=Ie(u.right,0),B=Ie(u.top,0),K=Ie(u.bottom,0);h?R=x-2*(L!==0||I!==0?L+I:Ie(u.left,u.right)):S=d-2*(B!==0||K!==0?B+K:Ie(u.top,u.bottom))}await p({...t,availableWidth:R,availableHeight:S});const M=await c.getDimensions(s.floating);return x!==M.width||d!==M.height?{reset:{rects:!0}}:{}}}};function Fi(){return typeof window<"u"}function Vn(e){return cx(e)?(e.nodeName||"").toLowerCase():"#document"}function Fe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function It(e){var t;return(t=(cx(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function cx(e){return Fi()?e instanceof Node||e instanceof Fe(e).Node:!1}function Ge(e){return Fi()?e instanceof Element||e instanceof Fe(e).Element:!1}function St(e){return Fi()?e instanceof HTMLElement||e instanceof Fe(e).HTMLElement:!1}function Fv(e){return!Fi()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Fe(e).ShadowRoot}const rY=new Set(["inline","contents"]);function Po(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=Ze(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!rY.has(o)}const nY=new Set(["table","td","th"]);function oY(e){return nY.has(Vn(e))}const aY=[":popover-open",":modal"];function Li(e){return aY.some(t=>{try{return e.matches(t)}catch{return!1}})}const sY=["transform","translate","scale","rotate","perspective"],iY=["transform","translate","scale","rotate","perspective","filter"],cY=["paint","layout","strict","content"];function Nd(e){const t=Td(),r=Ge(e)?Ze(e):e;return sY.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)||iY.some(n=>(r.willChange||"").includes(n))||cY.some(n=>(r.contain||"").includes(n))}function uY(e){let t=dr(e);for(;St(t)&&!Un(t);){if(Nd(t))return t;if(Li(t))return null;t=dr(t)}return null}function Td(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const lY=new Set(["html","body","#document"]);function Un(e){return lY.has(Vn(e))}function Ze(e){return Fe(e).getComputedStyle(e)}function Wi(e){return Ge(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function dr(e){if(Vn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Fv(e)&&e.host||It(e);return Fv(t)?t.host:t}function ux(e){const t=dr(e);return Un(t)?e.ownerDocument?e.ownerDocument.body:e.body:St(t)&&Po(t)?t:ux(t)}function No(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=ux(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),c=Fe(o);if(a){const s=Tl(c);return t.concat(c,c.visualViewport||[],Po(o)?o:[],s&&r?No(s):[])}return t.concat(o,No(o,[],r))}function Tl(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function lx(e){const t=Ze(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=St(e),a=o?e.offsetWidth:r,c=o?e.offsetHeight:n,s=Qs(r)!==a||Qs(n)!==c;return s&&(r=a,n=c),{width:r,height:n,$:s}}function Od(e){return Ge(e)?e:e.contextElement}function Tn(e){const t=Od(e);if(!St(t))return pt(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:a}=lx(t);let c=(a?Qs(r.width):r.width)/n,s=(a?Qs(r.height):r.height)/o;return(!c||!Number.isFinite(c))&&(c=1),(!s||!Number.isFinite(s))&&(s=1),{x:c,y:s}}const dY=pt(0);function dx(e){const t=Fe(e);return!Td()||!t.visualViewport?dY:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function fY(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Fe(e)?!1:t}function Nr(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),a=Od(e);let c=pt(1);t&&(n?Ge(n)&&(c=Tn(n)):c=Tn(e));const s=fY(a,r,n)?dx(a):pt(0);let p=(o.left+s.x)/c.x,l=(o.top+s.y)/c.y,u=o.width/c.x,m=o.height/c.y;if(a){const v=Fe(a),h=n&&Ge(n)?Fe(n):n;let x=v,d=Tl(x);for(;d&&n&&h!==x;){const g=Tn(d),b=d.getBoundingClientRect(),y=Ze(d),w=b.left+(d.clientLeft+parseFloat(y.paddingLeft))*g.x,E=b.top+(d.clientTop+parseFloat(y.paddingTop))*g.y;p*=g.x,l*=g.y,u*=g.x,m*=g.y,p+=w,l+=E,x=Fe(d),d=Tl(x)}}return ti({width:u,height:m,x:p,y:l})}function zi(e,t){const r=Wi(e).scrollLeft;return t?t.left+r:Nr(It(e)).left+r}function fx(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-zi(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function mY(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const a=o==="fixed",c=It(n),s=t?Li(t.floating):!1;if(n===c||s&&a)return r;let p={scrollLeft:0,scrollTop:0},l=pt(1);const u=pt(0),m=St(n);if((m||!m&&!a)&&((Vn(n)!=="body"||Po(c))&&(p=Wi(n)),St(n))){const h=Nr(n);l=Tn(n),u.x=h.x+n.clientLeft,u.y=h.y+n.clientTop}const v=c&&!m&&!a?fx(c,p):pt(0);return{width:r.width*l.x,height:r.height*l.y,x:r.x*l.x-p.scrollLeft*l.x+u.x+v.x,y:r.y*l.y-p.scrollTop*l.y+u.y+v.y}}function pY(e){return Array.from(e.getClientRects())}function vY(e){const t=It(e),r=Wi(e),n=e.ownerDocument.body,o=Ie(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=Ie(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let c=-r.scrollLeft+zi(e);const s=-r.scrollTop;return Ze(n).direction==="rtl"&&(c+=Ie(t.clientWidth,n.clientWidth)-o),{width:o,height:a,x:c,y:s}}const Lv=25;function gY(e,t){const r=Fe(e),n=It(e),o=r.visualViewport;let a=n.clientWidth,c=n.clientHeight,s=0,p=0;if(o){a=o.width,c=o.height;const u=Td();(!u||u&&t==="fixed")&&(s=o.offsetLeft,p=o.offsetTop)}const l=zi(n);if(l<=0){const u=n.ownerDocument,m=u.body,v=getComputedStyle(m),h=u.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,x=Math.abs(n.clientWidth-m.clientWidth-h);x<=Lv&&(a-=x)}else l<=Lv&&(a+=l);return{width:a,height:c,x:s,y:p}}const hY=new Set(["absolute","fixed"]);function bY(e,t){const r=Nr(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,a=St(e)?Tn(e):pt(1),c=e.clientWidth*a.x,s=e.clientHeight*a.y,p=o*a.x,l=n*a.y;return{width:c,height:s,x:p,y:l}}function Wv(e,t,r){let n;if(t==="viewport")n=gY(e,r);else if(t==="document")n=vY(It(e));else if(Ge(t))n=bY(t,r);else{const o=dx(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return ti(n)}function mx(e,t){const r=dr(e);return r===t||!Ge(r)||Un(r)?!1:Ze(r).position==="fixed"||mx(r,t)}function yY(e,t){const r=t.get(e);if(r)return r;let n=No(e,[],!1).filter(s=>Ge(s)&&Vn(s)!=="body"),o=null;const a=Ze(e).position==="fixed";let c=a?dr(e):e;for(;Ge(c)&&!Un(c);){const s=Ze(c),p=Nd(c);!p&&s.position==="fixed"&&(o=null),(a?!p&&!o:!p&&s.position==="static"&&o&&hY.has(o.position)||Po(c)&&!p&&mx(e,c))?n=n.filter(l=>l!==c):o=s,c=dr(c)}return t.set(e,n),n}function wY(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const a=[...r==="clippingAncestors"?Li(t)?[]:yY(t,this._c):[].concat(r),n],c=a[0],s=a.reduce((p,l)=>{const u=Wv(t,l,o);return p.top=Ie(u.top,p.top),p.right=lr(u.right,p.right),p.bottom=lr(u.bottom,p.bottom),p.left=Ie(u.left,p.left),p},Wv(t,c,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function xY(e){const{width:t,height:r}=lx(e);return{width:t,height:r}}function EY(e,t,r){const n=St(t),o=It(t),a=r==="fixed",c=Nr(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const p=pt(0);function l(){p.x=zi(o)}if(n||!n&&!a)if((Vn(t)!=="body"||Po(o))&&(s=Wi(t)),n){const h=Nr(t,!0,a,t);p.x=h.x+t.clientLeft,p.y=h.y+t.clientTop}else o&&l();a&&!n&&o&&l();const u=o&&!n&&!a?fx(o,s):pt(0),m=c.left+s.scrollLeft-p.x-u.x,v=c.top+s.scrollTop-p.y-u.y;return{x:m,y:v,width:c.width,height:c.height}}function Fu(e){return Ze(e).position==="static"}function zv(e,t){if(!St(e)||Ze(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return It(e)===r&&(r=r.ownerDocument.body),r}function px(e,t){const r=Fe(e);if(Li(e))return r;if(!St(e)){let o=dr(e);for(;o&&!Un(o);){if(Ge(o)&&!Fu(o))return o;o=dr(o)}return r}let n=zv(e,t);for(;n&&oY(n)&&Fu(n);)n=zv(n,t);return n&&Un(n)&&Fu(n)&&!Nd(n)?r:n||uY(e)||r}const kY=async function(e){const t=this.getOffsetParent||px,r=this.getDimensions,n=await r(e.floating);return{reference:EY(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function SY(e){return Ze(e).direction==="rtl"}const jY={convertOffsetParentRelativeRectToViewportRelativeRect:mY,getDocumentElement:It,getClippingRect:wY,getOffsetParent:px,getElementRects:kY,getClientRects:pY,getDimensions:xY,getScale:Tn,isElement:Ge,isRTL:SY};function vx(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function CY(e,t){let r=null,n;const o=It(e);function a(){var s;clearTimeout(n),(s=r)==null||s.disconnect(),r=null}function c(s,p){s===void 0&&(s=!1),p===void 0&&(p=1),a();const l=e.getBoundingClientRect(),{left:u,top:m,width:v,height:h}=l;if(s||t(),!v||!h)return;const x=ns(m),d=ns(o.clientWidth-(u+v)),g=ns(o.clientHeight-(m+h)),b=ns(u),y={rootMargin:-x+"px "+-d+"px "+-g+"px "+-b+"px",threshold:Ie(0,lr(1,p))||1};let w=!0;function E(j){const T=j[0].intersectionRatio;if(T!==p){if(!w)return c();T?c(!1,T):n=setTimeout(()=>{c(!1,1e-7)},1e3)}T===1&&!vx(l,e.getBoundingClientRect())&&c(),w=!1}try{r=new IntersectionObserver(E,{...y,root:o.ownerDocument})}catch{r=new IntersectionObserver(E,y)}r.observe(e)}return c(!0),a}function RY(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:p=!1}=n,l=Od(e),u=o||a?[...l?No(l):[],...No(t)]:[];u.forEach(b=>{o&&b.addEventListener("scroll",r,{passive:!0}),a&&b.addEventListener("resize",r)});const m=l&&s?CY(l,r):null;let v=-1,h=null;c&&(h=new ResizeObserver(b=>{let[y]=b;y&&y.target===l&&h&&(h.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var w;(w=h)==null||w.observe(t)})),r()}),l&&!p&&h.observe(l),h.observe(t));let x,d=p?Nr(e):null;p&&g();function g(){const b=Nr(e);d&&!vx(d,b)&&r(),d=b,x=requestAnimationFrame(g)}return r(),()=>{var b;u.forEach(y=>{o&&y.removeEventListener("scroll",r),a&&y.removeEventListener("resize",r)}),m?.(),(b=h)==null||b.disconnect(),h=null,p&&cancelAnimationFrame(x)}}const NY=J$,TY=Q$,OY=q$,_Y=tY,DY=G$,$v=X$,PY=eY,MY=(e,t,r)=>{const n=new Map,o={platform:jY,...r},a={...o.platform,_c:n};return V$(e,t,{...o,platform:a})};var AY=typeof document<"u",IY=function(){},Ds=AY?P.useLayoutEffect:IY;function ri(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(!ri(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 a=o[n];if(!(a==="_owner"&&e.$$typeof)&&!ri(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function gx(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Yv(e,t){const r=gx(e);return Math.round(t*r)/r}function Lu(e){const t=i.useRef(e);return Ds(()=>{t.current=e}),t}function FY(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:a,floating:c}={},transform:s=!0,whileElementsMounted:p,open:l}=e,[u,m]=i.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[v,h]=i.useState(n);ri(v,n)||h(n);const[x,d]=i.useState(null),[g,b]=i.useState(null),y=i.useCallback(U=>{U!==T.current&&(T.current=U,d(U))},[]),w=i.useCallback(U=>{U!==S.current&&(S.current=U,b(U))},[]),E=a||x,j=c||g,T=i.useRef(null),S=i.useRef(null),R=i.useRef(u),M=p!=null,L=Lu(p),I=Lu(o),B=Lu(l),K=i.useCallback(()=>{if(!T.current||!S.current)return;const U={placement:t,strategy:r,middleware:v};I.current&&(U.platform=I.current),MY(T.current,S.current,U).then(V=>{const f={...V,isPositioned:B.current!==!1};z.current&&!ri(R.current,f)&&(R.current=f,We.flushSync(()=>{m(f)}))})},[v,t,r,I,B]);Ds(()=>{l===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,m(U=>({...U,isPositioned:!1})))},[l]);const z=i.useRef(!1);Ds(()=>(z.current=!0,()=>{z.current=!1}),[]),Ds(()=>{if(E&&(T.current=E),j&&(S.current=j),E&&j){if(L.current)return L.current(E,j,K);K()}},[E,j,K,L,M]);const D=i.useMemo(()=>({reference:T,floating:S,setReference:y,setFloating:w}),[y,w]),Y=i.useMemo(()=>({reference:E,floating:j}),[E,j]),H=i.useMemo(()=>{const U={position:r,left:0,top:0};if(!Y.floating)return U;const V=Yv(Y.floating,u.x),f=Yv(Y.floating,u.y);return s?{...U,transform:"translate("+V+"px, "+f+"px)",...gx(Y.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:V,top:f}},[r,s,Y.floating,u.x,u.y]);return i.useMemo(()=>({...u,update:K,refs:D,elements:Y,floatingStyles:H}),[u,K,D,Y,H])}const LY=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?$v({element:n.current,padding:o}).fn(r):{}:n?$v({element:n,padding:o}).fn(r):{}}}},WY=(e,t)=>({...NY(e),options:[e,t]}),zY=(e,t)=>({...TY(e),options:[e,t]}),$Y=(e,t)=>({...PY(e),options:[e,t]}),YY=(e,t)=>({...OY(e),options:[e,t]}),UY=(e,t)=>({..._Y(e),options:[e,t]}),BY=(e,t)=>({...DY(e),options:[e,t]}),KY=(e,t)=>({...LY(e),options:[e,t]});var HY="Arrow",hx=i.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...a}=e;return le.jsx(Kt.svg,{...a,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:le.jsx("polygon",{points:"0,0 30,0 15,10"})})});hx.displayName=HY;var VY=hx;function XY(e){const[t,r]=i.useState(void 0);return Yn(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let c,s;if("borderBoxSize"in a){const p=a.borderBoxSize,l=Array.isArray(p)?p[0]:p;c=l.inlineSize,s=l.blockSize}else c=e.offsetWidth,s=e.offsetHeight;r({width:c,height:s})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var bx="Popper",[yx,wx]=ex(bx),[h8,xx]=yx(bx),Ex="PopperAnchor",kx=i.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,a=xx(Ex,r),c=i.useRef(null),s=fr(t,c),p=i.useRef(null);return i.useEffect(()=>{const l=p.current;p.current=n?.current||c.current,l!==p.current&&a.onAnchorChange(p.current)}),n?null:le.jsx(Kt.div,{...o,ref:s})});kx.displayName=Ex;var _d="PopperContent",[qY,GY]=yx(_d),Sx=i.forwardRef((e,t)=>{const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:a="center",alignOffset:c=0,arrowPadding:s=0,avoidCollisions:p=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:m="partial",hideWhenDetached:v=!1,updatePositionStrategy:h="optimized",onPlaced:x,...d}=e,g=xx(_d,r),[b,y]=i.useState(null),w=fr(t,X=>y(X)),[E,j]=i.useState(null),T=XY(E),S=T?.width??0,R=T?.height??0,M=n+(a!=="center"?"-"+a:""),L=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},I=Array.isArray(l)?l:[l],B=I.length>0,K={padding:L,boundary:I.filter(JY),altBoundary:B},{refs:z,floatingStyles:D,placement:Y,isPositioned:H,middlewareData:U}=FY({strategy:"fixed",placement:M,whileElementsMounted:(...X)=>RY(...X,{animationFrame:h==="always"}),elements:{reference:g.anchor},middleware:[WY({mainAxis:o+R,alignmentAxis:c}),p&&zY({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?$Y():void 0,...K}),p&&YY({...K}),UY({...K,apply:({elements:X,rects:_,availableWidth:$,availableHeight:se})=>{const{width:fe,height:ok}=_.reference,Bo=X.floating.style;Bo.setProperty("--radix-popper-available-width",`${$}px`),Bo.setProperty("--radix-popper-available-height",`${se}px`),Bo.setProperty("--radix-popper-anchor-width",`${fe}px`),Bo.setProperty("--radix-popper-anchor-height",`${ok}px`)}}),E&&KY({element:E,padding:s}),QY({arrowWidth:S,arrowHeight:R}),v&&BY({strategy:"referenceHidden",...K})]}),[V,f]=Rx(Y),k=$n(x);Yn(()=>{H&&k?.()},[H,k]);const N=U.arrow?.x,O=U.arrow?.y,W=U.arrow?.centerOffset!==0,[A,ae]=i.useState();return Yn(()=>{b&&ae(window.getComputedStyle(b).zIndex)},[b]),le.jsx("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...D,transform:H?D.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:A,"--radix-popper-transform-origin":[U.transformOrigin?.x,U.transformOrigin?.y].join(" "),...U.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:le.jsx(qY,{scope:r,placedSide:V,onArrowChange:j,arrowX:N,arrowY:O,shouldHideArrow:W,children:le.jsx(Kt.div,{"data-side":V,"data-align":f,...d,ref:w,style:{...d.style,animation:H?void 0:"none"}})})})});Sx.displayName=_d;var jx="PopperArrow",ZY={top:"bottom",right:"left",bottom:"top",left:"right"},Cx=i.forwardRef(function(e,t){const{__scopePopper:r,...n}=e,o=GY(jx,r),a=ZY[o.placedSide];return le.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:le.jsx(VY,{...n,ref:t,style:{...n.style,display:"block"}})})});Cx.displayName=jx;function JY(e){return e!==null}var QY=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:o}=t,a=o.arrow?.centerOffset!==0,c=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[p,l]=Rx(r),u={start:"0%",center:"50%",end:"100%"}[l],m=(o.arrow?.x??0)+c/2,v=(o.arrow?.y??0)+s/2;let h="",x="";return p==="bottom"?(h=a?u:`${m}px`,x=`${-s}px`):p==="top"?(h=a?u:`${m}px`,x=`${n.floating.height+s}px`):p==="right"?(h=`${-s}px`,x=a?u:`${v}px`):p==="left"&&(h=`${n.floating.width+s}px`,x=a?u:`${v}px`),{data:{x:h,y:x}}}});function Rx(e){const[t,r="center"]=e.split("-");return[t,r]}var Nx=kx,e3=Sx,t3=Cx,r3="Portal",n3=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);Yn(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?Le.createPortal(le.jsx(Kt.div,{...n,ref:t}),c):null});n3.displayName=r3;function o3(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var Tx=e=>{const{present:t,children:r}=e,n=a3(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=fr(n.ref,s3(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};Tx.displayName="Presence";function a3(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,p]=o3(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const l=os(n.current);a.current=s==="mounted"?l:"none"},[s]),Yn(()=>{const l=n.current,u=o.current;if(u!==e){const m=a.current,v=os(l);e?p("MOUNT"):v==="none"||l?.display==="none"?p("UNMOUNT"):p(u&&m!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,p]),Yn(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,m=h=>{const x=os(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&x&&(p("ANIMATION_END"),!o.current)){const d=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=d)})}},v=h=>{h.target===t&&(a.current=os(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else p("ANIMATION_END")},[t,p]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function os(e){return e?.animationName||"none"}function s3(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var i3=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},vn=new WeakMap,as=new WeakMap,ss={},Wu=0,Ox=function(e){return e&&(e.host||Ox(e.parentNode))},c3=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Ox(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},u3=function(e,t,r,n){var o=c3(t,Array.isArray(e)?e:[e]);ss[r]||(ss[r]=new WeakMap);var a=ss[r],c=[],s=new Set,p=new Set(o),l=function(m){!m||s.has(m)||(s.add(m),l(m.parentNode))};o.forEach(l);var u=function(m){!m||p.has(m)||Array.prototype.forEach.call(m.children,function(v){if(s.has(v))u(v);else try{var h=v.getAttribute(n),x=h!==null&&h!=="false",d=(vn.get(v)||0)+1,g=(a.get(v)||0)+1;vn.set(v,d),a.set(v,g),c.push(v),d===1&&x&&as.set(v,!0),g===1&&v.setAttribute(r,"true"),x||v.setAttribute(n,"true")}catch(b){console.error("aria-hidden: cannot operate on ",v,b)}})};return u(t),s.clear(),Wu++,function(){c.forEach(function(m){var v=vn.get(m)-1,h=a.get(m)-1;vn.set(m,v),a.set(m,h),v||(as.has(m)||m.removeAttribute(n),as.delete(m)),h||m.removeAttribute(r)}),Wu--,Wu||(vn=new WeakMap,vn=new WeakMap,as=new WeakMap,ss={})}},l3=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=i3(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),u3(n,o,r,"aria-hidden")):function(){return null}},dt=function(){return dt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},dt.apply(this,arguments)};function _x(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 d3(e,t,r){for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var Ps="right-scroll-bar-position",Ms="width-before-scroll-bar",f3="with-scroll-bars-hidden",m3="--removed-body-scroll-bar-size";function zu(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function p3(e,t){var r=P.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 v3=typeof window<"u"?i.useLayoutEffect:i.useEffect,Uv=new WeakMap;function g3(e,t){var r=p3(null,function(n){return e.forEach(function(o){return zu(o,n)})});return v3(function(){var n=Uv.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||zu(s,null)}),a.forEach(function(s){o.has(s)||zu(s,c)})}Uv.set(r,e)},[e]),r}function h3(e){return e}function b3(e,t){t===void 0&&(t=h3);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(a){var c=t(a,n);return r.push(c),function(){r=r.filter(function(s){return s!==c})}},assignSyncMedium:function(a){for(n=!0;r.length;){var c=r;r=[],c.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var c=[];if(r.length){var s=r;r=[],s.forEach(a),c=r}var p=function(){var u=c;c=[],u.forEach(a)},l=function(){return Promise.resolve().then(p)};l(),r={push:function(u){c.push(u),l()},filter:function(u){return c=c.filter(u),r}}}};return o}function y3(e){e===void 0&&(e={});var t=b3(null);return t.options=dt({async:!0,ssr:!1},e),t}var Dx=function(e){var t=e.sideCar,r=_x(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 i.createElement(n,dt({},r))};Dx.isSideCarExport=!0;function w3(e,t){return e.useMedium(t),Dx}var Px=y3(),$u=function(){},$i=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:$u,onWheelCapture:$u,onTouchMoveCapture:$u}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,p=e.className,l=e.removeScrollBar,u=e.enabled,m=e.shards,v=e.sideCar,h=e.noRelative,x=e.noIsolation,d=e.inert,g=e.allowPinchZoom,b=e.as,y=b===void 0?"div":b,w=e.gapMode,E=_x(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),j=v,T=g3([r,t]),S=dt(dt({},E),o);return i.createElement(i.Fragment,null,u&&i.createElement(j,{sideCar:Px,removeScrollBar:l,shards:m,noRelative:h,noIsolation:x,inert:d,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),dt(dt({},S),{ref:T})):i.createElement(y,dt({},S,{className:p,ref:T}),s))});$i.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};$i.classNames={fullWidth:Ms,zeroRight:Ps};var x3=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function E3(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=x3();return t&&e.setAttribute("nonce",t),e}function k3(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function S3(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var j3=function(){var e=0,t=null;return{add:function(r){e==0&&(t=E3())&&(k3(t,r),S3(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},C3=function(){var e=j3();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Mx=function(){var e=C3(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},R3={left:0,top:0,right:0,gap:0},Yu=function(e){return parseInt(e||"",10)||0},N3=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[Yu(r),Yu(n),Yu(o)]},T3=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return R3;var t=N3(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])}},O3=Mx(),On="data-scroll-locked",_3=function(e,t,r,n){var o=e.left,a=e.top,c=e.right,s=e.gap;return r===void 0&&(r="margin"),`
717
+ .`.concat(f3,` {
718
+ overflow: hidden `).concat(n,`;
719
+ padding-right: `).concat(s,"px ").concat(n,`;
720
+ }
721
+ body[`).concat(On,`] {
722
+ overflow: hidden `).concat(n,`;
723
+ overscroll-behavior: contain;
724
+ `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
725
+ padding-left: `.concat(o,`px;
726
+ padding-top: `).concat(a,`px;
727
+ padding-right: `).concat(c,`px;
728
+ margin-left:0;
729
+ margin-top:0;
730
+ margin-right: `).concat(s,"px ").concat(n,`;
731
+ `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
732
+ }
733
+
734
+ .`).concat(Ps,` {
735
+ right: `).concat(s,"px ").concat(n,`;
736
+ }
737
+
738
+ .`).concat(Ms,` {
739
+ margin-right: `).concat(s,"px ").concat(n,`;
740
+ }
741
+
742
+ .`).concat(Ps," .").concat(Ps,` {
743
+ right: 0 `).concat(n,`;
744
+ }
745
+
746
+ .`).concat(Ms," .").concat(Ms,` {
747
+ margin-right: 0 `).concat(n,`;
748
+ }
749
+
750
+ body[`).concat(On,`] {
751
+ `).concat(m3,": ").concat(s,`px;
752
+ }
753
+ `)},Bv=function(){var e=parseInt(document.body.getAttribute(On)||"0",10);return isFinite(e)?e:0},D3=function(){i.useEffect(function(){return document.body.setAttribute(On,(Bv()+1).toString()),function(){var e=Bv()-1;e<=0?document.body.removeAttribute(On):document.body.setAttribute(On,e.toString())}},[])},P3=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;D3();var a=i.useMemo(function(){return T3(o)},[o]);return i.createElement(O3,{styles:_3(a,!t,o,r?"":"!important")})},Ol=!1;if(typeof window<"u")try{var is=Object.defineProperty({},"passive",{get:function(){return Ol=!0,!0}});window.addEventListener("test",is,is),window.removeEventListener("test",is,is)}catch{Ol=!1}var gn=Ol?{passive:!1}:!1,M3=function(e){return e.tagName==="TEXTAREA"},Ax=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!M3(e)&&r[t]==="visible")},A3=function(e){return Ax(e,"overflowY")},I3=function(e){return Ax(e,"overflowX")},Kv=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=Ix(e,n);if(o){var a=Fx(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},F3=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},L3=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},Ix=function(e,t){return e==="v"?A3(t):I3(t)},Fx=function(e,t){return e==="v"?F3(t):L3(t)},W3=function(e,t){return e==="h"&&t==="rtl"?-1:1},z3=function(e,t,r,n,o){var a=W3(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,p=t.contains(s),l=!1,u=c>0,m=0,v=0;do{if(!s)break;var h=Fx(e,s),x=h[0],d=h[1],g=h[2],b=d-g-a*x;(x||b)&&Ix(e,s)&&(m+=b,v+=x);var y=s.parentNode;s=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!p&&s!==document.body||p&&(t.contains(s)||t===s));return(u&&Math.abs(m)<1||!u&&Math.abs(v)<1)&&(l=!0),l},cs=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Hv=function(e){return[e.deltaX,e.deltaY]},Vv=function(e){return e&&"current"in e?e.current:e},$3=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Y3=function(e){return`
754
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
755
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
756
+ `)},U3=0,hn=[];function B3(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(U3++)[0],a=i.useState(Mx)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var d=d3([e.lockRef.current],(e.shards||[]).map(Vv)).filter(Boolean);return d.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),d.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(d,g){if("touches"in d&&d.touches.length===2||d.type==="wheel"&&d.ctrlKey)return!c.current.allowPinchZoom;var b=cs(d),y=r.current,w="deltaX"in d?d.deltaX:y[0]-b[0],E="deltaY"in d?d.deltaY:y[1]-b[1],j,T=d.target,S=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in d&&S==="h"&&T.type==="range")return!1;var R=Kv(S,T);if(!R)return!0;if(R?j=S:(j=S==="v"?"h":"v",R=Kv(S,T)),!R)return!1;if(!n.current&&"changedTouches"in d&&(w||E)&&(n.current=j),!j)return!0;var M=n.current||j;return z3(M,g,d,M==="h"?w:E)},[]),p=i.useCallback(function(d){var g=d;if(!(!hn.length||hn[hn.length-1]!==a)){var b="deltaY"in g?Hv(g):cs(g),y=t.current.filter(function(j){return j.name===g.type&&(j.target===g.target||g.target===j.shadowParent)&&$3(j.delta,b)})[0];if(y&&y.should){g.cancelable&&g.preventDefault();return}if(!y){var w=(c.current.shards||[]).map(Vv).filter(Boolean).filter(function(j){return j.contains(g.target)}),E=w.length>0?s(g,w[0]):!c.current.noIsolation;E&&g.cancelable&&g.preventDefault()}}},[]),l=i.useCallback(function(d,g,b,y){var w={name:d,delta:g,target:b,should:y,shadowParent:K3(b)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),u=i.useCallback(function(d){r.current=cs(d),n.current=void 0},[]),m=i.useCallback(function(d){l(d.type,Hv(d),d.target,s(d,e.lockRef.current))},[]),v=i.useCallback(function(d){l(d.type,cs(d),d.target,s(d,e.lockRef.current))},[]);i.useEffect(function(){return hn.push(a),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:v}),document.addEventListener("wheel",p,gn),document.addEventListener("touchmove",p,gn),document.addEventListener("touchstart",u,gn),function(){hn=hn.filter(function(d){return d!==a}),document.removeEventListener("wheel",p,gn),document.removeEventListener("touchmove",p,gn),document.removeEventListener("touchstart",u,gn)}},[]);var h=e.removeScrollBar,x=e.inert;return i.createElement(i.Fragment,null,x?i.createElement(a,{styles:Y3(o)}):null,h?i.createElement(P3,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function K3(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const H3=w3(Px,B3);var Lx=i.forwardRef(function(e,t){return i.createElement($i,dt({},e,{ref:t,sideCar:H3}))});Lx.classNames=$i.classNames;var Wx="Popover",[zx]=ex(Wx,[wx]),Yi=wx(),[b8,Dr]=zx(Wx),$x="PopoverAnchor",V3=i.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Dr($x,r),a=Yi(r),{onCustomAnchorAdd:c,onCustomAnchorRemove:s}=o;return i.useEffect(()=>(c(),()=>s()),[c,s]),le.jsx(Nx,{...a,...n,ref:t})});V3.displayName=$x;var Yx="PopoverTrigger",X3=i.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Dr(Yx,r),a=Yi(r),c=fr(t,o.triggerRef),s=le.jsx(Kt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Kx(o.open),...n,ref:c,onClick:cr(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:le.jsx(Nx,{asChild:!0,...a,children:s})});X3.displayName=Yx;var q3="PopoverPortal",[y8,G3]=zx(q3,{forceMount:void 0}),Bn="PopoverContent",Z3=i.forwardRef((e,t)=>{const r=G3(Bn,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,a=Dr(Bn,e.__scopePopover);return le.jsx(Tx,{present:n||a.open,children:a.modal?le.jsx(Q3,{...o,ref:t}):le.jsx(e9,{...o,ref:t})})});Z3.displayName=Bn;var J3=oe.createSlot("PopoverContent.RemoveScroll"),Q3=i.forwardRef((e,t)=>{const r=Dr(Bn,e.__scopePopover),n=i.useRef(null),o=fr(t,n),a=i.useRef(!1);return i.useEffect(()=>{const c=n.current;if(c)return l3(c)},[]),le.jsx(Lx,{as:J3,allowPinchZoom:!0,children:le.jsx(Ux,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:cr(e.onCloseAutoFocus,c=>{c.preventDefault(),a.current||r.triggerRef.current?.focus()}),onPointerDownOutside:cr(e.onPointerDownOutside,c=>{const s=c.detail.originalEvent,p=s.button===0&&s.ctrlKey===!0,l=s.button===2||p;a.current=l},{checkForDefaultPrevented:!1}),onFocusOutside:cr(e.onFocusOutside,c=>c.preventDefault(),{checkForDefaultPrevented:!1})})})}),e9=i.forwardRef((e,t)=>{const r=Dr(Bn,e.__scopePopover),n=i.useRef(!1),o=i.useRef(!1);return le.jsx(Ux,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=a.target;r.triggerRef.current?.contains(c)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Ux=i.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:c,onEscapeKeyDown:s,onPointerDownOutside:p,onFocusOutside:l,onInteractOutside:u,...m}=e,v=Dr(Bn,r),h=Yi(r);return N$(),le.jsx(ox,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:le.jsx(rx,{asChild:!0,disableOutsidePointerEvents:c,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:p,onFocusOutside:l,onDismiss:()=>v.onOpenChange(!1),children:le.jsx(e3,{"data-state":Kx(v.open),role:"dialog",id:v.contentId,...h,...m,ref:t,style:{...m.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)"}})})})}),Bx="PopoverClose",t9=i.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Dr(Bx,r);return le.jsx(Kt.button,{type:"button",...n,ref:t,onClick:cr(e.onClick,()=>o.onOpenChange(!1))})});t9.displayName=Bx;var r9="PopoverArrow",n9=i.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Yi(r);return le.jsx(t3,{...o,...n,ref:t})});n9.displayName=r9;function Kx(e){return e?"open":"closed"}i.createContext({});i.createContext({});function o9(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}Array(12).fill(0);let _l=1;class a9{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const r=this.subscribers.indexOf(t);this.subscribers.splice(r,1)}),this.publish=t=>{this.subscribers.forEach(r=>r(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var r;const{message:n,...o}=t,a=typeof t?.id=="number"||((r=t.id)==null?void 0:r.length)>0?t.id:_l++,c=this.toasts.find(p=>p.id===a),s=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),c?this.toasts=this.toasts.map(p=>p.id===a?(this.publish({...p,...t,id:a,title:n}),{...p,...t,id:a,dismissible:s,title:n}):p):this.addToast({title:n,...o,dismissible:s,id:a}),a},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:t,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(n=>n({id:r.id,dismiss:!0}))}),t),this.message=(t,r)=>this.create({...r,message:t}),this.error=(t,r)=>this.create({...r,message:t,type:"error"}),this.success=(t,r)=>this.create({...r,type:"success",message:t}),this.info=(t,r)=>this.create({...r,type:"info",message:t}),this.warning=(t,r)=>this.create({...r,type:"warning",message:t}),this.loading=(t,r)=>this.create({...r,type:"loading",message:t}),this.promise=(t,r)=>{if(!r)return;let n;r.loading!==void 0&&(n=this.create({...r,promise:t,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let a=n!==void 0,c;const s=o.then(async l=>{if(c=["resolve",l],P.isValidElement(l))a=!1,this.create({id:n,type:"default",message:l});else if(i9(l)&&!l.ok){a=!1;const u=typeof r.error=="function"?await r.error(`HTTP error! status: ${l.status}`):r.error,m=typeof r.description=="function"?await r.description(`HTTP error! status: ${l.status}`):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:m,...v})}else if(l instanceof Error){a=!1;const u=typeof r.error=="function"?await r.error(l):r.error,m=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:m,...v})}else if(r.success!==void 0){a=!1;const u=typeof r.success=="function"?await r.success(l):r.success,m=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"success",description:m,...v})}}).catch(async l=>{if(c=["reject",l],r.error!==void 0){a=!1;const u=typeof r.error=="function"?await r.error(l):r.error,m=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:m,...v})}}).finally(()=>{a&&(this.dismiss(n),n=void 0),r.finally==null||r.finally.call(r)}),p=()=>new Promise((l,u)=>s.then(()=>c[0]==="reject"?u(c[1]):l(c[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:p}:Object.assign(n,{unwrap:p})},this.custom=(t,r)=>{const n=r?.id||_l++;return this.create({jsx:t(n),id:n,...r}),n},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const $e=new a9,s9=(e,t)=>{const r=t?.id||_l++;return $e.addToast({title:e,...t,id:r}),r},i9=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",c9=s9,u9=()=>$e.toasts,l9=()=>$e.getActiveToasts();Object.assign(c9,{success:$e.success,info:$e.info,warning:$e.warning,error:$e.error,custom:$e.custom,message:$e.message,promise:$e.promise,dismiss:$e.dismiss,loading:$e.loading},{getHistory:u9,getToasts:l9});o9("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function d9(e){const t=e+"CollectionProvider",[r,n]=Mi(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=d=>{const{scope:g,children:b}=d,y=P.useRef(null),w=P.useRef(new Map).current;return ne.jsx(o,{scope:g,itemMap:w,collectionRef:y,children:b})};c.displayName=t;const s=e+"CollectionSlot",p=oe.createSlot(s),l=P.forwardRef((d,g)=>{const{scope:b,children:y}=d,w=a(s,b),E=kt(g,w.collectionRef);return ne.jsx(p,{ref:E,children:y})});l.displayName=s;const u=e+"CollectionItemSlot",m="data-radix-collection-item",v=oe.createSlot(u),h=P.forwardRef((d,g)=>{const{scope:b,children:y,...w}=d,E=P.useRef(null),j=kt(g,E),T=a(u,b);return P.useEffect(()=>(T.itemMap.set(E,{ref:E,...w}),()=>void T.itemMap.delete(E))),ne.jsx(v,{[m]:"",ref:j,children:y})});h.displayName=u;function x(d){const g=a(e+"CollectionConsumer",d);return P.useCallback(()=>{const b=g.collectionRef.current;if(!b)return[];const y=Array.from(b.querySelectorAll(`[${m}]`));return Array.from(g.itemMap.values()).sort((w,E)=>y.indexOf(w.ref.current)-y.indexOf(E.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:c,Slot:l,ItemSlot:h},x,n]}var f9=i.createContext(void 0);function Hx(e){const t=i.useContext(f9);return e||t||"ltr"}var Uu="rovingFocusGroup.onEntryFocus",m9={bubbles:!1,cancelable:!0},Mo="RovingFocusGroup",[Dl,Vx,p9]=d9(Mo),[v9,Xx]=Mi(Mo,[p9]),[g9,h9]=v9(Mo),qx=i.forwardRef((e,t)=>ne.jsx(Dl.Provider,{scope:e.__scopeRovingFocusGroup,children:ne.jsx(Dl.Slot,{scope:e.__scopeRovingFocusGroup,children:ne.jsx(b9,{...e,ref:t})})}));qx.displayName=Mo;var b9=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:c,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:p,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...m}=e,v=i.useRef(null),h=kt(t,v),x=Hx(a),[d,g]=vw({prop:c,defaultProp:s??null,onChange:p,caller:Mo}),[b,y]=i.useState(!1),w=Wn(l),E=Vx(r),j=i.useRef(!1),[T,S]=i.useState(0);return i.useEffect(()=>{const R=v.current;if(R)return R.addEventListener(Uu,w),()=>R.removeEventListener(Uu,w)},[w]),ne.jsx(g9,{scope:r,orientation:n,dir:x,loop:o,currentTabStopId:d,onItemFocus:i.useCallback(R=>g(R),[g]),onItemShiftTab:i.useCallback(()=>y(!0),[]),onFocusableItemAdd:i.useCallback(()=>S(R=>R+1),[]),onFocusableItemRemove:i.useCallback(()=>S(R=>R-1),[]),children:ne.jsx(Ae.div,{tabIndex:b||T===0?-1:0,"data-orientation":n,...m,ref:h,style:{outline:"none",...e.style},onMouseDown:Se(e.onMouseDown,()=>{j.current=!0}),onFocus:Se(e.onFocus,R=>{const M=!j.current;if(R.target===R.currentTarget&&M&&!b){const L=new CustomEvent(Uu,m9);if(R.currentTarget.dispatchEvent(L),!L.defaultPrevented){const I=E().filter(D=>D.focusable),B=I.find(D=>D.active),K=I.find(D=>D.id===d),z=[B,K,...I].filter(Boolean).map(D=>D.ref.current);Jx(z,u)}}j.current=!1}),onBlur:Se(e.onBlur,()=>y(!1))})})}),Gx="RovingFocusGroupItem",Zx=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:c,...s}=e,p=pw(),l=a||p,u=h9(Gx,r),m=u.currentTabStopId===l,v=Vx(r),{onFocusableItemAdd:h,onFocusableItemRemove:x,currentTabStopId:d}=u;return i.useEffect(()=>{if(n)return h(),()=>x()},[n,h,x]),ne.jsx(Dl.ItemSlot,{scope:r,id:l,focusable:n,active:o,children:ne.jsx(Ae.span,{tabIndex:m?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:Se(e.onMouseDown,g=>{n?u.onItemFocus(l):g.preventDefault()}),onFocus:Se(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:Se(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){u.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const b=x9(g,u.orientation,u.dir);if(b!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let y=v().filter(w=>w.focusable).map(w=>w.ref.current);if(b==="last")y.reverse();else if(b==="prev"||b==="next"){b==="prev"&&y.reverse();const w=y.indexOf(g.currentTarget);y=u.loop?E9(y,w+1):y.slice(w+1)}setTimeout(()=>Jx(y))}}),children:typeof c=="function"?c({isCurrentTabStop:m,hasTabStop:d!=null}):c})})});Zx.displayName=Gx;var y9={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function w9(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function x9(e,t,r){const n=w9(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return y9[n]}function Jx(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function E9(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var k9=qx,S9=Zx,Ui="Tabs",[j9]=Mi(Ui,[Xx]),Qx=Xx(),[C9,Dd]=j9(Ui),R9=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:c="horizontal",dir:s,activationMode:p="automatic",...l}=e,u=Hx(s),[m,v]=vw({prop:n,onChange:o,defaultProp:a??"",caller:Ui});return ne.jsx(C9,{scope:r,baseId:pw(),value:m,onValueChange:v,orientation:c,dir:u,activationMode:p,children:ne.jsx(Ae.div,{dir:u,"data-orientation":c,...l,ref:t})})});R9.displayName=Ui;var eE="TabsList",N9=i.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=Dd(eE,r),c=Qx(r);return ne.jsx(k9,{asChild:!0,...c,orientation:a.orientation,dir:a.dir,loop:n,children:ne.jsx(Ae.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});N9.displayName=eE;var tE="TabsTrigger",T9=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,c=Dd(tE,r),s=Qx(r),p=nE(c.baseId,n),l=oE(c.baseId,n),u=n===c.value;return ne.jsx(S9,{asChild:!0,...s,focusable:!o,active:u,children:ne.jsx(Ae.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":l,"data-state":u?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:p,...a,ref:t,onMouseDown:Se(e.onMouseDown,m=>{!o&&m.button===0&&m.ctrlKey===!1?c.onValueChange(n):m.preventDefault()}),onKeyDown:Se(e.onKeyDown,m=>{[" ","Enter"].includes(m.key)&&c.onValueChange(n)}),onFocus:Se(e.onFocus,()=>{const m=c.activationMode!=="manual";!u&&!o&&m&&c.onValueChange(n)})})})});T9.displayName=tE;var rE="TabsContent",O9=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...c}=e,s=Dd(rE,r),p=nE(s.baseId,n),l=oE(s.baseId,n),u=n===s.value,m=i.useRef(u);return i.useEffect(()=>{const v=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(v)},[]),ne.jsx(Ai,{present:o||u,children:({present:v})=>ne.jsx(Ae.div,{"data-state":u?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":p,hidden:!v,id:l,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:m.current?"0s":void 0},children:v&&a})})});O9.displayName=rE;function nE(e,t){return`${e}-trigger-${t}`}function oE(e,t){return`${e}-content-${t}`}i.createContext({});i.createContext({});function _9(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}Array(12).fill(0);let Pl=1;class D9{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const r=this.subscribers.indexOf(t);this.subscribers.splice(r,1)}),this.publish=t=>{this.subscribers.forEach(r=>r(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var r;const{message:n,...o}=t,a=typeof t?.id=="number"||((r=t.id)==null?void 0:r.length)>0?t.id:Pl++,c=this.toasts.find(p=>p.id===a),s=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),c?this.toasts=this.toasts.map(p=>p.id===a?(this.publish({...p,...t,id:a,title:n}),{...p,...t,id:a,dismissible:s,title:n}):p):this.addToast({title:n,...o,dismissible:s,id:a}),a},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:t,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(n=>n({id:r.id,dismiss:!0}))}),t),this.message=(t,r)=>this.create({...r,message:t}),this.error=(t,r)=>this.create({...r,message:t,type:"error"}),this.success=(t,r)=>this.create({...r,type:"success",message:t}),this.info=(t,r)=>this.create({...r,type:"info",message:t}),this.warning=(t,r)=>this.create({...r,type:"warning",message:t}),this.loading=(t,r)=>this.create({...r,type:"loading",message:t}),this.promise=(t,r)=>{if(!r)return;let n;r.loading!==void 0&&(n=this.create({...r,promise:t,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let a=n!==void 0,c;const s=o.then(async l=>{if(c=["resolve",l],P.isValidElement(l))a=!1,this.create({id:n,type:"default",message:l});else if(M9(l)&&!l.ok){a=!1;const u=typeof r.error=="function"?await r.error(`HTTP error! status: ${l.status}`):r.error,m=typeof r.description=="function"?await r.description(`HTTP error! status: ${l.status}`):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:m,...v})}else if(l instanceof Error){a=!1;const u=typeof r.error=="function"?await r.error(l):r.error,m=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:m,...v})}else if(r.success!==void 0){a=!1;const u=typeof r.success=="function"?await r.success(l):r.success,m=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"success",description:m,...v})}}).catch(async l=>{if(c=["reject",l],r.error!==void 0){a=!1;const u=typeof r.error=="function"?await r.error(l):r.error,m=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:m,...v})}}).finally(()=>{a&&(this.dismiss(n),n=void 0),r.finally==null||r.finally.call(r)}),p=()=>new Promise((l,u)=>s.then(()=>c[0]==="reject"?u(c[1]):l(c[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:p}:Object.assign(n,{unwrap:p})},this.custom=(t,r)=>{const n=r?.id||Pl++;return this.create({jsx:t(n),id:n,...r}),n},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Ye=new D9,P9=(e,t)=>{const r=t?.id||Pl++;return Ye.addToast({title:e,...t,id:r}),r},M9=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",A9=P9,I9=()=>Ye.toasts,F9=()=>Ye.getActiveToasts();Object.assign(A9,{success:Ye.success,info:Ye.info,warning:Ye.warning,error:Ye.error,custom:Ye.custom,message:Ye.message,promise:Ye.promise,dismiss:Ye.dismiss,loading:Ye.loading},{getHistory:I9,getToasts:F9});_9("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function L9(e){const t=e+"CollectionProvider",[r,n]=_i(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=d=>{const{scope:g,children:b}=d,y=P.useRef(null),w=P.useRef(new Map).current;return re.jsx(o,{scope:g,itemMap:w,collectionRef:y,children:b})};c.displayName=t;const s=e+"CollectionSlot",p=oe.createSlot(s),l=P.forwardRef((d,g)=>{const{scope:b,children:y}=d,w=a(s,b),E=Et(g,w.collectionRef);return re.jsx(p,{ref:E,children:y})});l.displayName=s;const u=e+"CollectionItemSlot",m="data-radix-collection-item",v=oe.createSlot(u),h=P.forwardRef((d,g)=>{const{scope:b,children:y,...w}=d,E=P.useRef(null),j=Et(g,E),T=a(u,b);return P.useEffect(()=>(T.itemMap.set(E,{ref:E,...w}),()=>void T.itemMap.delete(E))),re.jsx(v,{[m]:"",ref:j,children:y})});h.displayName=u;function x(d){const g=a(e+"CollectionConsumer",d);return P.useCallback(()=>{const b=g.collectionRef.current;if(!b)return[];const y=Array.from(b.querySelectorAll(`[${m}]`));return Array.from(g.itemMap.values()).sort((w,E)=>y.indexOf(w.ref.current)-y.indexOf(E.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:c,Slot:l,ItemSlot:h},x,n]}var W9=i.createContext(void 0);function aE(e){const t=i.useContext(W9);return e||t||"ltr"}var Bu="rovingFocusGroup.onEntryFocus",z9={bubbles:!1,cancelable:!0},Ao="RovingFocusGroup",[Ml,sE,$9]=L9(Ao),[Y9,iE]=_i(Ao,[$9]),[U9,B9]=Y9(Ao),cE=i.forwardRef((e,t)=>re.jsx(Ml.Provider,{scope:e.__scopeRovingFocusGroup,children:re.jsx(Ml.Slot,{scope:e.__scopeRovingFocusGroup,children:re.jsx(K9,{...e,ref:t})})}));cE.displayName=Ao;var K9=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:c,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:p,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...m}=e,v=i.useRef(null),h=Et(t,v),x=aE(a),[d,g]=B0({prop:c,defaultProp:s??null,onChange:p,caller:Ao}),[b,y]=i.useState(!1),w=Ln(l),E=sE(r),j=i.useRef(!1),[T,S]=i.useState(0);return i.useEffect(()=>{const R=v.current;if(R)return R.addEventListener(Bu,w),()=>R.removeEventListener(Bu,w)},[w]),re.jsx(U9,{scope:r,orientation:n,dir:x,loop:o,currentTabStopId:d,onItemFocus:i.useCallback(R=>g(R),[g]),onItemShiftTab:i.useCallback(()=>y(!0),[]),onFocusableItemAdd:i.useCallback(()=>S(R=>R+1),[]),onFocusableItemRemove:i.useCallback(()=>S(R=>R-1),[]),children:re.jsx(Me.div,{tabIndex:b||T===0?-1:0,"data-orientation":n,...m,ref:h,style:{outline:"none",...e.style},onMouseDown:ke(e.onMouseDown,()=>{j.current=!0}),onFocus:ke(e.onFocus,R=>{const M=!j.current;if(R.target===R.currentTarget&&M&&!b){const L=new CustomEvent(Bu,z9);if(R.currentTarget.dispatchEvent(L),!L.defaultPrevented){const I=E().filter(D=>D.focusable),B=I.find(D=>D.active),K=I.find(D=>D.id===d),z=[B,K,...I].filter(Boolean).map(D=>D.ref.current);dE(z,u)}}j.current=!1}),onBlur:ke(e.onBlur,()=>y(!1))})})}),uE="RovingFocusGroupItem",lE=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:c,...s}=e,p=U0(),l=a||p,u=B9(uE,r),m=u.currentTabStopId===l,v=sE(r),{onFocusableItemAdd:h,onFocusableItemRemove:x,currentTabStopId:d}=u;return i.useEffect(()=>{if(n)return h(),()=>x()},[n,h,x]),re.jsx(Ml.ItemSlot,{scope:r,id:l,focusable:n,active:o,children:re.jsx(Me.span,{tabIndex:m?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:ke(e.onMouseDown,g=>{n?u.onItemFocus(l):g.preventDefault()}),onFocus:ke(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:ke(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){u.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const b=X9(g,u.orientation,u.dir);if(b!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let y=v().filter(w=>w.focusable).map(w=>w.ref.current);if(b==="last")y.reverse();else if(b==="prev"||b==="next"){b==="prev"&&y.reverse();const w=y.indexOf(g.currentTarget);y=u.loop?q9(y,w+1):y.slice(w+1)}setTimeout(()=>dE(y))}}),children:typeof c=="function"?c({isCurrentTabStop:m,hasTabStop:d!=null}):c})})});lE.displayName=uE;var H9={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function V9(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function X9(e,t,r){const n=V9(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return H9[n]}function dE(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function q9(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var G9=cE,Z9=lE,Bi="Tabs",[J9]=_i(Bi,[iE]),fE=iE(),[Q9,Pd]=J9(Bi),e6=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:c="horizontal",dir:s,activationMode:p="automatic",...l}=e,u=aE(s),[m,v]=B0({prop:n,onChange:o,defaultProp:a??"",caller:Bi});return re.jsx(Q9,{scope:r,baseId:U0(),value:m,onValueChange:v,orientation:c,dir:u,activationMode:p,children:re.jsx(Me.div,{dir:u,"data-orientation":c,...l,ref:t})})});e6.displayName=Bi;var mE="TabsList",t6=i.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=Pd(mE,r),c=fE(r);return re.jsx(G9,{asChild:!0,...c,orientation:a.orientation,dir:a.dir,loop:n,children:re.jsx(Me.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});t6.displayName=mE;var pE="TabsTrigger",r6=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,c=Pd(pE,r),s=fE(r),p=gE(c.baseId,n),l=hE(c.baseId,n),u=n===c.value;return re.jsx(Z9,{asChild:!0,...s,focusable:!o,active:u,children:re.jsx(Me.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":l,"data-state":u?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:p,...a,ref:t,onMouseDown:ke(e.onMouseDown,m=>{!o&&m.button===0&&m.ctrlKey===!1?c.onValueChange(n):m.preventDefault()}),onKeyDown:ke(e.onKeyDown,m=>{[" ","Enter"].includes(m.key)&&c.onValueChange(n)}),onFocus:ke(e.onFocus,()=>{const m=c.activationMode!=="manual";!u&&!o&&m&&c.onValueChange(n)})})})});r6.displayName=pE;var vE="TabsContent",n6=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...c}=e,s=Pd(vE,r),p=gE(s.baseId,n),l=hE(s.baseId,n),u=n===s.value,m=i.useRef(u);return i.useEffect(()=>{const v=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(v)},[]),re.jsx(Di,{present:o||u,children:({present:v})=>re.jsx(Me.div,{"data-state":u?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":p,hidden:!v,id:l,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:m.current?"0s":void 0},children:v&&a})})});n6.displayName=vE;function gE(e,t){return`${e}-trigger-${t}`}function hE(e,t){return`${e}-content-${t}`}i.createContext({});i.createContext({});function o6(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}Array(12).fill(0);let Al=1;class a6{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const r=this.subscribers.indexOf(t);this.subscribers.splice(r,1)}),this.publish=t=>{this.subscribers.forEach(r=>r(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var r;const{message:n,...o}=t,a=typeof t?.id=="number"||((r=t.id)==null?void 0:r.length)>0?t.id:Al++,c=this.toasts.find(p=>p.id===a),s=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),c?this.toasts=this.toasts.map(p=>p.id===a?(this.publish({...p,...t,id:a,title:n}),{...p,...t,id:a,dismissible:s,title:n}):p):this.addToast({title:n,...o,dismissible:s,id:a}),a},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:t,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(n=>n({id:r.id,dismiss:!0}))}),t),this.message=(t,r)=>this.create({...r,message:t}),this.error=(t,r)=>this.create({...r,message:t,type:"error"}),this.success=(t,r)=>this.create({...r,type:"success",message:t}),this.info=(t,r)=>this.create({...r,type:"info",message:t}),this.warning=(t,r)=>this.create({...r,type:"warning",message:t}),this.loading=(t,r)=>this.create({...r,type:"loading",message:t}),this.promise=(t,r)=>{if(!r)return;let n;r.loading!==void 0&&(n=this.create({...r,promise:t,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let a=n!==void 0,c;const s=o.then(async l=>{if(c=["resolve",l],P.isValidElement(l))a=!1,this.create({id:n,type:"default",message:l});else if(i6(l)&&!l.ok){a=!1;const u=typeof r.error=="function"?await r.error(`HTTP error! status: ${l.status}`):r.error,m=typeof r.description=="function"?await r.description(`HTTP error! status: ${l.status}`):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:m,...v})}else if(l instanceof Error){a=!1;const u=typeof r.error=="function"?await r.error(l):r.error,m=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:m,...v})}else if(r.success!==void 0){a=!1;const u=typeof r.success=="function"?await r.success(l):r.success,m=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"success",description:m,...v})}}).catch(async l=>{if(c=["reject",l],r.error!==void 0){a=!1;const u=typeof r.error=="function"?await r.error(l):r.error,m=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:m,...v})}}).finally(()=>{a&&(this.dismiss(n),n=void 0),r.finally==null||r.finally.call(r)}),p=()=>new Promise((l,u)=>s.then(()=>c[0]==="reject"?u(c[1]):l(c[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:p}:Object.assign(n,{unwrap:p})},this.custom=(t,r)=>{const n=r?.id||Al++;return this.create({jsx:t(n),id:n,...r}),n},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Ue=new a6,s6=(e,t)=>{const r=t?.id||Al++;return Ue.addToast({title:e,...t,id:r}),r},i6=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",c6=s6,u6=()=>Ue.toasts,l6=()=>Ue.getActiveToasts();Object.assign(c6,{success:Ue.success,info:Ue.info,warning:Ue.warning,error:Ue.error,custom:Ue.custom,message:Ue.message,promise:Ue.promise,dismiss:Ue.dismiss,loading:Ue.loading},{getHistory:u6,getToasts:l6});o6("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function d6(e){const t=e+"CollectionProvider",[r,n]=Ni(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=d=>{const{scope:g,children:b}=d,y=P.useRef(null),w=P.useRef(new Map).current;return te.jsx(o,{scope:g,itemMap:w,collectionRef:y,children:b})};c.displayName=t;const s=e+"CollectionSlot",p=oe.createSlot(s),l=P.forwardRef((d,g)=>{const{scope:b,children:y}=d,w=a(s,b),E=xt(g,w.collectionRef);return te.jsx(p,{ref:E,children:y})});l.displayName=s;const u=e+"CollectionItemSlot",m="data-radix-collection-item",v=oe.createSlot(u),h=P.forwardRef((d,g)=>{const{scope:b,children:y,...w}=d,E=P.useRef(null),j=xt(g,E),T=a(u,b);return P.useEffect(()=>(T.itemMap.set(E,{ref:E,...w}),()=>void T.itemMap.delete(E))),te.jsx(v,{[m]:"",ref:j,children:y})});h.displayName=u;function x(d){const g=a(e+"CollectionConsumer",d);return P.useCallback(()=>{const b=g.collectionRef.current;if(!b)return[];const y=Array.from(b.querySelectorAll(`[${m}]`));return Array.from(g.itemMap.values()).sort((w,E)=>y.indexOf(w.ref.current)-y.indexOf(E.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:c,Slot:l,ItemSlot:h},x,n]}var f6=i.createContext(void 0);function bE(e){const t=i.useContext(f6);return e||t||"ltr"}var Ku="rovingFocusGroup.onEntryFocus",m6={bubbles:!1,cancelable:!0},Io="RovingFocusGroup",[Il,yE,p6]=d6(Io),[v6,wE]=Ni(Io,[p6]),[g6,h6]=v6(Io),xE=i.forwardRef((e,t)=>te.jsx(Il.Provider,{scope:e.__scopeRovingFocusGroup,children:te.jsx(Il.Slot,{scope:e.__scopeRovingFocusGroup,children:te.jsx(b6,{...e,ref:t})})}));xE.displayName=Io;var b6=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:c,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:p,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...m}=e,v=i.useRef(null),h=xt(t,v),x=bE(a),[d,g]=y0({prop:c,defaultProp:s??null,onChange:p,caller:Io}),[b,y]=i.useState(!1),w=Fn(l),E=yE(r),j=i.useRef(!1),[T,S]=i.useState(0);return i.useEffect(()=>{const R=v.current;if(R)return R.addEventListener(Ku,w),()=>R.removeEventListener(Ku,w)},[w]),te.jsx(g6,{scope:r,orientation:n,dir:x,loop:o,currentTabStopId:d,onItemFocus:i.useCallback(R=>g(R),[g]),onItemShiftTab:i.useCallback(()=>y(!0),[]),onFocusableItemAdd:i.useCallback(()=>S(R=>R+1),[]),onFocusableItemRemove:i.useCallback(()=>S(R=>R-1),[]),children:te.jsx(Pe.div,{tabIndex:b||T===0?-1:0,"data-orientation":n,...m,ref:h,style:{outline:"none",...e.style},onMouseDown:Ee(e.onMouseDown,()=>{j.current=!0}),onFocus:Ee(e.onFocus,R=>{const M=!j.current;if(R.target===R.currentTarget&&M&&!b){const L=new CustomEvent(Ku,m6);if(R.currentTarget.dispatchEvent(L),!L.defaultPrevented){const I=E().filter(D=>D.focusable),B=I.find(D=>D.active),K=I.find(D=>D.id===d),z=[B,K,...I].filter(Boolean).map(D=>D.ref.current);SE(z,u)}}j.current=!1}),onBlur:Ee(e.onBlur,()=>y(!1))})})}),EE="RovingFocusGroupItem",kE=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:c,...s}=e,p=b0(),l=a||p,u=h6(EE,r),m=u.currentTabStopId===l,v=yE(r),{onFocusableItemAdd:h,onFocusableItemRemove:x,currentTabStopId:d}=u;return i.useEffect(()=>{if(n)return h(),()=>x()},[n,h,x]),te.jsx(Il.ItemSlot,{scope:r,id:l,focusable:n,active:o,children:te.jsx(Pe.span,{tabIndex:m?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:Ee(e.onMouseDown,g=>{n?u.onItemFocus(l):g.preventDefault()}),onFocus:Ee(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:Ee(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){u.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const b=x6(g,u.orientation,u.dir);if(b!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let y=v().filter(w=>w.focusable).map(w=>w.ref.current);if(b==="last")y.reverse();else if(b==="prev"||b==="next"){b==="prev"&&y.reverse();const w=y.indexOf(g.currentTarget);y=u.loop?E6(y,w+1):y.slice(w+1)}setTimeout(()=>SE(y))}}),children:typeof c=="function"?c({isCurrentTabStop:m,hasTabStop:d!=null}):c})})});kE.displayName=EE;var y6={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function w6(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function x6(e,t,r){const n=w6(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return y6[n]}function SE(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function E6(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var k6=xE,S6=kE,Ki="Tabs",[j6]=Ni(Ki,[wE]),jE=wE(),[C6,Md]=j6(Ki),R6=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:c="horizontal",dir:s,activationMode:p="automatic",...l}=e,u=bE(s),[m,v]=y0({prop:n,onChange:o,defaultProp:a??"",caller:Ki});return te.jsx(C6,{scope:r,baseId:b0(),value:m,onValueChange:v,orientation:c,dir:u,activationMode:p,children:te.jsx(Pe.div,{dir:u,"data-orientation":c,...l,ref:t})})});R6.displayName=Ki;var CE="TabsList",N6=i.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=Md(CE,r),c=jE(r);return te.jsx(k6,{asChild:!0,...c,orientation:a.orientation,dir:a.dir,loop:n,children:te.jsx(Pe.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});N6.displayName=CE;var RE="TabsTrigger",T6=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,c=Md(RE,r),s=jE(r),p=TE(c.baseId,n),l=OE(c.baseId,n),u=n===c.value;return te.jsx(S6,{asChild:!0,...s,focusable:!o,active:u,children:te.jsx(Pe.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":l,"data-state":u?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:p,...a,ref:t,onMouseDown:Ee(e.onMouseDown,m=>{!o&&m.button===0&&m.ctrlKey===!1?c.onValueChange(n):m.preventDefault()}),onKeyDown:Ee(e.onKeyDown,m=>{[" ","Enter"].includes(m.key)&&c.onValueChange(n)}),onFocus:Ee(e.onFocus,()=>{const m=c.activationMode!=="manual";!u&&!o&&m&&c.onValueChange(n)})})})});T6.displayName=RE;var NE="TabsContent",O6=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...c}=e,s=Md(NE,r),p=TE(s.baseId,n),l=OE(s.baseId,n),u=n===s.value,m=i.useRef(u);return i.useEffect(()=>{const v=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(v)},[]),te.jsx(Ti,{present:o||u,children:({present:v})=>te.jsx(Pe.div,{"data-state":u?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":p,hidden:!v,id:l,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:m.current?"0s":void 0},children:v&&a})})});O6.displayName=NE;function TE(e,t){return`${e}-trigger-${t}`}function OE(e,t){return`${e}-content-${t}`}i.createContext({});i.createContext({});function _6(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}Array(12).fill(0);let Fl=1;class D6{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const r=this.subscribers.indexOf(t);this.subscribers.splice(r,1)}),this.publish=t=>{this.subscribers.forEach(r=>r(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var r;const{message:n,...o}=t,a=typeof t?.id=="number"||((r=t.id)==null?void 0:r.length)>0?t.id:Fl++,c=this.toasts.find(p=>p.id===a),s=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),c?this.toasts=this.toasts.map(p=>p.id===a?(this.publish({...p,...t,id:a,title:n}),{...p,...t,id:a,dismissible:s,title:n}):p):this.addToast({title:n,...o,dismissible:s,id:a}),a},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:t,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(n=>n({id:r.id,dismiss:!0}))}),t),this.message=(t,r)=>this.create({...r,message:t}),this.error=(t,r)=>this.create({...r,message:t,type:"error"}),this.success=(t,r)=>this.create({...r,type:"success",message:t}),this.info=(t,r)=>this.create({...r,type:"info",message:t}),this.warning=(t,r)=>this.create({...r,type:"warning",message:t}),this.loading=(t,r)=>this.create({...r,type:"loading",message:t}),this.promise=(t,r)=>{if(!r)return;let n;r.loading!==void 0&&(n=this.create({...r,promise:t,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let a=n!==void 0,c;const s=o.then(async l=>{if(c=["resolve",l],P.isValidElement(l))a=!1,this.create({id:n,type:"default",message:l});else if(M6(l)&&!l.ok){a=!1;const u=typeof r.error=="function"?await r.error(`HTTP error! status: ${l.status}`):r.error,m=typeof r.description=="function"?await r.description(`HTTP error! status: ${l.status}`):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:m,...v})}else if(l instanceof Error){a=!1;const u=typeof r.error=="function"?await r.error(l):r.error,m=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:m,...v})}else if(r.success!==void 0){a=!1;const u=typeof r.success=="function"?await r.success(l):r.success,m=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"success",description:m,...v})}}).catch(async l=>{if(c=["reject",l],r.error!==void 0){a=!1;const u=typeof r.error=="function"?await r.error(l):r.error,m=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:m,...v})}}).finally(()=>{a&&(this.dismiss(n),n=void 0),r.finally==null||r.finally.call(r)}),p=()=>new Promise((l,u)=>s.then(()=>c[0]==="reject"?u(c[1]):l(c[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:p}:Object.assign(n,{unwrap:p})},this.custom=(t,r)=>{const n=r?.id||Fl++;return this.create({jsx:t(n),id:n,...r}),n},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Be=new D6,P6=(e,t)=>{const r=t?.id||Fl++;return Be.addToast({title:e,...t,id:r}),r},M6=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",A6=P6,I6=()=>Be.toasts,F6=()=>Be.getActiveToasts();Object.assign(A6,{success:Be.success,info:Be.info,warning:Be.warning,error:Be.error,custom:Be.custom,message:Be.message,promise:Be.promise,dismiss:Be.dismiss,loading:Be.loading},{getHistory:I6,getToasts:F6});_6("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function L6(e){const t=e+"CollectionProvider",[r,n]=ji(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=d=>{const{scope:g,children:b}=d,y=P.useRef(null),w=P.useRef(new Map).current;return ee.jsx(o,{scope:g,itemMap:w,collectionRef:y,children:b})};c.displayName=t;const s=e+"CollectionSlot",p=oe.createSlot(s),l=P.forwardRef((d,g)=>{const{scope:b,children:y}=d,w=a(s,b),E=wt(g,w.collectionRef);return ee.jsx(p,{ref:E,children:y})});l.displayName=s;const u=e+"CollectionItemSlot",m="data-radix-collection-item",v=oe.createSlot(u),h=P.forwardRef((d,g)=>{const{scope:b,children:y,...w}=d,E=P.useRef(null),j=wt(g,E),T=a(u,b);return P.useEffect(()=>(T.itemMap.set(E,{ref:E,...w}),()=>void T.itemMap.delete(E))),ee.jsx(v,{[m]:"",ref:j,children:y})});h.displayName=u;function x(d){const g=a(e+"CollectionConsumer",d);return P.useCallback(()=>{const b=g.collectionRef.current;if(!b)return[];const y=Array.from(b.querySelectorAll(`[${m}]`));return Array.from(g.itemMap.values()).sort((w,E)=>y.indexOf(w.ref.current)-y.indexOf(E.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:c,Slot:l,ItemSlot:h},x,n]}var W6=i.createContext(void 0);function _E(e){const t=i.useContext(W6);return e||t||"ltr"}var Hu="rovingFocusGroup.onEntryFocus",z6={bubbles:!1,cancelable:!0},Fo="RovingFocusGroup",[Ll,DE,$6]=L6(Fo),[Y6,PE]=ji(Fo,[$6]),[U6,B6]=Y6(Fo),ME=i.forwardRef((e,t)=>ee.jsx(Ll.Provider,{scope:e.__scopeRovingFocusGroup,children:ee.jsx(Ll.Slot,{scope:e.__scopeRovingFocusGroup,children:ee.jsx(K6,{...e,ref:t})})}));ME.displayName=Fo;var K6=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:c,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:p,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...m}=e,v=i.useRef(null),h=wt(t,v),x=_E(a),[d,g]=Xy({prop:c,defaultProp:s??null,onChange:p,caller:Fo}),[b,y]=i.useState(!1),w=In(l),E=DE(r),j=i.useRef(!1),[T,S]=i.useState(0);return i.useEffect(()=>{const R=v.current;if(R)return R.addEventListener(Hu,w),()=>R.removeEventListener(Hu,w)},[w]),ee.jsx(U6,{scope:r,orientation:n,dir:x,loop:o,currentTabStopId:d,onItemFocus:i.useCallback(R=>g(R),[g]),onItemShiftTab:i.useCallback(()=>y(!0),[]),onFocusableItemAdd:i.useCallback(()=>S(R=>R+1),[]),onFocusableItemRemove:i.useCallback(()=>S(R=>R-1),[]),children:ee.jsx(De.div,{tabIndex:b||T===0?-1:0,"data-orientation":n,...m,ref:h,style:{outline:"none",...e.style},onMouseDown:xe(e.onMouseDown,()=>{j.current=!0}),onFocus:xe(e.onFocus,R=>{const M=!j.current;if(R.target===R.currentTarget&&M&&!b){const L=new CustomEvent(Hu,z6);if(R.currentTarget.dispatchEvent(L),!L.defaultPrevented){const I=E().filter(D=>D.focusable),B=I.find(D=>D.active),K=I.find(D=>D.id===d),z=[B,K,...I].filter(Boolean).map(D=>D.ref.current);FE(z,u)}}j.current=!1}),onBlur:xe(e.onBlur,()=>y(!1))})})}),AE="RovingFocusGroupItem",IE=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:c,...s}=e,p=Vy(),l=a||p,u=B6(AE,r),m=u.currentTabStopId===l,v=DE(r),{onFocusableItemAdd:h,onFocusableItemRemove:x,currentTabStopId:d}=u;return i.useEffect(()=>{if(n)return h(),()=>x()},[n,h,x]),ee.jsx(Ll.ItemSlot,{scope:r,id:l,focusable:n,active:o,children:ee.jsx(De.span,{tabIndex:m?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:xe(e.onMouseDown,g=>{n?u.onItemFocus(l):g.preventDefault()}),onFocus:xe(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:xe(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){u.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const b=X6(g,u.orientation,u.dir);if(b!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let y=v().filter(w=>w.focusable).map(w=>w.ref.current);if(b==="last")y.reverse();else if(b==="prev"||b==="next"){b==="prev"&&y.reverse();const w=y.indexOf(g.currentTarget);y=u.loop?q6(y,w+1):y.slice(w+1)}setTimeout(()=>FE(y))}}),children:typeof c=="function"?c({isCurrentTabStop:m,hasTabStop:d!=null}):c})})});IE.displayName=AE;var H6={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function V6(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function X6(e,t,r){const n=V6(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return H6[n]}function FE(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function q6(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var G6=ME,Z6=IE,Hi="Tabs",[J6]=ji(Hi,[PE]),LE=PE(),[Q6,Ad]=J6(Hi),eU=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:c="horizontal",dir:s,activationMode:p="automatic",...l}=e,u=_E(s),[m,v]=Xy({prop:n,onChange:o,defaultProp:a??"",caller:Hi});return ee.jsx(Q6,{scope:r,baseId:Vy(),value:m,onValueChange:v,orientation:c,dir:u,activationMode:p,children:ee.jsx(De.div,{dir:u,"data-orientation":c,...l,ref:t})})});eU.displayName=Hi;var WE="TabsList",tU=i.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=Ad(WE,r),c=LE(r);return ee.jsx(G6,{asChild:!0,...c,orientation:a.orientation,dir:a.dir,loop:n,children:ee.jsx(De.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});tU.displayName=WE;var zE="TabsTrigger",rU=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,c=Ad(zE,r),s=LE(r),p=YE(c.baseId,n),l=UE(c.baseId,n),u=n===c.value;return ee.jsx(Z6,{asChild:!0,...s,focusable:!o,active:u,children:ee.jsx(De.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":l,"data-state":u?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:p,...a,ref:t,onMouseDown:xe(e.onMouseDown,m=>{!o&&m.button===0&&m.ctrlKey===!1?c.onValueChange(n):m.preventDefault()}),onKeyDown:xe(e.onKeyDown,m=>{[" ","Enter"].includes(m.key)&&c.onValueChange(n)}),onFocus:xe(e.onFocus,()=>{const m=c.activationMode!=="manual";!u&&!o&&m&&c.onValueChange(n)})})})});rU.displayName=zE;var $E="TabsContent",nU=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...c}=e,s=Ad($E,r),p=YE(s.baseId,n),l=UE(s.baseId,n),u=n===s.value,m=i.useRef(u);return i.useEffect(()=>{const v=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(v)},[]),ee.jsx(Ci,{present:o||u,children:({present:v})=>ee.jsx(De.div,{"data-state":u?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":p,hidden:!v,id:l,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:m.current?"0s":void 0},children:v&&a})})});nU.displayName=$E;function YE(e,t){return`${e}-trigger-${t}`}function UE(e,t){return`${e}-content-${t}`}i.createContext({});i.createContext({});function oU(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}Array(12).fill(0);let Wl=1;class aU{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const r=this.subscribers.indexOf(t);this.subscribers.splice(r,1)}),this.publish=t=>{this.subscribers.forEach(r=>r(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var r;const{message:n,...o}=t,a=typeof t?.id=="number"||((r=t.id)==null?void 0:r.length)>0?t.id:Wl++,c=this.toasts.find(p=>p.id===a),s=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),c?this.toasts=this.toasts.map(p=>p.id===a?(this.publish({...p,...t,id:a,title:n}),{...p,...t,id:a,dismissible:s,title:n}):p):this.addToast({title:n,...o,dismissible:s,id:a}),a},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:t,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(n=>n({id:r.id,dismiss:!0}))}),t),this.message=(t,r)=>this.create({...r,message:t}),this.error=(t,r)=>this.create({...r,message:t,type:"error"}),this.success=(t,r)=>this.create({...r,type:"success",message:t}),this.info=(t,r)=>this.create({...r,type:"info",message:t}),this.warning=(t,r)=>this.create({...r,type:"warning",message:t}),this.loading=(t,r)=>this.create({...r,type:"loading",message:t}),this.promise=(t,r)=>{if(!r)return;let n;r.loading!==void 0&&(n=this.create({...r,promise:t,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let a=n!==void 0,c;const s=o.then(async l=>{if(c=["resolve",l],P.isValidElement(l))a=!1,this.create({id:n,type:"default",message:l});else if(iU(l)&&!l.ok){a=!1;const u=typeof r.error=="function"?await r.error(`HTTP error! status: ${l.status}`):r.error,m=typeof r.description=="function"?await r.description(`HTTP error! status: ${l.status}`):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:m,...v})}else if(l instanceof Error){a=!1;const u=typeof r.error=="function"?await r.error(l):r.error,m=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:m,...v})}else if(r.success!==void 0){a=!1;const u=typeof r.success=="function"?await r.success(l):r.success,m=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"success",description:m,...v})}}).catch(async l=>{if(c=["reject",l],r.error!==void 0){a=!1;const u=typeof r.error=="function"?await r.error(l):r.error,m=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:m,...v})}}).finally(()=>{a&&(this.dismiss(n),n=void 0),r.finally==null||r.finally.call(r)}),p=()=>new Promise((l,u)=>s.then(()=>c[0]==="reject"?u(c[1]):l(c[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:p}:Object.assign(n,{unwrap:p})},this.custom=(t,r)=>{const n=r?.id||Wl++;return this.create({jsx:t(n),id:n,...r}),n},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Ke=new aU,sU=(e,t)=>{const r=t?.id||Wl++;return Ke.addToast({title:e,...t,id:r}),r},iU=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",cU=sU,uU=()=>Ke.toasts,lU=()=>Ke.getActiveToasts();Object.assign(cU,{success:Ke.success,info:Ke.info,warning:Ke.warning,error:Ke.error,custom:Ke.custom,message:Ke.message,promise:Ke.promise,dismiss:Ke.dismiss,loading:Ke.loading},{getHistory:uU,getToasts:lU});oU("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function dU(e){const t=e+"CollectionProvider",[r,n]=Ei(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=d=>{const{scope:g,children:b}=d,y=P.useRef(null),w=P.useRef(new Map).current;return Q.jsx(o,{scope:g,itemMap:w,collectionRef:y,children:b})};c.displayName=t;const s=e+"CollectionSlot",p=oe.createSlot(s),l=P.forwardRef((d,g)=>{const{scope:b,children:y}=d,w=a(s,b),E=yt(g,w.collectionRef);return Q.jsx(p,{ref:E,children:y})});l.displayName=s;const u=e+"CollectionItemSlot",m="data-radix-collection-item",v=oe.createSlot(u),h=P.forwardRef((d,g)=>{const{scope:b,children:y,...w}=d,E=P.useRef(null),j=yt(g,E),T=a(u,b);return P.useEffect(()=>(T.itemMap.set(E,{ref:E,...w}),()=>void T.itemMap.delete(E))),Q.jsx(v,{[m]:"",ref:j,children:y})});h.displayName=u;function x(d){const g=a(e+"CollectionConsumer",d);return P.useCallback(()=>{const b=g.collectionRef.current;if(!b)return[];const y=Array.from(b.querySelectorAll(`[${m}]`));return Array.from(g.itemMap.values()).sort((w,E)=>y.indexOf(w.ref.current)-y.indexOf(E.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:c,Slot:l,ItemSlot:h},x,n]}var fU=i.createContext(void 0);function BE(e){const t=i.useContext(fU);return e||t||"ltr"}var Vu="rovingFocusGroup.onEntryFocus",mU={bubbles:!1,cancelable:!0},Lo="RovingFocusGroup",[zl,KE,pU]=dU(Lo),[vU,HE]=Ei(Lo,[pU]),[gU,hU]=vU(Lo),VE=i.forwardRef((e,t)=>Q.jsx(zl.Provider,{scope:e.__scopeRovingFocusGroup,children:Q.jsx(zl.Slot,{scope:e.__scopeRovingFocusGroup,children:Q.jsx(bU,{...e,ref:t})})}));VE.displayName=Lo;var bU=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:c,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:p,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...m}=e,v=i.useRef(null),h=yt(t,v),x=BE(a),[d,g]=ky({prop:c,defaultProp:s??null,onChange:p,caller:Lo}),[b,y]=i.useState(!1),w=An(l),E=KE(r),j=i.useRef(!1),[T,S]=i.useState(0);return i.useEffect(()=>{const R=v.current;if(R)return R.addEventListener(Vu,w),()=>R.removeEventListener(Vu,w)},[w]),Q.jsx(gU,{scope:r,orientation:n,dir:x,loop:o,currentTabStopId:d,onItemFocus:i.useCallback(R=>g(R),[g]),onItemShiftTab:i.useCallback(()=>y(!0),[]),onFocusableItemAdd:i.useCallback(()=>S(R=>R+1),[]),onFocusableItemRemove:i.useCallback(()=>S(R=>R-1),[]),children:Q.jsx(_e.div,{tabIndex:b||T===0?-1:0,"data-orientation":n,...m,ref:h,style:{outline:"none",...e.style},onMouseDown:we(e.onMouseDown,()=>{j.current=!0}),onFocus:we(e.onFocus,R=>{const M=!j.current;if(R.target===R.currentTarget&&M&&!b){const L=new CustomEvent(Vu,mU);if(R.currentTarget.dispatchEvent(L),!L.defaultPrevented){const I=E().filter(D=>D.focusable),B=I.find(D=>D.active),K=I.find(D=>D.id===d),z=[B,K,...I].filter(Boolean).map(D=>D.ref.current);GE(z,u)}}j.current=!1}),onBlur:we(e.onBlur,()=>y(!1))})})}),XE="RovingFocusGroupItem",qE=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:c,...s}=e,p=Ey(),l=a||p,u=hU(XE,r),m=u.currentTabStopId===l,v=KE(r),{onFocusableItemAdd:h,onFocusableItemRemove:x,currentTabStopId:d}=u;return i.useEffect(()=>{if(n)return h(),()=>x()},[n,h,x]),Q.jsx(zl.ItemSlot,{scope:r,id:l,focusable:n,active:o,children:Q.jsx(_e.span,{tabIndex:m?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:we(e.onMouseDown,g=>{n?u.onItemFocus(l):g.preventDefault()}),onFocus:we(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:we(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){u.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const b=xU(g,u.orientation,u.dir);if(b!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let y=v().filter(w=>w.focusable).map(w=>w.ref.current);if(b==="last")y.reverse();else if(b==="prev"||b==="next"){b==="prev"&&y.reverse();const w=y.indexOf(g.currentTarget);y=u.loop?EU(y,w+1):y.slice(w+1)}setTimeout(()=>GE(y))}}),children:typeof c=="function"?c({isCurrentTabStop:m,hasTabStop:d!=null}):c})})});qE.displayName=XE;var yU={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function wU(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function xU(e,t,r){const n=wU(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return yU[n]}function GE(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function EU(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var kU=VE,SU=qE,Vi="Tabs",[jU]=Ei(Vi,[HE]),ZE=HE(),[CU,Id]=jU(Vi),RU=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:c="horizontal",dir:s,activationMode:p="automatic",...l}=e,u=BE(s),[m,v]=ky({prop:n,onChange:o,defaultProp:a??"",caller:Vi});return Q.jsx(CU,{scope:r,baseId:Ey(),value:m,onValueChange:v,orientation:c,dir:u,activationMode:p,children:Q.jsx(_e.div,{dir:u,"data-orientation":c,...l,ref:t})})});RU.displayName=Vi;var JE="TabsList",NU=i.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=Id(JE,r),c=ZE(r);return Q.jsx(kU,{asChild:!0,...c,orientation:a.orientation,dir:a.dir,loop:n,children:Q.jsx(_e.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});NU.displayName=JE;var QE="TabsTrigger",TU=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,c=Id(QE,r),s=ZE(r),p=t1(c.baseId,n),l=r1(c.baseId,n),u=n===c.value;return Q.jsx(SU,{asChild:!0,...s,focusable:!o,active:u,children:Q.jsx(_e.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":l,"data-state":u?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:p,...a,ref:t,onMouseDown:we(e.onMouseDown,m=>{!o&&m.button===0&&m.ctrlKey===!1?c.onValueChange(n):m.preventDefault()}),onKeyDown:we(e.onKeyDown,m=>{[" ","Enter"].includes(m.key)&&c.onValueChange(n)}),onFocus:we(e.onFocus,()=>{const m=c.activationMode!=="manual";!u&&!o&&m&&c.onValueChange(n)})})})});TU.displayName=QE;var e1="TabsContent",OU=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...c}=e,s=Id(e1,r),p=t1(s.baseId,n),l=r1(s.baseId,n),u=n===s.value,m=i.useRef(u);return i.useEffect(()=>{const v=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(v)},[]),Q.jsx(ki,{present:o||u,children:({present:v})=>Q.jsx(_e.div,{"data-state":u?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":p,hidden:!v,id:l,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:m.current?"0s":void 0},children:v&&a})})});OU.displayName=e1;function t1(e,t){return`${e}-trigger-${t}`}function r1(e,t){return`${e}-content-${t}`}i.createContext({});i.createContext({});function _U(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}Array(12).fill(0);let $l=1;class DU{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const r=this.subscribers.indexOf(t);this.subscribers.splice(r,1)}),this.publish=t=>{this.subscribers.forEach(r=>r(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var r;const{message:n,...o}=t,a=typeof t?.id=="number"||((r=t.id)==null?void 0:r.length)>0?t.id:$l++,c=this.toasts.find(p=>p.id===a),s=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),c?this.toasts=this.toasts.map(p=>p.id===a?(this.publish({...p,...t,id:a,title:n}),{...p,...t,id:a,dismissible:s,title:n}):p):this.addToast({title:n,...o,dismissible:s,id:a}),a},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:t,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(n=>n({id:r.id,dismiss:!0}))}),t),this.message=(t,r)=>this.create({...r,message:t}),this.error=(t,r)=>this.create({...r,message:t,type:"error"}),this.success=(t,r)=>this.create({...r,type:"success",message:t}),this.info=(t,r)=>this.create({...r,type:"info",message:t}),this.warning=(t,r)=>this.create({...r,type:"warning",message:t}),this.loading=(t,r)=>this.create({...r,type:"loading",message:t}),this.promise=(t,r)=>{if(!r)return;let n;r.loading!==void 0&&(n=this.create({...r,promise:t,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let a=n!==void 0,c;const s=o.then(async l=>{if(c=["resolve",l],P.isValidElement(l))a=!1,this.create({id:n,type:"default",message:l});else if(MU(l)&&!l.ok){a=!1;const u=typeof r.error=="function"?await r.error(`HTTP error! status: ${l.status}`):r.error,m=typeof r.description=="function"?await r.description(`HTTP error! status: ${l.status}`):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:m,...v})}else if(l instanceof Error){a=!1;const u=typeof r.error=="function"?await r.error(l):r.error,m=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:m,...v})}else if(r.success!==void 0){a=!1;const u=typeof r.success=="function"?await r.success(l):r.success,m=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"success",description:m,...v})}}).catch(async l=>{if(c=["reject",l],r.error!==void 0){a=!1;const u=typeof r.error=="function"?await r.error(l):r.error,m=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:m,...v})}}).finally(()=>{a&&(this.dismiss(n),n=void 0),r.finally==null||r.finally.call(r)}),p=()=>new Promise((l,u)=>s.then(()=>c[0]==="reject"?u(c[1]):l(c[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:p}:Object.assign(n,{unwrap:p})},this.custom=(t,r)=>{const n=r?.id||$l++;return this.create({jsx:t(n),id:n,...r}),n},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const He=new DU,PU=(e,t)=>{const r=t?.id||$l++;return He.addToast({title:e,...t,id:r}),r},MU=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",AU=PU,IU=()=>He.toasts,FU=()=>He.getActiveToasts();Object.assign(AU,{success:He.success,info:He.info,warning:He.warning,error:He.error,custom:He.custom,message:He.message,promise:He.promise,dismiss:He.dismiss,loading:He.loading},{getHistory:IU,getToasts:FU});_U("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function LU(e){const t=e+"CollectionProvider",[r,n]=yi(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=d=>{const{scope:g,children:b}=d,y=P.useRef(null),w=P.useRef(new Map).current;return J.jsx(o,{scope:g,itemMap:w,collectionRef:y,children:b})};c.displayName=t;const s=e+"CollectionSlot",p=oe.createSlot(s),l=P.forwardRef((d,g)=>{const{scope:b,children:y}=d,w=a(s,b),E=bt(g,w.collectionRef);return J.jsx(p,{ref:E,children:y})});l.displayName=s;const u=e+"CollectionItemSlot",m="data-radix-collection-item",v=oe.createSlot(u),h=P.forwardRef((d,g)=>{const{scope:b,children:y,...w}=d,E=P.useRef(null),j=bt(g,E),T=a(u,b);return P.useEffect(()=>(T.itemMap.set(E,{ref:E,...w}),()=>void T.itemMap.delete(E))),J.jsx(v,{[m]:"",ref:j,children:y})});h.displayName=u;function x(d){const g=a(e+"CollectionConsumer",d);return P.useCallback(()=>{const b=g.collectionRef.current;if(!b)return[];const y=Array.from(b.querySelectorAll(`[${m}]`));return Array.from(g.itemMap.values()).sort((w,E)=>y.indexOf(w.ref.current)-y.indexOf(E.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:c,Slot:l,ItemSlot:h},x,n]}var WU=i.createContext(void 0);function n1(e){const t=i.useContext(WU);return e||t||"ltr"}var Xu="rovingFocusGroup.onEntryFocus",zU={bubbles:!1,cancelable:!0},Wo="RovingFocusGroup",[Yl,o1,$U]=LU(Wo),[YU,a1]=yi(Wo,[$U]),[UU,BU]=YU(Wo),s1=i.forwardRef((e,t)=>J.jsx(Yl.Provider,{scope:e.__scopeRovingFocusGroup,children:J.jsx(Yl.Slot,{scope:e.__scopeRovingFocusGroup,children:J.jsx(KU,{...e,ref:t})})}));s1.displayName=Wo;var KU=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:c,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:p,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...m}=e,v=i.useRef(null),h=bt(t,v),x=n1(a),[d,g]=Jb({prop:c,defaultProp:s??null,onChange:p,caller:Wo}),[b,y]=i.useState(!1),w=Mn(l),E=o1(r),j=i.useRef(!1),[T,S]=i.useState(0);return i.useEffect(()=>{const R=v.current;if(R)return R.addEventListener(Xu,w),()=>R.removeEventListener(Xu,w)},[w]),J.jsx(UU,{scope:r,orientation:n,dir:x,loop:o,currentTabStopId:d,onItemFocus:i.useCallback(R=>g(R),[g]),onItemShiftTab:i.useCallback(()=>y(!0),[]),onFocusableItemAdd:i.useCallback(()=>S(R=>R+1),[]),onFocusableItemRemove:i.useCallback(()=>S(R=>R-1),[]),children:J.jsx(Oe.div,{tabIndex:b||T===0?-1:0,"data-orientation":n,...m,ref:h,style:{outline:"none",...e.style},onMouseDown:ye(e.onMouseDown,()=>{j.current=!0}),onFocus:ye(e.onFocus,R=>{const M=!j.current;if(R.target===R.currentTarget&&M&&!b){const L=new CustomEvent(Xu,zU);if(R.currentTarget.dispatchEvent(L),!L.defaultPrevented){const I=E().filter(D=>D.focusable),B=I.find(D=>D.active),K=I.find(D=>D.id===d),z=[B,K,...I].filter(Boolean).map(D=>D.ref.current);u1(z,u)}}j.current=!1}),onBlur:ye(e.onBlur,()=>y(!1))})})}),i1="RovingFocusGroupItem",c1=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:c,...s}=e,p=Zb(),l=a||p,u=BU(i1,r),m=u.currentTabStopId===l,v=o1(r),{onFocusableItemAdd:h,onFocusableItemRemove:x,currentTabStopId:d}=u;return i.useEffect(()=>{if(n)return h(),()=>x()},[n,h,x]),J.jsx(Yl.ItemSlot,{scope:r,id:l,focusable:n,active:o,children:J.jsx(Oe.span,{tabIndex:m?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:ye(e.onMouseDown,g=>{n?u.onItemFocus(l):g.preventDefault()}),onFocus:ye(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:ye(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){u.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const b=XU(g,u.orientation,u.dir);if(b!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let y=v().filter(w=>w.focusable).map(w=>w.ref.current);if(b==="last")y.reverse();else if(b==="prev"||b==="next"){b==="prev"&&y.reverse();const w=y.indexOf(g.currentTarget);y=u.loop?qU(y,w+1):y.slice(w+1)}setTimeout(()=>u1(y))}}),children:typeof c=="function"?c({isCurrentTabStop:m,hasTabStop:d!=null}):c})})});c1.displayName=i1;var HU={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function VU(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function XU(e,t,r){const n=VU(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return HU[n]}function u1(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function qU(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var GU=s1,ZU=c1,Xi="Tabs",[JU]=yi(Xi,[a1]),l1=a1(),[QU,Fd]=JU(Xi),eB=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:c="horizontal",dir:s,activationMode:p="automatic",...l}=e,u=n1(s),[m,v]=Jb({prop:n,onChange:o,defaultProp:a??"",caller:Xi});return J.jsx(QU,{scope:r,baseId:Zb(),value:m,onValueChange:v,orientation:c,dir:u,activationMode:p,children:J.jsx(Oe.div,{dir:u,"data-orientation":c,...l,ref:t})})});eB.displayName=Xi;var d1="TabsList",tB=i.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=Fd(d1,r),c=l1(r);return J.jsx(GU,{asChild:!0,...c,orientation:a.orientation,dir:a.dir,loop:n,children:J.jsx(Oe.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});tB.displayName=d1;var f1="TabsTrigger",rB=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,c=Fd(f1,r),s=l1(r),p=p1(c.baseId,n),l=v1(c.baseId,n),u=n===c.value;return J.jsx(ZU,{asChild:!0,...s,focusable:!o,active:u,children:J.jsx(Oe.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":l,"data-state":u?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:p,...a,ref:t,onMouseDown:ye(e.onMouseDown,m=>{!o&&m.button===0&&m.ctrlKey===!1?c.onValueChange(n):m.preventDefault()}),onKeyDown:ye(e.onKeyDown,m=>{[" ","Enter"].includes(m.key)&&c.onValueChange(n)}),onFocus:ye(e.onFocus,()=>{const m=c.activationMode!=="manual";!u&&!o&&m&&c.onValueChange(n)})})})});rB.displayName=f1;var m1="TabsContent",nB=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...c}=e,s=Fd(m1,r),p=p1(s.baseId,n),l=v1(s.baseId,n),u=n===s.value,m=i.useRef(u);return i.useEffect(()=>{const v=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(v)},[]),J.jsx(wi,{present:o||u,children:({present:v})=>J.jsx(Oe.div,{"data-state":u?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":p,hidden:!v,id:l,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:m.current?"0s":void 0},children:v&&a})})});nB.displayName=m1;function p1(e,t){return`${e}-trigger-${t}`}function v1(e,t){return`${e}-content-${t}`}i.createContext({});i.createContext({});function oB(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}Array(12).fill(0);let Ul=1;class aB{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const r=this.subscribers.indexOf(t);this.subscribers.splice(r,1)}),this.publish=t=>{this.subscribers.forEach(r=>r(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var r;const{message:n,...o}=t,a=typeof t?.id=="number"||((r=t.id)==null?void 0:r.length)>0?t.id:Ul++,c=this.toasts.find(p=>p.id===a),s=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),c?this.toasts=this.toasts.map(p=>p.id===a?(this.publish({...p,...t,id:a,title:n}),{...p,...t,id:a,dismissible:s,title:n}):p):this.addToast({title:n,...o,dismissible:s,id:a}),a},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:t,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(n=>n({id:r.id,dismiss:!0}))}),t),this.message=(t,r)=>this.create({...r,message:t}),this.error=(t,r)=>this.create({...r,message:t,type:"error"}),this.success=(t,r)=>this.create({...r,type:"success",message:t}),this.info=(t,r)=>this.create({...r,type:"info",message:t}),this.warning=(t,r)=>this.create({...r,type:"warning",message:t}),this.loading=(t,r)=>this.create({...r,type:"loading",message:t}),this.promise=(t,r)=>{if(!r)return;let n;r.loading!==void 0&&(n=this.create({...r,promise:t,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let a=n!==void 0,c;const s=o.then(async l=>{if(c=["resolve",l],P.isValidElement(l))a=!1,this.create({id:n,type:"default",message:l});else if(iB(l)&&!l.ok){a=!1;const u=typeof r.error=="function"?await r.error(`HTTP error! status: ${l.status}`):r.error,m=typeof r.description=="function"?await r.description(`HTTP error! status: ${l.status}`):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:m,...v})}else if(l instanceof Error){a=!1;const u=typeof r.error=="function"?await r.error(l):r.error,m=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:m,...v})}else if(r.success!==void 0){a=!1;const u=typeof r.success=="function"?await r.success(l):r.success,m=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"success",description:m,...v})}}).catch(async l=>{if(c=["reject",l],r.error!==void 0){a=!1;const u=typeof r.error=="function"?await r.error(l):r.error,m=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:m,...v})}}).finally(()=>{a&&(this.dismiss(n),n=void 0),r.finally==null||r.finally.call(r)}),p=()=>new Promise((l,u)=>s.then(()=>c[0]==="reject"?u(c[1]):l(c[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:p}:Object.assign(n,{unwrap:p})},this.custom=(t,r)=>{const n=r?.id||Ul++;return this.create({jsx:t(n),id:n,...r}),n},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Ve=new aB,sB=(e,t)=>{const r=t?.id||Ul++;return Ve.addToast({title:e,...t,id:r}),r},iB=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",cB=sB,uB=()=>Ve.toasts,lB=()=>Ve.getActiveToasts();Object.assign(cB,{success:Ve.success,info:Ve.info,warning:Ve.warning,error:Ve.error,custom:Ve.custom,message:Ve.message,promise:Ve.promise,dismiss:Ve.dismiss,loading:Ve.loading},{getHistory:uB,getToasts:lB});oB("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function dB(e){const t=e+"CollectionProvider",[r,n]=gi(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=d=>{const{scope:g,children:b}=d,y=P.useRef(null),w=P.useRef(new Map).current;return Z.jsx(o,{scope:g,itemMap:w,collectionRef:y,children:b})};c.displayName=t;const s=e+"CollectionSlot",p=oe.createSlot(s),l=P.forwardRef((d,g)=>{const{scope:b,children:y}=d,w=a(s,b),E=ht(g,w.collectionRef);return Z.jsx(p,{ref:E,children:y})});l.displayName=s;const u=e+"CollectionItemSlot",m="data-radix-collection-item",v=oe.createSlot(u),h=P.forwardRef((d,g)=>{const{scope:b,children:y,...w}=d,E=P.useRef(null),j=ht(g,E),T=a(u,b);return P.useEffect(()=>(T.itemMap.set(E,{ref:E,...w}),()=>void T.itemMap.delete(E))),Z.jsx(v,{[m]:"",ref:j,children:y})});h.displayName=u;function x(d){const g=a(e+"CollectionConsumer",d);return P.useCallback(()=>{const b=g.collectionRef.current;if(!b)return[];const y=Array.from(b.querySelectorAll(`[${m}]`));return Array.from(g.itemMap.values()).sort((w,E)=>y.indexOf(w.ref.current)-y.indexOf(E.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:c,Slot:l,ItemSlot:h},x,n]}var fB=i.createContext(void 0);function g1(e){const t=i.useContext(fB);return e||t||"ltr"}var qu="rovingFocusGroup.onEntryFocus",mB={bubbles:!1,cancelable:!0},zo="RovingFocusGroup",[Bl,h1,pB]=dB(zo),[vB,b1]=gi(zo,[pB]),[gB,hB]=vB(zo),y1=i.forwardRef((e,t)=>Z.jsx(Bl.Provider,{scope:e.__scopeRovingFocusGroup,children:Z.jsx(Bl.Slot,{scope:e.__scopeRovingFocusGroup,children:Z.jsx(bB,{...e,ref:t})})}));y1.displayName=zo;var bB=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:c,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:p,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...m}=e,v=i.useRef(null),h=ht(t,v),x=g1(a),[d,g]=Rb({prop:c,defaultProp:s??null,onChange:p,caller:zo}),[b,y]=i.useState(!1),w=Pn(l),E=h1(r),j=i.useRef(!1),[T,S]=i.useState(0);return i.useEffect(()=>{const R=v.current;if(R)return R.addEventListener(qu,w),()=>R.removeEventListener(qu,w)},[w]),Z.jsx(gB,{scope:r,orientation:n,dir:x,loop:o,currentTabStopId:d,onItemFocus:i.useCallback(R=>g(R),[g]),onItemShiftTab:i.useCallback(()=>y(!0),[]),onFocusableItemAdd:i.useCallback(()=>S(R=>R+1),[]),onFocusableItemRemove:i.useCallback(()=>S(R=>R-1),[]),children:Z.jsx(Te.div,{tabIndex:b||T===0?-1:0,"data-orientation":n,...m,ref:h,style:{outline:"none",...e.style},onMouseDown:be(e.onMouseDown,()=>{j.current=!0}),onFocus:be(e.onFocus,R=>{const M=!j.current;if(R.target===R.currentTarget&&M&&!b){const L=new CustomEvent(qu,mB);if(R.currentTarget.dispatchEvent(L),!L.defaultPrevented){const I=E().filter(D=>D.focusable),B=I.find(D=>D.active),K=I.find(D=>D.id===d),z=[B,K,...I].filter(Boolean).map(D=>D.ref.current);E1(z,u)}}j.current=!1}),onBlur:be(e.onBlur,()=>y(!1))})})}),w1="RovingFocusGroupItem",x1=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:c,...s}=e,p=Cb(),l=a||p,u=hB(w1,r),m=u.currentTabStopId===l,v=h1(r),{onFocusableItemAdd:h,onFocusableItemRemove:x,currentTabStopId:d}=u;return i.useEffect(()=>{if(n)return h(),()=>x()},[n,h,x]),Z.jsx(Bl.ItemSlot,{scope:r,id:l,focusable:n,active:o,children:Z.jsx(Te.span,{tabIndex:m?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:be(e.onMouseDown,g=>{n?u.onItemFocus(l):g.preventDefault()}),onFocus:be(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:be(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){u.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const b=xB(g,u.orientation,u.dir);if(b!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let y=v().filter(w=>w.focusable).map(w=>w.ref.current);if(b==="last")y.reverse();else if(b==="prev"||b==="next"){b==="prev"&&y.reverse();const w=y.indexOf(g.currentTarget);y=u.loop?EB(y,w+1):y.slice(w+1)}setTimeout(()=>E1(y))}}),children:typeof c=="function"?c({isCurrentTabStop:m,hasTabStop:d!=null}):c})})});x1.displayName=w1;var yB={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function wB(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function xB(e,t,r){const n=wB(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return yB[n]}function E1(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function EB(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var kB=y1,SB=x1,qi="Tabs",[jB]=gi(qi,[b1]),k1=b1(),[CB,Ld]=jB(qi),RB=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:c="horizontal",dir:s,activationMode:p="automatic",...l}=e,u=g1(s),[m,v]=Rb({prop:n,onChange:o,defaultProp:a??"",caller:qi});return Z.jsx(CB,{scope:r,baseId:Cb(),value:m,onValueChange:v,orientation:c,dir:u,activationMode:p,children:Z.jsx(Te.div,{dir:u,"data-orientation":c,...l,ref:t})})});RB.displayName=qi;var S1="TabsList",NB=i.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=Ld(S1,r),c=k1(r);return Z.jsx(kB,{asChild:!0,...c,orientation:a.orientation,dir:a.dir,loop:n,children:Z.jsx(Te.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});NB.displayName=S1;var j1="TabsTrigger",TB=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,c=Ld(j1,r),s=k1(r),p=R1(c.baseId,n),l=N1(c.baseId,n),u=n===c.value;return Z.jsx(SB,{asChild:!0,...s,focusable:!o,active:u,children:Z.jsx(Te.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":l,"data-state":u?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:p,...a,ref:t,onMouseDown:be(e.onMouseDown,m=>{!o&&m.button===0&&m.ctrlKey===!1?c.onValueChange(n):m.preventDefault()}),onKeyDown:be(e.onKeyDown,m=>{[" ","Enter"].includes(m.key)&&c.onValueChange(n)}),onFocus:be(e.onFocus,()=>{const m=c.activationMode!=="manual";!u&&!o&&m&&c.onValueChange(n)})})})});TB.displayName=j1;var C1="TabsContent",OB=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...c}=e,s=Ld(C1,r),p=R1(s.baseId,n),l=N1(s.baseId,n),u=n===s.value,m=i.useRef(u);return i.useEffect(()=>{const v=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(v)},[]),Z.jsx(hi,{present:o||u,children:({present:v})=>Z.jsx(Te.div,{"data-state":u?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":p,hidden:!v,id:l,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:m.current?"0s":void 0},children:v&&a})})});OB.displayName=C1;function R1(e,t){return`${e}-trigger-${t}`}function N1(e,t){return`${e}-content-${t}`}i.createContext({});i.createContext({});function _B(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}Array(12).fill(0);let Kl=1;class DB{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const r=this.subscribers.indexOf(t);this.subscribers.splice(r,1)}),this.publish=t=>{this.subscribers.forEach(r=>r(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var r;const{message:n,...o}=t,a=typeof t?.id=="number"||((r=t.id)==null?void 0:r.length)>0?t.id:Kl++,c=this.toasts.find(p=>p.id===a),s=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),c?this.toasts=this.toasts.map(p=>p.id===a?(this.publish({...p,...t,id:a,title:n}),{...p,...t,id:a,dismissible:s,title:n}):p):this.addToast({title:n,...o,dismissible:s,id:a}),a},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:t,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(n=>n({id:r.id,dismiss:!0}))}),t),this.message=(t,r)=>this.create({...r,message:t}),this.error=(t,r)=>this.create({...r,message:t,type:"error"}),this.success=(t,r)=>this.create({...r,type:"success",message:t}),this.info=(t,r)=>this.create({...r,type:"info",message:t}),this.warning=(t,r)=>this.create({...r,type:"warning",message:t}),this.loading=(t,r)=>this.create({...r,type:"loading",message:t}),this.promise=(t,r)=>{if(!r)return;let n;r.loading!==void 0&&(n=this.create({...r,promise:t,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let a=n!==void 0,c;const s=o.then(async l=>{if(c=["resolve",l],P.isValidElement(l))a=!1,this.create({id:n,type:"default",message:l});else if(MB(l)&&!l.ok){a=!1;const u=typeof r.error=="function"?await r.error(`HTTP error! status: ${l.status}`):r.error,m=typeof r.description=="function"?await r.description(`HTTP error! status: ${l.status}`):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:m,...v})}else if(l instanceof Error){a=!1;const u=typeof r.error=="function"?await r.error(l):r.error,m=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:m,...v})}else if(r.success!==void 0){a=!1;const u=typeof r.success=="function"?await r.success(l):r.success,m=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"success",description:m,...v})}}).catch(async l=>{if(c=["reject",l],r.error!==void 0){a=!1;const u=typeof r.error=="function"?await r.error(l):r.error,m=typeof r.description=="function"?await r.description(l):r.description,v=typeof u=="object"&&!P.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:m,...v})}}).finally(()=>{a&&(this.dismiss(n),n=void 0),r.finally==null||r.finally.call(r)}),p=()=>new Promise((l,u)=>s.then(()=>c[0]==="reject"?u(c[1]):l(c[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:p}:Object.assign(n,{unwrap:p})},this.custom=(t,r)=>{const n=r?.id||Kl++;return this.create({jsx:t(n),id:n,...r}),n},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Xe=new DB,PB=(e,t)=>{const r=t?.id||Kl++;return Xe.addToast({title:e,...t,id:r}),r},MB=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",AB=PB,IB=()=>Xe.toasts,FB=()=>Xe.getActiveToasts();Object.assign(AB,{success:Xe.success,info:Xe.info,warning:Xe.warning,error:Xe.error,custom:Xe.custom,message:Xe.message,promise:Xe.promise,dismiss:Xe.dismiss,loading:Xe.loading},{getHistory:IB,getToasts:FB});_B("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function LB(e){const t=e+"CollectionProvider",[r,n]=mi(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=d=>{const{scope:g,children:b}=d,y=P.useRef(null),w=P.useRef(new Map).current;return G.jsx(o,{scope:g,itemMap:w,collectionRef:y,children:b})};c.displayName=t;const s=e+"CollectionSlot",p=oe.createSlot(s),l=P.forwardRef((d,g)=>{const{scope:b,children:y}=d,w=a(s,b),E=gt(g,w.collectionRef);return G.jsx(p,{ref:E,children:y})});l.displayName=s;const u=e+"CollectionItemSlot",m="data-radix-collection-item",v=oe.createSlot(u),h=P.forwardRef((d,g)=>{const{scope:b,children:y,...w}=d,E=P.useRef(null),j=gt(g,E),T=a(u,b);return P.useEffect(()=>(T.itemMap.set(E,{ref:E,...w}),()=>void T.itemMap.delete(E))),G.jsx(v,{[m]:"",ref:j,children:y})});h.displayName=u;function x(d){const g=a(e+"CollectionConsumer",d);return P.useCallback(()=>{const b=g.collectionRef.current;if(!b)return[];const y=Array.from(b.querySelectorAll(`[${m}]`));return Array.from(g.itemMap.values()).sort((w,E)=>y.indexOf(w.ref.current)-y.indexOf(E.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:c,Slot:l,ItemSlot:h},x,n]}var WB=i.createContext(void 0);function T1(e){const t=i.useContext(WB);return e||t||"ltr"}var Gu="rovingFocusGroup.onEntryFocus",zB={bubbles:!1,cancelable:!0},$o="RovingFocusGroup",[Hl,O1,$B]=LB($o),[YB,_1]=mi($o,[$B]),[UB,BB]=YB($o),D1=i.forwardRef((e,t)=>G.jsx(Hl.Provider,{scope:e.__scopeRovingFocusGroup,children:G.jsx(Hl.Slot,{scope:e.__scopeRovingFocusGroup,children:G.jsx(KB,{...e,ref:t})})}));D1.displayName=$o;var KB=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:c,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:p,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...m}=e,v=i.useRef(null),h=gt(t,v),x=T1(a),[d,g]=rb({prop:c,defaultProp:s??null,onChange:p,caller:$o}),[b,y]=i.useState(!1),w=Dn(l),E=O1(r),j=i.useRef(!1),[T,S]=i.useState(0);return i.useEffect(()=>{const R=v.current;if(R)return R.addEventListener(Gu,w),()=>R.removeEventListener(Gu,w)},[w]),G.jsx(UB,{scope:r,orientation:n,dir:x,loop:o,currentTabStopId:d,onItemFocus:i.useCallback(R=>g(R),[g]),onItemShiftTab:i.useCallback(()=>y(!0),[]),onFocusableItemAdd:i.useCallback(()=>S(R=>R+1),[]),onFocusableItemRemove:i.useCallback(()=>S(R=>R-1),[]),children:G.jsx(Ne.div,{tabIndex:b||T===0?-1:0,"data-orientation":n,...m,ref:h,style:{outline:"none",...e.style},onMouseDown:he(e.onMouseDown,()=>{j.current=!0}),onFocus:he(e.onFocus,R=>{const M=!j.current;if(R.target===R.currentTarget&&M&&!b){const L=new CustomEvent(Gu,zB);if(R.currentTarget.dispatchEvent(L),!L.defaultPrevented){const I=E().filter(D=>D.focusable),B=I.find(D=>D.active),K=I.find(D=>D.id===d),z=[B,K,...I].filter(Boolean).map(D=>D.ref.current);A1(z,u)}}j.current=!1}),onBlur:he(e.onBlur,()=>y(!1))})})}),P1="RovingFocusGroupItem",M1=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:c,...s}=e,p=tb(),l=a||p,u=BB(P1,r),m=u.currentTabStopId===l,v=O1(r),{onFocusableItemAdd:h,onFocusableItemRemove:x,currentTabStopId:d}=u;return i.useEffect(()=>{if(n)return h(),()=>x()},[n,h,x]),G.jsx(Hl.ItemSlot,{scope:r,id:l,focusable:n,active:o,children:G.jsx(Ne.span,{tabIndex:m?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:he(e.onMouseDown,g=>{n?u.onItemFocus(l):g.preventDefault()}),onFocus:he(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:he(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){u.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const b=XB(g,u.orientation,u.dir);if(b!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let y=v().filter(w=>w.focusable).map(w=>w.ref.current);if(b==="last")y.reverse();else if(b==="prev"||b==="next"){b==="prev"&&y.reverse();const w=y.indexOf(g.currentTarget);y=u.loop?qB(y,w+1):y.slice(w+1)}setTimeout(()=>A1(y))}}),children:typeof c=="function"?c({isCurrentTabStop:m,hasTabStop:d!=null}):c})})});M1.displayName=P1;var HB={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function VB(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function XB(e,t,r){const n=VB(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return HB[n]}function A1(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function qB(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var GB=D1,ZB=M1,Gi="Tabs",[JB]=mi(Gi,[_1]),I1=_1(),[QB,Wd]=JB(Gi),eK=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:c="horizontal",dir:s,activationMode:p="automatic",...l}=e,u=T1(s),[m,v]=rb({prop:n,onChange:o,defaultProp:a??"",caller:Gi});return G.jsx(QB,{scope:r,baseId:tb(),value:m,onValueChange:v,orientation:c,dir:u,activationMode:p,children:G.jsx(Ne.div,{dir:u,"data-orientation":c,...l,ref:t})})});eK.displayName=Gi;var F1="TabsList",tK=i.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=Wd(F1,r),c=I1(r);return G.jsx(GB,{asChild:!0,...c,orientation:a.orientation,dir:a.dir,loop:n,children:G.jsx(Ne.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});tK.displayName=F1;var L1="TabsTrigger",rK=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,c=Wd(L1,r),s=I1(r),p=z1(c.baseId,n),l=$1(c.baseId,n),u=n===c.value;return G.jsx(ZB,{asChild:!0,...s,focusable:!o,active:u,children:G.jsx(Ne.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":l,"data-state":u?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:p,...a,ref:t,onMouseDown:he(e.onMouseDown,m=>{!o&&m.button===0&&m.ctrlKey===!1?c.onValueChange(n):m.preventDefault()}),onKeyDown:he(e.onKeyDown,m=>{[" ","Enter"].includes(m.key)&&c.onValueChange(n)}),onFocus:he(e.onFocus,()=>{const m=c.activationMode!=="manual";!u&&!o&&m&&c.onValueChange(n)})})})});rK.displayName=L1;var W1="TabsContent",nK=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...c}=e,s=Wd(W1,r),p=z1(s.baseId,n),l=$1(s.baseId,n),u=n===s.value,m=i.useRef(u);return i.useEffect(()=>{const v=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(v)},[]),G.jsx(pi,{present:o||u,children:({present:v})=>G.jsx(Ne.div,{"data-state":u?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":p,hidden:!v,id:l,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:m.current?"0s":void 0},children:v&&a})})});nK.displayName=W1;function z1(e,t){return`${e}-trigger-${t}`}function $1(e,t){return`${e}-content-${t}`}i.createContext({});i.createContext({});function oK(e){const t=e+"CollectionProvider",[r,n]=li(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=d=>{const{scope:g,children:b}=d,y=P.useRef(null),w=P.useRef(new Map).current;return q.jsx(o,{scope:g,itemMap:w,collectionRef:y,children:b})};c.displayName=t;const s=e+"CollectionSlot",p=oe.createSlot(s),l=P.forwardRef((d,g)=>{const{scope:b,children:y}=d,w=a(s,b),E=vt(g,w.collectionRef);return q.jsx(p,{ref:E,children:y})});l.displayName=s;const u=e+"CollectionItemSlot",m="data-radix-collection-item",v=oe.createSlot(u),h=P.forwardRef((d,g)=>{const{scope:b,children:y,...w}=d,E=P.useRef(null),j=vt(g,E),T=a(u,b);return P.useEffect(()=>(T.itemMap.set(E,{ref:E,...w}),()=>void T.itemMap.delete(E))),q.jsx(v,{[m]:"",ref:j,children:y})});h.displayName=u;function x(d){const g=a(e+"CollectionConsumer",d);return P.useCallback(()=>{const b=g.collectionRef.current;if(!b)return[];const y=Array.from(b.querySelectorAll(`[${m}]`));return Array.from(g.itemMap.values()).sort((w,E)=>y.indexOf(w.ref.current)-y.indexOf(E.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:c,Slot:l,ItemSlot:h},x,n]}var aK=i.createContext(void 0);function Y1(e){const t=i.useContext(aK);return e||t||"ltr"}var Zu="rovingFocusGroup.onEntryFocus",sK={bubbles:!1,cancelable:!0},Yo="RovingFocusGroup",[Vl,U1,iK]=oK(Yo),[cK,B1]=li(Yo,[iK]),[uK,lK]=cK(Yo),K1=i.forwardRef((e,t)=>q.jsx(Vl.Provider,{scope:e.__scopeRovingFocusGroup,children:q.jsx(Vl.Slot,{scope:e.__scopeRovingFocusGroup,children:q.jsx(dK,{...e,ref:t})})}));K1.displayName=Yo;var dK=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:c,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:p,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...m}=e,v=i.useRef(null),h=vt(t,v),x=Y1(a),[d,g]=_h({prop:c,defaultProp:s??null,onChange:p,caller:Yo}),[b,y]=i.useState(!1),w=_n(l),E=U1(r),j=i.useRef(!1),[T,S]=i.useState(0);return i.useEffect(()=>{const R=v.current;if(R)return R.addEventListener(Zu,w),()=>R.removeEventListener(Zu,w)},[w]),q.jsx(uK,{scope:r,orientation:n,dir:x,loop:o,currentTabStopId:d,onItemFocus:i.useCallback(R=>g(R),[g]),onItemShiftTab:i.useCallback(()=>y(!0),[]),onFocusableItemAdd:i.useCallback(()=>S(R=>R+1),[]),onFocusableItemRemove:i.useCallback(()=>S(R=>R-1),[]),children:q.jsx(Re.div,{tabIndex:b||T===0?-1:0,"data-orientation":n,...m,ref:h,style:{outline:"none",...e.style},onMouseDown:ge(e.onMouseDown,()=>{j.current=!0}),onFocus:ge(e.onFocus,R=>{const M=!j.current;if(R.target===R.currentTarget&&M&&!b){const L=new CustomEvent(Zu,sK);if(R.currentTarget.dispatchEvent(L),!L.defaultPrevented){const I=E().filter(D=>D.focusable),B=I.find(D=>D.active),K=I.find(D=>D.id===d),z=[B,K,...I].filter(Boolean).map(D=>D.ref.current);X1(z,u)}}j.current=!1}),onBlur:ge(e.onBlur,()=>y(!1))})})}),H1="RovingFocusGroupItem",V1=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:c,...s}=e,p=Oh(),l=a||p,u=lK(H1,r),m=u.currentTabStopId===l,v=U1(r),{onFocusableItemAdd:h,onFocusableItemRemove:x,currentTabStopId:d}=u;return i.useEffect(()=>{if(n)return h(),()=>x()},[n,h,x]),q.jsx(Vl.ItemSlot,{scope:r,id:l,focusable:n,active:o,children:q.jsx(Re.span,{tabIndex:m?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:ge(e.onMouseDown,g=>{n?u.onItemFocus(l):g.preventDefault()}),onFocus:ge(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:ge(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){u.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const b=pK(g,u.orientation,u.dir);if(b!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let y=v().filter(w=>w.focusable).map(w=>w.ref.current);if(b==="last")y.reverse();else if(b==="prev"||b==="next"){b==="prev"&&y.reverse();const w=y.indexOf(g.currentTarget);y=u.loop?vK(y,w+1):y.slice(w+1)}setTimeout(()=>X1(y))}}),children:typeof c=="function"?c({isCurrentTabStop:m,hasTabStop:d!=null}):c})})});V1.displayName=H1;var fK={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function mK(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function pK(e,t,r){const n=mK(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return fK[n]}function X1(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function vK(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var gK=K1,hK=V1,Zi="Tabs",[bK]=li(Zi,[B1]),q1=B1(),[yK,zd]=bK(Zi),wK=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:c="horizontal",dir:s,activationMode:p="automatic",...l}=e,u=Y1(s),[m,v]=_h({prop:n,onChange:o,defaultProp:a??"",caller:Zi});return q.jsx(yK,{scope:r,baseId:Oh(),value:m,onValueChange:v,orientation:c,dir:u,activationMode:p,children:q.jsx(Re.div,{dir:u,"data-orientation":c,...l,ref:t})})});wK.displayName=Zi;var G1="TabsList",xK=i.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=zd(G1,r),c=q1(r);return q.jsx(gK,{asChild:!0,...c,orientation:a.orientation,dir:a.dir,loop:n,children:q.jsx(Re.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});xK.displayName=G1;var Z1="TabsTrigger",EK=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,c=zd(Z1,r),s=q1(r),p=Q1(c.baseId,n),l=ek(c.baseId,n),u=n===c.value;return q.jsx(hK,{asChild:!0,...s,focusable:!o,active:u,children:q.jsx(Re.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":l,"data-state":u?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:p,...a,ref:t,onMouseDown:ge(e.onMouseDown,m=>{!o&&m.button===0&&m.ctrlKey===!1?c.onValueChange(n):m.preventDefault()}),onKeyDown:ge(e.onKeyDown,m=>{[" ","Enter"].includes(m.key)&&c.onValueChange(n)}),onFocus:ge(e.onFocus,()=>{const m=c.activationMode!=="manual";!u&&!o&&m&&c.onValueChange(n)})})})});EK.displayName=Z1;var J1="TabsContent",kK=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...c}=e,s=zd(J1,r),p=Q1(s.baseId,n),l=ek(s.baseId,n),u=n===s.value,m=i.useRef(u);return i.useEffect(()=>{const v=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(v)},[]),q.jsx(di,{present:o||u,children:({present:v})=>q.jsx(Re.div,{"data-state":u?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":p,hidden:!v,id:l,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:m.current?"0s":void 0},children:v&&a})})});kK.displayName=J1;function Q1(e,t){return`${e}-trigger-${t}`}function ek(e,t){return`${e}-content-${t}`}i.createContext({});i.createContext({});function SK({data:e=[],placeholder:t="Selecione um item...",value:r,...n}){const[o,a]=i.useState(!1);let c=-1;r&&(c=e.findIndex(l=>l.value===r));const[s,p]=i.useState(c);return C.jsxRuntimeExports.jsxs(To,{open:o,onOpenChange:a,children:[C.jsxRuntimeExports.jsx(Oo,{asChild:!0,children:C.jsxRuntimeExports.jsxs(sh,{variant:"outline",role:"combobox","aria-expanded":o,className:"justify-between",children:[s>-1?e[s].label:C.jsxRuntimeExports.jsx("div",{className:"text-sm text-foreground opacity-50 font-normal",children:t}),C.jsxRuntimeExports.jsx(pe.ChevronsUpDown,{className:"opacity-50"})]})}),C.jsxRuntimeExports.jsx(_o,{className:" lg:w-[654px] md:w-[558px] p-0",children:C.jsxRuntimeExports.jsxs(ci,{children:[C.jsxRuntimeExports.jsx(td,{placeholder:t,className:"h-9 opacity-50",...n}),C.jsxRuntimeExports.jsxs(rd,{children:[C.jsxRuntimeExports.jsx(nd,{children:"Nenhum registro encontrado."}),C.jsxRuntimeExports.jsx($s,{children:e?.map(l=>C.jsxRuntimeExports.jsxs(Ys,{value:l.label,onSelect:u=>{const m=e.findIndex(v=>v.label===u);p(m),typeof n.onValueChange=="function"&&n.onValueChange(e[m].value),a(!1)},children:[l.label,C.jsxRuntimeExports.jsx(pe.Check,{className:F("ml-auto",l.value===e[s]?.value?"opacity-100":"opacity-0")})]},l.value))})]})]})})]})}function tk({className:e,orientation:t="horizontal",decorative:r=!0,...n}){return C.jsxRuntimeExports.jsx(hk.Root,{"data-slot":"separator",decorative:r,orientation:t,className:F("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e),...n})}function jK({column:e,title:t,options:r,onChange:n,value:o=[]}){const a=e?.getFacetedUniqueValues(),c=new Set(o);return C.jsxRuntimeExports.jsxs(To,{children:[C.jsxRuntimeExports.jsx(Oo,{asChild:!0,children:C.jsxRuntimeExports.jsxs(sh,{variant:"outline",size:"sm",className:"h-8 border-dashed",children:[C.jsxRuntimeExports.jsx(pe.PlusCircle,{}),t,c?.size>0&&C.jsxRuntimeExports.jsxs(C.jsxRuntimeExports.Fragment,{children:[C.jsxRuntimeExports.jsx(tk,{orientation:"vertical",className:"mx-2 h-4"}),C.jsxRuntimeExports.jsx(us,{variant:"secondary",className:"rounded-sm px-1 font-normal lg:hidden",children:c.size}),C.jsxRuntimeExports.jsx("div",{className:"hidden gap-1 lg:flex",children:c.size>2?C.jsxRuntimeExports.jsxs(us,{variant:"secondary",className:"rounded-sm px-1 font-normal",children:[c.size," selected"]}):r.filter(s=>c.has(s.value)).map(s=>C.jsxRuntimeExports.jsx(us,{variant:"secondary",className:"rounded-sm px-1 font-normal",children:s.label},s.value))})]})]})}),C.jsxRuntimeExports.jsx(_o,{className:"w-[200px] p-0",align:"start",children:C.jsxRuntimeExports.jsxs(ci,{children:[C.jsxRuntimeExports.jsx(td,{placeholder:t}),C.jsxRuntimeExports.jsxs(rd,{children:[C.jsxRuntimeExports.jsx(nd,{children:"No results found."}),C.jsxRuntimeExports.jsx($s,{children:r.map(s=>{const p=c.has(s.value);return C.jsxRuntimeExports.jsxs(Ys,{onSelect:()=>{const l=new Set(c);p?l.delete(s.value):l.add(s.value),typeof n=="function"&&n(l);const u=Array.from(l);e?.setFilterValue(u.length?u:void 0)},children:[C.jsxRuntimeExports.jsx("div",{className:F("flex size-4 items-center justify-center rounded-[4px] border",p?"bg-primary border-primary text-primary-foreground":"border-input [&_svg]:invisible"),children:C.jsxRuntimeExports.jsx(pe.Check,{className:"text-primary-foreground size-3.5"})}),s.icon&&C.jsxRuntimeExports.jsx(s.icon,{className:"text-muted-foreground size-4"}),C.jsxRuntimeExports.jsx("span",{children:s.label}),a?.get(s.value)&&C.jsxRuntimeExports.jsx("span",{className:"text-muted-foreground ml-auto flex size-4 items-center justify-center font-mono text-xs",children:a.get(s.value)})]},s.value)})}),c.size>0&&C.jsxRuntimeExports.jsxs(C.jsxRuntimeExports.Fragment,{children:[C.jsxRuntimeExports.jsx(oh,{}),C.jsxRuntimeExports.jsx($s,{children:C.jsxRuntimeExports.jsx(Ys,{onSelect:()=>{e?.setFilterValue(void 0),typeof n=="function"&&n(new Set)},className:"justify-center text-center",children:"Limpar Filtro"})})]})]})]})})]})}const CK=As.FormProvider,rk=i.createContext({}),RK=({...e})=>C.jsxRuntimeExports.jsx(rk.Provider,{value:{name:e.name},children:C.jsxRuntimeExports.jsx(As.Controller,{...e})}),Uo=()=>{const e=i.useContext(rk),t=i.useContext(nk),{getFieldState:r}=As.useFormContext(),n=As.useFormState({name:e.name}),o=r(e.name,n);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...o}},nk=i.createContext({});function NK({className:e,...t}){const r=i.useId();return C.jsxRuntimeExports.jsx(nk.Provider,{value:{id:r},children:C.jsxRuntimeExports.jsx("div",{"data-slot":"form-item",className:F("grid gap-2",e),...t})})}function TK({className:e,...t}){const{error:r,formItemId:n}=Uo();return C.jsxRuntimeExports.jsx(Gl,{"data-slot":"form-label","data-error":!!r,className:F("data-[error=true]:text-destructive",e),htmlFor:n,...t})}function OK({...e}){const{error:t,formItemId:r,formDescriptionId:n,formMessageId:o}=Uo();return C.jsxRuntimeExports.jsx(oe.Slot,{"data-slot":"form-control",id:r,"aria-describedby":t?`${n} ${o}`:`${n}`,"aria-invalid":!!t,...e})}function _K({className:e,...t}){const{formDescriptionId:r}=Uo();return C.jsxRuntimeExports.jsx("p",{"data-slot":"form-description",id:r,className:F("text-muted-foreground text-sm",e),...t})}function DK({className:e,...t}){const{error:r,formMessageId:n}=Uo(),o=r?String(r?.message??""):t.children;return o?C.jsxRuntimeExports.jsx("p",{"data-slot":"form-message",id:n,className:F("text-destructive text-sm",e),...t,children:o}):null}function PK({className:e,...t}){return C.jsxRuntimeExports.jsx("div",{"data-slot":"skeleton",className:F("bg-accent animate-pulse rounded-md",e),...t})}const MK=({...e})=>{const{theme:t="system"}=pk.useTheme();return C.jsxRuntimeExports.jsx(qv.Toaster,{theme:t,className:"toaster group",style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)"},...e})};function AK({className:e,...t}){return C.jsxRuntimeExports.jsx(ni.Root,{"data-slot":"tabs",className:F("flex flex-col gap-2",e),...t})}function IK({className:e,...t}){return C.jsxRuntimeExports.jsx(ni.List,{"data-slot":"tabs-list",className:F("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function FK({className:e,...t}){return C.jsxRuntimeExports.jsx(ni.Trigger,{"data-slot":"tabs-trigger",className:F("data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function LK({className:e,...t}){return C.jsxRuntimeExports.jsx(ni.Content,{"data-slot":"tabs-content",className:F("flex-1 outline-none",e),...t})}function WK({className:e,...t}){return C.jsxRuntimeExports.jsx("textarea",{"data-slot":"textarea",className:F("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),...t})}Object.defineProperty(exports,"TZDate",{enumerable:!0,get:()=>zt.TZDate});Object.defineProperty(exports,"toast",{enumerable:!0,get:()=>qv.toast});exports.Badge=us;exports.Button=qe;exports.Calendar=Zl;exports.CalendarDayButton=mg;exports.Card=fS;exports.CardAction=gS;exports.CardContent=hS;exports.CardDescription=vS;exports.CardFooter=bS;exports.CardHeader=mS;exports.CardTitle=pS;exports.Checkbox=yS;exports.Collapsible=wS;exports.CollapsibleContent=ES;exports.CollapsibleTrigger=xS;exports.Combobox=SK;exports.Command=ci;exports.CommandDialog=sC;exports.CommandEmpty=nd;exports.CommandGroup=$s;exports.CommandInput=td;exports.CommandItem=Ys;exports.CommandList=rd;exports.CommandSeparator=oh;exports.CommandShortcut=iC;exports.DataTable=Mk;exports.DataTableFacetedFilter=jK;exports.DatePicker=lS;exports.DateRangePicker=dS;exports.DefaultDropdownMenuTrigger=Ok;exports.Dialog=Zg;exports.DialogClose=oC;exports.DialogContent=eh;exports.DialogDescription=nh;exports.DialogFooter=aC;exports.DialogHeader=th;exports.DialogOverlay=Qg;exports.DialogPortal=Jg;exports.DialogTitle=rh;exports.DialogTrigger=nC;exports.DragHandle=Ak;exports.DraggableRow=fg;exports.DropdownMenu=Ju;exports.DropdownMenuCheckboxItem=tg;exports.DropdownMenuContent=Qu;exports.DropdownMenuGroup=Ek;exports.DropdownMenuItem=kk;exports.DropdownMenuLabel=Sk;exports.DropdownMenuPortal=xk;exports.DropdownMenuRadioGroup=rg;exports.DropdownMenuRadioItem=ng;exports.DropdownMenuSeparator=jk;exports.DropdownMenuShortcut=Ck;exports.DropdownMenuSub=Rk;exports.DropdownMenuSubContent=Tk;exports.DropdownMenuSubTrigger=Nk;exports.DropdownMenuTrigger=Ls;exports.Form=CK;exports.FormControl=OK;exports.FormDescription=_K;exports.FormField=RK;exports.FormItem=NK;exports.FormLabel=TK;exports.FormMessage=DK;exports.Input=dg;exports.Label=Gl;exports.Popover=To;exports.PopoverAnchor=uS;exports.PopoverContent=_o;exports.PopoverTrigger=Oo;exports.Select=og;exports.SelectContent=ig;exports.SelectGroup=_k;exports.SelectItem=cg;exports.SelectLabel=Dk;exports.SelectScrollDownButton=lg;exports.SelectScrollUpButton=ug;exports.SelectSeparator=Pk;exports.SelectTrigger=sg;exports.SelectValue=ag;exports.Separator=tk;exports.Skeleton=PK;exports.Table=Zv;exports.TableBody=Qv;exports.TableCaption=wk;exports.TableCell=ql;exports.TableFooter=yk;exports.TableHead=eg;exports.TableHeader=Jv;exports.TableRow=Fs;exports.Tabs=AK;exports.TabsContent=LK;exports.TabsList=IK;exports.TabsTrigger=FK;exports.Textarea=WK;exports.Toaster=MK;exports.badgeVariants=bg;exports.buttonVariants=Is;exports.useFormField=Uo;