zudoku 0.21.15 → 0.23.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 (357) hide show
  1. package/dist/app/demo.js +1 -1
  2. package/dist/app/demo.js.map +1 -1
  3. package/dist/app/entry.client.js +1 -15
  4. package/dist/app/entry.client.js.map +1 -1
  5. package/dist/app/entry.server.js +1 -2
  6. package/dist/app/entry.server.js.map +1 -1
  7. package/dist/app/main.d.ts +1 -1
  8. package/dist/app/sentry.js +1 -1
  9. package/dist/app/sentry.js.map +1 -1
  10. package/dist/app/standalone.js +1 -1
  11. package/dist/app/standalone.js.map +1 -1
  12. package/dist/cli/cmds/build.js +1 -0
  13. package/dist/cli/cmds/build.js.map +1 -1
  14. package/dist/config/validators/common.d.ts +104 -104
  15. package/dist/config/validators/icon-types.d.ts +1 -1
  16. package/dist/config/validators/validate.d.ts +90 -90
  17. package/dist/lib/authentication/components/CallbackHandler.js +1 -1
  18. package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
  19. package/dist/lib/authentication/components/SignIn.js +1 -1
  20. package/dist/lib/authentication/components/SignIn.js.map +1 -1
  21. package/dist/lib/authentication/components/SignOut.js +1 -1
  22. package/dist/lib/authentication/components/SignOut.js.map +1 -1
  23. package/dist/lib/components/AnchorLink.d.ts +1 -1
  24. package/dist/lib/components/AnchorLink.js +1 -1
  25. package/dist/lib/components/AnchorLink.js.map +1 -1
  26. package/dist/lib/components/Bootstrap.d.ts +1 -2
  27. package/dist/lib/components/Bootstrap.js +3 -3
  28. package/dist/lib/components/Bootstrap.js.map +1 -1
  29. package/dist/lib/components/Header.js +1 -1
  30. package/dist/lib/components/Header.js.map +1 -1
  31. package/dist/lib/components/Layout.js +1 -1
  32. package/dist/lib/components/Layout.js.map +1 -1
  33. package/dist/lib/components/Markdown.js +1 -1
  34. package/dist/lib/components/Markdown.js.map +1 -1
  35. package/dist/lib/components/NotFoundPage.js +1 -1
  36. package/dist/lib/components/NotFoundPage.js.map +1 -1
  37. package/dist/lib/components/ReactMarkdown.d.ts +29 -0
  38. package/dist/lib/components/ReactMarkdown.js +182 -0
  39. package/dist/lib/components/ReactMarkdown.js.map +1 -0
  40. package/dist/lib/components/SlotletProvider.d.ts +2 -2
  41. package/dist/lib/components/TopNavigation.js +1 -1
  42. package/dist/lib/components/TopNavigation.js.map +1 -1
  43. package/dist/lib/components/Zudoku.js +1 -1
  44. package/dist/lib/components/Zudoku.js.map +1 -1
  45. package/dist/lib/components/context/ZudokuContext.js +1 -1
  46. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  47. package/dist/lib/components/index.d.ts +4 -4
  48. package/dist/lib/components/index.js +1 -1
  49. package/dist/lib/components/index.js.map +1 -1
  50. package/dist/lib/components/navigation/SidebarCategory.js +1 -1
  51. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
  52. package/dist/lib/components/navigation/SidebarItem.js +1 -1
  53. package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
  54. package/dist/lib/components/navigation/utils.js +1 -1
  55. package/dist/lib/components/navigation/utils.js.map +1 -1
  56. package/dist/lib/core/plugins.d.ts +3 -5
  57. package/dist/lib/core/plugins.js.map +1 -1
  58. package/dist/lib/errors/RouterError.js +1 -1
  59. package/dist/lib/errors/RouterError.js.map +1 -1
  60. package/dist/lib/plugins/api-keys/CreateApiKey.js +1 -1
  61. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
  62. package/dist/lib/plugins/api-keys/ProtectedRoute.js +1 -1
  63. package/dist/lib/plugins/api-keys/ProtectedRoute.js.map +1 -1
  64. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +1 -1
  65. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  66. package/dist/lib/plugins/markdown/MdxPage.js +1 -1
  67. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  68. package/dist/lib/plugins/markdown/index.d.ts +1 -0
  69. package/dist/lib/plugins/markdown/index.js.map +1 -1
  70. package/dist/lib/plugins/openapi/Route.js +1 -1
  71. package/dist/lib/plugins/openapi/Route.js.map +1 -1
  72. package/dist/lib/plugins/openapi/Sidecar.js +1 -1
  73. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  74. package/dist/lib/plugins/openapi/index.js +1 -1
  75. package/dist/lib/plugins/openapi/index.js.map +1 -1
  76. package/dist/lib/plugins/redirect/index.js +1 -1
  77. package/dist/lib/plugins/redirect/index.js.map +1 -1
  78. package/dist/lib/plugins/search-inkeep/index.d.ts +22 -3
  79. package/dist/lib/plugins/search-inkeep/index.js +27 -5
  80. package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
  81. package/dist/lib/plugins/search-inkeep/inkeep.d.ts +3 -4
  82. package/dist/lib/plugins/search-inkeep/inkeep.js.map +1 -1
  83. package/dist/lib/util/MdxComponents.d.ts +16 -16
  84. package/dist/lib/util/MdxComponents.js +1 -3
  85. package/dist/lib/util/MdxComponents.js.map +1 -1
  86. package/dist/lib/util/createVariantComponent.d.ts +2 -2
  87. package/dist/lib/util/useExposedProps.js +1 -1
  88. package/dist/lib/util/useExposedProps.js.map +1 -1
  89. package/dist/lib/util/useOnScreen.d.ts +1 -1
  90. package/dist/lib/util/useScrollToAnchor.js +1 -1
  91. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  92. package/dist/lib/util/useScrollToTop.js +1 -1
  93. package/dist/lib/util/useScrollToTop.js.map +1 -1
  94. package/dist/vite/config.js +15 -8
  95. package/dist/vite/config.js.map +1 -1
  96. package/dist/vite/css/collect.d.ts +2 -0
  97. package/dist/vite/css/collect.js +27 -0
  98. package/dist/vite/css/collect.js.map +1 -0
  99. package/dist/vite/css/plugin.d.ts +5 -0
  100. package/dist/vite/css/plugin.js +79 -0
  101. package/dist/vite/css/plugin.js.map +1 -0
  102. package/dist/vite/dev-server.js +7 -3
  103. package/dist/vite/dev-server.js.map +1 -1
  104. package/dist/vite/plugin-mdx.js +2 -0
  105. package/dist/vite/plugin-mdx.js.map +1 -1
  106. package/dist/vite/plugin.js +4 -0
  107. package/dist/vite/plugin.js.map +1 -1
  108. package/lib/{AnchorLink-BR0MvI7n.js → AnchorLink-DFZZbmvr.js} +13 -14
  109. package/lib/AnchorLink-DFZZbmvr.js.map +1 -0
  110. package/lib/{AuthenticationPlugin-D0Em0SwR.js → AuthenticationPlugin-DQy635W9.js} +15 -16
  111. package/lib/AuthenticationPlugin-DQy635W9.js.map +1 -0
  112. package/lib/{Button-jK0EsymC.js → Button-DeAoTouo.js} +4 -4
  113. package/lib/{Button-jK0EsymC.js.map → Button-DeAoTouo.js.map} +1 -1
  114. package/lib/{CategoryHeading-Bb9dqxD3.js → CategoryHeading-CBconmtI.js} +3 -3
  115. package/lib/{CategoryHeading-Bb9dqxD3.js.map → CategoryHeading-CBconmtI.js.map} +1 -1
  116. package/lib/ClientOnly-E7hGysn1.js.map +1 -1
  117. package/lib/{Dialog-k70Qfukb.js → Dialog-Bxv1yEIg.js} +3 -3
  118. package/lib/{Dialog-k70Qfukb.js.map → Dialog-Bxv1yEIg.js.map} +1 -1
  119. package/lib/{Markdown-CdkU5HcM.js → Markdown-CZDLNOFc.js} +13235 -13225
  120. package/lib/Markdown-CZDLNOFc.js.map +1 -0
  121. package/lib/{MdxPage-ChziqNPp.js → MdxPage-CBa4X6L5.js} +9 -9
  122. package/lib/MdxPage-CBa4X6L5.js.map +1 -0
  123. package/lib/OperationList-Bj-6EKhp.js +4889 -0
  124. package/lib/{OperationList-CQKkyrZH.js.map → OperationList-Bj-6EKhp.js.map} +1 -1
  125. package/lib/Route-C9cYcP-j.js +11 -0
  126. package/lib/Route-C9cYcP-j.js.map +1 -0
  127. package/lib/{Select-O9ZM3ZgX.js → Select-Bb_Hqc70.js} +5 -5
  128. package/lib/{Select-O9ZM3ZgX.js.map → Select-Bb_Hqc70.js.map} +1 -1
  129. package/lib/{SidebarBadge-DxFJcJ6V.js → SidebarBadge-Bm793GDY.js} +3 -3
  130. package/lib/{SidebarBadge-DxFJcJ6V.js.map → SidebarBadge-Bm793GDY.js.map} +1 -1
  131. package/lib/SlotletProvider-pfc9oejW.js +221 -0
  132. package/lib/SlotletProvider-pfc9oejW.js.map +1 -0
  133. package/lib/{Spinner-3cQDBVGr.js → Spinner-DuxJLLNE.js} +2 -2
  134. package/lib/{Spinner-3cQDBVGr.js.map → Spinner-DuxJLLNE.js.map} +1 -1
  135. package/lib/{SyntaxHighlight-C31iouiO.js → SyntaxHighlight-Bz-lOJtH.js} +8 -10
  136. package/lib/{SyntaxHighlight-C31iouiO.js.map → SyntaxHighlight-Bz-lOJtH.js.map} +1 -1
  137. package/lib/assets/{index-B_Jk_Yzp.js → index-C7jnHK4b.js} +218 -197
  138. package/lib/assets/index-C7jnHK4b.js.map +1 -0
  139. package/lib/assets/{worker-C_2va8B8.js → worker-BmEAZjUP.js} +5249 -4922
  140. package/lib/assets/worker-BmEAZjUP.js.map +1 -0
  141. package/lib/chunk-D52XG6IA-Dl7HLe6j.js +1823 -0
  142. package/lib/chunk-D52XG6IA-Dl7HLe6j.js.map +1 -0
  143. package/lib/{cn-BmFQLtkS.js → cn-qaFjX9_3.js} +2 -2
  144. package/lib/cn-qaFjX9_3.js.map +1 -0
  145. package/lib/{context-D1nXWxm7.js → context-h_UkBLvr.js} +2 -2
  146. package/lib/{context-D1nXWxm7.js.map → context-h_UkBLvr.js.map} +1 -1
  147. package/lib/{createServer-BCAHdrpE.js → createServer-BVFp6Bl3.js} +4521 -4195
  148. package/lib/createServer-BVFp6Bl3.js.map +1 -0
  149. package/lib/{hook-hEqe7fPB.js → hook-DMHiUaIV.js} +3 -3
  150. package/lib/{hook-hEqe7fPB.js.map → hook-DMHiUaIV.js.map} +1 -1
  151. package/lib/{index-DjB6H4GT.js → index-B6rTMjdI.js} +47 -47
  152. package/lib/{index-DjB6H4GT.js.map → index-B6rTMjdI.js.map} +1 -1
  153. package/lib/{index-CkwDvuPt.js → index-CBXSgjaE.js} +259 -238
  154. package/lib/index-CBXSgjaE.js.map +1 -0
  155. package/lib/index-CPNSgwSb.js +36 -0
  156. package/lib/index-CPNSgwSb.js.map +1 -0
  157. package/lib/index-LNp6rxyU.js.map +1 -1
  158. package/lib/index.esm-BSV1C092.js +692 -0
  159. package/lib/{index.esm-Bm8pj-bc.js.map → index.esm-BSV1C092.js.map} +1 -1
  160. package/lib/index.esm-BnnBRKJX.js +1214 -0
  161. package/lib/index.esm-BnnBRKJX.js.map +1 -0
  162. package/lib/invariant-Caa8-XvF.js.map +1 -1
  163. package/lib/jsx-runtime-Dx-03ztt.js +446 -0
  164. package/lib/jsx-runtime-Dx-03ztt.js.map +1 -0
  165. package/lib/object_hash-BNWPnMN9.js +787 -0
  166. package/lib/object_hash-BNWPnMN9.js.map +1 -0
  167. package/lib/post-processors/removeExtensions.js.map +1 -1
  168. package/lib/post-processors/removePaths.js.map +1 -1
  169. package/lib/post-processors/traverse.js.map +1 -1
  170. package/lib/prism-csharp.min-DUwvItt4.js +63 -0
  171. package/lib/{prism-csharp.min-Yizuc34Y.js.map → prism-csharp.min-DUwvItt4.js.map} +1 -1
  172. package/lib/prism-java.min-BtgBR4yd.js +35 -0
  173. package/lib/{prism-java.min-d5iT_mOd.js.map → prism-java.min-BtgBR4yd.js.map} +1 -1
  174. package/lib/prism-markup-BNGj0Tvm.js.map +1 -1
  175. package/lib/prism-ruby.min-DeDXCp1r.js +38 -0
  176. package/lib/{prism-ruby.min-C7LwcKyz.js.map → prism-ruby.min-DeDXCp1r.js.map} +1 -1
  177. package/lib/prism-typescript.min-CD7H2IYQ.js +34 -0
  178. package/lib/{prism-typescript.min-oSVeWCAd.js.map → prism-typescript.min-CD7H2IYQ.js.map} +1 -1
  179. package/lib/state-CFQsUZUP.js +202 -0
  180. package/lib/state-CFQsUZUP.js.map +1 -0
  181. package/lib/ui/Accordion.js +2 -2
  182. package/lib/ui/Accordion.js.map +1 -1
  183. package/lib/ui/ActionButton.js +4 -4
  184. package/lib/ui/ActionButton.js.map +1 -1
  185. package/lib/ui/Alert.js +3 -3
  186. package/lib/ui/Alert.js.map +1 -1
  187. package/lib/ui/AlertDialog.js +2 -2
  188. package/lib/ui/AlertDialog.js.map +1 -1
  189. package/lib/ui/Badge.js +3 -3
  190. package/lib/ui/Badge.js.map +1 -1
  191. package/lib/ui/Breadcrumb.js +2 -2
  192. package/lib/ui/Breadcrumb.js.map +1 -1
  193. package/lib/ui/Button.js +3 -3
  194. package/lib/ui/Button.js.map +1 -1
  195. package/lib/ui/Callout.js +2 -2
  196. package/lib/ui/Callout.js.map +1 -1
  197. package/lib/ui/Card.js +2 -2
  198. package/lib/ui/Card.js.map +1 -1
  199. package/lib/ui/Carousel.js +407 -401
  200. package/lib/ui/Carousel.js.map +1 -1
  201. package/lib/ui/Checkbox.js +2 -2
  202. package/lib/ui/Checkbox.js.map +1 -1
  203. package/lib/ui/Command.js +111 -108
  204. package/lib/ui/Command.js.map +1 -1
  205. package/lib/ui/Dialog.js +2 -2
  206. package/lib/ui/Dialog.js.map +1 -1
  207. package/lib/ui/Drawer.js +2 -2
  208. package/lib/ui/Drawer.js.map +1 -1
  209. package/lib/ui/DropdownMenu.js +2 -2
  210. package/lib/ui/DropdownMenu.js.map +1 -1
  211. package/lib/ui/Form.js +3 -3
  212. package/lib/ui/Form.js.map +1 -1
  213. package/lib/ui/HoverCard.js +2 -2
  214. package/lib/ui/Input.js +2 -2
  215. package/lib/ui/Input.js.map +1 -1
  216. package/lib/ui/Label.js +3 -3
  217. package/lib/ui/Pagination.js +2 -2
  218. package/lib/ui/Pagination.js.map +1 -1
  219. package/lib/ui/Popover.js +2 -2
  220. package/lib/ui/Popover.js.map +1 -1
  221. package/lib/ui/Progress.js +2 -2
  222. package/lib/ui/Progress.js.map +1 -1
  223. package/lib/ui/RadioGroup.js +2 -2
  224. package/lib/ui/RadioGroup.js.map +1 -1
  225. package/lib/ui/ScrollArea.js +2 -2
  226. package/lib/ui/ScrollArea.js.map +1 -1
  227. package/lib/ui/Select.js +2 -2
  228. package/lib/ui/Select.js.map +1 -1
  229. package/lib/ui/Skeleton.js +2 -2
  230. package/lib/ui/Skeleton.js.map +1 -1
  231. package/lib/ui/Slider.js +2 -2
  232. package/lib/ui/Switch.js +2 -2
  233. package/lib/ui/Switch.js.map +1 -1
  234. package/lib/ui/Tabs.js +2 -2
  235. package/lib/ui/Textarea.js +2 -2
  236. package/lib/ui/Textarea.js.map +1 -1
  237. package/lib/ui/Toggle.js +3 -3
  238. package/lib/ui/Toggle.js.map +1 -1
  239. package/lib/ui/ToggleGroup.js +2 -2
  240. package/lib/ui/ToggleGroup.js.map +1 -1
  241. package/lib/ui/Tooltip.js +2 -2
  242. package/lib/useExposedProps-DE9lR6MF.js +9 -0
  243. package/lib/useExposedProps-DE9lR6MF.js.map +1 -0
  244. package/lib/{utils-DcpDOncX.js → utils-R0j3Raw1.js} +30 -31
  245. package/lib/{utils-DcpDOncX.js.map → utils-R0j3Raw1.js.map} +1 -1
  246. package/lib/zudoku.auth-auth0.js +1 -1
  247. package/lib/zudoku.auth-auth0.js.map +1 -1
  248. package/lib/zudoku.auth-clerk.js +2 -2
  249. package/lib/zudoku.auth-clerk.js.map +1 -1
  250. package/lib/zudoku.auth-openid.js +348 -346
  251. package/lib/zudoku.auth-openid.js.map +1 -1
  252. package/lib/zudoku.components.js +679 -939
  253. package/lib/zudoku.components.js.map +1 -1
  254. package/lib/zudoku.openapi-worker.js +1 -1
  255. package/lib/zudoku.openapi-worker.js.map +1 -1
  256. package/lib/zudoku.plugin-api-catalog.js +3 -3
  257. package/lib/zudoku.plugin-api-catalog.js.map +1 -1
  258. package/lib/zudoku.plugin-api-keys.js +15 -16
  259. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  260. package/lib/zudoku.plugin-custom-pages.js +4 -4
  261. package/lib/zudoku.plugin-custom-pages.js.map +1 -1
  262. package/lib/zudoku.plugin-markdown.js +2 -2
  263. package/lib/zudoku.plugin-markdown.js.map +1 -1
  264. package/lib/zudoku.plugin-openapi.js +5 -5
  265. package/lib/zudoku.plugin-redirect.js +1 -1
  266. package/lib/zudoku.plugin-redirect.js.map +1 -1
  267. package/lib/zudoku.plugin-search-inkeep.js +45 -24
  268. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  269. package/package.json +43 -37
  270. package/src/app/demo.tsx +1 -1
  271. package/src/app/entry.client.tsx +1 -15
  272. package/src/app/entry.server.tsx +2 -2
  273. package/src/app/main.tsx +1 -1
  274. package/src/app/sentry.ts +1 -1
  275. package/src/app/standalone.tsx +1 -1
  276. package/src/lib/authentication/components/CallbackHandler.tsx +1 -1
  277. package/src/lib/authentication/components/SignIn.tsx +1 -1
  278. package/src/lib/authentication/components/SignOut.tsx +1 -1
  279. package/src/lib/components/AnchorLink.tsx +1 -1
  280. package/src/lib/components/Bootstrap.tsx +4 -6
  281. package/src/lib/components/Header.tsx +1 -1
  282. package/src/lib/components/Layout.tsx +1 -1
  283. package/src/lib/components/Markdown.tsx +1 -1
  284. package/src/lib/components/NotFoundPage.tsx +1 -1
  285. package/src/lib/components/ReactMarkdown.license.txt +21 -0
  286. package/src/lib/components/ReactMarkdown.tsx +264 -0
  287. package/src/lib/components/SlotletProvider.tsx +1 -1
  288. package/src/lib/components/TopNavigation.tsx +1 -1
  289. package/src/lib/components/Zudoku.tsx +1 -1
  290. package/src/lib/components/context/ZudokuContext.ts +1 -1
  291. package/src/lib/components/index.ts +1 -1
  292. package/src/lib/components/navigation/SidebarCategory.tsx +1 -1
  293. package/src/lib/components/navigation/SidebarItem.tsx +1 -1
  294. package/src/lib/components/navigation/utils.ts +1 -1
  295. package/src/lib/core/plugins.ts +3 -7
  296. package/src/lib/errors/RouterError.tsx +1 -1
  297. package/src/lib/plugins/api-keys/CreateApiKey.tsx +1 -1
  298. package/src/lib/plugins/api-keys/ProtectedRoute.tsx +1 -1
  299. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +1 -1
  300. package/src/lib/plugins/api-keys/index.tsx +1 -1
  301. package/src/lib/plugins/custom-pages/index.tsx +1 -1
  302. package/src/lib/plugins/markdown/MdxPage.tsx +1 -1
  303. package/src/lib/plugins/markdown/index.tsx +2 -1
  304. package/src/lib/plugins/openapi/Route.tsx +1 -1
  305. package/src/lib/plugins/openapi/Sidecar.tsx +1 -1
  306. package/src/lib/plugins/openapi/index.tsx +1 -1
  307. package/src/lib/plugins/redirect/index.tsx +1 -1
  308. package/src/lib/plugins/search-inkeep/index.tsx +59 -23
  309. package/src/lib/plugins/search-inkeep/inkeep.ts +3 -9
  310. package/src/lib/util/MdxComponents.tsx +1 -3
  311. package/src/lib/util/createVariantComponent.tsx +2 -2
  312. package/src/lib/util/useExposedProps.tsx +1 -1
  313. package/src/lib/util/useScrollToAnchor.ts +1 -1
  314. package/src/lib/util/useScrollToTop.ts +1 -1
  315. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.d.ts +0 -2
  316. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js +0 -3
  317. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js.map +0 -1
  318. package/lib/AnchorLink-BR0MvI7n.js.map +0 -1
  319. package/lib/AuthenticationPlugin-D0Em0SwR.js.map +0 -1
  320. package/lib/InkeepCustomTrigger-CE5-K5ex.js +0 -6
  321. package/lib/InkeepCustomTrigger-CE5-K5ex.js.map +0 -1
  322. package/lib/Markdown-CdkU5HcM.js.map +0 -1
  323. package/lib/MdxPage-ChziqNPp.js.map +0 -1
  324. package/lib/OperationList-CQKkyrZH.js +0 -4706
  325. package/lib/Route-DlG_HTMu.js +0 -11
  326. package/lib/Route-DlG_HTMu.js.map +0 -1
  327. package/lib/SlotletProvider-D77pO-fA.js +0 -252
  328. package/lib/SlotletProvider-D77pO-fA.js.map +0 -1
  329. package/lib/assets/index-B_Jk_Yzp.js.map +0 -1
  330. package/lib/assets/worker-C_2va8B8.js.map +0 -1
  331. package/lib/cn-BmFQLtkS.js.map +0 -1
  332. package/lib/createServer-BCAHdrpE.js.map +0 -1
  333. package/lib/index-BuAyrJe3.js +0 -46
  334. package/lib/index-BuAyrJe3.js.map +0 -1
  335. package/lib/index-CkwDvuPt.js.map +0 -1
  336. package/lib/index-Czzd9rjU.js +0 -899
  337. package/lib/index-Czzd9rjU.js.map +0 -1
  338. package/lib/index-Yn8c3UWE.js +0 -921
  339. package/lib/index-Yn8c3UWE.js.map +0 -1
  340. package/lib/index.esm-Bm8pj-bc.js +0 -675
  341. package/lib/index.esm-C5mr_sKO.js +0 -1193
  342. package/lib/index.esm-C5mr_sKO.js.map +0 -1
  343. package/lib/jsx-runtime-B6kdoens.js +0 -635
  344. package/lib/jsx-runtime-B6kdoens.js.map +0 -1
  345. package/lib/object_hash-CvlLgU-M.js +0 -785
  346. package/lib/object_hash-CvlLgU-M.js.map +0 -1
  347. package/lib/prism-csharp.min-Yizuc34Y.js +0 -35
  348. package/lib/prism-java.min-d5iT_mOd.js +0 -7
  349. package/lib/prism-ruby.min-C7LwcKyz.js +0 -10
  350. package/lib/prism-typescript.min-oSVeWCAd.js +0 -6
  351. package/lib/router-lfyopgBI.js +0 -3024
  352. package/lib/router-lfyopgBI.js.map +0 -1
  353. package/lib/state-tsXBLONe.js +0 -203
  354. package/lib/state-tsXBLONe.js.map +0 -1
  355. package/lib/useExposedProps-CTPtylCV.js +0 -10
  356. package/lib/useExposedProps-CTPtylCV.js.map +0 -1
  357. package/src/lib/plugins/search-inkeep/InkeepCustomTrigger.tsx +0 -3
@@ -1,39 +1,39 @@
1
- import { j as R } from "../jsx-runtime-B6kdoens.js";
2
- import * as F from "react";
3
- import { useRef as qt, useState as $t, useCallback as an, useEffect as Nt } from "react";
4
- import { ArrowLeft as ln, ArrowRight as fn } from "lucide-react";
5
- import { c as gt } from "../cn-BmFQLtkS.js";
6
- import { Button as Xt } from "./Button.js";
7
- function dn(t) {
1
+ import { j as R } from "../jsx-runtime-Dx-03ztt.js";
2
+ import * as j from "react";
3
+ import { useRef as Ht, useState as qt, useCallback as ln, useEffect as It } from "react";
4
+ import { ArrowLeft as fn, ArrowRight as dn } from "lucide-react";
5
+ import { c as gt } from "../cn-qaFjX9_3.js";
6
+ import { Button as Jt } from "./Button.js";
7
+ function pn(t) {
8
8
  return Object.prototype.toString.call(t) === "[object Object]";
9
9
  }
10
- function Kt(t) {
11
- return dn(t) || Array.isArray(t);
10
+ function $t(t) {
11
+ return pn(t) || Array.isArray(t);
12
12
  }
13
- function pn() {
13
+ function mn() {
14
14
  return !!(typeof window < "u" && window.document && window.document.createElement);
15
15
  }
16
- function Dt(t, n) {
16
+ function At(t, n) {
17
17
  const o = Object.keys(t), r = Object.keys(n);
18
18
  if (o.length !== r.length) return !1;
19
19
  const i = JSON.stringify(Object.keys(t.breakpoints || {})), s = JSON.stringify(Object.keys(n.breakpoints || {}));
20
20
  return i !== s ? !1 : o.every((e) => {
21
21
  const a = t[e], u = n[e];
22
- return typeof a == "function" ? `${a}` == `${u}` : !Kt(a) || !Kt(u) ? a === u : Dt(a, u);
22
+ return typeof a == "function" ? `${a}` == `${u}` : !$t(a) || !$t(u) ? a === u : At(a, u);
23
23
  });
24
24
  }
25
- function Ut(t) {
25
+ function Kt(t) {
26
26
  return t.concat().sort((n, o) => n.name > o.name ? 1 : -1).map((n) => n.options);
27
27
  }
28
- function mn(t, n) {
28
+ function gn(t, n) {
29
29
  if (t.length !== n.length) return !1;
30
- const o = Ut(t), r = Ut(n);
30
+ const o = Kt(t), r = Kt(n);
31
31
  return o.every((i, s) => {
32
32
  const e = r[s];
33
- return Dt(i, e);
33
+ return At(i, e);
34
34
  });
35
35
  }
36
- function Pt(t) {
36
+ function Dt(t) {
37
37
  return typeof t == "number";
38
38
  }
39
39
  function Tt(t) {
@@ -42,23 +42,26 @@ function Tt(t) {
42
42
  function xt(t) {
43
43
  return typeof t == "boolean";
44
44
  }
45
- function Qt(t) {
45
+ function Ut(t) {
46
46
  return Object.prototype.toString.call(t) === "[object Object]";
47
47
  }
48
48
  function D(t) {
49
49
  return Math.abs(t);
50
50
  }
51
- function Ot(t) {
51
+ function Pt(t) {
52
52
  return Math.sign(t);
53
53
  }
54
54
  function ft(t, n) {
55
55
  return D(t - n);
56
56
  }
57
- function gn(t, n) {
57
+ function hn(t, n) {
58
58
  if (t === 0 || n === 0 || D(t) <= D(n)) return 0;
59
59
  const o = ft(D(t), D(n));
60
60
  return D(o / t);
61
61
  }
62
+ function yn(t) {
63
+ return Math.round(t * 100) / 100;
64
+ }
62
65
  function dt(t) {
63
66
  return pt(t).map(Number);
64
67
  }
@@ -68,25 +71,25 @@ function V(t) {
68
71
  function ht(t) {
69
72
  return Math.max(0, t.length - 1);
70
73
  }
71
- function Mt(t, n) {
74
+ function Ot(t, n) {
72
75
  return n === ht(t);
73
76
  }
74
- function Jt(t, n = 0) {
77
+ function Qt(t, n = 0) {
75
78
  return Array.from(Array(t), (o, r) => n + r);
76
79
  }
77
80
  function pt(t) {
78
81
  return Object.keys(t);
79
82
  }
80
- function Yt(t, n) {
83
+ function Xt(t, n) {
81
84
  return [t, n].reduce((o, r) => (pt(r).forEach((i) => {
82
- const s = o[i], e = r[i], a = Qt(s) && Qt(e);
83
- o[i] = a ? Yt(s, e) : e;
85
+ const s = o[i], e = r[i], a = Ut(s) && Ut(e);
86
+ o[i] = a ? Xt(s, e) : e;
84
87
  }), o), {});
85
88
  }
86
- function At(t, n) {
89
+ function Nt(t, n) {
87
90
  return typeof n.MouseEvent < "u" && t instanceof n.MouseEvent;
88
91
  }
89
- function hn(t, n) {
92
+ function Sn(t, n) {
90
93
  const o = {
91
94
  start: r,
92
95
  center: i,
@@ -131,7 +134,7 @@ function mt() {
131
134
  };
132
135
  return r;
133
136
  }
134
- function yn(t, n, o, r) {
137
+ function xn(t, n, o, r) {
135
138
  const i = mt(), s = 1e3 / 60;
136
139
  let e = null, a = 0, u = 0;
137
140
  function c() {
@@ -147,11 +150,11 @@ function yn(t, n, o, r) {
147
150
  e || (e = h);
148
151
  const f = h - e;
149
152
  for (e = h, a += f; a >= s; )
150
- o(s), a -= s;
151
- const m = a / s;
152
- r(m), u && n.requestAnimationFrame(d);
153
+ o(), a -= s;
154
+ const g = a / s;
155
+ r(g), u && (u = n.requestAnimationFrame(d));
153
156
  }
154
- function g() {
157
+ function p() {
155
158
  u || (u = n.requestAnimationFrame(d));
156
159
  }
157
160
  function x() {
@@ -163,20 +166,20 @@ function yn(t, n, o, r) {
163
166
  return {
164
167
  init: c,
165
168
  destroy: y,
166
- start: g,
169
+ start: p,
167
170
  stop: x,
168
- update: () => o(s),
171
+ update: o,
169
172
  render: r
170
173
  };
171
174
  }
172
- function Sn(t, n) {
175
+ function bn(t, n) {
173
176
  const o = n === "rtl", r = t === "y", i = r ? "y" : "x", s = r ? "x" : "y", e = !r && o ? -1 : 1, a = y(), u = d();
174
177
  function c(l) {
175
178
  const {
176
- height: p,
179
+ height: m,
177
180
  width: h
178
181
  } = l;
179
- return r ? p : h;
182
+ return r ? m : h;
180
183
  }
181
184
  function y() {
182
185
  return r ? "top" : o ? "right" : "left";
@@ -184,7 +187,7 @@ function Sn(t, n) {
184
187
  function d() {
185
188
  return r ? "bottom" : o ? "left" : "right";
186
189
  }
187
- function g(l) {
190
+ function p(l) {
188
191
  return l * e;
189
192
  }
190
193
  return {
@@ -193,10 +196,10 @@ function Sn(t, n) {
193
196
  startEdge: a,
194
197
  endEdge: u,
195
198
  measureSize: c,
196
- direction: g
199
+ direction: p
197
200
  };
198
201
  }
199
- function ot(t = 0, n = 0) {
202
+ function et(t = 0, n = 0) {
200
203
  const o = D(t - n);
201
204
  function r(c) {
202
205
  return c < t;
@@ -224,25 +227,25 @@ function ot(t = 0, n = 0) {
224
227
  removeOffset: a
225
228
  };
226
229
  }
227
- function _t(t, n, o) {
230
+ function Yt(t, n, o) {
228
231
  const {
229
232
  constrain: r
230
- } = ot(0, t), i = t + 1;
233
+ } = et(0, t), i = t + 1;
231
234
  let s = e(n);
232
- function e(g) {
233
- return o ? D((i + g) % i) : r(g);
235
+ function e(p) {
236
+ return o ? D((i + p) % i) : r(p);
234
237
  }
235
238
  function a() {
236
239
  return s;
237
240
  }
238
- function u(g) {
239
- return s = e(g), d;
241
+ function u(p) {
242
+ return s = e(p), d;
240
243
  }
241
- function c(g) {
242
- return y().set(a() + g);
244
+ function c(p) {
245
+ return y().set(a() + p);
243
246
  }
244
247
  function y() {
245
- return _t(t, a(), o);
248
+ return Yt(t, a(), o);
246
249
  }
247
250
  const d = {
248
251
  get: a,
@@ -252,69 +255,69 @@ function _t(t, n, o) {
252
255
  };
253
256
  return d;
254
257
  }
255
- function xn(t, n, o, r, i, s, e, a, u, c, y, d, g, x, l, p, h, f, m) {
258
+ function En(t, n, o, r, i, s, e, a, u, c, y, d, p, x, l, m, h, f, g) {
256
259
  const {
257
260
  cross: b,
258
- direction: w
259
- } = t, T = ["INPUT", "SELECT", "TEXTAREA"], I = {
261
+ direction: L
262
+ } = t, N = ["INPUT", "SELECT", "TEXTAREA"], C = {
260
263
  passive: !1
261
- }, E = mt(), v = mt(), L = ot(50, 225).constrain(x.measure(20)), P = {
264
+ }, E = mt(), v = mt(), w = et(50, 225).constrain(x.measure(20)), P = {
262
265
  mouse: 300,
263
266
  touch: 400
264
- }, C = {
267
+ }, I = {
265
268
  mouse: 500,
266
269
  touch: 600
267
- }, j = l ? 43 : 25;
268
- let G = !1, H = 0, q = 0, nt = !1, _ = !1, U = !1, Q = !1;
270
+ }, F = l ? 43 : 25;
271
+ let G = !1, H = 0, q = 0, W = !1, _ = !1, U = !1, Q = !1;
269
272
  function it(S) {
270
- if (!m) return;
271
- function N(k) {
272
- (xt(m) || m(S, k)) && ut(k);
273
+ if (!g) return;
274
+ function T(k) {
275
+ (xt(g) || g(S, k)) && ut(k);
273
276
  }
274
277
  const O = n;
275
- E.add(O, "dragstart", (k) => k.preventDefault(), I).add(O, "touchmove", () => {
276
- }, I).add(O, "touchend", () => {
277
- }).add(O, "touchstart", N).add(O, "mousedown", N).add(O, "touchcancel", M).add(O, "contextmenu", M).add(O, "click", X, !0);
278
+ E.add(O, "dragstart", (k) => k.preventDefault(), C).add(O, "touchmove", () => {
279
+ }, C).add(O, "touchend", () => {
280
+ }).add(O, "touchstart", T).add(O, "mousedown", T).add(O, "touchcancel", M).add(O, "contextmenu", M).add(O, "click", X, !0);
278
281
  }
279
282
  function $() {
280
283
  E.clear(), v.clear();
281
284
  }
282
- function rt() {
285
+ function ot() {
283
286
  const S = Q ? o : n;
284
- v.add(S, "touchmove", z, I).add(S, "touchend", M).add(S, "mousemove", z, I).add(S, "mouseup", M);
287
+ v.add(S, "touchmove", z, C).add(S, "touchend", M).add(S, "mousemove", z, C).add(S, "mouseup", M);
285
288
  }
286
- function st(S) {
287
- const N = S.nodeName || "";
288
- return T.includes(N);
289
+ function rt(S) {
290
+ const T = S.nodeName || "";
291
+ return N.includes(T);
289
292
  }
290
293
  function J() {
291
- return (l ? C : P)[Q ? "mouse" : "touch"];
294
+ return (l ? I : P)[Q ? "mouse" : "touch"];
292
295
  }
293
- function ct(S, N) {
294
- const O = d.add(Ot(S) * -1), k = y.byDistance(S, !l).distance;
295
- return l || D(S) < L ? k : h && N ? k * 0.5 : y.byIndex(O.get(), 0).distance;
296
+ function ct(S, T) {
297
+ const O = d.add(Pt(S) * -1), k = y.byDistance(S, !l).distance;
298
+ return l || D(S) < w ? k : h && T ? k * 0.5 : y.byIndex(O.get(), 0).distance;
296
299
  }
297
300
  function ut(S) {
298
- const N = At(S, r);
299
- Q = N, U = l && N && !S.buttons && G, G = ft(i.get(), e.get()) >= 2, !(N && S.button !== 0) && (st(S.target) || (nt = !0, s.pointerDown(S), c.useFriction(0).useDuration(0), i.set(e), rt(), H = s.readPoint(S), q = s.readPoint(S, b), g.emit("pointerDown")));
301
+ const T = Nt(S, r);
302
+ Q = T, U = l && T && !S.buttons && G, G = ft(i.get(), e.get()) >= 2, !(T && S.button !== 0) && (rt(S.target) || (W = !0, s.pointerDown(S), c.useFriction(0).useDuration(0), i.set(e), ot(), H = s.readPoint(S), q = s.readPoint(S, b), p.emit("pointerDown")));
300
303
  }
301
304
  function z(S) {
302
- if (!At(S, r) && S.touches.length >= 2) return M(S);
305
+ if (!Nt(S, r) && S.touches.length >= 2) return M(S);
303
306
  const O = s.readPoint(S), k = s.readPoint(S, b), K = ft(O, H), Y = ft(k, q);
304
307
  if (!_ && !Q && (!S.cancelable || (_ = K > Y, !_)))
305
308
  return M(S);
306
- const Z = s.pointerMove(S);
307
- K > p && (U = !0), c.useFriction(0.3).useDuration(0.75), a.start(), i.add(w(Z)), S.preventDefault();
309
+ const tt = s.pointerMove(S);
310
+ K > m && (U = !0), c.useFriction(0.3).useDuration(0.75), a.start(), i.add(L(tt)), S.preventDefault();
308
311
  }
309
312
  function M(S) {
310
- const O = y.byDistance(0, !1).index !== d.get(), k = s.pointerUp(S) * J(), K = ct(w(k), O), Y = gn(k, K), Z = j - 10 * Y, W = f + Y / 50;
311
- _ = !1, nt = !1, v.clear(), c.useDuration(Z).useFriction(W), u.distance(K, !l), Q = !1, g.emit("pointerUp");
313
+ const O = y.byDistance(0, !1).index !== d.get(), k = s.pointerUp(S) * J(), K = ct(L(k), O), Y = hn(k, K), tt = F - 10 * Y, Z = f + Y / 50;
314
+ _ = !1, W = !1, v.clear(), c.useDuration(tt).useFriction(Z), u.distance(K, !l), Q = !1, p.emit("pointerUp");
312
315
  }
313
316
  function X(S) {
314
317
  U && (S.stopPropagation(), S.preventDefault(), U = !1);
315
318
  }
316
319
  function B() {
317
- return nt;
320
+ return W;
318
321
  }
319
322
  return {
320
323
  init: it,
@@ -322,26 +325,26 @@ function xn(t, n, o, r, i, s, e, a, u, c, y, d, g, x, l, p, h, f, m) {
322
325
  pointerDown: B
323
326
  };
324
327
  }
325
- function bn(t, n) {
328
+ function vn(t, n) {
326
329
  let r, i;
327
330
  function s(d) {
328
331
  return d.timeStamp;
329
332
  }
330
- function e(d, g) {
331
- const l = `client${(g || t.scroll) === "x" ? "X" : "Y"}`;
332
- return (At(d, n) ? d : d.touches[0])[l];
333
+ function e(d, p) {
334
+ const l = `client${(p || t.scroll) === "x" ? "X" : "Y"}`;
335
+ return (Nt(d, n) ? d : d.touches[0])[l];
333
336
  }
334
337
  function a(d) {
335
338
  return r = d, i = d, e(d);
336
339
  }
337
340
  function u(d) {
338
- const g = e(d) - e(i), x = s(d) - s(r) > 170;
339
- return i = d, x && (r = d), g;
341
+ const p = e(d) - e(i), x = s(d) - s(r) > 170;
342
+ return i = d, x && (r = d), p;
340
343
  }
341
344
  function c(d) {
342
345
  if (!r || !i) return 0;
343
- const g = e(i) - e(r), x = s(d) - s(r), l = s(d) - s(i) > 170, p = g / x;
344
- return x && !l && D(p) > 0.1 ? p : 0;
346
+ const p = e(i) - e(r), x = s(d) - s(r), l = s(d) - s(i) > 170, m = p / x;
347
+ return x && !l && D(m) > 0.1 ? m : 0;
345
348
  }
346
349
  return {
347
350
  pointerDown: a,
@@ -350,7 +353,7 @@ function bn(t, n) {
350
353
  readPoint: e
351
354
  };
352
355
  }
353
- function En() {
356
+ function Ln() {
354
357
  function t(o) {
355
358
  const {
356
359
  offsetTop: r,
@@ -371,7 +374,7 @@ function En() {
371
374
  measure: t
372
375
  };
373
376
  }
374
- function vn(t) {
377
+ function Cn(t) {
375
378
  function n(r) {
376
379
  return t * (r / 100);
377
380
  }
@@ -379,29 +382,29 @@ function vn(t) {
379
382
  measure: n
380
383
  };
381
384
  }
382
- function Ln(t, n, o, r, i, s, e) {
385
+ function wn(t, n, o, r, i, s, e) {
383
386
  const a = [t].concat(r);
384
387
  let u, c, y = [], d = !1;
385
- function g(h) {
388
+ function p(h) {
386
389
  return i.measureSize(e.measure(h));
387
390
  }
388
391
  function x(h) {
389
392
  if (!s) return;
390
- c = g(t), y = r.map(g);
391
- function f(m) {
392
- for (const b of m) {
393
+ c = p(t), y = r.map(p);
394
+ function f(g) {
395
+ for (const b of g) {
393
396
  if (d) return;
394
- const w = b.target === t, T = r.indexOf(b.target), I = w ? c : y[T], E = g(w ? t : r[T]);
395
- if (D(E - I) >= 0.5) {
397
+ const L = b.target === t, N = r.indexOf(b.target), C = L ? c : y[N], E = p(L ? t : r[N]);
398
+ if (D(E - C) >= 0.5) {
396
399
  h.reInit(), n.emit("resize");
397
400
  break;
398
401
  }
399
402
  }
400
403
  }
401
- u = new ResizeObserver((m) => {
402
- (xt(s) || s(h, m)) && f(m);
404
+ u = new ResizeObserver((g) => {
405
+ (xt(s) || s(h, g)) && f(g);
403
406
  }), o.requestAnimationFrame(() => {
404
- a.forEach((m) => u.observe(m));
407
+ a.forEach((g) => u.observe(g));
405
408
  });
406
409
  }
407
410
  function l() {
@@ -412,21 +415,21 @@ function Ln(t, n, o, r, i, s, e) {
412
415
  destroy: l
413
416
  };
414
417
  }
415
- function Cn(t, n, o, r, i, s) {
418
+ function In(t, n, o, r, i, s) {
416
419
  let e = 0, a = 0, u = i, c = s, y = t.get(), d = 0;
417
- function g(I) {
418
- const E = I / 1e3, v = u * E, L = r.get() - t.get(), P = !u;
419
- let C = 0;
420
- return P ? (e = 0, o.set(r), t.set(r), C = L) : (o.set(t), e += L / v, e *= c, y += e, t.add(e * E), C = y - d), a = Ot(C), d = y, T;
420
+ function p() {
421
+ const C = r.get() - t.get(), E = !u;
422
+ let v = 0;
423
+ return E ? (e = 0, o.set(r), t.set(r), v = C) : (o.set(t), e += C / u, e *= c, y += e, t.add(e), v = y - d), a = Pt(v), d = y, N;
421
424
  }
422
425
  function x() {
423
- const I = r.get() - n.get();
424
- return D(I) < 1e-3;
426
+ const C = r.get() - n.get();
427
+ return D(C) < 1e-3;
425
428
  }
426
429
  function l() {
427
430
  return u;
428
431
  }
429
- function p() {
432
+ function m() {
430
433
  return a;
431
434
  }
432
435
  function h() {
@@ -435,37 +438,37 @@ function Cn(t, n, o, r, i, s) {
435
438
  function f() {
436
439
  return b(i);
437
440
  }
438
- function m() {
439
- return w(s);
441
+ function g() {
442
+ return L(s);
440
443
  }
441
- function b(I) {
442
- return u = I, T;
444
+ function b(C) {
445
+ return u = C, N;
443
446
  }
444
- function w(I) {
445
- return c = I, T;
447
+ function L(C) {
448
+ return c = C, N;
446
449
  }
447
- const T = {
448
- direction: p,
450
+ const N = {
451
+ direction: m,
449
452
  duration: l,
450
453
  velocity: h,
451
- seek: g,
454
+ seek: p,
452
455
  settled: x,
453
- useBaseFriction: m,
456
+ useBaseFriction: g,
454
457
  useBaseDuration: f,
455
- useFriction: w,
458
+ useFriction: L,
456
459
  useDuration: b
457
460
  };
458
- return T;
461
+ return N;
459
462
  }
460
- function wn(t, n, o, r, i) {
461
- const s = i.measure(10), e = i.measure(50), a = ot(0.1, 0.99);
463
+ function Tn(t, n, o, r, i) {
464
+ const s = i.measure(10), e = i.measure(50), a = et(0.1, 0.99);
462
465
  let u = !1;
463
466
  function c() {
464
467
  return !(u || !t.reachedAny(o.get()) || !t.reachedAny(n.get()));
465
468
  }
466
469
  function y(x) {
467
470
  if (!c()) return;
468
- const l = t.reachedMin(n.get()) ? "min" : "max", p = D(t[l] - n.get()), h = o.get() - n.get(), f = a.constrain(p / e);
471
+ const l = t.reachedMin(n.get()) ? "min" : "max", m = D(t[l] - n.get()), h = o.get() - n.get(), f = a.constrain(m / e);
469
472
  o.subtract(h * f), !x && D(h) < s && (o.set(t.constrain(o.get())), r.useDuration(25).useBaseFriction());
470
473
  }
471
474
  function d(x) {
@@ -477,62 +480,62 @@ function wn(t, n, o, r, i) {
477
480
  toggleActive: d
478
481
  };
479
482
  }
480
- function In(t, n, o, r, i) {
481
- const s = ot(-n + t, 0), e = d(), a = y(), u = g();
482
- function c(l, p) {
483
- return ft(l, p) < 1;
483
+ function Nn(t, n, o, r, i) {
484
+ const s = et(-n + t, 0), e = d(), a = y(), u = p();
485
+ function c(l, m) {
486
+ return ft(l, m) < 1;
484
487
  }
485
488
  function y() {
486
- const l = e[0], p = V(e), h = e.lastIndexOf(l), f = e.indexOf(p) + 1;
487
- return ot(h, f);
489
+ const l = e[0], m = V(e), h = e.lastIndexOf(l), f = e.indexOf(m) + 1;
490
+ return et(h, f);
488
491
  }
489
492
  function d() {
490
- return o.map((l, p) => {
493
+ return o.map((l, m) => {
491
494
  const {
492
495
  min: h,
493
496
  max: f
494
- } = s, m = s.constrain(l), b = !p, w = Mt(o, p);
495
- return b ? f : w || c(h, m) ? h : c(f, m) ? f : m;
497
+ } = s, g = s.constrain(l), b = !m, L = Ot(o, m);
498
+ return b ? f : L || c(h, g) ? h : c(f, g) ? f : g;
496
499
  }).map((l) => parseFloat(l.toFixed(3)));
497
500
  }
498
- function g() {
501
+ function p() {
499
502
  if (n <= t + i) return [s.max];
500
503
  if (r === "keepSnaps") return e;
501
504
  const {
502
505
  min: l,
503
- max: p
506
+ max: m
504
507
  } = a;
505
- return e.slice(l, p);
508
+ return e.slice(l, m);
506
509
  }
507
510
  return {
508
511
  snapsContained: u,
509
512
  scrollContainLimit: a
510
513
  };
511
514
  }
512
- function Nn(t, n, o) {
515
+ function An(t, n, o) {
513
516
  const r = n[0], i = o ? r - t : V(n);
514
517
  return {
515
- limit: ot(i, r)
518
+ limit: et(i, r)
516
519
  };
517
520
  }
518
- function Tn(t, n, o, r) {
521
+ function Dn(t, n, o, r) {
519
522
  const s = n.min + 0.1, e = n.max + 0.1, {
520
523
  reachedMin: a,
521
524
  reachedMax: u
522
- } = ot(s, e);
523
- function c(g) {
524
- return g === 1 ? u(o.get()) : g === -1 ? a(o.get()) : !1;
525
+ } = et(s, e);
526
+ function c(p) {
527
+ return p === 1 ? u(o.get()) : p === -1 ? a(o.get()) : !1;
525
528
  }
526
- function y(g) {
527
- if (!c(g)) return;
528
- const x = t * (g * -1);
529
+ function y(p) {
530
+ if (!c(p)) return;
531
+ const x = t * (p * -1);
529
532
  r.forEach((l) => l.add(x));
530
533
  }
531
534
  return {
532
535
  loop: y
533
536
  };
534
537
  }
535
- function An(t) {
538
+ function Pn(t) {
536
539
  const {
537
540
  max: n,
538
541
  length: o
@@ -545,28 +548,28 @@ function An(t) {
545
548
  get: r
546
549
  };
547
550
  }
548
- function Dn(t, n, o, r, i) {
551
+ function On(t, n, o, r, i) {
549
552
  const {
550
553
  startEdge: s,
551
554
  endEdge: e
552
555
  } = t, {
553
556
  groupSlides: a
554
- } = i, u = d().map(n.measure), c = g(), y = x();
557
+ } = i, u = d().map(n.measure), c = p(), y = x();
555
558
  function d() {
556
- return a(r).map((p) => V(p)[e] - p[0][s]).map(D);
559
+ return a(r).map((m) => V(m)[e] - m[0][s]).map(D);
557
560
  }
558
- function g() {
559
- return r.map((p) => o[s] - p[s]).map((p) => -D(p));
561
+ function p() {
562
+ return r.map((m) => o[s] - m[s]).map((m) => -D(m));
560
563
  }
561
564
  function x() {
562
- return a(c).map((p) => p[0]).map((p, h) => p + u[h]);
565
+ return a(c).map((m) => m[0]).map((m, h) => m + u[h]);
563
566
  }
564
567
  return {
565
568
  snaps: c,
566
569
  snapsAligned: y
567
570
  };
568
571
  }
569
- function Pn(t, n, o, r, i, s) {
572
+ function Mn(t, n, o, r, i, s) {
570
573
  const {
571
574
  groupSlides: e
572
575
  } = i, {
@@ -574,16 +577,16 @@ function Pn(t, n, o, r, i, s) {
574
577
  max: u
575
578
  } = r, c = y();
576
579
  function y() {
577
- const g = e(s), x = !t || n === "keepSnaps";
578
- return o.length === 1 ? [s] : x ? g : g.slice(a, u).map((l, p, h) => {
579
- const f = !p, m = Mt(h, p);
580
+ const p = e(s), x = !t || n === "keepSnaps";
581
+ return o.length === 1 ? [s] : x ? p : p.slice(a, u).map((l, m, h) => {
582
+ const f = !m, g = Ot(h, m);
580
583
  if (f) {
581
584
  const b = V(h[0]) + 1;
582
- return Jt(b);
585
+ return Qt(b);
583
586
  }
584
- if (m) {
587
+ if (g) {
585
588
  const b = ht(s) - V(h)[0] + 1;
586
- return Jt(b, V(h)[0]);
589
+ return Qt(b, V(h)[0]);
587
590
  }
588
591
  return l;
589
592
  });
@@ -592,73 +595,73 @@ function Pn(t, n, o, r, i, s) {
592
595
  slideRegistry: c
593
596
  };
594
597
  }
595
- function On(t, n, o, r, i) {
598
+ function kn(t, n, o, r, i) {
596
599
  const {
597
600
  reachedAny: s,
598
601
  removeOffset: e,
599
602
  constrain: a
600
603
  } = r;
601
604
  function u(l) {
602
- return l.concat().sort((p, h) => D(p) - D(h))[0];
605
+ return l.concat().sort((m, h) => D(m) - D(h))[0];
603
606
  }
604
607
  function c(l) {
605
- const p = t ? e(l) : a(l), h = n.map((m, b) => ({
606
- diff: y(m - p, 0),
608
+ const m = t ? e(l) : a(l), h = n.map((g, b) => ({
609
+ diff: y(g - m, 0),
607
610
  index: b
608
- })).sort((m, b) => D(m.diff) - D(b.diff)), {
611
+ })).sort((g, b) => D(g.diff) - D(b.diff)), {
609
612
  index: f
610
613
  } = h[0];
611
614
  return {
612
615
  index: f,
613
- distance: p
616
+ distance: m
614
617
  };
615
618
  }
616
- function y(l, p) {
619
+ function y(l, m) {
617
620
  const h = [l, l + o, l - o];
618
621
  if (!t) return l;
619
- if (!p) return u(h);
620
- const f = h.filter((m) => Ot(m) === p);
622
+ if (!m) return u(h);
623
+ const f = h.filter((g) => Pt(g) === m);
621
624
  return f.length ? u(f) : V(h) - o;
622
625
  }
623
- function d(l, p) {
624
- const h = n[l] - i.get(), f = y(h, p);
626
+ function d(l, m) {
627
+ const h = n[l] - i.get(), f = y(h, m);
625
628
  return {
626
629
  index: l,
627
630
  distance: f
628
631
  };
629
632
  }
630
- function g(l, p) {
633
+ function p(l, m) {
631
634
  const h = i.get() + l, {
632
635
  index: f,
633
- distance: m
636
+ distance: g
634
637
  } = c(h), b = !t && s(h);
635
- if (!p || b) return {
638
+ if (!m || b) return {
636
639
  index: f,
637
640
  distance: l
638
641
  };
639
- const w = n[f] - m, T = l + y(w, 0);
642
+ const L = n[f] - g, N = l + y(L, 0);
640
643
  return {
641
644
  index: f,
642
- distance: T
645
+ distance: N
643
646
  };
644
647
  }
645
648
  return {
646
- byDistance: g,
649
+ byDistance: p,
647
650
  byIndex: d,
648
651
  shortcut: y
649
652
  };
650
653
  }
651
- function Mn(t, n, o, r, i, s, e) {
654
+ function jn(t, n, o, r, i, s, e) {
652
655
  function a(d) {
653
- const g = d.distance, x = d.index !== n.get();
654
- s.add(g), g && (r.duration() ? t.start() : (t.update(), t.render(1), t.update())), x && (o.set(n.get()), n.set(d.index), e.emit("select"));
656
+ const p = d.distance, x = d.index !== n.get();
657
+ s.add(p), p && (r.duration() ? t.start() : (t.update(), t.render(1), t.update())), x && (o.set(n.get()), n.set(d.index), e.emit("select"));
655
658
  }
656
- function u(d, g) {
657
- const x = i.byDistance(d, g);
659
+ function u(d, p) {
660
+ const x = i.byDistance(d, p);
658
661
  a(x);
659
662
  }
660
- function c(d, g) {
661
- const x = n.clone().set(d), l = i.byIndex(x.get(), g);
663
+ function c(d, p) {
664
+ const x = n.clone().set(d), l = i.byIndex(x.get(), p);
662
665
  a(l);
663
666
  }
664
667
  return {
@@ -666,7 +669,7 @@ function Mn(t, n, o, r, i, s, e) {
666
669
  index: c
667
670
  };
668
671
  }
669
- function kn(t, n, o, r, i, s, e, a) {
672
+ function Fn(t, n, o, r, i, s, e, a) {
670
673
  const u = {
671
674
  passive: !0,
672
675
  capture: !0
@@ -674,14 +677,14 @@ function kn(t, n, o, r, i, s, e, a) {
674
677
  let c = 0;
675
678
  function y(x) {
676
679
  if (!a) return;
677
- function l(p) {
680
+ function l(m) {
678
681
  if ((/* @__PURE__ */ new Date()).getTime() - c > 10) return;
679
682
  e.emit("slideFocusStart"), t.scrollLeft = 0;
680
- const m = o.findIndex((b) => b.includes(p));
681
- Pt(m) && (i.useDuration(0), r.index(m, 0), e.emit("slideFocus"));
683
+ const g = o.findIndex((b) => b.includes(m));
684
+ Dt(g) && (i.useDuration(0), r.index(g, 0), e.emit("slideFocus"));
682
685
  }
683
- s.add(document, "keydown", d, !1), n.forEach((p, h) => {
684
- s.add(p, "focus", (f) => {
686
+ s.add(document, "keydown", d, !1), n.forEach((m, h) => {
687
+ s.add(m, "focus", (f) => {
685
688
  (xt(a) || a(x, f)) && l(h);
686
689
  }, u);
687
690
  });
@@ -708,7 +711,7 @@ function lt(t) {
708
711
  n -= e(u);
709
712
  }
710
713
  function e(u) {
711
- return Pt(u) ? u : u.get();
714
+ return Dt(u) ? u : u.get();
712
715
  }
713
716
  return {
714
717
  get: o,
@@ -717,54 +720,56 @@ function lt(t) {
717
720
  subtract: s
718
721
  };
719
722
  }
720
- function Zt(t, n) {
721
- const o = t.scroll === "x" ? s : e, r = n.style;
722
- let i = !1;
723
- function s(d) {
724
- return `translate3d(${d}px,0px,0px)`;
723
+ function _t(t, n) {
724
+ const o = t.scroll === "x" ? e : a, r = n.style;
725
+ let i = null, s = !1;
726
+ function e(p) {
727
+ return `translate3d(${p}px,0px,0px)`;
725
728
  }
726
- function e(d) {
727
- return `translate3d(0px,${d}px,0px)`;
729
+ function a(p) {
730
+ return `translate3d(0px,${p}px,0px)`;
728
731
  }
729
- function a(d) {
730
- i || (r.transform = o(t.direction(d)));
732
+ function u(p) {
733
+ if (s) return;
734
+ const x = yn(t.direction(p));
735
+ x !== i && (r.transform = o(x), i = x);
731
736
  }
732
- function u(d) {
733
- i = !d;
737
+ function c(p) {
738
+ s = !p;
734
739
  }
735
- function c() {
736
- i || (r.transform = "", n.getAttribute("style") || n.removeAttribute("style"));
740
+ function y() {
741
+ s || (r.transform = "", n.getAttribute("style") || n.removeAttribute("style"));
737
742
  }
738
743
  return {
739
- clear: c,
740
- to: a,
741
- toggleActive: u
744
+ clear: y,
745
+ to: u,
746
+ toggleActive: c
742
747
  };
743
748
  }
744
- function Fn(t, n, o, r, i, s, e, a, u) {
745
- const y = dt(i), d = dt(i).reverse(), g = f().concat(m());
749
+ function zn(t, n, o, r, i, s, e, a, u) {
750
+ const y = dt(i), d = dt(i).reverse(), p = f().concat(g());
746
751
  function x(E, v) {
747
- return E.reduce((L, P) => L - i[P], v);
752
+ return E.reduce((w, P) => w - i[P], v);
748
753
  }
749
754
  function l(E, v) {
750
- return E.reduce((L, P) => x(L, v) > 0 ? L.concat([P]) : L, []);
755
+ return E.reduce((w, P) => x(w, v) > 0 ? w.concat([P]) : w, []);
751
756
  }
752
- function p(E) {
753
- return s.map((v, L) => ({
754
- start: v - r[L] + 0.5 + E,
757
+ function m(E) {
758
+ return s.map((v, w) => ({
759
+ start: v - r[w] + 0.5 + E,
755
760
  end: v + n - 0.5 + E
756
761
  }));
757
762
  }
758
- function h(E, v, L) {
759
- const P = p(v);
760
- return E.map((C) => {
761
- const j = L ? 0 : -o, G = L ? o : 0, H = L ? "end" : "start", q = P[C][H];
763
+ function h(E, v, w) {
764
+ const P = m(v);
765
+ return E.map((I) => {
766
+ const F = w ? 0 : -o, G = w ? o : 0, H = w ? "end" : "start", q = P[I][H];
762
767
  return {
763
- index: C,
768
+ index: I,
764
769
  loopPoint: q,
765
770
  slideLocation: lt(-1),
766
- translate: Zt(t, u[C]),
767
- target: () => a.get() > q ? j : G
771
+ translate: _t(t, u[I]),
772
+ target: () => a.get() > q ? F : G
768
773
  };
769
774
  });
770
775
  }
@@ -772,39 +777,39 @@ function Fn(t, n, o, r, i, s, e, a, u) {
772
777
  const E = e[0], v = l(d, E);
773
778
  return h(v, o, !1);
774
779
  }
775
- function m() {
780
+ function g() {
776
781
  const E = n - e[0] - 1, v = l(y, E);
777
782
  return h(v, -o, !0);
778
783
  }
779
784
  function b() {
780
- return g.every(({
785
+ return p.every(({
781
786
  index: E
782
787
  }) => {
783
- const v = y.filter((L) => L !== E);
788
+ const v = y.filter((w) => w !== E);
784
789
  return x(v, n) <= 0.1;
785
790
  });
786
791
  }
787
- function w() {
788
- g.forEach((E) => {
792
+ function L() {
793
+ p.forEach((E) => {
789
794
  const {
790
795
  target: v,
791
- translate: L,
796
+ translate: w,
792
797
  slideLocation: P
793
- } = E, C = v();
794
- C !== P.get() && (L.to(C), P.set(C));
798
+ } = E, I = v();
799
+ I !== P.get() && (w.to(I), P.set(I));
795
800
  });
796
801
  }
797
- function T() {
798
- g.forEach((E) => E.translate.clear());
802
+ function N() {
803
+ p.forEach((E) => E.translate.clear());
799
804
  }
800
805
  return {
801
806
  canLoop: b,
802
- clear: T,
803
- loop: w,
804
- loopPoints: g
807
+ clear: N,
808
+ loop: L,
809
+ loopPoints: p
805
810
  };
806
811
  }
807
- function jn(t, n, o) {
812
+ function Bn(t, n, o) {
808
813
  let r, i = !1;
809
814
  function s(u) {
810
815
  if (!o) return;
@@ -829,14 +834,14 @@ function jn(t, n, o) {
829
834
  destroy: e
830
835
  };
831
836
  }
832
- function zn(t, n, o, r) {
837
+ function Rn(t, n, o, r) {
833
838
  const i = {};
834
839
  let s = null, e = null, a, u = !1;
835
840
  function c() {
836
841
  a = new IntersectionObserver((l) => {
837
- u || (l.forEach((p) => {
838
- const h = n.indexOf(p.target);
839
- i[h] = p;
842
+ u || (l.forEach((m) => {
843
+ const h = n.indexOf(m.target);
844
+ i[h] = m;
840
845
  }), s = null, e = null, o.emit("slidesInView"));
841
846
  }, {
842
847
  root: t.parentElement,
@@ -847,180 +852,181 @@ function zn(t, n, o, r) {
847
852
  a && a.disconnect(), u = !0;
848
853
  }
849
854
  function d(l) {
850
- return pt(i).reduce((p, h) => {
855
+ return pt(i).reduce((m, h) => {
851
856
  const f = parseInt(h), {
852
- isIntersecting: m
857
+ isIntersecting: g
853
858
  } = i[f];
854
- return (l && m || !l && !m) && p.push(f), p;
859
+ return (l && g || !l && !g) && m.push(f), m;
855
860
  }, []);
856
861
  }
857
- function g(l = !0) {
862
+ function p(l = !0) {
858
863
  if (l && s) return s;
859
864
  if (!l && e) return e;
860
- const p = d(l);
861
- return l && (s = p), l || (e = p), p;
865
+ const m = d(l);
866
+ return l && (s = m), l || (e = m), m;
862
867
  }
863
868
  return {
864
869
  init: c,
865
870
  destroy: y,
866
- get: g
871
+ get: p
867
872
  };
868
873
  }
869
- function Bn(t, n, o, r, i, s) {
874
+ function Vn(t, n, o, r, i, s) {
870
875
  const {
871
876
  measureSize: e,
872
877
  startEdge: a,
873
878
  endEdge: u
874
- } = t, c = o[0] && i, y = l(), d = p(), g = o.map(e), x = h();
879
+ } = t, c = o[0] && i, y = l(), d = m(), p = o.map(e), x = h();
875
880
  function l() {
876
881
  if (!c) return 0;
877
- const m = o[0];
878
- return D(n[a] - m[a]);
882
+ const g = o[0];
883
+ return D(n[a] - g[a]);
879
884
  }
880
- function p() {
885
+ function m() {
881
886
  if (!c) return 0;
882
- const m = s.getComputedStyle(V(r));
883
- return parseFloat(m.getPropertyValue(`margin-${u}`));
887
+ const g = s.getComputedStyle(V(r));
888
+ return parseFloat(g.getPropertyValue(`margin-${u}`));
884
889
  }
885
890
  function h() {
886
- return o.map((m, b, w) => {
887
- const T = !b, I = Mt(w, b);
888
- return T ? g[b] + y : I ? g[b] + d : w[b + 1][a] - m[a];
891
+ return o.map((g, b, L) => {
892
+ const N = !b, C = Ot(L, b);
893
+ return N ? p[b] + y : C ? p[b] + d : L[b + 1][a] - g[a];
889
894
  }).map(D);
890
895
  }
891
896
  return {
892
- slideSizes: g,
897
+ slideSizes: p,
893
898
  slideSizesWithGaps: x,
894
899
  startGap: y,
895
900
  endGap: d
896
901
  };
897
902
  }
898
- function Rn(t, n, o, r, i, s, e, a, u) {
903
+ function Gn(t, n, o, r, i, s, e, a, u) {
899
904
  const {
900
905
  startEdge: c,
901
906
  endEdge: y,
902
907
  direction: d
903
- } = t, g = Pt(o);
904
- function x(f, m) {
905
- return dt(f).filter((b) => b % m === 0).map((b) => f.slice(b, b + m));
908
+ } = t, p = Dt(o);
909
+ function x(f, g) {
910
+ return dt(f).filter((b) => b % g === 0).map((b) => f.slice(b, b + g));
906
911
  }
907
912
  function l(f) {
908
- return f.length ? dt(f).reduce((m, b, w) => {
909
- const T = V(m) || 0, I = T === 0, E = b === ht(f), v = i[c] - s[T][c], L = i[c] - s[b][y], P = !r && I ? d(e) : 0, C = !r && E ? d(a) : 0, j = D(L - C - (v + P));
910
- return w && j > n + u && m.push(b), E && m.push(f.length), m;
911
- }, []).map((m, b, w) => {
912
- const T = Math.max(w[b - 1] || 0);
913
- return f.slice(T, m);
913
+ return f.length ? dt(f).reduce((g, b, L) => {
914
+ const N = V(g) || 0, C = N === 0, E = b === ht(f), v = i[c] - s[N][c], w = i[c] - s[b][y], P = !r && C ? d(e) : 0, I = !r && E ? d(a) : 0, F = D(w - I - (v + P));
915
+ return L && F > n + u && g.push(b), E && g.push(f.length), g;
916
+ }, []).map((g, b, L) => {
917
+ const N = Math.max(L[b - 1] || 0);
918
+ return f.slice(N, g);
914
919
  }) : [];
915
920
  }
916
- function p(f) {
917
- return g ? x(f, o) : l(f);
921
+ function m(f) {
922
+ return p ? x(f, o) : l(f);
918
923
  }
919
924
  return {
920
- groupSlides: p
925
+ groupSlides: m
921
926
  };
922
927
  }
923
- function Vn(t, n, o, r, i, s, e) {
928
+ function Hn(t, n, o, r, i, s, e) {
924
929
  const {
925
930
  align: a,
926
931
  axis: u,
927
932
  direction: c,
928
933
  startIndex: y,
929
934
  loop: d,
930
- duration: g,
935
+ duration: p,
931
936
  dragFree: x,
932
937
  dragThreshold: l,
933
- inViewThreshold: p,
938
+ inViewThreshold: m,
934
939
  slidesToScroll: h,
935
940
  skipSnaps: f,
936
- containScroll: m,
941
+ containScroll: g,
937
942
  watchResize: b,
938
- watchSlides: w,
939
- watchDrag: T,
940
- watchFocus: I
941
- } = s, E = 2, v = En(), L = v.measure(n), P = o.map(v.measure), C = Sn(u, c), j = C.measureSize(L), G = vn(j), H = hn(a, j), q = !d && !!m, nt = d || !!m, {
943
+ watchSlides: L,
944
+ watchDrag: N,
945
+ watchFocus: C
946
+ } = s, E = 2, v = Ln(), w = v.measure(n), P = o.map(v.measure), I = bn(u, c), F = I.measureSize(w), G = Cn(F), H = Sn(a, F), q = !d && !!g, W = d || !!g, {
942
947
  slideSizes: _,
943
948
  slideSizesWithGaps: U,
944
949
  startGap: Q,
945
950
  endGap: it
946
- } = Bn(C, L, P, o, nt, i), $ = Rn(C, j, h, d, L, P, Q, it, E), {
947
- snaps: rt,
948
- snapsAligned: st
949
- } = Dn(C, H, L, P, $), J = -V(rt) + V(U), {
951
+ } = Vn(I, w, P, o, W, i), $ = Gn(I, F, h, d, w, P, Q, it, E), {
952
+ snaps: ot,
953
+ snapsAligned: rt
954
+ } = On(I, H, w, P, $), J = -V(ot) + V(U), {
950
955
  snapsContained: ct,
951
956
  scrollContainLimit: ut
952
- } = In(j, J, st, m, E), z = q ? ct : st, {
957
+ } = Nn(F, J, rt, g, E), z = q ? ct : rt, {
953
958
  limit: M
954
- } = Nn(J, z, d), X = _t(ht(z), y, d), B = X.clone(), A = dt(o), S = ({
955
- dragHandler: tt,
959
+ } = An(J, z, d), X = Yt(ht(z), y, d), B = X.clone(), A = dt(o), S = ({
960
+ dragHandler: st,
956
961
  scrollBody: Ct,
957
962
  scrollBounds: wt,
958
963
  options: {
959
964
  loop: yt
960
965
  }
961
- }, It) => {
962
- yt || wt.constrain(tt.pointerDown()), Ct.seek(It);
963
- }, N = ({
964
- scrollBody: tt,
966
+ }) => {
967
+ yt || wt.constrain(st.pointerDown()), Ct.seek();
968
+ }, T = ({
969
+ scrollBody: st,
965
970
  translate: Ct,
966
971
  location: wt,
967
972
  offsetLocation: yt,
968
- scrollLooper: It,
969
- slideLooper: en,
970
- dragHandler: on,
971
- animation: rn,
972
- eventHandler: Bt,
973
- scrollBounds: sn,
973
+ previousLocation: nn,
974
+ scrollLooper: en,
975
+ slideLooper: on,
976
+ dragHandler: rn,
977
+ animation: sn,
978
+ eventHandler: zt,
979
+ scrollBounds: cn,
974
980
  options: {
975
- loop: Rt
981
+ loop: Bt
976
982
  }
977
- }, Vt) => {
978
- const Gt = tt.settled(), cn = !sn.shouldConstrain(), Ht = Rt ? Gt : Gt && cn;
979
- Ht && !on.pointerDown() && (rn.stop(), Bt.emit("settle")), Ht || Bt.emit("scroll");
980
- const un = wt.get() * Vt + Z.get() * (1 - Vt);
981
- yt.set(un), Rt && (It.loop(tt.direction()), en.loop()), Ct.to(yt.get());
982
- }, O = yn(r, i, (tt) => S(Lt, tt), (tt) => N(Lt, tt)), k = 0.68, K = z[X.get()], Y = lt(K), Z = lt(K), W = lt(K), et = lt(K), at = Cn(Y, W, Z, et, g, k), Et = On(d, z, J, M, et), vt = Mn(O, X, B, at, Et, et, e), Ft = An(M), jt = mt(), tn = zn(n, o, e, p), {
983
- slideRegistry: zt
984
- } = Pn(q, m, z, ut, $, A), nn = kn(t, o, zt, vt, at, jt, e, I), Lt = {
983
+ }, Rt) => {
984
+ const Vt = st.settled(), un = !cn.shouldConstrain(), Gt = Bt ? Vt : Vt && un;
985
+ Gt && !rn.pointerDown() && (sn.stop(), zt.emit("settle")), Gt || zt.emit("scroll");
986
+ const an = wt.get() * Rt + nn.get() * (1 - Rt);
987
+ yt.set(an), Bt && (en.loop(st.direction()), on.loop()), Ct.to(yt.get());
988
+ }, O = xn(r, i, () => S(Lt), (st) => T(Lt, st)), k = 0.68, K = z[X.get()], Y = lt(K), tt = lt(K), Z = lt(K), nt = lt(K), at = In(Y, Z, tt, nt, p, k), Et = kn(d, z, J, M, nt), vt = jn(O, X, B, at, Et, nt, e), kt = Pn(M), jt = mt(), Wt = Rn(n, o, e, m), {
989
+ slideRegistry: Ft
990
+ } = Mn(q, g, z, ut, $, A), tn = Fn(t, o, Ft, vt, at, jt, e, C), Lt = {
985
991
  ownerDocument: r,
986
992
  ownerWindow: i,
987
993
  eventHandler: e,
988
- containerRect: L,
994
+ containerRect: w,
989
995
  slideRects: P,
990
996
  animation: O,
991
- axis: C,
992
- dragHandler: xn(C, t, r, i, et, bn(C, i), Y, O, vt, at, Et, X, e, G, x, l, f, k, T),
997
+ axis: I,
998
+ dragHandler: En(I, t, r, i, nt, vn(I, i), Y, O, vt, at, Et, X, e, G, x, l, f, k, N),
993
999
  eventStore: jt,
994
1000
  percentOfView: G,
995
1001
  index: X,
996
1002
  indexPrevious: B,
997
1003
  limit: M,
998
1004
  location: Y,
999
- offsetLocation: W,
1000
- previousLocation: Z,
1005
+ offsetLocation: Z,
1006
+ previousLocation: tt,
1001
1007
  options: s,
1002
- resizeHandler: Ln(n, e, i, o, C, b, v),
1008
+ resizeHandler: wn(n, e, i, o, I, b, v),
1003
1009
  scrollBody: at,
1004
- scrollBounds: wn(M, W, et, at, G),
1005
- scrollLooper: Tn(J, M, W, [Y, W, Z, et]),
1006
- scrollProgress: Ft,
1007
- scrollSnapList: z.map(Ft.get),
1010
+ scrollBounds: Tn(M, Z, nt, at, G),
1011
+ scrollLooper: Dn(J, M, Z, [Y, Z, tt, nt]),
1012
+ scrollProgress: kt,
1013
+ scrollSnapList: z.map(kt.get),
1008
1014
  scrollSnaps: z,
1009
1015
  scrollTarget: Et,
1010
1016
  scrollTo: vt,
1011
- slideLooper: Fn(C, j, J, _, U, rt, z, W, o),
1012
- slideFocus: nn,
1013
- slidesHandler: jn(n, e, w),
1014
- slidesInView: tn,
1017
+ slideLooper: zn(I, F, J, _, U, ot, z, Z, o),
1018
+ slideFocus: tn,
1019
+ slidesHandler: Bn(n, e, L),
1020
+ slidesInView: Wt,
1015
1021
  slideIndexes: A,
1016
- slideRegistry: zt,
1022
+ slideRegistry: Ft,
1017
1023
  slidesToScroll: $,
1018
- target: et,
1019
- translate: Zt(C, n)
1024
+ target: nt,
1025
+ translate: _t(I, n)
1020
1026
  };
1021
1027
  return Lt;
1022
1028
  }
1023
- function Gn() {
1029
+ function qn() {
1024
1030
  let t = {}, n;
1025
1031
  function o(c) {
1026
1032
  n = c;
@@ -1049,7 +1055,7 @@ function Gn() {
1049
1055
  };
1050
1056
  return u;
1051
1057
  }
1052
- const Hn = {
1058
+ const $n = {
1053
1059
  align: "center",
1054
1060
  axis: "x",
1055
1061
  container: null,
@@ -1071,9 +1077,9 @@ const Hn = {
1071
1077
  watchSlides: !0,
1072
1078
  watchFocus: !0
1073
1079
  };
1074
- function qn(t) {
1080
+ function Kn(t) {
1075
1081
  function n(s, e) {
1076
- return Yt(s, e || {});
1082
+ return Xt(s, e || {});
1077
1083
  }
1078
1084
  function o(s) {
1079
1085
  const e = s.breakpoints || {}, a = pt(e).filter((u) => t.matchMedia(u).matches).map((u) => e[u]).reduce((u, c) => n(u, c), {});
@@ -1088,7 +1094,7 @@ function qn(t) {
1088
1094
  optionsMediaQueries: r
1089
1095
  };
1090
1096
  }
1091
- function $n(t) {
1097
+ function Un(t) {
1092
1098
  let n = [];
1093
1099
  function o(s, e) {
1094
1100
  return n = e.filter(({
@@ -1106,60 +1112,60 @@ function $n(t) {
1106
1112
  };
1107
1113
  }
1108
1114
  function St(t, n, o) {
1109
- const r = t.ownerDocument, i = r.defaultView, s = qn(i), e = $n(s), a = mt(), u = Gn(), {
1115
+ const r = t.ownerDocument, i = r.defaultView, s = Kn(i), e = Un(s), a = mt(), u = qn(), {
1110
1116
  mergeOptions: c,
1111
1117
  optionsAtMedia: y,
1112
1118
  optionsMediaQueries: d
1113
1119
  } = s, {
1114
- on: g,
1120
+ on: p,
1115
1121
  off: x,
1116
1122
  emit: l
1117
- } = u, p = C;
1118
- let h = !1, f, m = c(Hn, St.globalOptions), b = c(m), w = [], T, I, E;
1123
+ } = u, m = I;
1124
+ let h = !1, f, g = c($n, St.globalOptions), b = c(g), L = [], N, C, E;
1119
1125
  function v() {
1120
1126
  const {
1121
1127
  container: A,
1122
1128
  slides: S
1123
1129
  } = b;
1124
- I = (Tt(A) ? t.querySelector(A) : A) || t.children[0];
1125
- const O = Tt(S) ? I.querySelectorAll(S) : S;
1126
- E = [].slice.call(O || I.children);
1130
+ C = (Tt(A) ? t.querySelector(A) : A) || t.children[0];
1131
+ const O = Tt(S) ? C.querySelectorAll(S) : S;
1132
+ E = [].slice.call(O || C.children);
1127
1133
  }
1128
- function L(A) {
1129
- const S = Vn(t, I, E, r, i, A, u);
1134
+ function w(A) {
1135
+ const S = Hn(t, C, E, r, i, A, u);
1130
1136
  if (A.loop && !S.slideLooper.canLoop()) {
1131
- const N = Object.assign({}, A, {
1137
+ const T = Object.assign({}, A, {
1132
1138
  loop: !1
1133
1139
  });
1134
- return L(N);
1140
+ return w(T);
1135
1141
  }
1136
1142
  return S;
1137
1143
  }
1138
1144
  function P(A, S) {
1139
- h || (m = c(m, A), b = y(m), w = S || w, v(), f = L(b), d([m, ...w.map(({
1140
- options: N
1141
- }) => N)]).forEach((N) => a.add(N, "change", C)), b.active && (f.translate.to(f.location.get()), f.animation.init(), f.slidesInView.init(), f.slideFocus.init(B), f.eventHandler.init(B), f.resizeHandler.init(B), f.slidesHandler.init(B), f.options.loop && f.slideLooper.loop(), I.offsetParent && E.length && f.dragHandler.init(B), T = e.init(B, w)));
1142
- }
1143
- function C(A, S) {
1144
- const N = $();
1145
- j(), P(c({
1146
- startIndex: N
1145
+ h || (g = c(g, A), b = y(g), L = S || L, v(), f = w(b), d([g, ...L.map(({
1146
+ options: T
1147
+ }) => T)]).forEach((T) => a.add(T, "change", I)), b.active && (f.translate.to(f.location.get()), f.animation.init(), f.slidesInView.init(), f.slideFocus.init(B), f.eventHandler.init(B), f.resizeHandler.init(B), f.slidesHandler.init(B), f.options.loop && f.slideLooper.loop(), C.offsetParent && E.length && f.dragHandler.init(B), N = e.init(B, L)));
1148
+ }
1149
+ function I(A, S) {
1150
+ const T = $();
1151
+ F(), P(c({
1152
+ startIndex: T
1147
1153
  }, A), S), u.emit("reInit");
1148
1154
  }
1149
- function j() {
1155
+ function F() {
1150
1156
  f.dragHandler.destroy(), f.eventStore.clear(), f.translate.clear(), f.slideLooper.clear(), f.resizeHandler.destroy(), f.slidesHandler.destroy(), f.slidesInView.destroy(), f.animation.destroy(), e.destroy(), a.clear();
1151
1157
  }
1152
1158
  function G() {
1153
- h || (h = !0, a.clear(), j(), u.emit("destroy"), u.clear());
1159
+ h || (h = !0, a.clear(), F(), u.emit("destroy"), u.clear());
1154
1160
  }
1155
- function H(A, S, N) {
1156
- !b.active || h || (f.scrollBody.useBaseFriction().useDuration(S === !0 ? 0 : b.duration), f.scrollTo.index(A, N || 0));
1161
+ function H(A, S, T) {
1162
+ !b.active || h || (f.scrollBody.useBaseFriction().useDuration(S === !0 ? 0 : b.duration), f.scrollTo.index(A, T || 0));
1157
1163
  }
1158
1164
  function q(A) {
1159
1165
  const S = f.index.add(1).get();
1160
1166
  H(S, A, -1);
1161
1167
  }
1162
- function nt(A) {
1168
+ function W(A) {
1163
1169
  const S = f.index.add(-1).get();
1164
1170
  H(S, A, 1);
1165
1171
  }
@@ -1178,17 +1184,17 @@ function St(t, n, o) {
1178
1184
  function $() {
1179
1185
  return f.index.get();
1180
1186
  }
1181
- function rt() {
1187
+ function ot() {
1182
1188
  return f.indexPrevious.get();
1183
1189
  }
1184
- function st() {
1190
+ function rt() {
1185
1191
  return f.slidesInView.get();
1186
1192
  }
1187
1193
  function J() {
1188
1194
  return f.slidesInView.get(!1);
1189
1195
  }
1190
1196
  function ct() {
1191
- return T;
1197
+ return N;
1192
1198
  }
1193
1199
  function ut() {
1194
1200
  return f;
@@ -1197,7 +1203,7 @@ function St(t, n, o) {
1197
1203
  return t;
1198
1204
  }
1199
1205
  function M() {
1200
- return I;
1206
+ return C;
1201
1207
  }
1202
1208
  function X() {
1203
1209
  return E;
@@ -1209,51 +1215,51 @@ function St(t, n, o) {
1209
1215
  internalEngine: ut,
1210
1216
  destroy: G,
1211
1217
  off: x,
1212
- on: g,
1218
+ on: p,
1213
1219
  emit: l,
1214
1220
  plugins: ct,
1215
- previousScrollSnap: rt,
1216
- reInit: p,
1221
+ previousScrollSnap: ot,
1222
+ reInit: m,
1217
1223
  rootNode: z,
1218
1224
  scrollNext: q,
1219
- scrollPrev: nt,
1225
+ scrollPrev: W,
1220
1226
  scrollProgress: it,
1221
1227
  scrollSnapList: Q,
1222
1228
  scrollTo: H,
1223
1229
  selectedScrollSnap: $,
1224
1230
  slideNodes: X,
1225
- slidesInView: st,
1231
+ slidesInView: rt,
1226
1232
  slidesNotInView: J
1227
1233
  };
1228
1234
  return P(n, o), setTimeout(() => u.emit("init"), 0), B;
1229
1235
  }
1230
1236
  St.globalOptions = void 0;
1231
- function kt(t = {}, n = []) {
1232
- const o = qt(t), r = qt(n), [i, s] = $t(), [e, a] = $t(), u = an(() => {
1237
+ function Mt(t = {}, n = []) {
1238
+ const o = Ht(t), r = Ht(n), [i, s] = qt(), [e, a] = qt(), u = ln(() => {
1233
1239
  i && i.reInit(o.current, r.current);
1234
1240
  }, [i]);
1235
- return Nt(() => {
1236
- Dt(o.current, t) || (o.current = t, u());
1237
- }, [t, u]), Nt(() => {
1238
- mn(r.current, n) || (r.current = n, u());
1239
- }, [n, u]), Nt(() => {
1240
- if (pn() && e) {
1241
- St.globalOptions = kt.globalOptions;
1241
+ return It(() => {
1242
+ At(o.current, t) || (o.current = t, u());
1243
+ }, [t, u]), It(() => {
1244
+ gn(r.current, n) || (r.current = n, u());
1245
+ }, [n, u]), It(() => {
1246
+ if (mn() && e) {
1247
+ St.globalOptions = Mt.globalOptions;
1242
1248
  const c = St(e, o.current, r.current);
1243
1249
  return s(c), () => c.destroy();
1244
1250
  } else
1245
1251
  s(void 0);
1246
1252
  }, [e, s]), [a, i];
1247
1253
  }
1248
- kt.globalOptions = void 0;
1249
- const Wt = F.createContext(null);
1254
+ Mt.globalOptions = void 0;
1255
+ const Zt = j.createContext(null);
1250
1256
  function bt() {
1251
- const t = F.useContext(Wt);
1257
+ const t = j.useContext(Zt);
1252
1258
  if (!t)
1253
1259
  throw new Error("useCarousel must be used within a <Carousel />");
1254
1260
  return t;
1255
1261
  }
1256
- const Kn = F.forwardRef(
1262
+ const Qn = j.forwardRef(
1257
1263
  ({
1258
1264
  orientation: t = "horizontal",
1259
1265
  opts: n,
@@ -1263,43 +1269,43 @@ const Kn = F.forwardRef(
1263
1269
  children: s,
1264
1270
  ...e
1265
1271
  }, a) => {
1266
- const [u, c] = kt(
1272
+ const [u, c] = Mt(
1267
1273
  {
1268
1274
  ...n,
1269
1275
  axis: t === "horizontal" ? "x" : "y"
1270
1276
  },
1271
1277
  r
1272
- ), [y, d] = F.useState(!1), [g, x] = F.useState(!1), l = F.useCallback((m) => {
1273
- m && (d(m.canScrollPrev()), x(m.canScrollNext()));
1274
- }, []), p = F.useCallback(() => {
1278
+ ), [y, d] = j.useState(!1), [p, x] = j.useState(!1), l = j.useCallback((g) => {
1279
+ g && (d(g.canScrollPrev()), x(g.canScrollNext()));
1280
+ }, []), m = j.useCallback(() => {
1275
1281
  c == null || c.scrollPrev();
1276
- }, [c]), h = F.useCallback(() => {
1282
+ }, [c]), h = j.useCallback(() => {
1277
1283
  c == null || c.scrollNext();
1278
- }, [c]), f = F.useCallback(
1279
- (m) => {
1280
- m.key === "ArrowLeft" ? (m.preventDefault(), p()) : m.key === "ArrowRight" && (m.preventDefault(), h());
1284
+ }, [c]), f = j.useCallback(
1285
+ (g) => {
1286
+ g.key === "ArrowLeft" ? (g.preventDefault(), m()) : g.key === "ArrowRight" && (g.preventDefault(), h());
1281
1287
  },
1282
- [p, h]
1288
+ [m, h]
1283
1289
  );
1284
- return F.useEffect(() => {
1290
+ return j.useEffect(() => {
1285
1291
  !c || !o || o(c);
1286
- }, [c, o]), F.useEffect(() => {
1292
+ }, [c, o]), j.useEffect(() => {
1287
1293
  if (c)
1288
1294
  return l(c), c.on("reInit", l), c.on("select", l), () => {
1289
1295
  c.off("select", l);
1290
1296
  };
1291
1297
  }, [c, l]), /* @__PURE__ */ R.jsx(
1292
- Wt.Provider,
1298
+ Zt.Provider,
1293
1299
  {
1294
1300
  value: {
1295
1301
  carouselRef: u,
1296
1302
  api: c,
1297
1303
  opts: n,
1298
1304
  orientation: t || ((n == null ? void 0 : n.axis) === "y" ? "vertical" : "horizontal"),
1299
- scrollPrev: p,
1305
+ scrollPrev: m,
1300
1306
  scrollNext: h,
1301
1307
  canScrollPrev: y,
1302
- canScrollNext: g
1308
+ canScrollNext: p
1303
1309
  },
1304
1310
  children: /* @__PURE__ */ R.jsx(
1305
1311
  "div",
@@ -1317,8 +1323,8 @@ const Kn = F.forwardRef(
1317
1323
  );
1318
1324
  }
1319
1325
  );
1320
- Kn.displayName = "Carousel";
1321
- const Un = F.forwardRef(({ className: t, ...n }, o) => {
1326
+ Qn.displayName = "Carousel";
1327
+ const Jn = j.forwardRef(({ className: t, ...n }, o) => {
1322
1328
  const { carouselRef: r, orientation: i } = bt();
1323
1329
  return /* @__PURE__ */ R.jsx("div", { ref: r, className: "overflow-hidden", children: /* @__PURE__ */ R.jsx(
1324
1330
  "div",
@@ -1333,8 +1339,8 @@ const Un = F.forwardRef(({ className: t, ...n }, o) => {
1333
1339
  }
1334
1340
  ) });
1335
1341
  });
1336
- Un.displayName = "CarouselContent";
1337
- const Qn = F.forwardRef(({ className: t, ...n }, o) => {
1342
+ Jn.displayName = "CarouselContent";
1343
+ const Xn = j.forwardRef(({ className: t, ...n }, o) => {
1338
1344
  const { orientation: r } = bt();
1339
1345
  return /* @__PURE__ */ R.jsx(
1340
1346
  "div",
@@ -1351,11 +1357,11 @@ const Qn = F.forwardRef(({ className: t, ...n }, o) => {
1351
1357
  }
1352
1358
  );
1353
1359
  });
1354
- Qn.displayName = "CarouselItem";
1355
- const Jn = F.forwardRef(({ className: t, variant: n = "outline", size: o = "icon", ...r }, i) => {
1360
+ Xn.displayName = "CarouselItem";
1361
+ const Yn = j.forwardRef(({ className: t, variant: n = "outline", size: o = "icon", ...r }, i) => {
1356
1362
  const { orientation: s, scrollPrev: e, canScrollPrev: a } = bt();
1357
1363
  return /* @__PURE__ */ R.jsxs(
1358
- Xt,
1364
+ Jt,
1359
1365
  {
1360
1366
  ref: i,
1361
1367
  variant: n,
@@ -1369,17 +1375,17 @@ const Jn = F.forwardRef(({ className: t, variant: n = "outline", size: o = "icon
1369
1375
  onClick: e,
1370
1376
  ...r,
1371
1377
  children: [
1372
- /* @__PURE__ */ R.jsx(ln, { className: "h-4 w-4" }),
1378
+ /* @__PURE__ */ R.jsx(fn, { className: "h-4 w-4" }),
1373
1379
  /* @__PURE__ */ R.jsx("span", { className: "sr-only", children: "Previous slide" })
1374
1380
  ]
1375
1381
  }
1376
1382
  );
1377
1383
  });
1378
- Jn.displayName = "CarouselPrevious";
1379
- const Xn = F.forwardRef(({ className: t, variant: n = "outline", size: o = "icon", ...r }, i) => {
1384
+ Yn.displayName = "CarouselPrevious";
1385
+ const _n = j.forwardRef(({ className: t, variant: n = "outline", size: o = "icon", ...r }, i) => {
1380
1386
  const { orientation: s, scrollNext: e, canScrollNext: a } = bt();
1381
1387
  return /* @__PURE__ */ R.jsxs(
1382
- Xt,
1388
+ Jt,
1383
1389
  {
1384
1390
  ref: i,
1385
1391
  variant: n,
@@ -1393,18 +1399,18 @@ const Xn = F.forwardRef(({ className: t, variant: n = "outline", size: o = "icon
1393
1399
  onClick: e,
1394
1400
  ...r,
1395
1401
  children: [
1396
- /* @__PURE__ */ R.jsx(fn, { className: "h-4 w-4" }),
1402
+ /* @__PURE__ */ R.jsx(dn, { className: "h-4 w-4" }),
1397
1403
  /* @__PURE__ */ R.jsx("span", { className: "sr-only", children: "Next slide" })
1398
1404
  ]
1399
1405
  }
1400
1406
  );
1401
1407
  });
1402
- Xn.displayName = "CarouselNext";
1408
+ _n.displayName = "CarouselNext";
1403
1409
  export {
1404
- Kn as Carousel,
1405
- Un as CarouselContent,
1406
- Qn as CarouselItem,
1407
- Xn as CarouselNext,
1408
- Jn as CarouselPrevious
1410
+ Qn as Carousel,
1411
+ Jn as CarouselContent,
1412
+ Xn as CarouselItem,
1413
+ _n as CarouselNext,
1414
+ Yn as CarouselPrevious
1409
1415
  };
1410
1416
  //# sourceMappingURL=Carousel.js.map