@react-pdf-kit/viewer 2.6.0-beta.2 → 2.6.0

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 (343) hide show
  1. package/dist/AnnotationLayer-D6BfL976.js +113 -0
  2. package/dist/Button-jStpvb3T.js +21 -0
  3. package/dist/Checkbox-Brta-YKG.js +195 -0
  4. package/dist/Combination-DqNkTtir.js +695 -0
  5. package/dist/Container-DTWaZzc7.js +16 -0
  6. package/dist/CustomThumbnailElement-C2quEICO.js +19 -0
  7. package/dist/DarkPdfIcon-B5ehd9CV.js +9 -0
  8. package/dist/DocumentDialog-DHAWcYIz.js +324 -0
  9. package/dist/DropDown-DikL-krI.js +33 -0
  10. package/dist/Input-Bb_-ljl1.js +31 -0
  11. package/dist/LightPdfIcon-DL8MYtWQ.js +9 -0
  12. package/dist/LoaderIcon-D9YjinGf.js +14 -0
  13. package/dist/LoadingIndicator-MWrbKa6X.js +45 -0
  14. package/dist/MenuItem-BJDWfzAw.js +15 -0
  15. package/dist/MenuSeparator-D1H5l8Ej.js +6 -0
  16. package/dist/MostPageTool.module-BRVv-sGz.js +4 -0
  17. package/dist/OtherTool.module-BQY9Nfqz.js +4 -0
  18. package/dist/Paginate.module-B0GMw-MB.js +8 -0
  19. package/dist/PaginationContext--n91mIJ4.js +232 -0
  20. package/dist/PasswordModal-BDHdSpxf.js +76 -0
  21. package/dist/PropertyItem-evJWWmWZ.js +18 -0
  22. package/dist/RPDropFileZone-BunRfzst.js +35 -0
  23. package/dist/RPLayout.module-Vc3h4xxS.js +14 -0
  24. package/dist/RPPage-BuSGUFzw.js +91 -0
  25. package/dist/RPPages-V5CNUXFD.js +1007 -0
  26. package/dist/RPSplitter-C63X9M8w.js +121 -0
  27. package/dist/RPToolbar.module-BwqWLviy.js +10 -0
  28. package/dist/RPTooltip-ZZoFqP7C.js +381 -0
  29. package/dist/RotateTool.module-DH5yWbvM.js +4 -0
  30. package/dist/SearchTool.module-DUkVXfOn.js +16 -0
  31. package/dist/SkipLink-Bvbn3miT.js +18 -0
  32. package/dist/TextHighlightLayer-BSVgBxR3.js +157 -0
  33. package/dist/TextLayer-DWGFN9SF.js +125 -0
  34. package/dist/Thumbnail-Dwo2-4Ki.js +97 -0
  35. package/dist/Thumbnails-ComClyJJ.js +52 -0
  36. package/dist/ToolbarLayout.module-Zo715dbb.js +12 -0
  37. package/dist/WrapperLayout-Dcd9l9xH.js +13 -0
  38. package/dist/ZoomTool.module-BrIPy8pO.js +11 -0
  39. package/dist/assets/AnnotationLayer.css +1 -0
  40. package/dist/assets/Button.css +1 -0
  41. package/dist/assets/Checkbox.css +1 -0
  42. package/dist/assets/Container.css +1 -0
  43. package/dist/assets/CustomThumbnailElement.css +1 -0
  44. package/dist/assets/DocumentDialog.css +1 -0
  45. package/dist/assets/DropDown.css +1 -0
  46. package/dist/assets/Input.css +1 -0
  47. package/dist/assets/LoaderIcon.css +1 -0
  48. package/dist/assets/LoadingIndicator.css +1 -0
  49. package/dist/assets/MenuItem.css +1 -0
  50. package/dist/assets/MenuSeparator.css +1 -0
  51. package/dist/assets/MostPageTool.css +1 -0
  52. package/dist/assets/OtherTool.css +1 -0
  53. package/dist/assets/Paginate.css +1 -0
  54. package/dist/assets/PasswordModal.css +1 -0
  55. package/dist/assets/PropertyItem.css +1 -0
  56. package/dist/assets/RPDropFileZone.css +1 -0
  57. package/dist/assets/RPLayout.css +1 -0
  58. package/dist/assets/RPPage.css +1 -0
  59. package/dist/assets/RPPages.css +1 -0
  60. package/dist/assets/RPSplitter.css +1 -0
  61. package/dist/assets/RPToolbar.css +1 -0
  62. package/dist/assets/RPTooltip.css +1 -0
  63. package/dist/assets/RotateTool.css +1 -0
  64. package/dist/assets/SearchTool.css +1 -0
  65. package/dist/assets/SkipLink.css +1 -0
  66. package/dist/assets/TextHighlightLayer.css +1 -0
  67. package/dist/assets/TextLayer.css +1 -0
  68. package/dist/assets/Thumbnail.css +1 -0
  69. package/dist/assets/Thumbnails.css +1 -0
  70. package/dist/assets/ToolbarLayout.css +1 -0
  71. package/dist/assets/WrapperLayout.css +1 -0
  72. package/dist/assets/ZoomTool.css +1 -0
  73. package/dist/assets/style.js +2 -77
  74. package/dist/chunk-C_CI6nMA.js +13 -0
  75. package/dist/clsx-B7LyVm5O.js +16 -0
  76. package/dist/components/RPConfig.js +24 -26
  77. package/dist/components/RPController.js +85 -135
  78. package/dist/components/RPDropFileZone.js +3 -61
  79. package/dist/components/RPPages.js +3 -1115
  80. package/dist/components/RPProvider.js +50 -131
  81. package/dist/components/RPTheme.js +20 -21
  82. package/dist/components/icons/CheckIcon.js +16 -22
  83. package/dist/components/icons/ChevronDownIcon.js +17 -23
  84. package/dist/components/icons/ChevronUpIcon.js +16 -22
  85. package/dist/components/icons/ClearIcon.js +26 -25
  86. package/dist/components/icons/ClockwiseIcon.js +16 -22
  87. package/dist/components/icons/CloseIcon.js +16 -22
  88. package/dist/components/icons/DarkPdfIcon.js +2 -15
  89. package/dist/components/icons/DualPageIcon.js +16 -22
  90. package/dist/components/icons/DualPageWithCoverIcon.js +16 -22
  91. package/dist/components/icons/FileDownloadDefaultIcon.js +20 -23
  92. package/dist/components/icons/FileUploadDefaultIcon.js +20 -23
  93. package/dist/components/icons/FullScreenIcon.js +16 -22
  94. package/dist/components/icons/GoToDownIcon.js +16 -22
  95. package/dist/components/icons/HandModeDefaultIcon.js +16 -22
  96. package/dist/components/icons/HorizontalScrollingIcon.js +18 -24
  97. package/dist/components/icons/InfoIcon.js +16 -22
  98. package/dist/components/icons/LightPdfIcon.js +2 -15
  99. package/dist/components/icons/LoaderIcon.js +2 -17
  100. package/dist/components/icons/MoonIcon.js +16 -22
  101. package/dist/components/icons/PageScrollingIcon.js +18 -24
  102. package/dist/components/icons/PrintDefaultIcon.js +20 -23
  103. package/dist/components/icons/SearchIcon.js +16 -22
  104. package/dist/components/icons/SinglePageIcon.js +15 -21
  105. package/dist/components/icons/SunIcon.js +26 -25
  106. package/dist/components/icons/TextSelectionDefaultIcon.js +20 -23
  107. package/dist/components/icons/ThreeDotIcon.js +16 -22
  108. package/dist/components/icons/Thumbnail.js +39 -54
  109. package/dist/components/icons/VerticalScrollingIcon.js +18 -24
  110. package/dist/components/icons/WrappedScrollingIcon.js +18 -24
  111. package/dist/components/icons/ZoomInIcon.js +16 -22
  112. package/dist/components/icons/ZoomOutIcon.js +16 -22
  113. package/dist/components/layout/Container.js +2 -21
  114. package/dist/components/layout/LayoutContainer.js +23 -34
  115. package/dist/components/layout/LayoutWrapper.js +14 -10
  116. package/dist/components/layout/RPDefaultLayout.js +99 -244
  117. package/dist/components/layout/RPLayout.js +70 -220
  118. package/dist/components/layout/SkipLink.js +3 -29
  119. package/dist/components/layout/WrapperLayout.js +2 -27
  120. package/dist/components/layout/sidebar/CustomThumbnailElement.js +2 -68
  121. package/dist/components/layout/sidebar/RPSidebar.js +61 -112
  122. package/dist/components/layout/sidebar/RPSplitter.js +2 -9
  123. package/dist/components/layout/sidebar/Thumbnail.js +3 -155
  124. package/dist/components/layout/sidebar/Thumbnails.js +2 -82
  125. package/dist/components/layout/toolbar/DarkModeTool.js +44 -36
  126. package/dist/components/layout/toolbar/DocumentDialog.js +2 -322
  127. package/dist/components/layout/toolbar/DocumentProperties.js +30 -39
  128. package/dist/components/layout/toolbar/FileDownloadTool.js +54 -50
  129. package/dist/components/layout/toolbar/FileUploadTool.js +54 -49
  130. package/dist/components/layout/toolbar/FullScreenTool.js +62 -72
  131. package/dist/components/layout/toolbar/MenuItem.js +2 -19
  132. package/dist/components/layout/toolbar/MenuSeparator.js +2 -15
  133. package/dist/components/layout/toolbar/MostPageTool.js +62 -81
  134. package/dist/components/layout/toolbar/OtherTool.js +97 -198
  135. package/dist/components/layout/toolbar/Paginate.js +111 -145
  136. package/dist/components/layout/toolbar/PrintTool.js +70 -72
  137. package/dist/components/layout/toolbar/PropertyItem.js +2 -12
  138. package/dist/components/layout/toolbar/RPMenuItem.js +22 -31
  139. package/dist/components/layout/toolbar/RPMoreOptions.js +140 -220
  140. package/dist/components/layout/toolbar/RPToolbar.js +45 -151
  141. package/dist/components/layout/toolbar/RPToolbarEnd.js +23 -121
  142. package/dist/components/layout/toolbar/RotateTool.js +49 -60
  143. package/dist/components/layout/toolbar/ScrollModeTool.js +79 -67
  144. package/dist/components/layout/toolbar/SearchCloseButton.js +23 -31
  145. package/dist/components/layout/toolbar/SearchResultNavigator.js +39 -100
  146. package/dist/components/layout/toolbar/SearchTool.js +226 -267
  147. package/dist/components/layout/toolbar/SelectionModeTool.js +59 -51
  148. package/dist/components/layout/toolbar/ThumbnailTool.js +30 -39
  149. package/dist/components/layout/toolbar/ToolbarCustom.js +56 -113
  150. package/dist/components/layout/toolbar/ToolbarDefault.js +58 -196
  151. package/dist/components/layout/toolbar/ToolbarLayout.js +12 -158
  152. package/dist/components/layout/toolbar/ViewModeTool.js +82 -62
  153. package/dist/components/layout/toolbar/ZoomTool.js +139 -150
  154. package/dist/components/layout/toolbar/tools/DocumentPropertiesTool.js +24 -54
  155. package/dist/components/layout/toolbar/tools/DualPageTool.js +23 -25
  156. package/dist/components/layout/toolbar/tools/DualPageWithCoverTool.js +2 -206
  157. package/dist/components/layout/toolbar/tools/FileDownloadTool.js +23 -35
  158. package/dist/components/layout/toolbar/tools/FileUploadTool.js +23 -34
  159. package/dist/components/layout/toolbar/tools/FirstPageTool.js +2 -201
  160. package/dist/components/layout/toolbar/tools/FullScreenTool.js +25 -33
  161. package/dist/components/layout/toolbar/tools/HorizontalScrollingTool.js +24 -36
  162. package/dist/components/layout/toolbar/tools/InputPageTool.js +51 -92
  163. package/dist/components/layout/toolbar/tools/LastPageTool.js +2 -201
  164. package/dist/components/layout/toolbar/tools/NextPageTool.js +32 -61
  165. package/dist/components/layout/toolbar/tools/PageScrollingTool.js +24 -36
  166. package/dist/components/layout/toolbar/tools/PreviousPageTool.js +21 -62
  167. package/dist/components/layout/toolbar/tools/PrintTool.js +23 -35
  168. package/dist/components/layout/toolbar/tools/RotateClockwiseTool.js +23 -47
  169. package/dist/components/layout/toolbar/tools/RotateCounterclockwiseTool.js +26 -47
  170. package/dist/components/layout/toolbar/tools/SelectionModeSwitcherTool.js +29 -38
  171. package/dist/components/layout/toolbar/tools/SinglePageTool.js +22 -24
  172. package/dist/components/layout/toolbar/tools/ThemeSwitcherTool.js +24 -35
  173. package/dist/components/layout/toolbar/tools/ThumbnailTool.js +24 -46
  174. package/dist/components/layout/toolbar/tools/VerticalScrollingTool.js +24 -36
  175. package/dist/components/layout/toolbar/tools/ZoomInTool.js +29 -58
  176. package/dist/components/layout/toolbar/tools/ZoomLevelDisplay.js +26 -26
  177. package/dist/components/layout/toolbar/tools/ZoomLevelTool.js +94 -133
  178. package/dist/components/layout/toolbar/tools/ZoomOutTool.js +29 -58
  179. package/dist/components/layout/toolbar/tools/defaults/RPHorizontalBar.js +60 -148
  180. package/dist/components/layout/toolbar/tools/defaults/RPVerticalBar.js +31 -42
  181. package/dist/components/layout/toolbar/tools/more-options/DocumentProperties.js +23 -28
  182. package/dist/components/layout/toolbar/tools/more-options/FileDownloadTool.js +25 -52
  183. package/dist/components/layout/toolbar/tools/more-options/FileUploadTool.js +25 -51
  184. package/dist/components/layout/toolbar/tools/more-options/FullScreenTool.js +26 -42
  185. package/dist/components/layout/toolbar/tools/more-options/MostPageTool.js +57 -87
  186. package/dist/components/layout/toolbar/tools/more-options/PrintTool.js +25 -52
  187. package/dist/components/layout/toolbar/tools/more-options/RotateTool.js +44 -64
  188. package/dist/components/layout/toolbar/tools/more-options/ScrollModeTool.js +80 -71
  189. package/dist/components/layout/toolbar/tools/more-options/SelectionModeTool.js +59 -57
  190. package/dist/components/layout/toolbar/tools/more-options/ViewModeTool.js +79 -66
  191. package/dist/components/page/AnnotationLayer.js +2 -146
  192. package/dist/components/page/CanvasLayer.js +47 -71
  193. package/dist/components/page/CustomElement.js +18 -53
  194. package/dist/components/page/DualPage.js +43 -98
  195. package/dist/components/page/DualPageWithCover.js +66 -130
  196. package/dist/components/page/RPPage.js +2 -143
  197. package/dist/components/page/SinglePage.js +27 -88
  198. package/dist/components/page/TextHighlightLayer.js +2 -198
  199. package/dist/components/page/TextLayer.js +2 -202
  200. package/dist/components/page/searchHighlight.js +32 -37
  201. package/dist/components/ui/Button.js +2 -25
  202. package/dist/components/ui/Checkbox.js +2 -273
  203. package/dist/components/ui/DropDown.js +2 -36
  204. package/dist/components/ui/Input.js +2 -28
  205. package/dist/components/ui/LoadingIndicator.js +2 -59
  206. package/dist/components/ui/PasswordModal.js +2 -75
  207. package/dist/components/ui/RPTooltip.js +2 -357
  208. package/dist/contexts/ConfigContext.js +13 -12
  209. package/dist/contexts/DarkModeContext.js +26 -27
  210. package/dist/contexts/DimensionPagesContext.js +49 -60
  211. package/dist/contexts/DocumentPasswordContext.js +37 -35
  212. package/dist/contexts/DownloadContext.js +13 -21
  213. package/dist/contexts/DropFileZoneContext.js +35 -62
  214. package/dist/contexts/ElementPageContext.js +114 -139
  215. package/dist/contexts/ElementThumbnailContext.js +132 -195
  216. package/dist/contexts/EventCallbackContext.js +19 -34
  217. package/dist/contexts/FileInputContext.js +30 -49
  218. package/dist/contexts/FullScreenContext.js +31 -24
  219. package/dist/contexts/GlobalCurrentPage.js +21 -18
  220. package/dist/contexts/HighlightContext.js +22 -31
  221. package/dist/contexts/IconContext.js +9 -11
  222. package/dist/contexts/IconToolContext.js +14 -11
  223. package/dist/contexts/InitialStateContext.js +9 -11
  224. package/dist/contexts/LayerContext.js +9 -8
  225. package/dist/contexts/LayoutContainerContext.js +12 -16
  226. package/dist/contexts/LayoutDropFileZoneContext.js +8 -11
  227. package/dist/contexts/LicenseContext.js +12 -17
  228. package/dist/contexts/LoaderContext.js +14 -27
  229. package/dist/contexts/LocalizationContext.js +22 -33
  230. package/dist/contexts/OtherToolContext.js +17 -17
  231. package/dist/contexts/PageViewportContext.js +9 -8
  232. package/dist/contexts/PagesRotateContext.js +42 -43
  233. package/dist/contexts/PaginationContext.js +2 -40
  234. package/dist/contexts/PrintContext.js +67 -78
  235. package/dist/contexts/RPDocumentContext.js +60 -73
  236. package/dist/contexts/RenderQueueProvider.js +43 -72
  237. package/dist/contexts/RenderedPagesCache.js +17 -13
  238. package/dist/contexts/RotationContext.js +27 -38
  239. package/dist/contexts/ScrollModeContext.js +22 -20
  240. package/dist/contexts/SearchContext.js +39 -97
  241. package/dist/contexts/SelectionModeContext.js +22 -23
  242. package/dist/contexts/SmoothScrollContext.js +18 -16
  243. package/dist/contexts/ThemeContext.js +5 -7
  244. package/dist/contexts/ThumbnailsContext.js +26 -43
  245. package/dist/contexts/ToolComponentContext.js +54 -51
  246. package/dist/contexts/ToolbarComponentContext.js +48 -47
  247. package/dist/contexts/ViewModeContext.js +34 -31
  248. package/dist/contexts/ViewportContext.js +91 -85
  249. package/dist/contexts/VirtualGridContext.js +17 -14
  250. package/dist/contexts/VirtualScrollContext.js +42 -52
  251. package/dist/contexts/ZoomContext.js +95 -107
  252. package/dist/de_DE--0LF-SJR.js +483 -0
  253. package/dist/dist-7FA4Do6I.js +1286 -0
  254. package/dist/dist-BRVqFn7R.js +144 -0
  255. package/dist/dist-C3WNMuW2.js +29 -0
  256. package/dist/dist-CKteKPPA.js +947 -0
  257. package/dist/dist-bK-AHWLF.js +314 -0
  258. package/dist/lib-BiapEtK1.js +10261 -0
  259. package/dist/libInjectCss.js +7 -8
  260. package/dist/main-CHO5p1qM.js +60 -0
  261. package/dist/main.js +53 -296
  262. package/dist/style-9n_QpMZt.js +5 -0
  263. package/dist/useWatermark-CvAAf66v.js +67 -0
  264. package/dist/utils/Queue.js +40 -46
  265. package/dist/utils/annotations.js +227 -261
  266. package/dist/utils/appConsole.js +24 -42
  267. package/dist/utils/approximateFragtion.js +16 -21
  268. package/dist/utils/calculatePage.js +29 -20
  269. package/dist/utils/charators.js +39 -48
  270. package/dist/utils/const.js +8 -11
  271. package/dist/utils/constants.js +4 -8
  272. package/dist/utils/convertPdfDate.js +20 -24
  273. package/dist/utils/dateFormatter.js +7 -7
  274. package/dist/utils/elementPagePosition.js +10 -10
  275. package/dist/utils/formatFileSize.js +17 -8
  276. package/dist/utils/getElementPositionInPage.js +44 -82
  277. package/dist/utils/getScrollDistance.js +4 -4
  278. package/dist/utils/getThumbnailViewport.js +12 -6
  279. package/dist/utils/getWordPositionInPage.js +24 -24
  280. package/dist/utils/getZoomLevel.js +16 -23
  281. package/dist/utils/highlight.js +195 -212
  282. package/dist/utils/hooks/useCopyText.js +23 -33
  283. package/dist/utils/hooks/useDarkMode.js +10 -10
  284. package/dist/utils/hooks/useDarkModeProps.js +9 -10
  285. package/dist/utils/hooks/useDebounce.js +22 -18
  286. package/dist/utils/hooks/useDropFileZone.js +13 -11
  287. package/dist/utils/hooks/useElementSize.js +24 -20
  288. package/dist/utils/hooks/useFileDownload.js +16 -33
  289. package/dist/utils/hooks/useFlickerSelectText.js +19 -24
  290. package/dist/utils/hooks/useFullScreen.js +31 -28
  291. package/dist/utils/hooks/useGrabScroll.js +52 -51
  292. package/dist/utils/hooks/useHighlight.js +92 -92
  293. package/dist/utils/hooks/useInfiniteScroll.js +17 -18
  294. package/dist/utils/hooks/useLicense.js +113 -135
  295. package/dist/utils/hooks/useLoadPdf.js +107 -100
  296. package/dist/utils/hooks/useLoadWorker.js +13 -15
  297. package/dist/utils/hooks/useLocalization.js +25 -25
  298. package/dist/utils/hooks/useMousePressed.js +25 -19
  299. package/dist/utils/hooks/usePageRotateContext.js +25 -41
  300. package/dist/utils/hooks/usePaginate.js +2 -38
  301. package/dist/utils/hooks/usePdfProperties.js +38 -36
  302. package/dist/utils/hooks/usePinch.js +65 -100
  303. package/dist/utils/hooks/usePresentPage.js +69 -92
  304. package/dist/utils/hooks/usePrint.js +167 -178
  305. package/dist/utils/hooks/useRequestAnimationFrame.js +16 -16
  306. package/dist/utils/hooks/useResizeObserver.js +18 -21
  307. package/dist/utils/hooks/useRotate.js +15 -27
  308. package/dist/utils/hooks/useScrollToPage.js +2 -38
  309. package/dist/utils/hooks/useSearch.js +125 -163
  310. package/dist/utils/hooks/useTextSelection.js +69 -75
  311. package/dist/utils/hooks/useThumbnail.js +42 -59
  312. package/dist/utils/hooks/useVirtualReactWindow.js +85 -96
  313. package/dist/utils/hooks/useWatermark.js +2 -78
  314. package/dist/utils/injectPrintCSS.js +6 -21
  315. package/dist/utils/link_service.js +59 -137
  316. package/dist/utils/renderPage.js +20 -19
  317. package/dist/utils/sanitizeExternalUrl.js +12 -15
  318. package/dist/utils/smoothScrollTo.js +8 -5
  319. package/dist/utils/types.js +29 -21
  320. package/dist/utils/withRef.js +7 -7
  321. package/dist/utils/zoom.js +5 -6
  322. package/package.json +7 -7
  323. package/dist/Combination-17ab8af1.js +0 -698
  324. package/dist/MostPageTool.module-13578ad6.js +0 -6
  325. package/dist/OtherTool.module-a4be5f1f.js +0 -6
  326. package/dist/Paginate.module-4eef00aa.js +0 -8
  327. package/dist/PaginationContext-87f832f2.js +0 -233
  328. package/dist/RPLayout.module-92fa19f7.js +0 -14
  329. package/dist/RPSplitter-b62772f9.js +0 -122
  330. package/dist/RPToolbar.module-27d7fe77.js +0 -10
  331. package/dist/RotateTool.module-67946714.js +0 -6
  332. package/dist/SearchTool.module-99f60dc7.js +0 -16
  333. package/dist/ToolbarLayout.module-6e339802.js +0 -12
  334. package/dist/ZoomTool.module-7082af8c.js +0 -12
  335. package/dist/assets/style.css +0 -1
  336. package/dist/clsx-0c6e471a.js +0 -22
  337. package/dist/de_DE-8145915f.js +0 -489
  338. package/dist/index-113053cf.js +0 -309
  339. package/dist/index-11f3cd64.js +0 -983
  340. package/dist/index-23911b43.js +0 -150
  341. package/dist/index-ada501c4.js +0 -27
  342. package/dist/index-d0f0aa9a.js +0 -1542
  343. package/dist/index-e04c91b1.js +0 -11671
@@ -0,0 +1,1286 @@
1
+ import { d as e, i as t, l as n, r } from "./dist-bK-AHWLF.js";
2
+ import { i } from "./dist-BRVqFn7R.js";
3
+ import { t as a } from "./dist-C3WNMuW2.js";
4
+ import * as o from "react";
5
+ import { useLayoutEffect as s } from "react";
6
+ import { jsx as c } from "react/jsx-runtime";
7
+ import * as l from "react-dom";
8
+ //#region node_modules/.pnpm/@floating-ui+utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
9
+ var u = [
10
+ "top",
11
+ "right",
12
+ "bottom",
13
+ "left"
14
+ ], d = Math.min, f = Math.max, p = Math.round, m = Math.floor, h = (e) => ({
15
+ x: e,
16
+ y: e
17
+ }), g = {
18
+ left: "right",
19
+ right: "left",
20
+ bottom: "top",
21
+ top: "bottom"
22
+ }, _ = {
23
+ start: "end",
24
+ end: "start"
25
+ };
26
+ function v(e, t, n) {
27
+ return f(e, d(t, n));
28
+ }
29
+ function y(e, t) {
30
+ return typeof e == "function" ? e(t) : e;
31
+ }
32
+ function b(e) {
33
+ return e.split("-")[0];
34
+ }
35
+ function x(e) {
36
+ return e.split("-")[1];
37
+ }
38
+ function S(e) {
39
+ return e === "x" ? "y" : "x";
40
+ }
41
+ function C(e) {
42
+ return e === "y" ? "height" : "width";
43
+ }
44
+ var w = /* @__PURE__ */ new Set(["top", "bottom"]);
45
+ function T(e) {
46
+ return w.has(b(e)) ? "y" : "x";
47
+ }
48
+ function E(e) {
49
+ return S(T(e));
50
+ }
51
+ function D(e, t, n) {
52
+ n === void 0 && (n = !1);
53
+ let r = x(e), i = E(e), a = C(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
54
+ return t.reference[a] > t.floating[a] && (o = I(o)), [o, I(o)];
55
+ }
56
+ function O(e) {
57
+ let t = I(e);
58
+ return [
59
+ k(e),
60
+ t,
61
+ k(t)
62
+ ];
63
+ }
64
+ function k(e) {
65
+ return e.replace(/start|end/g, (e) => _[e]);
66
+ }
67
+ var A = ["left", "right"], j = ["right", "left"], M = ["top", "bottom"], N = ["bottom", "top"];
68
+ function P(e, t, n) {
69
+ switch (e) {
70
+ case "top":
71
+ case "bottom": return n ? t ? j : A : t ? A : j;
72
+ case "left":
73
+ case "right": return t ? M : N;
74
+ default: return [];
75
+ }
76
+ }
77
+ function F(e, t, n, r) {
78
+ let i = x(e), a = P(b(e), n === "start", r);
79
+ return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(k)))), a;
80
+ }
81
+ function I(e) {
82
+ return e.replace(/left|right|bottom|top/g, (e) => g[e]);
83
+ }
84
+ function L(e) {
85
+ return {
86
+ top: 0,
87
+ right: 0,
88
+ bottom: 0,
89
+ left: 0,
90
+ ...e
91
+ };
92
+ }
93
+ function ee(e) {
94
+ return typeof e == "number" ? {
95
+ top: e,
96
+ right: e,
97
+ bottom: e,
98
+ left: e
99
+ } : L(e);
100
+ }
101
+ function R(e) {
102
+ let { x: t, y: n, width: r, height: i } = e;
103
+ return {
104
+ width: r,
105
+ height: i,
106
+ top: n,
107
+ left: t,
108
+ right: t + r,
109
+ bottom: n + i,
110
+ x: t,
111
+ y: n
112
+ };
113
+ }
114
+ //#endregion
115
+ //#region node_modules/.pnpm/@floating-ui+core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
116
+ function z(e, t, n) {
117
+ let { reference: r, floating: i } = e, a = T(t), o = E(t), s = C(o), c = b(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
118
+ switch (c) {
119
+ case "top":
120
+ p = {
121
+ x: u,
122
+ y: r.y - i.height
123
+ };
124
+ break;
125
+ case "bottom":
126
+ p = {
127
+ x: u,
128
+ y: r.y + r.height
129
+ };
130
+ break;
131
+ case "right":
132
+ p = {
133
+ x: r.x + r.width,
134
+ y: d
135
+ };
136
+ break;
137
+ case "left":
138
+ p = {
139
+ x: r.x - i.width,
140
+ y: d
141
+ };
142
+ break;
143
+ default: p = {
144
+ x: r.x,
145
+ y: r.y
146
+ };
147
+ }
148
+ switch (x(t)) {
149
+ case "start":
150
+ p[o] -= f * (n && l ? -1 : 1);
151
+ break;
152
+ case "end":
153
+ p[o] += f * (n && l ? -1 : 1);
154
+ break;
155
+ }
156
+ return p;
157
+ }
158
+ var B = async (e, t, n) => {
159
+ let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = a.filter(Boolean), c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
160
+ reference: e,
161
+ floating: t,
162
+ strategy: i
163
+ }), { x: u, y: d } = z(l, r, c), f = r, p = {}, m = 0;
164
+ for (let n = 0; n < s.length; n++) {
165
+ let { name: a, fn: h } = s[n], { x: g, y: _, data: v, reset: y } = await h({
166
+ x: u,
167
+ y: d,
168
+ initialPlacement: r,
169
+ placement: f,
170
+ strategy: i,
171
+ middlewareData: p,
172
+ rects: l,
173
+ platform: o,
174
+ elements: {
175
+ reference: e,
176
+ floating: t
177
+ }
178
+ });
179
+ u = g ?? u, d = _ ?? d, p = {
180
+ ...p,
181
+ [a]: {
182
+ ...p[a],
183
+ ...v
184
+ }
185
+ }, y && m <= 50 && (m++, typeof y == "object" && (y.placement && (f = y.placement), y.rects && (l = y.rects === !0 ? await o.getElementRects({
186
+ reference: e,
187
+ floating: t,
188
+ strategy: i
189
+ }) : y.rects), {x: u, y: d} = z(l, f, c)), n = -1);
190
+ }
191
+ return {
192
+ x: u,
193
+ y: d,
194
+ placement: f,
195
+ strategy: i,
196
+ middlewareData: p
197
+ };
198
+ };
199
+ async function V(e, t) {
200
+ t === void 0 && (t = {});
201
+ let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = y(t, e), p = ee(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = R(await i.getClippingRect({
202
+ element: await (i.isElement == null ? void 0 : i.isElement(m)) ?? !0 ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
203
+ boundary: c,
204
+ rootBoundary: l,
205
+ strategy: s
206
+ })), g = u === "floating" ? {
207
+ x: n,
208
+ y: r,
209
+ width: a.floating.width,
210
+ height: a.floating.height
211
+ } : a.reference, _ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(o.floating)), v = await (i.isElement == null ? void 0 : i.isElement(_)) && await (i.getScale == null ? void 0 : i.getScale(_)) || {
212
+ x: 1,
213
+ y: 1
214
+ }, b = R(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
215
+ elements: o,
216
+ rect: g,
217
+ offsetParent: _,
218
+ strategy: s
219
+ }) : g);
220
+ return {
221
+ top: (h.top - b.top + p.top) / v.y,
222
+ bottom: (b.bottom - h.bottom + p.bottom) / v.y,
223
+ left: (h.left - b.left + p.left) / v.x,
224
+ right: (b.right - h.right + p.right) / v.x
225
+ };
226
+ }
227
+ var te = (e) => ({
228
+ name: "arrow",
229
+ options: e,
230
+ async fn(t) {
231
+ let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } = y(e, t) || {};
232
+ if (l == null) return {};
233
+ let f = ee(u), p = {
234
+ x: n,
235
+ y: r
236
+ }, m = E(i), h = C(m), g = await o.getDimensions(l), _ = m === "y", b = _ ? "top" : "left", S = _ ? "bottom" : "right", w = _ ? "clientHeight" : "clientWidth", T = a.reference[h] + a.reference[m] - p[m] - a.floating[h], D = p[m] - a.reference[m], O = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l)), k = O ? O[w] : 0;
237
+ (!k || !await (o.isElement == null ? void 0 : o.isElement(O))) && (k = s.floating[w] || a.floating[h]);
238
+ let A = T / 2 - D / 2, j = k / 2 - g[h] / 2 - 1, M = d(f[b], j), N = d(f[S], j), P = M, F = k - g[h] - N, I = k / 2 - g[h] / 2 + A, L = v(P, I, F), R = !c.arrow && x(i) != null && I !== L && a.reference[h] / 2 - (I < P ? M : N) - g[h] / 2 < 0, z = R ? I < P ? I - P : I - F : 0;
239
+ return {
240
+ [m]: p[m] + z,
241
+ data: {
242
+ [m]: L,
243
+ centerOffset: I - L - z,
244
+ ...R && { alignmentOffset: z }
245
+ },
246
+ reset: R
247
+ };
248
+ }
249
+ }), ne = function(e) {
250
+ return e === void 0 && (e = {}), {
251
+ name: "flip",
252
+ options: e,
253
+ async fn(t) {
254
+ var n;
255
+ let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } = y(e, t);
256
+ if ((n = i.arrow) != null && n.alignmentOffset) return {};
257
+ let g = b(r), _ = T(o), v = b(o) === o, x = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), S = d || (v || !m ? [I(o)] : O(o)), C = p !== "none";
258
+ !d && C && S.push(...F(o, m, p, x));
259
+ let w = [o, ...S], E = await V(t, h), k = [], A = i.flip?.overflows || [];
260
+ if (l && k.push(E[g]), u) {
261
+ let e = D(r, a, x);
262
+ k.push(E[e[0]], E[e[1]]);
263
+ }
264
+ if (A = [...A, {
265
+ placement: r,
266
+ overflows: k
267
+ }], !k.every((e) => e <= 0)) {
268
+ let e = (i.flip?.index || 0) + 1, t = w[e];
269
+ if (t && (!(u === "alignment" && _ !== T(t)) || A.every((e) => T(e.placement) === _ ? e.overflows[0] > 0 : !0))) return {
270
+ data: {
271
+ index: e,
272
+ overflows: A
273
+ },
274
+ reset: { placement: t }
275
+ };
276
+ let n = A.filter((e) => e.overflows[0] <= 0).sort((e, t) => e.overflows[1] - t.overflows[1])[0]?.placement;
277
+ if (!n) switch (f) {
278
+ case "bestFit": {
279
+ let e = A.filter((e) => {
280
+ if (C) {
281
+ let t = T(e.placement);
282
+ return t === _ || t === "y";
283
+ }
284
+ return !0;
285
+ }).map((e) => [e.placement, e.overflows.filter((e) => e > 0).reduce((e, t) => e + t, 0)]).sort((e, t) => e[1] - t[1])[0]?.[0];
286
+ e && (n = e);
287
+ break;
288
+ }
289
+ case "initialPlacement":
290
+ n = o;
291
+ break;
292
+ }
293
+ if (r !== n) return { reset: { placement: n } };
294
+ }
295
+ return {};
296
+ }
297
+ };
298
+ };
299
+ function re(e, t) {
300
+ return {
301
+ top: e.top - t.height,
302
+ right: e.right - t.width,
303
+ bottom: e.bottom - t.height,
304
+ left: e.left - t.width
305
+ };
306
+ }
307
+ function ie(e) {
308
+ return u.some((t) => e[t] >= 0);
309
+ }
310
+ var ae = function(e) {
311
+ return e === void 0 && (e = {}), {
312
+ name: "hide",
313
+ options: e,
314
+ async fn(t) {
315
+ let { rects: n } = t, { strategy: r = "referenceHidden", ...i } = y(e, t);
316
+ switch (r) {
317
+ case "referenceHidden": {
318
+ let e = re(await V(t, {
319
+ ...i,
320
+ elementContext: "reference"
321
+ }), n.reference);
322
+ return { data: {
323
+ referenceHiddenOffsets: e,
324
+ referenceHidden: ie(e)
325
+ } };
326
+ }
327
+ case "escaped": {
328
+ let e = re(await V(t, {
329
+ ...i,
330
+ altBoundary: !0
331
+ }), n.floating);
332
+ return { data: {
333
+ escapedOffsets: e,
334
+ escaped: ie(e)
335
+ } };
336
+ }
337
+ default: return {};
338
+ }
339
+ }
340
+ };
341
+ }, oe = /* @__PURE__ */ new Set(["left", "top"]);
342
+ async function se(e, t) {
343
+ let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = b(n), s = x(n), c = T(n) === "y", l = oe.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = y(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
344
+ mainAxis: d,
345
+ crossAxis: 0,
346
+ alignmentAxis: null
347
+ } : {
348
+ mainAxis: d.mainAxis || 0,
349
+ crossAxis: d.crossAxis || 0,
350
+ alignmentAxis: d.alignmentAxis
351
+ };
352
+ return s && typeof m == "number" && (p = s === "end" ? m * -1 : m), c ? {
353
+ x: p * u,
354
+ y: f * l
355
+ } : {
356
+ x: f * l,
357
+ y: p * u
358
+ };
359
+ }
360
+ var ce = function(e) {
361
+ return e === void 0 && (e = 0), {
362
+ name: "offset",
363
+ options: e,
364
+ async fn(t) {
365
+ var n;
366
+ let { x: r, y: i, placement: a, middlewareData: o } = t, s = await se(t, e);
367
+ return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
368
+ x: r + s.x,
369
+ y: i + s.y,
370
+ data: {
371
+ ...s,
372
+ placement: a
373
+ }
374
+ };
375
+ }
376
+ };
377
+ }, le = function(e) {
378
+ return e === void 0 && (e = {}), {
379
+ name: "shift",
380
+ options: e,
381
+ async fn(t) {
382
+ let { x: n, y: r, placement: i } = t, { mainAxis: a = !0, crossAxis: o = !1, limiter: s = { fn: (e) => {
383
+ let { x: t, y: n } = e;
384
+ return {
385
+ x: t,
386
+ y: n
387
+ };
388
+ } }, ...c } = y(e, t), l = {
389
+ x: n,
390
+ y: r
391
+ }, u = await V(t, c), d = T(b(i)), f = S(d), p = l[f], m = l[d];
392
+ if (a) {
393
+ let e = f === "y" ? "top" : "left", t = f === "y" ? "bottom" : "right", n = p + u[e], r = p - u[t];
394
+ p = v(n, p, r);
395
+ }
396
+ if (o) {
397
+ let e = d === "y" ? "top" : "left", t = d === "y" ? "bottom" : "right", n = m + u[e], r = m - u[t];
398
+ m = v(n, m, r);
399
+ }
400
+ let h = s.fn({
401
+ ...t,
402
+ [f]: p,
403
+ [d]: m
404
+ });
405
+ return {
406
+ ...h,
407
+ data: {
408
+ x: h.x - n,
409
+ y: h.y - r,
410
+ enabled: {
411
+ [f]: a,
412
+ [d]: o
413
+ }
414
+ }
415
+ };
416
+ }
417
+ };
418
+ }, ue = function(e) {
419
+ return e === void 0 && (e = {}), {
420
+ options: e,
421
+ fn(t) {
422
+ let { x: n, y: r, placement: i, rects: a, middlewareData: o } = t, { offset: s = 0, mainAxis: c = !0, crossAxis: l = !0 } = y(e, t), u = {
423
+ x: n,
424
+ y: r
425
+ }, d = T(i), f = S(d), p = u[f], m = u[d], h = y(s, t), g = typeof h == "number" ? {
426
+ mainAxis: h,
427
+ crossAxis: 0
428
+ } : {
429
+ mainAxis: 0,
430
+ crossAxis: 0,
431
+ ...h
432
+ };
433
+ if (c) {
434
+ let e = f === "y" ? "height" : "width", t = a.reference[f] - a.floating[e] + g.mainAxis, n = a.reference[f] + a.reference[e] - g.mainAxis;
435
+ p < t ? p = t : p > n && (p = n);
436
+ }
437
+ if (l) {
438
+ let e = f === "y" ? "width" : "height", t = oe.has(b(i)), n = a.reference[d] - a.floating[e] + (t && o.offset?.[d] || 0) + (t ? 0 : g.crossAxis), r = a.reference[d] + a.reference[e] + (t ? 0 : o.offset?.[d] || 0) - (t ? g.crossAxis : 0);
439
+ m < n ? m = n : m > r && (m = r);
440
+ }
441
+ return {
442
+ [f]: p,
443
+ [d]: m
444
+ };
445
+ }
446
+ };
447
+ }, de = function(e) {
448
+ return e === void 0 && (e = {}), {
449
+ name: "size",
450
+ options: e,
451
+ async fn(t) {
452
+ var n, r;
453
+ let { placement: i, rects: a, platform: o, elements: s } = t, { apply: c = () => {}, ...l } = y(e, t), u = await V(t, l), p = b(i), m = x(i), h = T(i) === "y", { width: g, height: _ } = a.floating, v, S;
454
+ p === "top" || p === "bottom" ? (v = p, S = m === (await (o.isRTL == null ? void 0 : o.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (S = p, v = m === "end" ? "top" : "bottom");
455
+ let C = _ - u.top - u.bottom, w = g - u.left - u.right, E = d(_ - u[v], C), D = d(g - u[S], w), O = !t.middlewareData.shift, k = E, A = D;
456
+ if ((n = t.middlewareData.shift) != null && n.enabled.x && (A = w), (r = t.middlewareData.shift) != null && r.enabled.y && (k = C), O && !m) {
457
+ let e = f(u.left, 0), t = f(u.right, 0), n = f(u.top, 0), r = f(u.bottom, 0);
458
+ h ? A = g - 2 * (e !== 0 || t !== 0 ? e + t : f(u.left, u.right)) : k = _ - 2 * (n !== 0 || r !== 0 ? n + r : f(u.top, u.bottom));
459
+ }
460
+ await c({
461
+ ...t,
462
+ availableWidth: A,
463
+ availableHeight: k
464
+ });
465
+ let j = await o.getDimensions(s.floating);
466
+ return g !== j.width || _ !== j.height ? { reset: { rects: !0 } } : {};
467
+ }
468
+ };
469
+ };
470
+ //#endregion
471
+ //#region node_modules/.pnpm/@floating-ui+utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
472
+ function fe() {
473
+ return typeof window < "u";
474
+ }
475
+ function H(e) {
476
+ return pe(e) ? (e.nodeName || "").toLowerCase() : "#document";
477
+ }
478
+ function U(e) {
479
+ var t;
480
+ return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
481
+ }
482
+ function W(e) {
483
+ return ((pe(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
484
+ }
485
+ function pe(e) {
486
+ return fe() ? e instanceof Node || e instanceof U(e).Node : !1;
487
+ }
488
+ function G(e) {
489
+ return fe() ? e instanceof Element || e instanceof U(e).Element : !1;
490
+ }
491
+ function K(e) {
492
+ return fe() ? e instanceof HTMLElement || e instanceof U(e).HTMLElement : !1;
493
+ }
494
+ function me(e) {
495
+ return !fe() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof U(e).ShadowRoot;
496
+ }
497
+ var he = /* @__PURE__ */ new Set(["inline", "contents"]);
498
+ function q(e) {
499
+ let { overflow: t, overflowX: n, overflowY: r, display: i } = Y(e);
500
+ return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !he.has(i);
501
+ }
502
+ var ge = /* @__PURE__ */ new Set([
503
+ "table",
504
+ "td",
505
+ "th"
506
+ ]);
507
+ function _e(e) {
508
+ return ge.has(H(e));
509
+ }
510
+ var ve = [":popover-open", ":modal"];
511
+ function ye(e) {
512
+ return ve.some((t) => {
513
+ try {
514
+ return e.matches(t);
515
+ } catch {
516
+ return !1;
517
+ }
518
+ });
519
+ }
520
+ var be = [
521
+ "transform",
522
+ "translate",
523
+ "scale",
524
+ "rotate",
525
+ "perspective"
526
+ ], xe = [
527
+ "transform",
528
+ "translate",
529
+ "scale",
530
+ "rotate",
531
+ "perspective",
532
+ "filter"
533
+ ], Se = [
534
+ "paint",
535
+ "layout",
536
+ "strict",
537
+ "content"
538
+ ];
539
+ function Ce(e) {
540
+ let t = Te(), n = G(e) ? Y(e) : e;
541
+ return be.some((e) => n[e] ? n[e] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || xe.some((e) => (n.willChange || "").includes(e)) || Se.some((e) => (n.contain || "").includes(e));
542
+ }
543
+ function we(e) {
544
+ let t = X(e);
545
+ for (; K(t) && !J(t);) {
546
+ if (Ce(t)) return t;
547
+ if (ye(t)) return null;
548
+ t = X(t);
549
+ }
550
+ return null;
551
+ }
552
+ function Te() {
553
+ return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
554
+ }
555
+ var Ee = /* @__PURE__ */ new Set([
556
+ "html",
557
+ "body",
558
+ "#document"
559
+ ]);
560
+ function J(e) {
561
+ return Ee.has(H(e));
562
+ }
563
+ function Y(e) {
564
+ return U(e).getComputedStyle(e);
565
+ }
566
+ function De(e) {
567
+ return G(e) ? {
568
+ scrollLeft: e.scrollLeft,
569
+ scrollTop: e.scrollTop
570
+ } : {
571
+ scrollLeft: e.scrollX,
572
+ scrollTop: e.scrollY
573
+ };
574
+ }
575
+ function X(e) {
576
+ if (H(e) === "html") return e;
577
+ let t = e.assignedSlot || e.parentNode || me(e) && e.host || W(e);
578
+ return me(t) ? t.host : t;
579
+ }
580
+ function Oe(e) {
581
+ let t = X(e);
582
+ return J(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : K(t) && q(t) ? t : Oe(t);
583
+ }
584
+ function Z(e, t, n) {
585
+ t === void 0 && (t = []), n === void 0 && (n = !0);
586
+ let r = Oe(e), i = r === e.ownerDocument?.body, a = U(r);
587
+ if (i) {
588
+ let e = ke(a);
589
+ return t.concat(a, a.visualViewport || [], q(r) ? r : [], e && n ? Z(e) : []);
590
+ }
591
+ return t.concat(r, Z(r, [], n));
592
+ }
593
+ function ke(e) {
594
+ return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
595
+ }
596
+ //#endregion
597
+ //#region node_modules/.pnpm/@floating-ui+dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
598
+ function Ae(e) {
599
+ let t = Y(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = K(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = p(n) !== a || p(r) !== o;
600
+ return s && (n = a, r = o), {
601
+ width: n,
602
+ height: r,
603
+ $: s
604
+ };
605
+ }
606
+ function je(e) {
607
+ return G(e) ? e : e.contextElement;
608
+ }
609
+ function Q(e) {
610
+ let t = je(e);
611
+ if (!K(t)) return h(1);
612
+ let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = Ae(t), o = (a ? p(n.width) : n.width) / r, s = (a ? p(n.height) : n.height) / i;
613
+ return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
614
+ x: o,
615
+ y: s
616
+ };
617
+ }
618
+ var Me = /* @__PURE__ */ h(0);
619
+ function Ne(e) {
620
+ let t = U(e);
621
+ return !Te() || !t.visualViewport ? Me : {
622
+ x: t.visualViewport.offsetLeft,
623
+ y: t.visualViewport.offsetTop
624
+ };
625
+ }
626
+ function Pe(e, t, n) {
627
+ return t === void 0 && (t = !1), !n || t && n !== U(e) ? !1 : t;
628
+ }
629
+ function $(e, t, n, r) {
630
+ t === void 0 && (t = !1), n === void 0 && (n = !1);
631
+ let i = e.getBoundingClientRect(), a = je(e), o = h(1);
632
+ t && (r ? G(r) && (o = Q(r)) : o = Q(e));
633
+ let s = Pe(a, n, r) ? Ne(a) : h(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
634
+ if (a) {
635
+ let e = U(a), t = r && G(r) ? U(r) : r, n = e, i = ke(n);
636
+ for (; i && r && t !== n;) {
637
+ let e = Q(i), t = i.getBoundingClientRect(), r = Y(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
638
+ c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = U(i), i = ke(n);
639
+ }
640
+ }
641
+ return R({
642
+ width: u,
643
+ height: d,
644
+ x: c,
645
+ y: l
646
+ });
647
+ }
648
+ function Fe(e, t) {
649
+ let n = De(e).scrollLeft;
650
+ return t ? t.left + n : $(W(e)).left + n;
651
+ }
652
+ function Ie(e, t) {
653
+ let n = e.getBoundingClientRect();
654
+ return {
655
+ x: n.left + t.scrollLeft - Fe(e, n),
656
+ y: n.top + t.scrollTop
657
+ };
658
+ }
659
+ function Le(e) {
660
+ let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = W(r), s = t ? ye(t.floating) : !1;
661
+ if (r === o || s && a) return n;
662
+ let c = {
663
+ scrollLeft: 0,
664
+ scrollTop: 0
665
+ }, l = h(1), u = h(0), d = K(r);
666
+ if ((d || !d && !a) && ((H(r) !== "body" || q(o)) && (c = De(r)), K(r))) {
667
+ let e = $(r);
668
+ l = Q(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
669
+ }
670
+ let f = o && !d && !a ? Ie(o, c) : h(0);
671
+ return {
672
+ width: n.width * l.x,
673
+ height: n.height * l.y,
674
+ x: n.x * l.x - c.scrollLeft * l.x + u.x + f.x,
675
+ y: n.y * l.y - c.scrollTop * l.y + u.y + f.y
676
+ };
677
+ }
678
+ function Re(e) {
679
+ return Array.from(e.getClientRects());
680
+ }
681
+ function ze(e) {
682
+ let t = W(e), n = De(e), r = e.ownerDocument.body, i = f(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = f(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), o = -n.scrollLeft + Fe(e), s = -n.scrollTop;
683
+ return Y(r).direction === "rtl" && (o += f(t.clientWidth, r.clientWidth) - i), {
684
+ width: i,
685
+ height: a,
686
+ x: o,
687
+ y: s
688
+ };
689
+ }
690
+ var Be = 25;
691
+ function Ve(e, t) {
692
+ let n = U(e), r = W(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, c = 0;
693
+ if (i) {
694
+ a = i.width, o = i.height;
695
+ let e = Te();
696
+ (!e || e && t === "fixed") && (s = i.offsetLeft, c = i.offsetTop);
697
+ }
698
+ let l = Fe(r);
699
+ if (l <= 0) {
700
+ let e = r.ownerDocument, t = e.body, n = getComputedStyle(t), i = e.compatMode === "CSS1Compat" && parseFloat(n.marginLeft) + parseFloat(n.marginRight) || 0, o = Math.abs(r.clientWidth - t.clientWidth - i);
701
+ o <= Be && (a -= o);
702
+ } else l <= Be && (a += l);
703
+ return {
704
+ width: a,
705
+ height: o,
706
+ x: s,
707
+ y: c
708
+ };
709
+ }
710
+ var He = /* @__PURE__ */ new Set(["absolute", "fixed"]);
711
+ function Ue(e, t) {
712
+ let n = $(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = K(e) ? Q(e) : h(1);
713
+ return {
714
+ width: e.clientWidth * a.x,
715
+ height: e.clientHeight * a.y,
716
+ x: i * a.x,
717
+ y: r * a.y
718
+ };
719
+ }
720
+ function We(e, t, n) {
721
+ let r;
722
+ if (t === "viewport") r = Ve(e, n);
723
+ else if (t === "document") r = ze(W(e));
724
+ else if (G(t)) r = Ue(t, n);
725
+ else {
726
+ let n = Ne(e);
727
+ r = {
728
+ x: t.x - n.x,
729
+ y: t.y - n.y,
730
+ width: t.width,
731
+ height: t.height
732
+ };
733
+ }
734
+ return R(r);
735
+ }
736
+ function Ge(e, t) {
737
+ let n = X(e);
738
+ return n === t || !G(n) || J(n) ? !1 : Y(n).position === "fixed" || Ge(n, t);
739
+ }
740
+ function Ke(e, t) {
741
+ let n = t.get(e);
742
+ if (n) return n;
743
+ let r = Z(e, [], !1).filter((e) => G(e) && H(e) !== "body"), i = null, a = Y(e).position === "fixed", o = a ? X(e) : e;
744
+ for (; G(o) && !J(o);) {
745
+ let t = Y(o), n = Ce(o);
746
+ !n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && He.has(i.position) || q(o) && !n && Ge(e, o)) ? r = r.filter((e) => e !== o) : i = t, o = X(o);
747
+ }
748
+ return t.set(e, r), r;
749
+ }
750
+ function qe(e) {
751
+ let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? ye(t) ? [] : Ke(t, this._c) : [].concat(n), r], o = a[0], s = a.reduce((e, n) => {
752
+ let r = We(t, n, i);
753
+ return e.top = f(r.top, e.top), e.right = d(r.right, e.right), e.bottom = d(r.bottom, e.bottom), e.left = f(r.left, e.left), e;
754
+ }, We(t, o, i));
755
+ return {
756
+ width: s.right - s.left,
757
+ height: s.bottom - s.top,
758
+ x: s.left,
759
+ y: s.top
760
+ };
761
+ }
762
+ function Je(e) {
763
+ let { width: t, height: n } = Ae(e);
764
+ return {
765
+ width: t,
766
+ height: n
767
+ };
768
+ }
769
+ function Ye(e, t, n) {
770
+ let r = K(t), i = W(t), a = n === "fixed", o = $(e, !0, a, t), s = {
771
+ scrollLeft: 0,
772
+ scrollTop: 0
773
+ }, c = h(0);
774
+ function l() {
775
+ c.x = Fe(i);
776
+ }
777
+ if (r || !r && !a) if ((H(t) !== "body" || q(i)) && (s = De(t)), r) {
778
+ let e = $(t, !0, a, t);
779
+ c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
780
+ } else i && l();
781
+ a && !r && i && l();
782
+ let u = i && !r && !a ? Ie(i, s) : h(0);
783
+ return {
784
+ x: o.left + s.scrollLeft - c.x - u.x,
785
+ y: o.top + s.scrollTop - c.y - u.y,
786
+ width: o.width,
787
+ height: o.height
788
+ };
789
+ }
790
+ function Xe(e) {
791
+ return Y(e).position === "static";
792
+ }
793
+ function Ze(e, t) {
794
+ if (!K(e) || Y(e).position === "fixed") return null;
795
+ if (t) return t(e);
796
+ let n = e.offsetParent;
797
+ return W(e) === n && (n = n.ownerDocument.body), n;
798
+ }
799
+ function Qe(e, t) {
800
+ let n = U(e);
801
+ if (ye(e)) return n;
802
+ if (!K(e)) {
803
+ let t = X(e);
804
+ for (; t && !J(t);) {
805
+ if (G(t) && !Xe(t)) return t;
806
+ t = X(t);
807
+ }
808
+ return n;
809
+ }
810
+ let r = Ze(e, t);
811
+ for (; r && _e(r) && Xe(r);) r = Ze(r, t);
812
+ return r && J(r) && Xe(r) && !Ce(r) ? n : r || we(e) || n;
813
+ }
814
+ var $e = async function(e) {
815
+ let t = this.getOffsetParent || Qe, n = this.getDimensions, r = await n(e.floating);
816
+ return {
817
+ reference: Ye(e.reference, await t(e.floating), e.strategy),
818
+ floating: {
819
+ x: 0,
820
+ y: 0,
821
+ width: r.width,
822
+ height: r.height
823
+ }
824
+ };
825
+ };
826
+ function et(e) {
827
+ return Y(e).direction === "rtl";
828
+ }
829
+ var tt = {
830
+ convertOffsetParentRelativeRectToViewportRelativeRect: Le,
831
+ getDocumentElement: W,
832
+ getClippingRect: qe,
833
+ getOffsetParent: Qe,
834
+ getElementRects: $e,
835
+ getClientRects: Re,
836
+ getDimensions: Je,
837
+ getScale: Q,
838
+ isElement: G,
839
+ isRTL: et
840
+ };
841
+ function nt(e, t) {
842
+ return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
843
+ }
844
+ function rt(e, t) {
845
+ let n = null, r, i = W(e);
846
+ function a() {
847
+ var e;
848
+ clearTimeout(r), (e = n) == null || e.disconnect(), n = null;
849
+ }
850
+ function o(s, c) {
851
+ s === void 0 && (s = !1), c === void 0 && (c = 1), a();
852
+ let l = e.getBoundingClientRect(), { left: u, top: p, width: h, height: g } = l;
853
+ if (s || t(), !h || !g) return;
854
+ let _ = m(p), v = m(i.clientWidth - (u + h)), y = m(i.clientHeight - (p + g)), b = m(u), x = {
855
+ rootMargin: -_ + "px " + -v + "px " + -y + "px " + -b + "px",
856
+ threshold: f(0, d(1, c)) || 1
857
+ }, S = !0;
858
+ function C(t) {
859
+ let n = t[0].intersectionRatio;
860
+ if (n !== c) {
861
+ if (!S) return o();
862
+ n ? o(!1, n) : r = setTimeout(() => {
863
+ o(!1, 1e-7);
864
+ }, 1e3);
865
+ }
866
+ n === 1 && !nt(l, e.getBoundingClientRect()) && o(), S = !1;
867
+ }
868
+ try {
869
+ n = new IntersectionObserver(C, {
870
+ ...x,
871
+ root: i.ownerDocument
872
+ });
873
+ } catch {
874
+ n = new IntersectionObserver(C, x);
875
+ }
876
+ n.observe(e);
877
+ }
878
+ return o(!0), a;
879
+ }
880
+ function it(e, t, n, r) {
881
+ r === void 0 && (r = {});
882
+ let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = je(e), u = i || a ? [...l ? Z(l) : [], ...Z(t)] : [];
883
+ u.forEach((e) => {
884
+ i && e.addEventListener("scroll", n, { passive: !0 }), a && e.addEventListener("resize", n);
885
+ });
886
+ let d = l && s ? rt(l, n) : null, f = -1, p = null;
887
+ o && (p = new ResizeObserver((e) => {
888
+ let [r] = e;
889
+ r && r.target === l && p && (p.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
890
+ var e;
891
+ (e = p) == null || e.observe(t);
892
+ })), n();
893
+ }), l && !c && p.observe(l), p.observe(t));
894
+ let m, h = c ? $(e) : null;
895
+ c && g();
896
+ function g() {
897
+ let t = $(e);
898
+ h && !nt(h, t) && n(), h = t, m = requestAnimationFrame(g);
899
+ }
900
+ return n(), () => {
901
+ var e;
902
+ u.forEach((e) => {
903
+ i && e.removeEventListener("scroll", n), a && e.removeEventListener("resize", n);
904
+ }), d?.(), (e = p) == null || e.disconnect(), p = null, c && cancelAnimationFrame(m);
905
+ };
906
+ }
907
+ var at = ce, ot = le, st = ne, ct = de, lt = ae, ut = te, dt = ue, ft = (e, t, n) => {
908
+ let r = /* @__PURE__ */ new Map(), i = {
909
+ platform: tt,
910
+ ...n
911
+ }, a = {
912
+ ...i.platform,
913
+ _c: r
914
+ };
915
+ return B(e, t, {
916
+ ...i,
917
+ platform: a
918
+ });
919
+ }, pt = typeof document < "u" ? s : function() {};
920
+ function mt(e, t) {
921
+ if (e === t) return !0;
922
+ if (typeof e != typeof t) return !1;
923
+ if (typeof e == "function" && e.toString() === t.toString()) return !0;
924
+ let n, r, i;
925
+ if (e && t && typeof e == "object") {
926
+ if (Array.isArray(e)) {
927
+ if (n = e.length, n !== t.length) return !1;
928
+ for (r = n; r-- !== 0;) if (!mt(e[r], t[r])) return !1;
929
+ return !0;
930
+ }
931
+ if (i = Object.keys(e), n = i.length, n !== Object.keys(t).length) return !1;
932
+ for (r = n; r-- !== 0;) if (!{}.hasOwnProperty.call(t, i[r])) return !1;
933
+ for (r = n; r-- !== 0;) {
934
+ let n = i[r];
935
+ if (!(n === "_owner" && e.$$typeof) && !mt(e[n], t[n])) return !1;
936
+ }
937
+ return !0;
938
+ }
939
+ return e !== e && t !== t;
940
+ }
941
+ function ht(e) {
942
+ return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
943
+ }
944
+ function gt(e, t) {
945
+ let n = ht(e);
946
+ return Math.round(t * n) / n;
947
+ }
948
+ function _t(e) {
949
+ let t = o.useRef(e);
950
+ return pt(() => {
951
+ t.current = e;
952
+ }), t;
953
+ }
954
+ function vt(e) {
955
+ e === void 0 && (e = {});
956
+ let { placement: t = "bottom", strategy: n = "absolute", middleware: r = [], platform: i, elements: { reference: a, floating: s } = {}, transform: c = !0, whileElementsMounted: u, open: d } = e, [f, p] = o.useState({
957
+ x: 0,
958
+ y: 0,
959
+ strategy: n,
960
+ placement: t,
961
+ middlewareData: {},
962
+ isPositioned: !1
963
+ }), [m, h] = o.useState(r);
964
+ mt(m, r) || h(r);
965
+ let [g, _] = o.useState(null), [v, y] = o.useState(null), b = o.useCallback((e) => {
966
+ e !== w.current && (w.current = e, _(e));
967
+ }, []), x = o.useCallback((e) => {
968
+ e !== T.current && (T.current = e, y(e));
969
+ }, []), S = a || g, C = s || v, w = o.useRef(null), T = o.useRef(null), E = o.useRef(f), D = u != null, O = _t(u), k = _t(i), A = _t(d), j = o.useCallback(() => {
970
+ if (!w.current || !T.current) return;
971
+ let e = {
972
+ placement: t,
973
+ strategy: n,
974
+ middleware: m
975
+ };
976
+ k.current && (e.platform = k.current), ft(w.current, T.current, e).then((e) => {
977
+ let t = {
978
+ ...e,
979
+ isPositioned: A.current !== !1
980
+ };
981
+ M.current && !mt(E.current, t) && (E.current = t, l.flushSync(() => {
982
+ p(t);
983
+ }));
984
+ });
985
+ }, [
986
+ m,
987
+ t,
988
+ n,
989
+ k,
990
+ A
991
+ ]);
992
+ pt(() => {
993
+ d === !1 && E.current.isPositioned && (E.current.isPositioned = !1, p((e) => ({
994
+ ...e,
995
+ isPositioned: !1
996
+ })));
997
+ }, [d]);
998
+ let M = o.useRef(!1);
999
+ pt(() => (M.current = !0, () => {
1000
+ M.current = !1;
1001
+ }), []), pt(() => {
1002
+ if (S && (w.current = S), C && (T.current = C), S && C) {
1003
+ if (O.current) return O.current(S, C, j);
1004
+ j();
1005
+ }
1006
+ }, [
1007
+ S,
1008
+ C,
1009
+ j,
1010
+ O,
1011
+ D
1012
+ ]);
1013
+ let N = o.useMemo(() => ({
1014
+ reference: w,
1015
+ floating: T,
1016
+ setReference: b,
1017
+ setFloating: x
1018
+ }), [b, x]), P = o.useMemo(() => ({
1019
+ reference: S,
1020
+ floating: C
1021
+ }), [S, C]), F = o.useMemo(() => {
1022
+ let e = {
1023
+ position: n,
1024
+ left: 0,
1025
+ top: 0
1026
+ };
1027
+ if (!P.floating) return e;
1028
+ let t = gt(P.floating, f.x), r = gt(P.floating, f.y);
1029
+ return c ? {
1030
+ ...e,
1031
+ transform: "translate(" + t + "px, " + r + "px)",
1032
+ ...ht(P.floating) >= 1.5 && { willChange: "transform" }
1033
+ } : {
1034
+ position: n,
1035
+ left: t,
1036
+ top: r
1037
+ };
1038
+ }, [
1039
+ n,
1040
+ c,
1041
+ P.floating,
1042
+ f.x,
1043
+ f.y
1044
+ ]);
1045
+ return o.useMemo(() => ({
1046
+ ...f,
1047
+ update: j,
1048
+ refs: N,
1049
+ elements: P,
1050
+ floatingStyles: F
1051
+ }), [
1052
+ f,
1053
+ j,
1054
+ N,
1055
+ P,
1056
+ F
1057
+ ]);
1058
+ }
1059
+ var yt = (e) => {
1060
+ function t(e) {
1061
+ return {}.hasOwnProperty.call(e, "current");
1062
+ }
1063
+ return {
1064
+ name: "arrow",
1065
+ options: e,
1066
+ fn(n) {
1067
+ let { element: r, padding: i } = typeof e == "function" ? e(n) : e;
1068
+ return r && t(r) ? r.current == null ? {} : ut({
1069
+ element: r.current,
1070
+ padding: i
1071
+ }).fn(n) : r ? ut({
1072
+ element: r,
1073
+ padding: i
1074
+ }).fn(n) : {};
1075
+ }
1076
+ };
1077
+ }, bt = (e, t) => ({
1078
+ ...at(e),
1079
+ options: [e, t]
1080
+ }), xt = (e, t) => ({
1081
+ ...ot(e),
1082
+ options: [e, t]
1083
+ }), St = (e, t) => ({
1084
+ ...dt(e),
1085
+ options: [e, t]
1086
+ }), Ct = (e, t) => ({
1087
+ ...st(e),
1088
+ options: [e, t]
1089
+ }), wt = (e, t) => ({
1090
+ ...ct(e),
1091
+ options: [e, t]
1092
+ }), Tt = (e, t) => ({
1093
+ ...lt(e),
1094
+ options: [e, t]
1095
+ }), Et = (e, t) => ({
1096
+ ...yt(e),
1097
+ options: [e, t]
1098
+ }), Dt = "Arrow", Ot = o.forwardRef((e, n) => {
1099
+ let { children: r, width: i = 10, height: a = 5, ...o } = e;
1100
+ return /* @__PURE__ */ c(t.svg, {
1101
+ ...o,
1102
+ ref: n,
1103
+ width: i,
1104
+ height: a,
1105
+ viewBox: "0 0 30 10",
1106
+ preserveAspectRatio: "none",
1107
+ children: e.asChild ? r : /* @__PURE__ */ c("polygon", { points: "0,0 30,0 15,10" })
1108
+ });
1109
+ });
1110
+ Ot.displayName = Dt;
1111
+ var kt = Ot, At = "Popper", [jt, Mt] = n(At), [Nt, Pt] = jt(At), Ft = (e) => {
1112
+ let { __scopePopper: t, children: n } = e, [r, i] = o.useState(null);
1113
+ return /* @__PURE__ */ c(Nt, {
1114
+ scope: t,
1115
+ anchor: r,
1116
+ onAnchorChange: i,
1117
+ children: n
1118
+ });
1119
+ };
1120
+ Ft.displayName = At;
1121
+ var It = "PopperAnchor", Lt = o.forwardRef((n, r) => {
1122
+ let { __scopePopper: i, virtualRef: a, ...s } = n, l = Pt(It, i), u = o.useRef(null), d = e(r, u), f = o.useRef(null);
1123
+ return o.useEffect(() => {
1124
+ let e = f.current;
1125
+ f.current = a?.current || u.current, e !== f.current && l.onAnchorChange(f.current);
1126
+ }), a ? null : /* @__PURE__ */ c(t.div, {
1127
+ ...s,
1128
+ ref: d
1129
+ });
1130
+ });
1131
+ Lt.displayName = It;
1132
+ var Rt = "PopperContent", [zt, Bt] = jt(Rt), Vt = o.forwardRef((n, s) => {
1133
+ let { __scopePopper: l, side: u = "bottom", sideOffset: d = 0, align: f = "center", alignOffset: p = 0, arrowPadding: m = 0, avoidCollisions: h = !0, collisionBoundary: g = [], collisionPadding: _ = 0, sticky: v = "partial", hideWhenDetached: y = !1, updatePositionStrategy: b = "optimized", onPlaced: x, ...S } = n, C = Pt(Rt, l), [w, T] = o.useState(null), E = e(s, (e) => T(e)), [D, O] = o.useState(null), k = a(D), A = k?.width ?? 0, j = k?.height ?? 0, M = u + (f === "center" ? "" : "-" + f), N = typeof _ == "number" ? _ : {
1134
+ top: 0,
1135
+ right: 0,
1136
+ bottom: 0,
1137
+ left: 0,
1138
+ ..._
1139
+ }, P = Array.isArray(g) ? g : [g], F = P.length > 0, I = {
1140
+ padding: N,
1141
+ boundary: P.filter(Gt),
1142
+ altBoundary: F
1143
+ }, { refs: L, floatingStyles: ee, placement: R, isPositioned: z, middlewareData: B } = vt({
1144
+ strategy: "fixed",
1145
+ placement: M,
1146
+ whileElementsMounted: (...e) => it(...e, { animationFrame: b === "always" }),
1147
+ elements: { reference: C.anchor },
1148
+ middleware: [
1149
+ bt({
1150
+ mainAxis: d + j,
1151
+ alignmentAxis: p
1152
+ }),
1153
+ h && xt({
1154
+ mainAxis: !0,
1155
+ crossAxis: !1,
1156
+ limiter: v === "partial" ? St() : void 0,
1157
+ ...I
1158
+ }),
1159
+ h && Ct({ ...I }),
1160
+ wt({
1161
+ ...I,
1162
+ apply: ({ elements: e, rects: t, availableWidth: n, availableHeight: r }) => {
1163
+ let { width: i, height: a } = t.reference, o = e.floating.style;
1164
+ o.setProperty("--radix-popper-available-width", `${n}px`), o.setProperty("--radix-popper-available-height", `${r}px`), o.setProperty("--radix-popper-anchor-width", `${i}px`), o.setProperty("--radix-popper-anchor-height", `${a}px`);
1165
+ }
1166
+ }),
1167
+ D && Et({
1168
+ element: D,
1169
+ padding: m
1170
+ }),
1171
+ Kt({
1172
+ arrowWidth: A,
1173
+ arrowHeight: j
1174
+ }),
1175
+ y && Tt({
1176
+ strategy: "referenceHidden",
1177
+ ...I
1178
+ })
1179
+ ]
1180
+ }), [V, te] = qt(R), ne = i(x);
1181
+ r(() => {
1182
+ z && ne?.();
1183
+ }, [z, ne]);
1184
+ let re = B.arrow?.x, ie = B.arrow?.y, ae = B.arrow?.centerOffset !== 0, [oe, se] = o.useState();
1185
+ return r(() => {
1186
+ w && se(window.getComputedStyle(w).zIndex);
1187
+ }, [w]), /* @__PURE__ */ c("div", {
1188
+ ref: L.setFloating,
1189
+ "data-radix-popper-content-wrapper": "",
1190
+ style: {
1191
+ ...ee,
1192
+ transform: z ? ee.transform : "translate(0, -200%)",
1193
+ minWidth: "max-content",
1194
+ zIndex: oe,
1195
+ "--radix-popper-transform-origin": [B.transformOrigin?.x, B.transformOrigin?.y].join(" "),
1196
+ ...B.hide?.referenceHidden && {
1197
+ visibility: "hidden",
1198
+ pointerEvents: "none"
1199
+ }
1200
+ },
1201
+ dir: n.dir,
1202
+ children: /* @__PURE__ */ c(zt, {
1203
+ scope: l,
1204
+ placedSide: V,
1205
+ onArrowChange: O,
1206
+ arrowX: re,
1207
+ arrowY: ie,
1208
+ shouldHideArrow: ae,
1209
+ children: /* @__PURE__ */ c(t.div, {
1210
+ "data-side": V,
1211
+ "data-align": te,
1212
+ ...S,
1213
+ ref: E,
1214
+ style: {
1215
+ ...S.style,
1216
+ animation: z ? void 0 : "none"
1217
+ }
1218
+ })
1219
+ })
1220
+ });
1221
+ });
1222
+ Vt.displayName = Rt;
1223
+ var Ht = "PopperArrow", Ut = {
1224
+ top: "bottom",
1225
+ right: "left",
1226
+ bottom: "top",
1227
+ left: "right"
1228
+ }, Wt = o.forwardRef(function(e, t) {
1229
+ let { __scopePopper: n, ...r } = e, i = Bt(Ht, n), a = Ut[i.placedSide];
1230
+ return /* @__PURE__ */ c("span", {
1231
+ ref: i.onArrowChange,
1232
+ style: {
1233
+ position: "absolute",
1234
+ left: i.arrowX,
1235
+ top: i.arrowY,
1236
+ [a]: 0,
1237
+ transformOrigin: {
1238
+ top: "",
1239
+ right: "0 0",
1240
+ bottom: "center 0",
1241
+ left: "100% 0"
1242
+ }[i.placedSide],
1243
+ transform: {
1244
+ top: "translateY(100%)",
1245
+ right: "translateY(50%) rotate(90deg) translateX(-50%)",
1246
+ bottom: "rotate(180deg)",
1247
+ left: "translateY(50%) rotate(-90deg) translateX(50%)"
1248
+ }[i.placedSide],
1249
+ visibility: i.shouldHideArrow ? "hidden" : void 0
1250
+ },
1251
+ children: /* @__PURE__ */ c(kt, {
1252
+ ...r,
1253
+ ref: t,
1254
+ style: {
1255
+ ...r.style,
1256
+ display: "block"
1257
+ }
1258
+ })
1259
+ });
1260
+ });
1261
+ Wt.displayName = Ht;
1262
+ function Gt(e) {
1263
+ return e !== null;
1264
+ }
1265
+ var Kt = (e) => ({
1266
+ name: "transformOrigin",
1267
+ options: e,
1268
+ fn(t) {
1269
+ let { placement: n, rects: r, middlewareData: i } = t, a = i.arrow?.centerOffset !== 0, o = a ? 0 : e.arrowWidth, s = a ? 0 : e.arrowHeight, [c, l] = qt(n), u = {
1270
+ start: "0%",
1271
+ center: "50%",
1272
+ end: "100%"
1273
+ }[l], d = (i.arrow?.x ?? 0) + o / 2, f = (i.arrow?.y ?? 0) + s / 2, p = "", m = "";
1274
+ return c === "bottom" ? (p = a ? u : `${d}px`, m = `${-s}px`) : c === "top" ? (p = a ? u : `${d}px`, m = `${r.floating.height + s}px`) : c === "right" ? (p = `${-s}px`, m = a ? u : `${f}px`) : c === "left" && (p = `${r.floating.width + s}px`, m = a ? u : `${f}px`), { data: {
1275
+ x: p,
1276
+ y: m
1277
+ } };
1278
+ }
1279
+ });
1280
+ function qt(e) {
1281
+ let [t, n = "center"] = e.split("-");
1282
+ return [t, n];
1283
+ }
1284
+ var Jt = Ft, Yt = Lt, Xt = Vt, Zt = Wt;
1285
+ //#endregion
1286
+ export { Mt as a, Jt as i, Zt as n, Xt as r, Yt as t };