decocms 4.425.0 → 4.425.1

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 (383) hide show
  1. package/dist/client/assets/{AlertCircle-CQU3FO2-.js → AlertCircle-DsOSKvzV.js} +1 -1
  2. package/dist/client/assets/{AreaChart-Caz7K4-P.js → AreaChart-DtLzG-fG.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-r9k0gxde.js → ArrowLeft-2lm_J3QC.js} +1 -1
  4. package/dist/client/assets/{ArrowRight-CJiUKB0e.js → ArrowRight-A-Nw2bpi.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-D1uaoIEr.js → ArrowUp-CAUQitV-.js} +1 -1
  6. package/dist/client/assets/{CartesianChart-CsM3ceFL.js → CartesianChart-DpAzR_jq.js} +1 -1
  7. package/dist/client/assets/{Check-soPAeKca.js → Check-CMF2Ywph.js} +1 -1
  8. package/dist/client/assets/{CheckCircle-BdRkKVcj.js → CheckCircle-Brn-seMk.js} +1 -1
  9. package/dist/client/assets/{ChevronUp-B4upaCys.js → ChevronUp-D_quOjFH.js} +1 -1
  10. package/dist/client/assets/{Copy01-Ck1CQt9c.js → Copy01-Dd4ky6ZP.js} +1 -1
  11. package/dist/client/assets/{CreditCard01-C5LQldm8.js → CreditCard01-DFpHESd1.js} +1 -1
  12. package/dist/client/assets/{DotsVertical-DMsZySzr.js → DotsVertical-kOg4pODr.js} +1 -1
  13. package/dist/client/assets/{ErrorBarContext-bwtijj2s.js → ErrorBarContext-3WQQZLF0.js} +1 -1
  14. package/dist/client/assets/{Image01-AxefwT4b.js → Image01-BdsDNVox.js} +1 -1
  15. package/dist/client/assets/{Key01-V9W0a2Yy.js → Key01-BUAFoCLq.js} +1 -1
  16. package/dist/client/assets/{Line-CPF3zU9K.js → Line-BuTAHyrm.js} +1 -1
  17. package/dist/client/assets/{Link01-C9tHLmLh.js → Link01-CMEXeVpO.js} +1 -1
  18. package/dist/client/assets/{LinkExternal01-CkkaHQ43.js → LinkExternal01-ZFH-yoZN.js} +1 -1
  19. package/dist/client/assets/{Monitor01-DYA_QMf2.js → Monitor01-C2krU25E.js} +1 -1
  20. package/dist/client/assets/{Palette-Bk3UCvKx.js → Palette-D5d1Mblr.js} +1 -1
  21. package/dist/client/assets/{Plus-kHt_8stA.js → Plus-Dc5RtznQ.js} +1 -1
  22. package/dist/client/assets/{SearchMd-DFB2ha4T.js → SearchMd-B30D9ndg.js} +1 -1
  23. package/dist/client/assets/{Sector-D22gYKYq.js → Sector-64WXTvD4.js} +1 -1
  24. package/dist/client/assets/{ShoppingBag01-IkLiZTCG.js → ShoppingBag01-DouihxuQ.js} +1 -1
  25. package/dist/client/assets/{Sun-CttdH4aG.js → Sun-CepnW0AC.js} +1 -1
  26. package/dist/client/assets/{Tool01-BVUW3itu.js → Tool01-gx1zwKcn.js} +1 -1
  27. package/dist/client/assets/{Trash01-CKOL_3ja.js → Trash01-DliBU2bP.js} +1 -1
  28. package/dist/client/assets/{Upload01-DlR8CSo4.js → Upload01-CQpa1a9n.js} +1 -1
  29. package/dist/client/assets/{User01-dc7WIl5M.js → User01-Dd4e-mIA.js} +1 -1
  30. package/dist/client/assets/{UserSquare-D1bS09Fm.js → UserSquare-DcFHmf0l.js} +1 -1
  31. package/dist/client/assets/{Users01-BaIVzoZ3.js → Users01-BYc5DjwP.js} +1 -1
  32. package/dist/client/assets/{X-Dp6J1NZk.js → X-AdrRw9Zp.js} +1 -1
  33. package/dist/client/assets/{XAxis-B8-Lgf5y.js → XAxis-hKxnHq9P.js} +1 -1
  34. package/dist/client/assets/{XClose-CVE8Vs6Q.js → XClose-DXJf2S1e.js} +1 -1
  35. package/dist/client/assets/{ZoomOut-ekFDVqJi.js → ZoomOut-Bqjt8gJB.js} +1 -1
  36. package/dist/client/assets/{access-gate-DVZHCUBi.js → access-gate-DTSTiQp3.js} +1 -1
  37. package/dist/client/assets/{add-connection-dialog-B-zUvMaq.js → add-connection-dialog-CjgmjJ6J.js} +1 -1
  38. package/dist/client/assets/agent-analytics-fW6DiN0D.js +2 -0
  39. package/dist/client/assets/agent-app-DRnmexWH.js +1 -0
  40. package/dist/client/assets/agent-assets-B6OCthBz.js +1 -0
  41. package/dist/client/assets/{agent-automation-Bj4sGNvm.js → agent-automation-D7w4sgBL.js} +2 -2
  42. package/dist/client/assets/agent-automations-VE77sb9q.js +1 -0
  43. package/dist/client/assets/agent-connect-sources-CR98SBRp.js +1 -0
  44. package/dist/client/assets/agent-deck-BLtrAz-G.js +1 -0
  45. package/dist/client/assets/agent-e2e-Ci2-1Esx.js +1 -0
  46. package/dist/client/assets/agent-experiments-D6lI5uOj.js +1 -0
  47. package/dist/client/assets/agent-file-B4Bf8NCP.js +1 -0
  48. package/dist/client/assets/{agent-git-BcKeYOTv.js → agent-git-AczEwwiL.js} +2 -2
  49. package/dist/client/assets/agent-hosting-C6G_0vSx.js +1 -0
  50. package/dist/client/assets/{agent-icon-C8wu-T9B.js → agent-icon-B1JUa-pK.js} +1 -1
  51. package/dist/client/assets/agent-library-E0JwHCSU.js +1 -0
  52. package/dist/client/assets/agent-library-file-D_y5O75S.js +1 -0
  53. package/dist/client/assets/agent-monitor-Dzcb37so.js +1 -0
  54. package/dist/client/assets/agent-overview-DCqvGj5y.js +1 -0
  55. package/dist/client/assets/agent-settings-CMwvE0uk.js +1 -0
  56. package/dist/client/assets/{agent-site-editor-BManvh2p.js → agent-site-editor-X06x49vI.js} +2 -2
  57. package/dist/client/assets/agent-site-editor-code-DJgbb6tV.js +2 -0
  58. package/dist/client/assets/{agent-site-editor-content-DVWOt-Lp.js → agent-site-editor-content-DQrj-VH4.js} +3 -3
  59. package/dist/client/assets/{agent-site-editor-preview-DqrFB9eA.js → agent-site-editor-preview-BrzBbshQ.js} +3 -3
  60. package/dist/client/assets/{agent-view-guard-DP6rr7-6.js → agent-view-guard-CjENDk5e.js} +1 -1
  61. package/dist/client/assets/agent-view-xIFnsvl0.js +1 -0
  62. package/dist/client/assets/{agents-list-BHJZEiO4.js → agents-list-C33TJcHC.js} +1 -1
  63. package/dist/client/assets/{ai-providers-BU1J8_R5.js → ai-providers-ZZ74aECC.js} +1 -1
  64. package/dist/client/assets/{alert-B_aVDXWu.js → alert-BKTGsFI8.js} +1 -1
  65. package/dist/client/assets/{alert-dialog-DJcNPQjm.js → alert-dialog-CIK2aHDv.js} +1 -1
  66. package/dist/client/assets/{analytics-sections-BXAEbLgR.js → analytics-sections-BZtSP0aA.js} +1 -1
  67. package/dist/client/assets/api-keys-D6HBMlIA.js +1 -0
  68. package/dist/client/assets/{api-keys-yyXIMQJI.js → api-keys-Kd3P9EQb.js} +1 -1
  69. package/dist/client/assets/app-editor-TQLa1Eqc.js +1 -0
  70. package/dist/client/assets/{asset-utils-BV839mqx.js → asset-utils-vxXtnPR8.js} +1 -1
  71. package/dist/client/assets/{auth-i4uSZxqM.js → auth-DS4Lo40d.js} +1 -1
  72. package/dist/client/assets/{auth-catchall-B38U7kv-.js → auth-catchall-DQwnE0NC.js} +1 -1
  73. package/dist/client/assets/{auth-entry-CKSK4iYs.js → auth-entry-DEh9VZst.js} +1 -1
  74. package/dist/client/assets/{auth-split-layout-D02-xSkU.js → auth-split-layout-DXgubjLw.js} +1 -1
  75. package/dist/client/assets/{authenticate-and-persist-oauth-D-PqEdfN.js → authenticate-and-persist-oauth-l_mXF0Cq.js} +1 -1
  76. package/dist/client/assets/{automation-list-row-Cj0lVdtQ.js → automation-list-row-DfjGMZpb.js} +1 -1
  77. package/dist/client/assets/{automation-runs-BNfzkXtY.js → automation-runs-CJ4TbZzx.js} +1 -1
  78. package/dist/client/assets/{automations-CcA3VvLO.js → automations-ELL00rba.js} +1 -1
  79. package/dist/client/assets/{autosend-BgamBAXS.js → autosend-C7EnJZLv.js} +1 -1
  80. package/dist/client/assets/{avatar-By9-J1G7.js → avatar-D5EBeZdt.js} +1 -1
  81. package/dist/client/assets/{badge-BLmau0Ea.js → badge-C7LZnr1G.js} +1 -1
  82. package/dist/client/assets/{block-document-DNf3E-rZ.js → block-document-mPXjkoGO.js} +1 -1
  83. package/dist/client/assets/{blocks-preview-workspace-context-Dp3GVv9B.js → blocks-preview-workspace-context-D2DgzWT_.js} +1 -1
  84. package/dist/client/assets/{buckets-CfOh79gF.js → buckets-CpKCcO2O.js} +1 -1
  85. package/dist/client/assets/{build-improve-prompt-doc-bnw-geKz.js → build-improve-prompt-doc-BA847z9G.js} +1 -1
  86. package/dist/client/assets/{calendar-C_3zvYnn.js → calendar-yvfvBAzS.js} +1 -1
  87. package/dist/client/assets/{capability-load-error-_sxFuxMW.js → capability-load-error-DwYWnWZk.js} +1 -1
  88. package/dist/client/assets/category-editor-BO67rgf7.js +1 -0
  89. package/dist/client/assets/{chart-DUDR_GLh.js → chart-Dv1JamW3.js} +1 -1
  90. package/dist/client/assets/{chat-context-DSOY14Dl.js → chat-context-fDVt7FJu.js} +1 -1
  91. package/dist/client/assets/{chat-draft-Db3gWleH.js → chat-draft-ldhGGrhS.js} +1 -1
  92. package/dist/client/assets/{checkbox-YgstniWn.js → checkbox-DKFzy_UI.js} +1 -1
  93. package/dist/client/assets/{choose-editor-Cvv0YS80.js → choose-editor-cP_2mN1n.js} +1 -1
  94. package/dist/client/assets/{claim-phase-copy-Byy3Q6us.js → claim-phase-copy-DAgG3vfo.js} +1 -1
  95. package/dist/client/assets/{cli-auth-success-CF33WEDl.js → cli-auth-success-D-t1ynTi.js} +1 -1
  96. package/dist/client/assets/{client-icons-3lGatXeB.js → client-icons-BXC5XYwX.js} +1 -1
  97. package/dist/client/assets/{collapsible-Pi90xi-e.js → collapsible-aZePgHKd.js} +1 -1
  98. package/dist/client/assets/{collection-detail-DHdecaB7.js → collection-detail-B6UBhveh.js} +1 -1
  99. package/dist/client/assets/{collection-display-button-Cb5VEBCx.js → collection-display-button-DwhCq88V.js} +1 -1
  100. package/dist/client/assets/{collection-search-CZPfBwnt.js → collection-search-CBSxLm5u.js} +1 -1
  101. package/dist/client/assets/{collection-table-wrapper-CR8wWqYX.js → collection-table-wrapper-uO2T9X8L.js} +1 -1
  102. package/dist/client/assets/{collection-tabs-CDyR4kzk.js → collection-tabs-DIB_pPlJ.js} +1 -1
  103. package/dist/client/assets/{combobox-BIrYGyuF.js → combobox-VNs66YBC.js} +1 -1
  104. package/dist/client/assets/{command-DxWpNp1x.js → command-BaUKjhoV.js} +1 -1
  105. package/dist/client/assets/{companion-mcps-section-BT3BpapS.js → companion-mcps-section-he2WjNhc.js} +1 -1
  106. package/dist/client/assets/{config-BfXHrI3c.js → config-DJlvAMtq.js} +1 -1
  107. package/dist/client/assets/{connect-BaV0v-Tu.js → connect-BzB4yRL7.js} +1 -1
  108. package/dist/client/assets/{connect-layout-BUm5geCN.js → connect-layout-DHjsvqYK.js} +1 -1
  109. package/dist/client/assets/{connection-sgm4TBxZ.js → connection-CnIXOjL9.js} +1 -1
  110. package/dist/client/assets/{connection-card-KlghLDwU.js → connection-card-Y1Y6409W.js} +1 -1
  111. package/dist/client/assets/{connection-detail-DclD8xq_.js → connection-detail-DryX9zB1.js} +1 -1
  112. package/dist/client/assets/{connection-form-helpers-i009QpGu.js → connection-form-helpers-abhaYYBG.js} +1 -1
  113. package/dist/client/assets/{connections-_X80BGGI.js → connections-CcwW96QT.js} +1 -1
  114. package/dist/client/assets/context--OKYBRk9.js +1 -0
  115. package/dist/client/assets/{create-organization-dialog-DhSGIMf_.js → create-organization-dialog-hS_wxzxv.js} +1 -1
  116. package/dist/client/assets/{decopilot-ZxSRkfiB.js → decopilot-BBx7_EFV.js} +1 -1
  117. package/dist/client/assets/{dialog-1dafL4bi.js → dialog-BgtCSZyf.js} +1 -1
  118. package/dist/client/assets/discover-DGG2hRLO.js +1 -0
  119. package/dist/client/assets/{domain-settings-CGpwkGbK.js → domain-settings-CVryaoxH.js} +1 -1
  120. package/dist/client/assets/{download-app-dialog-BcCXsaD8.js → download-app-dialog-BRX0Ra47.js} +1 -1
  121. package/dist/client/assets/{drawer-wrrjDRlR.js → drawer-BvFRhiv1.js} +1 -1
  122. package/dist/client/assets/{editor-BiYdYoAb.js → editor-DuOWmHoR.js} +1 -1
  123. package/dist/client/assets/{empty-state-Ck9uwtW-.js → empty-state-DB_SzRO6.js} +1 -1
  124. package/dist/client/assets/{empty-state-LYCOTuMl.js → empty-state-DKbbnCTb.js} +1 -1
  125. package/dist/client/assets/{extract-connection-data-Cm7kjryi.js → extract-connection-data-BRwBq3vf.js} +1 -1
  126. package/dist/client/assets/{feature-gate-VDho3P9i.js → feature-gate-BAIgZZXB.js} +1 -1
  127. package/dist/client/assets/{feature-paywall-O59PQJQ4.js → feature-paywall-Cwbvr67l.js} +1 -1
  128. package/dist/client/assets/{file-explorer-M_603rD8.js → file-explorer-CvMyNQBS.js} +1 -1
  129. package/dist/client/assets/{file-preview-DNv-TeY5.js → file-preview-OVrIjHIJ.js} +1 -1
  130. package/dist/client/assets/{file-share-button-CcJT8SCR.js → file-share-button-BoRqU7Iz.js} +1 -1
  131. package/dist/client/assets/{file-type-icon-buBDg-03.js → file-type-icon-Cejgy7H6.js} +1 -1
  132. package/dist/client/assets/flat-project-bym3Cc-H.js +1 -0
  133. package/dist/client/assets/{folder-icon-Da9ULcDI.js → folder-icon-CbqDLq4k.js} +1 -1
  134. package/dist/client/assets/{form-D5LPXjPj.js → form-Bwkg8Jqa.js} +1 -1
  135. package/dist/client/assets/{gateway-client-CeKj8qiL.js → gateway-client-DFxhiMGP.js} +1 -1
  136. package/dist/client/assets/{general-BPN087Lc.js → general-B4Sba9xG.js} +1 -1
  137. package/dist/client/assets/home-BrA_nbiq.js +1 -0
  138. package/dist/client/assets/index-6m6OXOoa.css +1 -0
  139. package/dist/client/assets/{index-H2LrQn17.js → index-B0GFQJYa.js} +1 -1
  140. package/dist/client/assets/{index-Ct9y-yVl.js → index-B9N7VFXz.js} +1 -1
  141. package/dist/client/assets/{index-CY8bQG9C.js → index-BXGaeoRo.js} +1 -1
  142. package/dist/client/assets/{index-DJzoBp2L.js → index-BqvCOs8v.js} +1 -1
  143. package/dist/client/assets/{index-D5-xqq3P.js → index-BzEAzC8-.js} +1 -1
  144. package/dist/client/assets/{index-D8akGTh4.js → index-C1l5ueXX.js} +1 -1
  145. package/dist/client/assets/{index-w4vR7oJd.js → index-CeJmvQn1.js} +3 -3
  146. package/dist/client/assets/{index-LgfzCRc4.js → index-D2sx2hj-.js} +1 -1
  147. package/dist/client/assets/{index-DFK3AqOd.js → index-D6WmSRmP.js} +1 -1
  148. package/dist/client/assets/{index-D3__nJJk.js → index-DJT_L8S6.js} +1 -1
  149. package/dist/client/assets/{index-CeFrI_-f.js → index-DUoAE5ST.js} +8 -8
  150. package/dist/client/assets/{index-D88JS0Yx.js → index-Ddpg7S6U.js} +1 -1
  151. package/dist/client/assets/{index-MebkKt8H.js → index-Dvm5L9kf.js} +1 -1
  152. package/dist/client/assets/{index-CBLynFUh.js → index-T9qmd0M1.js} +1 -1
  153. package/dist/client/assets/{index-redirect-DNJpUKHR.js → index-redirect-B7v6IA8J.js} +1 -1
  154. package/dist/client/assets/{index-Do5wILaI.js → index-t3GQvgTK.js} +1 -1
  155. package/dist/client/assets/{infiniteQueryObserver-DX9QHkGe.js → infiniteQueryObserver-boyhd8Uv.js} +1 -1
  156. package/dist/client/assets/{infra-billing-CJc_xWtO.js → infra-billing-CFIs1f7C.js} +1 -1
  157. package/dist/client/assets/{input-C2XryqlS.js → input-2vHFydNN.js} +1 -1
  158. package/dist/client/assets/{input-BLNFqzUM.js → input-Je7SXM19.js} +3 -3
  159. package/dist/client/assets/{input-CQlMbJrR.js → input-yIPgkwGw.js} +1 -1
  160. package/dist/client/assets/{integration-icon-60YSBd47.js → integration-icon-DsxYi58j.js} +1 -1
  161. package/dist/client/assets/{label-CTaphTs2.js → label-B5D3oXM0.js} +1 -1
  162. package/dist/client/assets/{last-preview-page-vt2OtvKU.js → last-preview-page-DiM8XiC2.js} +1 -1
  163. package/dist/client/assets/{layout-COlkqmIQ.js → layout-DzG-pOmM.js} +1 -1
  164. package/dist/client/assets/{legacy-agents-deep-Ctzjouqt.js → legacy-agents-deep-BhJ-RJKs.js} +1 -1
  165. package/dist/client/assets/{legacy-main-redirect-BaZYUmuc.js → legacy-main-redirect-k4k6oSNR.js} +1 -1
  166. package/dist/client/assets/library-C9HSbHdS.js +1 -0
  167. package/dist/client/assets/{library-tab-D4iQdrlE.js → library-tab-C3VxGFW1.js} +1 -1
  168. package/dist/client/assets/{login-QNIhU9dz.js → login-DJ6MsBjC.js} +1 -1
  169. package/dist/client/assets/{markdown-Ck-11dhN.js → markdown-Cuay45B5.js} +1 -1
  170. package/dist/client/assets/{mcp-app-renderer-BemaHPoe.js → mcp-app-renderer-Bz2q_atZ.js} +1 -1
  171. package/dist/client/assets/{mcp-oauth-DA7uY-37.js → mcp-oauth-BH0jXemG.js} +1 -1
  172. package/dist/client/assets/{members-BEhHXB0V.js → members-Ap41EyVo.js} +1 -1
  173. package/dist/client/assets/{message-templates-CX1OJ7C8.js → message-templates-X_EVv61O.js} +1 -1
  174. package/dist/client/assets/{mini-report-page-s_c2MmRH.js → mini-report-page-bRBLtGfH.js} +1 -1
  175. package/dist/client/assets/{mock-board-DPOuVqy_.js → mock-board-CYjTVJug.js} +1 -1
  176. package/dist/client/assets/{monaco-editor-CyLZqoPt.js → monaco-editor-BBA-2xe3.js} +1 -1
  177. package/dist/client/assets/{monitoring-stats-row-pkJdXLku.js → monitoring-stats-row-CjCgF20M.js} +1 -1
  178. package/dist/client/assets/{multi-select-CtEcT2Fm.js → multi-select-X-tz_9Eq.js} +1 -1
  179. package/dist/client/assets/{mustache-BIygiTUj.js → mustache-BgYmPFKE.js} +1 -1
  180. package/dist/client/assets/{new-project-dialog-BJkFsBCH.js → new-project-dialog-utK5AYOj.js} +1 -1
  181. package/dist/client/assets/{oauth-callback-DLIV3MGz.js → oauth-callback-C0ONc_Lk.js} +1 -1
  182. package/dist/client/assets/{oauth-callback-ai-provider-r46g0CGE.js → oauth-callback-ai-provider-E9B5w96T.js} +1 -1
  183. package/dist/client/assets/{onboarding-BdNB509_.js → onboarding-qhebZmKN.js} +1 -1
  184. package/dist/client/assets/openai-conversation-BaDnTpHn.js +3 -0
  185. package/dist/client/assets/{optimistic-project-sidebar-views-CTxHKwky.js → optimistic-project-sidebar-views-Bz7bGQe2.js} +1 -1
  186. package/dist/client/assets/{org-file-open-context-CNhQ4sPa.js → org-file-open-context-BJfMfMA3.js} +1 -1
  187. package/dist/client/assets/{organization-choice-ClD3tqal.js → organization-choice-Ogfn3N9-.js} +1 -1
  188. package/dist/client/assets/{orgs-bdVnOGJG.js → orgs-DUk_RkTf.js} +1 -1
  189. package/dist/client/assets/{page-seo-form-B0GpL4jq.js → page-seo-form-BbLnwvLC.js} +1 -1
  190. package/dist/client/assets/{pair-BqbLIj1t.js → pair-9c3wI9G4.js} +1 -1
  191. package/dist/client/assets/{plan-ladder-HHjxIVXp.js → plan-ladder-C5HBBt9O.js} +1 -1
  192. package/dist/client/assets/{popover-Dp4MK1ls.js → popover-LjbxD4kl.js} +1 -1
  193. package/dist/client/assets/post-calendar-BZuYHwNt.js +1 -0
  194. package/dist/client/assets/{post-editor-C1RmWFY5.js → post-editor-Cp_zmM1c.js} +2 -2
  195. package/dist/client/assets/{preview-content-CNIJYNak.js → preview-content-YLQa-MEQ.js} +1 -1
  196. package/dist/client/assets/{preview-dialog-C7esJb4w.js → preview-dialog-CYmFwkaw.js} +1 -1
  197. package/dist/client/assets/{profile-CXYVNdpP.js → profile-DjS7rPQX.js} +1 -1
  198. package/dist/client/assets/{project-app-view-CDgS0ywj.js → project-app-view-CDoexz4k.js} +1 -1
  199. package/dist/client/assets/project-feed-BIMko2yg.js +1 -0
  200. package/dist/client/assets/{project-icon-BY9kpN8_.js → project-icon-6NFCCRCG.js} +1 -1
  201. package/dist/client/assets/project-reports-DyRmdIDr.js +1 -0
  202. package/dist/client/assets/project-tasks-B_guST6M.js +1 -0
  203. package/dist/client/assets/{projects-empty-state-DfwkZhS9.js → projects-empty-state-B10a1M4B.js} +1 -1
  204. package/dist/client/assets/{projects-evwU_QXd.js → projects-s9YGF9Lu.js} +1 -1
  205. package/dist/client/assets/{prompts-CyLjyHbX.js → prompts-DbdYfdfQ.js} +1 -1
  206. package/dist/client/assets/record-editor-B6ATpNPy.js +1 -0
  207. package/dist/client/assets/redirect-editor-HlsJRCq9.js +1 -0
  208. package/dist/client/assets/{reports-BM-fsbYD.js → reports-BxsnFrLQ.js} +1 -1
  209. package/dist/client/assets/reports-DFP-qw8N.js +1 -0
  210. package/dist/client/assets/{reports-onboarding-BkOfNX6c.js → reports-onboarding-CsJ6--w4.js} +1 -1
  211. package/dist/client/assets/{reports-tab-akHTbMf0.js → reports-tab-Wktq9_sa.js} +2 -2
  212. package/dist/client/assets/{repositories-BhXqf3Sh.js → repositories-bXU3gUAH.js} +1 -1
  213. package/dist/client/assets/{repository-binding-Bye6exhX.js → repository-binding-B_NhY5XW.js} +1 -1
  214. package/dist/client/assets/{repository-import-picker-9N2XFQro.js → repository-import-picker-R1iARtfq.js} +1 -1
  215. package/dist/client/assets/{repository-picker-Hvr1qnSW.js → repository-picker-AmyIhwMY.js} +1 -1
  216. package/dist/client/assets/{require-capability-BikcW72U.js → require-capability-CE5MPnLW.js} +1 -1
  217. package/dist/client/assets/{required-auth-layout-DWm1sqaG.js → required-auth-layout-SykeHPol.js} +1 -1
  218. package/dist/client/assets/{reset-password-DBUxrz7S.js → reset-password-C9pPnrCB.js} +1 -1
  219. package/dist/client/assets/{resizable-xSdhf8k8.js → resizable-D-ZGQzkV.js} +1 -1
  220. package/dist/client/assets/{resolve-tab-icon-BViYoAOc.js → resolve-tab-icon-DNP2Pr3y.js} +1 -1
  221. package/dist/client/assets/{review-settings-CxdhHh4I.js → review-settings-CgbME_-p.js} +1 -1
  222. package/dist/client/assets/{rich-text-link-control-DNolPdT4.js → rich-text-link-control-1OzevT91.js} +1 -1
  223. package/dist/client/assets/{roles-CTJqjtAt.js → roles-B4-k5tdW.js} +1 -1
  224. package/dist/client/assets/route-BI7WVCqk.js +1 -0
  225. package/dist/client/assets/route-InImFr8T.js +1 -0
  226. package/dist/client/assets/route-f38UIBNa.js +1 -0
  227. package/dist/client/assets/{runnable-block-editor-D_v3Y6XS.js → runnable-block-editor-lWMI5Iat.js} +1 -1
  228. package/dist/client/assets/{sandbox-lifecycle-context-YRF_Tndn.js → sandbox-lifecycle-context-C-6m-zOX.js} +1 -1
  229. package/dist/client/assets/{schema-Dx8S5UKv.js → schema-CBdf6nVq.js} +1 -1
  230. package/dist/client/assets/{scroll-area-Ni1BHDLk.js → scroll-area-BtQLVih8.js} +1 -1
  231. package/dist/client/assets/{search-input-C2C6IDR9.js → search-input-BbRzOQHT.js} +1 -1
  232. package/dist/client/assets/{search-toggle-XrzCP3HU.js → search-toggle-ZwfKdVlS.js} +1 -1
  233. package/dist/client/assets/{secret-picker-MfuGbD7z.js → secret-picker-DSwFEi4y.js} +1 -1
  234. package/dist/client/assets/{secrets-BKa3uo1t.js → secrets-DTYS0xGf.js} +1 -1
  235. package/dist/client/assets/sections-editor-CKzkLSPE.js +1 -0
  236. package/dist/client/assets/{select-CKIWskoO.js → select-BqWleZPz.js} +1 -1
  237. package/dist/client/assets/{select-model-By0BbJXF.js → select-model-xT6PieCV.js} +1 -1
  238. package/dist/client/assets/seo-editor-C1si73zi.js +1 -0
  239. package/dist/client/assets/{separator-5ldU5iPA.js → separator-DL6IkOSl.js} +1 -1
  240. package/dist/client/assets/settings-tab-DYkQoTuQ.js +5 -0
  241. package/dist/client/assets/{sheet-CAco8v5i.js → sheet-Bd039v18.js} +1 -1
  242. package/dist/client/assets/{shell-layout-Dc8bj9Qy.js → shell-layout-C8-wrHjg.js} +1 -1
  243. package/dist/client/assets/{skills-CL3xHerv.js → skills-jyfkbBvw.js} +1 -1
  244. package/dist/client/assets/{sso-8H5cn8Jj.js → sso-XXxqJPKX.js} +1 -1
  245. package/dist/client/assets/{suggestion-Bk-rJje-.js → suggestion-B9XVxEmh.js} +1 -1
  246. package/dist/client/assets/{switch-DwueOTYO.js → switch-Ief2Eh48.js} +1 -1
  247. package/dist/client/assets/{synced-repos-CNdTZ24Q.js → synced-repos-DebeUuwF.js} +1 -1
  248. package/dist/client/assets/{tab-icon-glyph-h36dkcJK.js → tab-icon-glyph-BX5R1J_a.js} +1 -1
  249. package/dist/client/assets/{table-hEbek0Ft.js → table-KDJXUCBA.js} +1 -1
  250. package/dist/client/assets/{tabs-CdtjXlat.js → tabs-BRLOXiKA.js} +1 -1
  251. package/dist/client/assets/{task-board-X-0Zbika.js → task-board-BoLv4xpd.js} +1 -1
  252. package/dist/client/assets/{task-route-DR9eVvuK.js → task-route-Bf_mrHm9.js} +1 -1
  253. package/dist/client/assets/{task-status-Dt_MbhgH.js → task-status-CfiPoIDl.js} +1 -1
  254. package/dist/client/assets/taskboard-analytics-CPac4bBU.js +1 -0
  255. package/dist/client/assets/tasks-B_OUV33u.js +1 -0
  256. package/dist/client/assets/{tasks-DFiZjBSg.js → tasks-DyYINS8s.js} +1 -1
  257. package/dist/client/assets/{textarea-3tXmq-Wc.js → textarea-CVlc5gDB.js} +1 -1
  258. package/dist/client/assets/thread-analytics-BLC_N0Cy.js +1 -0
  259. package/dist/client/assets/thread-button-C3p-T2Sx.js +1 -0
  260. package/dist/client/assets/{thread-intent-Y1VdgKwx.js → thread-intent-CqtUmKwo.js} +1 -1
  261. package/dist/client/assets/{thread-route-BRshsfjF.js → thread-route-B6BPC0Ck.js} +1 -1
  262. package/dist/client/assets/{thread-route-CvFAwFyQ.js → thread-route-Dyu25GDz.js} +1 -1
  263. package/dist/client/assets/{thread-sheet-body-CuFuqQDP.js → thread-sheet-body-CgovWoIK.js} +1 -1
  264. package/dist/client/assets/{toggle-group-BBUMgsw-.js → toggle-group-DiLzg8Oz.js} +1 -1
  265. package/dist/client/assets/{toolbar-icon-button-DMjHAwX1.js → toolbar-icon-button-BYksvIS3.js} +1 -1
  266. package/dist/client/assets/{tooltip-CCq3uglU.js → tooltip-DR03IHA1.js} +1 -1
  267. package/dist/client/assets/{track-BQopacYb.js → track-BS0KNS0z.js} +1 -1
  268. package/dist/client/assets/{types-By6vVcI1.js → types-LTX_QS_n.js} +1 -1
  269. package/dist/client/assets/{usage-stats-CUGPskaJ.js → usage-stats-C51kdK-O.js} +1 -1
  270. package/dist/client/assets/{use-ai-providers-BdgkW-rz.js → use-ai-providers-CoMpro3i.js} +1 -1
  271. package/dist/client/assets/{use-automations-DRY01_uG.js → use-automations-DJNilpnc.js} +1 -1
  272. package/dist/client/assets/{use-autosave-BKedxvfh.js → use-autosave-BdgUy-0v.js} +1 -1
  273. package/dist/client/assets/use-chat-layout-state-_HZU5xG7.js +1 -0
  274. package/dist/client/assets/{use-connect-companion-BQlD5V75.js → use-connect-companion-Bv9Pb3sO.js} +1 -1
  275. package/dist/client/assets/{use-connection-B1Onu2Kt.js → use-connection-Dqt9FsoJ.js} +1 -1
  276. package/dist/client/assets/{use-copy-DmHXHCnz.js → use-copy-Cq1WnAZO.js} +1 -1
  277. package/dist/client/assets/{use-create-virtual-mcp-fQ6K6_pG.js → use-create-virtual-mcp-D0ynfXjq.js} +1 -1
  278. package/dist/client/assets/{use-date-fns-locale-C185nROT.js → use-date-fns-locale-D8lzkql1.js} +1 -1
  279. package/dist/client/assets/{use-debounced-autosave-BRJCxv7e.js → use-debounced-autosave-DcBd_wy0.js} +1 -1
  280. package/dist/client/assets/{use-debounced-value-yPMYT1PN.js → use-debounced-value-CQlodPiq.js} +1 -1
  281. package/dist/client/assets/{use-deco-credits-CrxCz8CE.js → use-deco-credits-DKE8CKUB.js} +1 -1
  282. package/dist/client/assets/{use-decopilot-events-CypL9wDE.js → use-decopilot-events-CRlKPkfk.js} +1 -1
  283. package/dist/client/assets/{use-delete-connection-BM3IJ70N.js → use-delete-connection-CTCZXhIi.js} +1 -1
  284. package/dist/client/assets/{use-deployment-admin-DeIDIzSg.js → use-deployment-admin-BDx0zwoX.js} +1 -1
  285. package/dist/client/assets/{use-fast-preview-draft-url-DGgr9dv2.js → use-fast-preview-draft-url--h9Tv0zG.js} +1 -1
  286. package/dist/client/assets/{use-file-configs-CLG1iL92.js → use-file-configs-Dm5QQPiU.js} +1 -1
  287. package/dist/client/assets/{use-infinite-scroll-9-lAGo5q.js → use-infinite-scroll-CQNm1p1Z.js} +1 -1
  288. package/dist/client/assets/{use-join-requests-BhpyUEa7.js → use-join-requests-Bygz0bo8.js} +1 -1
  289. package/dist/client/assets/use-main-panel-tabs-BhuNnd2h.js +1 -0
  290. package/dist/client/assets/{use-mcp-auth-status-e-d864j-.js → use-mcp-auth-status-CSk5HQ_I.js} +1 -1
  291. package/dist/client/assets/{use-mcp-client-CFwJWbBp.js → use-mcp-client-BUxJmD4z.js} +1 -1
  292. package/dist/client/assets/{use-mcp-prompts-Dt5SCeuL.js → use-mcp-prompts-BbeFHvZR.js} +1 -1
  293. package/dist/client/assets/{use-mcp-tools-Ddw8pP4s.js → use-mcp-tools-Bbmi6C0T.js} +1 -1
  294. package/dist/client/assets/{use-members-o--3mm1V.js → use-members-D5SND9MM.js} +1 -1
  295. package/dist/client/assets/{use-mobile-BcAqan0X.js → use-mobile-DPqh4jRn.js} +1 -1
  296. package/dist/client/assets/{use-navigate-to-agent-CjjoA5M6.js → use-navigate-to-agent-D9zMng25.js} +1 -1
  297. package/dist/client/assets/use-new-blocks-editor-D6z95MNv.js +1 -0
  298. package/dist/client/assets/{use-open-billing-url-m1RP8Kag.js → use-open-billing-url-BvxQsl9r.js} +1 -1
  299. package/dist/client/assets/{use-org-auth-client-DEUGdiVk.js → use-org-auth-client--nyW1O8e.js} +1 -1
  300. package/dist/client/assets/{use-org-fs-BSupMC3v.js → use-org-fs-DSuvAHdS.js} +1 -1
  301. package/dist/client/assets/{use-org-repo-syncs-O-NtvfvJ.js → use-org-repo-syncs-DNj_tgaw.js} +1 -1
  302. package/dist/client/assets/{use-org-sso-C8eq4Vdd.js → use-org-sso-DzOXFkj8.js} +1 -1
  303. package/dist/client/assets/{use-organization-roles-reY1_o4k.js → use-organization-roles-DN9XQYP6.js} +1 -1
  304. package/dist/client/assets/{use-organization-settings-DiTNcxQS.js → use-organization-settings-BrhF1m2_.js} +1 -1
  305. package/dist/client/assets/{use-panel-navigate-CFUA8opi.js → use-panel-navigate-DSVmT0jD.js} +1 -1
  306. package/dist/client/assets/{use-project-scope-nSXqOJGj.js → use-project-scope-Bo2r-DyF.js} +1 -1
  307. package/dist/client/assets/use-recent-apps-BB5-9Ae6.js +1 -0
  308. package/dist/client/assets/{use-releases-BbGaY8US.js → use-releases-DVJxEffL.js} +1 -1
  309. package/dist/client/assets/{use-reports-diagnostic-BT8MtXS3.js → use-reports-diagnostic-BnOhK7Bb.js} +1 -1
  310. package/dist/client/assets/{use-secrets-FJu3iWhY.js → use-secrets-DRwQEz1S.js} +1 -1
  311. package/dist/client/assets/{use-section-preview-base-CxPC0M-d.js → use-section-preview-base-B_v6WwFH.js} +1 -1
  312. package/dist/client/assets/{use-session-runtime-CNsfPJpj.js → use-session-runtime-DSwirXrC.js} +1 -1
  313. package/dist/client/assets/{use-tags-BXGxCIku.js → use-tags-DlHH4Qi1.js} +1 -1
  314. package/dist/client/assets/{use-task-board-analytics-DNKSgirc.js → use-task-board-analytics-CUnizIez.js} +1 -1
  315. package/dist/client/assets/{use-task-board-events-C7j5aBlD.js → use-task-board-events-4sCrjL4g.js} +1 -1
  316. package/dist/client/assets/{use-task-metadata-D3Ciwarw.js → use-task-metadata-DcX45smp.js} +1 -1
  317. package/dist/client/assets/{use-thread-analytics-D27BLIsa.js → use-thread-analytics-C1PD-wKd.js} +1 -1
  318. package/dist/client/assets/{use-thread-outputs-D0UmTPT7.js → use-thread-outputs-DXHpolX2.js} +1 -1
  319. package/dist/client/assets/useInfiniteQuery-DK0olIK3.js +1 -0
  320. package/dist/client/assets/{useQueries-CrAKGEfH.js → useQueries-D5KYPRzB.js} +1 -1
  321. package/dist/client/assets/useSuspenseInfiniteQuery-CoicqEC4.js +1 -0
  322. package/dist/client/assets/{users-CQYodV6R.js → users-DwbIuW3C.js} +1 -1
  323. package/dist/client/assets/{utils-D94emI8J.js → utils-VHhyqMwa.js} +1 -1
  324. package/dist/client/assets/variant-calendar-Nce7TSd8.js +1 -0
  325. package/dist/client/assets/{variant-matcher-override-BFWepI_H.js → variant-matcher-override-D18XaBSZ.js} +1 -1
  326. package/dist/client/assets/{view-mode-toggle-a9S8LD9H.js → view-mode-toggle-CqfMj8Tg.js} +1 -1
  327. package/dist/client/assets/{virtual-mcp-BC9jxxUg.js → virtual-mcp-CfWdBZM2.js} +1 -1
  328. package/dist/client/index.html +2 -2
  329. package/dist/server/cli.js +1 -1
  330. package/dist/server/server.js +1 -1
  331. package/package.json +1 -1
  332. package/dist/client/assets/agent-analytics-BHngg3aN.js +0 -2
  333. package/dist/client/assets/agent-app-eih7qmuw.js +0 -1
  334. package/dist/client/assets/agent-assets-CojSmNaz.js +0 -1
  335. package/dist/client/assets/agent-automations-BQwnmsqe.js +0 -1
  336. package/dist/client/assets/agent-connect-sources-DC_snIij.js +0 -1
  337. package/dist/client/assets/agent-deck-BHvHS_x2.js +0 -1
  338. package/dist/client/assets/agent-e2e-BScuCsCp.js +0 -1
  339. package/dist/client/assets/agent-experiments-0ZSUWJyV.js +0 -1
  340. package/dist/client/assets/agent-file-A2jLB4uh.js +0 -1
  341. package/dist/client/assets/agent-hosting-C03IBXsD.js +0 -1
  342. package/dist/client/assets/agent-library-Bndr3ZTh.js +0 -1
  343. package/dist/client/assets/agent-library-file-DHNrLn15.js +0 -1
  344. package/dist/client/assets/agent-monitor-C2UpDGeU.js +0 -1
  345. package/dist/client/assets/agent-overview-vGVfOmzC.js +0 -1
  346. package/dist/client/assets/agent-settings-CKUunA9x.js +0 -1
  347. package/dist/client/assets/agent-site-editor-code-DNEtxYix.js +0 -2
  348. package/dist/client/assets/agent-view-Eu0cDk5o.js +0 -1
  349. package/dist/client/assets/api-keys-DTPxsqpA.js +0 -1
  350. package/dist/client/assets/app-editor-OxAoUr_m.js +0 -1
  351. package/dist/client/assets/category-editor-BX5BNfiN.js +0 -1
  352. package/dist/client/assets/context-CHxPejUn.js +0 -1
  353. package/dist/client/assets/discover-1nnz5mE8.js +0 -1
  354. package/dist/client/assets/flat-project-DxrfpqU8.js +0 -1
  355. package/dist/client/assets/home-R2M47XKc.js +0 -1
  356. package/dist/client/assets/index-DFBQfnNq.css +0 -1
  357. package/dist/client/assets/library-CpDr8cUt.js +0 -1
  358. package/dist/client/assets/match-site-slug-config-D3fUJ6vX.js +0 -1
  359. package/dist/client/assets/openai-conversation-Bidm8HKX.js +0 -3
  360. package/dist/client/assets/post-calendar-DVsOpmKX.js +0 -1
  361. package/dist/client/assets/project-feed-DsVk1K7o.js +0 -1
  362. package/dist/client/assets/project-reports-DKz6hsTO.js +0 -1
  363. package/dist/client/assets/project-tasks-DEHeH6xm.js +0 -1
  364. package/dist/client/assets/record-editor-BG6JZBAo.js +0 -1
  365. package/dist/client/assets/redirect-editor-BSixOpkn.js +0 -1
  366. package/dist/client/assets/reports-DQHzs4c2.js +0 -1
  367. package/dist/client/assets/route-C4g7C29_.js +0 -1
  368. package/dist/client/assets/route-iDn0dH_W.js +0 -1
  369. package/dist/client/assets/route-mD1G8miY.js +0 -1
  370. package/dist/client/assets/sections-editor-DQXGqVXO.js +0 -1
  371. package/dist/client/assets/seo-editor-BI6yz1SI.js +0 -1
  372. package/dist/client/assets/settings-tab-DjCUiptn.js +0 -5
  373. package/dist/client/assets/taskboard-analytics-DGE69gm2.js +0 -1
  374. package/dist/client/assets/tasks-DEV8yvUO.js +0 -1
  375. package/dist/client/assets/thread-analytics-Batrg_G6.js +0 -1
  376. package/dist/client/assets/thread-button-1m1VWTYv.js +0 -1
  377. package/dist/client/assets/use-chat-layout-state-ffnO3cas.js +0 -1
  378. package/dist/client/assets/use-main-panel-tabs-Ex0Ebdb5.js +0 -1
  379. package/dist/client/assets/use-new-blocks-editor-DqR1bcfV.js +0 -1
  380. package/dist/client/assets/use-project-native-view-presence-xh82wo73.js +0 -1
  381. package/dist/client/assets/useInfiniteQuery-DXdUQ48R.js +0 -1
  382. package/dist/client/assets/useSuspenseInfiniteQuery-BmynEKtw.js +0 -1
  383. package/dist/client/assets/variant-calendar-Dfcw4asd.js +0 -1
@@ -1 +1 @@
1
- import{r as x,br as b,j as c,bo as m,bp as k,e6 as p,ea as M,eb as T,bF as S,bq as A,ec as F,aC as $,c as C,l as P}from"./index-CeFrI_-f.js";var j="Toggle",_=x.forwardRef((r,e)=>{const{pressed:l,defaultPressed:s,onPressedChange:n,...a}=r,[t,o]=b({prop:l,onChange:n,defaultProp:s??!1,caller:j});return c.jsx(m.button,{type:"button","aria-pressed":t,"data-state":t?"on":"off","data-disabled":r.disabled?"":void 0,...a,ref:e,onClick:k(r.onClick,()=>{r.disabled||o(!t)})})});_.displayName=j;var v="ToggleGroup",[w]=S(v,[T]),I=T(),h=p.forwardRef((r,e)=>{const{type:l,...s}=r;if(l==="single"){const n=s;return c.jsx(D,{...n,ref:e})}if(l==="multiple"){const n=s;return c.jsx(B,{...n,ref:e})}throw new Error(`Missing prop \`type\` expected on \`${v}\``)});h.displayName=v;var[z,y]=w(v),D=p.forwardRef((r,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...a}=r,[t,o]=b({prop:l,defaultProp:s??"",onChange:n,caller:v});return c.jsx(z,{scope:r.__scopeToggleGroup,type:"single",value:p.useMemo(()=>t?[t]:[],[t]),onItemActivate:o,onItemDeactivate:p.useCallback(()=>o(""),[o]),children:c.jsx(R,{...a,ref:e})})}),B=p.forwardRef((r,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...a}=r,[t,o]=b({prop:l,defaultProp:s??[],onChange:n,caller:v}),i=p.useCallback(u=>o((g=[])=>[...g,u]),[o]),d=p.useCallback(u=>o((g=[])=>g.filter(V=>V!==u)),[o]);return c.jsx(z,{scope:r.__scopeToggleGroup,type:"multiple",value:t,onItemActivate:i,onItemDeactivate:d,children:c.jsx(R,{...a,ref:e})})});h.displayName=v;var[O,q]=w(v),R=p.forwardRef((r,e)=>{const{__scopeToggleGroup:l,disabled:s=!1,rovingFocus:n=!0,orientation:a,dir:t,loop:o=!0,...i}=r,d=I(l),u=A(t),g={role:"group",dir:u,...i};return c.jsx(O,{scope:l,rovingFocus:n,disabled:s,children:n?c.jsx(F,{asChild:!0,...d,orientation:a,dir:u,loop:o,children:c.jsx(m.div,{...g,ref:e})}):c.jsx(m.div,{...g,ref:e})})}),f="ToggleGroupItem",N=p.forwardRef((r,e)=>{const l=y(f,r.__scopeToggleGroup),s=q(f,r.__scopeToggleGroup),n=I(r.__scopeToggleGroup),a=l.value.includes(r.value),t=s.disabled||r.disabled,o={...r,pressed:a,disabled:t},i=p.useRef(null);return s.rovingFocus?c.jsx(M,{asChild:!0,...n,focusable:!t,active:a,ref:i,children:c.jsx(G,{...o,ref:e})}):c.jsx(G,{...o,ref:e})});N.displayName=f;var G=p.forwardRef((r,e)=>{const{__scopeToggleGroup:l,value:s,...n}=r,a=y(f,l),t={role:"radio","aria-checked":r.pressed,"aria-pressed":void 0},o=a.type==="single"?t:void 0;return c.jsx(_,{...o,...n,ref:e,onPressedChange:i=>{i?a.onItemActivate(s):a.onItemDeactivate(s)}})}),H=h,L=N;const U=$("inline-flex items-center justify-center gap-2 rounded-lg text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:ring-[2px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"},size:{default:"h-10 px-2 min-w-9",sm:"h-7 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),E=x.createContext({size:"default",variant:"default"});function K(r){const e=C.c(20);let l,s,n,a,t;e[0]!==r?({className:s,variant:t,size:a,children:l,...n}=r,e[0]=r,e[1]=l,e[2]=s,e[3]=n,e[4]=a,e[5]=t):(l=e[1],s=e[2],n=e[3],a=e[4],t=e[5]);let o;e[6]!==s?(o=P("group/toggle-group flex w-fit items-center rounded-lg data-[variant=outline]:shadow-xs",s),e[6]=s,e[7]=o):o=e[7];let i;e[8]!==a||e[9]!==t?(i={variant:t,size:a},e[8]=a,e[9]=t,e[10]=i):i=e[10];let d;e[11]!==l||e[12]!==i?(d=c.jsx(E.Provider,{value:i,children:l}),e[11]=l,e[12]=i,e[13]=d):d=e[13];let u;return e[14]!==n||e[15]!==a||e[16]!==o||e[17]!==d||e[18]!==t?(u=c.jsx(H,{"data-slot":"toggle-group","data-variant":t,"data-size":a,className:o,...n,children:d}),e[14]=n,e[15]=a,e[16]=o,e[17]=d,e[18]=t,e[19]=u):u=e[19],u}function Q(r){const e=C.c(18);let l,s,n,a,t;e[0]!==r?({className:s,children:l,variant:t,size:a,...n}=r,e[0]=r,e[1]=l,e[2]=s,e[3]=n,e[4]=a,e[5]=t):(l=e[1],s=e[2],n=e[3],a=e[4],t=e[5]);const o=x.useContext(E),i=o.variant||t,d=o.size||a;let u;e[6]!==s||e[7]!==o.size||e[8]!==o.variant||e[9]!==a||e[10]!==t?(u=P(U({variant:o.variant||t,size:o.size||a}),"min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-lg last:rounded-r-lg focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",s),e[6]=s,e[7]=o.size,e[8]=o.variant,e[9]=a,e[10]=t,e[11]=u):u=e[11];let g;return e[12]!==l||e[13]!==n||e[14]!==i||e[15]!==d||e[16]!==u?(g=c.jsx(L,{"data-slot":"toggle-group-item","data-variant":i,"data-size":d,className:u,...n,children:l}),e[12]=l,e[13]=n,e[14]=i,e[15]=d,e[16]=u,e[17]=g):g=e[17],g}export{Q as T,K as a};
1
+ import{r as x,br as b,j as c,bo as m,bp as k,e6 as p,ea as M,eb as T,bF as S,bq as A,ec as F,aC as $,c as C,l as P}from"./index-DUoAE5ST.js";var j="Toggle",_=x.forwardRef((r,e)=>{const{pressed:l,defaultPressed:s,onPressedChange:n,...a}=r,[t,o]=b({prop:l,onChange:n,defaultProp:s??!1,caller:j});return c.jsx(m.button,{type:"button","aria-pressed":t,"data-state":t?"on":"off","data-disabled":r.disabled?"":void 0,...a,ref:e,onClick:k(r.onClick,()=>{r.disabled||o(!t)})})});_.displayName=j;var v="ToggleGroup",[w]=S(v,[T]),I=T(),h=p.forwardRef((r,e)=>{const{type:l,...s}=r;if(l==="single"){const n=s;return c.jsx(D,{...n,ref:e})}if(l==="multiple"){const n=s;return c.jsx(B,{...n,ref:e})}throw new Error(`Missing prop \`type\` expected on \`${v}\``)});h.displayName=v;var[z,y]=w(v),D=p.forwardRef((r,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...a}=r,[t,o]=b({prop:l,defaultProp:s??"",onChange:n,caller:v});return c.jsx(z,{scope:r.__scopeToggleGroup,type:"single",value:p.useMemo(()=>t?[t]:[],[t]),onItemActivate:o,onItemDeactivate:p.useCallback(()=>o(""),[o]),children:c.jsx(R,{...a,ref:e})})}),B=p.forwardRef((r,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...a}=r,[t,o]=b({prop:l,defaultProp:s??[],onChange:n,caller:v}),i=p.useCallback(u=>o((g=[])=>[...g,u]),[o]),d=p.useCallback(u=>o((g=[])=>g.filter(V=>V!==u)),[o]);return c.jsx(z,{scope:r.__scopeToggleGroup,type:"multiple",value:t,onItemActivate:i,onItemDeactivate:d,children:c.jsx(R,{...a,ref:e})})});h.displayName=v;var[O,q]=w(v),R=p.forwardRef((r,e)=>{const{__scopeToggleGroup:l,disabled:s=!1,rovingFocus:n=!0,orientation:a,dir:t,loop:o=!0,...i}=r,d=I(l),u=A(t),g={role:"group",dir:u,...i};return c.jsx(O,{scope:l,rovingFocus:n,disabled:s,children:n?c.jsx(F,{asChild:!0,...d,orientation:a,dir:u,loop:o,children:c.jsx(m.div,{...g,ref:e})}):c.jsx(m.div,{...g,ref:e})})}),f="ToggleGroupItem",N=p.forwardRef((r,e)=>{const l=y(f,r.__scopeToggleGroup),s=q(f,r.__scopeToggleGroup),n=I(r.__scopeToggleGroup),a=l.value.includes(r.value),t=s.disabled||r.disabled,o={...r,pressed:a,disabled:t},i=p.useRef(null);return s.rovingFocus?c.jsx(M,{asChild:!0,...n,focusable:!t,active:a,ref:i,children:c.jsx(G,{...o,ref:e})}):c.jsx(G,{...o,ref:e})});N.displayName=f;var G=p.forwardRef((r,e)=>{const{__scopeToggleGroup:l,value:s,...n}=r,a=y(f,l),t={role:"radio","aria-checked":r.pressed,"aria-pressed":void 0},o=a.type==="single"?t:void 0;return c.jsx(_,{...o,...n,ref:e,onPressedChange:i=>{i?a.onItemActivate(s):a.onItemDeactivate(s)}})}),H=h,L=N;const U=$("inline-flex items-center justify-center gap-2 rounded-lg text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:ring-[2px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"},size:{default:"h-10 px-2 min-w-9",sm:"h-7 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),E=x.createContext({size:"default",variant:"default"});function K(r){const e=C.c(20);let l,s,n,a,t;e[0]!==r?({className:s,variant:t,size:a,children:l,...n}=r,e[0]=r,e[1]=l,e[2]=s,e[3]=n,e[4]=a,e[5]=t):(l=e[1],s=e[2],n=e[3],a=e[4],t=e[5]);let o;e[6]!==s?(o=P("group/toggle-group flex w-fit items-center rounded-lg data-[variant=outline]:shadow-xs",s),e[6]=s,e[7]=o):o=e[7];let i;e[8]!==a||e[9]!==t?(i={variant:t,size:a},e[8]=a,e[9]=t,e[10]=i):i=e[10];let d;e[11]!==l||e[12]!==i?(d=c.jsx(E.Provider,{value:i,children:l}),e[11]=l,e[12]=i,e[13]=d):d=e[13];let u;return e[14]!==n||e[15]!==a||e[16]!==o||e[17]!==d||e[18]!==t?(u=c.jsx(H,{"data-slot":"toggle-group","data-variant":t,"data-size":a,className:o,...n,children:d}),e[14]=n,e[15]=a,e[16]=o,e[17]=d,e[18]=t,e[19]=u):u=e[19],u}function Q(r){const e=C.c(18);let l,s,n,a,t;e[0]!==r?({className:s,children:l,variant:t,size:a,...n}=r,e[0]=r,e[1]=l,e[2]=s,e[3]=n,e[4]=a,e[5]=t):(l=e[1],s=e[2],n=e[3],a=e[4],t=e[5]);const o=x.useContext(E),i=o.variant||t,d=o.size||a;let u;e[6]!==s||e[7]!==o.size||e[8]!==o.variant||e[9]!==a||e[10]!==t?(u=P(U({variant:o.variant||t,size:o.size||a}),"min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-lg last:rounded-r-lg focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",s),e[6]=s,e[7]=o.size,e[8]=o.variant,e[9]=a,e[10]=t,e[11]=u):u=e[11];let g;return e[12]!==l||e[13]!==n||e[14]!==i||e[15]!==d||e[16]!==u?(g=c.jsx(L,{"data-slot":"toggle-group-item","data-variant":i,"data-size":d,className:u,...n,children:l}),e[12]=l,e[13]=n,e[14]=i,e[15]=d,e[16]=u,e[17]=g):g=e[17],g}export{Q as T,K as a};
@@ -1 +1 @@
1
- import{c as f,l as u,j as b,B as d}from"./index-CeFrI_-f.js";const v="focus-visible:not-forced-colors:outline-none focus-visible:forced-colors:outline-2 focus-visible:forced-colors:outline-offset-0 focus-visible:ring-0 focus-visible:border-border focus-visible:inset-ring-2 focus-visible:inset-ring-ring/50";function m(n){return u("[transition:background-color_180ms_ease,color_180ms_ease] hover:bg-sidebar-accent hover:text-sidebar-foreground dark:hover:bg-sidebar-accent",v,n?"bg-sidebar-accent text-sidebar-foreground":"text-sidebar-foreground/60")}function p(n){const e=f.c(14);let o,s,t,i,c;e[0]!==n?({active:o,className:s,ref:i,type:c,...t}=n,e[0]=n,e[1]=o,e[2]=s,e[3]=t,e[4]=i,e[5]=c):(o=e[1],s=e[2],t=e[3],i=e[4],c=e[5]);const a=c===void 0?"button":c;let r;e[6]!==o||e[7]!==s?(r=u("relative size-10 md:size-7","max-md:[&_svg:not([class*='size-'])]:size-5",m(o),s),e[6]=o,e[7]=s,e[8]=r):r=e[8];let l;return e[9]!==t||e[10]!==i||e[11]!==r||e[12]!==a?(l=b.jsx(d,{ref:i,type:a,variant:"ghost",size:"icon-sm",className:r,...t}),e[9]=t,e[10]=i,e[11]=r,e[12]=a,e[13]=l):l=e[13],l}export{v as I,p as T};
1
+ import{c as f,l as u,j as b,B as d}from"./index-DUoAE5ST.js";const v="focus-visible:not-forced-colors:outline-none focus-visible:forced-colors:outline-2 focus-visible:forced-colors:outline-offset-0 focus-visible:ring-0 focus-visible:border-border focus-visible:inset-ring-2 focus-visible:inset-ring-ring/50";function m(n){return u("[transition:background-color_180ms_ease,color_180ms_ease] hover:bg-sidebar-accent hover:text-sidebar-foreground dark:hover:bg-sidebar-accent",v,n?"bg-sidebar-accent text-sidebar-foreground":"text-sidebar-foreground/60")}function p(n){const e=f.c(14);let o,s,t,i,c;e[0]!==n?({active:o,className:s,ref:i,type:c,...t}=n,e[0]=n,e[1]=o,e[2]=s,e[3]=t,e[4]=i,e[5]=c):(o=e[1],s=e[2],t=e[3],i=e[4],c=e[5]);const a=c===void 0?"button":c;let r;e[6]!==o||e[7]!==s?(r=u("relative size-10 md:size-7","max-md:[&_svg:not([class*='size-'])]:size-5",m(o),s),e[6]=o,e[7]=s,e[8]=r):r=e[8];let l;return e[9]!==t||e[10]!==i||e[11]!==r||e[12]!==a?(l=b.jsx(d,{ref:i,type:a,variant:"ghost",size:"icon-sm",className:r,...t}),e[9]=t,e[10]=i,e[11]=r,e[12]=a,e[13]=l):l=e[13],l}export{v as I,p as T};
@@ -1 +1 @@
1
- import{r as i,bn as K,br as W,j as c,bs as J,bm as H,bt as Q,bo as Z,bp as b,dc as S,bv as ee,bx as $,bE as te,bH as oe,bF as re,dd as ne,bI as se,c as j,l as ae}from"./index-CeFrI_-f.js";import{R as ie}from"./index-DFK3AqOd.js";var[O]=re("Tooltip",[$]),D=$(),G="TooltipProvider",le=700,A="tooltip.open",[ce,k]=O(G),F=o=>{const{__scopeTooltip:e,delayDuration:t=le,skipDelayDuration:r=300,disableHoverableContent:n=!1,children:s}=o,l=i.useRef(!0),d=i.useRef(!1),a=i.useRef(0);return i.useEffect(()=>{const p=a.current;return()=>window.clearTimeout(p)},[]),c.jsx(ce,{scope:e,isOpenDelayedRef:l,delayDuration:t,onOpen:i.useCallback(()=>{window.clearTimeout(a.current),l.current=!1},[]),onClose:i.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(()=>l.current=!0,r)},[r]),isPointerInTransitRef:d,onPointerInTransitChange:i.useCallback(p=>{d.current=p},[]),disableHoverableContent:n,children:s})};F.displayName=G;var R="Tooltip",[ue,_]=O(R),z=o=>{const{__scopeTooltip:e,children:t,open:r,defaultOpen:n,onOpenChange:s,disableHoverableContent:l,delayDuration:d}=o,a=k(R,o.__scopeTooltip),p=D(e),[u,v]=i.useState(null),x=K(),f=i.useRef(0),h=l??a.disableHoverableContent,T=d??a.delayDuration,g=i.useRef(!1),[y,m]=W({prop:r,defaultProp:n??!1,onChange:N=>{N?(a.onOpen(),document.dispatchEvent(new CustomEvent(A))):a.onClose(),s?.(N)},caller:R}),w=i.useMemo(()=>y?g.current?"delayed-open":"instant-open":"closed",[y]),E=i.useCallback(()=>{window.clearTimeout(f.current),f.current=0,g.current=!1,m(!0)},[m]),P=i.useCallback(()=>{window.clearTimeout(f.current),f.current=0,m(!1)},[m]),M=i.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>{g.current=!0,m(!0),f.current=0},T)},[T,m]);return i.useEffect(()=>()=>{f.current&&(window.clearTimeout(f.current),f.current=0)},[]),c.jsx(J,{...p,children:c.jsx(ue,{scope:e,contentId:x,open:y,stateAttribute:w,trigger:u,onTriggerChange:v,onTriggerEnter:i.useCallback(()=>{a.isOpenDelayedRef.current?M():E()},[a.isOpenDelayedRef,M,E]),onTriggerLeave:i.useCallback(()=>{h?P():(window.clearTimeout(f.current),f.current=0)},[P,h]),onOpen:E,onClose:P,disableHoverableContent:h,children:t})})};z.displayName=R;var L="TooltipTrigger",B=i.forwardRef((o,e)=>{const{__scopeTooltip:t,...r}=o,n=_(L,t),s=k(L,t),l=D(t),d=i.useRef(null),a=H(e,d,n.onTriggerChange),p=i.useRef(!1),u=i.useRef(!1),v=i.useCallback(()=>p.current=!1,[]);return i.useEffect(()=>()=>document.removeEventListener("pointerup",v),[v]),c.jsx(Q,{asChild:!0,...l,children:c.jsx(Z.button,{"aria-describedby":n.open?n.contentId:void 0,"data-state":n.stateAttribute,...r,ref:a,onPointerMove:b(o.onPointerMove,x=>{x.pointerType!=="touch"&&!u.current&&!s.isPointerInTransitRef.current&&(n.onTriggerEnter(),u.current=!0)}),onPointerLeave:b(o.onPointerLeave,()=>{n.onTriggerLeave(),u.current=!1}),onPointerDown:b(o.onPointerDown,()=>{n.open&&n.onClose(),p.current=!0,document.addEventListener("pointerup",v,{once:!0})}),onFocus:b(o.onFocus,()=>{p.current||n.onOpen()}),onBlur:b(o.onBlur,n.onClose),onClick:b(o.onClick,n.onClose)})})});B.displayName=L;var I="TooltipPortal",[de,pe]=O(I,{forceMount:void 0}),U=o=>{const{__scopeTooltip:e,forceMount:t,children:r,container:n}=o,s=_(I,e);return c.jsx(de,{scope:e,forceMount:t,children:c.jsx(S,{present:t||s.open,children:c.jsx(ee,{asChild:!0,container:n,children:r})})})};U.displayName=I;var C="TooltipContent",V=i.forwardRef((o,e)=>{const t=pe(C,o.__scopeTooltip),{forceMount:r=t.forceMount,side:n="top",...s}=o,l=_(C,o.__scopeTooltip);return c.jsx(S,{present:r||l.open,children:l.disableHoverableContent?c.jsx(Y,{side:n,...s,ref:e}):c.jsx(fe,{side:n,...s,ref:e})})}),fe=i.forwardRef((o,e)=>{const t=_(C,o.__scopeTooltip),r=k(C,o.__scopeTooltip),n=i.useRef(null),s=H(e,n),[l,d]=i.useState(null),{trigger:a,onClose:p}=t,u=n.current,{onPointerInTransitChange:v}=r,x=i.useCallback(()=>{d(null),v(!1)},[v]),f=i.useCallback((h,T)=>{const g=h.currentTarget,y={x:h.clientX,y:h.clientY},m=ge(y,g.getBoundingClientRect()),w=Te(y,m),E=me(T.getBoundingClientRect()),P=be([...w,...E]);d(P),v(!0)},[v]);return i.useEffect(()=>()=>x(),[x]),i.useEffect(()=>{if(a&&u){const h=g=>f(g,u),T=g=>f(g,a);return a.addEventListener("pointerleave",h),u.addEventListener("pointerleave",T),()=>{a.removeEventListener("pointerleave",h),u.removeEventListener("pointerleave",T)}}},[a,u,f,x]),i.useEffect(()=>{if(l){const h=T=>{const g=T.target,y={x:T.clientX,y:T.clientY},m=a?.contains(g)||u?.contains(g),w=!ye(y,l);m?x():w&&(x(),p())};return document.addEventListener("pointermove",h),()=>document.removeEventListener("pointermove",h)}},[a,u,l,p,x]),c.jsx(Y,{...o,ref:s})}),[ve,xe]=O(R,{isInside:!1}),he=ne("TooltipContent"),Y=i.forwardRef((o,e)=>{const{__scopeTooltip:t,children:r,"aria-label":n,onEscapeKeyDown:s,onPointerDownOutside:l,...d}=o,a=_(C,t),p=D(t),{onClose:u}=a;return i.useEffect(()=>(document.addEventListener(A,u),()=>document.removeEventListener(A,u)),[u]),i.useEffect(()=>{if(a.trigger){const v=x=>{x.target?.contains(a.trigger)&&u()};return window.addEventListener("scroll",v,{capture:!0}),()=>window.removeEventListener("scroll",v,{capture:!0})}},[a.trigger,u]),c.jsx(te,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:v=>v.preventDefault(),onDismiss:u,children:c.jsxs(oe,{"data-state":a.stateAttribute,...p,...d,ref:e,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(he,{children:r}),c.jsx(ve,{scope:t,isInside:!0,children:c.jsx(ie,{id:a.contentId,role:"tooltip",children:n||r})})]})})});V.displayName=C;var q="TooltipArrow",X=i.forwardRef((o,e)=>{const{__scopeTooltip:t,...r}=o,n=D(t);return xe(q,t).isInside?null:c.jsx(se,{...n,...r,ref:e})});X.displayName=q;function ge(o,e){const t=Math.abs(e.top-o.y),r=Math.abs(e.bottom-o.y),n=Math.abs(e.right-o.x),s=Math.abs(e.left-o.x);switch(Math.min(t,r,n,s)){case s:return"left";case n:return"right";case t:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Te(o,e,t=5){const r=[];switch(e){case"top":r.push({x:o.x-t,y:o.y+t},{x:o.x+t,y:o.y+t});break;case"bottom":r.push({x:o.x-t,y:o.y-t},{x:o.x+t,y:o.y-t});break;case"left":r.push({x:o.x+t,y:o.y-t},{x:o.x+t,y:o.y+t});break;case"right":r.push({x:o.x-t,y:o.y-t},{x:o.x-t,y:o.y+t});break}return r}function me(o){const{top:e,right:t,bottom:r,left:n}=o;return[{x:n,y:e},{x:t,y:e},{x:t,y:r},{x:n,y:r}]}function ye(o,e){const{x:t,y:r}=o;let n=!1;for(let s=0,l=e.length-1;s<e.length;l=s++){const d=e[s],a=e[l],p=d.x,u=d.y,v=a.x,x=a.y;u>r!=x>r&&t<(v-p)*(r-u)/(x-u)+p&&(n=!n)}return n}function be(o){const e=o.slice();return e.sort((t,r)=>t.x<r.x?-1:t.x>r.x?1:t.y<r.y?-1:t.y>r.y?1:0),Ce(e)}function Ce(o){if(o.length<=1)return o.slice();const e=[];for(let r=0;r<o.length;r++){const n=o[r];for(;e.length>=2;){const s=e[e.length-1],l=e[e.length-2];if((s.x-l.x)*(n.y-l.y)>=(s.y-l.y)*(n.x-l.x))e.pop();else break}e.push(n)}e.pop();const t=[];for(let r=o.length-1;r>=0;r--){const n=o[r];for(;t.length>=2;){const s=t[t.length-1],l=t[t.length-2];if((s.x-l.x)*(n.y-l.y)>=(s.y-l.y)*(n.x-l.x))t.pop();else break}t.push(n)}return t.pop(),e.length===1&&t.length===1&&e[0].x===t[0].x&&e[0].y===t[0].y?e:e.concat(t)}var we=F,Ee=z,Pe=B,Re=U,_e=V,je=X;function Oe(o){const e=j.c(6);let t,r;e[0]!==o?({delayDuration:r,...t}=o,e[0]=o,e[1]=t,e[2]=r):(t=e[1],r=e[2]);const n=r===void 0?0:r;let s;return e[3]!==n||e[4]!==t?(s=c.jsx(we,{"data-slot":"tooltip-provider",delayDuration:n,...t}),e[3]=n,e[4]=t,e[5]=s):s=e[5],s}function Le(o){const e=j.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let r;return e[2]!==t?(r=c.jsx(Oe,{children:c.jsx(Ee,{"data-slot":"tooltip",...t})}),e[2]=t,e[3]=r):r=e[3],r}function ke(o){const e=j.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let r;return e[2]!==t?(r=c.jsx(Pe,{"data-slot":"tooltip-trigger",...t}),e[2]=t,e[3]=r):r=e[3],r}function Ie(o){const e=j.c(13);let t,r,n,s;e[0]!==o?({className:r,sideOffset:s,children:t,...n}=o,e[0]=o,e[1]=t,e[2]=r,e[3]=n,e[4]=s):(t=e[1],r=e[2],n=e[3],s=e[4]);const l=s===void 0?0:s;let d;e[5]!==r?(d=ae("notranslate bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",r),e[5]=r,e[6]=d):d=e[6];let a;e[7]===Symbol.for("react.memo_cache_sentinel")?(a=c.jsx(je,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"}),e[7]=a):a=e[7];let p;return e[8]!==t||e[9]!==n||e[10]!==l||e[11]!==d?(p=c.jsx(Re,{children:c.jsxs(_e,{"data-slot":"tooltip-content",sideOffset:l,translate:"no",className:d,...n,children:[t,a]})}),e[8]=t,e[9]=n,e[10]=l,e[11]=d,e[12]=p):p=e[12],p}export{ke as T,Ie as a,Le as b,Oe as c};
1
+ import{r as i,bn as K,br as W,j as c,bs as J,bm as H,bt as Q,bo as Z,bp as b,dc as S,bv as ee,bx as $,bE as te,bH as oe,bF as re,dd as ne,bI as se,c as j,l as ae}from"./index-DUoAE5ST.js";import{R as ie}from"./index-D6WmSRmP.js";var[O]=re("Tooltip",[$]),D=$(),G="TooltipProvider",le=700,A="tooltip.open",[ce,k]=O(G),F=o=>{const{__scopeTooltip:e,delayDuration:t=le,skipDelayDuration:r=300,disableHoverableContent:n=!1,children:s}=o,l=i.useRef(!0),d=i.useRef(!1),a=i.useRef(0);return i.useEffect(()=>{const p=a.current;return()=>window.clearTimeout(p)},[]),c.jsx(ce,{scope:e,isOpenDelayedRef:l,delayDuration:t,onOpen:i.useCallback(()=>{window.clearTimeout(a.current),l.current=!1},[]),onClose:i.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(()=>l.current=!0,r)},[r]),isPointerInTransitRef:d,onPointerInTransitChange:i.useCallback(p=>{d.current=p},[]),disableHoverableContent:n,children:s})};F.displayName=G;var R="Tooltip",[ue,_]=O(R),z=o=>{const{__scopeTooltip:e,children:t,open:r,defaultOpen:n,onOpenChange:s,disableHoverableContent:l,delayDuration:d}=o,a=k(R,o.__scopeTooltip),p=D(e),[u,v]=i.useState(null),x=K(),f=i.useRef(0),h=l??a.disableHoverableContent,T=d??a.delayDuration,g=i.useRef(!1),[y,m]=W({prop:r,defaultProp:n??!1,onChange:N=>{N?(a.onOpen(),document.dispatchEvent(new CustomEvent(A))):a.onClose(),s?.(N)},caller:R}),w=i.useMemo(()=>y?g.current?"delayed-open":"instant-open":"closed",[y]),E=i.useCallback(()=>{window.clearTimeout(f.current),f.current=0,g.current=!1,m(!0)},[m]),P=i.useCallback(()=>{window.clearTimeout(f.current),f.current=0,m(!1)},[m]),M=i.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>{g.current=!0,m(!0),f.current=0},T)},[T,m]);return i.useEffect(()=>()=>{f.current&&(window.clearTimeout(f.current),f.current=0)},[]),c.jsx(J,{...p,children:c.jsx(ue,{scope:e,contentId:x,open:y,stateAttribute:w,trigger:u,onTriggerChange:v,onTriggerEnter:i.useCallback(()=>{a.isOpenDelayedRef.current?M():E()},[a.isOpenDelayedRef,M,E]),onTriggerLeave:i.useCallback(()=>{h?P():(window.clearTimeout(f.current),f.current=0)},[P,h]),onOpen:E,onClose:P,disableHoverableContent:h,children:t})})};z.displayName=R;var L="TooltipTrigger",B=i.forwardRef((o,e)=>{const{__scopeTooltip:t,...r}=o,n=_(L,t),s=k(L,t),l=D(t),d=i.useRef(null),a=H(e,d,n.onTriggerChange),p=i.useRef(!1),u=i.useRef(!1),v=i.useCallback(()=>p.current=!1,[]);return i.useEffect(()=>()=>document.removeEventListener("pointerup",v),[v]),c.jsx(Q,{asChild:!0,...l,children:c.jsx(Z.button,{"aria-describedby":n.open?n.contentId:void 0,"data-state":n.stateAttribute,...r,ref:a,onPointerMove:b(o.onPointerMove,x=>{x.pointerType!=="touch"&&!u.current&&!s.isPointerInTransitRef.current&&(n.onTriggerEnter(),u.current=!0)}),onPointerLeave:b(o.onPointerLeave,()=>{n.onTriggerLeave(),u.current=!1}),onPointerDown:b(o.onPointerDown,()=>{n.open&&n.onClose(),p.current=!0,document.addEventListener("pointerup",v,{once:!0})}),onFocus:b(o.onFocus,()=>{p.current||n.onOpen()}),onBlur:b(o.onBlur,n.onClose),onClick:b(o.onClick,n.onClose)})})});B.displayName=L;var I="TooltipPortal",[de,pe]=O(I,{forceMount:void 0}),U=o=>{const{__scopeTooltip:e,forceMount:t,children:r,container:n}=o,s=_(I,e);return c.jsx(de,{scope:e,forceMount:t,children:c.jsx(S,{present:t||s.open,children:c.jsx(ee,{asChild:!0,container:n,children:r})})})};U.displayName=I;var C="TooltipContent",V=i.forwardRef((o,e)=>{const t=pe(C,o.__scopeTooltip),{forceMount:r=t.forceMount,side:n="top",...s}=o,l=_(C,o.__scopeTooltip);return c.jsx(S,{present:r||l.open,children:l.disableHoverableContent?c.jsx(Y,{side:n,...s,ref:e}):c.jsx(fe,{side:n,...s,ref:e})})}),fe=i.forwardRef((o,e)=>{const t=_(C,o.__scopeTooltip),r=k(C,o.__scopeTooltip),n=i.useRef(null),s=H(e,n),[l,d]=i.useState(null),{trigger:a,onClose:p}=t,u=n.current,{onPointerInTransitChange:v}=r,x=i.useCallback(()=>{d(null),v(!1)},[v]),f=i.useCallback((h,T)=>{const g=h.currentTarget,y={x:h.clientX,y:h.clientY},m=ge(y,g.getBoundingClientRect()),w=Te(y,m),E=me(T.getBoundingClientRect()),P=be([...w,...E]);d(P),v(!0)},[v]);return i.useEffect(()=>()=>x(),[x]),i.useEffect(()=>{if(a&&u){const h=g=>f(g,u),T=g=>f(g,a);return a.addEventListener("pointerleave",h),u.addEventListener("pointerleave",T),()=>{a.removeEventListener("pointerleave",h),u.removeEventListener("pointerleave",T)}}},[a,u,f,x]),i.useEffect(()=>{if(l){const h=T=>{const g=T.target,y={x:T.clientX,y:T.clientY},m=a?.contains(g)||u?.contains(g),w=!ye(y,l);m?x():w&&(x(),p())};return document.addEventListener("pointermove",h),()=>document.removeEventListener("pointermove",h)}},[a,u,l,p,x]),c.jsx(Y,{...o,ref:s})}),[ve,xe]=O(R,{isInside:!1}),he=ne("TooltipContent"),Y=i.forwardRef((o,e)=>{const{__scopeTooltip:t,children:r,"aria-label":n,onEscapeKeyDown:s,onPointerDownOutside:l,...d}=o,a=_(C,t),p=D(t),{onClose:u}=a;return i.useEffect(()=>(document.addEventListener(A,u),()=>document.removeEventListener(A,u)),[u]),i.useEffect(()=>{if(a.trigger){const v=x=>{x.target?.contains(a.trigger)&&u()};return window.addEventListener("scroll",v,{capture:!0}),()=>window.removeEventListener("scroll",v,{capture:!0})}},[a.trigger,u]),c.jsx(te,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:v=>v.preventDefault(),onDismiss:u,children:c.jsxs(oe,{"data-state":a.stateAttribute,...p,...d,ref:e,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(he,{children:r}),c.jsx(ve,{scope:t,isInside:!0,children:c.jsx(ie,{id:a.contentId,role:"tooltip",children:n||r})})]})})});V.displayName=C;var q="TooltipArrow",X=i.forwardRef((o,e)=>{const{__scopeTooltip:t,...r}=o,n=D(t);return xe(q,t).isInside?null:c.jsx(se,{...n,...r,ref:e})});X.displayName=q;function ge(o,e){const t=Math.abs(e.top-o.y),r=Math.abs(e.bottom-o.y),n=Math.abs(e.right-o.x),s=Math.abs(e.left-o.x);switch(Math.min(t,r,n,s)){case s:return"left";case n:return"right";case t:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Te(o,e,t=5){const r=[];switch(e){case"top":r.push({x:o.x-t,y:o.y+t},{x:o.x+t,y:o.y+t});break;case"bottom":r.push({x:o.x-t,y:o.y-t},{x:o.x+t,y:o.y-t});break;case"left":r.push({x:o.x+t,y:o.y-t},{x:o.x+t,y:o.y+t});break;case"right":r.push({x:o.x-t,y:o.y-t},{x:o.x-t,y:o.y+t});break}return r}function me(o){const{top:e,right:t,bottom:r,left:n}=o;return[{x:n,y:e},{x:t,y:e},{x:t,y:r},{x:n,y:r}]}function ye(o,e){const{x:t,y:r}=o;let n=!1;for(let s=0,l=e.length-1;s<e.length;l=s++){const d=e[s],a=e[l],p=d.x,u=d.y,v=a.x,x=a.y;u>r!=x>r&&t<(v-p)*(r-u)/(x-u)+p&&(n=!n)}return n}function be(o){const e=o.slice();return e.sort((t,r)=>t.x<r.x?-1:t.x>r.x?1:t.y<r.y?-1:t.y>r.y?1:0),Ce(e)}function Ce(o){if(o.length<=1)return o.slice();const e=[];for(let r=0;r<o.length;r++){const n=o[r];for(;e.length>=2;){const s=e[e.length-1],l=e[e.length-2];if((s.x-l.x)*(n.y-l.y)>=(s.y-l.y)*(n.x-l.x))e.pop();else break}e.push(n)}e.pop();const t=[];for(let r=o.length-1;r>=0;r--){const n=o[r];for(;t.length>=2;){const s=t[t.length-1],l=t[t.length-2];if((s.x-l.x)*(n.y-l.y)>=(s.y-l.y)*(n.x-l.x))t.pop();else break}t.push(n)}return t.pop(),e.length===1&&t.length===1&&e[0].x===t[0].x&&e[0].y===t[0].y?e:e.concat(t)}var we=F,Ee=z,Pe=B,Re=U,_e=V,je=X;function Oe(o){const e=j.c(6);let t,r;e[0]!==o?({delayDuration:r,...t}=o,e[0]=o,e[1]=t,e[2]=r):(t=e[1],r=e[2]);const n=r===void 0?0:r;let s;return e[3]!==n||e[4]!==t?(s=c.jsx(we,{"data-slot":"tooltip-provider",delayDuration:n,...t}),e[3]=n,e[4]=t,e[5]=s):s=e[5],s}function Le(o){const e=j.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let r;return e[2]!==t?(r=c.jsx(Oe,{children:c.jsx(Ee,{"data-slot":"tooltip",...t})}),e[2]=t,e[3]=r):r=e[3],r}function ke(o){const e=j.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let r;return e[2]!==t?(r=c.jsx(Pe,{"data-slot":"tooltip-trigger",...t}),e[2]=t,e[3]=r):r=e[3],r}function Ie(o){const e=j.c(13);let t,r,n,s;e[0]!==o?({className:r,sideOffset:s,children:t,...n}=o,e[0]=o,e[1]=t,e[2]=r,e[3]=n,e[4]=s):(t=e[1],r=e[2],n=e[3],s=e[4]);const l=s===void 0?0:s;let d;e[5]!==r?(d=ae("notranslate bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",r),e[5]=r,e[6]=d):d=e[6];let a;e[7]===Symbol.for("react.memo_cache_sentinel")?(a=c.jsx(je,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"}),e[7]=a):a=e[7];let p;return e[8]!==t||e[9]!==n||e[10]!==l||e[11]!==d?(p=c.jsx(Re,{children:c.jsxs(_e,{"data-slot":"tooltip-content",sideOffset:l,translate:"no",className:d,...n,children:[t,a]})}),e[8]=t,e[9]=n,e[10]=l,e[11]=d,e[12]=p):p=e[12],p}export{ke as T,Ie as a,Le as b,Oe as c};
@@ -1 +1 @@
1
- import{v as m,T as _}from"./index-CeFrI_-f.js";const y="onepager",l="report:auth-attempt:",p=3600*1e3;function h(e){const t=new URLSearchParams(e),n=t.get("share_id")||void 0,o=t.get("email_run_id")||void 0,r=t.get("utm_source")||void 0,u=t.get("utm_medium")||void 0,a=t.get("utm_campaign")||void 0;return{entrypoint:n||r==="share"?"share":o||t.has("d")||r==="email"?"email":r?"campaign":"direct",...n?{share_id:n}:{},...o?{email_run_id:o}:{},...r?{utm_source:r}:{},...u?{utm_medium:u}:{},...a?{utm_campaign:a}:{}}}function c(){return h(typeof window>"u"?"":window.location.search)}function i(e){return`${l}${e}`}function f(){try{return globalThis.crypto.randomUUID()}catch{return`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}}function s(e){try{const t=window.sessionStorage.getItem(i(e));if(!t)return null;const n=JSON.parse(t);return n.domain!==e||typeof n.attempt_id!="string"||typeof n.gate_shown_at!="number"||Date.now()-n.gate_shown_at>p?(window.sessionStorage.removeItem(i(e)),null):n}catch{return null}}function d(e){try{window.sessionStorage.setItem(i(e.domain),JSON.stringify(e))}catch{}}function g(e){const t=s(e);if(t)return t;const n={attempt_id:f(),domain:e,gate_shown_at:Date.now(),...c()};return d(n),n}function T(e,t){const n={...g(e),...t};return d(n),n}function v(e){return{auth_attempt_id:e.attempt_id,entrypoint:e.entrypoint,...e.share_id?{share_id:e.share_id}:{},...e.email_run_id?{email_run_id:e.email_run_id}:{},...e.utm_source?{utm_source:e.utm_source}:{},...e.utm_medium?{utm_medium:e.utm_medium}:{},...e.utm_campaign?{utm_campaign:e.utm_campaign}:{}}}function R(e){const t=s(e);if(!t)return null;try{window.sessionStorage.removeItem(i(e))}catch{}return t}function S(e){const t=e.toLowerCase();return t==="invalid_email"?"invalid_email":t.includes("429")||t.includes("rate limit")?"rate_limited":t.includes("otp")||t.includes("verification code")||t.includes("invalid code")||t.includes("expired code")||t.includes("código")||t.includes("codigo")?"invalid_or_expired_code":t.includes("401")||t.includes("unauthorized")?"invalid_credentials":t.includes("409")||t.includes("already exists")?"account_exists":t.includes("network")||t.includes("fetch")?"network":t.includes("cancel")||t.includes("closed")?"cancelled":"unknown"}function I(e,t,n){if(m())try{_.capture(e,{...c(),...t},n)}catch{}}export{y as R,v as a,S as b,I as c,g as d,R as e,h as r,T as u};
1
+ import{v as m,T as _}from"./index-DUoAE5ST.js";const y="onepager",l="report:auth-attempt:",p=3600*1e3;function h(e){const t=new URLSearchParams(e),n=t.get("share_id")||void 0,o=t.get("email_run_id")||void 0,r=t.get("utm_source")||void 0,u=t.get("utm_medium")||void 0,a=t.get("utm_campaign")||void 0;return{entrypoint:n||r==="share"?"share":o||t.has("d")||r==="email"?"email":r?"campaign":"direct",...n?{share_id:n}:{},...o?{email_run_id:o}:{},...r?{utm_source:r}:{},...u?{utm_medium:u}:{},...a?{utm_campaign:a}:{}}}function c(){return h(typeof window>"u"?"":window.location.search)}function i(e){return`${l}${e}`}function f(){try{return globalThis.crypto.randomUUID()}catch{return`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}}function s(e){try{const t=window.sessionStorage.getItem(i(e));if(!t)return null;const n=JSON.parse(t);return n.domain!==e||typeof n.attempt_id!="string"||typeof n.gate_shown_at!="number"||Date.now()-n.gate_shown_at>p?(window.sessionStorage.removeItem(i(e)),null):n}catch{return null}}function d(e){try{window.sessionStorage.setItem(i(e.domain),JSON.stringify(e))}catch{}}function g(e){const t=s(e);if(t)return t;const n={attempt_id:f(),domain:e,gate_shown_at:Date.now(),...c()};return d(n),n}function T(e,t){const n={...g(e),...t};return d(n),n}function v(e){return{auth_attempt_id:e.attempt_id,entrypoint:e.entrypoint,...e.share_id?{share_id:e.share_id}:{},...e.email_run_id?{email_run_id:e.email_run_id}:{},...e.utm_source?{utm_source:e.utm_source}:{},...e.utm_medium?{utm_medium:e.utm_medium}:{},...e.utm_campaign?{utm_campaign:e.utm_campaign}:{}}}function R(e){const t=s(e);if(!t)return null;try{window.sessionStorage.removeItem(i(e))}catch{}return t}function S(e){const t=e.toLowerCase();return t==="invalid_email"?"invalid_email":t.includes("429")||t.includes("rate limit")?"rate_limited":t.includes("otp")||t.includes("verification code")||t.includes("invalid code")||t.includes("expired code")||t.includes("código")||t.includes("codigo")?"invalid_or_expired_code":t.includes("401")||t.includes("unauthorized")?"invalid_credentials":t.includes("409")||t.includes("already exists")?"account_exists":t.includes("network")||t.includes("fetch")?"network":t.includes("cancel")||t.includes("closed")?"cancelled":"unknown"}function I(e,t,n){if(m())try{_.capture(e,{...c(),...t},n)}catch{}}export{y as R,v as a,S as b,I as c,g as d,R as e,h as r,T as u};
@@ -1,4 +1,4 @@
1
- import{cQ as l,cU as e,bN as h,ap as r,ed as b,ao as t,bK as p,bM as d,aF as c,bO as m,cS as v,ee as E,ef as I,eg as w,cr as x,dC as T,eh as z,ei as C,ej as D,c6 as O,ek as B,cI as V,el as W,em as $,en as F,eo as K,cE as J,cs as j,cB as Z,cC as Q,cD as Y,cu as G,cA as X,ct as ee,cM as te}from"./index-CeFrI_-f.js";import{P as oe}from"./use-mcp-client-CFwJWbBp.js";(n=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(n,{get:(o,s)=>(typeof require<"u"?require:o)[s]}):n)(function(n){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+n+'" is not supported')});class se extends oe{_registeredMethods=new Set;_eventSlots=new Map;onEventDispatch(o,s){}_ensureEventSlot(o){let s=this._eventSlots.get(o);if(!s){let i=this.eventSchemas[o];if(!i)throw Error(`Unknown event: ${String(o)}`);s={listeners:[]},this._eventSlots.set(o,s);let a=i.shape.method.value;this._registeredMethods.add(a);let u=s;super.setNotificationHandler(i,g=>{let R=g.params;this.onEventDispatch(o,R),u.onHandler?.(R);for(let A of[...u.listeners])A(R)})}return s}setEventHandler(o,s){let i=this._ensureEventSlot(o);i.onHandler&&s&&console.warn(`[MCP Apps] on${String(o)} handler replaced. Use addEventListener("${String(o)}", …) to add multiple listeners without replacing.`),i.onHandler=s}getEventHandler(o){return this._eventSlots.get(o)?.onHandler}addEventListener(o,s){this._ensureEventSlot(o).listeners.push(s)}removeEventListener(o,s){let i=this._eventSlots.get(o);if(!i)return;let a=i.listeners.indexOf(s);a!==-1&&i.listeners.splice(a,1)}setRequestHandler=(o,s)=>{this._assertMethodNotRegistered(o,"setRequestHandler"),super.setRequestHandler(o,s)};setNotificationHandler=(o,s)=>{this._assertMethodNotRegistered(o,"setNotificationHandler"),super.setNotificationHandler(o,s)};warnIfRequestHandlerReplaced(o,s,i){s&&i&&console.warn(`[MCP Apps] ${o} handler replaced. Previous handler will no longer be called.`)}replaceRequestHandler=(o,s)=>{let i=o.shape.method.value;this._registeredMethods.add(i),super.setRequestHandler(o,s)};_assertMethodNotRegistered(o,s){let i=o.shape.method.value;if(this._registeredMethods.has(i))throw Error(`Handler for "${i}" already registered (via ${s}). Use addEventListener() to attach multiple listeners, or the on* setter for replace semantics.`);this._registeredMethods.add(i)}}var L="2026-01-26",ie="ui/notifications/tool-input-partial",re=l([e("light"),e("dark")]).describe("Color theme preference for the host environment."),f=l([e("inline"),e("fullscreen"),e("pip")]).describe("Display mode for UI presentation."),ae=l([e("--color-background-primary"),e("--color-background-secondary"),e("--color-background-tertiary"),e("--color-background-inverse"),e("--color-background-ghost"),e("--color-background-info"),e("--color-background-danger"),e("--color-background-success"),e("--color-background-warning"),e("--color-background-disabled"),e("--color-text-primary"),e("--color-text-secondary"),e("--color-text-tertiary"),e("--color-text-inverse"),e("--color-text-ghost"),e("--color-text-info"),e("--color-text-danger"),e("--color-text-success"),e("--color-text-warning"),e("--color-text-disabled"),e("--color-border-primary"),e("--color-border-secondary"),e("--color-border-tertiary"),e("--color-border-inverse"),e("--color-border-ghost"),e("--color-border-info"),e("--color-border-danger"),e("--color-border-success"),e("--color-border-warning"),e("--color-border-disabled"),e("--color-ring-primary"),e("--color-ring-secondary"),e("--color-ring-inverse"),e("--color-ring-info"),e("--color-ring-danger"),e("--color-ring-success"),e("--color-ring-warning"),e("--font-sans"),e("--font-mono"),e("--font-weight-normal"),e("--font-weight-medium"),e("--font-weight-semibold"),e("--font-weight-bold"),e("--font-text-xs-size"),e("--font-text-sm-size"),e("--font-text-md-size"),e("--font-text-lg-size"),e("--font-heading-xs-size"),e("--font-heading-sm-size"),e("--font-heading-md-size"),e("--font-heading-lg-size"),e("--font-heading-xl-size"),e("--font-heading-2xl-size"),e("--font-heading-3xl-size"),e("--font-text-xs-line-height"),e("--font-text-sm-line-height"),e("--font-text-md-line-height"),e("--font-text-lg-line-height"),e("--font-heading-xs-line-height"),e("--font-heading-sm-line-height"),e("--font-heading-md-line-height"),e("--font-heading-lg-line-height"),e("--font-heading-xl-line-height"),e("--font-heading-2xl-line-height"),e("--font-heading-3xl-line-height"),e("--border-radius-xs"),e("--border-radius-sm"),e("--border-radius-md"),e("--border-radius-lg"),e("--border-radius-xl"),e("--border-radius-full"),e("--border-width-regular"),e("--shadow-hairline"),e("--shadow-sm"),e("--shadow-md"),e("--shadow-lg")]).describe("CSS variable keys available to MCP apps for theming."),ne=h(ae.describe(`Style variables for theming MCP apps.
1
+ import{cQ as l,cU as e,bN as h,ap as r,ed as b,ao as t,bK as p,bM as d,aF as c,bO as m,cS as v,ee as E,ef as I,eg as w,cr as x,dC as T,eh as z,ei as C,ej as D,c6 as O,ek as B,cI as V,el as W,em as $,en as F,eo as K,cE as J,cs as j,cB as Z,cC as Q,cD as Y,cu as G,cA as X,ct as ee,cM as te}from"./index-DUoAE5ST.js";import{P as oe}from"./use-mcp-client-BUxJmD4z.js";(n=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(n,{get:(o,s)=>(typeof require<"u"?require:o)[s]}):n)(function(n){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+n+'" is not supported')});class se extends oe{_registeredMethods=new Set;_eventSlots=new Map;onEventDispatch(o,s){}_ensureEventSlot(o){let s=this._eventSlots.get(o);if(!s){let i=this.eventSchemas[o];if(!i)throw Error(`Unknown event: ${String(o)}`);s={listeners:[]},this._eventSlots.set(o,s);let a=i.shape.method.value;this._registeredMethods.add(a);let u=s;super.setNotificationHandler(i,g=>{let R=g.params;this.onEventDispatch(o,R),u.onHandler?.(R);for(let A of[...u.listeners])A(R)})}return s}setEventHandler(o,s){let i=this._ensureEventSlot(o);i.onHandler&&s&&console.warn(`[MCP Apps] on${String(o)} handler replaced. Use addEventListener("${String(o)}", …) to add multiple listeners without replacing.`),i.onHandler=s}getEventHandler(o){return this._eventSlots.get(o)?.onHandler}addEventListener(o,s){this._ensureEventSlot(o).listeners.push(s)}removeEventListener(o,s){let i=this._eventSlots.get(o);if(!i)return;let a=i.listeners.indexOf(s);a!==-1&&i.listeners.splice(a,1)}setRequestHandler=(o,s)=>{this._assertMethodNotRegistered(o,"setRequestHandler"),super.setRequestHandler(o,s)};setNotificationHandler=(o,s)=>{this._assertMethodNotRegistered(o,"setNotificationHandler"),super.setNotificationHandler(o,s)};warnIfRequestHandlerReplaced(o,s,i){s&&i&&console.warn(`[MCP Apps] ${o} handler replaced. Previous handler will no longer be called.`)}replaceRequestHandler=(o,s)=>{let i=o.shape.method.value;this._registeredMethods.add(i),super.setRequestHandler(o,s)};_assertMethodNotRegistered(o,s){let i=o.shape.method.value;if(this._registeredMethods.has(i))throw Error(`Handler for "${i}" already registered (via ${s}). Use addEventListener() to attach multiple listeners, or the on* setter for replace semantics.`);this._registeredMethods.add(i)}}var L="2026-01-26",ie="ui/notifications/tool-input-partial",re=l([e("light"),e("dark")]).describe("Color theme preference for the host environment."),f=l([e("inline"),e("fullscreen"),e("pip")]).describe("Display mode for UI presentation."),ae=l([e("--color-background-primary"),e("--color-background-secondary"),e("--color-background-tertiary"),e("--color-background-inverse"),e("--color-background-ghost"),e("--color-background-info"),e("--color-background-danger"),e("--color-background-success"),e("--color-background-warning"),e("--color-background-disabled"),e("--color-text-primary"),e("--color-text-secondary"),e("--color-text-tertiary"),e("--color-text-inverse"),e("--color-text-ghost"),e("--color-text-info"),e("--color-text-danger"),e("--color-text-success"),e("--color-text-warning"),e("--color-text-disabled"),e("--color-border-primary"),e("--color-border-secondary"),e("--color-border-tertiary"),e("--color-border-inverse"),e("--color-border-ghost"),e("--color-border-info"),e("--color-border-danger"),e("--color-border-success"),e("--color-border-warning"),e("--color-border-disabled"),e("--color-ring-primary"),e("--color-ring-secondary"),e("--color-ring-inverse"),e("--color-ring-info"),e("--color-ring-danger"),e("--color-ring-success"),e("--color-ring-warning"),e("--font-sans"),e("--font-mono"),e("--font-weight-normal"),e("--font-weight-medium"),e("--font-weight-semibold"),e("--font-weight-bold"),e("--font-text-xs-size"),e("--font-text-sm-size"),e("--font-text-md-size"),e("--font-text-lg-size"),e("--font-heading-xs-size"),e("--font-heading-sm-size"),e("--font-heading-md-size"),e("--font-heading-lg-size"),e("--font-heading-xl-size"),e("--font-heading-2xl-size"),e("--font-heading-3xl-size"),e("--font-text-xs-line-height"),e("--font-text-sm-line-height"),e("--font-text-md-line-height"),e("--font-text-lg-line-height"),e("--font-heading-xs-line-height"),e("--font-heading-sm-line-height"),e("--font-heading-md-line-height"),e("--font-heading-lg-line-height"),e("--font-heading-xl-line-height"),e("--font-heading-2xl-line-height"),e("--font-heading-3xl-line-height"),e("--border-radius-xs"),e("--border-radius-sm"),e("--border-radius-md"),e("--border-radius-lg"),e("--border-radius-xl"),e("--border-radius-full"),e("--border-width-regular"),e("--shadow-hairline"),e("--shadow-sm"),e("--shadow-md"),e("--shadow-lg")]).describe("CSS variable keys available to MCP apps for theming."),ne=h(ae.describe(`Style variables for theming MCP apps.
2
2
 
3
3
  Individual style keys are optional - hosts may provide any subset of these values.
4
4
  Values are strings containing CSS values (colors, sizes, font stacks, etc.).
@@ -1 +1 @@
1
- import{c as P,b as J,r as Q,j as t,l as B,q as V}from"./index-CeFrI_-f.js";import{u as X}from"./use-copy-DmHXHCnz.js";import{M as Y}from"./markdown-Ck-11dhN.js";import{i as ee}from"./Check-soPAeKca.js";import{a as te}from"./Copy01-Ck1CQt9c.js";import{b as z,T as A,a as G}from"./tooltip-CCq3uglU.js";import{z as se}from"./agent-icon-C8wu-T9B.js";import{b as Z}from"./format-time-CjIPQhCN.js";import{c as H}from"./use-decopilot-events-CypL9wDE.js";import{y as K}from"./chat-context-DSOY14Dl.js";function he(T){const e=P.c(19),{id:s,part:l,copyable:j,extraActions:n,alwaysShowActions:p,animate:a}=T,f=j===void 0?!1:j,o=p===void 0?!1:p,i=a===void 0?!1:a,{handleCopy:m}=X(),x=J(),[r,N]=Q.useState(!1);let k;e[0]!==m||e[1]!==s||e[2]!==l.text?(k=async()=>{V("chat_message_copied",{message_id:s,chars:l.text.length}),await m(l.text),N(!0),setTimeout(()=>N(!1),2e3)},e[0]=m,e[1]=s,e[2]=l.text,e[3]=k):k=e[3];const b=k,d=f&&n,g=d||n;let u;e[4]!==i||e[5]!==s||e[6]!==l.text?(u=t.jsx(Y,{id:s,text:l.text,animate:i}),e[4]=i,e[5]=s,e[6]=l.text,e[7]=u):u=e[7];let c;e[8]!==o||e[9]!==n||e[10]!==b||e[11]!==r||e[12]!==g||e[13]!==d||e[14]!==x?(c=g&&t.jsxs("div",{className:B("flex w-full items-center gap-2 text-sm text-muted-foreground transition-all duration-200 mt-1 py-1",o?"opacity-100":"opacity-0 pointer-events-none group-hover/part:opacity-100 group-hover/part:pointer-events-auto"),children:[n,d&&n&&t.jsx("span",{className:"text-muted-foreground/40 select-none",children:"·"}),d&&t.jsx("button",{type:"button",onClick:b,className:"text-muted-foreground [@media(hover:hover)]:hover:text-foreground transition-colors active:scale-[0.97]","aria-label":x("chat.textPart.copyMessage"),children:r?t.jsx(ee,{className:"size-4"}):t.jsx(te,{className:"size-4"})})]}),e[8]=o,e[9]=n,e[10]=b,e[11]=r,e[12]=g,e[13]=d,e[14]=x,e[15]=c):c=e[15];let h;return e[16]!==u||e[17]!==c?(h=t.jsxs("div",{className:"group/part relative",children:[u,c]}),e[16]=u,e[17]=c,e[18]=h):h=e[18],h}const v=16,O=2.5,q=(v-O)/2,U=2*Math.PI*q;function ue(T){const e=P.c(29),{usage:s}=T,l=H();if(!s)return null;const{totalTokens:j,inputTokens:n,outputTokens:p}=s,a=l?s.cost:0;if(!j&&!n&&!p)return null;let f;e[0]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(se,{size:12}),e[0]=f):f=e[0];let o;e[1]!==a||e[2]!==j?(o=a>0?`$${a.toFixed(4)}`:j.toLocaleString(),e[1]=a,e[2]=j,e[3]=o):o=e[3];let i;e[4]!==o?(i=t.jsx(A,{asChild:!0,children:t.jsxs("span",{className:"inline-flex items-center text-muted-foreground [@media(hover:hover)]:hover:text-foreground pl-1 h-6 gap-1 whitespace-nowrap shrink-0 cursor-default",children:[f,t.jsx("span",{className:"text-sm font-mono tabular-nums",children:o})]})}),e[4]=o,e[5]=i):i=e[5];let m;e[6]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx("p",{className:"text-muted text-[10px] mb-1",children:"tokens"}),e[6]=m):m=e[6];let x;e[7]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx("span",{className:"text-muted",children:"in"}),e[7]=x):x=e[7];let r;e[8]!==n?(r=n.toLocaleString(),e[8]=n,e[9]=r):r=e[9];let N;e[10]!==r?(N=t.jsx("span",{className:"text-right tabular-nums",children:r}),e[10]=r,e[11]=N):N=e[11];let k;e[12]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx("span",{className:"text-muted",children:"out"}),e[12]=k):k=e[12];const b=p-(s.reasoningTokens??0);let d;e[13]!==b?(d=b.toLocaleString(),e[13]=b,e[14]=d):d=e[14];let g;e[15]!==d?(g=t.jsx("span",{className:"text-right tabular-nums",children:d}),e[15]=d,e[16]=g):g=e[16];let u;e[17]!==s?(u=(s.cacheReadTokens>0||s.cacheWriteTokens>0)&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-muted",children:"cache hit"}),t.jsx("span",{className:"text-right tabular-nums",children:`${(K(s)*100).toFixed(0)}%`})]}),e[17]=s,e[18]=u):u=e[18];let c;e[19]!==a?(c=a>0&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-muted",children:"cost"}),t.jsxs("span",{className:"text-right tabular-nums",children:["$",a.toFixed(4)]})]}),e[19]=a,e[20]=c):c=e[20];let h;e[21]!==g||e[22]!==u||e[23]!==c||e[24]!==N?(h=t.jsxs(G,{side:"top",className:"font-mono text-[11px]",children:[m,t.jsxs("div",{className:"grid grid-cols-[auto_1fr] gap-x-3 gap-y-0.5",children:[x,N,k,g,u,c]})]}),e[21]=g,e[22]=u,e[23]=c,e[24]=N,e[25]=h):h=e[25];let y;return e[26]!==h||e[27]!==i?(y=t.jsxs(z,{children:[i,h]}),e[26]=h,e[27]=i,e[28]=y):y=e[28],y}function pe(T){const e=P.c(19),{usage:s,duration:l}=T,j=H(),n=l!=null&&l>0,p=j&&s!=null&&(s.cost??0)>0,a=s!=null&&(s.totalTokens??0)>0;if(!n&&!p&&!a)return null;let f;e[0]!==l||e[1]!==n?(f=n?Z(l/1e3):null,e[0]=l,e[1]=n,e[2]=f):f=e[2];const o=f;let i;e[3]!==l||e[4]!==o||e[5]!==s?(i=o&&t.jsxs(z,{children:[t.jsx(A,{asChild:!0,children:t.jsx("span",{className:"tabular-nums text-sm font-mono text-muted-foreground cursor-default [@media(hover:hover)]:hover:text-foreground transition-colors select-none",children:o})}),t.jsxs(G,{side:"top",className:"font-mono text-[11px]",children:[t.jsx("p",{className:"opacity-60 text-[10px] mb-1",children:"thinking"}),t.jsx("span",{className:"tabular-nums",children:Z(l/1e3)}),(s?.reasoningTokens??0)>0&&t.jsxs("span",{className:"ml-2 opacity-50",children:[s.reasoningTokens.toLocaleString()," tok"]})]})]}),e[3]=l,e[4]=o,e[5]=s,e[6]=i):i=e[6];let m;e[7]!==p||e[8]!==n||e[9]!==a?(m=n&&(p||a)&&t.jsx("span",{className:"text-muted-foreground/40 select-none",children:"·"}),e[7]=p,e[8]=n,e[9]=a,e[10]=m):m=e[10];let x;e[11]!==p||e[12]!==a||e[13]!==s?(x=(p||a)&&t.jsxs(z,{children:[t.jsx(A,{asChild:!0,children:t.jsx("span",{className:"tabular-nums text-sm font-mono text-muted-foreground cursor-default [@media(hover:hover)]:hover:text-foreground transition-colors select-none",children:p?`$${s.cost.toFixed(4)}`:`${s.totalTokens.toLocaleString()} tok`})}),t.jsxs(G,{side:"top",className:"font-mono text-[11px]",children:[t.jsx("p",{className:"opacity-60 text-[10px] mb-1",children:"tokens"}),t.jsxs("div",{className:"grid grid-cols-[auto_1fr] gap-x-3 gap-y-0.5",children:[t.jsx("span",{className:"opacity-60",children:"in"}),t.jsx("span",{className:"text-right tabular-nums",children:(s.inputTokens??0).toLocaleString()}),t.jsx("span",{className:"opacity-60",children:"out"}),t.jsx("span",{className:"text-right tabular-nums",children:((s.outputTokens??0)-(s?.reasoningTokens??0)).toLocaleString()}),(s?.reasoningTokens??0)>0&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"opacity-60",children:"think"}),t.jsx("span",{className:"text-right tabular-nums",children:s.reasoningTokens.toLocaleString()})]}),((s?.cacheReadTokens??0)>0||(s?.cacheWriteTokens??0)>0)&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"opacity-60",children:"cache hit"}),t.jsx("span",{className:"text-right tabular-nums",children:`${(K(s)*100).toFixed(0)}%`})]})]})]})]}),e[11]=p,e[12]=a,e[13]=s,e[14]=x):x=e[14];let r;return e[15]!==i||e[16]!==m||e[17]!==x?(r=t.jsxs("div",{className:"flex items-center gap-1.5 shrink-0",children:[i,m,x]}),e[15]=i,e[16]=m,e[17]=x,e[18]=r):r=e[18],r}function fe(T){const e=P.c(52),{usage:s,totalTokens:l,contextWindow:j,onOpenContextPanel:n}=T,p=H(),a=Math.min(l/j*100,100),f=U-a/100*U,o=p?s?.cost??0:0,i=(s?.cost??0)>0,m=s?.inputTokens??0,x=s?.outputTokens??0;let r;e[0]!==a?(r=a.toFixed(0),e[0]=a,e[1]=r):r=e[1];let N;e[2]!==o?(N=o>0?`, $${o.toFixed(2)}`:"",e[2]=o,e[3]=N):N=e[3];const k=`Context usage: ${r}%${N}`,b=n?"cursor-pointer":"cursor-default";let d;e[4]!==b?(d=B("flex items-center gap-1.5 text-muted-foreground hover:text-foreground h-6 px-1 shrink-0",b),e[4]=b,e[5]=d):d=e[5];let g;e[6]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx("circle",{cx:v/2,cy:v/2,r:q,fill:"none",stroke:"currentColor",strokeWidth:O,className:"opacity-15"}),e[6]=g):g=e[6];const u=a>90?"text-destructive":a>70?"text-warning":"text-muted-foreground";let c;e[7]!==u?(c=B(u),e[7]=u,e[8]=c):c=e[8];let h;e[9]!==f||e[10]!==c?(h=t.jsxs("svg",{width:v,height:v,className:"-rotate-90","aria-hidden":"true",children:[g,t.jsx("circle",{cx:v/2,cy:v/2,r:q,fill:"none",stroke:"currentColor",strokeWidth:O,strokeDasharray:U,strokeDashoffset:f,strokeLinecap:"round",className:c})]}),e[9]=f,e[10]=c,e[11]=h):h=e[11];let y;e[12]!==a?(y=a.toFixed(0),e[12]=a,e[13]=y):y=e[13];let S;e[14]!==o?(S=o>0?` · $${o.toFixed(2)}`:"",e[14]=o,e[15]=S):S=e[15];let C;e[16]!==y||e[17]!==S?(C=t.jsxs("span",{className:"inline-block overflow-hidden whitespace-nowrap max-w-0 opacity-0 transition-[max-width,opacity] duration-200 ease-out @[320px]/chat-bottom:max-w-32 @[320px]/chat-bottom:opacity-100 text-[11px] font-mono tabular-nums",children:[y,"%",S]}),e[16]=y,e[17]=S,e[18]=C):C=e[18];let w;e[19]!==n||e[20]!==C||e[21]!==k||e[22]!==d||e[23]!==h?(w=t.jsx(A,{asChild:!0,children:t.jsxs("button",{type:"button",onClick:n,"aria-label":k,className:d,children:[h,C]})}),e[19]=n,e[20]=C,e[21]=k,e[22]=d,e[23]=h,e[24]=w):w=e[24];let D;e[25]===Symbol.for("react.memo_cache_sentinel")?(D=t.jsx("span",{className:"text-muted",children:"context"}),e[25]=D):D=e[25];let _;e[26]!==l?(_=l.toLocaleString(),e[26]=l,e[27]=_):_=e[27];let $;e[28]!==j?($=j.toLocaleString(),e[28]=j,e[29]=$):$=e[29];let F;e[30]!==a?(F=a.toFixed(1),e[30]=a,e[31]=F):F=e[31];let L;e[32]!==_||e[33]!==$||e[34]!==F?(L=t.jsxs("span",{className:"text-right tabular-nums",children:[_," / ",$," (",F,"%)"]}),e[32]=_,e[33]=$,e[34]=F,e[35]=L):L=e[35];let R;e[36]!==o?(R=o>0&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-muted",children:"cost"}),t.jsxs("span",{className:"text-right tabular-nums",children:["$",o.toFixed(4)]})]}),e[36]=o,e[37]=R):R=e[37];let M;e[38]!==i||e[39]!==m||e[40]!==x?(M=i&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-muted",children:"in"}),t.jsx("span",{className:"text-right tabular-nums",children:m.toLocaleString()}),t.jsx("span",{className:"text-muted",children:"out"}),t.jsx("span",{className:"text-right tabular-nums",children:x.toLocaleString()})]}),e[38]=i,e[39]=m,e[40]=x,e[41]=M):M=e[41];let I;e[42]!==s?(I=((s?.cacheReadTokens??0)>0||(s?.cacheWriteTokens??0)>0)&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-muted",children:"cache hit"}),t.jsx("span",{className:"text-right tabular-nums",children:`${(K(s)*100).toFixed(0)}%`})]}),e[42]=s,e[43]=I):I=e[43];let E;e[44]!==L||e[45]!==R||e[46]!==M||e[47]!==I?(E=t.jsx(G,{side:"top",className:"font-mono text-[11px]",children:t.jsxs("div",{className:"grid grid-cols-[auto_1fr] gap-x-3 gap-y-0.5",children:[D,L,R,M,I]})}),e[44]=L,e[45]=R,e[46]=M,e[47]=I,e[48]=E):E=e[48];let W;return e[49]!==w||e[50]!==E?(W=t.jsxs(z,{children:[w,E]}),e[49]=w,e[50]=E,e[51]=W):W=e[51],W}export{he as M,fe as S,ue as a,pe as b};
1
+ import{c as P,b as J,r as Q,j as t,l as B,q as V}from"./index-DUoAE5ST.js";import{u as X}from"./use-copy-Cq1WnAZO.js";import{M as Y}from"./markdown-Cuay45B5.js";import{i as ee}from"./Check-CMF2Ywph.js";import{a as te}from"./Copy01-Dd4ky6ZP.js";import{b as z,T as A,a as G}from"./tooltip-DR03IHA1.js";import{z as se}from"./agent-icon-B1JUa-pK.js";import{b as Z}from"./format-time-CjIPQhCN.js";import{c as H}from"./use-decopilot-events-CRlKPkfk.js";import{y as K}from"./chat-context-fDVt7FJu.js";function he(T){const e=P.c(19),{id:s,part:l,copyable:j,extraActions:n,alwaysShowActions:p,animate:a}=T,f=j===void 0?!1:j,o=p===void 0?!1:p,i=a===void 0?!1:a,{handleCopy:m}=X(),x=J(),[r,N]=Q.useState(!1);let k;e[0]!==m||e[1]!==s||e[2]!==l.text?(k=async()=>{V("chat_message_copied",{message_id:s,chars:l.text.length}),await m(l.text),N(!0),setTimeout(()=>N(!1),2e3)},e[0]=m,e[1]=s,e[2]=l.text,e[3]=k):k=e[3];const b=k,d=f&&n,g=d||n;let u;e[4]!==i||e[5]!==s||e[6]!==l.text?(u=t.jsx(Y,{id:s,text:l.text,animate:i}),e[4]=i,e[5]=s,e[6]=l.text,e[7]=u):u=e[7];let c;e[8]!==o||e[9]!==n||e[10]!==b||e[11]!==r||e[12]!==g||e[13]!==d||e[14]!==x?(c=g&&t.jsxs("div",{className:B("flex w-full items-center gap-2 text-sm text-muted-foreground transition-all duration-200 mt-1 py-1",o?"opacity-100":"opacity-0 pointer-events-none group-hover/part:opacity-100 group-hover/part:pointer-events-auto"),children:[n,d&&n&&t.jsx("span",{className:"text-muted-foreground/40 select-none",children:"·"}),d&&t.jsx("button",{type:"button",onClick:b,className:"text-muted-foreground [@media(hover:hover)]:hover:text-foreground transition-colors active:scale-[0.97]","aria-label":x("chat.textPart.copyMessage"),children:r?t.jsx(ee,{className:"size-4"}):t.jsx(te,{className:"size-4"})})]}),e[8]=o,e[9]=n,e[10]=b,e[11]=r,e[12]=g,e[13]=d,e[14]=x,e[15]=c):c=e[15];let h;return e[16]!==u||e[17]!==c?(h=t.jsxs("div",{className:"group/part relative",children:[u,c]}),e[16]=u,e[17]=c,e[18]=h):h=e[18],h}const v=16,O=2.5,q=(v-O)/2,U=2*Math.PI*q;function ue(T){const e=P.c(29),{usage:s}=T,l=H();if(!s)return null;const{totalTokens:j,inputTokens:n,outputTokens:p}=s,a=l?s.cost:0;if(!j&&!n&&!p)return null;let f;e[0]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(se,{size:12}),e[0]=f):f=e[0];let o;e[1]!==a||e[2]!==j?(o=a>0?`$${a.toFixed(4)}`:j.toLocaleString(),e[1]=a,e[2]=j,e[3]=o):o=e[3];let i;e[4]!==o?(i=t.jsx(A,{asChild:!0,children:t.jsxs("span",{className:"inline-flex items-center text-muted-foreground [@media(hover:hover)]:hover:text-foreground pl-1 h-6 gap-1 whitespace-nowrap shrink-0 cursor-default",children:[f,t.jsx("span",{className:"text-sm font-mono tabular-nums",children:o})]})}),e[4]=o,e[5]=i):i=e[5];let m;e[6]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx("p",{className:"text-muted text-[10px] mb-1",children:"tokens"}),e[6]=m):m=e[6];let x;e[7]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx("span",{className:"text-muted",children:"in"}),e[7]=x):x=e[7];let r;e[8]!==n?(r=n.toLocaleString(),e[8]=n,e[9]=r):r=e[9];let N;e[10]!==r?(N=t.jsx("span",{className:"text-right tabular-nums",children:r}),e[10]=r,e[11]=N):N=e[11];let k;e[12]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx("span",{className:"text-muted",children:"out"}),e[12]=k):k=e[12];const b=p-(s.reasoningTokens??0);let d;e[13]!==b?(d=b.toLocaleString(),e[13]=b,e[14]=d):d=e[14];let g;e[15]!==d?(g=t.jsx("span",{className:"text-right tabular-nums",children:d}),e[15]=d,e[16]=g):g=e[16];let u;e[17]!==s?(u=(s.cacheReadTokens>0||s.cacheWriteTokens>0)&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-muted",children:"cache hit"}),t.jsx("span",{className:"text-right tabular-nums",children:`${(K(s)*100).toFixed(0)}%`})]}),e[17]=s,e[18]=u):u=e[18];let c;e[19]!==a?(c=a>0&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-muted",children:"cost"}),t.jsxs("span",{className:"text-right tabular-nums",children:["$",a.toFixed(4)]})]}),e[19]=a,e[20]=c):c=e[20];let h;e[21]!==g||e[22]!==u||e[23]!==c||e[24]!==N?(h=t.jsxs(G,{side:"top",className:"font-mono text-[11px]",children:[m,t.jsxs("div",{className:"grid grid-cols-[auto_1fr] gap-x-3 gap-y-0.5",children:[x,N,k,g,u,c]})]}),e[21]=g,e[22]=u,e[23]=c,e[24]=N,e[25]=h):h=e[25];let y;return e[26]!==h||e[27]!==i?(y=t.jsxs(z,{children:[i,h]}),e[26]=h,e[27]=i,e[28]=y):y=e[28],y}function pe(T){const e=P.c(19),{usage:s,duration:l}=T,j=H(),n=l!=null&&l>0,p=j&&s!=null&&(s.cost??0)>0,a=s!=null&&(s.totalTokens??0)>0;if(!n&&!p&&!a)return null;let f;e[0]!==l||e[1]!==n?(f=n?Z(l/1e3):null,e[0]=l,e[1]=n,e[2]=f):f=e[2];const o=f;let i;e[3]!==l||e[4]!==o||e[5]!==s?(i=o&&t.jsxs(z,{children:[t.jsx(A,{asChild:!0,children:t.jsx("span",{className:"tabular-nums text-sm font-mono text-muted-foreground cursor-default [@media(hover:hover)]:hover:text-foreground transition-colors select-none",children:o})}),t.jsxs(G,{side:"top",className:"font-mono text-[11px]",children:[t.jsx("p",{className:"opacity-60 text-[10px] mb-1",children:"thinking"}),t.jsx("span",{className:"tabular-nums",children:Z(l/1e3)}),(s?.reasoningTokens??0)>0&&t.jsxs("span",{className:"ml-2 opacity-50",children:[s.reasoningTokens.toLocaleString()," tok"]})]})]}),e[3]=l,e[4]=o,e[5]=s,e[6]=i):i=e[6];let m;e[7]!==p||e[8]!==n||e[9]!==a?(m=n&&(p||a)&&t.jsx("span",{className:"text-muted-foreground/40 select-none",children:"·"}),e[7]=p,e[8]=n,e[9]=a,e[10]=m):m=e[10];let x;e[11]!==p||e[12]!==a||e[13]!==s?(x=(p||a)&&t.jsxs(z,{children:[t.jsx(A,{asChild:!0,children:t.jsx("span",{className:"tabular-nums text-sm font-mono text-muted-foreground cursor-default [@media(hover:hover)]:hover:text-foreground transition-colors select-none",children:p?`$${s.cost.toFixed(4)}`:`${s.totalTokens.toLocaleString()} tok`})}),t.jsxs(G,{side:"top",className:"font-mono text-[11px]",children:[t.jsx("p",{className:"opacity-60 text-[10px] mb-1",children:"tokens"}),t.jsxs("div",{className:"grid grid-cols-[auto_1fr] gap-x-3 gap-y-0.5",children:[t.jsx("span",{className:"opacity-60",children:"in"}),t.jsx("span",{className:"text-right tabular-nums",children:(s.inputTokens??0).toLocaleString()}),t.jsx("span",{className:"opacity-60",children:"out"}),t.jsx("span",{className:"text-right tabular-nums",children:((s.outputTokens??0)-(s?.reasoningTokens??0)).toLocaleString()}),(s?.reasoningTokens??0)>0&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"opacity-60",children:"think"}),t.jsx("span",{className:"text-right tabular-nums",children:s.reasoningTokens.toLocaleString()})]}),((s?.cacheReadTokens??0)>0||(s?.cacheWriteTokens??0)>0)&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"opacity-60",children:"cache hit"}),t.jsx("span",{className:"text-right tabular-nums",children:`${(K(s)*100).toFixed(0)}%`})]})]})]})]}),e[11]=p,e[12]=a,e[13]=s,e[14]=x):x=e[14];let r;return e[15]!==i||e[16]!==m||e[17]!==x?(r=t.jsxs("div",{className:"flex items-center gap-1.5 shrink-0",children:[i,m,x]}),e[15]=i,e[16]=m,e[17]=x,e[18]=r):r=e[18],r}function fe(T){const e=P.c(52),{usage:s,totalTokens:l,contextWindow:j,onOpenContextPanel:n}=T,p=H(),a=Math.min(l/j*100,100),f=U-a/100*U,o=p?s?.cost??0:0,i=(s?.cost??0)>0,m=s?.inputTokens??0,x=s?.outputTokens??0;let r;e[0]!==a?(r=a.toFixed(0),e[0]=a,e[1]=r):r=e[1];let N;e[2]!==o?(N=o>0?`, $${o.toFixed(2)}`:"",e[2]=o,e[3]=N):N=e[3];const k=`Context usage: ${r}%${N}`,b=n?"cursor-pointer":"cursor-default";let d;e[4]!==b?(d=B("flex items-center gap-1.5 text-muted-foreground hover:text-foreground h-6 px-1 shrink-0",b),e[4]=b,e[5]=d):d=e[5];let g;e[6]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx("circle",{cx:v/2,cy:v/2,r:q,fill:"none",stroke:"currentColor",strokeWidth:O,className:"opacity-15"}),e[6]=g):g=e[6];const u=a>90?"text-destructive":a>70?"text-warning":"text-muted-foreground";let c;e[7]!==u?(c=B(u),e[7]=u,e[8]=c):c=e[8];let h;e[9]!==f||e[10]!==c?(h=t.jsxs("svg",{width:v,height:v,className:"-rotate-90","aria-hidden":"true",children:[g,t.jsx("circle",{cx:v/2,cy:v/2,r:q,fill:"none",stroke:"currentColor",strokeWidth:O,strokeDasharray:U,strokeDashoffset:f,strokeLinecap:"round",className:c})]}),e[9]=f,e[10]=c,e[11]=h):h=e[11];let y;e[12]!==a?(y=a.toFixed(0),e[12]=a,e[13]=y):y=e[13];let S;e[14]!==o?(S=o>0?` · $${o.toFixed(2)}`:"",e[14]=o,e[15]=S):S=e[15];let C;e[16]!==y||e[17]!==S?(C=t.jsxs("span",{className:"inline-block overflow-hidden whitespace-nowrap max-w-0 opacity-0 transition-[max-width,opacity] duration-200 ease-out @[320px]/chat-bottom:max-w-32 @[320px]/chat-bottom:opacity-100 text-[11px] font-mono tabular-nums",children:[y,"%",S]}),e[16]=y,e[17]=S,e[18]=C):C=e[18];let w;e[19]!==n||e[20]!==C||e[21]!==k||e[22]!==d||e[23]!==h?(w=t.jsx(A,{asChild:!0,children:t.jsxs("button",{type:"button",onClick:n,"aria-label":k,className:d,children:[h,C]})}),e[19]=n,e[20]=C,e[21]=k,e[22]=d,e[23]=h,e[24]=w):w=e[24];let D;e[25]===Symbol.for("react.memo_cache_sentinel")?(D=t.jsx("span",{className:"text-muted",children:"context"}),e[25]=D):D=e[25];let _;e[26]!==l?(_=l.toLocaleString(),e[26]=l,e[27]=_):_=e[27];let $;e[28]!==j?($=j.toLocaleString(),e[28]=j,e[29]=$):$=e[29];let F;e[30]!==a?(F=a.toFixed(1),e[30]=a,e[31]=F):F=e[31];let L;e[32]!==_||e[33]!==$||e[34]!==F?(L=t.jsxs("span",{className:"text-right tabular-nums",children:[_," / ",$," (",F,"%)"]}),e[32]=_,e[33]=$,e[34]=F,e[35]=L):L=e[35];let R;e[36]!==o?(R=o>0&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-muted",children:"cost"}),t.jsxs("span",{className:"text-right tabular-nums",children:["$",o.toFixed(4)]})]}),e[36]=o,e[37]=R):R=e[37];let M;e[38]!==i||e[39]!==m||e[40]!==x?(M=i&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-muted",children:"in"}),t.jsx("span",{className:"text-right tabular-nums",children:m.toLocaleString()}),t.jsx("span",{className:"text-muted",children:"out"}),t.jsx("span",{className:"text-right tabular-nums",children:x.toLocaleString()})]}),e[38]=i,e[39]=m,e[40]=x,e[41]=M):M=e[41];let I;e[42]!==s?(I=((s?.cacheReadTokens??0)>0||(s?.cacheWriteTokens??0)>0)&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-muted",children:"cache hit"}),t.jsx("span",{className:"text-right tabular-nums",children:`${(K(s)*100).toFixed(0)}%`})]}),e[42]=s,e[43]=I):I=e[43];let E;e[44]!==L||e[45]!==R||e[46]!==M||e[47]!==I?(E=t.jsx(G,{side:"top",className:"font-mono text-[11px]",children:t.jsxs("div",{className:"grid grid-cols-[auto_1fr] gap-x-3 gap-y-0.5",children:[D,L,R,M,I]})}),e[44]=L,e[45]=R,e[46]=M,e[47]=I,e[48]=E):E=e[48];let W;return e[49]!==w||e[50]!==E?(W=t.jsxs(z,{children:[w,E]}),e[49]=w,e[50]=E,e[51]=W):W=e[51],W}export{he as M,fe as S,ue as a,pe as b};
@@ -1 +1 @@
1
- import{c as p,X as h,a2 as R,K as m,m as y,D as S,aB as M}from"./index-CeFrI_-f.js";const P=["deco","anthropic","openrouter","llmapi","google","openai-compatible"],O=new Set(P);function A(o){return O.has(o)}function _(o){return o.capabilities?.includes("decisions")===!0}function B(o){return!_(o)&&o.asyncResearch!==!0}const v={anthropic:["claude-haiku-4-5","claude-haiku"],openrouter:["qwen/qwen3.5-flash","anthropic/claude-haiku-4.5","anthropic/claude-haiku","google/gemini-3-flash"],deco:["qwen/qwen3.5-flash","anthropic/claude-haiku"],llmapi:["claude-haiku-4-5","claude-haiku","gpt-4o-mini"],google:["gemini-2.5-flash","gemini-3-flash"]},L={anthropic:["claude-sonnet-5","claude-sonnet"],openrouter:["anthropic/claude-sonnet-5","anthropic/claude-sonnet","anthropic/claude-opus-4.8","google/gemini-3-pro"],deco:["anthropic/claude-sonnet-5","anthropic/claude-sonnet","anthropic/claude"],llmapi:["claude-sonnet-4-6","claude-sonnet"],google:["gemini-3-pro","gemini-3-flash"]},T={anthropic:["claude-opus-4-8","claude-sonnet-5","claude-sonnet","claude-fable-5"],openrouter:["anthropic/claude-opus-4.8:extended","anthropic/claude-opus-4.8","anthropic/claude-sonnet-5:extended","anthropic/claude-sonnet-5","google/gemini-3-pro","anthropic/claude-fable-5"],deco:["anthropic/claude-opus","anthropic/claude-sonnet-4.6","anthropic/claude-sonnet","anthropic/claude-fable"],llmapi:["claude-opus-4-8","claude-opus","claude-sonnet-4-6"],google:["gemini-3-pro"]},K={openrouter:["google/gemini-3-pro-image","openai/gpt-5-image","google/gemini-2.5-flash-image"],deco:["google/gemini-3-pro-image","openai/gpt-5-image","google/gemini-2.5-flash-image"],llmapi:["gemini-2.5-flash-image","gpt-image-1"],google:["gemini-2.0-flash-image"]},w={openrouter:["perplexity/sonar","perplexity/sonar-pro"],deco:["perplexity/sonar","perplexity/sonar-pro"]},x={openrouter:["perplexity/deep-research","perplexity/sonar-pro"],deco:["perplexity/deep-research","perplexity/sonar-pro"]};function I(o){return o.toLowerCase().replace(/[^a-z0-9]/g,"")}function C(o){return I(o).includes("deepresearch")}const q=["sonar","searchpreview","online"];function D(o){const e=I(o);return e.includes("deepresearch")?!1:q.some(i=>e.includes(i))}function F(o){return o.asyncResearch!==!0&&D(o.modelId)}function b(o){return o.asyncResearch===!0||C(o.modelId)||D(o.modelId)}function u(o,e,i,n){for(const t of i){const s=o.find(a=>a.modelId===t);if(s)return{keyId:e,modelId:s.modelId,title:s.title}}for(const t of i){const s=o.find(a=>a.modelId.includes(t));if(s)return{keyId:e,modelId:s.modelId,title:s.title}}if(n){const t=o.find(n);if(t)return{keyId:e,modelId:t.modelId,title:t.title}}return null}function H(o,e){const i={chat:{fast:null,smart:null,thinking:null},image:null,webSearch:null,deepResearch:null};for(const n of o){const t=(e[n.id]??[]).filter(a=>!_(a)),s=n.providerId;i.chat.fast||(i.chat.fast=u(t,n.id,v[s]??[])),i.chat.smart||(i.chat.smart=u(t,n.id,L[s]??[])),i.chat.thinking||(i.chat.thinking=u(t,n.id,T[s]??[])),i.image||(i.image=u(t,n.id,K[s]??[],a=>a.capabilities?.includes("image")===!0&&!a.modelId.startsWith("openrouter/auto"))),i.webSearch||(i.webSearch=u(t,n.id,w[s]??[],F)),i.deepResearch||(i.deepResearch=u(t,n.id,x[s]??[],b))}return i}function N(o,e){return{queryKey:m.aiProviderKeys(e),staleTime:6e4,queryFn:async()=>await M(o,"AI_PROVIDER_KEY_LIST",{})}}function z(){const o=p.c(7),{org:e}=h(),i=R();let n;o[0]!==e.id?(n=m.aiProviders(e.id),o[0]=e.id,o[1]=n):n=o[1];let t;o[2]!==i?(t=async()=>await i.call("AI_PROVIDERS_LIST",{}),o[2]=i,o[3]=t):t=o[3];let s;o[4]!==n||o[5]!==t?(s={queryKey:n,staleTime:1/0,queryFn:t},o[4]=n,o[5]=t,o[6]=s):s=o[6];const{data:a}=S(s);return a}function Q(){const o=p.c(5),{org:e}=h();let i;o[0]!==e.id||o[1]!==e.slug?(i=N(e.slug,e.id),o[0]=e.id,o[1]=e.slug,o[2]=i):i=o[2];const{data:n}=S(i);let t;return o[3]!==n?.keys?(t=n?.keys??[],o[3]=n?.keys,o[4]=t):t=o[4],t}function G(){const o=p.c(2),e=Q();let i;return o[0]!==e?(i=e.filter(V),o[0]=e,o[1]=i):i=o[1],i}function V(o){return A(o.providerId)}function E(o){const e=p.c(15),{org:i}=h(),n=R();let t;e[0]!==o||e[1]!==i.id?(t=m.aiProviderModels(i.id,o??""),e[0]=o,e[1]=i.id,e[2]=t):t=e[2];const s=!!o;let a;e[3]!==o||e[4]!==n?(a=async()=>await n.call("AI_PROVIDERS_LIST_MODELS",{keyId:o??""}),e[3]=o,e[4]=n,e[5]=a):a=e[5];let r;e[6]!==t||e[7]!==s||e[8]!==a?(r={queryKey:t,enabled:s,staleTime:6e4,queryFn:a},e[6]=t,e[7]=s,e[8]=a,e[9]=r):r=e[9];const{data:l,isLoading:c}=y(r);let d;e[10]!==l?.models?(d=l?.models??[],e[10]=l?.models,e[11]=d):d=e[11];const g=!!o&&c;let f;return e[12]!==d||e[13]!==g?(f={models:d,isLoading:g},e[12]=d,e[13]=g,e[14]=f):f=e[14],f}function W(o){const e=p.c(8),i=o[0],n=o[1],t=o[2],{models:s}=E(i?.id),{models:a}=E(n?.id),{models:r}=E(t?.id);let l;if(e[0]!==i||e[1]!==n||e[2]!==t||e[3]!==o||e[4]!==s||e[5]!==a||e[6]!==r){const c={};i?.id&&(c[i.id]=s),n?.id&&(c[n.id]=a),t?.id&&(c[t.id]=r),l=H(o,c),e[0]=i,e[1]=n,e[2]=t,e[3]=o,e[4]=s,e[5]=a,e[6]=r,e[7]=l}else l=e[7];return l}function Y(o){const e=p.c(11),{org:i}=h(),n=R();let t;e[0]!==o||e[1]!==i.id?(t=m.aiProviderModels(i.id,o),e[0]=o,e[1]=i.id,e[2]=t):t=e[2];let s;e[3]!==o||e[4]!==n?(s=async()=>await n.call("AI_PROVIDERS_LIST_MODELS",{keyId:o}),e[3]=o,e[4]=n,e[5]=s):s=e[5];let a;e[6]!==t||e[7]!==s?(a={queryKey:t,staleTime:6e4,queryFn:s},e[6]=t,e[7]=s,e[8]=a):a=e[8];const{data:r}=S(a);let l;return e[9]!==r?.models?(l=r?.models??[],e[9]=r?.models,e[10]=l):l=e[10],l}export{E as a,b,W as c,z as d,B as e,Q as f,A as g,Y as h,F as i,H as p,G as u};
1
+ import{c as p,X as h,a2 as R,K as m,m as y,D as S,aB as M}from"./index-DUoAE5ST.js";const P=["deco","anthropic","openrouter","llmapi","google","openai-compatible"],O=new Set(P);function A(o){return O.has(o)}function _(o){return o.capabilities?.includes("decisions")===!0}function B(o){return!_(o)&&o.asyncResearch!==!0}const v={anthropic:["claude-haiku-4-5","claude-haiku"],openrouter:["qwen/qwen3.5-flash","anthropic/claude-haiku-4.5","anthropic/claude-haiku","google/gemini-3-flash"],deco:["qwen/qwen3.5-flash","anthropic/claude-haiku"],llmapi:["claude-haiku-4-5","claude-haiku","gpt-4o-mini"],google:["gemini-2.5-flash","gemini-3-flash"]},L={anthropic:["claude-sonnet-5","claude-sonnet"],openrouter:["anthropic/claude-sonnet-5","anthropic/claude-sonnet","anthropic/claude-opus-4.8","google/gemini-3-pro"],deco:["anthropic/claude-sonnet-5","anthropic/claude-sonnet","anthropic/claude"],llmapi:["claude-sonnet-4-6","claude-sonnet"],google:["gemini-3-pro","gemini-3-flash"]},T={anthropic:["claude-opus-4-8","claude-sonnet-5","claude-sonnet","claude-fable-5"],openrouter:["anthropic/claude-opus-4.8:extended","anthropic/claude-opus-4.8","anthropic/claude-sonnet-5:extended","anthropic/claude-sonnet-5","google/gemini-3-pro","anthropic/claude-fable-5"],deco:["anthropic/claude-opus","anthropic/claude-sonnet-4.6","anthropic/claude-sonnet","anthropic/claude-fable"],llmapi:["claude-opus-4-8","claude-opus","claude-sonnet-4-6"],google:["gemini-3-pro"]},K={openrouter:["google/gemini-3-pro-image","openai/gpt-5-image","google/gemini-2.5-flash-image"],deco:["google/gemini-3-pro-image","openai/gpt-5-image","google/gemini-2.5-flash-image"],llmapi:["gemini-2.5-flash-image","gpt-image-1"],google:["gemini-2.0-flash-image"]},w={openrouter:["perplexity/sonar","perplexity/sonar-pro"],deco:["perplexity/sonar","perplexity/sonar-pro"]},x={openrouter:["perplexity/deep-research","perplexity/sonar-pro"],deco:["perplexity/deep-research","perplexity/sonar-pro"]};function I(o){return o.toLowerCase().replace(/[^a-z0-9]/g,"")}function C(o){return I(o).includes("deepresearch")}const q=["sonar","searchpreview","online"];function D(o){const e=I(o);return e.includes("deepresearch")?!1:q.some(i=>e.includes(i))}function F(o){return o.asyncResearch!==!0&&D(o.modelId)}function b(o){return o.asyncResearch===!0||C(o.modelId)||D(o.modelId)}function u(o,e,i,n){for(const t of i){const s=o.find(a=>a.modelId===t);if(s)return{keyId:e,modelId:s.modelId,title:s.title}}for(const t of i){const s=o.find(a=>a.modelId.includes(t));if(s)return{keyId:e,modelId:s.modelId,title:s.title}}if(n){const t=o.find(n);if(t)return{keyId:e,modelId:t.modelId,title:t.title}}return null}function H(o,e){const i={chat:{fast:null,smart:null,thinking:null},image:null,webSearch:null,deepResearch:null};for(const n of o){const t=(e[n.id]??[]).filter(a=>!_(a)),s=n.providerId;i.chat.fast||(i.chat.fast=u(t,n.id,v[s]??[])),i.chat.smart||(i.chat.smart=u(t,n.id,L[s]??[])),i.chat.thinking||(i.chat.thinking=u(t,n.id,T[s]??[])),i.image||(i.image=u(t,n.id,K[s]??[],a=>a.capabilities?.includes("image")===!0&&!a.modelId.startsWith("openrouter/auto"))),i.webSearch||(i.webSearch=u(t,n.id,w[s]??[],F)),i.deepResearch||(i.deepResearch=u(t,n.id,x[s]??[],b))}return i}function N(o,e){return{queryKey:m.aiProviderKeys(e),staleTime:6e4,queryFn:async()=>await M(o,"AI_PROVIDER_KEY_LIST",{})}}function z(){const o=p.c(7),{org:e}=h(),i=R();let n;o[0]!==e.id?(n=m.aiProviders(e.id),o[0]=e.id,o[1]=n):n=o[1];let t;o[2]!==i?(t=async()=>await i.call("AI_PROVIDERS_LIST",{}),o[2]=i,o[3]=t):t=o[3];let s;o[4]!==n||o[5]!==t?(s={queryKey:n,staleTime:1/0,queryFn:t},o[4]=n,o[5]=t,o[6]=s):s=o[6];const{data:a}=S(s);return a}function Q(){const o=p.c(5),{org:e}=h();let i;o[0]!==e.id||o[1]!==e.slug?(i=N(e.slug,e.id),o[0]=e.id,o[1]=e.slug,o[2]=i):i=o[2];const{data:n}=S(i);let t;return o[3]!==n?.keys?(t=n?.keys??[],o[3]=n?.keys,o[4]=t):t=o[4],t}function G(){const o=p.c(2),e=Q();let i;return o[0]!==e?(i=e.filter(V),o[0]=e,o[1]=i):i=o[1],i}function V(o){return A(o.providerId)}function E(o){const e=p.c(15),{org:i}=h(),n=R();let t;e[0]!==o||e[1]!==i.id?(t=m.aiProviderModels(i.id,o??""),e[0]=o,e[1]=i.id,e[2]=t):t=e[2];const s=!!o;let a;e[3]!==o||e[4]!==n?(a=async()=>await n.call("AI_PROVIDERS_LIST_MODELS",{keyId:o??""}),e[3]=o,e[4]=n,e[5]=a):a=e[5];let r;e[6]!==t||e[7]!==s||e[8]!==a?(r={queryKey:t,enabled:s,staleTime:6e4,queryFn:a},e[6]=t,e[7]=s,e[8]=a,e[9]=r):r=e[9];const{data:l,isLoading:c}=y(r);let d;e[10]!==l?.models?(d=l?.models??[],e[10]=l?.models,e[11]=d):d=e[11];const g=!!o&&c;let f;return e[12]!==d||e[13]!==g?(f={models:d,isLoading:g},e[12]=d,e[13]=g,e[14]=f):f=e[14],f}function W(o){const e=p.c(8),i=o[0],n=o[1],t=o[2],{models:s}=E(i?.id),{models:a}=E(n?.id),{models:r}=E(t?.id);let l;if(e[0]!==i||e[1]!==n||e[2]!==t||e[3]!==o||e[4]!==s||e[5]!==a||e[6]!==r){const c={};i?.id&&(c[i.id]=s),n?.id&&(c[n.id]=a),t?.id&&(c[t.id]=r),l=H(o,c),e[0]=i,e[1]=n,e[2]=t,e[3]=o,e[4]=s,e[5]=a,e[6]=r,e[7]=l}else l=e[7];return l}function Y(o){const e=p.c(11),{org:i}=h(),n=R();let t;e[0]!==o||e[1]!==i.id?(t=m.aiProviderModels(i.id,o),e[0]=o,e[1]=i.id,e[2]=t):t=e[2];let s;e[3]!==o||e[4]!==n?(s=async()=>await n.call("AI_PROVIDERS_LIST_MODELS",{keyId:o}),e[3]=o,e[4]=n,e[5]=s):s=e[5];let a;e[6]!==t||e[7]!==s?(a={queryKey:t,staleTime:6e4,queryFn:s},e[6]=t,e[7]=s,e[8]=a):a=e[8];const{data:r}=S(a);let l;return e[9]!==r?.models?(l=r?.models??[],e[9]=r?.models,e[10]=l):l=e[10],l}export{E as a,b,W as c,z as d,B as e,Q as f,A as g,Y as h,F as i,H as p,G as u};
@@ -1 +1 @@
1
- import{c as U,X as q,a2 as I,K as T,m as Q,o as x,e as y,t as m,z}from"./index-CeFrI_-f.js";import{u as J}from"./use-mcp-client-CFwJWbBp.js";function V(t){if(t.paramsSchema&&typeof t.paramsSchema=="object")return t;const e={};if(Array.isArray(t.params))for(const s of t.params)e[s.name]={type:s.type,description:s.description,enum:s.enum};else t.params&&typeof t.params=="object"&&Object.assign(e,t.params);return{type:t.type,description:t.description,paramsSchema:e}}function et(t){const e=U.c(12),{org:s}=q(),l=t??z;let a;e[0]!==s.id||e[1]!==s.slug||e[2]!==l?(a={connectionId:l,orgId:s.id,orgSlug:s.slug},e[0]=s.id,e[1]=s.slug,e[2]=l,e[3]=a):a=e[3];const i=J(a);let n;e[4]!==t?(n=T.toolCall(t??"","TRIGGER_LIST",""),e[4]=t,e[5]=n):n=e[5];let o;e[6]!==i?(o=async()=>{const d=await i.callTool({name:"TRIGGER_LIST",arguments:{}});return(d.structuredContent??d).triggers.map(V)},e[6]=i,e[7]=o):o=e[7];const c=!!t;let r;return e[8]!==n||e[9]!==o||e[10]!==c?(r={queryKey:n,queryFn:o,enabled:c,staleTime:3e4},e[8]=n,e[9]=o,e[10]=c,e[11]=r):r=e[11],Q(r)}function st(t){const e=U.c(9),{org:s}=q(),l=I();let a;e[0]!==s.id||e[1]!==t?(a=T.automations(s.id,t),e[0]=s.id,e[1]=t,e[2]=a):a=e[2];let i;e[3]!==l||e[4]!==t?(i=async()=>(await l.call("AUTOMATION_LIST",t!=null?{virtual_mcp_id:t}:{})).automations,e[3]=l,e[4]=t,e[5]=i):i=e[5];let n;return e[6]!==a||e[7]!==i?(n={queryKey:a,queryFn:i,staleTime:1e4},e[6]=a,e[7]=i,e[8]=n):n=e[8],Q(n)}function it(t){const e=U.c(10),{org:s}=q(),l=I();let a;e[0]!==t||e[1]!==s.id?(a=T.automation(s.id,t),e[0]=t,e[1]=s.id,e[2]=a):a=e[2];let i;e[3]!==t||e[4]!==l?(i=async()=>(await l.call("AUTOMATION_GET",{id:t})).automation,e[3]=t,e[4]=l,e[5]=i):i=e[5];const n=!!t;let o;return e[6]!==a||e[7]!==i||e[8]!==n?(o={queryKey:a,queryFn:i,enabled:n,staleTime:1e4},e[6]=a,e[7]=i,e[8]=n,e[9]=o):o=e[9],Q(o)}function ot(t,e){const s=U.c(12),{org:l}=q(),a=I();let i;s[0]!==t||s[1]!==l.id||s[2]!==e?(i=T.automationRunStats(l.id,t,JSON.stringify(e??{})),s[0]=t,s[1]=l.id,s[2]=e,s[3]=i):i=s[3];let n;s[4]!==t||s[5]!==e||s[6]!==a?(n=async()=>await a.call("AUTOMATION_RUN_STATS",{automation_id:t,...e?.startDate?{startDate:e.startDate}:{},...e?.endDate?{endDate:e.endDate}:{}}),s[4]=t,s[5]=e,s[6]=a,s[7]=n):n=s[7];const o=!!t;let c;return s[8]!==i||s[9]!==n||s[10]!==o?(c={queryKey:i,queryFn:n,enabled:o,staleTime:3e4},s[8]=i,s[9]=n,s[10]=o,s[11]=c):c=s[11],Q(c)}function at(t){return{name:"New Automation",messages:[],models:{tier:"smart"},temperature:.5,active:!0,virtual_mcp_id:t}}function nt(){const t=U.c(64),{org:e}=q(),s=I(),l=x();let a;t[0]!==e||t[1]!==l?(a=()=>l.invalidateQueries({queryKey:T.automationsAll(e.id)}),t[0]=e,t[1]=l,t[2]=a):a=t[2];const i=a;let n;t[3]!==e||t[4]!==l?(n=u=>l.invalidateQueries({queryKey:T.automation(e.id,u)}),t[3]=e,t[4]=l,t[5]=n):n=t[5];const o=n;let c;t[6]!==s?(c=async u=>await s.call("AUTOMATION_CREATE",u),t[6]=s,t[7]=c):c=t[7];let r;t[8]!==i?(r=()=>{i(),m.success("Automation created successfully")},t[8]=i,t[9]=r):r=t[9];let d;t[10]!==c||t[11]!==r?(d={mutationFn:c,onSuccess:r,onError:W},t[10]=c,t[11]=r,t[12]=d):d=t[12];const D=y(d);let A;t[13]!==s?(A=async u=>await s.call("AUTOMATION_UPDATE",u),t[13]=s,t[14]=A):A=t[14];let p;t[15]!==i||t[16]!==o?(p=(u,f)=>{i(),typeof f.id=="string"&&o(f.id),m.success("Automation updated successfully")},t[15]=i,t[16]=o,t[17]=p):p=t[17];let G;t[18]!==A||t[19]!==p?(G={mutationFn:A,onSuccess:p,onError:H},t[18]=A,t[19]=p,t[20]=G):G=t[20];const j=y(G);let g;t[21]!==s?(g=async u=>await s.call("AUTOMATION_DELETE",{id:u}),t[21]=s,t[22]=g):g=t[22];let _;t[23]!==i||t[24]!==e||t[25]!==l?(_=(u,f)=>{l.removeQueries({queryKey:T.automation(e.id,f)}),i(),m.success("Automation deleted successfully")},t[23]=i,t[24]=e,t[25]=l,t[26]=_):_=t[26];let $;t[27]!==g||t[28]!==_?($={mutationFn:g,onSuccess:_,onError:B},t[27]=g,t[28]=_,t[29]=$):$=t[29];const k=y($);let E;t[30]!==s?(E=async u=>await s.call("AUTOMATION_TRIGGER_ADD",u),t[30]=s,t[31]=E):E=t[31];let S;t[32]!==i||t[33]!==o?(S=u=>{i(),o(u.automation_id)},t[32]=i,t[33]=o,t[34]=S):S=t[34];let K;t[35]!==E||t[36]!==S?(K={mutationFn:E,onSuccess:S},t[35]=E,t[36]=S,t[37]=K):K=t[37];const P=y(K);let O;t[38]!==s?(O=async u=>await s.call("AUTOMATION_TRIGGER_ROTATE_TOKEN",{trigger_id:u.trigger_id}),t[38]=s,t[39]=O):O=t[39];let R;t[40]!==i||t[41]!==o?(R=(u,f)=>{i(),o(f.automation_id)},t[40]=i,t[41]=o,t[42]=R):R=t[42];let C;t[43]!==O||t[44]!==R?(C={mutationFn:O,onSuccess:R},t[43]=O,t[44]=R,t[45]=C):C=t[45];const h=y(C);let F;t[46]!==s?(F=async u=>await s.call("AUTOMATION_TRIGGER_REMOVE",{trigger_id:u.trigger_id}),t[46]=s,t[47]=F):F=t[47];let N;t[48]!==i||t[49]!==o?(N=(u,f)=>{i(),o(f.automation_id)},t[48]=i,t[49]=o,t[50]=N):N=t[50];let b;t[51]!==F||t[52]!==N?(b={mutationFn:F,onSuccess:N},t[51]=F,t[52]=N,t[53]=b):b=t[53];const v=y(b);let L;t[54]!==s?(L={mutationFn:async u=>await s.call("AUTOMATION_RUN",{id:u}),onSuccess:Y,onError:X},t[54]=s,t[55]=L):L=t[55];const w=y(L);let M;return t[56]!==D||t[57]!==k||t[58]!==w||t[59]!==P||t[60]!==v||t[61]!==h||t[62]!==j?(M={create:D,update:j,remove:k,triggerAdd:P,triggerRemove:v,triggerRotateToken:h,run:w},t[56]=D,t[57]=k,t[58]=w,t[59]=P,t[60]=v,t[61]=h,t[62]=j,t[63]=M):M=t[63],M}function X(t){const e=t instanceof Error?t.message:String(t);m.error(`Failed to run automation: ${e}`)}function Y(t){t.skipped?m.info(`Automation skipped: ${t.skipped}`):t.error?m.error(`Automation failed: ${t.error}`):m.success("Automation triggered")}function B(t){const e=t instanceof Error?t.message:String(t);m.error(`Failed to delete automation: ${e}`)}function H(t){const e=t instanceof Error?t.message:String(t);m.error(`Failed to update automation: ${e}`)}function W(t){const e=t instanceof Error?t.message:String(t);m.error(`Failed to create automation: ${e}`)}export{nt as a,at as b,et as c,it as d,ot as e,st as u};
1
+ import{c as U,X as q,a2 as I,K as T,m as Q,o as x,e as y,t as m,z}from"./index-DUoAE5ST.js";import{u as J}from"./use-mcp-client-BUxJmD4z.js";function V(t){if(t.paramsSchema&&typeof t.paramsSchema=="object")return t;const e={};if(Array.isArray(t.params))for(const s of t.params)e[s.name]={type:s.type,description:s.description,enum:s.enum};else t.params&&typeof t.params=="object"&&Object.assign(e,t.params);return{type:t.type,description:t.description,paramsSchema:e}}function et(t){const e=U.c(12),{org:s}=q(),l=t??z;let a;e[0]!==s.id||e[1]!==s.slug||e[2]!==l?(a={connectionId:l,orgId:s.id,orgSlug:s.slug},e[0]=s.id,e[1]=s.slug,e[2]=l,e[3]=a):a=e[3];const i=J(a);let n;e[4]!==t?(n=T.toolCall(t??"","TRIGGER_LIST",""),e[4]=t,e[5]=n):n=e[5];let o;e[6]!==i?(o=async()=>{const d=await i.callTool({name:"TRIGGER_LIST",arguments:{}});return(d.structuredContent??d).triggers.map(V)},e[6]=i,e[7]=o):o=e[7];const c=!!t;let r;return e[8]!==n||e[9]!==o||e[10]!==c?(r={queryKey:n,queryFn:o,enabled:c,staleTime:3e4},e[8]=n,e[9]=o,e[10]=c,e[11]=r):r=e[11],Q(r)}function st(t){const e=U.c(9),{org:s}=q(),l=I();let a;e[0]!==s.id||e[1]!==t?(a=T.automations(s.id,t),e[0]=s.id,e[1]=t,e[2]=a):a=e[2];let i;e[3]!==l||e[4]!==t?(i=async()=>(await l.call("AUTOMATION_LIST",t!=null?{virtual_mcp_id:t}:{})).automations,e[3]=l,e[4]=t,e[5]=i):i=e[5];let n;return e[6]!==a||e[7]!==i?(n={queryKey:a,queryFn:i,staleTime:1e4},e[6]=a,e[7]=i,e[8]=n):n=e[8],Q(n)}function it(t){const e=U.c(10),{org:s}=q(),l=I();let a;e[0]!==t||e[1]!==s.id?(a=T.automation(s.id,t),e[0]=t,e[1]=s.id,e[2]=a):a=e[2];let i;e[3]!==t||e[4]!==l?(i=async()=>(await l.call("AUTOMATION_GET",{id:t})).automation,e[3]=t,e[4]=l,e[5]=i):i=e[5];const n=!!t;let o;return e[6]!==a||e[7]!==i||e[8]!==n?(o={queryKey:a,queryFn:i,enabled:n,staleTime:1e4},e[6]=a,e[7]=i,e[8]=n,e[9]=o):o=e[9],Q(o)}function ot(t,e){const s=U.c(12),{org:l}=q(),a=I();let i;s[0]!==t||s[1]!==l.id||s[2]!==e?(i=T.automationRunStats(l.id,t,JSON.stringify(e??{})),s[0]=t,s[1]=l.id,s[2]=e,s[3]=i):i=s[3];let n;s[4]!==t||s[5]!==e||s[6]!==a?(n=async()=>await a.call("AUTOMATION_RUN_STATS",{automation_id:t,...e?.startDate?{startDate:e.startDate}:{},...e?.endDate?{endDate:e.endDate}:{}}),s[4]=t,s[5]=e,s[6]=a,s[7]=n):n=s[7];const o=!!t;let c;return s[8]!==i||s[9]!==n||s[10]!==o?(c={queryKey:i,queryFn:n,enabled:o,staleTime:3e4},s[8]=i,s[9]=n,s[10]=o,s[11]=c):c=s[11],Q(c)}function at(t){return{name:"New Automation",messages:[],models:{tier:"smart"},temperature:.5,active:!0,virtual_mcp_id:t}}function nt(){const t=U.c(64),{org:e}=q(),s=I(),l=x();let a;t[0]!==e||t[1]!==l?(a=()=>l.invalidateQueries({queryKey:T.automationsAll(e.id)}),t[0]=e,t[1]=l,t[2]=a):a=t[2];const i=a;let n;t[3]!==e||t[4]!==l?(n=u=>l.invalidateQueries({queryKey:T.automation(e.id,u)}),t[3]=e,t[4]=l,t[5]=n):n=t[5];const o=n;let c;t[6]!==s?(c=async u=>await s.call("AUTOMATION_CREATE",u),t[6]=s,t[7]=c):c=t[7];let r;t[8]!==i?(r=()=>{i(),m.success("Automation created successfully")},t[8]=i,t[9]=r):r=t[9];let d;t[10]!==c||t[11]!==r?(d={mutationFn:c,onSuccess:r,onError:W},t[10]=c,t[11]=r,t[12]=d):d=t[12];const D=y(d);let A;t[13]!==s?(A=async u=>await s.call("AUTOMATION_UPDATE",u),t[13]=s,t[14]=A):A=t[14];let p;t[15]!==i||t[16]!==o?(p=(u,f)=>{i(),typeof f.id=="string"&&o(f.id),m.success("Automation updated successfully")},t[15]=i,t[16]=o,t[17]=p):p=t[17];let G;t[18]!==A||t[19]!==p?(G={mutationFn:A,onSuccess:p,onError:H},t[18]=A,t[19]=p,t[20]=G):G=t[20];const j=y(G);let g;t[21]!==s?(g=async u=>await s.call("AUTOMATION_DELETE",{id:u}),t[21]=s,t[22]=g):g=t[22];let _;t[23]!==i||t[24]!==e||t[25]!==l?(_=(u,f)=>{l.removeQueries({queryKey:T.automation(e.id,f)}),i(),m.success("Automation deleted successfully")},t[23]=i,t[24]=e,t[25]=l,t[26]=_):_=t[26];let $;t[27]!==g||t[28]!==_?($={mutationFn:g,onSuccess:_,onError:B},t[27]=g,t[28]=_,t[29]=$):$=t[29];const k=y($);let E;t[30]!==s?(E=async u=>await s.call("AUTOMATION_TRIGGER_ADD",u),t[30]=s,t[31]=E):E=t[31];let S;t[32]!==i||t[33]!==o?(S=u=>{i(),o(u.automation_id)},t[32]=i,t[33]=o,t[34]=S):S=t[34];let K;t[35]!==E||t[36]!==S?(K={mutationFn:E,onSuccess:S},t[35]=E,t[36]=S,t[37]=K):K=t[37];const P=y(K);let O;t[38]!==s?(O=async u=>await s.call("AUTOMATION_TRIGGER_ROTATE_TOKEN",{trigger_id:u.trigger_id}),t[38]=s,t[39]=O):O=t[39];let R;t[40]!==i||t[41]!==o?(R=(u,f)=>{i(),o(f.automation_id)},t[40]=i,t[41]=o,t[42]=R):R=t[42];let C;t[43]!==O||t[44]!==R?(C={mutationFn:O,onSuccess:R},t[43]=O,t[44]=R,t[45]=C):C=t[45];const h=y(C);let F;t[46]!==s?(F=async u=>await s.call("AUTOMATION_TRIGGER_REMOVE",{trigger_id:u.trigger_id}),t[46]=s,t[47]=F):F=t[47];let N;t[48]!==i||t[49]!==o?(N=(u,f)=>{i(),o(f.automation_id)},t[48]=i,t[49]=o,t[50]=N):N=t[50];let b;t[51]!==F||t[52]!==N?(b={mutationFn:F,onSuccess:N},t[51]=F,t[52]=N,t[53]=b):b=t[53];const v=y(b);let L;t[54]!==s?(L={mutationFn:async u=>await s.call("AUTOMATION_RUN",{id:u}),onSuccess:Y,onError:X},t[54]=s,t[55]=L):L=t[55];const w=y(L);let M;return t[56]!==D||t[57]!==k||t[58]!==w||t[59]!==P||t[60]!==v||t[61]!==h||t[62]!==j?(M={create:D,update:j,remove:k,triggerAdd:P,triggerRemove:v,triggerRotateToken:h,run:w},t[56]=D,t[57]=k,t[58]=w,t[59]=P,t[60]=v,t[61]=h,t[62]=j,t[63]=M):M=t[63],M}function X(t){const e=t instanceof Error?t.message:String(t);m.error(`Failed to run automation: ${e}`)}function Y(t){t.skipped?m.info(`Automation skipped: ${t.skipped}`):t.error?m.error(`Automation failed: ${t.error}`):m.success("Automation triggered")}function B(t){const e=t instanceof Error?t.message:String(t);m.error(`Failed to delete automation: ${e}`)}function H(t){const e=t instanceof Error?t.message:String(t);m.error(`Failed to update automation: ${e}`)}function W(t){const e=t instanceof Error?t.message:String(t);m.error(`Failed to create automation: ${e}`)}export{nt as a,at as b,et as c,it as d,ot as e,st as u};
@@ -1 +1 @@
1
- import{c as T,r as l}from"./index-CeFrI_-f.js";const _=700;function D(s,a,p){const e=T.c(8),f=p?.delay??_,g=p?.isSaving??!1,[m,d]=l.useState(s),[y,A]=l.useState(s),[r,i]=l.useState(!1),t=l.useRef(null);s!==y&&(A(s),!r&&!g&&d(s));let c;e[0]!==f||e[1]!==a?(c=o=>{d(o),i(!0),t.current&&clearTimeout(t.current),t.current=setTimeout(()=>{t.current=null,i(!1),a(o)},f)},e[0]=f,e[1]=a,e[2]=c):c=e[2];const S=c;let n;e[3]===Symbol.for("react.memo_cache_sentinel")?(n=o=>{d(o),t.current&&clearTimeout(t.current),t.current=null,i(!1)},e[3]=n):n=e[3];const E=n;let u;return e[4]!==m||e[5]!==r||e[6]!==S?(u=[m,S,E,r],e[4]=m,e[5]=r,e[6]=S,e[7]=u):u=e[7],u}export{D as u};
1
+ import{c as T,r as l}from"./index-DUoAE5ST.js";const _=700;function D(s,a,p){const e=T.c(8),f=p?.delay??_,g=p?.isSaving??!1,[m,d]=l.useState(s),[y,A]=l.useState(s),[r,i]=l.useState(!1),t=l.useRef(null);s!==y&&(A(s),!r&&!g&&d(s));let c;e[0]!==f||e[1]!==a?(c=o=>{d(o),i(!0),t.current&&clearTimeout(t.current),t.current=setTimeout(()=>{t.current=null,i(!1),a(o)},f)},e[0]=f,e[1]=a,e[2]=c):c=e[2];const S=c;let n;e[3]===Symbol.for("react.memo_cache_sentinel")?(n=o=>{d(o),t.current&&clearTimeout(t.current),t.current=null,i(!1)},e[3]=n):n=e[3];const E=n;let u;return e[4]!==m||e[5]!==r||e[6]!==S?(u=[m,S,E,r],e[4]=m,e[5]=r,e[6]=S,e[7]=u):u=e[7],u}export{D as u};
@@ -0,0 +1 @@
1
+ import{c as I,X as M,aQ as L,m as N,K as x,k as $,d as k,u as W}from"./index-DUoAE5ST.js";import{a as B}from"./use-file-configs-Dm5QQPiU.js";import{b as F}from"./use-organization-settings-BrhF1m2_.js";import{r as J,a as U}from"./site-slug-DebpOoQq.js";import{a as q}from"./thread-route-B6BPC0Ck.js";import{u as H}from"./use-panel-navigate-DSVmT0jD.js";import{b as K}from"./thread-intent-CqtUmKwo.js";const _=["overview","reports","board","site-editor","assets","hosting","e2e","analytics","cdn","automations","experiments"],Q=["overview","reports","board","site-editor"],z=1,X=["assets","hosting","e2e","analytics","cdn","experiments"];function me(t,e,s){if(!t)return{project:s??null,resolvedScopeId:null};const n=e?.id===t?e:s?.id===t?s:null;return{project:n,resolvedScopeId:n?t:null}}function he(t){return t?.sidebarViews!==void 0?t.sidebarViews:t?.ui?.layout?.sidebarViews}function j(t,e){const s=new Set(t??[]);if(e!==z)for(const n of Q)s.add(n);return _.filter(n=>s.has(n))}function Y(t){return _.some(e=>e===t)}function G(t){return X.some(e=>e===t)}function Z(t,e){return{overview:t,reports:t,board:t,"site-editor":t,assets:e.assets,hosting:e.hosting,e2e:e.e2e,analytics:e.analytics,cdn:e.cdn,experiments:t&&e.experiments,automations:!0}}function ge(t,e,s){const n=Z(e,s);return t?n:{...n,overview:!0,reports:!0,board:!0}}function Pe(t,e,s){const n=new Set(j(t,s));return _.filter(a=>e[a]&&n.has(a))}function Se(t,e,s){return s||!t?t:(t.type==="preview"||t.type==="content"||t.type==="code"?"site-editor":t.type)===e?{type:"settings"}:t}function be(t){return _.filter(e=>t[e])}function ee(t,e,s){return!Y(t)||e[t]?!1:G(t)?!(t==="assets"?s.assets:s.siteAccess):!0}function we(t,e,s,n,a){return ee(t==="preview"||t==="content"||t==="code"?"site-editor":t,e,s)||t==="content"&&!n.includes("content")||t==="code"&&a&&!n.includes("code")}function Ve(t,e,s,n){const a=new Set(j(t,n));return s?a.add(e):a.delete(e),_.filter(r=>a.has(r))}function te(t,e){if(!e)return null;const s=e.toLowerCase();return t.find(n=>{const a=n.bucket.toLowerCase();return n.siteSlug?.toLowerCase()===s||a===s||a===`deco-assets-${s}`})??null}function ye(t){const e=I.c(20),{org:s}=M(),n=L(),a=F(),r=B();let c;e[0]!==t?(c=J(t),e[0]=t,e[1]=c):c=e[1];const o=c,d=n.hostingEnabled===!0,P=n.monitorEnabled===!0||n.auth.localMode===!0,f=(d||P)&&!!o,p=v(s.slug,o,f);let m;e[2]!==t?(m=U(t),e[2]=t,e[3]=m):m=e[3];const u=m,S=P&&!!u&&u!==o,h=v(s.slug,u,S),g=p.data?.owned===!0,O=S?h.data?.owned===!0:g;let l;e[4]!==r.data?.configs?(l=r.data?.configs??[],e[4]=r.data?.configs,e[5]=l):l=e[5];let b;e[6]!==o||e[7]!==l?(b=te(l,o),e[6]=o,e[7]=l,e[8]=b):b=e[8];const V=!!b,w=d&&g&&a.hosting,i=d&&g&&a.e2e,y=d&&g&&a.analytics,C=P&&O&&a.monitor;let E;e[9]!==a.experiments||e[10]!==V||e[11]!==w||e[12]!==i||e[13]!==y||e[14]!==C?(E={assets:V,hosting:w,e2e:i,analytics:y,cdn:C,experiments:a.experiments},e[9]=a.experiments,e[10]=V,e[11]=w,e[12]=i,e[13]=y,e[14]=C,e[15]=E):E=e[15];const D=!!o&&r.isPending,T=f&&p.isPending||S&&h.isPending;let A;return e[16]!==D||e[17]!==T||e[18]!==E?(A={presence:E,assetsPending:D,siteAccessPending:T},e[16]=D,e[17]=T,e[18]=E,e[19]=A):A=e[19],A}function v(t,e,s){const n=I.c(10);let a;n[0]!==t||n[1]!==e?(a=x.hostingAccess(t,e??""),n[0]=t,n[1]=e,n[2]=a):a=n[2];let r;n[3]!==t||n[4]!==e?(r=async()=>{const o=await fetch(`/api/${t}/hosting/${encodeURIComponent(e??"")}/access`);return o.ok?await o.json():{owned:!1,canWrite:!1}},n[3]=t,n[4]=e,n[5]=r):r=n[5];let c;return n[6]!==s||n[7]!==a||n[8]!==r?(c={queryKey:a,queryFn:r,enabled:s,staleTime:6e4},n[6]=s,n[7]=a,n[8]=r,n[9]=c):c=n[9],N(c)}function ne(){const t=I.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:se},t[0]=e):e=t[0],$(e)}function se(t){for(let e=t.matches.length-1;e>=0;e--){const s=t.matches[e]?.staticData.defaultMain;if(s)return s}return null}function ae(t){return!!t.harness_id||!!t.title&&t.title!=="New chat"}function re(t){return t.threadOpen||t.contentOpen?t:{...t,threadOpen:!0}}function oe(t){const e=t.entityMetadata?.defaultMainView??null,s=e==null||e.type==="chat",n=t.mainPanelParam??(t.panelNamed||!!t.routeDefaultMain||!s),a=t.routeDefaultMain?!1:s||t.entityMetadata?.chatDefaultOpen===!0||t.threadHasMessages===!0,r=t.threadVisibilityExplicit?t.sidePanelParamValue===!0:a;return re({threadOpen:r,contentOpen:n})}function R(t,e){switch(t.type){case"toggleThread":return e.threadOpen?e.contentOpen?{sidepanel:!1}:null:{sidepanel:!0};case"toggleContent":return e.contentOpen?{mainpanel:!1,sidepanel:!0}:{mainpanel:!0};case"openThread":return e.threadOpen?null:{sidepanel:!0}}}function Ee(t){return t.threadOpen&&t.contentOpen?{side:33,main:67}:t.threadOpen?{side:100,main:0}:t.contentOpen?{side:0,main:100}:{side:0,main:0}}function Oe(t){const{threadOpen:e,contentOpen:s}=t.visibility;return e&&(t.threadVisibilityExplicit||!s)?"chat":s?"main":"chat"}function Ce(t){return t==="main"?{sidepanel:!1,mainpanel:!0}:{sidepanel:!0,mainpanel:!1}}function _e(t){const e=I.c(26),s=k();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={strict:!1},e[0]=n):n=e[0];const a=W(n),{threads:r}=K(),c=ne(),o=H(),d=q();let P;if(e[1]!==t||e[2]!==o||e[3]!==c||e[4]!==a.mainpanel||e[5]!==a.sidepanel||e[6]!==d||e[7]!==r){const i=d!=null?r.find(y=>y.id===d):void 0;P=oe({entityMetadata:t,mainPanelParam:a.mainpanel,panelNamed:o!==void 0,threadVisibilityExplicit:a.sidepanel!==void 0,sidePanelParamValue:a.sidepanel,routeDefaultMain:c,threadHasMessages:i?ae(i):!1}),e[1]=t,e[2]=o,e[3]=c,e[4]=a.mainpanel,e[5]=a.sidepanel,e[6]=d,e[7]=r,e[8]=P}else P=e[8];const{threadOpen:f,contentOpen:p}=P;let m;e[9]!==p||e[10]!==f?(m={threadOpen:f,contentOpen:p},e[9]=p,e[10]=f,e[11]=m):m=e[11];const u=m;let S;e[12]!==s?(S=(i,y)=>{s({to:".",search:C=>({...C,...i}),replace:y?.replace??!1})},e[12]=s,e[13]=S):S=e[13];const h=S;let g;e[14]!==h||e[15]!==u?(g=()=>{const i=R({type:"toggleContent"},u);i&&h(i,{replace:!0})},e[14]=h,e[15]=u,e[16]=g):g=e[16];const O=g;let l;e[17]!==h||e[18]!==u?(l=()=>{const i=R({type:"toggleThread"},u);i&&h(i,{replace:!0})},e[17]=h,e[18]=u,e[19]=l):l=e[19];const b=l,V=a.sidepanel!==void 0;let w;return e[20]!==p||e[21]!==V||e[22]!==f||e[23]!==O||e[24]!==b?(w={threadOpen:f,contentOpen:p,threadVisibilityExplicit:V,toggleContent:O,toggleThread:b},e[20]=p,e[21]=V,e[22]=f,e[23]=O,e[24]=b,e[25]=w):w=e[25],w}export{X as P,_e as a,te as b,z as c,Oe as d,j as e,Ee as f,ne as g,me as h,G as i,ge as j,we as k,ee as l,Ce as m,be as n,Ve as o,Z as p,Se as q,he as r,Pe as s,ae as t,ye as u};