@iqworksai/common-components 0.1.21 → 0.1.23

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 (536) hide show
  1. package/dist/_virtual/_commonjsHelpers.mjs +8 -0
  2. package/dist/_virtual/dayjs.min.mjs +4 -0
  3. package/dist/_virtual/index.mjs +4 -0
  4. package/dist/_virtual/index2.mjs +4 -0
  5. package/dist/_virtual/jquery.mjs +4 -0
  6. package/dist/_virtual/jstree.mjs +4 -0
  7. package/dist/_virtual/papaparse.min.mjs +4 -0
  8. package/dist/_virtual/react-is.development.mjs +4 -0
  9. package/dist/_virtual/react-is.production.min.mjs +4 -0
  10. package/dist/_virtual/use-sync-external-store-shim.development.mjs +4 -0
  11. package/dist/_virtual/use-sync-external-store-shim.production.mjs +4 -0
  12. package/dist/_virtual/use-sync-external-store-with-selector.development.mjs +4 -0
  13. package/dist/_virtual/use-sync-external-store-with-selector.production.mjs +4 -0
  14. package/dist/_virtual/utc.mjs +4 -0
  15. package/dist/_virtual/with-selector.development.mjs +4 -0
  16. package/dist/_virtual/with-selector.mjs +4 -0
  17. package/dist/_virtual/with-selector.production.mjs +4 -0
  18. package/dist/_virtual/with-selector2.mjs +4 -0
  19. package/dist/assets/integrations/athena.svg.mjs +4 -0
  20. package/dist/assets/integrations/awsS3.svg.mjs +4 -0
  21. package/dist/assets/integrations/azureBlob.svg.mjs +4 -0
  22. package/dist/assets/integrations/bigquery.svg.mjs +4 -0
  23. package/dist/assets/integrations/box.svg.mjs +4 -0
  24. package/dist/assets/integrations/confluence.svg.mjs +4 -0
  25. package/dist/assets/integrations/databricks.svg.mjs +4 -0
  26. package/dist/assets/integrations/drive.svg.mjs +4 -0
  27. package/dist/assets/integrations/dropbox.svg.mjs +4 -0
  28. package/dist/assets/integrations/dynamics365.svg.mjs +4 -0
  29. package/dist/assets/integrations/dynamodb.svg.mjs +4 -0
  30. package/dist/assets/integrations/endpoints.svg.mjs +4 -0
  31. package/dist/assets/integrations/exchange.svg.mjs +4 -0
  32. package/dist/assets/integrations/github.svg.mjs +4 -0
  33. package/dist/assets/integrations/gitlab.svg.mjs +4 -0
  34. package/dist/assets/integrations/gmail.svg.mjs +4 -0
  35. package/dist/assets/integrations/googleCloudStorage.svg.mjs +4 -0
  36. package/dist/assets/integrations/hubspot.svg.mjs +4 -0
  37. package/dist/assets/integrations/jira.svg.mjs +4 -0
  38. package/dist/assets/integrations/mssql.svg.mjs +4 -0
  39. package/dist/assets/integrations/mysql.svg.mjs +4 -0
  40. package/dist/assets/integrations/netsuite.svg.mjs +4 -0
  41. package/dist/assets/integrations/oneDrive.svg.mjs +4 -0
  42. package/dist/assets/integrations/outlook.svg.mjs +4 -0
  43. package/dist/assets/integrations/postgres.svg.mjs +4 -0
  44. package/dist/assets/integrations/redshift.svg.mjs +4 -0
  45. package/dist/assets/integrations/salesforce.svg.mjs +4 -0
  46. package/dist/assets/integrations/sap.svg.mjs +4 -0
  47. package/dist/assets/integrations/servicenow.svg.mjs +4 -0
  48. package/dist/assets/integrations/sharedDrive.svg.mjs +4 -0
  49. package/dist/assets/integrations/sharepoint.svg.mjs +4 -0
  50. package/dist/assets/integrations/slack.svg.mjs +4 -0
  51. package/dist/assets/integrations/snowflake.svg.mjs +4 -0
  52. package/dist/assets/integrations/teams.svg.mjs +4 -0
  53. package/dist/assets/integrations/workday.svg.mjs +4 -0
  54. package/dist/assets/integrations/zendesk.svg.mjs +4 -0
  55. package/dist/assets/logos/aiq-logo.svg.mjs +4 -0
  56. package/dist/assets/logos/classify-iq-logo.svg.mjs +4 -0
  57. package/dist/assets/logos/comply-iq-logo.svg.mjs +4 -0
  58. package/dist/assets/logos/consent-iq-logo.svg.mjs +4 -0
  59. package/dist/assets/logos/discover-iq-logo.svg.mjs +4 -0
  60. package/dist/assets/logos/iqagent-logo.svg.mjs +4 -0
  61. package/dist/assets/logos/iqworks-icon.png.mjs +4 -0
  62. package/dist/assets/logos/iqworks-icon.svg.mjs +10 -0
  63. package/dist/assets/logos/iqworks-icon.svg2.mjs +4 -0
  64. package/dist/assets/logos/iqworks-logo.svg.mjs +4 -0
  65. package/dist/assets/logos/light/aiq-logo-light.svg.mjs +4 -0
  66. package/dist/assets/logos/light/classify-iq-logo-light.svg.mjs +4 -0
  67. package/dist/assets/logos/light/comply-iq-logo-light.svg.mjs +4 -0
  68. package/dist/assets/logos/light/consent-iq-logo-light.svg.mjs +4 -0
  69. package/dist/assets/logos/light/discover-iq-logo-light.svg.mjs +4 -0
  70. package/dist/assets/logos/light/iqagent-logo.svg.mjs +4 -0
  71. package/dist/assets/logos/light/iqworks-icon-light.png.mjs +4 -0
  72. package/dist/assets/logos/light/iqworks-icon-light.svg.mjs +10 -0
  73. package/dist/assets/logos/light/iqworks-icon-light.svg2.mjs +4 -0
  74. package/dist/assets/logos/light/iqworks-logo-light.svg.mjs +4 -0
  75. package/dist/assets/logos/light/protect-iq-logo-light.svg.mjs +4 -0
  76. package/dist/assets/logos/light/retain-iq-logo-light.svg.mjs +4 -0
  77. package/dist/assets/logos/light/search-iq-logo-light.svg.mjs +4 -0
  78. package/dist/assets/logos/protect-iq-logo.svg.mjs +4 -0
  79. package/dist/assets/logos/retain-iq-logo.svg.mjs +4 -0
  80. package/dist/assets/logos/search-iq-logo.svg.mjs +4 -0
  81. package/dist/components/Alert/index.mjs +34 -0
  82. package/dist/components/CSVImporter/helpers.mjs +82 -0
  83. package/dist/components/CSVImporter/index.mjs +156 -0
  84. package/dist/components/Charts/ChartHeader/index.mjs +15 -0
  85. package/dist/components/Charts/CustomLegends/index.mjs +72 -0
  86. package/dist/components/Charts/DonutChart/index.mjs +120 -0
  87. package/dist/components/Charts/GaugeChart/index.mjs +229 -0
  88. package/dist/components/Charts/GeoChart/index.mjs +85 -0
  89. package/dist/components/Charts/HorizontalBarChart/index.mjs +118 -0
  90. package/dist/components/Charts/NoDataChart/index.mjs +19 -0
  91. package/dist/components/Charts/PieChart/index.mjs +120 -0
  92. package/dist/components/Charts/StorageChart/index.mjs +44 -0
  93. package/dist/components/Charts/VerticalBarChart/index.mjs +130 -0
  94. package/dist/components/ConfidenceScoreTooltip/index.mjs +113 -0
  95. package/dist/components/ConfirmationModal/index.mjs +96 -0
  96. package/dist/components/CountryBox/index.mjs +18 -0
  97. package/dist/components/DbSchemaBrowser/index.mjs +750 -0
  98. package/dist/components/Dropdown/index.mjs +59 -0
  99. package/dist/components/ErrorBoundary/ComponentErrorBoundary.mjs +43 -0
  100. package/dist/components/ErrorBoundary/index.mjs +184 -0
  101. package/dist/components/Favicons/index.d.ts +83 -0
  102. package/dist/components/Favicons/index.d.ts.map +1 -0
  103. package/dist/components/Favicons/index.mjs +67 -0
  104. package/dist/components/FileBrowser/index.mjs +706 -0
  105. package/dist/components/FileTypeIcon/index.mjs +12 -0
  106. package/dist/components/ImagePreviewModal/index.mjs +101 -0
  107. package/dist/components/InstallUpdateLoader/index.mjs +99 -0
  108. package/dist/components/IntegrationLogos/index.mjs +146 -0
  109. package/dist/components/Loader/index.mjs +30 -0
  110. package/dist/components/Logos/index.mjs +121 -0
  111. package/dist/components/Modal/index.mjs +126 -0
  112. package/dist/components/MultiSelect/index.mjs +236 -0
  113. package/dist/components/NoActiveAttributeWarning/index.mjs +9 -0
  114. package/dist/components/ResourceUsageBadge/index.mjs +47 -0
  115. package/dist/components/RiskScoreLabel/index.mjs +10 -0
  116. package/dist/components/ShowMultiData/index.mjs +32 -0
  117. package/dist/components/StatusBadge/index.mjs +39 -0
  118. package/dist/components/Table/index.mjs +732 -0
  119. package/dist/components/TaskResult/index.mjs +157 -0
  120. package/dist/components/Timer/index.mjs +33 -0
  121. package/dist/components/Toast/index.mjs +31 -0
  122. package/dist/components/ToggleSwitch/index.mjs +26 -0
  123. package/dist/components/ToolTip/index.mjs +63 -0
  124. package/dist/constants/browserConstants.mjs +9 -0
  125. package/dist/constants/enums.mjs +9 -0
  126. package/dist/constants/statusBadgeClasses.mjs +15 -0
  127. package/dist/context/ContextProvider.mjs +21 -0
  128. package/dist/context/LoaderContext.mjs +15 -0
  129. package/dist/context/ThemeContext.mjs +201 -0
  130. package/dist/context/ToastContext.mjs +24 -0
  131. package/dist/hooks/useApiCache.mjs +47 -0
  132. package/dist/hooks/useAssetPath.mjs +16 -0
  133. package/dist/hooks/useBodyScrollLock.mjs +13 -0
  134. package/dist/hooks/useClickOutside.mjs +21 -0
  135. package/dist/hooks/useDebounce.mjs +15 -0
  136. package/dist/hooks/useFilterCache.mjs +22 -0
  137. package/dist/hooks/useReduxHook.mjs +17 -0
  138. package/dist/{index-DuYopz3l.cjs → index-CUUuCzyM.cjs} +44 -32
  139. package/dist/{index-CM7jFsCE.cjs → index-DtVOjJk3.cjs} +1 -1
  140. package/dist/index.cjs +1 -1
  141. package/dist/index.d.ts +1 -0
  142. package/dist/index.d.ts.map +1 -1
  143. package/dist/index.mjs +166 -100
  144. package/dist/jquery-BKuE7Afe.cjs +13 -0
  145. package/dist/{jstree-CXGKFWK1.cjs → jstree-CtrCtuMv.cjs} +3 -3
  146. package/dist/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.mjs +8 -0
  147. package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.mjs +6 -0
  148. package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.mjs +7 -0
  149. package/dist/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.mjs +7 -0
  150. package/dist/node_modules/@babel/runtime/helpers/esm/classCallCheck.mjs +6 -0
  151. package/dist/node_modules/@babel/runtime/helpers/esm/createClass.mjs +15 -0
  152. package/dist/node_modules/@babel/runtime/helpers/esm/createSuper.mjs +17 -0
  153. package/dist/node_modules/@babel/runtime/helpers/esm/defineProperty.mjs +12 -0
  154. package/dist/node_modules/@babel/runtime/helpers/esm/extends.mjs +12 -0
  155. package/dist/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.mjs +8 -0
  156. package/dist/node_modules/@babel/runtime/helpers/esm/inherits.mjs +16 -0
  157. package/dist/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.mjs +13 -0
  158. package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArray.mjs +6 -0
  159. package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.mjs +24 -0
  160. package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableRest.mjs +7 -0
  161. package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.mjs +7 -0
  162. package/dist/node_modules/@babel/runtime/helpers/esm/objectSpread2.mjs +25 -0
  163. package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.mjs +13 -0
  164. package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.mjs +12 -0
  165. package/dist/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.mjs +10 -0
  166. package/dist/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.mjs +8 -0
  167. package/dist/node_modules/@babel/runtime/helpers/esm/slicedToArray.mjs +10 -0
  168. package/dist/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.mjs +10 -0
  169. package/dist/node_modules/@babel/runtime/helpers/esm/toConsumableArray.mjs +10 -0
  170. package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.mjs +14 -0
  171. package/dist/node_modules/@babel/runtime/helpers/esm/toPropertyKey.mjs +9 -0
  172. package/dist/node_modules/@babel/runtime/helpers/esm/typeof.mjs +11 -0
  173. package/dist/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.mjs +11 -0
  174. package/dist/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.mjs +245 -0
  175. package/dist/node_modules/@emotion/hash/dist/emotion-hash.esm.mjs +22 -0
  176. package/dist/node_modules/@emotion/memoize/dist/emotion-memoize.esm.mjs +9 -0
  177. package/dist/node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.mjs +56 -0
  178. package/dist/node_modules/@emotion/react/dist/emotion-react.browser.esm.mjs +43 -0
  179. package/dist/node_modules/@emotion/serialize/dist/emotion-serialize.esm.mjs +127 -0
  180. package/dist/node_modules/@emotion/sheet/dist/emotion-sheet.esm.mjs +44 -0
  181. package/dist/node_modules/@emotion/unitless/dist/emotion-unitless.esm.mjs +53 -0
  182. package/dist/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.mjs +7 -0
  183. package/dist/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.mjs +34 -0
  184. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +392 -0
  185. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +400 -0
  186. package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.mjs +365 -0
  187. package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.utils.mjs +13 -0
  188. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs +176 -0
  189. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs +136 -0
  190. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs +129 -0
  191. package/dist/node_modules/@headlessui/react/dist/components/description/description.mjs +39 -0
  192. package/dist/node_modules/@headlessui/react/dist/components/keyboard.mjs +4 -0
  193. package/dist/node_modules/@headlessui/react/dist/components/label/label.mjs +61 -0
  194. package/dist/node_modules/@headlessui/react/dist/components/menu/menu-machine-glue.mjs +21 -0
  195. package/dist/node_modules/@headlessui/react/dist/components/menu/menu-machine.mjs +120 -0
  196. package/dist/node_modules/@headlessui/react/dist/components/menu/menu.mjs +205 -0
  197. package/dist/node_modules/@headlessui/react/dist/components/mouse.mjs +4 -0
  198. package/dist/node_modules/@headlessui/react/dist/components/portal/portal.mjs +51 -0
  199. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/adjust-scrollbar-padding.mjs +14 -0
  200. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/handle-ios-locking.mjs +52 -0
  201. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/overflow-store.mjs +38 -0
  202. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/prevent-scroll.mjs +8 -0
  203. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/use-document-overflow.mjs +12 -0
  204. package/dist/node_modules/@headlessui/react/dist/hooks/use-active-press.mjs +33 -0
  205. package/dist/node_modules/@headlessui/react/dist/hooks/use-disposables.mjs +9 -0
  206. package/dist/node_modules/@headlessui/react/dist/hooks/use-document-event.mjs +15 -0
  207. package/dist/node_modules/@headlessui/react/dist/hooks/use-element-size.mjs +26 -0
  208. package/dist/node_modules/@headlessui/react/dist/hooks/use-event.mjs +9 -0
  209. package/dist/node_modules/@headlessui/react/dist/hooks/use-flags.mjs +8 -0
  210. package/dist/node_modules/@headlessui/react/dist/hooks/use-handle-toggle.mjs +15 -0
  211. package/dist/node_modules/@headlessui/react/dist/hooks/use-inert-others.mjs +41 -0
  212. package/dist/node_modules/@headlessui/react/dist/hooks/use-is-top-layer.mjs +13 -0
  213. package/dist/node_modules/@headlessui/react/dist/hooks/use-iso-morphic-effect.mjs +8 -0
  214. package/dist/node_modules/@headlessui/react/dist/hooks/use-latest-value.mjs +11 -0
  215. package/dist/node_modules/@headlessui/react/dist/hooks/use-on-disappear.mjs +28 -0
  216. package/dist/node_modules/@headlessui/react/dist/hooks/use-on-unmount.mjs +14 -0
  217. package/dist/node_modules/@headlessui/react/dist/hooks/use-outside-click.mjs +38 -0
  218. package/dist/node_modules/@headlessui/react/dist/hooks/use-owner.mjs +8 -0
  219. package/dist/node_modules/@headlessui/react/dist/hooks/use-quick-release.mjs +32 -0
  220. package/dist/node_modules/@headlessui/react/dist/hooks/use-resolve-button-type.mjs +12 -0
  221. package/dist/node_modules/@headlessui/react/dist/hooks/use-scroll-lock.mjs +12 -0
  222. package/dist/node_modules/@headlessui/react/dist/hooks/use-slot.mjs +7 -0
  223. package/dist/node_modules/@headlessui/react/dist/hooks/use-store.mjs +7 -0
  224. package/dist/node_modules/@headlessui/react/dist/hooks/use-sync-refs.mjs +20 -0
  225. package/dist/node_modules/@headlessui/react/dist/hooks/use-text-value.mjs +17 -0
  226. package/dist/node_modules/@headlessui/react/dist/hooks/use-tracked-pointer.mjs +16 -0
  227. package/dist/node_modules/@headlessui/react/dist/hooks/use-transition.mjs +73 -0
  228. package/dist/node_modules/@headlessui/react/dist/hooks/use-tree-walker.mjs +18 -0
  229. package/dist/node_modules/@headlessui/react/dist/hooks/use-window-event.mjs +15 -0
  230. package/dist/node_modules/@headlessui/react/dist/internal/disabled.mjs +8 -0
  231. package/dist/node_modules/@headlessui/react/dist/internal/floating.mjs +154 -0
  232. package/dist/node_modules/@headlessui/react/dist/internal/id.mjs +8 -0
  233. package/dist/node_modules/@headlessui/react/dist/internal/open-closed.mjs +15 -0
  234. package/dist/node_modules/@headlessui/react/dist/internal/portal-force-root.mjs +8 -0
  235. package/dist/node_modules/@headlessui/react/dist/machine.mjs +74 -0
  236. package/dist/node_modules/@headlessui/react/dist/machines/stack-machine.mjs +33 -0
  237. package/dist/node_modules/@headlessui/react/dist/react-glue.mjs +12 -0
  238. package/dist/node_modules/@headlessui/react/dist/utils/bugs.mjs +19 -0
  239. package/dist/node_modules/@headlessui/react/dist/utils/calculate-active-index.mjs +40 -0
  240. package/dist/node_modules/@headlessui/react/dist/utils/class-names.mjs +6 -0
  241. package/dist/node_modules/@headlessui/react/dist/utils/default-map.mjs +12 -0
  242. package/dist/node_modules/@headlessui/react/dist/utils/disposables.mjs +40 -0
  243. package/dist/node_modules/@headlessui/react/dist/utils/dom.mjs +46 -0
  244. package/dist/node_modules/@headlessui/react/dist/utils/element-movement.mjs +21 -0
  245. package/dist/node_modules/@headlessui/react/dist/utils/env.mjs +34 -0
  246. package/dist/node_modules/@headlessui/react/dist/utils/focus-management.mjs +97 -0
  247. package/dist/node_modules/@headlessui/react/dist/utils/get-text-value.mjs +31 -0
  248. package/dist/node_modules/@headlessui/react/dist/utils/match.mjs +11 -0
  249. package/dist/node_modules/@headlessui/react/dist/utils/micro-task.mjs +8 -0
  250. package/dist/node_modules/@headlessui/react/dist/utils/owner.mjs +22 -0
  251. package/dist/node_modules/@headlessui/react/dist/utils/platform.mjs +14 -0
  252. package/dist/node_modules/@headlessui/react/dist/utils/render.mjs +126 -0
  253. package/dist/node_modules/@headlessui/react/dist/utils/store.mjs +14 -0
  254. package/dist/node_modules/@kurkle/color/dist/color.esm.mjs +448 -0
  255. package/dist/node_modules/@react-aria/focus/dist/useFocusRing.mjs +34 -0
  256. package/dist/node_modules/@react-aria/interactions/dist/useFocus.mjs +30 -0
  257. package/dist/node_modules/@react-aria/interactions/dist/useFocusVisible.mjs +93 -0
  258. package/dist/node_modules/@react-aria/interactions/dist/useFocusWithin.mjs +57 -0
  259. package/dist/node_modules/@react-aria/interactions/dist/useHover.mjs +86 -0
  260. package/dist/node_modules/@react-aria/interactions/dist/utils.mjs +66 -0
  261. package/dist/node_modules/@react-aria/utils/dist/DOMFunctions.mjs +27 -0
  262. package/dist/node_modules/@react-aria/utils/dist/domHelpers.mjs +15 -0
  263. package/dist/node_modules/@react-aria/utils/dist/focusWithoutScrolling.mjs +45 -0
  264. package/dist/node_modules/@react-aria/utils/dist/isVirtualEvent.mjs +7 -0
  265. package/dist/node_modules/@react-aria/utils/dist/openLink.mjs +28 -0
  266. package/dist/node_modules/@react-aria/utils/dist/platform.mjs +47 -0
  267. package/dist/node_modules/@react-aria/utils/dist/useGlobalListeners.mjs +34 -0
  268. package/dist/node_modules/@react-aria/utils/dist/useLayoutEffect.mjs +6 -0
  269. package/dist/node_modules/@react-stately/flags/dist/import.mjs +7 -0
  270. package/dist/node_modules/@reactflow/background/dist/esm/index.mjs +57 -0
  271. package/dist/node_modules/@reactflow/controls/dist/esm/index.mjs +96 -0
  272. package/dist/node_modules/@reactflow/core/dist/esm/index.mjs +2666 -0
  273. package/dist/node_modules/@reactflow/minimap/dist/esm/index.mjs +122 -0
  274. package/dist/node_modules/@reactflow/node-resizer/dist/esm/index.mjs +130 -0
  275. package/dist/node_modules/@reactflow/node-toolbar/dist/esm/index.mjs +72 -0
  276. package/dist/node_modules/@tanstack/react-table/build/lib/index.mjs +100 -0
  277. package/dist/node_modules/@tanstack/table-core/build/lib/index.mjs +1721 -0
  278. package/dist/node_modules/chart.js/auto/auto.mjs +51 -0
  279. package/dist/node_modules/chart.js/dist/chart.mjs +7174 -0
  280. package/dist/node_modules/chart.js/dist/chunks/helpers.dataset.mjs +1734 -0
  281. package/dist/node_modules/chartjs-chart-geo/build/index.mjs +874 -0
  282. package/dist/node_modules/chartjs-plugin-datalabels/dist/chartjs-plugin-datalabels.esm.mjs +613 -0
  283. package/dist/node_modules/classcat/index.mjs +14 -0
  284. package/dist/node_modules/d3-array/src/fsum.mjs +27 -0
  285. package/dist/node_modules/d3-array/src/merge.mjs +10 -0
  286. package/dist/node_modules/d3-array/src/range.mjs +9 -0
  287. package/dist/node_modules/d3-color/src/color.mjs +305 -0
  288. package/dist/node_modules/d3-color/src/cubehelix.mjs +37 -0
  289. package/dist/node_modules/d3-color/src/define.mjs +12 -0
  290. package/dist/node_modules/d3-color/src/math.mjs +5 -0
  291. package/dist/node_modules/d3-dispatch/src/dispatch.mjs +64 -0
  292. package/dist/node_modules/d3-drag/src/constant.mjs +4 -0
  293. package/dist/node_modules/d3-drag/src/drag.mjs +121 -0
  294. package/dist/node_modules/d3-drag/src/event.mjs +33 -0
  295. package/dist/node_modules/d3-drag/src/nodrag.mjs +16 -0
  296. package/dist/node_modules/d3-drag/src/noevent.mjs +13 -0
  297. package/dist/node_modules/d3-ease/src/cubic.mjs +6 -0
  298. package/dist/node_modules/d3-geo/src/cartesian.mjs +33 -0
  299. package/dist/node_modules/d3-geo/src/circle.mjs +18 -0
  300. package/dist/node_modules/d3-geo/src/clip/antimeridian.mjs +45 -0
  301. package/dist/node_modules/d3-geo/src/clip/buffer.mjs +23 -0
  302. package/dist/node_modules/d3-geo/src/clip/circle.mjs +66 -0
  303. package/dist/node_modules/d3-geo/src/clip/index.mjs +67 -0
  304. package/dist/node_modules/d3-geo/src/clip/line.mjs +43 -0
  305. package/dist/node_modules/d3-geo/src/clip/rectangle.mjs +76 -0
  306. package/dist/node_modules/d3-geo/src/clip/rejoin.mjs +56 -0
  307. package/dist/node_modules/d3-geo/src/compose.mjs +11 -0
  308. package/dist/node_modules/d3-geo/src/contains.mjs +70 -0
  309. package/dist/node_modules/d3-geo/src/distance.mjs +8 -0
  310. package/dist/node_modules/d3-geo/src/graticule.mjs +68 -0
  311. package/dist/node_modules/d3-geo/src/identity.mjs +4 -0
  312. package/dist/node_modules/d3-geo/src/length.mjs +32 -0
  313. package/dist/node_modules/d3-geo/src/math.mjs +33 -0
  314. package/dist/node_modules/d3-geo/src/noop.mjs +5 -0
  315. package/dist/node_modules/d3-geo/src/path/area.mjs +33 -0
  316. package/dist/node_modules/d3-geo/src/path/bounds.mjs +18 -0
  317. package/dist/node_modules/d3-geo/src/path/centroid.mjs +48 -0
  318. package/dist/node_modules/d3-geo/src/path/context.mjs +43 -0
  319. package/dist/node_modules/d3-geo/src/path/index.mjs +41 -0
  320. package/dist/node_modules/d3-geo/src/path/measure.mjs +31 -0
  321. package/dist/node_modules/d3-geo/src/path/string.mjs +69 -0
  322. package/dist/node_modules/d3-geo/src/pointEqual.mjs +7 -0
  323. package/dist/node_modules/d3-geo/src/polygonContains.mjs +27 -0
  324. package/dist/node_modules/d3-geo/src/projection/albers.mjs +7 -0
  325. package/dist/node_modules/d3-geo/src/projection/albersUsa.mjs +65 -0
  326. package/dist/node_modules/d3-geo/src/projection/azimuthal.mjs +23 -0
  327. package/dist/node_modules/d3-geo/src/projection/azimuthalEqualArea.mjs +16 -0
  328. package/dist/node_modules/d3-geo/src/projection/azimuthalEquidistant.mjs +16 -0
  329. package/dist/node_modules/d3-geo/src/projection/conic.mjs +11 -0
  330. package/dist/node_modules/d3-geo/src/projection/conicConformal.mjs +26 -0
  331. package/dist/node_modules/d3-geo/src/projection/conicEqualArea.mjs +23 -0
  332. package/dist/node_modules/d3-geo/src/projection/conicEquidistant.mjs +22 -0
  333. package/dist/node_modules/d3-geo/src/projection/cylindricalEqualArea.mjs +13 -0
  334. package/dist/node_modules/d3-geo/src/projection/equalEarth.mjs +25 -0
  335. package/dist/node_modules/d3-geo/src/projection/equirectangular.mjs +12 -0
  336. package/dist/node_modules/d3-geo/src/projection/fit.mjs +33 -0
  337. package/dist/node_modules/d3-geo/src/projection/gnomonic.mjs +15 -0
  338. package/dist/node_modules/d3-geo/src/projection/index.mjs +104 -0
  339. package/dist/node_modules/d3-geo/src/projection/mercator.mjs +34 -0
  340. package/dist/node_modules/d3-geo/src/projection/naturalEarth1.mjs +27 -0
  341. package/dist/node_modules/d3-geo/src/projection/orthographic.mjs +14 -0
  342. package/dist/node_modules/d3-geo/src/projection/resample.mjs +62 -0
  343. package/dist/node_modules/d3-geo/src/projection/stereographic.mjs +17 -0
  344. package/dist/node_modules/d3-geo/src/projection/transverseMercator.mjs +20 -0
  345. package/dist/node_modules/d3-geo/src/rotation.mjs +48 -0
  346. package/dist/node_modules/d3-geo/src/stream.mjs +52 -0
  347. package/dist/node_modules/d3-geo/src/transform.mjs +33 -0
  348. package/dist/node_modules/d3-interpolate/src/basis.mjs +15 -0
  349. package/dist/node_modules/d3-interpolate/src/color.mjs +29 -0
  350. package/dist/node_modules/d3-interpolate/src/constant.mjs +4 -0
  351. package/dist/node_modules/d3-interpolate/src/cubehelix.mjs +19 -0
  352. package/dist/node_modules/d3-interpolate/src/number.mjs +8 -0
  353. package/dist/node_modules/d3-interpolate/src/rgb.mjs +28 -0
  354. package/dist/node_modules/d3-interpolate/src/string.mjs +24 -0
  355. package/dist/node_modules/d3-interpolate/src/transform/decompose.mjs +23 -0
  356. package/dist/node_modules/d3-interpolate/src/transform/index.mjs +37 -0
  357. package/dist/node_modules/d3-interpolate/src/transform/parse.mjs +13 -0
  358. package/dist/node_modules/d3-interpolate/src/zoom.mjs +42 -0
  359. package/dist/node_modules/d3-scale-chromatic/src/colors.mjs +7 -0
  360. package/dist/node_modules/d3-scale-chromatic/src/diverging/BrBG.mjs +18 -0
  361. package/dist/node_modules/d3-scale-chromatic/src/diverging/PRGn.mjs +18 -0
  362. package/dist/node_modules/d3-scale-chromatic/src/diverging/PiYG.mjs +18 -0
  363. package/dist/node_modules/d3-scale-chromatic/src/diverging/PuOr.mjs +18 -0
  364. package/dist/node_modules/d3-scale-chromatic/src/diverging/RdBu.mjs +18 -0
  365. package/dist/node_modules/d3-scale-chromatic/src/diverging/RdGy.mjs +18 -0
  366. package/dist/node_modules/d3-scale-chromatic/src/diverging/RdYlBu.mjs +18 -0
  367. package/dist/node_modules/d3-scale-chromatic/src/diverging/RdYlGn.mjs +18 -0
  368. package/dist/node_modules/d3-scale-chromatic/src/diverging/Spectral.mjs +18 -0
  369. package/dist/node_modules/d3-scale-chromatic/src/ramp.mjs +5 -0
  370. package/dist/node_modules/d3-scale-chromatic/src/sequential-multi/BuGn.mjs +16 -0
  371. package/dist/node_modules/d3-scale-chromatic/src/sequential-multi/BuPu.mjs +16 -0
  372. package/dist/node_modules/d3-scale-chromatic/src/sequential-multi/GnBu.mjs +16 -0
  373. package/dist/node_modules/d3-scale-chromatic/src/sequential-multi/OrRd.mjs +16 -0
  374. package/dist/node_modules/d3-scale-chromatic/src/sequential-multi/PuBu.mjs +16 -0
  375. package/dist/node_modules/d3-scale-chromatic/src/sequential-multi/PuBuGn.mjs +16 -0
  376. package/dist/node_modules/d3-scale-chromatic/src/sequential-multi/PuRd.mjs +16 -0
  377. package/dist/node_modules/d3-scale-chromatic/src/sequential-multi/RdPu.mjs +16 -0
  378. package/dist/node_modules/d3-scale-chromatic/src/sequential-multi/YlGn.mjs +16 -0
  379. package/dist/node_modules/d3-scale-chromatic/src/sequential-multi/YlGnBu.mjs +16 -0
  380. package/dist/node_modules/d3-scale-chromatic/src/sequential-multi/YlOrBr.mjs +16 -0
  381. package/dist/node_modules/d3-scale-chromatic/src/sequential-multi/YlOrRd.mjs +16 -0
  382. package/dist/node_modules/d3-scale-chromatic/src/sequential-multi/cividis.mjs +6 -0
  383. package/dist/node_modules/d3-scale-chromatic/src/sequential-multi/cubehelix.mjs +6 -0
  384. package/dist/node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.mjs +13 -0
  385. package/dist/node_modules/d3-scale-chromatic/src/sequential-multi/sinebow.mjs +9 -0
  386. package/dist/node_modules/d3-scale-chromatic/src/sequential-multi/turbo.mjs +6 -0
  387. package/dist/node_modules/d3-scale-chromatic/src/sequential-multi/viridis.mjs +15 -0
  388. package/dist/node_modules/d3-scale-chromatic/src/sequential-single/Blues.mjs +16 -0
  389. package/dist/node_modules/d3-scale-chromatic/src/sequential-single/Greens.mjs +16 -0
  390. package/dist/node_modules/d3-scale-chromatic/src/sequential-single/Greys.mjs +16 -0
  391. package/dist/node_modules/d3-scale-chromatic/src/sequential-single/Oranges.mjs +16 -0
  392. package/dist/node_modules/d3-scale-chromatic/src/sequential-single/Purples.mjs +16 -0
  393. package/dist/node_modules/d3-scale-chromatic/src/sequential-single/Reds.mjs +16 -0
  394. package/dist/node_modules/d3-selection/src/array.mjs +6 -0
  395. package/dist/node_modules/d3-selection/src/constant.mjs +8 -0
  396. package/dist/node_modules/d3-selection/src/creator.mjs +20 -0
  397. package/dist/node_modules/d3-selection/src/matcher.mjs +14 -0
  398. package/dist/node_modules/d3-selection/src/namespace.mjs +8 -0
  399. package/dist/node_modules/d3-selection/src/namespaces.mjs +12 -0
  400. package/dist/node_modules/d3-selection/src/pointer.mjs +18 -0
  401. package/dist/node_modules/d3-selection/src/select.mjs +7 -0
  402. package/dist/node_modules/d3-selection/src/selection/append.mjs +10 -0
  403. package/dist/node_modules/d3-selection/src/selection/attr.mjs +44 -0
  404. package/dist/node_modules/d3-selection/src/selection/call.mjs +7 -0
  405. package/dist/node_modules/d3-selection/src/selection/classed.mjs +54 -0
  406. package/dist/node_modules/d3-selection/src/selection/clone.mjs +14 -0
  407. package/dist/node_modules/d3-selection/src/selection/data.mjs +42 -0
  408. package/dist/node_modules/d3-selection/src/selection/datum.mjs +6 -0
  409. package/dist/node_modules/d3-selection/src/selection/dispatch.mjs +21 -0
  410. package/dist/node_modules/d3-selection/src/selection/each.mjs +9 -0
  411. package/dist/node_modules/d3-selection/src/selection/empty.mjs +6 -0
  412. package/dist/node_modules/d3-selection/src/selection/enter.mjs +27 -0
  413. package/dist/node_modules/d3-selection/src/selection/exit.mjs +8 -0
  414. package/dist/node_modules/d3-selection/src/selection/filter.mjs +12 -0
  415. package/dist/node_modules/d3-selection/src/selection/html.mjs +20 -0
  416. package/dist/node_modules/d3-selection/src/selection/index.mjs +87 -0
  417. package/dist/node_modules/d3-selection/src/selection/insert.mjs +14 -0
  418. package/dist/node_modules/d3-selection/src/selection/iterator.mjs +8 -0
  419. package/dist/node_modules/d3-selection/src/selection/join.mjs +7 -0
  420. package/dist/node_modules/d3-selection/src/selection/lower.mjs +9 -0
  421. package/dist/node_modules/d3-selection/src/selection/merge.mjs +12 -0
  422. package/dist/node_modules/d3-selection/src/selection/node.mjs +11 -0
  423. package/dist/node_modules/d3-selection/src/selection/nodes.mjs +6 -0
  424. package/dist/node_modules/d3-selection/src/selection/on.mjs +52 -0
  425. package/dist/node_modules/d3-selection/src/selection/order.mjs +9 -0
  426. package/dist/node_modules/d3-selection/src/selection/property.mjs +22 -0
  427. package/dist/node_modules/d3-selection/src/selection/raise.mjs +9 -0
  428. package/dist/node_modules/d3-selection/src/selection/remove.mjs +10 -0
  429. package/dist/node_modules/d3-selection/src/selection/select.mjs +12 -0
  430. package/dist/node_modules/d3-selection/src/selection/selectAll.mjs +18 -0
  431. package/dist/node_modules/d3-selection/src/selection/selectChild.mjs +16 -0
  432. package/dist/node_modules/d3-selection/src/selection/selectChildren.mjs +16 -0
  433. package/dist/node_modules/d3-selection/src/selection/size.mjs +8 -0
  434. package/dist/node_modules/d3-selection/src/selection/sort.mjs +19 -0
  435. package/dist/node_modules/d3-selection/src/selection/sparse.mjs +6 -0
  436. package/dist/node_modules/d3-selection/src/selection/style.mjs +27 -0
  437. package/dist/node_modules/d3-selection/src/selection/text.mjs +20 -0
  438. package/dist/node_modules/d3-selection/src/selector.mjs +10 -0
  439. package/dist/node_modules/d3-selection/src/selectorAll.mjs +11 -0
  440. package/dist/node_modules/d3-selection/src/sourceEvent.mjs +8 -0
  441. package/dist/node_modules/d3-selection/src/window.mjs +6 -0
  442. package/dist/node_modules/d3-timer/src/timeout.mjs +10 -0
  443. package/dist/node_modules/d3-timer/src/timer.mjs +62 -0
  444. package/dist/node_modules/d3-transition/src/interrupt.mjs +18 -0
  445. package/dist/node_modules/d3-transition/src/selection/index.mjs +5 -0
  446. package/dist/node_modules/d3-transition/src/selection/interrupt.mjs +9 -0
  447. package/dist/node_modules/d3-transition/src/selection/transition.mjs +28 -0
  448. package/dist/node_modules/d3-transition/src/transition/attr.mjs +49 -0
  449. package/dist/node_modules/d3-transition/src/transition/attrTween.mjs +38 -0
  450. package/dist/node_modules/d3-transition/src/transition/delay.mjs +18 -0
  451. package/dist/node_modules/d3-transition/src/transition/duration.mjs +18 -0
  452. package/dist/node_modules/d3-transition/src/transition/ease.mjs +14 -0
  453. package/dist/node_modules/d3-transition/src/transition/easeVarying.mjs +15 -0
  454. package/dist/node_modules/d3-transition/src/transition/end.mjs +16 -0
  455. package/dist/node_modules/d3-transition/src/transition/filter.mjs +12 -0
  456. package/dist/node_modules/d3-transition/src/transition/index.mjs +65 -0
  457. package/dist/node_modules/d3-transition/src/transition/interpolate.mjs +11 -0
  458. package/dist/node_modules/d3-transition/src/transition/merge.mjs +13 -0
  459. package/dist/node_modules/d3-transition/src/transition/on.mjs +21 -0
  460. package/dist/node_modules/d3-transition/src/transition/remove.mjs +13 -0
  461. package/dist/node_modules/d3-transition/src/transition/schedule.mjs +85 -0
  462. package/dist/node_modules/d3-transition/src/transition/select.mjs +14 -0
  463. package/dist/node_modules/d3-transition/src/transition/selectAll.mjs +18 -0
  464. package/dist/node_modules/d3-transition/src/transition/selection.mjs +8 -0
  465. package/dist/node_modules/d3-transition/src/transition/style.mjs +45 -0
  466. package/dist/node_modules/d3-transition/src/transition/styleTween.mjs +23 -0
  467. package/dist/node_modules/d3-transition/src/transition/text.mjs +18 -0
  468. package/dist/node_modules/d3-transition/src/transition/textTween.mjs +23 -0
  469. package/dist/node_modules/d3-transition/src/transition/transition.mjs +19 -0
  470. package/dist/node_modules/d3-transition/src/transition/tween.mjs +56 -0
  471. package/dist/node_modules/d3-zoom/src/constant.mjs +4 -0
  472. package/dist/node_modules/d3-zoom/src/event.mjs +17 -0
  473. package/dist/node_modules/d3-zoom/src/noevent.mjs +10 -0
  474. package/dist/node_modules/d3-zoom/src/transform.mjs +45 -0
  475. package/dist/node_modules/d3-zoom/src/zoom.mjs +233 -0
  476. package/dist/node_modules/dayjs/dayjs.min.mjs +282 -0
  477. package/dist/node_modules/dayjs/plugin/utc.mjs +79 -0
  478. package/dist/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.mjs +17 -0
  479. package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.mjs +95 -0
  480. package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.mjs +78 -0
  481. package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/index.mjs +8 -0
  482. package/dist/node_modules/jquery/dist/jquery.mjs +3642 -0
  483. package/dist/{jstree-ETZgxxT1.js → node_modules/jstree/dist/jstree.mjs} +17 -17
  484. package/dist/node_modules/memoize-one/dist/memoize-one.esm.mjs +36 -0
  485. package/dist/node_modules/papaparse/papaparse.min.mjs +421 -0
  486. package/dist/node_modules/react-chartjs-2/dist/index.mjs +94 -0
  487. package/dist/node_modules/react-icons/ai/index.mjs +20 -0
  488. package/dist/node_modules/react-icons/fa/index.mjs +64 -0
  489. package/dist/node_modules/react-icons/fi/index.mjs +48 -0
  490. package/dist/node_modules/react-icons/go/index.mjs +8 -0
  491. package/dist/node_modules/react-icons/io/index.mjs +8 -0
  492. package/dist/node_modules/react-icons/io5/index.mjs +20 -0
  493. package/dist/node_modules/react-icons/lib/iconBase.mjs +108 -0
  494. package/dist/node_modules/react-icons/lib/iconContext.mjs +12 -0
  495. package/dist/node_modules/react-icons/md/index.mjs +56 -0
  496. package/dist/node_modules/react-select/creatable/dist/react-select-creatable.esm.mjs +17 -0
  497. package/dist/node_modules/react-select/dist/Select-ef7c0426.esm.mjs +1763 -0
  498. package/dist/node_modules/react-select/dist/index-641ee5b8.esm.mjs +867 -0
  499. package/dist/node_modules/react-select/dist/react-select.esm.mjs +19 -0
  500. package/dist/node_modules/react-select/dist/useCreatable-09aaeb9a.esm.mjs +62 -0
  501. package/dist/node_modules/react-select/dist/useStateManager-7e1e8489.esm.mjs +29 -0
  502. package/dist/node_modules/reactflow/dist/esm/index.mjs +77 -0
  503. package/dist/node_modules/stylis/src/Enum.mjs +12 -0
  504. package/dist/node_modules/stylis/src/Middleware.mjs +18 -0
  505. package/dist/node_modules/stylis/src/Parser.mjs +114 -0
  506. package/dist/node_modules/stylis/src/Serializer.mjs +27 -0
  507. package/dist/node_modules/stylis/src/Tokenizer.mjs +131 -0
  508. package/dist/node_modules/stylis/src/Utility.mjs +50 -0
  509. package/dist/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.mjs +5 -0
  510. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.mjs +67 -0
  511. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.mjs +66 -0
  512. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.mjs +67 -0
  513. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.mjs +55 -0
  514. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.mjs +66 -0
  515. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.mjs +65 -0
  516. package/dist/node_modules/use-sync-external-store/shim/index.mjs +10 -0
  517. package/dist/node_modules/use-sync-external-store/shim/with-selector.mjs +10 -0
  518. package/dist/node_modules/use-sync-external-store/with-selector.mjs +8 -0
  519. package/dist/node_modules/zustand/esm/shallow.mjs +30 -0
  520. package/dist/node_modules/zustand/esm/traditional.mjs +22 -0
  521. package/dist/node_modules/zustand/esm/vanilla.mjs +18 -0
  522. package/dist/types/table.mjs +14 -0
  523. package/dist/utils/classNames.mjs +26 -0
  524. package/dist/utils/dbSchemaBrowserUtils.mjs +86 -0
  525. package/dist/utils/fileBrowserUtils.mjs +66 -0
  526. package/dist/utils/formatBytes.mjs +8 -0
  527. package/dist/utils/memoUtils.mjs +29 -0
  528. package/dist/utils/riskScore.mjs +42 -0
  529. package/dist/utils/statusConfig.mjs +72 -0
  530. package/package.json +5 -1
  531. package/dist/index--e0eFmJz.js +0 -28717
  532. package/dist/index-Bsibz5yn.js +0 -5204
  533. package/dist/jquery-B5k82Ft4.js +0 -3622
  534. package/dist/jquery-DJhgA209.cjs +0 -13
  535. package/dist/jquery-DXFsjw95.js +0 -26
  536. package/dist/jquery-DeHtnyTt.cjs +0 -1
@@ -0,0 +1,8 @@
1
+ import { useContext as e, createContext as t } from "react";
2
+ let o = t(void 0);
3
+ function n() {
4
+ return e(o);
5
+ }
6
+ export {
7
+ n as useDisabled
8
+ };
@@ -0,0 +1,154 @@
1
+ import { useFloating as _, inner as ee, useInnerOffset as te, useInteractions as ne } from "../../../../@floating-ui/react/dist/floating-ui.react.mjs";
2
+ import * as q from "react";
3
+ import { useMemo as P, useContext as w, createContext as U, useCallback as le, useState as $, useRef as re } from "react";
4
+ import { useDisposables as oe } from "../hooks/use-disposables.mjs";
5
+ import { useEvent as z } from "../hooks/use-event.mjs";
6
+ import { useIsoMorphicEffect as H } from "../hooks/use-iso-morphic-effect.mjs";
7
+ import { isHTMLElement as ie } from "../utils/dom.mjs";
8
+ import { offset as ae, shift as se, flip as ue, size as fe } from "../../../../@floating-ui/react-dom/dist/floating-ui.react-dom.mjs";
9
+ import { autoUpdate as pe } from "../../../../@floating-ui/dom/dist/floating-ui.dom.mjs";
10
+ let y = U({ styles: void 0, setReference: () => {
11
+ }, setFloating: () => {
12
+ }, getReferenceProps: () => ({}), getFloatingProps: () => ({}), slot: {} });
13
+ y.displayName = "FloatingContext";
14
+ let I = U(null);
15
+ I.displayName = "PlacementContext";
16
+ function Pe(e) {
17
+ return P(() => e ? typeof e == "string" ? { to: e } : e : null, [e]);
18
+ }
19
+ function we() {
20
+ return w(y).setReference;
21
+ }
22
+ function Re() {
23
+ return w(y).getReferenceProps;
24
+ }
25
+ function Ce() {
26
+ let { getFloatingProps: e, slot: t } = w(y);
27
+ return le((...n) => Object.assign({}, e(...n), { "data-anchor": t.anchor }), [e, t]);
28
+ }
29
+ function Me(e = null) {
30
+ e === !1 && (e = null), typeof e == "string" && (e = { to: e });
31
+ let t = w(I), n = P(() => e, [JSON.stringify(e, (r, i) => {
32
+ var u;
33
+ return (u = i == null ? void 0 : i.outerHTML) != null ? u : i;
34
+ })]);
35
+ H(() => {
36
+ t == null || t(n ?? null);
37
+ }, [t, n]);
38
+ let l = w(y);
39
+ return P(() => [l.setFloating, e ? l.styles : {}], [l.setFloating, e, l.styles]);
40
+ }
41
+ let D = 4;
42
+ function $e({ children: e, enabled: t = !0 }) {
43
+ let [n, l] = $(null), [r, i] = $(0), u = re(null), [p, a] = $(null);
44
+ ce(p);
45
+ let o = t && n !== null && p !== null, { to: F = "bottom", gap: S = 0, offset: R = 0, padding: c = 0, inner: d } = ge(n, p), [s, f = "center"] = F.split(" ");
46
+ H(() => {
47
+ o && i(0);
48
+ }, [o]);
49
+ let { refs: x, floatingStyles: E, context: g } = _({ open: o, placement: s === "selection" ? f === "center" ? "bottom" : `bottom-${f}` : f === "center" ? `${s}` : `${s}-${f}`, strategy: "absolute", transform: !1, middleware: [ae({ mainAxis: s === "selection" ? 0 : S, crossAxis: R }), se({ padding: c }), s !== "selection" && ue({ padding: c }), s === "selection" && d ? ee({ ...d, padding: c, overflowRef: u, offset: r, minItemsVisible: D, referenceOverflowThreshold: c, onFallbackChange(h) {
50
+ var C, M;
51
+ if (!h) return;
52
+ let b = g.elements.floating;
53
+ if (!b) return;
54
+ let B = parseFloat(getComputedStyle(b).scrollPaddingBottom) || 0, O = Math.min(D, b.childElementCount), V = 0, j = 0;
55
+ for (let m of (M = (C = g.elements.floating) == null ? void 0 : C.childNodes) != null ? M : []) if (ie(m)) {
56
+ let v = m.offsetTop, L = v + m.clientHeight + B, A = b.scrollTop, W = A + b.clientHeight;
57
+ if (v >= A && L <= W) O--;
58
+ else {
59
+ j = Math.max(0, Math.min(L, W) - Math.max(v, A)), V = m.clientHeight;
60
+ break;
61
+ }
62
+ }
63
+ O >= 1 && i((m) => {
64
+ let v = V * O - j + B;
65
+ return m >= v ? m : v;
66
+ });
67
+ } }) : null, fe({ padding: c, apply({ availableWidth: h, availableHeight: C, elements: M }) {
68
+ Object.assign(M.floating.style, { overflow: "auto", maxWidth: `${h}px`, maxHeight: `min(var(--anchor-max-height, 100vh), ${C}px)` });
69
+ } })].filter(Boolean), whileElementsMounted: pe }), [N = s, k = f] = g.placement.split("-");
70
+ s === "selection" && (N = "selection");
71
+ let K = P(() => ({ anchor: [N, k].filter(Boolean).join(" ") }), [N, k]), Q = te(g, { overflowRef: u, onChange: i }), { getReferenceProps: X, getFloatingProps: Y } = ne([Q]), Z = z((h) => {
72
+ a(h), x.setFloating(h);
73
+ });
74
+ return q.createElement(I.Provider, { value: l }, q.createElement(y.Provider, { value: { setFloating: Z, setReference: x.setReference, styles: E, getReferenceProps: X, getFloatingProps: Y, slot: K } }, e));
75
+ }
76
+ function ce(e) {
77
+ H(() => {
78
+ if (!e) return;
79
+ let t = new MutationObserver(() => {
80
+ let n = window.getComputedStyle(e).maxHeight, l = parseFloat(n);
81
+ if (isNaN(l)) return;
82
+ let r = parseInt(n);
83
+ isNaN(r) || l !== r && (e.style.maxHeight = `${Math.ceil(l)}px`);
84
+ });
85
+ return t.observe(e, { attributes: !0, attributeFilter: ["style"] }), () => {
86
+ t.disconnect();
87
+ };
88
+ }, [e]);
89
+ }
90
+ function ge(e, t) {
91
+ var n, l, r;
92
+ let i = T((n = e == null ? void 0 : e.gap) != null ? n : "var(--anchor-gap, 0)", t), u = T((l = e == null ? void 0 : e.offset) != null ? l : "var(--anchor-offset, 0)", t), p = T((r = e == null ? void 0 : e.padding) != null ? r : "var(--anchor-padding, 0)", t);
93
+ return { ...e, gap: i, offset: u, padding: p };
94
+ }
95
+ function T(e, t, n = void 0) {
96
+ let l = oe(), r = z((a, o) => {
97
+ if (a == null) return [n, null];
98
+ if (typeof a == "number") return [a, null];
99
+ if (typeof a == "string") {
100
+ if (!o) return [n, null];
101
+ let F = J(a, o);
102
+ return [F, (S) => {
103
+ let R = G(a);
104
+ {
105
+ let c = R.map((d) => window.getComputedStyle(o).getPropertyValue(d));
106
+ l.requestAnimationFrame(function d() {
107
+ l.nextFrame(d);
108
+ let s = !1;
109
+ for (let [x, E] of R.entries()) {
110
+ let g = window.getComputedStyle(o).getPropertyValue(E);
111
+ if (c[x] !== g) {
112
+ c[x] = g, s = !0;
113
+ break;
114
+ }
115
+ }
116
+ if (!s) return;
117
+ let f = J(a, o);
118
+ F !== f && (S(f), F = f);
119
+ });
120
+ }
121
+ return l.dispose;
122
+ }];
123
+ }
124
+ return [n, null];
125
+ }), i = P(() => r(e, t)[0], [e, t]), [u = i, p] = $();
126
+ return H(() => {
127
+ let [a, o] = r(e, t);
128
+ if (p(a), !!o) return o(p);
129
+ }, [e, t]), u;
130
+ }
131
+ function G(e) {
132
+ let t = /var\((.*)\)/.exec(e);
133
+ if (t) {
134
+ let n = t[1].indexOf(",");
135
+ if (n === -1) return [t[1]];
136
+ let l = t[1].slice(0, n).trim(), r = t[1].slice(n + 1).trim();
137
+ return r ? [l, ...G(r)] : [l];
138
+ }
139
+ return [];
140
+ }
141
+ function J(e, t) {
142
+ let n = document.createElement("div");
143
+ t.appendChild(n), n.style.setProperty("margin-top", "0px", "important"), n.style.setProperty("margin-top", e, "important");
144
+ let l = parseFloat(window.getComputedStyle(n).marginTop) || 0;
145
+ return t.removeChild(n), l;
146
+ }
147
+ export {
148
+ $e as FloatingProvider,
149
+ Me as useFloatingPanel,
150
+ Ce as useFloatingPanelProps,
151
+ we as useFloatingReference,
152
+ Re as useFloatingReferenceProps,
153
+ Pe as useResolvedAnchor
154
+ };
@@ -0,0 +1,8 @@
1
+ import { useContext as e, createContext as t } from "react";
2
+ let o = t(void 0);
3
+ function n() {
4
+ return e(o);
5
+ }
6
+ export {
7
+ n as useProvidedId
8
+ };
@@ -0,0 +1,15 @@
1
+ import o, { useContext as l, createContext as r } from "react";
2
+ let n = r(null);
3
+ n.displayName = "OpenClosedContext";
4
+ var a = ((e) => (e[e.Open = 1] = "Open", e[e.Closed = 2] = "Closed", e[e.Closing = 4] = "Closing", e[e.Opening = 8] = "Opening", e))(a || {});
5
+ function i() {
6
+ return l(n);
7
+ }
8
+ function u({ value: e, children: t }) {
9
+ return o.createElement(n.Provider, { value: e }, t);
10
+ }
11
+ export {
12
+ u as OpenClosedProvider,
13
+ a as State,
14
+ i as useOpenClosed
15
+ };
@@ -0,0 +1,8 @@
1
+ import { useContext as t, createContext as e } from "react";
2
+ let o = e(!1);
3
+ function a() {
4
+ return t(o);
5
+ }
6
+ export {
7
+ a as usePortalRoot
8
+ };
@@ -0,0 +1,74 @@
1
+ import { DefaultMap as m } from "./utils/default-map.mjs";
2
+ import { disposables as p } from "./utils/disposables.mjs";
3
+ import { env as c } from "./utils/env.mjs";
4
+ var y = Object.defineProperty, v = (t, e, s) => e in t ? y(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s, S = (t, e, s) => (v(t, e + "", s), s), b = (t, e, s) => {
5
+ if (!e.has(t)) throw TypeError("Cannot " + s);
6
+ }, i = (t, e, s) => (b(t, e, "read from private field"), s ? s.call(t) : e.get(t)), f = (t, e, s) => {
7
+ if (e.has(t)) throw TypeError("Cannot add the same private member more than once");
8
+ e instanceof WeakSet ? e.add(t) : e.set(t, s);
9
+ }, h = (t, e, s, r) => (b(t, e, "write to private field"), e.set(t, s), s), a, n, l;
10
+ class k {
11
+ constructor(e) {
12
+ f(this, a, {}), f(this, n, new m(() => /* @__PURE__ */ new Set())), f(this, l, /* @__PURE__ */ new Set()), S(this, "disposables", p()), h(this, a, e), c.isServer && this.disposables.microTask(() => {
13
+ this.dispose();
14
+ });
15
+ }
16
+ dispose() {
17
+ this.disposables.dispose();
18
+ }
19
+ get state() {
20
+ return i(this, a);
21
+ }
22
+ subscribe(e, s) {
23
+ if (c.isServer) return () => {
24
+ };
25
+ let r = { selector: e, callback: s, current: e(i(this, a)) };
26
+ return i(this, l).add(r), this.disposables.add(() => {
27
+ i(this, l).delete(r);
28
+ });
29
+ }
30
+ on(e, s) {
31
+ return c.isServer ? () => {
32
+ } : (i(this, n).get(e).add(s), this.disposables.add(() => {
33
+ i(this, n).get(e).delete(s);
34
+ }));
35
+ }
36
+ send(e) {
37
+ let s = this.reduce(i(this, a), e);
38
+ if (s !== i(this, a)) {
39
+ h(this, a, s);
40
+ for (let r of i(this, l)) {
41
+ let o = r.selector(i(this, a));
42
+ j(r.current, o) || (r.current = o, r.callback(o));
43
+ }
44
+ for (let r of i(this, n).get(e.type)) r(i(this, a), e);
45
+ }
46
+ }
47
+ }
48
+ a = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new WeakMap(), l = /* @__PURE__ */ new WeakMap();
49
+ function j(t, e) {
50
+ return Object.is(t, e) ? !0 : typeof t != "object" || t === null || typeof e != "object" || e === null ? !1 : Array.isArray(t) && Array.isArray(e) ? t.length !== e.length ? !1 : u(t[Symbol.iterator](), e[Symbol.iterator]()) : t instanceof Map && e instanceof Map || t instanceof Set && e instanceof Set ? t.size !== e.size ? !1 : u(t.entries(), e.entries()) : d(t) && d(e) ? u(Object.entries(t)[Symbol.iterator](), Object.entries(e)[Symbol.iterator]()) : !1;
51
+ }
52
+ function u(t, e) {
53
+ do {
54
+ let s = t.next(), r = e.next();
55
+ if (s.done && r.done) return !0;
56
+ if (s.done || r.done || !Object.is(s.value, r.value)) return !1;
57
+ } while (!0);
58
+ }
59
+ function d(t) {
60
+ if (Object.prototype.toString.call(t) !== "[object Object]") return !1;
61
+ let e = Object.getPrototypeOf(t);
62
+ return e === null || Object.getPrototypeOf(e) === null;
63
+ }
64
+ function M(t) {
65
+ let [e, s] = t(), r = p();
66
+ return (...o) => {
67
+ e(...o), r.dispose(), r.microTask(s);
68
+ };
69
+ }
70
+ export {
71
+ k as Machine,
72
+ M as batch,
73
+ j as shallowEqual
74
+ };
@@ -0,0 +1,33 @@
1
+ import { Machine as u } from "../machine.mjs";
2
+ import { DefaultMap as p } from "../utils/default-map.mjs";
3
+ import { match as o } from "../utils/match.mjs";
4
+ var l = Object.defineProperty, k = (t, s, e) => s in t ? l(t, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[s] = e, n = (t, s, e) => (k(t, typeof s != "symbol" ? s + "" : s, e), e), d = ((t) => (t[t.Push = 0] = "Push", t[t.Pop = 1] = "Pop", t))(d || {});
5
+ let h = { 0(t, s) {
6
+ let e = s.id, a = t.stack, r = t.stack.indexOf(e);
7
+ if (r !== -1) {
8
+ let i = t.stack.slice();
9
+ return i.splice(r, 1), i.push(e), a = i, { ...t, stack: a };
10
+ }
11
+ return { ...t, stack: [...t.stack, e] };
12
+ }, 1(t, s) {
13
+ let e = s.id, a = t.stack.indexOf(e);
14
+ if (a === -1) return t;
15
+ let r = t.stack.slice();
16
+ return r.splice(a, 1), { ...t, stack: r };
17
+ } };
18
+ class c extends u {
19
+ constructor() {
20
+ super(...arguments), n(this, "actions", { push: (s) => this.send({ type: 0, id: s }), pop: (s) => this.send({ type: 1, id: s }) }), n(this, "selectors", { isTop: (s, e) => s.stack[s.stack.length - 1] === e, inStack: (s, e) => s.stack.includes(e) });
21
+ }
22
+ static new() {
23
+ return new c({ stack: [] });
24
+ }
25
+ reduce(s, e) {
26
+ return o(e.type, h, s, e);
27
+ }
28
+ }
29
+ const b = new p(() => c.new());
30
+ export {
31
+ d as ActionTypes,
32
+ b as stackMachines
33
+ };
@@ -0,0 +1,12 @@
1
+ import { w as a } from "../../../use-sync-external-store/with-selector.mjs";
2
+ import { useEvent as r } from "./hooks/use-event.mjs";
3
+ import { shallowEqual as i } from "./machine.mjs";
4
+ function m(t, e, o = i) {
5
+ return a.useSyncExternalStoreWithSelector(r((s) => t.subscribe(n, s)), r(() => t.state), r(() => t.state), r(e), o);
6
+ }
7
+ function n(t) {
8
+ return t;
9
+ }
10
+ export {
11
+ m as useSlice
12
+ };
@@ -0,0 +1,19 @@
1
+ import { isHTMLFieldSetElement as r, isHTMLLegendElement as i } from "./dom.mjs";
2
+ function a(t) {
3
+ let e = t.parentElement, l = null;
4
+ for (; e && !r(e); ) i(e) && (l = e), e = e.parentElement;
5
+ let n = (e == null ? void 0 : e.getAttribute("disabled")) === "";
6
+ return n && s(l) ? !1 : n;
7
+ }
8
+ function s(t) {
9
+ if (!t) return !1;
10
+ let e = t.previousElementSibling;
11
+ for (; e !== null; ) {
12
+ if (i(e)) return !1;
13
+ e = e.previousElementSibling;
14
+ }
15
+ return !0;
16
+ }
17
+ export {
18
+ a as isDisabledReactIssue7711
19
+ };
@@ -0,0 +1,40 @@
1
+ function o(r) {
2
+ throw new Error("Unexpected object: " + r);
3
+ }
4
+ var u = ((r) => (r[r.First = 0] = "First", r[r.Previous = 1] = "Previous", r[r.Next = 2] = "Next", r[r.Last = 3] = "Last", r[r.Specific = 4] = "Specific", r[r.Nothing = 5] = "Nothing", r))(u || {});
5
+ function c(r, l) {
6
+ let t = l.resolveItems();
7
+ if (t.length <= 0) return null;
8
+ let s = l.resolveActiveIndex(), n = s ?? -1;
9
+ switch (r.focus) {
10
+ case 0: {
11
+ for (let e = 0; e < t.length; ++e) if (!l.resolveDisabled(t[e], e, t)) return e;
12
+ return s;
13
+ }
14
+ case 1: {
15
+ n === -1 && (n = t.length);
16
+ for (let e = n - 1; e >= 0; --e) if (!l.resolveDisabled(t[e], e, t)) return e;
17
+ return s;
18
+ }
19
+ case 2: {
20
+ for (let e = n + 1; e < t.length; ++e) if (!l.resolveDisabled(t[e], e, t)) return e;
21
+ return s;
22
+ }
23
+ case 3: {
24
+ for (let e = t.length - 1; e >= 0; --e) if (!l.resolveDisabled(t[e], e, t)) return e;
25
+ return s;
26
+ }
27
+ case 4: {
28
+ for (let e = 0; e < t.length; ++e) if (l.resolveId(t[e], e, t) === r.id) return e;
29
+ return s;
30
+ }
31
+ case 5:
32
+ return null;
33
+ default:
34
+ o(r);
35
+ }
36
+ }
37
+ export {
38
+ u as Focus,
39
+ c as calculateActiveIndex
40
+ };
@@ -0,0 +1,6 @@
1
+ function r(...e) {
2
+ return Array.from(new Set(e.flatMap((t) => typeof t == "string" ? t.split(" ") : []))).filter(Boolean).join(" ");
3
+ }
4
+ export {
5
+ r as classNames
6
+ };
@@ -0,0 +1,12 @@
1
+ class r extends Map {
2
+ constructor(t) {
3
+ super(), this.factory = t;
4
+ }
5
+ get(t) {
6
+ let e = super.get(t);
7
+ return e === void 0 && (e = this.factory(t), this.set(t, e)), e;
8
+ }
9
+ }
10
+ export {
11
+ r as DefaultMap
12
+ };
@@ -0,0 +1,40 @@
1
+ import { microTask as a } from "./micro-task.mjs";
2
+ function o() {
3
+ let s = [], r = { addEventListener(e, t, n, i) {
4
+ return e.addEventListener(t, n, i), r.add(() => e.removeEventListener(t, n, i));
5
+ }, requestAnimationFrame(...e) {
6
+ let t = requestAnimationFrame(...e);
7
+ return r.add(() => cancelAnimationFrame(t));
8
+ }, nextFrame(...e) {
9
+ return r.requestAnimationFrame(() => r.requestAnimationFrame(...e));
10
+ }, setTimeout(...e) {
11
+ let t = setTimeout(...e);
12
+ return r.add(() => clearTimeout(t));
13
+ }, microTask(...e) {
14
+ let t = { current: !0 };
15
+ return a(() => {
16
+ t.current && e[0]();
17
+ }), r.add(() => {
18
+ t.current = !1;
19
+ });
20
+ }, style(e, t, n) {
21
+ let i = e.style.getPropertyValue(t);
22
+ return Object.assign(e.style, { [t]: n }), this.add(() => {
23
+ Object.assign(e.style, { [t]: i });
24
+ });
25
+ }, group(e) {
26
+ let t = o();
27
+ return e(t), this.add(() => t.dispose());
28
+ }, add(e) {
29
+ return s.includes(e) || s.push(e), () => {
30
+ let t = s.indexOf(e);
31
+ if (t >= 0) for (let n of s.splice(t, 1)) n();
32
+ };
33
+ }, dispose() {
34
+ for (let e of s.splice(0)) e();
35
+ } };
36
+ return r;
37
+ }
38
+ export {
39
+ o as disposables
40
+ };
@@ -0,0 +1,46 @@
1
+ function i(n) {
2
+ return typeof n != "object" || n === null ? !1 : "nodeType" in n;
3
+ }
4
+ function t(n) {
5
+ return i(n) && "tagName" in n;
6
+ }
7
+ function e(n) {
8
+ return t(n) && "accessKey" in n;
9
+ }
10
+ function a(n) {
11
+ return t(n) && "tabIndex" in n;
12
+ }
13
+ function s(n) {
14
+ return t(n) && "style" in n;
15
+ }
16
+ function r(n) {
17
+ return e(n) && n.nodeName === "IFRAME";
18
+ }
19
+ function o(n) {
20
+ return e(n) && n.nodeName === "INPUT";
21
+ }
22
+ function u(n) {
23
+ return e(n) && n.nodeName === "LABEL";
24
+ }
25
+ function l(n) {
26
+ return e(n) && n.nodeName === "FIELDSET";
27
+ }
28
+ function m(n) {
29
+ return e(n) && n.nodeName === "LEGEND";
30
+ }
31
+ function c(n) {
32
+ return t(n) ? n.matches('a[href],audio[controls],button,details,embed,iframe,img[usemap],input:not([type="hidden"]),label,select,textarea,video[controls]') : !1;
33
+ }
34
+ export {
35
+ s as hasInlineStyle,
36
+ t as isElement,
37
+ e as isHTMLElement,
38
+ l as isHTMLFieldSetElement,
39
+ r as isHTMLIframeElement,
40
+ o as isHTMLInputElement,
41
+ u as isHTMLLabelElement,
42
+ m as isHTMLLegendElement,
43
+ a as isHTMLorSVGElement,
44
+ c as isInteractiveElement,
45
+ i as isNode
46
+ };
@@ -0,0 +1,21 @@
1
+ import { disposables as r } from "./disposables.mjs";
2
+ const l = { Idle: { kind: "Idle" }, Tracked: (e) => ({ kind: "Tracked", position: e }), Moved: { kind: "Moved" } };
3
+ function a(e) {
4
+ let n = e.getBoundingClientRect();
5
+ return `${n.x},${n.y}`;
6
+ }
7
+ function p(e, n, s) {
8
+ let t = r();
9
+ if (n.kind === "Tracked") {
10
+ let i = function() {
11
+ d !== a(e) && (t.dispose(), s());
12
+ }, { position: d } = n, o = new ResizeObserver(i);
13
+ o.observe(e), t.add(() => o.disconnect()), t.addEventListener(window, "scroll", i, { passive: !0 }), t.addEventListener(window, "resize", i);
14
+ }
15
+ return () => t.dispose();
16
+ }
17
+ export {
18
+ l as ElementPositionState,
19
+ a as computeVisualPosition,
20
+ p as detectMovement
21
+ };
@@ -0,0 +1,34 @@
1
+ var i = Object.defineProperty, s = (t, e, r) => e in t ? i(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, n = (t, e, r) => (s(t, typeof e != "symbol" ? e + "" : e, r), r);
2
+ class d {
3
+ constructor() {
4
+ n(this, "current", this.detect()), n(this, "handoffState", "pending"), n(this, "currentId", 0);
5
+ }
6
+ set(e) {
7
+ this.current !== e && (this.handoffState = "pending", this.currentId = 0, this.current = e);
8
+ }
9
+ reset() {
10
+ this.set(this.detect());
11
+ }
12
+ nextId() {
13
+ return ++this.currentId;
14
+ }
15
+ get isServer() {
16
+ return this.current === "server";
17
+ }
18
+ get isClient() {
19
+ return this.current === "client";
20
+ }
21
+ detect() {
22
+ return typeof window > "u" || typeof document > "u" ? "server" : "client";
23
+ }
24
+ handoff() {
25
+ this.handoffState === "pending" && (this.handoffState = "complete");
26
+ }
27
+ get isHandoffComplete() {
28
+ return this.handoffState === "complete";
29
+ }
30
+ }
31
+ let u = new d();
32
+ export {
33
+ u as env
34
+ };
@@ -0,0 +1,97 @@
1
+ import { disposables as y } from "./disposables.mjs";
2
+ import { isHTMLorSVGElement as A } from "./dom.mjs";
3
+ import { match as h } from "./match.mjs";
4
+ import { getRootNode as m, getOwnerDocument as x, getActiveElement as E } from "./owner.mjs";
5
+ let f = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "details>summary", "textarea:not([disabled])"].map((e) => `${e}:not([tabindex='-1'])`).join(","), p = ["[data-autofocus]"].map((e) => `${e}:not([tabindex='-1'])`).join(",");
6
+ var S = ((e) => (e[e.First = 1] = "First", e[e.Previous = 2] = "Previous", e[e.Next = 4] = "Next", e[e.Last = 8] = "Last", e[e.WrapAround = 16] = "WrapAround", e[e.NoScroll = 32] = "NoScroll", e[e.AutoFocus = 64] = "AutoFocus", e))(S || {}), I = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(I || {}), M = ((e) => (e[e.Previous = -1] = "Previous", e[e.Next = 1] = "Next", e))(M || {});
7
+ function b(e = document.body) {
8
+ return e == null ? [] : Array.from(e.querySelectorAll(f)).sort((t, r) => Math.sign((t.tabIndex || Number.MAX_SAFE_INTEGER) - (r.tabIndex || Number.MAX_SAFE_INTEGER)));
9
+ }
10
+ function g(e = document.body) {
11
+ return e == null ? [] : Array.from(e.querySelectorAll(p)).sort((t, r) => Math.sign((t.tabIndex || Number.MAX_SAFE_INTEGER) - (r.tabIndex || Number.MAX_SAFE_INTEGER)));
12
+ }
13
+ var w = ((e) => (e[e.Strict = 0] = "Strict", e[e.Loose = 1] = "Loose", e))(w || {});
14
+ function O(e, t = 0) {
15
+ var r;
16
+ return e === ((r = x(e)) == null ? void 0 : r.body) ? !1 : h(t, { 0() {
17
+ return e.matches(f);
18
+ }, 1() {
19
+ let o = e;
20
+ for (; o !== null; ) {
21
+ if (o.matches(f)) return !0;
22
+ o = o.parentElement;
23
+ }
24
+ return !1;
25
+ } });
26
+ }
27
+ function X(e) {
28
+ y().nextFrame(() => {
29
+ let t = E(e);
30
+ t && A(t) && !O(t, 0) && T(e);
31
+ });
32
+ }
33
+ var _ = ((e) => (e[e.Keyboard = 0] = "Keyboard", e[e.Mouse = 1] = "Mouse", e))(_ || {});
34
+ typeof window < "u" && typeof document < "u" && (document.addEventListener("keydown", (e) => {
35
+ e.metaKey || e.altKey || e.ctrlKey || (document.documentElement.dataset.headlessuiFocusVisible = "");
36
+ }, !0), document.addEventListener("click", (e) => {
37
+ e.detail === 1 ? delete document.documentElement.dataset.headlessuiFocusVisible : e.detail === 0 && (document.documentElement.dataset.headlessuiFocusVisible = "");
38
+ }, !0));
39
+ function T(e) {
40
+ e == null || e.focus({ preventScroll: !0 });
41
+ }
42
+ let L = ["textarea", "input"].join(",");
43
+ function P(e) {
44
+ var t, r;
45
+ return (r = (t = e == null ? void 0 : e.matches) == null ? void 0 : t.call(e, L)) != null ? r : !1;
46
+ }
47
+ function G(e, t = (r) => r) {
48
+ return e.slice().sort((r, o) => {
49
+ let l = t(r), a = t(o);
50
+ if (l === null || a === null) return 0;
51
+ let n = l.compareDocumentPosition(a);
52
+ return n & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : n & Node.DOCUMENT_POSITION_PRECEDING ? 1 : 0;
53
+ });
54
+ }
55
+ function j(e, t, r = e === null ? document.body : m(e)) {
56
+ return R(b(r), t, { relativeTo: e });
57
+ }
58
+ function R(e, t, { sorted: r = !0, relativeTo: o = null, skipElements: l = [] } = {}) {
59
+ let a = Array.isArray(e) ? e.length > 0 ? m(e[0]) : document : m(e), n = Array.isArray(e) ? r ? G(e) : e : t & 64 ? g(e) : b(e);
60
+ l.length > 0 && n.length > 1 && (n = n.filter((u) => !l.some((c) => c != null && "current" in c ? (c == null ? void 0 : c.current) === u : c === u))), o = o ?? (a == null ? void 0 : a.activeElement);
61
+ let F = (() => {
62
+ if (t & 5) return 1;
63
+ if (t & 10) return -1;
64
+ throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last");
65
+ })(), N = (() => {
66
+ if (t & 1) return 0;
67
+ if (t & 2) return Math.max(0, n.indexOf(o)) - 1;
68
+ if (t & 4) return Math.max(0, n.indexOf(o)) + 1;
69
+ if (t & 8) return n.length - 1;
70
+ throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last");
71
+ })(), v = t & 32 ? { preventScroll: !0 } : {}, d = 0, i = n.length, s;
72
+ do {
73
+ if (d >= i || d + i <= 0) return 0;
74
+ let u = N + d;
75
+ if (t & 16) u = (u + i) % i;
76
+ else {
77
+ if (u < 0) return 3;
78
+ if (u >= i) return 1;
79
+ }
80
+ s = n[u], s == null || s.focus(v), d += F;
81
+ } while (s !== E(s));
82
+ return t & 6 && P(s) && s.select(), 2;
83
+ }
84
+ export {
85
+ S as Focus,
86
+ I as FocusResult,
87
+ w as FocusableMode,
88
+ T as focusElement,
89
+ j as focusFrom,
90
+ R as focusIn,
91
+ f as focusableSelector,
92
+ g as getAutoFocusableElements,
93
+ b as getFocusableElements,
94
+ O as isFocusableElement,
95
+ X as restoreFocusIfNecessary,
96
+ G as sortByDomNode
97
+ };