@vellumai/web 0.10.0 → 0.10.1-dev.202606240317.ea25efe

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 (336) hide show
  1. package/dist/assets/AnimatePresence-iz8Br0FI.js +9 -0
  2. package/dist/assets/{BundleConfirmPage-CkXUMWg6.js → BundleConfirmPage-BTA9TT5I.js} +1 -1
  3. package/dist/assets/{Combination-DmnhUZru.js → Combination-CDqVzelh.js} +1 -1
  4. package/dist/assets/{about-page-Bue2vNnY.js → about-page-hM0QvIhh.js} +1 -1
  5. package/dist/assets/account-page-Cx2lJXxC.js +1 -0
  6. package/dist/assets/{account-shell-oWV1wIYb.js → account-shell-f2__fVz3.js} +1 -1
  7. package/dist/assets/add-credits-modal-BUsfAHJ_.js +1 -0
  8. package/dist/assets/advanced-page-CLH8n_ah.js +1 -0
  9. package/dist/assets/ai-page-Cn_cV6V8.js +1 -0
  10. package/dist/assets/api-Czc-KUSC.js +1 -0
  11. package/dist/assets/{api-key-screen-CUKjlF2C.js → api-key-screen-BrNqyzXk.js} +1 -1
  12. package/dist/assets/{archive-BCoY55bM.js → archive-BFILUl9x.js} +1 -1
  13. package/dist/assets/{archive-page-YsBlmevd.js → archive-page-CXYY6Q_U.js} +1 -1
  14. package/dist/assets/arrow-left-CP-EhDNF.js +1 -0
  15. package/dist/assets/arrow-up-nBfZxfhi.js +1 -0
  16. package/dist/assets/assistant-api-BKBoHcTV.js +1 -0
  17. package/dist/assets/assistant-feature-flag-store-I7i0GajG.js +6 -0
  18. package/dist/assets/assistant-identity-store-ADxStqSC.js +1 -0
  19. package/dist/assets/assistant-status-panel-Br-1lrig.js +1 -0
  20. package/dist/assets/auth-store-Kzt5s89H.js +7 -0
  21. package/dist/assets/ban-BpBuRCKI.js +1 -0
  22. package/dist/assets/{bell-CSP2EUlP.js → bell-DB1SrBre.js} +1 -1
  23. package/dist/assets/billing-page-Bo-xyUQs.js +3 -0
  24. package/dist/assets/{bookmark-Cj14Qikr.js → bookmark-C3S-p0MQ.js} +1 -1
  25. package/dist/assets/{bookmarks-page-DRcIBBva.js → bookmarks-page-CDwnxXMW.js} +1 -1
  26. package/dist/assets/brain-Bs6LnfHO.js +1 -0
  27. package/dist/assets/browser-DKUVpLgv.js +2 -0
  28. package/dist/assets/{bug-BIPj7Nbx.js → bug-DDcuQ3au.js} +1 -1
  29. package/dist/assets/build-state-S7lbvs8e.js +1 -0
  30. package/dist/assets/{cable-R_YO6j5x.js → cable-DeiZJhx5.js} +1 -1
  31. package/dist/assets/{calendar-Dm2Jn-zV.js → calendar-DS3F8MRx.js} +1 -1
  32. package/dist/assets/{capture-error-B0wqOYKY.js → capture-error-BaKOqBjF.js} +1 -1
  33. package/dist/assets/check-BCNZ91b3.js +1 -0
  34. package/dist/assets/{checkbox-Dc9gjmAy.js → checkbox-ChtGq7OI.js} +1 -1
  35. package/dist/assets/chevron-left-BSPjMq8L.js +1 -0
  36. package/dist/assets/chevron-right-CWG30kI8.js +1 -0
  37. package/dist/assets/{chevron-up-Ck7_ou16.js → chevron-up-vUqVm-q3.js} +1 -1
  38. package/dist/assets/{circle-alert-C5TvMkJV.js → circle-alert-CIThYDGJ.js} +1 -1
  39. package/dist/assets/circle-check-Cfl8Yl_j.js +1 -0
  40. package/dist/assets/{client-feature-flag-store-ivPVcKfH.js → client-feature-flag-store-CdYzowYI.js} +1 -1
  41. package/dist/assets/{cloud-off-DJomNBuZ.js → cloud-off-fMC5iwVY.js} +1 -1
  42. package/dist/assets/code-BhoMjTYO.js +1 -0
  43. package/dist/assets/{command-palette-BXEAR93M.js → command-palette-C0fZKt7u.js} +1 -1
  44. package/dist/assets/command-palette-window-page-CoRyh3xQ.js +1 -0
  45. package/dist/assets/community-page-CA6aOqsR.js +1 -0
  46. package/dist/assets/confirm-dialog-SpCsmAdG.js +1 -0
  47. package/dist/assets/{connect-page-Bvs0EgCJ.js → connect-page-DU6NxOLI.js} +1 -1
  48. package/dist/assets/consent-controls-DB7KsbmQ.js +1 -0
  49. package/dist/assets/{contacts-gateway-Cf32jSYa.js → contacts-gateway-BZXHatqg.js} +1 -1
  50. package/dist/assets/contacts-page-route-B3ET8MOp.js +1 -0
  51. package/dist/assets/{conversation-queries-Dt4RoWIo.js → conversation-queries-C_dW4Y1z.js} +1 -1
  52. package/dist/assets/{conversation-store-BSxi0r0X.js → conversation-store-nVJwhymp.js} +1 -1
  53. package/dist/assets/{cpu-CT8bAyOk.js → cpu-D1r7PLan.js} +1 -1
  54. package/dist/assets/{credit-card-XOxZwKz-.js → credit-card-BwN95biV.js} +1 -1
  55. package/dist/assets/{danger-zone-redirect-page-5H-AuIvi.js → danger-zone-redirect-page-CH1zY0d7.js} +1 -1
  56. package/dist/assets/debug-page-DqRKzdW7.js +2 -0
  57. package/dist/assets/{deploy-dialogs-BtpYB7B8.js → deploy-dialogs-UMP37sKQ.js} +1 -1
  58. package/dist/assets/{detail-card-CLwQ17AA.js → detail-card-BnPZuM3e.js} +1 -1
  59. package/dist/assets/developer-page-DRMQxjGi.js +1 -0
  60. package/dist/assets/devices-page-DOkGnwME.js +1 -0
  61. package/dist/assets/diagnostics-D5xXiLo-.js +1 -0
  62. package/dist/assets/dictation-overlay-page-DQFFYUvf.js +1 -0
  63. package/dist/assets/{dist-DhhV5jI1.js → dist-cZPU9ZZL.js} +1 -1
  64. package/dist/assets/document-viewer-page-BTw2xmWO.js +1 -0
  65. package/dist/assets/{domain-field-yW8B9mxj.js → domain-field-CNW1t3OC.js} +1 -1
  66. package/dist/assets/earn-credits-modal-B6MtM4Yc.js +1 -0
  67. package/dist/assets/emails-page-BSGFwndC.js +1 -0
  68. package/dist/assets/{environment-store-Ck7wXCrL.js → environment-store-C_XwUYTL.js} +1 -1
  69. package/dist/assets/esm-5V2_V7Ao.js +1 -0
  70. package/dist/assets/{esm-DkmmS1Rg.js → esm-CJjEymow.js} +2 -2
  71. package/dist/assets/esm-CYrzAUNH.js +2 -0
  72. package/dist/assets/esm-ClC_4zcn.js +2 -0
  73. package/dist/assets/esm-CxEFp02j.js +2 -0
  74. package/dist/assets/esm-_pMRHia8.js +2 -0
  75. package/dist/assets/{external-link-B3skagqt.js → external-link-RJkZLlff.js} +1 -1
  76. package/dist/assets/{feature-flag-catalog-DEr38CMM.js → feature-flag-catalog-DBTdmHXz.js} +1 -1
  77. package/dist/assets/file-editor-BqUEZUnO.js +1 -0
  78. package/dist/assets/file-text-ClqzuFsu.js +1 -0
  79. package/dist/assets/general-page-B0YxmWex.js +1 -0
  80. package/dist/assets/{globe-BV8ouh66.js → globe-atPvTfX9.js} +1 -1
  81. package/dist/assets/google-logo-C0Ye7zqf.js +1 -0
  82. package/dist/assets/{hard-drive-C6sJQKXL.js → hard-drive-CxwXPeeK.js} +1 -1
  83. package/dist/assets/hatching-screen-Bk5JJ8rb.js +1 -0
  84. package/dist/assets/home-page-route-CHdXG1Bd.js +1 -0
  85. package/dist/assets/{hosting-screen-dPfTLCnv.js → hosting-screen-CQ5LsLb-.js} +1 -1
  86. package/dist/assets/identity-page-route-DAwe5dsh.js +1 -0
  87. package/dist/assets/index-1kam3Nv0.js +133 -0
  88. package/dist/assets/index-CK8rkjpV.css +2 -0
  89. package/dist/assets/{octagon-x-DV9qasaC.js → info-BGLlcyt6.js} +1 -1
  90. package/dist/assets/{info-BJtskZc-.js → info-DKfsKkAk.js} +1 -1
  91. package/dist/assets/{inspect-page-2cNMjT4e.js → inspect-page-B_pMSzmg.js} +5 -5
  92. package/dist/assets/install-CsydOTUH.js +1 -0
  93. package/dist/assets/integrations-page-Cbv8GW70.js +1 -0
  94. package/dist/assets/{intelligence-layout-CjDxFKQO.js → intelligence-layout-CV48tXos.js} +1 -1
  95. package/dist/assets/{keyboard-shortcuts-page-DIhG1FK_.js → keyboard-shortcuts-page-CklGHii8.js} +1 -1
  96. package/dist/assets/lib-Ck-V6pPR.js +14 -0
  97. package/dist/assets/library-detail-page-DItbJu-P.js +1 -0
  98. package/dist/assets/library-page-OWWbhrOx.js +1 -0
  99. package/dist/assets/{link-2-BedDg97D.js → link-2-DAUpNv36.js} +1 -1
  100. package/dist/assets/loader-circle-BU6b8vrp.js +1 -0
  101. package/dist/assets/local-mode-BD2zqd9I.js +39 -0
  102. package/dist/assets/{log-in-DOSWwTiS.js → log-in-F2ivXAeS.js} +1 -1
  103. package/dist/assets/{login-flow-BMwbZfKA.js → login-flow-DKWdYx_7.js} +1 -1
  104. package/dist/assets/login-page-CfYM4pWw.js +1 -0
  105. package/dist/assets/{logout-page-DI7i4Hok.js → logout-page-B7QWzXdA.js} +1 -1
  106. package/dist/assets/{logs-layout-BEMQQY7S.js → logs-layout-DxX2hgBr.js} +1 -1
  107. package/dist/assets/mcp-page-DpQdvCb1.js +1 -0
  108. package/dist/assets/{memory-router-playground-page-JdkTEwPy.js → memory-router-playground-page-Bw-oeVwo.js} +1 -1
  109. package/dist/assets/{menu-BvyV91Np.js → menu-CdoNX1qx.js} +1 -1
  110. package/dist/assets/messages-D7FVEZ7g.js +13 -0
  111. package/dist/assets/{metric-card-B3EBP9m4.js → metric-card-J-OmNSo1.js} +1 -1
  112. package/dist/assets/{minimize-2-CwIqAxPY.js → minimize-2-Ps3BPNpX.js} +1 -1
  113. package/dist/assets/{mobile-sidebar-drawer-DuJUmy0b.js → mobile-sidebar-drawer-D5XpaFeM.js} +1 -1
  114. package/dist/assets/{modal-DX6UN7b0.js → modal-CHuPOsJJ.js} +1 -1
  115. package/dist/assets/monitor-AzR2uZb7.js +1 -0
  116. package/dist/assets/{moon-C0wLM1iN.js → moon-shagZJqX.js} +1 -1
  117. package/dist/assets/mutation-error-CYNKNnwE.js +1 -0
  118. package/dist/assets/{native-file-CbhjzPxL.js → native-file-CI0ZuErz.js} +2 -2
  119. package/dist/assets/notice-CynJKEow.js +1 -0
  120. package/dist/assets/notifications-page-C7v4_Bxr.js +1 -0
  121. package/dist/assets/{oauth-complete-page-R_1ODIIi.js → oauth-complete-page-CEdWsQvk.js} +1 -1
  122. package/dist/assets/{oauth-popup-complete-page-YECuZtPs.js → oauth-popup-complete-page-Bc-7vFDX.js} +1 -1
  123. package/dist/assets/{page-shell-C0oiLAoY.js → page-shell-R_mNcK6L.js} +1 -1
  124. package/dist/assets/{pairing-page-BtaFWq0w.js → pairing-page-CVhK9MpO.js} +1 -1
  125. package/dist/assets/{panel-item-BFOUNXY1.js → panel-item-BLQE_l-g.js} +1 -1
  126. package/dist/assets/{password-reset-page-Cf5SQHDV.js → password-reset-page-hjygW6Hh.js} +1 -1
  127. package/dist/assets/{pencil-lwgMCqyH.js → pencil-CKTX3v1w.js} +1 -1
  128. package/dist/assets/platform-loopback-page-DsuxvvII.js +1 -0
  129. package/dist/assets/{plugin-detail-page-D6Gve0qx.js → plugin-detail-page-Yu4RIWNW.js} +1 -1
  130. package/dist/assets/{plugins-page-DA-JrehF.js → plugins-page-BmOy4NND.js} +1 -1
  131. package/dist/assets/{popover-PnyzuDx3.js → popover-BsF65jZY.js} +1 -1
  132. package/dist/assets/prechat-CHU0E2N5.js +1 -0
  133. package/dist/assets/prechat-route-CAyzg9nr.js +1 -0
  134. package/dist/assets/{prefs-Mrqh1A7Y.js → prefs-CYFTgRU_.js} +1 -1
  135. package/dist/assets/privacy-page-Kl2fNB44.js +1 -0
  136. package/dist/assets/{privacy-screen-ccjT4S0F.js → privacy-screen-BcZWvKU-.js} +1 -1
  137. package/dist/assets/{provider-callback-page-BS-DqV_M.js → provider-callback-page-KpACbH1Q.js} +1 -1
  138. package/dist/assets/{provider-key-DH6JmPXt.js → provider-key-DLsM5EJF.js} +1 -1
  139. package/dist/assets/{provider-signup-page-Beuafn_s.js → provider-signup-page-DNYVhuNa.js} +1 -1
  140. package/dist/assets/proxy-BMd4CkvC.js +1 -0
  141. package/dist/assets/{quick-input-page-0PEcj6WT.js → quick-input-page-DtwHX4te.js} +1 -1
  142. package/dist/assets/react-query.gen-B0Od5MEZ.js +1 -0
  143. package/dist/assets/{react-query.gen-DdB0sQgj.js → react-query.gen-CoJLbfpu.js} +1 -1
  144. package/dist/assets/refresh-cw-d--DqlE0.js +1 -0
  145. package/dist/assets/research-mock-page-DJjJ7-Iu.js +1 -0
  146. package/dist/assets/research-onboarding-route-qFNy9Ol1.js +42 -0
  147. package/dist/assets/{resize-errors-tz_Tui32.js → resize-errors-l1gkz4Wc.js} +1 -1
  148. package/dist/assets/resolved-assistants-store-DLNFVaZL.js +1 -0
  149. package/dist/assets/return-to-BIv6kmmy.js +1 -0
  150. package/dist/assets/review-terms-screen-BmHsVmA3.js +1 -0
  151. package/dist/assets/risk-badge-CJ2eBzL2.js +1 -0
  152. package/dist/assets/{routes-BKwsRssF.js → routes-DlW6mpdp.js} +1 -1
  153. package/dist/assets/{save-WZktF4Xe.js → save-BOCvrkQo.js} +1 -1
  154. package/dist/assets/{schedules-DqkGi2Lm.js → schedules-BCcBhzcW.js} +1 -1
  155. package/dist/assets/{sdk.gen-Bew9wO5C.js → sdk.gen-BTIMXC7B.js} +1 -1
  156. package/dist/assets/{sdk.gen-DRL3oRwz.js → sdk.gen-DSjI3deY.js} +1 -1
  157. package/dist/assets/select-assistant-screen-CdXc-bqY.js +1 -0
  158. package/dist/assets/{semver-DmouQEQK.js → semver-DpUibCte.js} +1 -1
  159. package/dist/assets/{setting-row-IILQu7AE.js → setting-row-DuHadCFy.js} +1 -1
  160. package/dist/assets/settings-layout-DxJgudRT.js +1 -0
  161. package/dist/assets/share-feedback-modal-B2R38xkX.js +1 -0
  162. package/dist/assets/sidebar-tree-DBFXJCiL.js +1 -0
  163. package/dist/assets/signup-page-DEpKwLiS.js +1 -0
  164. package/dist/assets/{signup-shell-D6LXKfGy.js → signup-shell-BaFbh88c.js} +1 -1
  165. package/dist/assets/skill-row-DDoJmniT.js +1 -0
  166. package/dist/assets/skills-page-tnuQgPfw.js +1 -0
  167. package/dist/assets/{sound-manager-CC2af7bI.js → sound-manager-CgtJRpIg.js} +1 -1
  168. package/dist/assets/{sounds-page-DE47aZrz.js → sounds-page-DTExjtqI.js} +1 -1
  169. package/dist/assets/{sparkles-B9QIWdq0.js → sparkles-DzoKZLdI.js} +1 -1
  170. package/dist/assets/{src-D6Nu2Lol.js → src-BJj2O5XB.js} +3 -3
  171. package/dist/assets/{step-indicator-dots-BOKv1I4C.js → step-indicator-dots-BOnJGjpI.js} +1 -1
  172. package/dist/assets/subagent-detail-panel-CLKXSzLl.js +4 -0
  173. package/dist/assets/subagent-store-B6q-RyW8.js +3 -0
  174. package/dist/assets/system-events-page-kGmOVPUf.js +1 -0
  175. package/dist/assets/{system-events-redirect-page-CmooXfba.js → system-events-redirect-page-C5RU4M1q.js} +1 -1
  176. package/dist/assets/{tag-BadGF3FB.js → tag-CE_o2aao.js} +1 -1
  177. package/dist/assets/{tiptap-document-editor-DjIQ9tCC.js → tiptap-document-editor-BCX5nvDd.js} +1 -1
  178. package/dist/assets/toast-CxaZ5f1d.js +1 -0
  179. package/dist/assets/tool-call-status-DNS6Y_vi.js +1 -0
  180. package/dist/assets/tool-detail-panel-BV__QHqe.js +2 -0
  181. package/dist/assets/trace-page-gDvTnfXj.js +1 -0
  182. package/dist/assets/{triangle-alert-M_S_Pe8C.js → triangle-alert-B3q5kQ4P.js} +1 -1
  183. package/dist/assets/triangle-alert-DnZC45c-.js +1 -0
  184. package/dist/assets/{upgrade-cancel-page-D2-xTACq.js → upgrade-cancel-page-BTvZBWe3.js} +1 -1
  185. package/dist/assets/upgrade-success-page-qyE3QAAg.js +1 -0
  186. package/dist/assets/usage-page-BCPooT5t.js +1 -0
  187. package/dist/assets/{usage-window-BO_9IIjX.js → usage-window-dm_mRqGo.js} +1 -1
  188. package/dist/assets/{use-active-assistant-id-512RohBL.js → use-active-assistant-id-DXjofATQ.js} +1 -1
  189. package/dist/assets/{use-bus-subscription-RUbeQDfy.js → use-bus-subscription-CKWguMzy.js} +1 -1
  190. package/dist/assets/use-is-org-ready-kFoGr63U.js +1 -0
  191. package/dist/assets/{use-onboarding-login-CxXV3Iue.js → use-onboarding-login-Ddww_Use.js} +1 -1
  192. package/dist/assets/{use-plugin-drift-BUHRYq2W.js → use-plugin-drift-GTZaiGZ9.js} +1 -1
  193. package/dist/assets/{use-reduced-motion-CXbk4fYO.js → use-reduced-motion-DomgCP7o.js} +1 -1
  194. package/dist/assets/user-plus-Chk2BJ7O.js +1 -0
  195. package/dist/assets/utils-eWxz_g-8.js +1 -0
  196. package/dist/assets/{viewer-store-CInCucV8.js → viewer-store-B89qQmwz.js} +1 -1
  197. package/dist/assets/{voice-page-VrJ7AZrg.js → voice-page-D4ba1mCL.js} +1 -1
  198. package/dist/assets/weather-forecast-display-DTeOsjHe.js +1 -0
  199. package/dist/assets/{web-BcNl6r2T.js → web-B426K90I.js} +1 -1
  200. package/dist/assets/{web-DKvxfNu_.js → web-BDmMa2Ah.js} +1 -1
  201. package/dist/assets/{web-BEsXuN9d.js → web-BI7Og_dq.js} +1 -1
  202. package/dist/assets/{web-CVJTgRoJ.js → web-BjJEIboG.js} +1 -1
  203. package/dist/assets/{web-BorhjBfF.js → web-BsjDq2-Z.js} +1 -1
  204. package/dist/assets/{web-4XHemeeJ.js → web-C5TKmyZ7.js} +1 -1
  205. package/dist/assets/{web-DALQZUJ4.js → web-CkqagAoR.js} +1 -1
  206. package/dist/assets/{welcome-screen-DVeLGZKg.js → welcome-screen-Cb8vUDQU.js} +1 -1
  207. package/dist/assets/workflow-detail-panel-F2CoPboC.js +1 -0
  208. package/dist/assets/workflow-status-B53qU9DS.js +1 -0
  209. package/dist/assets/workspace-page-CjQibvIG.js +1 -0
  210. package/dist/assets/x-Cb3jFpZR.js +1 -0
  211. package/dist/index.html +126 -108
  212. package/package.json +1 -1
  213. package/dist/assets/account-page-B5rB7loj.js +0 -1
  214. package/dist/assets/add-credits-modal-BEX4_5jj.js +0 -1
  215. package/dist/assets/advanced-page-9RUi4YCF.js +0 -1
  216. package/dist/assets/ai-page-CZj92XF4.js +0 -1
  217. package/dist/assets/api-BSHLYsxJ.js +0 -1
  218. package/dist/assets/arrow-left-DpZuwfUr.js +0 -1
  219. package/dist/assets/arrow-up-BsbPgGtM.js +0 -1
  220. package/dist/assets/assistant-api-D7r6RWoh.js +0 -39
  221. package/dist/assets/assistant-feature-flag-store-D2CUHsmL.js +0 -1
  222. package/dist/assets/assistant-identity-store-BFaMpt_3.js +0 -1
  223. package/dist/assets/assistant-status-panel-CMdqv7mF.js +0 -1
  224. package/dist/assets/auth-store-CrTf0uWL.js +0 -7
  225. package/dist/assets/ban-BMsomjPu.js +0 -1
  226. package/dist/assets/billing-page-DgX2YBSA.js +0 -3
  227. package/dist/assets/build-state-DqzVxR37.js +0 -1
  228. package/dist/assets/chevron-left-CySeFTW4.js +0 -1
  229. package/dist/assets/chevron-right-HpmykQ8I.js +0 -1
  230. package/dist/assets/circle-check-D3yd2el7.js +0 -1
  231. package/dist/assets/code-CXddtaOh.js +0 -1
  232. package/dist/assets/command-palette-window-page-5SP_Ft4Y.js +0 -1
  233. package/dist/assets/community-page-D5-exeNr.js +0 -1
  234. package/dist/assets/confirm-dialog-DbNUkFt6.js +0 -1
  235. package/dist/assets/consent-controls-cNdj_gb8.js +0 -1
  236. package/dist/assets/contacts-page-route-C9T-8Sdr.js +0 -1
  237. package/dist/assets/debug-page-ClQetFUa.js +0 -2
  238. package/dist/assets/developer-page-DQs8SZ8K.js +0 -1
  239. package/dist/assets/devices-page-VsRsz6XP.js +0 -1
  240. package/dist/assets/dictation-overlay-page-C5HFJIsY.js +0 -1
  241. package/dist/assets/document-viewer-page-BLBwWqM4.js +0 -1
  242. package/dist/assets/dollar-sign-Ctayw6dD.js +0 -1
  243. package/dist/assets/earn-credits-modal-Dig03UD-.js +0 -1
  244. package/dist/assets/emails-page-D9R72EQW.js +0 -1
  245. package/dist/assets/esm--X8IY1ec.js +0 -1
  246. package/dist/assets/esm-Cs-ixW_a.js +0 -2
  247. package/dist/assets/esm-DxJBeF-2.js +0 -2
  248. package/dist/assets/esm-JmlvYCir.js +0 -2
  249. package/dist/assets/esm-LyzWW9Z1.js +0 -2
  250. package/dist/assets/file-editor-HQXiGdH-.js +0 -1
  251. package/dist/assets/general-page-CMr5RhNh.js +0 -1
  252. package/dist/assets/hatching-screen-BAzE4aGD.js +0 -1
  253. package/dist/assets/home-page-route-JenDSLBl.js +0 -1
  254. package/dist/assets/identity-page-route-r9ZgIw8g.js +0 -1
  255. package/dist/assets/index-BiN-6kWM.js +0 -140
  256. package/dist/assets/index-DIEDlrdu.css +0 -2
  257. package/dist/assets/install-CHMiF_Hw.js +0 -1
  258. package/dist/assets/integrations-page-BiLM3QyR.js +0 -1
  259. package/dist/assets/lib-CQbq3OZw.js +0 -29
  260. package/dist/assets/library-detail-page-CjeBxuMc.js +0 -1
  261. package/dist/assets/library-page-BFIPthR_.js +0 -1
  262. package/dist/assets/loader-circle-CTs38Ovl.js +0 -1
  263. package/dist/assets/local-mode-9ZkSq1Fr.js +0 -1
  264. package/dist/assets/login-page-KDH0IZ6y.js +0 -1
  265. package/dist/assets/mcp-page-B7tUTzT0.js +0 -1
  266. package/dist/assets/notice-G5Imd5pC.js +0 -1
  267. package/dist/assets/notifications-page-CmOvbV59.js +0 -1
  268. package/dist/assets/platform-loopback-page-Wie5xEwr.js +0 -1
  269. package/dist/assets/prechat-route-BhzvRsw3.js +0 -1
  270. package/dist/assets/privacy-page-Yex5OJjZ.js +0 -1
  271. package/dist/assets/proxy-CQsxT9tJ.js +0 -1
  272. package/dist/assets/research-mock-page-D0-sKBpu.js +0 -1
  273. package/dist/assets/research-onboarding-route-ZTgUGnrN.js +0 -38
  274. package/dist/assets/resolved-assistants-store-DMuRxkZC.js +0 -1
  275. package/dist/assets/return-to-Bc7amvZZ.js +0 -1
  276. package/dist/assets/review-terms-screen-DLWgKysx.js +0 -1
  277. package/dist/assets/select-assistant-screen-LNX6PpzR.js +0 -1
  278. package/dist/assets/settings-layout-BA0suokL.js +0 -1
  279. package/dist/assets/share-feedback-modal-CFgHvfgR.js +0 -1
  280. package/dist/assets/sidebar-tree-DALLHIeG.js +0 -1
  281. package/dist/assets/signup-page-13TRI3CC.js +0 -1
  282. package/dist/assets/skills-page-DiopOlcy.js +0 -1
  283. package/dist/assets/subagent-detail-panel-BdPp2LMK.js +0 -4
  284. package/dist/assets/subagent-status-CaVVlphf.js +0 -1
  285. package/dist/assets/system-events-page-DcaF2EuX.js +0 -1
  286. package/dist/assets/toast-DLWkiWW6.js +0 -1
  287. package/dist/assets/tool-detail-panel-C6uFi3_6.js +0 -2
  288. package/dist/assets/trace-page-4MU66DDM.js +0 -1
  289. package/dist/assets/upgrade-success-page-DLjl6978.js +0 -1
  290. package/dist/assets/usage-page-CCBqWkRU.js +0 -1
  291. package/dist/assets/use-is-org-ready-BoWiaeMc.js +0 -1
  292. package/dist/assets/utils-B5-aBe5u.js +0 -1
  293. package/dist/assets/weather-forecast-display-DKMPxDv5.js +0 -1
  294. package/dist/assets/workflow-detail-panel-BgDWu3_4.js +0 -1
  295. package/dist/assets/workspace-page-BlVlfXIt.js +0 -1
  296. package/dist/assets/x-Dz7msELe.js +0 -1
  297. /package/dist/assets/{api-errors-CwAGZ-xJ.js → api-errors-B-g6gvNv.js} +0 -0
  298. /package/dist/assets/{avatar-bundled-components-UfXe4Pfu.js → avatar-bundled-components-DoxUXsZB.js} +0 -0
  299. /package/dist/assets/{avatar-svg-compositor-Bbqkq_FE.js → avatar-svg-compositor-CZqTxX-j.js} +0 -0
  300. /package/dist/assets/{build.umd-TjHHwLRY.js → build.umd-C-9hxmJK.js} +0 -0
  301. /package/dist/assets/{client.gen-CWZrHbc9.js → client.gen-4zzwm6UN.js} +0 -0
  302. /package/dist/assets/{client.gen-Cuv6iN0E.js → client.gen-BnoNy2w0.js} +0 -0
  303. /package/dist/assets/{composer-focus-DP3jFn8K.js → composer-focus-BZr63Cvs.js} +0 -0
  304. /package/dist/assets/{conversation-selection-BMndnV1U.js → conversation-selection-CNu7j2Xb.js} +0 -0
  305. /package/dist/assets/{create-selectors-ClYkcuKo.js → create-selectors-BE0_e_Ed.js} +0 -0
  306. /package/dist/assets/{createLucideIcon-DIlBzeWM.js → createLucideIcon-BlMXrA59.js} +0 -0
  307. /package/dist/assets/{definitions-BqAtozTh.js → definitions--qkv65-s.js} +0 -0
  308. /package/dist/assets/{dist-D7Zr-ONk.js → dist-BQHdyjQ3.js} +0 -0
  309. /package/dist/assets/{dist-nMnxT9pm.js → dist-CzyDxYAs.js} +0 -0
  310. /package/dist/assets/{edit-chat-session-B1tanC3Z.js → edit-chat-session-BYvbyTwd.js} +0 -0
  311. /package/dist/assets/{effective-timezone-wo2Bhl1P.js → effective-timezone-DAkNzd21.js} +0 -0
  312. /package/dist/assets/{emoji-catalog-data-B6Q5tPZJ.js → emoji-catalog-data-B_lm6Crq.js} +0 -0
  313. /package/dist/assets/{event-bus-DntJgYuJ.js → event-bus-CBil9JQT.js} +0 -0
  314. /package/dist/assets/{format-B12w_G9l.js → format-HKnibeVj.js} +0 -0
  315. /package/dist/assets/{format-date-B6hTwbOM.js → format-date-DyMQp2_m.js} +0 -0
  316. /package/dist/assets/{format-file-size-DxhjMSDx.js → format-file-size-DOcXaUaE.js} +0 -0
  317. /package/dist/assets/{haptics-BtSYrQNK.js → haptics-CKwMH4eq.js} +0 -0
  318. /package/dist/assets/{impersonate-version-flag-ZdQOgpO3.js → impersonate-version-flag-Caig8rhF.js} +0 -0
  319. /package/dist/assets/{input-CwdmSRlD.js → input-Ch7OC6ME.js} +0 -0
  320. /package/dist/assets/{is-electron-BuSDabCt.js → is-electron-C_ZTVhv8.js} +0 -0
  321. /package/dist/assets/{llm-dimension-Cs4q1Ovq.js → llm-dimension-Dx3xIzPP.js} +0 -0
  322. /package/dist/assets/{misc-Bo3spjOe.js → misc-CBD9JJCY.js} +0 -0
  323. /package/dist/assets/{native-deep-link-_WT_7c80.js → native-deep-link-DmJ7Ty6z.js} +0 -0
  324. /package/dist/assets/{pdf-CMJp1GoR.js → pdf-Bi0PDaJC.js} +0 -0
  325. /package/dist/assets/{prechat-names-BZIP2Y-H.js → prechat-names-Bo5bdzfH.js} +0 -0
  326. /package/dist/assets/{progress-bar-BOKTRqXE.js → progress-bar-DFH5aT1D.js} +0 -0
  327. /package/dist/assets/{public-asset-Dp-i4xhW.js → public-asset-BTisO-cB.js} +0 -0
  328. /package/dist/assets/{reduced-motion-Do7LyjE6.js → reduced-motion-BZH7waJ6.js} +0 -0
  329. /package/dist/assets/{shortcut-keys-WNQqv5_X.js → shortcut-keys-vM6sNj7W.js} +0 -0
  330. /package/dist/assets/{stat-square-B5tBfA4w.js → stat-square-CraPxMcl.js} +0 -0
  331. /package/dist/assets/{toggle-_vZlLDBV.js → toggle-95p73HGd.js} +0 -0
  332. /package/dist/assets/{typed-storage-SkUUNYR1.js → typed-storage-Chj38wph.js} +0 -0
  333. /package/dist/assets/{use-is-mobile-CvT53Qs1.js → use-is-mobile-BF5x8sr8.js} +0 -0
  334. /package/dist/assets/{x-CaVViVFn.js → x-DE8JhiDZ.js} +0 -0
  335. /package/dist/assets/{xterm-BJ2bbKsF.js → xterm-BJTDHDUK.js} +0 -0
  336. /package/dist/assets/{xterm-addon-fit-BJTajn72.js → xterm-addon-fit-Ba7bgpoc.js} +0 -0
@@ -1,4 +1,4 @@
1
- import{o as e,r as t,t as n}from"./chunk-jRWAZmH_.js";import{t as r}from"./react-DJZBPgpf.js";import{C as i,E as a,S as o,a as s,b as c,c as l,n as u,o as d,y as f}from"./button-D7s2Q_uG.js";import{t as p}from"./jsx-runtime-CVSDxk6A.js";import{o as m,t as h}from"./cn-DvW5mxZR.js";import{t as g}from"./typography-BscuIPxA.js";import"./card-BibIM9x3.js";import{t as _}from"./createLucideIcon-Bjb-Kuq7.js";import{t as v}from"./check-CW0KmV0o.js";import"./dropdown-yOV5eJnU.js";import{C as y,D as b,E as x,S,T as C,_ as w,a as T,b as E,c as ee,d as te,f as ne,g as re,h as ie,i as ae,l as oe,m as se,n as ce,o as le,p as ue,r as de,s as fe,u as pe,v as me,w as he,x as ge,y as _e}from"./menu-BvyV91Np.js";import"./confirm-dialog-DbNUkFt6.js";import{n as ve}from"./checkbox-Dc9gjmAy.js";import"./notice-G5Imd5pC.js";import"./progress-bar-BOKTRqXE.js";import"./tag-BadGF3FB.js";import{n as ye,t as be}from"./dist-D7Zr-ONk.js";import"./popover-PnyzuDx3.js";import"./input-CwdmSRlD.js";import"./toggle-_vZlLDBV.js";import"./stat-square-B5tBfA4w.js";import"./modal-DX6UN7b0.js";import"./panel-item-BFOUNXY1.js";import"./toast-DLWkiWW6.js";import"./shortcut-keys-WNQqv5_X.js";var xe=_(`copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]),D=e(r(),1),O=p(),Se=8;function Ce(e,t){if(!e||typeof window>`u`)return null;try{let n=localStorage.getItem(e);if(n==null)return null;let r=Number(n);return Number.isFinite(r)?Math.max(t,r):null}catch{return null}}function we({left:e,right:t,defaultLeftWidth:n=400,defaultLeftPercent:r,defaultRightWidth:i,minLeftWidth:a=300,minRightWidth:o=300,onWidthChange:s,storageKey:c,hideDivider:l=!1,className:u,...d}){let f=(0,D.useRef)(null),[p,m]=(0,D.useState)(()=>Ce(c,a)??n),g=(0,D.useRef)(null),[_,v]=(0,D.useState)(!1),y=(0,D.useCallback)(e=>{let t=f.current;if(!t)return e;let n=t.offsetWidth-o;return Math.max(a,Math.min(e,n))},[a,o]),b=(0,D.useCallback)(e=>{e.preventDefault(),e.target.setPointerCapture(e.pointerId),g.current={startX:e.clientX,startWidth:p},v(!0)},[p]),x=(0,D.useCallback)(e=>{if(!g.current)return;let t=e.clientX-g.current.startX,n=y(g.current.startWidth+t);m(n),s?.(n)},[y,s]),S=(0,D.useCallback)(e=>{if(!g.current)return;e.target.releasePointerCapture(e.pointerId);let t=y(g.current.startWidth+(e.clientX-g.current.startX));if(g.current=null,v(!1),c)try{localStorage.setItem(c,String(t))}catch{}},[y,c]);return(0,D.useEffect)(()=>{m(e=>y(e));function e(){m(e=>y(e))}return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[y]),(0,D.useLayoutEffect)(()=>{if(Ce(c,a)!==null)return;let e=f.current;if(!e)return;let t=e.offsetWidth;if(t<=0)return;let n=null;r==null?i!=null&&(n=t-i-Se):n=t*r/100,n!=null&&m(y(n))},[r,i,c,a,y]),(0,O.jsxs)(`div`,{...d,ref:f,"data-slot":`resizable-panel`,className:h(`flex h-full w-full overflow-hidden`,u),children:[(0,O.jsx)(`div`,{className:`flex h-full shrink-0 flex-col overflow-hidden`,style:{width:p},children:e}),(0,O.jsxs)(`div`,{role:`separator`,"aria-orientation":`vertical`,className:h(`group relative z-10 flex h-full w-2 shrink-0 cursor-col-resize items-center justify-center`,_&&`select-none`),onPointerDown:b,onPointerMove:x,onPointerUp:S,onPointerCancel:S,children:[(0,O.jsx)(`div`,{className:h(`h-full w-px`,l?`bg-transparent`:`bg-[var(--border-base)]`)}),(0,O.jsx)(`div`,{className:h(`absolute h-8 w-1 rounded-full bg-[var(--content-tertiary)] opacity-0 transition-opacity`,`group-hover:opacity-100`,_&&`opacity-100`)})]}),(0,O.jsx)(`div`,{className:`h-full min-w-0 flex-1 overflow-auto`,children:t})]})}var Te=`Radio`,[Ee,De]=a(Te),[Oe,ke]=Ee(Te),Ae=D.forwardRef((e,t)=>{let{__scopeRadio:n,name:r,checked:a=!1,required:o,disabled:s,value:c=`on`,onCheck:l,form:u,...d}=e,[f,p]=D.useState(null),h=m(t,e=>p(e)),g=D.useRef(!1),_=f?u||!!f.closest(`form`):!0;return(0,O.jsxs)(Oe,{scope:n,checked:a,disabled:s,children:[(0,O.jsx)(i.button,{type:`button`,role:`radio`,"aria-checked":a,"data-state":Fe(a),"data-disabled":s?``:void 0,disabled:s,value:c,...d,ref:h,onClick:ye(e.onClick,e=>{a||l?.(),_&&(g.current=e.isPropagationStopped(),g.current||e.stopPropagation())})}),_&&(0,O.jsx)(Pe,{control:f,bubbles:!g.current,name:r,value:c,checked:a,required:o,disabled:s,form:u,style:{transform:`translateX(-100%)`}})]})});Ae.displayName=Te;var je=`RadioIndicator`,Me=D.forwardRef((e,t)=>{let{__scopeRadio:n,forceMount:r,...a}=e,o=ke(je,n);return(0,O.jsx)(be,{present:r||o.checked,children:(0,O.jsx)(i.span,{"data-state":Fe(o.checked),"data-disabled":o.disabled?``:void 0,...a,ref:t})})});Me.displayName=je;var Ne=`RadioBubbleInput`,Pe=D.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:r=!0,...a},o)=>{let s=D.useRef(null),c=m(s,o),u=ve(n),d=l(t);return D.useEffect(()=>{let e=s.current;if(!e)return;let t=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(t,`checked`).set;if(u!==n&&i){let t=new Event(`click`,{bubbles:r});i.call(e,n),e.dispatchEvent(t)}},[u,n,r]),(0,O.jsx)(i.input,{type:`radio`,"aria-hidden":!0,defaultChecked:n,...a,tabIndex:-1,ref:c,style:{...a.style,...d,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0}})});Pe.displayName=Ne;function Fe(e){return e?`checked`:`unchecked`}var Ie=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`],Le=`RadioGroup`,[Re,ze]=a(Le,[y,De]),Be=y(),Ve=De(),[He,Ue]=Re(Le),We=D.forwardRef((e,t)=>{let{__scopeRadioGroup:n,name:r,defaultValue:a,value:o,required:s=!1,disabled:c=!1,orientation:l,dir:u,loop:f=!0,onValueChange:p,...m}=e,h=Be(n),g=he(u),[_,v]=d({prop:o,defaultProp:a??null,onChange:p,caller:Le});return(0,O.jsx)(He,{scope:n,name:r,required:s,disabled:c,value:_,onValueChange:v,children:(0,O.jsx)(S,{asChild:!0,...h,orientation:l,dir:g,loop:f,children:(0,O.jsx)(i.div,{role:`radiogroup`,"aria-required":s,"aria-orientation":l,"data-disabled":c?``:void 0,dir:g,...m,ref:t})})})});We.displayName=Le;var Ge=`RadioGroupItem`,Ke=D.forwardRef((e,t)=>{let{__scopeRadioGroup:n,disabled:r,...i}=e,a=Ue(Ge,n),o=a.disabled||r,s=Be(n),c=Ve(n),l=D.useRef(null),u=m(t,l),d=a.value===i.value,f=D.useRef(!1);return D.useEffect(()=>{let e=e=>{Ie.includes(e.key)&&(f.current=!0)},t=()=>f.current=!1;return document.addEventListener(`keydown`,e),document.addEventListener(`keyup`,t),()=>{document.removeEventListener(`keydown`,e),document.removeEventListener(`keyup`,t)}},[]),(0,O.jsx)(ge,{asChild:!0,...s,focusable:!o,active:d,children:(0,O.jsx)(Ae,{disabled:o,required:a.required,checked:d,...c,...i,name:a.name,ref:u,onCheck:()=>a.onValueChange(i.value),onKeyDown:ye(e=>{e.key===`Enter`&&e.preventDefault()}),onFocus:ye(i.onFocus,()=>{f.current&&l.current?.click()})})})});Ke.displayName=Ge;var qe=`RadioGroupIndicator`,Je=D.forwardRef((e,t)=>{let{__scopeRadioGroup:n,...r}=e;return(0,O.jsx)(Me,{...Ve(n),...r,ref:t})});Je.displayName=qe;var Ye=We,Xe=Ke,Ze=Je;function Qe({value:e,onValueChange:t,name:n,disabled:r,orientation:i=`vertical`,required:a,className:o,style:s,children:c,"aria-label":l,"aria-labelledby":u}){let d=i===`horizontal`?`flex flex-row flex-wrap items-center gap-4`:`flex flex-col gap-2.5`;return(0,O.jsx)(Ye,{value:e,onValueChange:e=>t(e),name:n,disabled:r,required:a,orientation:i,className:h(d,o),style:s,"aria-label":l,"aria-labelledby":u,"data-slot":`radio-group`,children:c})}function $e({value:e,label:t,helperText:n,disabled:r,id:i,className:a,"aria-label":o}){let s=(0,D.useId)(),c=i??`radio-${s}`,l=n?`${c}-helper`:void 0,u=r?`var(--content-disabled)`:`var(--system-positive-strong)`,d=r?`var(--surface-overlay)`:`transparent`;return(0,O.jsxs)(`div`,{"data-slot":`radio`,className:h(`flex gap-2`,n?`items-start`:`items-center`,a),children:[(0,O.jsx)(Xe,{id:c,value:e,disabled:r,"aria-label":t?void 0:o,"aria-describedby":l,className:h(`relative inline-flex h-4 w-4 shrink-0 items-center justify-center rounded-full border transition-colors`,`border-[color:var(--radio-border)]`,`[--radio-border:var(--border-element)]`,`data-[state=checked]:border-transparent`,`disabled:[--radio-border:var(--content-disabled)]`,`disabled:cursor-not-allowed`,`keyboard-focus:outline-none keyboard-focus:ring-2 keyboard-focus:ring-offset-1`,`keyboard-focus:ring-[color-mix(in_srgb,var(--system-positive-strong)_30%,transparent)]`),style:{background:d},children:(0,O.jsx)(Ze,{forceMount:!0,className:`flex h-full w-full items-center justify-center rounded-full data-[state=unchecked]:opacity-0`,style:{background:u},children:(0,O.jsx)(`span`,{"aria-hidden":!0,className:`block h-2 w-2 rounded-full`,style:{background:r?`var(--surface-overlay)`:`var(--aux-white)`}})})}),(t||n)&&(0,O.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-0.5`,children:[t?(0,O.jsx)(g,{as:`label`,variant:`body-medium-lighter`,htmlFor:c,className:h(r?`cursor-not-allowed`:`cursor-pointer`,r?`text-[color:var(--content-disabled)]`:`text-[color:var(--content-default)]`),children:t}):null,n?(0,O.jsx)(g,{as:`span`,variant:`body-small-default`,id:l,className:h(`leading-4`,r?`text-[color:var(--content-disabled)]`:`text-[color:var(--content-tertiary)]`),children:n}):null]})]})}var et=`Tabs`,[tt,nt]=a(et,[y]),rt=y(),[it,at]=tt(et),ot=D.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,onValueChange:a,defaultValue:o,orientation:s=`horizontal`,dir:c,activationMode:l=`automatic`,...u}=e,p=he(c),[m,h]=d({prop:r,onChange:a,defaultProp:o??``,caller:et});return(0,O.jsx)(it,{scope:n,baseId:f(),value:m,onValueChange:h,orientation:s,dir:p,activationMode:l,children:(0,O.jsx)(i.div,{dir:p,"data-orientation":s,...u,ref:t})})});ot.displayName=et;var st=`TabsList`,ct=D.forwardRef((e,t)=>{let{__scopeTabs:n,loop:r=!0,...a}=e,o=at(st,n),s=rt(n);return(0,O.jsx)(S,{asChild:!0,...s,orientation:o.orientation,dir:o.dir,loop:r,children:(0,O.jsx)(i.div,{role:`tablist`,"aria-orientation":o.orientation,...a,ref:t})})});ct.displayName=st;var lt=`TabsTrigger`,ut=D.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,disabled:a=!1,...o}=e,s=at(lt,n),c=rt(n),l=pt(s.baseId,r),u=mt(s.baseId,r),d=r===s.value;return(0,O.jsx)(ge,{asChild:!0,...c,focusable:!a,active:d,children:(0,O.jsx)(i.button,{type:`button`,role:`tab`,"aria-selected":d,"aria-controls":u,"data-state":d?`active`:`inactive`,"data-disabled":a?``:void 0,disabled:a,id:l,...o,ref:t,onMouseDown:ye(e.onMouseDown,e=>{!a&&e.button===0&&e.ctrlKey===!1?s.onValueChange(r):e.preventDefault()}),onKeyDown:ye(e.onKeyDown,e=>{[` `,`Enter`].includes(e.key)&&s.onValueChange(r)}),onFocus:ye(e.onFocus,()=>{let e=s.activationMode!==`manual`;!d&&!a&&e&&s.onValueChange(r)})})})});ut.displayName=lt;var dt=`TabsContent`,ft=D.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,forceMount:a,children:o,...s}=e,c=at(dt,n),l=pt(c.baseId,r),u=mt(c.baseId,r),d=r===c.value,f=D.useRef(d);return D.useEffect(()=>{let e=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,O.jsx)(be,{present:a||d,children:({present:n})=>(0,O.jsx)(i.div,{"data-state":d?`active`:`inactive`,"data-orientation":c.orientation,role:`tabpanel`,"aria-labelledby":l,hidden:!n,id:u,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:f.current?`0s`:void 0},children:n&&o})})});ft.displayName=dt;function pt(e,t){return`${e}-trigger-${t}`}function mt(e,t){return`${e}-content-${t}`}var ht=ot,gt=ct,_t=ut,vt=ft;function yt({className:e,ref:t,...n}){return(0,O.jsx)(ht,{ref:t,"data-slot":`tabs`,className:e,...n})}function bt({className:e,ref:t,...n}){return(0,O.jsx)(gt,{ref:t,"data-slot":`tabs-list`,className:h(`flex items-center border-b border-[var(--border-base)]`,e),...n})}function xt({className:e,ref:t,...n}){return(0,O.jsx)(_t,{ref:t,"data-slot":`tabs-trigger`,className:h(`relative -mb-px inline-flex cursor-pointer items-center gap-1.5 border-b-2 border-transparent bg-transparent px-2.5 py-[7px]`,`text-body-medium-default whitespace-nowrap`,`text-[var(--content-tertiary)] transition-colors`,`outline-none keyboard-focus:ring-2 keyboard-focus:ring-[var(--ring)] keyboard-focus:ring-offset-0`,`hover:bg-[var(--surface-hover)] hover:text-[var(--content-default)]`,`data-[state=active]:border-[var(--primary-base)] data-[state=active]:text-[var(--content-default)]`,`data-[state=active]:hover:bg-transparent`,`disabled:cursor-not-allowed disabled:text-[var(--content-disabled)]`,`disabled:hover:bg-transparent disabled:hover:text-[var(--content-disabled)]`,e),...n})}function St({className:e,ref:t,...n}){return(0,O.jsx)(vt,{ref:t,"data-slot":`tabs-panel`,className:h(`outline-none keyboard-focus:ring-2 keyboard-focus:ring-[var(--ring)] keyboard-focus:ring-offset-0`,e),...n})}var Ct={Root:yt,List:bt,Trigger:xt,Panel:St};function wt(e,[t,n]){return Math.min(n,Math.max(t,e))}var Tt=[`PageUp`,`PageDown`],Et=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`],Dt={"from-left":[`Home`,`PageDown`,`ArrowDown`,`ArrowLeft`],"from-right":[`Home`,`PageDown`,`ArrowDown`,`ArrowRight`],"from-bottom":[`Home`,`PageDown`,`ArrowDown`,`ArrowLeft`],"from-top":[`Home`,`PageDown`,`ArrowUp`,`ArrowLeft`]},Ot=`Slider`,[kt,At,jt]=C(Ot),[Mt,Nt]=a(Ot,[jt]),[Pt,Ft]=Mt(Ot),It=D.forwardRef((e,t)=>{let{name:n,min:r=0,max:i=100,step:a=1,orientation:o=`horizontal`,disabled:s=!1,minStepsBetweenThumbs:c=0,defaultValue:l=[r],value:u,onValueChange:f=()=>{},onValueCommit:p=()=>{},inverted:m=!1,form:h,...g}=e,_=D.useRef(new Set),v=D.useRef(0),y=o===`horizontal`?zt:Bt,[b=[],x]=d({prop:u,defaultProp:l,onChange:e=>{[..._.current][v.current]?.focus(),f(e)}}),S=D.useRef(b);function C(e){E(e,en(b,e))}function w(e){E(e,v.current)}function T(){let e=S.current[v.current];b[v.current]!==e&&p(b)}function E(e,t,{commit:n}={commit:!1}){let o=on(a),s=wt(sn(Math.round((e-r)/a)*a+r,o),[r,i]);x((e=[])=>{let r=Zt(e,s,t);if(rn(r,c*a)){v.current=r.indexOf(s);let t=String(r)!==String(e);return t&&n&&p(r),t?r:e}else return e})}return(0,O.jsx)(Pt,{scope:e.__scopeSlider,name:n,disabled:s,min:r,max:i,valueIndexToChangeRef:v,thumbs:_.current,values:b,orientation:o,form:h,children:(0,O.jsx)(kt.Provider,{scope:e.__scopeSlider,children:(0,O.jsx)(kt.Slot,{scope:e.__scopeSlider,children:(0,O.jsx)(y,{"aria-disabled":s,"data-disabled":s?``:void 0,...g,ref:t,onPointerDown:ye(g.onPointerDown,()=>{s||(S.current=b)}),min:r,max:i,inverted:m,onSlideStart:s?void 0:C,onSlideMove:s?void 0:w,onSlideEnd:s?void 0:T,onHomeKeyDown:()=>!s&&E(r,0,{commit:!0}),onEndKeyDown:()=>!s&&E(i,b.length-1,{commit:!0}),onStepKeyDown:({event:e,direction:t})=>{if(!s){let n=Tt.includes(e.key)||e.shiftKey&&Et.includes(e.key)?10:1,r=v.current,i=b[r];E(i+a*n*t,r,{commit:!0})}}})})})})});It.displayName=Ot;var[Lt,Rt]=Mt(Ot,{startEdge:`left`,endEdge:`right`,size:`width`,direction:1}),zt=D.forwardRef((e,t)=>{let{min:n,max:r,dir:i,inverted:a,onSlideStart:o,onSlideMove:s,onSlideEnd:c,onStepKeyDown:l,...u}=e,[d,f]=D.useState(null),p=m(t,e=>f(e)),h=D.useRef(void 0),g=he(i),_=g===`ltr`,v=_&&!a||!_&&a;function y(e){let t=h.current||d.getBoundingClientRect(),i=an([0,t.width],v?[n,r]:[r,n]);return h.current=t,i(e-t.left)}return(0,O.jsx)(Lt,{scope:e.__scopeSlider,startEdge:v?`left`:`right`,endEdge:v?`right`:`left`,direction:v?1:-1,size:`width`,children:(0,O.jsx)(Vt,{dir:g,"data-orientation":`horizontal`,...u,ref:p,style:{...u.style,"--radix-slider-thumb-transform":`translateX(-50%)`},onSlideStart:e=>{let t=y(e.clientX);o?.(t)},onSlideMove:e=>{let t=y(e.clientX);s?.(t)},onSlideEnd:()=>{h.current=void 0,c?.()},onStepKeyDown:e=>{let t=Dt[v?`from-left`:`from-right`].includes(e.key);l?.({event:e,direction:t?-1:1})}})})}),Bt=D.forwardRef((e,t)=>{let{min:n,max:r,inverted:i,onSlideStart:a,onSlideMove:o,onSlideEnd:s,onStepKeyDown:c,...l}=e,u=D.useRef(null),d=m(t,u),f=D.useRef(void 0),p=!i;function h(e){let t=f.current||u.current.getBoundingClientRect(),i=an([0,t.height],p?[r,n]:[n,r]);return f.current=t,i(e-t.top)}return(0,O.jsx)(Lt,{scope:e.__scopeSlider,startEdge:p?`bottom`:`top`,endEdge:p?`top`:`bottom`,size:`height`,direction:p?1:-1,children:(0,O.jsx)(Vt,{"data-orientation":`vertical`,...l,ref:d,style:{...l.style,"--radix-slider-thumb-transform":`translateY(50%)`},onSlideStart:e=>{let t=h(e.clientY);a?.(t)},onSlideMove:e=>{let t=h(e.clientY);o?.(t)},onSlideEnd:()=>{f.current=void 0,s?.()},onStepKeyDown:e=>{let t=Dt[p?`from-bottom`:`from-top`].includes(e.key);c?.({event:e,direction:t?-1:1})}})})}),Vt=D.forwardRef((e,t)=>{let{__scopeSlider:n,onSlideStart:r,onSlideMove:a,onSlideEnd:o,onHomeKeyDown:s,onEndKeyDown:c,onStepKeyDown:l,...u}=e,d=Ft(Ot,n);return(0,O.jsx)(i.span,{...u,ref:t,onKeyDown:ye(e.onKeyDown,e=>{e.key===`Home`?(s(e),e.preventDefault()):e.key===`End`?(c(e),e.preventDefault()):Tt.concat(Et).includes(e.key)&&(l(e),e.preventDefault())}),onPointerDown:ye(e.onPointerDown,e=>{let t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),d.thumbs.has(t)?t.focus():r(e)}),onPointerMove:ye(e.onPointerMove,e=>{e.target.hasPointerCapture(e.pointerId)&&a(e)}),onPointerUp:ye(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),o(e))})})}),Ht=`SliderTrack`,Ut=D.forwardRef((e,t)=>{let{__scopeSlider:n,...r}=e,a=Ft(Ht,n);return(0,O.jsx)(i.span,{"data-disabled":a.disabled?``:void 0,"data-orientation":a.orientation,...r,ref:t})});Ut.displayName=Ht;var Wt=`SliderRange`,Gt=D.forwardRef((e,t)=>{let{__scopeSlider:n,...r}=e,a=Ft(Wt,n),o=Rt(Wt,n),s=m(t,D.useRef(null)),c=a.values.length,l=a.values.map(e=>Qt(e,a.min,a.max)),u=c>1?Math.min(...l):0,d=100-Math.max(...l);return(0,O.jsx)(i.span,{"data-orientation":a.orientation,"data-disabled":a.disabled?``:void 0,...r,ref:s,style:{...e.style,[o.startEdge]:u+`%`,[o.endEdge]:d+`%`}})});Gt.displayName=Wt;var Kt=`SliderThumb`,qt=D.forwardRef((e,t)=>{let n=At(e.__scopeSlider),[r,i]=D.useState(null),a=m(t,e=>i(e)),o=D.useMemo(()=>r?n().findIndex(e=>e.ref.current===r):-1,[n,r]);return(0,O.jsx)(Jt,{...e,ref:a,index:o})}),Jt=D.forwardRef((e,t)=>{let{__scopeSlider:n,index:r,name:a,...o}=e,s=Ft(Kt,n),c=Rt(Kt,n),[u,d]=D.useState(null),f=m(t,e=>d(e)),p=u?s.form||!!u.closest(`form`):!0,h=l(u),g=s.values[r],_=g===void 0?0:Qt(g,s.min,s.max),v=$t(r,s.values.length),y=h?.[c.size],b=y?tn(y,_,c.direction):0;return D.useEffect(()=>{if(u)return s.thumbs.add(u),()=>{s.thumbs.delete(u)}},[u,s.thumbs]),(0,O.jsxs)(`span`,{style:{transform:`var(--radix-slider-thumb-transform)`,position:`absolute`,[c.startEdge]:`calc(${_}% + ${b}px)`},children:[(0,O.jsx)(kt.ItemSlot,{scope:e.__scopeSlider,children:(0,O.jsx)(i.span,{role:`slider`,"aria-label":e[`aria-label`]||v,"aria-valuemin":s.min,"aria-valuenow":g,"aria-valuemax":s.max,"aria-orientation":s.orientation,"data-orientation":s.orientation,"data-disabled":s.disabled?``:void 0,tabIndex:s.disabled?void 0:0,...o,ref:f,style:g===void 0?{display:`none`}:e.style,onFocus:ye(e.onFocus,()=>{s.valueIndexToChangeRef.current=r})})}),p&&(0,O.jsx)(Xt,{name:a??(s.name?s.name+(s.values.length>1?`[]`:``):void 0),form:s.form,value:g},r)]})});qt.displayName=Kt;var Yt=`RadioBubbleInput`,Xt=D.forwardRef(({__scopeSlider:e,value:t,...n},r)=>{let a=D.useRef(null),o=m(a,r),s=ve(t);return D.useEffect(()=>{let e=a.current;if(!e)return;let n=window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor(n,`value`).set;if(s!==t&&r){let n=new Event(`input`,{bubbles:!0});r.call(e,t),e.dispatchEvent(n)}},[s,t]),(0,O.jsx)(i.input,{style:{display:`none`},...n,ref:o,defaultValue:t})});Xt.displayName=Yt;function Zt(e=[],t,n){let r=[...e];return r[n]=t,r.sort((e,t)=>e-t)}function Qt(e,t,n){return wt(100/(n-t)*(e-t),[0,100])}function $t(e,t){if(t>2)return`Value ${e+1} of ${t}`;if(t===2)return[`Minimum`,`Maximum`][e]}function en(e,t){if(e.length===1)return 0;let n=e.map(e=>Math.abs(e-t)),r=Math.min(...n);return n.indexOf(r)}function tn(e,t,n){let r=e/2;return(r-an([0,50],[0,r])(t)*n)*n}function nn(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function rn(e,t){if(t>0){let n=nn(e);return Math.min(...n)>=t}return!0}function an(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function on(e){return(String(e).split(`.`)[1]||``).length}function sn(e,t){let n=10**t;return Math.round(e*n)/n}var cn=It,ln=Ut,un=Gt,dn=qt;function fn(e){return Array.isArray(e)}function pn(e){return fn(e)?[e[0],e[1]]:[e]}function mn(e,t,n,r){return t?[e[0]??n,e[1]??r]:e[0]??n}function hn(e){return fn(e)?`${e[0]} – ${e[1]}`:String(e)}function gn({value:e,onValueChange:t,min:n=0,max:r=100,step:i=1,disabled:a=!1,label:o,showValue:s=!1,formatValue:c,name:l,id:u,"aria-label":d,className:f}){let p=(0,D.useId)(),m=u??p,g=o?`${m}-label`:void 0,_=fn(e),v=pn(e),y=e=>{t(mn(e,_,n,r))},b=c?c(e):hn(e),x=h(`block h-4 w-4 rounded-full bg-[var(--aux-white)]`,`border-2 border-[var(--system-positive-strong)]`,`shadow-sm transition-colors`,`keyboard-focus:outline-none keyboard-focus:ring-2 keyboard-focus:ring-[var(--ring)] keyboard-focus:ring-offset-0`,a?`cursor-not-allowed border-[var(--border-disabled)]`:`cursor-grab active:cursor-grabbing`);return(0,O.jsxs)(`div`,{"data-slot":`slider`,className:h(`flex flex-col gap-1.5`,f),children:[(o||s)&&(0,O.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[o?(0,O.jsx)(`span`,{id:g,className:h(`text-body-medium-default`,a?`text-[var(--content-disabled)]`:`text-[var(--content-default)]`),children:o}):(0,O.jsx)(`span`,{}),s?(0,O.jsx)(`span`,{className:h(`text-body-medium-lighter tabular-nums`,a?`text-[var(--content-disabled)]`:`text-[var(--content-secondary)]`),children:b}):null]}),(0,O.jsxs)(cn,{id:m,name:l,value:v,onValueChange:y,min:n,max:r,step:i,disabled:a,"aria-label":o?void 0:d,"aria-labelledby":o?g:void 0,className:h(`relative flex w-full touch-none items-center select-none`,`h-5`,a&&`opacity-60`),children:[(0,O.jsx)(ln,{className:h(`relative h-1 w-full grow overflow-hidden rounded-full`,`bg-[var(--border-disabled)]`),children:(0,O.jsx)(un,{className:h(`absolute h-full rounded-full`,a?`bg-[var(--border-element)]`:`bg-[var(--system-positive-strong)]`)})}),(0,O.jsx)(dn,{className:x}),_?(0,O.jsx)(dn,{className:x}):null]})]})}var _n=`ContextMenu`,[vn,yn]=a(_n,[E]),bn=E(),[xn,Sn]=vn(_n),Cn=e=>{let{__scopeContextMenu:t,children:n,onOpenChange:r,dir:i,modal:a=!0}=e,[s,c]=D.useState(!1),l=bn(t),u=o(r),d=D.useCallback(e=>{c(e),u(e)},[u]);return(0,O.jsx)(xn,{scope:t,open:s,onOpenChange:d,modal:a,children:(0,O.jsx)(ie,{...l,dir:i,open:s,onOpenChange:d,modal:a,children:n})})};Cn.displayName=_n;var wn=`ContextMenuTrigger`,Tn=D.forwardRef((e,t)=>{let{__scopeContextMenu:n,disabled:r=!1,...a}=e,o=Sn(wn,n),s=bn(n),c=D.useRef({x:0,y:0}),l=D.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...c.current})}),u=D.useRef(0),d=D.useCallback(()=>window.clearTimeout(u.current),[]),f=e=>{c.current={x:e.clientX,y:e.clientY},o.onOpenChange(!0)};return D.useEffect(()=>d,[d]),D.useEffect(()=>void(r&&d()),[r,d]),(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(ae,{...s,virtualRef:l}),(0,O.jsx)(i.span,{"data-state":o.open?`open`:`closed`,"data-disabled":r?``:void 0,...a,ref:t,style:{WebkitTouchCallout:`none`,...e.style},onContextMenu:r?e.onContextMenu:ye(e.onContextMenu,e=>{d(),f(e),e.preventDefault()}),onPointerDown:r?e.onPointerDown:ye(e.onPointerDown,er(e=>{d(),u.current=window.setTimeout(()=>f(e),700)})),onPointerMove:r?e.onPointerMove:ye(e.onPointerMove,er(d)),onPointerCancel:r?e.onPointerCancel:ye(e.onPointerCancel,er(d)),onPointerUp:r?e.onPointerUp:ye(e.onPointerUp,er(d))})]})});Tn.displayName=wn;var En=`ContextMenuPortal`,Dn=e=>{let{__scopeContextMenu:t,...n}=e,r=bn(t);return(0,O.jsx)(ne,{...r,...n})};Dn.displayName=En;var On=`ContextMenuContent`,kn=D.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=Sn(On,n),a=bn(n),o=D.useRef(!1);return(0,O.jsx)(fe,{...a,...r,ref:t,side:`right`,sideOffset:2,align:`start`,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),!t.defaultPrevented&&o.current&&t.preventDefault(),o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),!t.defaultPrevented&&!i.modal&&(o.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-context-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-context-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-context-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-context-menu-trigger-height":`var(--radix-popper-anchor-height)`}})});kn.displayName=On;var An=`ContextMenuGroup`,jn=D.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=bn(n);return(0,O.jsx)(ee,{...i,...r,ref:t})});jn.displayName=An;var Mn=`ContextMenuLabel`,Nn=D.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=bn(n);return(0,O.jsx)(te,{...i,...r,ref:t})});Nn.displayName=Mn;var Pn=`ContextMenuItem`,Fn=D.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=bn(n);return(0,O.jsx)(oe,{...i,...r,ref:t})});Fn.displayName=Pn;var In=`ContextMenuCheckboxItem`,Ln=D.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=bn(n);return(0,O.jsx)(le,{...i,...r,ref:t})});Ln.displayName=In;var Rn=`ContextMenuRadioGroup`,zn=D.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=bn(n);return(0,O.jsx)(ue,{...i,...r,ref:t})});zn.displayName=Rn;var Bn=`ContextMenuRadioItem`,Vn=D.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=bn(n);return(0,O.jsx)(se,{...i,...r,ref:t})});Vn.displayName=Bn;var Hn=`ContextMenuItemIndicator`,Un=D.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=bn(n);return(0,O.jsx)(pe,{...i,...r,ref:t})});Un.displayName=Hn;var Wn=`ContextMenuSeparator`,Gn=D.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=bn(n);return(0,O.jsx)(re,{...i,...r,ref:t})});Gn.displayName=Wn;var Kn=`ContextMenuArrow`,qn=D.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=bn(n);return(0,O.jsx)(T,{...i,...r,ref:t})});qn.displayName=Kn;var Jn=`ContextMenuSub`,Yn=e=>{let{__scopeContextMenu:t,children:n,onOpenChange:r,open:i,defaultOpen:a}=e,o=bn(t),[s,c]=d({prop:i,defaultProp:a??!1,onChange:r,caller:Jn});return(0,O.jsx)(w,{...o,open:s,onOpenChange:c,children:n})};Yn.displayName=Jn;var Xn=`ContextMenuSubTrigger`,Zn=D.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=bn(n);return(0,O.jsx)(_e,{...i,...r,ref:t})});Zn.displayName=Xn;var Qn=`ContextMenuSubContent`,$n=D.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=bn(n);return(0,O.jsx)(me,{...i,...r,ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-context-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-context-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-context-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-context-menu-trigger-height":`var(--radix-popper-anchor-height)`}})});$n.displayName=Qn;function er(e){return t=>t.pointerType===`mouse`?void 0:e(t)}var tr=Cn,nr=Tn,rr=Dn,ir=kn,ar=Nn,or=Fn,sr=Ln,cr=zn,lr=Vn,ur=Un,dr=Gn,fr=Yn,pr=Zn,mr=$n,hr=tr;function gr({asChild:e=!0,...t}){return(0,O.jsx)(nr,{"data-slot":`context-menu-trigger`,asChild:e,...t})}function _r({className:e,collisionPadding:t=8,ref:n,...r}){let i=s();return(0,O.jsx)(rr,{container:i??void 0,children:(0,O.jsx)(ir,{ref:n,"data-slot":`context-menu-content`,collisionPadding:t,className:h(ce,e),...r})})}function vr({className:e,children:t,leftIcon:n,shortcut:r,ref:i,...a}){return(0,O.jsxs)(or,{ref:i,"data-slot":`context-menu-item`,className:h(de,e),...a,children:[n?(0,O.jsx)(`span`,{className:`flex h-4 w-4 shrink-0 items-center justify-center text-[var(--content-tertiary)]`,"aria-hidden":!0,children:n}):null,(0,O.jsx)(`span`,{className:`flex-1 truncate`,children:t}),r?(0,O.jsx)(`span`,{className:`ml-auto pl-4 text-body-small-default tracking-wide text-[var(--content-tertiary)]`,children:r}):null]})}function yr({className:e,children:t,checked:n,shortcut:r,ref:i,...a}){return(0,O.jsxs)(sr,{ref:i,checked:n,"data-slot":`context-menu-checkbox-item`,className:h(de,`pl-7`,e),...a,children:[(0,O.jsx)(`span`,{className:`absolute left-1.5 flex h-4 w-4 items-center justify-center`,children:(0,O.jsx)(ur,{children:(0,O.jsx)(v,{className:`h-3.5 w-3.5 text-[var(--content-default)]`,"aria-hidden":!0})})}),(0,O.jsx)(`span`,{className:`flex-1 truncate`,children:t}),r?(0,O.jsx)(`span`,{className:`ml-auto pl-4 text-body-small-default tracking-wide text-[var(--content-tertiary)]`,children:r}):null]})}function br({ref:e,...t}){return(0,O.jsx)(cr,{ref:e,"data-slot":`context-menu-radio-group`,...t})}function xr({className:e,children:t,shortcut:n,ref:r,...i}){return(0,O.jsxs)(lr,{ref:r,"data-slot":`context-menu-radio-item`,className:h(de,`pl-7`,e),...i,children:[(0,O.jsx)(`span`,{className:`absolute left-1.5 flex h-4 w-4 items-center justify-center`,children:(0,O.jsx)(ur,{children:(0,O.jsx)(x,{className:`h-2 w-2 fill-current text-[var(--content-default)]`,"aria-hidden":!0})})}),(0,O.jsx)(`span`,{className:`flex-1 truncate`,children:t}),n?(0,O.jsx)(`span`,{className:`ml-auto pl-4 text-body-small-default tracking-wide text-[var(--content-tertiary)]`,children:n}):null]})}function Sr({className:e,ref:t,...n}){return(0,O.jsx)(dr,{ref:t,"data-slot":`context-menu-separator`,className:h(`my-1 h-px bg-[var(--border-base)]`,e),...n})}function Cr({className:e,ref:t,...n}){return(0,O.jsx)(ar,{ref:t,"data-slot":`context-menu-label`,className:h(`px-2 py-1.5 text-body-small-default uppercase tracking-wide`,`text-[var(--content-tertiary)]`,e),...n})}var wr=fr;function Tr({className:e,children:t,leftIcon:n,ref:r,...i}){return(0,O.jsxs)(pr,{ref:r,"data-slot":`context-menu-sub-trigger`,className:h(de,`data-[state=open]:bg-[var(--surface-hover)]`,`data-[state=open]:text-[var(--content-emphasised)]`,e),...i,children:[n?(0,O.jsx)(`span`,{className:`flex h-4 w-4 shrink-0 items-center justify-center text-[var(--content-tertiary)]`,"aria-hidden":!0,children:n}):null,(0,O.jsx)(`span`,{className:`flex-1 truncate`,children:t}),(0,O.jsx)(b,{className:`ml-auto h-3.5 w-3.5 text-[var(--content-tertiary)]`,"aria-hidden":!0})]})}function Er({className:e,ref:t,...n}){let r=s();return(0,O.jsx)(rr,{container:r??void 0,children:(0,O.jsx)(mr,{ref:t,"data-slot":`context-menu-sub-content`,className:h(ce,e),...n})})}var Dr={Root:hr,Trigger:gr,Content:_r,Item:vr,CheckboxItem:yr,RadioGroup:br,RadioItem:xr,Separator:Sr,Label:Cr,Sub:wr,SubTrigger:Tr,SubContent:Er};function Or(e){let t=[],n=String(e||``),r=n.indexOf(`,`),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);let e=n.slice(i,r).trim();(e||!a)&&t.push(e),i=r+1,r=n.indexOf(`,`,i)}return t}function kr(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var Ar=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,jr=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Mr={};function Nr(e,t){return((t||Mr).jsx?jr:Ar).test(e)}var Pr=/[ \t\n\f\r]/g;function Fr(e){return typeof e==`object`?e.type===`text`?Ir(e.value):!1:Ir(e)}function Ir(e){return e.replace(Pr,``)===``}var Lr=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};Lr.prototype.normal={},Lr.prototype.property={},Lr.prototype.space=void 0;function Rr(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new Lr(n,r,t)}function zr(e){return e.toLowerCase()}var Br=class{constructor(e,t){this.attribute=t,this.property=e}};Br.prototype.attribute=``,Br.prototype.booleanish=!1,Br.prototype.boolean=!1,Br.prototype.commaOrSpaceSeparated=!1,Br.prototype.commaSeparated=!1,Br.prototype.defined=!1,Br.prototype.mustUseProperty=!1,Br.prototype.number=!1,Br.prototype.overloadedBoolean=!1,Br.prototype.property=``,Br.prototype.spaceSeparated=!1,Br.prototype.space=void 0;var Vr=t({boolean:()=>k,booleanish:()=>Ur,commaOrSpaceSeparated:()=>qr,commaSeparated:()=>Kr,number:()=>A,overloadedBoolean:()=>Wr,spaceSeparated:()=>Gr}),Hr=0,k=Jr(),Ur=Jr(),Wr=Jr(),A=Jr(),Gr=Jr(),Kr=Jr(),qr=Jr();function Jr(){return 2**++Hr}var Yr=Object.keys(Vr),Xr=class extends Br{constructor(e,t,n,r){let i=-1;if(super(e,t),Zr(this,`space`,r),typeof n==`number`)for(;++i<Yr.length;){let e=Yr[i];Zr(this,Yr[i],(n&Vr[e])===Vr[e])}}};Xr.prototype.defined=!0;function Zr(e,t,n){n&&(e[t]=n)}function Qr(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new Xr(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[zr(r)]=r,n[zr(a.attribute)]=r}return new Lr(t,n,e.space)}var $r=Qr({properties:{ariaActiveDescendant:null,ariaAtomic:Ur,ariaAutoComplete:null,ariaBusy:Ur,ariaChecked:Ur,ariaColCount:A,ariaColIndex:A,ariaColSpan:A,ariaControls:Gr,ariaCurrent:null,ariaDescribedBy:Gr,ariaDetails:null,ariaDisabled:Ur,ariaDropEffect:Gr,ariaErrorMessage:null,ariaExpanded:Ur,ariaFlowTo:Gr,ariaGrabbed:Ur,ariaHasPopup:null,ariaHidden:Ur,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Gr,ariaLevel:A,ariaLive:null,ariaModal:Ur,ariaMultiLine:Ur,ariaMultiSelectable:Ur,ariaOrientation:null,ariaOwns:Gr,ariaPlaceholder:null,ariaPosInSet:A,ariaPressed:Ur,ariaReadOnly:Ur,ariaRelevant:null,ariaRequired:Ur,ariaRoleDescription:Gr,ariaRowCount:A,ariaRowIndex:A,ariaRowSpan:A,ariaSelected:Ur,ariaSetSize:A,ariaSort:null,ariaValueMax:A,ariaValueMin:A,ariaValueNow:A,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function ei(e,t){return t in e?e[t]:t}function ti(e,t){return ei(e,t.toLowerCase())}var ni=Qr({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:Kr,acceptCharset:Gr,accessKey:Gr,action:null,allow:null,allowFullScreen:k,allowPaymentRequest:k,allowUserMedia:k,alt:null,as:null,async:k,autoCapitalize:null,autoComplete:Gr,autoFocus:k,autoPlay:k,blocking:Gr,capture:null,charSet:null,checked:k,cite:null,className:Gr,cols:A,colSpan:null,content:null,contentEditable:Ur,controls:k,controlsList:Gr,coords:A|Kr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:k,defer:k,dir:null,dirName:null,disabled:k,download:Wr,draggable:Ur,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:k,formTarget:null,headers:Gr,height:A,hidden:Wr,high:A,href:null,hrefLang:null,htmlFor:Gr,httpEquiv:Gr,id:null,imageSizes:null,imageSrcSet:null,inert:k,inputMode:null,integrity:null,is:null,isMap:k,itemId:null,itemProp:Gr,itemRef:Gr,itemScope:k,itemType:Gr,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:k,low:A,manifest:null,max:null,maxLength:A,media:null,method:null,min:null,minLength:A,multiple:k,muted:k,name:null,nonce:null,noModule:k,noValidate:k,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:k,optimum:A,pattern:null,ping:Gr,placeholder:null,playsInline:k,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:k,referrerPolicy:null,rel:Gr,required:k,reversed:k,rows:A,rowSpan:A,sandbox:Gr,scope:null,scoped:k,seamless:k,selected:k,shadowRootClonable:k,shadowRootDelegatesFocus:k,shadowRootMode:null,shape:null,size:A,sizes:null,slot:null,span:A,spellCheck:Ur,src:null,srcDoc:null,srcLang:null,srcSet:null,start:A,step:null,style:null,tabIndex:A,target:null,title:null,translate:null,type:null,typeMustMatch:k,useMap:null,value:Ur,width:A,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Gr,axis:null,background:null,bgColor:null,border:A,borderColor:null,bottomMargin:A,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:k,declare:k,event:null,face:null,frame:null,frameBorder:null,hSpace:A,leftMargin:A,link:null,longDesc:null,lowSrc:null,marginHeight:A,marginWidth:A,noResize:k,noHref:k,noShade:k,noWrap:k,object:null,profile:null,prompt:null,rev:null,rightMargin:A,rules:null,scheme:null,scrolling:Ur,standby:null,summary:null,text:null,topMargin:A,valueType:null,version:null,vAlign:null,vLink:null,vSpace:A,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:k,disableRemotePlayback:k,prefix:null,property:null,results:A,security:null,unselectable:null},space:`html`,transform:ti}),ri=Qr({attributes:{accentHeight:`accent-height`,alignmentBaseline:`alignment-baseline`,arabicForm:`arabic-form`,baselineShift:`baseline-shift`,capHeight:`cap-height`,className:`class`,clipPath:`clip-path`,clipRule:`clip-rule`,colorInterpolation:`color-interpolation`,colorInterpolationFilters:`color-interpolation-filters`,colorProfile:`color-profile`,colorRendering:`color-rendering`,crossOrigin:`crossorigin`,dataType:`datatype`,dominantBaseline:`dominant-baseline`,enableBackground:`enable-background`,fillOpacity:`fill-opacity`,fillRule:`fill-rule`,floodColor:`flood-color`,floodOpacity:`flood-opacity`,fontFamily:`font-family`,fontSize:`font-size`,fontSizeAdjust:`font-size-adjust`,fontStretch:`font-stretch`,fontStyle:`font-style`,fontVariant:`font-variant`,fontWeight:`font-weight`,glyphName:`glyph-name`,glyphOrientationHorizontal:`glyph-orientation-horizontal`,glyphOrientationVertical:`glyph-orientation-vertical`,hrefLang:`hreflang`,horizAdvX:`horiz-adv-x`,horizOriginX:`horiz-origin-x`,horizOriginY:`horiz-origin-y`,imageRendering:`image-rendering`,letterSpacing:`letter-spacing`,lightingColor:`lighting-color`,markerEnd:`marker-end`,markerMid:`marker-mid`,markerStart:`marker-start`,navDown:`nav-down`,navDownLeft:`nav-down-left`,navDownRight:`nav-down-right`,navLeft:`nav-left`,navNext:`nav-next`,navPrev:`nav-prev`,navRight:`nav-right`,navUp:`nav-up`,navUpLeft:`nav-up-left`,navUpRight:`nav-up-right`,onAbort:`onabort`,onActivate:`onactivate`,onAfterPrint:`onafterprint`,onBeforePrint:`onbeforeprint`,onBegin:`onbegin`,onCancel:`oncancel`,onCanPlay:`oncanplay`,onCanPlayThrough:`oncanplaythrough`,onChange:`onchange`,onClick:`onclick`,onClose:`onclose`,onCopy:`oncopy`,onCueChange:`oncuechange`,onCut:`oncut`,onDblClick:`ondblclick`,onDrag:`ondrag`,onDragEnd:`ondragend`,onDragEnter:`ondragenter`,onDragExit:`ondragexit`,onDragLeave:`ondragleave`,onDragOver:`ondragover`,onDragStart:`ondragstart`,onDrop:`ondrop`,onDurationChange:`ondurationchange`,onEmptied:`onemptied`,onEnd:`onend`,onEnded:`onended`,onError:`onerror`,onFocus:`onfocus`,onFocusIn:`onfocusin`,onFocusOut:`onfocusout`,onHashChange:`onhashchange`,onInput:`oninput`,onInvalid:`oninvalid`,onKeyDown:`onkeydown`,onKeyPress:`onkeypress`,onKeyUp:`onkeyup`,onLoad:`onload`,onLoadedData:`onloadeddata`,onLoadedMetadata:`onloadedmetadata`,onLoadStart:`onloadstart`,onMessage:`onmessage`,onMouseDown:`onmousedown`,onMouseEnter:`onmouseenter`,onMouseLeave:`onmouseleave`,onMouseMove:`onmousemove`,onMouseOut:`onmouseout`,onMouseOver:`onmouseover`,onMouseUp:`onmouseup`,onMouseWheel:`onmousewheel`,onOffline:`onoffline`,onOnline:`ononline`,onPageHide:`onpagehide`,onPageShow:`onpageshow`,onPaste:`onpaste`,onPause:`onpause`,onPlay:`onplay`,onPlaying:`onplaying`,onPopState:`onpopstate`,onProgress:`onprogress`,onRateChange:`onratechange`,onRepeat:`onrepeat`,onReset:`onreset`,onResize:`onresize`,onScroll:`onscroll`,onSeeked:`onseeked`,onSeeking:`onseeking`,onSelect:`onselect`,onShow:`onshow`,onStalled:`onstalled`,onStorage:`onstorage`,onSubmit:`onsubmit`,onSuspend:`onsuspend`,onTimeUpdate:`ontimeupdate`,onToggle:`ontoggle`,onUnload:`onunload`,onVolumeChange:`onvolumechange`,onWaiting:`onwaiting`,onZoom:`onzoom`,overlinePosition:`overline-position`,overlineThickness:`overline-thickness`,paintOrder:`paint-order`,panose1:`panose-1`,pointerEvents:`pointer-events`,referrerPolicy:`referrerpolicy`,renderingIntent:`rendering-intent`,shapeRendering:`shape-rendering`,stopColor:`stop-color`,stopOpacity:`stop-opacity`,strikethroughPosition:`strikethrough-position`,strikethroughThickness:`strikethrough-thickness`,strokeDashArray:`stroke-dasharray`,strokeDashOffset:`stroke-dashoffset`,strokeLineCap:`stroke-linecap`,strokeLineJoin:`stroke-linejoin`,strokeMiterLimit:`stroke-miterlimit`,strokeOpacity:`stroke-opacity`,strokeWidth:`stroke-width`,tabIndex:`tabindex`,textAnchor:`text-anchor`,textDecoration:`text-decoration`,textRendering:`text-rendering`,transformOrigin:`transform-origin`,typeOf:`typeof`,underlinePosition:`underline-position`,underlineThickness:`underline-thickness`,unicodeBidi:`unicode-bidi`,unicodeRange:`unicode-range`,unitsPerEm:`units-per-em`,vAlphabetic:`v-alphabetic`,vHanging:`v-hanging`,vIdeographic:`v-ideographic`,vMathematical:`v-mathematical`,vectorEffect:`vector-effect`,vertAdvY:`vert-adv-y`,vertOriginX:`vert-origin-x`,vertOriginY:`vert-origin-y`,wordSpacing:`word-spacing`,writingMode:`writing-mode`,xHeight:`x-height`,playbackOrder:`playbackorder`,timelineBegin:`timelinebegin`},properties:{about:qr,accentHeight:A,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:A,amplitude:A,arabicForm:null,ascent:A,attributeName:null,attributeType:null,azimuth:A,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:A,by:null,calcMode:null,capHeight:A,className:Gr,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:A,diffuseConstant:A,direction:null,display:null,dur:null,divisor:A,dominantBaseline:null,download:k,dx:null,dy:null,edgeMode:null,editable:null,elevation:A,enableBackground:null,end:null,event:null,exponent:A,externalResourcesRequired:null,fill:null,fillOpacity:A,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Kr,g2:Kr,glyphName:Kr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:A,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:A,horizOriginX:A,horizOriginY:A,id:null,ideographic:A,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:A,k:A,k1:A,k2:A,k3:A,k4:A,kernelMatrix:qr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:A,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:A,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:A,overlineThickness:A,paintOrder:null,panose1:null,path:null,pathLength:A,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Gr,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:A,pointsAtY:A,pointsAtZ:A,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:qr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:qr,rev:qr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:qr,requiredFeatures:qr,requiredFonts:qr,requiredFormats:qr,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:A,specularExponent:A,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:A,strikethroughThickness:A,string:null,stroke:null,strokeDashArray:qr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:A,strokeOpacity:A,strokeWidth:null,style:null,surfaceScale:A,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:qr,tabIndex:A,tableValues:null,target:null,targetX:A,targetY:A,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:qr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:A,underlineThickness:A,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:A,values:null,vAlphabetic:A,vMathematical:A,vectorEffect:null,vHanging:A,vIdeographic:A,version:null,vertAdvY:A,vertOriginX:A,vertOriginY:A,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:A,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:ei}),ii=Qr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),ai=Qr({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:ti}),oi=Qr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),si={classId:`classID`,dataType:`datatype`,itemId:`itemID`,strokeDashArray:`strokeDasharray`,strokeDashOffset:`strokeDashoffset`,strokeLineCap:`strokeLinecap`,strokeLineJoin:`strokeLinejoin`,strokeMiterLimit:`strokeMiterlimit`,typeOf:`typeof`,xLinkActuate:`xlinkActuate`,xLinkArcRole:`xlinkArcrole`,xLinkHref:`xlinkHref`,xLinkRole:`xlinkRole`,xLinkShow:`xlinkShow`,xLinkTitle:`xlinkTitle`,xLinkType:`xlinkType`,xmlnsXLink:`xmlnsXlink`},ci=/[A-Z]/g,li=/-[a-z]/g,ui=/^data[-\w.:]+$/i;function di(e,t){let n=zr(t),r=t,i=Br;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&ui.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(li,pi);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!li.test(e)){let n=e.replace(ci,fi);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=Xr}return new i(r,t)}function fi(e){return`-`+e.toLowerCase()}function pi(e){return e.charAt(1).toUpperCase()}var mi=Rr([$r,ni,ii,ai,oi],`html`),hi=Rr([$r,ri,ii,ai,oi],`svg`);function gi(e){let t=String(e||``).trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function _i(e){return e.join(` `).trim()}var vi=n(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g,u=`
1
+ import{o as e,r as t,t as n}from"./chunk-jRWAZmH_.js";import{t as r}from"./react-DJZBPgpf.js";import{C as i,E as a,S as o,a as s,b as c,c as l,n as u,o as d,y as f}from"./button-D7s2Q_uG.js";import{t as p}from"./jsx-runtime-CVSDxk6A.js";import{o as m,t as h}from"./cn-DvW5mxZR.js";import{t as g}from"./typography-BscuIPxA.js";import"./card-BibIM9x3.js";import{t as _}from"./createLucideIcon-Bjb-Kuq7.js";import{t as v}from"./check-CW0KmV0o.js";import"./dropdown-yOV5eJnU.js";import{C as y,D as b,E as x,S,T as C,_ as w,a as T,b as E,c as ee,d as te,f as ne,g as re,h as ie,i as ae,l as oe,m as se,n as ce,o as le,p as ue,r as de,s as fe,u as pe,v as me,w as he,x as ge,y as _e}from"./menu-CdoNX1qx.js";import"./confirm-dialog-SpCsmAdG.js";import{n as ve}from"./checkbox-ChtGq7OI.js";import"./notice-CynJKEow.js";import"./progress-bar-DFH5aT1D.js";import"./tag-CE_o2aao.js";import{n as ye,t as be}from"./dist-BQHdyjQ3.js";import"./popover-BsF65jZY.js";import"./input-Ch7OC6ME.js";import"./toggle-95p73HGd.js";import"./stat-square-CraPxMcl.js";import"./modal-CHuPOsJJ.js";import"./panel-item-BLQE_l-g.js";import"./toast-CxaZ5f1d.js";import"./skill-row-DDoJmniT.js";import"./shortcut-keys-vM6sNj7W.js";var xe=_(`copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]),D=e(r(),1),O=p(),Se=8;function Ce(e,t){if(!e||typeof window>`u`)return null;try{let n=localStorage.getItem(e);if(n==null)return null;let r=Number(n);return Number.isFinite(r)?Math.max(t,r):null}catch{return null}}function we({left:e,right:t,defaultLeftWidth:n=400,defaultLeftPercent:r,defaultRightWidth:i,minLeftWidth:a=300,minRightWidth:o=300,onWidthChange:s,storageKey:c,hideDivider:l=!1,className:u,...d}){let f=(0,D.useRef)(null),[p,m]=(0,D.useState)(()=>Ce(c,a)??n),g=(0,D.useRef)(null),[_,v]=(0,D.useState)(!1),y=(0,D.useCallback)(e=>{let t=f.current;if(!t||t.offsetWidth<=0)return e;let n=t.offsetWidth-o;return Math.max(a,Math.min(e,n))},[a,o]),b=(0,D.useCallback)(e=>{e.preventDefault(),e.target.setPointerCapture(e.pointerId),g.current={startX:e.clientX,startWidth:p},v(!0)},[p]),x=(0,D.useCallback)(e=>{if(!g.current)return;let t=e.clientX-g.current.startX,n=y(g.current.startWidth+t);m(n),s?.(n)},[y,s]),S=(0,D.useCallback)(e=>{if(!g.current)return;e.target.releasePointerCapture(e.pointerId);let t=y(g.current.startWidth+(e.clientX-g.current.startX));if(g.current=null,v(!1),c)try{localStorage.setItem(c,String(t))}catch{}},[y,c]);return(0,D.useEffect)(()=>{m(e=>y(e));function e(){m(e=>y(e))}return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[y]),(0,D.useLayoutEffect)(()=>{if(Ce(c,a)!==null)return;let e=f.current;if(!e)return;let t=e.offsetWidth;if(t<=0)return;let n=null;r==null?i!=null&&(n=t-i-Se):n=t*r/100,n!=null&&m(y(n))},[r,i,c,a,y]),(0,O.jsxs)(`div`,{...d,ref:f,"data-slot":`resizable-panel`,className:h(`flex h-full w-full overflow-hidden`,u),children:[(0,O.jsx)(`div`,{className:`flex h-full shrink-0 flex-col overflow-hidden`,style:{width:p},children:e}),(0,O.jsxs)(`div`,{role:`separator`,"aria-orientation":`vertical`,className:h(`group relative z-10 flex h-full w-2 shrink-0 cursor-col-resize items-center justify-center`,_&&`select-none`),onPointerDown:b,onPointerMove:x,onPointerUp:S,onPointerCancel:S,children:[(0,O.jsx)(`div`,{className:h(`h-full w-px`,l?`bg-transparent`:`bg-[var(--border-base)]`)}),(0,O.jsx)(`div`,{className:h(`absolute h-8 w-1 rounded-full bg-[var(--content-tertiary)] opacity-0 transition-opacity`,`group-hover:opacity-100`,_&&`opacity-100`)})]}),(0,O.jsx)(`div`,{className:`h-full min-w-0 flex-1 overflow-auto`,children:t})]})}var Te=`Radio`,[Ee,De]=a(Te),[Oe,ke]=Ee(Te),Ae=D.forwardRef((e,t)=>{let{__scopeRadio:n,name:r,checked:a=!1,required:o,disabled:s,value:c=`on`,onCheck:l,form:u,...d}=e,[f,p]=D.useState(null),h=m(t,e=>p(e)),g=D.useRef(!1),_=f?u||!!f.closest(`form`):!0;return(0,O.jsxs)(Oe,{scope:n,checked:a,disabled:s,children:[(0,O.jsx)(i.button,{type:`button`,role:`radio`,"aria-checked":a,"data-state":Fe(a),"data-disabled":s?``:void 0,disabled:s,value:c,...d,ref:h,onClick:ye(e.onClick,e=>{a||l?.(),_&&(g.current=e.isPropagationStopped(),g.current||e.stopPropagation())})}),_&&(0,O.jsx)(Pe,{control:f,bubbles:!g.current,name:r,value:c,checked:a,required:o,disabled:s,form:u,style:{transform:`translateX(-100%)`}})]})});Ae.displayName=Te;var je=`RadioIndicator`,Me=D.forwardRef((e,t)=>{let{__scopeRadio:n,forceMount:r,...a}=e,o=ke(je,n);return(0,O.jsx)(be,{present:r||o.checked,children:(0,O.jsx)(i.span,{"data-state":Fe(o.checked),"data-disabled":o.disabled?``:void 0,...a,ref:t})})});Me.displayName=je;var Ne=`RadioBubbleInput`,Pe=D.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:r=!0,...a},o)=>{let s=D.useRef(null),c=m(s,o),u=ve(n),d=l(t);return D.useEffect(()=>{let e=s.current;if(!e)return;let t=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(t,`checked`).set;if(u!==n&&i){let t=new Event(`click`,{bubbles:r});i.call(e,n),e.dispatchEvent(t)}},[u,n,r]),(0,O.jsx)(i.input,{type:`radio`,"aria-hidden":!0,defaultChecked:n,...a,tabIndex:-1,ref:c,style:{...a.style,...d,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0}})});Pe.displayName=Ne;function Fe(e){return e?`checked`:`unchecked`}var Ie=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`],Le=`RadioGroup`,[Re,ze]=a(Le,[y,De]),Be=y(),Ve=De(),[He,Ue]=Re(Le),We=D.forwardRef((e,t)=>{let{__scopeRadioGroup:n,name:r,defaultValue:a,value:o,required:s=!1,disabled:c=!1,orientation:l,dir:u,loop:f=!0,onValueChange:p,...m}=e,h=Be(n),g=he(u),[_,v]=d({prop:o,defaultProp:a??null,onChange:p,caller:Le});return(0,O.jsx)(He,{scope:n,name:r,required:s,disabled:c,value:_,onValueChange:v,children:(0,O.jsx)(S,{asChild:!0,...h,orientation:l,dir:g,loop:f,children:(0,O.jsx)(i.div,{role:`radiogroup`,"aria-required":s,"aria-orientation":l,"data-disabled":c?``:void 0,dir:g,...m,ref:t})})})});We.displayName=Le;var Ge=`RadioGroupItem`,Ke=D.forwardRef((e,t)=>{let{__scopeRadioGroup:n,disabled:r,...i}=e,a=Ue(Ge,n),o=a.disabled||r,s=Be(n),c=Ve(n),l=D.useRef(null),u=m(t,l),d=a.value===i.value,f=D.useRef(!1);return D.useEffect(()=>{let e=e=>{Ie.includes(e.key)&&(f.current=!0)},t=()=>f.current=!1;return document.addEventListener(`keydown`,e),document.addEventListener(`keyup`,t),()=>{document.removeEventListener(`keydown`,e),document.removeEventListener(`keyup`,t)}},[]),(0,O.jsx)(ge,{asChild:!0,...s,focusable:!o,active:d,children:(0,O.jsx)(Ae,{disabled:o,required:a.required,checked:d,...c,...i,name:a.name,ref:u,onCheck:()=>a.onValueChange(i.value),onKeyDown:ye(e=>{e.key===`Enter`&&e.preventDefault()}),onFocus:ye(i.onFocus,()=>{f.current&&l.current?.click()})})})});Ke.displayName=Ge;var qe=`RadioGroupIndicator`,Je=D.forwardRef((e,t)=>{let{__scopeRadioGroup:n,...r}=e;return(0,O.jsx)(Me,{...Ve(n),...r,ref:t})});Je.displayName=qe;var Ye=We,Xe=Ke,Ze=Je;function Qe({value:e,onValueChange:t,name:n,disabled:r,orientation:i=`vertical`,required:a,className:o,style:s,children:c,"aria-label":l,"aria-labelledby":u}){let d=i===`horizontal`?`flex flex-row flex-wrap items-center gap-4`:`flex flex-col gap-2.5`;return(0,O.jsx)(Ye,{value:e,onValueChange:e=>t(e),name:n,disabled:r,required:a,orientation:i,className:h(d,o),style:s,"aria-label":l,"aria-labelledby":u,"data-slot":`radio-group`,children:c})}function $e({value:e,label:t,helperText:n,disabled:r,id:i,className:a,"aria-label":o}){let s=(0,D.useId)(),c=i??`radio-${s}`,l=n?`${c}-helper`:void 0,u=r?`var(--content-disabled)`:`var(--system-positive-strong)`,d=r?`var(--surface-overlay)`:`transparent`;return(0,O.jsxs)(`div`,{"data-slot":`radio`,className:h(`flex gap-2`,n?`items-start`:`items-center`,a),children:[(0,O.jsx)(Xe,{id:c,value:e,disabled:r,"aria-label":t?void 0:o,"aria-describedby":l,className:h(`relative inline-flex h-4 w-4 shrink-0 items-center justify-center rounded-full border transition-colors`,`border-[color:var(--radio-border)]`,`[--radio-border:var(--border-element)]`,`data-[state=checked]:border-transparent`,`disabled:[--radio-border:var(--content-disabled)]`,`disabled:cursor-not-allowed`,`keyboard-focus:outline-none keyboard-focus:ring-2 keyboard-focus:ring-offset-1`,`keyboard-focus:ring-[color-mix(in_srgb,var(--system-positive-strong)_30%,transparent)]`),style:{background:d},children:(0,O.jsx)(Ze,{forceMount:!0,className:`flex h-full w-full items-center justify-center rounded-full data-[state=unchecked]:opacity-0`,style:{background:u},children:(0,O.jsx)(`span`,{"aria-hidden":!0,className:`block h-2 w-2 rounded-full`,style:{background:r?`var(--surface-overlay)`:`var(--aux-white)`}})})}),(t||n)&&(0,O.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-0.5`,children:[t?(0,O.jsx)(g,{as:`label`,variant:`body-medium-lighter`,htmlFor:c,className:h(r?`cursor-not-allowed`:`cursor-pointer`,r?`text-[color:var(--content-disabled)]`:`text-[color:var(--content-default)]`),children:t}):null,n?(0,O.jsx)(g,{as:`span`,variant:`body-small-default`,id:l,className:h(`leading-4`,r?`text-[color:var(--content-disabled)]`:`text-[color:var(--content-tertiary)]`),children:n}):null]})]})}var et=`Tabs`,[tt,nt]=a(et,[y]),rt=y(),[it,at]=tt(et),ot=D.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,onValueChange:a,defaultValue:o,orientation:s=`horizontal`,dir:c,activationMode:l=`automatic`,...u}=e,p=he(c),[m,h]=d({prop:r,onChange:a,defaultProp:o??``,caller:et});return(0,O.jsx)(it,{scope:n,baseId:f(),value:m,onValueChange:h,orientation:s,dir:p,activationMode:l,children:(0,O.jsx)(i.div,{dir:p,"data-orientation":s,...u,ref:t})})});ot.displayName=et;var st=`TabsList`,ct=D.forwardRef((e,t)=>{let{__scopeTabs:n,loop:r=!0,...a}=e,o=at(st,n),s=rt(n);return(0,O.jsx)(S,{asChild:!0,...s,orientation:o.orientation,dir:o.dir,loop:r,children:(0,O.jsx)(i.div,{role:`tablist`,"aria-orientation":o.orientation,...a,ref:t})})});ct.displayName=st;var lt=`TabsTrigger`,ut=D.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,disabled:a=!1,...o}=e,s=at(lt,n),c=rt(n),l=pt(s.baseId,r),u=mt(s.baseId,r),d=r===s.value;return(0,O.jsx)(ge,{asChild:!0,...c,focusable:!a,active:d,children:(0,O.jsx)(i.button,{type:`button`,role:`tab`,"aria-selected":d,"aria-controls":u,"data-state":d?`active`:`inactive`,"data-disabled":a?``:void 0,disabled:a,id:l,...o,ref:t,onMouseDown:ye(e.onMouseDown,e=>{!a&&e.button===0&&e.ctrlKey===!1?s.onValueChange(r):e.preventDefault()}),onKeyDown:ye(e.onKeyDown,e=>{[` `,`Enter`].includes(e.key)&&s.onValueChange(r)}),onFocus:ye(e.onFocus,()=>{let e=s.activationMode!==`manual`;!d&&!a&&e&&s.onValueChange(r)})})})});ut.displayName=lt;var dt=`TabsContent`,ft=D.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,forceMount:a,children:o,...s}=e,c=at(dt,n),l=pt(c.baseId,r),u=mt(c.baseId,r),d=r===c.value,f=D.useRef(d);return D.useEffect(()=>{let e=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,O.jsx)(be,{present:a||d,children:({present:n})=>(0,O.jsx)(i.div,{"data-state":d?`active`:`inactive`,"data-orientation":c.orientation,role:`tabpanel`,"aria-labelledby":l,hidden:!n,id:u,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:f.current?`0s`:void 0},children:n&&o})})});ft.displayName=dt;function pt(e,t){return`${e}-trigger-${t}`}function mt(e,t){return`${e}-content-${t}`}var ht=ot,gt=ct,_t=ut,vt=ft;function yt({className:e,ref:t,...n}){return(0,O.jsx)(ht,{ref:t,"data-slot":`tabs`,className:e,...n})}function bt({className:e,ref:t,...n}){return(0,O.jsx)(gt,{ref:t,"data-slot":`tabs-list`,className:h(`flex items-center border-b border-[var(--border-base)]`,e),...n})}function xt({className:e,ref:t,...n}){return(0,O.jsx)(_t,{ref:t,"data-slot":`tabs-trigger`,className:h(`relative -mb-px inline-flex cursor-pointer items-center gap-1.5 border-b-2 border-transparent bg-transparent px-2.5 py-[7px]`,`text-body-medium-default whitespace-nowrap`,`text-[var(--content-tertiary)] transition-colors`,`outline-none keyboard-focus:ring-2 keyboard-focus:ring-[var(--ring)] keyboard-focus:ring-offset-0`,`hover:bg-[var(--surface-hover)] hover:text-[var(--content-default)]`,`data-[state=active]:border-[var(--primary-base)] data-[state=active]:text-[var(--content-default)]`,`data-[state=active]:hover:bg-transparent`,`disabled:cursor-not-allowed disabled:text-[var(--content-disabled)]`,`disabled:hover:bg-transparent disabled:hover:text-[var(--content-disabled)]`,e),...n})}function St({className:e,ref:t,...n}){return(0,O.jsx)(vt,{ref:t,"data-slot":`tabs-panel`,className:h(`outline-none keyboard-focus:ring-2 keyboard-focus:ring-[var(--ring)] keyboard-focus:ring-offset-0`,e),...n})}var Ct={Root:yt,List:bt,Trigger:xt,Panel:St};function wt(e,[t,n]){return Math.min(n,Math.max(t,e))}var Tt=[`PageUp`,`PageDown`],Et=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`],Dt={"from-left":[`Home`,`PageDown`,`ArrowDown`,`ArrowLeft`],"from-right":[`Home`,`PageDown`,`ArrowDown`,`ArrowRight`],"from-bottom":[`Home`,`PageDown`,`ArrowDown`,`ArrowLeft`],"from-top":[`Home`,`PageDown`,`ArrowUp`,`ArrowLeft`]},Ot=`Slider`,[kt,At,jt]=C(Ot),[Mt,Nt]=a(Ot,[jt]),[Pt,Ft]=Mt(Ot),It=D.forwardRef((e,t)=>{let{name:n,min:r=0,max:i=100,step:a=1,orientation:o=`horizontal`,disabled:s=!1,minStepsBetweenThumbs:c=0,defaultValue:l=[r],value:u,onValueChange:f=()=>{},onValueCommit:p=()=>{},inverted:m=!1,form:h,...g}=e,_=D.useRef(new Set),v=D.useRef(0),y=o===`horizontal`?zt:Bt,[b=[],x]=d({prop:u,defaultProp:l,onChange:e=>{[..._.current][v.current]?.focus(),f(e)}}),S=D.useRef(b);function C(e){E(e,en(b,e))}function w(e){E(e,v.current)}function T(){let e=S.current[v.current];b[v.current]!==e&&p(b)}function E(e,t,{commit:n}={commit:!1}){let o=on(a),s=wt(sn(Math.round((e-r)/a)*a+r,o),[r,i]);x((e=[])=>{let r=Zt(e,s,t);if(rn(r,c*a)){v.current=r.indexOf(s);let t=String(r)!==String(e);return t&&n&&p(r),t?r:e}else return e})}return(0,O.jsx)(Pt,{scope:e.__scopeSlider,name:n,disabled:s,min:r,max:i,valueIndexToChangeRef:v,thumbs:_.current,values:b,orientation:o,form:h,children:(0,O.jsx)(kt.Provider,{scope:e.__scopeSlider,children:(0,O.jsx)(kt.Slot,{scope:e.__scopeSlider,children:(0,O.jsx)(y,{"aria-disabled":s,"data-disabled":s?``:void 0,...g,ref:t,onPointerDown:ye(g.onPointerDown,()=>{s||(S.current=b)}),min:r,max:i,inverted:m,onSlideStart:s?void 0:C,onSlideMove:s?void 0:w,onSlideEnd:s?void 0:T,onHomeKeyDown:()=>!s&&E(r,0,{commit:!0}),onEndKeyDown:()=>!s&&E(i,b.length-1,{commit:!0}),onStepKeyDown:({event:e,direction:t})=>{if(!s){let n=Tt.includes(e.key)||e.shiftKey&&Et.includes(e.key)?10:1,r=v.current,i=b[r];E(i+a*n*t,r,{commit:!0})}}})})})})});It.displayName=Ot;var[Lt,Rt]=Mt(Ot,{startEdge:`left`,endEdge:`right`,size:`width`,direction:1}),zt=D.forwardRef((e,t)=>{let{min:n,max:r,dir:i,inverted:a,onSlideStart:o,onSlideMove:s,onSlideEnd:c,onStepKeyDown:l,...u}=e,[d,f]=D.useState(null),p=m(t,e=>f(e)),h=D.useRef(void 0),g=he(i),_=g===`ltr`,v=_&&!a||!_&&a;function y(e){let t=h.current||d.getBoundingClientRect(),i=an([0,t.width],v?[n,r]:[r,n]);return h.current=t,i(e-t.left)}return(0,O.jsx)(Lt,{scope:e.__scopeSlider,startEdge:v?`left`:`right`,endEdge:v?`right`:`left`,direction:v?1:-1,size:`width`,children:(0,O.jsx)(Vt,{dir:g,"data-orientation":`horizontal`,...u,ref:p,style:{...u.style,"--radix-slider-thumb-transform":`translateX(-50%)`},onSlideStart:e=>{let t=y(e.clientX);o?.(t)},onSlideMove:e=>{let t=y(e.clientX);s?.(t)},onSlideEnd:()=>{h.current=void 0,c?.()},onStepKeyDown:e=>{let t=Dt[v?`from-left`:`from-right`].includes(e.key);l?.({event:e,direction:t?-1:1})}})})}),Bt=D.forwardRef((e,t)=>{let{min:n,max:r,inverted:i,onSlideStart:a,onSlideMove:o,onSlideEnd:s,onStepKeyDown:c,...l}=e,u=D.useRef(null),d=m(t,u),f=D.useRef(void 0),p=!i;function h(e){let t=f.current||u.current.getBoundingClientRect(),i=an([0,t.height],p?[r,n]:[n,r]);return f.current=t,i(e-t.top)}return(0,O.jsx)(Lt,{scope:e.__scopeSlider,startEdge:p?`bottom`:`top`,endEdge:p?`top`:`bottom`,size:`height`,direction:p?1:-1,children:(0,O.jsx)(Vt,{"data-orientation":`vertical`,...l,ref:d,style:{...l.style,"--radix-slider-thumb-transform":`translateY(50%)`},onSlideStart:e=>{let t=h(e.clientY);a?.(t)},onSlideMove:e=>{let t=h(e.clientY);o?.(t)},onSlideEnd:()=>{f.current=void 0,s?.()},onStepKeyDown:e=>{let t=Dt[p?`from-bottom`:`from-top`].includes(e.key);c?.({event:e,direction:t?-1:1})}})})}),Vt=D.forwardRef((e,t)=>{let{__scopeSlider:n,onSlideStart:r,onSlideMove:a,onSlideEnd:o,onHomeKeyDown:s,onEndKeyDown:c,onStepKeyDown:l,...u}=e,d=Ft(Ot,n);return(0,O.jsx)(i.span,{...u,ref:t,onKeyDown:ye(e.onKeyDown,e=>{e.key===`Home`?(s(e),e.preventDefault()):e.key===`End`?(c(e),e.preventDefault()):Tt.concat(Et).includes(e.key)&&(l(e),e.preventDefault())}),onPointerDown:ye(e.onPointerDown,e=>{let t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),d.thumbs.has(t)?t.focus():r(e)}),onPointerMove:ye(e.onPointerMove,e=>{e.target.hasPointerCapture(e.pointerId)&&a(e)}),onPointerUp:ye(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),o(e))})})}),Ht=`SliderTrack`,Ut=D.forwardRef((e,t)=>{let{__scopeSlider:n,...r}=e,a=Ft(Ht,n);return(0,O.jsx)(i.span,{"data-disabled":a.disabled?``:void 0,"data-orientation":a.orientation,...r,ref:t})});Ut.displayName=Ht;var Wt=`SliderRange`,Gt=D.forwardRef((e,t)=>{let{__scopeSlider:n,...r}=e,a=Ft(Wt,n),o=Rt(Wt,n),s=m(t,D.useRef(null)),c=a.values.length,l=a.values.map(e=>Qt(e,a.min,a.max)),u=c>1?Math.min(...l):0,d=100-Math.max(...l);return(0,O.jsx)(i.span,{"data-orientation":a.orientation,"data-disabled":a.disabled?``:void 0,...r,ref:s,style:{...e.style,[o.startEdge]:u+`%`,[o.endEdge]:d+`%`}})});Gt.displayName=Wt;var Kt=`SliderThumb`,qt=D.forwardRef((e,t)=>{let n=At(e.__scopeSlider),[r,i]=D.useState(null),a=m(t,e=>i(e)),o=D.useMemo(()=>r?n().findIndex(e=>e.ref.current===r):-1,[n,r]);return(0,O.jsx)(Jt,{...e,ref:a,index:o})}),Jt=D.forwardRef((e,t)=>{let{__scopeSlider:n,index:r,name:a,...o}=e,s=Ft(Kt,n),c=Rt(Kt,n),[u,d]=D.useState(null),f=m(t,e=>d(e)),p=u?s.form||!!u.closest(`form`):!0,h=l(u),g=s.values[r],_=g===void 0?0:Qt(g,s.min,s.max),v=$t(r,s.values.length),y=h?.[c.size],b=y?tn(y,_,c.direction):0;return D.useEffect(()=>{if(u)return s.thumbs.add(u),()=>{s.thumbs.delete(u)}},[u,s.thumbs]),(0,O.jsxs)(`span`,{style:{transform:`var(--radix-slider-thumb-transform)`,position:`absolute`,[c.startEdge]:`calc(${_}% + ${b}px)`},children:[(0,O.jsx)(kt.ItemSlot,{scope:e.__scopeSlider,children:(0,O.jsx)(i.span,{role:`slider`,"aria-label":e[`aria-label`]||v,"aria-valuemin":s.min,"aria-valuenow":g,"aria-valuemax":s.max,"aria-orientation":s.orientation,"data-orientation":s.orientation,"data-disabled":s.disabled?``:void 0,tabIndex:s.disabled?void 0:0,...o,ref:f,style:g===void 0?{display:`none`}:e.style,onFocus:ye(e.onFocus,()=>{s.valueIndexToChangeRef.current=r})})}),p&&(0,O.jsx)(Xt,{name:a??(s.name?s.name+(s.values.length>1?`[]`:``):void 0),form:s.form,value:g},r)]})});qt.displayName=Kt;var Yt=`RadioBubbleInput`,Xt=D.forwardRef(({__scopeSlider:e,value:t,...n},r)=>{let a=D.useRef(null),o=m(a,r),s=ve(t);return D.useEffect(()=>{let e=a.current;if(!e)return;let n=window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor(n,`value`).set;if(s!==t&&r){let n=new Event(`input`,{bubbles:!0});r.call(e,t),e.dispatchEvent(n)}},[s,t]),(0,O.jsx)(i.input,{style:{display:`none`},...n,ref:o,defaultValue:t})});Xt.displayName=Yt;function Zt(e=[],t,n){let r=[...e];return r[n]=t,r.sort((e,t)=>e-t)}function Qt(e,t,n){return wt(100/(n-t)*(e-t),[0,100])}function $t(e,t){if(t>2)return`Value ${e+1} of ${t}`;if(t===2)return[`Minimum`,`Maximum`][e]}function en(e,t){if(e.length===1)return 0;let n=e.map(e=>Math.abs(e-t)),r=Math.min(...n);return n.indexOf(r)}function tn(e,t,n){let r=e/2;return(r-an([0,50],[0,r])(t)*n)*n}function nn(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function rn(e,t){if(t>0){let n=nn(e);return Math.min(...n)>=t}return!0}function an(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function on(e){return(String(e).split(`.`)[1]||``).length}function sn(e,t){let n=10**t;return Math.round(e*n)/n}var cn=It,ln=Ut,un=Gt,dn=qt;function fn(e){return Array.isArray(e)}function pn(e){return fn(e)?[e[0],e[1]]:[e]}function mn(e,t,n,r){return t?[e[0]??n,e[1]??r]:e[0]??n}function hn(e){return fn(e)?`${e[0]} – ${e[1]}`:String(e)}function gn({value:e,onValueChange:t,min:n=0,max:r=100,step:i=1,disabled:a=!1,label:o,showValue:s=!1,formatValue:c,name:l,id:u,"aria-label":d,className:f}){let p=(0,D.useId)(),m=u??p,g=o?`${m}-label`:void 0,_=fn(e),v=pn(e),y=e=>{t(mn(e,_,n,r))},b=c?c(e):hn(e),x=h(`block h-4 w-4 rounded-full bg-[var(--aux-white)]`,`border-2 border-[var(--system-positive-strong)]`,`shadow-sm transition-colors`,`keyboard-focus:outline-none keyboard-focus:ring-2 keyboard-focus:ring-[var(--ring)] keyboard-focus:ring-offset-0`,a?`cursor-not-allowed border-[var(--border-disabled)]`:`cursor-grab active:cursor-grabbing`);return(0,O.jsxs)(`div`,{"data-slot":`slider`,className:h(`flex flex-col gap-1.5`,f),children:[(o||s)&&(0,O.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[o?(0,O.jsx)(`span`,{id:g,className:h(`text-body-medium-default`,a?`text-[var(--content-disabled)]`:`text-[var(--content-default)]`),children:o}):(0,O.jsx)(`span`,{}),s?(0,O.jsx)(`span`,{className:h(`text-body-medium-lighter tabular-nums`,a?`text-[var(--content-disabled)]`:`text-[var(--content-secondary)]`),children:b}):null]}),(0,O.jsxs)(cn,{id:m,name:l,value:v,onValueChange:y,min:n,max:r,step:i,disabled:a,"aria-label":o?void 0:d,"aria-labelledby":o?g:void 0,className:h(`relative flex w-full touch-none items-center select-none`,`h-5`,a&&`opacity-60`),children:[(0,O.jsx)(ln,{className:h(`relative h-1 w-full grow overflow-hidden rounded-full`,`bg-[var(--border-disabled)]`),children:(0,O.jsx)(un,{className:h(`absolute h-full rounded-full`,a?`bg-[var(--border-element)]`:`bg-[var(--system-positive-strong)]`)})}),(0,O.jsx)(dn,{className:x}),_?(0,O.jsx)(dn,{className:x}):null]})]})}var _n=`ContextMenu`,[vn,yn]=a(_n,[E]),bn=E(),[xn,Sn]=vn(_n),Cn=e=>{let{__scopeContextMenu:t,children:n,onOpenChange:r,dir:i,modal:a=!0}=e,[s,c]=D.useState(!1),l=bn(t),u=o(r),d=D.useCallback(e=>{c(e),u(e)},[u]);return(0,O.jsx)(xn,{scope:t,open:s,onOpenChange:d,modal:a,children:(0,O.jsx)(ie,{...l,dir:i,open:s,onOpenChange:d,modal:a,children:n})})};Cn.displayName=_n;var wn=`ContextMenuTrigger`,Tn=D.forwardRef((e,t)=>{let{__scopeContextMenu:n,disabled:r=!1,...a}=e,o=Sn(wn,n),s=bn(n),c=D.useRef({x:0,y:0}),l=D.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...c.current})}),u=D.useRef(0),d=D.useCallback(()=>window.clearTimeout(u.current),[]),f=e=>{c.current={x:e.clientX,y:e.clientY},o.onOpenChange(!0)};return D.useEffect(()=>d,[d]),D.useEffect(()=>void(r&&d()),[r,d]),(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(ae,{...s,virtualRef:l}),(0,O.jsx)(i.span,{"data-state":o.open?`open`:`closed`,"data-disabled":r?``:void 0,...a,ref:t,style:{WebkitTouchCallout:`none`,...e.style},onContextMenu:r?e.onContextMenu:ye(e.onContextMenu,e=>{d(),f(e),e.preventDefault()}),onPointerDown:r?e.onPointerDown:ye(e.onPointerDown,er(e=>{d(),u.current=window.setTimeout(()=>f(e),700)})),onPointerMove:r?e.onPointerMove:ye(e.onPointerMove,er(d)),onPointerCancel:r?e.onPointerCancel:ye(e.onPointerCancel,er(d)),onPointerUp:r?e.onPointerUp:ye(e.onPointerUp,er(d))})]})});Tn.displayName=wn;var En=`ContextMenuPortal`,Dn=e=>{let{__scopeContextMenu:t,...n}=e,r=bn(t);return(0,O.jsx)(ne,{...r,...n})};Dn.displayName=En;var On=`ContextMenuContent`,kn=D.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=Sn(On,n),a=bn(n),o=D.useRef(!1);return(0,O.jsx)(fe,{...a,...r,ref:t,side:`right`,sideOffset:2,align:`start`,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),!t.defaultPrevented&&o.current&&t.preventDefault(),o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),!t.defaultPrevented&&!i.modal&&(o.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-context-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-context-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-context-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-context-menu-trigger-height":`var(--radix-popper-anchor-height)`}})});kn.displayName=On;var An=`ContextMenuGroup`,jn=D.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=bn(n);return(0,O.jsx)(ee,{...i,...r,ref:t})});jn.displayName=An;var Mn=`ContextMenuLabel`,Nn=D.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=bn(n);return(0,O.jsx)(te,{...i,...r,ref:t})});Nn.displayName=Mn;var Pn=`ContextMenuItem`,Fn=D.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=bn(n);return(0,O.jsx)(oe,{...i,...r,ref:t})});Fn.displayName=Pn;var In=`ContextMenuCheckboxItem`,Ln=D.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=bn(n);return(0,O.jsx)(le,{...i,...r,ref:t})});Ln.displayName=In;var Rn=`ContextMenuRadioGroup`,zn=D.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=bn(n);return(0,O.jsx)(ue,{...i,...r,ref:t})});zn.displayName=Rn;var Bn=`ContextMenuRadioItem`,Vn=D.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=bn(n);return(0,O.jsx)(se,{...i,...r,ref:t})});Vn.displayName=Bn;var Hn=`ContextMenuItemIndicator`,Un=D.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=bn(n);return(0,O.jsx)(pe,{...i,...r,ref:t})});Un.displayName=Hn;var Wn=`ContextMenuSeparator`,Gn=D.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=bn(n);return(0,O.jsx)(re,{...i,...r,ref:t})});Gn.displayName=Wn;var Kn=`ContextMenuArrow`,qn=D.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=bn(n);return(0,O.jsx)(T,{...i,...r,ref:t})});qn.displayName=Kn;var Jn=`ContextMenuSub`,Yn=e=>{let{__scopeContextMenu:t,children:n,onOpenChange:r,open:i,defaultOpen:a}=e,o=bn(t),[s,c]=d({prop:i,defaultProp:a??!1,onChange:r,caller:Jn});return(0,O.jsx)(w,{...o,open:s,onOpenChange:c,children:n})};Yn.displayName=Jn;var Xn=`ContextMenuSubTrigger`,Zn=D.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=bn(n);return(0,O.jsx)(_e,{...i,...r,ref:t})});Zn.displayName=Xn;var Qn=`ContextMenuSubContent`,$n=D.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=bn(n);return(0,O.jsx)(me,{...i,...r,ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-context-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-context-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-context-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-context-menu-trigger-height":`var(--radix-popper-anchor-height)`}})});$n.displayName=Qn;function er(e){return t=>t.pointerType===`mouse`?void 0:e(t)}var tr=Cn,nr=Tn,rr=Dn,ir=kn,ar=Nn,or=Fn,sr=Ln,cr=zn,lr=Vn,ur=Un,dr=Gn,fr=Yn,pr=Zn,mr=$n,hr=tr;function gr({asChild:e=!0,...t}){return(0,O.jsx)(nr,{"data-slot":`context-menu-trigger`,asChild:e,...t})}function _r({className:e,collisionPadding:t=8,ref:n,...r}){let i=s();return(0,O.jsx)(rr,{container:i??void 0,children:(0,O.jsx)(ir,{ref:n,"data-slot":`context-menu-content`,collisionPadding:t,className:h(ce,e),...r})})}function vr({className:e,children:t,leftIcon:n,shortcut:r,ref:i,...a}){return(0,O.jsxs)(or,{ref:i,"data-slot":`context-menu-item`,className:h(de,e),...a,children:[n?(0,O.jsx)(`span`,{className:`flex h-4 w-4 shrink-0 items-center justify-center text-[var(--content-tertiary)]`,"aria-hidden":!0,children:n}):null,(0,O.jsx)(`span`,{className:`flex-1 truncate`,children:t}),r?(0,O.jsx)(`span`,{className:`ml-auto pl-4 text-body-small-default tracking-wide text-[var(--content-tertiary)]`,children:r}):null]})}function yr({className:e,children:t,checked:n,shortcut:r,ref:i,...a}){return(0,O.jsxs)(sr,{ref:i,checked:n,"data-slot":`context-menu-checkbox-item`,className:h(de,`pl-7`,e),...a,children:[(0,O.jsx)(`span`,{className:`absolute left-1.5 flex h-4 w-4 items-center justify-center`,children:(0,O.jsx)(ur,{children:(0,O.jsx)(v,{className:`h-3.5 w-3.5 text-[var(--content-default)]`,"aria-hidden":!0})})}),(0,O.jsx)(`span`,{className:`flex-1 truncate`,children:t}),r?(0,O.jsx)(`span`,{className:`ml-auto pl-4 text-body-small-default tracking-wide text-[var(--content-tertiary)]`,children:r}):null]})}function br({ref:e,...t}){return(0,O.jsx)(cr,{ref:e,"data-slot":`context-menu-radio-group`,...t})}function xr({className:e,children:t,shortcut:n,ref:r,...i}){return(0,O.jsxs)(lr,{ref:r,"data-slot":`context-menu-radio-item`,className:h(de,`pl-7`,e),...i,children:[(0,O.jsx)(`span`,{className:`absolute left-1.5 flex h-4 w-4 items-center justify-center`,children:(0,O.jsx)(ur,{children:(0,O.jsx)(x,{className:`h-2 w-2 fill-current text-[var(--content-default)]`,"aria-hidden":!0})})}),(0,O.jsx)(`span`,{className:`flex-1 truncate`,children:t}),n?(0,O.jsx)(`span`,{className:`ml-auto pl-4 text-body-small-default tracking-wide text-[var(--content-tertiary)]`,children:n}):null]})}function Sr({className:e,ref:t,...n}){return(0,O.jsx)(dr,{ref:t,"data-slot":`context-menu-separator`,className:h(`my-1 h-px bg-[var(--border-base)]`,e),...n})}function Cr({className:e,ref:t,...n}){return(0,O.jsx)(ar,{ref:t,"data-slot":`context-menu-label`,className:h(`px-2 py-1.5 text-body-small-default uppercase tracking-wide`,`text-[var(--content-tertiary)]`,e),...n})}var wr=fr;function Tr({className:e,children:t,leftIcon:n,ref:r,...i}){return(0,O.jsxs)(pr,{ref:r,"data-slot":`context-menu-sub-trigger`,className:h(de,`data-[state=open]:bg-[var(--surface-hover)]`,`data-[state=open]:text-[var(--content-emphasised)]`,e),...i,children:[n?(0,O.jsx)(`span`,{className:`flex h-4 w-4 shrink-0 items-center justify-center text-[var(--content-tertiary)]`,"aria-hidden":!0,children:n}):null,(0,O.jsx)(`span`,{className:`flex-1 truncate`,children:t}),(0,O.jsx)(b,{className:`ml-auto h-3.5 w-3.5 text-[var(--content-tertiary)]`,"aria-hidden":!0})]})}function Er({className:e,ref:t,...n}){let r=s();return(0,O.jsx)(rr,{container:r??void 0,children:(0,O.jsx)(mr,{ref:t,"data-slot":`context-menu-sub-content`,className:h(ce,e),...n})})}var Dr={Root:hr,Trigger:gr,Content:_r,Item:vr,CheckboxItem:yr,RadioGroup:br,RadioItem:xr,Separator:Sr,Label:Cr,Sub:wr,SubTrigger:Tr,SubContent:Er};function Or(e){let t=[],n=String(e||``),r=n.indexOf(`,`),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);let e=n.slice(i,r).trim();(e||!a)&&t.push(e),i=r+1,r=n.indexOf(`,`,i)}return t}function kr(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var Ar=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,jr=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Mr={};function Nr(e,t){return((t||Mr).jsx?jr:Ar).test(e)}var Pr=/[ \t\n\f\r]/g;function Fr(e){return typeof e==`object`?e.type===`text`?Ir(e.value):!1:Ir(e)}function Ir(e){return e.replace(Pr,``)===``}var Lr=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};Lr.prototype.normal={},Lr.prototype.property={},Lr.prototype.space=void 0;function Rr(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new Lr(n,r,t)}function zr(e){return e.toLowerCase()}var Br=class{constructor(e,t){this.attribute=t,this.property=e}};Br.prototype.attribute=``,Br.prototype.booleanish=!1,Br.prototype.boolean=!1,Br.prototype.commaOrSpaceSeparated=!1,Br.prototype.commaSeparated=!1,Br.prototype.defined=!1,Br.prototype.mustUseProperty=!1,Br.prototype.number=!1,Br.prototype.overloadedBoolean=!1,Br.prototype.property=``,Br.prototype.spaceSeparated=!1,Br.prototype.space=void 0;var Vr=t({boolean:()=>k,booleanish:()=>Ur,commaOrSpaceSeparated:()=>qr,commaSeparated:()=>Kr,number:()=>A,overloadedBoolean:()=>Wr,spaceSeparated:()=>Gr}),Hr=0,k=Jr(),Ur=Jr(),Wr=Jr(),A=Jr(),Gr=Jr(),Kr=Jr(),qr=Jr();function Jr(){return 2**++Hr}var Yr=Object.keys(Vr),Xr=class extends Br{constructor(e,t,n,r){let i=-1;if(super(e,t),Zr(this,`space`,r),typeof n==`number`)for(;++i<Yr.length;){let e=Yr[i];Zr(this,Yr[i],(n&Vr[e])===Vr[e])}}};Xr.prototype.defined=!0;function Zr(e,t,n){n&&(e[t]=n)}function Qr(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new Xr(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[zr(r)]=r,n[zr(a.attribute)]=r}return new Lr(t,n,e.space)}var $r=Qr({properties:{ariaActiveDescendant:null,ariaAtomic:Ur,ariaAutoComplete:null,ariaBusy:Ur,ariaChecked:Ur,ariaColCount:A,ariaColIndex:A,ariaColSpan:A,ariaControls:Gr,ariaCurrent:null,ariaDescribedBy:Gr,ariaDetails:null,ariaDisabled:Ur,ariaDropEffect:Gr,ariaErrorMessage:null,ariaExpanded:Ur,ariaFlowTo:Gr,ariaGrabbed:Ur,ariaHasPopup:null,ariaHidden:Ur,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Gr,ariaLevel:A,ariaLive:null,ariaModal:Ur,ariaMultiLine:Ur,ariaMultiSelectable:Ur,ariaOrientation:null,ariaOwns:Gr,ariaPlaceholder:null,ariaPosInSet:A,ariaPressed:Ur,ariaReadOnly:Ur,ariaRelevant:null,ariaRequired:Ur,ariaRoleDescription:Gr,ariaRowCount:A,ariaRowIndex:A,ariaRowSpan:A,ariaSelected:Ur,ariaSetSize:A,ariaSort:null,ariaValueMax:A,ariaValueMin:A,ariaValueNow:A,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function ei(e,t){return t in e?e[t]:t}function ti(e,t){return ei(e,t.toLowerCase())}var ni=Qr({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:Kr,acceptCharset:Gr,accessKey:Gr,action:null,allow:null,allowFullScreen:k,allowPaymentRequest:k,allowUserMedia:k,alt:null,as:null,async:k,autoCapitalize:null,autoComplete:Gr,autoFocus:k,autoPlay:k,blocking:Gr,capture:null,charSet:null,checked:k,cite:null,className:Gr,cols:A,colSpan:null,content:null,contentEditable:Ur,controls:k,controlsList:Gr,coords:A|Kr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:k,defer:k,dir:null,dirName:null,disabled:k,download:Wr,draggable:Ur,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:k,formTarget:null,headers:Gr,height:A,hidden:Wr,high:A,href:null,hrefLang:null,htmlFor:Gr,httpEquiv:Gr,id:null,imageSizes:null,imageSrcSet:null,inert:k,inputMode:null,integrity:null,is:null,isMap:k,itemId:null,itemProp:Gr,itemRef:Gr,itemScope:k,itemType:Gr,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:k,low:A,manifest:null,max:null,maxLength:A,media:null,method:null,min:null,minLength:A,multiple:k,muted:k,name:null,nonce:null,noModule:k,noValidate:k,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:k,optimum:A,pattern:null,ping:Gr,placeholder:null,playsInline:k,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:k,referrerPolicy:null,rel:Gr,required:k,reversed:k,rows:A,rowSpan:A,sandbox:Gr,scope:null,scoped:k,seamless:k,selected:k,shadowRootClonable:k,shadowRootDelegatesFocus:k,shadowRootMode:null,shape:null,size:A,sizes:null,slot:null,span:A,spellCheck:Ur,src:null,srcDoc:null,srcLang:null,srcSet:null,start:A,step:null,style:null,tabIndex:A,target:null,title:null,translate:null,type:null,typeMustMatch:k,useMap:null,value:Ur,width:A,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Gr,axis:null,background:null,bgColor:null,border:A,borderColor:null,bottomMargin:A,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:k,declare:k,event:null,face:null,frame:null,frameBorder:null,hSpace:A,leftMargin:A,link:null,longDesc:null,lowSrc:null,marginHeight:A,marginWidth:A,noResize:k,noHref:k,noShade:k,noWrap:k,object:null,profile:null,prompt:null,rev:null,rightMargin:A,rules:null,scheme:null,scrolling:Ur,standby:null,summary:null,text:null,topMargin:A,valueType:null,version:null,vAlign:null,vLink:null,vSpace:A,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:k,disableRemotePlayback:k,prefix:null,property:null,results:A,security:null,unselectable:null},space:`html`,transform:ti}),ri=Qr({attributes:{accentHeight:`accent-height`,alignmentBaseline:`alignment-baseline`,arabicForm:`arabic-form`,baselineShift:`baseline-shift`,capHeight:`cap-height`,className:`class`,clipPath:`clip-path`,clipRule:`clip-rule`,colorInterpolation:`color-interpolation`,colorInterpolationFilters:`color-interpolation-filters`,colorProfile:`color-profile`,colorRendering:`color-rendering`,crossOrigin:`crossorigin`,dataType:`datatype`,dominantBaseline:`dominant-baseline`,enableBackground:`enable-background`,fillOpacity:`fill-opacity`,fillRule:`fill-rule`,floodColor:`flood-color`,floodOpacity:`flood-opacity`,fontFamily:`font-family`,fontSize:`font-size`,fontSizeAdjust:`font-size-adjust`,fontStretch:`font-stretch`,fontStyle:`font-style`,fontVariant:`font-variant`,fontWeight:`font-weight`,glyphName:`glyph-name`,glyphOrientationHorizontal:`glyph-orientation-horizontal`,glyphOrientationVertical:`glyph-orientation-vertical`,hrefLang:`hreflang`,horizAdvX:`horiz-adv-x`,horizOriginX:`horiz-origin-x`,horizOriginY:`horiz-origin-y`,imageRendering:`image-rendering`,letterSpacing:`letter-spacing`,lightingColor:`lighting-color`,markerEnd:`marker-end`,markerMid:`marker-mid`,markerStart:`marker-start`,navDown:`nav-down`,navDownLeft:`nav-down-left`,navDownRight:`nav-down-right`,navLeft:`nav-left`,navNext:`nav-next`,navPrev:`nav-prev`,navRight:`nav-right`,navUp:`nav-up`,navUpLeft:`nav-up-left`,navUpRight:`nav-up-right`,onAbort:`onabort`,onActivate:`onactivate`,onAfterPrint:`onafterprint`,onBeforePrint:`onbeforeprint`,onBegin:`onbegin`,onCancel:`oncancel`,onCanPlay:`oncanplay`,onCanPlayThrough:`oncanplaythrough`,onChange:`onchange`,onClick:`onclick`,onClose:`onclose`,onCopy:`oncopy`,onCueChange:`oncuechange`,onCut:`oncut`,onDblClick:`ondblclick`,onDrag:`ondrag`,onDragEnd:`ondragend`,onDragEnter:`ondragenter`,onDragExit:`ondragexit`,onDragLeave:`ondragleave`,onDragOver:`ondragover`,onDragStart:`ondragstart`,onDrop:`ondrop`,onDurationChange:`ondurationchange`,onEmptied:`onemptied`,onEnd:`onend`,onEnded:`onended`,onError:`onerror`,onFocus:`onfocus`,onFocusIn:`onfocusin`,onFocusOut:`onfocusout`,onHashChange:`onhashchange`,onInput:`oninput`,onInvalid:`oninvalid`,onKeyDown:`onkeydown`,onKeyPress:`onkeypress`,onKeyUp:`onkeyup`,onLoad:`onload`,onLoadedData:`onloadeddata`,onLoadedMetadata:`onloadedmetadata`,onLoadStart:`onloadstart`,onMessage:`onmessage`,onMouseDown:`onmousedown`,onMouseEnter:`onmouseenter`,onMouseLeave:`onmouseleave`,onMouseMove:`onmousemove`,onMouseOut:`onmouseout`,onMouseOver:`onmouseover`,onMouseUp:`onmouseup`,onMouseWheel:`onmousewheel`,onOffline:`onoffline`,onOnline:`ononline`,onPageHide:`onpagehide`,onPageShow:`onpageshow`,onPaste:`onpaste`,onPause:`onpause`,onPlay:`onplay`,onPlaying:`onplaying`,onPopState:`onpopstate`,onProgress:`onprogress`,onRateChange:`onratechange`,onRepeat:`onrepeat`,onReset:`onreset`,onResize:`onresize`,onScroll:`onscroll`,onSeeked:`onseeked`,onSeeking:`onseeking`,onSelect:`onselect`,onShow:`onshow`,onStalled:`onstalled`,onStorage:`onstorage`,onSubmit:`onsubmit`,onSuspend:`onsuspend`,onTimeUpdate:`ontimeupdate`,onToggle:`ontoggle`,onUnload:`onunload`,onVolumeChange:`onvolumechange`,onWaiting:`onwaiting`,onZoom:`onzoom`,overlinePosition:`overline-position`,overlineThickness:`overline-thickness`,paintOrder:`paint-order`,panose1:`panose-1`,pointerEvents:`pointer-events`,referrerPolicy:`referrerpolicy`,renderingIntent:`rendering-intent`,shapeRendering:`shape-rendering`,stopColor:`stop-color`,stopOpacity:`stop-opacity`,strikethroughPosition:`strikethrough-position`,strikethroughThickness:`strikethrough-thickness`,strokeDashArray:`stroke-dasharray`,strokeDashOffset:`stroke-dashoffset`,strokeLineCap:`stroke-linecap`,strokeLineJoin:`stroke-linejoin`,strokeMiterLimit:`stroke-miterlimit`,strokeOpacity:`stroke-opacity`,strokeWidth:`stroke-width`,tabIndex:`tabindex`,textAnchor:`text-anchor`,textDecoration:`text-decoration`,textRendering:`text-rendering`,transformOrigin:`transform-origin`,typeOf:`typeof`,underlinePosition:`underline-position`,underlineThickness:`underline-thickness`,unicodeBidi:`unicode-bidi`,unicodeRange:`unicode-range`,unitsPerEm:`units-per-em`,vAlphabetic:`v-alphabetic`,vHanging:`v-hanging`,vIdeographic:`v-ideographic`,vMathematical:`v-mathematical`,vectorEffect:`vector-effect`,vertAdvY:`vert-adv-y`,vertOriginX:`vert-origin-x`,vertOriginY:`vert-origin-y`,wordSpacing:`word-spacing`,writingMode:`writing-mode`,xHeight:`x-height`,playbackOrder:`playbackorder`,timelineBegin:`timelinebegin`},properties:{about:qr,accentHeight:A,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:A,amplitude:A,arabicForm:null,ascent:A,attributeName:null,attributeType:null,azimuth:A,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:A,by:null,calcMode:null,capHeight:A,className:Gr,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:A,diffuseConstant:A,direction:null,display:null,dur:null,divisor:A,dominantBaseline:null,download:k,dx:null,dy:null,edgeMode:null,editable:null,elevation:A,enableBackground:null,end:null,event:null,exponent:A,externalResourcesRequired:null,fill:null,fillOpacity:A,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Kr,g2:Kr,glyphName:Kr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:A,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:A,horizOriginX:A,horizOriginY:A,id:null,ideographic:A,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:A,k:A,k1:A,k2:A,k3:A,k4:A,kernelMatrix:qr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:A,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:A,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:A,overlineThickness:A,paintOrder:null,panose1:null,path:null,pathLength:A,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Gr,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:A,pointsAtY:A,pointsAtZ:A,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:qr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:qr,rev:qr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:qr,requiredFeatures:qr,requiredFonts:qr,requiredFormats:qr,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:A,specularExponent:A,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:A,strikethroughThickness:A,string:null,stroke:null,strokeDashArray:qr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:A,strokeOpacity:A,strokeWidth:null,style:null,surfaceScale:A,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:qr,tabIndex:A,tableValues:null,target:null,targetX:A,targetY:A,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:qr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:A,underlineThickness:A,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:A,values:null,vAlphabetic:A,vMathematical:A,vectorEffect:null,vHanging:A,vIdeographic:A,version:null,vertAdvY:A,vertOriginX:A,vertOriginY:A,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:A,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:ei}),ii=Qr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),ai=Qr({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:ti}),oi=Qr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),si={classId:`classID`,dataType:`datatype`,itemId:`itemID`,strokeDashArray:`strokeDasharray`,strokeDashOffset:`strokeDashoffset`,strokeLineCap:`strokeLinecap`,strokeLineJoin:`strokeLinejoin`,strokeMiterLimit:`strokeMiterlimit`,typeOf:`typeof`,xLinkActuate:`xlinkActuate`,xLinkArcRole:`xlinkArcrole`,xLinkHref:`xlinkHref`,xLinkRole:`xlinkRole`,xLinkShow:`xlinkShow`,xLinkTitle:`xlinkTitle`,xLinkType:`xlinkType`,xmlnsXLink:`xmlnsXlink`},ci=/[A-Z]/g,li=/-[a-z]/g,ui=/^data[-\w.:]+$/i;function di(e,t){let n=zr(t),r=t,i=Br;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&ui.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(li,pi);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!li.test(e)){let n=e.replace(ci,fi);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=Xr}return new i(r,t)}function fi(e){return`-`+e.toLowerCase()}function pi(e){return e.charAt(1).toUpperCase()}var mi=Rr([$r,ni,ii,ai,oi],`html`),hi=Rr([$r,ri,ii,ai,oi],`svg`);function gi(e){let t=String(e||``).trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function _i(e){return e.join(` `).trim()}var vi=n(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g,u=`
2
2
  `,d=`/`,f=`*`,p=``,m=`comment`,h=`declaration`;function g(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var l=1,g=1;function v(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(u);g=~n?e.length-n:g+e.length}function y(){var e={line:l,column:g};return function(t){return t.position=new b(e),C(),t}}function b(e){this.start=e,this.end={line:l,column:g},this.source=t.source}b.prototype.content=e;function x(n){var r=Error(t.source+`:`+l+`:`+g+`: `+n);if(r.reason=n,r.filename=t.source,r.line=l,r.column=g,r.source=e,!t.silent)throw r}function S(t){var n=t.exec(e);if(n){var r=n[0];return v(r),e=e.slice(r.length),n}}function C(){S(i)}function w(e){var t;for(e||=[];t=T();)t!==!1&&e.push(t);return e}function T(){var t=y();if(!(d!=e.charAt(0)||f!=e.charAt(1))){for(var n=2;p!=e.charAt(n)&&(f!=e.charAt(n)||d!=e.charAt(n+1));)++n;if(n+=2,p===e.charAt(n-1))return x(`End of comment missing`);var r=e.slice(2,n-2);return g+=2,v(r),e=e.slice(n),g+=2,t({type:m,comment:r})}}function E(){var e=y(),t=S(a);if(t){if(T(),!S(o))return x(`property missing ':'`);var r=S(s),i=e({type:h,property:_(t[0].replace(n,p)),value:r?_(r[0].replace(n,p)):p});return S(c),i}}function ee(){var e=[];w(e);for(var t;t=E();)t!==!1&&(e.push(t),w(e));return e}return C(),ee()}function _(e){return e?e.replace(l,p):p}t.exports=g})),yi=n((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.default=r;var n=t(vi());function r(e,t){let r=null;if(!e||typeof e!=`string`)return r;let i=(0,n.default)(e),a=typeof t==`function`;return i.forEach(e=>{if(e.type!==`declaration`)return;let{property:n,value:i}=e;a?t(n,i,e):i&&(r||={},r[n]=i)}),r}})),bi=n((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(e){return!e||r.test(e)||t.test(e)},s=function(e,t){return t.toUpperCase()},c=function(e,t){return`${t}-`};e.camelCase=function(e,t){return t===void 0&&(t={}),o(e)?e:(e=e.toLowerCase(),e=t.reactCompat?e.replace(a,c):e.replace(i,c),e.replace(n,s))}})),xi=n(((e,t)=>{var n=(e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(yi()),r=bi();function i(e,t){var i={};return!e||typeof e!=`string`||(0,n.default)(e,function(e,n){e&&n&&(i[(0,r.camelCase)(e,t)]=n)}),i}i.default=i,t.exports=i})),Si=wi(`end`),Ci=wi(`start`);function wi(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function Ti(e){let t=Ci(e),n=Si(e);if(t&&n)return{start:t,end:n}}function Ei(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?Oi(e.position):`start`in e||`end`in e?Oi(e):`line`in e||`column`in e?Di(e):``}function Di(e){return ki(e&&e.line)+`:`+ki(e&&e.column)}function Oi(e){return Di(e&&e.start)+`-`+Di(e&&e.end)}function ki(e){return e&&typeof e==`number`?e:1}var Ai=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=Ei(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};Ai.prototype.file=``,Ai.prototype.name=``,Ai.prototype.reason=``,Ai.prototype.message=``,Ai.prototype.stack=``,Ai.prototype.column=void 0,Ai.prototype.line=void 0,Ai.prototype.ancestors=void 0,Ai.prototype.cause=void 0,Ai.prototype.fatal=void 0,Ai.prototype.place=void 0,Ai.prototype.ruleId=void 0,Ai.prototype.source=void 0;var ji=e(xi(),1),Mi={}.hasOwnProperty,Ni=new Map,Pi=/[A-Z]/g,Fi=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),Ii=new Set([`td`,`th`]),Li=`https://github.com/syntax-tree/hast-util-to-jsx-runtime`;function Ri(e,t){if(!t||t.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,r;if(t.development){if(typeof t.jsxDEV!=`function`)throw TypeError("Expected `jsxDEV` in options when `development: true`");r=Yi(n,t.jsxDEV)}else{if(typeof t.jsx!=`function`)throw TypeError("Expected `jsx` in production options");if(typeof t.jsxs!=`function`)throw TypeError("Expected `jsxs` in production options");r=Ji(n,t.jsx,t.jsxs)}let i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||`react`,evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space===`svg`?hi:mi,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=zi(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function zi(e,t,n){if(t.type===`element`)return Bi(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return Vi(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return Ui(e,t,n);if(t.type===`mdxjsEsm`)return Hi(e,t);if(t.type===`root`)return Wi(e,t,n);if(t.type===`text`)return Gi(e,t)}function Bi(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=hi,e.schema=i),e.ancestors.push(t);let a=ta(e,t.tagName,!1),o=Xi(e,t),s=Qi(e,t);return Fi.has(t.tagName)&&(s=s.filter(function(e){return typeof e==`string`?!Fr(e):!0})),Ki(e,o,a,t),qi(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function Vi(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}na(e,t.position)}function Hi(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);na(e,t.position)}function Ui(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=hi,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:ta(e,t.name,!0),o=Zi(e,t),s=Qi(e,t);return Ki(e,o,a,t),qi(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function Wi(e,t,n){let r={};return qi(r,Qi(e,t)),e.create(t,e.Fragment,r,n)}function Gi(e,t){return t.value}function Ki(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function qi(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function Ji(e,t,n){return r;function r(e,r,i,a){let o=Array.isArray(i.children)?n:t;return a?o(r,i,a):o(r,i)}}function Yi(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=Ci(n);return t(r,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function Xi(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&Mi.call(t.properties,i)){let a=$i(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&Ii.has(t.tagName)?r=o:n[i]=o}}if(r){let t=n.style||={};t[e.stylePropertyNameCase===`css`?`text-align`:`textAlign`]=r}return n}function Zi(e,t){let n={};for(let r of t.attributes)if(r.type===`mdxJsxExpressionAttribute`)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let a=i.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else na(e,t.position);else{let i=r.name,a;if(r.value&&typeof r.value==`object`)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,a=e.evaluater.evaluateExpression(t.expression)}else na(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function Qi(e,t){let n=[],r=-1,i=e.passKeys?new Map:Ni;for(;++r<t.children.length;){let a=t.children[r],o;if(e.passKeys){let e=a.type===`element`?a.tagName:a.type===`mdxJsxFlowElement`||a.type===`mdxJsxTextElement`?a.name:void 0;if(e){let t=i.get(e)||0;o=e+`-`+t,i.set(e,t+1)}}let s=zi(e,a,o);s!==void 0&&n.push(s)}return n}function $i(e,t,n){let r=di(e.schema,t);if(!(n==null||typeof n==`number`&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?kr(n):_i(n)),r.property===`style`){let t=typeof n==`object`?n:ea(e,String(n));return e.stylePropertyNameCase===`css`&&(t=ra(t)),[`style`,t]}return[e.elementAttributeNameCase===`react`&&r.space?si[r.property]||r.property:r.attribute,n]}}function ea(e,t){try{return(0,ji.default)(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};let n=t,r=new Ai("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:`style`,source:`hast-util-to-jsx-runtime`});throw r.file=e.filePath||void 0,r.url=Li+`#cannot-parse-style-attribute`,r}}function ta(e,t,n){let r;if(!n)r={type:`Literal`,value:t};else if(t.includes(`.`)){let e=t.split(`.`),n=-1,i;for(;++n<e.length;){let t=Nr(e[n])?{type:`Identifier`,name:e[n]}:{type:`Literal`,value:e[n]};i=i?{type:`MemberExpression`,object:i,property:t,computed:!!(n&&t.type===`Literal`),optional:!1}:t}r=i}else r=Nr(t)&&!/^[a-z]/.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t};if(r.type===`Literal`){let t=r.value;return Mi.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);na(e)}function na(e,t){let n=new Ai("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:`mdx-estree`,source:`hast-util-to-jsx-runtime`});throw n.file=e.filePath||void 0,n.url=Li+`#cannot-handle-mdx-estrees-without-createevaluater`,n}function ra(e){let t={},n;for(n in e)Mi.call(e,n)&&(t[ia(n)]=e[n]);return t}function ia(e){let t=e.replace(Pi,aa);return t.slice(0,3)===`ms-`&&(t=`-`+t),t}function aa(e){return`-`+e.toLowerCase()}var oa={action:[`form`],cite:[`blockquote`,`del`,`ins`,`q`],data:[`object`],formAction:[`button`,`input`],href:[`a`,`area`,`base`,`link`],icon:[`menuitem`],itemId:null,manifest:[`html`],ping:[`a`,`area`],poster:[`video`],src:[`audio`,`embed`,`iframe`,`img`,`input`,`script`,`source`,`track`,`video`]},sa={};function ca(e,t){let n=t||sa;return la(e,typeof n.includeImageAlt==`boolean`?n.includeImageAlt:!0,typeof n.includeHtml==`boolean`?n.includeHtml:!0)}function la(e,t,n){if(da(e)){if(`value`in e)return e.type===`html`&&!n?``:e.value;if(t&&`alt`in e&&e.alt)return e.alt;if(`children`in e)return ua(e.children,t,n)}return Array.isArray(e)?ua(e,t,n):``}function ua(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=la(e[i],t,n);return r.join(``)}function da(e){return!!(e&&typeof e==`object`)}var fa=document.createElement(`i`);function pa(e){let t=`&`+e+`;`;fa.innerHTML=t;let n=fa.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`||n===t?!1:n}function ma(e,t,n,r){let i=e.length,a=0,o;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function ha(e,t){return e.length>0?(ma(e,e.length,0,t),e):t}var ga={}.hasOwnProperty;function _a(e){let t={},n=-1;for(;++n<e.length;)va(t,e[n]);return t}function va(e,t){let n;for(n in t){let r=(ga.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){ga.call(r,a)||(r[a]=[]);let e=i[a];ya(r[a],Array.isArray(e)?e:e?[e]:[])}}}function ya(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);ma(e,0,0,r)}function ba(e,t){let n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)==65535||(n&65535)==65534||n>1114111?`�`:String.fromCodePoint(n)}function xa(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var Sa=Ma(/[A-Za-z]/),Ca=Ma(/[\dA-Za-z]/),wa=Ma(/[#-'*+\--9=?A-Z^-~]/);function Ta(e){return e!==null&&(e<32||e===127)}var Ea=Ma(/\d/),Da=Ma(/[\dA-Fa-f]/),Oa=Ma(/[!-/:-@[-`{-~]/);function j(e){return e!==null&&e<-2}function ka(e){return e!==null&&(e<0||e===32)}function M(e){return e===-2||e===-1||e===32}var Aa=Ma(/\p{P}|\p{S}/u),ja=Ma(/\s/);function Ma(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Na(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o=``;if(a===37&&Ca(e.charCodeAt(n+1))&&Ca(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o=`�`}else o=String.fromCharCode(a);o&&=(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,``),i&&=(n+=i,0)}return t.join(``)+e.slice(r)}function N(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return M(r)?(e.enter(n),s(r)):t(r)}function s(r){return M(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}var Pa={tokenize:Fa};function Fa(e){let t=e.attempt(this.parser.constructs.contentInitial,r,i),n;return t;function r(n){if(n===null){e.consume(n);return}return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),N(e,t,`linePrefix`)}function i(t){return e.enter(`paragraph`),a(t)}function a(t){let r=e.enter(`chunkText`,{contentType:`text`,previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){if(t===null){e.exit(`chunkText`),e.exit(`paragraph`),e.consume(t);return}return j(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var Ia={tokenize:Ra},La={tokenize:za};function Ra(e){let t=this,n=[],r=0,i,a,o;return s;function s(i){if(r<n.length){let a=n[r];return t.containerState=a[1],e.attempt(a[0].continuation,c,l)(i)}return l(i)}function c(e){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();let n=t.events.length,a=n,o;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){o=t.events[a][1].end;break}_(r);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;return ma(t.events,a+1,0,t.events.slice(n)),t.events.length=s,l(e)}return s(e)}function l(a){if(r===n.length){if(!i)return f(a);if(i.currentConstruct&&i.currentConstruct.concrete)return m(a);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(La,u,d)(a)}function u(e){return i&&v(),_(r),f(e)}function d(e){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m(e)}function f(n){return t.containerState={},e.attempt(La,p,m)(n)}function p(e){return r++,n.push([t.currentConstruct,t.containerState]),f(e)}function m(n){if(n===null){i&&v(),_(0),e.consume(n);return}return i||=t.parser.flow(t.now()),e.enter(`chunkFlow`,{_tokenizer:i,contentType:`flow`,previous:a}),h(n)}function h(n){if(n===null){g(e.exit(`chunkFlow`),!0),_(0),e.consume(n);return}return j(n)?(e.consume(n),g(e.exit(`chunkFlow`)),r=0,t.interrupt=void 0,s):(e.consume(n),h)}function g(e,n){let s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,i.defineSkip(e.start),i.write(s),t.parser.lazy[e.start.line]){let e=i.events.length;for(;e--;)if(i.events[e][1].start.offset<o&&(!i.events[e][1].end||i.events[e][1].end.offset>o))return;let n=t.events.length,a=n,s,c;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){if(s){c=t.events[a][1].end;break}s=!0}for(_(r),e=n;e<t.events.length;)t.events[e][1].end={...c},e++;ma(t.events,a+1,0,t.events.slice(n)),t.events.length=e}}function _(r){let i=n.length;for(;i-- >r;){let r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function za(e,t,n){return N(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function Ba(e){if(e===null||ka(e)||ja(e))return 1;if(Aa(e))return 2}function Va(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}var Ha={name:`attention`,resolveAll:Ua,tokenize:Wa};function Ua(e,t){let n=-1,r,i,a,o,s,c,l,u;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`attentionSequence`&&e[n][1]._close){for(r=n;r--;)if(e[r][0]===`exit`&&e[r][1].type===`attentionSequence`&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;let d={...e[r][1].end},f={...e[n][1].start};Ga(d,-c),Ga(f,c),o={type:c>1?`strongSequence`:`emphasisSequence`,start:d,end:{...e[r][1].end}},s={type:c>1?`strongSequence`:`emphasisSequence`,start:{...e[n][1].start},end:f},a={type:c>1?`strongText`:`emphasisText`,start:{...e[r][1].end},end:{...e[n][1].start}},i={type:c>1?`strong`:`emphasis`,start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=ha(l,[[`enter`,e[r][1],t],[`exit`,e[r][1],t]])),l=ha(l,[[`enter`,i,t],[`enter`,o,t],[`exit`,o,t],[`enter`,a,t]]),l=ha(l,Va(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=ha(l,[[`exit`,a,t],[`enter`,s,t],[`exit`,s,t],[`exit`,i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,l=ha(l,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])):u=0,ma(e,r-1,n-r+3,l),n=r+l.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`attentionSequence`&&(e[n][1].type=`data`);return e}function Wa(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Ba(r),a;return o;function o(t){return a=t,e.enter(`attentionSequence`),s(t)}function s(o){if(o===a)return e.consume(o),s;let c=e.exit(`attentionSequence`),l=Ba(o),u=!l||l===2&&i||n.includes(o),d=!i||i===2&&l||n.includes(r);return c._open=!!(a===42?u:u&&(i||!d)),c._close=!!(a===42?d:d&&(l||!u)),t(o)}}function Ga(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var Ka={name:`autolink`,tokenize:qa};function qa(e,t,n){let r=0;return i;function i(t){return e.enter(`autolink`),e.enter(`autolinkMarker`),e.consume(t),e.exit(`autolinkMarker`),e.enter(`autolinkProtocol`),a}function a(t){return Sa(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||Ca(e)?(r=1,s(e)):l(e)}function s(t){return t===58?(e.consume(t),r=0,c):(t===43||t===45||t===46||Ca(t))&&r++<32?(e.consume(t),s):(r=0,l(t))}function c(r){return r===62?(e.exit(`autolinkProtocol`),e.enter(`autolinkMarker`),e.consume(r),e.exit(`autolinkMarker`),e.exit(`autolink`),t):r===null||r===32||r===60||Ta(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):wa(t)?(e.consume(t),l):n(t)}function u(e){return Ca(e)?d(e):n(e)}function d(n){return n===46?(e.consume(n),r=0,u):n===62?(e.exit(`autolinkProtocol`).type=`autolinkEmail`,e.enter(`autolinkMarker`),e.consume(n),e.exit(`autolinkMarker`),e.exit(`autolink`),t):f(n)}function f(t){if((t===45||Ca(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}var Ja={partial:!0,tokenize:Ya};function Ya(e,t,n){return r;function r(t){return M(t)?N(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||j(e)?t(e):n(e)}}var Xa={continuation:{tokenize:Qa},exit:$a,name:`blockQuote`,tokenize:Za};function Za(e,t,n){let r=this;return i;function i(t){if(t===62){let n=r.containerState;return n.open||=(e.enter(`blockQuote`,{_container:!0}),!0),e.enter(`blockQuotePrefix`),e.enter(`blockQuoteMarker`),e.consume(t),e.exit(`blockQuoteMarker`),a}return n(t)}function a(n){return M(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function Qa(e,t,n){let r=this;return i;function i(t){return M(t)?N(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt(Xa,t,n)(r)}}function $a(e){e.exit(`blockQuote`)}var eo={name:`characterEscape`,tokenize:to};function to(e,t,n){return r;function r(t){return e.enter(`characterEscape`),e.enter(`escapeMarker`),e.consume(t),e.exit(`escapeMarker`),i}function i(r){return Oa(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}var no={name:`characterReference`,tokenize:ro};function ro(e,t,n){let r=this,i=0,a,o;return s;function s(t){return e.enter(`characterReference`),e.enter(`characterReferenceMarker`),e.consume(t),e.exit(`characterReferenceMarker`),c}function c(t){return t===35?(e.enter(`characterReferenceMarkerNumeric`),e.consume(t),e.exit(`characterReferenceMarkerNumeric`),l):(e.enter(`characterReferenceValue`),a=31,o=Ca,u(t))}function l(t){return t===88||t===120?(e.enter(`characterReferenceMarkerHexadecimal`),e.consume(t),e.exit(`characterReferenceMarkerHexadecimal`),e.enter(`characterReferenceValue`),a=6,o=Da,u):(e.enter(`characterReferenceValue`),a=7,o=Ea,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===Ca&&!pa(r.sliceSerialize(i))?n(s):(e.enter(`characterReferenceMarker`),e.consume(s),e.exit(`characterReferenceMarker`),e.exit(`characterReference`),t)}return o(s)&&i++<a?(e.consume(s),u):n(s)}}var io={partial:!0,tokenize:so},ao={concrete:!0,name:`codeFenced`,tokenize:oo};function oo(e,t,n){let r=this,i={partial:!0,tokenize:x},a=0,o=0,s;return c;function c(e){return l(e)}function l(t){let n=r.events[r.events.length-1];return a=n&&n[1].type===`linePrefix`?n[2].sliceSerialize(n[1],!0).length:0,s=t,e.enter(`codeFenced`),e.enter(`codeFencedFence`),e.enter(`codeFencedFenceSequence`),u(t)}function u(t){return t===s?(o++,e.consume(t),u):o<3?n(t):(e.exit(`codeFencedFenceSequence`),M(t)?N(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||j(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check(io,h,b)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||j(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):M(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),N(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||j(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||j(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceMeta`),d(t)):t===96&&t===s?n(t):(e.consume(t),m)}function h(t){return e.attempt(i,b,g)(t)}function g(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),_}function _(t){return a>0&&M(t)?N(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||j(t)?e.check(io,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||j(t)?(e.exit(`codeFlowValue`),v(t)):(e.consume(t),y)}function b(n){return e.exit(`codeFenced`),t(n)}function x(e,t,n){let i=0;return a;function a(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c}function c(t){return e.enter(`codeFencedFence`),M(t)?N(e,l,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):l(t)}function l(t){return t===s?(e.enter(`codeFencedFenceSequence`),u(t)):n(t)}function u(t){return t===s?(i++,e.consume(t),u):i>=o?(e.exit(`codeFencedFenceSequence`),M(t)?N(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||j(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}function so(e,t,n){let r=this;return i;function i(t){return t===null?n(t):(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}var co={name:`codeIndented`,tokenize:uo},lo={partial:!0,tokenize:fo};function uo(e,t,n){let r=this;return i;function i(t){return e.enter(`codeIndented`),N(e,a,`linePrefix`,5)(t)}function a(e){let t=r.events[r.events.length-1];return t&&t[1].type===`linePrefix`&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return t===null?c(t):j(t)?e.attempt(lo,o,c)(t):(e.enter(`codeFlowValue`),s(t))}function s(t){return t===null||j(t)?(e.exit(`codeFlowValue`),o(t)):(e.consume(t),s)}function c(n){return e.exit(`codeIndented`),t(n)}}function fo(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):j(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),i):N(e,a,`linePrefix`,5)(t)}function a(e){let a=r.events[r.events.length-1];return a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):j(e)?i(e):n(e)}}var po={name:`codeText`,previous:ho,resolve:mo,tokenize:go};function mo(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r<t;)if(e[r][1].type===`codeTextData`){e[n][1].type=`codeTextPadding`,e[t][1].type=`codeTextPadding`,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!==`lineEnding`&&(i=r):(r===t||e[r][1].type===`lineEnding`)&&(e[i][1].type=`codeTextData`,r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function ho(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function go(e,t,n){let r=0,i,a;return o;function o(t){return e.enter(`codeText`),e.enter(`codeTextSequence`),s(t)}function s(t){return t===96?(e.consume(t),r++,s):(e.exit(`codeTextSequence`),c(t))}function c(t){return t===null?n(t):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),c):t===96?(a=e.enter(`codeTextSequence`),i=0,u(t)):j(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c):(e.enter(`codeTextData`),l(t))}function l(t){return t===null||t===32||t===96||j(t)?(e.exit(`codeTextData`),c(t)):(e.consume(t),l)}function u(n){return n===96?(e.consume(n),i++,u):i===r?(e.exit(`codeTextSequence`),e.exit(`codeText`),t(n)):(a.type=`codeTextData`,l(n))}}var _o=class{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=t??1/0;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&vo(this.left,n),i.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),vo(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),vo(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){let t=this.left.splice(e,1/0);vo(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);vo(this.left,t.reverse())}}};function vo(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function yo(e){let t={},n=-1,r,i,a,o,s,c,l,u=new _o(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type===`chunkFlow`&&u.get(n-1)[1].type===`listItemPrefix`&&(c=r[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type===`lineEndingBlank`&&(a+=2),a<c.length&&c[a][1].type===`content`))for(;++a<c.length&&c[a][1].type!==`content`;)c[a][1].type===`chunkText`&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]===`enter`)r[1].contentType&&(Object.assign(t,bo(u,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=u.get(a),o[1].type===`lineEnding`||o[1].type===`lineEndingBlank`)o[0]===`enter`&&(i&&(u.get(i)[1].type=`lineEndingBlank`),o[1].type=`lineEnding`,i=a);else if(!(o[1].type===`linePrefix`||o[1].type===`listItemIndent`))break;i&&(r[1].end={...u.get(i)[1].start},s=u.slice(i,n),s.unshift(r),u.splice(i,n-i+1,s))}}return ma(e,0,1/0,u.slice(0)),!l}function bo(e,t){let n=e.get(t)[1],r=e.get(t)[2],i=t-1,a=[],o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));let s=o.events,c=[],l={},u,d,f=-1,p=n,m=0,h=0,g=[h];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)s[f][0]===`exit`&&s[f-1][0]===`enter`&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(h=f+1,g.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){let t=s.slice(g[f],g[f+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)l[m+c[f][0]]=m+c[f][1],m+=c[f][1]-c[f][0]-1;return l}var xo={resolve:Co,tokenize:wo},So={partial:!0,tokenize:To};function Co(e){return yo(e),e}function wo(e,t){let n;return r;function r(t){return e.enter(`content`),n=e.enter(`chunkContent`,{contentType:`content`}),i(t)}function i(t){return t===null?a(t):j(t)?e.check(So,o,a)(t):(e.consume(t),i)}function a(n){return e.exit(`chunkContent`),e.exit(`content`),t(n)}function o(t){return e.consume(t),e.exit(`chunkContent`),n.next=e.enter(`chunkContent`,{contentType:`content`,previous:n}),n=n.next,i}}function To(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),N(e,a,`linePrefix`)}function a(i){if(i===null||j(i))return n(i);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes(`codeIndented`)&&a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function Eo(e,t,n,r,i,a,o,s,c){let l=c||1/0,u=0;return d;function d(t){return t===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f):t===null||t===32||t===41||Ta(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter(`chunkString`,{contentType:`string`}),h(t))}function f(n){return n===62?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(`chunkString`,{contentType:`string`}),p(n))}function p(t){return t===62?(e.exit(`chunkString`),e.exit(s),f(t)):t===null||t===60||j(t)?n(t):(e.consume(t),t===92?m:p)}function m(t){return t===60||t===62||t===92?(e.consume(t),p):p(t)}function h(i){return!u&&(i===null||i===41||ka(i))?(e.exit(`chunkString`),e.exit(s),e.exit(o),e.exit(r),t(i)):u<l&&i===40?(e.consume(i),u++,h):i===41?(e.consume(i),u--,h):i===null||i===32||i===40||Ta(i)?n(i):(e.consume(i),i===92?g:h)}function g(t){return t===40||t===41||t===92?(e.consume(t),h):h(t)}}function Do(e,t,n,r,i,a){let o=this,s=0,c;return l;function l(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u}function u(l){return s>999||l===null||l===91||l===93&&!c||l===94&&!s&&`_hiddenFootnoteSupport`in o.parser.constructs?n(l):l===93?(e.exit(a),e.enter(i),e.consume(l),e.exit(i),e.exit(r),t):j(l)?(e.enter(`lineEnding`),e.consume(l),e.exit(`lineEnding`),u):(e.enter(`chunkString`,{contentType:`string`}),d(l))}function d(t){return t===null||t===91||t===93||j(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!M(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function Oo(e,t,n,r,i,a){let o;return s;function s(t){return t===34||t===39||t===40?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=t===40?41:t,c):n(t)}function c(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),c(o)):t===null?n(t):j(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),N(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||j(t)?(e.exit(`chunkString`),l(t)):(e.consume(t),t===92?d:u)}function d(t){return t===o||t===92?(e.consume(t),u):u(t)}}function ko(e,t){let n;return r;function r(i){return j(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):M(i)?N(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var Ao={name:`definition`,tokenize:Mo},jo={partial:!0,tokenize:No};function Mo(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return Do.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=xa(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),c):n(t)}function c(t){return ka(t)?ko(e,l)(t):l(t)}function l(t){return Eo(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(jo,d,d)(t)}function d(t){return M(t)?N(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||j(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function No(e,t,n){return r;function r(t){return ka(t)?ko(e,i)(t):n(t)}function i(t){return Oo(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return M(t)?N(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||j(e)?t(e):n(e)}}var Po={name:`hardBreakEscape`,tokenize:Fo};function Fo(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return j(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var Io={name:`headingAtx`,resolve:Lo,tokenize:Ro};function Lo(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type===`whitespace`&&(r+=2),n-2>r&&e[n][1].type===`whitespace`&&(n-=2),e[n][1].type===`atxHeadingSequence`&&(r===n-1||n-4>r&&e[n-2][1].type===`whitespace`)&&(n-=r+1===n?2:4),n>r&&(i={type:`atxHeadingText`,start:e[r][1].start,end:e[n][1].end},a={type:`chunkText`,start:e[r][1].start,end:e[n][1].end,contentType:`text`},ma(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])),e}function Ro(e,t,n){let r=0;return i;function i(t){return e.enter(`atxHeading`),a(t)}function a(t){return e.enter(`atxHeadingSequence`),o(t)}function o(t){return t===35&&r++<6?(e.consume(t),o):t===null||ka(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||j(n)?(e.exit(`atxHeading`),t(n)):M(n)?N(e,s,`whitespace`)(n):(e.enter(`atxHeadingText`),l(n))}function c(t){return t===35?(e.consume(t),c):(e.exit(`atxHeadingSequence`),s(t))}function l(t){return t===null||t===35||ka(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var zo=`address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`),Bo=[`pre`,`script`,`style`,`textarea`],Vo={concrete:!0,name:`htmlFlow`,resolveTo:Wo,tokenize:Go},Ho={partial:!0,tokenize:qo},Uo={partial:!0,tokenize:Ko};function Wo(e){let t=e.length;for(;t--&&!(e[t][0]===`enter`&&e[t][1].type===`htmlFlow`););return t>1&&e[t-2][1].type===`linePrefix`&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Go(e,t,n){let r=this,i,a,o,s,c;return l;function l(e){return u(e)}function u(t){return e.enter(`htmlFlow`),e.enter(`htmlFlowData`),e.consume(t),d}function d(s){return s===33?(e.consume(s),f):s===47?(e.consume(s),a=!0,h):s===63?(e.consume(s),i=3,r.interrupt?t:le):Sa(s)?(e.consume(s),o=String.fromCharCode(s),g):n(s)}function f(a){return a===45?(e.consume(a),i=2,p):a===91?(e.consume(a),i=5,s=0,m):Sa(a)?(e.consume(a),i=4,r.interrupt?t:le):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:le):n(i)}function m(i){return i===`CDATA[`.charCodeAt(s++)?(e.consume(i),s===6?r.interrupt?t:te:m):n(i)}function h(t){return Sa(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||ka(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&Bo.includes(l)?(i=1,r.interrupt?t(s):te(s)):zo.includes(o.toLowerCase())?(i=6,c?(e.consume(s),_):r.interrupt?t(s):te(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?v(s):y(s))}return s===45||Ca(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function _(i){return i===62?(e.consume(i),r.interrupt?t:te):n(i)}function v(t){return M(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||Sa(t)?(e.consume(t),b):M(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||Ca(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):M(t)?(e.consume(t),x):y(t)}function S(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),c=t,C):M(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||j(t)?n(t):(e.consume(t),C)}function w(t){return t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||ka(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||M(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),ee):n(t)}function ee(t){return t===null||j(t)?te(t):M(t)?(e.consume(t),ee):n(t)}function te(t){return t===45&&i===2?(e.consume(t),ae):t===60&&i===1?(e.consume(t),oe):t===62&&i===4?(e.consume(t),ue):t===63&&i===3?(e.consume(t),le):t===93&&i===5?(e.consume(t),ce):j(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(Ho,de,ne)(t)):t===null||j(t)?(e.exit(`htmlFlowData`),ne(t)):(e.consume(t),te)}function ne(t){return e.check(Uo,re,de)(t)}function re(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),ie}function ie(t){return t===null||j(t)?ne(t):(e.enter(`htmlFlowData`),te(t))}function ae(t){return t===45?(e.consume(t),le):te(t)}function oe(t){return t===47?(e.consume(t),o=``,se):te(t)}function se(t){if(t===62){let n=o.toLowerCase();return Bo.includes(n)?(e.consume(t),ue):te(t)}return Sa(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),se):te(t)}function ce(t){return t===93?(e.consume(t),le):te(t)}function le(t){return t===62?(e.consume(t),ue):t===45&&i===2?(e.consume(t),le):te(t)}function ue(t){return t===null||j(t)?(e.exit(`htmlFlowData`),de(t)):(e.consume(t),ue)}function de(n){return e.exit(`htmlFlow`),t(n)}}function Ko(e,t,n){let r=this;return i;function i(t){return j(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a):n(t)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function qo(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(Ja,t,n)}}var Jo={name:`htmlText`,tokenize:Yo};function Yo(e,t,n){let r=this,i,a,o;return s;function s(t){return e.enter(`htmlText`),e.enter(`htmlTextData`),e.consume(t),c}function c(t){return t===33?(e.consume(t),l):t===47?(e.consume(t),x):t===63?(e.consume(t),y):Sa(t)?(e.consume(t),w):n(t)}function l(t){return t===45?(e.consume(t),u):t===91?(e.consume(t),a=0,m):Sa(t)?(e.consume(t),v):n(t)}function u(t){return t===45?(e.consume(t),p):n(t)}function d(t){return t===null?n(t):t===45?(e.consume(t),f):j(t)?(o=d,oe(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?ae(e):e===45?f(e):d(e)}function m(t){return t===`CDATA[`.charCodeAt(a++)?(e.consume(t),a===6?h:m):n(t)}function h(t){return t===null?n(t):t===93?(e.consume(t),g):j(t)?(o=h,oe(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?ae(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?ae(t):j(t)?(o=v,oe(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):j(t)?(o=y,oe(t)):(e.consume(t),y)}function b(e){return e===62?ae(e):y(e)}function x(t){return Sa(t)?(e.consume(t),S):n(t)}function S(t){return t===45||Ca(t)?(e.consume(t),S):C(t)}function C(t){return j(t)?(o=C,oe(t)):M(t)?(e.consume(t),C):ae(t)}function w(t){return t===45||Ca(t)?(e.consume(t),w):t===47||t===62||ka(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),ae):t===58||t===95||Sa(t)?(e.consume(t),E):j(t)?(o=T,oe(t)):M(t)?(e.consume(t),T):ae(t)}function E(t){return t===45||t===46||t===58||t===95||Ca(t)?(e.consume(t),E):ee(t)}function ee(t){return t===61?(e.consume(t),te):j(t)?(o=ee,oe(t)):M(t)?(e.consume(t),ee):T(t)}function te(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),i=t,ne):j(t)?(o=te,oe(t)):M(t)?(e.consume(t),te):(e.consume(t),re)}function ne(t){return t===i?(e.consume(t),i=void 0,ie):t===null?n(t):j(t)?(o=ne,oe(t)):(e.consume(t),ne)}function re(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||ka(t)?T(t):(e.consume(t),re)}function ie(e){return e===47||e===62||ka(e)?T(e):n(e)}function ae(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function oe(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),se}function se(t){return M(t)?N(e,ce,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):ce(t)}function ce(t){return e.enter(`htmlTextData`),o(t)}}var Xo={name:`labelEnd`,resolveAll:es,resolveTo:ts,tokenize:ns},Zo={tokenize:rs},Qo={tokenize:is},$o={tokenize:as};function es(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),r.type===`labelImage`||r.type===`labelLink`||r.type===`labelEnd`){let e=r.type===`labelImage`?4:2;r.type=`data`,t+=e}}return e.length!==n.length&&ma(e,0,e.length,n),e}function ts(e,t){let n=e.length,r=0,i,a,o,s;for(;n--;)if(i=e[n][1],a){if(i.type===`link`||i.type===`labelLink`&&i._inactive)break;e[n][0]===`enter`&&i.type===`labelLink`&&(i._inactive=!0)}else if(o){if(e[n][0]===`enter`&&(i.type===`labelImage`||i.type===`labelLink`)&&!i._balanced&&(a=n,i.type!==`labelLink`)){r=2;break}}else i.type===`labelEnd`&&(o=n);let c={type:e[a][1].type===`labelLink`?`link`:`image`,start:{...e[a][1].start},end:{...e[e.length-1][1].end}},l={type:`label`,start:{...e[a][1].start},end:{...e[o][1].end}},u={type:`labelText`,start:{...e[a+r+2][1].end},end:{...e[o-2][1].start}};return s=[[`enter`,c,t],[`enter`,l,t]],s=ha(s,e.slice(a+1,a+r+3)),s=ha(s,[[`enter`,u,t]]),s=ha(s,Va(t.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),t)),s=ha(s,[[`exit`,u,t],e[o-2],e[o-1],[`exit`,l,t]]),s=ha(s,e.slice(o+1)),s=ha(s,[[`exit`,c,t]]),ma(e,a,e.length,s),e}function ns(e,t,n){let r=this,i=r.events.length,a,o;for(;i--;)if((r.events[i][1].type===`labelImage`||r.events[i][1].type===`labelLink`)&&!r.events[i][1]._balanced){a=r.events[i][1];break}return s;function s(t){return a?a._inactive?d(t):(o=r.parser.defined.includes(xa(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter(`labelEnd`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelEnd`),c):n(t)}function c(t){return t===40?e.attempt(Zo,u,o?u:d)(t):t===91?e.attempt(Qo,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt($o,u,d)(t)}function u(e){return t(e)}function d(e){return a._balanced=!0,n(e)}}function rs(e,t,n){return r;function r(t){return e.enter(`resource`),e.enter(`resourceMarker`),e.consume(t),e.exit(`resourceMarker`),i}function i(t){return ka(t)?ko(e,a)(t):a(t)}function a(t){return t===41?u(t):Eo(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return ka(t)?ko(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?Oo(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return ka(t)?ko(e,u)(t):u(t)}function u(r){return r===41?(e.enter(`resourceMarker`),e.consume(r),e.exit(`resourceMarker`),e.exit(`resource`),t):n(r)}}function is(e,t,n){let r=this;return i;function i(t){return Do.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(xa(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function as(e,t,n){return r;function r(t){return e.enter(`reference`),e.enter(`referenceMarker`),e.consume(t),e.exit(`referenceMarker`),i}function i(r){return r===93?(e.enter(`referenceMarker`),e.consume(r),e.exit(`referenceMarker`),e.exit(`reference`),t):n(r)}}var os={name:`labelStartImage`,resolveAll:Xo.resolveAll,tokenize:ss};function ss(e,t,n){let r=this;return i;function i(t){return e.enter(`labelImage`),e.enter(`labelImageMarker`),e.consume(t),e.exit(`labelImageMarker`),a}function a(t){return t===91?(e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelImage`),o):n(t)}function o(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var cs={name:`labelStartLink`,resolveAll:Xo.resolveAll,tokenize:ls};function ls(e,t,n){let r=this;return i;function i(t){return e.enter(`labelLink`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelLink`),a}function a(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var us={name:`lineEnding`,tokenize:ds};function ds(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),N(e,t,`linePrefix`)}}var fs={name:`thematicBreak`,tokenize:ps};function ps(e,t,n){let r=0,i;return a;function a(t){return e.enter(`thematicBreak`),o(t)}function o(e){return i=e,s(e)}function s(a){return a===i?(e.enter(`thematicBreakSequence`),c(a)):r>=3&&(a===null||j(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),M(t)?N(e,s,`whitespace`)(t):s(t))}}var ms={continuation:{tokenize:vs},exit:bs,name:`list`,tokenize:_s},hs={partial:!0,tokenize:xs},gs={partial:!0,tokenize:ys};function _s(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){let i=r.containerState.type||(t===42||t===43||t===45?`listUnordered`:`listOrdered`);if(i===`listUnordered`?!r.containerState.marker||t===r.containerState.marker:Ea(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),i===`listUnordered`)return e.enter(`listItemPrefix`),t===42||t===45?e.check(fs,n,l)(t):l(t);if(!r.interrupt||t===49)return e.enter(`listItemPrefix`),e.enter(`listItemValue`),c(t)}return n(t)}function c(t){return Ea(t)&&++o<10?(e.consume(t),c):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:t===41||t===46)?(e.exit(`listItemValue`),l(t)):n(t)}function l(t){return e.enter(`listItemMarker`),e.consume(t),e.exit(`listItemMarker`),r.containerState.marker=r.containerState.marker||t,e.check(Ja,r.interrupt?n:u,e.attempt(hs,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return M(t)?(e.enter(`listItemPrefixWhitespace`),e.consume(t),e.exit(`listItemPrefixWhitespace`),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit(`listItemPrefix`),!0).length,t(n)}}function vs(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(Ja,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,N(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!M(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(gs,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,N(e,e.attempt(ms,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function ys(e,t,n){let r=this;return N(e,i,`listItemIndent`,r.containerState.size+1);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`listItemIndent`&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}}function bs(e){e.exit(this.containerState.type)}function xs(e,t,n){let r=this;return N(e,i,`listItemPrefixWhitespace`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:5);function i(e){let i=r.events[r.events.length-1];return!M(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var Ss={name:`setextUnderline`,resolveTo:Cs,tokenize:ws};function Cs(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]===`enter`){if(e[n][1].type===`content`){r=n;break}e[n][1].type===`paragraph`&&(i=n)}else e[n][1].type===`content`&&e.splice(n,1),!a&&e[n][1].type===`definition`&&(a=n);let o={type:`setextHeading`,start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type=`setextHeadingText`,a?(e.splice(i,0,[`enter`,o,t]),e.splice(a+1,0,[`exit`,e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=o,e.push([`exit`,o,t]),e}function ws(e,t,n){let r=this,i;return a;function a(t){let a=r.events.length,s;for(;a--;)if(r.events[a][1].type!==`lineEnding`&&r.events[a][1].type!==`linePrefix`&&r.events[a][1].type!==`content`){s=r.events[a][1].type===`paragraph`;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter(`setextHeadingLine`),i=t,o(t)):n(t)}function o(t){return e.enter(`setextHeadingLineSequence`),s(t)}function s(t){return t===i?(e.consume(t),s):(e.exit(`setextHeadingLineSequence`),M(t)?N(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||j(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var Ts={tokenize:Es};function Es(e){let t=this,n=e.attempt(Ja,r,e.attempt(this.parser.constructs.flowInitial,i,N(e,e.attempt(this.parser.constructs.flow,i,e.attempt(xo,i)),`linePrefix`)));return n;function r(r){if(r===null){e.consume(r);return}return e.enter(`lineEndingBlank`),e.consume(r),e.exit(`lineEndingBlank`),t.currentConstruct=void 0,n}function i(r){if(r===null){e.consume(r);return}return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),t.currentConstruct=void 0,n}}var Ds={resolveAll:js()},Os=As(`string`),ks=As(`text`);function As(e){return{resolveAll:js(e===`text`?Ms:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(e===null){t.consume(e);return}return t.enter(`data`),t.consume(e),s}function s(e){return c(e)?(t.exit(`data`),i(e)):(t.consume(e),s)}function c(e){if(e===null)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}function js(e){return t;function t(t,n){let r=-1,i;for(;++r<=t.length;)i===void 0?t[r]&&t[r][1].type===`data`&&(i=r,r++):(!t[r]||t[r][1].type!==`data`)&&(r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),r=i+2),i=void 0);return e?e(t,n):t}}function Ms(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type===`lineEnding`)&&e[n-1][1].type===`data`){let r=e[n-1][1],i=t.sliceStream(r),a=i.length,o=-1,s=0,c;for(;a--;){let e=i[a];if(typeof e==`string`){for(o=e.length;e.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(e===-2)c=!0,s++;else if(e!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){let i={type:n===e.length||c||s<2?`lineSuffix`:`hardBreakTrailing`,start:{_bufferIndex:a?o:r.start._bufferIndex+o,_index:r.start._index+a,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...i.start},r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(n,0,[`enter`,i,t],[`exit`,i,t]),n+=2)}n++}return e}var Ns=t({attentionMarkers:()=>Vs,contentInitial:()=>Fs,disable:()=>Hs,document:()=>Ps,flow:()=>Ls,flowInitial:()=>Is,insideSpan:()=>Bs,string:()=>Rs,text:()=>zs}),Ps={42:ms,43:ms,45:ms,48:ms,49:ms,50:ms,51:ms,52:ms,53:ms,54:ms,55:ms,56:ms,57:ms,62:Xa},Fs={91:Ao},Is={[-2]:co,[-1]:co,32:co},Ls={35:Io,42:fs,45:[Ss,fs],60:Vo,61:Ss,95:fs,96:ao,126:ao},Rs={38:no,92:eo},zs={[-5]:us,[-4]:us,[-3]:us,33:os,38:no,42:Ha,60:[Ka,Jo],91:cs,92:[Po,eo],93:Xo,95:Ha,96:po},Bs={null:[Ha,Ds]},Vs={null:[42,95]},Hs={null:[]};function Us(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],c={attempt:C(x),check:C(S),consume:v,enter:y,exit:b,interrupt:C(S,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d},u=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function d(e){return o=ha(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=Va(a,l.events,l),l.events):[]}function f(e,t){return Gs(p(e),t)}function p(e){return Ws(o,e)}function m(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){i[e.line]=e.column,E()}function g(){let e;for(;r._index<o.length;){let t=o[r._index];if(typeof t==`string`)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)_(t.charCodeAt(r._bufferIndex));else _(t)}}function _(e){u=u(e)}function v(e){j(e)?(r.line++,r.column=1,r.offset+=e===-3?2:1,E()):e!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=e}function y(e,t){let n=t||{};return n.type=e,n.start=m(),l.events.push([`enter`,n,l]),s.push(n),n}function b(e){let t=s.pop();return t.end=m(),l.events.push([`exit`,t,l]),t}function x(e,t){w(e,t.from)}function S(e,t){t.restore()}function C(e,t){return n;function n(n,r,i){let a,o,s,u;return Array.isArray(n)?f(n):`tokenize`in n?f([n]):d(n);function d(e){return t;function t(t){let n=t!==null&&e[t],r=t!==null&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}function f(e){return a=e,o=0,e.length===0?i:p(e[o])}function p(e){return n;function n(n){return u=T(),s=e,e.partial||(l.currentConstruct=e),e.name&&l.parser.constructs.disable.null.includes(e.name)?h(n):e.tokenize.call(t?Object.assign(Object.create(l),t):l,c,m,h)(n)}}function m(t){return e(s,u),r}function h(e){return u.restore(),++o<a.length?p(a[o]):i}}}function w(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&ma(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function T(){let e=m(),t=l.previous,n=l.currentConstruct,i=l.events.length,a=Array.from(s);return{from:i,restore:o};function o(){r=e,l.previous=t,l.currentConstruct=n,l.events.length=i,s=a,E()}}function E(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Ws(e,t){let n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex,o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){let e=o[0];typeof e==`string`?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function Gs(e,t){let n=-1,r=[],i;for(;++n<e.length;){let a=e[n],o;if(typeof a==`string`)o=a;else switch(a){case-5:o=`\r`;break;case-4:o=`
3
3
  `;break;case-3:o=`\r
4
4
  `;break;case-2:o=t?` `:` `;break;case-1:if(!t&&i)continue;o=` `;break;default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join(``)}function Ks(e){let t={constructs:_a([Ns,...(e||{}).extensions||[]]),content:n(Pa),defined:[],document:n(Ia),flow:n(Ts),lazy:{},string:n(Os),text:n(ks)};return t;function n(e){return n;function n(n){return Us(t,e,n)}}}function qs(e){for(;!yo(e););return e}var Js=/[\0\t\n\r]/g;function Ys(){let e=1,t=``,n=!0,r;return i;function i(i,a,o){let s=[],c,l,u,d,f;for(i=t+(typeof i==`string`?i.toString():new TextDecoder(a||void 0).decode(i)),u=0,t=``,n&&=(i.charCodeAt(0)===65279&&u++,void 0);u<i.length;){if(Js.lastIndex=u,c=Js.exec(i),d=c&&c.index!==void 0?c.index:i.length,f=i.charCodeAt(d),!c){t=i.slice(u);break}if(f===10&&u===d&&r)s.push(-3),r=void 0;else switch(r&&=(s.push(-5),void 0),u<d&&(s.push(i.slice(u,d)),e+=d-u),f){case 0:s.push(65533),e++;break;case 9:for(l=Math.ceil(e/4)*4,s.push(-2);e++<l;)s.push(-1);break;case 10:s.push(-4),e=1;break;default:r=!0,e=1}u=d+1}return o&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}var Xs=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Zs(e){return e.replace(Xs,Qs)}function Qs(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return ba(n.slice(t?2:1),t?16:10)}return pa(n)||e}var $s={}.hasOwnProperty;function ec(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),tc(n)(qs(Ks(n).document().write(Ys()(e,t,!0))))}function tc(e){let t={transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:a(Ee),autolinkProtocol:T,autolinkEmail:T,atxHeading:a(Se),blockQuote:a(ye),characterEscape:T,characterReference:T,codeFenced:a(be),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(be,o),codeText:a(xe,o),codeTextData:T,data:T,codeFlowValue:T,definition:a(D),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(O),hardBreakEscape:a(Ce),hardBreakTrailing:a(Ce),htmlFlow:a(we,o),htmlFlowData:T,htmlText:a(we,o),htmlTextData:T,image:a(Te),label:o,link:a(Ee),listItem:a(Oe),listItemValue:f,listOrdered:a(De,d),listUnordered:a(De),paragraph:a(ke),reference:fe,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(Se),strong:a(Ae),thematicBreak:a(Me)},exit:{atxHeading:c(),atxHeadingSequence:x,autolink:c(),autolinkEmail:ve,autolinkProtocol:_e,blockQuote:c(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:me,characterReferenceMarkerNumeric:me,characterReferenceValue:he,characterReference:ge,codeFenced:c(g),codeFencedFence:h,codeFencedFenceInfo:p,codeFencedFenceMeta:m,codeFlowValue:E,codeIndented:c(_),codeText:c(ie),codeTextData:E,data:E,definition:c(),definitionDestinationString:b,definitionLabelString:v,definitionTitleString:y,emphasis:c(),hardBreakEscape:c(te),hardBreakTrailing:c(te),htmlFlow:c(ne),htmlFlowData:E,htmlText:c(re),htmlTextData:E,image:c(oe),label:ce,labelText:se,lineEnding:ee,link:c(ae),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:pe,resourceDestinationString:le,resourceTitleString:ue,resource:de,setextHeading:c(w),setextHeadingLineSequence:C,setextHeadingText:S,strong:c(),thematicBreak:c()}};rc(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(e){let r={type:`root`,children:[]},a={stack:[r],tokenStack:[],config:t,enter:s,exit:l,buffer:o,resume:u,data:n},c=[],d=-1;for(;++d<e.length;)(e[d][1].type===`listOrdered`||e[d][1].type===`listUnordered`)&&(e[d][0]===`enter`?c.push(d):d=i(e,c.pop(),d));for(d=-1;++d<e.length;){let n=t[e[d][0]];$s.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},a),e[d][1])}if(a.tokenStack.length>0){let e=a.tokenStack[a.tokenStack.length-1];(e[1]||ac).call(a,void 0,e[0])}for(r.position={start:nc(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:nc(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function i(e,t,n){let r=t-1,i=-1,a=!1,o,s,c,l;for(;++r<=n;){let t=e[r];switch(t[1].type){case`listUnordered`:case`listOrdered`:case`blockQuote`:t[0]===`enter`?i++:i--,l=void 0;break;case`lineEndingBlank`:t[0]===`enter`&&(o&&!l&&!i&&!c&&(c=r),l=void 0);break;case`linePrefix`:case`listItemValue`:case`listItemMarker`:case`listItemPrefix`:case`listItemPrefixWhitespace`:break;default:l=void 0}if(!i&&t[0]===`enter`&&t[1].type===`listItemPrefix`||i===-1&&t[0]===`exit`&&(t[1].type===`listUnordered`||t[1].type===`listOrdered`)){if(o){let i=r;for(s=void 0;i--;){let t=e[i];if(t[1].type===`lineEnding`||t[1].type===`lineEndingBlank`){if(t[0]===`exit`)continue;s&&(e[s][1].type=`lineEndingBlank`,a=!0),t[1].type=`lineEnding`,s=i}else if(!(t[1].type===`linePrefix`||t[1].type===`blockQuotePrefix`||t[1].type===`blockQuotePrefixWhitespace`||t[1].type===`blockQuoteMarker`||t[1].type===`listItemIndent`))break}c&&(!s||c<s)&&(o._spread=!0),o.end=Object.assign({},s?e[s][1].start:t[1].end),e.splice(s||r,0,[`exit`,o,t[2]]),r++,n++}if(t[1].type===`listItemPrefix`){let i={type:`listItem`,_spread:!1,start:Object.assign({},t[1].start),end:void 0};o=i,e.splice(r,0,[`enter`,i,t[2]]),r++,n++,c=void 0,l=!0}}}return e[t][1]._spread=a,n}function a(e,t){return n;function n(n){s.call(this,e(n),n),t&&t.call(this,n)}}function o(){this.stack.push({type:`fragment`,children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:nc(t.start),end:void 0}}function c(e){return t;function t(t){e&&e.call(this,t),l.call(this,t)}}function l(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||ac).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+Ei({start:e.start,end:e.end})+`): it’s not open`);n.position.end=nc(e.end)}function u(){return ca(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(e){if(this.data.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function p(){let e=this.resume(),t=this.stack[this.stack.length-1];t.lang=e}function m(){let e=this.resume(),t=this.stack[this.stack.length-1];t.meta=e}function h(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),this.data.flowCodeInside=void 0}function _(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,``)}function v(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=xa(this.sliceSerialize(e)).toLowerCase()}function y(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function b(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function x(e){let t=this.stack[this.stack.length-1];t.depth||=this.sliceSerialize(e).length}function S(){this.data.setextHeadingSlurpLineEnding=!0}function C(e){let t=this.stack[this.stack.length-1];t.depth=this.sliceSerialize(e).codePointAt(0)===61?1:2}function w(){this.data.setextHeadingSlurpLineEnding=void 0}function T(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];(!n||n.type!==`text`)&&(n=je(),n.position={start:nc(e.start),end:void 0},t.push(n)),this.stack.push(n)}function E(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=nc(e.end)}function ee(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){let t=n.children[n.children.length-1];t.position.end=nc(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(T.call(this,e),E.call(this,e))}function te(){this.data.atHardBreak=!0}function ne(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function re(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function ie(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function ae(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function oe(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function se(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=Zs(t),n.identifier=xa(t).toLowerCase()}function ce(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,n.type===`link`?n.children=e.children:n.alt=t}function le(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function ue(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function de(){this.data.inReference=void 0}function fe(){this.data.referenceType=`collapsed`}function pe(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=xa(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType=`full`}function me(e){this.data.characterReferenceType=e.type}function he(e){let t=this.sliceSerialize(e),n=this.data.characterReferenceType,r;n?(r=ba(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=pa(t);let i=this.stack[this.stack.length-1];i.value+=r}function ge(e){let t=this.stack.pop();t.position.end=nc(e.end)}function _e(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function ve(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=`mailto:`+this.sliceSerialize(e)}function ye(){return{type:`blockquote`,children:[]}}function be(){return{type:`code`,lang:null,meta:null,value:``}}function xe(){return{type:`inlineCode`,value:``}}function D(){return{type:`definition`,identifier:``,label:null,title:null,url:``}}function O(){return{type:`emphasis`,children:[]}}function Se(){return{type:`heading`,depth:0,children:[]}}function Ce(){return{type:`break`}}function we(){return{type:`html`,value:``}}function Te(){return{type:`image`,title:null,url:``,alt:null}}function Ee(){return{type:`link`,title:null,url:``,children:[]}}function De(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[]}}function Oe(e){return{type:`listItem`,spread:e._spread,checked:null,children:[]}}function ke(){return{type:`paragraph`,children:[]}}function Ae(){return{type:`strong`,children:[]}}function je(){return{type:`text`,value:``}}function Me(){return{type:`thematicBreak`}}}function nc(e){return{line:e.line,column:e.column,offset:e.offset}}function rc(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?rc(e,r):ic(e,r)}}function ic(e,t){let n;for(n in t)if($s.call(t,n))switch(n){case`canContainEols`:{let r=t[n];r&&e[n].push(...r);break}case`transforms`:{let r=t[n];r&&e[n].push(...r);break}case`enter`:case`exit`:{let r=t[n];r&&Object.assign(e[n],r);break}}}function ac(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+Ei({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Ei({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+Ei({start:t.start,end:t.end})+`) is still open`)}function oc(e){let t=this;t.parser=n;function n(n){return ec(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}function sc(e,t){let n={type:`element`,tagName:`blockquote`,properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function cc(e,t){let n={type:`element`,tagName:`br`,properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:`text`,value:`
@@ -288,6 +288,6 @@ l0,-`+(t+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
288
288
  `,inConstruct:`mathFlowMeta`},{character:`$`,after:t?void 0:`\\$`,inConstruct:`phrasing`},{character:`$`,inConstruct:`mathFlowMeta`},{atBreak:!0,character:`$`,after:`\\$`}],handlers:{math:n,inlineMath:r}};function n(e,t,n,r){let i=e.value||``,a=n.createTracker(r),o=`$`.repeat(Math.max(_v(i,`$`)+1,2)),s=n.enter(`mathFlow`),c=a.move(o);if(e.meta){let t=n.enter(`mathFlowMeta`);c+=a.move(n.safe(e.meta,{after:`
289
289
  `,before:c,encode:[`$`],...a.current()})),t()}return c+=a.move(`
290
290
  `),i&&(c+=a.move(i+`
291
- `)),c+=a.move(o),s(),c}function r(e,n,r){let i=e.value||``,a=1;for(t||a++;RegExp(`(^|[^$])`+`\\$`.repeat(a)+`([^$]|$)`).test(i);)a++;let o=`$`.repeat(a);/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^\$|\$$/.test(i))&&(i=` `+i+` `);let s=-1;for(;++s<r.unsafe.length;){let e=r.unsafe[s];if(!e.atBreak)continue;let t=r.compilePattern(e),n;for(;n=t.exec(i);){let e=n.index;i.codePointAt(e)===10&&i.codePointAt(e-1)===13&&e--,i=i.slice(0,e)+` `+i.slice(n.index+1)}}return o+i+o}function i(){return`$`}}var xb={tokenize:Cb,concrete:!0,name:`mathFlow`},Sb={tokenize:wb,partial:!0};function Cb(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){return e.enter(`mathFlow`),e.enter(`mathFlowFence`),e.enter(`mathFlowFenceSequence`),c(t)}function c(t){return t===36?(e.consume(t),o++,c):o<2?n(t):(e.exit(`mathFlowFenceSequence`),N(e,l,`whitespace`)(t))}function l(t){return t===null||j(t)?d(t):(e.enter(`mathFlowFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===null||j(t)?(e.exit(`chunkString`),e.exit(`mathFlowFenceMeta`),d(t)):t===36?n(t):(e.consume(t),u)}function d(n){return e.exit(`mathFlowFence`),r.interrupt?t(n):e.attempt(Sb,f,g)(n)}function f(t){return e.attempt({tokenize:_,partial:!0},g,p)(t)}function p(t){return(a?N(e,m,`linePrefix`,a+1):m)(t)}function m(t){return t===null?g(t):j(t)?e.attempt(Sb,f,g)(t):(e.enter(`mathFlowValue`),h(t))}function h(t){return t===null||j(t)?(e.exit(`mathFlowValue`),m(t)):(e.consume(t),h)}function g(n){return e.exit(`mathFlow`),t(n)}function _(e,t,n){let i=0;return N(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4);function a(t){return e.enter(`mathFlowFence`),e.enter(`mathFlowFenceSequence`),s(t)}function s(t){return t===36?(i++,e.consume(t),s):i<o?n(t):(e.exit(`mathFlowFenceSequence`),N(e,c,`whitespace`)(t))}function c(r){return r===null||j(r)?(e.exit(`mathFlowFence`),t(r)):n(r)}}}function wb(e,t,n){let r=this;return i;function i(n){return n===null?t(n):(e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function Tb(e){let t=(e||{}).singleDollarTextMath;return t??=!0,{tokenize:n,resolve:Eb,previous:Db,name:`mathText`};function n(e,n,r){let i=0,a,o;return s;function s(t){return e.enter(`mathText`),e.enter(`mathTextSequence`),c(t)}function c(n){return n===36?(e.consume(n),i++,c):i<2&&!t?r(n):(e.exit(`mathTextSequence`),l(n))}function l(t){return t===null?r(t):t===36?(o=e.enter(`mathTextSequence`),a=0,d(t)):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),l):j(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),l):(e.enter(`mathTextData`),u(t))}function u(t){return t===null||t===32||t===36||j(t)?(e.exit(`mathTextData`),l(t)):(e.consume(t),u)}function d(t){return t===36?(e.consume(t),a++,d):a===i?(e.exit(`mathTextSequence`),e.exit(`mathText`),n(t)):(o.type=`mathTextData`,u(t))}}}function Eb(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r<t;)if(e[r][1].type===`mathTextData`){e[t][1].type=`mathTextPadding`,e[n][1].type=`mathTextPadding`,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!==`lineEnding`&&(i=r):(r===t||e[r][1].type===`lineEnding`)&&(e[i][1].type=`mathTextData`,r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function Db(e){return e!==36||this.events[this.events.length-1][1].type===`characterEscape`}function Ob(e){return{flow:{36:xb},text:{36:Tb(e)}}}var kb={};function Ab(e){let t=this,n=e||kb,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(Ob(n)),a.push(yb()),o.push(bb(n))}var jb=400;function Mb({visible:e,onClick:t,copied:n}){return(0,O.jsx)(`button`,{type:`button`,onClick:t,title:n?`Copied!`:`Copy`,className:h(`flex h-6 w-6 cursor-pointer items-center justify-center rounded-md bg-stone-200/80 text-[var(--content-tertiary)] transition-[opacity] duration-150 ease-out hover:bg-stone-300 hover:text-[var(--content-secondary)] [@media(hover:none)]:pointer-events-auto [@media(hover:none)]:opacity-100 dark:bg-moss-600/80 dark:hover:bg-moss-500 dark:hover:text-stone-200`,e?`pointer-events-auto opacity-100`:`pointer-events-none opacity-0`),children:(0,O.jsxs)(`div`,{className:`relative h-3.5 w-3.5`,children:[(0,O.jsx)(v,{className:h(`absolute inset-0 h-3.5 w-3.5 text-[var(--system-positive-strong)] transition-opacity duration-150 ease-out`,n?`opacity-100`:`opacity-0`)}),(0,O.jsx)(xe,{className:h(`absolute inset-0 h-3.5 w-3.5 transition-opacity duration-150 ease-out`,n?`opacity-0`:`opacity-100`)})]})})}function Nb({children:e}){let[t,n]=(0,D.useState)(!1),[r,i]=(0,D.useState)(!1),[a,o]=(0,D.useState)(!1),s=(0,D.useRef)(null),c=(0,D.useRef)(null);(0,D.useEffect)(()=>()=>{s.current&&clearTimeout(s.current)},[]);let l=D.Children.toArray(e).find(e=>(0,D.isValidElement)(e)&&e.props.className?.startsWith(`language-`)),u=(0,D.isValidElement)(l)?l.props.className?.replace(`language-`,``):void 0,d=(0,D.useCallback)(()=>{let e=c.current?.textContent??``;navigator.clipboard.writeText(e).then(()=>{n(!0),s.current&&clearTimeout(s.current),s.current=setTimeout(()=>{n(!1),s.current=null},1500)}).catch(()=>{})},[]),f=r||a;return(0,O.jsxs)(`div`,{className:`group/code relative mb-2 overflow-hidden rounded-md bg-stone-100 last:mb-0 dark:bg-moss-800`,onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),onFocus:()=>o(!0),onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||o(!1)},children:[u&&(0,O.jsxs)(`div`,{className:`flex items-center justify-between px-3 pt-2`,children:[(0,O.jsx)(`span`,{className:`font-mono text-xs font-medium uppercase text-[var(--content-tertiary)]`,children:u}),(0,O.jsx)(Mb,{visible:f,onClick:d,copied:t})]}),(0,O.jsx)(`pre`,{ref:c,className:`overflow-x-auto p-3`,style:{maxHeight:jb,overflowY:`auto`},children:e}),!u&&(0,O.jsx)(`div`,{className:`absolute right-2 top-2`,children:(0,O.jsx)(Mb,{visible:f,onClick:d,copied:t})})]})}function Pb({href:e,children:t}){return(0,O.jsx)(`a`,{href:e,target:`_blank`,rel:`noopener noreferrer`,className:`text-forest-600 underline hover:text-forest-700 dark:text-forest-400 dark:hover:text-forest-300`,children:t})}var Fb=/\p{Emoji_Presentation}/u,Ib=/\p{Extended_Pictographic}/u,Lb=`️`,Rb=`︎`;function zb(e){return e.includes(Lb)?!0:e.includes(Rb)?!1:Fb.test(e)}var Bb=typeof Intl<`u`&&`Segmenter`in Intl?new Intl.Segmenter(void 0,{granularity:`grapheme`}):null;function Vb(e){if(!Ib.test(e)&&!e.includes(Lb)||!Bb)return e;let t=[],n=``,r=!1,i=0,a=()=>{n&&=(t.push(r?(0,O.jsx)(`span`,{style:{fontStyle:`normal`},children:n},i++):n),``)};for(let{segment:t}of Bb.segment(e)){let e=zb(t);n&&e!==r&&a(),r=e,n+=t}return a(),t.length===1&&typeof t[0]==`string`?t[0]:t}function Hb(e){return typeof e==`string`?Vb(e):D.Children.map(e,e=>typeof e==`string`?Vb(e):e)}function Ub(e){return{p:({children:e})=>(0,O.jsx)(`p`,{className:`mb-6 last:mb-0`,children:e}),h1:({children:e})=>(0,O.jsx)(`h1`,{className:`mb-2 mt-3 text-title-medium !font-bold first:mt-0`,children:e}),h2:({children:e})=>(0,O.jsx)(`h2`,{className:`mb-2 mt-3 text-title-small !font-bold first:mt-0`,children:e}),h3:({children:e})=>(0,O.jsx)(`h3`,{className:`mb-1 mt-2 text-body-medium-default !font-bold first:mt-0`,children:e}),ul:({children:e})=>(0,O.jsx)(`ul`,{className:`mb-2 list-disc pl-5 last:mb-0`,children:e}),ol:({children:e,start:t})=>(0,O.jsx)(`ol`,{start:t,className:`mb-2 list-decimal pl-5 last:mb-0`,children:e}),h4:({children:e})=>(0,O.jsx)(`h4`,{className:`mb-1 mt-2 text-body-medium-default !font-bold first:mt-0`,children:e}),h5:({children:e})=>(0,O.jsx)(`h5`,{className:`mb-1 mt-2 text-body-small-default !font-bold first:mt-0`,children:e}),h6:({children:e})=>(0,O.jsx)(`h6`,{className:`mb-1 mt-2 text-body-small-default !font-bold text-[var(--content-secondary)] first:mt-0`,children:e}),li:({children:e})=>(0,O.jsx)(`li`,{className:`mb-0.5`,children:e}),a:({href:t,children:n})=>(0,O.jsx)(e,{href:t,children:n}),code:({className:e,children:t,...n})=>e?.startsWith(`language-`)?(0,O.jsx)(`code`,{className:h(`block overflow-x-auto font-mono text-body-small-default`,e),...n,children:t}):(0,O.jsx)(`code`,{className:`rounded bg-stone-100 px-1 py-0.5 font-mono text-body-small-default dark:bg-moss-800`,children:t}),pre:({children:e})=>(0,O.jsx)(Nb,{children:e}),em:({children:e})=>(0,O.jsx)(`em`,{children:Hb(e)}),blockquote:({children:e})=>(0,O.jsx)(`blockquote`,{className:`mb-2 border-l-2 border-stone-300 pl-3 italic text-stone-600 last:mb-0 dark:border-stone-600 dark:text-stone-400`,children:e}),table:({children:e})=>(0,O.jsx)(`div`,{className:`mb-2 overflow-x-auto last:mb-0`,children:(0,O.jsx)(`table`,{className:`min-w-full border-collapse text-body-small-default`,children:e})}),thead:({children:e})=>(0,O.jsx)(`thead`,{className:`bg-[var(--surface-sunken)]`,children:e}),th:({children:e})=>(0,O.jsx)(`th`,{className:`border border-stone-200 px-2 py-1 text-left font-semibold [&_code]:whitespace-pre-wrap [&_code]:break-words [&_code]:box-decoration-clone [&_code]:leading-relaxed dark:border-moss-600`,children:e}),td:({children:e})=>(0,O.jsx)(`td`,{className:`border border-stone-200 px-2 py-1 [&_code]:whitespace-pre-wrap [&_code]:break-words [&_code]:box-decoration-clone [&_code]:leading-relaxed dark:border-moss-600`,children:e}),hr:()=>(0,O.jsx)(`hr`,{className:`my-3 border-[var(--border-subtle)]`}),img:({src:e,alt:t})=>{let n=typeof e==`string`?e:``,r=typeof t==`string`?t:``;return!n||n.startsWith(`/`)||n.startsWith(`data:`)||n.startsWith(`blob:`)||n.startsWith(`.`)?(0,O.jsx)(`img`,{src:n,alt:r,className:`my-1 max-w-full rounded`}):(0,O.jsxs)(`span`,{className:`inline-flex items-center gap-1 rounded bg-stone-100 px-1.5 py-0.5 text-body-small-default text-stone-500 dark:bg-moss-800 dark:text-stone-400`,children:[`🔗 External image not rendered (`,r||n,`)`]})}}}var Wb=/\$(\d[\d,]*(?:\.\d+)?(?:(?:bn|tn|trn|[KMBT])\+?)?)(?=$|[\s).,;:!?%"'’\]}/–—-]|&)/gi,Gb=Yl().use(oc).use(vb);function Kb(e){let t=Gb.parse(e),n=[],r=e=>{if(e.type===`text`){let t=e.position?.start.offset,r=e.position?.end.offset;typeof t==`number`&&typeof r==`number`&&n.push([t,r]);return}if(Array.isArray(e.children))for(let t of e.children)r(t)};return r(t),n}function qb(e,t,n){let r=``,i=0;for(let[a,o]of t)a<i||(r+=e.slice(i,a),r+=n(e.slice(a,o),a),i=o);return r+=e.slice(i),r}function Jb(e){if(!/\$\d/.test(e))return e;let t=Kb(e);return t.length===0?e:qb(e,t,(t,n)=>t.replace(Wb,(r,i,a)=>{let o=a>0?t[a-1]:n>0?e[n-1]:``;return o===`$`||o===`\\`?r:`\\$${i}`}))}function Yb(e){if(!e.includes(`
291
+ `)),c+=a.move(o),s(),c}function r(e,n,r){let i=e.value||``,a=1;for(t||a++;RegExp(`(^|[^$])`+`\\$`.repeat(a)+`([^$]|$)`).test(i);)a++;let o=`$`.repeat(a);/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^\$|\$$/.test(i))&&(i=` `+i+` `);let s=-1;for(;++s<r.unsafe.length;){let e=r.unsafe[s];if(!e.atBreak)continue;let t=r.compilePattern(e),n;for(;n=t.exec(i);){let e=n.index;i.codePointAt(e)===10&&i.codePointAt(e-1)===13&&e--,i=i.slice(0,e)+` `+i.slice(n.index+1)}}return o+i+o}function i(){return`$`}}var xb={tokenize:Cb,concrete:!0,name:`mathFlow`},Sb={tokenize:wb,partial:!0};function Cb(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){return e.enter(`mathFlow`),e.enter(`mathFlowFence`),e.enter(`mathFlowFenceSequence`),c(t)}function c(t){return t===36?(e.consume(t),o++,c):o<2?n(t):(e.exit(`mathFlowFenceSequence`),N(e,l,`whitespace`)(t))}function l(t){return t===null||j(t)?d(t):(e.enter(`mathFlowFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===null||j(t)?(e.exit(`chunkString`),e.exit(`mathFlowFenceMeta`),d(t)):t===36?n(t):(e.consume(t),u)}function d(n){return e.exit(`mathFlowFence`),r.interrupt?t(n):e.attempt(Sb,f,g)(n)}function f(t){return e.attempt({tokenize:_,partial:!0},g,p)(t)}function p(t){return(a?N(e,m,`linePrefix`,a+1):m)(t)}function m(t){return t===null?g(t):j(t)?e.attempt(Sb,f,g)(t):(e.enter(`mathFlowValue`),h(t))}function h(t){return t===null||j(t)?(e.exit(`mathFlowValue`),m(t)):(e.consume(t),h)}function g(n){return e.exit(`mathFlow`),t(n)}function _(e,t,n){let i=0;return N(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4);function a(t){return e.enter(`mathFlowFence`),e.enter(`mathFlowFenceSequence`),s(t)}function s(t){return t===36?(i++,e.consume(t),s):i<o?n(t):(e.exit(`mathFlowFenceSequence`),N(e,c,`whitespace`)(t))}function c(r){return r===null||j(r)?(e.exit(`mathFlowFence`),t(r)):n(r)}}}function wb(e,t,n){let r=this;return i;function i(n){return n===null?t(n):(e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function Tb(e){let t=(e||{}).singleDollarTextMath;return t??=!0,{tokenize:n,resolve:Eb,previous:Db,name:`mathText`};function n(e,n,r){let i=0,a,o;return s;function s(t){return e.enter(`mathText`),e.enter(`mathTextSequence`),c(t)}function c(n){return n===36?(e.consume(n),i++,c):i<2&&!t?r(n):(e.exit(`mathTextSequence`),l(n))}function l(t){return t===null?r(t):t===36?(o=e.enter(`mathTextSequence`),a=0,d(t)):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),l):j(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),l):(e.enter(`mathTextData`),u(t))}function u(t){return t===null||t===32||t===36||j(t)?(e.exit(`mathTextData`),l(t)):(e.consume(t),u)}function d(t){return t===36?(e.consume(t),a++,d):a===i?(e.exit(`mathTextSequence`),e.exit(`mathText`),n(t)):(o.type=`mathTextData`,u(t))}}}function Eb(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r<t;)if(e[r][1].type===`mathTextData`){e[t][1].type=`mathTextPadding`,e[n][1].type=`mathTextPadding`,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!==`lineEnding`&&(i=r):(r===t||e[r][1].type===`lineEnding`)&&(e[i][1].type=`mathTextData`,r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function Db(e){return e!==36||this.events[this.events.length-1][1].type===`characterEscape`}function Ob(e){return{flow:{36:xb},text:{36:Tb(e)}}}var kb={};function Ab(e){let t=this,n=e||kb,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(Ob(n)),a.push(yb()),o.push(bb(n))}var jb=400;function Mb({visible:e,onClick:t,copied:n}){return(0,O.jsx)(`button`,{type:`button`,onClick:t,title:n?`Copied!`:`Copy`,className:h(`flex h-6 w-6 cursor-pointer items-center justify-center rounded-md bg-stone-200/80 text-[var(--content-tertiary)] transition-[opacity] duration-150 ease-out hover:bg-stone-300 hover:text-[var(--content-secondary)] [@media(hover:none)]:pointer-events-auto [@media(hover:none)]:opacity-100 dark:bg-moss-600/80 dark:hover:bg-moss-500 dark:hover:text-stone-200`,e?`pointer-events-auto opacity-100`:`pointer-events-none opacity-0`),children:(0,O.jsxs)(`div`,{className:`relative h-3.5 w-3.5`,children:[(0,O.jsx)(v,{className:h(`absolute inset-0 h-3.5 w-3.5 text-[var(--system-positive-strong)] transition-opacity duration-150 ease-out`,n?`opacity-100`:`opacity-0`)}),(0,O.jsx)(xe,{className:h(`absolute inset-0 h-3.5 w-3.5 transition-opacity duration-150 ease-out`,n?`opacity-0`:`opacity-100`)})]})})}function Nb({children:e}){let[t,n]=(0,D.useState)(!1),[r,i]=(0,D.useState)(!1),[a,o]=(0,D.useState)(!1),s=(0,D.useRef)(null),c=(0,D.useRef)(null);(0,D.useEffect)(()=>()=>{s.current&&clearTimeout(s.current)},[]);let l=D.Children.toArray(e).find(e=>(0,D.isValidElement)(e)&&e.props.className?.startsWith(`language-`)),u=(0,D.isValidElement)(l)?l.props.className?.replace(`language-`,``):void 0,d=(0,D.useCallback)(()=>{let e=c.current?.textContent??``;navigator.clipboard.writeText(e).then(()=>{n(!0),s.current&&clearTimeout(s.current),s.current=setTimeout(()=>{n(!1),s.current=null},1500)}).catch(()=>{})},[]),f=r||a;return(0,O.jsxs)(`div`,{className:`group/code relative mb-2 overflow-hidden rounded-md bg-stone-100 last:mb-0 dark:bg-moss-800`,onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),onFocus:()=>o(!0),onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||o(!1)},children:[u&&(0,O.jsxs)(`div`,{className:`flex items-center justify-between px-3 pt-2`,children:[(0,O.jsx)(`span`,{className:`font-mono text-xs font-medium uppercase text-[var(--content-tertiary)]`,children:u}),(0,O.jsx)(Mb,{visible:f,onClick:d,copied:t})]}),(0,O.jsx)(`pre`,{ref:c,className:`overflow-x-auto p-3`,style:{maxHeight:jb,overflowY:`auto`},children:e}),!u&&(0,O.jsx)(`div`,{className:`absolute right-2 top-2`,children:(0,O.jsx)(Mb,{visible:f,onClick:d,copied:t})})]})}function Pb({href:e,children:t}){return(0,O.jsx)(`a`,{href:e,target:`_blank`,rel:`noopener noreferrer`,className:`text-forest-600 underline hover:text-forest-700 dark:text-forest-400 dark:hover:text-forest-300`,children:t})}var Fb=/\p{Emoji_Presentation}/u,Ib=/\p{Extended_Pictographic}/u,Lb=`️`,Rb=`︎`;function zb(e){return e.includes(Lb)?!0:e.includes(Rb)?!1:Fb.test(e)}var Bb=typeof Intl<`u`&&`Segmenter`in Intl?new Intl.Segmenter(void 0,{granularity:`grapheme`}):null;function Vb(e){if(!Ib.test(e)&&!e.includes(Lb)||!Bb)return e;let t=[],n=``,r=!1,i=0,a=()=>{n&&=(t.push(r?(0,O.jsx)(`span`,{style:{fontStyle:`normal`},children:n},i++):n),``)};for(let{segment:t}of Bb.segment(e)){let e=zb(t);n&&e!==r&&a(),r=e,n+=t}return a(),t.length===1&&typeof t[0]==`string`?t[0]:t}function Hb(e){return typeof e==`string`?Vb(e):D.Children.map(e,e=>typeof e==`string`?Vb(e):e)}function Ub(e){return{p:({children:e})=>(0,O.jsx)(`p`,{className:`mb-6 last:mb-0`,children:e}),h1:({children:e})=>(0,O.jsx)(`h1`,{className:`mb-2 mt-3 text-title-medium !font-bold first:mt-0`,children:e}),h2:({children:e})=>(0,O.jsx)(`h2`,{className:`mb-2 mt-3 text-title-small !font-bold first:mt-0`,children:e}),h3:({children:e})=>(0,O.jsx)(`h3`,{className:`mb-1 mt-2 text-body-medium-default !font-bold first:mt-0`,children:e}),ul:({children:e})=>(0,O.jsx)(`ul`,{className:`mb-2 list-disc pl-5 last:mb-0`,children:e}),ol:({children:e,start:t})=>(0,O.jsx)(`ol`,{start:t,className:`mb-2 list-decimal pl-5 last:mb-0`,children:e}),h4:({children:e})=>(0,O.jsx)(`h4`,{className:`mb-1 mt-2 text-body-medium-default !font-bold first:mt-0`,children:e}),h5:({children:e})=>(0,O.jsx)(`h5`,{className:`mb-1 mt-2 text-body-small-default !font-bold first:mt-0`,children:e}),h6:({children:e})=>(0,O.jsx)(`h6`,{className:`mb-1 mt-2 text-body-small-default !font-bold text-[var(--content-secondary)] first:mt-0`,children:e}),li:({children:e,value:t})=>(0,O.jsx)(`li`,{value:t,className:`mb-0.5`,children:e}),a:({href:t,children:n})=>(0,O.jsx)(e,{href:t,children:n}),code:({className:e,children:t,...n})=>e?.startsWith(`language-`)?(0,O.jsx)(`code`,{className:h(`block overflow-x-auto font-mono text-body-small-default`,e),...n,children:t}):(0,O.jsx)(`code`,{className:`rounded bg-stone-100 px-1 py-0.5 font-mono text-body-small-default dark:bg-moss-800`,children:t}),pre:({children:e})=>(0,O.jsx)(Nb,{children:e}),em:({children:e})=>(0,O.jsx)(`em`,{children:Hb(e)}),blockquote:({children:e})=>(0,O.jsx)(`blockquote`,{className:`mb-2 border-l-2 border-stone-300 pl-3 italic text-stone-600 last:mb-0 dark:border-stone-600 dark:text-stone-400`,children:e}),table:({children:e})=>(0,O.jsx)(`div`,{className:`mb-2 overflow-x-auto last:mb-0`,children:(0,O.jsx)(`table`,{className:`min-w-full border-collapse text-body-small-default`,children:e})}),thead:({children:e})=>(0,O.jsx)(`thead`,{className:`bg-[var(--surface-sunken)]`,children:e}),th:({children:e})=>(0,O.jsx)(`th`,{className:`border border-stone-200 px-2 py-1 text-left font-semibold [&_code]:whitespace-pre-wrap [&_code]:break-words [&_code]:box-decoration-clone [&_code]:leading-relaxed dark:border-moss-600`,children:e}),td:({children:e})=>(0,O.jsx)(`td`,{className:`border border-stone-200 px-2 py-1 [&_code]:whitespace-pre-wrap [&_code]:break-words [&_code]:box-decoration-clone [&_code]:leading-relaxed dark:border-moss-600`,children:e}),hr:()=>(0,O.jsx)(`hr`,{className:`my-3 border-[var(--border-subtle)]`}),img:({src:e,alt:t})=>{let n=typeof e==`string`?e:``,r=typeof t==`string`?t:``;return!n||n.startsWith(`/`)||n.startsWith(`data:`)||n.startsWith(`blob:`)||n.startsWith(`.`)?(0,O.jsx)(`img`,{src:n,alt:r,className:`my-1 max-w-full rounded`}):(0,O.jsxs)(`span`,{className:`inline-flex items-center gap-1 rounded bg-stone-100 px-1.5 py-0.5 text-body-small-default text-stone-500 dark:bg-moss-800 dark:text-stone-400`,children:[`🔗 External image not rendered (`,r||n,`)`]})}}}var Wb=/\$(\d[\d,]*(?:\.\d+)?(?:(?:bn|tn|trn|[KMBT])\+?)?)(?=$|[\s).,;:!?%"'’\]}/–—-]|&)/gi,Gb=Yl().use(oc).use(vb);function Kb(e){let t=Gb.parse(e),n=[],r=e=>{if(e.type===`text`){let t=e.position?.start.offset,r=e.position?.end.offset;typeof t==`number`&&typeof r==`number`&&n.push([t,r]);return}if(Array.isArray(e.children))for(let t of e.children)r(t)};return r(t),n}function qb(e,t,n){let r=``,i=0;for(let[a,o]of t)a<i||(r+=e.slice(i,a),r+=n(e.slice(a,o),a),i=o);return r+=e.slice(i),r}function Jb(e){if(!/\$\d/.test(e))return e;let t=Kb(e);return t.length===0?e:qb(e,t,(t,n)=>t.replace(Wb,(r,i,a)=>{let o=a>0?t[a-1]:n>0?e[n-1]:``;return o===`$`||o===`\\`?r:`\\$${i}`}))}function Yb(e){if(!e.includes(`
292
292
  `))return e;let t=Kb(e);return t.length===0?e:qb(e,t,e=>e.replace(/\n/g,`
293
- `))}function Xb({content:e,className:t,hardLineBreaks:n,linkComponent:r}){let i=(0,D.useMemo)(()=>{let t=Jb(e);return n?Yb(t):t},[e,n]),a=r??Pb,o=(0,D.useMemo)(()=>Ub(a),[a]);return(0,O.jsx)(`div`,{"data-slot":`markdown-message`,className:h(`text-chat text-[var(--content-default)]`,t),children:(0,O.jsx)(lu,{remarkPlugins:[vb,Ab],rehypePlugins:[v_],components:o,children:i})})}var Zb=(0,D.createContext)({collapsed:!1,contentCollapsed:!1,variant:`rail`});function Qb(){return(0,D.useContext)(Zb)}function $b(e){return e.variant===`rail`&&e.contentCollapsed}var ex=[`flex flex-col`,`bg-[var(--surface-overlay)]`,`text-[color:var(--content-default)]`,`border border-[var(--border-base)]`,`overflow-hidden`].join(` `),tx=[`w-[230px]`,`rounded-[12px]`,`pt-4 px-4 pb-2`].join(` `),nx=[`w-[48px]`,`rounded-[12px]`,`pt-4 px-2 pb-2`].join(` `),rx=[`rounded-[12px]`,`pt-4 px-4 pb-2`].join(` `),ix=[`w-full`,`rounded-none`,`p-4`].join(` `),ax=150,ox=`transition-[width,padding] duration-[150ms] ease-in-out`;function sx(e,t,n){return e===`overlay`?ix:h(t?nx:n?rx:tx,ox)}function cx({ariaLabel:e,collapsed:t=!1,variant:n=`rail`,width:r,onWidthChange:i,minWidth:a=220,maxWidth:o=400,className:s,children:c,ref:l,style:u,...d}){let f=n===`overlay`?!1:t,p=n===`rail`&&i!=null,m=p&&!f,[g,_]=(0,D.useState)(f);!f&&g&&_(!1),(0,D.useEffect)(()=>{if(!f)return;let e=setTimeout(()=>_(!0),ax);return()=>clearTimeout(e)},[f]);let v=(0,D.useRef)(null),y=(0,D.useCallback)(e=>{if(!i)return;e.preventDefault(),e.currentTarget.setPointerCapture(e.pointerId);let t=e.currentTarget.closest(`[data-slot="side-menu"]`);t&&(v.current={nav:t,startX:e.clientX,startWidth:t.getBoundingClientRect().width},t.style.transition=`none`,document.body.style.cursor=`col-resize`,document.body.style.userSelect=`none`)},[i]),b=(0,D.useCallback)(e=>{let t=v.current;if(!t)return;let n=e.clientX-t.startX,r=Math.min(o,Math.max(a,t.startWidth+n));t.nav.style.width=`${r}px`},[a,o]),x=(0,D.useCallback)(e=>{let t=v.current;if(!t)return;e.currentTarget.releasePointerCapture(e.pointerId),v.current=null,t.nav.style.transition=``,document.body.style.cursor=``,document.body.style.userSelect=``;let n=e.clientX-t.startX,r=Math.min(o,Math.max(a,t.startWidth+n));i?.(r)},[i,a,o]);(0,D.useEffect)(()=>()=>{v.current&&(v.current=null,document.body.style.cursor=``,document.body.style.userSelect=``)},[]);let S=p&&!f&&r!=null?{...u,width:r}:u;return(0,O.jsx)(Zb,{value:{collapsed:f,contentCollapsed:g,variant:n},children:(0,O.jsxs)(`nav`,{ref:l,"data-slot":`side-menu`,role:`navigation`,"aria-label":e,className:h(ex,m&&`relative`,sx(n,f,p),s),style:S,...d,children:[c,m?(0,O.jsx)(`div`,{role:`separator`,"aria-orientation":`vertical`,className:`absolute right-0 top-0 bottom-0 z-10 w-[6px] cursor-col-resize group/resize`,onPointerDown:y,onPointerMove:b,onPointerUp:x,onPointerCancel:x,children:(0,O.jsx)(`div`,{className:`pointer-events-none absolute right-0 top-2 bottom-2 w-[2px] rounded-full bg-[var(--content-tertiary)] opacity-0 transition-opacity group-hover/resize:opacity-100`})}):null]})})}function lx({className:e,children:t,ref:n,...r}){return(0,O.jsx)(`div`,{ref:n,"data-slot":`side-menu-header`,className:h(`flex flex-col gap-2`,e),...r,children:t})}function ux({className:e,children:t,ref:n,...r}){return(0,O.jsx)(`div`,{ref:n,"data-slot":`side-menu-body`,className:h(`flex flex-1 flex-col gap-3 overflow-y-auto overflow-x-hidden`,e),...r,children:t})}function dx({className:e,children:t,ref:n,...r}){return(0,O.jsx)(`div`,{ref:n,"data-slot":`side-menu-footer`,className:h(`mt-auto flex flex-col gap-2 pt-2`,e),...r,children:t})}function fx({className:e,ref:t,...n}){return(0,O.jsx)(`hr`,{ref:t,"data-slot":`side-menu-separator`,className:h(`my-1 h-px w-full border-0 bg-[var(--border-base)]`,e),...n})}function px({title:e,actions:t,className:n,children:r,ref:i,...a}){let o=$b(Qb());return(0,O.jsxs)(`div`,{ref:i,"data-slot":`side-menu-section`,className:h(`flex flex-col gap-2`,n),...a,children:[!o&&(e||t)?(0,O.jsxs)(`div`,{className:`flex h-[21px] items-center justify-between`,children:[e?(0,O.jsx)(g,{variant:`body-small-default`,as:`span`,className:`text-[color:var(--content-tertiary)]`,children:e}):(0,O.jsx)(`span`,{}),t?(0,O.jsx)(`div`,{className:`flex items-center gap-[4px]`,children:t}):null]}):null,r]})}function mx({className:e,children:t,ref:n,...r}){return $b(Qb())?null:(0,O.jsx)(`ul`,{ref:n,"data-slot":`side-menu-sub-list`,className:h(`flex flex-col gap-[2px] list-none p-0 m-0`,e),...r,children:t})}function hx({icon:e,indent:t,active:n,collapsed:r}){return t?(0,O.jsx)(`span`,{"aria-hidden":!0,className:`inline-block h-[14px] w-[14px] shrink-0`}):e?typeof e==`string`?(0,O.jsx)(`span`,{"aria-hidden":!0,className:h(`inline-flex h-[14px] w-[14px] shrink-0 items-center justify-center text-[14px] leading-none`,r?`mx-auto`:void 0),children:e}):(0,O.jsx)(e,{size:14,"aria-hidden":!0,className:h(`shrink-0`,n?`text-[color:var(--content-emphasised)]`:`text-[color:var(--content-secondary)]`,r?`mx-auto`:void 0)}):null}function gx({children:e}){return(0,O.jsx)(`span`,{className:h(`inline-flex items-center justify-center`,`px-[4px] py-[2px] rounded-[4px]`,`bg-[var(--surface-base)]`,`text-label-small-default`,`text-[color:var(--content-tertiary)]`),children:e})}function _x({icon:e,label:t,showCollapsedTooltip:n=!1,tooltip:r,badge:i,trailingIcon:a,trailingIconClassName:o,indent:s=!1,active:c=!1,emphasized:l=!1,size:d=`default`,onSelect:f,href:p,className:m,ref:g,..._}){let v=$b(Qb()),y=h(`group relative flex items-center`,`rounded-[6px]`,`outline-none keyboard-focus:ring-2 keyboard-focus:ring-[var(--ring)]`,`cursor-pointer select-none`,`transition-colors`,`gap-[8px] p-2`,v?`justify-center`:`justify-start`,d===`compact`?`text-body-small-default max-md:text-body-large-default`:`text-body-medium-lighter max-md:py-3 max-md:text-body-large-default`,l?`text-[color:var(--content-emphasised)]`:`text-[color:var(--content-secondary)]`,c?`bg-[var(--surface-active)] text-[color:var(--content-emphasised)]`:`hover:bg-[var(--surface-hover)]`,m),b=v?null:(0,O.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-left`,children:t}),x=v||!i?null:(0,O.jsx)(gx,{children:i}),S=v||!a?null:(0,O.jsx)(a,{size:14,"aria-hidden":!0,className:h(`shrink-0 text-[color:var(--content-tertiary)]`,o)}),C=(0,O.jsx)(hx,{icon:e,indent:s,active:c,collapsed:v}),w=r??(n?t:void 0),T=v&&w!=null,E=v&&!T?t:void 0,ee=c?`page`:void 0,te=e=>T?(0,O.jsx)(u,{content:w,side:`right`,children:e}):e;if(p){let{onClick:e,...t}=_;return te((0,O.jsxs)(`a`,{ref:g,"data-slot":`side-menu-item`,href:p,title:E,"aria-current":ee,className:y,onClick:t=>{e?.(t),t.defaultPrevented||f?.()},...t,children:[C,b,x,S]}))}let{onClick:ne,onKeyDown:re,...ie}=_;return te((0,O.jsxs)(`button`,{ref:g,"data-slot":`side-menu-item`,type:`button`,title:E,"aria-current":ee,className:y,onClick:e=>{ne?.(e),e.defaultPrevented||f?.()},onKeyDown:re,...ie,children:[C,b,x,S]}))}var vx=cx;vx.Header=lx,vx.Body=ux,vx.Footer=dx,vx.Section=px,vx.SubList=mx,vx.Item=_x,vx.Separator=fx;var yx=`Collapsible`,[bx,xx]=a(yx),[Sx,Cx]=bx(yx),wx=D.forwardRef((e,t)=>{let{__scopeCollapsible:n,open:r,defaultOpen:a,disabled:o,onOpenChange:s,...c}=e,[l,u]=d({prop:r,defaultProp:a??!1,onChange:s,caller:yx});return(0,O.jsx)(Sx,{scope:n,disabled:o,contentId:f(),open:l,onOpenToggle:D.useCallback(()=>u(e=>!e),[u]),children:(0,O.jsx)(i.div,{"data-state":Ax(l),"data-disabled":o?``:void 0,...c,ref:t})})});wx.displayName=yx;var Tx=`CollapsibleTrigger`,Ex=D.forwardRef((e,t)=>{let{__scopeCollapsible:n,...r}=e,a=Cx(Tx,n);return(0,O.jsx)(i.button,{type:`button`,"aria-controls":a.contentId,"aria-expanded":a.open||!1,"data-state":Ax(a.open),"data-disabled":a.disabled?``:void 0,disabled:a.disabled,...r,ref:t,onClick:ye(e.onClick,a.onOpenToggle)})});Ex.displayName=Tx;var Dx=`CollapsibleContent`,Ox=D.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=Cx(Dx,e.__scopeCollapsible);return(0,O.jsx)(be,{present:n||i.open,children:({present:e})=>(0,O.jsx)(kx,{...r,ref:t,present:e})})});Ox.displayName=Dx;var kx=D.forwardRef((e,t)=>{let{__scopeCollapsible:n,present:r,children:a,...o}=e,s=Cx(Dx,n),[l,u]=D.useState(r),d=D.useRef(null),f=m(t,d),p=D.useRef(0),h=p.current,g=D.useRef(0),_=g.current,v=s.open||l,y=D.useRef(v),b=D.useRef(void 0);return D.useEffect(()=>{let e=requestAnimationFrame(()=>y.current=!1);return()=>cancelAnimationFrame(e)},[]),c(()=>{let e=d.current;if(e){b.current=b.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration=`0s`,e.style.animationName=`none`;let t=e.getBoundingClientRect();p.current=t.height,g.current=t.width,y.current||(e.style.transitionDuration=b.current.transitionDuration,e.style.animationName=b.current.animationName),u(r)}},[s.open,r]),(0,O.jsx)(i.div,{"data-state":Ax(s.open),"data-disabled":s.disabled?``:void 0,id:s.contentId,hidden:!v,...o,ref:f,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":_?`${_}px`:void 0,...e.style},children:v&&a})});function Ax(e){return e?`open`:`closed`}var jx=wx,Mx=Ex,Nx=Ox,Px=`Accordion`,Fx=[`Home`,`End`,`ArrowDown`,`ArrowUp`,`ArrowLeft`,`ArrowRight`],[Ix,Lx,Rx]=C(Px),[zx,Bx]=a(Px,[Rx,xx]),Vx=xx(),Hx=D.forwardRef((e,t)=>{let{type:n,...r}=e,i=r,a=r;return(0,O.jsx)(Ix.Provider,{scope:e.__scopeAccordion,children:n===`multiple`?(0,O.jsx)(Jx,{...a,ref:t}):(0,O.jsx)(qx,{...i,ref:t})})});Hx.displayName=Px;var[Ux,Wx]=zx(Px),[Gx,Kx]=zx(Px,{collapsible:!1}),qx=D.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},collapsible:a=!1,...o}=e,[s,c]=d({prop:n,defaultProp:r??``,onChange:i,caller:Px});return(0,O.jsx)(Ux,{scope:e.__scopeAccordion,value:D.useMemo(()=>s?[s]:[],[s]),onItemOpen:c,onItemClose:D.useCallback(()=>a&&c(``),[a,c]),children:(0,O.jsx)(Gx,{scope:e.__scopeAccordion,collapsible:a,children:(0,O.jsx)(Zx,{...o,ref:t})})})}),Jx=D.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},...a}=e,[o,s]=d({prop:n,defaultProp:r??[],onChange:i,caller:Px}),c=D.useCallback(e=>s((t=[])=>[...t,e]),[s]),l=D.useCallback(e=>s((t=[])=>t.filter(t=>t!==e)),[s]);return(0,O.jsx)(Ux,{scope:e.__scopeAccordion,value:o,onItemOpen:c,onItemClose:l,children:(0,O.jsx)(Gx,{scope:e.__scopeAccordion,collapsible:!0,children:(0,O.jsx)(Zx,{...a,ref:t})})})}),[Yx,Xx]=zx(Px),Zx=D.forwardRef((e,t)=>{let{__scopeAccordion:n,disabled:r,dir:a,orientation:o=`vertical`,...s}=e,c=m(D.useRef(null),t),l=Lx(n),u=he(a)===`ltr`,d=ye(e.onKeyDown,e=>{if(!Fx.includes(e.key))return;let t=e.target,n=l().filter(e=>!e.ref.current?.disabled),r=n.findIndex(e=>e.ref.current===t),i=n.length;if(r===-1)return;e.preventDefault();let a=r,s=i-1,c=()=>{a=r+1,a>s&&(a=0)},d=()=>{a=r-1,a<0&&(a=s)};switch(e.key){case`Home`:a=0;break;case`End`:a=s;break;case`ArrowRight`:o===`horizontal`&&(u?c():d());break;case`ArrowDown`:o===`vertical`&&c();break;case`ArrowLeft`:o===`horizontal`&&(u?d():c());break;case`ArrowUp`:o===`vertical`&&d();break}n[a%i].ref.current?.focus()});return(0,O.jsx)(Yx,{scope:n,disabled:r,direction:a,orientation:o,children:(0,O.jsx)(Ix.Slot,{scope:n,children:(0,O.jsx)(i.div,{...s,"data-orientation":o,ref:c,onKeyDown:r?void 0:d})})})}),Qx=`AccordionItem`,[$x,eS]=zx(Qx),tS=D.forwardRef((e,t)=>{let{__scopeAccordion:n,value:r,...i}=e,a=Xx(Qx,n),o=Wx(Qx,n),s=Vx(n),c=f(),l=r&&o.value.includes(r)||!1,u=a.disabled||e.disabled;return(0,O.jsx)($x,{scope:n,open:l,disabled:u,triggerId:c,children:(0,O.jsx)(jx,{"data-orientation":a.orientation,"data-state":cS(l),...s,...i,ref:t,disabled:u,open:l,onOpenChange:e=>{e?o.onItemOpen(r):o.onItemClose(r)}})})});tS.displayName=Qx;var nS=`AccordionHeader`,rS=D.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,a=Xx(Px,n),o=eS(nS,n);return(0,O.jsx)(i.h3,{"data-orientation":a.orientation,"data-state":cS(o.open),"data-disabled":o.disabled?``:void 0,...r,ref:t})});rS.displayName=nS;var iS=`AccordionTrigger`,aS=D.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=Xx(Px,n),a=eS(iS,n),o=Kx(iS,n),s=Vx(n);return(0,O.jsx)(Ix.ItemSlot,{scope:n,children:(0,O.jsx)(Mx,{"aria-disabled":a.open&&!o.collapsible||void 0,"data-orientation":i.orientation,id:a.triggerId,...s,...r,ref:t})})});aS.displayName=iS;var oS=`AccordionContent`,sS=D.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=Xx(Px,n),a=eS(oS,n),o=Vx(n);return(0,O.jsx)(Nx,{role:`region`,"aria-labelledby":a.triggerId,"data-orientation":i.orientation,...o,...r,ref:t,style:{"--radix-accordion-content-height":`var(--radix-collapsible-content-height)`,"--radix-accordion-content-width":`var(--radix-collapsible-content-width)`,...e.style}})});sS.displayName=oS;function cS(e){return e?`open`:`closed`}var lS=Hx,uS=tS,dS=rS,fS=aS,pS=sS;function mS({className:e,ref:t,...n}){return(0,O.jsx)(lS,{ref:t,"data-slot":`collapsible`,className:h(`flex w-full flex-col`,e),...n})}function hS({className:e,ref:t,...n}){return(0,O.jsx)(uS,{ref:t,"data-slot":`collapsible-item`,className:h(`flex flex-col`,e),...n})}function gS({className:e,ref:t,...n}){return(0,O.jsx)(dS,{"data-slot":`collapsible-header`,className:`flex`,children:(0,O.jsx)(fS,{ref:t,"data-slot":`collapsible-trigger`,className:h(`flex min-w-0 flex-1 items-center`,`cursor-pointer select-none`,`outline-none keyboard-focus:ring-2 keyboard-focus:ring-[var(--ring)]`,e),...n})})}function _S({className:e,ref:t,children:n,...r}){return(0,O.jsx)(pS,{ref:t,"data-slot":`collapsible-content`,className:h(`collapsible-content overflow-hidden`,e),...r,children:n})}var vS={Root:mS,Item:hS,Trigger:gS,Content:_S},yS=!1;function bS(){yS||typeof document>`u`||(yS=!0,document.documentElement.dataset.modality=`keyboard`,document.addEventListener(`pointerdown`,()=>{document.documentElement.dataset.modality=`pointer`},!0),document.addEventListener(`keydown`,e=>{(e.key===`Tab`||e.key===`ArrowUp`||e.key===`ArrowDown`||e.key===`ArrowLeft`||e.key===`ArrowRight`)&&(document.documentElement.dataset.modality=`keyboard`)},!0))}export{Dr as a,$e as c,Xb as i,Qe as l,vS as n,gn as o,vx as r,Ct as s,bS as t,we as u};
293
+ `))}var Xb=/^\s{0,3}(\d{1,9})[.)]/;function Zb(){return(e,t)=>{let n=String(t),r=e=>{if(e.type===`list`&&e.ordered&&Array.isArray(e.children)){let t=e.start??1;for(let r of e.children){let e=r,i=e.position?.start.offset,a=t;if(typeof i==`number`){let e=Xb.exec(n.slice(i,i+16));e&&(a=Number(e[1]))}a!==t&&(e.data??={},e.data.hProperties??={},e.data.hProperties.value=a),t=a+1}}if(Array.isArray(e.children))for(let t of e.children)r(t)};r(e)}}function Qb({content:e,className:t,hardLineBreaks:n,linkComponent:r,urlTransform:i}){let a=(0,D.useMemo)(()=>{let t=Jb(e);return n?Yb(t):t},[e,n]),o=r??Pb,s=(0,D.useMemo)(()=>Ub(o),[o]);return(0,O.jsx)(`div`,{"data-slot":`markdown-message`,className:h(`text-chat text-[var(--content-default)]`,t),children:(0,O.jsx)(lu,{remarkPlugins:[vb,Ab,Zb],rehypePlugins:[v_],components:s,urlTransform:i,children:a})})}var $b=(0,D.createContext)({collapsed:!1,contentCollapsed:!1,variant:`rail`});function ex(){return(0,D.useContext)($b)}function tx(e){return e.variant===`rail`&&e.contentCollapsed}var nx=[`flex flex-col`,`bg-[var(--surface-overlay)]`,`text-[color:var(--content-default)]`,`border border-[var(--border-base)]`,`overflow-hidden`].join(` `),rx=[`w-[230px]`,`rounded-[12px]`,`pt-4 px-4 pb-2`].join(` `),ix=[`w-[48px]`,`rounded-[12px]`,`pt-4 px-2 pb-2`].join(` `),ax=[`rounded-[12px]`,`pt-4 px-4 pb-2`].join(` `),ox=[`w-full`,`rounded-none`,`p-4`].join(` `),sx=150,cx=`transition-[width,padding] duration-[150ms] ease-in-out`;function lx(e,t,n){return e===`overlay`?ox:h(t?ix:n?ax:rx,cx)}function ux({ariaLabel:e,collapsed:t=!1,variant:n=`rail`,width:r,onWidthChange:i,minWidth:a=220,maxWidth:o=400,className:s,children:c,ref:l,style:u,...d}){let f=n===`overlay`?!1:t,p=n===`rail`&&i!=null,m=p&&!f,[g,_]=(0,D.useState)(f);!f&&g&&_(!1),(0,D.useEffect)(()=>{if(!f)return;let e=setTimeout(()=>_(!0),sx);return()=>clearTimeout(e)},[f]);let v=(0,D.useRef)(null),y=(0,D.useCallback)(e=>{if(!i)return;e.preventDefault(),e.currentTarget.setPointerCapture(e.pointerId);let t=e.currentTarget.closest(`[data-slot="side-menu"]`);t&&(v.current={nav:t,startX:e.clientX,startWidth:t.getBoundingClientRect().width},t.style.transition=`none`,document.body.style.cursor=`col-resize`,document.body.style.userSelect=`none`)},[i]),b=(0,D.useCallback)(e=>{let t=v.current;if(!t)return;let n=e.clientX-t.startX,r=Math.min(o,Math.max(a,t.startWidth+n));t.nav.style.width=`${r}px`},[a,o]),x=(0,D.useCallback)(e=>{let t=v.current;if(!t)return;e.currentTarget.releasePointerCapture(e.pointerId),v.current=null,t.nav.style.transition=``,document.body.style.cursor=``,document.body.style.userSelect=``;let n=e.clientX-t.startX,r=Math.min(o,Math.max(a,t.startWidth+n));i?.(r)},[i,a,o]);(0,D.useEffect)(()=>()=>{v.current&&(v.current=null,document.body.style.cursor=``,document.body.style.userSelect=``)},[]);let S=p&&!f&&r!=null?{...u,width:r}:u;return(0,O.jsx)($b,{value:{collapsed:f,contentCollapsed:g,variant:n},children:(0,O.jsxs)(`nav`,{ref:l,"data-slot":`side-menu`,role:`navigation`,"aria-label":e,className:h(nx,m&&`relative`,lx(n,f,p),s),style:S,...d,children:[c,m?(0,O.jsx)(`div`,{role:`separator`,"aria-orientation":`vertical`,className:`absolute right-0 top-0 bottom-0 z-10 w-[6px] cursor-col-resize group/resize`,onPointerDown:y,onPointerMove:b,onPointerUp:x,onPointerCancel:x,children:(0,O.jsx)(`div`,{className:`pointer-events-none absolute right-0 top-2 bottom-2 w-[2px] rounded-full bg-[var(--content-tertiary)] opacity-0 transition-opacity group-hover/resize:opacity-100`})}):null]})})}function dx({className:e,children:t,ref:n,...r}){return(0,O.jsx)(`div`,{ref:n,"data-slot":`side-menu-header`,className:h(`flex flex-col gap-2`,e),...r,children:t})}function fx({className:e,children:t,ref:n,...r}){return(0,O.jsx)(`div`,{ref:n,"data-slot":`side-menu-body`,className:h(`flex flex-1 flex-col gap-3 overflow-y-auto overflow-x-hidden`,e),...r,children:t})}function px({className:e,children:t,ref:n,...r}){return(0,O.jsx)(`div`,{ref:n,"data-slot":`side-menu-footer`,className:h(`mt-auto flex flex-col gap-2 pt-2`,e),...r,children:t})}function mx({className:e,ref:t,...n}){return(0,O.jsx)(`hr`,{ref:t,"data-slot":`side-menu-separator`,className:h(`my-1 h-px w-full border-0 bg-[var(--border-base)]`,e),...n})}function hx({title:e,actions:t,className:n,children:r,ref:i,...a}){let o=tx(ex());return(0,O.jsxs)(`div`,{ref:i,"data-slot":`side-menu-section`,className:h(`flex flex-col gap-2`,n),...a,children:[!o&&(e||t)?(0,O.jsxs)(`div`,{className:`flex h-[21px] items-center justify-between`,children:[e?(0,O.jsx)(g,{variant:`body-small-default`,as:`span`,className:`text-[color:var(--content-tertiary)]`,children:e}):(0,O.jsx)(`span`,{}),t?(0,O.jsx)(`div`,{className:`flex items-center gap-[4px]`,children:t}):null]}):null,r]})}function gx({className:e,children:t,ref:n,...r}){return tx(ex())?null:(0,O.jsx)(`ul`,{ref:n,"data-slot":`side-menu-sub-list`,className:h(`flex flex-col gap-[2px] list-none p-0 m-0`,e),...r,children:t})}function _x({icon:e,indent:t,active:n,collapsed:r}){return t?(0,O.jsx)(`span`,{"aria-hidden":!0,className:`inline-block h-[14px] w-[14px] shrink-0`}):e?typeof e==`string`?(0,O.jsx)(`span`,{"aria-hidden":!0,className:h(`inline-flex h-[14px] w-[14px] shrink-0 items-center justify-center text-[14px] leading-none`,r?`mx-auto`:void 0),children:e}):(0,O.jsx)(e,{size:14,"aria-hidden":!0,className:h(`shrink-0`,n?`text-[color:var(--content-emphasised)]`:`text-[color:var(--content-secondary)]`,r?`mx-auto`:void 0)}):null}function vx({children:e}){return(0,O.jsx)(`span`,{className:h(`inline-flex items-center justify-center`,`px-[4px] py-[2px] rounded-[4px]`,`bg-[var(--surface-base)]`,`text-label-small-default`,`text-[color:var(--content-tertiary)]`),children:e})}function yx({icon:e,label:t,showCollapsedTooltip:n=!1,tooltip:r,badge:i,trailingIcon:a,trailingIconClassName:o,indent:s=!1,active:c=!1,emphasized:l=!1,size:d=`default`,onSelect:f,href:p,className:m,ref:g,..._}){let v=tx(ex()),y=h(`group relative flex items-center`,`rounded-[6px]`,`outline-none keyboard-focus:ring-2 keyboard-focus:ring-[var(--ring)]`,`cursor-pointer select-none`,`transition-colors`,`gap-[8px] p-2`,v?`justify-center`:`justify-start`,d===`compact`?`text-body-small-default max-md:text-body-large-default`:`text-body-medium-lighter max-md:py-3 max-md:text-body-large-default`,l?`text-[color:var(--content-emphasised)]`:`text-[color:var(--content-secondary)]`,c?`bg-[var(--surface-active)] text-[color:var(--content-emphasised)]`:`hover:bg-[var(--surface-hover)]`,m),b=v?null:(0,O.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-left`,children:t}),x=v||!i?null:(0,O.jsx)(vx,{children:i}),S=v||!a?null:(0,O.jsx)(a,{size:14,"aria-hidden":!0,className:h(`shrink-0 text-[color:var(--content-tertiary)]`,o)}),C=(0,O.jsx)(_x,{icon:e,indent:s,active:c,collapsed:v}),w=r??(n?t:void 0),T=v&&w!=null,E=v&&!T?t:void 0,ee=c?`page`:void 0,te=e=>T?(0,O.jsx)(u,{content:w,side:`right`,children:e}):e;if(p){let{onClick:e,...t}=_;return te((0,O.jsxs)(`a`,{ref:g,"data-slot":`side-menu-item`,href:p,title:E,"aria-current":ee,className:y,onClick:t=>{e?.(t),t.defaultPrevented||f?.()},...t,children:[C,b,x,S]}))}let{onClick:ne,onKeyDown:re,...ie}=_;return te((0,O.jsxs)(`button`,{ref:g,"data-slot":`side-menu-item`,type:`button`,title:E,"aria-current":ee,className:y,onClick:e=>{ne?.(e),e.defaultPrevented||f?.()},onKeyDown:re,...ie,children:[C,b,x,S]}))}var bx=ux;bx.Header=dx,bx.Body=fx,bx.Footer=px,bx.Section=hx,bx.SubList=gx,bx.Item=yx,bx.Separator=mx;var xx=`Collapsible`,[Sx,Cx]=a(xx),[wx,Tx]=Sx(xx),Ex=D.forwardRef((e,t)=>{let{__scopeCollapsible:n,open:r,defaultOpen:a,disabled:o,onOpenChange:s,...c}=e,[l,u]=d({prop:r,defaultProp:a??!1,onChange:s,caller:xx});return(0,O.jsx)(wx,{scope:n,disabled:o,contentId:f(),open:l,onOpenToggle:D.useCallback(()=>u(e=>!e),[u]),children:(0,O.jsx)(i.div,{"data-state":Mx(l),"data-disabled":o?``:void 0,...c,ref:t})})});Ex.displayName=xx;var Dx=`CollapsibleTrigger`,Ox=D.forwardRef((e,t)=>{let{__scopeCollapsible:n,...r}=e,a=Tx(Dx,n);return(0,O.jsx)(i.button,{type:`button`,"aria-controls":a.contentId,"aria-expanded":a.open||!1,"data-state":Mx(a.open),"data-disabled":a.disabled?``:void 0,disabled:a.disabled,...r,ref:t,onClick:ye(e.onClick,a.onOpenToggle)})});Ox.displayName=Dx;var kx=`CollapsibleContent`,Ax=D.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=Tx(kx,e.__scopeCollapsible);return(0,O.jsx)(be,{present:n||i.open,children:({present:e})=>(0,O.jsx)(jx,{...r,ref:t,present:e})})});Ax.displayName=kx;var jx=D.forwardRef((e,t)=>{let{__scopeCollapsible:n,present:r,children:a,...o}=e,s=Tx(kx,n),[l,u]=D.useState(r),d=D.useRef(null),f=m(t,d),p=D.useRef(0),h=p.current,g=D.useRef(0),_=g.current,v=s.open||l,y=D.useRef(v),b=D.useRef(void 0);return D.useEffect(()=>{let e=requestAnimationFrame(()=>y.current=!1);return()=>cancelAnimationFrame(e)},[]),c(()=>{let e=d.current;if(e){b.current=b.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration=`0s`,e.style.animationName=`none`;let t=e.getBoundingClientRect();p.current=t.height,g.current=t.width,y.current||(e.style.transitionDuration=b.current.transitionDuration,e.style.animationName=b.current.animationName),u(r)}},[s.open,r]),(0,O.jsx)(i.div,{"data-state":Mx(s.open),"data-disabled":s.disabled?``:void 0,id:s.contentId,hidden:!v,...o,ref:f,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":_?`${_}px`:void 0,...e.style},children:v&&a})});function Mx(e){return e?`open`:`closed`}var Nx=Ex,Px=Ox,Fx=Ax,Ix=`Accordion`,Lx=[`Home`,`End`,`ArrowDown`,`ArrowUp`,`ArrowLeft`,`ArrowRight`],[Rx,zx,Bx]=C(Ix),[Vx,Hx]=a(Ix,[Bx,Cx]),Ux=Cx(),Wx=D.forwardRef((e,t)=>{let{type:n,...r}=e,i=r,a=r;return(0,O.jsx)(Rx.Provider,{scope:e.__scopeAccordion,children:n===`multiple`?(0,O.jsx)(Xx,{...a,ref:t}):(0,O.jsx)(Yx,{...i,ref:t})})});Wx.displayName=Ix;var[Gx,Kx]=Vx(Ix),[qx,Jx]=Vx(Ix,{collapsible:!1}),Yx=D.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},collapsible:a=!1,...o}=e,[s,c]=d({prop:n,defaultProp:r??``,onChange:i,caller:Ix});return(0,O.jsx)(Gx,{scope:e.__scopeAccordion,value:D.useMemo(()=>s?[s]:[],[s]),onItemOpen:c,onItemClose:D.useCallback(()=>a&&c(``),[a,c]),children:(0,O.jsx)(qx,{scope:e.__scopeAccordion,collapsible:a,children:(0,O.jsx)($x,{...o,ref:t})})})}),Xx=D.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},...a}=e,[o,s]=d({prop:n,defaultProp:r??[],onChange:i,caller:Ix}),c=D.useCallback(e=>s((t=[])=>[...t,e]),[s]),l=D.useCallback(e=>s((t=[])=>t.filter(t=>t!==e)),[s]);return(0,O.jsx)(Gx,{scope:e.__scopeAccordion,value:o,onItemOpen:c,onItemClose:l,children:(0,O.jsx)(qx,{scope:e.__scopeAccordion,collapsible:!0,children:(0,O.jsx)($x,{...a,ref:t})})})}),[Zx,Qx]=Vx(Ix),$x=D.forwardRef((e,t)=>{let{__scopeAccordion:n,disabled:r,dir:a,orientation:o=`vertical`,...s}=e,c=m(D.useRef(null),t),l=zx(n),u=he(a)===`ltr`,d=ye(e.onKeyDown,e=>{if(!Lx.includes(e.key))return;let t=e.target,n=l().filter(e=>!e.ref.current?.disabled),r=n.findIndex(e=>e.ref.current===t),i=n.length;if(r===-1)return;e.preventDefault();let a=r,s=i-1,c=()=>{a=r+1,a>s&&(a=0)},d=()=>{a=r-1,a<0&&(a=s)};switch(e.key){case`Home`:a=0;break;case`End`:a=s;break;case`ArrowRight`:o===`horizontal`&&(u?c():d());break;case`ArrowDown`:o===`vertical`&&c();break;case`ArrowLeft`:o===`horizontal`&&(u?d():c());break;case`ArrowUp`:o===`vertical`&&d();break}n[a%i].ref.current?.focus()});return(0,O.jsx)(Zx,{scope:n,disabled:r,direction:a,orientation:o,children:(0,O.jsx)(Rx.Slot,{scope:n,children:(0,O.jsx)(i.div,{...s,"data-orientation":o,ref:c,onKeyDown:r?void 0:d})})})}),eS=`AccordionItem`,[tS,nS]=Vx(eS),rS=D.forwardRef((e,t)=>{let{__scopeAccordion:n,value:r,...i}=e,a=Qx(eS,n),o=Kx(eS,n),s=Ux(n),c=f(),l=r&&o.value.includes(r)||!1,u=a.disabled||e.disabled;return(0,O.jsx)(tS,{scope:n,open:l,disabled:u,triggerId:c,children:(0,O.jsx)(Nx,{"data-orientation":a.orientation,"data-state":uS(l),...s,...i,ref:t,disabled:u,open:l,onOpenChange:e=>{e?o.onItemOpen(r):o.onItemClose(r)}})})});rS.displayName=eS;var iS=`AccordionHeader`,aS=D.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,a=Qx(Ix,n),o=nS(iS,n);return(0,O.jsx)(i.h3,{"data-orientation":a.orientation,"data-state":uS(o.open),"data-disabled":o.disabled?``:void 0,...r,ref:t})});aS.displayName=iS;var oS=`AccordionTrigger`,sS=D.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=Qx(Ix,n),a=nS(oS,n),o=Jx(oS,n),s=Ux(n);return(0,O.jsx)(Rx.ItemSlot,{scope:n,children:(0,O.jsx)(Px,{"aria-disabled":a.open&&!o.collapsible||void 0,"data-orientation":i.orientation,id:a.triggerId,...s,...r,ref:t})})});sS.displayName=oS;var cS=`AccordionContent`,lS=D.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=Qx(Ix,n),a=nS(cS,n),o=Ux(n);return(0,O.jsx)(Fx,{role:`region`,"aria-labelledby":a.triggerId,"data-orientation":i.orientation,...o,...r,ref:t,style:{"--radix-accordion-content-height":`var(--radix-collapsible-content-height)`,"--radix-accordion-content-width":`var(--radix-collapsible-content-width)`,...e.style}})});lS.displayName=cS;function uS(e){return e?`open`:`closed`}var dS=Wx,fS=rS,pS=aS,mS=sS,hS=lS;function gS({className:e,ref:t,...n}){return(0,O.jsx)(dS,{ref:t,"data-slot":`collapsible`,className:h(`flex w-full flex-col`,e),...n})}function _S({className:e,ref:t,...n}){return(0,O.jsx)(fS,{ref:t,"data-slot":`collapsible-item`,className:h(`flex flex-col`,e),...n})}function vS({className:e,ref:t,...n}){return(0,O.jsx)(pS,{"data-slot":`collapsible-header`,className:`flex`,children:(0,O.jsx)(mS,{ref:t,"data-slot":`collapsible-trigger`,className:h(`flex min-w-0 flex-1 items-center`,`cursor-pointer select-none`,`outline-none keyboard-focus:ring-2 keyboard-focus:ring-[var(--ring)]`,e),...n})})}function yS({className:e,ref:t,children:n,...r}){return(0,O.jsx)(hS,{ref:t,"data-slot":`collapsible-content`,className:h(`collapsible-content overflow-hidden`,e),...r,children:n})}var bS={Root:gS,Item:_S,Trigger:vS,Content:yS},xS=!1;function SS(){xS||typeof document>`u`||(xS=!0,document.documentElement.dataset.modality=`keyboard`,document.addEventListener(`pointerdown`,()=>{document.documentElement.dataset.modality=`pointer`},!0),document.addEventListener(`keydown`,e=>{(e.key===`Tab`||e.key===`ArrowUp`||e.key===`ArrowDown`||e.key===`ArrowLeft`||e.key===`ArrowRight`)&&(document.documentElement.dataset.modality=`keyboard`)},!0))}export{Dr as a,$e as c,Qb as i,Qe as l,bS as n,gn as o,bx as r,Ct as s,SS as t,we as u};
@@ -1 +1 @@
1
- import{t as e}from"./jsx-runtime-CVSDxk6A.js";import{a as t}from"./prefs-Mrqh1A7Y.js";import{Wr as n}from"./index-BiN-6kWM.js";var r=`onboarding_v3_2026_05`,i=`onboarding.funnelSessionId`,a=`onboarding.funnelVariant`,o={control:`control`,paredDown:`pared_down`};function s(e){return e===`variant-a`?o.paredDown:o.control}var c={privacyTos:{stepName:`privacy_tos`,stepIndex:0},nameVibe:{stepName:`name_vibe`,stepIndex:1},controlWorkType:{stepName:`work_type`,stepIndex:2},controlTools:{stepName:`tools`,stepIndex:3},controlPriorAssistants:{stepName:`prior_assistants`,stepIndex:4},controlGmailConnect:{stepName:`gmail_connect`,stepIndex:5},controlGetApp:{stepName:`get_app`,stepIndex:6},gmailConnect:{stepName:`gmail_connect`,stepIndex:2}};function l(e){return Object.fromEntries(Object.entries(e).filter(([,e])=>e!==void 0))}function u(){if(typeof window>`u`)return crypto.randomUUID();let e=``;try{e=sessionStorage.getItem(i)??``}catch{e=``}if(e)return e;let t=crypto.randomUUID();try{sessionStorage.setItem(i,t)}catch{}return t}function d(e){return e===o.control||e===o.paredDown}function f(){if(typeof window>`u`)return null;try{let e=sessionStorage.getItem(a);return d(e)?e:null}catch{return null}}function p(e){let t=f();if(t)return t;if(typeof window>`u`)return e;try{sessionStorage.setItem(a,e)}catch{}return e}function m(e,t={}){let n=Date.now(),i=t.variant??f()??o.control;return{type:`onboarding`,daemon_event_id:crypto.randomUUID(),recorded_at:n,screen:e.stepName,session_id:u(),step_name:e.stepName,step_index:e.stepIndex,completed_at:new Date(n).toISOString(),user_id:t.userId??null,funnel_version:r,ab_variant:i}}function h(e,r={}){if(typeof window>`u`||!t())return;let i=l(m(e,r)),a=JSON.stringify({device_id:n(),assistant_version:`web-dev`,events:[i]});fetch(`/v1/telemetry/ingest/`,{method:`POST`,headers:{"Content-Type":`application/json`},body:a,keepalive:!0}).catch(()=>{})}var g=e();function _({current:e,total:t}){return(0,g.jsx)(`div`,{className:`flex items-center gap-1.5`,role:`group`,"aria-label":`Step ${e+1} of ${t}`,children:Array.from({length:t},(t,n)=>(0,g.jsx)(`div`,{"aria-hidden":`true`,className:`h-[3px] w-8 rounded-full transition-colors ${n<=e?`bg-[var(--content-default)]`:`bg-[var(--content-default)] opacity-20`}`},n))})}export{u as a,p as c,h as i,c as n,s as o,o as r,f as s,_ as t};
1
+ import{t as e}from"./jsx-runtime-CVSDxk6A.js";import{a as t}from"./prefs-CYFTgRU_.js";import{In as n}from"./index-1kam3Nv0.js";var r=`onboarding_v3_2026_05`,i=`onboarding.funnelSessionId`,a=`onboarding.funnelVariant`,o={control:`control`,paredDown:`pared_down`};function s(e){return e===`variant-a`?o.paredDown:o.control}var c={privacyTos:{stepName:`privacy_tos`,stepIndex:0},nameVibe:{stepName:`name_vibe`,stepIndex:1},controlWorkType:{stepName:`work_type`,stepIndex:2},controlTools:{stepName:`tools`,stepIndex:3},controlPriorAssistants:{stepName:`prior_assistants`,stepIndex:4},controlGmailConnect:{stepName:`gmail_connect`,stepIndex:5},controlGetApp:{stepName:`get_app`,stepIndex:6},gmailConnect:{stepName:`gmail_connect`,stepIndex:2}};function l(e){return Object.fromEntries(Object.entries(e).filter(([,e])=>e!==void 0))}function u(){if(typeof window>`u`)return crypto.randomUUID();let e=``;try{e=sessionStorage.getItem(i)??``}catch{e=``}if(e)return e;let t=crypto.randomUUID();try{sessionStorage.setItem(i,t)}catch{}return t}function d(e){return e===o.control||e===o.paredDown}function f(){if(typeof window>`u`)return null;try{let e=sessionStorage.getItem(a);return d(e)?e:null}catch{return null}}function p(e){let t=f();if(t)return t;if(typeof window>`u`)return e;try{sessionStorage.setItem(a,e)}catch{}return e}function m(e,t={}){let n=Date.now(),i=t.variant??f()??o.control;return{type:`onboarding`,daemon_event_id:crypto.randomUUID(),recorded_at:n,screen:e.stepName,session_id:u(),step_name:e.stepName,step_index:e.stepIndex,completed_at:new Date(n).toISOString(),user_id:t.userId??null,funnel_version:r,ab_variant:i}}function h(e,r={}){if(typeof window>`u`||!t())return;let i=l(m(e,r)),a=JSON.stringify({device_id:n(),assistant_version:`web-dev`,events:[i]});fetch(`/v1/telemetry/ingest/`,{method:`POST`,headers:{"Content-Type":`application/json`},body:a,keepalive:!0}).catch(()=>{})}var g=e();function _({current:e,total:t,color:n}){return(0,g.jsx)(`div`,{className:`flex items-center gap-1.5`,role:`group`,"aria-label":`Step ${e+1} of ${t}`,children:Array.from({length:t},(t,r)=>(0,g.jsx)(`div`,{"aria-hidden":`true`,className:`h-[3px] w-8 rounded-full transition-colors`,style:n?{backgroundColor:n,opacity:r<=e?1:.3}:void 0,children:n?null:(0,g.jsx)(`div`,{className:`h-full w-full rounded-full bg-[var(--content-default)] ${r<=e?``:`opacity-20`}`})},r))})}export{u as a,p as c,h as i,c as n,s as o,o as r,f as s,_ as t};
@@ -0,0 +1,4 @@
1
+ import{o as e}from"./chunk-jRWAZmH_.js";import{t}from"./react-DJZBPgpf.js";import{t as n}from"./button-D7s2Q_uG.js";import{t as r}from"./jsx-runtime-CVSDxk6A.js";import{t as i}from"./typography-BscuIPxA.js";import"./src-BJj2O5XB.js";import{t as a}from"./arrow-left-CP-EhDNF.js";import{n as o,r as s,t as c}from"./metric-card-J-OmNSo1.js";import{W as l,s as u,y as d}from"./risk-badge-CJ2eBzL2.js";import{t as f}from"./brain-Bs6LnfHO.js";import{t as p}from"./chevron-right-CWG30kI8.js";import{t as m}from"./globe-atPvTfX9.js";import{t as h}from"./x-Cb3jFpZR.js";import{t as g}from"./misc-CBD9JJCY.js";import{a as _,i as v,r as y}from"./subagent-store-B6q-RyW8.js";import{A as b,B as x,C as S,D as C,E as w,F as T,H as E,I as D,Ir as O,L as k,M as A,N as j,O as M,P as N,R as P,S as F,T as I,V as L,Xi as R,ea as z,j as B,k as V,w as H,z as U}from"./index-1kam3Nv0.js";import{CodeBlock as W,ToolDetailBody as G}from"./tool-detail-panel-BV__QHqe.js";var K=e(t(),1),q=r();function J({status:e}){let t=v(e);return(0,q.jsx)(`span`,{className:`inline-flex h-[23px] shrink-0 items-center gap-1 rounded-[6px] px-2 text-body-small-emphasised`,style:{color:t,backgroundColor:`color-mix(in srgb, ${t} 15%, transparent)`},children:_(e)})}function Y(e,t){let n=e.steps[0];return`${t}-${e.label}-${n?T(n,t):``}`}function X(e){for(let t=e.steps.length-1;t>=0;t--){let n=e.steps[t];if(n.kind===`tool`&&n.status===`running`||n.kind===`web_search`&&n.title===`Searching the web`)return n}}function Z(e,t){return e&&e.kind===`tool`&&(e.activity||e.info)||t}function Q(e){for(let t=e.steps.length-1;t>=0;t--){let n=e.steps[t];if(n.kind===`web_search`&&n.query)return n.query}}function ee(e){for(let t=e.steps.length-1;t>=0;t--){let n=e.steps[t];if(n.kind===`thinking`&&n.text)return n.text}}function $(e){if(e.kind===`tool`)return e.toolCallId||void 0;if(e.kind===`thinking`||e.kind===`web_search`||e.kind===`web_search_error`)return e.detailKey}function te({steps:e,onStepDetailClick:t,expandedKeys:n,onExpandedKeysChange:r,isRunning:i=!1}){let[a,o]=(0,K.useState)(new Set),s=n??a,c=(0,K.useCallback)(e=>{if(r){let t=new Set(s);t.has(e)?t.delete(e):t.add(e),r(t);return}o(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},[s,r]),l=(0,K.useMemo)(()=>j(e),[e]);return l.length===0?null:(0,q.jsx)(`div`,{className:`flex w-full flex-col`,children:l.map((e,n)=>{let r=Y(e,n),a=n===l.length-1;return(0,q.jsx)(ne,{section:e,isLast:a,isActiveTail:a&&i,expanded:s.has(r),sectionKeyValue:r,onToggle:c,onStepDetailClick:t},r)})})}function ne({section:e,isLast:t,isActiveTail:n,expanded:r,sectionKeyValue:a,onToggle:o,onStepDetailClick:s}){let c=N(e.steps),l=c===`running`&&!n?`completed`:c,u=l===`running`||n,d=e.steps[0]?.kind===`thinking`,p=e.steps.length,h=e.label===`Searching the web`,_=h?Q(e):void 0,v=p>=2,y=e.steps.some(e=>D(e)||!!s&&!!$(e)),b=l===`running`?``:k(e.steps.map(e=>`durationLabel`in e?e.durationLabel:``)),x=l===`running`?X(e):void 0,C=l===`running`&&!h?Z(x,e.label):``,w=h&&(l===`running`||!!_),E=_??e.label,O=d&&u,j=O?ee(e)??e.label:void 0,P=l===`running`||w||O||!!b,F=`${p} step${p===1?``:`s`}`;return(0,q.jsxs)(`div`,{"data-testid":`subagent-phase-section`,"data-phase-label":e.label,className:g(`relative flex flex-col gap-2`,!t&&`pb-4`),children:[!t&&(0,q.jsx)(B,{className:`top-[17.5px] -bottom-[4.5px]`}),(0,q.jsxs)(`button`,{type:`button`,"data-testid":`subagent-phase-header`,disabled:!y,onClick:y?()=>o(a):void 0,className:g(`flex h-[22px] w-full items-center gap-2 text-left`,y&&`cursor-pointer`),children:[(0,q.jsx)(`span`,{"aria-hidden":!0,className:`flex h-[14px] w-[14px] shrink-0 items-center justify-center`,children:(0,q.jsx)(`span`,{className:`h-[5px] w-[5px] rounded-full bg-[var(--content-disabled)]`})}),(0,q.jsx)(A,{status:u?`running`:l,isThinking:d&&!u}),(0,q.jsx)(i,{variant:`body-medium-default`,className:`shrink-0 text-[var(--content-default)]`,children:e.label}),P&&(0,q.jsx)(`span`,{"aria-hidden":!0,className:`shrink-0 leading-none text-[var(--content-tertiary)] opacity-10`,children:`|`}),w?(0,q.jsxs)(`span`,{className:`flex min-w-0 flex-1 items-center gap-1`,children:[(0,q.jsx)(m,{"aria-hidden":`true`,className:`h-3.5 w-3.5 shrink-0 text-[var(--content-tertiary)]`}),(0,q.jsx)(M,{currentStepTitle:``,currentStepInfo:E})]}):O?(0,q.jsxs)(`span`,{className:`flex min-w-0 flex-1 items-center gap-1`,children:[(0,q.jsx)(f,{"aria-hidden":`true`,className:`h-3.5 w-3.5 shrink-0 text-[var(--content-tertiary)]`}),(0,q.jsx)(M,{currentStepTitle:``,currentStepInfo:j??e.label})]}):l===`running`?(0,q.jsxs)(`span`,{className:`flex min-w-0 flex-1 items-center gap-1`,children:[(0,q.jsx)(f,{"aria-hidden":`true`,className:`h-3.5 w-3.5 shrink-0 text-[var(--content-tertiary)]`}),(0,q.jsx)(M,{currentStepTitle:``,currentStepInfo:C})]}):b?(0,q.jsx)(i,{variant:`body-small-default`,className:`min-w-0 truncate text-[var(--content-tertiary)]`,children:`Worked for ${b}`}):null,y&&v&&(0,q.jsx)(`span`,{"data-testid":`subagent-phase-step-count`,className:`ml-auto inline-flex shrink-0 items-center self-stretch whitespace-nowrap rounded-full bg-[var(--surface-base)] px-2`,children:(0,q.jsx)(i,{variant:`body-small-default`,className:`whitespace-nowrap text-[var(--content-secondary)]`,children:F})})]}),y&&r&&(0,q.jsx)(`div`,{className:`flex flex-col items-start gap-1 pl-[22px]`,children:e.steps.map((e,t)=>{let n=s?$(e):void 0;if(n&&s){if(e.kind===`tool`)return(0,q.jsx)(I,{variant:`tool`,iconName:e.iconName,label:e.activity||e.info||e.title,riskLevel:e.riskLevel,tone:e.status===`error`||e.status===`denied`?`error`:`default`,ariaLabel:`View tool details`,onClick:()=>s(n)},T(e,t));if(e.kind===`thinking`)return(0,q.jsx)(I,{variant:`tool`,iconName:`brain`,label:e.text,ariaLabel:`View reasoning`,onClick:()=>s(n)},T(e,t));if(e.kind===`web_search`)return(0,q.jsx)(I,{variant:`tool`,iconName:`globe`,label:e.query||e.title,ariaLabel:`View search details`,onClick:()=>s(n)},T(e,t));if(e.kind===`web_search_error`)return(0,q.jsx)(I,{variant:`tool`,iconName:`globe`,label:e.errorMessage,tone:`error`,ariaLabel:`View search error`,onClick:()=>s(n)},T(e,t))}return e.kind===`web_search`?(0,q.jsxs)(`div`,{className:`flex w-full flex-col gap-1`,children:[e.query?(0,q.jsx)(i,{variant:`body-small-default`,className:`text-[var(--content-secondary)]`,children:`"${e.query}"`}):null,(0,q.jsx)(H,{step:e})]},T(e,t)):e.kind===`web_search_error`?(0,q.jsx)(S,{step:e},T(e,t)):(0,q.jsx)(V,{step:e},T(e,t))})})]})}var re=`
2
+ Content:
3
+ `;function ie(e){return P(e)||e}function ae(e,t){let n=e??``,r=n.indexOf(re),i=r>=0?n.slice(0,r):``,a=r>=0?n.slice(r+10):n,o=e=>{let t=i.match(RegExp(`^${e}:[ \\t]*(.+)$`,`m`));return t?t[1].trim():null},s=[],c=i.indexOf(`Notices:`);if(c>=0)for(let e of i.slice(c).split(`
4
+ `)){let t=e.match(/^\s*-\s+(.*)$/);t&&t[1].trim()&&s.push(t[1].trim())}a=a.trim();let l=null,u=a.match(/^<external_content\b([^>]*)>\s*/);if(u){let e=u[1].match(/origin="([^"]+)"/);e&&(l=e[1]),a=a.slice(u[0].length).replace(/\s*<\/external_content>\s*$/,``)}return{url:o(`Final URL`)||o(`Requested URL`)||l||t||null,status:o(`Status`),notices:s,content:a.trim()}}function oe({url:e,status:t}){let n=ie(e),r=t?/^\s*2\d\d/.test(t):!1;return(0,q.jsxs)(`a`,{href:e,target:`_blank`,rel:`noopener noreferrer`,className:`flex items-center gap-2 rounded-lg border border-[var(--border-base)] bg-[var(--surface-overlay)] p-3 transition-colors hover:border-[var(--border-hover)]`,children:[(0,q.jsx)(F,{domain:n,title:n}),(0,q.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col`,children:[(0,q.jsx)(i,{variant:`body-medium-default`,as:`span`,className:`truncate text-[var(--content-default)]`,children:n}),(0,q.jsx)(i,{variant:`body-small-default`,as:`span`,className:`truncate text-[var(--content-tertiary)]`,children:e})]}),t&&(0,q.jsx)(`span`,{className:`shrink-0 rounded-[6px] px-2 py-0.5 text-body-small-emphasised ${r?`text-[var(--system-positive-strong)]`:`text-[var(--content-tertiary)]`}`,children:t})]})}function se({detail:e}){let[t,n]=(0,K.useState)(!1),r=typeof e.input?.url==`string`?e.input.url:void 0,a=(0,K.useMemo)(()=>ae(e.result??``,r),[e.result,r]);return e.status===`error`?(0,q.jsx)(W,{text:e.result??`Fetch failed.`}):(0,q.jsxs)(`div`,{className:`flex flex-col gap-5`,children:[a.url&&(0,q.jsx)(oe,{url:a.url,status:a.status}),a.notices.length>0&&(0,q.jsx)(`div`,{className:`flex flex-col gap-1 rounded-lg border border-[var(--border-base)] bg-[var(--surface-overlay)] p-3`,children:a.notices.map((e,t)=>(0,q.jsx)(i,{variant:`body-small-default`,as:`p`,className:`text-[var(--content-tertiary)]`,children:e},t))}),(0,q.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,q.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,q.jsx)(i,{variant:`body-medium-default`,as:`h3`,className:`text-[var(--content-emphasised)]`,children:t?`Raw result`:`Content`}),e.result&&(0,q.jsx)(`button`,{type:`button`,onClick:()=>n(e=>!e),className:`cursor-pointer text-[var(--content-secondary)] transition-colors hover:text-[var(--content-default)]`,children:(0,q.jsx)(i,{variant:`label-small-default`,as:`span`,children:t?`View extracted`:`View raw`})})]}),t?(0,q.jsx)(W,{text:e.result??``}):a.content?(0,q.jsx)(d,{content:a.content}):(0,q.jsx)(i,{variant:`body-small-default`,className:`text-[var(--content-tertiary)]`,children:e.status===`running`?`Fetching…`:`No content extracted.`})]})]})}function ce({detail:e}){let t=e.searchQuery??``,n=e.searchResults??[];return(0,q.jsxs)(`div`,{className:`flex flex-col gap-5`,children:[t?(0,q.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,q.jsx)(i,{variant:`body-medium-default`,as:`h3`,className:`text-[var(--content-emphasised)]`,children:`Query`}),(0,q.jsx)(i,{variant:`body-medium-lighter`,as:`p`,className:`break-words leading-relaxed text-[var(--content-default)]`,children:`"${t}"`})]}):null,(0,q.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,q.jsx)(i,{variant:`body-medium-default`,as:`h3`,className:`text-[var(--content-emphasised)]`,children:n.length>0?`Sources (${n.length})`:`Sources`}),n.length>0?(0,q.jsx)(H,{step:{kind:`web_search`,title:`Searched the web`,durationLabel:``,linkCount:n.length,results:n}}):(0,q.jsx)(i,{variant:`body-small-default`,className:`text-[var(--content-tertiary)]`,children:`No sources found.`})]})]})}function le(e){return e.kind===`web_search`?`globe`:e.kind===`thinking`?`brain`:u(e.toolName,e.input).iconName}function ue({detail:e}){return e.status===`running`?(0,q.jsx)(U,{className:`shrink-0`,"data-testid":`nested-detail-running`}):(0,q.jsx)(b[le(e)]??l,{"aria-hidden":!0,className:`h-5 w-5 shrink-0 text-[var(--content-secondary)]`})}function de({entry:e,onClose:t,onStop:r,onRequestDetail:l}){let u=y(e.status),f=L(),m=(0,K.useMemo)(()=>x(e.subagentId),[e.subagentId]),g=(0,K.useMemo)(()=>C(e),[e]),_=(0,K.useMemo)(()=>w(e),[e]),[v,b]=(0,K.useState)(null),[S,T]=(0,K.useState)(new Set),[D,k]=(0,K.useState)(!1),[A,j]=(0,K.useState)(!1),M=(0,K.useRef)(null),[N,P]=(0,K.useState)(e.subagentId);N!==e.subagentId&&(P(e.subagentId),k(!1),j(!1),b(null),T(new Set)),(0,K.useLayoutEffect)(()=>{if(D)return;let e=M.current;e&&j(e.scrollHeight>e.clientHeight)},[e.subagentId,e.objective,D]),(0,K.useEffect)(()=>{l&&e.conversationId&&e.events.length===0&&l(e.subagentId)},[e.subagentId,e.conversationId,e.events.length,l]);let F=v?_.get(v):void 0,I=(0,K.useCallback)(()=>b(null),[]),B=F?F.activity||F.title:``,V=F?B:e.label;return(0,q.jsxs)(`div`,{className:`flex h-full flex-col overflow-hidden rounded-xl bg-[var(--surface-lift)]`,children:[F&&(0,q.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2 border-b border-[var(--border-hover)] px-5 py-3`,children:[(0,q.jsx)(`button`,{type:`button`,onClick:I,title:e.label,className:`min-w-0 shrink cursor-pointer truncate text-left text-[var(--content-default)] hover:underline`,children:(0,q.jsx)(i,{variant:`body-small-default`,as:`span`,children:e.label})}),(0,q.jsx)(p,{className:`h-2.5 w-2.5 shrink-0 text-[var(--content-tertiary)]`,"aria-hidden":!0}),(0,q.jsx)(i,{variant:`body-small-default`,as:`span`,title:B,className:`min-w-0 shrink truncate text-[var(--content-secondary)]`,children:B})]}),(0,q.jsxs)(`div`,{className:`flex shrink-0 items-center gap-3 border-b border-[var(--border-hover)] px-5 py-4`,children:[F&&(0,q.jsx)(n,{variant:`outlined`,iconOnly:(0,q.jsx)(a,{}),onClick:I,"aria-label":`Back to timeline`,tooltip:`Back`,className:`shrink-0 rounded-lg`}),F?(0,q.jsx)(ue,{detail:F}):f?(0,q.jsx)(E,{components:f,bodyShapeId:m.bodyShape,eyeStyleId:m.eyeStyle,colorId:m.color,size:32}):(0,q.jsx)(`div`,{style:{width:32,height:32,flexShrink:0},"aria-hidden":!0}),(0,q.jsx)(i,{variant:`title-medium`,title:V,className:`min-w-0 shrink truncate text-[var(--content-default)]`,children:V}),(0,q.jsx)(J,{status:e.status}),(0,q.jsx)(`span`,{className:`flex-1`}),u&&r&&(0,q.jsxs)(`button`,{type:`button`,"aria-label":`Stop subagent`,onClick:()=>r(e.subagentId),className:`flex h-8 shrink-0 cursor-pointer items-center gap-1.5 rounded-lg border border-[var(--system-negative-strong)] bg-transparent px-2.5 py-1.5 text-[var(--system-negative-strong)] transition-colors hover:bg-[var(--system-negative-weak)]`,children:[(0,q.jsx)(O,{className:`h-3 w-3`,fill:`currentColor`}),(0,q.jsx)(i,{variant:`label-small-default`,children:`Stop`})]}),(0,q.jsx)(n,{variant:`outlined`,iconOnly:(0,q.jsx)(h,{}),onClick:t,"aria-label":`Close subagent detail`,tooltip:`Close`,className:`shrink-0 rounded-lg`})]}),(0,q.jsx)(`div`,{className:`flex-1 overflow-y-auto px-5 py-5`,children:F?(0,q.jsx)(q.Fragment,{children:F.kind===`thinking`?(0,q.jsx)(d,{content:F.thinkingText??``,hardLineBreaks:!0}):F.kind===`web_search`&&F.status!==`error`?(0,q.jsx)(ce,{detail:F}):F.toolName===`web_fetch`?(0,q.jsx)(se,{detail:F}):(0,q.jsx)(G,{detail:F,showTechnicalDetailsLabel:!1})}):(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`div`,{className:`mb-5 grid grid-cols-2 gap-3`,children:[(0,q.jsx)(c,{icon:(0,q.jsx)(z,{className:`h-4 w-4 shrink-0`,style:{color:`var(--content-secondary)`}}),target:e.inputTokens,format:e=>o(Math.round(e)),label:`Input`}),(0,q.jsx)(c,{icon:(0,q.jsx)(s,{className:`h-4 w-4 shrink-0`,style:{color:`var(--content-secondary)`}}),target:e.outputTokens,format:e=>o(Math.round(e)),label:`Output`})]}),e.objective&&(0,q.jsxs)(`div`,{className:`mb-5`,children:[(0,q.jsx)(i,{variant:`body-medium-default`,as:`h3`,className:`mb-2 text-[var(--content-emphasised)]`,children:`Objective`}),(0,q.jsx)(i,{ref:M,variant:`body-medium-lighter`,as:`p`,className:`whitespace-pre-wrap break-words leading-relaxed text-[var(--content-default)] ${D?``:`line-clamp-5`}`,children:e.objective}),A&&(0,q.jsxs)(`button`,{type:`button`,onClick:()=>k(e=>!e),className:`mt-1.5 flex cursor-pointer items-center gap-1 text-[var(--content-secondary)] transition-colors hover:text-[var(--content-default)]`,children:[(0,q.jsx)(i,{variant:`label-small-default`,children:D?`Show less`:`Show more`}),(0,q.jsx)(R,{className:`h-3.5 w-3.5 transition-transform ${D?`rotate-180`:``}`,"aria-hidden":!0})]}),(0,q.jsx)(`div`,{className:`mt-5 h-px w-full bg-[var(--border-hover)]`})]}),(0,q.jsxs)(`div`,{children:[(0,q.jsx)(i,{variant:`title-medium`,as:`h3`,className:`mb-4 text-[var(--content-emphasised)]`,children:`Timeline`}),e.events.length>0?(0,q.jsx)(te,{steps:g.steps,expandedKeys:S,onExpandedKeysChange:T,onStepDetailClick:e=>{_.has(e)&&b(e)},isRunning:u},e.subagentId):(0,q.jsx)(i,{variant:`body-small-default`,className:`py-4 text-center text-[var(--content-tertiary)]`,children:`No events yet`})]})]})})]})}export{de as SubagentDetailPanel};