@baseline-ui/core 3.4.0 → 3.5.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 (265) hide show
  1. package/dist/Accordion.mjs +1 -1
  2. package/dist/ActionButton.mjs +1 -1
  3. package/dist/ActionGroup.mjs +1 -1
  4. package/dist/ActionIconButton.mjs +1 -1
  5. package/dist/Actionable.mjs +1 -1
  6. package/dist/AlertDialog.css +1 -1
  7. package/dist/AlertDialog.mjs +1 -1
  8. package/dist/AudioPlayer.css +1 -1
  9. package/dist/AudioPlayer.mjs +1 -1
  10. package/dist/Avatar.mjs +1 -1
  11. package/dist/ButtonSelect.mjs +1 -1
  12. package/dist/Calendar.mjs +1 -1
  13. package/dist/ColorInput.css +1 -1
  14. package/dist/ColorInput.mjs +1 -1
  15. package/dist/ColorSwatch.mjs +1 -1
  16. package/dist/ColorSwatchPicker.mjs +1 -1
  17. package/dist/ComboBox.mjs +1 -1
  18. package/dist/DateField.mjs +1 -1
  19. package/dist/Dialog.css +1 -1
  20. package/dist/Dialog.mjs +1 -1
  21. package/dist/Disclosure.mjs +1 -1
  22. package/dist/DomNodeRenderer.mjs +1 -1
  23. package/dist/Drawer.css +1 -1
  24. package/dist/Drawer.mjs +1 -1
  25. package/dist/Editor.css +1 -1
  26. package/dist/Editor.mjs +1 -1
  27. package/dist/FileInput.mjs +1 -1
  28. package/dist/FileList.mjs +1 -1
  29. package/dist/FileUploader.mjs +1 -1
  30. package/dist/FrameProvider.mjs +1 -1
  31. package/dist/FreehandCanvas.mjs +1 -1
  32. package/dist/GridList.mjs +1 -1
  33. package/dist/Icon.mjs +1 -1
  34. package/dist/ImageDropZone.mjs +1 -1
  35. package/dist/ImageGallery.css +1 -1
  36. package/dist/ImageGallery.mjs +1 -1
  37. package/dist/InlineAlert.mjs +1 -1
  38. package/dist/InlineToolbar.mjs +1 -1
  39. package/dist/Kbd.mjs +1 -1
  40. package/dist/Link.mjs +1 -1
  41. package/dist/ListBox.mjs +1 -1
  42. package/dist/Menu.mjs +1 -1
  43. package/dist/MessageFormat.mjs +1 -1
  44. package/dist/Modal.mjs +1 -1
  45. package/dist/NumberInput.mjs +1 -1
  46. package/dist/Pagination.mjs +1 -1
  47. package/dist/Panel.mjs +1 -1
  48. package/dist/PointPicker.mjs +1 -1
  49. package/dist/Popover.mjs +1 -1
  50. package/dist/Portal.mjs +1 -1
  51. package/dist/Preview.mjs +1 -1
  52. package/dist/RadioGroup.mjs +1 -1
  53. package/dist/ScrollControlButton.mjs +1 -1
  54. package/dist/SearchInput.mjs +1 -1
  55. package/dist/Select.mjs +1 -1
  56. package/dist/Slider.css +1 -1
  57. package/dist/Slider.mjs +1 -1
  58. package/dist/Stepper.mjs +1 -1
  59. package/dist/Table.css +1 -1
  60. package/dist/Table.mjs +1 -1
  61. package/dist/Tabs.mjs +1 -1
  62. package/dist/Tag.mjs +1 -1
  63. package/dist/TagGroup.mjs +1 -1
  64. package/dist/TaggedPagination.mjs +1 -1
  65. package/dist/TextInput.mjs +1 -1
  66. package/dist/ThemeProvider.mjs +1 -1
  67. package/dist/TimeField.mjs +1 -1
  68. package/dist/Toast.mjs +1 -1
  69. package/dist/ToggleButton.mjs +1 -1
  70. package/dist/ToggleIconButton.mjs +1 -1
  71. package/dist/Toolbar.mjs +1 -1
  72. package/dist/Tooltip.mjs +1 -1
  73. package/dist/TreeView.mjs +1 -1
  74. package/dist/UNSAFE_ListBox.mjs +1 -1
  75. package/dist/Virtualizer.mjs +1 -1
  76. package/dist/{chunk-LPI2NIDI.mjs → chunk-2AKHB7Y5.mjs} +1 -1
  77. package/dist/chunk-2M2LI4MI.mjs +10 -0
  78. package/dist/chunk-2WA3KB7H.mjs +10 -0
  79. package/dist/{chunk-KGS3UWPG.mjs → chunk-3KWSJRYK.mjs} +1 -1
  80. package/dist/{chunk-AM5FU4Y7.mjs → chunk-3M3WJHOI.mjs} +1 -1
  81. package/dist/{chunk-5KJF7IQN.mjs → chunk-3UC5V5E3.mjs} +1 -1
  82. package/dist/{chunk-QUQ4VYCN.mjs → chunk-43LOJ3SH.mjs} +1 -1
  83. package/dist/{chunk-MFB3SWO7.mjs → chunk-46RUOB4U.mjs} +11 -11
  84. package/dist/{chunk-AELTF2DE.mjs → chunk-4WVW4KEK.mjs} +1 -1
  85. package/dist/{chunk-BYDJXA5A.mjs → chunk-5G6JNQQR.mjs} +1 -1
  86. package/dist/{chunk-4EANTENO.mjs → chunk-5G7ABQYJ.mjs} +1 -1
  87. package/dist/{chunk-IUXXTORQ.mjs → chunk-5W67PVZQ.mjs} +1 -1
  88. package/dist/{chunk-CTSDHAAV.mjs → chunk-676DOXEK.mjs} +2 -2
  89. package/dist/{chunk-AD3MLX6G.mjs → chunk-6GMU63H2.mjs} +1 -1
  90. package/dist/chunk-6M7PJXEE.mjs +10 -0
  91. package/dist/chunk-6Q5PNIYZ.mjs +10 -0
  92. package/dist/{chunk-R7R7JDA3.mjs → chunk-7BE6MOPW.mjs} +1 -1
  93. package/dist/chunk-7EQIV4GX.mjs +10 -0
  94. package/dist/{chunk-DZDZZRWE.mjs → chunk-7MLFM55C.mjs} +1 -1
  95. package/dist/chunk-7XLBV46W.mjs +10 -0
  96. package/dist/{chunk-BHJCYKFJ.mjs → chunk-ABXTAFKP.mjs} +1 -1
  97. package/dist/{chunk-TUJLNJPJ.mjs → chunk-AFOW62QN.mjs} +2 -2
  98. package/dist/chunk-AMVX34SS.mjs +10 -0
  99. package/dist/{chunk-7TE4MFKC.mjs → chunk-AN26QORL.mjs} +1 -1
  100. package/dist/{chunk-OYSOPCTA.mjs → chunk-BA5OA5DY.mjs} +1 -1
  101. package/dist/{chunk-4W5VP4NV.mjs → chunk-BAIVRB2I.mjs} +1 -1
  102. package/dist/{chunk-K4TTZX4T.mjs → chunk-BET5GVGQ.mjs} +1 -1
  103. package/dist/{chunk-7L5UOGZA.mjs → chunk-BPW4QRPV.mjs} +2 -2
  104. package/dist/chunk-BSSLS6MF.mjs +10 -0
  105. package/dist/{chunk-UUTMZQQA.mjs → chunk-CENNHSIS.mjs} +3 -3
  106. package/dist/{chunk-W7OTSFZS.mjs → chunk-CTBCJZEG.mjs} +1 -1
  107. package/dist/chunk-D5VU5TED.mjs +11 -0
  108. package/dist/chunk-DAI7V4TE.mjs +10 -0
  109. package/dist/chunk-DO5YROCG.mjs +10 -0
  110. package/dist/{chunk-COHK4QQW.mjs → chunk-EGLD5KVP.mjs} +2 -2
  111. package/dist/{chunk-BXNNVZOQ.mjs → chunk-EL5OYHOX.mjs} +1 -1
  112. package/dist/{chunk-CLGLEEFO.mjs → chunk-FCKJCFMD.mjs} +1 -1
  113. package/dist/chunk-FGSVPRDN.mjs +10 -0
  114. package/dist/chunk-FNCHBVLF.mjs +10 -0
  115. package/dist/chunk-GFBRKKX4.mjs +10 -0
  116. package/dist/{chunk-QU34XSML.mjs → chunk-GLAMJIYO.mjs} +2 -2
  117. package/dist/{chunk-NRQSR3G7.mjs → chunk-HABKIEKC.mjs} +1 -1
  118. package/dist/{chunk-HI44JQA7.mjs → chunk-HPUUQKKH.mjs} +2 -2
  119. package/dist/chunk-HZM2XZP4.mjs +10 -0
  120. package/dist/{chunk-ZFGTKLCU.mjs → chunk-I7SMG6PT.mjs} +1 -1
  121. package/dist/{chunk-TH4XPZEO.mjs → chunk-IM3E5JL4.mjs} +1 -1
  122. package/dist/chunk-IROFSPEN.mjs +10 -0
  123. package/dist/chunk-JRCDMRIW.mjs +10 -0
  124. package/dist/{chunk-WHN2SEWO.mjs → chunk-KHDWTXGG.mjs} +2 -2
  125. package/dist/{chunk-SVTTHYTR.mjs → chunk-KW3BKIG4.mjs} +1 -1
  126. package/dist/{chunk-EUVUJQ2Z.mjs → chunk-LBHZV4BO.mjs} +1 -1
  127. package/dist/{chunk-QJYPCVSD.mjs → chunk-LKSUUT3M.mjs} +1 -1
  128. package/dist/chunk-LQ7PGSP4.mjs +10 -0
  129. package/dist/chunk-LQHFBXCW.mjs +10 -0
  130. package/dist/{chunk-MIF6BAPG.mjs → chunk-LSPDPDB6.mjs} +1 -1
  131. package/dist/chunk-MCN5JU6E.mjs +10 -0
  132. package/dist/chunk-MHAPHPNN.mjs +10 -0
  133. package/dist/{chunk-4AG2RUAZ.mjs → chunk-NMK4W6K3.mjs} +2 -2
  134. package/dist/chunk-O23QVPUT.mjs +10 -0
  135. package/dist/{chunk-WTAJLO6E.mjs → chunk-O6FPWOHR.mjs} +1 -1
  136. package/dist/chunk-OMWMNUTI.mjs +10 -0
  137. package/dist/{chunk-YU5NRJT6.mjs → chunk-ONBEVR2G.mjs} +1 -1
  138. package/dist/{chunk-XD43CVDT.mjs → chunk-OVJT5F2R.mjs} +1 -1
  139. package/dist/{chunk-YPEAGD2G.mjs → chunk-OWQRYRWF.mjs} +1 -1
  140. package/dist/{chunk-ZZIQF6XD.mjs → chunk-PLZ6ZFEO.mjs} +1 -1
  141. package/dist/{chunk-PD5ZXNGT.mjs → chunk-QMV2O57M.mjs} +2 -2
  142. package/dist/{chunk-C2VP5IEB.mjs → chunk-QWZBZ23U.mjs} +1 -1
  143. package/dist/{chunk-E22TWF63.mjs → chunk-QXXKOFWM.mjs} +2 -2
  144. package/dist/{chunk-SZN2J2ER.mjs → chunk-R6Q7UMQS.mjs} +1 -1
  145. package/dist/chunk-SI5WP6I7.mjs +10 -0
  146. package/dist/{chunk-36ZMHBG5.mjs → chunk-T6J7G3YL.mjs} +1 -1
  147. package/dist/chunk-TTVYMCU3.mjs +10 -0
  148. package/dist/chunk-TYKMNZJ4.mjs +11 -0
  149. package/dist/chunk-TZGK36KC.mjs +10 -0
  150. package/dist/chunk-UBLCUHRL.mjs +10 -0
  151. package/dist/{chunk-IVGNOQSQ.mjs → chunk-UH6QIGD3.mjs} +1 -1
  152. package/dist/chunk-UOWKAUCQ.mjs +10 -0
  153. package/dist/{chunk-OZMADP4Z.mjs → chunk-UPJHL37C.mjs} +2 -2
  154. package/dist/chunk-USUPPN73.mjs +10 -0
  155. package/dist/{chunk-XWJJ4V3O.mjs → chunk-UYAFH4CW.mjs} +2 -2
  156. package/dist/{chunk-KJ6ZSO3I.mjs → chunk-UYUYQFOW.mjs} +1 -1
  157. package/dist/chunk-VFO35ZLL.mjs +10 -0
  158. package/dist/chunk-VXZT2JR2.mjs +10 -0
  159. package/dist/{chunk-R3HHMCE5.mjs → chunk-WFYFHANE.mjs} +1 -1
  160. package/dist/{chunk-NYCG264A.mjs → chunk-X5ORCNAU.mjs} +2 -2
  161. package/dist/chunk-X5ZTXDQ4.mjs +10 -0
  162. package/dist/{chunk-BBYODNBO.mjs → chunk-X7CKWYUD.mjs} +1 -1
  163. package/dist/{chunk-6G7EUNZW.mjs → chunk-XAM3AXXK.mjs} +1 -1
  164. package/dist/{chunk-24R46WQW.mjs → chunk-XOS3JIQX.mjs} +1 -1
  165. package/dist/{chunk-TSHZ7JSR.mjs → chunk-XQC3DSTW.mjs} +1 -1
  166. package/dist/{chunk-VETO7WNN.mjs → chunk-Y3HXPORF.mjs} +2 -2
  167. package/dist/chunk-YDUKC7QS.mjs +10 -0
  168. package/dist/{chunk-P7BN7QDF.mjs → chunk-YFBMCK5O.mjs} +1 -1
  169. package/dist/{chunk-4RSUKS23.mjs → chunk-YYU46XNM.mjs} +2 -2
  170. package/dist/{chunk-Q6PGYMYI.mjs → chunk-Z3ZMWJSV.mjs} +1 -1
  171. package/dist/chunk-Z4QTH4TB.mjs +10 -0
  172. package/dist/{chunk-UNGYVWKZ.mjs → chunk-ZA2FH3MS.mjs} +1 -1
  173. package/dist/hooks/useContainerScopedRef.mjs +1 -1
  174. package/dist/hooks/useDevice.mjs +1 -1
  175. package/dist/hooks/useI18n.mjs +1 -1
  176. package/dist/hooks/useIntersectionObserver.mjs +1 -1
  177. package/dist/hooks/useLiveInteractionModality.mjs +1 -1
  178. package/dist/hooks/useMedia.mjs +1 -1
  179. package/dist/hooks/useMutationObserver.mjs +1 -1
  180. package/dist/hooks/usePortalContainer.mjs +1 -1
  181. package/dist/hooks/usePreventFocus.mjs +1 -1
  182. package/dist/hooks/useResizeObserver.mjs +1 -1
  183. package/dist/hooks/useTextSelection.mjs +1 -1
  184. package/dist/index.css +1 -1
  185. package/dist/index.d.ts +65 -22
  186. package/dist/index.js +21 -21
  187. package/dist/index.mjs +1 -1
  188. package/dist/messageIds.mjs +1 -1
  189. package/dist/utils/colors.mjs +1 -1
  190. package/dist/utils/dom.mjs +1 -1
  191. package/dist/utils/isInShadowDOM.mjs +1 -1
  192. package/dist/utils/keyboards.mjs +1 -1
  193. package/dist/utils/strings.mjs +1 -1
  194. package/intl/ar.json +1 -0
  195. package/intl/cs.json +1 -0
  196. package/intl/cy.json +1 -0
  197. package/intl/da.json +1 -0
  198. package/intl/de.json +1 -0
  199. package/intl/el.json +1 -0
  200. package/intl/en-GB.json +1 -0
  201. package/intl/en.json +1 -0
  202. package/intl/es.json +1 -0
  203. package/intl/fi.json +1 -0
  204. package/intl/fr-CA.json +1 -0
  205. package/intl/fr.json +1 -0
  206. package/intl/he.json +1 -0
  207. package/intl/hr.json +1 -0
  208. package/intl/id.json +1 -0
  209. package/intl/it.json +1 -0
  210. package/intl/ja.json +1 -0
  211. package/intl/ko.json +1 -0
  212. package/intl/ms.json +1 -0
  213. package/intl/nb-NO.json +1 -0
  214. package/intl/nl.json +1 -0
  215. package/intl/pl.json +1 -0
  216. package/intl/pt-PT.json +1 -0
  217. package/intl/pt.json +1 -0
  218. package/intl/ru.json +1 -0
  219. package/intl/sk.json +1 -0
  220. package/intl/sl.json +1 -0
  221. package/intl/sv.json +1 -0
  222. package/intl/th.json +1 -0
  223. package/intl/tr.json +1 -0
  224. package/intl/uk.json +1 -0
  225. package/intl/zh-Hans.json +1 -0
  226. package/intl/zh-Hant.json +1 -0
  227. package/messages.json +4 -0
  228. package/package.json +4 -4
  229. package/sbom.json +6 -6
  230. package/dist/chunk-2F3CFR22.mjs +0 -10
  231. package/dist/chunk-2LFMBQKQ.mjs +0 -10
  232. package/dist/chunk-3BEG3MEX.mjs +0 -10
  233. package/dist/chunk-3BG6K2G2.mjs +0 -10
  234. package/dist/chunk-3KCSUNRV.mjs +0 -10
  235. package/dist/chunk-4JQUB53Q.mjs +0 -10
  236. package/dist/chunk-4MHBLLHV.mjs +0 -11
  237. package/dist/chunk-5BKC373Y.mjs +0 -10
  238. package/dist/chunk-5FK5AJ7A.mjs +0 -10
  239. package/dist/chunk-5SHHWKFM.mjs +0 -10
  240. package/dist/chunk-76DKF2SK.mjs +0 -10
  241. package/dist/chunk-7MMO7S3R.mjs +0 -10
  242. package/dist/chunk-AK7XHUQW.mjs +0 -10
  243. package/dist/chunk-DAS5QGJX.mjs +0 -10
  244. package/dist/chunk-DSV6CCI6.mjs +0 -10
  245. package/dist/chunk-F7PGMOQF.mjs +0 -10
  246. package/dist/chunk-FOKMDEP7.mjs +0 -10
  247. package/dist/chunk-FPFGTGUC.mjs +0 -10
  248. package/dist/chunk-IEOHIOGL.mjs +0 -10
  249. package/dist/chunk-IWZXZ5LU.mjs +0 -10
  250. package/dist/chunk-IXRSSEHQ.mjs +0 -10
  251. package/dist/chunk-J4OPD7OL.mjs +0 -10
  252. package/dist/chunk-K7VOXFSK.mjs +0 -10
  253. package/dist/chunk-MDE2FQHX.mjs +0 -10
  254. package/dist/chunk-MYJ733MN.mjs +0 -10
  255. package/dist/chunk-NJKSUI2F.mjs +0 -10
  256. package/dist/chunk-O4DA3TPW.mjs +0 -11
  257. package/dist/chunk-ONEE6UCM.mjs +0 -10
  258. package/dist/chunk-Q4SEEMIX.mjs +0 -10
  259. package/dist/chunk-R4MOUAJW.mjs +0 -10
  260. package/dist/chunk-U3T5JTZ7.mjs +0 -10
  261. package/dist/chunk-UDMNDUBO.mjs +0 -10
  262. package/dist/chunk-VGFPT43C.mjs +0 -10
  263. package/dist/chunk-VJUBKX3W.mjs +0 -10
  264. /package/dist/{chunk-RXSX2RKA.mjs → chunk-SBGZCLF4.mjs} +0 -0
  265. /package/dist/{chunk-DAN62T2M.mjs → chunk-TIGGKOJQ.mjs} +0 -0
@@ -1,10 +0,0 @@
1
- import {a as a$a}from'./chunk-KT4FTBJ2.mjs';import {j,c,i,l,p,r,s,m,x,u,v,k,f as f$2,e as e$1,y,d,q,a as a$h}from'./chunk-YQHHE5AT.mjs';import {a as a$e}from'./chunk-AMW7LGCF.mjs';import {b as b$1,c as c$5}from'./chunk-NYCG264A.mjs';import {c as c$8}from'./chunk-BROSGYL3.mjs';import {c as c$2,f as f$1,e as e$2,d as d$2}from'./chunk-R3HHMCE5.mjs';import {a as a$f}from'./chunk-TAT552A5.mjs';import {a as a$l}from'./chunk-MIF6BAPG.mjs';import {b as b$3}from'./chunk-6G7EUNZW.mjs';import {d as d$3}from'./chunk-PD5ZXNGT.mjs';import {b,c as c$1}from'./chunk-DF2D7NE6.mjs';import {a as a$b,f as f$3}from'./chunk-ZQOR4LCM.mjs';import {f as f$4}from'./chunk-UZ672WDX.mjs';import {a as a$7,b as b$6}from'./chunk-UO75BAPM.mjs';import {a as a$c}from'./chunk-O7XK2WIX.mjs';import {b as b$9}from'./chunk-OQPYPKZV.mjs';import {a as a$3}from'./chunk-GMALMQWI.mjs';import {a}from'./chunk-USMC34OO.mjs';import {b as b$8}from'./chunk-KG2EHFYA.mjs';import {a as a$p}from'./chunk-5FK5AJ7A.mjs';import {b as b$2}from'./chunk-N2XGJKZG.mjs';import {a as a$o}from'./chunk-22MA6EYO.mjs';import {e,h,c as c$3,b as b$4,f,a as a$8,d as d$1,k as k$2}from'./chunk-AYQN3OH2.mjs';import {a as a$m}from'./chunk-22VRCVTH.mjs';import {a as a$g}from'./chunk-66CUIXA6.mjs';import {j as j$2,k as k$1,e as e$4}from'./chunk-J4OPD7OL.mjs';import {a as a$k}from'./chunk-AI6WQPRX.mjs';import {a as a$1}from'./chunk-STMDFIUL.mjs';import {c as c$7}from'./chunk-HH4VLTF3.mjs';import {a as a$6}from'./chunk-4S4GGUSH.mjs';import {j as j$1,b as b$5,d as d$5,f as f$5}from'./chunk-KUDCYGII.mjs';import {a as a$5}from'./chunk-B3EZOXNU.mjs';import {d as d$4}from'./chunk-F7WPMQ3P.mjs';import {a as a$4}from'./chunk-RT4LMB6X.mjs';import {a as a$j,o,r as r$1,u as u$1,s as s$1,h as h$2,e as e$5}from'./chunk-PPHSLODC.mjs';import {c as c$4}from'./chunk-3WKDIXCM.mjs';import {a as a$2}from'./chunk-SVIYLH7R.mjs';import {c as c$6,a as a$i,e as e$3}from'./chunk-ETM4MNG4.mjs';import {m as m$1,h as h$1,j as j$3,i as i$1,b as b$7,a as a$n}from'./chunk-SD43KVTU.mjs';import {a as a$9}from'./chunk-JQQGRJ5J.mjs';import {a as a$d}from'./chunk-4QEH5CGK.mjs';import Me,{createContext,forwardRef,useContext,useMemo,useRef,useEffect,useCallback,useImperativeHandle,useState}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {ChevronRightFilledIcon}from'@baseline-ui/icons/8';import {CheckmarkIcon as CheckmarkIcon$1}from'@baseline-ui/icons/12';import {CheckmarkIcon}from'@baseline-ui/icons/24';/**
2
- * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
- *
4
- * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
- * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
- * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
- * This notice may not be removed from this file.
8
- *
9
- */
10
- var Pe=createContext({}),Ge=j(c,function(e$1,t){return [e$1,t]=e(e$1,t,Pe),jsx(h.header,{className:"react-aria-Header",...e$1,ref:t,children:e$1.children})});var Xe=createContext({});var pt=createContext(null),se=createContext(null),mt=forwardRef(function(e$1,t){[e$1,t]=e(e$1,t,pt);let o=useContext(se);return o?jsx(Ar,{state:o,props:e$1,listBoxRef:t}):jsx(i,{content:jsx(l,{...e$1}),children:n=>jsx(go,{props:e$1,listBoxRef:t,collection:n})})});function go({props:r,listBoxRef:e,collection:t}){r={...r,collection:t,children:null,items:null};let{layoutDelegate:o}=useContext(p),n=b({...r,layoutDelegate:o});return jsx(Ar,{state:n,props:r,listBoxRef:e})}function Ar({state:r$1,props:e$1,listBoxRef:t}){[e$1,t]=e(e$1,t,b$1);let{dragAndDropHooks:o,layout:n="stack",orientation:i="vertical",filter:l}=e$1,s$1=c$1(r$1,l),{collection:c,selectionManager:u$1}=s$1,a$4=!!o?.useDraggableCollectionState,d=!!o?.useDroppableCollectionState,{direction:g}=b$2(),{disabledBehavior:p$1,disabledKeys:x$1}=u$1,y=a({usage:"search",sensitivity:"base"}),{isVirtualized:m$1,layoutDelegate:b,dropTargetDelegate:S,CollectionRoot:M}=useContext(p),R=useMemo(()=>e$1.keyboardDelegate||new b$3({collection:c,collator:y,ref:t,disabledKeys:x$1,disabledBehavior:p$1,layout:n,orientation:i,direction:g,layoutDelegate:b}),[c,y,t,p$1,x$1,i,g,e$1.keyboardDelegate,n,b]),{listBoxProps:I}=c$2({...e$1,shouldSelectOnPressUp:a$4||e$1.shouldSelectOnPressUp,keyboardDelegate:R,isVirtualized:m$1},s$1,t),F=useRef(a$4),f=useRef(d);useEffect(()=>{process.env.NODE_ENV!=="production"&&(F.current!==a$4&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),f.current!==d&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."));},[a$4,d]);let T,E,B,P=false,v$1=null,C=useRef(null);if(a$4&&o){T=o.useDraggableCollectionState({collection:c,selectionManager:u$1,preview:o.renderDragPreview?C:void 0}),o.useDraggableCollection({},T,t);let Y=o.DragPreview;v$1=o.renderDragPreview?jsx(Y,{ref:C,children:o.renderDragPreview}):null;}if(d&&o){E=o.useDroppableCollectionState({collection:c,selectionManager:u$1});let Y=o.dropTargetDelegate||S||new o.ListDropTargetDelegate(c,t,{orientation:i,layout:n,direction:g});B=o.useDroppableCollection({keyboardDelegate:R,dropTargetDelegate:Y},E,t),P=E.isDropTarget({type:"root"});}let{focusProps:_,isFocused:U,isFocusVisible:K}=a$1(),H=s$1.collection.size===0,X={isDropTarget:P,isEmpty:H,isFocused:U,isFocusVisible:K,layout:e$1.layout||"stack",orientation:i,state:s$1},ae=c$3({...e$1,children:void 0,defaultClassName:"react-aria-ListBox",values:X}),oe=null;H&&e$1.renderEmptyState&&(oe=jsx("div",{role:"option",style:{display:"contents"},children:e$1.renderEmptyState(X)}));let J=a$2(e$1,{global:true});return jsx(a$3,{children:jsxs(h.div,{...c$4(J,ae,I,_,B?.collectionProps),ref:t,slot:e$1.slot||void 0,onScroll:e$1.onScroll,"data-drop-target":P||void 0,"data-empty":H||void 0,"data-focused":U||void 0,"data-focus-visible":K||void 0,"data-layout":e$1.layout||"stack","data-orientation":i,children:[jsx(b$4,{values:[[pt,e$1],[se,s$1],[r,{dragAndDropHooks:o,dragState:T,dropState:E}],[Xe,{elementType:"div"}],[s,{render:yo}],[m,{name:"ListBoxSection",render:Ir}]],children:jsx(x,{children:jsx(M,{collection:c,scrollRef:t,persistedKeys:v(u$1,o,E),renderDropIndicator:u(o,E)})})}),oe,v$1]})})}function Ir(r$1,e,t,o="react-aria-ListBoxSection"){let n=useContext(se),{dragAndDropHooks:i,dropState:l}=useContext(r),{CollectionBranch:s}=useContext(p),[c,u$1]=f(),{headingProps:a,groupProps:d}=f$1({heading:u$1,"aria-label":r$1["aria-label"]??void 0}),g=c$3({...r$1,id:void 0,children:void 0,defaultClassName:o,values:void 0}),p$1=a$2(r$1,{global:true});return delete p$1.id,jsx(h.section,{...c$4(p$1,g,d),ref:e,children:jsx(Pe.Provider,{value:{...a,ref:c},children:jsx(s,{collection:n.collection,parent:t,renderDropIndicator:u(i,l)})})})}var ft=k(f$2,Ir),gt=j(e$1,function(e,t,o){let n=a$4(t),i=useContext(se),{dragAndDropHooks:l,dragState:s,dropState:c}=useContext(r),u=s&&!(s.isDisabled||s.selectionManager.isDisabled(o.key)),{optionProps:a,labelProps:d,descriptionProps:g,...p}=e$2({key:o.key,"aria-label":e?.["aria-label"]},i,n),{hoverProps:x,isHovered:y$1}=a$5({isDisabled:!p.allowsSelection&&!p.hasAction&&!u,onHoverStart:o.props.onHoverStart,onHoverChange:o.props.onHoverChange,onHoverEnd:o.props.onHoverEnd}),{keyboardProps:m}=j$1(e),{focusProps:b}=a$6(e),S=null;s&&l&&(S=l.useDraggableItem({key:o.key,hasAction:p.hasAction},s,n));let M=null;c&&l&&(M=l.useDroppableItem({target:{type:"item",key:o.key,dropPosition:"on"}},c,n));let R=s&&s.isDragging(o.key),I=c$3({...e,id:void 0,children:e.children,defaultClassName:"react-aria-ListBoxItem",values:{...p,isHovered:y$1,selectionMode:i.selectionManager.selectionMode,selectionBehavior:i.selectionManager.selectionBehavior,allowsDragging:!!s,isDragging:R,isDropTarget:M?.isDropTarget}});useEffect(()=>{!o.textValue&&process.env.NODE_ENV!=="production"&&console.warn("A `textValue` prop is required for <ListBoxItem> elements with non-plain text children in order to support accessibility features such as type to select.");},[o.textValue]);let F=e.href?h.a:h.div,f=a$2(e,{global:true});return delete f.id,delete f.onClick,e.href&&a.tabIndex==null&&(a.tabIndex=-1),jsx(F,{...c$4(f,I,a,x,m,b,S?.dragProps,M?.dropProps),ref:n,"data-allows-dragging":!!s||void 0,"data-selected":p.isSelected||void 0,"data-disabled":p.isDisabled||void 0,"data-hovered":y$1||void 0,"data-focused":p.isFocused||void 0,"data-focus-visible":p.isFocusVisible||void 0,"data-pressed":p.isPressed||void 0,"data-dragging":R||void 0,"data-drop-target":M?.isDropTarget||void 0,"data-selection-mode":i.selectionManager.selectionMode==="none"?void 0:i.selectionManager.selectionMode,children:jsx(b$4,{values:[[a$7,{slots:{[a$8]:d,label:d,description:g}}],[y,{isSelected:p.isSelected}]],children:I.children})})});function yo(r$1,e){e=a$4(e);let{dragAndDropHooks:t,dropState:o}=useContext(r),{dropIndicatorProps:n,isHidden:i,isDropTarget:l}=t.useDropIndicator(r$1,o,e);return i?null:jsx(bo,{...r$1,dropIndicatorProps:n,isDropTarget:l,ref:e})}function Po(r,e){let{dropIndicatorProps:t,isDropTarget:o,...n}=r,i=c$3({...n,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:o}});return jsx(Fragment,{children:jsx(h.div,{...t,...i,role:"option",ref:e,"data-drop-target":o||void 0})})}var bo=forwardRef(Po);j(d,function(e,t,o){let n=useContext(se),{isLoading:i,onLoadMore:l,scrollOffset:s,...c}=e,u=useRef(null),a=useMemo(()=>({onLoadMore:l,collection:n?.collection,sentinelRef:u,scrollOffset:s}),[l,s,n?.collection]);j$2(a,u);let d=c$3({...c,id:void 0,children:o.rendered,defaultClassName:"react-aria-ListBoxLoadingIndicator",values:void 0}),g={tabIndex:-1};return jsxs(Fragment,{children:[jsx("div",{style:{position:"relative",width:0,height:0},inert:k$1(true),children:jsx("div",{"data-testid":"loadMoreSentinel",ref:u,style:{position:"absolute",height:1,width:1}})}),i&&d.children&&jsx(Fragment,{children:jsx(h.div,{...c$4(a$2(e,{global:true}),g),...d,role:"option",ref:t,children:d.children})})]})});var $e=({renderOption:r,optionClassName:e,optionStyle:t,renderSectionHeader:o,sectionClassName:n,sectionStyle:i,showSectionHeader:l,withSectionHeaderPadding:s}={})=>Object.values({renderOption:r,optionClassName:e,optionStyle:t,renderSectionHeader:o,sectionClassName:n,sectionStyle:i,showSectionHeader:l,withSectionHeaderPadding:s});var Si=a$9({defaultClassName:"_1fjxa6ld _1yep5z6m8 _1yep5z6m7 _1yep5z6is _1yep5z6lq",variantClassNames:{isDropTarget:{true:"_1yep5z614w"},orientation:{vertical:"_1yep5z618m",horizontal:"_1yep5z618n"}},defaultVariants:{},compoundVariants:[]}),wr="_1fjxa6la _1yep5z6m6 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja",Fr=a$9({defaultClassName:"_1fjxa6lb _1yep5z6ez _1yep5z6da _1yep5z6dv",variantClassNames:{isDisabled:{true:"_1yep5z6f2"}},defaultVariants:{},compoundVariants:[]}),Br=a$9({defaultClassName:"_1fjxa6l3 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jh _1yep5z6ji _1yep5z6jj _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6kz _1yep5z6l0 _1yep5z6l1 _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6dy _1yep5z6ey _1yep5z6lq _1yep5z6lt _1yep5z6m6 _1yep5z6m5 _1yep5z6m3 _1yep5z6m0",variantClassNames:{isSelected:{},isFocused:{true:"_1yep5z614w _1yep5z618s _1yep5z618q _1yep5z618t _1yep5z615c _1yep5z615d _1yep5z615e"},isFirstChild:{true:"_1fjxa6l5"},isLastChild:{true:"_1fjxa6l6"},isHovered:{true:"_1yep5z612t",false:"_1yep5z612s"},isDisabled:{true:"z9nup82 _1yep5z611l"}},defaultVariants:{},compoundVariants:[]}),Hr="_1fjxa6lh _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jz _1yep5z6k0 _1yep5z6k1",Nr="_1fjxa6l1",zr="_1fjxa6l2",_r="_1fjxa6l0";var Kr={"ar-AE":{longPressMessage:"\u0627\u0636\u063A\u0637 \u0645\u0637\u0648\u0644\u0627\u064B \u0623\u0648 \u0627\u0636\u063A\u0637 \u0639\u0644\u0649 Alt + \u0627\u0644\u0633\u0647\u0645 \u0644\u0623\u0633\u0641\u0644 \u0644\u0641\u062A\u062D \u0627\u0644\u0642\u0627\u0626\u0645\u0629"},"bg-BG":{longPressMessage:"\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E \u0438\u043B\u0438 \u043D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 Alt+ \u0441\u0442\u0440\u0435\u043B\u043A\u0430 \u043D\u0430\u0434\u043E\u043B\u0443, \u0437\u0430 \u0434\u0430 \u043E\u0442\u0432\u043E\u0440\u0438\u0442\u0435 \u043C\u0435\u043D\u044E\u0442\u043E"},"cs-CZ":{longPressMessage:"Dlouh\xFDm stiskem nebo stisknut\xEDm kl\xE1ves Alt + \u0161ipka dol\u016F otev\u0159ete nab\xEDdku"},"da-DK":{longPressMessage:"Langt tryk eller tryk p\xE5 Alt + pil ned for at \xE5bne menuen"},"de-DE":{longPressMessage:"Dr\xFCcken Sie lange oder dr\xFCcken Sie Alt + Nach-unten, um das Men\xFC zu \xF6ffnen"},"el-GR":{longPressMessage:"\u03A0\u03B9\u03AD\u03C3\u03C4\u03B5 \u03C0\u03B1\u03C1\u03B1\u03C4\u03B5\u03C4\u03B1\u03BC\u03AD\u03BD\u03B1 \u03AE \u03C0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 Alt + \u03BA\u03AC\u03C4\u03C9 \u03B2\u03AD\u03BB\u03BF\u03C2 \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03B1\u03BD\u03BF\u03AF\u03BE\u03B5\u03C4\u03B5 \u03C4\u03BF \u03BC\u03B5\u03BD\u03BF\u03CD"},"en-US":{longPressMessage:"Long press or press Alt + ArrowDown to open menu"},"es-ES":{longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el men\xFA"},"et-EE":{longPressMessage:"Men\xFC\xFC avamiseks vajutage pikalt v\xF5i vajutage klahve Alt + allanool"},"fi-FI":{longPressMessage:"Avaa valikko painamalla pohjassa tai n\xE4pp\xE4inyhdistelm\xE4ll\xE4 Alt + Alanuoli"},"fr-FR":{longPressMessage:"Appuyez de mani\xE8re prolong\xE9e ou appuyez sur Alt\xA0+\xA0Fl\xE8che vers le bas pour ouvrir le menu."},"he-IL":{longPressMessage:"\u05DC\u05D7\u05E5 \u05DC\u05D7\u05D9\u05E6\u05D4 \u05D0\u05E8\u05D5\u05DB\u05D4 \u05D0\u05D5 \u05D4\u05E7\u05E9 Alt + ArrowDown \u05DB\u05D3\u05D9 \u05DC\u05E4\u05EA\u05D5\u05D7 \u05D0\u05EA \u05D4\u05EA\u05E4\u05E8\u05D9\u05D8"},"hr-HR":{longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"},"hu-HU":{longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele ny\xEDl gombot a men\xFC megnyit\xE1s\xE1hoz"},"it-IT":{longPressMessage:"Premi a lungo o premi Alt + Freccia gi\xF9 per aprire il menu"},"ja-JP":{longPressMessage:"\u9577\u62BC\u3057\u307E\u305F\u306F Alt+\u4E0B\u77E2\u5370\u30AD\u30FC\u3067\u30E1\u30CB\u30E5\u30FC\u3092\u958B\u304F"},"ko-KR":{longPressMessage:"\uAE38\uAC8C \uB204\uB974\uAC70\uB098 Alt + \uC544\uB798\uCABD \uD654\uC0B4\uD45C\uB97C \uB20C\uB7EC \uBA54\uB274 \uC5F4\uAE30"},"lt-LT":{longPressMessage:"Nor\u0117dami atidaryti meniu, nuspaud\u0119 palaikykite arba paspauskite \u201EAlt + ArrowDown\u201C."},"lv-LV":{longPressMessage:"Lai atv\u0113rtu izv\u0113lni, turiet nospiestu vai nospiediet tausti\u0146u kombin\u0101ciju Alt + lejupv\u0113rst\u0101 bulti\u0146a"},"nb-NO":{longPressMessage:"Langt trykk eller trykk Alt + PilNed for \xE5 \xE5pne menyen"},"nl-NL":{longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"},"pl-PL":{longPressMessage:"Naci\u015Bnij i przytrzymaj lub naci\u015Bnij klawisze Alt + Strza\u0142ka w d\xF3\u0142, aby otworzy\u0107 menu"},"pt-BR":{longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"},"pt-PT":{longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"},"ro-RO":{longPressMessage:"Ap\u0103sa\u021Bi lung sau ap\u0103sa\u021Bi pe Alt + s\u0103geat\u0103 \xEEn jos pentru a deschide meniul"},"ru-RU":{longPressMessage:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u0438 \u0443\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0439\u0442\u0435 \u0438\u043B\u0438 \u043D\u0430\u0436\u043C\u0438\u0442\u0435 Alt + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437, \u0447\u0442\u043E\u0431\u044B \u043E\u0442\u043A\u0440\u044B\u0442\u044C \u043C\u0435\u043D\u044E"},"sk-SK":{longPressMessage:"Ponuku otvor\xEDte dlh\xFDm stla\u010Den\xEDm alebo stla\u010Den\xEDm kl\xE1vesu Alt + kl\xE1vesu so \u0161\xEDpkou nadol"},"sl-SI":{longPressMessage:"Za odprtje menija pritisnite in dr\u017Eite gumb ali pritisnite Alt+pu\u0161\u010Dica navzdol"},"sr-SP":{longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"},"sv-SE":{longPressMessage:"H\xE5ll nedtryckt eller tryck p\xE5 Alt + pil ned\xE5t f\xF6r att \xF6ppna menyn"},"tr-TR":{longPressMessage:"Men\xFCy\xFC a\xE7mak i\xE7in uzun bas\u0131n veya Alt + A\u015Fa\u011F\u0131 Ok tu\u015Funa bas\u0131n"},"uk-UA":{longPressMessage:"\u0414\u043E\u0432\u0433\u043E \u0430\u0431\u043E \u0437\u0432\u0438\u0447\u0430\u0439\u043D\u043E \u043D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C \u043A\u043E\u043C\u0431\u0456\u043D\u0430\u0446\u0456\u044E \u043A\u043B\u0430\u0432\u0456\u0448 Alt \u0456 \u0441\u0442\u0440\u0456\u043B\u043A\u0430 \u0432\u043D\u0438\u0437, \u0449\u043E\u0431 \u0432\u0456\u0434\u043A\u0440\u0438\u0442\u0438 \u043C\u0435\u043D\u044E"},"zh-CN":{longPressMessage:"\u957F\u6309\u6216\u6309 Alt + \u5411\u4E0B\u65B9\u5411\u952E\u4EE5\u6253\u5F00\u83DC\u5355"},"zh-TW":{longPressMessage:"\u9577\u6309\u6216\u6309 Alt+\u5411\u4E0B\u9375\u4EE5\u958B\u555F\u529F\u80FD\u8868"}};function Vr(r){let{onContextMenu:e}=r,t=useRef(false),{longPressProps:o}=a$p({onLongPressStart(){t.current=false;},onLongPress(n){t.current?t.current=false:e?.({target:n.target,x:n.x,y:n.y});}});return e?{contextMenuProps:c$4(h$2()?o:{},{onContextMenu(n){n.stopPropagation(),n.preventDefault(),t.current=true;let i=n.currentTarget.getBoundingClientRect();e({target:n.currentTarget,x:n.clientX-i.x,y:n.clientY-i.y});},onKeyDown(n){if(e$5()&&n.ctrlKey&&n.key==="Enter"){t.current=false;let i=n.currentTarget;n.stopPropagation(),setTimeout(()=>{if(t.current)t.current=false;else {let l=i.getBoundingClientRect();e({target:i,x:l.width/2,y:l.height/2});}},10);}}})}:{contextMenuProps:{}}}function yt(r,e,t){let{type:o="menu",isDisabled:n,trigger:i="press"}=r,l=c$6(),{triggerProps:s,overlayProps:c}=a$o({type:o},e,t),u=(m,b,S="first")=>{if(!m||b.isDefaultPrevented())return false;e.toggle(S);},{keyboardProps:a}=j$1({isDisabled:n,shortcuts:{Enter:m=>u(i!=="longPress",m,"first")," ":m=>u(i!=="longPress",m,"first"),ArrowDown:m=>u(i!=="longPress",m,"first"),ArrowUp:m=>u(i!=="longPress",m,"last"),"Alt+Enter":m=>u(i==="longPress",m,"first"),"Alt+ ":m=>u(i==="longPress",m,"first"),"Alt+ArrowDown":m=>u(true,m,"first"),"Alt+ArrowUp":m=>u(true,m,"last")}}),d=b$8(Kr,"@react-aria/menu"),{longPressProps:g}=a$p({isDisabled:n||i!=="longPress",accessibilityDescription:d.format("longPressMessage"),onLongPressStart(){e.close();},onLongPress(){e.open("first");}}),p={preventFocusOnPress:true,onPressStart(m){m.pointerType!=="touch"&&m.pointerType!=="keyboard"&&!n&&(a$j(m.target),e.open(m.pointerType==="virtual"?"first":null));},onPress(m){m.pointerType==="touch"&&!n&&(a$j(m.target),e.toggle());}};delete s.onPress;let{contextMenuProps:x}=Vr({onContextMenu(m){let b=m.target.getBoundingClientRect();e.setPoint({x:b.x+m.x,y:b.y+m.y}),e.open();}});useEffect(()=>{if(e.isOpen&&i==="contextMenu"){let m=b=>{(b.button===2||b.button===0&&b.ctrlKey===true)&&j$3(b)===document.body&&e.close();};return document.addEventListener("mousedown",m),()=>document.removeEventListener("mousedown",m)}},[e,i]);let y;if(i==="press")y={...p,...a};else if(i==="longPress")y={...g,...a};else if(i==="contextMenu"){y=x;let{"aria-haspopup":m,"aria-expanded":b,"aria-controls":S,...M}=s;s=M;}return {menuTriggerProps:{...s,...y,id:l},menuProps:{...c,"aria-labelledby":l,autoFocus:e.focusStrategy||true,onClose:e.close}}}var Je=new WeakMap;function Pt(r,e,t){let{shouldFocusWrap:o=true,onKeyDown:n,onKeyUp:i,...l}=r;!r["aria-label"]&&!r["aria-labelledby"]&&process.env.NODE_ENV!=="production"&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let s=a$2(r,{labelable:true}),{listProps:c}=a$l({...l,ref:t,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,shouldFocusWrap:o,linkBehavior:"override"});return Je.set(e,{onClose:r.onClose,onAction:r.onAction,shouldUseVirtualFocus:r.shouldUseVirtualFocus}),{menuProps:c$4(s,{onKeyDown:n,onKeyUp:i},{role:"menu",...c,onKeyDown:u=>{(u.key!=="Escape"||r.shouldUseVirtualFocus)&&c.onKeyDown?.(u);}})}}function bt(r,e,t){let{id:o$1,key:n,closeOnSelect:i,shouldCloseOnSelect:l,isVirtualized:s,"aria-haspopup":c,onPressStart:u,onPressUp:a,onPress:d,onPressChange:g,onPressEnd:p,onClick:x,onHoverStart:y,onHoverChange:m,onHoverEnd:b,onKeyDown:S,onKeyUp:M,onFocus:R,onFocusChange:I,onBlur:F,selectionManager:f=e.selectionManager}=r,T=!!c,E=T&&r["aria-expanded"]==="true",B=r.isDisabled??f.isDisabled(n),P=r.isSelected??f.isSelected(n),v=Je.get(e),C=e.collection.getItem(n),_=r.onClose||v.onClose,U=o(),K=()=>{if(!T&&(C?.props?.onAction?C.props.onAction():r.onAction&&r.onAction(n),v.onAction)){let h=v.onAction;h(n,C?.value);}},H="menuitem";T||(f.selectionMode==="single"?H="menuitemradio":f.selectionMode==="multiple"&&(H="menuitemcheckbox"));let X=e$3(),ae=e$3(),oe=e$3(),J={id:o$1,"aria-disabled":B||void 0,role:H,"aria-label":r["aria-label"],"aria-labelledby":X,"aria-describedby":[r["aria-describedby"],ae,oe].filter(Boolean).join(" ")||void 0,"aria-controls":r["aria-controls"],"aria-haspopup":c,"aria-expanded":r["aria-expanded"]};if(f.selectionMode!=="none"&&!T&&(J["aria-checked"]=P),s){let h=Number(C?.index);J["aria-posinset"]=Number.isNaN(h)?void 0:h+1,J["aria-setsize"]=d$2(e.collection);}let Y=useRef(false),Re=h=>{g?.(h),Y.current=h;},Z=useRef(null),D=h=>{h.pointerType!=="keyboard"&&(Z.current={pointerType:h.pointerType}),h.pointerType==="mouse"&&(Y.current||h.target.click()),a?.(h);},de=h=>{x?.(h),K(),s$1(h,U,C.props.href,C?.props.routerOptions);let ce=Z.current?.pointerType==="keyboard"?Z.current?.key==="Enter"||f.selectionMode==="none"||f.isLink(n):f.selectionMode!=="multiple"||f.isLink(n);ce=l??i??ce,_&&!T&&ce&&_(),Z.current=null;},{itemProps:ne,isFocused:Ht}=d$3({id:o$1,selectionManager:f,key:n,ref:t,shouldSelectOnPressUp:true,allowsDifferentPressOrigin:true,linkBehavior:"none",shouldUseVirtualFocus:v.shouldUseVirtualFocus}),{pressProps:io,isPressed:lo}=d$4({onPressStart:u,onPress:d,onPressUp:D,onPressChange:Re,onPressEnd:p,isDisabled:B}),{hoverProps:so}=a$5({isDisabled:B,onHoverStart(h){!b$5()&&!(E&&c)&&(f.setFocused(true),f.setFocusedKey(n)),y?.(h);},onHoverChange:m,onHoverEnd:b}),{keyboardProps:ao}=j$1({shortcuts:{" ":h=>{Z.current={pointerType:"keyboard",key:" "},j$3(h).click(),d$5("keyboard");},Enter:h=>{Z.current={pointerType:"keyboard",key:"Enter"};let ce=j$3(h);if(ce.tagName!=="A"){ce.click(),d$5("keyboard");return}return d$5("keyboard"),{shouldPreventDefault:false,shouldContinuePropagation:false}}},onKeyDown:S,onKeyUp:M}),{focusableProps:uo}=c$7({onBlur:F,onFocus:R,onFocusChange:I},t),Nt=a$2(C?.props);delete Nt.id;let co=r$1(C?.props);return {menuItemProps:{...J,...c$4(Nt,co,T?{onFocus:ne.onFocus,"data-collection":ne["data-collection"],"data-key":ne["data-key"]}:ne,io,so,ao,uo,v.shouldUseVirtualFocus||T?{onMouseDown:h=>h.preventDefault()}:void 0,B?void 0:{onClick:de}),tabIndex:ne.tabIndex!=null&&E&&!v.shouldUseVirtualFocus?-1:ne.tabIndex},labelProps:{id:X},descriptionProps:{id:ae},keyboardShortcutProps:{id:oe},isFocused:Ht,isFocusVisible:Ht&&f.isFocused&&b$5()&&!E,isSelected:P,isPressed:lo,isDisabled:B}}function xt(r){let{heading:e,"aria-label":t}=r,o=e$3([!!e]);return {itemProps:{role:"presentation"},headingProps:e?{id:o,role:"presentation"}:{},groupProps:{role:"group","aria-label":t,"aria-labelledby":e?o:void 0}}}var Ye=2,Co=50,ho=1e3,Ur=Math.PI/12;function Wr(r){let{menuRef:e,submenuRef:t,isOpen:o,isDisabled:n}=r,i=useRef(void 0),l=useRef(void 0),s=useRef(0),c=useRef(void 0),u=useRef(void 0),a=useRef(void 0),d=useRef(2),[g,p]=useState(false);e$4({ref:o?t:void 0,onResize:()=>{t.current&&(l.current=t.current.getBoundingClientRect(),a.current=void 0);}});let y=()=>{p(false),d.current=Ye,i.current=void 0;},m=f$5(),b=u$1(S=>{g&&S.preventDefault();});useEffect(()=>{g&&e.current?e.current.style.pointerEvents="none":e.current.style.pointerEvents="";},[e,g]),a$i(()=>{let S=t.current,M=e.current;if(n||!S||!o||m!=="pointer"||!M){y();return}l.current=S.getBoundingClientRect();let R=F=>{if(F.pointerType==="touch"||F.pointerType==="pen")return;let f=Date.now();if(f-s.current<Co)return;clearTimeout(c.current),clearTimeout(u.current);let{clientX:T,clientY:E}=F;if(!i.current){i.current={x:T,y:E};return}if(!l.current)return;if(a.current||(a.current=T>l.current.right?"left":"right"),T<M.getBoundingClientRect().left||T>M.getBoundingClientRect().right||E<M.getBoundingClientRect().top||E>M.getBoundingClientRect().bottom){y();return}let B=i.current.x,P=i.current.y,v=a.current==="right"?l.current.left-B:B-l.current.right,C=Math.atan2(P-l.current.top,v)+Ur,_=Math.atan2(P-l.current.bottom,v)-Ur,U=Math.atan2(P-E,a.current==="left"?-(T-B):T-B),K=U<C&&U>_;d.current=K?Math.min(d.current+1,Ye):Math.max(d.current-1,0),d.current>=Ye?p(true):p(false),s.current=f,i.current={x:T,y:E},K&&(c.current=setTimeout(()=>{y(),u.current=setTimeout(()=>{let H=a$n(M).elementFromPoint(T,E);H&&h$1(M,H)&&H.dispatchEvent(new PointerEvent("pointerover",{bubbles:true,cancelable:true}));},100);},ho));},I=b$7(M);return I.addEventListener("pointermove",R),process.env.NODE_ENV!=="test"&&I.addEventListener("pointerdown",b,true),()=>{I.removeEventListener("pointermove",R),process.env.NODE_ENV!=="test"&&I.removeEventListener("pointerdown",b,true),clearTimeout(c.current),clearTimeout(u.current),d.current=Ye;}},[n,o,e,m,p,t]);}function Mt(r,e,t){let{parentMenuRef:o,submenuRef:n,type:i="menu",isDisabled:l,delay:s=200,shouldUseVirtualFocus:c}=r,u=c$6(),a=c$6(),{direction:d}=b$2(),g=useRef(void 0),p=useCallback(()=>{g.current&&(clearTimeout(g.current),g.current=void 0);},[g]),x=useCallback(f=>{p(),e.open(f);},[e,p]),y=useCallback(()=>{p(),e.close();},[e,p]);a$i(()=>()=>{p();},[p]);let{keyboardProps:m}=j$1({shortcuts:{ArrowLeft:f=>{if(!m$1(f.currentTarget))return false;if(d==="ltr"&&h$1(f.currentTarget,j$3(f))){y(),!c&&t.current&&a$j(t.current);return}return false},ArrowRight:f=>{if(!m$1(f.currentTarget))return false;if(d==="rtl"&&h$1(f.currentTarget,j$3(f))){y(),!c&&t.current&&a$j(t.current);return}return false},Escape:f=>{if(!m$1(f.currentTarget))return false;if(h$1(n.current,j$3(f))){y(),!c&&t.current&&a$j(t.current);return}return false}}}),b={id:a,"aria-labelledby":u,submenuLevel:e.submenuLevel,...i==="menu"&&{onClose:e.closeAll,autoFocus:e.focusStrategy??void 0,...m}},{keyboardProps:S}=j$1({shortcuts:{ArrowRight:()=>{if(!l)if(d==="ltr"){e.isOpen||x("first"),i==="menu"&&n?.current&&i$1()===t?.current&&a$j(n.current);return}else if(e.isOpen){y();return}else return false;return false},ArrowLeft:()=>{if(!l)if(d==="rtl"){e.isOpen||x("first"),i==="menu"&&n?.current&&i$1()===t?.current&&a$j(n.current);return}else if(e.isOpen){y();return}else return false;return false}}}),M=f=>{!l&&(f.pointerType==="virtual"||f.pointerType==="keyboard")&&x("first");},R=f=>{!l&&(f.pointerType==="touch"||f.pointerType==="mouse")&&x();},I=f=>{l||(f&&!e.isOpen?g.current||(g.current=setTimeout(()=>{x();},s)):f||p());};a$k(o,"focusin",f=>{e.isOpen&&h$1(o.current,j$3(f))&&j$3(f)!==t.current&&y();});let F=f=>f!==t.current;return Wr({menuRef:o,submenuRef:n,isOpen:e.isOpen,isDisabled:l}),{submenuTriggerProps:{onKeyDown:S.onKeyDown,onKeyUp:S.onKeyUp,id:u,"aria-controls":e.isOpen?a:void 0,"aria-haspopup":l?void 0:i,"aria-expanded":e.isOpen?"true":"false",onPressStart:M,onPress:R,onHoverChange:I,isOpen:e.isOpen},submenuProps:b,popoverProps:{isNonModal:true,shouldCloseOnInteractOutside:F}}}function Ze(r){let e=a$m(r),[t,o]=useState(null),[n,i]=useState([]),l=()=>{i([]),e.close();};return {focusStrategy:t,...e,open(u=null){o(u),e.open();},toggle(u=null){o(u),e.toggle();},close(){l();},expandedKeysStack:n,openSubmenu:(u,a)=>{i(d=>a>d.length?d:[...d.slice(0,a),u]);},closeSubmenu:(u,a)=>{i(d=>d[a]===u?d.slice(0,a):d);}}}function Tt(r,e){let{triggerKey:t}=r,{expandedKeysStack:o,openSubmenu:n,closeSubmenu:i,close:l}=e,[s]=useState(o?.length),c=useMemo(()=>o[s]===t,[o,t,s]),[u,a]=useState(null),d=useCallback(x=>{a(x??null),n(t,s);},[n,s,t]),g=useCallback(()=>{a(null),i(t,s);},[i,s,t]),p=useCallback(x=>{a(x??null),c?g():d(x);},[g,d,c]);return useMemo(()=>({focusStrategy:u,isOpen:c,open:d,close:g,closeAll:l,submenuLevel:s,setOpen:()=>{},toggle:p,point:null,setPoint:()=>{}}),[c,d,g,l,u,p,s])}var Ct=createContext({});forwardRef(function(e$1,t){return [e$1,t]=e(e$1,t,Ct),jsx(h.kbd,{dir:"ltr",...e$1,ref:t})});var Io=createContext({}),cs=forwardRef(function(e$1,t){[e$1,t]=e(e$1,t,Io);let{children:o,level:n=3,className:i,...l}=e$1,s=h[`h${n}`];return jsx(s,{...l,ref:t,className:i??"react-aria-Heading",children:o})});var ht=createContext(null);createContext(null);createContext(null);var Dt=createContext(null);var tt=createContext(null),ve=createContext(null),Le=createContext(null),et=createContext(null);function Fo(r){let e=Ze(r),t=useRef(null),{menuTriggerProps:o,menuProps:n}=yt({...r,type:"menu"},e,t),i=useRef(null);return k$2()?null:jsx(b$4,{values:[[tt,{...n,ref:i}],[Dt,e],[Le,e],[ht,{trigger:"MenuTrigger",triggerRef:t,scrollRef:i,placement:"bottom start","aria-labelledby":n["aria-labelledby"],offset:r.trigger==="contextMenu"?0:void 0}]],children:jsx(b$9,{...o,ref:t,isPressed:e.isOpen,children:r.children})})}var Qr=createContext(null),Lt=class extends a$h{static type="submenutrigger";filter(e,t,o){let n=e.getItem(this.firstChildKey);if(n&&o(n.textValue,this)){let i=this.clone();return t.addDescendants(i,e),i}return null}},Bo=k(Lt,(r,e,t)=>{let{CollectionBranch:o}=useContext(p),n=useContext(ve),i=useContext(Le),l=Tt({triggerKey:t.key},i),s=useRef(null),c=a$4(e),{parentMenuRef:u,shouldUseVirtualFocus:a}=useContext(Qr),{submenuTriggerProps:d,submenuProps:g,popoverProps:p$1}=Mt({parentMenuRef:u,submenuRef:s,delay:r.delay,shouldUseVirtualFocus:a},l,c);return jsxs(b$4,{values:[[be,{...d,onAction:void 0,ref:c}],[tt,{ref:s,...g}],[Dt,l],[ht,{trigger:"SubmenuTrigger",triggerRef:c,placement:"end top","aria-labelledby":g["aria-labelledby"],...p$1}]],children:[jsx(o,{collection:n.collection,parent:t}),r.children[1]]})},r=>r.children[0]),Ho=forwardRef(function(e$1,t){return [e$1,t]=e(e$1,t,tt),jsx(i,{content:jsx(l,{...e$1}),children:o=>jsx(No,{props:e$1,collection:o,menuRef:t})})});function No({props:r,collection:e$1,menuRef:t}){[r,t]=e(r,t,b$1);let{filter:o,...n}=r,i=useMemo(()=>o?e$1.filter(o):e$1,[e$1,o]),l=a$a({...r,collection:i,children:void 0}),s=useContext(Le),{isVirtualized:c,CollectionRoot:u}=useContext(p),{menuProps:a}=Pt({...r,isVirtualized:c,onClose:r.onClose||s?.close},l,t),d=c$3({...r,children:void 0,defaultClassName:"react-aria-Menu",values:{isEmpty:l.collection.size===0}}),g=null;l.collection.size===0&&r.renderEmptyState&&(g=jsx("div",{role:"menuitem",style:{display:"contents"},children:r.renderEmptyState()}));let p$1=a$2(r,{global:true});return jsx(a$3,{children:jsxs(h.div,{...c$4(p$1,d,a),ref:t,slot:r.slot||void 0,"data-empty":l.collection.size===0||void 0,onScroll:r.onScroll,children:[jsx(b$4,{values:[[ve,l],[Xe,{elementType:"div"}],[m,{name:"MenuSection",render:eo}],[Qr,{parentMenuRef:t,shouldUseVirtualFocus:n?.shouldUseVirtualFocus}],[be,{shouldCloseOnSelect:r.shouldCloseOnSelect}],[b$1,null],[c$5,null],[et,l.selectionManager],[Le,s??Ze({})]],children:jsx(x,{children:jsx(u,{collection:l.collection,persistedKeys:q(l.selectionManager.focusedKey),scrollRef:t})})}),g]})})}var Rt=class extends f$3{parent;constructor(e,t){super(e.collection,t),this.parent=e;}get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(e,t){return this.parent.setFocusedKey(e,t)}setFocused(e){this.parent.setFocused(e);}get childFocusStrategy(){return this.parent.childFocusStrategy}};function eo(r,e,t,o="react-aria-MenuSection"){let n=useContext(ve),{CollectionBranch:i}=useContext(p),[l,s]=f(),{headingProps:c,groupProps:u}=xt({heading:s,"aria-label":t.props["aria-label"]??void 0}),a=c$3({...r,id:void 0,children:void 0,defaultClassName:o,className:t.props?.className,style:t.props?.style,values:void 0}),d=useContext(et),g=a$b(r),p$1=r.selectionMode!=null?new Rt(d,g):d,x=d$1(be)?.shouldCloseOnSelect,y=a$2(r,{global:true});return delete y.id,jsx(h.section,{...c$4(y,a,u),ref:e,children:jsx(b$4,{values:[[Pe,{...c,ref:l}],[et,p$1],[be,{shouldCloseOnSelect:r.shouldCloseOnSelect??x}]],children:jsx(i,{collection:n.collection,parent:t})})})}var Et=k(f$2,eo),be=createContext(null),Ot=j(e$1,function(e$1,t,o){[e$1,t]=e(e$1,t,be);let n=d$1(be)?.id,i=useContext(ve),l=a$4(t),s=useContext(et),{isVirtualized:c}=useContext(p),{menuItemProps:u,labelProps:a,descriptionProps:d,keyboardShortcutProps:g,...p$1}=bt({...e$1,id:n,key:o.key,selectionManager:s,isVirtualized:c},i,l),{hoverProps:x,isHovered:y$1}=a$5({isDisabled:p$1.isDisabled}),m=c$3({...e$1,id:void 0,children:o.rendered,defaultClassName:"react-aria-MenuItem",values:{...p$1,isHovered:y$1,isFocusVisible:p$1.isFocusVisible,selectionMode:s.selectionMode,selectionBehavior:s.selectionBehavior,hasSubmenu:!!e$1["aria-haspopup"],isOpen:e$1["aria-expanded"]==="true"}}),b=e$1.href?h.a:h.div,S=a$2(e$1,{global:true});return delete S.id,delete S.onClick,jsx(b,{...c$4(S,m,u,x),ref:l,"data-disabled":p$1.isDisabled||void 0,"data-hovered":y$1||void 0,"data-focused":p$1.isFocused||void 0,"data-focus-visible":p$1.isFocusVisible||void 0,"data-pressed":p$1.isPressed||void 0,"data-selected":p$1.isSelected||void 0,"data-selection-mode":s.selectionMode==="none"?void 0:s.selectionMode,"data-has-submenu":!!e$1["aria-haspopup"]||void 0,"data-open":e$1["aria-expanded"]==="true"||void 0,children:jsx(b$4,{values:[[a$7,{slots:{[a$8]:a,label:a,description:d}}],[Ct,g],[y,{isSelected:p$1.isSelected}]],children:m.children})})});j(d,function(e,t,o){let n=useContext(ve),{isLoading:i,onLoadMore:l,scrollOffset:s,...c}=e,u=useRef(null),a=useMemo(()=>({onLoadMore:l,collection:n?.collection,sentinelRef:u,scrollOffset:s}),[l,s,n?.collection]);j$2(a,u);let d=c$3({...c,id:void 0,children:o.rendered,defaultClassName:"react-aria-MenuLoadingIndicator",values:void 0}),g={tabIndex:-1};return jsxs(Fragment,{children:[jsx("div",{style:{position:"relative",width:0,height:0},inert:k$1(true),children:jsx("div",{"data-testid":"loadMoreSentinel",ref:u,style:{position:"absolute",height:1,width:1}})}),i&&d.children&&jsx(Fragment,{children:jsx(h.div,{...c$4(a$2(e,{global:true}),g),...d,role:"menuitem",ref:t,children:d.children})})]})});var kt=Me.forwardRef(({section:r,isFirstCollectionItem:e,showSectionHeader:t,renderSectionHeader:o,withSectionHeaderPadding:n,sectionStyle:i,sectionClassName:l$1,componentName:s="ListBox",selectionMode:c,selectedKeys:u,defaultSelectedKeys:a,onSelectionChange:d,disabledKeys:g,disallowEmptySelection:p$1,...x},y)=>{let{isVirtualized:m}=useContext(p),b=o?.(r),S=s==="ListBox"?ft:Et,M=c==null?{}:{selectionMode:c,selectedKeys:u,defaultSelectedKeys:a,onSelectionChange:d,disabledKeys:g,disallowEmptySelection:p$1};return jsxs(S,{id:r.id,"aria-label":r.title,...M,className:a$d(`BaselineUI-${s}-Section`,Nr,m&&!e&&zr,typeof l$1=="function"?l$1(r):l$1),style:typeof i=="function"?i(r):i,ref:y,children:[t?b?jsx(Ge,{className:`BaselineUI-${s}-SectionHeader`,children:b}):jsx(Ge,{className:`BaselineUI-${s}-SectionHeader`,children:jsx(a$c,{className:a$d(Hr,`BaselineUI-${s}-SectionHeaderDefault`),paddingX:"lg",typography:"label.md.semibold",color:"text.primary",paddingInlineStart:n?"5xl":"lg",paddingInlineEnd:"lg",children:r.title})}):null,jsx(l,{items:r.children,dependencies:$e(x),children:R=>jsx(rt,{componentName:s,item:R,...x},R.id)})]})});kt.displayName="ListSection";var jo=({componentName:r})=>{let{direction:e}=b$2();return jsx(a$c,{"aria-hidden":true,display:"flex",alignItems:"center",color:"icon.secondary",className:`BaselineUI-${r}-SubmenuChevron`,style:e==="rtl"?{transform:"scaleX(-1)"}:void 0,children:jsx(ChevronRightFilledIcon,{size:8})})},Uo=({item:r,isSelected:e,isHovered:t,isFocusVisible:o,isDisabled:n,selectionIcon:i="checkmark",selectionMode:l,componentName:s="ListBox",hasSubmenu:c=false})=>{let u=r.icon,a=l!=="none",d=r.keyboardShortcut??r.description;return jsxs(a$c,{display:"flex",alignItems:"center",gap:"lg",className:a$d(Br({isHovered:t,isFocused:o,isDisabled:n}),`BaselineUI-${s}-OptionDefault`),children:[jsxs(a$c,{display:"flex",alignItems:"center",flex:1,gap:"lg",children:[a&&i==="checkmark"?jsx("span",{"aria-hidden":true,style:{height:24,width:24},className:`BaselineUI-${s}-SelectionIndicator`,children:e?jsx(CheckmarkIcon,{size:24}):null}):null,a&&i==="checkbox"?jsx("span",{"aria-hidden":true,style:{height:16,width:16},children:jsx("div",{className:c$8({isSelected:e,isIndeterminate:false,isFocusVisible:false,isDisabled:n,isReadOnly:false,hasError:false,isHovered:false}),children:e?jsx(CheckmarkIcon$1,{size:12}):null})}):null,u?jsx(u,{size:24}):null,jsx(b$6,{slot:"label",elementType:"span",children:r.label})]}),c?jsx(jo,{componentName:s}):d?jsx(b$6,{slot:"description",className:a$d(Fr({isDisabled:n}),`BaselineUI-${s}-OptionDescription`),children:d}):null]})},rt=Me.forwardRef(({item:r,optionStyle:e,optionClassName:t,renderOption:o,componentName:n="ListBox",...i},l)=>{let{onPress:s,onKeyDown:c}=useContext(oo);return jsx(n==="ListBox"?gt:Ot,{...c$4(a$e(i),{onPress:a=>s?.(a,r.id),onKeyDown:c?a=>{c(a,r.id),a.continuePropagation();}:void 0}),id:r.id,value:r,className:a=>a$d(_r,`BaselineUI-${n}-Option`,typeof t=="function"?t(r,a):t),style:a=>typeof e=="function"?e(r,a):e,textValue:r.label,ref:l,children:a=>o?o(r,a):jsx(Uo,{componentName:n,...a,item:r})})});rt.displayName="ListOption";var no=new Set(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),oo=Me.createContext({}),Go=Me.forwardRef(({withSectionHeaderPadding:r=false,showSectionHeader:e=false,renderSectionHeader:t,optionStyle:o,optionClassName:n,sectionStyle:i,sectionClassName:l,renderOption:s,className:c,dragAndDropHooks:u,listBoxHandle:a,"data-block-id":d,"data-block-class":g,...p$1},x)=>{let y=a$4(x),m=Me.useRef(false),b=Me.useRef(null),S=useContext(se),{isVirtualized:M,layoutDelegate:R}=useContext(p);useEffect(()=>{S&&(s||o||n)&&console.warn("ListBox: If a state is provided via the ListStateContext, the `renderOption`, `optionStyle`, `optionClassName`, `sectionStyle`, `sectionClassName`, and `renderSectionHeader` props will be ignored.");},[S,s,o,n,i,l,t]),a$f({ref:y,isDisabled:!u});let I=useCallback(P=>[...y.current?.querySelectorAll('[role="option"][data-key]')??[]].find(C=>C.dataset.key===String(P)),[y]);useEffect(()=>{if(!M)return;let P=y.current,v=P?.ownerDocument,C=v?.defaultView;if(P==null||v==null||C==null)return;let _=()=>{let D=f$4(P);return D==null||D===v.body||D===v.documentElement},U=()=>P.querySelector('[role="option"][tabindex="0"]')??P.querySelector('[role="option"][data-focused="true"]'),K=()=>{let D=f$4(P);return D!=null&&h$1(P,D)},H=D=>D.composedPath().some(de=>de instanceof C.Node&&h$1(P,de)),X=()=>{m.current=false;},ae=()=>{b.current!=null&&C.cancelAnimationFrame(b.current),b.current=C.requestAnimationFrame(()=>{if(b.current=null,K())return;if(!_()){X();return}let D=U();D?.focus({preventScroll:true});});},oe=D=>{no.has(D.key)&&(m.current=true);},J=D=>{!no.has(D.key)||!_()||!m.current||ae();},Y=D=>{H(D)||K()||X();},Re=D=>{H(D)||X();},Z=new MutationObserver(D=>{D.some(({addedNodes:de,removedNodes:ne})=>de.length>0||ne.length>0)&&m.current&&ae();});return P.addEventListener("keydown",oe),v.addEventListener("keydown",J,true),v.addEventListener("focusin",Y,true),v.addEventListener("pointerdown",Re,true),Z.observe(P,{childList:true,subtree:true}),()=>{P.removeEventListener("keydown",oe),v.removeEventListener("keydown",J,true),v.removeEventListener("focusin",Y,true),v.removeEventListener("pointerdown",Re,true),Z.disconnect(),b.current!=null&&C.cancelAnimationFrame(b.current),X(),b.current=null;}},[M,y]);let F=Me.useRef(null),f=useCallback(()=>{let P=F.current;P&&(P.ownerWindow.cancelAnimationFrame(P.frameId),F.current=null);},[]);useEffect(()=>f,[f]);let T=useCallback((P,v)=>{if(f(),!y.current)return;let C=()=>{let U=I(P);if(U)return U.scrollIntoView({block:"nearest",inline:"nearest",...v}),true;if(M&&R){let K=R.getItemRect(P);return K?(R.virtualizer.delegate.setVisibleRect(K),true):false}return false};if(C())return;let _=y.current.ownerDocument?.defaultView;_&&(F.current={ownerWindow:_,frameId:_.requestAnimationFrame(()=>{F.current=null,C();})});},[f,I,M,R,y]);useImperativeHandle(a,()=>({scrollIntoView:T,setFocusedKey:P=>{let v=I(P);!y.current||!v||(v.focus(),T(P));}}),[T,I,y]);let E={renderOption:s,optionClassName:n,optionStyle:o,renderSectionHeader:t,sectionClassName:l,sectionStyle:i,showSectionHeader:e,withSectionHeaderPadding:r},B=p$1.items?.[0]?.id;return jsx(mt,{...p$1,dependencies:[...p$1.dependencies??[],B,...$e(E)],"data-block-id":d,"data-block-class":g,dragAndDropHooks:u,ref:y,className:a$d(wr,"BaselineUI-ListBox",c),children:P=>jsx(qo,{item:P,isFirstCollectionItem:B===P.id,...E},P.id)})});Go.displayName="UNSAFE_ListBox";var Xo=Me.createContext({}),qo=r=>{let e=useContext(Xo),{item:t,isFirstCollectionItem:o,id:n,value:i,...l}={...e,...r};return a$g(t,"Item is required"),"children"in t?jsx(kt,{section:t,componentName:"ListBox",isFirstCollectionItem:o,...l}):jsx(rt,{item:t,componentName:"ListBox",...l})};export{pt as a,se as b,yt as c,$e as d,Si as e,Io as f,cs as g,ht as h,Dt as i,Fo as j,Bo as k,Ho as l,kt as m,Uo as n,rt as o,oo as p,Go as q,qo as r};
@@ -1,10 +0,0 @@
1
- import {f,g,i as i$1}from'./chunk-J4OPD7OL.mjs';import {h,j}from'./chunk-PPHSLODC.mjs';import {i,j as j$1}from'./chunk-SD43KVTU.mjs';import {b}from'./chunk-RMUV6NJJ.mjs';import {useRef,useState,useEffect}from'react';/**
2
- * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
- *
4
- * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
- * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
- * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
- * This notice may not be removed from this file.
8
- *
9
- */
10
- var W=200,M=50,N=600,n=new WeakMap,p=new Set,c=new Set;function D(e,o){let i=i$1();if(e!==i||o.aborted)for(let t of c)t(i),c.delete(t);if(!e&&i&&j()&&!o.aborted){window.clearInterval(n.get(window)),n.set(window,E(W));return}if(e!==i||o.aborted)for(let t of p)t(i),p.delete(t);(c.size+p.size<=0||o.aborted)&&(window.clearInterval(n.get(window)),n.delete(window));}function E(e=N){return window.setInterval(D,M,i$1(),AbortSignal.timeout(e))}function A(e){if(!f())return e(false),()=>{};let o=window.requestAnimationFrame(()=>{o=window.requestAnimationFrame(()=>{let i$2=document.hasFocus()?i():null,t=g(i$2);if(i$1()===t||i$1()&&!t)return e(t);c.add(e),n.has(window)||n.set(window,E());});});return ()=>{window.cancelAnimationFrame(o),c.delete(e);}}function se(e){if(!f())return e(false),()=>{};let o=window.requestAnimationFrame(()=>{o=window.requestAnimationFrame(()=>{let i$2=document.hasFocus()?i():null,t=g(i$2);if(i$1()===t)return e(t);p.add(e),n.has(window)||n.set(window,E());});});return ()=>{window.cancelAnimationFrame(o),p.delete(e);}}var r=typeof document<"u"&&window.visualViewport;function L(){let e=b(),o=useRef(null),[i,t]=useState(()=>e?{width:0,height:0}:S());return useEffect(()=>{let b=l=>{t(u=>l.width===u.width&&l.height===u.height?u:l);},w=()=>{r&&r.scale>1||b(S());},g$1=l=>{r&&r.scale>1||g(j$1(l))&&(o.current=A(u=>{u||b({width:document.documentElement.clientWidth,height:document.documentElement.clientHeight});}));};return b(S()),h()&&j()&&window.addEventListener("blur",g$1,true),r?r.addEventListener("resize",w):window.addEventListener("resize",w),()=>{o.current?.(),h()&&j()&&window.removeEventListener("blur",g$1,true),r?r.removeEventListener("resize",w):window.removeEventListener("resize",w);}},[]),i}function S(){return {width:r?Math.min(r.width*r.scale,document.documentElement.clientWidth):document.documentElement.clientWidth,height:r?r.height*r.scale:document.documentElement.clientHeight}}export{A as a,se as b,L as c};
@@ -1,10 +0,0 @@
1
- import {b}from'./chunk-Q5UMLFN3.mjs';import {a as a$9}from'./chunk-VGFPT43C.mjs';import {a as a$4,b as b$1}from'./chunk-GMALMQWI.mjs';import {a as a$5}from'./chunk-66CUIXA6.mjs';import {a as a$3}from'./chunk-FPM5UJRF.mjs';import {a as a$6}from'./chunk-SGZWUG3H.mjs';import {a as a$7}from'./chunk-STMDFIUL.mjs';import {j}from'./chunk-KUDCYGII.mjs';import {a as a$8}from'./chunk-B3EZOXNU.mjs';import {d}from'./chunk-F7WPMQ3P.mjs';import {c}from'./chunk-3WKDIXCM.mjs';import {c as c$1}from'./chunk-ETM4MNG4.mjs';import {i,a as a$1}from'./chunk-SD43KVTU.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$2}from'./chunk-4QEH5CGK.mjs';import w,{useContext,useEffect,useMemo,useState}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {AnimatePresence,motion}from'motion/react';import {ChevronRightIcon}from'@baseline-ui/icons/8';/**
2
- * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
- *
4
- * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
- * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
- * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
- * This notice may not be removed from this file.
8
- *
9
- */
10
- var G="_1yep5z6m3",Q=a({defaultClassName:"_1kvz17db _1yep5z6lq _1yep5z6ls",variantClassNames:{showActionsOnTriggerOnly:{true:"_1kvz17dc"},isTriggered:{true:"_1kvz17dd"}},defaultVariants:{},compoundVariants:[]}),W=a({defaultClassName:"_1kvz17d0 _1yep5z64u _1yep5z64v _1yep5z64w _1yep5z676 _1yep5z677 _1yep5z678 _1yep5z68c _1yep5z68d _1yep5z68e _1yep5z660 _1yep5z661 _1yep5z662 _1yep5z6lq _1yep5z6lr",variantClassNames:{isExpanded:{true:"_1kvz17d1"}},defaultVariants:{},compoundVariants:[]}),Y="_1kvz17de",Z="_1yep5z6ez _1yep5z6dy",$=a({defaultClassName:"_1kvz17d2 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6kz _1yep5z6l0 _1yep5z6l1 _1yep5z6lq _1yep5z6lt",variantClassNames:{isFocusVisible:{true:"_1kvz17d3"},isHovered:{true:"_1yep5z6ga",false:"_1yep5z6gb"},isDisabled:{true:"z9nup82"}},defaultVariants:{},compoundVariants:[]}),ee="_1kvz17da _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6dz",oe=a({defaultClassName:"_1kvz17d7 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jz _1yep5z6k0 _1yep5z6k1",variantClassNames:{isDisabled:{true:"_1yep5z6f2",false:"_1yep5z6ey"}},defaultVariants:{},compoundVariants:[]});var E=w.forwardRef(({children:c,className:d,style:p},e)=>{let{headers:o}=useContext(z),{disabledKeys:l}=useContext(z),{keyboardProps:f}=j({onKeyDown:r=>{let m=i(a$1(r.target)),a=[...o?.keys()||[]].findIndex(t=>{let s=o?.get(t)?.current;return s?s===m:false}),u=o?.get(a||0),n=o?.size||0,y=new Set([...l??[]].map(String)),_=t=>{let s=o.get(t)?.current?.dataset.key;return s!==void 0&&y.has(s)},i$1=(t,s)=>{for(let h=1;h<=n;h++){let A=((t+s*h)%n+n)%n;if(!_(A)){o.get(A)?.current?.focus();return}}};if(u)switch(r.key){case "Home":{r.preventDefault(),i$1(-1,1);break}case "End":{r.preventDefault(),i$1(n,-1);break}case "ArrowDown":{r.preventDefault(),i$1(a,1);break}case "ArrowUp":{r.preventDefault(),i$1(a,-1);break}default:r.continuePropagation();}}});return jsx("div",{...b(f),style:p,className:a$2(G,d),ref:e,children:w.Children.map(c,(r,m)=>w.cloneElement(r,{index:m}))})});E.displayName="AccordionBase";var z=w.createContext({expandedKeys:new Set,setExpandedKeys:()=>{},disabledKeys:new Set,headers:new Map,expansionMode:"multiple"}),re=w.forwardRef(({children:c,disabledKeys:d,defaultExpandedKeys:p=new Set,expandedKeys:e,expansionMode:o="multiple",onChange:l,className:f,style:r},m)=>{let[a,u]=a$3(e,p,l),n=w.useRef(new Map).current,[y,_]=w.useState(o);useEffect(()=>{_(o);},[o]);let i=useMemo(()=>({expandedKeys:a,setExpandedKeys:u,disabledKeys:d,headers:n,expansionMode:y}),[a,u,d,n,y]);return jsx(z.Provider,{value:i,children:jsx(a$4,{children:jsx(E,{className:f,style:r,ref:m,children:c})})})});re.displayName="Accordion";var I=w.forwardRef(({title:c$1,actions:d$1,controlId:p,value:e,id:o,index:l,subLabel:f,showActionsOnTriggerOnly:r},m)=>{let a=w.useRef(null),{expandedKeys:u,setExpandedKeys:n,expansionMode:y,disabledKeys:_,headers:i}=useContext(z),t=_?.has(e),s=b$1();a$5(s);let{focusNext:h,focusPrevious:A}=s,{keyboardProps:ce}=j({onKeyDown:v=>{v.key==="ArrowRight"?h({wrap:true}):v.key==="ArrowLeft"?A({wrap:true}):v.continuePropagation();},isDisabled:t});useEffect(()=>{a$5(typeof l=="number","AccordionItem must have an index"),i?.set(l,a);},[l,i]);let D=()=>{n(v=>{let x=new Set(v);return x.has(e)?x.delete(e):(y==="single"&&x.clear(),x.add(e)),x});},{buttonProps:de}=a$6({"aria-expanded":u.has(e),"aria-controls":p,onPress:D,isDisabled:t},a),{pressProps:pe}=d({onPress:D,isDisabled:t}),{focusProps:le,isFocusVisible:me}=a$7(),{hoverProps:ue,isHovered:F}=a$8({isDisabled:t}),{focusProps:ye,isFocusVisible:fe}=a$7({within:true}),ze=u.has(e);return jsxs("h3",{...c(ce,pe,ue,ye),className:$({isFocusVisible:me,isHovered:F,isDisabled:t}),ref:m,children:[jsxs("div",{className:oe({isDisabled:!!t}),children:[jsx(ChevronRightIcon,{className:W({isExpanded:ze}),size:8}),jsx("button",{...c(de,le),id:o,"data-key":e,className:ee,ref:a,children:c$1})]}),d$1?.length?jsx("div",{"data-testid":"action-buttons",className:Q({showActionsOnTriggerOnly:r,isTriggered:fe||F}),children:d$1.map((v,x)=>jsx(a$9,{variant:"secondary",size:"sm",excludeFromTabOrder:true,isDisabled:t,...v},x))}):null,f?jsx("div",{className:Z,children:f}):null]})});I.displayName="AccordionHeader";var we={open:{height:"auto",opacity:1},closed:{height:0,opacity:0}},Se=({isExpanded:c,...d})=>{let[p,e]=useState(!c);return c&&p&&e(false),jsx(motion.section,{...d,initial:false,animate:c?"open":"closed",onAnimationComplete:o=>{o==="closed"&&e(true);},hidden:p})},ie=w.forwardRef(({title:c,actions:d,children:p,value:e,index:o,subLabel:l,style:f,className:r,showActionsOnTriggerOnly:m,shouldForceMount:a},u)=>{let n=c$1(),y=c$1(),{expandedKeys:_}=useContext(z),i=_.has(e),t={role:"region","aria-labelledby":y,id:n,className:Y,variants:we},s=jsx("div",{style:f,className:r,children:p});return jsxs(Fragment,{children:[jsx(a$4,{children:jsx(I,{value:e,actions:d,id:y,title:c,controlId:n,ref:u,index:o,subLabel:l,showActionsOnTriggerOnly:m})}),a?jsx(Se,{...t,isExpanded:i,children:s}):jsx(AnimatePresence,{initial:false,children:i?jsx(motion.section,{...t,initial:"closed",animate:"open",exit:"closed",children:s}):null})]})});ie.displayName="AccordionItem";export{re as a,ie as b};
@@ -1,10 +0,0 @@
1
- import {i}from'./chunk-MBRNO6IW.mjs';import {a as a$1}from'./chunk-VDUFLHKK.mjs';import {a as a$2}from'./chunk-SGZWUG3H.mjs';import {a as a$3}from'./chunk-STMDFIUL.mjs';import {a as a$4}from'./chunk-B3EZOXNU.mjs';import {b as b$1,c,a as a$5}from'./chunk-3WKDIXCM.mjs';import {a}from'./chunk-SD43KVTU.mjs';import H,{useState,useEffect,useContext}from'react';/**
2
- * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
- *
4
- * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
- * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
- * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
- * This notice may not be removed from this file.
8
- *
9
- */
10
- function b(t,e,n){let{isSelected:r}=e,{isPressed:s,buttonProps:o}=a$2({...t,onPress:a$5(e.toggle,t.onPress)},n);return {isPressed:s,isSelected:r,isDisabled:t.isDisabled||false,buttonProps:c(o,{"aria-pressed":r})}}function E(t,e){let n=t?.getRootNode(),r=n&&"getElementById"in n?n:a(t),s=e.split(/\s+/).filter(Boolean).map(o=>r.getElementById(o)?.textContent).filter(o=>!!o);return s.length>0?s.join(" "):void 0}function W({tooltip:t,"aria-label":e,"aria-labelledby":n},r){let[s,o]=useState(e||"");useEffect(()=>{n?o(E(r.current,n)??e??""):e&&o(e);},[n,r,e]);let{tooltipProps:i}=a$1({label:s,tooltip:t});return {tooltipProps:i}}var X=t=>{let e=H.useRef(null),{ref:n,...r}=useContext(i)||{},{buttonProps:s,isPressed:o}=a$2({...t,...r},e),{isFocusVisible:i$1,isFocused:u,focusProps:p}=a$3(),{hoverProps:c$1,isHovered:a}=a$4({isDisabled:t.isDisabled});return {buttonProps:c(s,p,c$1),isPressed:o,ref:b$1(e,n||null),isFocusVisible:i$1,isFocused:u,isHovered:a,uiStateOptions:{isHovered:a,isFocused:u,isPressed:o,isDisabled:t.isDisabled,isFocusVisible:i$1}}},Y=(t,e)=>{let n=H.useRef(null),{ref:r,...s}=useContext(i)||{},{buttonProps:o,isPressed:i$1}=b({...t,...s},e,n);(o.role==="radio"||o.role==="checkbox")&&(o["aria-pressed"]=void 0);let{isFocusVisible:u,isFocused:p,focusProps:c$1}=a$3(),{hoverProps:a,isHovered:d}=a$4({isDisabled:t.isDisabled});return {buttonProps:c(o,c$1,a),isPressed:i$1,ref:b$1(n,r||null),isFocusVisible:u,isFocused:p,isHovered:d,uiStateOptions:{isHovered:d,isFocused:p,isPressed:i$1,isDisabled:t.isDisabled,isFocusVisible:u,isSelected:e.isSelected}}};export{E as a,W as b,X as c,Y as d};
@@ -1,11 +0,0 @@
1
- import {a as a$6}from'./chunk-SZCVQU55.mjs';import {a as a$2}from'./chunk-YS3Z53YT.mjs';import {a as a$e}from'./chunk-JBXZ6ZHP.mjs';import {a as a$b}from'./chunk-HI44JQA7.mjs';import {a as a$d}from'./chunk-3DWFAHR2.mjs';import {a as a$c}from'./chunk-O7XK2WIX.mjs';import {a as a$a}from'./chunk-NRQSR3G7.mjs';import {a as a$4}from'./chunk-3KCSUNRV.mjs';import {a as a$8}from'./chunk-CIPPPD6E.mjs';import {a as a$9,b as b$2}from'./chunk-RSKKEGJZ.mjs';import {a as a$5}from'./chunk-STMDFIUL.mjs';import {a as a$7}from'./chunk-4S4GGUSH.mjs';import {j}from'./chunk-KUDCYGII.mjs';import {d}from'./chunk-F7WPMQ3P.mjs';import {b,c}from'./chunk-3WKDIXCM.mjs';import {c as c$1}from'./chunk-ETM4MNG4.mjs';import {a as a$3,b as b$1}from'./chunk-SD43KVTU.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$1}from'./chunk-4QEH5CGK.mjs';import z,{useContext,useMemo,useRef,useCallback,useEffect,useImperativeHandle,useState}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {PlusIcon}from'@baseline-ui/icons/12';import {themeVars}from'@baseline-ui/tokens';import {useGranularEffect}from'granular-hooks';import Je from'just-camel-case';import*as st from'comlink';/**
2
- * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
- *
4
- * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
- * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
- * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
- * This notice may not be removed from this file.
8
- *
9
- */
10
- var bt={node:null,setNode:()=>{},coordinates:null,setCoordinates:()=>{},displayId:void 0,setDisplayId:()=>{},boundsRef:{current:null},isDisabled:false,cursorNode:null,setCursorNode:()=>{},children:null,setChildren:()=>{}},p=z.createContext(bt),Ee=z.memo(({children:e,isDisabled:t=false})=>{let[n,r]=z.useState(null),[a,o]=z.useState(null),[i,d]=z.useState(null),l=z.useRef(null),[s,x]=z.useState(null),[f,k]=z.useState(),c=z.useMemo(()=>({node:n,setNode:r,coordinates:s,setCoordinates:x,displayId:f,setDisplayId:k,boundsRef:l,isDisabled:t,cursorNode:a,setCursorNode:o,children:i,setChildren:d}),[n,s,f,x,r,l,t,a,o,i,d]);return jsx(p.Provider,{value:c,children:e})});Ee.displayName="PointPicker";var _e="m0xg2me";var ze="m0xg2md _1yep5z6iw _1yep5z6ix _1yep5z6iy _1yep5z6mh _1yep5z6mg _1yep5z6ho",Re="m0xg2mj",Ie="_1yep5z6fa",De="m0xg2mk m0xg2mj",Me=a({defaultClassName:"m0xg2m0",variantClassNames:{isDisabled:{true:"m0xg2m1",false:"m0xg2m2"},isIndicatorVisible:{true:"m0xg2m3",false:"m0xg2m4"}},defaultVariants:{},compoundVariants:[[{isDisabled:false,isIndicatorVisible:true},"m0xg2m5"],[{isDisabled:false,isIndicatorVisible:false},"m0xg2m6"]]}),Ne="m0xg2m8",Ae="m0xg2mb",q="m0xg2ma _1yep5z6hp _1yep5z6mf",Te="m0xg2m9 _1yep5z6je _1yep5z6jf _1yep5z6jg _1yep5z6hg _1yep5z6mf _1yep5z6it _1yep5z6iu _1yep5z6iv",Le="m0xg2m7",Se="m0xg2mc",Oe="m0xg2mf";var W=a$1(ze,"BaselineUI-PointPicker-GridLine"),Et=({coordinates:e})=>jsxs(Fragment,{children:[jsx("div",{className:W,"data-grid-line-type":"vertical",style:{height:e.y-5,transform:`translate(${e.x}px, 0) translate(-1px, 0) scaleX(0.5)`}}),jsx("div",{className:W,"data-grid-line-type":"vertical",style:{height:`calc(100% - ${e.y+4}px)`,transform:`translate(${e.x}px, ${e.y+5}px) translate(-1px, 0) scaleX(0.5)`}})]}),_t=({coordinates:e})=>jsxs(Fragment,{children:[jsx("div",{className:W,"data-grid-line-type":"horizontal",style:{width:e.x-5,transform:`translate(0, ${e.y}px) translate(0, -1px) scaleY(0.5)`}}),jsx("div",{className:W,"data-grid-line-type":"horizontal",style:{width:`calc(100% - ${e.x+4}px)`,transform:`translate(${e.x+5}px, ${e.y}px) translate(0, -1px) scaleY(0.5)`}})]}),He=({gridLines:e})=>{let{isDisabled:t,boundsRef:n,coordinates:r}=useContext(p),a=useMemo(()=>{let o=typeof e=="function"?e({coordinates:r,boundingRect:n.current}):e;return typeof o=="boolean"?o?r:void 0:o?.coordinates},[e,r,n]);return a&&!t?jsxs(Fragment,{children:[jsx(Et,{coordinates:a}),jsx(_t,{coordinates:a})]}):null};function Ue({coordinates:e,setCoordinates:t,boundsRef:n,onKeyDown:r,onKeyUp:a}){let{isDisabled:o}=useContext(p);return j({isDisabled:o,onKeyDown:i=>{r?.(i);let d=i.shiftKey?10:1,l=n.current;if(!l||!e)return;let s;switch(i.key){case "ArrowRight":{i.preventDefault(),s={x:a$e(e.x+d,0,l.width),y:a$e(e.y,0,l.height)};break}case "ArrowLeft":{i.preventDefault(),s={x:a$e(e.x-d,0,l.width),y:a$e(e.y,0,l.height)};break}case "ArrowDown":{i.preventDefault(),s={x:a$e(e.x,0,l.width),y:a$e(e.y+d,0,l.height)};break}case "ArrowUp":{i.preventDefault(),s={x:a$e(e.x,0,l.width),y:a$e(e.y-d,0,l.height)};break}case "Home":{i.preventDefault(),s={x:0,y:a$e(e.y,0,l.height)};break}case "End":{i.preventDefault(),s={x:l.width,y:a$e(e.y,0,l.height)};break}case "PageUp":{i.preventDefault(),s={x:a$e(e.x,0,l.width),y:0};break}case "PageDown":{i.preventDefault(),s={x:a$e(e.x,0,l.width),y:l.height};break}default:{i.continuePropagation();return}}s&&t(s);},onKeyUp:a})}function Ve(){let{node:e,coordinates:t}=useContext(p);return useMemo(()=>{if(!e||!t)return {x:0,y:0};let{left:n,top:r}=e.getBoundingClientRect();return {x:t.x+n,y:t.y+r}},[t,e])}var{color:Fe}=themeVars,Ge=z.forwardRef(({modality:e},t)=>e==="keyboard"?jsxs("svg",{width:92,height:92,viewBox:"0 0 92 92",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,className:Re,children:[jsxs("g",{filter:"url(#filter0_d_11407_457970)",children:[jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49 43V4h-6v39H4v6h39v39h6V49h39v-6H49zm38 5H48v39h-4V48H5v-4h39V5h4v39h39v4zm-5 28v6h-6v6h12V76h-6zm5 11H77v-4h6v-6h4v10zm-77-5v-6H4v12h12v-6h-6zm5 5H5V77h4v6h6v4zM76 4v6h6v6h6V4H76zm11 11h-4V9h-6V5h10v10zM4 4v12h6v-6h6V4H4zm11 5H9v6H5V5h10v4z",fill:Fe.background.positive.subtle}),jsx("path",{d:"M48 44v4h39v-4H48zm-4 4v39h4V48h-4zM5 44v4h39v-4H5zM44 5v39h4V5h-4zm39 72v6h-6v4h10V77h-4zM9 83v-6H5v10h10v-4H9zM77 5v4h6v6h4V5H77zM5 5v10h4V9h6V5H5z",fill:Fe.background.positive.interactive.enabled})]}),jsx("defs",{children:jsxs("filter",{id:"filter0_d_11407_457970",x:0,y:0,width:92,height:92,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[jsx("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),jsx("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),jsx("feOffset",{}),jsx("feGaussianBlur",{stdDeviation:2}),jsx("feComposite",{in2:"hardAlpha",operator:"out"}),jsx("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.4 0"}),jsx("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_11407_457970"}),jsx("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_11407_457970",result:"shape"})]})})]}):jsx(PlusIcon,{className:De,ref:t}));Ge.displayName="PointPickerIndicatorIcon";var Tt=({trailingElement:e})=>{let{cursorNode:t}=useContext(p),[n,r]=useState({width:0,height:0});return useEffect(()=>{if(!t)return;let a=t.getBoundingClientRect();r(a);let o=new ResizeObserver(i=>{r({width:i[0].contentRect.width,height:i[0].contentRect.height});});return o.observe(t),()=>{o.disconnect();}},[t]),e?jsx(a$c,{position:"absolute",style:{left:0,top:0,zIndex:0,transform:`translate(${n.width/2}px, ${n.height/2}px)`},className:"BaselineUI-PointPickerContent-TrailingElement",children:e}):null},Q=z.forwardRef(({renderTrailingElement:e,renderCursor:t},n)=>{let{coordinates:r,isDisabled:a,node:o}=useContext(p),i=a$2({ownerDocument:a$3(o)}),d=!!(r&&!a),l=useMemo(()=>e?.(),[e]),s=Ve(),x=useMemo(()=>{if(!r)return null;let f=t?.({coordinates:r,modality:i});return f===void 0?jsx(Ge,{modality:i}):f},[t,r,i]);return d?jsxs(a$4,{style:{left:s.x,top:s.y},className:a$1(Le,"BaselineUI-PointPickerContent-Cursor"),ref:n,children:[x,l?jsx(Tt,{trailingElement:l}):null]}):null});Q.displayName="PointPickerIndicator";var Xe=z.forwardRef(({children:e,className:t,style:n,"data-block-id":r,"data-block-class":a,onFocusChange:o,onBlur:i,onFocus:d$1,onKeyDown:l,onKeyUp:s,gridLines:x=true,elementHandle:f,onMove:k,onPress:c$1,onPressStart:P,onPressEnd:b$1,renderTrailingElement:w,renderCursor:E},M)=>{let{setNode:C,node:_,coordinates:g,setCoordinates:R,displayId:j,boundsRef:I,isDisabled:h,setCursorNode:at,setChildren:Y}=useContext(p),S=useRef(null),le=useRef(null),ce=a$2({ownerDocument:a$3(_)}),N=useCallback(u=>{R(u??null),k?.({coordinates:u,boundingRect:I.current});},[R,k,I]);useEffect(()=>{if(!h)return Y(e),()=>{Y(null);}},[e,h,Y]),useEffect(()=>{let u=S.current;if(!u||h)return;let ue=()=>{let D=u.getBoundingClientRect();I.current=D;},H=D=>{let O=I.current;if(!O)return;let gt="clientX"in D?D.clientX:D.touches[0].clientX,vt="clientY"in D?D.clientY:D.touches[0].clientY,Pt={x:a$e(gt-O.left,0,O.width),y:a$e(vt-O.top,0,O.height)};N(Pt);},de=()=>{N(null);};return u.addEventListener("mousemove",H),u.addEventListener("touchmove",H),u.addEventListener("mouseenter",ue),u.addEventListener("mouseleave",de),()=>{u.removeEventListener("mousemove",H),u.removeEventListener("touchmove",H),u.removeEventListener("mouseenter",ue),u.removeEventListener("mouseleave",de);}},[I,h,N]);let{pressProps:lt}=d({isDisabled:h,onPress:u=>{u.pointerType==="keyboard"?g&&c$1?.({...u,x:g.x,y:g.y}):c$1?.(u);},onPressStart:P,onPressEnd:b$1}),{focusProps:ct,isFocusVisible:ut,isFocused:dt}=a$5();a$6({ref:le,isDisabled:h}),useImperativeHandle(f,()=>({focus:()=>{h||S.current?.focus();}}));let{focusProps:mt}=a$7({isDisabled:h,onFocusChange:o,onFocus:d$1,onBlur:i});function pt(){ce==="keyboard"&&setTimeout(()=>{let u=S.current?.getBoundingClientRect();u&&(I.current=u,N({x:a$e(u.width/2,0,u.width),y:a$e(u.height/2,0,u.height)}));},0);}function ft(){N(null);}let{keyboardProps:ht}=Ue({coordinates:g,setCoordinates:N,boundsRef:I,onKeyDown:l,onKeyUp:s});a$8({isDisabled:h,ref:S,onInteractOutside:()=>{N(null);}});let yt=!!(g&&!h),xt=a$9({"data-focus-visible":ut,"data-focused":dt,"data-disabled":h,"data-block-id":r,"data-block-class":a,"data-active":g&&!h,"data-modality":ce});return jsxs(Fragment,{children:[jsx(Q,{renderTrailingElement:w,renderCursor:E,ref:at}),jsxs("div",{...c(ct,mt,{onFocus:pt,onBlur:ft},h?{}:c(ht,lt)),ref:b(M,S,C),className:a$1(Me({isDisabled:!!h,isIndicatorVisible:!!yt}),"BaselineUI-PointPicker-Content",t),tabIndex:h?void 0:0,style:n,"aria-controls":j,"data-testid":"point-picker-content",...xt,children:[jsx(He,{gridLines:x}),jsx("div",{className:_e,ref:le,children:e})]})]})});Xe.displayName="PointPickerContent";function qe(e,t,n){let[r,a]=useState(0),o=i=>{a(i),n();};return useGranularEffect(()=>{if(!e||t==="trailing")return;let i=new ResizeObserver(d=>{o(d[0].contentRect.width);});return o(e.getBoundingClientRect().width),i.observe(e),()=>{i.disconnect();}},[e,t],[n]),r}function jt(e,t){return t==="indicator"?e:e?.querySelector(".BaselineUI-PointPickerContent-TrailingElement")??null}var te=z.forwardRef(({children:e,className:t,crossOffset:n,offset:r,placement:a="bottom start",anchorElement:o="indicator"},i)=>{let d=useRef(null),{cursorNode:l,coordinates:s}=useContext(p),x=qe(l,o,()=>{c();}),f=jt(l,o),{overlayProps:k,updatePosition:c}=a$a({overlayRef:d,placement:a,targetRef:{get current(){return f}},crossOffset:n??x,offset:r});return useGranularEffect(()=>{c();},[s,n,r],[c]),s?jsx(a$4,{className:a$1(Oe,t),ref:i,children:jsx("div",{ref:d,...k,children:e})}):null});te.displayName="Floater";var nt=8,Xt=7,qt=7,ne=z.memo(({children:e,scale:t,renderMagnifierContent:n})=>{let r=useRef(null),{coordinates:a,boundsRef:o,node:i}=useContext(p),d=useRef([]);a$6({ref:r}),useEffect(()=>{if(!r.current||n)return;let x=r.current.querySelectorAll("canvas"),f=[],k=r.current.ownerDocument;for(let c of x){let P=c.getContext("2d");if(!P)continue;let b=c.clientWidth,w=c.clientHeight,E=c.width,M=c.height,C=P.getImageData(0,0,E,M);f.push({el:c,width:E,height:M,image:C});let _=k.createElement("canvas");_.width=E,_.height=M;let g=_.getContext("2d");g&&g.drawImage(c,0,0),c.width=b*t,c.height=w*t,c.style.width=`${b}px`,c.style.height=`${w}px`,P.scale(t,t),P.drawImage(_,0,0,b,w);}return d.current=f,()=>{for(let{el:c,width:P,height:b,image:w}of d.current)c.width=P,c.height=b,c.getContext("2d")?.putImageData(w,0,0);}},[i,t,n]);let l=useMemo(()=>n?n({coordinates:a,boundingRect:o.current,children:e}):e?z.cloneElement(e,{key:"magnifier-content"}):null,[n,a,o,e]),s=useMemo(()=>!o.current||!a?null:{x:a.x/o.current.width,y:a.y/o.current.height},[o,a]);return s?jsx("div",{style:{left:0,transform:`scale(${t}) translate(calc(-${s.x*100}% + ${nt*Xt/(2*t)}px), calc(-${s.y*100}% + ${nt*qt/(2*t)}px))`},className:a$1(Se,"BaselineUI-PointPickerDisplay-Magnifier"),children:jsx("div",{style:Jt(i),ref:r,inert:"true",children:l})}):null});ne.displayName="Magnifier";function Zt(e){let t=[];for(let n=0;n<e.length;n++){let r=e[n],a=e.getPropertyValue(r);a&&t.push([r,a]);}for(let n of e)if(n.startsWith("--")){let r=e.getPropertyValue(n);r&&t.push([n,r]);}return Object.fromEntries(t)}function Jt(e){if(!e)return {};let n=b$1(e).getComputedStyle(e),r=e.getBoundingClientRect(),a={...Zt(n),position:"static",margin:"0px",left:"0px",top:"0px",transform:"none","-webkit-text-fill-color":"inherit","-webkit-text-stroke-color":"inherit",width:`${r.width}px`,height:`${r.height}px`,interactivity:"inert"};return Object.fromEntries(Object.entries(a).map(([o,i])=>o.startsWith("--")?[o,i]:o.startsWith("-")?[a$b(Je(o)),i]:[Je(o),i]))}var nn=7,rn=7,on={scale:2},sn={crossOffset:void 0,offset:void 0,placement:"bottom start",anchorElement:"indicator"},it=z.forwardRef(({className:e,style:t,description:n,magnifier:r=true,"data-block-id":a,"data-block-class":o,floating:i=false,renderMagnifierContent:d},l)=>{let{coordinates:s,boundsRef:x,setDisplayId:f,isDisabled:k,children:c,cursorNode:P}=useContext(p),b=c$1(),w=useMemo(()=>b$2(r,on),[r]),E=useMemo(()=>typeof n=="function"?n({coordinates:s?{x:s.x,y:s.y}:null,boundingRect:x.current}):n,[n,s,x]),M=!k&&!!w&&s,C=useMemo(()=>b$2(i,sn),[i]);useEffect(()=>((!C||C&&P)&&f(b),()=>{f(void 0);}),[P,b,f,C]);let _=jsxs(a$c,{ref:C?void 0:l,className:a$1(Ne,"BaselineUI-PointPicker-Display",e),backgroundColor:"background.primary.subtle",boxShadow:"medium",borderRadius:"sm",outlineWidth:1,outlineColor:"border.medium",outlineOffset:-1,outlineStyle:"solid",paddingY:"md",paddingLeft:"md",paddingRight:E?.length?"xl":"md",display:"flex",flexDirection:"row",gap:"lg",alignItems:"center",style:t,id:b,"data-block-id":a,"data-block-class":o,"data-variant":C?"floating":"auto","data-testid":"point-picker-display",children:[w?jsxs("div",{className:Te,children:[M?jsx(ne,{scale:w.scale,renderMagnifierContent:d,children:c}):null,Array.from({length:nn*rn}).map((g,R)=>R===24?jsx("div",{className:a$1(q,Ae)},R):jsx("div",{className:q},R))]}):null,E?.length?jsx(a$c,{display:"flex",gap:"lg",flexDirection:"column",children:E?.map(({label:g,icon:R},j)=>jsxs(a$c,{display:"flex",gap:"md",flexDirection:"row",color:"text.secondary",alignItems:"center",children:[jsx(R,{size:12,className:Ie}),jsx(a$d,{type:"label",size:"sm",children:g})]},g+j))}):null]});return C?jsx(te,{ref:l,...C,className:"BaselineUI-PointPicker-Floater",children:_}):_});it.displayName="PointPickerDisplay";function oe(e){let t=new Blob([e],{type:"text/javascript"}),n=URL.createObjectURL(t),r=new Worker(n);return URL.revokeObjectURL(n),r}function se(){return oe('var Y=Object.defineProperty;var Z=(n,t,e)=>t in n?Y(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var M=(n,t,e)=>Z(n,typeof t!="symbol"?t+"":t,e);var F=Symbol("Comlink.proxy"),J=Symbol("Comlink.endpoint"),Q=Symbol("Comlink.releaseProxy"),z=Symbol("Comlink.finalizer"),T=Symbol("Comlink.thrown"),B=n=>typeof n=="object"&&n!==null||typeof n=="function",q={canHandle:n=>B(n)&&n[F],serialize(n){let{port1:t,port2:e}=new MessageChannel;return U(n,t),[e,[e]]},deserialize(n){return n.start(),et(n)}},X={canHandle:n=>B(n)&&T in n,serialize({value:n}){let t;return n instanceof Error?t={isError:!0,value:{message:n.message,name:n.name,stack:n.stack}}:t={isError:!1,value:n},[t,[]]},deserialize(n){throw n.isError?Object.assign(new Error(n.value.message),n.value):n.value}},H=new Map([["proxy",q],["throw",X]]);function tt(n,t){for(let e of n)if(t===e||e==="*"||e instanceof RegExp&&e.test(t))return!0;return!1}function U(n,t=globalThis,e=["*"]){t.addEventListener("message",function r(s){if(!s||!s.data)return;if(!tt(e,s.origin)){console.warn(`Invalid origin \'${s.origin}\' for comlink proxy`);return}let{id:o,type:c,path:u}=Object.assign({path:[]},s.data),i=(s.data.argumentList||[]).map(m),a;try{let l=u.slice(0,-1).reduce((f,y)=>f[y],n),h=u.reduce((f,y)=>f[y],n);switch(c){case"GET":a=h;break;case"SET":l[u.slice(-1)[0]]=m(s.data.value),a=!0;break;case"APPLY":a=h.apply(l,i);break;case"CONSTRUCT":{let f=new h(...i);a=at(f)}break;case"ENDPOINT":{let{port1:f,port2:y}=new MessageChannel;U(n,y),a=ot(f,[f])}break;case"RELEASE":a=void 0;break;default:return}}catch(l){a={value:l,[T]:0}}Promise.resolve(a).catch(l=>({value:l,[T]:0})).then(l=>{let[h,f]=_(l);t.postMessage(Object.assign(Object.assign({},h),{id:o}),f),c==="RELEASE"&&(t.removeEventListener("message",r),V(t),z in n&&typeof n[z]=="function"&&n[z]())}).catch(l=>{let[h,f]=_({value:new TypeError("Unserializable return value"),[T]:0});t.postMessage(Object.assign(Object.assign({},h),{id:o}),f)})}),t.start&&t.start()}function nt(n){return n.constructor.name==="MessagePort"}function V(n){nt(n)&&n.close()}function et(n,t){let e=new Map;return n.addEventListener("message",function(s){let{data:o}=s;if(!o||!o.id)return;let c=e.get(o.id);if(c)try{c(o)}finally{e.delete(o.id)}}),I(n,e,[],t)}function S(n){if(n)throw new Error("Proxy has been released and is not useable")}function $(n){return A(n,new Map,{type:"RELEASE"}).then(()=>{V(n)})}var P=new WeakMap,R="FinalizationRegistry"in globalThis&&new FinalizationRegistry(n=>{let t=(P.get(n)||0)-1;P.set(n,t),t===0&&$(n)});function rt(n,t){let e=(P.get(t)||0)+1;P.set(t,e),R&&R.register(n,t,n)}function st(n){R&&R.unregister(n)}function I(n,t,e=[],r=function(){}){let s=!1,o=new Proxy(r,{get(c,u){if(S(s),u===Q)return()=>{st(o),$(n),t.clear(),s=!0};if(u==="then"){if(e.length===0)return{then:()=>o};let i=A(n,t,{type:"GET",path:e.map(a=>a.toString())}).then(m);return i.then.bind(i)}return I(n,t,[...e,u])},set(c,u,i){S(s);let[a,l]=_(i);return A(n,t,{type:"SET",path:[...e,u].map(h=>h.toString()),value:a},l).then(m)},apply(c,u,i){S(s);let a=e[e.length-1];if(a===J)return A(n,t,{type:"ENDPOINT"}).then(m);if(a==="bind")return I(n,t,e.slice(0,-1));let[l,h]=D(i);return A(n,t,{type:"APPLY",path:e.map(f=>f.toString()),argumentList:l},h).then(m)},construct(c,u){S(s);let[i,a]=D(u);return A(n,t,{type:"CONSTRUCT",path:e.map(l=>l.toString()),argumentList:i},a).then(m)}});return rt(o,n),o}function it(n){return Array.prototype.concat.apply([],n)}function D(n){let t=n.map(_);return[t.map(e=>e[0]),it(t.map(e=>e[1]))]}var W=new WeakMap;function ot(n,t){return W.set(n,t),n}function at(n){return Object.assign(n,{[F]:!0})}function _(n){for(let[t,e]of H)if(e.canHandle(n)){let[r,s]=e.serialize(n);return[{type:"HANDLER",name:t,value:r},s]}return[{type:"RAW",value:n},W.get(n)||[]]}function m(n){switch(n.type){case"HANDLER":return H.get(n.name).deserialize(n.value);case"RAW":return n.value}}function A(n,t,e,r){return new Promise(s=>{let o=ct();t.set(o,s),n.start&&n.start(),n.postMessage(Object.assign({id:o},e),r)})}function ct(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}var G=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],L=1,x=8,d=new Uint32Array(96),C=class n{static from(t){if(!t||t.byteLength===void 0||t.buffer)throw new Error("Data must be an instance of ArrayBuffer or SharedArrayBuffer.");let[e,r]=new Uint8Array(t,0,2);if(e!==219)throw new Error("Data does not appear to be in a KDBush format.");let s=r>>4;if(s!==L)throw new Error(`Got v${s} data when expected v${L}.`);let o=G[r&15];if(!o)throw new Error("Unrecognized array type.");let[c]=new Uint16Array(t,2,1),[u]=new Uint32Array(t,4,1);return new n(u,c,o,void 0,t)}constructor(t,e=64,r=Float64Array,s=ArrayBuffer,o){if(isNaN(t)||t<0)throw new Error(`Unexpected numItems value: ${t}.`);this.numItems=+t,this.nodeSize=Math.min(Math.max(+e,2),65535),this.ArrayType=r,this.IndexArrayType=t<65536?Uint16Array:Uint32Array;let c=G.indexOf(this.ArrayType),u=t*2*this.ArrayType.BYTES_PER_ELEMENT,i=t*this.IndexArrayType.BYTES_PER_ELEMENT,a=(8-i%8)%8;if(c<0)throw new Error(`Unexpected typed array class: ${r}.`);if(o)this.data=o,this.ids=new this.IndexArrayType(o,x,t),this.coords=new r(o,x+i+a,t*2),this._pos=t*2,this._finished=!0;else{let l=this.data=new s(x+u+i+a);this.ids=new this.IndexArrayType(l,x,t),this.coords=new r(l,x+i+a,t*2),this._pos=0,this._finished=!1,new Uint8Array(l,0,2).set([219,(L<<4)+c]),new Uint16Array(l,2,1)[0]=e,new Uint32Array(l,4,1)[0]=t}}add(t,e){let r=this._pos>>1;return this.ids[r]=r,this.coords[this._pos++]=t,this.coords[this._pos++]=e,r}finish(){let t=this._pos>>1;if(t!==this.numItems)throw new Error(`Added ${t} items when expected ${this.numItems}.`);return N(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(t,e,r,s){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");let{ids:o,coords:c,nodeSize:u}=this;d[0]=0,d[1]=o.length-1,d[2]=0;let i=3,a=[];for(;i>0;){let l=d[--i],h=d[--i],f=d[--i];if(h-f<=u){for(let g=f;g<=h;g++){let E=c[2*g],k=c[2*g+1];E>=t&&E<=r&&k>=e&&k<=s&&a.push(o[g])}continue}let y=f+h>>1,w=c[2*y],p=c[2*y+1];w>=t&&w<=r&&p>=e&&p<=s&&a.push(o[y]),(l===0?t<=w:e<=p)&&(d[i++]=f,d[i++]=y-1,d[i++]=1-l),(l===0?r>=w:s>=p)&&(d[i++]=y+1,d[i++]=h,d[i++]=1-l)}return a}within(t,e,r){let s=[];return this.withinInto(t,e,r,s),s}withinInto(t,e,r,s){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");let{ids:o,coords:c,nodeSize:u}=this;d[0]=0,d[1]=o.length-1,d[2]=0;let i=3,a=0,l=r*r;for(;i>0;){let h=d[--i],f=d[--i],y=d[--i];if(f-y<=u){for(let E=y;E<=f;E++)j(c[2*E],c[2*E+1],t,e)<=l&&(s[a++]=o[E]);continue}let w=y+f>>1,p=c[2*w],g=c[2*w+1];j(p,g,t,e)<=l&&(s[a++]=o[w]),(h===0?t-r<=p:e-r<=g)&&(d[i++]=y,d[i++]=w-1,d[i++]=1-h),(h===0?t+r>=p:e+r>=g)&&(d[i++]=w+1,d[i++]=f,d[i++]=1-h)}return a}};function N(n,t,e,r,s,o){if(s-r<=e)return;let c=r+s>>1;K(n,t,c,r,s,o),N(n,t,e,r,c-1,1-o),N(n,t,e,c+1,s,1-o)}function K(n,t,e,r,s,o){for(;s>r;){if(s-r>600){let a=s-r+1,l=e-r+1,h=Math.log(a),f=.5*Math.exp(2*h/3),y=.5*Math.sqrt(h*f*(a-f)/a)*(l-a/2<0?-1:1),w=Math.max(r,Math.floor(e-l*f/a+y)),p=Math.min(s,Math.floor(e+(a-l)*f/a+y));K(n,t,e,w,p,o)}let c=t[2*e+o],u=r,i=s;for(b(n,t,r,e),t[2*s+o]>c&&b(n,t,r,s);u<i;){for(b(n,t,u,i),u++,i--;t[2*u+o]<c;)u++;for(;t[2*i+o]>c;)i--}t[2*r+o]===c?b(n,t,r,i):(i++,b(n,t,i,s)),i<=e&&(r=i+1),e<=i&&(s=i-1)}}function b(n,t,e,r){O(n,e,r),O(t,2*e,2*r),O(t,2*e+1,2*r+1)}function O(n,t,e){let r=n[t];n[t]=n[e],n[e]=r}function j(n,t,e,r){let s=n-e,o=t-r;return s*s+o*o}var v=class{constructor(){M(this,"index",null);M(this,"xCoords",null);M(this,"yCoords",null)}buildIndex(t){this.clear(),this.xCoords=new Float64Array(t.length),this.yCoords=new Float64Array(t.length);for(let[r,s]of t.entries())this.xCoords[r]=s.x,this.yCoords[r]=s.y;let e=new C(t.length);for(let r=0;r<t.length;r++)e.add(this.xCoords[r],this.yCoords[r]);return e.finish(),this.index=e,e.data}clear(){this.index=null,this.xCoords=null,this.yCoords=null}findNearestPoint(t,e,r){if(!this.index||!this.xCoords||!this.yCoords)return null;let s=this.index.within(t,e,r);if(s.length===0)return null;let o=s[0],c=1/0;for(let u of s){let i=t-this.xCoords[u],a=e-this.yCoords[u],l=i*i+a*a;l<c&&(c=l,o=u)}return{x:this.xCoords[o],y:this.yCoords[o]}}findPointsInRadius(t,e,r){if(!this.index||!this.xCoords||!this.yCoords)return[];let s=this.index.within(t,e,r),o=Array.from({length:s.length});for(let[c,u]of s.entries())o[c]={x:this.xCoords[u],y:this.yCoords[u]};return o}};U(new v);\n/*! Bundled license information:\n\ncomlink/dist/esm/comlink.mjs:\n (**\n * @license\n * Copyright 2019 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n *)\n*/\n')}function an({snapPoints:e,snapRadius:t=50}){let n=useRef(null),r=useRef(null),a=useRef(false),o=useCallback(()=>{if(a.current)return null;if(!r.current){let s=new se;r.current={worker:s,api:st.wrap(s)};}return r.current.api},[]);useEffect(()=>(a.current=false,o(),()=>{a.current=true,r.current?.worker.terminate(),r.current=null,n.current=null;}),[o]);let i=useCallback(async()=>{let s=o();!e||!s||(n.current=await s.buildIndex(e));},[e,o]);useEffect(()=>{e&&e.length>0&&i();},[e,i]);let d=useCallback(async s=>e?(n.current||await i(),await o()?.findNearestPoint(s.x,s.y,t)??null):null,[e,t,i,o]),l=useCallback(async s=>e?(n.current||await i(),await o()?.findPointsInRadius(s.x,s.y,t)??[]):[],[e,t,i,o]);return {findNearestPoint:d,findPointsInRadius:l}}
11
- export{Ee as a,Xe as b,it as c,an as d};
@@ -1,10 +0,0 @@
1
- import {c as c$1,b}from'./chunk-COHK4QQW.mjs';import {a}from'./chunk-MIF6BAPG.mjs';import {d}from'./chunk-PD5ZXNGT.mjs';import {a as a$1}from'./chunk-D4NW56YQ.mjs';import {d as d$1}from'./chunk-GMALMQWI.mjs';import {b as b$1}from'./chunk-N2XGJKZG.mjs';import {f,b as b$2}from'./chunk-GQIS4QBN.mjs';import {i as i$1,b as b$3}from'./chunk-KUDCYGII.mjs';import {q}from'./chunk-PPHSLODC.mjs';import {c as c$2,a as a$3}from'./chunk-3WKDIXCM.mjs';import {a as a$2}from'./chunk-SVIYLH7R.mjs';import {c,e}from'./chunk-ETM4MNG4.mjs';import {m,i,a as a$4,h,j}from'./chunk-SD43KVTU.mjs';import {useRef}from'react';/**
2
- * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
- *
4
- * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
- * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
- * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
- * This notice may not be removed from this file.
8
- *
9
- */
10
- var M=new WeakMap;function I(n,t){let{id:e}=M.get(n)??{};if(!e)throw new Error("Unknown list");return `${e}-${se(t)}`}function se(n){return typeof n=="string"?n.replace(/\s*/g,""):""+n}function Se(n,t,e){let{isVirtualized:i,keyboardDelegate:a$3,layoutDelegate:u,onAction:p,disallowTypeAhead:d,linkBehavior:y="action",keyboardNavigationBehavior:O="arrow",escapeKeyBehavior:b$1="clearSelection",shouldSelectOnPressUp:F}=n;!n["aria-label"]&&!n["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let{listProps:w}=a({selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,ref:e,keyboardDelegate:a$3,layoutDelegate:u,isVirtualized:i,selectOnFocus:t.selectionManager.selectionBehavior==="replace",shouldFocusWrap:n.shouldFocusWrap,linkBehavior:y,disallowTypeAhead:d,autoFocus:n.autoFocus,escapeKeyBehavior:b$1,UNSTABLE_focusOnEntry:n.UNSTABLE_focusOnEntry}),k=c(n.id);M.set(t,{id:k,onAction:p,linkBehavior:y,keyboardNavigationBehavior:O,shouldSelectOnPressUp:F});let T=c$1({selectionManager:t.selectionManager,hasItemActions:!!p}),x=a$1(e,{isDisabled:t.collection.size!==0}),g=a$2(n,{labelable:true}),E=c$2(g,{role:"grid",id:k,"aria-multiselectable":t.selectionManager.selectionMode==="multiple"?"true":void 0},t.collection.size===0?{tabIndex:x?-1:0}:w,T);return i&&(E["aria-rowcount"]=t.collection.size,E["aria-colcount"]=1),b({},t),{gridProps:E}}var Y={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function Ue(n,t,e$1){let{node:i$2,isVirtualized:a,focusMode:u="row",allowsArrowNavigation:p}=n,{direction:d$2}=b$1(),{onAction:y,linkBehavior:O,keyboardNavigationBehavior:b,shouldSelectOnPressUp:F}=M.get(t),w=e(),k=useRef(null),T=()=>{if(e$1.current!==null){if(u==="child"){if(m(e$1.current)&&e$1.current!==i(a$4(e$1.current)))return;let l=d$1(e$1.current,{tabbable:true}).firstChild();if(l){i$1(l),f(l,{containingElement:b$2(l)});return}}(k.current!=null&&i$2.key!==k.current||!m(e$1.current))&&i$1(e$1.current);}},x={},g=n.hasChildItems,E=t.selectionManager.isLink(i$2.key);if(i$2!=null&&"expandedKeys"in t){let r=t.collection.getChildren?.(i$2.key);g=g||[...r??[]].length>1,y==null&&!E&&t.selectionManager.selectionMode==="none"&&g&&(y=()=>t.toggleKey(i$2.key));let l=g?t.expandedKeys.has(i$2.key):void 0,o=1,c=i$2.index;if(i$2.level>=0&&i$2?.parentKey!=null){let s=t.collection.getItem(i$2.parentKey);if(s){let B=ue(s,t.collection);o=[...B].filter(ae=>ae.type==="item").length,c>0&&B[0].type!=="item"&&(c-=1);}}else o=[...t.collection].filter(s=>s.level===0&&s.type==="item").length;x={"aria-expanded":l,"aria-level":i$2.level+1,"aria-posinset":c+1,"aria-setsize":o};}let{itemProps:Z,...R}=d({selectionManager:t.selectionManager,key:i$2.key,ref:e$1,isVirtualized:a,shouldSelectOnPressUp:n.shouldSelectOnPressUp||F,onAction:y||i$2.props?.onAction?a$3(i$2.props?.onAction,y?()=>y(i$2.key):void 0):void 0,focus:T,linkBehavior:O}),ee=r=>{let l=i(a$4(e$1.current));if(!h(r.currentTarget,j(r))||!e$1.current||!l)return;let o=d$1(e$1.current);if(o.currentNode=l,!J(r,t,i$2,g,d$2,l,e$1.current,p))switch(r.key){case "ArrowLeft":{if(b==="arrow"){let c=d$2==="rtl"?o.nextNode():o.previousNode();if(c)r.preventDefault(),r.stopPropagation(),i$1(c),f(c,{containingElement:b$2(e$1.current)});else if(r.preventDefault(),r.stopPropagation(),d$2==="rtl")i$1(e$1.current),f(e$1.current,{containingElement:b$2(e$1.current)});else {o.currentNode=e$1.current;let s=Q(o);s&&(i$1(s),f(s,{containingElement:b$2(e$1.current)}));}}break}case "ArrowRight":{if(b==="arrow"){let c=d$2==="rtl"?o.previousNode():o.nextNode();if(c)r.preventDefault(),r.stopPropagation(),i$1(c),f(c,{containingElement:b$2(e$1.current)});else if(r.preventDefault(),r.stopPropagation(),d$2==="ltr")i$1(e$1.current),f(e$1.current,{containingElement:b$2(e$1.current)});else {o.currentNode=e$1.current;let s=Q(o);s&&(i$1(s),f(s,{containingElement:b$2(e$1.current)}));}}break}case "ArrowUp":case "ArrowDown":!r.altKey&&h(e$1.current,j(r))&&(r.stopPropagation(),r.preventDefault(),e$1.current.parentElement?.dispatchEvent(new KeyboardEvent(r.nativeEvent.type,r.nativeEvent)));break}},te=r=>{if(k.current=i$2.key,j(r)!==e$1.current){b$3()||t.selectionManager.setFocusedKey(i$2.key);return}u==="child"&&r.relatedTarget&&h(e$1.current,r.relatedTarget)||requestAnimationFrame(()=>{u==="child"&&i(a$4(e$1.current))===e$1.current&&T();});},re=r=>{let l=i(a$4(e$1.current));if(!(!h(r.currentTarget,j(r))||!e$1.current||!l)){if(b==="tab"){if(j(r)!==e$1.current&&r.key!=="Tab"){r.stopPropagation();return}if(J(r,t,i$2,g,d$2,l,e$1.current,p))return}switch(r.key){case "Tab":if(b==="tab"){let o=d$1(e$1.current,{tabbable:true});o.currentNode=l,(r.shiftKey?o.previousNode():o.nextNode())&&r.stopPropagation();}}}},ie=q(i$2.props),ne=R.hasAction?ie:{},K=c$2(Z,ne,{role:"row",onKeyDownCapture:b==="arrow"||p?ee:void 0,onFocus:te,"aria-label":i$2["aria-label"]||i$2.textValue||void 0,"aria-selected":t.selectionManager.canSelectItem(i$2.key)?t.selectionManager.isSelected(i$2.key):void 0,"aria-disabled":t.selectionManager.isDisabled(i$2.key)||void 0,"aria-labelledby":w&&(i$2["aria-label"]||i$2.textValue)?`${I(t,i$2.key)} ${w}`:void 0,id:I(t,i$2.key)});u==="child"&&p&&b==="tab"&&(K.tabIndex=-1);let oe=K.onKeyDown;if(K.onKeyDown=r=>{re(r),r.isPropagationStopped()||oe?.(r);},a){let{collection:r}=t,l=[...r];K["aria-rowindex"]=l.find(o=>o.type==="section")?[...r.getKeys()].filter(o=>r.getItem(o)?.type!=="section").findIndex(o=>o===i$2.key)+1:i$2.index+1;}let le={role:"gridcell","aria-colindex":1};return {rowProps:{...c$2(K,x)},gridCellProps:le,descriptionProps:{id:w},...R}}function J(n,t,e,i,a,u,p,d){if(!("expandedKeys"in t)||!d&&u!==p)return false;if(n.key===Y.expand[a]&&t.selectionManager.focusedKey===e.key&&i&&!t.expandedKeys.has(e.key))return t.toggleKey(e.key),n.stopPropagation(),true;if(n.key===Y.collapse[a]&&t.selectionManager.focusedKey===e.key){if(i&&t.expandedKeys.has(e.key))return t.toggleKey(e.key),n.stopPropagation(),true;if(!t.expandedKeys.has(e.key)&&e.parentKey&&t.collection.getItem(e.parentKey)?.type==="item")return t.selectionManager.setFocusedKey(e.parentKey),n.stopPropagation(),true}return false}function Q(n){let t=null,e=null;do e=n.lastChild(),e&&(t=e);while(e);return t}function ue(n,t){let e=t.getChildren?.(n.key),i=e?Array.from(e):[],a=i.length>0?i[0]:null,u=[];for(;a;)u.push(a),a=a.nextKey!=null?t.getItem(a.nextKey):null;return u}export{I as a,Se as b,Ue as c};
@@ -1,10 +0,0 @@
1
- import {a as a$3}from'./chunk-AELTF2DE.mjs';import {a as a$2}from'./chunk-TAYP2OGC.mjs';import {a as a$4}from'./chunk-GL5GUKT7.mjs';import {B as B$1}from'./chunk-4MHBLLHV.mjs';import {b}from'./chunk-TUJLNJPJ.mjs';import {a as a$6}from'./chunk-O7XK2WIX.mjs';import {a as a$5}from'./chunk-OQPYPKZV.mjs';import {c}from'./chunk-3WKDIXCM.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$7}from'./chunk-4QEH5CGK.mjs';import {UploadIcon}from'@baseline-ui/icons/20';import a$1 from'react';import {jsxs,jsx}from'react/jsx-runtime';/**
2
- * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
- *
4
- * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
- * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
- * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
- * This notice may not be removed from this file.
8
- *
9
- */
10
- var U="_1yep5z6dv _1yep5z6f0",I=a({defaultClassName:"_12y0zas5 _1yep5z6c _1yep5z6d _1yep5z6e _1yep5z62o _1yep5z62p _1yep5z62q _1yep5z63u _1yep5z63v _1yep5z63w _1yep5z61i _1yep5z61j _1yep5z61k _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jk _1yep5z6jl _1yep5z6jm _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6kt _1yep5z6ku _1yep5z6kv _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6m3 _1yep5z6dy _1yep5z6f5",variantClassNames:{isDisabled:{true:"_12y0zas6 _1yep5z611l"}},defaultVariants:{},compoundVariants:[]}),B=a({defaultClassName:"_12y0zas0 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jk _1yep5z6jl _1yep5z6jm _1yep5z6m3 _1yep5z6gb",variantClassNames:{isInline:{true:"_1yep5z6x4 _1yep5z6x5 _1yep5z6x6 _1yep5z6xs _1yep5z6xt _1yep5z6xu _1yep5z6yg _1yep5z6yh _1yep5z6yi _1yep5z6z4 _1yep5z6z5 _1yep5z6z6 _1yep5z618z _1yep5z6190 _1yep5z6140"},isDropTarget:{true:"_1yep5z6132"},isError:{true:"_1yep5z618y _1yep5z6191 _1yep5z613e"},isDisabled:{true:"_1yep5z618y _1yep5z6190 _1yep5z6146"}},defaultVariants:{},compoundVariants:[[{isInline:true,isError:true},"_1yep5z61vi _1yep5z61vk _1yep5z61px"]]}),P=a({defaultClassName:"_12y0zas7 _1yep5z6fa",variantClassNames:{isDisabled:{true:"_1yep5z611u"}},defaultVariants:{},compoundVariants:[]}),E="_1yep5z6dv _1yep5z6ee",L="_1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jk _1yep5z6jl _1yep5z6jm _1yep5z69f _1yep5z69g _1yep5z69h",D="_1yep5z6dy _1yep5z6ez",w="_1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jk _1yep5z6jl _1yep5z6jm _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6m3";var Y="Drop files here or click to upload",$="Upload",V=a$1.forwardRef(({className:A,style:O,variant:m="dropzone",isInline:S=false,label:t,description:i,onAdd:f,accept:o,allowsMultiple:n=true,isDisabled:p,errorMessage:y,buttonLabel:H=$,dropzoneLabel:q=Y},Z)=>{let c$1=a$1.useId(),v=a$1.useId(),j=a$1.useId(),x=a$1.useRef(null),l=a$1.useCallback(e=>{if(!e.length)return;let X=n?e:e.slice(0,1);f?.(X);},[n,f]),b$1=e=>{e&&l([...e]);},{dropProps:G,isDropTarget:J}=B$1({ref:x,onDrop:async e=>{l(await a$2({items:e.items,accept:o}));}}),{clipboardProps:K}=a$3({isDisabled:p,onPaste:async e=>{l(await a$2({items:e,accept:o}));}}),C=[i?v:null,y?j:null].filter(Boolean).join(" ")||void 0,M=t||i?jsxs("div",{className:L,children:[t?jsx("div",{id:c$1,className:D,children:t}):null,i?jsx("div",{id:v,className:U,children:i}):null]}):null,Q=m==="dropzone"?jsx(a$4,{acceptedFileTypes:o?[o]:void 0,allowsMultiple:n,onSelect:b$1,children:jsx(a$5,{isDisabled:p,children:jsx("div",{ref:x,...c(p?{}:G,K),role:"button",tabIndex:p?-1:0,"aria-labelledby":t?c$1:void 0,"aria-describedby":C,"aria-disabled":p||void 0,"data-testid":"file-uploader-dropzone",className:B({isInline:S,isDropTarget:J,isDisabled:p,isError:!!y}),children:jsxs("div",{className:I({isDisabled:p}),children:[jsx(UploadIcon,{width:20,height:20,className:P({isDisabled:p})}),jsx("span",{children:q})]})})})}):jsx(a$4,{acceptedFileTypes:o?[o]:void 0,allowsMultiple:n,onSelect:b$1,children:jsx(b,{variant:"primary",iconStart:UploadIcon,label:H,isDisabled:p,"aria-describedby":C})}),W=y?jsx(a$6,{id:j,elementType:"span",role:"alert",className:E,children:y}):null;return jsxs("div",{ref:Z,className:a$7(w,"BaselineUI-FileUploader",A),style:O,"data-variant":m,"data-testid":"file-uploader",children:[M,Q,W]})});V.displayName="FileUploader";export{V as a};
@@ -1,10 +0,0 @@
1
- import {a as a$4}from'./chunk-QUQ4VYCN.mjs';import {a as a$d}from'./chunk-ZZIQF6XD.mjs';import {a as a$f}from'./chunk-WTAJLO6E.mjs';import {a as a$3,b as b$1}from'./chunk-DAN62T2M.mjs';import {a as a$2}from'./chunk-XDTKLQJB.mjs';import {a as a$g}from'./chunk-UDMNDUBO.mjs';import {b as b$5}from'./chunk-TUJLNJPJ.mjs';import {a as a$c}from'./chunk-O7XK2WIX.mjs';import {a as a$e}from'./chunk-3BG6K2G2.mjs';import {a as a$1}from'./chunk-RPIUPWPO.mjs';import {a as a$h}from'./chunk-GMALMQWI.mjs';import {b as b$2}from'./chunk-N2XGJKZG.mjs';import {b as b$3}from'./chunk-K5RYVERS.mjs';import {b as b$4,j as j$1}from'./chunk-MBRNO6IW.mjs';import {a as a$b}from'./chunk-VDUFLHKK.mjs';import {a as a$a}from'./chunk-FPM5UJRF.mjs';import {a as a$8}from'./chunk-RSKKEGJZ.mjs';import {a as a$6}from'./chunk-STMDFIUL.mjs';import {j}from'./chunk-KUDCYGII.mjs';import {a as a$7}from'./chunk-B3EZOXNU.mjs';import {a as a$9}from'./chunk-RT4LMB6X.mjs';import {b,c}from'./chunk-3WKDIXCM.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$5}from'./chunk-4QEH5CGK.mjs';import B from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {sprinkles}from'@baseline-ui/tokens';/**
2
- * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
- *
4
- * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
- * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
- * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
- * This notice may not be removed from this file.
8
- *
9
- */
10
- var se="_1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jk _1yep5z6jl _1yep5z6jm _1yep5z6m3",pe="_14uvjig3 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z69i _1yep5z69j _1yep5z69k",de="_1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6kz _1yep5z6l0 _1yep5z6l1 _1yep5z6jz _1yep5z6k0 _1yep5z6k1",ne=a({defaultClassName:"_14uvjig0 _1yep5z6dy _1yep5z6ez",variantClassNames:{isDisabled:{true:"_1yep5z611l"},hasNumberInput:{false:"_1yep5z6p1 _1yep5z6p2 _1yep5z6p3"}},defaultVariants:{},compoundVariants:[]}),me=a({defaultClassName:"_14uvjigb _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6gh _1yep5z6m5 _1yep5z6lq",variantClassNames:{active:{true:"_14uvjigc _1yep5z6136 _1yep5z618x _1yep5z618p"},isDisabled:{true:"_14uvjigd _1yep5z613a"},isReadOnly:{true:"_1yep5z615l _1yep5z615m _1yep5z615n"},isFocusVisible:{true:"_14uvjigf _1yep5z6136 _1yep5z6189"},isHovered:{true:"_14uvjigg _1yep5z6136"}},defaultVariants:{},compoundVariants:[]}),ue="z9nup8a _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6kt _1yep5z6ku _1yep5z6kv",ye="_14uvjig4 z9nup87 _1yep5z6gd _1yep5z6m3",ce=a({defaultClassName:"_14uvjig5 _1yep5z6gh _1yep5z6iw _1yep5z6ix _1yep5z6iy _1yep5z6m4",variantClassNames:{active:{true:"_1yep5z6136"},isFocusVisible:{true:"_1yep5z6136"},isDisabled:{true:"_1yep5z613a"},isHovered:{true:"_1yep5z6136"}},defaultVariants:{},compoundVariants:[]});var N=B.forwardRef(({className:v,style:h,onChange:r,onChangeEnd:p,numberFormatOptions:o,isDisabled:i,step:S,minValue:d,maxValue:x,value:c,"aria-label":l,"aria-labelledby":e,"aria-details":n,"aria-describedby":m,"data-block-id":f,"data-block-class":H,defaultValue:k,isReadOnly:b$1,label:_,id:T,includeNumberInput:u,numberInputClassName:P,numberInputStyle:y},ze)=>{let I=B.useRef(null),F={onChange:r===void 0?void 0:g=>{r(g[0]);},isDisabled:i||b$1,step:S,minValue:d,maxValue:x,onChangeEnd:p===void 0?void 0:g=>{p(g[0]);},value:c===void 0?void 0:[c],defaultValue:k===void 0?void 0:[k],"aria-label":l,"aria-labelledby":e,"aria-details":n,"aria-describedby":m,id:T,label:_},ge=a$1(o),z=a$2({...F,numberFormatter:ge}),{trackProps:ve,groupProps:he,labelProps:O}=a$3(F,z,I),L=jsx(a$4,{variant:"ghost",showStepper:false,className:P,"aria-label":l,"aria-labelledby":O.id,isDisabled:i,isReadOnly:b$1,value:z.getThumbValue(0),formatOptions:o,onChange:g=>{Number.isNaN(g)||(z.setThumbDragging(0,true),z.setThumbValue(0,g),z.setThumbDragging(0,false));},style:{width:60,textAlign:"right",flexShrink:0,...y}});return jsxs("div",{...he,style:h,"data-block-id":f,"data-block-class":H,className:a$5(se,"BaselineUI-Slider",v),children:[_?jsxs("div",{className:de,children:[jsx("label",{...O,className:a$5(ne({isDisabled:i,hasNumberInput:!!u}),"BaselineUI-Slider-Label"),children:_}),u?L:null]}):null,jsxs("div",{className:pe,children:[jsx("div",{...ve,className:a$5(ye,"BaselineUI-Slider-Track"),ref:b(I,ze),"data-testid":"track",children:jsx(Se,{state:z,trackRef:I,isDisabled:i,isReadOnly:b$1})}),u&&!_?L:null]})]})});N.displayName="Slider";function Se({state:v,trackRef:h,isDisabled:r,isReadOnly:p}){let o=B.useRef(null),{thumbProps:i,inputProps:S,isDragging:d}=b$1({trackRef:h,inputRef:o},v),{focusProps:x,isFocused:c$1,isFocusVisible:l}=a$6(),{hoverProps:e,isHovered:n}=a$7({isDisabled:r}),{direction:m}=b$2(),f=a$8({"data-disabled":r,"data-readonly":p,"data-hovered":n,"data-focus-visible":l,"data-dragging":d,"data-focused":c$1});return jsxs(Fragment,{children:[jsx("div",{className:a$5(ce({isDisabled:r,isFocusVisible:l,active:d,isHovered:n}),"BaselineUI-Slider-TrackHighlight"),style:{width:m==="rtl"?`calc(100% - ${i.style?.left})`:i.style?.left},"data-testid":"track-highlight"}),jsxs("div",{...c(i,e,f),className:a$5(ue,"BaselineUI-Slider-ThumbHandle"),"data-testid":"thumb",children:[jsx("div",{className:a$5(me({isDisabled:r,isFocusVisible:l,active:d,isReadOnly:p,isHovered:n}),"BaselineUI-Slider-Thumb")}),jsx(b$3,{children:jsx("input",{ref:o,...c(S,x)})})]})]})}var _e=B.forwardRef(({className:v,style:h,onChange:r,"data-block-id":p,icon:o,formatValue:i=m=>m,tooltip:S=true,iconTooltip:d=true,popoverContentProps:x,isDisabled:c,onTriggerPress:l,...e},n)=>{let m=a$9(n),[f,H]=a$a(e.value,e.defaultValue||0,r),[k,b]=B.useState(false),{keyboardProps:_}=j({onKeyDown:y=>{(y.key==="Enter"||y.key==="Escape")&&b(false);}}),{tooltipProps:T}=a$b({label:e["aria-label"],tooltip:S}),u=i(f||0),P=T?.isDisabled||e["aria-label"]?`${e["aria-label"]}, ${u}`:u.toString();return jsxs(a$c,{display:"flex",flexDirection:"row",gap:"md",paddingX:"md",alignItems:"center",className:a$5("BaselineUI-IconSlider",v),"data-block-id":p,style:h,ref:m,children:[o?jsx(a$d,{icon:o,label:e["aria-label"],tooltip:d,"aria-hidden":"true",size:24,isFocusable:false,className:sprinkles({color:"icon.primary"})}):null,jsxs(b$4,{type:"dialog",isOpen:k,onOpenChange:b,children:[jsx(j$1,{children:jsx(a$e,{...T,children:jsx(b$5,{label:u,variant:"popover","aria-label":P,isDisabled:c,style:{fontVariantNumeric:"tabular-nums",minWidth:68,justifyContent:"space-between"},onPressStart:l})})}),jsx(a$f,{placement:"bottom start",...x,children:jsx(a$g,{size:"content","aria-label":P,children:jsx(a$h,{autoFocus:true,children:jsx(a$c,{paddingY:"sm",paddingX:"lg",marginY:"md",style:{width:215},..._,children:jsx(N,{...e,onChange:y=>{H(y),r?.(y);},value:f})})})})})]})]})});_e.displayName="IconSlider";export{N as a,_e as b};
@@ -1,10 +0,0 @@
1
- import {c}from'./chunk-ETM4MNG4.mjs';import {a}from'./chunk-4QEH5CGK.mjs';import {createContext,forwardRef,useEffect,useImperativeHandle,useMemo,useContext}from'react';import {usePanelRef,Panel,useGroupRef,useDefaultLayout,Group,Separator}from'react-resizable-panels';import {jsx}from'react/jsx-runtime';/**
2
- * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
- *
4
- * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
- * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
- * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
- * This notice may not be removed from this file.
8
- *
9
- */
10
- var y=createContext({});function h(){return useContext(y)}function f(r){return typeof r=="number"?`${r}%`:r}var I=forwardRef(({className:r,isCollapsible:e=false,id:a$1,onResize:s,defaultSize:m,minSize:c$1,maxSize:p,collapsedSize:u,...P},o)=>{let n=usePanelRef(),b=c(),d=a$1??b,{autoSaveId:l}=h();return useEffect(()=>{l&&!a$1&&console.warn("Panel: A stable `id` prop is required for size persistence to work correctly when `autoSaveId` is set on the parent `PanelGroup`. Without it, panel sizes will not be saved or restored.");},[l,a$1]),useImperativeHandle(o,()=>({resize:t=>n.current?.resize(t)})),jsx(Panel,{className:a("BaselineUI-Panel",r),collapsible:e,panelRef:n,id:d,defaultSize:f(m),minSize:f(c$1),maxSize:f(p),collapsedSize:f(u),onResize:s?t=>{s(t.asPercentage);}:void 0,...P})});I.displayName="Panel";var V=forwardRef(({className:r,autoSaveId:e,direction:a$1,onLayout:s,...m},c)=>{let p=useGroupRef();useImperativeHandle(c,()=>({setLayout:o=>{let n=p.current;if(!n)return;let b=n.getLayout(),d=Object.keys(b);if(d.length>0){let l={};for(let t of d)t in o&&(l[t]=o[t]);n.setLayout(l);}else n.setLayout(o);}}));let u=useDefaultLayout({id:e??"",storage:e?localStorage:void 0}),P=useMemo(()=>({autoSaveId:e}),[e]);return jsx(y.Provider,{value:P,children:jsx(Group,{className:a("BaselineUI-PanelGroup",r),groupRef:p,orientation:a$1,defaultLayout:e?u.defaultLayout:void 0,onLayoutChanged:o=>{e&&u.onLayoutChanged(o),s&&s(o);},...m})})});V.displayName="PanelGroup";var z="_6abhjk0";var A=({className:r,isDisabled:e=false,...a$1})=>jsx(Separator,{disabled:e,className:a(z,"BaselineUI-PanelResizeHandle",r),...a$1});A.displayName="PanelResizeHandle";export{I as a,V as b,A as c};
@@ -1,10 +0,0 @@
1
- import {a as a$3}from'./chunk-DAS5QGJX.mjs';import {c}from'./chunk-4RSUKS23.mjs';import {a as a$2}from'./chunk-FOKMDEP7.mjs';import {b}from'./chunk-4JQUB53Q.mjs';import {a as a$6}from'./chunk-NJKSUI2F.mjs';import {a as a$1}from'./chunk-STMDFIUL.mjs';import {b as b$1,c as c$1}from'./chunk-3WKDIXCM.mjs';import {a as a$5}from'./chunk-SD43KVTU.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$4}from'./chunk-4QEH5CGK.mjs';import {assignInlineVars}from'@vanilla-extract/dynamic';import u,{useContext,useMemo,useState,useEffect}from'react';import {jsx}from'react/jsx-runtime';/**
2
- * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
- *
4
- * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
- * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
- * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
- * This notice may not be removed from this file.
8
- *
9
- */
10
- var F="var(--cjv3et0)",O=a({defaultClassName:"cjv3et1 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6g9 _1yep5z6mf _1yep5z6mh",variantClassNames:{size:{sm:"cjv3et2",md:"cjv3et3",lg:"cjv3et4",content:"cjv3et5"},variant:{primary:"_1yep5z613z",ghost:"cjv3et7"},overlayType:{modal:"cjv3et8",popover:"cjv3et9"},isDrawer:{true:"cjv3eta _1yep5z6yy _1yep5z6yz _1yep5z6z0 _1yep5z6zm _1yep5z6zn _1yep5z6zo _1yep5z618m"},isFocusVisible:{true:"_1yep5z61rf _1yep5z61v9 _1yep5z61vb _1yep5z61vd"}},defaultVariants:{},compoundVariants:[]});function S(e,t){let o=e["aria-label"],r=e["aria-labelledby"],[a,n]=useState(()=>o||"");return useEffect(()=>{if(o){n(o);return}if(!r){n("");return}let i=a$5(t?.current),p=t?.current?.getRootNode()??i,g=r.split(/\s+/).filter(Boolean),s=()=>{let m=g.map(y=>a$6(t?.current,y)),c=m.filter(Boolean).join(" ");return c&&n(c),m.every(y=>y!==void 0)};if(s())return;let f=p===i?i.body:p,l=new MutationObserver(()=>{s()&&l.disconnect();});return l.observe(f,{childList:true,subtree:true}),()=>{l.disconnect();}},[o,r,t]),a}var _=u.createContext({titleProps:{}}),B=u.forwardRef(({children:e,className:t,style:o,inheritDrawer:r,size:a="md",variant:n="primary","data-block-id":i,"data-block-class":p,drawerBackground:g,...s},f)=>{let l=u.useRef(null),m=u.useRef(null),{containerWidth:c$2,shouldContainOverlays:y}=useContext(b),{isDrawer:b$2,closeDrawer:q,dialogStyle:C,setDialogElement:P,isWithinModal:T}=useContext(c),A=S(s,m),{focusProps:I,isFocusVisible:R}=a$1(),{dialogProps:$,titleProps:L}=a$2(s,l),G=useMemo(()=>({titleProps:L}),[L]);return b$2&&r?jsx(a$3,{title:A,onCloseRequest:q,className:t,style:{...C,...o},...s,"data-drawer":true,"data-block-id":i,"data-block-class":p,ref:b$1(f,m,v=>{P(v);}),background:g,children:e}):jsx(_.Provider,{value:G,children:jsx("section",{...c$1($,I),"data-block-id":i,"data-block-class":p,"data-focus-visible":R,"data-overlay-type":T?"modal":"popover",ref:b$1(l,f,v=>{P(v);}),style:{...C,...o,...assignInlineVars({[F]:c$2&&y?`${c$2}px`:"100vw"})},className:a$4(O({size:b$2?"content":a,variant:n,isDrawer:b$2,isFocusVisible:R,overlayType:T?"modal":"popover"}),"BaselineUI-Dialog",t),children:e})})});B.displayName="Dialog";var U=u.forwardRef(({children:e,className:t,style:o},r)=>{let{titleProps:a}=useContext(_);return u.isValidElement(e)?u.cloneElement(e,{...a,ref:r,className:a$4(e.props.className,t),style:{...e.props.style,...o}}):jsx("h3",{...a,ref:r,className:t,style:o,children:e})});U.displayName="DialogTitle";export{B as a,U as b};
@@ -1,10 +0,0 @@
1
- import {a as a$1}from'./chunk-3BG6K2G2.mjs';import {a as a$4,b as b$2}from'./chunk-BIDNNBRG.mjs';import {b,c}from'./chunk-NJKSUI2F.mjs';import {a as a$2}from'./chunk-NQIZ3U7Q.mjs';import {e}from'./chunk-AYQN3OH2.mjs';import {a as a$3}from'./chunk-RSKKEGJZ.mjs';import {a}from'./chunk-RT4LMB6X.mjs';import {b as b$1,c as c$1}from'./chunk-3WKDIXCM.mjs';import {a as a$5}from'./chunk-4QEH5CGK.mjs';import {CaretDownIcon}from'@baseline-ui/icons/8';import k,{useEffect}from'react';import {jsx,jsxs}from'react/jsx-runtime';/**
2
- * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
- *
4
- * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
- * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
- * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
- * This notice may not be removed from this file.
8
- *
9
- */
10
- var K={xxs:8,xs:12,sm:16,md:20,lg:24},D=k.forwardRef((t,a$2)=>{let o=a(a$2),{tooltipProps:n}=b(t,o);return n?jsx(a$1,{...n,children:jsx(u,{...t,ref:o})}):jsx(u,{...t,ref:o})});D.displayName="ActionIconButton";var u=k.forwardRef((t,a)=>{let[o,n]=e(t,a,a$2),{className:s,style:i,icon:O,size:m="md",variant:p="primary",UNSAFE_isVisuallyInteractiveOnly:r,elementType:f=r?"div":"button",isExcludedFromRovingFocus:b,isDisabled:l,dragProps:_,"data-block-id":H,"data-block-class":V,"aria-label":c$2,"aria-labelledby":d,slot:W,...I}=o,{draggable:w,onDragStart:M,onDrag:U,onDragEnd:h}=o;useEffect(()=>{!c$2&&!d&&!r&&console.warn("An `ActionIconButton` requires an aria-label or aria-labelledby prop.");},[c$2,d,r]);let{buttonProps:z,isPressed:q,ref:G,isFocusVisible:y,isFocused:Y,isHovered:A,uiStateOptions:B}=c({...I,"aria-label":c$2,"aria-labelledby":d,isDisabled:l,excludeFromTabOrder:I.excludeFromTabOrder??b,elementType:f}),Z=a$3({"data-block-id":H,"data-block-class":V,"data-focused":Y,"data-focus-visible":y,"data-disabled":l,"data-hovered":A,"data-pressed":q,"data-bui-avoid-focus":b});return jsxs(f,{...c$1(z,Z,_,{draggable:w,onDragStart:M,onDrag:U,onDragEnd:h}),className:a$5(b$2({variant:p,size:m,isDisabled:!!l,isFocusVisible:y,isHovered:A}),"BaselineUI-ActionIconButton",typeof s=="function"?s(B):s),ref:b$1(n,G),style:typeof i=="function"?i(B):i,...r&&{tabIndex:void 0,role:void 0,"aria-label":void 0,"aria-labelledby":void 0,"aria-disabled":void 0},children:[jsx(O,{role:"presentation",size:K[m]}),p==="popover"&&jsx(CaretDownIcon,{size:8,className:a$4})]})});u.displayName="ActionIconButtonCore";export{D as a};
@@ -1,10 +0,0 @@
1
- import {a as a$1}from'./chunk-CLGLEEFO.mjs';import {a}from'./chunk-66CUIXA6.mjs';/**
2
- * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
- *
4
- * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
- * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
- * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
- * This notice may not be removed from this file.
8
- *
9
- */
10
- function s(n){if(n===void 0)return null;try{return a$1(n)}catch{return null}}function u(n){return n.toString(16).padStart(2,"0")}function b(n,r){a(r>=0&&r<=100,"Percent must be between 0 and 100");let t=a$1(n).toFormat("rgb"),o=t.getChannelValue("red"),l=t.getChannelValue("green"),a$2=t.getChannelValue("blue"),g=Math.round(o+(255-o)*r/100),d=Math.round(l+(255-l)*r/100),f=Math.round(a$2+(255-a$2)*r/100);return `#${u(g)}${u(d)}${u(f)}`}function h(n,r){if(n===r)return true;let t=s(n),o=s(r);return t===null||o===null?false:t.toString("rgba")===o.toString("rgba")}export{b as a,h as b};
File without changes
File without changes