@higgsfield/video-editor-mcp 1.0.7 → 1.1.1-dev.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 (189) hide show
  1. package/THIRD_PARTY_NOTICES.md +24 -24
  2. package/dist/cli.mjs +134 -125
  3. package/dist/index.html +136 -133
  4. package/dist/launcher.mjs +90 -90
  5. package/dist/server.mjs +1553 -1389
  6. package/node_modules/@higgsfield/higgsedit/README.md +181 -1
  7. package/node_modules/@higgsfield/higgsedit/dist/capture-page.js +902 -314
  8. package/node_modules/@higgsfield/higgsedit/dist/chunk-2JYLVSVV.mjs +1594 -0
  9. package/node_modules/@higgsfield/higgsedit/dist/chunk-2WKNH7OL.mjs +16 -0
  10. package/node_modules/@higgsfield/higgsedit/dist/{chunk-OMKZ5BXM.mjs → chunk-5LTTL3Q3.mjs} +1 -1
  11. package/node_modules/@higgsfield/higgsedit/dist/chunk-7PYXSJS7.mjs +717 -0
  12. package/node_modules/@higgsfield/higgsedit/dist/{chunk-MLJAIZGP.mjs → chunk-BH2QF635.mjs} +33 -326
  13. package/node_modules/@higgsfield/higgsedit/dist/{chunk-WZR5PZM7.mjs → chunk-BV5COOQZ.mjs} +250 -161
  14. package/node_modules/@higgsfield/higgsedit/dist/{chunk-HTCYVKFX.mjs → chunk-C3GSB3XZ.mjs} +8 -7
  15. package/node_modules/@higgsfield/higgsedit/dist/{chunk-CYH2EUQV.mjs → chunk-DVN4LUXV.mjs} +13 -4
  16. package/node_modules/@higgsfield/higgsedit/dist/chunk-F4CMIG5G.mjs +36 -0
  17. package/node_modules/@higgsfield/higgsedit/dist/chunk-IEPPEDEU.mjs +33 -0
  18. package/node_modules/@higgsfield/higgsedit/dist/{chunk-UVAZ6I6U.mjs → chunk-KIWGVAPJ.mjs} +16 -12
  19. package/node_modules/@higgsfield/higgsedit/dist/{chunk-L6QDNSL3.mjs → chunk-L5LWBA6A.mjs} +5 -5
  20. package/node_modules/@higgsfield/higgsedit/dist/chunk-LMQR3DHT.mjs +37 -0
  21. package/node_modules/@higgsfield/higgsedit/dist/chunk-LTKMGZ6T.mjs +58 -0
  22. package/node_modules/@higgsfield/higgsedit/dist/{chunk-VI6IV6JP.mjs → chunk-MV2JTTBQ.mjs} +65 -47
  23. package/node_modules/@higgsfield/higgsedit/dist/{chunk-4D6AXU4B.mjs → chunk-NARTAWRN.mjs} +50 -30
  24. package/node_modules/@higgsfield/higgsedit/dist/{chunk-27NBQ5FA.mjs → chunk-NUXTKQNM.mjs} +33 -21
  25. package/node_modules/@higgsfield/higgsedit/dist/chunk-OCIZ36XD.mjs +40 -0
  26. package/node_modules/@higgsfield/higgsedit/dist/{chunk-MK6PL7N4.mjs → chunk-OF6RMSM2.mjs} +19 -17
  27. package/node_modules/@higgsfield/higgsedit/dist/{chunk-6BETMESC.mjs → chunk-P2BGHTRR.mjs} +2 -2
  28. package/node_modules/@higgsfield/higgsedit/dist/{chunk-EKFC4S4M.mjs → chunk-PAHMD6SU.mjs} +5 -0
  29. package/node_modules/@higgsfield/higgsedit/dist/{chunk-QVLAEV3U.mjs → chunk-PFQYUJQL.mjs} +3 -4
  30. package/node_modules/@higgsfield/higgsedit/dist/chunk-QJTILFBS.mjs +335 -0
  31. package/node_modules/@higgsfield/higgsedit/dist/chunk-QQ3GGKDN.mjs +21 -0
  32. package/node_modules/@higgsfield/higgsedit/dist/chunk-TH7TK67K.mjs +23 -0
  33. package/node_modules/@higgsfield/higgsedit/dist/{chunk-SIMO6I3D.mjs → chunk-UDL5AHKO.mjs} +163 -158
  34. package/node_modules/@higgsfield/higgsedit/dist/chunk-UMWOUQN3.mjs +60 -0
  35. package/node_modules/@higgsfield/higgsedit/dist/{chunk-3AIM3THH.mjs → chunk-VLM5EOWJ.mjs} +4 -4
  36. package/node_modules/@higgsfield/higgsedit/dist/chunk-WENFTPXQ.mjs +403 -0
  37. package/node_modules/@higgsfield/higgsedit/dist/chunk-YLVXQIPX.mjs +464 -0
  38. package/node_modules/@higgsfield/higgsedit/dist/editor/.vite/manifest.json +559 -506
  39. package/node_modules/@higgsfield/higgsedit/dist/editor/assets/agent-corner-bottom-q4hZltI-.svg +431 -0
  40. package/node_modules/@higgsfield/higgsedit/dist/editor/assets/agent-corner-top-BJYI-I24.svg +431 -0
  41. package/node_modules/@higgsfield/higgsedit/dist/editor/assets/confirmation-BTnwl3LS.css +1 -0
  42. package/node_modules/@higgsfield/higgsedit/dist/editor/assets/drag-Bt_t4HZO.css +1 -0
  43. package/node_modules/@higgsfield/higgsedit/dist/editor/assets/local-B3OTAV_A.css +1 -0
  44. package/node_modules/@higgsfield/higgsedit/dist/editor/assets/menubar-2Y1Y2XJt.css +1 -0
  45. package/node_modules/@higgsfield/higgsedit/dist/editor/assets/model-DdE4hCgf.css +1 -0
  46. package/node_modules/@higgsfield/higgsedit/dist/editor/assets/{IconText1-CzbCrP7v.css → notifications-B08L1jSe.css} +1 -1
  47. package/node_modules/@higgsfield/higgsedit/dist/editor/assets/{panel-g852pZf_.css → panel-BRN_AbBM.css} +1 -1
  48. package/node_modules/@higgsfield/higgsedit/dist/editor/assets/panel-CYELNqrv.css +1 -0
  49. package/node_modules/@higgsfield/higgsedit/dist/editor/assets/panel-DYLpT6oA.css +1 -0
  50. package/node_modules/@higgsfield/higgsedit/dist/editor/assets/panel-v84HaGTZ.css +1 -0
  51. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/IconChainLink1-Bxb1Or0F.js +1 -0
  52. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/{IconCheckmark2Medium-daaES9uF.js → IconCheckmark2Medium-hegaz9mQ.js} +1 -1
  53. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/{IconChevronDownSmall-BhTBJk26.js → IconChevronDownSmall-DaruzJwU.js} +1 -1
  54. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/IconClosedCaptioning-BPqcqKsD.js +1 -0
  55. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/{IconCrossMedium-acfnCXOM.js → IconCrossMedium-BsPFJzc6.js} +1 -1
  56. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/IconOpenaiFilled-D1fzthmi.js +1 -0
  57. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/{IconPause-pTeVSvUe.js → IconPause-ClNg8pao.js} +1 -1
  58. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/{IconPlayFilled-CwdgIuDG.js → IconPlayFilled-CHb-7GSx.js} +1 -1
  59. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/IconSparklesSoftFilled-o7o33KRn.js +1 -0
  60. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/ai-composer-B9h-eaki.js +567 -0
  61. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/auto-layout-BO20Tg4B.js +1 -0
  62. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/{button-CjG6GcgF.js → button-Cg0U0zpV.js} +1 -1
  63. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/canvas-Bw4CVzfw.js +1 -0
  64. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/capabilities-BCd4-zPF.js +1 -0
  65. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/commands-QeSqAbCt.js +1 -0
  66. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/components-tXMtIZNL.js +51 -0
  67. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/confirmation-CO2PHR_z.js +1 -0
  68. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/dom-6aoQn29n.js +1 -0
  69. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/drag-Dw8b_vO2.js +1 -0
  70. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/{editing-CjWbiCxv.js → editing-Cy-SaOyB.js} +1 -1
  71. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/edits-CqLBqir0.js +1 -0
  72. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/export-dialog-BjBskOe3.js +2 -0
  73. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/factories-Bw_iQrUL.js +1 -0
  74. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/id3-CSR0NCRI.js +2 -0
  75. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/import-DP49i4ke.js +1 -0
  76. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/import-error-CMz9sLPe.js +1 -0
  77. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/ingest-DsmIc415.js +1 -0
  78. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/jsx-runtime-B5yqYJvp.js +1 -0
  79. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/{media-Bwjxu-0U.js → media-DQw6vU_T.js} +1 -1
  80. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/menubar-D31srALX.js +1 -0
  81. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/meters-D0nZVEJs.js +1 -0
  82. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/mode-DEG6doKF.js +1 -0
  83. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/model-Duf9fszJ.js +2 -0
  84. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/model-DyAkLA69.js +1 -0
  85. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/notifications-DqWZNIrK.js +9 -0
  86. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/palette-HT83gWgL.js +1 -0
  87. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-B5Mvm6dg.js +7 -0
  88. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-BC90wyvd.js +1 -0
  89. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-Bw_ZJ2JI.js +3 -0
  90. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-DNS060Nt.js +3 -0
  91. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-DSgxIrEq.js +2 -0
  92. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-DgBttE5O.js +1 -0
  93. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-assets-_T2bHsHW.js +771 -0
  94. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-inspector-DfHvAt5X.js +2 -0
  95. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-nBZvHlkA.js +1 -0
  96. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-timeline-DsCpJVSt.js +327 -0
  97. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-viewport-CEhZwZ67.js +280 -0
  98. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/projects-2_tW9Do7.js +1 -0
  99. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/react-dom-1uB7Vbbb.js +1 -0
  100. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/schemas-CddYAOcj.js +64 -0
  101. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/session-BpFeKAI2.js +1 -0
  102. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/src-BLG3tYBa.js +2 -0
  103. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/styles-e2n2A_JN.js +284 -0
  104. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/supercomputer-CuV0zYKd.js +24 -0
  105. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/tabs-XeAgs9cs.js +1 -0
  106. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/toggle-DbNEaSIl.js +1 -0
  107. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/transport-C8Ll3qFl.js +69 -0
  108. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/transport-bar-Dv1LPFbu.js +1 -0
  109. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/useOpenInteractionType-HWSfSsp2.js +1 -0
  110. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/useRenderElement-D4SOg3N_.js +1 -0
  111. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/value-EB7YmAdS.js +1 -0
  112. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/writeback-support-fj5rA9k3.js +1 -0
  113. package/node_modules/@higgsfield/higgsedit/dist/editor/editor-B-WAkLt7.js +372 -0
  114. package/node_modules/@higgsfield/higgsedit/dist/higgsedit.mjs +39 -24
  115. package/node_modules/@higgsfield/higgsedit/dist/jsx/hooks.d.ts +26 -0
  116. package/node_modules/@higgsfield/higgsedit/dist/jsx/index.d.ts +17 -0
  117. package/node_modules/@higgsfield/higgsedit/dist/jsx/inspect.d.ts +42 -0
  118. package/node_modules/@higgsfield/higgsedit/dist/jsx/jsx-runtime.d.ts +28 -0
  119. package/node_modules/@higgsfield/higgsedit/dist/jsx/svg.d.ts +9 -0
  120. package/node_modules/@higgsfield/higgsedit/dist/jsx/time.d.ts +6 -0
  121. package/node_modules/@higgsfield/higgsedit/dist/jsx/types.d.ts +420 -0
  122. package/node_modules/@higgsfield/higgsedit/package.json +28 -20
  123. package/package.json +4 -3
  124. package/plugin/.codex-plugin/plugin.json +1 -1
  125. package/plugin/plugin.json +1 -1
  126. package/plugin/skills/video-editing/references/caption-titling.md +1 -1
  127. package/plugin/skills/video-editing/references/local-setup.md +3 -3
  128. package/node_modules/@higgsfield/higgsedit/dist/chunk-C6SASQHE.mjs +0 -424
  129. package/node_modules/@higgsfield/higgsedit/dist/chunk-FZ5U36SQ.mjs +0 -83
  130. package/node_modules/@higgsfield/higgsedit/dist/chunk-QLPCYN6K.mjs +0 -292
  131. package/node_modules/@higgsfield/higgsedit/dist/editor/assets/edit-drag-D2EV5ddd.css +0 -1
  132. package/node_modules/@higgsfield/higgsedit/dist/editor/assets/editor-CuRHT75g.css +0 -1
  133. package/node_modules/@higgsfield/higgsedit/dist/editor/assets/panel-DnuQD7ja.css +0 -1
  134. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/FieldControl-B0fenhBJ.js +0 -2
  135. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/IconChainLink1-Cwv1X7hi.js +0 -1
  136. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/IconEyeOpen-BqTT9_VV.js +0 -1
  137. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/IconEyeSlash-Whv58c1m.js +0 -1
  138. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/IconPencil-Dr17k_7e.js +0 -1
  139. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/IconPlay-BroH3ziH.js +0 -1
  140. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/IconPlusSmall-43T9aE3d.js +0 -1
  141. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/IconText1-BaP_p9DW.js +0 -1
  142. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/IconTrashCan-DX2w2AIC.js +0 -1
  143. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/ai-composer-C-l0eIdP.js +0 -560
  144. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/captions-Cd-bDG3G.js +0 -1
  145. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/clip-highlight-DpAvcA4x.js +0 -1
  146. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/components-e3ZbUVns.js +0 -1
  147. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/disposables-CwUPjcuA.js +0 -1
  148. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/drag-HLBkto5o.js +0 -1
  149. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/dropdown-BJ04G_X3.js +0 -1
  150. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/edit-drag-Bg6LggKC.js +0 -1
  151. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/edits-a2IixhrN.js +0 -1
  152. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/export-dialog-4I4gqI5V.js +0 -2
  153. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/face-tracker-DzVfjVOO.js +0 -1
  154. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/fit-imported-media-CaCB0x0b.js +0 -1
  155. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/generation-queue-DuL2F4-_.js +0 -1
  156. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/import-error-CMARA0Hy.js +0 -1
  157. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/jsx-runtime-B-hcVAMW.js +0 -1
  158. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/menubar-Bs26OdwP.js +0 -1
  159. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/meters-YEr9OQjq.js +0 -1
  160. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/paints-DS2Msf91.js +0 -67
  161. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/palette-CcS9IcAC.js +0 -1
  162. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-7M3uQokX.js +0 -1
  163. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-BBK1NyG-.js +0 -1
  164. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-CHZTs7By.js +0 -4
  165. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-DaSOa3MP.js +0 -2
  166. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-DlK3RYVo.js +0 -1
  167. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-Dst5OKWu.js +0 -2
  168. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-H_ZoDiKK.js +0 -2
  169. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-Rn9Z7Eek.js +0 -3
  170. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-assets-FAghGFG3.js +0 -678
  171. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-inspector-DEqULBNF.js +0 -260
  172. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-timeline-0GYNz1uc.js +0 -333
  173. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-viewport-DOWjJi5-.js +0 -317
  174. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/projects-BBJc7h5_.js +0 -2
  175. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/session-B9sZaFKC.js +0 -1
  176. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/supercomputer-CX-LCL6Y.js +0 -24
  177. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/tabs-CvKQ-eas.js +0 -1
  178. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/toggle-CrzrwiDZ.js +0 -1
  179. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/transport-BgRfk-Qq.js +0 -69
  180. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/transport-bar-C9nqAfE2.js +0 -1
  181. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/typography-C5-w9LOu-kD3uLKkf.js +0 -1
  182. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/useOpenInteractionType-DbrQ6Ehu.js +0 -1
  183. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/useRenderElement-bbxXdYq0.js +0 -1
  184. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/writeback-support-BZfNpkmB.js +0 -1
  185. package/node_modules/@higgsfield/higgsedit/dist/editor/editor-Csn2_T_e.js +0 -293
  186. package/node_modules/@higgsfield/higgsedit/dist/export-settings.mjs +0 -75
  187. package/node_modules/@higgsfield/higgsedit/dist/history.mjs +0 -295
  188. package/node_modules/@higgsfield/higgsedit/dist/media-upload.mjs +0 -381
  189. package/node_modules/@higgsfield/higgsedit/dist/proxy.mjs +0 -170
@@ -1 +0,0 @@
1
- import{a as e,n as t,r as n,t as r}from"./jsx-runtime-B-hcVAMW.js";import{a as i,c as a,i as o,l as s,n as c,r as l,s as u,t as d,u as f}from"./useRenderElement-bbxXdYq0.js";var p=n((e=>{var n=t();function r(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function i(){}var a={d:{f:i,r:function(){throw Error(r(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for(`react.portal`);function s(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var c=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function l(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(r(299));return s(e,t,null,n)},e.flushSync=function(e){var t=c.T,n=a.p;try{if(c.T=null,a.p=2,e)return e()}finally{c.T=t,a.p=n,a.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,a.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&a.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=l(n,t.crossOrigin),i=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?a.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:o}):n===`script`&&a.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=l(t.as,t.crossOrigin);a.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??a.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=l(n,t.crossOrigin);a.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=l(t.as,t.crossOrigin);a.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else a.d.m(e)}},e.requestFormReset=function(e){a.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return c.H.useFormState(e,t,n)},e.useFormStatus=function(){return c.H.useHostTransitionStatus()},e.version=`19.2.8`})),m=n(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=p()})),h=r(),g=({size:e=24,...t})=>(0,h.jsx)(`svg`,{width:e,height:e,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...t,children:(0,h.jsx)(h.Fragment,{children:(0,h.jsx)(`path`,{stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:1.5,d:`m20 20-3.873-3.873m0 0A7.25 7.25 0 1 0 5.874 5.874a7.25 7.25 0 0 0 10.253 10.253`})})}),_=e(t()),v={..._},y=v.useInsertionEffect,b=y&&y!==v.useLayoutEffect?y:e=>e();function x(e){let t=f(S).current;return t.next=e,b(t.effect),t.trampoline}function S(){let e={next:void 0,callback:C,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function C(){}var w=function(e){return e.disabled=`data-disabled`,e.valid=`data-valid`,e.invalid=`data-invalid`,e.touched=`data-touched`,e.dirty=`data-dirty`,e.filled=`data-filled`,e.focused=`data-focused`,e}({}),T={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},E={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},D={disabled:!1,...E},O={valid(e){return e===null?null:e?{[w.valid]:``}:{[w.invalid]:``}}},ee={invalid:void 0,name:void 0,validityData:{state:T,errors:[],error:``,value:``,initialValue:null},setValidityData:a,disabled:void 0,touched:E.touched,setTouched:a,dirty:E.dirty,setDirty:a,filled:E.filled,setFilled:a,focused:E.focused,setFocused:a,validate:()=>null,validationMode:`onSubmit`,validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:D,markedDirtyRef:{current:!1},registerFieldControl:a,validation:{getValidationProps:(e=u)=>e,getInputValidationProps:(e=u)=>e,inputRef:{current:null},commit:async()=>{}}},te=_.createContext(ee);function k(e=!0){let t=_.useContext(te);if(t.setValidityData===a&&!e)throw Error(s(28));return t}var A=_.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:a,validationMode:`onSubmit`,submitAttemptedRef:{current:!1}});function j(){return _.useContext(A)}var M=0;function N(e,t=`mui`){let[n,r]=_.useState(e),i=e||n;return _.useEffect(()=>{n??(M+=1,r(`${t}-${M}`))},[n,t]),i}var P=v.useId;function F(e,t){if(P!==void 0){let n=P();return e??(t?`${t}-${n}`:n)}return N(e,t)}function I(e){return F(e,`base-ui`)}var L=_.createContext({controlId:void 0,registerControlId:a,labelId:void 0,setLabelId:a,messageIds:[],setMessageIds:a,getDescriptionProps:e=>e});function ne(){return _.useContext(L)}var R=typeof document<`u`?_.useLayoutEffect:()=>{};function re(){return typeof window<`u`}function z(e){return ae(e)?(e.nodeName||``).toLowerCase():`#document`}function B(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ie(e){return((ae(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function ae(e){return re()?e instanceof Node||e instanceof B(e).Node:!1}function V(e){return re()?e instanceof Element||e instanceof B(e).Element:!1}function H(e){return re()?e instanceof HTMLElement||e instanceof B(e).HTMLElement:!1}function oe(e){return!re()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof B(e).ShadowRoot}function U(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=he(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function W(e){return/^(table|td|th)$/.test(z(e))}function G(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var se=/transform|translate|scale|rotate|perspective|filter/,ce=/paint|layout|strict|content/,le=e=>!!e&&e!==`none`,ue;function de(e){let t=V(e)?he(e):e;return le(t.transform)||le(t.translate)||le(t.scale)||le(t.rotate)||le(t.perspective)||!pe()&&(le(t.backdropFilter)||le(t.filter))||se.test(t.willChange||``)||ce.test(t.contain||``)}function fe(e){let t=_e(e);for(;H(t)&&!me(t);){if(de(t))return t;if(G(t))return null;t=_e(t)}return null}function pe(){return ue??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),ue}function me(e){return/^(html|body|#document)$/.test(z(e))}function he(e){return B(e).getComputedStyle(e)}function ge(e){return V(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function _e(e){if(z(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||oe(e)&&e.host||ie(e);return oe(t)?t.host:t}function ve(e){let t=_e(e);return me(t)?(e.ownerDocument||e).body:H(t)&&U(t)?t:ve(t)}function ye(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=ve(e),i=r===e.ownerDocument?.body,a=B(r);if(i){let e=be(a);return t.concat(a,a.visualViewport||[],U(r)?r:[],e&&n?ye(e):[])}return t.concat(r,ye(r,[],n))}function be(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function xe(e={}){let{id:t,implicit:n=!1,controlRef:r}=e,{controlId:i,registerControlId:o}=ne(),s=I(t),c=n?i:void 0,l=f(()=>Symbol(`labelable-control`)),u=_.useRef(!1),d=_.useRef(t!=null),p=x(()=>{u.current&&o!==a&&(u.current=!1,o(l.current,void 0))});return R(()=>{if(o===a)return;let e;if(n){let n=r?.current;e=V(n)&&n.closest(`label`)!=null?t??null:c??s}else if(t!=null)d.current=!0,e=t;else if(d.current)e=s;else{p();return}if(e===void 0){p();return}u.current=!0,o(l.current,e)},[t,r,c,o,n,s,l,p]),_.useEffect(()=>p,[p]),i??s}function K(e){return e?.ownerDocument||document}var Se=typeof navigator<`u`,Ce=Me(),we=Pe(),Te=Ne(),Ee=typeof CSS>`u`||!CSS.supports?!1:CSS.supports(`-webkit-backdrop-filter:none`),De=Ce.platform===`MacIntel`&&Ce.maxTouchPoints>1||/iP(hone|ad|od)|iOS/.test(Ce.platform);Se&&/firefox/i.test(Te);var Oe=Se&&/apple/i.test(navigator.vendor);Se&&/Edg/i.test(Te);var ke=Se&&/android/i.test(we)||/android/i.test(Te),Ae=Se&&we.toLowerCase().startsWith(`mac`)&&!navigator.maxTouchPoints,je=Te.includes(`jsdom/`);function Me(){if(!Se)return{platform:``,maxTouchPoints:-1};let e=navigator.userAgentData;return e?.platform?{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??-1}}function Ne(){if(!Se)return``;let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:e,version:t})=>`${e}/${t}`).join(` `):navigator.userAgent}function Pe(){if(!Se)return``;let e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??``}var Fe=`data-base-ui-focusable`,Ie=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`,Le=`ArrowLeft`,Re=`ArrowRight`,ze=`ArrowUp`,Be=`ArrowDown`;function q(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function J(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&oe(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Y(e){return`composedPath`in e?e.composedPath()[0]:e.target}function Ve(e,t){if(!V(e))return!1;let n=e;if(t.hasElement(n))return!n.hasAttribute(`data-trigger-disabled`);for(let[,e]of t.entries())if(J(e,n))return!e.hasAttribute(`data-trigger-disabled`);return!1}function He(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function Ue(e){return e.matches(`html,body`)}function We(e){return H(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function Ge(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${Ie}`)!=null}function Ke(e){return e?e.getAttribute(`role`)===`combobox`&&We(e):!1}function qe(e){if(!e||je)return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function Je(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}function Ye(e,t,n=!0){return e.filter(e=>e.parentId===t).flatMap(t=>[...!n||t.context?.open?[t]:[],...Ye(e,t.id,n)])}function Xe(e,t){let n=[],r=e.find(e=>e.id===t)?.parentId;for(;r;){let t=e.find(e=>e.id===r);r=t?.parentId,t&&(n=n.concat(t))}return n}function Ze(e){e.preventDefault(),e.stopPropagation()}function Qe(e){return`nativeEvent`in e}function $e(e){return e.pointerType===``&&e.isTrusted?!0:ke&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function et(e){return je?!1:!ke&&e.width===0&&e.height===0||ke&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType===`touch`}function tt(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}function nt(e){let t=e.type;return t===`click`||t===`mousedown`||t===`keydown`||t===`keyup`}var rt=[`top`,`right`,`bottom`,`left`],it=Math.min,at=Math.max,ot=Math.round,st=Math.floor,ct=e=>({x:e,y:e}),lt={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function ut(e,t,n){return at(e,it(t,n))}function dt(e,t){return typeof e==`function`?e(t):e}function ft(e){return e.split(`-`)[0]}function pt(e){return e.split(`-`)[1]}function mt(e){return e===`x`?`y`:`x`}function ht(e){return e===`y`?`height`:`width`}function gt(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function _t(e){return mt(gt(e))}function vt(e,t,n){n===void 0&&(n=!1);let r=pt(e),i=_t(e),a=ht(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Dt(o)),[o,Dt(o)]}function yt(e){let t=Dt(e);return[bt(e),t,bt(t)]}function bt(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var xt=[`left`,`right`],St=[`right`,`left`],Ct=[`top`,`bottom`],wt=[`bottom`,`top`];function Tt(e,t,n){switch(e){case`top`:case`bottom`:return n?t?St:xt:t?xt:St;case`left`:case`right`:return t?Ct:wt;default:return[]}}function Et(e,t,n,r){let i=pt(e),a=Tt(ft(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(bt)))),a}function Dt(e){let t=ft(e);return lt[t]+e.slice(t.length)}function Ot(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function kt(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Ot(e)}function At(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function jt(e,t,n){return Math.floor(e/t)!==n}function Mt(e,t){return t<0||t>=e.length}function Nt(e,t){return X(e.current,{disabledIndices:t})}function Pt(e,t){return X(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function X(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:i=1}={}){let a=t;do a+=n?-i:i;while(a>=0&&a<=e.length-1&&zt(e,a,r));return a}function Ft(e,{event:t,orientation:n,loopFocus:r,onLoop:i,rtl:a,cols:o,disabledIndices:s,minIndex:c,maxIndex:l,prevIndex:u,stopEvent:d=!1}){let f=u,p;if(t.key===`ArrowUp`?p=`up`:t.key===`ArrowDown`&&(p=`down`),p){let n=[],a=[],m=!1,h=0;{let t=null,r=-1;e.forEach((e,i)=>{if(e==null)return;h+=1;let o=e.closest(`[role="row"]`);o&&(m=!0),(o!==t||r===-1)&&(t=o,r+=1,n[r]=[]),n[r].push(i),a[i]=r})}let g=!1,_=0;if(m)for(let e of n){let t=e.length;t>_&&(_=t),t!==o&&(g=!0)}let v=g&&h<e.length,y=_||o,b=o=>{if(!g||u===-1)return;let c=a[u];if(c==null)return;let l=n[c].indexOf(u),d=o===`up`?-1:1;for(let o=c+d,f=0;f<n.length;f+=1,o+=d){if(o<0||o>=n.length){if(!r||v)return;if(o=o<0?n.length-1:0,i){let e=Math.min(l,n[o].length-1),r=i(t,u,n[o][e]??n[o][0]);o=a[r]??o}}let c=n[o];for(let t=Math.min(l,c.length-1);t>=0;--t){let n=c[t];if(!zt(e,n,s))return n}}},x=t=>{if(!v||u===-1)return;let n=u%y,i=t===`up`?-y:y,a=l-l%y,o=st(l/y)+1;for(let t=u-n+i,c=0;c<o;c+=1,t+=i){if(t<0||t>l){if(!r)return;t=t<0?a:0}let i=Math.min(t+y-1,l);for(let r=Math.min(t+n,i);r>=t;--r)if(!zt(e,r,s))return r}};d&&Ze(t);let S=b(p)??x(p);if(S!==void 0)f=S;else if(u===-1)f=p===`up`?l:c;else if(f=X(e,{startingIndex:u,amount:y,decrement:p===`up`,disabledIndices:s}),r){if(p===`up`&&(u-y<c||f<0)){let e=u%y,n=l%y,r=l-(n-e);f=n===e?l:n>e?r:r-y,i&&(f=i(t,u,f))}p===`down`&&u+y>l&&(f=X(e,{startingIndex:u%y-y,amount:y,disabledIndices:s}),i&&(f=i(t,u,f)))}Mt(e,f)&&(f=u)}if(n===`both`){let n=st(u/o);t.key===(a?`ArrowLeft`:`ArrowRight`)&&(d&&Ze(t),u%o===o-1?r&&(f=X(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f))):(f=X(e,{startingIndex:u,disabledIndices:s}),r&&jt(f,o,n)&&(f=X(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f)))),jt(f,o,n)&&(f=u)),t.key===(a?`ArrowRight`:`ArrowLeft`)&&(d&&Ze(t),u%o===0?r&&(f=X(e,{startingIndex:u+(o-u%o),decrement:!0,disabledIndices:s}),i&&(f=i(t,u,f))):(f=X(e,{startingIndex:u,decrement:!0,disabledIndices:s}),r&&jt(f,o,n)&&(f=X(e,{startingIndex:u+(o-u%o),decrement:!0,disabledIndices:s}),i&&(f=i(t,u,f)))),jt(f,o,n)&&(f=u));let c=st(l/o)===n;Mt(e,f)&&(r&&c?(f=t.key===(a?`ArrowRight`:`ArrowLeft`)?l:X(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f))):f=u)}return f}function It(e,t,n){let r=[],i=0;return e.forEach(({width:e,height:a},o)=>{let s=!1;for(n&&(i=0);!s;){let n=[];for(let r=0;r<e;r+=1)for(let e=0;e<a;e+=1)n.push(i+r+e*t);i%t+e<=t&&n.every(e=>r[e]==null)?(n.forEach(e=>{r[e]=o}),s=!0):i+=1}}),[...r]}function Lt(e,t,n,r,i){if(e===-1)return-1;let a=n.indexOf(e),o=t[e];switch(i){case`tl`:return a;case`tr`:return o?a+o.width-1:a;case`bl`:return o?a+(o.height-1)*r:a;case`br`:return n.lastIndexOf(e);default:return-1}}function Rt(e,t){return t.flatMap((t,n)=>e.includes(t)?[n]:[])}function zt(e,t,n){if(typeof n==`function`?n(t):n?.includes(t)??!1)return!0;let r=e[t];return r?!Vt(r)||!n&&(r.hasAttribute(`disabled`)||r.getAttribute(`aria-disabled`)===`true`):!1}function Bt(e){return e.visibility===`hidden`||e.visibility===`collapse`}function Vt(e,t=e?he(e):null){return!e||!e.isConnected||!t||Bt(t)?!1:typeof e.checkVisibility==`function`?e.checkVisibility():t.display!==`none`&&t.display!==`contents`}var Ht=`a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]`;function Ut(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return oe(n)?n.host:null}function Wt(e){for(let t of Array.from(e.children))if(z(t)===`summary`)return t;return null}function Gt(e,t){let n=Wt(t);return!!n&&(e===n||J(n,e))}function Kt(e){let t=e?z(e):``;return e!=null&&e.matches(Ht)&&(t!==`summary`||e.parentElement!=null&&z(e.parentElement)===`details`&&Wt(e.parentElement)===e)&&(t!==`details`||Wt(e)==null)&&(t!==`input`||e.type!==`hidden`)}function qt(e){if(!Kt(e)||!e.isConnected||e.matches(`:disabled`))return!1;for(let t=e;t;t=Ut(t)){let n=t!==e,r=z(t)===`slot`;if(t.hasAttribute(`inert`)||n&&z(t)===`details`&&!t.open&&!Gt(e,t)||t.hasAttribute(`hidden`)||!r&&!Jt(t,n))return!1}return!0}function Jt(e,t){let n=he(e);return t?n.display!==`none`:Vt(e,n)}function Yt(e){let t=e.tabIndex;if(t<0){let t=z(e);if(t===`details`||t===`audio`||t===`video`||H(e)&&e.isContentEditable)return 0}return t}function Xt(e){if(z(e)!==`input`)return null;let t=e;return t.type===`radio`&&t.name!==``?t:null}function Zt(e,t){let n=Xt(e);if(!n)return!0;let r=t.find(e=>{let t=Xt(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=Xt(e);return t?.name===n.name&&t.form===n.form})===n}function Qt(e){if(H(e)&&z(e)===`slot`){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return H(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function $t(e,t){Qt(e).forEach(e=>{Kt(e)&&t.push(e),$t(e,t)})}function en(e,t,n){Qt(e).forEach(e=>{H(e)&&e.matches(t)&&n.push(e),en(e,t,n)})}function tn(e){return qt(e)&&Yt(e)>=0}function nn(e){let t=[];return $t(e,t),t.filter(qt)}function rn(e){let t=nn(e);return t.filter(e=>Yt(e)>=0&&Zt(e,t))}function an(e,t){let n=rn(e),r=n.length;if(r===0)return;let i=q(K(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function on(e){return an(K(e).body,1)||e}function sn(e){return an(K(e).body,-1)||e}function cn(e,t){if(!e)return null;let n=rn(K(e).body),r=n.length;if(r===0)return null;let i=n.indexOf(e);return i===-1?null:n[(i+t+r)%r]}function ln(e){return cn(e,1)}function un(e){return cn(e,-1)}function dn(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!J(n,r)}function fn(e){rn(e).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function pn(e){let t=[];en(e,`[data-tabindex]`,t),t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute(`tabindex`,t):e.removeAttribute(`tabindex`)})}var mn=[];function hn(e){_.useEffect(e,mn)}var gn=0,_n=class e{static create(){return new e}currentId=gn;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=gn,t()},e)}isStarted(){return this.currentId!==gn}clear=()=>{this.currentId!==gn&&(clearTimeout(this.currentId),this.currentId=gn)};disposeEffect=()=>this.clear};function vn(){let e=f(_n.create).current;return hn(e.disposeEffect),e}var yn=null;globalThis.requestAnimationFrame;var bn=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n<t.length;n+=1)t[n]?.(e)};request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||=(requestAnimationFrame(this.tick),!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||(this.callbacks[t]=null,--this.callbacksCount)}},xn=class e{static create(){return new e}static request(e){return bn.request(e)}static cancel(e){return bn.cancel(e)}currentId=yn;request(e){this.cancel(),this.currentId=bn.request(()=>{this.currentId=yn,e()})}cancel=()=>{this.currentId!==yn&&(bn.cancel(this.currentId),this.currentId=yn)};disposeEffect=()=>this.cancel};function Sn(){let e=f(xn.create).current;return hn(e.disposeEffect),e}var Cn=e(m());function Z(e){return e==null?e:`current`in e?e.current:e}var wn=function(e){return e.startingStyle=`data-starting-style`,e.endingStyle=`data-ending-style`,e}({}),Tn={[wn.startingStyle]:``},En={[wn.endingStyle]:``},Dn={transitionStatus(e){return e===`starting`?Tn:e===`ending`?En:null}};function On(e,t=!1,n=!0){let r=Sn();return x((i,a=null)=>{r.cancel();let o=Z(e);if(o==null)return;let s=o,c=()=>{Cn.flushSync(i)};if(typeof s.getAnimations!=`function`||globalThis.BASE_UI_ANIMATIONS_DISABLED){i();return}function l(){Promise.all(s.getAnimations().map(e=>e.finished)).then(()=>{a?.aborted||c()}).catch(()=>{if(n){a?.aborted||c();return}let e=s.getAnimations();!a?.aborted&&e.length>0&&e.some(e=>e.pending||e.playState!==`finished`)&&l()})}if(t){let e=wn.startingStyle;if(!s.hasAttribute(e)){r.request(l);return}let t=new MutationObserver(()=>{s.hasAttribute(e)||(t.disconnect(),l())});t.observe(s,{attributes:!0,attributeFilter:[e]}),a?.addEventListener(`abort`,()=>t.disconnect(),{once:!0});return}r.request(l)})}function kn(e){let{enabled:t=!0,open:n,ref:r,onComplete:i}=e,a=x(i),o=On(r,n,!1);_.useEffect(()=>{if(!t)return;let e=new AbortController;return o(a,e.signal),()=>{e.abort()}},[t,n,a,o])}function An(e,t=!1,n=!1){let[r,i]=_.useState(e&&t?`idle`:void 0),[a,o]=_.useState(e);return e&&!a&&(o(!0),i(`starting`)),!e&&a&&r!==`ending`&&!n&&i(`ending`),!e&&!a&&r===`ending`&&i(void 0),R(()=>{if(!e&&a&&r!==`ending`&&n){let e=xn.request(()=>{i(`ending`)});return()=>{xn.cancel(e)}}},[e,a,r,n]),R(()=>{if(!e||t)return;let n=xn.request(()=>{i(void 0)});return()=>{xn.cancel(n)}},[t,e]),R(()=>{if(!e||!t)return;e&&a&&r!==`idle`&&i(`starting`);let n=xn.request(()=>{i(`idle`)});return()=>{xn.cancel(n)}},[t,e,a,r]),{mounted:a,setMounted:o,transitionStatus:r}}function jn({controlled:e,default:t,name:n,state:r=`value`}){let{current:i}=_.useRef(e!==void 0),[a,o]=_.useState(t);return[i?e:a,_.useCallback(e=>{i||o(e)},[])]}function Mn(e,t,n,r,i=!0){let{registerFieldControl:a}=k(),o=_.useRef(null);o.current||=Symbol(),R(()=>{let s=o.current;if(s&&i)return a(s,{controlRef:e,getValue:r,id:t,value:n}),()=>{a(s,void 0)}},[e,i,r,t,a,n])}var Nn=`none`,Pn=`trigger-press`,Fn=`trigger-hover`,In=`trigger-focus`,Ln=`outside-press`,Rn=`item-press`,zn=`close-press`,Bn=`focus-out`,Vn=`escape-key`,Hn=`list-navigation`,Un=`cancel-open`,Wn=`sibling-open`,Gn=`disabled`,Kn=`missing`,qn=`initial`,Jn=`imperative-action`;function Yn(e,t,n,r){let i=!1,a=!1,o=r??u;return{reason:e,event:t??new Event(`base-ui`),cancel(){i=!0},allowPropagation(){a=!0},get isCanceled(){return i},get isPropagationAllowed(){return a},trigger:n,...o}}var Xn=function(e){return e.open=`data-open`,e.closed=`data-closed`,e[e.startingStyle=wn.startingStyle]=`startingStyle`,e[e.endingStyle=wn.endingStyle]=`endingStyle`,e.anchorHidden=`data-anchor-hidden`,e.side=`data-side`,e.align=`data-align`,e}({}),Zn=function(e){return e.popupOpen=`data-popup-open`,e.pressed=`data-pressed`,e}({}),Qn={[Zn.popupOpen]:``},$n={[Zn.popupOpen]:``,[Zn.pressed]:``},er={[Xn.open]:``},tr={[Xn.closed]:``},nr={[Xn.anchorHidden]:``},rr={open(e){return e?Qn:null}},ir={open(e){return e?$n:null}},ar={open(e){return e?er:tr},anchorHidden(e){return e?nr:null}},or=_.createContext(void 0);function sr(e=!1){let t=_.useContext(or);if(t===void 0&&!e)throw Error(s(16));return t}function cr(e){let{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:a}=e,o=r&&t!==!1,s=r&&t===!1;return{props:_.useMemo(()=>{let e={onKeyDown(e){n&&t&&e.key!==`Tab`&&e.preventDefault()}};return r||(e.tabIndex=i,!a&&n&&(e.tabIndex=t?i:-1)),(a&&(t||o)||!a&&n)&&(e[`aria-disabled`]=n),a&&(!t||s)&&(e.disabled=n),e},[r,n,t,o,s,a,i])}}function lr(e={}){let{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:a=!0,composite:s}=e,c=_.useRef(null),l=sr(!0),u=s??l!==void 0,{props:d}=cr({focusableWhenDisabled:n,disabled:t,composite:u,tabIndex:r,isNativeButton:a}),f=_.useCallback(()=>{let e=c.current;ur(e)&&u&&t&&d.disabled===void 0&&e.disabled&&(e.disabled=!1)},[t,d.disabled,u]);return R(f,[f]),{getButtonProps:_.useCallback((e={})=>{let{onClick:n,onMouseDown:r,onKeyUp:s,onKeyDown:c,onPointerDown:l,...f}=e;return i({onClick(e){if(t){e.preventDefault();return}n?.(e)},onMouseDown(e){t||r?.(e)},onKeyDown(e){if(t||(o(e),c?.(e),e.baseUIHandlerPrevented))return;let r=e.target===e.currentTarget,i=e.currentTarget,s=ur(i),l=!a&&dr(i),d=r&&(a?s:!l),f=e.key===`Enter`,p=e.key===` `,m=i.getAttribute(`role`),h=m?.startsWith(`menuitem`)||m===`option`||m===`gridcell`;if(r&&u&&p){if(e.defaultPrevented&&h)return;e.preventDefault(),l||a&&s?(i.click(),e.preventBaseUIHandler()):d&&(n?.(e),e.preventBaseUIHandler());return}d&&(!a&&(p||f)&&e.preventDefault(),!a&&f&&n?.(e))},onKeyUp(e){if(!t){if(o(e),s?.(e),e.target===e.currentTarget&&a&&u&&ur(e.currentTarget)&&e.key===` `){e.preventDefault();return}e.baseUIHandlerPrevented||e.target===e.currentTarget&&!a&&!u&&e.key===` `&&n?.(e)}},onPointerDown(e){if(t){e.preventDefault();return}l?.(e)}},a?{type:`button`}:{role:`button`},d,f)},[t,d,u,a]),buttonRef:x(e=>{c.current=e,f()})}}function ur(e){return H(e)&&e.tagName===`BUTTON`}function dr(e){return!!(e?.tagName===`A`&&e?.href)}function Q(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function fr(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}function pr(e){let t=f(mr,e).current;return t.next=e,R(t.effect),t}function mr(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}var hr={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},gr={...hr,position:`fixed`,top:0,left:0},_r={...hr,position:`absolute`},vr=_.forwardRef(function(e,t){let[n,r]=_.useState();R(()=>{Oe&&r(`button`)},[]);let i={tabIndex:0,role:n};return(0,h.jsx)(`span`,{...e,ref:t,style:gr,"aria-hidden":!n||void 0,...i,"data-base-ui-focus-guard":``})});function yr(e){return`data-base-ui-${e}`}var br=0;function xr(e,t={}){let{preventScroll:n=!1,sync:r=!1,shouldFocus:i}=t;cancelAnimationFrame(br);function o(){(!i||i())&&e?.focus({preventScroll:n})}if(r)return o(),a;let s=requestAnimationFrame(o);return br=s,()=>{br===s&&(cancelAnimationFrame(s),br=0)}}var Sr={inert:new WeakMap,"aria-hidden":new WeakMap},Cr=`data-base-ui-inert`,wr={inert:new WeakSet,"aria-hidden":new WeakSet},Tr=new WeakMap,Er=0;function Dr(e){return wr[e]}function Or(e){return e?oe(e)?e.host:Or(e.parentNode):null}var kr=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=Or(t);return e.contains(n)?n:null}).filter(e=>e!=null),Ar=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},jr=(e,t,n)=>{let r=[],i=e=>{e&&!n.has(e)&&Array.from(e.children).forEach(e=>{z(e)!==`script`&&(t.has(e)?i(e):r.push(e))})};return i(e),r};function Mr(e,t,n,r,{mark:i=!0,markerIgnoreElements:a=[]}){let o=r?`inert`:n?`aria-hidden`:null,s=null,c=null,l=kr(t,e),u=i?kr(t,a):[],d=new Set(u),f=i?jr(t,Ar(l),new Set(l)).filter(e=>!d.has(e)):[],p=[],m=[];if(o){let e=Sr[o],n=Dr(o);c=n,s=e;let r=kr(t,Array.from(t.querySelectorAll(`[aria-live]`))),i=l.concat(r);jr(t,Ar(i),new Set(i)).forEach(t=>{let r=t.getAttribute(o),i=r!==null&&r!==`false`,a=(e.get(t)||0)+1;e.set(t,a),p.push(t),a===1&&i&&n.add(t),i||t.setAttribute(o,o===`inert`?``:`true`)})}return i&&f.forEach(e=>{let t=(Tr.get(e)||0)+1;Tr.set(e,t),m.push(e),t===1&&e.setAttribute(Cr,``)}),Er+=1,()=>{s&&p.forEach(e=>{let t=(s.get(e)||0)-1;s.set(e,t),t||(!c?.has(e)&&o&&e.removeAttribute(o),c?.delete(e))}),i&&m.forEach(e=>{let t=(Tr.get(e)||0)-1;Tr.set(e,t),t||e.removeAttribute(Cr)}),--Er,Er||(Sr.inert=new WeakMap,Sr[`aria-hidden`]=new WeakMap,wr.inert=new WeakSet,wr[`aria-hidden`]=new WeakSet,Tr=new WeakMap)}}function Nr(e,t={}){let{ariaHidden:n=!1,inert:r=!1,mark:i=!0,markerIgnoreElements:a=[]}=t,o=K(e[0]).body;return Mr(e,o,n,r,{mark:i,markerIgnoreElements:a})}var Pr={style:{transition:`none`}},Fr=`data-base-ui-click-trigger`,Ir={fallbackAxisSide:`none`},Lr={fallbackAxisSide:`end`},Rr={clipPath:`inset(50%)`,position:`fixed`,top:0,left:0},zr=_.createContext(null),Br=()=>_.useContext(zr),Vr=yr(`portal`);function Hr(e={}){let{ref:t,container:n,componentProps:r=u,elementProps:i}=e,a=F(),o=Br()?.portalNode,[s,c]=_.useState(null),[l,f]=_.useState(null),p=x(e=>{e!==null&&f(e)}),m=_.useRef(null);R(()=>{if(n===null){m.current&&(m.current=null,f(null),c(null));return}if(a==null)return;let e=(n&&(ae(n)?n:n.current))??o??document.body;if(e==null){m.current&&(m.current=null,f(null),c(null));return}m.current!==e&&(m.current=e,f(null),c(e))},[n,o,a]);let h=d(`div`,r,{ref:[t,p],props:[{id:a,[Vr]:``},i]});return{portalNode:l,portalSubtree:s&&h?Cn.createPortal(h,s):null}}var Ur=_.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,container:o,renderGuards:s,...c}=e,{portalNode:l,portalSubtree:u}=Hr({container:o,ref:t,componentProps:e,elementProps:c}),d=_.useRef(null),f=_.useRef(null),p=_.useRef(null),m=_.useRef(null),[g,v]=_.useState(null),y=_.useRef(!1),b=g?.modal,x=g?.open,S=typeof s==`boolean`?s:!!g&&!g.modal&&g.open&&!!l;_.useEffect(()=>{if(!l||b)return;function e(e){l&&e.relatedTarget&&dn(e)&&(e.type===`focusin`?y.current&&=(pn(l),!1):(fn(l),y.current=!0))}return fr(Q(l,`focusin`,e,!0),Q(l,`focusout`,e,!0))},[l,b]),_.useEffect(()=>{l&&x===!1&&(pn(l),y.current=!1)},[x,l]);let C=_.useMemo(()=>({beforeOutsideRef:d,afterOutsideRef:f,beforeInsideRef:p,afterInsideRef:m,portalNode:l,setFocusManagerState:v}),[l]);return(0,h.jsxs)(_.Fragment,{children:[u,(0,h.jsxs)(zr.Provider,{value:C,children:[S&&l&&(0,h.jsx)(vr,{"data-type":`outside`,ref:d,onFocus:e=>{dn(e,l)?p.current?.focus():sn(g?g.domReference:null)?.focus()}}),S&&l&&(0,h.jsx)(`span`,{"aria-owns":l.id,style:Rr}),l&&Cn.createPortal(a,l),S&&l&&(0,h.jsx)(vr,{"data-type":`outside`,ref:f,onFocus:e=>{dn(e,l)?m.current?.focus():(on(g?g.domReference:null)?.focus(),g?.closeOnFocusOut&&g?.onOpenChange(!1,Yn(`focus-out`,e.nativeEvent)))}})]})]})});function Wr(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}var Gr=class{nodesRef={current:[]};events=Wr();addNode(e){this.nodesRef.current.push(e)}removeNode(e){let t=this.nodesRef.current.findIndex(t=>t===e);t!==-1&&this.nodesRef.current.splice(t,1)}},Kr=_.createContext(null),qr=_.createContext(null),Jr=()=>_.useContext(Kr)?.id||null,Yr=e=>{let t=_.useContext(qr);return e??t};function Xr(e){let t=F(),n=Yr(e),r=Jr();return R(()=>{if(!t)return;let e={id:t,parentId:r};return n?.addNode(e),()=>{n?.removeNode(e)}},[n,t,r]),t}function Zr(e){let{children:t,id:n}=e,r=Jr();return(0,h.jsx)(Kr.Provider,{value:_.useMemo(()=>({id:n,parentId:r}),[n,r]),children:t})}function Qr(e){let{children:t,externalTree:n}=e,r=f(()=>n??new Gr).current;return(0,h.jsx)(qr.Provider,{value:r,children:t})}function $r(e,t){let n=B(Y(e));return e instanceof n.KeyboardEvent?`keyboard`:e instanceof n.FocusEvent?t||`keyboard`:`pointerType`in e?e.pointerType||`keyboard`:`touches`in e?`touch`:e instanceof n.MouseEvent?t||(e.detail===0?`keyboard`:`mouse`):``}var ei=20,ti=[];function ni(){ti=ti.filter(e=>e.deref()?.isConnected)}function ri(e){ni(),e&&z(e)!==`body`&&(ti.push(new WeakRef(e)),ti.length>ei&&(ti=ti.slice(-20)))}function ii(){return ni(),ti[ti.length-1]?.deref()}function ai(e){return e?tn(e)?e:rn(e)[0]||e:null}function oi(e,t){if(e.hasAttribute(`tabindex`)&&!e.hasAttribute(`data-tabindex`)||!t.current.includes(`floating`)&&!e.getAttribute(`role`)?.includes(`dialog`))return;let n=nn(e).filter(e=>{let t=e.getAttribute(`data-tabindex`)||``;return tn(e)||e.hasAttribute(`data-tabindex`)&&!t.startsWith(`-`)}),r=e.getAttribute(`tabindex`);t.current.includes(`floating`)||n.length===0?r!==`0`&&e.setAttribute(`tabindex`,`0`):(r!==`-1`||e.hasAttribute(`data-tabindex`)&&e.getAttribute(`data-tabindex`)!==`-1`)&&(e.setAttribute(`tabindex`,`-1`),e.setAttribute(`data-tabindex`,`-1`))}function si(e){let{context:t,children:n,disabled:r=!1,initialFocus:i=!0,returnFocus:a=!0,restoreFocus:o=!1,modal:s=!0,closeOnFocusOut:c=!0,openInteractionType:u=``,nextFocusableElement:d,previousFocusableElement:f,beforeContentFocusGuardRef:p,externalTree:m,getInsideElements:g}=e,v=`rootStore`in t?t.rootStore:t,y=v.useState(`open`),b=v.useState(`domReferenceElement`),S=v.useState(`floatingElement`),{events:C,dataRef:w}=v.context,T=x(()=>w.current.floatingContext?.nodeId),E=i===!1,D=Ke(b)&&E,O=_.useRef([`content`]),ee=pr(i),te=pr(a),k=pr(u),A=Yr(m),j=Br(),M=_.useRef(!1),N=_.useRef(!1),P=_.useRef(!1),F=_.useRef(null),I=_.useRef(``),L=_.useRef(``),ne=_.useRef(null),re=_.useRef(null),z=l(ne,p,j?.beforeInsideRef),B=l(re,j?.afterInsideRef),ie=vn(),ae=vn(),V=Sn(),oe=j!=null,U=Je(S),W=x((e=U)=>e?rn(e):[]),G=x(()=>g?.().filter(e=>e!=null)??[]);_.useEffect(()=>{if(r||!s)return;function e(e){e.key===`Tab`&&J(U,q(K(U)))&&W().length===0&&!D&&Ze(e)}return Q(K(U),`keydown`,e)},[r,U,s,D,W]),_.useEffect(()=>{if(r||!y)return;let e=K(U);function t(){P.current=!1}function n(e){let t=Y(e),n=G(),r=J(S,t)||J(b,t)||J(j?.portalNode,t)||n.some(e=>e===t||J(e,t));P.current=!r,L.current=e.pointerType||`keyboard`,t?.closest(`[data-base-ui-click-trigger]`)&&(N.current=!0)}function i(){L.current=`keyboard`}return fr(Q(e,`pointerdown`,n,!0),Q(e,`pointerup`,t,!0),Q(e,`pointercancel`,t,!0),Q(e,`keydown`,i,!0))},[r,S,b,U,y,j,G]),_.useEffect(()=>{if(r||!c)return;let e=K(U);function t(){N.current=!0,ae.start(0,()=>{N.current=!1})}function n(e){let t=Y(e);tn(t)&&(F.current=t)}function i(t){let n=t.relatedTarget,r=t.currentTarget,i=Y(t);queueMicrotask(()=>{let a=T(),c=v.context.triggerElements,l=G(),u=n?.hasAttribute(yr(`focus-guard`))&&[ne.current,re.current,j?.beforeInsideRef.current,j?.afterInsideRef.current,j?.beforeOutsideRef.current,j?.afterOutsideRef.current,Z(f),Z(d)].includes(n),p=!(J(b,n)||J(S,n)||J(n,S)||J(j?.portalNode,n)||l.some(e=>e===n||J(e,n))||n!=null&&c.hasElement(n)||c.hasMatchingElement(e=>J(e,n))||u||A&&(Ye(A.nodesRef.current,a).find(e=>J(e.context?.elements.floating,n)||J(e.context?.elements.domReference,n))||Xe(A.nodesRef.current,a).find(e=>[e.context?.elements.floating,Je(e.context?.elements.floating)].includes(n)||e.context?.elements.domReference===n)));if(r===b&&U&&oi(U,O),o&&r!==b&&!Vt(i)&&q(e)===e.body){if(H(U)&&(U.focus(),o===`popup`)){V.request(()=>{U.focus()});return}let e=W(),t=F.current,n=(t&&e.includes(t)?t:null)||e[e.length-1]||U;H(n)&&n.focus()}if(w.current.insideReactTree){w.current.insideReactTree=!1;return}(D||!s)&&n&&p&&!N.current&&(D||n!==ii())&&(M.current=!0,v.setOpen(!1,Yn(Bn,t)))})}function a(){P.current||(w.current.insideReactTree=!0,ie.start(0,()=>{w.current.insideReactTree=!1}))}let l=H(b)?b:null;if(S||l)return fr(l&&Q(l,`focusout`,i),l&&Q(l,`pointerdown`,t),S&&Q(S,`focusin`,n),S&&Q(S,`focusout`,i),S&&j&&Q(S,`focusout`,a,!0))},[r,b,S,U,s,A,j,v,c,o,W,D,T,O,w,ie,ae,V,d,f,G]),_.useEffect(()=>{if(r||!S||!y)return;let e=Array.from(j?.portalNode?.querySelectorAll(`[${yr(`portal`)}]`)||[]),t=(A?Xe(A.nodesRef.current,T()):[]).find(e=>Ke(e.context?.elements.domReference||null))?.context?.elements.domReference,n=Nr([S,...e,ne.current,re.current,j?.beforeOutsideRef.current,j?.afterOutsideRef.current,...G(),t,Z(f),Z(d),D?b:null].filter(e=>e!=null),{ariaHidden:s||D,mark:!1}),i=Nr([S,...e].filter(e=>e!=null));return()=>{i(),n()}},[y,r,b,S,s,j,D,A,T,d,f,G]),R(()=>{if(!y||r||!H(U))return;let e=K(U),t=q(e);queueMicrotask(()=>{let n=ee.current,r=typeof n==`function`?n(k.current||``):n;if(r===void 0||r===!1||J(U,t))return;let i=null,a=()=>(i??=W(U),i[0]||U),o;o=r===!0||r===null?a():Z(r),o||=a();let s=J(U,q(e));xr(o,{preventScroll:o===U,shouldFocus(){if(s)return!0;let t=q(e);return!(t!==o&&J(U,t))}})})},[r,y,U,W,ee,k]),R(()=>{if(r||!U)return;let e=K(U);ri(q(e));function t(e){if(e.open||(I.current=$r(e.nativeEvent,L.current)),e.reason===`trigger-hover`&&e.nativeEvent.type===`mouseleave`&&(M.current=!0),e.reason===`outside-press`){if(e.nested)M.current=!1;else if($e(e.nativeEvent)||et(e.nativeEvent))M.current=!1;else{let e=!1;K(U).createElement(`div`).focus({get preventScroll(){return e=!0,!1}}),e?M.current=!1:M.current=!0}}}C.on(`openchange`,t);function n(){let e=te.current,t=typeof e==`function`?e(I.current):e;if(t===void 0||t===!1)return null;if(t===null&&(t=!0),typeof t==`boolean`)return b?.isConnected?b:ii()||null;let n=b?.isConnected?b:ii();return Z(t)||n||null}return()=>{C.off(`openchange`,t);let r=q(e),i=G(),a=J(S,r)||i.some(e=>e===r||J(e,r))||A&&Ye(A.nodesRef.current,T(),!1).some(e=>J(e.context?.elements.floating,r)),o=te.current,s=n();queueMicrotask(()=>{let t=ai(s),n=typeof o!=`boolean`;o&&!M.current&&H(t)&&(n||t===r||r===e.body||a)&&t.focus({preventScroll:!0}),M.current=!1})}},[r,S,U,te,C,A,b,T,G]),R(()=>{if(!Ee||y||!S)return;let e=q(K(S));H(e)&&We(e)&&J(S,e)&&e.blur()},[y,S]),R(()=>{if(!r&&j)return j.setFocusManagerState({modal:s,closeOnFocusOut:c,open:y,onOpenChange:v.setOpen,domReference:b}),()=>{j.setFocusManagerState(null)}},[r,j,s,y,v,c,b]),R(()=>{if(!r&&U)return oi(U,O),()=>{queueMicrotask(ni)}},[r,U,O]);let se=!r&&(!s||!D)&&(oe||s);return(0,h.jsxs)(_.Fragment,{children:[se&&(0,h.jsx)(vr,{"data-type":`inside`,ref:z,onFocus:e=>{if(s){let e=W();xr(e[e.length-1])}else j?.portalNode&&(M.current=!1,dn(e,j.portalNode)?on(b)?.focus():Z(f??j.beforeOutsideRef)?.focus())}}),n,se&&(0,h.jsx)(vr,{"data-type":`inside`,ref:B,onFocus:e=>{s?xr(W()[0]):j?.portalNode&&(c&&(M.current=!0),dn(e,j.portalNode)?sn(b)?.focus():Z(d??j.afterOutsideRef)?.focus())}})]})}function ci(e,t={}){let{enabled:n=!0,event:r=`click`,toggle:i=!0,ignoreMouse:a=!1,stickIfOpen:o=!0,touchOpenDelay:s=0,reason:c=Pn}=t,l=`rootStore`in e?e.rootStore:e,d=l.context.dataRef,f=_.useRef(void 0),p=Sn(),m=vn(),h=_.useMemo(()=>{function e(e,t,n,r){let i=Yn(c,t,n);e&&r===`touch`&&s>0?m.start(s,()=>{l.setOpen(!0,i)}):l.setOpen(e,i)}function t(e,t,n){let r=d.current.openEvent,a=l.select(`domReferenceElement`)!==t;return e&&a||!e||!i?!0:r&&o?!n(r.type):!1}return{onPointerDown(e){f.current=e.pointerType},onMouseDown(n){let i=f.current,o=n.nativeEvent,s=l.select(`open`);if(n.button!==0||r===`click`||tt(i,!0)&&a)return;let c=t(s,n.currentTarget,e=>e===`click`||e===`mousedown`),u=Y(o);if(We(u)){e(c,o,u,i);return}let d=n.currentTarget;p.request(()=>{e(c,o,d,i)})},onClick(n){if(r===`mousedown-only`)return;let i=f.current;if(r===`mousedown`&&i){f.current=void 0;return}tt(i,!0)&&a||e(t(l.select(`open`),n.currentTarget,e=>e===`click`||e===`mousedown`||e===`keydown`||e===`keyup`),n.nativeEvent,n.currentTarget,i)},onKeyDown(){f.current=void 0}}},[d,r,a,c,l,o,i,p,m,s]);return _.useMemo(()=>n?{reference:h}:u,[n,h])}var li={intentional:`onClick`,sloppy:`onPointerDown`};function ui(){return!1}function di(e){return{escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0}}function fi(e,t={}){let{enabled:n=!0,escapeKey:r=!0,outsidePress:i=!0,outsidePressEvent:a=`sloppy`,referencePress:o=ui,referencePressEvent:s=`sloppy`,bubbles:c,externalTree:l}=t,u=`rootStore`in e?e.rootStore:e,d=u.useState(`open`),f=u.useState(`floatingElement`),{dataRef:p}=u.context,m=Yr(l),h=x(typeof i==`function`?i:()=>!1),g=typeof i==`function`?h:i,v=g!==!1,y=x(()=>a),{escapeKey:b,outsidePress:S}=di(c),C=_.useRef(!1),w=_.useRef(!1),T=_.useRef(!1),E=_.useRef(!1),D=_.useRef(``),O=_.useRef(null),ee=vn(),te=vn(),k=x(()=>{te.clear(),p.current.insideReactTree=!1}),A=x(e=>{let t=p.current.floatingContext?.nodeId;return(m?Ye(m.nodesRef.current,t):[]).some(t=>t.context?.open&&!t.context.dataRef.current[e])}),j=x(e=>He(e,u.select(`floatingElement`))||He(e,u.select(`domReferenceElement`))),M=x(e=>{o()&&u.setOpen(!1,Yn(Pn,e.nativeEvent))}),N=x(e=>{if(!d||!n||!r||e.key!==`Escape`||E.current||!b&&A(`__escapeKeyBubbles`))return;let t=Yn(Vn,Qe(e)?e.nativeEvent:e);u.setOpen(!1,t),t.isCanceled||e.preventDefault(),!b&&!t.isPropagationAllowed&&e.stopPropagation()}),P=x(()=>{p.current.insideReactTree=!0,te.start(0,k)}),F=x(e=>{if(!d||!n||e.button!==0)return;let t=Y(e.nativeEvent);J(u.select(`floatingElement`),t)&&(C.current||(C.current=!0,w.current=!1))}),I=x(e=>{d&&n&&(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&C.current&&(w.current=!0)});_.useEffect(()=>{if(!d||!n)return;p.current.__escapeKeyBubbles=b,p.current.__outsidePressBubbles=S;let e=new _n,t=new _n;function i(){e.clear(),E.current=!0}function a(){e.start(pe()?5:0,()=>{E.current=!1})}function o(){T.current=!0,t.start(0,()=>{T.current=!1})}function s(){C.current=!1,w.current=!1}function c(){let e=D.current,t=e===`pen`||!e?`mouse`:e,n=y(),r=typeof n==`function`?n():n;return typeof r==`string`?r:r[t]}function l(e){let t=c();return t===`intentional`&&e.type!==`click`||t===`sloppy`&&e.type===`click`}function h(e){let t=p.current.floatingContext?.nodeId,n=m&&Ye(m.nodesRef.current,t).some(t=>He(e,t.context?.elements.floating));return j(e)||n}function _(e){if(l(e)){e.type!==`click`&&!j(e)&&(t.clear(),T.current=!1),k();return}if(p.current.insideReactTree){k();return}let n=Y(e),r=`[${yr(`inert`)}]`,i=V(n)?n.getRootNode():null,a=Array.from((oe(i)?i:K(u.select(`floatingElement`))).querySelectorAll(r)),o=u.context.triggerElements;if(n&&(o.hasElement(n)||o.hasMatchingElement(e=>J(e,n))))return;let s=V(n)?n:null;for(;s&&!me(s);){let e=_e(s);if(me(e)||!V(e))break;s=e}if(!(a.length&&V(n)&&!Ue(n)&&!J(n,u.select(`floatingElement`))&&a.every(e=>!J(s,e)))){if(H(n)&&!(`touches`in e)){let t=me(n),r=he(n),i=/auto|scroll/,a=t||i.test(r.overflowX),o=t||i.test(r.overflowY),s=a&&n.clientWidth>0&&n.scrollWidth>n.clientWidth,c=o&&n.clientHeight>0&&n.scrollHeight>n.clientHeight,l=r.direction===`rtl`,u=c&&(l?e.offsetX<=n.offsetWidth-n.clientWidth:e.offsetX>n.clientWidth),d=s&&e.offsetY>n.clientHeight;if(u||d)return}if(!h(e)){if(c()===`intentional`&&T.current){t.clear(),T.current=!1;return}(typeof g!=`function`||g(e))&&(A(`__outsidePressBubbles`)||(u.setOpen(!1,Yn(Ln,e)),k()))}}}function x(e){c()===`sloppy`&&e.pointerType!==`touch`&&u.select(`open`)&&n&&!j(e)&&_(e)}function te(e){if(c()!==`sloppy`||!u.select(`open`)||!n||j(e))return;let t=e.touches[0];t&&(O.current={startTime:Date.now(),startX:t.clientX,startY:t.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},ee.start(1e3,()=>{O.current&&(O.current.dismissOnTouchEnd=!1,O.current.dismissOnMouseDown=!1)}))}function M(e,t){let n=Y(e);if(!n)return;let r=Q(n,e.type,()=>{t(e),r()})}function P(e){D.current=`touch`,M(e,te)}function F(e){ee.clear(),e.type===`pointerdown`&&(D.current=e.pointerType),(e.type!==`mousedown`||!O.current||O.current.dismissOnMouseDown)&&M(e,e=>{e.type===`pointerdown`?x(e):_(e)})}function I(e){if(!C.current)return;let n=w.current;if(s(),c()===`intentional`){if(e.type===`pointercancel`){n&&o();return}if(!h(e)){if(n){o();return}(typeof g!=`function`||g(e))&&(t.clear(),T.current=!0,k())}}}function L(e){if(c()!==`sloppy`||!O.current||j(e))return;let t=e.touches[0];if(!t)return;let n=Math.abs(t.clientX-O.current.startX),r=Math.abs(t.clientY-O.current.startY),i=Math.sqrt(n*n+r*r);i>5&&(O.current.dismissOnTouchEnd=!0),i>10&&(_(e),ee.clear(),O.current=null)}function ne(e){M(e,L)}function R(e){c()===`sloppy`&&O.current&&!j(e)&&(O.current.dismissOnTouchEnd&&_(e),ee.clear(),O.current=null)}function re(e){M(e,R)}let z=K(f),B=fr(r&&fr(Q(z,`keydown`,N),Q(z,`compositionstart`,i),Q(z,`compositionend`,a)),v&&fr(Q(z,`click`,F,!0),Q(z,`pointerdown`,F,!0),Q(z,`pointerup`,I,!0),Q(z,`pointercancel`,I,!0),Q(z,`mousedown`,F,!0),Q(z,`mouseup`,I,!0),Q(z,`touchstart`,P,!0),Q(z,`touchmove`,ne,!0),Q(z,`touchend`,re,!0)));return()=>{B(),e.clear(),t.clear(),s(),T.current=!1}},[p,f,r,v,g,d,n,b,S,N,k,y,A,j,m,u,ee]),_.useEffect(k,[g,k]);let L=_.useMemo(()=>({onKeyDown:N,[li[s]]:M,...s!==`intentional`&&{onClick:M}}),[N,M,s]),ne=_.useMemo(()=>({onKeyDown:N,onPointerDown:I,onMouseDown:I,onClickCapture:P,onMouseDownCapture(e){P(),F(e)},onPointerDownCapture(e){P(),F(e)},onMouseUpCapture:P,onTouchEndCapture:P,onTouchMoveCapture:P}),[N,P,F,I]);return _.useMemo(()=>n?{reference:L,floating:ne,trigger:L}:{},[n,L,ne])}var $=(e,t,n,r,i,a,...o)=>{if(o.length>0)throw Error(s(1));let c;if(e&&t&&n&&r&&i&&a)c=(o,s,c,l)=>a(e(o,s,c,l),t(o,s,c,l),n(o,s,c,l),r(o,s,c,l),i(o,s,c,l),s,c,l);else if(e&&t&&n&&r&&i)c=(a,o,s,c)=>i(e(a,o,s,c),t(a,o,s,c),n(a,o,s,c),r(a,o,s,c),o,s,c);else if(e&&t&&n&&r)c=(i,a,o,s)=>r(e(i,a,o,s),t(i,a,o,s),n(i,a,o,s),a,o,s);else if(e&&t&&n)c=(r,i,a,o)=>n(e(r,i,a,o),t(r,i,a,o),i,a,o);else if(e&&t)c=(n,r,i,a)=>t(e(n,r,i,a),r,i,a);else if(e)c=e;else throw Error(`Missing arguments`);return c},pi=n((e=>{var n=t();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=n.useState,o=n.useEffect,s=n.useLayoutEffect,c=n.useDebugValue;function l(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,l=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&l({inst:i})},[e,n,t]),o(function(){return u(i)&&l({inst:i}),e(function(){u(i)&&l({inst:i})})},[e]),c(n),n}function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch{return!0}}function d(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?d:l;e.useSyncExternalStore=n.useSyncExternalStore===void 0?f:n.useSyncExternalStore})),mi=n(((e,t)=>{t.exports=pi()})),hi=n((e=>{var n=t(),r=mi();function i(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var a=typeof Object.is==`function`?Object.is:i,o=r.useSyncExternalStore,s=n.useRef,c=n.useEffect,l=n.useMemo,u=n.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=s(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l(function(){function e(e){if(!o){if(o=!0,s=e,e=r(e),i!==void 0&&f.hasValue){var t=f.value;if(i(t,e))return c=t}return c=e}if(t=c,a(s,e))return t;var n=r(e);return i!==void 0&&i(t,n)?(s=e,t):(s=e,c=n)}var o=!1,s,c,l=n===void 0?null:n;return[function(){return e(t())},l===null?void 0:function(){return e(l())}]},[t,n,r,i]);var p=o(e,d[0],d[1]);return c(function(){f.hasValue=!0,f.value=p},[p]),u(p),p}})),gi=n(((e,t)=>{t.exports=hi()})),_i=mi(),vi=gi(),yi=[],bi=void 0;function xi(){return bi}function Si(e){yi.push(e)}function Ci(e){let t=(t,n)=>{let r=f(Ti).current,i;try{bi=r;for(let e of yi)e.before(r);i=e(t,n);for(let e of yi)e.after(r);r.didInitialize=!0}finally{bi=void 0}return i};return t.displayName=e.displayName||e.name,t}function wi(e){return _.forwardRef(Ci(e))}function Ti(){return{didInitialize:!1}}var Ei=c(19)?ki:Ai;function Di(e,t,n,r,i){return Ei(e,t,n,r,i)}function Oi(e,t,n,r,i){let a=_.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,_i.useSyncExternalStore)(e.subscribe,a,a)}Si({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){let r=e.syncHooks[n],i=r.selector(r.store.state,r.a1,r.a2,r.a3);(r.didChange||!Object.is(r.value,i))&&(t=!0,r.value=i,r.didChange=!1)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,_i.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function ki(e,t,n,r,i){let a=xi();if(!a)return Oi(e,t,n,r,i);let o=a.syncIndex;a.syncIndex+=1;let s;return a.didInitialize?(s=a.syncHooks[o],(s.store!==e||s.selector!==t||!Object.is(s.a1,n)||!Object.is(s.a2,r)||!Object.is(s.a3,i))&&(s.store!==e&&(a.didChangeStore=!0),s.store=e,s.selector=t,s.a1=n,s.a2=r,s.a3=i,s.didChange=!0)):(s={store:e,selector:t,a1:n,a2:r,a3:i,value:t(e.getSnapshot(),n,r,i),didChange:!1},a.syncHooks.push(s)),s.value}function Ai(e,t,n,r,i){return(0,vi.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var ji=class{constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t])){this.setState({...this.state,...e});return}}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return Di(this,e,t,n,r)}},Mi=class extends ji{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){_.useDebugValue(e);let n=this;R(()=>{n.state[e]!==t&&n.set(e,t)},[n,e,t])}useSyncedValueWithCleanup(e,t){let n=this;R(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this;R(()=>{t.update(e)},[t,...Object.values(e)])}useControlledProp(e,t){_.useDebugValue(e);let n=this,r=t!==void 0;R(()=>{r&&!Object.is(n.state[e],t)&&n.setState({...n.state,[e]:t})},[n,e,t,r])}select(e,t,n,r){let i=this.selectors[e];return i(this.state,t,n,r)}useState(e,t,n,r){return _.useDebugValue(e),Di(this,this.selectors[e],t,n,r)}useContextCallback(e,t){_.useDebugValue(e);let n=x(t??a);this.context[e]=n}useStateSetter(e){let t=_.useRef(void 0);return t.current===void 0&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n;n=typeof e==`function`?e:this.selectors[e];let r=n(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}},Ni={open:$(e=>e.open),transitionStatus:$(e=>e.transitionStatus),domReferenceElement:$(e=>e.domReferenceElement),referenceElement:$(e=>e.positionReference??e.referenceElement),floatingElement:$(e=>e.floatingElement),floatingId:$(e=>e.floatingId)},Pi=class extends Mi{constructor(e){let{syncOnly:t,nested:n,onOpenChange:r,triggerElements:i,...a}=e;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:Wr(),nested:n,triggerElements:i},Ni),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||t!=null&&nt(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>{this.syncOpenEvent(e,t.event);let n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit(`openchange`,n)};setOpen=(e,t)=>{if(this.syncOnly){this.context.onOpenChange?.(e,t);return}this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}};function Fi(e){let{popupStore:t,treatPopupAsFloatingElement:n=!1,floatingRootContext:r,floatingId:i,nested:a,onOpenChange:o}=e,s=t.useState(`open`),c=t.useState(`activeTriggerElement`),l=t.useState(n?`popupElement`:`positionerElement`),u=t.context.triggerElements,d=o,f=_.useRef(null);r===void 0&&f.current===null&&(f.current=new Pi({open:s,transitionStatus:void 0,referenceElement:c,floatingElement:l,triggerElements:u,onOpenChange:d,floatingId:i,syncOnly:!0,nested:a}));let p=r??f.current;return t.useSyncedValue(`floatingId`,i),R(()=>{let e={open:s,floatingId:i,referenceElement:c,floatingElement:l};V(c)&&(e.domReferenceElement=c),p.state.positionReference===p.state.referenceElement&&(e.positionReference=c),p.update(e)},[s,i,c,l,p]),p.context.onOpenChange=d,p.context.nested=a,p}var Ii={tabIndex:-1,[Fe]:``};function Li(e,t,n=!1){let r=F(),i=Jr()!=null,a=_.useRef(null);e===void 0&&a.current===null&&(a.current=t(r,i));let o=e??a.current;return Fi({popupStore:o,treatPopupAsFloatingElement:n,floatingRootContext:o.state.floatingRootContext,floatingId:r,nested:i,onOpenChange:o.setOpen}),{store:o,internalStore:a.current}}function Ri(e,t){let n=_.useRef(null),r=_.useRef(null);return _.useCallback(i=>{if(e===void 0)return;let a=!1;if(n.current!==null){let e=n.current,i=r.current,o=t.context.triggerElements.getById(e);i&&o===i&&(t.context.triggerElements.delete(e),a=!0),n.current=null,r.current=null}if(i!==null&&(n.current=e,r.current=i,t.context.triggerElements.add(e,i),a=!0),a){let e=t.context.triggerElements.size;t.select(`open`)&&t.state.triggerCount!==e&&t.set(`triggerCount`,e)}},[t,e])}function zi(e,t,n){let r=n?.id??null;(r||t)&&(e.activeTriggerId=r,e.activeTriggerElement=n??null)}function Bi(e,t,n,r){let i=n.useState(`isMountedByTrigger`,e),a=Ri(e,n),o=x(t=>{if(a(t),!t)return;let i=n.select(`open`),o=n.select(`activeTriggerId`);if(o===e){n.update({activeTriggerElement:t,...i?r:null});return}o==null&&i&&n.update({activeTriggerId:e,activeTriggerElement:t,...r})});return R(()=>{i&&n.update({activeTriggerElement:t.current,...r})},[i,n,t,...Object.values(r)]),{registerTrigger:o,isMountedByThisTrigger:i}}function Vi(e){let t=e.useState(`open`);R(()=>{if(!t){e.state.triggerCount!==0&&e.set(`triggerCount`,0);return}let n=e.context.triggerElements.size,r={};if(e.state.triggerCount!==n&&(r.triggerCount=n),!e.select(`activeTriggerId`)&&n===1){let t=e.context.triggerElements.entries().next();if(!t.done){let[e,n]=t.value;r.activeTriggerId=e,r.activeTriggerElement=n}}(r.triggerCount!==void 0||r.activeTriggerId!==void 0)&&e.update(r)},[t,e,e.useState(`triggerCount`)])}function Hi(e,t,n){let{mounted:r,setMounted:i,transitionStatus:a}=An(e);t.useSyncedValues({mounted:r,transitionStatus:a});let o=x(()=>{i(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)}),s=t.useState(`preventUnmountingOnClose`);return kn({enabled:r&&!e&&!s,open:e,ref:t.context.popupRef,onComplete(){e||o()}}),{forceUnmount:o,transitionStatus:a}}function Ui(e,t){e.useSyncedValues(t),R(()=>()=>{e.update({activeTriggerProps:u,inactiveTriggerProps:u,popupProps:u})},[e])}function Wi(e,t){R(()=>{!t&&e.state.openMethod!==null&&e.set(`openMethod`,null)},[t,e]),R(()=>()=>{e.state.openMethod!==null&&e.set(`openMethod`,null)},[e])}var Gi=class{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(e,t){let n=this.idMap.get(e);n!==t&&(n!==void 0&&this.elementsSet.delete(n),this.elementsSet.add(t),this.idMap.set(e,t))}delete(e){let t=this.idMap.get(e);t&&(this.elementsSet.delete(t),this.idMap.delete(e))}hasElement(e){return this.elementsSet.has(e)}hasMatchingElement(e){for(let t of this.elementsSet)if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}};function Ki(){return new Pi({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new Gi,floatingId:void 0,syncOnly:!1,nested:!1,onOpenChange:void 0})}function qi(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:Ki(),floatingId:void 0,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:u,inactiveTriggerProps:u,popupProps:u}}function Ji(e,t,n=!1){return new Pi({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:n,onOpenChange:void 0})}var Yi=$(e=>e.triggerIdProp??e.activeTriggerId),Xi=$(e=>e.openProp??e.open),Zi=$(e=>(e.popupElement?.id??e.floatingId)||void 0);function Qi(e,t){return t!==void 0&&Xi(e)&&Yi(e)===t}function $i(e,t){return Qi(e,t)?!0:t!==void 0&&Xi(e)&&Yi(e)==null&&e.triggerCount===1}var ea={open:Xi,mounted:$(e=>e.mounted),transitionStatus:$(e=>e.transitionStatus),floatingRootContext:$(e=>e.floatingRootContext),triggerCount:$(e=>e.triggerCount),preventUnmountingOnClose:$(e=>e.preventUnmountingOnClose),payload:$(e=>e.payload),activeTriggerId:Yi,activeTriggerElement:$(e=>e.mounted?e.activeTriggerElement:null),popupId:Zi,isTriggerActive:$((e,t)=>t!==void 0&&Yi(e)===t),isOpenedByTrigger:$((e,t)=>Qi(e,t)),isMountedByTrigger:$((e,t)=>t!==void 0&&Yi(e)===t&&e.mounted),triggerProps:$((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),triggerPopupId:$((e,t)=>$i(e,t)?Zi(e):void 0),popupProps:$(e=>e.popupProps),popupElement:$(e=>e.popupElement),positionerElement:$(e=>e.positionerElement)},ta=`ArrowUp`,na=`ArrowDown`,ra=`ArrowLeft`,ia=`ArrowRight`,aa=`Home`,oa=new Set([ra,ia]),sa=new Set([ra,ia,aa,`End`]),ca=new Set([ta,na]),la=new Set([ta,na,aa,`End`]),ua=new Set([...oa,...ca]),da=new Set([...ua,aa,`End`]),fa=new Set([`Shift`,`Control`,`Alt`,`Meta`]);function pa(e){return H(e)&&e.tagName===`INPUT`}function ma(e){return!!(pa(e)&&e.selectionStart!=null||H(e)&&e.tagName===`TEXTAREA`)}function ha(e,t,n,r){if(!e||!t||!t.scrollTo)return;let i=e.scrollLeft,a=e.scrollTop,o=e.clientWidth<e.scrollWidth,s=e.clientHeight<e.scrollHeight;if(o&&r!==`vertical`){let r=ga(e,t,`left`),a=_a(e),o=_a(t);n===`ltr`&&(r+t.offsetWidth+o.scrollMarginRight>e.scrollLeft+e.clientWidth-a.scrollPaddingRight?i=r+t.offsetWidth+o.scrollMarginRight-e.clientWidth+a.scrollPaddingRight:r-o.scrollMarginLeft<e.scrollLeft+a.scrollPaddingLeft&&(i=r-o.scrollMarginLeft-a.scrollPaddingLeft)),n===`rtl`&&(r-o.scrollMarginRight<e.scrollLeft+a.scrollPaddingLeft?i=r-o.scrollMarginLeft-a.scrollPaddingLeft:r+t.offsetWidth+o.scrollMarginRight>e.scrollLeft+e.clientWidth-a.scrollPaddingRight&&(i=r+t.offsetWidth+o.scrollMarginRight-e.clientWidth+a.scrollPaddingRight))}if(s&&r!==`horizontal`){let n=ga(e,t,`top`),r=_a(e),i=_a(t);n-i.scrollMarginTop<e.scrollTop+r.scrollPaddingTop?a=n-i.scrollMarginTop-r.scrollPaddingTop:n+t.offsetHeight+i.scrollMarginBottom>e.scrollTop+e.clientHeight-r.scrollPaddingBottom&&(a=n+t.offsetHeight+i.scrollMarginBottom-e.clientHeight+r.scrollPaddingBottom)}e.scrollTo({left:i,top:a,behavior:`auto`})}function ga(e,t,n){let r=n===`left`?`offsetLeft`:`offsetTop`,i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);)t=t.offsetParent;return i}function _a(e){let t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}function va(e){return c(19)?e:e?`true`:void 0}var ya=_.forwardRef(function(e,t){let{cutout:n,...r}=e,i;if(n){let e=n.getBoundingClientRect();i=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,h.jsx)(`div`,{ref:t,role:`presentation`,"data-base-ui-inert":``,...r,style:{position:`fixed`,inset:0,userSelect:`none`,WebkitUserSelect:`none`,clipPath:i}})});function ba(e){let t=_.useRef(!0);t.current&&(t.current=!1,e())}var xa={},Sa={},Ca=``;function wa(e){if(typeof document>`u`)return!1;let t=K(e);return B(t).innerWidth-t.documentElement.clientWidth>0}function Ta(e){if(!(typeof CSS<`u`&&CSS.supports&&CSS.supports(`scrollbar-gutter`,`stable`))||typeof document>`u`)return!1;let t=K(e),n=t.documentElement,r=t.body,i=U(n)?n:r,a=i.style.overflowY,o=n.style.scrollbarGutter;n.style.scrollbarGutter=`stable`,i.style.overflowY=`scroll`;let s=i.offsetWidth;i.style.overflowY=`hidden`;let c=i.offsetWidth;return i.style.overflowY=a,n.style.scrollbarGutter=o,s===c}function Ea(e){let t=K(e),n=t.documentElement,r=t.body,i=U(n)?n:r,a={overflowY:i.style.overflowY,overflowX:i.style.overflowX};return Object.assign(i.style,{overflowY:`hidden`,overflowX:`hidden`}),()=>{Object.assign(i.style,a)}}function Da(e){let t=K(e),n=t.documentElement,r=t.body,i=B(n),a=0,o=0,s=!1,c=xn.create();if(Ee&&(i.visualViewport?.scale??1)!==1)return()=>{};function l(){let t=i.getComputedStyle(n),c=i.getComputedStyle(r),l=(t.scrollbarGutter||``).includes(`both-edges`)?`stable both-edges`:`stable`;a=n.scrollTop,o=n.scrollLeft,xa={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},Ca=n.style.scrollBehavior,Sa={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};let u=n.scrollHeight>n.clientHeight,d=n.scrollWidth>n.clientWidth,f=t.overflowY===`scroll`||c.overflowY===`scroll`,p=t.overflowX===`scroll`||c.overflowX===`scroll`,m=Math.max(0,i.innerWidth-r.clientWidth),h=Math.max(0,i.innerHeight-r.clientHeight),g=parseFloat(c.marginTop)+parseFloat(c.marginBottom),_=parseFloat(c.marginLeft)+parseFloat(c.marginRight),v=U(n)?n:r;if(s=Ta(e),s){n.style.scrollbarGutter=l,v.style.overflowY=`hidden`,v.style.overflowX=`hidden`;return}Object.assign(n.style,{scrollbarGutter:l,overflowY:`hidden`,overflowX:`hidden`}),(u||f)&&(n.style.overflowY=`scroll`),(d||p)&&(n.style.overflowX=`scroll`),Object.assign(r.style,{position:`relative`,height:g||h?`calc(100dvh - ${g+h}px)`:`100dvh`,width:_||m?`calc(100vw - ${_+m}px)`:`100vw`,boxSizing:`border-box`,overflow:`hidden`,scrollBehavior:`unset`}),r.scrollTop=a,r.scrollLeft=o,n.setAttribute(`data-base-ui-scroll-locked`,``),n.style.scrollBehavior=`unset`}function u(){Object.assign(n.style,xa),Object.assign(r.style,Sa),s||(n.scrollTop=a,n.scrollLeft=o,n.removeAttribute(`data-base-ui-scroll-locked`),n.style.scrollBehavior=Ca)}function d(){u(),c.request(l)}l();let f=Q(i,`resize`,d);return()=>{c.cancel(),u(),typeof i.removeEventListener==`function`&&f()}}var Oa=new class{lockCount=0;restore=null;timeoutLock=_n.create();timeoutUnlock=_n.create();acquire(e){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{--this.lockCount,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){if(this.lockCount===0||this.restore!==null)return;let t=K(e).documentElement,n=B(t).getComputedStyle(t).overflowY;if(n===`hidden`||n===`clip`){this.restore=a;return}let r=De||!wa(e);this.restore=r?Ea(e):Da(e)}};function ka(e=!0,t=null){R(()=>{if(e)return Oa.acquire(t)},[e,t])}function Aa(e){let t=_.useRef(``),n=_.useCallback(n=>{n.defaultPrevented||(t.current=n.pointerType,e(n,n.pointerType))},[e]);return{onClick:_.useCallback(n=>{if(n.detail===0){e(n,`keyboard`);return}`pointerType`in n?e(n,n.pointerType):e(n,t.current),t.current=``},[e]),onPointerDown:n}}function ja(e,t){let n=_.useRef(e),r=x(t);R(()=>{n.current!==e&&r(n.current)},[e,r]),R(()=>{n.current=e},[e])}function Ma(e,t){let{onClick:n,onPointerDown:r}=Aa(x((n,r)=>{(typeof e==`function`?e():e)||t(r||(De?`touch`:``))}));return _.useMemo(()=>({onClick:n,onPointerDown:r}),[n,r])}function Na(e){let[t,n]=_.useState(null),r=Ma(e,n);return ja(e,t=>{t&&!e&&n(null)}),_.useMemo(()=>({openMethod:t,triggerProps:r}),[t,r])}export{Fr as $,z as $n,Lt as $t,Ui as A,Ze as An,Nn as At,mi as B,Y as Bn,On as Bt,Ji as C,it as Cn,g as Cr,Vn as Ct,zi as D,tt as Dn,Rn as Dt,Ii as E,rt as En,qn as Et,Fi as F,Ke as Fn,Pn as Ft,Zr as G,Ae as Gn,vn as Gt,fi as H,Le as Hn,Dn as Ht,Pi as I,We as In,Mn as It,Jr as J,xe as Jn,ln as Jt,Qr as K,Oe as Kn,hn as Kt,Mi as L,qe as Ln,jn as Lt,Li as M,Je as Mn,Wn as Mt,Bi as N,Ge as Nn,In as Nt,Vi as O,$e as On,Hn as Ot,Ri as P,Ve as Pn,Fn as Pt,Hr as Q,be as Qn,X as Qt,Ci as R,q as Rn,An as Rt,qi as S,at as Sn,x as Sr,Gn as St,Gi as T,ot as Tn,Jn as Tt,ci as U,Re as Un,Sn as Ut,$ as V,Be as Vn,wn as Vt,si as W,ze as Wn,_n as Wt,Gr as X,fe as Xn,dn as Xt,Yr as Y,he as Yn,un as Yt,Ur as Z,ie as Zn,It as Zt,fa as _,Et as _n,j as _r,ir as _t,ba as a,Mt as an,V as ar,vr as at,ma as b,ft as bn,T as br,Un as bt,na as c,ct as cn,U as cr,pr as ct,ia as d,pt as dn,pe as dr,lr as dt,Rt as en,ge as er,Pr as et,ta as f,_t as fn,R as fr,or as ft,sa as g,mt as gn,F as gr,ar as gt,oa as h,yt as hn,I as hr,Zn as ht,ka as i,Vt as in,de as ir,yr as it,Wi as j,Ye as jn,Ln as jt,Hi as k,et as kn,Kn as kt,ua as l,dt as ln,W as lr,fr as lt,aa as m,ht as mn,ne as mr,Xn as mt,Ma as n,Pt as nn,_e as nr,Lr as nt,ya as o,zt as on,H as or,gr as ot,da as p,vt as pn,L as pr,sr as pt,Xr as q,K as qn,on as qt,ja as r,Nt as rn,B as rr,xr as rt,va as s,ut as sn,me as sr,_r as st,Na as t,Ft as tn,ye as tr,Ir as tt,ra as u,st as un,G as ur,Q as ut,ca as v,Dt as vn,te as vr,rr as vt,ea as w,At as wn,m as wr,Bn as wt,ha as x,gt as xn,O as xr,zn as xt,la as y,kt as yn,k as yr,Yn as yt,wi as z,J as zn,kn as zt};
@@ -1 +0,0 @@
1
- import{a as e,n as t}from"./jsx-runtime-B-hcVAMW.js";function n(...e){return e.filter(Boolean).join(` `)}var r=e(t()),i={};function a(e,t){let n=r.useRef(i);return n.current===i&&(n.current=e(t)),n}function o(e,t){return function(n,...r){let i=new URL(e);return i.searchParams.set(`code`,n.toString()),r.forEach(e=>i.searchParams.append(`args[]`,e)),`${t} error #${n}; visit ${i} for the full message.`}}var s=o(`https://base-ui.com/production-error`,`Base UI`);function c(){}var l=Object.freeze([]),u=Object.freeze({});function d(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}var f={};function p(e,t,n,r,i){if(!n&&!r&&!i&&!e)return h(t);let a=h(e);return t&&(a=g(a,t)),n&&(a=g(a,n)),r&&(a=g(a,r)),i&&(a=g(a,i)),a}function m(e){if(e.length===0)return f;if(e.length===1)return h(e[0]);let t=h(e[0]);for(let n=1;n<e.length;n+=1)t=g(t,e[n]);return t}function h(e){return b(e)?{...x(e,f)}:_(e)}function g(e,t){return b(t)?x(t,e):v(e,t)}function _(e){let t={...e};for(let e in t){let n=t[e];y(e,n)&&(t[e]=C(n))}return t}function v(e,t){if(!t)return e;for(let n in t){let r=t[n];switch(n){case`style`:e[n]=d(e.style,r);break;case`className`:e[n]=T(e.className,r);break;default:e[n]=y(n,r)?S(e[n],r):r}}return e}function y(e,t){let n=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2);return n===111&&r===110&&i>=65&&i<=90&&(typeof t==`function`||t===void 0)}function b(e){return typeof e==`function`}function x(e,t){return b(e)?e(t):e??f}function S(e,t){return t?e?(...n)=>{let r=n[0];if(E(r)){let i=r;w(i);let a=t(...n);return i.baseUIHandlerPrevented||e?.(...n),a}let i=t(...n);return e?.(...n),i}:C(t):e}function C(e){return e&&((...t)=>{let n=t[0];return E(n)&&w(n),e(...t)})}function w(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function T(e,t){return t?e?t+` `+e:t:e}function E(e){return typeof e==`object`&&!!e&&`nativeEvent`in e}function D(e,t,n,r){let i=a(k).current;return A(i,e,t,n,r)&&M(i,[e,t,n,r]),i.callback}function O(e){let t=a(k).current;return j(t,e)&&M(t,e),t.callback}function k(){return{callback:null,cleanup:null,refs:[]}}function A(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function j(e,t){return e.refs.length!==t.length||e.refs.some((e,n)=>e!==t[n])}function M(e,t){if(e.refs=t,t.every(e=>e==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&=(e.cleanup(),null),n!=null){let r=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){let i=t[e];if(i!=null)switch(typeof i){case`function`:{let t=i(n);typeof t==`function`&&(r[e]=t);break}case`object`:i.current=n}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){let n=t[e];if(n!=null)switch(typeof n){case`function`:{let t=r[e];typeof t==`function`?t():n(null);break}case`object`:n.current=null}}}}}}var N=19;function P(e){return N>=e}function F(e){if(!r.isValidElement(e))return null;let t=e,n=t.props;return(P(19)?n?.ref:t.ref)??null}function I(e,t){let n={};for(let r in e){let i=e[r];if(t?.hasOwnProperty(r)){let e=t[r](i);e!=null&&Object.assign(n,e);continue}i===!0?n[`data-${r.toLowerCase()}`]=``:i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}function L(e,t){return typeof e==`function`?e(t):e}function R(e,t){return typeof e==`function`?e(t):e}function z(e,t,n={}){let r=t.render,i=B(t,n);return n.enabled===!1?null:U(e,r,i,n.state??u)}function B(e,t={}){let{className:n,style:r,render:i}=e,{state:a=u,ref:o,props:s,stateAttributesMapping:c,enabled:l=!0}=t,f=l?L(n,a):void 0,p=l?R(r,a):void 0,m=l?I(a,c):u,h=l&&s?V(s):void 0,g=l?d(m,h)??{}:u;return typeof document<`u`&&(l?g.ref=Array.isArray(o)?O([g.ref,F(i),...o]):D(g.ref,F(i),o):D(null,null)),l?(f!==void 0&&(g.className=T(g.className,f)),p!==void 0&&(g.style=d(g.style,p)),g):u}function V(e){return Array.isArray(e)?m(e):p(void 0,e)}var H=Symbol.for(`react.lazy`);function U(e,t,n,i){if(t){if(typeof t==`function`)return t(n,i);let e=p(n,t.props);e.ref=n.ref;let a=t;return a?.$$typeof===H&&(a=r.Children.toArray(t)[0]),r.cloneElement(a,e)}if(e&&typeof e==`string`)return W(e,n);throw Error(s(8))}function W(e,t){return e===`button`?(0,r.createElement)(`button`,{type:`button`,...t,key:t.key}):e===`img`?(0,r.createElement)(`img`,{alt:``,...t,key:t.key}):r.createElement(e,t)}export{p as a,c,n as d,w as i,s as l,P as n,l as o,D as r,u as s,z as t,a as u};
@@ -1 +0,0 @@
1
- import{t as e}from"./paints-DS2Msf91.js";var t=new Set([`auto-layout`,`camera`,`graphics-library`,`markers`,`per-corner-radius`,`scene-list`,`skew-flip`,`stroke`,`track-lock-solo`]),n=e=>!t.has(e),r=t=>e.has(t.replace(/^fable\./,``));export{r as n,n as t};