@optiaxiom/web-components 0.1.0-next.8 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (245) hide show
  1. package/dist/AlertContext-5NgPiEPd.js +1 -0
  2. package/dist/AlertDialogContext-LQITHGVY.js +1 -0
  3. package/dist/AnimatePresence-D32mWcvx.js +1 -0
  4. package/dist/AvatarContext-YAthAPH8.js +1 -0
  5. package/dist/Badge-DZyf64C0.js +1 -0
  6. package/dist/BannerContext-D5MTHW-N.js +1 -0
  7. package/dist/Box-iVCck_0w.js +1 -0
  8. package/dist/Button-JHP6wq4e.js +1 -0
  9. package/dist/Code-BRvRSns4.js +1 -0
  10. package/dist/DialogContext-BbEByqQW.js +1 -0
  11. package/dist/DropdownMenuContext-DJ5_uG5X.js +1 -0
  12. package/dist/DropdownMenuSubContext-J65Y8Pqs.js +1 -0
  13. package/dist/FieldContext-BZSkS0yf.js +1 -0
  14. package/dist/Flex-DRD6dADH.js +1 -0
  15. package/dist/{Heading-DnrleH4c.js → Heading-DYOlYb6r.js} +1 -1
  16. package/dist/{HoverCard-qrzjuuhk.js → HoverCard-C5QdQBbd.js} +1 -1
  17. package/dist/HoverCardContent-V6r7VYl6.js +1 -0
  18. package/dist/HoverCardContext-BsTmknRy.js +1 -0
  19. package/dist/HoverCardTrigger-DLKhPz9N.js +1 -0
  20. package/dist/Icon-Dr6s-xrW.js +1 -0
  21. package/dist/IconAngleDown-PcCj-arC.js +1 -0
  22. package/dist/IconAngleRight-C4fVvLsA.js +1 -0
  23. package/dist/IconEllipsis-xDznHMVz.js +1 -0
  24. package/dist/IconTriangleExclamation-D4zoCwdK.js +1 -0
  25. package/dist/{IconTriangleExclamationFilled-DKNhtj0U.js → IconTriangleExclamationFilled-Bz6ZDqkT.js} +1 -1
  26. package/dist/IconX-C_jHleir.js +1 -0
  27. package/dist/{Input-VBWU1cWK.js → Input-BKMf6Cti.js} +1 -1
  28. package/dist/InputBase-B-kIbBR2.js +1 -0
  29. package/dist/Link-CAbAXcJ_.js +1 -0
  30. package/dist/MenuButton-DP0kDFKR.js +1 -0
  31. package/dist/MenuContentBase-DdPVrAsr.js +1 -0
  32. package/dist/PopoverContext-Cc1xqiGg.js +1 -0
  33. package/dist/RadioGroupContext-CQylKtal.js +1 -0
  34. package/dist/Separator-bssPMbpH.js +1 -0
  35. package/dist/SideNavContext-DP9XC3RX.js +1 -0
  36. package/dist/SideNavItem-CY9Zxxjc.js +1 -0
  37. package/dist/Spinner-DKNDGuxM.js +1 -0
  38. package/dist/TableRow.css.ts.vanilla-CrcN69E1-CMhRjtvp.js +1 -0
  39. package/dist/TabsContext-CdZO83b7.js +1 -0
  40. package/dist/Text-CKa2d5NJ.js +1 -0
  41. package/dist/Toast-Ax37dFlh.js +1 -0
  42. package/dist/ToastAction-DN2SLsN9.js +1 -0
  43. package/dist/ToastProvider-DP3mz41m.js +1 -0
  44. package/dist/ToastTitle-DQWJN16r.js +1 -0
  45. package/dist/ToggleInputLabel--r2rHADx.js +1 -0
  46. package/dist/Tooltip-BEb3P1_W.js +1 -0
  47. package/dist/TooltipContent-BpFBa1hW.js +1 -0
  48. package/dist/TooltipContext-BZHRzebd.js +1 -0
  49. package/dist/TooltipRoot-a6p1b06r.js +1 -0
  50. package/dist/TooltipTrigger-fEVbUxsG.js +1 -0
  51. package/dist/Transition-DlWfcibI.js +1 -0
  52. package/dist/components/Alert.js +1 -1
  53. package/dist/components/AlertDescription.js +1 -1
  54. package/dist/components/AlertDialog.js +1 -1
  55. package/dist/components/AlertDialogAction.js +1 -1
  56. package/dist/components/AlertDialogCancel.js +1 -1
  57. package/dist/components/AlertDialogContent.js +1 -1
  58. package/dist/components/AlertDialogDescription.js +1 -1
  59. package/dist/components/AlertDialogFooter.js +1 -1
  60. package/dist/components/AlertDialogTitle.js +1 -1
  61. package/dist/components/AlertDialogTrigger.js +1 -1
  62. package/dist/components/AlertTitle.js +1 -1
  63. package/dist/components/AnimatePresence.js +1 -1
  64. package/dist/components/Avatar.js +1 -1
  65. package/dist/components/AvatarGroup.js +1 -1
  66. package/dist/components/AxiomProvider.js +1 -1
  67. package/dist/components/Badge.js +1 -1
  68. package/dist/components/Banner.js +1 -0
  69. package/dist/components/BannerDescription.js +1 -0
  70. package/dist/components/BannerTitle.js +1 -0
  71. package/dist/components/Box.js +1 -1
  72. package/dist/components/Button.js +1 -1
  73. package/dist/components/ButtonGroup.js +1 -1
  74. package/dist/components/Checkbox.js +1 -1
  75. package/dist/components/Code.js +1 -1
  76. package/dist/components/Dialog.js +1 -1
  77. package/dist/components/DialogBody.js +1 -1
  78. package/dist/components/DialogClose.js +1 -1
  79. package/dist/components/DialogContent.js +1 -1
  80. package/dist/components/DialogDescription.js +1 -1
  81. package/dist/components/DialogFooter.js +1 -1
  82. package/dist/components/DialogTitle.js +1 -1
  83. package/dist/components/DialogTrigger.js +1 -1
  84. package/dist/components/Disclosure.js +1 -0
  85. package/dist/components/DisclosureContent.js +1 -0
  86. package/dist/components/DisclosureTrigger.js +1 -0
  87. package/dist/components/Drawer.js +1 -1
  88. package/dist/components/DrawerBody.js +1 -1
  89. package/dist/components/DrawerFooter.js +1 -1
  90. package/dist/components/DrawerTitle.js +1 -1
  91. package/dist/components/DropdownMenu.js +1 -1
  92. package/dist/components/DropdownMenuContent.js +1 -1
  93. package/dist/components/DropdownMenuItem.js +1 -1
  94. package/dist/components/DropdownMenuLabel.js +1 -1
  95. package/dist/components/DropdownMenuSeparator.js +1 -1
  96. package/dist/components/DropdownMenuSub.js +1 -0
  97. package/dist/components/DropdownMenuSubContent.js +1 -0
  98. package/dist/components/DropdownMenuTrigger.js +1 -1
  99. package/dist/components/Field.js +1 -1
  100. package/dist/components/Flex.js +1 -1
  101. package/dist/components/Grid.js +1 -1
  102. package/dist/components/Heading.js +1 -1
  103. package/dist/components/HoverCard.js +1 -1
  104. package/dist/components/HoverCardContent.js +1 -1
  105. package/dist/components/HoverCardTrigger.js +1 -1
  106. package/dist/components/Indicator.js +1 -1
  107. package/dist/components/Input.js +1 -1
  108. package/dist/components/Kbd.js +1 -1
  109. package/dist/components/Link.js +1 -1
  110. package/dist/components/MenuButton.js +1 -0
  111. package/dist/components/Pagination.js +1 -1
  112. package/dist/components/Popover.js +1 -1
  113. package/dist/components/PopoverAnchor.js +1 -1
  114. package/dist/components/PopoverContent.js +1 -1
  115. package/dist/components/PopoverTrigger.js +1 -1
  116. package/dist/components/Progress.js +2 -2
  117. package/dist/components/Radio.js +1 -0
  118. package/dist/components/RadioGroup.js +1 -1
  119. package/dist/components/SearchInput.js +1 -1
  120. package/dist/components/SegmentedControl.js +1 -0
  121. package/dist/components/SegmentedControlItem.js +1 -0
  122. package/dist/components/Separator.js +1 -1
  123. package/dist/components/SideNav.js +1 -0
  124. package/dist/components/SideNavAccountItem.js +1 -0
  125. package/dist/components/SideNavItem.js +1 -0
  126. package/dist/components/SideNavToggle.js +1 -0
  127. package/dist/components/Skeleton.js +1 -1
  128. package/dist/components/Spinner.js +1 -1
  129. package/dist/components/Switch.js +1 -1
  130. package/dist/components/Tabs.js +1 -1
  131. package/dist/components/TabsContent.js +1 -1
  132. package/dist/components/TabsList.js +1 -1
  133. package/dist/components/TabsTrigger.js +1 -1
  134. package/dist/components/Text.js +1 -1
  135. package/dist/components/Textarea.js +1 -1
  136. package/dist/components/ThemeProvider.js +1 -1
  137. package/dist/components/Toast.js +1 -1
  138. package/dist/components/ToastAction.js +1 -1
  139. package/dist/components/ToastProvider.js +1 -1
  140. package/dist/components/ToastTitle.js +1 -1
  141. package/dist/components/ToggleButton.js +1 -0
  142. package/dist/components/Tooltip.js +1 -1
  143. package/dist/components/TooltipContent.js +1 -0
  144. package/dist/components/TooltipRoot.js +1 -0
  145. package/dist/components/TooltipTrigger.js +1 -0
  146. package/dist/components/Transition.js +1 -1
  147. package/dist/{fallbackSpan-CxQ7a9HY.js → fallbackSpan-FasSipX3.js} +1 -1
  148. package/dist/{index-CwlIANFe.js → index-6UUcEvFm.js} +1 -1
  149. package/dist/index-B4h5diCH.js +1 -0
  150. package/dist/index-B8FF5_b4.js +5 -0
  151. package/dist/index-BGp9xe25.js +1 -0
  152. package/dist/index-BKn4CimT.js +1 -0
  153. package/dist/index-BRUDi9Aj.js +1 -0
  154. package/dist/index-BqbX3HxW.js +1 -0
  155. package/dist/index-C9YNJrFj.js +1 -0
  156. package/dist/index-CBrz5xtv.js +1 -0
  157. package/dist/index-CDZENU78.js +1 -0
  158. package/dist/{index-BjW9I-Y7.js → index-Cb4PhTWH.js} +1 -1
  159. package/dist/index-CcP22EDR.js +41 -0
  160. package/dist/index-CyBvpgdB.js +1 -0
  161. package/dist/index-D0zvC3sp.js +1 -0
  162. package/dist/{index-Dc0_bzr0.js → index-DG4dox9h.js} +1 -1
  163. package/dist/index-DJ993xok.js +1 -0
  164. package/dist/index-DMCBpHqg.js +1 -0
  165. package/dist/index-D_ysjKuQ.js +1 -0
  166. package/dist/index-DjXUdK96.js +1 -0
  167. package/dist/index-DopfdxOl.js +1 -0
  168. package/dist/index-DpWpFwCJ.js +1 -0
  169. package/dist/index-Dzd2aF1H.js +1 -0
  170. package/dist/index-KglZqSgk.js +1 -0
  171. package/dist/{index-Czg_v63X.js → index-eNF0drXr.js} +1 -1
  172. package/dist/index-eujSmw5A.js +1 -0
  173. package/dist/index-ssDZp9pU.js +1 -0
  174. package/dist/index.js +1 -1
  175. package/dist/mapping-a1hAK8yD.js +1 -0
  176. package/dist/reach-auto-id-w7KwM5dx.js +10 -0
  177. package/dist/recipeRuntime-vUBAejJk.js +1 -0
  178. package/dist/register-C3moBjIu.js +9 -0
  179. package/dist/withIcon-BcrNzX7v.js +1 -0
  180. package/package.json +30 -15
  181. package/dist/AccordionContext-DwaGRTu5.js +0 -1
  182. package/dist/AlertDialogContext-BE1aSPWF.js +0 -1
  183. package/dist/AnimatePresence-BbjUzW7x.js +0 -1
  184. package/dist/AvatarContext-ciJdiyQj.js +0 -1
  185. package/dist/Badge-Bs96ubhI.js +0 -1
  186. package/dist/Box-aCtBlNNs.js +0 -1
  187. package/dist/Button-Cahucc7i.js +0 -1
  188. package/dist/Code-BvMxbiUs.js +0 -1
  189. package/dist/ControlBase-Dv0fduG0.js +0 -1
  190. package/dist/DialogContext-BG-XAaCt.js +0 -1
  191. package/dist/DropdownMenuContext-L5a7CqyZ.js +0 -1
  192. package/dist/FieldContext-JGqRYGwO.js +0 -1
  193. package/dist/Flex-BKO_VpCr.js +0 -1
  194. package/dist/HoverCardContent-B5Jctil6.js +0 -1
  195. package/dist/HoverCardContext-B08zLoHR.js +0 -1
  196. package/dist/HoverCardTrigger-Byl8rEER.js +0 -1
  197. package/dist/IconAngleDown-D-uqjvTi.js +0 -1
  198. package/dist/IconAngleRight-BaLVEqiH.js +0 -1
  199. package/dist/IconX-Bwt0Foer.js +0 -1
  200. package/dist/InputBase-CGotHn7s.js +0 -1
  201. package/dist/Link-BCHT8fyW.js +0 -1
  202. package/dist/PopoverContext-DG-KQuiD.js +0 -1
  203. package/dist/Separator-Bjn8kT18.js +0 -1
  204. package/dist/Spinner-DuEq8gXD.js +0 -1
  205. package/dist/TableRow.css.ts.vanilla-iSWH_OkR-CSNCuCv7.js +0 -1
  206. package/dist/TabsContext-BddYKTPG.js +0 -1
  207. package/dist/Text-NpcB3cJn.js +0 -1
  208. package/dist/ToastProvider-BaxxHE4n.js +0 -1
  209. package/dist/ToastProvider.css.ts.vanilla-U5IpQ-47-BbLycw46.js +0 -1
  210. package/dist/Tooltip-y9wsr52B.js +0 -1
  211. package/dist/Transition-jGConsZy.js +0 -1
  212. package/dist/components/Accordion.js +0 -1
  213. package/dist/components/AccordionContent.js +0 -1
  214. package/dist/components/AccordionItem.js +0 -1
  215. package/dist/components/AccordionTrigger.js +0 -1
  216. package/dist/components/RadioGroupItem.js +0 -1
  217. package/dist/components/Toggle.js +0 -1
  218. package/dist/index--jfmMGza.js +0 -1
  219. package/dist/index-2hb62O2e.js +0 -1
  220. package/dist/index-B2hrvVsv.js +0 -1
  221. package/dist/index-BFGTFomd.js +0 -1
  222. package/dist/index-BNe6Y0qx.js +0 -1
  223. package/dist/index-BhIEal5c.js +0 -1
  224. package/dist/index-BoCoJ_rP.js +0 -1
  225. package/dist/index-Bq8PuM3C.js +0 -1
  226. package/dist/index-C8PB8_E4.js +0 -1
  227. package/dist/index-CAfxbDJs.js +0 -5
  228. package/dist/index-CYRBbo06.js +0 -1
  229. package/dist/index-CcbUd-aS.js +0 -1
  230. package/dist/index-D1GI86xY.js +0 -41
  231. package/dist/index-D9B1pxPH.js +0 -1
  232. package/dist/index-DHhlyg04.js +0 -1
  233. package/dist/index-DQ88VcmP.js +0 -1
  234. package/dist/index-DTMwXSQu.js +0 -1
  235. package/dist/index-DTTsuPaI.js +0 -1
  236. package/dist/index-Dge3MYGy.js +0 -1
  237. package/dist/index-G9sVEGjd.js +0 -1
  238. package/dist/index-P_nqsVVQ.js +0 -1
  239. package/dist/index-nmVzqWAa.js +0 -1
  240. package/dist/index-uupe1idz.js +0 -1
  241. package/dist/mapping-DbL9vtE_.js +0 -1
  242. package/dist/reach-auto-id-6Fmhe7Rg.js +0 -10
  243. package/dist/recipeRuntime-DMRIERCl.js +0 -1
  244. package/dist/register-CuIip76E.js +0 -9
  245. package/dist/withIcon-CRgilS0b.js +0 -1
@@ -1 +1 @@
1
- import{i as u,k as h,u as r,r as x}from"../register-CuIip76E.js";import{a as p}from"../index-Dc0_bzr0.js";import{p as v,f as i}from"../Box-aCtBlNNs.js";import{b as y}from"../Button-Cahucc7i.js";import{t as _}from"../Flex-BKO_VpCr.js";import{o as T}from"../TabsContext-BddYKTPG.js";import{y as l}from"../recipeRuntime-DMRIERCl.js";import"../mapping-DbL9vtE_.js";import"../index-G9sVEGjd.js";import"../index-BjW9I-Y7.js";import"../index-BFGTFomd.js";import"../index-Dge3MYGy.js";import"../index--jfmMGza.js";import"../index-DHhlyg04.js";import"../index-P_nqsVVQ.js";import"../index-nmVzqWAa.js";import"../index-BoCoJ_rP.js";import"../index-Bq8PuM3C.js";import"../index-DTMwXSQu.js";import"../AnimatePresence-BbjUzW7x.js";import"../Spinner-DuEq8gXD.js";import"../Transition-jGConsZy.js";import"../fallbackSpan-CxQ7a9HY.js";import"../TableRow.css.ts.vanilla-iSWH_OkR-CSNCuCv7.js";u("@layer optiaxiom.c2sxc3;@layer optiaxiom.c2sxc3{._1m7qu28{border-color:transparent;color:var(--ax-colors-fg-tertiary);user-select:none}._1m7qu28:focus-visible{outline:2px solid var(--ax-colors-outline-brand);outline-offset:1px}._1m7qu28:hover:not([data-state=active]){border-color:var(--ax-colors-border-default);color:var(--ax-colors-fg-secondary)}._1m7qu28[data-disabled]{color:var(--ax-colors-fg-disabled)}._1m7qu28[data-orientation=horizontal]{border-bottom-width:2px;margin-bottom:-1px}._1m7qu28[data-orientation=vertical]{border-right-width:2px;margin-right:-1px;padding-inline:10px}._1m7qu28[data-state=active]{border-color:var(--ax-colors-border-brand);color:var(--ax-colors-fg-default)}._1hctdf1:active ._92ns7y{background-color:var(--ax-colors-bg-input-disabled)}}");var q=l({base:[{flexDirection:"row",gap:"xs",py:"6",rounded:"sm"},"_92ns7y"]}),w=l({base:["_1hctdf1",{fontSize:"md",fontWeight:"500",py:"4"},"_1m7qu28"]});const m=h(({addonAfter:e,addonBefore:s,children:n,icon:o,iconPosition:t="start",...g},a)=>{const{appearance:b}=T("TabsTrigger"),{restProps:d,sprinkleProps:c}=v(g);return b==="primary"?r(i,{asChild:!0,...w(),...c,children:r(p,{ref:a,...d,children:r(_,{...q(),children:[o&&t==="start"?r(i,{asChild:!0,h:"auto",w:"20",children:o}):s,n,o&&t==="end"?r(i,{asChild:!0,h:"auto",w:"20",children:o}):e]})})}):r(y,{addonAfter:e,addonBefore:s,appearance:"secondary",asChild:!0,icon:o,iconPosition:t,justifyContent:"start",ref:a,...c,children:r(p,{ref:a,...d,children:n})})});m.displayName="@optiaxiom/react/TabsTrigger";const f="ax-tabs-trigger";var C=x(f,m,{customEvents:[]});export{f as TabsTrigger,C as default};
1
+ import{i as x,w as h,u as r,r as u}from"../register-C3moBjIu.js";import{a as l}from"../index-DG4dox9h.js";import{i as v,o as i}from"../Box-iVCck_0w.js";import{B as q}from"../Button-JHP6wq4e.js";import{t as y}from"../Flex-DRD6dADH.js";import{o as T}from"../TabsContext-CdZO83b7.js";import{y as c}from"../recipeRuntime-vUBAejJk.js";import"../mapping-a1hAK8yD.js";import"../index-CBrz5xtv.js";import"../index-DopfdxOl.js";import"../index-D0zvC3sp.js";import"../index-B4h5diCH.js";import"../index-CDZENU78.js";import"../index-D_ysjKuQ.js";import"../index-C9YNJrFj.js";import"../index-KglZqSgk.js";import"../index-BqbX3HxW.js";import"../index-Cb4PhTWH.js";import"../index-BKn4CimT.js";import"../index-ssDZp9pU.js";import"../AnimatePresence-D32mWcvx.js";import"../Transition-DlWfcibI.js";import"../Icon-Dr6s-xrW.js";import"../Spinner-DKNDGuxM.js";import"../fallbackSpan-FasSipX3.js";import"../TableRow.css.ts.vanilla-CrcN69E1-CMhRjtvp.js";x("@layer optiaxiom.vwd1mg;@layer optiaxiom.vwd1mg{.p72qq7{border-color:transparent;color:var(--ax-colors-fg-tertiary);user-select:none}.p72qq7:focus-visible{outline:2px solid var(--ax-colors-border-focus);outline-offset:1px}.p72qq7:hover:not([data-state=active]){border-color:var(--ax-colors-border-default);color:var(--ax-colors-fg-secondary)}.p72qq7[data-disabled]{color:var(--ax-colors-fg-disabled)}.p72qq7[data-orientation=horizontal]{border-bottom-width:2px;margin-bottom:-1px}.p72qq7[data-orientation=vertical]{border-right-width:2px;margin-right:-1px;padding-inline:10px}.p72qq7[data-state=active]{border-color:var(--ax-colors-border-accent);color:var(--ax-colors-fg-default)}._2j1tbu:active .xdpqi1{background-color:var(--ax-colors-bg-secondary)}}");var w=c({base:[{flexDirection:"row",gap:"xs",justifyContent:["center","start"],py:"6",rounded:"sm"},"xdpqi1"]}),C=c({base:["_2j1tbu",{flex:["1","initial"],fontSize:"md",fontWeight:"500",py:"4"},"p72qq7"]});const m=h(({addonAfter:a,addonBefore:e,children:p,icon:o,iconPosition:t="start",...g},n)=>{const{appearance:b}=T("TabsTrigger"),{restProps:s,sprinkleProps:d}=v(g);return b==="primary"?r(i,{asChild:!0,...C(),...d,children:r(l,{ref:n,...s,children:r(y,{...w(),children:[o&&t==="start"?r(i,{asChild:!0,h:"auto",w:"20",children:o}):e,p,o&&t==="end"?r(i,{asChild:!0,h:"auto",w:"20",children:o}):a]})})}):r(q,{addonAfter:a,addonBefore:e,appearance:"subtle",asChild:!0,icon:o,iconPosition:t,justifyContent:"start",ref:n,...d,children:r(l,{...s,children:p})})});m.displayName="@optiaxiom/react/TabsTrigger";const f="ax-tabs-trigger";var j=u(f,m,{customEvents:[]});export{f as TabsTrigger,j as default};
@@ -1 +1 @@
1
- import{r}from"../register-CuIip76E.js";import{r as o}from"../Text-NpcB3cJn.js";import"../mapping-DbL9vtE_.js";import"../index-DHhlyg04.js";import"../Box-aCtBlNNs.js";import"../recipeRuntime-DMRIERCl.js";const t="ax-text";var m=r(t,o,{customEvents:[]});export{t as Text,m as default};
1
+ import{r}from"../register-C3moBjIu.js";import{r as o}from"../Text-CKa2d5NJ.js";import"../mapping-a1hAK8yD.js";import"../index-D_ysjKuQ.js";import"../Box-iVCck_0w.js";import"../recipeRuntime-vUBAejJk.js";const t="ax-text";var m=r(t,o,{customEvents:[]});export{t as Text,m as default};
@@ -1 +1 @@
1
- import{A as o,q as g,k as l,_ as x,i as w,u as s,r as y}from"../register-CuIip76E.js";import{a as m}from"../index-DHhlyg04.js";import{f as C}from"../Box-aCtBlNNs.js";import{u as R}from"../InputBase-CGotHn7s.js";import{y as f}from"../recipeRuntime-DMRIERCl.js";import"../mapping-DbL9vtE_.js";import"../FieldContext-JGqRYGwO.js";import"../Flex-BKO_VpCr.js";import"../Text-NpcB3cJn.js";import"../fallbackSpan-CxQ7a9HY.js";function u(){return u=Object.assign?Object.assign.bind():function(r){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var e in a)({}).hasOwnProperty.call(a,e)&&(r[e]=a[e])}return r},u.apply(null,arguments)}function z(r,n){if(r==null)return{};var a={};for(var e in r)if({}.hasOwnProperty.call(r,e)){if(n.includes(e))continue;a[e]=r[e]}return a}var p=function(r,n){if(typeof r=="function"){r(n);return}r.current=n},b=function(r,n){var a=o();return g(function(e){r.current=e,a.current&&p(a.current,null),a.current=n,n&&p(n,e)},[n])},k=function(){},O=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],$=function(r,n){r.cacheMeasurements,r.maxRows,r.minRows;var a=r.onChange,e=a===void 0?k:a;r.onHeightChange;var t=z(r,O);t.value;var i=o(null),c=b(i,n);return o(0),o(),x("textarea",u({},t,{onChange:e,ref:c}))},j=l($);w("@layer optiaxiom.c2sxc3;@layer optiaxiom.c2sxc3{.dedq5m{resize:vertical}.k7kddu{resize:none}}");var q=f({base:"k7kddu"}),H=f({base:{flexDirection:"column",overflow:"auto"},variants:{resize:{auto:{},none:{},vertical:"dedq5m"}}});const d=l(({asChild:r,children:n,className:a,resize:e="none",...t},i)=>{const c=r?m:j,v=r?m:"textarea";return s(R,{size:"lg",...H({resize:e},a),...t,children:s(C,{asChild:!0,...q(),children:e==="auto"?s(c,{minRows:"minRows"in t?t.minRows:3,ref:i,children:n}):s(v,{ref:i,rows:"rows"in t?t.rows:3,children:n})})})});d.displayName="@optiaxiom/react/Textarea";const h="ax-textarea";var T=y(h,d,{customEvents:["onHeightChange"]});export{h as Textarea,T as default};
1
+ import{i as j,w as m,h as z,u as e,r as q}from"../register-C3moBjIu.js";import{a as p}from"../index-D_ysjKuQ.js";import{f as k}from"../InputBase-B-kIbBR2.js";import{i as C,o as s}from"../Box-iVCck_0w.js";import{y as l}from"../recipeRuntime-vUBAejJk.js";import"../mapping-a1hAK8yD.js";import"../FieldContext-BZSkS0yf.js";import"../Flex-DRD6dADH.js";import"../Text-CKa2d5NJ.js";import"../fallbackSpan-FasSipX3.js";import"../TableRow.css.ts.vanilla-CrcN69E1-CMhRjtvp.js";j("@layer optiaxiom.vwd1mg;@layer optiaxiom.vwd1mg{._17198n9{max-height:calc(16px + var(--jsr0vd)*22px)}.py739o{--jsr0vd:1}._71uq23{--jsr0vd:2}._1ivfqwm{--jsr0vd:3}._1291kcj{--jsr0vd:4}._1qlcxg{--jsr0vd:5}.dztw6s{resize:vertical}.euce6x{grid-area:1/1/2/2}._1axqvtf{visibility:hidden;white-space:pre-wrap}.krtn9c{resize:none}}");var b=l({base:["euce6x","_1axqvtf"]}),T=l({base:["euce6x","krtn9c"]}),N=l({base:{display:"grid",flex:"auto",overflow:"auto"},variants:{maxRows:{1:["_17198n9","py739o"],2:["_17198n9","_71uq23"],3:["_17198n9","_1ivfqwm"],4:["_17198n9","_1291kcj"],5:["_17198n9","_1qlcxg"]},resize:{auto:{},none:{},vertical:"dztw6s"}}});const x=m(({asChild:i,children:t,className:r,maxRows:o,onChange:h,resize:n="none",...a},f)=>{const _=i?p:"textarea",{restProps:w,sprinkleProps:c}=C(a),[g,y]=z(a.value===void 0?a.defaultValue:a.value);return e(s,{...N({maxRows:o,resize:n}),children:[e(s,{asChild:!0,...T({},r),...c,children:e(_,{onChange:d=>{y(d.target.value),h?.(d)},ref:f,...w,children:t})}),n==="auto"&&e(s,{...b({},r),...c,children:(g??"")+" "})]})});x.displayName="@optiaxiom/react/TextareaAutosize";const v=m(({asChild:i,children:t,...r},o)=>e(k,{flexDirection:"column",size:"lg",...r,children:e(i?p:x,{ref:o,rows:r.rows??3,children:t})}));v.displayName="@optiaxiom/react/Textarea";const u="ax-textarea";var R=q(u,v,{customEvents:[]});export{u as Textarea,R as default};
@@ -1 +1 @@
1
- import{r,a as o}from"../register-CuIip76E.js";import"../mapping-DbL9vtE_.js";const e="ax-theme-provider";var t=r(e,o,{customEvents:[]});export{e as ThemeProvider,t as default};
1
+ import{r,a as o}from"../register-C3moBjIu.js";import"../mapping-a1hAK8yD.js";const e="ax-theme-provider";var t=r(e,o,{customEvents:[]});export{e as ThemeProvider,t as default};
@@ -1 +1 @@
1
- import{i as v,k as u,u as a,_ as w,r as x}from"../register-CuIip76E.js";import{R as _,C as g}from"../index-C8PB8_E4.js";import{p as h,f as t}from"../Box-aCtBlNNs.js";import{b as f}from"../Button-Cahucc7i.js";import{c as q,a as y,l as b,b as z}from"../IconTriangleExclamationFilled-DKNhtj0U.js";import{r as k}from"../IconX-Bwt0Foer.js";import{y as e}from"../recipeRuntime-DMRIERCl.js";import"../ToastProvider.css.ts.vanilla-U5IpQ-47-BbLycw46.js";import"../mapping-DbL9vtE_.js";import"../index-G9sVEGjd.js";import"../index-BjW9I-Y7.js";import"../index-DHhlyg04.js";import"../index--jfmMGza.js";import"../index-BFGTFomd.js";import"../index-CcbUd-aS.js";import"../index-BoCoJ_rP.js";import"../index-nmVzqWAa.js";import"../index-DTMwXSQu.js";import"../index-Czg_v63X.js";import"../AnimatePresence-BbjUzW7x.js";import"../Flex-BKO_VpCr.js";import"../Spinner-DuEq8gXD.js";import"../Transition-jGConsZy.js";import"../fallbackSpan-CxQ7a9HY.js";import"../TableRow.css.ts.vanilla-iSWH_OkR-CSNCuCv7.js";import"../withIcon-CRgilS0b.js";v("@keyframes _143zcwc{0%{opacity:1}}@keyframes _1pgnwp2{0%{translate:var(--c8sz4t)}to{translate:0}}@keyframes izu6lu{0%{opacity:1;translate:var(--radix-toast-swipe-end-x) var(--radix-toast-swipe-end-y)}to{translate:var(--c8sz4t)}}@layer optiaxiom.c2sxc3;@layer optiaxiom.c2sxc3{._1q44ii7:focus-visible{outline:2px solid var(--ax-colors-outline-brand);outline-offset:1px}._1q44ii7[data-state=closed]{animation:_143zcwc .1s ease-in;opacity:0}._1q44ii7[data-state=closed]~._1q44ii7{transition:translate .1s ease-in .1s}._1q44ii7[data-state=open]{animation:_1pgnwp2 .15s cubic-bezier(.16,1,.3,1)}._1q44ii7[data-swipe=cancel]{transition:translate .15s ease;translate:0}._1q44ii7[data-swipe=end]{animation:izu6lu .1s ease-out;opacity:0}._1q44ii7[data-swipe=move]{translate:var(--radix-toast-swipe-move-x) var(--radix-toast-swipe-move-y)}._1q44ii7[data-swipe-direction=down]{--c8sz4t:0 calc(100% + var(--ax-spacing-24))}._1q44ii7[data-swipe-direction=left]{--c8sz4t:calc(-100% - var(--ax-spacing-24)) 0}._1q44ii7[data-swipe-direction=right]{--c8sz4t:calc(100% + var(--ax-spacing-24)) 0}._1q44ii7[data-swipe-direction=up]{--c8sz4t:0 calc(-100% - var(--ax-spacing-24))}[data-position^=bottom] ._1q44ii7:first-child{margin-bottom:auto}[data-position^=bottom] ._1q44ii7[data-state=closed]~._1q44ii7{translate:0 calc(100% + var(--ax-spacing-md))}[data-position^=top] ._1q44ii7:last-child{margin-top:auto}[data-position^=top] ._1q44ii7[data-state=closed]~._1q44ii7{translate:0 calc(-100% - var(--ax-spacing-md))}._13vpvt9{--wjki0h:var(--ax-colors-red-300)}._18hgy3{--wjki0h:var(--ax-colors-fg-default-inverse)}.n5neun{--wjki0h:var(--ax-colors-green-400)}._1gljik1{--wjki0h:var(--ax-colors-yellow-300)}._1x8zseh{color:var(--wjki0h)}}");var S=e({base:[{alignSelf:"start",h:"16",mt:"4",w:"auto"},"_1x8zseh"]}),C=e({base:[{alignItems:"center",bg:"bg.neutral.inverse",color:"fg.default.inverse",display:"flex",gap:"xs",maxW:"full",p:"sm",pl:"md",rounded:"md",shadow:"md",w:["full","max"]},"_1q44ii7"],variants:{colorScheme:{danger:"_13vpvt9",neutral:"_18hgy3",success:"n5neun",warning:"_1gljik1"}}});const j={danger:q,neutral:y,success:b,warning:z},o=u(({children:s,colorScheme:i="neutral",onOpenChange:n,open:c,...p},l)=>{const{restProps:m,sprinkleProps:d}=h(p);return a(t,{asChild:!0,...C({colorScheme:i}),...d,children:a(_,{onOpenChange:n,open:c,ref:l,...m,children:[a(t,{asChild:!0,...S(),children:w(j[i])}),s,a(g,{asChild:!0,children:a(f,{appearance:"inverse","aria-label":"close",icon:a(k,{}),size:"sm"})})]})})});o.displayName="@optiaxiom/react/Toast";const r="ax-toast";var $=x(r,o,{customEvents:["onPause","onOpenChange","onEscapeKeyDown","onResume","onSwipeStart","onSwipeMove","onSwipeCancel","onSwipeEnd"]});export{r as Toast,$ as default};
1
+ import{r as t}from"../register-C3moBjIu.js";import{e as r}from"../Toast-Ax37dFlh.js";import"../mapping-a1hAK8yD.js";import"../index-DJ993xok.js";import"../index-CBrz5xtv.js";import"../index-D_ysjKuQ.js";import"../index-B4h5diCH.js";import"../index-CDZENU78.js";import"../index-DopfdxOl.js";import"../index-BRUDi9Aj.js";import"../index-BqbX3HxW.js";import"../index-Cb4PhTWH.js";import"../index-ssDZp9pU.js";import"../index-KglZqSgk.js";import"../index-BKn4CimT.js";import"../index-eNF0drXr.js";import"../Box-iVCck_0w.js";import"../recipeRuntime-vUBAejJk.js";import"../Button-JHP6wq4e.js";import"../AnimatePresence-D32mWcvx.js";import"../Transition-DlWfcibI.js";import"../Flex-DRD6dADH.js";import"../Icon-Dr6s-xrW.js";import"../Spinner-DKNDGuxM.js";import"../fallbackSpan-FasSipX3.js";import"../TableRow.css.ts.vanilla-CrcN69E1-CMhRjtvp.js";import"../IconTriangleExclamationFilled-Bz6ZDqkT.js";import"../withIcon-BcrNzX7v.js";import"../IconX-C_jHleir.js";const o="ax-toast";var p=t(o,r,{customEvents:["onPause","onOpenChange","onEscapeKeyDown","onResume","onSwipeStart","onSwipeMove","onSwipeCancel","onSwipeEnd"]});export{o as Toast,p as default};
@@ -1 +1 @@
1
- import{k as e,u as t,b as s,r as n}from"../register-CuIip76E.js";import{A as c}from"../index-C8PB8_E4.js";import{b as l}from"../Button-Cahucc7i.js";import{o as d}from"../Separator-Bjn8kT18.js";import"../mapping-DbL9vtE_.js";import"../index-G9sVEGjd.js";import"../index-BjW9I-Y7.js";import"../index-DHhlyg04.js";import"../index--jfmMGza.js";import"../index-BFGTFomd.js";import"../index-CcbUd-aS.js";import"../index-BoCoJ_rP.js";import"../index-nmVzqWAa.js";import"../index-DTMwXSQu.js";import"../index-Czg_v63X.js";import"../AnimatePresence-BbjUzW7x.js";import"../Box-aCtBlNNs.js";import"../recipeRuntime-DMRIERCl.js";import"../Flex-BKO_VpCr.js";import"../Spinner-DuEq8gXD.js";import"../Transition-jGConsZy.js";import"../fallbackSpan-CxQ7a9HY.js";import"../TableRow.css.ts.vanilla-iSWH_OkR-CSNCuCv7.js";const o=e(({altText:i,children:m,...p},a)=>t(s,{children:[t(d,{alignSelf:"center",bg:"border.active.hover",h:"sm",ml:"sm",orientation:"vertical"}),t(l,{appearance:"inverse",asChild:!0,size:"sm",...p,children:t(c,{altText:i,ref:a,children:m})})]}));o.displayName="@optiaxiom/react/ToastAction";const r="ax-toast-action";var f=n(r,o,{customEvents:[]});export{r as ToastAction,f as default};
1
+ import{r as o}from"../register-C3moBjIu.js";import{o as r}from"../ToastAction-DN2SLsN9.js";import"../mapping-a1hAK8yD.js";import"../index-DJ993xok.js";import"../index-CBrz5xtv.js";import"../index-D_ysjKuQ.js";import"../index-B4h5diCH.js";import"../index-CDZENU78.js";import"../index-DopfdxOl.js";import"../index-BRUDi9Aj.js";import"../index-BqbX3HxW.js";import"../index-Cb4PhTWH.js";import"../index-ssDZp9pU.js";import"../index-KglZqSgk.js";import"../index-BKn4CimT.js";import"../index-eNF0drXr.js";import"../Button-JHP6wq4e.js";import"../AnimatePresence-D32mWcvx.js";import"../Transition-DlWfcibI.js";import"../recipeRuntime-vUBAejJk.js";import"../Box-iVCck_0w.js";import"../Flex-DRD6dADH.js";import"../Icon-Dr6s-xrW.js";import"../Spinner-DKNDGuxM.js";import"../fallbackSpan-FasSipX3.js";import"../TableRow.css.ts.vanilla-CrcN69E1-CMhRjtvp.js";import"../Separator-bssPMbpH.js";const t="ax-toast-action";var i=o(t,r,{customEvents:[]});export{t as ToastAction,i as default};
@@ -1 +1 @@
1
- import{r as o}from"../register-CuIip76E.js";import{n as t}from"../ToastProvider-BaxxHE4n.js";import"../mapping-DbL9vtE_.js";import"../index-DHhlyg04.js";import"../index-CcbUd-aS.js";import"../index-G9sVEGjd.js";import"../index-BjW9I-Y7.js";import"../index-BoCoJ_rP.js";import"../index-nmVzqWAa.js";import"../index-C8PB8_E4.js";import"../index--jfmMGza.js";import"../index-BFGTFomd.js";import"../index-DTMwXSQu.js";import"../index-Czg_v63X.js";import"../Flex-BKO_VpCr.js";import"../Box-aCtBlNNs.js";import"../recipeRuntime-DMRIERCl.js";import"../ToastProvider.css.ts.vanilla-U5IpQ-47-BbLycw46.js";const r="ax-toast-provider";var i=o(r,t,{customEvents:[]});export{r as ToastProvider,i as default};
1
+ import{r as o}from"../register-C3moBjIu.js";import{s as t}from"../ToastProvider-DP3mz41m.js";import"../mapping-a1hAK8yD.js";import"../index-D_ysjKuQ.js";import"../index-BRUDi9Aj.js";import"../index-CBrz5xtv.js";import"../index-BqbX3HxW.js";import"../index-Cb4PhTWH.js";import"../index-DJ993xok.js";import"../index-B4h5diCH.js";import"../index-CDZENU78.js";import"../index-DopfdxOl.js";import"../index-ssDZp9pU.js";import"../index-KglZqSgk.js";import"../index-BKn4CimT.js";import"../index-eNF0drXr.js";import"../Flex-DRD6dADH.js";import"../Box-iVCck_0w.js";import"../recipeRuntime-vUBAejJk.js";import"../Toast-Ax37dFlh.js";import"../Button-JHP6wq4e.js";import"../AnimatePresence-D32mWcvx.js";import"../Transition-DlWfcibI.js";import"../Icon-Dr6s-xrW.js";import"../Spinner-DKNDGuxM.js";import"../fallbackSpan-FasSipX3.js";import"../TableRow.css.ts.vanilla-CrcN69E1-CMhRjtvp.js";import"../IconTriangleExclamationFilled-Bz6ZDqkT.js";import"../withIcon-BcrNzX7v.js";import"../IconX-C_jHleir.js";import"../ToastAction-DN2SLsN9.js";import"../Separator-bssPMbpH.js";import"../ToastTitle-DQWJN16r.js";import"../Text-CKa2d5NJ.js";const r="ax-toast-provider";var i=o(r,t,{customEvents:[]});export{r as ToastProvider,i as default};
@@ -1 +1 @@
1
- import{k as e,u as t,r as a}from"../register-CuIip76E.js";import{a as s}from"../index-C8PB8_E4.js";import{r as l}from"../Text-NpcB3cJn.js";import"../mapping-DbL9vtE_.js";import"../index-G9sVEGjd.js";import"../index-BjW9I-Y7.js";import"../index-DHhlyg04.js";import"../index--jfmMGza.js";import"../index-BFGTFomd.js";import"../index-CcbUd-aS.js";import"../index-BoCoJ_rP.js";import"../index-nmVzqWAa.js";import"../index-DTMwXSQu.js";import"../index-Czg_v63X.js";import"../Box-aCtBlNNs.js";import"../recipeRuntime-DMRIERCl.js";const o=e(({children:i,...m},p)=>t(l,{asChild:!0,flex:"1",...m,children:t(s,{ref:p,children:i})}));o.displayName="@optiaxiom/react/ToastTitle";const r="ax-toast-title";var c=a(r,o,{customEvents:[]});export{r as ToastTitle,c as default};
1
+ import{r as o}from"../register-C3moBjIu.js";import{o as r}from"../ToastTitle-DQWJN16r.js";import"../mapping-a1hAK8yD.js";import"../index-DJ993xok.js";import"../index-CBrz5xtv.js";import"../index-D_ysjKuQ.js";import"../index-B4h5diCH.js";import"../index-CDZENU78.js";import"../index-DopfdxOl.js";import"../index-BRUDi9Aj.js";import"../index-BqbX3HxW.js";import"../index-Cb4PhTWH.js";import"../index-ssDZp9pU.js";import"../index-KglZqSgk.js";import"../index-BKn4CimT.js";import"../index-eNF0drXr.js";import"../Text-CKa2d5NJ.js";import"../Box-iVCck_0w.js";import"../recipeRuntime-vUBAejJk.js";const t="ax-toast-title";var i=o(t,r,{customEvents:[]});export{t as ToastTitle,i as default};
@@ -0,0 +1 @@
1
+ import{w as e,u as t,r as a}from"../register-C3moBjIu.js";import{R as n}from"../index-Dzd2aF1H.js";import{B as s}from"../Button-JHP6wq4e.js";import"../mapping-a1hAK8yD.js";import"../index-CBrz5xtv.js";import"../index-BKn4CimT.js";import"../index-Cb4PhTWH.js";import"../index-BqbX3HxW.js";import"../index-D_ysjKuQ.js";import"../AnimatePresence-D32mWcvx.js";import"../Transition-DlWfcibI.js";import"../recipeRuntime-vUBAejJk.js";import"../Box-iVCck_0w.js";import"../Flex-DRD6dADH.js";import"../Icon-Dr6s-xrW.js";import"../Spinner-DKNDGuxM.js";import"../fallbackSpan-FasSipX3.js";import"../TableRow.css.ts.vanilla-CrcN69E1-CMhRjtvp.js";const o=e(({children:i,...m},p)=>t(s,{appearance:"subtle",asChild:!0,...m,children:t(n,{ref:p,children:i})}));o.displayName="@optiaxiom/react/ToggleButton";const r="ax-toggle-button";var l=a(r,o,{customEvents:["onPressedChange"]});export{r as ToggleButton,l as default};
@@ -1 +1 @@
1
- import{r as t}from"../register-CuIip76E.js";import{u as r}from"../Tooltip-y9wsr52B.js";import"../mapping-DbL9vtE_.js";import"../index-DHhlyg04.js";import"../index-BNe6Y0qx.js";import"../index-G9sVEGjd.js";import"../index-BjW9I-Y7.js";import"../index-BFGTFomd.js";import"../index-CcbUd-aS.js";import"../index-BoCoJ_rP.js";import"../index-nmVzqWAa.js";import"../index-P_nqsVVQ.js";import"../index-BhIEal5c.js";import"../index-uupe1idz.js";import"../index-DTMwXSQu.js";import"../index-Czg_v63X.js";import"../AnimatePresence-BbjUzW7x.js";import"../Box-aCtBlNNs.js";import"../recipeRuntime-DMRIERCl.js";import"../Text-NpcB3cJn.js";import"../Transition-jGConsZy.js";const o="ax-tooltip";var i=t(o,r,{customEvents:["onEscapeKeyDown","onPointerDownOutside","onOpenChange"]});export{o as Tooltip,i as default};
1
+ import{r as t}from"../register-C3moBjIu.js";import{p as r}from"../Tooltip-BEb3P1_W.js";import"../mapping-a1hAK8yD.js";import"../TooltipContent-BpFBa1hW.js";import"../index-BGp9xe25.js";import"../index-CBrz5xtv.js";import"../index-D_ysjKuQ.js";import"../index-DopfdxOl.js";import"../index-BRUDi9Aj.js";import"../index-BqbX3HxW.js";import"../index-Cb4PhTWH.js";import"../index-C9YNJrFj.js";import"../index-KglZqSgk.js";import"../index-DjXUdK96.js";import"../index-CDZENU78.js";import"../index-ssDZp9pU.js";import"../index-BKn4CimT.js";import"../index-eNF0drXr.js";import"../AnimatePresence-D32mWcvx.js";import"../Transition-DlWfcibI.js";import"../recipeRuntime-vUBAejJk.js";import"../Box-iVCck_0w.js";import"../Text-CKa2d5NJ.js";import"../TooltipContext-BZHRzebd.js";import"../TooltipRoot-a6p1b06r.js";import"../TooltipTrigger-fEVbUxsG.js";import"../Button-JHP6wq4e.js";import"../Flex-DRD6dADH.js";import"../Icon-Dr6s-xrW.js";import"../Spinner-DKNDGuxM.js";import"../fallbackSpan-FasSipX3.js";import"../TableRow.css.ts.vanilla-CrcN69E1-CMhRjtvp.js";const o="ax-tooltip";var p=t(o,r,{customEvents:["onEscapeKeyDown","onPointerDownOutside","onOpenChange"]});export{o as Tooltip,p as default};
@@ -0,0 +1 @@
1
+ import{r as t}from"../register-C3moBjIu.js";import{r}from"../TooltipContent-BpFBa1hW.js";import"../mapping-a1hAK8yD.js";import"../index-BGp9xe25.js";import"../index-CBrz5xtv.js";import"../index-D_ysjKuQ.js";import"../index-DopfdxOl.js";import"../index-BRUDi9Aj.js";import"../index-BqbX3HxW.js";import"../index-Cb4PhTWH.js";import"../index-C9YNJrFj.js";import"../index-KglZqSgk.js";import"../index-DjXUdK96.js";import"../index-CDZENU78.js";import"../index-ssDZp9pU.js";import"../index-BKn4CimT.js";import"../index-eNF0drXr.js";import"../AnimatePresence-D32mWcvx.js";import"../Transition-DlWfcibI.js";import"../recipeRuntime-vUBAejJk.js";import"../Box-iVCck_0w.js";import"../Text-CKa2d5NJ.js";import"../TooltipContext-BZHRzebd.js";const o="ax-tooltip-content";var i=t(o,r,{customEvents:["onEscapeKeyDown","onPointerDownOutside"]});export{o as TooltipContent,i as default};
@@ -0,0 +1 @@
1
+ import{r as t}from"../register-C3moBjIu.js";import{c as r}from"../TooltipRoot-a6p1b06r.js";import"../mapping-a1hAK8yD.js";import"../index-BGp9xe25.js";import"../index-CBrz5xtv.js";import"../index-D_ysjKuQ.js";import"../index-DopfdxOl.js";import"../index-BRUDi9Aj.js";import"../index-BqbX3HxW.js";import"../index-Cb4PhTWH.js";import"../index-C9YNJrFj.js";import"../index-KglZqSgk.js";import"../index-DjXUdK96.js";import"../index-CDZENU78.js";import"../index-ssDZp9pU.js";import"../index-BKn4CimT.js";import"../index-eNF0drXr.js";import"../TooltipContext-BZHRzebd.js";const o="ax-tooltip-root";var p=t(o,r,{customEvents:["onOpenChange"]});export{o as TooltipRoot,p as default};
@@ -0,0 +1 @@
1
+ import{r as t}from"../register-C3moBjIu.js";import{t as o}from"../TooltipTrigger-fEVbUxsG.js";import"../mapping-a1hAK8yD.js";import"../index-D_ysjKuQ.js";import"../index-BGp9xe25.js";import"../index-CBrz5xtv.js";import"../index-DopfdxOl.js";import"../index-BRUDi9Aj.js";import"../index-BqbX3HxW.js";import"../index-Cb4PhTWH.js";import"../index-C9YNJrFj.js";import"../index-KglZqSgk.js";import"../index-DjXUdK96.js";import"../index-CDZENU78.js";import"../index-ssDZp9pU.js";import"../index-BKn4CimT.js";import"../index-eNF0drXr.js";import"../Button-JHP6wq4e.js";import"../AnimatePresence-D32mWcvx.js";import"../Transition-DlWfcibI.js";import"../recipeRuntime-vUBAejJk.js";import"../Box-iVCck_0w.js";import"../Flex-DRD6dADH.js";import"../Icon-Dr6s-xrW.js";import"../Spinner-DKNDGuxM.js";import"../fallbackSpan-FasSipX3.js";import"../TableRow.css.ts.vanilla-CrcN69E1-CMhRjtvp.js";import"../TooltipContext-BZHRzebd.js";const r="ax-tooltip-trigger";var i=t(r,o,{customEvents:[]});export{r as TooltipTrigger,i as default};
@@ -1 +1 @@
1
- import{r as t}from"../register-CuIip76E.js";import{r as o}from"../Transition-jGConsZy.js";import"../mapping-DbL9vtE_.js";import"../index-DHhlyg04.js";import"../AnimatePresence-BbjUzW7x.js";import"../recipeRuntime-DMRIERCl.js";const r="ax-transition";var i=t(r,o,{customEvents:[]});export{r as Transition,i as default};
1
+ import{r as t}from"../register-C3moBjIu.js";import{m as o}from"../Transition-DlWfcibI.js";import"../mapping-a1hAK8yD.js";import"../index-D_ysjKuQ.js";import"../recipeRuntime-vUBAejJk.js";const r="ax-transition";var i=t(r,o,{customEvents:[]});export{r as Transition,i as default};
@@ -1 +1 @@
1
- import{o as r,f as i,u as f}from"./register-CuIip76E.js";const a=(n,c,s=e=>e)=>{const e={};for(const[t,o]of Object.entries(n))e[s?s(t):t]=c(o,t);return e};({...a(r.screens,n=>({"@media":`screen and (min-width: ${n})`}))});const d=n=>i(n)?n:f("span",{children:n});export{d as l};
1
+ import{o as r,f as i,u as f}from"./register-C3moBjIu.js";const a=(n,c,s=e=>e)=>{const e={};for(const[t,o]of Object.entries(n))e[s?s(t):t]=c(o,t);return e};({...a(r.screens,n=>({"@media":`screen and (min-width: ${n})`}))});const d=n=>i(n)?n:f("span",{children:n});export{d as l};
@@ -1,4 +1,4 @@
1
- import{k as s,u as i,A,y as M}from"./register-CuIip76E.js";import{a as I}from"./index-BFGTFomd.js";import{u,S as x}from"./index-DHhlyg04.js";import{c as v,T as w,O as L,C as $,W as F,a as G,D as W,b as D,R as Y,P as k}from"./index-CAfxbDJs.js";import{c as q}from"./index-G9sVEGjd.js";var m="AlertDialog",[B,ge]=I(m,[v]),l=v(),f=e=>{const{__scopeAlertDialog:o,...r}=e,a=l(o);return i(Y,{...a,...r,modal:!0})};f.displayName=m;var H="AlertDialogTrigger",y=s((e,o)=>{const{__scopeAlertDialog:r,...a}=e,t=l(r);return i(w,{...t,...a,ref:o})});y.displayName=H;var V="AlertDialogPortal",_=e=>{const{__scopeAlertDialog:o,...r}=e,a=l(o);return i(k,{...a,...r})};_.displayName=V;var j="AlertDialogOverlay",N=s((e,o)=>{const{__scopeAlertDialog:r,...a}=e,t=l(r);return i(L,{...t,...a,ref:o})});N.displayName=j;var n="AlertDialogContent",[z,J]=B(n),C=s((e,o)=>{const{__scopeAlertDialog:r,children:a,...t}=e,g=l(r),p=A(null),R=u(o,p),d=A(null);return i(F,{contentName:n,titleName:h,docsSlug:"alert-dialog",children:i(z,{scope:r,cancelRef:d,children:i($,{role:"alertdialog",...g,...t,ref:R,onOpenAutoFocus:q(t.onOpenAutoFocus,c=>{c.preventDefault(),d.current?.focus({preventScroll:!0})}),onPointerDownOutside:c=>c.preventDefault(),onInteractOutside:c=>c.preventDefault(),children:[i(x,{children:a}),i(Q,{contentRef:p})]})})})});C.displayName=n;var h="AlertDialogTitle",P=s((e,o)=>{const{__scopeAlertDialog:r,...a}=e,t=l(r);return i(G,{...t,...a,ref:o})});P.displayName=h;var S="AlertDialogDescription",E=s((e,o)=>{const{__scopeAlertDialog:r,...a}=e,t=l(r);return i(W,{...t,...a,ref:o})});E.displayName=S;var K="AlertDialogAction",T=s((e,o)=>{const{__scopeAlertDialog:r,...a}=e,t=l(r);return i(D,{...t,...a,ref:o})});T.displayName=K;var O="AlertDialogCancel",b=s((e,o)=>{const{__scopeAlertDialog:r,...a}=e,{cancelRef:t}=J(O,r),g=l(r),p=u(o,t);return i(D,{...g,...a,ref:p})});b.displayName=O;var Q=({contentRef:e})=>{const o=`\`${n}\` requires a description for the component to be accessible for screen reader users.
1
+ import{w as s,u as i,A,y as M}from"./register-C3moBjIu.js";import{a as I}from"./index-DopfdxOl.js";import{u,S as x}from"./index-D_ysjKuQ.js";import{c as v,T as w,O as L,C as $,W as F,a as G,D as W,b as D,R as Y,P as q}from"./index-B8FF5_b4.js";import{c as B}from"./index-CBrz5xtv.js";var m="AlertDialog",[H,ge]=I(m,[v]),l=v(),f=e=>{const{__scopeAlertDialog:o,...r}=e,a=l(o);return i(Y,{...a,...r,modal:!0})};f.displayName=m;var V="AlertDialogTrigger",y=s((e,o)=>{const{__scopeAlertDialog:r,...a}=e,t=l(r);return i(w,{...t,...a,ref:o})});y.displayName=V;var j="AlertDialogPortal",_=e=>{const{__scopeAlertDialog:o,...r}=e,a=l(o);return i(q,{...a,...r})};_.displayName=j;var k="AlertDialogOverlay",N=s((e,o)=>{const{__scopeAlertDialog:r,...a}=e,t=l(r);return i(L,{...t,...a,ref:o})});N.displayName=k;var n="AlertDialogContent",[z,J]=H(n),C=s((e,o)=>{const{__scopeAlertDialog:r,children:a,...t}=e,g=l(r),p=A(null),R=u(o,p),d=A(null);return i(F,{contentName:n,titleName:h,docsSlug:"alert-dialog",children:i(z,{scope:r,cancelRef:d,children:i($,{role:"alertdialog",...g,...t,ref:R,onOpenAutoFocus:B(t.onOpenAutoFocus,c=>{c.preventDefault(),d.current?.focus({preventScroll:!0})}),onPointerDownOutside:c=>c.preventDefault(),onInteractOutside:c=>c.preventDefault(),children:[i(x,{children:a}),i(Q,{contentRef:p})]})})})});C.displayName=n;var h="AlertDialogTitle",P=s((e,o)=>{const{__scopeAlertDialog:r,...a}=e,t=l(r);return i(G,{...t,...a,ref:o})});P.displayName=h;var S="AlertDialogDescription",E=s((e,o)=>{const{__scopeAlertDialog:r,...a}=e,t=l(r);return i(W,{...t,...a,ref:o})});E.displayName=S;var K="AlertDialogAction",T=s((e,o)=>{const{__scopeAlertDialog:r,...a}=e,t=l(r);return i(D,{...t,...a,ref:o})});T.displayName=K;var O="AlertDialogCancel",b=s((e,o)=>{const{__scopeAlertDialog:r,...a}=e,{cancelRef:t}=J(O,r),g=l(r),p=u(o,t);return i(D,{...g,...a,ref:p})});b.displayName=O;var Q=({contentRef:e})=>{const o=`\`${n}\` requires a description for the component to be accessible for screen reader users.
2
2
 
3
3
  You can add a description to the \`${n}\` by passing a \`${S}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
4
4
 
@@ -0,0 +1 @@
1
+ import{j as l,u as d}from"./register-C3moBjIu.js";import{c as w}from"./index-CDZENU78.js";import{u as A,a as y}from"./index-D_ysjKuQ.js";function L(i){const u=i+"CollectionProvider",[E,N]=w(u),[T,a]=E(u,{collectionRef:{current:null},itemMap:new Map}),m=c=>{const{scope:e,children:s}=c,o=l.useRef(null),t=l.useRef(new Map).current;return d(T,{scope:e,itemMap:t,collectionRef:o,children:s})};m.displayName=u;const p=i+"CollectionSlot",C=l.forwardRef((c,e)=>{const{scope:s,children:o}=c,t=a(p,s),n=A(e,t.collectionRef);return d(y,{ref:n,children:o})});C.displayName=p;const R=i+"CollectionItemSlot",S="data-radix-collection-item",M=l.forwardRef((c,e)=>{const{scope:s,children:o,...t}=c,n=l.useRef(null),I=A(e,n),r=a(R,s);return l.useLayoutEffect(()=>(r.itemMap.set(n,{ref:n,...t}),()=>void r.itemMap.delete(n))),d(y,{[S]:"",ref:I,children:o})});M.displayName=R;function O(c){const e=a(i+"CollectionConsumer",c);return l.useCallback(()=>{const o=e.collectionRef.current;if(!o)return[];const t=Array.from(((r,f)=>{const _=r.querySelectorAll("slot"),x=[...r.querySelectorAll(f)];for(const v of _)for(const h of v.assignedElements())x.push(...h.shadowRoot.querySelectorAll(f));return x})(o,`[${S}]`));return Array.from(e.itemMap.values()).sort((r,f)=>t.indexOf(r.ref.current)-t.indexOf(f.ref.current))},[e.collectionRef,e.itemMap])}return[{Provider:m,Slot:C,ItemSlot:M},O,N]}export{L as c};
@@ -0,0 +1,5 @@
1
+ import{w as u,u as i,A as g,y as _,b as A,q as K,I as U}from"./register-C3moBjIu.js";import{c as f}from"./index-CBrz5xtv.js";import{u as h,a as Y}from"./index-D_ysjKuQ.js";import{a as Z,c as j}from"./index-DopfdxOl.js";import{u as P}from"./index-C9YNJrFj.js";import{u as z}from"./index-BKn4CimT.js";import{D as J,P as Q}from"./index-BRUDi9Aj.js";import{o as X,h as ee,u as te,F as oe}from"./index-CcP22EDR.js";import{P as y}from"./index-ssDZp9pU.js";import{P as D}from"./index-BqbX3HxW.js";var N="Dialog",[R,ne]=Z(N),[re,l]=R(N),T=e=>{const{__scopeDialog:o,children:r,open:a,defaultOpen:n,onOpenChange:t,modal:c=!0}=e,s=g(null),p=g(null),[v=!1,C]=z({prop:a,defaultProp:n,onChange:t});return i(re,{scope:o,triggerRef:s,contentRef:p,contentId:P(),titleId:P(),descriptionId:P(),open:v,onOpenChange:C,onOpenToggle:K(()=>C(V=>!V),[C]),modal:c,children:r})};T.displayName=N;var x="DialogTrigger",b=u((e,o)=>{const{__scopeDialog:r,...a}=e,n=l(x,r),t=h(o,n.triggerRef);return i(D.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":O(n.open),...a,ref:t,onClick:f(e.onClick,n.onOpenToggle)})});b.displayName=x;var E="DialogPortal",[ae,M]=R(E,{forceMount:void 0}),F=e=>{const{__scopeDialog:o,forceMount:r,children:a,container:n}=e,t=l(E,o);return i(ae,{scope:o,forceMount:r,children:U.map(a,c=>i(y,{present:r||t.open,children:i(Q,{asChild:!0,container:n,children:c})}))})};F.displayName=E;var m="DialogOverlay",S=u((e,o)=>{const r=M(m,e.__scopeDialog),{forceMount:a=r.forceMount,...n}=e,t=l(m,e.__scopeDialog);return t.modal?i(y,{present:a||t.open,children:i(ie,{...n,ref:o})}):null});S.displayName=m;var ie=u((e,o)=>{const{__scopeDialog:r,...a}=e,n=l(m,r);return i(X,{as:Y,allowPinchZoom:!0,shards:[n.contentRef],children:i(D.div,{"data-state":O(n.open),...a,ref:o,style:{pointerEvents:"auto",...a.style}})})}),d="DialogContent",W=u((e,o)=>{const r=M(d,e.__scopeDialog),{forceMount:a=r.forceMount,...n}=e,t=l(d,e.__scopeDialog);return i(y,{present:a||t.open,children:t.modal?i(se,{...n,ref:o}):i(ce,{...n,ref:o})})});W.displayName=d;var se=u((e,o)=>{const r=l(d,e.__scopeDialog),a=g(null),n=h(o,r.contentRef,a);return _(()=>{const t=a.current;if(t)return ee(t)},[]),i(w,{...e,ref:n,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:f(e.onCloseAutoFocus,t=>{t.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:f(e.onPointerDownOutside,t=>{const c=t.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&t.preventDefault()}),onFocusOutside:f(e.onFocusOutside,t=>t.preventDefault())})}),ce=u((e,o)=>{const r=l(d,e.__scopeDialog),a=g(!1),n=g(!1);return i(w,{...e,ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(a.current||r.triggerRef.current?.focus(),t.preventDefault()),a.current=!1,n.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(a.current=!0,t.detail.originalEvent.type==="pointerdown"&&(n.current=!0));const c=t.target;r.triggerRef.current?.contains(c)&&t.preventDefault(),t.detail.originalEvent.type==="focusin"&&n.current&&t.preventDefault()}})}),w=u((e,o)=>{const{__scopeDialog:r,trapFocus:a,onOpenAutoFocus:n,onCloseAutoFocus:t,...c}=e,s=l(d,r),p=g(null),v=h(o,p);return te(),i(A,{children:[i(oe,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:n,onUnmountAutoFocus:t,children:i(J,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":O(s.open),...c,ref:v,onDismiss:()=>s.onOpenChange(!1)})}),i(A,{children:[i(ue,{titleId:s.titleId}),i(ge,{contentRef:p,descriptionId:s.descriptionId})]})]})}),I="DialogTitle",G=u((e,o)=>{const{__scopeDialog:r,...a}=e,n=l(I,r);return i(D.h2,{id:n.titleId,...a,ref:o})});G.displayName=I;var L="DialogDescription",k=u((e,o)=>{const{__scopeDialog:r,...a}=e,n=l(L,r);return i(D.p,{id:n.descriptionId,...a,ref:o})});k.displayName=L;var $="DialogClose",B=u((e,o)=>{const{__scopeDialog:r,...a}=e,n=l($,r);return i(D.button,{type:"button",...a,ref:o,onClick:f(e.onClick,()=>n.onOpenChange(!1))})});B.displayName=$;function O(e){return e?"open":"closed"}var q="DialogTitleWarning",[le,H]=j(q,{contentName:d,titleName:I,docsSlug:"dialog"}),ue=({titleId:e})=>{const o=H(q),r=`\`${o.contentName}\` requires a \`${o.titleName}\` for the component to be accessible for screen reader users.
2
+
3
+ If you want to hide the \`${o.titleName}\`, you can wrap it with our VisuallyHidden component.
4
+
5
+ For more information, see https://radix-ui.com/primitives/docs/components/${o.docsSlug}`;return _(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},de="DialogDescriptionWarning",ge=({contentRef:e,descriptionId:o})=>{const a=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${H(de).contentName}}.`;return _(()=>{const n=e.current?.getAttribute("aria-describedby");o&&n&&(document.getElementById(o)||console.warn(a))},[a,e,o]),null},pe=T,fe=b,De=F,me=S,ve=W,Ce=G,_e=k,he=B;export{ve as C,_e as D,me as O,De as P,pe as R,fe as T,le as W,Ce as a,he as b,ne as c};
@@ -0,0 +1 @@
1
+ import{w as A,A as C,q as y,y as P,u as c,h as M,T as Q}from"./register-C3moBjIu.js";import{c as w}from"./index-CBrz5xtv.js";import{u as B,S as Z}from"./index-D_ysjKuQ.js";import{a as ee}from"./index-DopfdxOl.js";import{D as te,P as oe}from"./index-BRUDi9Aj.js";import{u as re}from"./index-C9YNJrFj.js";import{c as j,A as ne,C as se,a as ie,R as ae}from"./index-DjXUdK96.js";import{P as q}from"./index-ssDZp9pU.js";import{P as le}from"./index-BqbX3HxW.js";import{u as ce}from"./index-BKn4CimT.js";import{R as ue}from"./index-eNF0drXr.js";var[R,qe]=ee("Tooltip",[j]),L=j(),U="TooltipProvider",pe=700,H="tooltip.open",[de,N]=R(U),V=t=>{const{__scopeTooltip:o,delayDuration:e=pe,skipDelayDuration:r=300,disableHoverableContent:n=!1,children:i}=t,[a,d]=M(!0),s=C(!1),u=C(0);return P(()=>{const l=u.current;return()=>window.clearTimeout(l)},[]),c(de,{scope:o,isOpenDelayed:a,delayDuration:e,onOpen:y(()=>{window.clearTimeout(u.current),d(!1)},[]),onClose:y(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>d(!0),r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:y(l=>{s.current=l},[]),disableHoverableContent:n,children:i})};V.displayName=U;var I="Tooltip",[ve,D]=R(I),Y=t=>{const{__scopeTooltip:o,children:e,open:r,defaultOpen:n=!1,onOpenChange:i,disableHoverableContent:a,delayDuration:d}=t,s=N(I,t.__scopeTooltip),u=L(o),[l,p]=M(null),f=re(),T=C(0),v=a??s.disableHoverableContent,m=d??s.delayDuration,h=C(!1),[x=!1,g]=ce({prop:r,defaultProp:n,onChange:F=>{F?(s.onOpen(),document.dispatchEvent(new CustomEvent(H))):s.onClose(),i?.(F)}}),E=Q(()=>x?h.current?"delayed-open":"instant-open":"closed",[x]),_=y(()=>{window.clearTimeout(T.current),h.current=!1,g(!0)},[g]),O=y(()=>{window.clearTimeout(T.current),g(!1)},[g]),G=y(()=>{window.clearTimeout(T.current),T.current=window.setTimeout(()=>{h.current=!0,g(!0)},m)},[m,g]);return P(()=>()=>window.clearTimeout(T.current),[]),c(ae,{...u,children:c(ve,{scope:o,contentId:f,open:x,stateAttribute:E,trigger:l,onTriggerChange:p,onTriggerEnter:y(()=>{s.isOpenDelayed?G():_()},[s.isOpenDelayed,G,_]),onTriggerLeave:y(()=>{v?O():window.clearTimeout(T.current)},[O,v]),onOpen:_,onClose:O,disableHoverableContent:v,children:e})})};Y.displayName=I;var S="TooltipTrigger",X=A((t,o)=>{const{__scopeTooltip:e,...r}=t,n=D(S,e),i=N(S,e),a=L(e),d=C(null),s=B(o,d,n.onTriggerChange),u=C(!1),l=C(!1),p=y(()=>u.current=!1,[]);return P(()=>()=>document.removeEventListener("pointerup",p),[p]),c(ne,{asChild:!0,...a,children:c(le.button,{"aria-describedby":n.open?n.contentId:void 0,"data-state":n.stateAttribute,...r,ref:s,onPointerMove:w(t.onPointerMove,f=>{f.pointerType!=="touch"&&!l.current&&!i.isPointerInTransitRef.current&&(n.onTriggerEnter(),l.current=!0)}),onPointerLeave:w(t.onPointerLeave,()=>{n.onTriggerLeave(),l.current=!1}),onPointerDown:w(t.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:w(t.onFocus,()=>{u.current||n.onOpen()}),onBlur:w(t.onBlur,n.onClose),onClick:w(t.onClick,n.onClose)})})});X.displayName=S;var k="TooltipPortal",[fe,he]=R(k,{forceMount:void 0}),K=t=>{const{__scopeTooltip:o,forceMount:e,children:r,container:n}=t,i=D(k,o);return c(fe,{scope:o,forceMount:e,children:c(q,{present:e||i.open,children:c(oe,{asChild:!0,container:n,children:r})})})};K.displayName=k;var b="TooltipContent",W=A((t,o)=>{const e=he(b,t.__scopeTooltip),{forceMount:r=e.forceMount,side:n="top",...i}=t,a=D(b,t.__scopeTooltip);return c(q,{present:r||a.open,children:a.disableHoverableContent?c($,{side:n,...i,ref:o}):c(Te,{side:n,...i,ref:o})})}),Te=A((t,o)=>{const e=D(b,t.__scopeTooltip),r=N(b,t.__scopeTooltip),n=C(null),i=B(o,n),[a,d]=M(null),{trigger:s,onClose:u}=e,l=n.current,{onPointerInTransitChange:p}=r,f=y(()=>{d(null),p(!1)},[p]),T=y((v,m)=>{const h=v.currentTarget,x={x:v.clientX,y:v.clientY},g=ge(x,h.getBoundingClientRect()),E=xe(x,g),_=Ce(m.getBoundingClientRect()),O=we([...E,..._]);d(O),p(!0)},[p]);return P(()=>()=>f(),[f]),P(()=>{if(s&&l){const v=h=>T(h,l),m=h=>T(h,s);return s.addEventListener("pointerleave",v),l.addEventListener("pointerleave",m),()=>{s.removeEventListener("pointerleave",v),l.removeEventListener("pointerleave",m)}}},[s,l,T,f]),P(()=>{if(a){const v=m=>{const h=m.target,x={x:m.clientX,y:m.clientY},g=s?.contains(h)||l?.contains(h),E=!Pe(x,a);g?f():E&&(f(),u())};return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[s,l,a,u,f]),c($,{...t,ref:i})}),[me,ye]=R(I,{isInside:!1}),$=A((t,o)=>{const{__scopeTooltip:e,children:r,"aria-label":n,onEscapeKeyDown:i,onPointerDownOutside:a,...d}=t,s=D(b,e),u=L(e),{onClose:l}=s;return P(()=>(document.addEventListener(H,l),()=>document.removeEventListener(H,l)),[l]),P(()=>{if(s.trigger){const p=f=>{f.target?.contains(s.trigger)&&l()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[s.trigger,l]),c(te,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:p=>p.preventDefault(),onDismiss:l,children:c(se,{"data-state":s.stateAttribute,...u,...d,ref:o,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c(Z,{children:r}),c(me,{scope:e,isInside:!0,children:c(ue,{id:s.contentId,role:"tooltip",children:n||r})})]})})});W.displayName=b;var z="TooltipArrow",J=A((t,o)=>{const{__scopeTooltip:e,...r}=t,n=L(e);return ye(z,e).isInside?null:c(ie,{...n,...r,ref:o})});J.displayName=z;function ge(t,o){const e=Math.abs(o.top-t.y),r=Math.abs(o.bottom-t.y),n=Math.abs(o.right-t.x),i=Math.abs(o.left-t.x);switch(Math.min(e,r,n,i)){case i:return"left";case n:return"right";case e:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function xe(t,o,e=5){const r=[];switch(o){case"top":r.push({x:t.x-e,y:t.y+e},{x:t.x+e,y:t.y+e});break;case"bottom":r.push({x:t.x-e,y:t.y-e},{x:t.x+e,y:t.y-e});break;case"left":r.push({x:t.x+e,y:t.y-e},{x:t.x+e,y:t.y+e});break;case"right":r.push({x:t.x-e,y:t.y-e},{x:t.x-e,y:t.y+e});break}return r}function Ce(t){const{top:o,right:e,bottom:r,left:n}=t;return[{x:n,y:o},{x:e,y:o},{x:e,y:r},{x:n,y:r}]}function Pe(t,o){const{x:e,y:r}=t;let n=!1;for(let i=0,a=o.length-1;i<o.length;a=i++){const d=o[i].x,s=o[i].y,u=o[a].x,l=o[a].y;s>r!=l>r&&e<(u-d)*(r-s)/(l-s)+d&&(n=!n)}return n}function we(t){const o=t.slice();return o.sort((e,r)=>e.x<r.x?-1:e.x>r.x?1:e.y<r.y?-1:e.y>r.y?1:0),be(o)}function be(t){if(t.length<=1)return t.slice();const o=[];for(let r=0;r<t.length;r++){const n=t[r];for(;o.length>=2;){const i=o[o.length-1],a=o[o.length-2];if((i.x-a.x)*(n.y-a.y)>=(i.y-a.y)*(n.x-a.x))o.pop();else break}o.push(n)}o.pop();const e=[];for(let r=t.length-1;r>=0;r--){const n=t[r];for(;e.length>=2;){const i=e[e.length-1],a=e[e.length-2];if((i.x-a.x)*(n.y-a.y)>=(i.y-a.y)*(n.x-a.x))e.pop();else break}e.push(n)}return e.pop(),o.length===1&&e.length===1&&o[0].x===e[0].x&&o[0].y===e[0].y?o:o.concat(e)}var Ee=V,_e=Y,Oe=X,Ae=K,De=W,Re=J;export{Re as A,De as C,Ee as P,_e as R,Oe as T,Ae as a};
@@ -0,0 +1 @@
1
+ import{q as d,h as v,A as h,y as m}from"./register-C3moBjIu.js";import{u as a}from"./index-Cb4PhTWH.js";function C({prop:t,defaultProp:l,onChange:s=()=>{}}){const[e,n]=S({defaultProp:l,onChange:s}),o=t!==void 0,f=o?t:e,r=a(s),i=d(c=>{if(o){const u=typeof c=="function"?c(t):c;u!==t&&r(u)}else n(c)},[o,t,n,r]);return[f,i]}function S({defaultProp:t,onChange:l}){const s=v(t),[e]=s,n=h(e),o=a(l);return m(()=>{n.current!==e&&(o(e),n.current=e)},[e,n,o]),s}export{C as u};
@@ -0,0 +1 @@
1
+ import{y as l,G as X,w as p,x as T,h as B,u as R,A as y,s as Y}from"./register-C3moBjIu.js";import{c as m}from"./index-CBrz5xtv.js";import{P as A,d as j}from"./index-BqbX3HxW.js";import{u as F}from"./index-D_ysjKuQ.js";import{u as b}from"./index-Cb4PhTWH.js";function q(t,e=globalThis?.document){const n=b(t);l(()=>{const i=s=>{s.key==="Escape"&&n(s)};return e.addEventListener("keydown",i,{capture:!0}),()=>e.removeEventListener("keydown",i,{capture:!0})},[n,e])}var J="DismissableLayer",D="dismissableLayer.update",Q="dismissableLayer.pointerDownOutside",V="dismissableLayer.focusOutside",I,N=X({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),P=p((t,e)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:a,onInteractOutside:v,onDismiss:d,...f}=t,o=T(N),[c,_]=B(null),u=c?.ownerDocument??globalThis?.document,[,U]=B({}),z=F(e,r=>_(r)),O=Array.from(o.layers),[H]=[...o.layersWithOutsidePointerEventsDisabled].slice(-1),K=O.indexOf(H),L=c?O.indexOf(c):-1,M=o.layersWithOutsidePointerEventsDisabled.size>0,C=L>=K,G=$(r=>{const E=r.target,g=[...o.branches].some(h=>h.contains(E));!C||g||(s?.(r),v?.(r),r.defaultPrevented||d?.())},u),w=ee(r=>{const E=r.target;[...o.branches].some(h=>h.contains(E))||(a?.(r),v?.(r),r.defaultPrevented||d?.())},u);return q(r=>{L===o.layers.size-1&&(i?.(r),!r.defaultPrevented&&d&&(r.preventDefault(),d()))},u),l(()=>{if(c)return n&&(o.layersWithOutsidePointerEventsDisabled.size===0&&(I=u.body.style.pointerEvents,u.body.style.pointerEvents="none"),o.layersWithOutsidePointerEventsDisabled.add(c)),o.layers.add(c),k(),()=>{n&&o.layersWithOutsidePointerEventsDisabled.size===1&&(u.body.style.pointerEvents=I)}},[c,u,n,o]),l(()=>()=>{c&&(o.layers.delete(c),o.layersWithOutsidePointerEventsDisabled.delete(c),k())},[c,o]),l(()=>{const r=()=>U({});return document.addEventListener(D,r),()=>document.removeEventListener(D,r)},[]),R(A.div,{...f,ref:z,style:{pointerEvents:M?C?"auto":"none":void 0,...t.style},onFocusCapture:m(t.onFocusCapture,w.onFocusCapture),onBlurCapture:m(t.onBlurCapture,w.onBlurCapture),onPointerDownCapture:m(t.onPointerDownCapture,G.onPointerDownCapture)})});P.displayName=J;var Z="DismissableLayerBranch",W=p((t,e)=>{const n=T(N),i=y(null),s=F(e,i);return l(()=>{const a=i.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),R(A.div,{...t,ref:s})});W.displayName=Z;function $(t,e=globalThis?.document){const n=b(t),i=y(!1),s=y(()=>{});return l(()=>{const a=d=>{if(d.target&&!i.current){let f=function(){x(Q,n,o,{discrete:!0})};const o={originalEvent:d};d.pointerType==="touch"?(e.removeEventListener("click",s.current),s.current=f,e.addEventListener("click",s.current,{once:!0})):f()}else e.removeEventListener("click",s.current);i.current=!1},v=window.setTimeout(()=>{e.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(v),e.removeEventListener("pointerdown",a),e.removeEventListener("click",s.current)}},[e,n]),{onPointerDownCapture:()=>i.current=!0}}function ee(t,e=globalThis?.document){const n=b(t),i=y(!1);return l(()=>{const s=a=>{a.target&&!i.current&&x(V,n,{originalEvent:a},{discrete:!1})};return e.addEventListener("focusin",s),()=>e.removeEventListener("focusin",s)},[e,n]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function k(){const t=new CustomEvent(D);document.dispatchEvent(t)}function x(t,e,n,{discrete:i}){const s=n.originalEvent.target,a=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&s.addEventListener(t,e,{once:!0}),i?j(s,a):s.dispatchEvent(a)}var te=P,ne=W;const se="Portal",S=p((t,e)=>Y(t.children,{ref:e}));S.displayName=se;export{ne as B,P as D,S as P,te as R};
@@ -0,0 +1 @@
1
+ import{w as p,u as m,g as u}from"./register-C3moBjIu.js";import{a as d}from"./index-D_ysjKuQ.js";var f=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],v=f.reduce((t,i)=>{const r=p((o,e)=>{const{asChild:a,...n}=o,s=a?d:i;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m(s,{...n,ref:e})});return r.displayName=`Primitive.${i}`,{...t,[i]:r}},{});function l(t,i){t&&u(()=>t.dispatchEvent(i))}export{v as P,l as d};
@@ -0,0 +1 @@
1
+ import{h as a,d as s}from"./register-C3moBjIu.js";import{u as f}from"./index-KglZqSgk.js";var e=s["useId".toString()]||(()=>{}),n=0;function c(o){const[t,r]=a(e());return f(()=>{o||r(u=>u??String(n++))},[o]),o||(t?`radix-${t}`:"")}export{c as u};
@@ -0,0 +1 @@
1
+ function u(n,r,{checkForDefaultPrevented:t=!0}={}){return function(e){if(n?.(e),t===!1||!e.defaultPrevented)return r?.(e)}}export{u as c};
@@ -0,0 +1 @@
1
+ import{G as v,T as d,u as h,x as l}from"./register-C3moBjIu.js";function P(e,u=[]){let n=[];function a(s,t){const o=v(t),c=n.length;n=[...n,t];function x(p){const{scope:f,children:S,...i}=p,C=f?.[e][c]||o,_=d(()=>i,Object.values(i));return h(C.Provider,{value:_,children:S})}function m(p,f){const S=f?.[e][c]||o,i=l(S);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${p}\` must be used within \`${s}\``)}return x.displayName=s+"Provider",[x,m]}const r=()=>{const s=n.map(t=>v(t));return function(o){const c=o?.[e]||s;return d(()=>({[`__scope${e}`]:{...o,[e]:c}}),[o,c])}};return r.scopeName=e,[a,$(r,...u)]}function $(...e){const u=e[0];if(e.length===1)return u;const n=()=>{const a=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(s){const t=a.reduce((o,{useScope:c,scopeName:x})=>{const p=c(s)[`__scope${x}`];return{...o,...p}},{});return d(()=>({[`__scope${u.scopeName}`]:t}),[t])}};return n.scopeName=u.scopeName,n}export{P as c};
@@ -1 +1 @@
1
- import{A as n,y as u,T as c}from"./register-CuIip76E.js";function o(r){const e=n(r);return u(()=>{e.current=r}),c(()=>(...t)=>e.current?.(...t),[])}export{o as u};
1
+ import{A as n,y as u,T as c}from"./register-C3moBjIu.js";function o(r){const e=n(r);return u(()=>{e.current=r}),c(()=>(...t)=>e.current?.(...t),[])}export{o as u};
@@ -0,0 +1,41 @@
1
+ import{w as j,h as P,A as T,y as C,q as N,u as Se,c as Ce,_ as A,s as Ae,I as Re,b as Q,T as Te}from"./register-C3moBjIu.js";import{u as Ne}from"./index-D_ysjKuQ.js";import{P as Me}from"./index-BqbX3HxW.js";import{u as ee}from"./index-Cb4PhTWH.js";var Y="focusScope.autoFocusOnMount",X="focusScope.autoFocusOnUnmount",te={bubbles:!1,cancelable:!0},ke="FocusScope",ne=j((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:c,onUnmountAutoFocus:i,...l}=e,[o,w]=P(null),b=ee(c),g=ee(i),d=T(null),v=Ne(t,a=>w(a)),p=T({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;C(()=>{if(n){let a=function(m){if(p.paused||!o)return;const y=m.target;o.contains(y)?d.current=y:R(d.current,{select:!0})},u=function(m){if(p.paused||!o)return;const y=m.relatedTarget;y!==null&&(o.contains(y)||R(d.current,{select:!0}))},s=function(m){if((()=>{let h=document.activeElement;for(;h?.shadowRoot;)h=h.shadowRoot.activeElement;return h})()===document.body)for(const h of m)h.removedNodes.length>0&&R(o)};document.addEventListener("focusin",a),document.addEventListener("focusout",u);const f=new MutationObserver(s);return o&&f.observe(o,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",a),document.removeEventListener("focusout",u),f.disconnect()}}},[n,o,p.paused]),C(()=>{if(o){ae.add(p);const a=(()=>{let s=document.activeElement;for(;s?.shadowRoot;)s=s.shadowRoot.activeElement;return s})();if(!o.contains(a)){const s=new CustomEvent(Y,te);o.addEventListener(Y,b),o.dispatchEvent(s),s.defaultPrevented||(Fe(xe(re(o)),{select:!0}),(()=>{let f=document.activeElement;for(;f?.shadowRoot;)f=f.shadowRoot.activeElement;return f})()===a&&R(o))}return()=>{o.removeEventListener(Y,b),setTimeout(()=>{const s=new CustomEvent(X,te);o.addEventListener(X,g),o.dispatchEvent(s),s.defaultPrevented||R(a??document.body,{select:!0}),o.removeEventListener(X,g),ae.remove(p)},0)}}},[o,b,g,p]);const E=N(a=>{if(!r&&!n||p.paused)return;const u=a.key==="Tab"&&!a.altKey&&!a.ctrlKey&&!a.metaKey,s=(()=>{let f=document.activeElement;for(;f?.shadowRoot;)f=f.shadowRoot.activeElement;return f})();if(u&&s){const f=a.currentTarget,[m,y]=Oe(f);m&&y?!a.shiftKey&&s===y?(a.preventDefault(),r&&R(m,{select:!0})):a.shiftKey&&s===m&&(a.preventDefault(),r&&R(y,{select:!0})):s===f&&a.preventDefault()}},[r,n,p.paused]);return Se(Me.div,{tabIndex:-1,...l,ref:v,onKeyDown:E})});ne.displayName=ke;function Fe(e,{select:t=!1}={}){const r=(()=>{let n=document.activeElement;for(;n?.shadowRoot;)n=n.shadowRoot.activeElement;return n})();for(const n of e)if(R(n,{select:t}),(()=>{let c=document.activeElement;for(;c?.shadowRoot;)c=c.shadowRoot.activeElement;return c})()!==r)return}function Oe(e){const t=re(e),r=oe(t,e),n=oe(t.reverse(),e);return[r,n]}function re(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const c=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||c?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function oe(e,t){for(const r of e)if(!_e(r,{upTo:t}))return r}function _e(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 Le(e){return e instanceof HTMLInputElement&&"select"in e}function R(e,{select:t=!1}={}){if(e&&e.focus){const r=(()=>{let n=document.activeElement;for(;n?.shadowRoot;)n=n.shadowRoot.activeElement;return n})();e.focus({preventScroll:!0}),e!==r&&Le(e)&&t&&e.select()}}var ae=Pe();function Pe(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=ce(e,t),e.unshift(t)},remove(t){e=ce(e,t),e[0]?.resume()}}}function ce(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function xe(e){return e.filter(t=>t.tagName!=="A")}var H=0;function Ie(){C(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ie()),document.body.insertAdjacentElement("beforeend",e[1]??ie()),H++,()=>{H===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),H--}},[])}function ie(){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 S=function(){return S=Object.assign||function(t){for(var r,n=1,c=arguments.length;n<c;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},S.apply(this,arguments)};function ue(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 c=0,n=Object.getOwnPropertySymbols(e);c<n.length;c++)t.indexOf(n[c])<0&&Object.prototype.propertyIsEnumerable.call(e,n[c])&&(r[n[c]]=e[n[c]]);return r}function $e(e,t,r){if(r||arguments.length===2)for(var n=0,c=t.length,i;n<c;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var I="right-scroll-bar-position",$="width-before-scroll-bar",We="with-scroll-bars-hidden",Be="--removed-body-scroll-bar-size";function z(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Ue(e,t){var r=P(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var c=r.value;c!==n&&(r.value=n,r.callback(n,c))}}}})[0];return r.callback=t,r.facade}var De=typeof window<"u"?Ce:C,se=new WeakMap;function Ke(e,t){var r=Ue(null,function(n){return e.forEach(function(c){return z(c,n)})});return De(function(){var n=se.get(r);if(n){var c=new Set(n),i=new Set(e),l=r.current;c.forEach(function(o){i.has(o)||z(o,null)}),i.forEach(function(o){c.has(o)||z(o,l)})}se.set(r,e)},[e]),r}function je(e){return e}function Ye(e,t){t===void 0&&(t=je);var r=[],n=!1,c={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(i){var l=t(i,n);return r.push(l),function(){r=r.filter(function(o){return o!==l})}},assignSyncMedium:function(i){for(n=!0;r.length;){var l=r;r=[],l.forEach(i)}r={push:function(o){return i(o)},filter:function(){return r}}},assignMedium:function(i){n=!0;var l=[];if(r.length){var o=r;r=[],o.forEach(i),l=r}var w=function(){var g=l;l=[],g.forEach(i)},b=function(){return Promise.resolve().then(w)};b(),r={push:function(g){l.push(g),b()},filter:function(g){return l=l.filter(g),r}}}};return c}function Xe(e){e===void 0&&(e={});var t=Ye(null);return t.options=S({async:!0,ssr:!1},e),t}var le=function(e){var t=e.sideCar,r=ue(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 A(n,S({},r))};le.isSideCarExport=!0;function He(e,t){return e.useMedium(t),le}var de=Xe(),G=function(){},W=j(function(e,t){var r=T(null),n=P({onScrollCapture:G,onWheelCapture:G,onTouchMoveCapture:G}),c=n[0],i=n[1],l=e.forwardProps,o=e.children,w=e.className,b=e.removeScrollBar,g=e.enabled,d=e.shards,v=e.sideCar,p=e.noIsolation,E=e.inert,a=e.allowPinchZoom,u=e.as,s=u===void 0?"div":u,f=e.gapMode,m=ue(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),y=v,h=Ke([r,t]),M=S(S({},m),c);return A(Q,null,g&&A(y,{sideCar:de,removeScrollBar:b,shards:d,noIsolation:p,inert:E,setCallbacks:i,allowPinchZoom:!!a,lockRef:r,gapMode:f}),l?Ae(Re.only(o),S(S({},M),{ref:h})):A(s,S({},M,{className:w,ref:h}),o))});W.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},W.classNames={fullWidth:$,zeroRight:I};var ze=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Ge(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=ze();return t&&e.setAttribute("nonce",t),e}function qe(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ve(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Ze=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Ge())&&(qe(t,r),Ve(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Je=function(){var e=Ze();return function(t,r){C(function(){return e.add(t),function(){e.remove()}},[t&&r])}},fe=function(){var e=Je(),t=function(r){var n=r.styles,c=r.dynamic;return e(n,c),null};return t},Qe={left:0,top:0,right:0,gap:0},q=function(e){return parseInt(e||"",10)||0},et=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],c=t[e==="padding"?"paddingRight":"marginRight"];return[q(r),q(n),q(c)]},tt=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Qe;var t=et(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])}},nt=fe(),k="data-scroll-locked",rt=function(e,t,r,n){var c=e.left,i=e.top,l=e.right,o=e.gap;return r===void 0&&(r="margin"),`
2
+ .`.concat(We,` {
3
+ overflow: hidden `).concat(n,`;
4
+ padding-right: `).concat(o,"px ").concat(n,`;
5
+ }
6
+ body[`).concat(k,`] {
7
+ overflow: hidden `).concat(n,`;
8
+ overscroll-behavior: contain;
9
+ `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
10
+ padding-left: `.concat(c,`px;
11
+ padding-top: `).concat(i,`px;
12
+ padding-right: `).concat(l,`px;
13
+ margin-left:0;
14
+ margin-top:0;
15
+ margin-right: `).concat(o,"px ").concat(n,`;
16
+ `),r==="padding"&&"padding-right: ".concat(o,"px ").concat(n,";")].filter(Boolean).join(""),`
17
+ }
18
+
19
+ .`).concat(I,` {
20
+ right: `).concat(o,"px ").concat(n,`;
21
+ }
22
+
23
+ .`).concat($,` {
24
+ margin-right: `).concat(o,"px ").concat(n,`;
25
+ }
26
+
27
+ .`).concat(I," .").concat(I,` {
28
+ right: 0 `).concat(n,`;
29
+ }
30
+
31
+ .`).concat($," .").concat($,` {
32
+ margin-right: 0 `).concat(n,`;
33
+ }
34
+
35
+ body[`).concat(k,`] {
36
+ `).concat(Be,": ").concat(o,`px;
37
+ }
38
+ `)},ve=function(){var e=parseInt(document.body.getAttribute(k)||"0",10);return isFinite(e)?e:0},ot=function(){C(function(){return document.body.setAttribute(k,(ve()+1).toString()),function(){var e=ve()-1;e<=0?document.body.removeAttribute(k):document.body.setAttribute(k,e.toString())}},[])},at=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,c=n===void 0?"margin":n;ot();var i=Te(function(){return tt(c)},[c]);return A(nt,{styles:rt(i,!t,c,r?"":"!important")})},V=!1;if(typeof window<"u")try{var B=Object.defineProperty({},"passive",{get:function(){return V=!0,!0}});window.addEventListener("test",B,B),window.removeEventListener("test",B,B)}catch{V=!1}var F=V?{passive:!1}:!1,ct=function(e){return e.tagName==="TEXTAREA"},he=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!ct(e)&&r[t]==="visible")},it=function(e){return he(e,"overflowY")},ut=function(e){return he(e,"overflowX")},pe=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var c=me(e,n);if(c){var i=ge(e,n),l=i[1],o=i[2];if(l>o)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},st=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},lt=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},me=function(e,t){return e==="v"?it(t):ut(t)},ge=function(e,t){return e==="v"?st(t):lt(t)},dt=function(e,t){return e==="h"&&t==="rtl"?-1:1},ft=function(e,t,r,n,c){var i=dt(e,window.getComputedStyle(t).direction),l=i*n,o=r.target,w=t.contains(o),b=!1,g=l>0,d=0,v=0;do{var p=ge(e,o),E=p[0],a=p[1],u=p[2],s=a-u-i*E;(E||s)&&me(e,o)&&(d+=s,v+=E),o instanceof ShadowRoot?o=o.host:o=o.parentNode}while(!w&&o!==document.body||w&&(t.contains(o)||t===o));return(g&&(Math.abs(d)<1||!c)||!g&&(Math.abs(v)<1||!c))&&(b=!0),b},U=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ye=function(e){return[e.deltaX,e.deltaY]},be=function(e){return e&&"current"in e?e.current:e},vt=function(e,t){return e[0]===t[0]&&e[1]===t[1]},ht=function(e){return`
39
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
40
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
41
+ `)},pt=0,O=[];function mt(e){var t=T([]),r=T([0,0]),n=T(),c=P(pt++)[0],i=P(fe)[0],l=T(e);C(function(){l.current=e},[e]),C(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(c));var a=$e([e.lockRef.current],(e.shards||[]).map(be),!0).filter(Boolean);return a.forEach(function(u){return u.classList.add("allow-interactivity-".concat(c))}),function(){document.body.classList.remove("block-interactivity-".concat(c)),a.forEach(function(u){return u.classList.remove("allow-interactivity-".concat(c))})}}},[e.inert,e.lockRef.current,e.shards]);var o=N(function(a,u){if("touches"in a&&a.touches.length===2||a.type==="wheel"&&a.ctrlKey)return!l.current.allowPinchZoom;var s=U(a),f=r.current,m="deltaX"in a?a.deltaX:f[0]-s[0],y="deltaY"in a?a.deltaY:f[1]-s[1],h,M=a.target,L=Math.abs(m)>Math.abs(y)?"h":"v";if("touches"in a&&L==="h"&&M.type==="range")return!1;var x=pe(L,M);if(!x)return!0;if(x?h=L:(h=L==="v"?"h":"v",x=pe(L,M)),!x)return!1;if(!n.current&&"changedTouches"in a&&(m||y)&&(n.current=h),!h)return!0;var J=n.current||h;return ft(J,u,a,J==="h"?m:y,!0)},[]),w=N(function(a){var u=a;if(!(!O.length||O[O.length-1]!==i)){var s="deltaY"in u?ye(u):U(u),f=t.current.filter(function(h){return h.name===u.type&&(h.target===u.target||u.target===h.shadowParent)&&vt(h.delta,s)})[0];if(f&&f.should){u.cancelable&&u.preventDefault();return}if(!f){var m=(l.current.shards||[]).map(be).filter(Boolean).filter(function(h){return h.contains(u.target)}),y=m.length>0?o(u,m[0]):!l.current.noIsolation;y&&u.cancelable&&u.preventDefault()}}},[]),b=N(function(a,u,s,f){var m={name:a,delta:u,target:s,should:f,shadowParent:gt(s)};t.current.push(m),setTimeout(function(){t.current=t.current.filter(function(y){return y!==m})},1)},[]),g=N(function(a){r.current=U(a),n.current=void 0},[]),d=N(function(a){b(a.type,ye(a),a.target,o(a,e.lockRef.current))},[]),v=N(function(a){b(a.type,U(a),a.target,o(a,e.lockRef.current))},[]);C(function(){return O.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:v}),document.addEventListener("wheel",w,F),document.addEventListener("touchmove",w,F),document.addEventListener("touchstart",g,F),function(){O=O.filter(function(a){return a!==i}),document.removeEventListener("wheel",w,F),document.removeEventListener("touchmove",w,F),document.removeEventListener("touchstart",g,F)}},[]);var p=e.removeScrollBar,E=e.inert;return A(Q,null,E?A(i,{styles:ht(c)}):null,p?A(at,{gapMode:e.gapMode}):null)}function gt(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var yt=He(de,mt),we=j(function(e,t){return A(W,S({},e,{ref:t,sideCar:yt}))});we.classNames=W.classNames;var bt=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},_=new WeakMap,D=new WeakMap,K={},Z=0,Ee=function(e){return e&&(e.host||Ee(e.parentNode))},wt=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Ee(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return Boolean(r)})},Et=function(e,t,r,n){var c=wt(t,Array.isArray(e)?e:[e]);K[r]||(K[r]=new WeakMap);var i=K[r],l=[],o=new Set,w=new Set(c),b=function(d){!d||o.has(d)||(o.add(d),b(d.parentNode))};c.forEach(b);var g=function(d){!d||w.has(d)||Array.prototype.forEach.call(d.children,function(v){if(o.has(v))g(v);else try{var p=v.getAttribute(n),E=p!==null&&p!=="false",a=(_.get(v)||0)+1,u=(i.get(v)||0)+1;_.set(v,a),i.set(v,u),l.push(v),a===1&&E&&D.set(v,!0),u===1&&v.setAttribute(r,"true"),E||v.setAttribute(n,"true")}catch(s){console.error("aria-hidden: cannot operate on ",v,s)}})};return g(t),o.clear(),Z++,function(){l.forEach(function(d){var v=_.get(d)-1,p=i.get(d)-1;_.set(d,v),i.set(d,p),v||(D.has(d)||d.removeAttribute(n),D.delete(d)),p||d.removeAttribute(r)}),Z--,Z||(_=new WeakMap,_=new WeakMap,D=new WeakMap,K={})}},St=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),c=t||bt(e);return c?(n.push.apply(n,Array.from(c.querySelectorAll("[aria-live]"))),Et(n,c,r,"aria-hidden")):function(){return null}};export{ne as F,St as h,we as o,Ie as u};
@@ -0,0 +1 @@
1
+ import{w as f,u as c,A as _,y as E,h as A,q as P,b as vn}from"./register-C3moBjIu.js";import{c as M}from"./index-CBrz5xtv.js";import{u as F,c as ge,a as hn}from"./index-D_ysjKuQ.js";import{a as _e}from"./index-DopfdxOl.js";import{u as Ce}from"./index-BKn4CimT.js";import{P as N,d as gn}from"./index-BqbX3HxW.js";import{c as _n}from"./index-B4h5diCH.js";import{c as we,R as Cn,I as wn,u as Dn}from"./index-D0zvC3sp.js";import{D as Pn,P as In}from"./index-BRUDi9Aj.js";import{h as Sn,u as En,F as yn,o as xn}from"./index-CcP22EDR.js";import{u as W}from"./index-C9YNJrFj.js";import{c as De,A as bn,C as Rn,a as Tn,R as Pe}from"./index-DjXUdK96.js";import{P as j}from"./index-ssDZp9pU.js";import{u as oe}from"./index-Cb4PhTWH.js";var te=["Enter"," "],An=["ArrowDown","PageUp","Home"],Ie=["ArrowUp","PageDown","End"],Nn=[...An,...Ie],On={ltr:[...te,"ArrowRight"],rtl:[...te,"ArrowLeft"]},kn={ltr:["ArrowLeft"],rtl:["ArrowRight"]},G="Menu",[K,Ln,Fn]=_n(G),[y,Se]=_e(G,[Fn,De,we]),U=De(),Ee=we(),[ye,I]=y(G),[Gn,B]=y(G),xe=e=>{const{__scopeMenu:o,open:n=!1,children:t,dir:r,onOpenChange:a,modal:u=!0}=e,i=U(o),[p,m]=A(null),l=_(!1),s=oe(a),v=Dn(r);return E(()=>{const D=()=>{l.current=!0,document.addEventListener("pointerdown",h,{capture:!0,once:!0}),document.addEventListener("pointermove",h,{capture:!0,once:!0})},h=()=>l.current=!1;return document.addEventListener("keydown",D,{capture:!0}),()=>{document.removeEventListener("keydown",D,{capture:!0}),document.removeEventListener("pointerdown",h,{capture:!0}),document.removeEventListener("pointermove",h,{capture:!0})}},[]),c(Pe,{...i,children:c(ye,{scope:o,open:n,onOpenChange:s,content:p,onContentChange:m,children:c(Gn,{scope:o,onClose:P(()=>s(!1),[s]),isUsingKeyboardRef:l,dir:v,modal:u,children:t})})})};xe.displayName=G;var Kn="MenuAnchor",re=f((e,o)=>{const{__scopeMenu:n,...t}=e,r=U(n);return c(bn,{...r,...t,ref:o})});re.displayName=Kn;var ae="MenuPortal",[Un,be]=y(ae,{forceMount:void 0}),Re=e=>{const{__scopeMenu:o,forceMount:n,children:t,container:r}=e,a=I(ae,o);return c(Un,{scope:o,forceMount:n,children:c(j,{present:n||a.open,children:c(In,{asChild:!0,container:r,children:t})})})};Re.displayName=ae;var w="MenuContent",[Bn,ce]=y(w),Te=f((e,o)=>{const n=be(w,e.__scopeMenu),{forceMount:t=n.forceMount,...r}=e,a=I(w,e.__scopeMenu),u=B(w,e.__scopeMenu);return c(K.Provider,{scope:e.__scopeMenu,children:c(j,{present:t||a.open,children:c(K.Slot,{scope:e.__scopeMenu,children:u.modal?c($n,{...r,ref:o}):c(Vn,{...r,ref:o})})})})}),$n=f((e,o)=>{const n=I(w,e.__scopeMenu),t=_(null),r=F(o,t);return E(()=>{const a=t.current;if(a)return Sn(a)},[]),c(se,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:M(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Vn=f((e,o)=>{const n=I(w,e.__scopeMenu);return c(se,{...e,ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),se=f((e,o)=>{const{__scopeMenu:n,loop:t=!1,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:u,disableOutsidePointerEvents:i,onEntryFocus:p,onEscapeKeyDown:m,onPointerDownOutside:l,onFocusOutside:s,onInteractOutside:v,onDismiss:D,disableOutsideScroll:h,...x}=e,O=I(w,n),b=B(w,n),sn=U(n),un=Ee(n),fe=Ln(n),[dn,me]=A(null),X=_(null),ln=F(o,X,O.onContentChange),Y=_(0),H=_(""),pn=_(0),J=_(null),Me=_("right"),Q=_(0),fn=h?xn:vn,mn=h?{as:hn,allowPinchZoom:!0}:void 0,Mn=d=>{const T=H.current+d,S=fe().filter(g=>!g.disabled),k=(()=>{let g=document.activeElement;for(;g?.shadowRoot;)g=g.shadowRoot.activeElement;return g})(),ee=S.find(g=>g.ref.current===k)?.textValue,ne=S.map(g=>g.textValue),ve=no(ne,T,ee),L=S.find(g=>g.textValue===ve)?.ref.current;(function g(he){H.current=he,window.clearTimeout(Y.current),he!==""&&(Y.current=window.setTimeout(()=>g(""),1e3))})(T),L&&setTimeout(()=>L.focus())};E(()=>()=>window.clearTimeout(Y.current),[]),En();const R=P(d=>Me.current===J.current?.side&&to(d,J.current?.area),[]);return c(Bn,{scope:n,searchRef:H,onItemEnter:P(d=>{R(d)&&d.preventDefault()},[R]),onItemLeave:P(d=>{R(d)||(X.current?.focus(),me(null))},[R]),onTriggerLeave:P(d=>{R(d)&&d.preventDefault()},[R]),pointerGraceTimerRef:pn,onPointerGraceIntentChange:P(d=>{J.current=d},[]),children:c(fn,{...mn,children:c(yn,{asChild:!0,trapped:r,onMountAutoFocus:M(a,d=>{d.preventDefault(),X.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:u,children:c(Pn,{asChild:!0,disableOutsidePointerEvents:i,onEscapeKeyDown:m,onPointerDownOutside:l,onFocusOutside:s,onInteractOutside:v,onDismiss:D,children:c(Cn,{asChild:!0,...un,dir:b.dir,orientation:"vertical",loop:t,currentTabStopId:dn,onCurrentTabStopIdChange:me,onEntryFocus:M(p,d=>{b.isUsingKeyboardRef.current||d.preventDefault()}),preventScrollOnEntryFocus:!0,children:c(Rn,{role:"menu","aria-orientation":"vertical","data-state":ze(O.open),"data-radix-menu-content":"",dir:b.dir,...sn,...x,ref:ln,style:{outline:"none",...x.style},onKeyDown:M(x.onKeyDown,d=>{const S=d.target.closest("[data-radix-menu-content]")===d.currentTarget,k=d.ctrlKey||d.altKey||d.metaKey,ee=d.key.length===1;S&&(d.key==="Tab"&&d.preventDefault(),!k&&ee&&Mn(d.key));const ne=X.current;if(d.target!==ne||!Nn.includes(d.key))return;d.preventDefault();const L=fe().filter(g=>!g.disabled).map(g=>g.ref.current);Ie.includes(d.key)&&L.reverse(),Qn(L)}),onBlur:M(e.onBlur,d=>{d.currentTarget.contains(d.target)||(window.clearTimeout(Y.current),H.current="")}),onPointerMove:M(e.onPointerMove,V(d=>{const T=d.target,S=Q.current!==d.clientX;if(d.currentTarget.contains(T)&&S){const k=d.clientX>Q.current?"right":"left";Me.current=k,Q.current=d.clientX}}))})})})})})})});Te.displayName=w;var Xn="MenuGroup",ue=f((e,o)=>{const{__scopeMenu:n,...t}=e;return c(N.div,{role:"group",...t,ref:o})});ue.displayName=Xn;var Yn="MenuLabel",Ae=f((e,o)=>{const{__scopeMenu:n,...t}=e;return c(N.div,{...t,ref:o})});Ae.displayName=Yn;var z="MenuItem",Ne="menu.itemSelect",q=f((e,o)=>{const{disabled:n=!1,onSelect:t,...r}=e,a=_(null),u=B(z,e.__scopeMenu),i=ce(z,e.__scopeMenu),p=F(o,a),m=_(!1),l=()=>{const s=a.current;if(!n&&s){const v=new CustomEvent(Ne,{bubbles:!0,cancelable:!0});s.addEventListener(Ne,D=>t?.(D),{once:!0}),gn(s,v),v.defaultPrevented?m.current=!1:u.onClose()}};return c(Oe,{...r,ref:p,disabled:n,onClick:M(e.onClick,l),onPointerDown:s=>{e.onPointerDown?.(s),m.current=!0},onPointerUp:M(e.onPointerUp,s=>{m.current||s.currentTarget?.click()}),onKeyDown:M(e.onKeyDown,s=>{const v=i.searchRef.current!=="";n||v&&s.key===" "||te.includes(s.key)&&(s.currentTarget.click(),s.preventDefault())})})});q.displayName=z;var Oe=f((e,o)=>{const{__scopeMenu:n,disabled:t=!1,textValue:r,...a}=e,u=ce(z,n),i=Ee(n),p=_(null),m=F(o,p),[l,s]=A(!1),[v,D]=A("");return E(()=>{const h=p.current;h&&D((h.textContent??"").trim())},[a.children]),c(K.ItemSlot,{scope:n,disabled:t,textValue:r??v,children:c(wn,{asChild:!0,...i,focusable:!t,children:c(N.div,{role:"menuitem","data-highlighted":l?"":void 0,"aria-disabled":t||void 0,"data-disabled":t?"":void 0,...a,ref:m,onPointerMove:M(e.onPointerMove,V(h=>{t?u.onItemLeave(h):(u.onItemEnter(h),h.defaultPrevented||h.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:M(e.onPointerLeave,V(h=>u.onItemLeave(h))),onFocus:M(e.onFocus,()=>s(!0)),onBlur:M(e.onBlur,()=>s(!1))})})})}),Hn="MenuCheckboxItem",ke=f((e,o)=>{const{checked:n=!1,onCheckedChange:t,...r}=e;return c(Ue,{scope:e.__scopeMenu,checked:n,children:c(q,{role:"menuitemcheckbox","aria-checked":Z(n)?"mixed":n,...r,ref:o,"data-state":le(n),onSelect:M(r.onSelect,()=>t?.(Z(n)?!0:!n),{checkForDefaultPrevented:!1})})})});ke.displayName=Hn;var Le="MenuRadioGroup",[Wn,jn]=y(Le,{value:void 0,onValueChange:()=>{}}),Fe=f((e,o)=>{const{value:n,onValueChange:t,...r}=e,a=oe(t);return c(Wn,{scope:e.__scopeMenu,value:n,onValueChange:a,children:c(ue,{...r,ref:o})})});Fe.displayName=Le;var Ge="MenuRadioItem",Ke=f((e,o)=>{const{value:n,...t}=e,r=jn(Ge,e.__scopeMenu),a=n===r.value;return c(Ue,{scope:e.__scopeMenu,checked:a,children:c(q,{role:"menuitemradio","aria-checked":a,...t,ref:o,"data-state":le(a),onSelect:M(t.onSelect,()=>r.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});Ke.displayName=Ge;var ie="MenuItemIndicator",[Ue,zn]=y(ie,{checked:!1}),Be=f((e,o)=>{const{__scopeMenu:n,forceMount:t,...r}=e,a=zn(ie,n);return c(j,{present:t||Z(a.checked)||a.checked===!0,children:c(N.span,{...r,ref:o,"data-state":le(a.checked)})})});Be.displayName=ie;var qn="MenuSeparator",$e=f((e,o)=>{const{__scopeMenu:n,...t}=e;return c(N.div,{role:"separator","aria-orientation":"horizontal",...t,ref:o})});$e.displayName=qn;var Zn="MenuArrow",Ve=f((e,o)=>{const{__scopeMenu:n,...t}=e,r=U(n);return c(Tn,{...r,...t,ref:o})});Ve.displayName=Zn;var de="MenuSub",[Jn,Xe]=y(de),Ye=e=>{const{__scopeMenu:o,children:n,open:t=!1,onOpenChange:r}=e,a=I(de,o),u=U(o),[i,p]=A(null),[m,l]=A(null),s=oe(r);return E(()=>(a.open===!1&&s(!1),()=>s(!1)),[a.open,s]),c(Pe,{...u,children:c(ye,{scope:o,open:t,onOpenChange:s,content:m,onContentChange:l,children:c(Jn,{scope:o,contentId:W(),triggerId:W(),trigger:i,onTriggerChange:p,children:n})})})};Ye.displayName=de;var $="MenuSubTrigger",He=f((e,o)=>{const n=I($,e.__scopeMenu),t=B($,e.__scopeMenu),r=Xe($,e.__scopeMenu),a=ce($,e.__scopeMenu),u=_(null),{pointerGraceTimerRef:i,onPointerGraceIntentChange:p}=a,m={__scopeMenu:e.__scopeMenu},l=P(()=>{u.current&&window.clearTimeout(u.current),u.current=null},[]);return E(()=>l,[l]),E(()=>{const s=i.current;return()=>{window.clearTimeout(s),p(null)}},[i,p]),c(re,{asChild:!0,...m,children:c(Oe,{id:r.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":r.contentId,"data-state":ze(n.open),...e,ref:ge(o,r.onTriggerChange),onClick:s=>{e.onClick?.(s),!(e.disabled||s.defaultPrevented)&&(s.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:M(e.onPointerMove,V(s=>{a.onItemEnter(s),!s.defaultPrevented&&!e.disabled&&!n.open&&!u.current&&(a.onPointerGraceIntentChange(null),u.current=window.setTimeout(()=>{n.onOpenChange(!0),l()},100))})),onPointerLeave:M(e.onPointerLeave,V(s=>{l();const v=n.content?.getBoundingClientRect();if(v){const D=n.content?.dataset.side,h=D==="right",x=h?-5:5,O=v[h?"left":"right"],b=v[h?"right":"left"];a.onPointerGraceIntentChange({area:[{x:s.clientX+x,y:s.clientY},{x:O,y:v.top},{x:b,y:v.top},{x:b,y:v.bottom},{x:O,y:v.bottom}],side:D}),window.clearTimeout(i.current),i.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(s),s.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:M(e.onKeyDown,s=>{const v=a.searchRef.current!=="";e.disabled||v&&s.key===" "||On[t.dir].includes(s.key)&&(n.onOpenChange(!0),n.content?.focus(),s.preventDefault())})})})});He.displayName=$;var We="MenuSubContent",je=f((e,o)=>{const n=be(w,e.__scopeMenu),{forceMount:t=n.forceMount,...r}=e,a=I(w,e.__scopeMenu),u=B(w,e.__scopeMenu),i=Xe(We,e.__scopeMenu),p=_(null),m=F(o,p);return c(K.Provider,{scope:e.__scopeMenu,children:c(j,{present:t||a.open,children:c(K.Slot,{scope:e.__scopeMenu,children:c(se,{id:i.contentId,"aria-labelledby":i.triggerId,...r,ref:m,align:"start",side:u.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:l=>{u.isUsingKeyboardRef.current&&p.current?.focus(),l.preventDefault()},onCloseAutoFocus:l=>l.preventDefault(),onFocusOutside:M(e.onFocusOutside,l=>{l.target!==i.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:M(e.onEscapeKeyDown,l=>{u.onClose(),l.preventDefault()}),onKeyDown:M(e.onKeyDown,l=>{const s=l.currentTarget.contains(l.target),v=kn[u.dir].includes(l.key);s&&v&&(a.onOpenChange(!1),i.trigger?.focus(),l.preventDefault())})})})})})});je.displayName=We;function ze(e){return e?"open":"closed"}function Z(e){return e==="indeterminate"}function le(e){return Z(e)?"indeterminate":e?"checked":"unchecked"}function Qn(e){const o=(()=>{let n=document.activeElement;for(;n?.shadowRoot;)n=n.shadowRoot.activeElement;return n})();for(const n of e)if(n===o||(n.focus(),(()=>{let t=document.activeElement;for(;t?.shadowRoot;)t=t.shadowRoot.activeElement;return t})()!==o))return}function eo(e,o){return e.map((n,t)=>e[(o+t)%e.length])}function no(e,o,n){const r=o.length>1&&Array.from(o).every(m=>m===o[0])?o[0]:o,a=n?e.indexOf(n):-1;let u=eo(e,Math.max(a,0));r.length===1&&(u=u.filter(m=>m!==n));const p=u.find(m=>m.toLowerCase().startsWith(r.toLowerCase()));return p!==n?p:void 0}function oo(e,o){const{x:n,y:t}=e;let r=!1;for(let a=0,u=o.length-1;a<o.length;u=a++){const i=o[a].x,p=o[a].y,m=o[u].x,l=o[u].y;p>t!=l>t&&n<(m-i)*(t-p)/(l-p)+i&&(r=!r)}return r}function to(e,o){if(!o)return!1;const n={x:e.clientX,y:e.clientY};return oo(n,o)}function V(e){return o=>o.pointerType==="mouse"?e(o):void 0}var ro=xe,ao=re,co=Re,so=Te,uo=ue,io=Ae,lo=q,po=ke,fo=Fe,mo=Ke,Mo=Be,vo=$e,ho=Ve,go=Ye,_o=He,Co=je,pe="DropdownMenu",[wo,lt]=_e(pe,[Se]),C=Se(),[Do,qe]=wo(pe),Ze=e=>{const{__scopeDropdownMenu:o,children:n,dir:t,open:r,defaultOpen:a,onOpenChange:u,modal:i=!0}=e,p=C(o),m=_(null),[l=!1,s]=Ce({prop:r,defaultProp:a,onChange:u});return c(Do,{scope:o,triggerId:W(),triggerRef:m,contentId:W(),open:l,onOpenChange:s,onOpenToggle:P(()=>s(v=>!v),[s]),modal:i,children:c(ro,{...p,open:l,onOpenChange:s,dir:t,modal:i,children:n})})};Ze.displayName=pe;var Je="DropdownMenuTrigger",Qe=f((e,o)=>{const{__scopeDropdownMenu:n,disabled:t=!1,...r}=e,a=qe(Je,n),u=C(n);return c(ao,{asChild:!0,...u,children:c(N.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":t?"":void 0,disabled:t,...r,ref:ge(o,a.triggerRef),onPointerDown:M(e.onPointerDown,i=>{!t&&i.button===0&&i.ctrlKey===!1&&(a.onOpenToggle(),a.open||i.preventDefault())}),onKeyDown:M(e.onKeyDown,i=>{t||(["Enter"," "].includes(i.key)&&a.onOpenToggle(),i.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(i.key)&&i.preventDefault())})})})});Qe.displayName=Je;var Po="DropdownMenuPortal",en=e=>{const{__scopeDropdownMenu:o,...n}=e,t=C(o);return c(co,{...t,...n})};en.displayName=Po;var nn="DropdownMenuContent",on=f((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,r=qe(nn,n),a=C(n),u=_(!1);return c(so,{id:r.contentId,"aria-labelledby":r.triggerId,...a,...t,ref:o,onCloseAutoFocus:M(e.onCloseAutoFocus,i=>{u.current||r.triggerRef.current?.focus(),u.current=!1,i.preventDefault()}),onInteractOutside:M(e.onInteractOutside,i=>{const p=i.detail.originalEvent,m=p.button===0&&p.ctrlKey===!0,l=p.button===2||m;(!r.modal||l)&&(u.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});on.displayName=nn;var Io="DropdownMenuGroup",So=f((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,r=C(n);return c(uo,{...r,...t,ref:o})});So.displayName=Io;var Eo="DropdownMenuLabel",tn=f((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,r=C(n);return c(io,{...r,...t,ref:o})});tn.displayName=Eo;var yo="DropdownMenuItem",rn=f((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,r=C(n);return c(lo,{...r,...t,ref:o})});rn.displayName=yo;var xo="DropdownMenuCheckboxItem",bo=f((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,r=C(n);return c(po,{...r,...t,ref:o})});bo.displayName=xo;var Ro="DropdownMenuRadioGroup",To=f((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,r=C(n);return c(fo,{...r,...t,ref:o})});To.displayName=Ro;var Ao="DropdownMenuRadioItem",No=f((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,r=C(n);return c(mo,{...r,...t,ref:o})});No.displayName=Ao;var Oo="DropdownMenuItemIndicator",ko=f((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,r=C(n);return c(Mo,{...r,...t,ref:o})});ko.displayName=Oo;var Lo="DropdownMenuSeparator",an=f((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,r=C(n);return c(vo,{...r,...t,ref:o})});an.displayName=Lo;var Fo="DropdownMenuArrow",Go=f((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,r=C(n);return c(ho,{...r,...t,ref:o})});Go.displayName=Fo;var Ko=e=>{const{__scopeDropdownMenu:o,children:n,open:t,onOpenChange:r,defaultOpen:a}=e,u=C(o),[i=!1,p]=Ce({prop:t,defaultProp:a,onChange:r});return c(go,{...u,open:i,onOpenChange:p,children:n})},Uo="DropdownMenuSubTrigger",Bo=f((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,r=C(n);return c(_o,{...r,...t,ref:o})});Bo.displayName=Uo;var $o="DropdownMenuSubContent",cn=f((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,r=C(n);return c(Co,{...r,...t,ref:o,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});cn.displayName=$o;var Vo=Ze,Xo=Qe,Yo=on,Ho=tn,Wo=rn,jo=an,zo=Ko,qo=cn;export{Yo as C,en as D,Wo as I,Ho as L,Vo as R,jo as S,Xo as T,zo as a,qo as b};
@@ -0,0 +1 @@
1
+ import{G as Q,x as W,w as _,u as d,A as G,h as N,y as O,q as F}from"./register-C3moBjIu.js";import{c as p}from"./index-CBrz5xtv.js";import{c as X}from"./index-B4h5diCH.js";import{u as Z}from"./index-D_ysjKuQ.js";import{c as $}from"./index-CDZENU78.js";import{u as ee}from"./index-C9YNJrFj.js";import{P as K}from"./index-BqbX3HxW.js";import{u as oe}from"./index-Cb4PhTWH.js";import{u as te}from"./index-BKn4CimT.js";var re=Q(void 0);function M(e){const t=W(re);return e||t||"ltr"}var y="rovingFocusGroup.onEntryFocus",ne={bubbles:!1,cancelable:!0},g="RovingFocusGroup",[D,L,se]=X(g),[ce,ae]=$(g,[se]),[ie,ue]=ce(g),U=_((e,t)=>d(D.Provider,{scope:e.__scopeRovingFocusGroup,children:d(D.Slot,{scope:e.__scopeRovingFocusGroup,children:d(le,{...e,ref:t})})}));U.displayName=g;var le=_((e,t)=>{const{__scopeRovingFocusGroup:s,orientation:o,loop:u=!1,dir:b,currentTabStopId:R,defaultCurrentTabStopId:w,onCurrentTabStopIdChange:m,onEntryFocus:c,preventScrollOnEntryFocus:E=!1,...T}=e,v=G(null),I=Z(t,v),r=M(b),[l=null,h]=te({prop:R,defaultProp:w,onChange:m}),[a,i]=N(!1),C=oe(c),H=L(s),S=G(!1),[V,P]=N(0);return O(()=>{const n=v.current;if(n)return n.addEventListener(y,C),()=>n.removeEventListener(y,C)},[C]),d(ie,{scope:s,orientation:o,dir:r,loop:u,currentTabStopId:l,onItemFocus:F(n=>h(n),[h]),onItemShiftTab:F(()=>i(!0),[]),onFocusableItemAdd:F(()=>P(n=>n+1),[]),onFocusableItemRemove:F(()=>P(n=>n-1),[]),children:d(K.div,{tabIndex:a||V===0?-1:0,"data-orientation":o,...T,ref:I,style:{outline:"none",...e.style},onMouseDown:p(e.onMouseDown,()=>{S.current=!0}),onFocus:p(e.onFocus,n=>{const q=!S.current;if(n.target===n.currentTarget&&q&&!a){const x=new CustomEvent(y,ne);if(n.currentTarget.dispatchEvent(x),!x.defaultPrevented){const A=H().filter(f=>f.focusable),z=A.find(f=>f.active),j=A.find(f=>f.id===l),J=[z,j,...A].filter(Boolean).map(f=>f.ref.current);Y(J,E)}}S.current=!1}),onBlur:p(e.onBlur,()=>i(!1))})})}),B="RovingFocusGroupItem",k=_((e,t)=>{const{__scopeRovingFocusGroup:s,focusable:o=!0,active:u=!1,tabStopId:b,...R}=e,w=ee(),m=b||w,c=ue(B,s),E=c.currentTabStopId===m,T=L(s),{onFocusableItemAdd:v,onFocusableItemRemove:I}=c;return O(()=>{if(o)return v(),()=>I()},[o,v,I]),d(D.ItemSlot,{scope:s,id:m,focusable:o,active:u,children:d(K.span,{tabIndex:E?0:-1,"data-orientation":c.orientation,...R,ref:t,onMouseDown:p(e.onMouseDown,r=>{o?c.onItemFocus(m):r.preventDefault()}),onFocus:p(e.onFocus,()=>c.onItemFocus(m)),onKeyDown:p(e.onKeyDown,r=>{if(r.key==="Tab"&&r.shiftKey){c.onItemShiftTab();return}if(r.target!==r.currentTarget)return;const l=me(r,c.orientation,c.dir);if(l!==void 0){if(r.metaKey||r.ctrlKey||r.altKey||r.shiftKey)return;r.preventDefault();let a=T().filter(i=>i.focusable).map(i=>i.ref.current);if(l==="last")a.reverse();else if(l==="prev"||l==="next"){l==="prev"&&a.reverse();const i=a.indexOf(r.currentTarget);a=c.loop?pe(a,i+1):a.slice(i+1)}setTimeout(()=>Y(a))}})})})});k.displayName=B;var fe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function de(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function me(e,t,s){const o=de(e.key,s);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return fe[o]}function Y(e,t=!1){const s=(()=>{let o=document.activeElement;for(;o?.shadowRoot;)o=o.shadowRoot.activeElement;return o})();for(const o of e)if(o===s||(o.focus({preventScroll:t}),(()=>{let u=document.activeElement;for(;u?.shadowRoot;)u=u.shadowRoot.activeElement;return u})()!==s))return}function pe(e,t){return e.map((s,o)=>e[(t+o)%e.length])}var ve=U,Ie=k;export{Ie as I,ve as R,ae as c,M as u};
@@ -1 +1 @@
1
- import{k as m,u as d,A as R,y as x}from"./register-CuIip76E.js";import{u as E,c as T}from"./index-G9sVEGjd.js";import{a as D}from"./index-BFGTFomd.js";import{c as I,R as V,I as G}from"./index-Dge3MYGy.js";import{P as L}from"./index-DTMwXSQu.js";import{P as p}from"./index-BoCoJ_rP.js";import{u as k}from"./index-Bq8PuM3C.js";import{u as w}from"./index-P_nqsVVQ.js";var f="Tabs",[$,Y]=D(f,[I]),h=I(),[K,g]=$(f),C=m((e,n)=>{const{__scopeTabs:s,value:t,onValueChange:r,defaultValue:c,orientation:a="horizontal",dir:u,activationMode:v="automatic",...b}=e,i=k(u),[o,l]=E({prop:t,onChange:r,defaultProp:c});return d(K,{scope:s,baseId:w(),value:o,onValueChange:l,orientation:a,dir:i,activationMode:v,children:d(p.div,{dir:i,"data-orientation":a,...b,ref:n})})});C.displayName=f;var y="TabsList",A=m((e,n)=>{const{__scopeTabs:s,loop:t=!0,...r}=e,c=g(y,s),a=h(s);return d(V,{asChild:!0,...a,orientation:c.orientation,dir:c.dir,loop:t,children:d(p.div,{role:"tablist","aria-orientation":c.orientation,...r,ref:n})})});A.displayName=y;var _="TabsTrigger",P=m((e,n)=>{const{__scopeTabs:s,value:t,disabled:r=!1,...c}=e,a=g(_,s),u=h(s),v=N(a.baseId,t),b=F(a.baseId,t),i=t===a.value;return d(G,{asChild:!0,...u,focusable:!r,active:i,children:d(p.button,{type:"button",role:"tab","aria-selected":i,"aria-controls":b,"data-state":i?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:v,...c,ref:n,onMouseDown:T(e.onMouseDown,o=>{!r&&o.button===0&&o.ctrlKey===!1?a.onValueChange(t):o.preventDefault()}),onKeyDown:T(e.onKeyDown,o=>{[" ","Enter"].includes(o.key)&&a.onValueChange(t)}),onFocus:T(e.onFocus,()=>{const o=a.activationMode!=="manual";!i&&!r&&o&&a.onValueChange(t)})})})});P.displayName=_;var S="TabsContent",M=m((e,n)=>{const{__scopeTabs:s,value:t,forceMount:r,children:c,...a}=e,u=g(S,s),v=N(u.baseId,t),b=F(u.baseId,t),i=t===u.value,o=R(i);return x(()=>{const l=requestAnimationFrame(()=>o.current=!1);return()=>cancelAnimationFrame(l)},[]),d(L,{present:r||i,children:({present:l})=>d(p.div,{"data-state":i?"active":"inactive","data-orientation":u.orientation,role:"tabpanel","aria-labelledby":v,hidden:!l,id:b,tabIndex:0,...a,ref:n,style:{...e.style,animationDuration:o.current?"0s":void 0},children:l&&c})})});M.displayName=S;function N(e,n){return`${e}-trigger-${n}`}function F(e,n){return`${e}-content-${n}`}var B=C,q=A,z=P;export{q as L,B as R,M as T,z as a};
1
+ import{w as m,u as d,A as R,y as x}from"./register-C3moBjIu.js";import{c as T}from"./index-CBrz5xtv.js";import{a as E}from"./index-DopfdxOl.js";import{c as I,u as D,R as V,I as G}from"./index-D0zvC3sp.js";import{P as w}from"./index-ssDZp9pU.js";import{P as p}from"./index-BqbX3HxW.js";import{u as L}from"./index-BKn4CimT.js";import{u as $}from"./index-C9YNJrFj.js";var f="Tabs",[k,Y]=E(f,[I]),h=I(),[K,g]=k(f),C=m((e,n)=>{const{__scopeTabs:s,value:t,onValueChange:r,defaultValue:c,orientation:a="horizontal",dir:u,activationMode:v="automatic",...b}=e,i=D(u),[o,l]=L({prop:t,onChange:r,defaultProp:c});return d(K,{scope:s,baseId:$(),value:o,onValueChange:l,orientation:a,dir:i,activationMode:v,children:d(p.div,{dir:i,"data-orientation":a,...b,ref:n})})});C.displayName=f;var y="TabsList",A=m((e,n)=>{const{__scopeTabs:s,loop:t=!0,...r}=e,c=g(y,s),a=h(s);return d(V,{asChild:!0,...a,orientation:c.orientation,dir:c.dir,loop:t,children:d(p.div,{role:"tablist","aria-orientation":c.orientation,...r,ref:n})})});A.displayName=y;var _="TabsTrigger",P=m((e,n)=>{const{__scopeTabs:s,value:t,disabled:r=!1,...c}=e,a=g(_,s),u=h(s),v=N(a.baseId,t),b=F(a.baseId,t),i=t===a.value;return d(G,{asChild:!0,...u,focusable:!r,active:i,children:d(p.button,{type:"button",role:"tab","aria-selected":i,"aria-controls":b,"data-state":i?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:v,...c,ref:n,onMouseDown:T(e.onMouseDown,o=>{!r&&o.button===0&&o.ctrlKey===!1?a.onValueChange(t):o.preventDefault()}),onKeyDown:T(e.onKeyDown,o=>{[" ","Enter"].includes(o.key)&&a.onValueChange(t)}),onFocus:T(e.onFocus,()=>{const o=a.activationMode!=="manual";!i&&!r&&o&&a.onValueChange(t)})})})});P.displayName=_;var S="TabsContent",M=m((e,n)=>{const{__scopeTabs:s,value:t,forceMount:r,children:c,...a}=e,u=g(S,s),v=N(u.baseId,t),b=F(u.baseId,t),i=t===u.value,o=R(i);return x(()=>{const l=requestAnimationFrame(()=>o.current=!1);return()=>cancelAnimationFrame(l)},[]),d(w,{present:r||i,children:({present:l})=>d(p.div,{"data-state":i?"active":"inactive","data-orientation":u.orientation,role:"tabpanel","aria-labelledby":v,hidden:!l,id:b,tabIndex:0,...a,ref:n,style:{...e.style,animationDuration:o.current?"0s":void 0},children:l&&c})})});M.displayName=S;function N(e,n){return`${e}-trigger-${n}`}function F(e,n){return`${e}-content-${n}`}var B=C,q=A,z=P;export{q as L,B as R,M as T,z as a};
@@ -0,0 +1 @@
1
+ import{h as V,A as b,u as c,q as X,w as S,y as F,T as Ce,P as xe,b as re}from"./register-C3moBjIu.js";import{c as g}from"./index-CBrz5xtv.js";import{u as se}from"./index-D_ysjKuQ.js";import{c as be}from"./index-B4h5diCH.js";import{a as Re}from"./index-DopfdxOl.js";import{B as ge,R as Se,P as Ae}from"./index-BRUDi9Aj.js";import{P as Ie}from"./index-ssDZp9pU.js";import{P as D,d as _e}from"./index-BqbX3HxW.js";import{u as Y}from"./index-Cb4PhTWH.js";import{u as Fe}from"./index-BKn4CimT.js";import{u as De}from"./index-KglZqSgk.js";import{V as ae}from"./index-eNF0drXr.js";var z="ToastProvider",[G,Ne,Le]=be("Toast"),[ie,mt]=Re("Toast",[Le]),[Oe,$]=ie(z),ce=t=>{const{__scopeToast:n,label:o="Notification",duration:e=5e3,swipeDirection:i="right",swipeThreshold:l=50,children:d}=t,[m,w]=V(null),[a,x]=V(0),E=b(!1),N=b(!1);return o.trim()||console.error(`Invalid prop \`label\` supplied to \`${z}\`. Expected non-empty \`string\`.`),c(G.Provider,{scope:n,children:c(Oe,{scope:n,label:o,duration:e,swipeDirection:i,swipeThreshold:l,toastCount:a,viewport:m,onViewportChange:w,onToastAdd:X(()=>x(I=>I+1),[]),onToastRemove:X(()=>x(I=>I-1),[]),isFocusedToastEscapeKeyDownRef:E,isClosePausedRef:N,children:d})})};ce.displayName=z;var ue="ToastViewport",Me=["F8"],J="toast.viewportPause",Q="toast.viewportResume",le=S((t,n)=>{const{__scopeToast:o,hotkey:e=Me,label:i="Notifications ({hotkey})",...l}=t,d=$(ue,o),m=Ne(o),w=b(null),a=b(null),x=b(null),E=b(null),N=se(n,E,d.onViewportChange),I=e.join("+").replace(/Key/g,"").replace(/Digit/g,""),_=d.toastCount>0;F(()=>{const s=y=>{e.length!==0&&e.every(f=>y[f]||y.code===f)&&E.current?.focus()};return document.addEventListener("keydown",s),()=>document.removeEventListener("keydown",s)},[e]),F(()=>{const s=w.current,y=E.current;if(_&&s&&y){const p=()=>{if(!d.isClosePausedRef.current){const T=new CustomEvent(J);y.dispatchEvent(T),d.isClosePausedRef.current=!0}},f=()=>{if(d.isClosePausedRef.current){const T=new CustomEvent(Q);y.dispatchEvent(T),d.isClosePausedRef.current=!1}},h=T=>{!s.contains(T.relatedTarget)&&f()},P=()=>{s.contains((()=>{let R=document.activeElement;for(;R?.shadowRoot;)R=R.shadowRoot.activeElement;return R})())||f()};return s.addEventListener("focusin",p),s.addEventListener("focusout",h),s.addEventListener("pointermove",p),s.addEventListener("pointerleave",P),window.addEventListener("blur",p),window.addEventListener("focus",f),()=>{s.removeEventListener("focusin",p),s.removeEventListener("focusout",h),s.removeEventListener("pointermove",p),s.removeEventListener("pointerleave",P),window.removeEventListener("blur",p),window.removeEventListener("focus",f)}}},[_,d.isClosePausedRef]);const u=X(({tabbingDirection:s})=>{const p=m().map(f=>{const h=f.ref.current,P=[h,...Ge(h)];return s==="forwards"?P:P.reverse()});return(s==="forwards"?p.reverse():p).flat()},[m]);return F(()=>{const s=E.current;if(s){const y=p=>{const f=p.altKey||p.ctrlKey||p.metaKey;if(p.key==="Tab"&&!f){const P=(()=>{let C=document.activeElement;for(;C?.shadowRoot;)C=C.shadowRoot.activeElement;return C})(),T=p.shiftKey;if(p.target===s&&T){a.current?.focus();return}const L=u({tabbingDirection:T?"backwards":"forwards"}),k=L.findIndex(C=>C===P);te(L.slice(k+1))?p.preventDefault():T?a.current?.focus():x.current?.focus()}};return s.addEventListener("keydown",y),()=>s.removeEventListener("keydown",y)}},[m,u]),c(ge,{ref:w,role:"region","aria-label":i.replace("{hotkey}",I),tabIndex:-1,style:{pointerEvents:_?void 0:"none"},children:[_&&c(Z,{ref:a,onFocusFromOutsideViewport:()=>{const s=u({tabbingDirection:"forwards"});te(s)}}),c(G.Slot,{scope:o,children:c(D.ol,{tabIndex:-1,...l,ref:N})}),_&&c(Z,{ref:x,onFocusFromOutsideViewport:()=>{const s=u({tabbingDirection:"backwards"});te(s)}})]})});le.displayName=ue;var de="ToastFocusProxy",Z=S((t,n)=>{const{__scopeToast:o,onFocusFromOutsideViewport:e,...i}=t,l=$(de,o);return c(ae,{"aria-hidden":!0,tabIndex:0,...i,ref:n,style:{position:"fixed"},onFocus:d=>{const m=d.relatedTarget;!l.viewport?.contains(m)&&e()}})});Z.displayName=de;var B="Toast",Ve="toast.swipeStart",Ke="toast.swipeMove",ke="toast.swipeCancel",He="toast.swipeEnd",pe=S((t,n)=>{const{forceMount:o,open:e,defaultOpen:i,onOpenChange:l,...d}=t,[m=!0,w]=Fe({prop:e,defaultProp:i,onChange:l});return c(Ie,{present:o||m,children:c(Xe,{open:m,...d,ref:n,onClose:()=>w(!1),onPause:Y(t.onPause),onResume:Y(t.onResume),onSwipeStart:g(t.onSwipeStart,a=>{a.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:g(t.onSwipeMove,a=>{const{x,y:E}=a.detail.delta;a.currentTarget.setAttribute("data-swipe","move"),a.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${x}px`),a.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${E}px`)}),onSwipeCancel:g(t.onSwipeCancel,a=>{a.currentTarget.setAttribute("data-swipe","cancel"),a.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),a.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),a.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),a.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:g(t.onSwipeEnd,a=>{const{x,y:E}=a.detail.delta;a.currentTarget.setAttribute("data-swipe","end"),a.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),a.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),a.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${x}px`),a.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${E}px`),w(!1)})})})});pe.displayName=B;var[We,Ue]=ie(B,{onClose(){}}),Xe=S((t,n)=>{const{__scopeToast:o,type:e="foreground",duration:i,open:l,onClose:d,onEscapeKeyDown:m,onPause:w,onResume:a,onSwipeStart:x,onSwipeMove:E,onSwipeCancel:N,onSwipeEnd:I,..._}=t,u=$(B,o),[s,y]=V(null),p=se(n,r=>y(r)),f=b(null),h=b(null),P=i||u.duration,T=b(0),R=b(P),K=b(0),{onToastAdd:L,onToastRemove:k}=u,C=Y(()=>{s?.contains((()=>{let v=document.activeElement;for(;v?.shadowRoot;)v=v.shadowRoot.activeElement;return v})())&&u.viewport?.focus(),d()}),H=X(r=>{!r||r===1/0||(window.clearTimeout(K.current),T.current=new Date().getTime(),K.current=window.setTimeout(C,r))},[C]);F(()=>{const r=u.viewport;if(r){const v=()=>{H(R.current),a?.()},A=()=>{const O=new Date().getTime()-T.current;R.current=R.current-O,window.clearTimeout(K.current),w?.()};return r.addEventListener(J,A),r.addEventListener(Q,v),()=>{r.removeEventListener(J,A),r.removeEventListener(Q,v)}}},[u.viewport,P,w,a,H]),F(()=>{l&&!u.isClosePausedRef.current&&H(P)},[l,P,u.isClosePausedRef,H]),F(()=>(L(),()=>k()),[L,k]);const oe=Ce(()=>s?Ee(s):null,[s]);return u.viewport?c(re,{children:[oe&&c(Ye,{__scopeToast:o,role:"status","aria-live":e==="foreground"?"assertive":"polite","aria-atomic":!0,children:oe}),c(We,{scope:o,onClose:C,children:xe(c(G.ItemSlot,{scope:o,children:c(Se,{asChild:!0,onEscapeKeyDown:g(m,()=>{u.isFocusedToastEscapeKeyDownRef.current||C(),u.isFocusedToastEscapeKeyDownRef.current=!1}),children:c(D.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":l?"open":"closed","data-swipe-direction":u.swipeDirection,..._,ref:p,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:g(t.onKeyDown,r=>{r.key==="Escape"&&(m?.(r.nativeEvent),r.nativeEvent.defaultPrevented||(u.isFocusedToastEscapeKeyDownRef.current=!0,C()))}),onPointerDown:g(t.onPointerDown,r=>{r.button===0&&(f.current={x:r.clientX,y:r.clientY})}),onPointerMove:g(t.onPointerMove,r=>{if(!f.current)return;const v=r.clientX-f.current.x,A=r.clientY-f.current.y,O=Boolean(h.current),M=["left","right"].includes(u.swipeDirection),W=["left","up"].includes(u.swipeDirection)?Math.min:Math.max,he=M?W(0,v):0,Pe=M?0:W(0,A),j=r.pointerType==="touch"?10:2,U={x:he,y:Pe},ne={originalEvent:r,delta:U};O?(h.current=U,q(Ke,E,ne,{discrete:!1})):ye(U,u.swipeDirection,j)?(h.current=U,q(Ve,x,ne,{discrete:!1}),r.target.setPointerCapture(r.pointerId)):(Math.abs(v)>j||Math.abs(A)>j)&&(f.current=null)}),onPointerUp:g(t.onPointerUp,r=>{const v=h.current,A=r.target;if(A.hasPointerCapture(r.pointerId)&&A.releasePointerCapture(r.pointerId),h.current=null,f.current=null,v){const O=r.currentTarget,M={originalEvent:r,delta:v};ye(v,u.swipeDirection,u.swipeThreshold)?q(He,I,M,{discrete:!0}):q(ke,N,M,{discrete:!0}),O.addEventListener("click",W=>W.preventDefault(),{once:!0})}})})})}),u.viewport)})]}):null}),Ye=t=>{const{__scopeToast:n,children:o,...e}=t,i=$(B,n),[l,d]=V(!1),[m,w]=V(!1);return je(()=>d(!0)),F(()=>{const a=window.setTimeout(()=>w(!0),1e3);return()=>window.clearTimeout(a)},[]),m?null:c(Ae,{asChild:!0,children:c(ae,{...e,children:l&&c(re,{children:[i.label," ",o]})})})},$e="ToastTitle",fe=S((t,n)=>{const{__scopeToast:o,...e}=t;return c(D.div,{...e,ref:n})});fe.displayName=$e;var Be="ToastDescription",qe=S((t,n)=>{const{__scopeToast:o,...e}=t;return c(D.div,{...e,ref:n})});qe.displayName=Be;var me="ToastAction",ve=S((t,n)=>{const{altText:o,...e}=t;return o.trim()?c(Te,{altText:o,asChild:!0,children:c(ee,{...e,ref:n})}):(console.error(`Invalid prop \`altText\` supplied to \`${me}\`. Expected non-empty \`string\`.`),null)});ve.displayName=me;var we="ToastClose",ee=S((t,n)=>{const{__scopeToast:o,...e}=t,i=Ue(we,o);return c(Te,{asChild:!0,children:c(D.button,{type:"button",...e,ref:n,onClick:g(t.onClick,i.onClose)})})});ee.displayName=we;var Te=S((t,n)=>{const{__scopeToast:o,altText:e,...i}=t;return c(D.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":e||void 0,...i,ref:n})});function Ee(t){const n=[];return Array.from(t.childNodes).forEach(e=>{if(e.nodeType===e.TEXT_NODE&&e.textContent&&n.push(e.textContent),ze(e)){const i=e.ariaHidden||e.hidden||e.style.display==="none",l=e.dataset.radixToastAnnounceExclude==="";if(!i)if(l){const d=e.dataset.radixToastAnnounceAlt;d&&n.push(d)}else n.push(...Ee(e))}}),n}function q(t,n,o,{discrete:e}){const i=o.originalEvent.currentTarget,l=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:o});n&&i.addEventListener(t,n,{once:!0}),e?_e(i,l):i.dispatchEvent(l)}var ye=(t,n,o=0)=>{const e=Math.abs(t.x),i=Math.abs(t.y),l=e>i;return n==="left"||n==="right"?l&&e>o:!l&&i>o};function je(t=()=>{}){const n=Y(t);De(()=>{let o=0,e=0;return o=window.requestAnimationFrame(()=>e=window.requestAnimationFrame(n)),()=>{window.cancelAnimationFrame(o),window.cancelAnimationFrame(e)}},[n])}function ze(t){return t.nodeType===t.ELEMENT_NODE}function Ge(t){const n=[],o=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const i=e.tagName==="INPUT"&&e.type==="hidden";return e.disabled||e.hidden||i?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)n.push(o.currentNode);return n}function te(t){const n=(()=>{let o=document.activeElement;for(;o?.shadowRoot;)o=o.shadowRoot.activeElement;return o})();return t.some(o=>o===n?!0:(o.focus(),(()=>{let e=document.activeElement;for(;e?.shadowRoot;)e=e.shadowRoot.activeElement;return e})()!==n))}var Je=le,Qe=pe,Ze=fe,et=ve,tt=ee;export{et as A,tt as C,Qe as R,ce as T,Je as V,Ze as a};
@@ -0,0 +1 @@
1
+ import{w as i,y as x,u as c,A as P,h as U,q as O}from"./register-C3moBjIu.js";import{c as h}from"./index-CBrz5xtv.js";import{u as E,a as V}from"./index-D_ysjKuQ.js";import{a as W}from"./index-DopfdxOl.js";import{D as Z,P as $}from"./index-BRUDi9Aj.js";import{o as j,u as z,F as B,h as J}from"./index-CcP22EDR.js";import{u as Q}from"./index-C9YNJrFj.js";import{c as F,A as N,C as X,a as Y,R as oo}from"./index-DjXUdK96.js";import{P as y}from"./index-ssDZp9pU.js";import{P as w}from"./index-BqbX3HxW.js";import{u as eo}from"./index-BKn4CimT.js";var _="Popover",[b,Fo]=W(_,[F]),g=F(),[ro,u]=b(_),D=o=>{const{__scopePopover:n,children:t,open:a,defaultOpen:e,onOpenChange:r,modal:s=!1}=o,p=g(n),v=P(null),[f,m]=U(!1),[C=!1,l]=eo({prop:a,defaultProp:e,onChange:r});return c(oo,{...p,children:c(ro,{scope:n,contentId:Q(),triggerRef:v,open:C,onOpenChange:l,onOpenToggle:O(()=>l(A=>!A),[l]),hasCustomAnchor:f,onCustomAnchorAdd:O(()=>m(!0),[]),onCustomAnchorRemove:O(()=>m(!1),[]),modal:s,children:t})})};D.displayName=_;var M="PopoverAnchor",S=i((o,n)=>{const{__scopePopover:t,...a}=o,e=u(M,t),r=g(t),{onCustomAnchorAdd:s,onCustomAnchorRemove:p}=e;return x(()=>(s(),()=>p()),[s,p]),c(N,{...r,...a,ref:n})});S.displayName=M;var T="PopoverTrigger",I=i((o,n)=>{const{__scopePopover:t,...a}=o,e=u(T,t),r=g(t),s=E(n,e.triggerRef),p=c(w.button,{type:"button","aria-haspopup":"dialog","aria-expanded":e.open,"aria-controls":e.contentId,"data-state":q(e.open),...a,ref:s,onClick:h(o.onClick,e.onOpenToggle)});return e.hasCustomAnchor?p:c(N,{asChild:!0,...r,children:p})});I.displayName=T;var R="PopoverPortal",[to,no]=b(R,{forceMount:void 0}),k=o=>{const{__scopePopover:n,forceMount:t,children:a,container:e}=o,r=u(R,n);return c(to,{scope:n,forceMount:t,children:c(y,{present:t||r.open,children:c($,{asChild:!0,container:e,children:a})})})};k.displayName=R;var d="PopoverContent",L=i((o,n)=>{const t=no(d,o.__scopePopover),{forceMount:a=t.forceMount,...e}=o,r=u(d,o.__scopePopover);return c(y,{present:a||r.open,children:r.modal?c(ao,{...e,ref:n}):c(so,{...e,ref:n})})});L.displayName=d;var ao=i((o,n)=>{const t=u(d,o.__scopePopover),a=P(null),e=E(n,a),r=P(!1);return x(()=>{const s=a.current;if(s)return J(s)},[]),c(j,{as:V,allowPinchZoom:!0,children:c(G,{...o,ref:e,trapFocus:t.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:h(o.onCloseAutoFocus,s=>{s.preventDefault(),r.current||t.triggerRef.current?.focus()}),onPointerDownOutside:h(o.onPointerDownOutside,s=>{const p=s.detail.originalEvent,v=p.button===0&&p.ctrlKey===!0,f=p.button===2||v;r.current=f},{checkForDefaultPrevented:!1}),onFocusOutside:h(o.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),so=i((o,n)=>{const t=u(d,o.__scopePopover),a=P(!1),e=P(!1);return c(G,{...o,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:r=>{o.onCloseAutoFocus?.(r),r.defaultPrevented||(a.current||t.triggerRef.current?.focus(),r.preventDefault()),a.current=!1,e.current=!1},onInteractOutside:r=>{o.onInteractOutside?.(r),r.defaultPrevented||(a.current=!0,r.detail.originalEvent.type==="pointerdown"&&(e.current=!0));const s=r.target;t.triggerRef.current?.contains(s)&&r.preventDefault(),r.detail.originalEvent.type==="focusin"&&e.current&&r.preventDefault()}})}),G=i((o,n)=>{const{__scopePopover:t,trapFocus:a,onOpenAutoFocus:e,onCloseAutoFocus:r,disableOutsidePointerEvents:s,onEscapeKeyDown:p,onPointerDownOutside:v,onFocusOutside:f,onInteractOutside:m,...C}=o,l=u(d,t),A=g(t);return z(),c(B,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:e,onUnmountAutoFocus:r,children:c(Z,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:m,onEscapeKeyDown:p,onPointerDownOutside:v,onFocusOutside:f,onDismiss:()=>l.onOpenChange(!1),children:c(X,{"data-state":q(l.open),role:"dialog",id:l.contentId,...A,...C,ref:n,style:{...C.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)"}})})})}),H="PopoverClose",co=i((o,n)=>{const{__scopePopover:t,...a}=o,e=u(H,t);return c(w.button,{type:"button",...a,ref:n,onClick:h(o.onClick,()=>e.onOpenChange(!1))})});co.displayName=H;var po="PopoverArrow",K=i((o,n)=>{const{__scopePopover:t,...a}=o,e=g(t);return c(Y,{...e,...a,ref:n})});K.displayName=po;function q(o){return o?"open":"closed"}var io=D,uo=S,lo=I,vo=L,fo=K;export{uo as A,vo as C,k as P,io as R,lo as T,fo as a};
@@ -0,0 +1 @@
1
+ import{q as S,w as d,I as l,f as a,u,s as g,b}from"./register-C3moBjIu.js";function h(n,r){typeof n=="function"?n(r):n!=null&&(n.current=r)}function f(...n){return r=>n.forEach(e=>h(e,r))}function v(...n){return S(f(...n),n)}var m=d((n,r)=>{const{children:e,...t}=n,o=l.toArray(e),s=o.find(P);if(s){const i=s.props.children,c=o.map(y=>y===s?l.count(i)>1?l.only(null):a(i)?i.props.children:null:y);return u(p,{...t,ref:r,children:a(i)?g(i,void 0,c):null})}return u(p,{...t,ref:r,children:e})});m.displayName="Slot";var p=d((n,r)=>{const{children:e,...t}=n;if(a(e)){const o=C(e);return g(e,{...W(t,e.props),ref:r?f(r,o):o})}return l.count(e)>1?l.only(null):null});p.displayName="SlotClone";var R=({children:n})=>u(b,{children:n});function P(n){return a(n)&&n.type===R}function W(n,r){const e={...r};for(const t in r){const o=n[t],s=r[t];/^on[A-Z]/.test(t)?o&&s?e[t]=(...c)=>{s(...c),o(...c)}:o&&(e[t]=o):t==="style"?e[t]={...o,...s}:t==="className"&&(e[t]=[o,s].filter(Boolean).join(" "))}return{...n,...e}}function C(n){let r=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,e=r&&"isReactWarning"in r&&r.isReactWarning;return e?n.ref:(r=Object.getOwnPropertyDescriptor(n,"ref")?.get,e=r&&"isReactWarning"in r&&r.isReactWarning,e?n.props.ref:n.props.ref||n.ref)}export{R as S,m as a,f as c,v as u};
@@ -0,0 +1 @@
1
+ import{h as I,q as yt,A as J,g as be,T as lt,c as Ae,y as Wt,w as at,u as Y}from"./register-C3moBjIu.js";import{P as vt}from"./index-BqbX3HxW.js";import{u as zt}from"./index-D_ysjKuQ.js";import{c as Pe}from"./index-CDZENU78.js";import{u as Re}from"./index-Cb4PhTWH.js";import{u as bt}from"./index-KglZqSgk.js";const Oe=["top","right","bottom","left"],q=Math.min,N=Math.max,ft=Math.round,ut=Math.floor,U=t=>({x:t,y:t}),Ce={left:"right",right:"left",bottom:"top",top:"bottom"},Se={start:"end",end:"start"};function At(t,e,n){return N(t,q(e,n))}function X(t,e){return typeof t=="function"?t(e):t}function j(t){return t.split("-")[0]}function Q(t){return t.split("-")[1]}function Pt(t){return t==="x"?"y":"x"}function Rt(t){return t==="y"?"height":"width"}function Z(t){return["top","bottom"].includes(j(t))?"y":"x"}function Ot(t){return Pt(Z(t))}function Ee(t,e,n){n===void 0&&(n=!1);const o=Q(t),i=Ot(t),r=Rt(i);let s=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[r]>e.floating[r]&&(s=dt(s)),[s,dt(s)]}function De(t){const e=dt(t);return[Ct(t),e,Ct(e)]}function Ct(t){return t.replace(/start|end/g,e=>Se[e])}function Te(t,e,n){const o=["left","right"],i=["right","left"],r=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:o:e?o:i;case"left":case"right":return e?r:s;default:return[]}}function Le(t,e,n,o){const i=Q(t);let r=Te(j(t),n==="start",o);return i&&(r=r.map(s=>s+"-"+i),e&&(r=r.concat(r.map(Ct)))),r}function dt(t){return t.replace(/left|right|bottom|top/g,e=>Ce[e])}function Me(t){return{top:0,right:0,bottom:0,left:0,...t}}function _t(t){return typeof t!="number"?Me(t):{top:t,right:t,bottom:t,left:t}}function pt(t){const{x:e,y:n,width:o,height:i}=t;return{width:o,height:i,top:n,left:e,right:e+o,bottom:n+i,x:e,y:n}}function Bt(t,e,n){let{reference:o,floating:i}=t;const r=Z(e),s=Ot(e),c=Rt(s),a=j(e),l=r==="y",f=o.x+o.width/2-i.width/2,d=o.y+o.height/2-i.height/2,m=o[c]/2-i[c]/2;let u;switch(a){case"top":u={x:f,y:o.y-i.height};break;case"bottom":u={x:f,y:o.y+o.height};break;case"right":u={x:o.x+o.width,y:d};break;case"left":u={x:o.x-i.width,y:d};break;default:u={x:o.x,y:o.y}}switch(Q(e)){case"start":u[s]-=m*(n&&l?-1:1);break;case"end":u[s]+=m*(n&&l?-1:1);break}return u}const $e=async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:s}=n,c=r.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(e));let l=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:f,y:d}=Bt(l,o,a),m=o,u={},p=0;for(let h=0;h<c.length;h++){const{name:w,fn:g}=c[h],{x,y:b,data:y,reset:v}=await g({x:f,y:d,initialPlacement:o,placement:m,strategy:i,middlewareData:u,rects:l,platform:s,elements:{reference:t,floating:e}});f=x??f,d=b??d,u={...u,[w]:{...u[w],...y}},v&&p<=50&&(p++,typeof v=="object"&&(v.placement&&(m=v.placement),v.rects&&(l=v.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:i}):v.rects),{x:f,y:d}=Bt(l,m,a)),h=-1)}return{x:f,y:d,placement:m,strategy:i,middlewareData:u}};async function it(t,e){var n;e===void 0&&(e={});const{x:o,y:i,platform:r,rects:s,elements:c,strategy:a}=t,{boundary:l="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:m=!1,padding:u=0}=X(e,t),p=_t(u),w=c[m?d==="floating"?"reference":"floating":d],g=pt(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(w)))==null||n?w:w.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(c.floating)),boundary:l,rootBoundary:f,strategy:a})),x=d==="floating"?{x:o,y:i,width:s.floating.width,height:s.floating.height}:s.reference,b=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c.floating)),y=await(r.isElement==null?void 0:r.isElement(b))?await(r.getScale==null?void 0:r.getScale(b))||{x:1,y:1}:{x:1,y:1},v=pt(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:x,offsetParent:b,strategy:a}):x);return{top:(g.top-v.top+p.top)/y.y,bottom:(v.bottom-g.bottom+p.bottom)/y.y,left:(g.left-v.left+p.left)/y.x,right:(v.right-g.right+p.right)/y.x}}const ke=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:i,rects:r,platform:s,elements:c,middlewareData:a}=e,{element:l,padding:f=0}=X(t,e)||{};if(l==null)return{};const d=_t(f),m={x:n,y:o},u=Ot(i),p=Rt(u),h=await s.getDimensions(l),w=u==="y",g=w?"top":"left",x=w?"bottom":"right",b=w?"clientHeight":"clientWidth",y=r.reference[p]+r.reference[u]-m[u]-r.floating[p],v=m[u]-r.reference[u],P=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l));let O=P?P[b]:0;(!O||!await(s.isElement==null?void 0:s.isElement(P)))&&(O=c.floating[b]||r.floating[p]);const D=y/2-v/2,k=O/2-h[p]/2-1,T=q(d[g],k),M=q(d[x],k),$=T,C=O-h[p]-M,R=O/2-h[p]/2+D,H=At($,R,C),S=!a.arrow&&Q(i)!=null&&R!==H&&r.reference[p]/2-(R<$?T:M)-h[p]/2<0,E=S?R<$?R-$:R-C:0;return{[u]:m[u]+E,data:{[u]:H,centerOffset:R-H-E,...S&&{alignmentOffset:E}},reset:S}}}),Ne=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:r,rects:s,initialPlacement:c,platform:a,elements:l}=e,{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:m,fallbackStrategy:u="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:h=!0,...w}=X(t,e);if((n=r.arrow)!=null&&n.alignmentOffset)return{};const g=j(i),x=Z(c),b=j(c)===c,y=await(a.isRTL==null?void 0:a.isRTL(l.floating)),v=m||(b||!h?[dt(c)]:De(c)),P=p!=="none";!m&&P&&v.push(...Le(c,h,p,y));const O=[c,...v],D=await it(e,w),k=[];let T=((o=r.flip)==null?void 0:o.overflows)||[];if(f&&k.push(D[g]),d){const R=Ee(i,s,y);k.push(D[R[0]],D[R[1]])}if(T=[...T,{placement:i,overflows:k}],!k.every(R=>R<=0)){var M,$;const R=(((M=r.flip)==null?void 0:M.index)||0)+1,H=O[R];if(H)return{data:{index:R,overflows:T},reset:{placement:H}};let S=($=T.filter(E=>E.overflows[0]<=0).sort((E,A)=>E.overflows[1]-A.overflows[1])[0])==null?void 0:$.placement;if(!S)switch(u){case"bestFit":{var C;const E=(C=T.filter(A=>{if(P){const L=Z(A.placement);return L===x||L==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(L=>L>0).reduce((L,_)=>L+_,0)]).sort((A,L)=>A[1]-L[1])[0])==null?void 0:C[0];E&&(S=E);break}case"initialPlacement":S=c;break}if(i!==S)return{reset:{placement:S}}}return{}}}};function Vt(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function It(t){return Oe.some(e=>t[e]>=0)}const Fe=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:o="referenceHidden",...i}=X(t,e);switch(o){case"referenceHidden":{const r=await it(e,{...i,elementContext:"reference"}),s=Vt(r,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:It(s)}}}case"escaped":{const r=await it(e,{...i,altBoundary:!0}),s=Vt(r,n.floating);return{data:{escapedOffsets:s,escaped:It(s)}}}default:return{}}}}};async function He(t,e){const{placement:n,platform:o,elements:i}=t,r=await(o.isRTL==null?void 0:o.isRTL(i.floating)),s=j(n),c=Q(n),a=Z(n)==="y",l=["left","top"].includes(s)?-1:1,f=r&&a?-1:1,d=X(e,t);let{mainAxis:m,crossAxis:u,alignmentAxis:p}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return c&&typeof p=="number"&&(u=c==="end"?p*-1:p),a?{x:u*f,y:m*l}:{x:m*l,y:u*f}}const We=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:i,y:r,placement:s,middlewareData:c}=e,a=await He(e,t);return s===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:i+a.x,y:r+a.y,data:{...a,placement:s}}}}},ze=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i}=e,{mainAxis:r=!0,crossAxis:s=!1,limiter:c={fn:w=>{let{x:g,y:x}=w;return{x:g,y:x}}},...a}=X(t,e),l={x:n,y:o},f=await it(e,a),d=Z(j(i)),m=Pt(d);let u=l[m],p=l[d];if(r){const w=m==="y"?"top":"left",g=m==="y"?"bottom":"right",x=u+f[w],b=u-f[g];u=At(x,u,b)}if(s){const w=d==="y"?"top":"left",g=d==="y"?"bottom":"right",x=p+f[w],b=p-f[g];p=At(x,p,b)}const h=c.fn({...e,[m]:u,[d]:p});return{...h,data:{x:h.x-n,y:h.y-o,enabled:{[m]:r,[d]:s}}}}}},_e=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:o,placement:i,rects:r,middlewareData:s}=e,{offset:c=0,mainAxis:a=!0,crossAxis:l=!0}=X(t,e),f={x:n,y:o},d=Z(i),m=Pt(d);let u=f[m],p=f[d];const h=X(c,e),w=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(a){const b=m==="y"?"height":"width",y=r.reference[m]-r.floating[b]+w.mainAxis,v=r.reference[m]+r.reference[b]-w.mainAxis;u<y?u=y:u>v&&(u=v)}if(l){var g,x;const b=m==="y"?"width":"height",y=["top","left"].includes(j(i)),v=r.reference[d]-r.floating[b]+(y&&((g=s.offset)==null?void 0:g[d])||0)+(y?0:w.crossAxis),P=r.reference[d]+r.reference[b]+(y?0:((x=s.offset)==null?void 0:x[d])||0)-(y?w.crossAxis:0);p<v?p=v:p>P&&(p=P)}return{[m]:u,[d]:p}}}},Be=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,o;const{placement:i,rects:r,platform:s,elements:c}=e,{apply:a=()=>{},...l}=X(t,e),f=await it(e,l),d=j(i),m=Q(i),u=Z(i)==="y",{width:p,height:h}=r.floating;let w,g;d==="top"||d==="bottom"?(w=d,g=m===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(g=d,w=m==="end"?"top":"bottom");const x=h-f.top-f.bottom,b=p-f.left-f.right,y=q(h-f[w],x),v=q(p-f[g],b),P=!e.middlewareData.shift;let O=y,D=v;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(D=b),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(O=x),P&&!m){const T=N(f.left,0),M=N(f.right,0),$=N(f.top,0),C=N(f.bottom,0);u?D=p-2*(T!==0||M!==0?T+M:N(f.left,f.right)):O=h-2*($!==0||C!==0?$+C:N(f.top,f.bottom))}await a({...e,availableWidth:D,availableHeight:O});const k=await s.getDimensions(c.floating);return p!==k.width||h!==k.height?{reset:{rects:!0}}:{}}}};function mt(){return typeof window<"u"}function tt(t){return Yt(t)?(t.nodeName||"").toLowerCase():"#document"}function F(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function B(t){var e;return(e=(Yt(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Yt(t){return mt()?t instanceof Node||t instanceof F(t).Node:!1}function W(t){return mt()?t instanceof Element||t instanceof F(t).Element:!1}function V(t){return mt()?t instanceof HTMLElement||t instanceof F(t).HTMLElement:!1}function Xt(t){return!mt()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof F(t).ShadowRoot}function rt(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=z(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(i)}function Ve(t){return["table","td","th"].includes(tt(t))}function ht(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function St(t){const e=Et(),n=W(t)?z(t):t;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function Ie(t){let e=K(t);for(;V(e)&&!et(e);){if(St(e))return e;if(ht(e))return null;e=K(e)}return null}function Et(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function et(t){return["html","body","#document"].includes(tt(t))}function z(t){return F(t).getComputedStyle(t)}function gt(t){return W(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function K(t){if(tt(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Xt(t)&&t.host||B(t);return Xt(e)?e.host:e}function jt(t){const e=K(t);return et(e)?t.ownerDocument?t.ownerDocument.body:t.body:V(e)&&rt(e)?e:jt(e)}function st(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=jt(t),r=i===((o=t.ownerDocument)==null?void 0:o.body),s=F(i);if(r){const c=Dt(s);return e.concat(s,s.visualViewport||[],rt(i)?i:[],c&&n?st(c):[])}return e.concat(i,st(i,[],n))}function Dt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function qt(t){const e=z(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=V(t),r=i?t.offsetWidth:n,s=i?t.offsetHeight:o,c=ft(n)!==r||ft(o)!==s;return c&&(n=r,o=s),{width:n,height:o,$:c}}function Tt(t){return W(t)?t:t.contextElement}function nt(t){const e=Tt(t);if(!V(e))return U(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:r}=qt(e);let s=(r?ft(n.width):n.width)/o,c=(r?ft(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const Ye=U(0);function Ut(t){const e=F(t);return!Et()||!e.visualViewport?Ye:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Xe(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==F(t)?!1:e}function G(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),r=Tt(t);let s=U(1);e&&(o?W(o)&&(s=nt(o)):s=nt(t));const c=Xe(r,n,o)?Ut(r):U(0);let a=(i.left+c.x)/s.x,l=(i.top+c.y)/s.y,f=i.width/s.x,d=i.height/s.y;if(r){const m=F(r),u=o&&W(o)?F(o):o;let p=m,h=Dt(p);for(;h&&o&&u!==p;){const w=nt(h),g=h.getBoundingClientRect(),x=z(h),b=g.left+(h.clientLeft+parseFloat(x.paddingLeft))*w.x,y=g.top+(h.clientTop+parseFloat(x.paddingTop))*w.y;a*=w.x,l*=w.y,f*=w.x,d*=w.y,a+=b,l+=y,p=F(h),h=Dt(p)}}return pt({width:f,height:d,x:a,y:l})}function je(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const r=i==="fixed",s=B(o),c=e?ht(e.floating):!1;if(o===s||c&&r)return n;let a={scrollLeft:0,scrollTop:0},l=U(1);const f=U(0),d=V(o);if((d||!d&&!r)&&((tt(o)!=="body"||rt(s))&&(a=gt(o)),V(o))){const m=G(o);l=nt(o),f.x=m.x+o.clientLeft,f.y=m.y+o.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-a.scrollLeft*l.x+f.x,y:n.y*l.y-a.scrollTop*l.y+f.y}}function qe(t){return Array.from(t.getClientRects())}function Lt(t,e){const n=gt(t).scrollLeft;return e?e.left+n:G(B(t)).left+n}function Ue(t){const e=B(t),n=gt(t),o=t.ownerDocument.body,i=N(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),r=N(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+Lt(t);const c=-n.scrollTop;return z(o).direction==="rtl"&&(s+=N(e.clientWidth,o.clientWidth)-i),{width:i,height:r,x:s,y:c}}function Ze(t,e){const n=F(t),o=B(t),i=n.visualViewport;let r=o.clientWidth,s=o.clientHeight,c=0,a=0;if(i){r=i.width,s=i.height;const l=Et();(!l||l&&e==="fixed")&&(c=i.offsetLeft,a=i.offsetTop)}return{width:r,height:s,x:c,y:a}}function Ke(t,e){const n=G(t,!0,e==="fixed"),o=n.top+t.clientTop,i=n.left+t.clientLeft,r=V(t)?nt(t):U(1),s=t.clientWidth*r.x,c=t.clientHeight*r.y,a=i*r.x,l=o*r.y;return{width:s,height:c,x:a,y:l}}function Zt(t,e,n){let o;if(e==="viewport")o=Ze(t,n);else if(e==="document")o=Ue(B(t));else if(W(e))o=Ke(e,n);else{const i=Ut(t);o={...e,x:e.x-i.x,y:e.y-i.y}}return pt(o)}function Kt(t,e){const n=K(t);return n===e||!W(n)||et(n)?!1:z(n).position==="fixed"||Kt(n,e)}function Ge(t,e){const n=e.get(t);if(n)return n;let o=st(t,[],!1).filter(c=>W(c)&&tt(c)!=="body"),i=null;const r=z(t).position==="fixed";let s=r?K(t):t;for(;W(s)&&!et(s);){const c=z(s),a=St(s);!a&&c.position==="fixed"&&(i=null),(r?!a&&!i:!a&&c.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||rt(s)&&!a&&Kt(t,s))?o=o.filter(f=>f!==s):i=c,s=K(s)}return e.set(t,o),o}function Je(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const s=[...n==="clippingAncestors"?ht(e)?[]:Ge(e,this._c):[].concat(n),o],c=s[0],a=s.reduce((l,f)=>{const d=Zt(e,f,i);return l.top=N(d.top,l.top),l.right=q(d.right,l.right),l.bottom=q(d.bottom,l.bottom),l.left=N(d.left,l.left),l},Zt(e,c,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function Qe(t){const{width:e,height:n}=qt(t);return{width:e,height:n}}function tn(t,e,n){const o=V(e),i=B(e),r=n==="fixed",s=G(t,!0,r,e);let c={scrollLeft:0,scrollTop:0};const a=U(0);if(o||!o&&!r)if((tt(e)!=="body"||rt(i))&&(c=gt(e)),o){const u=G(e,!0,r,e);a.x=u.x+e.clientLeft,a.y=u.y+e.clientTop}else i&&(a.x=Lt(i));let l=0,f=0;if(i&&!o&&!r){const u=i.getBoundingClientRect();f=u.top+c.scrollTop,l=u.left+c.scrollLeft-Lt(i,u)}const d=s.left+c.scrollLeft-a.x-l,m=s.top+c.scrollTop-a.y-f;return{x:d,y:m,width:s.width,height:s.height}}function Mt(t){return z(t).position==="static"}function Gt(t,e){if(!V(t)||z(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return B(t)===n&&(n=n.ownerDocument.body),n}function Jt(t,e){const n=F(t);if(ht(t))return n;if(!V(t)){let i=K(t);for(;i&&!et(i);){if(W(i)&&!Mt(i))return i;i=K(i)}return n}let o=Gt(t,e);for(;o&&Ve(o)&&Mt(o);)o=Gt(o,e);return o&&et(o)&&Mt(o)&&!St(o)?n:o||Ie(t)||n}const en=async function(t){const e=this.getOffsetParent||Jt,n=this.getDimensions,o=await n(t.floating);return{reference:tn(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function nn(t){return z(t).direction==="rtl"}const on={convertOffsetParentRelativeRectToViewportRelativeRect:je,getDocumentElement:B,getClippingRect:Je,getOffsetParent:Jt,getElementRects:en,getClientRects:qe,getDimensions:Qe,getScale:nt,isElement:W,isRTL:nn};function rn(t,e){let n=null,o;const i=B(t);function r(){var c;clearTimeout(o),(c=n)==null||c.disconnect(),n=null}function s(c,a){c===void 0&&(c=!1),a===void 0&&(a=1),r();const{left:l,top:f,width:d,height:m}=t.getBoundingClientRect();if(c||e(),!d||!m)return;const u=ut(f),p=ut(i.clientWidth-(l+d)),h=ut(i.clientHeight-(f+m)),w=ut(l),x={rootMargin:-u+"px "+-p+"px "+-h+"px "+-w+"px",threshold:N(0,q(1,a))||1};let b=!0;function y(v){const P=v[0].intersectionRatio;if(P!==a){if(!b)return s();P?s(!1,P):o=setTimeout(()=>{s(!1,1e-7)},1e3)}b=!1}try{n=new IntersectionObserver(y,{...x,root:i.ownerDocument})}catch{n=new IntersectionObserver(y,x)}n.observe(t)}return s(!0),r}function sn(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:a=!1}=o,l=Tt(t),f=i||r?[...l?st(l):[],...st(e)]:[];f.forEach(g=>{i&&g.addEventListener("scroll",n,{passive:!0}),r&&g.addEventListener("resize",n)});const d=l&&c?rn(l,n):null;let m=-1,u=null;s&&(u=new ResizeObserver(g=>{let[x]=g;x&&x.target===l&&u&&(u.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var b;(b=u)==null||b.observe(e)})),n()}),l&&!a&&u.observe(l),u.observe(e));let p,h=a?G(t):null;a&&w();function w(){const g=G(t);h&&(g.x!==h.x||g.y!==h.y||g.width!==h.width||g.height!==h.height)&&n(),h=g,p=requestAnimationFrame(w)}return n(),()=>{var g;f.forEach(x=>{i&&x.removeEventListener("scroll",n),r&&x.removeEventListener("resize",n)}),d?.(),(g=u)==null||g.disconnect(),u=null,a&&cancelAnimationFrame(p)}}const cn=We,ln=ze,an=Ne,fn=Be,un=Fe,Qt=ke,dn=_e,pn=(t,e,n)=>{const o=new Map,i={platform:on,...n},r={...i.platform,_c:o};return $e(t,e,{...i,platform:r})};var wt=typeof document<"u"?Ae:Wt;function xt(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,o,i;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(o=n;o--!==0;)if(!xt(t[o],e[o]))return!1;return!0}if(i=Object.keys(t),n=i.length,n!==Object.keys(e).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(e,i[o]))return!1;for(o=n;o--!==0;){const r=i[o];if(!(r==="_owner"&&t.$$typeof)&&!xt(t[r],e[r]))return!1}return!0}return t!==t&&e!==e}function te(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function ee(t,e){const n=te(t);return Math.round(e*n)/n}function $t(t){const e=J(t);return wt(()=>{e.current=t}),e}function mn(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:r,floating:s}={},transform:c=!0,whileElementsMounted:a,open:l}=t,[f,d]=I({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[m,u]=I(o);xt(m,o)||u(o);const[p,h]=I(null),[w,g]=I(null),x=yt(A=>{A!==P.current&&(P.current=A,h(A))},[]),b=yt(A=>{A!==O.current&&(O.current=A,g(A))},[]),y=r||p,v=s||w,P=J(null),O=J(null),D=J(f),k=a!=null,T=$t(a),M=$t(i),$=$t(l),C=yt(()=>{if(!P.current||!O.current)return;const A={placement:e,strategy:n,middleware:m};M.current&&(A.platform=M.current),pn(P.current,O.current,A).then(L=>{const _={...L,isPositioned:$.current!==!1};R.current&&!xt(D.current,_)&&(D.current=_,be(()=>{d(_)}))})},[m,e,n,M,$]);wt(()=>{l===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,d(A=>({...A,isPositioned:!1})))},[l]);const R=J(!1);wt(()=>(R.current=!0,()=>{R.current=!1}),[]),wt(()=>{if(y&&(P.current=y),v&&(O.current=v),y&&v){if(T.current)return T.current(y,v,C);C()}},[y,v,C,T,k]);const H=lt(()=>({reference:P,floating:O,setReference:x,setFloating:b}),[x,b]),S=lt(()=>({reference:y,floating:v}),[y,v]),E=lt(()=>{const A={position:n,left:0,top:0};if(!S.floating)return A;const L=ee(S.floating,f.x),_=ee(S.floating,f.y);return c?{...A,transform:"translate("+L+"px, "+_+"px)",...te(S.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:L,top:_}},[n,c,S.floating,f.x,f.y]);return lt(()=>({...f,update:C,refs:H,elements:S,floatingStyles:E}),[f,C,H,S,E])}const hn=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:o,padding:i}=typeof t=="function"?t(n):t;return o&&e(o)?o.current!=null?Qt({element:o.current,padding:i}).fn(n):{}:o?Qt({element:o,padding:i}).fn(n):{}}}},gn=(t,e)=>({...cn(t),options:[t,e]}),wn=(t,e)=>({...ln(t),options:[t,e]}),xn=(t,e)=>({...dn(t),options:[t,e]}),yn=(t,e)=>({...an(t),options:[t,e]}),vn=(t,e)=>({...fn(t),options:[t,e]}),bn=(t,e)=>({...un(t),options:[t,e]}),An=(t,e)=>({...hn(t),options:[t,e]});var Pn="Arrow",ne=at((t,e)=>{const{children:n,width:o=10,height:i=5,...r}=t;return Y(vt.svg,{...r,ref:e,width:o,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:Y("polygon",{points:"0,0 30,0 15,10"})})});ne.displayName=Pn;var Rn=ne;function On(t){const[e,n]=I(void 0);return bt(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const o=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const r=i[0];let s,c;if("borderBoxSize"in r){const a=r.borderBoxSize,l=Array.isArray(a)?a[0]:a;s=l.inlineSize,c=l.blockSize}else s=t.offsetWidth,c=t.offsetHeight;n({width:s,height:c})});return o.observe(t,{box:"border-box"}),()=>o.unobserve(t)}else n(void 0)},[t]),e}var kt="Popper",[oe,Cn]=Pe(kt),[Sn,ie]=oe(kt),re=t=>{const{__scopePopper:e,children:n}=t,[o,i]=I(null);return Y(Sn,{scope:e,anchor:o,onAnchorChange:i,children:n})};re.displayName=kt;var se="PopperAnchor",ce=at((t,e)=>{const{__scopePopper:n,virtualRef:o,...i}=t,r=ie(se,n),s=J(null),c=zt(e,s);return Wt(()=>{r.onAnchorChange(o?.current||s.current)}),o?null:Y(vt.div,{...i,ref:c})});ce.displayName=se;var Nt="PopperContent",[En,Dn]=oe(Nt),le=at((t,e)=>{const{__scopePopper:n,side:o="bottom",sideOffset:i=0,align:r="center",alignOffset:s=0,arrowPadding:c=0,avoidCollisions:a=!0,collisionBoundary:l=[],collisionPadding:f=0,sticky:d="partial",hideWhenDetached:m=!1,updatePositionStrategy:u="optimized",onPlaced:p,...h}=t,w=ie(Nt,n),[g,x]=I(null),b=zt(e,ot=>x(ot)),[y,v]=I(null),P=On(y),O=P?.width??0,D=P?.height??0,k=o+(r!=="center"?"-"+r:""),T=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},M=Array.isArray(l)?l:[l],$=M.length>0,C={padding:T,boundary:M.filter(Ln),altBoundary:$},{refs:R,floatingStyles:H,placement:S,isPositioned:E,middlewareData:A}=mn({strategy:"fixed",placement:k,whileElementsMounted:(...ot)=>sn(...ot,{animationFrame:u==="always"}),elements:{reference:w.anchor},middleware:[gn({mainAxis:i+D,alignmentAxis:s}),a&&wn({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?xn():void 0,...C}),a&&yn({...C}),vn({...C,apply:({elements:ot,rects:Ht,availableWidth:we,availableHeight:xe})=>{const{width:ye,height:ve}=Ht.reference,ct=ot.floating.style;ct.setProperty("--radix-popper-available-width",`${we}px`),ct.setProperty("--radix-popper-available-height",`${xe}px`),ct.setProperty("--radix-popper-anchor-width",`${ye}px`),ct.setProperty("--radix-popper-anchor-height",`${ve}px`)}}),y&&An({element:y,padding:c}),Mn({arrowWidth:O,arrowHeight:D}),m&&bn({strategy:"referenceHidden",...C})]}),[L,_]=ue(S),Ft=Re(p);bt(()=>{E&&Ft?.()},[E,Ft]);const de=A.arrow?.x,pe=A.arrow?.y,me=A.arrow?.centerOffset!==0,[he,ge]=I();return bt(()=>{g&&ge(window.getComputedStyle(g).zIndex)},[g]),Y("div",{ref:R.setFloating,"data-radix-popper-content-wrapper":"",style:{...H,transform:E?H.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:he,["--radix-popper-transform-origin"]:[A.transformOrigin?.x,A.transformOrigin?.y].join(" "),...A.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:Y(En,{scope:n,placedSide:L,onArrowChange:v,arrowX:de,arrowY:pe,shouldHideArrow:me,children:Y(vt.div,{"data-side":L,"data-align":_,...h,ref:b,style:{...h.style,animation:E?void 0:"none"}})})})});le.displayName=Nt;var ae="PopperArrow",Tn={top:"bottom",right:"left",bottom:"top",left:"right"},fe=at(function(e,n){const{__scopePopper:o,...i}=e,r=Dn(ae,o),s=Tn[r.placedSide];return Y("span",{ref:r.onArrowChange,style:{position:"absolute",left:r.arrowX,top:r.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[r.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[r.placedSide],visibility:r.shouldHideArrow?"hidden":void 0},children:Y(Rn,{...i,ref:n,style:{...i.style,display:"block"}})})});fe.displayName=ae;function Ln(t){return t!==null}var Mn=t=>({name:"transformOrigin",options:t,fn(e){const{placement:n,rects:o,middlewareData:i}=e,s=i.arrow?.centerOffset!==0,c=s?0:t.arrowWidth,a=s?0:t.arrowHeight,[l,f]=ue(n),d={start:"0%",center:"50%",end:"100%"}[f],m=(i.arrow?.x??0)+c/2,u=(i.arrow?.y??0)+a/2;let p="",h="";return l==="bottom"?(p=s?d:`${m}px`,h=`${-a}px`):l==="top"?(p=s?d:`${m}px`,h=`${o.floating.height+a}px`):l==="right"?(p=`${-a}px`,h=s?d:`${u}px`):l==="left"&&(p=`${o.floating.width+a}px`,h=s?d:`${u}px`),{data:{x:p,y:h}}}});function ue(t){const[e,n="center"]=t.split("-");return[e,n]}var $n=re,kn=ce,Nn=le,Fn=fe;export{kn as A,Nn as C,$n as R,Fn as a,Cn as c};
@@ -0,0 +1 @@
1
+ import{G as S,T as d,u as P,x as l}from"./register-C3moBjIu.js";function w(t,c){const o=S(c),i=r=>{const{children:e,...n}=r,s=d(()=>n,Object.values(n));return P(o.Provider,{value:s,children:e})};i.displayName=t+"Provider";function u(r){const e=l(o);if(e)return e;if(c!==void 0)return c;throw new Error(`\`${r}\` must be used within \`${t}\``)}return[i,u]}function C(t,c=[]){let o=[];function i(r,e){const n=S(e),s=o.length;o=[...o,e];const a=p=>{const{scope:v,children:f,...x}=p,m=v?.[t]?.[s]||n,$=d(()=>x,Object.values(x));return P(m.Provider,{value:$,children:f})};a.displayName=r+"Provider";function h(p,v){const f=v?.[t]?.[s]||n,x=l(f);if(x)return x;if(e!==void 0)return e;throw new Error(`\`${p}\` must be used within \`${r}\``)}return[a,h]}const u=()=>{const r=o.map(e=>S(e));return function(n){const s=n?.[t]||r;return d(()=>({[`__scope${t}`]:{...n,[t]:s}}),[n,s])}};return u.scopeName=t,[i,_(u,...c)]}function _(...t){const c=t[0];if(t.length===1)return c;const o=()=>{const i=t.map(u=>({useScope:u(),scopeName:u.scopeName}));return function(r){const e=i.reduce((n,{useScope:s,scopeName:a})=>{const p=s(r)[`__scope${a}`];return{...n,...p}},{});return d(()=>({[`__scope${c.scopeName}`]:e}),[e])}};return o.scopeName=c.scopeName,o}export{C as a,w as c};
@@ -0,0 +1 @@
1
+ import{j as p,u as l}from"./register-C3moBjIu.js";import{c as S}from"./index-CDZENU78.js";import{P as G}from"./index-BqbX3HxW.js";import{c as T,u as V,R as A,I as F}from"./index-D0zvC3sp.js";import{T as M}from"./index-Dzd2aF1H.js";import{u as P}from"./index-BKn4CimT.js";var v="ToggleGroup",[C,z]=S(v,[T]),I=T(),f=p.forwardRef((e,r)=>{const{type:a,...t}=e;if(a==="single")return l(w,{...t,ref:r});if(a==="multiple")return l(D,{...t,ref:r});throw new Error(`Missing prop \`type\` expected on \`${v}\``)});f.displayName=v;var[_,h]=C(v),w=p.forwardRef((e,r)=>{const{value:a,defaultValue:t,onValueChange:s=()=>{},...u}=e,[n,o]=P({prop:a,defaultProp:t,onChange:s});return l(_,{scope:e.__scopeToggleGroup,type:"single",value:n?[n]:[],onItemActivate:o,onItemDeactivate:p.useCallback(()=>o(""),[o]),children:l(x,{...u,ref:r})})}),D=p.forwardRef((e,r)=>{const{value:a,defaultValue:t,onValueChange:s=()=>{},...u}=e,[n=[],o]=P({prop:a,defaultProp:t,onChange:s}),c=p.useCallback(i=>o((g=[])=>[...g,i]),[o]),m=p.useCallback(i=>o((g=[])=>g.filter(y=>y!==i)),[o]);return l(_,{scope:e.__scopeToggleGroup,type:"multiple",value:n,onItemActivate:c,onItemDeactivate:m,children:l(x,{...u,ref:r})})});f.displayName=v;var[E,N]=C(v),x=p.forwardRef((e,r)=>{const{__scopeToggleGroup:a,disabled:t=!1,rovingFocus:s=!0,orientation:u,dir:n,loop:o=!0,...c}=e,m=I(a),i=V(n),g={role:"group",dir:i,...c};return l(E,{scope:a,rovingFocus:s,disabled:t,children:s?l(A,{asChild:!0,...m,orientation:u,dir:i,loop:o,children:l(G.div,{...g,ref:r})}):l(G.div,{...g,ref:r})})}),d="ToggleGroupItem",R=p.forwardRef((e,r)=>{const a=h(d,e.__scopeToggleGroup),t=N(d,e.__scopeToggleGroup),s=I(e.__scopeToggleGroup),u=a.value.includes(e.value),n=t.disabled||e.disabled,o={...e,pressed:u,disabled:n},c=p.useRef(null);return t.rovingFocus?l(F,{asChild:!0,...s,focusable:!n,active:u,ref:c,children:l(b,{...o,ref:r})}):l(b,{...o,ref:r})});R.displayName=d;var b=p.forwardRef((e,r)=>{const{__scopeToggleGroup:a,value:t,...s}=e,u=h(d,a),n={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},o=u.type==="single"?n:void 0;return l(M,{...o,...s,ref:r,onPressedChange:c=>{c?u.onItemActivate(t):u.onItemDeactivate(t)}})}),k=f,B=R;export{B as I,k as R};
@@ -0,0 +1 @@
1
+ import{w as n,u as f}from"./register-C3moBjIu.js";import{c as m}from"./index-CBrz5xtv.js";import{u as p}from"./index-BKn4CimT.js";import{P as u}from"./index-BqbX3HxW.js";var P="Toggle",s=n((e,a)=>{const{pressed:t,defaultPressed:r=!1,onPressedChange:d,...i}=e,[o=!1,l]=p({prop:t,onChange:d,defaultProp:r});return f(u.button,{type:"button","aria-pressed":o,"data-state":o?"on":"off","data-disabled":e.disabled?"":void 0,...i,ref:a,onClick:m(e.onClick,()=>{e.disabled||l(!o)})})});s.displayName=P;var b=s;export{b as R,s as T};
@@ -0,0 +1 @@
1
+ import{c as o}from"./register-C3moBjIu.js";var a=Boolean(globalThis?.document)?o:()=>{};export{a as u};
@@ -1 +1 @@
1
- import{k as e,u as o}from"./register-CuIip76E.js";import{P as t}from"./index-BoCoJ_rP.js";var d="VisuallyHidden",r=e((i,a)=>o(t.span,{...i,ref:a,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...i.style}}));r.displayName=d;var l=r;export{l as R,r as V};
1
+ import{w as e,u as o}from"./register-C3moBjIu.js";import{P as t}from"./index-BqbX3HxW.js";var d="VisuallyHidden",r=e((i,a)=>o(t.span,{...i,ref:a,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...i.style}}));r.displayName=d;var l=r;export{l as R,r as V};
@@ -0,0 +1 @@
1
+ import{w as m,u as l,q as w,h as D,A as p,y as M}from"./register-C3moBjIu.js";import{c as L}from"./index-CBrz5xtv.js";import{a as F}from"./index-DopfdxOl.js";import{u as k}from"./index-BKn4CimT.js";import{u as q}from"./index-KglZqSgk.js";import{u as B}from"./index-D_ysjKuQ.js";import{P as v}from"./index-BqbX3HxW.js";import{P as G}from"./index-ssDZp9pU.js";import{u as $}from"./index-C9YNJrFj.js";var g="Collapsible",[H,oe]=F(g),[j,h]=H(g),E=m((e,a)=>{const{__scopeCollapsible:r,open:o,defaultOpen:t,disabled:s,onOpenChange:i,...C}=e,[d=!1,c]=k({prop:o,defaultProp:t,onChange:i});return l(j,{scope:r,disabled:s,contentId:$(),open:d,onOpenToggle:w(()=>c(f=>!f),[c]),children:l(v.div,{"data-state":P(d),"data-disabled":s?"":void 0,...C,ref:a})})});E.displayName=g;var I="CollapsibleTrigger",O=m((e,a)=>{const{__scopeCollapsible:r,...o}=e,t=h(I,r);return l(v.button,{type:"button","aria-controls":t.contentId,"aria-expanded":t.open||!1,"data-state":P(t.open),"data-disabled":t.disabled?"":void 0,disabled:t.disabled,...o,ref:a,onClick:L(e.onClick,t.onOpenToggle)})});O.displayName=I;var y="CollapsibleContent",S=m((e,a)=>{const{forceMount:r,...o}=e,t=h(y,e.__scopeCollapsible);return l(G,{present:r||t.open,children:({present:s})=>l(z,{...o,ref:a,present:s})})});S.displayName=y;var z=m((e,a)=>{const{__scopeCollapsible:r,present:o,children:t,...s}=e,i=h(y,r),[C,d]=D(o),c=p(null),f=B(a,c),N=p(0),x=N.current,R=p(0),_=R.current,b=i.open||C,A=p(b),u=p();return M(()=>{const n=requestAnimationFrame(()=>A.current=!1);return()=>cancelAnimationFrame(n)},[]),q(()=>{const n=c.current;if(n){u.current=u.current||{transitionDuration:n.style.transitionDuration,animationName:n.style.animationName},n.style.transitionDuration="0s",n.style.animationName="none";const T=n.getBoundingClientRect();N.current=T.height,R.current=T.width,A.current||(n.style.transitionDuration=u.current.transitionDuration,n.style.animationName=u.current.animationName),d(o)}},[i.open,o]),l(v.div,{"data-state":P(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!b,...s,ref:f,style:{["--radix-collapsible-content-height"]:x?`${x}px`:void 0,["--radix-collapsible-content-width"]:_?`${_}px`:void 0,...e.style},children:b&&t})});function P(e){return e?"open":"closed"}var J=E,K=O,Q=S;export{Q as C,J as R,K as T};