@decocms/mesh 2.134.0 → 2.135.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (203) hide show
  1. package/dist/client/assets/{AlertCircle-dxGFeayp.js → AlertCircle-BqSf9XUV.js} +1 -1
  2. package/dist/client/assets/{AlignLeft-zf4ygcA_.js → AlignLeft-fmMf4Dhk.js} +1 -1
  3. package/dist/client/assets/{ArrowDown-BfANN175.js → ArrowDown-C1XwJGei.js} +1 -1
  4. package/dist/client/assets/{ArrowLeft-DKmEJ5pf.js → ArrowLeft-v0wYt8Zz.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-BNm6R5tp.js → ArrowUp-D96x2aXm.js} +1 -1
  6. package/dist/client/assets/{Check-BuBqfL8V.js → Check-CBQI4sX_.js} +1 -1
  7. package/dist/client/assets/{CheckCircle-B-t884rD.js → CheckCircle-c8wiOGE1.js} +1 -1
  8. package/dist/client/assets/{CheckDone01-C_N43WOE.js → CheckDone01-BTaEYg_h.js} +1 -1
  9. package/dist/client/assets/{CheckVerified02-CF--qrDr.js → CheckVerified02-CPJrheMw.js} +1 -1
  10. package/dist/client/assets/{ChevronDown-D15Vpp0r.js → ChevronDown-sLr8XVsl.js} +1 -1
  11. package/dist/client/assets/{ChevronLeft-CJX984rp.js → ChevronLeft-Bb-Z1INZ.js} +1 -1
  12. package/dist/client/assets/{ChevronRight-u7jqeZNG.js → ChevronRight-DvHc-b9M.js} +1 -1
  13. package/dist/client/assets/{Clock-B88-VhpY.js → Clock-CHIf9oFX.js} +1 -1
  14. package/dist/client/assets/{Code01-DhSY1b20.js → Code01-dJCW2bE8.js} +1 -1
  15. package/dist/client/assets/{Container-CFxptFeR.js → Container-B6Xs6_xK.js} +1 -1
  16. package/dist/client/assets/{Copy01-D2l3XUry.js → Copy01-DZUQRIVw.js} +1 -1
  17. package/dist/client/assets/{Dataflow03-TMmWfgl9.js → Dataflow03-C15CIhqP.js} +1 -1
  18. package/dist/client/assets/{DotsHorizontal-CZq86zFa.js → DotsHorizontal-BTto-v_2.js} +1 -1
  19. package/dist/client/assets/{DotsVertical-B78gtBdB.js → DotsVertical-CJ3pBFjL.js} +1 -1
  20. package/dist/client/assets/{Download01-DDJLkXru.js → Download01-BOSik_M0.js} +1 -1
  21. package/dist/client/assets/{Edit01-CbZPkCJz.js → Edit01-Dm0PZjiv.js} +1 -1
  22. package/dist/client/assets/Edit05-DhF5NlD_.js +1 -0
  23. package/dist/client/assets/{Eye-vR70tVFn.js → Eye-BR_9-9sx.js} +1 -1
  24. package/dist/client/assets/{File02-B1NunE2J.js → File02-DAE7GGwr.js} +1 -1
  25. package/dist/client/assets/{File06-D8w_IYOr.js → File06-DNepDitQ.js} +1 -1
  26. package/dist/client/assets/{FilterLines-BY-bo6_s.js → FilterLines-CQm34GP3.js} +1 -1
  27. package/dist/client/assets/{Globe01-CL7GrOsx.js → Globe01-BfbxrBLS.js} +1 -1
  28. package/dist/client/assets/{Globe02-6j3SB4QZ.js → Globe02-DSMumXCe.js} +1 -1
  29. package/dist/client/assets/{Grid01-DjcW2Js4.js → Grid01-DxL3VpUb.js} +1 -1
  30. package/dist/client/assets/{Hash02-BMwtcDtI.js → Hash02-CFuGdZAM.js} +1 -1
  31. package/dist/client/assets/{Home02-CMWrNstp.js → Home02-BVRQCIR4.js} +1 -1
  32. package/dist/client/assets/{Image01-oZtE9Z5q.js → Image01-CHnBumwc.js} +1 -1
  33. package/dist/client/assets/{Inbox01-xF_R8liT.js → Inbox01-ImXIGZnT.js} +1 -1
  34. package/dist/client/assets/{InfoCircle-B_WtF_e0.js → InfoCircle-C3KOURux.js} +1 -1
  35. package/dist/client/assets/{Key01-Cvjt_ykt.js → Key01-gRJDeefs.js} +1 -1
  36. package/dist/client/assets/{LayersTwo01-f778oNbj.js → LayersTwo01-D_3HSgdj.js} +1 -1
  37. package/dist/client/assets/{LayoutLeft-BXJHafgx.js → LayoutLeft-D7CckYm4.js} +1 -1
  38. package/dist/client/assets/Link01-dup1fxbM.js +1 -0
  39. package/dist/client/assets/{LinkExternal01-DY3cItdE.js → LinkExternal01-DSo4qVUo.js} +1 -1
  40. package/dist/client/assets/{List-Be3XBHwN.js → List-C6WR2hvg.js} +1 -1
  41. package/dist/client/assets/{Loading01-BLoQsWVt.js → Loading01-9Lg_Mx7W.js} +1 -1
  42. package/dist/client/assets/{Lock01-Cj3RiFKG.js → Lock01-D6q_Pfp1.js} +1 -1
  43. package/dist/client/assets/{Play-CCz3CWMJ.js → Play-BGC0DAwr.js} +1 -1
  44. package/dist/client/assets/{Plus-4zX3n4bH.js → Plus-BnMd-Nlg.js} +1 -1
  45. package/dist/client/assets/{RefreshCcw01-DzE0Vt_s.js → RefreshCcw01-CzWuABhj.js} +1 -1
  46. package/dist/client/assets/{Save01-DiUMsefH.js → Save01-CPtH6rzJ.js} +1 -1
  47. package/dist/client/assets/{SearchMd-BvHN4xgB.js → SearchMd-Br2lRaPk.js} +1 -1
  48. package/dist/client/assets/{Settings01-B5kunEo2.js → Settings01-CjytruXR.js} +1 -1
  49. package/dist/client/assets/{Shield01-DrTQ94s0.js → Shield01-XEBn-es0.js} +1 -1
  50. package/dist/client/assets/{Terminal-DQnj9LXz.js → Terminal-CWZ1oaiF.js} +1 -1
  51. package/dist/client/assets/{Trash01-BvIumE4M.js → Trash01-DTIwE-5T.js} +1 -1
  52. package/dist/client/assets/{Upload01-DLPOqCLa.js → Upload01-BiL8UuQ_.js} +1 -1
  53. package/dist/client/assets/{Users03-CUxh9_Jy.js → Users03-D9nwvJXd.js} +1 -1
  54. package/dist/client/assets/{X-CpsrVd7E.js → X-B_qRWJ2C.js} +1 -1
  55. package/dist/client/assets/{XCircle-BcvU_Xzf.js → XCircle-B4yxlakR.js} +1 -1
  56. package/dist/client/assets/{XClose-CnTCpAeI.js → XClose-ChV_2xLJ.js} +1 -1
  57. package/dist/client/assets/{Zap-BACXfgKn.js → Zap-DywL0ofa.js} +1 -1
  58. package/dist/client/assets/{agent-connections-preview-BTescy5G.js → agent-connections-preview-CR5wYkAd.js} +1 -1
  59. package/dist/client/assets/agent-detail-B0zz3Unf.js +2 -0
  60. package/dist/client/assets/{agents-DkUxuyJc.js → agents-C11f5XN0.js} +1 -1
  61. package/dist/client/assets/{alert-dialog-B0yEBEkb.js → alert-dialog-D90wrdGx.js} +2 -2
  62. package/dist/client/assets/{auth-catchall-CZYx2ePL.js → auth-catchall-D2-i9TBI.js} +1 -1
  63. package/dist/client/assets/{avatar-BeiX4aSz.js → avatar-D4ALUDCI.js} +1 -1
  64. package/dist/client/assets/{badge-UPowR1Nj.js → badge-DuS2OMla.js} +1 -1
  65. package/dist/client/assets/{binder-DUACCYIe.js → binder-BCMoHYJm.js} +1 -1
  66. package/dist/client/assets/{breadcrumb-DxXcAXh7.js → breadcrumb-g5L8PoZQ.js} +1 -1
  67. package/dist/client/assets/{card-BRjix5ol.js → card-Cj-GkUHD.js} +1 -1
  68. package/dist/client/assets/{chart-FIHtzVp6.js → chart-Bmp1PhEI.js} +1 -1
  69. package/dist/client/assets/{checkbox-Df-Mj-oX.js → checkbox-CKtularS.js} +1 -1
  70. package/dist/client/assets/{circle-alert-CHATLFG-.js → circle-alert-CrasxNEk.js} +1 -1
  71. package/dist/client/assets/{collapsible-CG7okAAn.js → collapsible-Dz2sA23f.js} +1 -1
  72. package/dist/client/assets/{collection-detail-DnFoqwX5.js → collection-detail-B0kCQWSA.js} +3 -3
  73. package/dist/client/assets/{collection-search-BgstpGbD.js → collection-search-Dslk4ok0.js} +1 -1
  74. package/dist/client/assets/{collection-tab-CkymCS_K.js → collection-tab-Bjsr3KyB.js} +1 -1
  75. package/dist/client/assets/{collection-table-wrapper-B7II4YYC.js → collection-table-wrapper-1X3tw2a2.js} +1 -1
  76. package/dist/client/assets/{collection-tabs-nglpt7Dm.js → collection-tabs-eMWLSkiq.js} +1 -1
  77. package/dist/client/assets/{command-BvChE5AN.js → command-RQQRkz7x.js} +1 -1
  78. package/dist/client/assets/{connect-C_zUgms_.js → connect-DEIJWaRW.js} +1 -1
  79. package/dist/client/assets/{connection-card-DE2PfyYV.js → connection-card-M2mu32Xr.js} +1 -1
  80. package/dist/client/assets/connection-detail-CyhxKizj.js +1 -0
  81. package/dist/client/assets/connections-RcVdNIqa.js +1 -0
  82. package/dist/client/assets/constants-Cc2ACrvf.js +1 -0
  83. package/dist/client/assets/{constants--aQ9HnxF.js → constants-CvFlNMMf.js} +1 -1
  84. package/dist/client/assets/{create-organization-dialog-BW4s7GqS.js → create-organization-dialog-Cy9g6fXy.js} +1 -1
  85. package/dist/client/assets/{create-project-dialog-BMiLf2Mr.js → create-project-dialog-BokLXtCa.js} +1 -1
  86. package/dist/client/assets/{danger-BAlOLeDE.js → danger-BRBu-XbG.js} +1 -1
  87. package/dist/client/assets/{danger-zone-PDtJsuS3.js → danger-zone-CW-YKRlc.js} +1 -1
  88. package/dist/client/assets/{decopilot-events-DZodCqX1.js → decopilot-events-Bt8Q6ljY.js} +1 -1
  89. package/dist/client/assets/{dependencies-DOcreK8_.js → dependencies-EgZz5h4q.js} +1 -1
  90. package/dist/client/assets/{dialog-CrYlSCa6.js → dialog-DXvsnaeO.js} +1 -1
  91. package/dist/client/assets/{dropdown-menu-DvfBJ25L.js → dropdown-menu-CgkGkmVE.js} +1 -1
  92. package/dist/client/assets/{dynamic-plugin-layout-1UBvkRf8.js → dynamic-plugin-layout-Bh-Sy3yI.js} +1 -1
  93. package/dist/client/assets/{editable-task-title-emHsd6RF.js → editable-task-title-B-3SGsGo.js} +1 -1
  94. package/dist/client/assets/{empty-state-C2LU6BeW.js → empty-state-K_49Yi3c.js} +1 -1
  95. package/dist/client/assets/{env-vars-editor-DM7ragIP.js → env-vars-editor-DtCYaIFM.js} +1 -1
  96. package/dist/client/assets/{extract-connection-data-DtOGbK2O.js → extract-connection-data-DuIP9X1x.js} +1 -1
  97. package/dist/client/assets/{file-browser-dzB3GMud.js → file-browser-D6y0-s-B.js} +2 -2
  98. package/dist/client/assets/{form-DKOb9Dxi.js → form-BMyUyHR8.js} +1 -1
  99. package/dist/client/assets/{general-C8KCERL-.js → general-DPne5Rst.js} +1 -1
  100. package/dist/client/assets/{grid-view-Dp6SbR5A.js → grid-view-DWY5vx7E.js} +1 -1
  101. package/dist/client/assets/{home-DpLONLMM.js → home-BLbBKv2q.js} +1 -1
  102. package/dist/client/assets/icon-picker-XNuq6Ojb.js +1 -0
  103. package/dist/client/assets/{index-ZJA9ZP0w.js → index-BVNGR9tO.js} +1 -1
  104. package/dist/client/assets/{index-CKt9M-ST.js → index-BVkROdsW.js} +1 -1
  105. package/dist/client/assets/{index-dKQNml8k.js → index-Bk2D_7VR.js} +1 -1
  106. package/dist/client/assets/{index-Bq_4mEQF.js → index-BlLYz5FA.js} +1 -1
  107. package/dist/client/assets/{index-UbMd2WCz.js → index-Bzupbb1x.js} +1 -1
  108. package/dist/client/assets/{index-BkxNgQ-z.js → index-CgikKIzX.js} +3 -3
  109. package/dist/client/assets/{index-CuJORTyw.js → index-ChgCwqm9.js} +1 -1
  110. package/dist/client/assets/{index-B4YFEuZr.js → index-CpowEWO4.js} +1 -1
  111. package/dist/client/assets/{index-nMGos9dp.css → index-Cr3FYIgR.css} +1 -1
  112. package/dist/client/assets/{index-u5kBBr5i.js → index-YSA_3gRo.js} +1 -1
  113. package/dist/client/assets/{infiniteQueryObserver-DFroUYRE.js → infiniteQueryObserver-DsXqsvOO.js} +1 -1
  114. package/dist/client/assets/{input-BxWPl4Ur.js → input-BT1GzEWi.js} +1 -1
  115. package/dist/client/assets/{integration-icon-DqBJsR0X.js → integration-icon-B4kJo2_s.js} +1 -1
  116. package/dist/client/assets/{label-DQ6CQRMq.js → label-C45a6iTA.js} +1 -1
  117. package/dist/client/assets/{layout-rnNZXdmD.js → layout-8RHk-XUu.js} +1 -1
  118. package/dist/client/assets/{layout-0mFUwCP9.js → layout-i-b38NBH.js} +1 -1
  119. package/dist/client/assets/{localstorage-keys-2beZrYfY.js → localstorage-keys-DSrv9tDi.js} +1 -1
  120. package/dist/client/assets/{login-DcPWsiJb.js → login-CVyMi6pm.js} +1 -1
  121. package/dist/client/assets/{markdown-08iefd1w.js → markdown-D5PO6M9Q.js} +1 -1
  122. package/dist/client/assets/{mcp-app-renderer-DlqJcoS_.js → mcp-app-renderer-Bzzuvi2c.js} +1 -1
  123. package/dist/client/assets/{mcp-oauth-hrdldmcp.js → mcp-oauth-BlOxWyfu.js} +1 -1
  124. package/dist/client/assets/{mcp-server-card-DopVvusq.js → mcp-server-card-VOiv-alx.js} +1 -1
  125. package/dist/client/assets/{mcp-server-detail-6bJ8ASSa.js → mcp-server-detail-C1SyJ2Ed.js} +2 -2
  126. package/dist/client/assets/{members-Do6CpQ6P.js → members-Lw-_oafM.js} +1 -1
  127. package/dist/client/assets/monaco-editor-Dr7dUeu1.js +19 -0
  128. package/dist/client/assets/{monitoring-CKBrV8zM.js → monitoring-ByAenRo_.js} +3 -3
  129. package/dist/client/assets/{monitoring-dashboard-edit-CisDX-AH.js → monitoring-dashboard-edit-Bzo9Gn9E.js} +1 -1
  130. package/dist/client/assets/{monitoring-dashboard-view-CLglwuRf.js → monitoring-dashboard-view-gYXt6fDh.js} +2 -2
  131. package/dist/client/assets/{oauth-callback-EWqhoS77.js → oauth-callback-sQ2SwOuh.js} +1 -1
  132. package/dist/client/assets/{page-CrIdFE4e.js → page-CznSm6bI.js} +1 -1
  133. package/dist/client/assets/{page-BIGqii57.js → page-DbCpTdbi.js} +1 -1
  134. package/dist/client/assets/{plugin-empty-state-AsJFZqlq.js → plugin-empty-state-C8aP3uOY.js} +1 -1
  135. package/dist/client/assets/{plugin-empty-state-DgfbXovL.js → plugin-empty-state-COcpG8Q-.js} +1 -1
  136. package/dist/client/assets/{plugin-header-DMTu3kKy.js → plugin-header-DWxvwZb6.js} +1 -1
  137. package/dist/client/assets/{plugin-header-CdB0sXQc.js → plugin-header-crfuDJWj.js} +1 -1
  138. package/dist/client/assets/plugins-BhX8dVGK.js +1 -0
  139. package/dist/client/assets/popover-ew-AFjK-.js +1 -0
  140. package/dist/client/assets/{project-app-view-CrOJlRSX.js → project-app-view-XMflyzaA.js} +1 -1
  141. package/dist/client/assets/{project-layout-CxbfzuHT.js → project-layout-Ns_WJXXt.js} +1 -1
  142. package/dist/client/assets/{project-plugins-OrxVzBYc.js → project-plugins-CF5_VX1i.js} +1 -1
  143. package/dist/client/assets/{projects-list-CaeO-dsb.js → projects-list-8MTtLmHN.js} +1 -1
  144. package/dist/client/assets/{readme-viewer-CvFtkeFt.js → readme-viewer-BJA2EnoQ.js} +1 -1
  145. package/dist/client/assets/{registry-layout-C_lUsUO4.js → registry-layout-DOBt_uIJ.js} +3 -3
  146. package/dist/client/assets/{registry-utils-Bm8aYhvn.js → registry-utils-BapNTecL.js} +1 -1
  147. package/dist/client/assets/{reports-layout-COQgk5-M.js → reports-layout-DCjyOG8T.js} +1 -1
  148. package/dist/client/assets/{reset-password-BHTKtR6U.js → reset-password-Bf0C1T_u.js} +1 -1
  149. package/dist/client/assets/{resizable-DNctE6m6.js → resizable-DasgSTKU.js} +1 -1
  150. package/dist/client/assets/{save-actions-DgW9lLRI.js → save-actions-vRwzyds-.js} +1 -1
  151. package/dist/client/assets/scroll-area-B1PFdc0L.js +1 -0
  152. package/dist/client/assets/{select-CHQkyynJ.js → select-B8htoZV8.js} +1 -1
  153. package/dist/client/assets/{shell-layout-CZrDFZIJ.js → shell-layout-DL42jtyU.js} +2 -2
  154. package/dist/client/assets/{sidebar-settings-C8pM5SP-.js → sidebar-settings-D4yFK0ER.js} +1 -1
  155. package/dist/client/assets/{skeleton-Bla1LCSZ.js → skeleton-DO02PARZ.js} +1 -1
  156. package/dist/client/assets/{spinner-B_k6AtHn.js → spinner-BpG7RgTa.js} +1 -1
  157. package/dist/client/assets/{store-invite-CVXBjHsb.js → store-invite-BFsXYhOH.js} +1 -1
  158. package/dist/client/assets/{switch-BX7m8ylT.js → switch-Ci3hf_qU.js} +1 -1
  159. package/dist/client/assets/{table-BJ3W5Geb.js → table-7t3Ngqct.js} +1 -1
  160. package/dist/client/assets/{tabs-tcquyh90.js → tabs-CfY-0viT.js} +1 -1
  161. package/dist/client/assets/tasks-B7PtG_GW.js +1 -0
  162. package/dist/client/assets/{tasks-panel-CIityBOn.js → tasks-panel-JfkvqYp-.js} +1 -1
  163. package/dist/client/assets/{textarea-CceQB-N2.js → textarea-C9UUVIil.js} +1 -1
  164. package/dist/client/assets/{time-range-picker-B9lHM6xz.js → time-range-picker-0Iclb7jG.js} +2 -2
  165. package/dist/client/assets/{toggle-group-KbsXFu3M.js → toggle-group-BVdBhpTO.js} +1 -1
  166. package/dist/client/assets/{tools-list-Cb9H3DsC.js → tools-list-DNBJLnHb.js} +1 -1
  167. package/dist/client/assets/{tooltip-DvMRS01W.js → tooltip-iSvWdfhX.js} +1 -1
  168. package/dist/client/assets/{topbar-portal-CyxFPAeb.js → topbar-portal-TVMhcJUX.js} +1 -1
  169. package/dist/client/assets/{types-9lUbCnT7.js → types-DA9O3-4Z.js} +1 -1
  170. package/dist/client/assets/{use-binding-CVLYzFG-.js → use-binding-BrV6OHbU.js} +1 -1
  171. package/dist/client/assets/{use-connection-DjiXkPUz.js → use-connection-0uAZ0JSW.js} +1 -1
  172. package/dist/client/assets/{use-copy-DiVO6tbG.js → use-copy-B9seMJvp.js} +1 -1
  173. package/dist/client/assets/{use-create-virtual-mcp-DnOGpm5h.js → use-create-virtual-mcp-DYC0dnj3.js} +1 -1
  174. package/dist/client/assets/{use-install-from-registry-kgqBLGhb.js → use-install-from-registry-CuIrTAAm.js} +1 -1
  175. package/dist/client/assets/{use-list-state-CCFlT7yz.js → use-list-state-BywHZDup.js} +1 -1
  176. package/dist/client/assets/{use-llm-Bkjj502R.js → use-llm-lqRff0qp.js} +1 -1
  177. package/dist/client/assets/{use-mcp-resources-DS8p1Owh.js → use-mcp-resources-CgAaDxBc.js} +1 -1
  178. package/dist/client/assets/{use-mcp-tools-CHOGR3no.js → use-mcp-tools-BN8bfZn3.js} +1 -1
  179. package/dist/client/assets/{use-members-94lmhn12.js → use-members-BnEfwka5.js} +1 -1
  180. package/dist/client/assets/{use-mobile-BArkW6j1.js → use-mobile-CePuocbs.js} +1 -1
  181. package/dist/client/assets/{use-project-BRlk9_cU.js → use-project-BCpZSYEH.js} +1 -1
  182. package/dist/client/assets/{use-settings-modal-QjZt77PI.js → use-settings-modal-BhxNgsgy.js} +1 -1
  183. package/dist/client/assets/{use-view-mode-3_G2qIMG.js → use-view-mode-C4bMLQky.js} +1 -1
  184. package/dist/client/assets/{use-virtual-mcp-Wj5StsuR.js → use-virtual-mcp-XCW3W4C9.js} +1 -1
  185. package/dist/client/assets/useInfiniteQuery-Bp_AF-J9.js +1 -0
  186. package/dist/client/assets/{useMutation-DtOoZO7h.js → useMutation-CspL2qBT.js} +1 -1
  187. package/dist/client/assets/useQuery-BEiGk_96.js +1 -0
  188. package/dist/client/assets/useSuspenseInfiniteQuery-Bqpp4FtC.js +1 -0
  189. package/dist/client/assets/{user-BcEL6pjj.js → user-BHCtEUxl.js} +1 -1
  190. package/dist/client/assets/{workflow-Bdyylvch.js → workflow-DiR4gKq6.js} +1 -1
  191. package/dist/client/index.html +2 -2
  192. package/package.json +1 -1
  193. package/dist/client/assets/agent-detail-C9_VIiuY.js +0 -2
  194. package/dist/client/assets/connection-detail-CIlY792n.js +0 -1
  195. package/dist/client/assets/connections-e6eEADmb.js +0 -1
  196. package/dist/client/assets/constants-DoLvwboP.js +0 -1
  197. package/dist/client/assets/plugins-AJrV2JnY.js +0 -1
  198. package/dist/client/assets/popover-CJnKtmVV.js +0 -1
  199. package/dist/client/assets/scroll-area-Ce3JzMbc.js +0 -19
  200. package/dist/client/assets/tasks-CJro_3w3.js +0 -1
  201. package/dist/client/assets/useInfiniteQuery-cPtxg-KP.js +0 -1
  202. package/dist/client/assets/useQuery-Cj-miqA2.js +0 -1
  203. package/dist/client/assets/useSuspenseInfiniteQuery-D62VIKAF.js +0 -1
@@ -1 +1 @@
1
- import{r as i,I as H,j as c,aU as W,H as K,M as C,T as S,aV as Z,aH as J,G as Q,aW as ee,aX as $,aY as te,aZ as oe,U as re,a_ as ne,a$ as se,c as j,v as ae}from"./index-BkxNgQ-z.js";import{R as ie}from"./index-dKQNml8k.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=J(),f=i.useRef(0),h=l??a.disableHoverableContent,T=d??a.delayDuration,g=i.useRef(!1),[y,m]=Q({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]),I=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(ee,{...p,children:c.jsx(ue,{scope:e,contentId:x,open:y,stateAttribute:w,trigger:u,onTriggerChange:v,onTriggerEnter:i.useCallback(()=>{a.isOpenDelayedRef.current?I():E()},[a.isOpenDelayedRef,I,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",U=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(W,{asChild:!0,...l,children:c.jsx(K.button,{"aria-describedby":n.open?n.contentId:void 0,"data-state":n.stateAttribute,...r,ref:a,onPointerMove:C(o.onPointerMove,x=>{x.pointerType!=="touch"&&!u.current&&!s.isPointerInTransitRef.current&&(n.onTriggerEnter(),u.current=!0)}),onPointerLeave:C(o.onPointerLeave,()=>{n.onTriggerLeave(),u.current=!1}),onPointerDown:C(o.onPointerDown,()=>{n.open&&n.onClose(),p.current=!0,document.addEventListener("pointerup",v,{once:!0})}),onFocus:C(o.onFocus,()=>{p.current||n.onOpen()}),onBlur:C(o.onBlur,n.onClose),onClick:C(o.onClick,n.onClose)})})});U.displayName=L;var M="TooltipPortal",[de,pe]=O(M,{forceMount:void 0}),B=o=>{const{__scopeTooltip:e,forceMount:t,children:r,container:n}=o,s=_(M,e);return c.jsx(de,{scope:e,forceMount:t,children:c.jsx(S,{present:t||s.open,children:c.jsx(Z,{asChild:!0,container:n,children:r})})})};B.displayName=M;var b="TooltipContent",V=i.forwardRef((o,e)=>{const t=pe(b,o.__scopeTooltip),{forceMount:r=t.forceMount,side:n="top",...s}=o,l=_(b,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=_(b,o.__scopeTooltip),r=k(b,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=Ce([...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=_(b,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=b;var X="TooltipArrow",q=i.forwardRef((o,e)=>{const{__scopeTooltip:t,...r}=o,n=D(t);return xe(X,t).isInside?null:c.jsx(se,{...n,...r,ref:e})});q.displayName=X;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 Ce(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),be(e)}function be(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=U,Re=B,_e=V,je=q;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 Me(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("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,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{Le as T,ke as a,Me as b,Oe as c};
1
+ import{r as i,I as H,j as c,aW as W,H as K,M as C,T as S,aX as Z,aH as J,G as Q,aY as ee,aZ as $,a_ as te,a$ as oe,U as re,b0 as ne,b1 as se,c as j,v as ae}from"./index-CgikKIzX.js";import{R as ie}from"./index-Bk2D_7VR.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=J(),f=i.useRef(0),h=l??a.disableHoverableContent,T=d??a.delayDuration,g=i.useRef(!1),[y,m]=Q({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]),I=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(ee,{...p,children:c.jsx(ue,{scope:e,contentId:x,open:y,stateAttribute:w,trigger:u,onTriggerChange:v,onTriggerEnter:i.useCallback(()=>{a.isOpenDelayedRef.current?I():E()},[a.isOpenDelayedRef,I,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(W,{asChild:!0,...l,children:c.jsx(K.button,{"aria-describedby":n.open?n.contentId:void 0,"data-state":n.stateAttribute,...r,ref:a,onPointerMove:C(o.onPointerMove,x=>{x.pointerType!=="touch"&&!u.current&&!s.isPointerInTransitRef.current&&(n.onTriggerEnter(),u.current=!0)}),onPointerLeave:C(o.onPointerLeave,()=>{n.onTriggerLeave(),u.current=!1}),onPointerDown:C(o.onPointerDown,()=>{n.open&&n.onClose(),p.current=!0,document.addEventListener("pointerup",v,{once:!0})}),onFocus:C(o.onFocus,()=>{p.current||n.onOpen()}),onBlur:C(o.onBlur,n.onClose),onClick:C(o.onClick,n.onClose)})})});B.displayName=L;var M="TooltipPortal",[de,pe]=O(M,{forceMount:void 0}),U=o=>{const{__scopeTooltip:e,forceMount:t,children:r,container:n}=o,s=_(M,e);return c.jsx(de,{scope:e,forceMount:t,children:c.jsx(S,{present:t||s.open,children:c.jsx(Z,{asChild:!0,container:n,children:r})})})};U.displayName=M;var b="TooltipContent",Y=i.forwardRef((o,e)=>{const t=pe(b,o.__scopeTooltip),{forceMount:r=t.forceMount,side:n="top",...s}=o,l=_(b,o.__scopeTooltip);return c.jsx(S,{present:r||l.open,children:l.disableHoverableContent?c.jsx(V,{side:n,...s,ref:e}):c.jsx(fe,{side:n,...s,ref:e})})}),fe=i.forwardRef((o,e)=>{const t=_(b,o.__scopeTooltip),r=k(b,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=Ce([...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(V,{...o,ref:s})}),[ve,xe]=O(R,{isInside:!1}),he=ne("TooltipContent"),V=i.forwardRef((o,e)=>{const{__scopeTooltip:t,children:r,"aria-label":n,onEscapeKeyDown:s,onPointerDownOutside:l,...d}=o,a=_(b,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})})]})})});Y.displayName=b;var X="TooltipArrow",q=i.forwardRef((o,e)=>{const{__scopeTooltip:t,...r}=o,n=D(t);return xe(X,t).isInside?null:c.jsx(se,{...n,...r,ref:e})});q.displayName=X;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 Ce(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),be(e)}function be(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=Y,je=q;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 Me(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("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,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{Le as T,ke as a,Me as b,Oe as c};
@@ -1 +1 @@
1
- import{r,c,j as l}from"./index-BkxNgQ-z.js";const s=r.createContext(null);function x(i){const t=c.c(3),{value:u,children:n}=i,o=u;let e;return t[0]!==n||t[1]!==o?(e=l.jsx(s.Provider,{value:o,children:n}),t[0]=n,t[1]=o,t[2]=e):e=t[2],e}function p(i){const t=r.useContext(s);if(!t)throw new Error("usePluginContext must be used within a PluginContextProvider");if(!t.connectionId||!t.connection||!t.toolCaller)throw new Error("usePluginContext requires a valid connection. Use { partial: true } in empty state components.");return t}r.createContext(null);export{x as P,p as u};
1
+ import{r,c,j as l}from"./index-CgikKIzX.js";const s=r.createContext(null);function x(i){const t=c.c(3),{value:u,children:n}=i,o=u;let e;return t[0]!==n||t[1]!==o?(e=l.jsx(s.Provider,{value:o,children:n}),t[0]=n,t[1]=o,t[2]=e):e=t[2],e}function p(i){const t=r.useContext(s);if(!t)throw new Error("usePluginContext must be used within a PluginContextProvider");if(!t.connectionId||!t.connection||!t.toolCaller)throw new Error("usePluginContext requires a valid connection. Use { partial: true } in empty state components.");return t}r.createContext(null);export{x as P,p as u};
@@ -1,4 +1,4 @@
1
- import{bc as p_,bd as v_,be as g_,bf as $_,bg as h_,bh as b_,bi as y_,bj as __,bk as Hr,bl as k_,bm as I_,bn as x_,bo as w_,bp as S_,bq as z_,br as U_,bs as O_,bt as Yi,bu as Qi,bv as Nl,bw as Dl,bx as Pl,by as El}from"./index-BkxNgQ-z.js";var j_=Object.defineProperty,_e=(e,i)=>{for(var r in i)j_(e,r,{get:i[r],enumerable:!0,configurable:!0,set:a=>i[r]=()=>a})},Tl="2026-01-26",c={};_e(c,{xor:()=>ev,xid:()=>Ip,void:()=>Kp,uuidv7:()=>vp,uuidv6:()=>pp,uuidv4:()=>fp,uuid:()=>mp,util:()=>E,url:()=>gp,uppercase:()=>ln,unknown:()=>Me,union:()=>Rn,undefined:()=>Vp,ulid:()=>kp,uint64:()=>Wp,uint32:()=>Jp,tuple:()=>yo,trim:()=>vn,treeifyError:()=>Hl,transform:()=>Jn,toUpperCase:()=>$n,toLowerCase:()=>gn,toJSONSchema:()=>Wf,templateLiteral:()=>fv,symbol:()=>qp,superRefine:()=>Go,success:()=>dv,stringbool:()=>yv,stringFormat:()=>Pp,string:()=>Li,strictObject:()=>Yp,startsWith:()=>cn,slugify:()=>hn,size:()=>Ft,setErrorMap:()=>Hx,set:()=>av,safeParseAsync:()=>tp,safeParse:()=>ep,safeEncodeAsync:()=>sp,safeEncode:()=>op,safeDecodeAsync:()=>lp,safeDecode:()=>up,registry:()=>Ia,regexes:()=>Ge,regex:()=>un,refine:()=>Vo,record:()=>_o,readonly:()=>Lo,property:()=>Ka,promise:()=>pv,prettifyError:()=>Ql,preprocess:()=>kv,prefault:()=>Do,positive:()=>Wa,pipe:()=>St,partialRecord:()=>iv,parseAsync:()=>Qf,parse:()=>Yf,overwrite:()=>Ie,optional:()=>xt,object:()=>Hp,number:()=>no,nullish:()=>lv,nullable:()=>wt,null:()=>so,normalize:()=>pn,nonpositive:()=>Va,nonoptional:()=>Po,nonnegative:()=>Ga,never:()=>An,negative:()=>qa,nativeEnum:()=>ov,nanoid:()=>bp,nan:()=>cv,multipleOf:()=>it,minSize:()=>Oe,minLength:()=>Je,mime:()=>fn,meta:()=>hv,maxSize:()=>pt,maxLength:()=>Wt,map:()=>rv,mac:()=>Sp,lte:()=>le,lt:()=>ze,lowercase:()=>sn,looseRecord:()=>nv,looseObject:()=>Qp,locales:()=>ka,literal:()=>uv,length:()=>qt,lazy:()=>Fo,ksuid:()=>xp,keyof:()=>Xp,jwt:()=>Dp,json:()=>_v,iso:()=>Ha,ipv6:()=>zp,ipv4:()=>wp,intersection:()=>ho,int64:()=>Fp,int32:()=>Lp,int:()=>Ji,instanceof:()=>bv,includes:()=>dn,httpUrl:()=>$p,hostname:()=>Ep,hex:()=>Tp,hash:()=>Ap,guid:()=>cp,gte:()=>te,gt:()=>Ue,globalRegistry:()=>ue,getErrorMap:()=>Yx,function:()=>Mi,fromJSONSchema:()=>iw,formatError:()=>ia,float64:()=>Rp,float32:()=>Cp,flattenError:()=>ta,file:()=>sv,exactOptional:()=>Uo,enum:()=>Ln,endsWith:()=>mn,encodeAsync:()=>rp,encode:()=>ip,emoji:()=>hp,email:()=>dp,e164:()=>Np,discriminatedUnion:()=>tv,describe:()=>$v,decodeAsync:()=>ap,decode:()=>np,date:()=>Bp,custom:()=>gv,cuid2:()=>_p,cuid:()=>yp,core:()=>Al,config:()=>H,coerce:()=>xv,codec:()=>mv,clone:()=>fe,cidrv6:()=>Op,cidrv4:()=>Up,check:()=>vv,catch:()=>Ao,boolean:()=>ro,bigint:()=>Mp,base64url:()=>Zp,base64:()=>jp,array:()=>Yt,any:()=>Gp,_function:()=>Mi,_default:()=>Zo,_ZodString:()=>bn,ZodXor:()=>vo,ZodXID:()=>Sn,ZodVoid:()=>fo,ZodUnknown:()=>co,ZodUnion:()=>ei,ZodUndefined:()=>oo,ZodUUID:()=>$e,ZodURL:()=>Kt,ZodULID:()=>wn,ZodType:()=>Z,ZodTuple:()=>bo,ZodTransform:()=>So,ZodTemplateLiteral:()=>Jo,ZodSymbol:()=>ao,ZodSuccess:()=>Eo,ZodStringFormat:()=>J,ZodString:()=>Gt,ZodSet:()=>Io,ZodRecord:()=>ti,ZodRealError:()=>re,ZodReadonly:()=>Ro,ZodPromise:()=>Wo,ZodPrefault:()=>No,ZodPipe:()=>Wn,ZodOptional:()=>Mn,ZodObject:()=>Qt,ZodNumberFormat:()=>Ke,ZodNumber:()=>Bt,ZodNullable:()=>Oo,ZodNull:()=>uo,ZodNonOptional:()=>Fn,ZodNever:()=>mo,ZodNanoID:()=>kn,ZodNaN:()=>Co,ZodMap:()=>ko,ZodMAC:()=>io,ZodLiteral:()=>xo,ZodLazy:()=>Mo,ZodKSUID:()=>zn,ZodJWT:()=>En,ZodIssueCode:()=>Xx,ZodIntersection:()=>$o,ZodISOTime:()=>eo,ZodISODuration:()=>to,ZodISODateTime:()=>Ya,ZodISODate:()=>Qa,ZodIPv6:()=>On,ZodIPv4:()=>Un,ZodGUID:()=>It,ZodFunction:()=>qo,ZodFirstPartyTypeKind:()=>Wr,ZodFile:()=>wo,ZodExactOptional:()=>zo,ZodError:()=>Bx,ZodEnum:()=>ot,ZodEmoji:()=>_n,ZodEmail:()=>yn,ZodE164:()=>Pn,ZodDiscriminatedUnion:()=>go,ZodDefault:()=>jo,ZodDate:()=>Cn,ZodCustomStringFormat:()=>vt,ZodCustom:()=>ii,ZodCodec:()=>qn,ZodCatch:()=>To,ZodCUID2:()=>xn,ZodCUID:()=>In,ZodCIDRv6:()=>Zn,ZodCIDRv4:()=>jn,ZodBoolean:()=>Xt,ZodBigIntFormat:()=>Tn,ZodBigInt:()=>Ht,ZodBase64URL:()=>Dn,ZodBase64:()=>Nn,ZodArray:()=>po,ZodAny:()=>lo,TimePrecision:()=>km,NEVER:()=>Cl,$output:()=>gm,$input:()=>$m,$brand:()=>Rl});var Al={};_e(Al,{version:()=>Qd,util:()=>E,treeifyError:()=>Hl,toJSONSchema:()=>Wf,toDotPath:()=>Yl,safeParseAsync:()=>td,safeParse:()=>ed,safeEncodeAsync:()=>lk,safeEncode:()=>uk,safeDecodeAsync:()=>dk,safeDecode:()=>sk,registry:()=>Ia,regexes:()=>Ge,process:()=>C,prettifyError:()=>Ql,parseAsync:()=>Jr,parse:()=>Lr,meta:()=>rf,locales:()=>ka,isValidJWT:()=>xc,isValidBase64URL:()=>_c,isValidBase64:()=>va,initializeContext:()=>nt,globalRegistry:()=>ue,globalConfig:()=>Pi,formatError:()=>ia,flattenError:()=>ta,finalize:()=>at,extractDefs:()=>rt,encodeAsync:()=>ak,encode:()=>nk,describe:()=>nf,decodeAsync:()=>ok,decode:()=>rk,createToJSONSchemaMethod:()=>of,createStandardJSONSchemaMethod:()=>kt,config:()=>H,clone:()=>fe,_xor:()=>xx,_xid:()=>Pa,_void:()=>Vm,_uuidv7:()=>Ua,_uuidv6:()=>za,_uuidv4:()=>Sa,_uuid:()=>wa,_url:()=>on,_uppercase:()=>ln,_unknown:()=>Wm,_union:()=>Ix,_undefined:()=>Jm,_ulid:()=>Da,_uint64:()=>Rm,_uint32:()=>Dm,_tuple:()=>zx,_trim:()=>vn,_transform:()=>Px,_toUpperCase:()=>$n,_toLowerCase:()=>gn,_templateLiteral:()=>Fx,_symbol:()=>Lm,_superRefine:()=>ef,_success:()=>Rx,_stringbool:()=>af,_stringFormat:()=>Vt,_string:()=>bm,_startsWith:()=>cn,_slugify:()=>hn,_size:()=>Ft,_set:()=>jx,_safeParseAsync:()=>Ct,_safeParse:()=>At,_safeEncodeAsync:()=>la,_safeEncode:()=>ua,_safeDecodeAsync:()=>da,_safeDecode:()=>sa,_regex:()=>un,_refine:()=>Qm,_record:()=>Ux,_readonly:()=>Mx,_property:()=>Ka,_promise:()=>qx,_positive:()=>Wa,_pipe:()=>Jx,_parseAsync:()=>Tt,_parse:()=>Et,_overwrite:()=>Ie,_optional:()=>Ex,_number:()=>zm,_nullable:()=>Tx,_null:()=>Mm,_normalize:()=>pn,_nonpositive:()=>Va,_nonoptional:()=>Cx,_nonnegative:()=>Ga,_never:()=>qm,_negative:()=>qa,_nativeEnum:()=>Nx,_nanoid:()=>ja,_nan:()=>Bm,_multipleOf:()=>it,_minSize:()=>Oe,_minLength:()=>Je,_min:()=>te,_mime:()=>fn,_maxSize:()=>pt,_maxLength:()=>Wt,_max:()=>le,_map:()=>Ox,_mac:()=>_m,_lte:()=>le,_lt:()=>ze,_lowercase:()=>sn,_literal:()=>Dx,_length:()=>qt,_lazy:()=>Wx,_ksuid:()=>Ea,_jwt:()=>Fa,_isoTime:()=>wm,_isoDuration:()=>Sm,_isoDateTime:()=>Im,_isoDate:()=>xm,_ipv6:()=>Aa,_ipv4:()=>Ta,_intersection:()=>Sx,_int64:()=>Cm,_int32:()=>Nm,_int:()=>Om,_includes:()=>dn,_guid:()=>Ri,_gte:()=>te,_gt:()=>Ue,_float64:()=>Zm,_float32:()=>jm,_file:()=>Hm,_enum:()=>Zx,_endsWith:()=>mn,_encodeAsync:()=>aa,_encode:()=>na,_emoji:()=>Oa,_email:()=>xa,_e164:()=>Ma,_discriminatedUnion:()=>wx,_default:()=>Ax,_decodeAsync:()=>oa,_decode:()=>ra,_date:()=>Gm,_custom:()=>Ym,_cuid2:()=>Na,_cuid:()=>Za,_coercedString:()=>ym,_coercedNumber:()=>Um,_coercedDate:()=>Km,_coercedBoolean:()=>Em,_coercedBigint:()=>Am,_cidrv6:()=>Ra,_cidrv4:()=>Ca,_check:()=>tf,_catch:()=>Lx,_boolean:()=>Pm,_bigint:()=>Tm,_base64url:()=>Ja,_base64:()=>La,_array:()=>Xm,_any:()=>Fm,TimePrecision:()=>km,NEVER:()=>Cl,JSONSchemaGenerator:()=>Gx,JSONSchema:()=>Kx,Doc:()=>Yd,$output:()=>gm,$input:()=>$m,$constructor:()=>v,$brand:()=>Rl,$ZodXor:()=>Mc,$ZodXID:()=>lc,$ZodVoid:()=>Ec,$ZodUnknown:()=>Dc,$ZodUnion:()=>an,$ZodUndefined:()=>jc,$ZodUUID:()=>tc,$ZodURL:()=>nc,$ZodULID:()=>sc,$ZodType:()=>O,$ZodTuple:()=>ba,$ZodTransform:()=>Hc,$ZodTemplateLiteral:()=>sm,$ZodSymbol:()=>Oc,$ZodSuccess:()=>nm,$ZodStringFormat:()=>L,$ZodString:()=>Mt,$ZodSet:()=>Gc,$ZodRegistry:()=>hm,$ZodRecord:()=>qc,$ZodRealError:()=>ne,$ZodReadonly:()=>um,$ZodPromise:()=>dm,$ZodPrefault:()=>tm,$ZodPipe:()=>om,$ZodOptional:()=>ya,$ZodObjectJIT:()=>Jc,$ZodObject:()=>Lc,$ZodNumberFormat:()=>zc,$ZodNumber:()=>ga,$ZodNullable:()=>Qc,$ZodNull:()=>Zc,$ZodNonOptional:()=>im,$ZodNever:()=>Pc,$ZodNanoID:()=>ac,$ZodNaN:()=>am,$ZodMap:()=>Vc,$ZodMAC:()=>$c,$ZodLiteral:()=>Bc,$ZodLazy:()=>cm,$ZodKSUID:()=>dc,$ZodJWT:()=>wc,$ZodIntersection:()=>Wc,$ZodISOTime:()=>fc,$ZodISODuration:()=>pc,$ZodISODateTime:()=>cc,$ZodISODate:()=>mc,$ZodIPv6:()=>gc,$ZodIPv4:()=>vc,$ZodGUID:()=>ec,$ZodFunction:()=>lm,$ZodFile:()=>Xc,$ZodExactOptional:()=>Yc,$ZodError:()=>ea,$ZodEnum:()=>Kc,$ZodEncodeError:()=>en,$ZodEmoji:()=>rc,$ZodEmail:()=>ic,$ZodE164:()=>Ic,$ZodDiscriminatedUnion:()=>Fc,$ZodDefault:()=>em,$ZodDate:()=>Tc,$ZodCustomStringFormat:()=>Sc,$ZodCustom:()=>mm,$ZodCodec:()=>_a,$ZodCheckUpperCase:()=>qd,$ZodCheckStringFormat:()=>Jt,$ZodCheckStartsWith:()=>Gd,$ZodCheckSizeEquals:()=>Rd,$ZodCheckRegex:()=>Fd,$ZodCheckProperty:()=>Bd,$ZodCheckOverwrite:()=>Hd,$ZodCheckNumberFormat:()=>Ed,$ZodCheckMultipleOf:()=>Pd,$ZodCheckMinSize:()=>Cd,$ZodCheckMinLength:()=>Jd,$ZodCheckMimeType:()=>Xd,$ZodCheckMaxSize:()=>Ad,$ZodCheckMaxLength:()=>Ld,$ZodCheckLowerCase:()=>Wd,$ZodCheckLessThan:()=>fa,$ZodCheckLengthEquals:()=>Md,$ZodCheckIncludes:()=>Vd,$ZodCheckGreaterThan:()=>pa,$ZodCheckEndsWith:()=>Kd,$ZodCheckBigIntFormat:()=>Td,$ZodCheck:()=>W,$ZodCatch:()=>rm,$ZodCUID2:()=>uc,$ZodCUID:()=>oc,$ZodCIDRv6:()=>bc,$ZodCIDRv4:()=>hc,$ZodBoolean:()=>$a,$ZodBigIntFormat:()=>Uc,$ZodBigInt:()=>ha,$ZodBase64URL:()=>kc,$ZodBase64:()=>yc,$ZodAsyncError:()=>Ce,$ZodArray:()=>Ac,$ZodAny:()=>Nc});var Cl=Object.freeze({status:"aborted"});function v(e,i,r){function a(u,l){if(u._zod||Object.defineProperty(u,"_zod",{value:{def:l,constr:o,traits:new Set},enumerable:!1}),u._zod.traits.has(e))return;u._zod.traits.add(e),i(u,l);let s=o.prototype,d=Object.keys(s);for(let f=0;f<d.length;f++){let p=d[f];p in u||(u[p]=s[p].bind(u))}}let t=r?.Parent??Object;class n extends t{}Object.defineProperty(n,"name",{value:e});function o(u){var l;let s=r?.Parent?new n:this;a(s,u),(l=s._zod).deferred??(l.deferred=[]);for(let d of s._zod.deferred)d();return s}return Object.defineProperty(o,"init",{value:a}),Object.defineProperty(o,Symbol.hasInstance,{value:u=>r?.Parent&&u instanceof r.Parent?!0:u?._zod?.traits?.has(e)}),Object.defineProperty(o,"name",{value:e}),o}var Rl=Symbol("zod_brand");let Ce=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},en=class extends Error{constructor(i){super(`Encountered unidirectional transform during encode: ${i}`),this.name="ZodEncodeError"}};var Pi={};function H(e){return e&&Object.assign(Pi,e),Pi}var E={};_e(E,{unwrapMessage:()=>yt,uint8ArrayToHex:()=>tk,uint8ArrayToBase64url:()=>Q_,uint8ArrayToBase64:()=>Bl,stringifyPrimitive:()=>w,slugify:()=>Jl,shallowClone:()=>Fl,safeExtend:()=>G_,required:()=>X_,randomString:()=>L_,propertyKeyTypes:()=>Ti,promiseAllObject:()=>R_,primitiveTypes:()=>Wl,prefixIssues:()=>ve,pick:()=>W_,partial:()=>B_,parsedType:()=>z,optionalKeys:()=>ql,omit:()=>q_,objectClone:()=>T_,numKeys:()=>J_,nullish:()=>Ve,normalizeParams:()=>y,mergeDefs:()=>ke,merge:()=>K_,jsonStringifyReplacer:()=>Ei,joinValues:()=>h,issue:()=>Ai,isPlainObject:()=>Le,isObject:()=>et,hexToUint8Array:()=>ek,getSizableOrigin:()=>nn,getParsedType:()=>M_,getLengthableOrigin:()=>rn,getEnumValues:()=>Yr,getElementAtPath:()=>C_,floatSafeRemainder:()=>Ll,finalizeIssue:()=>ce,extend:()=>V_,escapeRegex:()=>be,esc:()=>Rr,defineLazy:()=>D,createTransparentProxy:()=>F_,cloneDef:()=>A_,clone:()=>fe,cleanRegex:()=>tn,cleanEnum:()=>H_,captureStackTrace:()=>Qr,cached:()=>Pt,base64urlToUint8Array:()=>Y_,base64ToUint8Array:()=>Kl,assignProp:()=>De,assertNotEqual:()=>N_,assertNever:()=>P_,assertIs:()=>D_,assertEqual:()=>Z_,assert:()=>E_,allowsEval:()=>Ml,aborted:()=>Te,NUMBER_FORMAT_RANGES:()=>Vl,Class:()=>ik,BIGINT_FORMAT_RANGES:()=>Gl});function Z_(e){return e}function N_(e){return e}function D_(e){}function P_(e){throw Error("Unexpected value in exhaustive check")}function E_(e){}function Yr(e){let i=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,a])=>i.indexOf(+r)===-1).map(([r,a])=>a)}function h(e,i="|"){return e.map(r=>w(r)).join(i)}function Ei(e,i){return typeof i=="bigint"?i.toString():i}function Pt(e){return{get value(){{let i=e();return Object.defineProperty(this,"value",{value:i}),i}}}}function Ve(e){return e==null}function tn(e){let i=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(i,r)}function Ll(e,i){let r=(e.toString().split(".")[1]||"").length,a=i.toString(),t=(a.split(".")[1]||"").length;if(t===0&&/\d?e-\d?/.test(a)){let l=a.match(/\d?e-(\d?)/);l?.[1]&&(t=Number.parseInt(l[1]))}let n=r>t?r:t,o=Number.parseInt(e.toFixed(n).replace(".","")),u=Number.parseInt(i.toFixed(n).replace(".",""));return o%u/10**n}var Gs=Symbol("evaluating");function D(e,i,r){let a;Object.defineProperty(e,i,{get(){if(a!==Gs)return a===void 0&&(a=Gs,a=r()),a},set(t){Object.defineProperty(e,i,{value:t})},configurable:!0})}function T_(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function De(e,i,r){Object.defineProperty(e,i,{value:r,writable:!0,enumerable:!0,configurable:!0})}function ke(...e){let i={};for(let r of e){let a=Object.getOwnPropertyDescriptors(r);Object.assign(i,a)}return Object.defineProperties({},i)}function A_(e){return ke(e._zod.def)}function C_(e,i){return i?i.reduce((r,a)=>r?.[a],e):e}function R_(e){let i=Object.keys(e),r=i.map(a=>e[a]);return Promise.all(r).then(a=>{let t={};for(let n=0;n<i.length;n++)t[i[n]]=a[n];return t})}function L_(e=10){let i="";for(let r=0;r<e;r++)i+="abcdefghijklmnopqrstuvwxyz"[Math.floor(Math.random()*26)];return i}function Rr(e){return JSON.stringify(e)}function Jl(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var Qr="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function et(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Ml=Pt(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch{return!1}});function Le(e){if(et(e)===!1)return!1;let i=e.constructor;if(i===void 0||typeof i!="function")return!0;let r=i.prototype;return!(et(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function Fl(e){return Le(e)?{...e}:Array.isArray(e)?[...e]:e}function J_(e){let i=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&i++;return i}var M_=e=>{let i=typeof e;switch(i){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw Error(`Unknown data type: ${i}`)}},Ti=new Set(["string","number","symbol"]),Wl=new Set(["string","number","bigint","boolean","symbol","undefined"]);function be(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function fe(e,i,r){let a=new e._zod.constr(i??e._zod.def);return(!i||r?.parent)&&(a._zod.parent=e),a}function y(e){let i=e;if(!i)return{};if(typeof i=="string")return{error:()=>i};if(i?.message!==void 0){if(i?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");i.error=i.message}return delete i.message,typeof i.error=="string"?{...i,error:()=>i.error}:i}function F_(e){let i;return new Proxy({},{get(r,a,t){return i??(i=e()),Reflect.get(i,a,t)},set(r,a,t,n){return i??(i=e()),Reflect.set(i,a,t,n)},has(r,a){return i??(i=e()),Reflect.has(i,a)},deleteProperty(r,a){return i??(i=e()),Reflect.deleteProperty(i,a)},ownKeys(r){return i??(i=e()),Reflect.ownKeys(i)},getOwnPropertyDescriptor(r,a){return i??(i=e()),Reflect.getOwnPropertyDescriptor(i,a)},defineProperty(r,a,t){return i??(i=e()),Reflect.defineProperty(i,a,t)}})}function w(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function ql(e){return Object.keys(e).filter(i=>e[i]._zod.optin==="optional"&&e[i]._zod.optout==="optional")}var Vl={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Gl={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function W_(e,i){let r=e._zod.def,a=r.checks;if(a&&a.length>0)throw Error(".pick() cannot be used on object schemas containing refinements");let t=ke(e._zod.def,{get shape(){let n={};for(let o in i){if(!(o in r.shape))throw Error(`Unrecognized key: "${o}"`);i[o]&&(n[o]=r.shape[o])}return De(this,"shape",n),n},checks:[]});return fe(e,t)}function q_(e,i){let r=e._zod.def,a=r.checks;if(a&&a.length>0)throw Error(".omit() cannot be used on object schemas containing refinements");let t=ke(e._zod.def,{get shape(){let n={...e._zod.def.shape};for(let o in i){if(!(o in r.shape))throw Error(`Unrecognized key: "${o}"`);i[o]&&delete n[o]}return De(this,"shape",n),n},checks:[]});return fe(e,t)}function V_(e,i){if(!Le(i))throw Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0){let t=e._zod.def.shape;for(let n in i)if(Object.getOwnPropertyDescriptor(t,n)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let a=ke(e._zod.def,{get shape(){let t={...e._zod.def.shape,...i};return De(this,"shape",t),t}});return fe(e,a)}function G_(e,i){if(!Le(i))throw Error("Invalid input to safeExtend: expected a plain object");let r=ke(e._zod.def,{get shape(){let a={...e._zod.def.shape,...i};return De(this,"shape",a),a}});return fe(e,r)}function K_(e,i){let r=ke(e._zod.def,{get shape(){let a={...e._zod.def.shape,...i._zod.def.shape};return De(this,"shape",a),a},get catchall(){return i._zod.def.catchall},checks:[]});return fe(e,r)}function B_(e,i,r){let a=i._zod.def.checks;if(a&&a.length>0)throw Error(".partial() cannot be used on object schemas containing refinements");let t=ke(i._zod.def,{get shape(){let n=i._zod.def.shape,o={...n};if(r)for(let u in r){if(!(u in n))throw Error(`Unrecognized key: "${u}"`);r[u]&&(o[u]=e?new e({type:"optional",innerType:n[u]}):n[u])}else for(let u in n)o[u]=e?new e({type:"optional",innerType:n[u]}):n[u];return De(this,"shape",o),o},checks:[]});return fe(i,t)}function X_(e,i,r){let a=ke(i._zod.def,{get shape(){let t=i._zod.def.shape,n={...t};if(r)for(let o in r){if(!(o in n))throw Error(`Unrecognized key: "${o}"`);r[o]&&(n[o]=new e({type:"nonoptional",innerType:t[o]}))}else for(let o in t)n[o]=new e({type:"nonoptional",innerType:t[o]});return De(this,"shape",n),n}});return fe(i,a)}function Te(e,i=0){if(e.aborted===!0)return!0;for(let r=i;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function ve(e,i){return i.map(r=>{var a;return(a=r).path??(a.path=[]),r.path.unshift(e),r})}function yt(e){return typeof e=="string"?e:e?.message}function ce(e,i,r){let a={...e,path:e.path??[]};if(!e.message){let t=yt(e.inst?._zod.def?.error?.(e))??yt(i?.error?.(e))??yt(r.customError?.(e))??yt(r.localeError?.(e))??"Invalid input";a.message=t}return delete a.inst,delete a.continue,!i?.reportInput&&delete a.input,a}function nn(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function rn(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function z(e){let i=typeof e;switch(i){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let r=e;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}}return i}function Ai(...e){let[i,r,a]=e;return typeof i=="string"?{message:i,code:"custom",input:r,inst:a}:{...i}}function H_(e){return Object.entries(e).filter(([i,r])=>Number.isNaN(Number.parseInt(i,10))).map(i=>i[1])}function Kl(e){let i=atob(e),r=new Uint8Array(i.length);for(let a=0;a<i.length;a++)r[a]=i.charCodeAt(a);return r}function Bl(e){let i="";for(let r=0;r<e.length;r++)i+=String.fromCharCode(e[r]);return btoa(i)}function Y_(e){let i=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-i.length%4)%4);return Kl(i+r)}function Q_(e){return Bl(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function ek(e){let i=e.replace(/^0x/,"");if(i.length%2!==0)throw Error("Invalid hex string length");let r=new Uint8Array(i.length/2);for(let a=0;a<i.length;a+=2)r[a/2]=Number.parseInt(i.slice(a,a+2),16);return r}function tk(e){return Array.from(e).map(i=>i.toString(16).padStart(2,"0")).join("")}let ik=class{constructor(...i){}};var Xl=(e,i)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:i,enumerable:!1}),e.message=JSON.stringify(i,Ei,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},ea=v("$ZodError",Xl),ne=v("$ZodError",Xl,{Parent:Error});function ta(e,i=r=>r.message){let r={},a=[];for(let t of e.issues)t.path.length>0?(r[t.path[0]]=r[t.path[0]]||[],r[t.path[0]].push(i(t))):a.push(i(t));return{formErrors:a,fieldErrors:r}}function ia(e,i=r=>r.message){let r={_errors:[]},a=t=>{for(let n of t.issues)if(n.code==="invalid_union"&&n.errors.length)n.errors.map(o=>a({issues:o}));else if(n.code==="invalid_key")a({issues:n.issues});else if(n.code==="invalid_element")a({issues:n.issues});else if(n.path.length===0)r._errors.push(i(n));else{let o=r,u=0;for(;u<n.path.length;){let l=n.path[u];u!==n.path.length-1?o[l]=o[l]||{_errors:[]}:(o[l]=o[l]||{_errors:[]},o[l]._errors.push(i(n))),o=o[l],u++}}};return a(e),r}function Hl(e,i=r=>r.message){let r={errors:[]},a=(t,n=[])=>{var o,u;for(let l of t.issues)if(l.code==="invalid_union"&&l.errors.length)l.errors.map(s=>a({issues:s},l.path));else if(l.code==="invalid_key")a({issues:l.issues},l.path);else if(l.code==="invalid_element")a({issues:l.issues},l.path);else{let s=[...n,...l.path];if(s.length===0){r.errors.push(i(l));continue}let d=r,f=0;for(;f<s.length;){let p=s[f],$=f===s.length-1;typeof p=="string"?(d.properties??(d.properties={}),(o=d.properties)[p]??(o[p]={errors:[]}),d=d.properties[p]):(d.items??(d.items=[]),(u=d.items)[p]??(u[p]={errors:[]}),d=d.items[p]),$&&d.errors.push(i(l)),f++}}};return a(e),r}function Yl(e){let i=[],r=e.map(a=>typeof a=="object"?a.key:a);for(let a of r)typeof a=="number"?i.push(`[${a}]`):typeof a=="symbol"?i.push(`[${JSON.stringify(String(a))}]`):/[^\w$]/.test(a)?i.push(`[${JSON.stringify(a)}]`):(i.length&&i.push("."),i.push(a));return i.join("")}function Ql(e){let i=[],r=[...e.issues].sort((a,t)=>(a.path??[]).length-(t.path??[]).length);for(let a of r)i.push(`✖ ${a.message}`),a.path?.length&&i.push(` → at ${Yl(a.path)}`);return i.join(`
1
+ import{be as p_,bf as v_,bg as g_,bh as $_,bi as h_,bj as b_,bk as y_,bl as __,bm as Hr,bn as k_,bo as I_,bp as x_,bq as w_,br as S_,bs as z_,bt as U_,bu as O_,bv as Yi,bw as Qi,bx as Nl,by as Dl,bz as Pl,bA as El}from"./index-CgikKIzX.js";var j_=Object.defineProperty,_e=(e,i)=>{for(var r in i)j_(e,r,{get:i[r],enumerable:!0,configurable:!0,set:a=>i[r]=()=>a})},Tl="2026-01-26",c={};_e(c,{xor:()=>ev,xid:()=>Ip,void:()=>Kp,uuidv7:()=>vp,uuidv6:()=>pp,uuidv4:()=>fp,uuid:()=>mp,util:()=>E,url:()=>gp,uppercase:()=>ln,unknown:()=>Me,union:()=>Rn,undefined:()=>Vp,ulid:()=>kp,uint64:()=>Wp,uint32:()=>Jp,tuple:()=>yo,trim:()=>vn,treeifyError:()=>Hl,transform:()=>Jn,toUpperCase:()=>$n,toLowerCase:()=>gn,toJSONSchema:()=>Wf,templateLiteral:()=>fv,symbol:()=>qp,superRefine:()=>Go,success:()=>dv,stringbool:()=>yv,stringFormat:()=>Pp,string:()=>Li,strictObject:()=>Yp,startsWith:()=>cn,slugify:()=>hn,size:()=>Ft,setErrorMap:()=>Hx,set:()=>av,safeParseAsync:()=>tp,safeParse:()=>ep,safeEncodeAsync:()=>sp,safeEncode:()=>op,safeDecodeAsync:()=>lp,safeDecode:()=>up,registry:()=>Ia,regexes:()=>Ge,regex:()=>un,refine:()=>Vo,record:()=>_o,readonly:()=>Lo,property:()=>Ka,promise:()=>pv,prettifyError:()=>Ql,preprocess:()=>kv,prefault:()=>Do,positive:()=>Wa,pipe:()=>St,partialRecord:()=>iv,parseAsync:()=>Qf,parse:()=>Yf,overwrite:()=>Ie,optional:()=>xt,object:()=>Hp,number:()=>no,nullish:()=>lv,nullable:()=>wt,null:()=>so,normalize:()=>pn,nonpositive:()=>Va,nonoptional:()=>Po,nonnegative:()=>Ga,never:()=>An,negative:()=>qa,nativeEnum:()=>ov,nanoid:()=>bp,nan:()=>cv,multipleOf:()=>it,minSize:()=>Oe,minLength:()=>Je,mime:()=>fn,meta:()=>hv,maxSize:()=>pt,maxLength:()=>Wt,map:()=>rv,mac:()=>Sp,lte:()=>le,lt:()=>ze,lowercase:()=>sn,looseRecord:()=>nv,looseObject:()=>Qp,locales:()=>ka,literal:()=>uv,length:()=>qt,lazy:()=>Fo,ksuid:()=>xp,keyof:()=>Xp,jwt:()=>Dp,json:()=>_v,iso:()=>Ha,ipv6:()=>zp,ipv4:()=>wp,intersection:()=>ho,int64:()=>Fp,int32:()=>Lp,int:()=>Ji,instanceof:()=>bv,includes:()=>dn,httpUrl:()=>$p,hostname:()=>Ep,hex:()=>Tp,hash:()=>Ap,guid:()=>cp,gte:()=>te,gt:()=>Ue,globalRegistry:()=>ue,getErrorMap:()=>Yx,function:()=>Mi,fromJSONSchema:()=>iw,formatError:()=>ia,float64:()=>Rp,float32:()=>Cp,flattenError:()=>ta,file:()=>sv,exactOptional:()=>Uo,enum:()=>Ln,endsWith:()=>mn,encodeAsync:()=>rp,encode:()=>ip,emoji:()=>hp,email:()=>dp,e164:()=>Np,discriminatedUnion:()=>tv,describe:()=>$v,decodeAsync:()=>ap,decode:()=>np,date:()=>Bp,custom:()=>gv,cuid2:()=>_p,cuid:()=>yp,core:()=>Al,config:()=>H,coerce:()=>xv,codec:()=>mv,clone:()=>fe,cidrv6:()=>Op,cidrv4:()=>Up,check:()=>vv,catch:()=>Ao,boolean:()=>ro,bigint:()=>Mp,base64url:()=>Zp,base64:()=>jp,array:()=>Yt,any:()=>Gp,_function:()=>Mi,_default:()=>Zo,_ZodString:()=>bn,ZodXor:()=>vo,ZodXID:()=>Sn,ZodVoid:()=>fo,ZodUnknown:()=>co,ZodUnion:()=>ei,ZodUndefined:()=>oo,ZodUUID:()=>$e,ZodURL:()=>Kt,ZodULID:()=>wn,ZodType:()=>Z,ZodTuple:()=>bo,ZodTransform:()=>So,ZodTemplateLiteral:()=>Jo,ZodSymbol:()=>ao,ZodSuccess:()=>Eo,ZodStringFormat:()=>J,ZodString:()=>Gt,ZodSet:()=>Io,ZodRecord:()=>ti,ZodRealError:()=>re,ZodReadonly:()=>Ro,ZodPromise:()=>Wo,ZodPrefault:()=>No,ZodPipe:()=>Wn,ZodOptional:()=>Mn,ZodObject:()=>Qt,ZodNumberFormat:()=>Ke,ZodNumber:()=>Bt,ZodNullable:()=>Oo,ZodNull:()=>uo,ZodNonOptional:()=>Fn,ZodNever:()=>mo,ZodNanoID:()=>kn,ZodNaN:()=>Co,ZodMap:()=>ko,ZodMAC:()=>io,ZodLiteral:()=>xo,ZodLazy:()=>Mo,ZodKSUID:()=>zn,ZodJWT:()=>En,ZodIssueCode:()=>Xx,ZodIntersection:()=>$o,ZodISOTime:()=>eo,ZodISODuration:()=>to,ZodISODateTime:()=>Ya,ZodISODate:()=>Qa,ZodIPv6:()=>On,ZodIPv4:()=>Un,ZodGUID:()=>It,ZodFunction:()=>qo,ZodFirstPartyTypeKind:()=>Wr,ZodFile:()=>wo,ZodExactOptional:()=>zo,ZodError:()=>Bx,ZodEnum:()=>ot,ZodEmoji:()=>_n,ZodEmail:()=>yn,ZodE164:()=>Pn,ZodDiscriminatedUnion:()=>go,ZodDefault:()=>jo,ZodDate:()=>Cn,ZodCustomStringFormat:()=>vt,ZodCustom:()=>ii,ZodCodec:()=>qn,ZodCatch:()=>To,ZodCUID2:()=>xn,ZodCUID:()=>In,ZodCIDRv6:()=>Zn,ZodCIDRv4:()=>jn,ZodBoolean:()=>Xt,ZodBigIntFormat:()=>Tn,ZodBigInt:()=>Ht,ZodBase64URL:()=>Dn,ZodBase64:()=>Nn,ZodArray:()=>po,ZodAny:()=>lo,TimePrecision:()=>km,NEVER:()=>Cl,$output:()=>gm,$input:()=>$m,$brand:()=>Rl});var Al={};_e(Al,{version:()=>Qd,util:()=>E,treeifyError:()=>Hl,toJSONSchema:()=>Wf,toDotPath:()=>Yl,safeParseAsync:()=>td,safeParse:()=>ed,safeEncodeAsync:()=>lk,safeEncode:()=>uk,safeDecodeAsync:()=>dk,safeDecode:()=>sk,registry:()=>Ia,regexes:()=>Ge,process:()=>C,prettifyError:()=>Ql,parseAsync:()=>Jr,parse:()=>Lr,meta:()=>rf,locales:()=>ka,isValidJWT:()=>xc,isValidBase64URL:()=>_c,isValidBase64:()=>va,initializeContext:()=>nt,globalRegistry:()=>ue,globalConfig:()=>Pi,formatError:()=>ia,flattenError:()=>ta,finalize:()=>at,extractDefs:()=>rt,encodeAsync:()=>ak,encode:()=>nk,describe:()=>nf,decodeAsync:()=>ok,decode:()=>rk,createToJSONSchemaMethod:()=>of,createStandardJSONSchemaMethod:()=>kt,config:()=>H,clone:()=>fe,_xor:()=>xx,_xid:()=>Pa,_void:()=>Vm,_uuidv7:()=>Ua,_uuidv6:()=>za,_uuidv4:()=>Sa,_uuid:()=>wa,_url:()=>on,_uppercase:()=>ln,_unknown:()=>Wm,_union:()=>Ix,_undefined:()=>Jm,_ulid:()=>Da,_uint64:()=>Rm,_uint32:()=>Dm,_tuple:()=>zx,_trim:()=>vn,_transform:()=>Px,_toUpperCase:()=>$n,_toLowerCase:()=>gn,_templateLiteral:()=>Fx,_symbol:()=>Lm,_superRefine:()=>ef,_success:()=>Rx,_stringbool:()=>af,_stringFormat:()=>Vt,_string:()=>bm,_startsWith:()=>cn,_slugify:()=>hn,_size:()=>Ft,_set:()=>jx,_safeParseAsync:()=>Ct,_safeParse:()=>At,_safeEncodeAsync:()=>la,_safeEncode:()=>ua,_safeDecodeAsync:()=>da,_safeDecode:()=>sa,_regex:()=>un,_refine:()=>Qm,_record:()=>Ux,_readonly:()=>Mx,_property:()=>Ka,_promise:()=>qx,_positive:()=>Wa,_pipe:()=>Jx,_parseAsync:()=>Tt,_parse:()=>Et,_overwrite:()=>Ie,_optional:()=>Ex,_number:()=>zm,_nullable:()=>Tx,_null:()=>Mm,_normalize:()=>pn,_nonpositive:()=>Va,_nonoptional:()=>Cx,_nonnegative:()=>Ga,_never:()=>qm,_negative:()=>qa,_nativeEnum:()=>Nx,_nanoid:()=>ja,_nan:()=>Bm,_multipleOf:()=>it,_minSize:()=>Oe,_minLength:()=>Je,_min:()=>te,_mime:()=>fn,_maxSize:()=>pt,_maxLength:()=>Wt,_max:()=>le,_map:()=>Ox,_mac:()=>_m,_lte:()=>le,_lt:()=>ze,_lowercase:()=>sn,_literal:()=>Dx,_length:()=>qt,_lazy:()=>Wx,_ksuid:()=>Ea,_jwt:()=>Fa,_isoTime:()=>wm,_isoDuration:()=>Sm,_isoDateTime:()=>Im,_isoDate:()=>xm,_ipv6:()=>Aa,_ipv4:()=>Ta,_intersection:()=>Sx,_int64:()=>Cm,_int32:()=>Nm,_int:()=>Om,_includes:()=>dn,_guid:()=>Ri,_gte:()=>te,_gt:()=>Ue,_float64:()=>Zm,_float32:()=>jm,_file:()=>Hm,_enum:()=>Zx,_endsWith:()=>mn,_encodeAsync:()=>aa,_encode:()=>na,_emoji:()=>Oa,_email:()=>xa,_e164:()=>Ma,_discriminatedUnion:()=>wx,_default:()=>Ax,_decodeAsync:()=>oa,_decode:()=>ra,_date:()=>Gm,_custom:()=>Ym,_cuid2:()=>Na,_cuid:()=>Za,_coercedString:()=>ym,_coercedNumber:()=>Um,_coercedDate:()=>Km,_coercedBoolean:()=>Em,_coercedBigint:()=>Am,_cidrv6:()=>Ra,_cidrv4:()=>Ca,_check:()=>tf,_catch:()=>Lx,_boolean:()=>Pm,_bigint:()=>Tm,_base64url:()=>Ja,_base64:()=>La,_array:()=>Xm,_any:()=>Fm,TimePrecision:()=>km,NEVER:()=>Cl,JSONSchemaGenerator:()=>Gx,JSONSchema:()=>Kx,Doc:()=>Yd,$output:()=>gm,$input:()=>$m,$constructor:()=>v,$brand:()=>Rl,$ZodXor:()=>Mc,$ZodXID:()=>lc,$ZodVoid:()=>Ec,$ZodUnknown:()=>Dc,$ZodUnion:()=>an,$ZodUndefined:()=>jc,$ZodUUID:()=>tc,$ZodURL:()=>nc,$ZodULID:()=>sc,$ZodType:()=>O,$ZodTuple:()=>ba,$ZodTransform:()=>Hc,$ZodTemplateLiteral:()=>sm,$ZodSymbol:()=>Oc,$ZodSuccess:()=>nm,$ZodStringFormat:()=>L,$ZodString:()=>Mt,$ZodSet:()=>Gc,$ZodRegistry:()=>hm,$ZodRecord:()=>qc,$ZodRealError:()=>ne,$ZodReadonly:()=>um,$ZodPromise:()=>dm,$ZodPrefault:()=>tm,$ZodPipe:()=>om,$ZodOptional:()=>ya,$ZodObjectJIT:()=>Jc,$ZodObject:()=>Lc,$ZodNumberFormat:()=>zc,$ZodNumber:()=>ga,$ZodNullable:()=>Qc,$ZodNull:()=>Zc,$ZodNonOptional:()=>im,$ZodNever:()=>Pc,$ZodNanoID:()=>ac,$ZodNaN:()=>am,$ZodMap:()=>Vc,$ZodMAC:()=>$c,$ZodLiteral:()=>Bc,$ZodLazy:()=>cm,$ZodKSUID:()=>dc,$ZodJWT:()=>wc,$ZodIntersection:()=>Wc,$ZodISOTime:()=>fc,$ZodISODuration:()=>pc,$ZodISODateTime:()=>cc,$ZodISODate:()=>mc,$ZodIPv6:()=>gc,$ZodIPv4:()=>vc,$ZodGUID:()=>ec,$ZodFunction:()=>lm,$ZodFile:()=>Xc,$ZodExactOptional:()=>Yc,$ZodError:()=>ea,$ZodEnum:()=>Kc,$ZodEncodeError:()=>en,$ZodEmoji:()=>rc,$ZodEmail:()=>ic,$ZodE164:()=>Ic,$ZodDiscriminatedUnion:()=>Fc,$ZodDefault:()=>em,$ZodDate:()=>Tc,$ZodCustomStringFormat:()=>Sc,$ZodCustom:()=>mm,$ZodCodec:()=>_a,$ZodCheckUpperCase:()=>qd,$ZodCheckStringFormat:()=>Jt,$ZodCheckStartsWith:()=>Gd,$ZodCheckSizeEquals:()=>Rd,$ZodCheckRegex:()=>Fd,$ZodCheckProperty:()=>Bd,$ZodCheckOverwrite:()=>Hd,$ZodCheckNumberFormat:()=>Ed,$ZodCheckMultipleOf:()=>Pd,$ZodCheckMinSize:()=>Cd,$ZodCheckMinLength:()=>Jd,$ZodCheckMimeType:()=>Xd,$ZodCheckMaxSize:()=>Ad,$ZodCheckMaxLength:()=>Ld,$ZodCheckLowerCase:()=>Wd,$ZodCheckLessThan:()=>fa,$ZodCheckLengthEquals:()=>Md,$ZodCheckIncludes:()=>Vd,$ZodCheckGreaterThan:()=>pa,$ZodCheckEndsWith:()=>Kd,$ZodCheckBigIntFormat:()=>Td,$ZodCheck:()=>W,$ZodCatch:()=>rm,$ZodCUID2:()=>uc,$ZodCUID:()=>oc,$ZodCIDRv6:()=>bc,$ZodCIDRv4:()=>hc,$ZodBoolean:()=>$a,$ZodBigIntFormat:()=>Uc,$ZodBigInt:()=>ha,$ZodBase64URL:()=>kc,$ZodBase64:()=>yc,$ZodAsyncError:()=>Ce,$ZodArray:()=>Ac,$ZodAny:()=>Nc});var Cl=Object.freeze({status:"aborted"});function v(e,i,r){function a(u,l){if(u._zod||Object.defineProperty(u,"_zod",{value:{def:l,constr:o,traits:new Set},enumerable:!1}),u._zod.traits.has(e))return;u._zod.traits.add(e),i(u,l);let s=o.prototype,d=Object.keys(s);for(let f=0;f<d.length;f++){let p=d[f];p in u||(u[p]=s[p].bind(u))}}let t=r?.Parent??Object;class n extends t{}Object.defineProperty(n,"name",{value:e});function o(u){var l;let s=r?.Parent?new n:this;a(s,u),(l=s._zod).deferred??(l.deferred=[]);for(let d of s._zod.deferred)d();return s}return Object.defineProperty(o,"init",{value:a}),Object.defineProperty(o,Symbol.hasInstance,{value:u=>r?.Parent&&u instanceof r.Parent?!0:u?._zod?.traits?.has(e)}),Object.defineProperty(o,"name",{value:e}),o}var Rl=Symbol("zod_brand");let Ce=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},en=class extends Error{constructor(i){super(`Encountered unidirectional transform during encode: ${i}`),this.name="ZodEncodeError"}};var Pi={};function H(e){return e&&Object.assign(Pi,e),Pi}var E={};_e(E,{unwrapMessage:()=>yt,uint8ArrayToHex:()=>tk,uint8ArrayToBase64url:()=>Q_,uint8ArrayToBase64:()=>Bl,stringifyPrimitive:()=>w,slugify:()=>Jl,shallowClone:()=>Fl,safeExtend:()=>G_,required:()=>X_,randomString:()=>L_,propertyKeyTypes:()=>Ti,promiseAllObject:()=>R_,primitiveTypes:()=>Wl,prefixIssues:()=>ve,pick:()=>W_,partial:()=>B_,parsedType:()=>z,optionalKeys:()=>ql,omit:()=>q_,objectClone:()=>T_,numKeys:()=>J_,nullish:()=>Ve,normalizeParams:()=>y,mergeDefs:()=>ke,merge:()=>K_,jsonStringifyReplacer:()=>Ei,joinValues:()=>h,issue:()=>Ai,isPlainObject:()=>Le,isObject:()=>et,hexToUint8Array:()=>ek,getSizableOrigin:()=>nn,getParsedType:()=>M_,getLengthableOrigin:()=>rn,getEnumValues:()=>Yr,getElementAtPath:()=>C_,floatSafeRemainder:()=>Ll,finalizeIssue:()=>ce,extend:()=>V_,escapeRegex:()=>be,esc:()=>Rr,defineLazy:()=>D,createTransparentProxy:()=>F_,cloneDef:()=>A_,clone:()=>fe,cleanRegex:()=>tn,cleanEnum:()=>H_,captureStackTrace:()=>Qr,cached:()=>Pt,base64urlToUint8Array:()=>Y_,base64ToUint8Array:()=>Kl,assignProp:()=>De,assertNotEqual:()=>N_,assertNever:()=>P_,assertIs:()=>D_,assertEqual:()=>Z_,assert:()=>E_,allowsEval:()=>Ml,aborted:()=>Te,NUMBER_FORMAT_RANGES:()=>Vl,Class:()=>ik,BIGINT_FORMAT_RANGES:()=>Gl});function Z_(e){return e}function N_(e){return e}function D_(e){}function P_(e){throw Error("Unexpected value in exhaustive check")}function E_(e){}function Yr(e){let i=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,a])=>i.indexOf(+r)===-1).map(([r,a])=>a)}function h(e,i="|"){return e.map(r=>w(r)).join(i)}function Ei(e,i){return typeof i=="bigint"?i.toString():i}function Pt(e){return{get value(){{let i=e();return Object.defineProperty(this,"value",{value:i}),i}}}}function Ve(e){return e==null}function tn(e){let i=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(i,r)}function Ll(e,i){let r=(e.toString().split(".")[1]||"").length,a=i.toString(),t=(a.split(".")[1]||"").length;if(t===0&&/\d?e-\d?/.test(a)){let l=a.match(/\d?e-(\d?)/);l?.[1]&&(t=Number.parseInt(l[1]))}let n=r>t?r:t,o=Number.parseInt(e.toFixed(n).replace(".","")),u=Number.parseInt(i.toFixed(n).replace(".",""));return o%u/10**n}var Gs=Symbol("evaluating");function D(e,i,r){let a;Object.defineProperty(e,i,{get(){if(a!==Gs)return a===void 0&&(a=Gs,a=r()),a},set(t){Object.defineProperty(e,i,{value:t})},configurable:!0})}function T_(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function De(e,i,r){Object.defineProperty(e,i,{value:r,writable:!0,enumerable:!0,configurable:!0})}function ke(...e){let i={};for(let r of e){let a=Object.getOwnPropertyDescriptors(r);Object.assign(i,a)}return Object.defineProperties({},i)}function A_(e){return ke(e._zod.def)}function C_(e,i){return i?i.reduce((r,a)=>r?.[a],e):e}function R_(e){let i=Object.keys(e),r=i.map(a=>e[a]);return Promise.all(r).then(a=>{let t={};for(let n=0;n<i.length;n++)t[i[n]]=a[n];return t})}function L_(e=10){let i="";for(let r=0;r<e;r++)i+="abcdefghijklmnopqrstuvwxyz"[Math.floor(Math.random()*26)];return i}function Rr(e){return JSON.stringify(e)}function Jl(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var Qr="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function et(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Ml=Pt(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch{return!1}});function Le(e){if(et(e)===!1)return!1;let i=e.constructor;if(i===void 0||typeof i!="function")return!0;let r=i.prototype;return!(et(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function Fl(e){return Le(e)?{...e}:Array.isArray(e)?[...e]:e}function J_(e){let i=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&i++;return i}var M_=e=>{let i=typeof e;switch(i){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw Error(`Unknown data type: ${i}`)}},Ti=new Set(["string","number","symbol"]),Wl=new Set(["string","number","bigint","boolean","symbol","undefined"]);function be(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function fe(e,i,r){let a=new e._zod.constr(i??e._zod.def);return(!i||r?.parent)&&(a._zod.parent=e),a}function y(e){let i=e;if(!i)return{};if(typeof i=="string")return{error:()=>i};if(i?.message!==void 0){if(i?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");i.error=i.message}return delete i.message,typeof i.error=="string"?{...i,error:()=>i.error}:i}function F_(e){let i;return new Proxy({},{get(r,a,t){return i??(i=e()),Reflect.get(i,a,t)},set(r,a,t,n){return i??(i=e()),Reflect.set(i,a,t,n)},has(r,a){return i??(i=e()),Reflect.has(i,a)},deleteProperty(r,a){return i??(i=e()),Reflect.deleteProperty(i,a)},ownKeys(r){return i??(i=e()),Reflect.ownKeys(i)},getOwnPropertyDescriptor(r,a){return i??(i=e()),Reflect.getOwnPropertyDescriptor(i,a)},defineProperty(r,a,t){return i??(i=e()),Reflect.defineProperty(i,a,t)}})}function w(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function ql(e){return Object.keys(e).filter(i=>e[i]._zod.optin==="optional"&&e[i]._zod.optout==="optional")}var Vl={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Gl={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function W_(e,i){let r=e._zod.def,a=r.checks;if(a&&a.length>0)throw Error(".pick() cannot be used on object schemas containing refinements");let t=ke(e._zod.def,{get shape(){let n={};for(let o in i){if(!(o in r.shape))throw Error(`Unrecognized key: "${o}"`);i[o]&&(n[o]=r.shape[o])}return De(this,"shape",n),n},checks:[]});return fe(e,t)}function q_(e,i){let r=e._zod.def,a=r.checks;if(a&&a.length>0)throw Error(".omit() cannot be used on object schemas containing refinements");let t=ke(e._zod.def,{get shape(){let n={...e._zod.def.shape};for(let o in i){if(!(o in r.shape))throw Error(`Unrecognized key: "${o}"`);i[o]&&delete n[o]}return De(this,"shape",n),n},checks:[]});return fe(e,t)}function V_(e,i){if(!Le(i))throw Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0){let t=e._zod.def.shape;for(let n in i)if(Object.getOwnPropertyDescriptor(t,n)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let a=ke(e._zod.def,{get shape(){let t={...e._zod.def.shape,...i};return De(this,"shape",t),t}});return fe(e,a)}function G_(e,i){if(!Le(i))throw Error("Invalid input to safeExtend: expected a plain object");let r=ke(e._zod.def,{get shape(){let a={...e._zod.def.shape,...i};return De(this,"shape",a),a}});return fe(e,r)}function K_(e,i){let r=ke(e._zod.def,{get shape(){let a={...e._zod.def.shape,...i._zod.def.shape};return De(this,"shape",a),a},get catchall(){return i._zod.def.catchall},checks:[]});return fe(e,r)}function B_(e,i,r){let a=i._zod.def.checks;if(a&&a.length>0)throw Error(".partial() cannot be used on object schemas containing refinements");let t=ke(i._zod.def,{get shape(){let n=i._zod.def.shape,o={...n};if(r)for(let u in r){if(!(u in n))throw Error(`Unrecognized key: "${u}"`);r[u]&&(o[u]=e?new e({type:"optional",innerType:n[u]}):n[u])}else for(let u in n)o[u]=e?new e({type:"optional",innerType:n[u]}):n[u];return De(this,"shape",o),o},checks:[]});return fe(i,t)}function X_(e,i,r){let a=ke(i._zod.def,{get shape(){let t=i._zod.def.shape,n={...t};if(r)for(let o in r){if(!(o in n))throw Error(`Unrecognized key: "${o}"`);r[o]&&(n[o]=new e({type:"nonoptional",innerType:t[o]}))}else for(let o in t)n[o]=new e({type:"nonoptional",innerType:t[o]});return De(this,"shape",n),n}});return fe(i,a)}function Te(e,i=0){if(e.aborted===!0)return!0;for(let r=i;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function ve(e,i){return i.map(r=>{var a;return(a=r).path??(a.path=[]),r.path.unshift(e),r})}function yt(e){return typeof e=="string"?e:e?.message}function ce(e,i,r){let a={...e,path:e.path??[]};if(!e.message){let t=yt(e.inst?._zod.def?.error?.(e))??yt(i?.error?.(e))??yt(r.customError?.(e))??yt(r.localeError?.(e))??"Invalid input";a.message=t}return delete a.inst,delete a.continue,!i?.reportInput&&delete a.input,a}function nn(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function rn(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function z(e){let i=typeof e;switch(i){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let r=e;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}}return i}function Ai(...e){let[i,r,a]=e;return typeof i=="string"?{message:i,code:"custom",input:r,inst:a}:{...i}}function H_(e){return Object.entries(e).filter(([i,r])=>Number.isNaN(Number.parseInt(i,10))).map(i=>i[1])}function Kl(e){let i=atob(e),r=new Uint8Array(i.length);for(let a=0;a<i.length;a++)r[a]=i.charCodeAt(a);return r}function Bl(e){let i="";for(let r=0;r<e.length;r++)i+=String.fromCharCode(e[r]);return btoa(i)}function Y_(e){let i=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-i.length%4)%4);return Kl(i+r)}function Q_(e){return Bl(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function ek(e){let i=e.replace(/^0x/,"");if(i.length%2!==0)throw Error("Invalid hex string length");let r=new Uint8Array(i.length/2);for(let a=0;a<i.length;a+=2)r[a/2]=Number.parseInt(i.slice(a,a+2),16);return r}function tk(e){return Array.from(e).map(i=>i.toString(16).padStart(2,"0")).join("")}let ik=class{constructor(...i){}};var Xl=(e,i)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:i,enumerable:!1}),e.message=JSON.stringify(i,Ei,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},ea=v("$ZodError",Xl),ne=v("$ZodError",Xl,{Parent:Error});function ta(e,i=r=>r.message){let r={},a=[];for(let t of e.issues)t.path.length>0?(r[t.path[0]]=r[t.path[0]]||[],r[t.path[0]].push(i(t))):a.push(i(t));return{formErrors:a,fieldErrors:r}}function ia(e,i=r=>r.message){let r={_errors:[]},a=t=>{for(let n of t.issues)if(n.code==="invalid_union"&&n.errors.length)n.errors.map(o=>a({issues:o}));else if(n.code==="invalid_key")a({issues:n.issues});else if(n.code==="invalid_element")a({issues:n.issues});else if(n.path.length===0)r._errors.push(i(n));else{let o=r,u=0;for(;u<n.path.length;){let l=n.path[u];u!==n.path.length-1?o[l]=o[l]||{_errors:[]}:(o[l]=o[l]||{_errors:[]},o[l]._errors.push(i(n))),o=o[l],u++}}};return a(e),r}function Hl(e,i=r=>r.message){let r={errors:[]},a=(t,n=[])=>{var o,u;for(let l of t.issues)if(l.code==="invalid_union"&&l.errors.length)l.errors.map(s=>a({issues:s},l.path));else if(l.code==="invalid_key")a({issues:l.issues},l.path);else if(l.code==="invalid_element")a({issues:l.issues},l.path);else{let s=[...n,...l.path];if(s.length===0){r.errors.push(i(l));continue}let d=r,f=0;for(;f<s.length;){let p=s[f],$=f===s.length-1;typeof p=="string"?(d.properties??(d.properties={}),(o=d.properties)[p]??(o[p]={errors:[]}),d=d.properties[p]):(d.items??(d.items=[]),(u=d.items)[p]??(u[p]={errors:[]}),d=d.items[p]),$&&d.errors.push(i(l)),f++}}};return a(e),r}function Yl(e){let i=[],r=e.map(a=>typeof a=="object"?a.key:a);for(let a of r)typeof a=="number"?i.push(`[${a}]`):typeof a=="symbol"?i.push(`[${JSON.stringify(String(a))}]`):/[^\w$]/.test(a)?i.push(`[${JSON.stringify(a)}]`):(i.length&&i.push("."),i.push(a));return i.join("")}function Ql(e){let i=[],r=[...e.issues].sort((a,t)=>(a.path??[]).length-(t.path??[]).length);for(let a of r)i.push(`✖ ${a.message}`),a.path?.length&&i.push(` → at ${Yl(a.path)}`);return i.join(`
2
2
  `)}var Et=e=>(i,r,a,t)=>{let n=a?Object.assign(a,{async:!1}):{async:!1},o=i._zod.run({value:r,issues:[]},n);if(o instanceof Promise)throw new Ce;if(o.issues.length){let u=new(t?.Err??e)(o.issues.map(l=>ce(l,n,H())));throw Qr(u,t?.callee),u}return o.value},Lr=Et(ne),Tt=e=>async(i,r,a,t)=>{let n=a?Object.assign(a,{async:!0}):{async:!0},o=i._zod.run({value:r,issues:[]},n);if(o instanceof Promise&&(o=await o),o.issues.length){let u=new(t?.Err??e)(o.issues.map(l=>ce(l,n,H())));throw Qr(u,t?.callee),u}return o.value},Jr=Tt(ne),At=e=>(i,r,a)=>{let t=a?{...a,async:!1}:{async:!1},n=i._zod.run({value:r,issues:[]},t);if(n instanceof Promise)throw new Ce;return n.issues.length?{success:!1,error:new(e??ea)(n.issues.map(o=>ce(o,t,H())))}:{success:!0,data:n.value}},ed=At(ne),Ct=e=>async(i,r,a)=>{let t=a?Object.assign(a,{async:!0}):{async:!0},n=i._zod.run({value:r,issues:[]},t);return n instanceof Promise&&(n=await n),n.issues.length?{success:!1,error:new e(n.issues.map(o=>ce(o,t,H())))}:{success:!0,data:n.value}},td=Ct(ne),na=e=>(i,r,a)=>{let t=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return Et(e)(i,r,t)},nk=na(ne),ra=e=>(i,r,a)=>Et(e)(i,r,a),rk=ra(ne),aa=e=>async(i,r,a)=>{let t=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return Tt(e)(i,r,t)},ak=aa(ne),oa=e=>async(i,r,a)=>Tt(e)(i,r,a),ok=oa(ne),ua=e=>(i,r,a)=>{let t=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return At(e)(i,r,t)},uk=ua(ne),sa=e=>(i,r,a)=>At(e)(i,r,a),sk=sa(ne),la=e=>async(i,r,a)=>{let t=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return Ct(e)(i,r,t)},lk=la(ne),da=e=>async(i,r,a)=>Ct(e)(i,r,a),dk=da(ne),Ge={};_e(Ge,{xid:()=>ad,uuid7:()=>pk,uuid6:()=>fk,uuid4:()=>mk,uuid:()=>tt,uppercase:()=>Nd,unicodeEmail:()=>cd,undefined:()=>jd,ulid:()=>rd,time:()=>Id,string:()=>wd,sha512_hex:()=>Ek,sha512_base64url:()=>Ak,sha512_base64:()=>Tk,sha384_hex:()=>Nk,sha384_base64url:()=>Pk,sha384_base64:()=>Dk,sha256_hex:()=>Ok,sha256_base64url:()=>Zk,sha256_base64:()=>jk,sha1_hex:()=>Sk,sha1_base64url:()=>Uk,sha1_base64:()=>zk,rfc5322Email:()=>gk,number:()=>ma,null:()=>Od,nanoid:()=>ud,md5_hex:()=>Ik,md5_base64url:()=>wk,md5_base64:()=>xk,mac:()=>vd,lowercase:()=>Zd,ksuid:()=>od,ipv6:()=>pd,ipv4:()=>fd,integer:()=>zd,idnEmail:()=>$k,html5Email:()=>vk,hostname:()=>yk,hex:()=>kk,guid:()=>ld,extendedDuration:()=>ck,emoji:()=>md,email:()=>dd,e164:()=>bd,duration:()=>sd,domain:()=>_k,datetime:()=>xd,date:()=>_d,cuid2:()=>nd,cuid:()=>id,cidrv6:()=>$d,cidrv4:()=>gd,browserEmail:()=>hk,boolean:()=>Ud,bigint:()=>Sd,base64url:()=>ca,base64:()=>hd});var id=/^[cC][^\s-]{8,}$/,nd=/^[0-9a-z]+$/,rd=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,ad=/^[0-9a-vA-V]{20}$/,od=/^[A-Za-z0-9]{27}$/,ud=/^[a-zA-Z0-9_-]{21}$/,sd=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,ck=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,ld=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,tt=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,mk=tt(4),fk=tt(6),pk=tt(7),dd=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,vk=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,gk=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,cd=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,$k=cd,hk=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,bk="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function md(){return new RegExp(bk,"u")}var fd=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,pd=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,vd=e=>{let i=be(e??":");return new RegExp(`^(?:[0-9A-F]{2}${i}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${i}){5}[0-9a-f]{2}$`)},gd=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,$d=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,hd=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,ca=/^[A-Za-z0-9_-]*$/,yk=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,_k=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,bd=/^\+[1-9]\d{6,14}$/,yd="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",_d=new RegExp(`^${yd}$`);function kd(e){return typeof e.precision=="number"?e.precision===-1?"(?:[01]\\d|2[0-3]):[0-5]\\d":e.precision===0?"(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d":`(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{${e.precision}}`:"(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?"}function Id(e){return new RegExp(`^${kd(e)}$`)}function xd(e){let i=kd({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let a=`${i}(?:${r.join("|")})`;return new RegExp(`^${yd}T(?:${a})$`)}var wd=e=>{let i=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${i}$`)},Sd=/^-?\d+n?$/,zd=/^-?\d+$/,ma=/^-?\d+(?:\.\d+)?$/,Ud=/^(?:true|false)$/i,Od=/^null$/i,jd=/^undefined$/i,Zd=/^[^A-Z]*$/,Nd=/^[^a-z]*$/,kk=/^[0-9a-fA-F]*$/;function Rt(e,i){return new RegExp(`^[A-Za-z0-9+/]{${e}}${i}$`)}function Lt(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var Ik=/^[0-9a-fA-F]{32}$/,xk=Rt(22,"=="),wk=Lt(22),Sk=/^[0-9a-fA-F]{40}$/,zk=Rt(27,"="),Uk=Lt(27),Ok=/^[0-9a-fA-F]{64}$/,jk=Rt(43,"="),Zk=Lt(43),Nk=/^[0-9a-fA-F]{96}$/,Dk=Rt(64,""),Pk=Lt(64),Ek=/^[0-9a-fA-F]{128}$/,Tk=Rt(86,"=="),Ak=Lt(86),W=v("$ZodCheck",(e,i)=>{var r;e._zod??(e._zod={}),e._zod.def=i,(r=e._zod).onattach??(r.onattach=[])}),Dd={number:"number",bigint:"bigint",object:"date"},fa=v("$ZodCheckLessThan",(e,i)=>{W.init(e,i);let r=Dd[typeof i.value];e._zod.onattach.push(a=>{let t=a._zod.bag,n=(i.inclusive?t.maximum:t.exclusiveMaximum)??Number.POSITIVE_INFINITY;i.value<n&&(i.inclusive?t.maximum=i.value:t.exclusiveMaximum=i.value)}),e._zod.check=a=>{(i.inclusive?a.value<=i.value:a.value<i.value)||a.issues.push({origin:r,code:"too_big",maximum:typeof i.value=="object"?i.value.getTime():i.value,input:a.value,inclusive:i.inclusive,inst:e,continue:!i.abort})}}),pa=v("$ZodCheckGreaterThan",(e,i)=>{W.init(e,i);let r=Dd[typeof i.value];e._zod.onattach.push(a=>{let t=a._zod.bag,n=(i.inclusive?t.minimum:t.exclusiveMinimum)??Number.NEGATIVE_INFINITY;i.value>n&&(i.inclusive?t.minimum=i.value:t.exclusiveMinimum=i.value)}),e._zod.check=a=>{(i.inclusive?a.value>=i.value:a.value>i.value)||a.issues.push({origin:r,code:"too_small",minimum:typeof i.value=="object"?i.value.getTime():i.value,input:a.value,inclusive:i.inclusive,inst:e,continue:!i.abort})}}),Pd=v("$ZodCheckMultipleOf",(e,i)=>{W.init(e,i),e._zod.onattach.push(r=>{var a;(a=r._zod.bag).multipleOf??(a.multipleOf=i.value)}),e._zod.check=r=>{if(typeof r.value!=typeof i.value)throw Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%i.value===BigInt(0):Ll(r.value,i.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:i.value,input:r.value,inst:e,continue:!i.abort})}}),Ed=v("$ZodCheckNumberFormat",(e,i)=>{W.init(e,i),i.format=i.format||"float64";let r=i.format?.includes("int"),a=r?"int":"number",[t,n]=Vl[i.format];e._zod.onattach.push(o=>{let u=o._zod.bag;u.format=i.format,u.minimum=t,u.maximum=n,r&&(u.pattern=zd)}),e._zod.check=o=>{let u=o.value;if(r){if(!Number.isInteger(u)){o.issues.push({expected:a,format:i.format,code:"invalid_type",continue:!1,input:u,inst:e});return}if(!Number.isSafeInteger(u)){u>0?o.issues.push({input:u,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:a,inclusive:!0,continue:!i.abort}):o.issues.push({input:u,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:a,inclusive:!0,continue:!i.abort});return}}u<t&&o.issues.push({origin:"number",input:u,code:"too_small",minimum:t,inclusive:!0,inst:e,continue:!i.abort}),u>n&&o.issues.push({origin:"number",input:u,code:"too_big",maximum:n,inclusive:!0,inst:e,continue:!i.abort})}}),Td=v("$ZodCheckBigIntFormat",(e,i)=>{W.init(e,i);let[r,a]=Gl[i.format];e._zod.onattach.push(t=>{let n=t._zod.bag;n.format=i.format,n.minimum=r,n.maximum=a}),e._zod.check=t=>{let n=t.value;n<r&&t.issues.push({origin:"bigint",input:n,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!i.abort}),n>a&&t.issues.push({origin:"bigint",input:n,code:"too_big",maximum:a,inclusive:!0,inst:e,continue:!i.abort})}}),Ad=v("$ZodCheckMaxSize",(e,i)=>{var r;W.init(e,i),(r=e._zod.def).when??(r.when=a=>{let t=a.value;return!Ve(t)&&t.size!==void 0}),e._zod.onattach.push(a=>{let t=a._zod.bag.maximum??Number.POSITIVE_INFINITY;i.maximum<t&&(a._zod.bag.maximum=i.maximum)}),e._zod.check=a=>{let t=a.value;t.size<=i.maximum||a.issues.push({origin:nn(t),code:"too_big",maximum:i.maximum,inclusive:!0,input:t,inst:e,continue:!i.abort})}}),Cd=v("$ZodCheckMinSize",(e,i)=>{var r;W.init(e,i),(r=e._zod.def).when??(r.when=a=>{let t=a.value;return!Ve(t)&&t.size!==void 0}),e._zod.onattach.push(a=>{let t=a._zod.bag.minimum??Number.NEGATIVE_INFINITY;i.minimum>t&&(a._zod.bag.minimum=i.minimum)}),e._zod.check=a=>{let t=a.value;t.size>=i.minimum||a.issues.push({origin:nn(t),code:"too_small",minimum:i.minimum,inclusive:!0,input:t,inst:e,continue:!i.abort})}}),Rd=v("$ZodCheckSizeEquals",(e,i)=>{var r;W.init(e,i),(r=e._zod.def).when??(r.when=a=>{let t=a.value;return!Ve(t)&&t.size!==void 0}),e._zod.onattach.push(a=>{let t=a._zod.bag;t.minimum=i.size,t.maximum=i.size,t.size=i.size}),e._zod.check=a=>{let t=a.value,n=t.size;if(n===i.size)return;let o=n>i.size;a.issues.push({origin:nn(t),...o?{code:"too_big",maximum:i.size}:{code:"too_small",minimum:i.size},inclusive:!0,exact:!0,input:a.value,inst:e,continue:!i.abort})}}),Ld=v("$ZodCheckMaxLength",(e,i)=>{var r;W.init(e,i),(r=e._zod.def).when??(r.when=a=>{let t=a.value;return!Ve(t)&&t.length!==void 0}),e._zod.onattach.push(a=>{let t=a._zod.bag.maximum??Number.POSITIVE_INFINITY;i.maximum<t&&(a._zod.bag.maximum=i.maximum)}),e._zod.check=a=>{let t=a.value;if(t.length<=i.maximum)return;let n=rn(t);a.issues.push({origin:n,code:"too_big",maximum:i.maximum,inclusive:!0,input:t,inst:e,continue:!i.abort})}}),Jd=v("$ZodCheckMinLength",(e,i)=>{var r;W.init(e,i),(r=e._zod.def).when??(r.when=a=>{let t=a.value;return!Ve(t)&&t.length!==void 0}),e._zod.onattach.push(a=>{let t=a._zod.bag.minimum??Number.NEGATIVE_INFINITY;i.minimum>t&&(a._zod.bag.minimum=i.minimum)}),e._zod.check=a=>{let t=a.value;if(t.length>=i.minimum)return;let n=rn(t);a.issues.push({origin:n,code:"too_small",minimum:i.minimum,inclusive:!0,input:t,inst:e,continue:!i.abort})}}),Md=v("$ZodCheckLengthEquals",(e,i)=>{var r;W.init(e,i),(r=e._zod.def).when??(r.when=a=>{let t=a.value;return!Ve(t)&&t.length!==void 0}),e._zod.onattach.push(a=>{let t=a._zod.bag;t.minimum=i.length,t.maximum=i.length,t.length=i.length}),e._zod.check=a=>{let t=a.value,n=t.length;if(n===i.length)return;let o=rn(t),u=n>i.length;a.issues.push({origin:o,...u?{code:"too_big",maximum:i.length}:{code:"too_small",minimum:i.length},inclusive:!0,exact:!0,input:a.value,inst:e,continue:!i.abort})}}),Jt=v("$ZodCheckStringFormat",(e,i)=>{var r,a;W.init(e,i),e._zod.onattach.push(t=>{let n=t._zod.bag;n.format=i.format,i.pattern&&(n.patterns??(n.patterns=new Set),n.patterns.add(i.pattern))}),i.pattern?(r=e._zod).check??(r.check=t=>{i.pattern.lastIndex=0,!i.pattern.test(t.value)&&t.issues.push({origin:"string",code:"invalid_format",format:i.format,input:t.value,...i.pattern?{pattern:i.pattern.toString()}:{},inst:e,continue:!i.abort})}):(a=e._zod).check??(a.check=()=>{})}),Fd=v("$ZodCheckRegex",(e,i)=>{Jt.init(e,i),e._zod.check=r=>{i.pattern.lastIndex=0,!i.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:i.pattern.toString(),inst:e,continue:!i.abort})}}),Wd=v("$ZodCheckLowerCase",(e,i)=>{i.pattern??(i.pattern=Zd),Jt.init(e,i)}),qd=v("$ZodCheckUpperCase",(e,i)=>{i.pattern??(i.pattern=Nd),Jt.init(e,i)}),Vd=v("$ZodCheckIncludes",(e,i)=>{W.init(e,i);let r=be(i.includes),a=new RegExp(typeof i.position=="number"?`^.{${i.position}}${r}`:r);i.pattern=a,e._zod.onattach.push(t=>{let n=t._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(a)}),e._zod.check=t=>{t.value.includes(i.includes,i.position)||t.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:i.includes,input:t.value,inst:e,continue:!i.abort})}}),Gd=v("$ZodCheckStartsWith",(e,i)=>{W.init(e,i);let r=new RegExp(`^${be(i.prefix)}.*`);i.pattern??(i.pattern=r),e._zod.onattach.push(a=>{let t=a._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)}),e._zod.check=a=>{a.value.startsWith(i.prefix)||a.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:i.prefix,input:a.value,inst:e,continue:!i.abort})}}),Kd=v("$ZodCheckEndsWith",(e,i)=>{W.init(e,i);let r=new RegExp(`.*${be(i.suffix)}$`);i.pattern??(i.pattern=r),e._zod.onattach.push(a=>{let t=a._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)}),e._zod.check=a=>{a.value.endsWith(i.suffix)||a.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:i.suffix,input:a.value,inst:e,continue:!i.abort})}});function Ks(e,i,r){e.issues.length&&i.issues.push(...ve(r,e.issues))}var Bd=v("$ZodCheckProperty",(e,i)=>{W.init(e,i),e._zod.check=r=>{let a=i.schema._zod.run({value:r.value[i.property],issues:[]},{});if(a instanceof Promise)return a.then(t=>Ks(t,r,i.property));Ks(a,r,i.property)}}),Xd=v("$ZodCheckMimeType",(e,i)=>{W.init(e,i);let r=new Set(i.mime);e._zod.onattach.push(a=>{a._zod.bag.mime=i.mime}),e._zod.check=a=>{r.has(a.value.type)||a.issues.push({code:"invalid_value",values:i.mime,input:a.value.type,inst:e,continue:!i.abort})}}),Hd=v("$ZodCheckOverwrite",(e,i)=>{W.init(e,i),e._zod.check=r=>{r.value=i.tx(r.value)}});let Yd=class{constructor(i=[]){this.content=[],this.indent=0,this&&(this.args=i)}indented(i){this.indent+=1,i(this),this.indent-=1}write(i){if(typeof i=="function"){i(this,{execution:"sync"}),i(this,{execution:"async"});return}let r=i.split(`
3
3
  `).filter(n=>n),a=Math.min(...r.map(n=>n.length-n.trimStart().length)),t=r.map(n=>n.slice(a)).map(n=>" ".repeat(this.indent*2)+n);for(let n of t)this.content.push(n)}compile(){let i=Function,r=this?.args,a=[...(this?.content??[""]).map(t=>` ${t}`)];return new i(...r,a.join(`
4
4
  `))}};var Qd={major:4,minor:3,patch:5},O=v("$ZodType",(e,i)=>{var r;e??(e={}),e._zod.def=i,e._zod.bag=e._zod.bag||{},e._zod.version=Qd;let a=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&a.unshift(e);for(let t of a)for(let n of t._zod.onattach)n(e);if(a.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(o,u,l)=>{let s=Te(o),d;for(let f of u){if(f._zod.def.when){if(!f._zod.def.when(o))continue}else if(s)continue;let p=o.issues.length,$=f._zod.check(o);if($ instanceof Promise&&l?.async===!1)throw new Ce;if(d||$ instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await $,o.issues.length!==p&&(s||(s=Te(o,p)))});else{if(o.issues.length===p)continue;s||(s=Te(o,p))}}return d?d.then(()=>o):o},n=(o,u,l)=>{if(Te(o))return o.aborted=!0,o;let s=t(u,a,l);if(s instanceof Promise){if(l.async===!1)throw new Ce;return s.then(d=>e._zod.parse(d,l))}return e._zod.parse(s,l)};e._zod.run=(o,u)=>{if(u.skipChecks)return e._zod.parse(o,u);if(u.direction==="backward"){let s=e._zod.parse({value:o.value,issues:[]},{...u,skipChecks:!0});return s instanceof Promise?s.then(d=>n(d,o,u)):n(s,o,u)}let l=e._zod.parse(o,u);if(l instanceof Promise){if(u.async===!1)throw new Ce;return l.then(s=>t(s,a,u))}return t(l,a,u)}}D(e,"~standard",()=>({validate:t=>{try{let n=ed(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return td(e,t).then(o=>o.success?{value:o.data}:{issues:o.error?.issues})}},vendor:"zod",version:1}))}),Mt=v("$ZodString",(e,i)=>{O.init(e,i),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??wd(e._zod.bag),e._zod.parse=(r,a)=>{if(i.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),L=v("$ZodStringFormat",(e,i)=>{Jt.init(e,i),Mt.init(e,i)}),ec=v("$ZodGUID",(e,i)=>{i.pattern??(i.pattern=ld),L.init(e,i)}),tc=v("$ZodUUID",(e,i)=>{if(i.version){let r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[i.version];if(r===void 0)throw Error(`Invalid UUID version: "${i.version}"`);i.pattern??(i.pattern=tt(r))}else i.pattern??(i.pattern=tt());L.init(e,i)}),ic=v("$ZodEmail",(e,i)=>{i.pattern??(i.pattern=dd),L.init(e,i)}),nc=v("$ZodURL",(e,i)=>{L.init(e,i),e._zod.check=r=>{try{let a=r.value.trim(),t=new URL(a);i.hostname&&(i.hostname.lastIndex=0,!i.hostname.test(t.hostname)&&r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:i.hostname.source,input:r.value,inst:e,continue:!i.abort})),i.protocol&&(i.protocol.lastIndex=0,!i.protocol.test(t.protocol.endsWith(":")?t.protocol.slice(0,-1):t.protocol)&&r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:i.protocol.source,input:r.value,inst:e,continue:!i.abort})),i.normalize?r.value=t.href:r.value=a;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!i.abort})}}}),rc=v("$ZodEmoji",(e,i)=>{i.pattern??(i.pattern=md()),L.init(e,i)}),ac=v("$ZodNanoID",(e,i)=>{i.pattern??(i.pattern=ud),L.init(e,i)}),oc=v("$ZodCUID",(e,i)=>{i.pattern??(i.pattern=id),L.init(e,i)}),uc=v("$ZodCUID2",(e,i)=>{i.pattern??(i.pattern=nd),L.init(e,i)}),sc=v("$ZodULID",(e,i)=>{i.pattern??(i.pattern=rd),L.init(e,i)}),lc=v("$ZodXID",(e,i)=>{i.pattern??(i.pattern=ad),L.init(e,i)}),dc=v("$ZodKSUID",(e,i)=>{i.pattern??(i.pattern=od),L.init(e,i)}),cc=v("$ZodISODateTime",(e,i)=>{i.pattern??(i.pattern=xd(i)),L.init(e,i)}),mc=v("$ZodISODate",(e,i)=>{i.pattern??(i.pattern=_d),L.init(e,i)}),fc=v("$ZodISOTime",(e,i)=>{i.pattern??(i.pattern=Id(i)),L.init(e,i)}),pc=v("$ZodISODuration",(e,i)=>{i.pattern??(i.pattern=sd),L.init(e,i)}),vc=v("$ZodIPv4",(e,i)=>{i.pattern??(i.pattern=fd),L.init(e,i),e._zod.bag.format="ipv4"}),gc=v("$ZodIPv6",(e,i)=>{i.pattern??(i.pattern=pd),L.init(e,i),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!i.abort})}}}),$c=v("$ZodMAC",(e,i)=>{i.pattern??(i.pattern=vd(i.delimiter)),L.init(e,i),e._zod.bag.format="mac"}),hc=v("$ZodCIDRv4",(e,i)=>{i.pattern??(i.pattern=gd),L.init(e,i)}),bc=v("$ZodCIDRv6",(e,i)=>{i.pattern??(i.pattern=$d),L.init(e,i),e._zod.check=r=>{let a=r.value.split("/");try{if(a.length!==2)throw Error();let[t,n]=a;if(!n)throw Error();let o=Number(n);if(`${o}`!==n||o<0||o>128)throw Error();new URL(`http://[${t}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!i.abort})}}});function va(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var yc=v("$ZodBase64",(e,i)=>{i.pattern??(i.pattern=hd),L.init(e,i),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{va(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!i.abort})}});function _c(e){if(!ca.test(e))return!1;let i=e.replace(/[-_]/g,a=>a==="-"?"+":"/"),r=i.padEnd(Math.ceil(i.length/4)*4,"=");return va(r)}var kc=v("$ZodBase64URL",(e,i)=>{i.pattern??(i.pattern=ca),L.init(e,i),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{_c(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!i.abort})}}),Ic=v("$ZodE164",(e,i)=>{i.pattern??(i.pattern=bd),L.init(e,i)});function xc(e,i=null){try{let r=e.split(".");if(r.length!==3)return!1;let[a]=r;if(!a)return!1;let t=JSON.parse(atob(a));return!("typ"in t&&t?.typ!=="JWT"||!t.alg||i&&(!("alg"in t)||t.alg!==i))}catch{return!1}}var wc=v("$ZodJWT",(e,i)=>{L.init(e,i),e._zod.check=r=>{xc(r.value,i.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!i.abort})}}),Sc=v("$ZodCustomStringFormat",(e,i)=>{L.init(e,i),e._zod.check=r=>{i.fn(r.value)||r.issues.push({code:"invalid_format",format:i.format,input:r.value,inst:e,continue:!i.abort})}}),ga=v("$ZodNumber",(e,i)=>{O.init(e,i),e._zod.pattern=e._zod.bag.pattern??ma,e._zod.parse=(r,a)=>{if(i.coerce)try{r.value=Number(r.value)}catch{}let t=r.value;if(typeof t=="number"&&!Number.isNaN(t)&&Number.isFinite(t))return r;let n=typeof t=="number"?Number.isNaN(t)?"NaN":Number.isFinite(t)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:t,inst:e,...n?{received:n}:{}}),r}}),zc=v("$ZodNumberFormat",(e,i)=>{Ed.init(e,i),ga.init(e,i)}),$a=v("$ZodBoolean",(e,i)=>{O.init(e,i),e._zod.pattern=Ud,e._zod.parse=(r,a)=>{if(i.coerce)try{r.value=!!r.value}catch{}let t=r.value;return typeof t=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:t,inst:e}),r}}),ha=v("$ZodBigInt",(e,i)=>{O.init(e,i),e._zod.pattern=Sd,e._zod.parse=(r,a)=>{if(i.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}}),Uc=v("$ZodBigIntFormat",(e,i)=>{Td.init(e,i),ha.init(e,i)}),Oc=v("$ZodSymbol",(e,i)=>{O.init(e,i),e._zod.parse=(r,a)=>{let t=r.value;return typeof t=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:t,inst:e}),r}}),jc=v("$ZodUndefined",(e,i)=>{O.init(e,i),e._zod.pattern=jd,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(r,a)=>{let t=r.value;return typeof t>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:t,inst:e}),r}}),Zc=v("$ZodNull",(e,i)=>{O.init(e,i),e._zod.pattern=Od,e._zod.values=new Set([null]),e._zod.parse=(r,a)=>{let t=r.value;return t===null||r.issues.push({expected:"null",code:"invalid_type",input:t,inst:e}),r}}),Nc=v("$ZodAny",(e,i)=>{O.init(e,i),e._zod.parse=r=>r}),Dc=v("$ZodUnknown",(e,i)=>{O.init(e,i),e._zod.parse=r=>r}),Pc=v("$ZodNever",(e,i)=>{O.init(e,i),e._zod.parse=(r,a)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),Ec=v("$ZodVoid",(e,i)=>{O.init(e,i),e._zod.parse=(r,a)=>{let t=r.value;return typeof t>"u"||r.issues.push({expected:"void",code:"invalid_type",input:t,inst:e}),r}}),Tc=v("$ZodDate",(e,i)=>{O.init(e,i),e._zod.parse=(r,a)=>{if(i.coerce)try{r.value=new Date(r.value)}catch{}let t=r.value,n=t instanceof Date;return n&&!Number.isNaN(t.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:t,...n?{received:"Invalid Date"}:{},inst:e}),r}});function Bs(e,i,r){e.issues.length&&i.issues.push(...ve(r,e.issues)),i.value[r]=e.value}var Ac=v("$ZodArray",(e,i)=>{O.init(e,i),e._zod.parse=(r,a)=>{let t=r.value;if(!Array.isArray(t))return r.issues.push({expected:"array",code:"invalid_type",input:t,inst:e}),r;r.value=Array(t.length);let n=[];for(let o=0;o<t.length;o++){let u=t[o],l=i.element._zod.run({value:u,issues:[]},a);l instanceof Promise?n.push(l.then(s=>Bs(s,r,o))):Bs(l,r,o)}return n.length?Promise.all(n).then(()=>r):r}});function Ci(e,i,r,a,t){if(e.issues.length){if(t&&!(r in a))return;i.issues.push(...ve(r,e.issues))}e.value===void 0?r in a&&(i.value[r]=void 0):i.value[r]=e.value}function Cc(e){let i=Object.keys(e.shape);for(let a of i)if(!e.shape?.[a]?._zod?.traits?.has("$ZodType"))throw Error(`Invalid element at key "${a}": expected a Zod schema`);let r=ql(e.shape);return{...e,keys:i,keySet:new Set(i),numKeys:i.length,optionalKeys:new Set(r)}}function Rc(e,i,r,a,t,n){let o=[],u=t.keySet,l=t.catchall._zod,s=l.def.type,d=l.optout==="optional";for(let f in i){if(u.has(f))continue;if(s==="never"){o.push(f);continue}let p=l.run({value:i[f],issues:[]},a);p instanceof Promise?e.push(p.then($=>Ci($,r,f,i,d))):Ci(p,r,f,i,d)}return o.length&&r.issues.push({code:"unrecognized_keys",keys:o,input:i,inst:n}),e.length?Promise.all(e).then(()=>r):r}var Lc=v("$ZodObject",(e,i)=>{if(O.init(e,i),!Object.getOwnPropertyDescriptor(i,"shape")?.get){let o=i.shape;Object.defineProperty(i,"shape",{get:()=>{let u={...o};return Object.defineProperty(i,"shape",{value:u}),u}})}let r=Pt(()=>Cc(i));D(e._zod,"propValues",()=>{let o=i.shape,u={};for(let l in o){let s=o[l]._zod;if(s.values){u[l]??(u[l]=new Set);for(let d of s.values)u[l].add(d)}}return u});let a=et,t=i.catchall,n;e._zod.parse=(o,u)=>{n??(n=r.value);let l=o.value;if(!a(l))return o.issues.push({expected:"object",code:"invalid_type",input:l,inst:e}),o;o.value={};let s=[],d=n.shape;for(let f of n.keys){let p=d[f],$=p._zod.optout==="optional",x=p._zod.run({value:l[f],issues:[]},u);x instanceof Promise?s.push(x.then(K=>Ci(K,o,f,l,$))):Ci(x,o,f,l,$)}return t?Rc(s,l,o,u,r.value,e):s.length?Promise.all(s).then(()=>o):o}}),Jc=v("$ZodObjectJIT",(e,i)=>{Lc.init(e,i);let r=e._zod.parse,a=Pt(()=>Cc(i)),t=f=>{let p=new Yd(["shape","payload","ctx"]),$=a.value,x=G=>{let A=Rr(G);return`shape[${A}]._zod.run({ value: input[${A}], issues: [] }, ctx)`};p.write("const input = payload.value;");let K=Object.create(null),Ee=0;for(let G of $.keys)K[G]=`key_${Ee++}`;p.write("const newResult = {};");for(let G of $.keys){let A=K[G],V=Rr(G),Cr=f[G]?._zod?.optout==="optional";p.write(`const ${A} = ${x(G)};`),Cr?p.write(`
@@ -1 +1 @@
1
- import{a as v}from"./binder-DUACCYIe.js";import{bH as O,a1 as C,o as t,s as e,bI as g,aF as c,bJ as l,bK as M,bL as D,bM as i,aG as y,bN as m,bO as T,bP as n,bQ as _,bR as k,bS as w,bT as G,bU as U,bV as A}from"./index-BkxNgQ-z.js";const B=C.extend({avatar:e().describe("URL or data URI to the assistant's avatar image"),system_prompt:e().describe("System prompt that defines the assistant's behavior"),virtual_mcp_id:e().describe("Virtual MCP ID to use for this assistant"),model:t({id:e().describe("Model ID"),connectionId:e().describe("Connection ID that provides the model")}).describe("Selected model reference for this assistant")}),W=O("assistant",B),F=[...W],I=k(()=>m([w(),e(),i(),T(),g(e(),I),c(I)])),h=g(e(),g(e(),I)).optional().describe("Additional provider-specific options. Outer record keyed by provider name, inner by option key"),E=t({type:n("text"),text:e().describe("The text content"),providerOptions:h}),j=t({type:n("text"),text:e().describe("The text content"),providerMetadata:l().optional().describe("Additional provider-specific metadata")}),q=e().describe("File data as URL string"),R=t({type:n("file"),filename:e().optional().describe("Optional filename of the file"),data:q,mediaType:e().describe("IANA media type of the file (e.g., image/png, audio/mp3)"),providerOptions:h}),Y=t({type:n("file"),mediaType:e().describe("IANA media type of the file (e.g., image/png, audio/mp3)"),data:e().describe("Generated file data as base64 encoded string")}),$=t({type:n("reasoning"),text:e().describe("The reasoning text"),providerOptions:h}),J=t({type:n("reasoning"),text:e().describe("The reasoning text"),providerMetadata:l().optional().describe("Additional provider-specific metadata")}),K=t({type:n("tool-call"),toolCallId:e().describe("ID of the tool call, used to match with tool result"),toolName:e().describe("Name of the tool being called"),input:e().describe("Arguments of the tool call (JSON-serializable object matching tool input schema)"),providerExecuted:T().optional().describe("Whether the tool call will be executed by the provider"),providerOptions:h}),V=t({type:n("tool-call"),toolCallId:e().describe("ID of the tool call"),toolName:e().describe("Name of the tool being called"),input:e().describe("Stringified JSON object with the tool call arguments"),providerExecuted:T().optional().describe("Whether the tool call will be executed by the provider"),providerMetadata:l().optional().describe("Additional provider-specific metadata")}),z=m([t({type:n("text"),value:e()}),t({type:n("json"),value:I}),t({type:n("error-text"),value:e()}),t({type:n("error-json"),value:I}),t({type:n("content"),value:c(m([t({type:n("text"),text:e().describe("Text content")}),t({type:n("media"),data:e().describe("Base-64 encoded media data"),mediaType:e().describe("IANA media type")})]))}),t({type:n("execution-denied"),reason:e().optional()}),e().describe("Raw or JSON-serialized output (e.g. from AI SDK mapToolResultOutput)")]),x=t({type:n("tool-result"),toolCallId:e().describe("ID of the tool call that this result is associated with"),toolName:e().describe("Name of the tool that generated this result"),output:z.describe("Result of the tool call"),result:_().describe("Unknown result of the tool call"),providerOptions:h}),H=t({type:n("tool-result"),toolCallId:e().describe("ID of the tool call that this result is associated with"),toolName:e().describe("Name of the tool that generated this result"),result:l().describe("Result of the tool call (JSON-serializable)"),isError:T().optional().describe("Whether the result is an error or error message"),providerExecuted:T().optional().describe("Whether the tool result was generated by the provider"),providerMetadata:l().optional().describe("Additional provider-specific metadata")}),X=m([t({type:n("source"),sourceType:n("url"),id:e().describe("The ID of the source"),url:e().describe("The URL of the source"),title:e().optional().describe("The title of the source"),providerMetadata:l().optional().describe("Additional provider-specific metadata")}),t({type:n("source"),sourceType:n("document"),id:e().describe("The ID of the source"),mediaType:e().describe("IANA media type of the document (e.g., application/pdf)"),title:e().describe("The title of the document"),filename:e().optional().describe("Optional filename of the document"),providerMetadata:l().optional().describe("Additional provider-specific metadata")})]),Q=t({role:n("system"),content:e().describe("System message content"),providerOptions:h}),Z=t({role:n("user"),content:c(m([E,R])).describe("User message content parts (text or file)"),providerOptions:h}),ee=t({role:n("assistant"),content:c(m([E,R,$,K,x])).describe("Assistant message content parts (text, file, reasoning, tool-call, or tool-result)"),providerOptions:h}),te=t({role:n("tool"),content:c(x).describe("Tool message content (tool results)"),providerOptions:h}),oe=m([Q,Z,ee,te]),ae=c(oe).describe("A list of messages forming the prompt"),ne=t({prompt:ae.describe("A language model prompt is a standardized prompt type (array of messages with roles: system, user, assistant, tool)"),maxOutputTokens:i().optional().describe("Maximum number of tokens to generate"),temperature:i().optional().describe("Temperature setting. The range depends on the provider and model"),topP:i().optional().describe("Nucleus sampling parameter"),topK:i().optional().describe("Only sample from the top K options for each subsequent token. Used to remove long tail low probability responses"),presencePenalty:i().optional().describe("Presence penalty setting. It affects the likelihood of the model to repeat information that is already in the prompt"),frequencyPenalty:i().optional().describe("Frequency penalty setting. It affects the likelihood of the model to repeatedly use the same words or phrases"),seed:i().optional().describe("The seed (integer) to use for random sampling. If set and supported by the model, calls will generate deterministic results"),stopSequences:c(e()).optional().describe("Stop sequences. If set, the model will stop generating text when one of the stop sequences is generated"),responseFormat:m([t({type:n("text")}),t({type:n("json"),schema:l().optional().describe("JSON schema that the generated output should conform to"),name:e().optional().describe("Name of output that should be generated"),description:e().optional().describe("Description of the output that should be generated")})]).optional().describe("Response format. The output can either be text or JSON. Default is text"),tools:c(l()).optional().describe("The tools that are available for the model"),toolChoice:l().optional().describe("Specifies how the tool should be selected. Defaults to 'auto'"),includeRawChunks:T().optional().describe("Include raw chunks in the stream. Only applicable for streaming calls"),abortSignal:l().optional().describe("Abort signal for cancelling the operation"),providerOptions:l().optional().describe("Additional provider-specific options")}),ie=t({content:c(m([j,Y,J,V,H,X])).describe("Ordered content that the model has generated (text, tool-calls, reasoning, files, sources)"),finishReason:y(["stop","length","content-filter","tool-calls","error","other","unknown"]).describe("Reason why generation stopped"),usage:D({inputTokens:i().optional(),outputTokens:i().optional(),totalTokens:i().optional(),reasoningTokens:i().optional()}).describe("Usage information for the language model call"),providerMetadata:l().optional().describe("Additional provider-specific metadata"),request:t({body:l().optional().describe("Request HTTP body sent to the provider API")}).optional().describe("Optional request information for telemetry and debugging"),response:t({id:e().optional().describe("ID for the generated response"),timestamp:M().optional().describe("Timestamp for the start of the generated response"),modelId:e().optional().describe("The ID of the response model that was used"),headers:g(e(),e()).optional().describe("Response headers"),body:l().optional().describe("Response HTTP body")}).optional().describe("Optional response information for telemetry and debugging"),warnings:c(l()).describe("Warnings for the call, e.g. unsupported settings")});t({stream:l().describe("ReadableStream of LanguageModelV2StreamPart"),request:t({body:l().optional().describe("Request HTTP body sent to the provider API")}).optional().describe("Optional request information for telemetry and debugging"),response:t({headers:g(e(),e()).optional().describe("Response headers")}).optional().describe("Optional response data")});const re=t({supportedUrls:g(e(),c(e())).describe("Supported URL patterns by media type for the provider")});t({modelId:e().describe("The ID of the model"),logo:e().nullable(),description:e().nullable(),capabilities:c(e()),limits:t({contextWindow:i(),maxOutputTokens:i()}).nullable(),costs:t({input:i(),output:i()}).nullable(),provider:y(["openai","anthropic","google","x-ai","deepseek","openai-compatible","openrouter"]).nullable()});const N=t({modelId:e().describe("The ID of the model"),callOptions:ne}),se=C.extend({logo:e().nullable(),description:e().nullable(),capabilities:c(e()),limits:t({contextWindow:i(),maxOutputTokens:i()}).nullable(),costs:t({input:i(),output:i()}).nullable(),provider:y(["openai","anthropic","google","xai","deepseek","openai-compatible","openrouter"]).nullable()}),le=O("llm",se,{readOnly:!0}),ce=[{name:"LLM_METADATA",inputSchema:t({modelId:e().describe("The ID of the model")}),outputSchema:re},{name:"LLM_DO_STREAM",inputSchema:N,streamable:!0},{name:"LLM_DO_GENERATE",inputSchema:N,outputSchema:ie},...le],de=t({scopes:c(e()).describe("List of scopes available"),stateSchema:g(e(),_()).describe("JSON Schema (draft-07) defining the state structure")}),pe=[{name:"MCP_CONFIGURATION",inputSchema:t({}),outputSchema:de}],ue=t({}).strict(),me=t({billing:t({mode:y(["prepaid","postpaid"]),limitPeriod:y(["daily","weekly","monthly"]).nullable()}),limit:t({total:i().nullable(),remaining:i().nullable(),reset:e().nullable()}),usage:t({total:i(),daily:i(),weekly:i(),monthly:i()}),alert:t({enabled:T(),threshold_usd:i(),email:e().nullable()}),connectionId:e()}),he=[{name:"GATEWAY_USAGE",inputSchema:ue,outputSchema:me},{name:"GATEWAY_SET_LIMIT",inputSchema:t({}),outputSchema:t({}),opt:!0},{name:"GATEWAY_SET_ALERT",inputSchema:t({}),outputSchema:t({}),opt:!0}],L={LLMS:ce,WORKFLOW:U,WORKFLOW_EXECUTION:G,ASSISTANTS:F,MCP:pe,AI_GATEWAY_BILLING:he};function be(o){return o.map(a=>({name:a.name,inputSchema:a.inputSchema?(()=>{try{return A(a.inputSchema)}catch(s){return console.error(`Failed to convert input schema for ${a.name}:`,s),t({})}})():t({}),outputSchema:a.outputSchema?(()=>{try{return A(a.outputSchema)}catch(s){return console.error(`Failed to convert output schema for ${a.name}:`,s),t({})}})():t({})}))}function fe(o,a){const s=o.tools;if(!s||s.length===0)return!1;const r=s.map(p=>({name:p.name,inputSchema:p.inputSchema})),d=a.map(p=>({name:p.name,inputSchema:p.inputSchema,opt:p.opt}));return v(d).isImplementedBy(r)}function Ae({connections:o,binding:a}){const s=(()=>{if(a){if(typeof a=="string"){const r=a.toUpperCase(),d=L[r];if(!d){console.warn(`[useBindingConnections] Unknown binding "${a}". Available bindings: ${Object.keys(L).join(", ")}. Returning all connections without filtering.`);return}return d}if(a.length===0){console.warn("[useBindingConnections] Empty binding array provided. Returning all connections without filtering.");return}return be(a)}})();return o?s?o.filter(r=>fe(r,s)):o:[]}function ge(o){return o.toLowerCase().split("_").map(a=>a.charAt(0).toUpperCase()+a.slice(1)).join(" ")}function P(o){if(!o||o.length===0)return[];const a=/^COLLECTION_(.+)_LIST$/,s=[];for(const r of o){const d=r.name.match(a);d?.[1]&&s.push(d[1])}return s}function Te(o){return!o||o.length===0?!1:o.some(a=>a.name==="REGISTRY_ITEM_LIST"||a.name==="COLLECTION_REGISTRY_APP_LIST"?!0:a.name.startsWith("COLLECTION_REGISTRY_APP_"))}function Se(o,a){const r=o.find(u=>u.name===`COLLECTION_${a}_CREATE`)?.inputSchema?.properties;if(r&&typeof r=="object"&&"data"in r)return r.data;const b=o.find(u=>u.name===`COLLECTION_${a}_UPDATE`)?.inputSchema?.properties;if(b&&typeof b=="object"&&"data"in b)return b.data;const S=o.find(u=>u.name===`COLLECTION_${a}_LIST`)?.outputSchema?.properties;if(S&&typeof S=="object"&&"items"in S){const u=S.items;if(u.items)return u.items}}function ye(o,a){const s=a.toUpperCase();return{hasCreateTool:o.some(r=>r.name===`COLLECTION_${s}_CREATE`),hasUpdateTool:o.some(r=>r.name===`COLLECTION_${s}_UPDATE`),hasDeleteTool:o.some(r=>r.name===`COLLECTION_${s}_DELETE`)}}function Ie(o){if(!o||o.length===0)return[];const a=P(o);if(a.length===0)return[];const s=[];for(const r of a)try{const d=O(r.toLowerCase(),C,{readOnly:!0}),b=o.map(f=>({name:f.name,inputSchema:f.inputSchema})),p=d.map(f=>({name:f.name,inputSchema:f.inputSchema}));if(v(p).isImplementedBy(b)){const f=ye(o,r);s.push({name:r,displayName:ge(r),schema:Se(o,r),...f})}}catch{}return s}function Ne(o){return Ie(o?.tools??null)}function Le(o){return o?o.filter(a=>P(a.tools).includes("REGISTRY_APP")||Te(a.tools)):[]}export{he as A,Ae as a,Ne as b,fe as c,Le as u};
1
+ import{a as v}from"./binder-BCMoHYJm.js";import{bH as O,a1 as C,o as t,s as e,bI as g,aF as c,bJ as l,bK as M,bL as D,bM as i,aG as y,bN as m,bO as T,bP as n,bQ as _,bR as k,bS as w,bT as G,bU as U,bV as A}from"./index-CgikKIzX.js";const B=C.extend({avatar:e().describe("URL or data URI to the assistant's avatar image"),system_prompt:e().describe("System prompt that defines the assistant's behavior"),virtual_mcp_id:e().describe("Virtual MCP ID to use for this assistant"),model:t({id:e().describe("Model ID"),connectionId:e().describe("Connection ID that provides the model")}).describe("Selected model reference for this assistant")}),W=O("assistant",B),F=[...W],I=k(()=>m([w(),e(),i(),T(),g(e(),I),c(I)])),h=g(e(),g(e(),I)).optional().describe("Additional provider-specific options. Outer record keyed by provider name, inner by option key"),E=t({type:n("text"),text:e().describe("The text content"),providerOptions:h}),j=t({type:n("text"),text:e().describe("The text content"),providerMetadata:l().optional().describe("Additional provider-specific metadata")}),q=e().describe("File data as URL string"),R=t({type:n("file"),filename:e().optional().describe("Optional filename of the file"),data:q,mediaType:e().describe("IANA media type of the file (e.g., image/png, audio/mp3)"),providerOptions:h}),Y=t({type:n("file"),mediaType:e().describe("IANA media type of the file (e.g., image/png, audio/mp3)"),data:e().describe("Generated file data as base64 encoded string")}),$=t({type:n("reasoning"),text:e().describe("The reasoning text"),providerOptions:h}),J=t({type:n("reasoning"),text:e().describe("The reasoning text"),providerMetadata:l().optional().describe("Additional provider-specific metadata")}),K=t({type:n("tool-call"),toolCallId:e().describe("ID of the tool call, used to match with tool result"),toolName:e().describe("Name of the tool being called"),input:e().describe("Arguments of the tool call (JSON-serializable object matching tool input schema)"),providerExecuted:T().optional().describe("Whether the tool call will be executed by the provider"),providerOptions:h}),V=t({type:n("tool-call"),toolCallId:e().describe("ID of the tool call"),toolName:e().describe("Name of the tool being called"),input:e().describe("Stringified JSON object with the tool call arguments"),providerExecuted:T().optional().describe("Whether the tool call will be executed by the provider"),providerMetadata:l().optional().describe("Additional provider-specific metadata")}),z=m([t({type:n("text"),value:e()}),t({type:n("json"),value:I}),t({type:n("error-text"),value:e()}),t({type:n("error-json"),value:I}),t({type:n("content"),value:c(m([t({type:n("text"),text:e().describe("Text content")}),t({type:n("media"),data:e().describe("Base-64 encoded media data"),mediaType:e().describe("IANA media type")})]))}),t({type:n("execution-denied"),reason:e().optional()}),e().describe("Raw or JSON-serialized output (e.g. from AI SDK mapToolResultOutput)")]),x=t({type:n("tool-result"),toolCallId:e().describe("ID of the tool call that this result is associated with"),toolName:e().describe("Name of the tool that generated this result"),output:z.describe("Result of the tool call"),result:_().describe("Unknown result of the tool call"),providerOptions:h}),H=t({type:n("tool-result"),toolCallId:e().describe("ID of the tool call that this result is associated with"),toolName:e().describe("Name of the tool that generated this result"),result:l().describe("Result of the tool call (JSON-serializable)"),isError:T().optional().describe("Whether the result is an error or error message"),providerExecuted:T().optional().describe("Whether the tool result was generated by the provider"),providerMetadata:l().optional().describe("Additional provider-specific metadata")}),X=m([t({type:n("source"),sourceType:n("url"),id:e().describe("The ID of the source"),url:e().describe("The URL of the source"),title:e().optional().describe("The title of the source"),providerMetadata:l().optional().describe("Additional provider-specific metadata")}),t({type:n("source"),sourceType:n("document"),id:e().describe("The ID of the source"),mediaType:e().describe("IANA media type of the document (e.g., application/pdf)"),title:e().describe("The title of the document"),filename:e().optional().describe("Optional filename of the document"),providerMetadata:l().optional().describe("Additional provider-specific metadata")})]),Q=t({role:n("system"),content:e().describe("System message content"),providerOptions:h}),Z=t({role:n("user"),content:c(m([E,R])).describe("User message content parts (text or file)"),providerOptions:h}),ee=t({role:n("assistant"),content:c(m([E,R,$,K,x])).describe("Assistant message content parts (text, file, reasoning, tool-call, or tool-result)"),providerOptions:h}),te=t({role:n("tool"),content:c(x).describe("Tool message content (tool results)"),providerOptions:h}),oe=m([Q,Z,ee,te]),ae=c(oe).describe("A list of messages forming the prompt"),ne=t({prompt:ae.describe("A language model prompt is a standardized prompt type (array of messages with roles: system, user, assistant, tool)"),maxOutputTokens:i().optional().describe("Maximum number of tokens to generate"),temperature:i().optional().describe("Temperature setting. The range depends on the provider and model"),topP:i().optional().describe("Nucleus sampling parameter"),topK:i().optional().describe("Only sample from the top K options for each subsequent token. Used to remove long tail low probability responses"),presencePenalty:i().optional().describe("Presence penalty setting. It affects the likelihood of the model to repeat information that is already in the prompt"),frequencyPenalty:i().optional().describe("Frequency penalty setting. It affects the likelihood of the model to repeatedly use the same words or phrases"),seed:i().optional().describe("The seed (integer) to use for random sampling. If set and supported by the model, calls will generate deterministic results"),stopSequences:c(e()).optional().describe("Stop sequences. If set, the model will stop generating text when one of the stop sequences is generated"),responseFormat:m([t({type:n("text")}),t({type:n("json"),schema:l().optional().describe("JSON schema that the generated output should conform to"),name:e().optional().describe("Name of output that should be generated"),description:e().optional().describe("Description of the output that should be generated")})]).optional().describe("Response format. The output can either be text or JSON. Default is text"),tools:c(l()).optional().describe("The tools that are available for the model"),toolChoice:l().optional().describe("Specifies how the tool should be selected. Defaults to 'auto'"),includeRawChunks:T().optional().describe("Include raw chunks in the stream. Only applicable for streaming calls"),abortSignal:l().optional().describe("Abort signal for cancelling the operation"),providerOptions:l().optional().describe("Additional provider-specific options")}),ie=t({content:c(m([j,Y,J,V,H,X])).describe("Ordered content that the model has generated (text, tool-calls, reasoning, files, sources)"),finishReason:y(["stop","length","content-filter","tool-calls","error","other","unknown"]).describe("Reason why generation stopped"),usage:D({inputTokens:i().optional(),outputTokens:i().optional(),totalTokens:i().optional(),reasoningTokens:i().optional()}).describe("Usage information for the language model call"),providerMetadata:l().optional().describe("Additional provider-specific metadata"),request:t({body:l().optional().describe("Request HTTP body sent to the provider API")}).optional().describe("Optional request information for telemetry and debugging"),response:t({id:e().optional().describe("ID for the generated response"),timestamp:M().optional().describe("Timestamp for the start of the generated response"),modelId:e().optional().describe("The ID of the response model that was used"),headers:g(e(),e()).optional().describe("Response headers"),body:l().optional().describe("Response HTTP body")}).optional().describe("Optional response information for telemetry and debugging"),warnings:c(l()).describe("Warnings for the call, e.g. unsupported settings")});t({stream:l().describe("ReadableStream of LanguageModelV2StreamPart"),request:t({body:l().optional().describe("Request HTTP body sent to the provider API")}).optional().describe("Optional request information for telemetry and debugging"),response:t({headers:g(e(),e()).optional().describe("Response headers")}).optional().describe("Optional response data")});const re=t({supportedUrls:g(e(),c(e())).describe("Supported URL patterns by media type for the provider")});t({modelId:e().describe("The ID of the model"),logo:e().nullable(),description:e().nullable(),capabilities:c(e()),limits:t({contextWindow:i(),maxOutputTokens:i()}).nullable(),costs:t({input:i(),output:i()}).nullable(),provider:y(["openai","anthropic","google","x-ai","deepseek","openai-compatible","openrouter"]).nullable()});const N=t({modelId:e().describe("The ID of the model"),callOptions:ne}),se=C.extend({logo:e().nullable(),description:e().nullable(),capabilities:c(e()),limits:t({contextWindow:i(),maxOutputTokens:i()}).nullable(),costs:t({input:i(),output:i()}).nullable(),provider:y(["openai","anthropic","google","xai","deepseek","openai-compatible","openrouter"]).nullable()}),le=O("llm",se,{readOnly:!0}),ce=[{name:"LLM_METADATA",inputSchema:t({modelId:e().describe("The ID of the model")}),outputSchema:re},{name:"LLM_DO_STREAM",inputSchema:N,streamable:!0},{name:"LLM_DO_GENERATE",inputSchema:N,outputSchema:ie},...le],de=t({scopes:c(e()).describe("List of scopes available"),stateSchema:g(e(),_()).describe("JSON Schema (draft-07) defining the state structure")}),pe=[{name:"MCP_CONFIGURATION",inputSchema:t({}),outputSchema:de}],ue=t({}).strict(),me=t({billing:t({mode:y(["prepaid","postpaid"]),limitPeriod:y(["daily","weekly","monthly"]).nullable()}),limit:t({total:i().nullable(),remaining:i().nullable(),reset:e().nullable()}),usage:t({total:i(),daily:i(),weekly:i(),monthly:i()}),alert:t({enabled:T(),threshold_usd:i(),email:e().nullable()}),connectionId:e()}),he=[{name:"GATEWAY_USAGE",inputSchema:ue,outputSchema:me},{name:"GATEWAY_SET_LIMIT",inputSchema:t({}),outputSchema:t({}),opt:!0},{name:"GATEWAY_SET_ALERT",inputSchema:t({}),outputSchema:t({}),opt:!0}],L={LLMS:ce,WORKFLOW:U,WORKFLOW_EXECUTION:G,ASSISTANTS:F,MCP:pe,AI_GATEWAY_BILLING:he};function be(o){return o.map(a=>({name:a.name,inputSchema:a.inputSchema?(()=>{try{return A(a.inputSchema)}catch(s){return console.error(`Failed to convert input schema for ${a.name}:`,s),t({})}})():t({}),outputSchema:a.outputSchema?(()=>{try{return A(a.outputSchema)}catch(s){return console.error(`Failed to convert output schema for ${a.name}:`,s),t({})}})():t({})}))}function fe(o,a){const s=o.tools;if(!s||s.length===0)return!1;const r=s.map(p=>({name:p.name,inputSchema:p.inputSchema})),d=a.map(p=>({name:p.name,inputSchema:p.inputSchema,opt:p.opt}));return v(d).isImplementedBy(r)}function Ae({connections:o,binding:a}){const s=(()=>{if(a){if(typeof a=="string"){const r=a.toUpperCase(),d=L[r];if(!d){console.warn(`[useBindingConnections] Unknown binding "${a}". Available bindings: ${Object.keys(L).join(", ")}. Returning all connections without filtering.`);return}return d}if(a.length===0){console.warn("[useBindingConnections] Empty binding array provided. Returning all connections without filtering.");return}return be(a)}})();return o?s?o.filter(r=>fe(r,s)):o:[]}function ge(o){return o.toLowerCase().split("_").map(a=>a.charAt(0).toUpperCase()+a.slice(1)).join(" ")}function P(o){if(!o||o.length===0)return[];const a=/^COLLECTION_(.+)_LIST$/,s=[];for(const r of o){const d=r.name.match(a);d?.[1]&&s.push(d[1])}return s}function Te(o){return!o||o.length===0?!1:o.some(a=>a.name==="REGISTRY_ITEM_LIST"||a.name==="COLLECTION_REGISTRY_APP_LIST"?!0:a.name.startsWith("COLLECTION_REGISTRY_APP_"))}function Se(o,a){const r=o.find(u=>u.name===`COLLECTION_${a}_CREATE`)?.inputSchema?.properties;if(r&&typeof r=="object"&&"data"in r)return r.data;const b=o.find(u=>u.name===`COLLECTION_${a}_UPDATE`)?.inputSchema?.properties;if(b&&typeof b=="object"&&"data"in b)return b.data;const S=o.find(u=>u.name===`COLLECTION_${a}_LIST`)?.outputSchema?.properties;if(S&&typeof S=="object"&&"items"in S){const u=S.items;if(u.items)return u.items}}function ye(o,a){const s=a.toUpperCase();return{hasCreateTool:o.some(r=>r.name===`COLLECTION_${s}_CREATE`),hasUpdateTool:o.some(r=>r.name===`COLLECTION_${s}_UPDATE`),hasDeleteTool:o.some(r=>r.name===`COLLECTION_${s}_DELETE`)}}function Ie(o){if(!o||o.length===0)return[];const a=P(o);if(a.length===0)return[];const s=[];for(const r of a)try{const d=O(r.toLowerCase(),C,{readOnly:!0}),b=o.map(f=>({name:f.name,inputSchema:f.inputSchema})),p=d.map(f=>({name:f.name,inputSchema:f.inputSchema}));if(v(p).isImplementedBy(b)){const f=ye(o,r);s.push({name:r,displayName:ge(r),schema:Se(o,r),...f})}}catch{}return s}function Ne(o){return Ie(o?.tools??null)}function Le(o){return o?o.filter(a=>P(a.tools).includes("REGISTRY_APP")||Te(a.tools)):[]}export{he as A,Ae as a,Ne as b,fe as c,Le as u};
@@ -1 +1 @@
1
- import{m as P,c as I,n as Q,t as L,u as x}from"./index-BkxNgQ-z.js";import{u as v}from"./useMutation-DtOoZO7h.js";import{K,a as q,u as U}from"./constants--aQ9HnxF.js";function b(e,n,s){const t=[];if(e?.trim()){const o=e.trim(),r=s.map(i=>({field:[String(i)],operator:"contains",value:o}));r.length===1&&r[0]?t.push(r[0]):r.length>1&&t.push({operator:"or",conditions:r})}if(n&&n.length>0)for(const o of n)t.push({field:[o.column],operator:"eq",value:o.value});if(t.length!==0)return t.length===1?t[0]:{operator:"and",conditions:t}}function D(e,n,s){const t=e??s,o=n??"asc";return[{field:[String(t)],direction:o}]}function O(e){if(!e||typeof e!="object")throw new Error("Invalid result");if("isError"in e&&e.isError)throw new Error("content"in e&&Array.isArray(e.content)&&e.content[0]?.type==="text"?e.content[0].text:"Unknown error");if("structuredContent"in e)return e.structuredContent;throw new Error("No structured content found")}function k(e,n,s,t){const o=I.c(14);let r,i,u;if(o[0]!==t||o[1]!==n||o[2]!==s||o[3]!==e){const a=n.toUpperCase();r=`COLLECTION_${a}_GET`,u=P,i=K.collectionItem(t,e,"",a,s??""),o[0]=t,o[1]=n,o[2]=s,o[3]=e,o[4]=r,o[5]=i,o[6]=u}else r=o[4],i=o[5],u=o[6];let c;o[7]!==t||o[8]!==r||o[9]!==s?(c=async()=>{if(!s)return{item:null};const a=await t.callTool({name:r,arguments:{id:s}});return O(a)},o[7]=t,o[8]=r,o[9]=s,o[10]=c):c=o[10];let d;o[11]!==i||o[12]!==c?(d={queryKey:i,queryFn:c,staleTime:6e4},o[11]=i,o[12]=c,o[13]=d):d=o[13];const{data:p}=u(d);return p?.item??null}const B={structuredContent:{items:[]},isError:!1};function R(e,n,s,t={}){const{searchTerm:o,filters:r,sortKey:i,sortDirection:u,searchFields:c=["title","description"],defaultSortKey:d="updated_at",pageSize:p=100}=t,a=n.toUpperCase(),m=`COLLECTION_${a}_LIST`,f=b(o,r,c),y=D(i,u,d),C={...f&&{where:f},...y&&{orderBy:y},limit:p,offset:0},g=JSON.stringify(C),E=K.collectionList(s,e,"",a,g),{data:_}=P({queryKey:E,queryFn:async()=>s?await s.callTool({name:m,arguments:C}):B,staleTime:3e4,retry:!1,select:N=>O(N??{})?.items??[]});return _}function X(e,n,s,t={}){const{searchTerm:o,filters:r,sortKey:i,sortDirection:u,searchFields:c=["title","description"],defaultSortKey:d="updated_at",pageSize:p=100}=t,a=n.toUpperCase(),m=b(o,r,c),f=D(i,u,d),y={...m&&{where:m},...f&&{orderBy:f},limit:p,offset:0},C=JSON.stringify(y);return K.collectionList(e,s,"",a,C)}function j(e,n,s){const t=I.c(34),o=Q();let r;t[0]!==n?(r=n.toUpperCase(),t[0]=n,t[1]=r):r=t[1];const i=r,u=`COLLECTION_${i}_CREATE`,c=`COLLECTION_${i}_UPDATE`,d=`COLLECTION_${i}_DELETE`;let p;t[2]!==o||t[3]!==e||t[4]!==i?(p=()=>{o.invalidateQueries({predicate:S=>{const l=S.queryKey;return l[1]===e&&l[3]==="collection"&&l[4]===i}})},t[2]=o,t[3]=e,t[4]=i,t[5]=p):p=t[5];const a=p;let m;t[6]!==s||t[7]!==u?(m=async S=>{const l=await s.callTool({name:u,arguments:{data:S}});if(l.isError)throw new Error(Array.isArray(l.content)?l.content[0]?.text:String(l.content));return O(l).item},t[6]=s,t[7]=u,t[8]=m):m=t[8];let f;t[9]!==a?(f=()=>{a(),L.success("Item created successfully")},t[9]=a,t[10]=f):f=t[10];let y;t[11]!==m||t[12]!==f?(y={mutationFn:m,onSuccess:f,onError:Y},t[11]=m,t[12]=f,t[13]=y):y=t[13];const C=v(y);let g;t[14]!==s||t[15]!==c?(g=async S=>{const{id:l,data:F}=S,M=await s.callTool({name:c,arguments:{id:l,data:F}});return O(M).item},t[14]=s,t[15]=c,t[16]=g):g=t[16];let E;t[17]!==a?(E=()=>{a(),L.success("Item updated successfully")},t[17]=a,t[18]=E):E=t[18];let _;t[19]!==g||t[20]!==E?(_={mutationFn:g,onSuccess:E,onError:J},t[19]=g,t[20]=E,t[21]=_):_=t[21];const N=v(_);let T;t[22]!==s||t[23]!==d?(T=async S=>{const l=await s.callTool({name:d,arguments:{id:S}});return O(l).item.id},t[22]=s,t[23]=d,t[24]=T):T=t[24];let h;t[25]!==a?(h=()=>{a(),L.success("Item deleted successfully")},t[25]=a,t[26]=h):h=t[26];let w;t[27]!==T||t[28]!==h?(w={mutationFn:T,onSuccess:h,onError:z},t[27]=T,t[28]=h,t[29]=w):w=t[29];const A=v(w);let $;return t[30]!==C||t[31]!==A||t[32]!==N?($={create:C,update:N,delete:A},t[30]=C,t[31]=A,t[32]=N,t[33]=$):$=t[33],$}function z(e){const n=e instanceof Error?e.message:String(e);L.error(`Failed to delete item: ${n}`)}function J(e){const n=e instanceof Error?e.message:String(e);L.error(`Failed to update item: ${n}`)}function Y(e){const n=e instanceof Error?e.message:String(e);L.error(`Failed to create item: ${n}`)}function Z(e){const n=I.c(4);let s;n[0]!==e?(s=e===void 0?{}:e,n[0]=e,n[1]=s):s=n[1];const t=s,{org:o}=x();let r;n[2]!==o.id?(r={connectionId:q,orgId:o.id},n[2]=o.id,n[3]=r):r=n[3];const i=U(r);return R(o.id,"CONNECTIONS",i,t)}function tt(e){const n=I.c(2),{org:s}=x();let t;n[0]!==s.id?(t={connectionId:q,orgId:s.id},n[0]=s.id,n[1]=t):t=n[1];const o=U(t);return k(s.id,"CONNECTIONS",e,o)}function et(){const e=I.c(2),{org:n}=x();let s;e[0]!==n.id?(s={connectionId:q,orgId:n.id},e[0]=n.id,e[1]=s):s=e[1];const t=U(s);return j(n.id,"CONNECTIONS",t)}export{B as E,D as a,X as b,b as c,k as d,R as e,tt as f,et as g,Z as h,j as u};
1
+ import{m as P,c as I,n as Q,t as L,u as x}from"./index-CgikKIzX.js";import{u as v}from"./useMutation-CspL2qBT.js";import{K,a as q,u as U}from"./constants-CvFlNMMf.js";function b(e,n,s){const t=[];if(e?.trim()){const o=e.trim(),r=s.map(i=>({field:[String(i)],operator:"contains",value:o}));r.length===1&&r[0]?t.push(r[0]):r.length>1&&t.push({operator:"or",conditions:r})}if(n&&n.length>0)for(const o of n)t.push({field:[o.column],operator:"eq",value:o.value});if(t.length!==0)return t.length===1?t[0]:{operator:"and",conditions:t}}function D(e,n,s){const t=e??s,o=n??"asc";return[{field:[String(t)],direction:o}]}function O(e){if(!e||typeof e!="object")throw new Error("Invalid result");if("isError"in e&&e.isError)throw new Error("content"in e&&Array.isArray(e.content)&&e.content[0]?.type==="text"?e.content[0].text:"Unknown error");if("structuredContent"in e)return e.structuredContent;throw new Error("No structured content found")}function k(e,n,s,t){const o=I.c(14);let r,i,u;if(o[0]!==t||o[1]!==n||o[2]!==s||o[3]!==e){const a=n.toUpperCase();r=`COLLECTION_${a}_GET`,u=P,i=K.collectionItem(t,e,"",a,s??""),o[0]=t,o[1]=n,o[2]=s,o[3]=e,o[4]=r,o[5]=i,o[6]=u}else r=o[4],i=o[5],u=o[6];let c;o[7]!==t||o[8]!==r||o[9]!==s?(c=async()=>{if(!s)return{item:null};const a=await t.callTool({name:r,arguments:{id:s}});return O(a)},o[7]=t,o[8]=r,o[9]=s,o[10]=c):c=o[10];let d;o[11]!==i||o[12]!==c?(d={queryKey:i,queryFn:c,staleTime:6e4},o[11]=i,o[12]=c,o[13]=d):d=o[13];const{data:p}=u(d);return p?.item??null}const B={structuredContent:{items:[]},isError:!1};function R(e,n,s,t={}){const{searchTerm:o,filters:r,sortKey:i,sortDirection:u,searchFields:c=["title","description"],defaultSortKey:d="updated_at",pageSize:p=100}=t,a=n.toUpperCase(),m=`COLLECTION_${a}_LIST`,f=b(o,r,c),y=D(i,u,d),C={...f&&{where:f},...y&&{orderBy:y},limit:p,offset:0},g=JSON.stringify(C),E=K.collectionList(s,e,"",a,g),{data:_}=P({queryKey:E,queryFn:async()=>s?await s.callTool({name:m,arguments:C}):B,staleTime:3e4,retry:!1,select:N=>O(N??{})?.items??[]});return _}function X(e,n,s,t={}){const{searchTerm:o,filters:r,sortKey:i,sortDirection:u,searchFields:c=["title","description"],defaultSortKey:d="updated_at",pageSize:p=100}=t,a=n.toUpperCase(),m=b(o,r,c),f=D(i,u,d),y={...m&&{where:m},...f&&{orderBy:f},limit:p,offset:0},C=JSON.stringify(y);return K.collectionList(e,s,"",a,C)}function j(e,n,s){const t=I.c(34),o=Q();let r;t[0]!==n?(r=n.toUpperCase(),t[0]=n,t[1]=r):r=t[1];const i=r,u=`COLLECTION_${i}_CREATE`,c=`COLLECTION_${i}_UPDATE`,d=`COLLECTION_${i}_DELETE`;let p;t[2]!==o||t[3]!==e||t[4]!==i?(p=()=>{o.invalidateQueries({predicate:S=>{const l=S.queryKey;return l[1]===e&&l[3]==="collection"&&l[4]===i}})},t[2]=o,t[3]=e,t[4]=i,t[5]=p):p=t[5];const a=p;let m;t[6]!==s||t[7]!==u?(m=async S=>{const l=await s.callTool({name:u,arguments:{data:S}});if(l.isError)throw new Error(Array.isArray(l.content)?l.content[0]?.text:String(l.content));return O(l).item},t[6]=s,t[7]=u,t[8]=m):m=t[8];let f;t[9]!==a?(f=()=>{a(),L.success("Item created successfully")},t[9]=a,t[10]=f):f=t[10];let y;t[11]!==m||t[12]!==f?(y={mutationFn:m,onSuccess:f,onError:Y},t[11]=m,t[12]=f,t[13]=y):y=t[13];const C=v(y);let g;t[14]!==s||t[15]!==c?(g=async S=>{const{id:l,data:F}=S,M=await s.callTool({name:c,arguments:{id:l,data:F}});return O(M).item},t[14]=s,t[15]=c,t[16]=g):g=t[16];let E;t[17]!==a?(E=()=>{a(),L.success("Item updated successfully")},t[17]=a,t[18]=E):E=t[18];let _;t[19]!==g||t[20]!==E?(_={mutationFn:g,onSuccess:E,onError:J},t[19]=g,t[20]=E,t[21]=_):_=t[21];const N=v(_);let T;t[22]!==s||t[23]!==d?(T=async S=>{const l=await s.callTool({name:d,arguments:{id:S}});return O(l).item.id},t[22]=s,t[23]=d,t[24]=T):T=t[24];let h;t[25]!==a?(h=()=>{a(),L.success("Item deleted successfully")},t[25]=a,t[26]=h):h=t[26];let w;t[27]!==T||t[28]!==h?(w={mutationFn:T,onSuccess:h,onError:z},t[27]=T,t[28]=h,t[29]=w):w=t[29];const A=v(w);let $;return t[30]!==C||t[31]!==A||t[32]!==N?($={create:C,update:N,delete:A},t[30]=C,t[31]=A,t[32]=N,t[33]=$):$=t[33],$}function z(e){const n=e instanceof Error?e.message:String(e);L.error(`Failed to delete item: ${n}`)}function J(e){const n=e instanceof Error?e.message:String(e);L.error(`Failed to update item: ${n}`)}function Y(e){const n=e instanceof Error?e.message:String(e);L.error(`Failed to create item: ${n}`)}function Z(e){const n=I.c(4);let s;n[0]!==e?(s=e===void 0?{}:e,n[0]=e,n[1]=s):s=n[1];const t=s,{org:o}=x();let r;n[2]!==o.id?(r={connectionId:q,orgId:o.id},n[2]=o.id,n[3]=r):r=n[3];const i=U(r);return R(o.id,"CONNECTIONS",i,t)}function tt(e){const n=I.c(2),{org:s}=x();let t;n[0]!==s.id?(t={connectionId:q,orgId:s.id},n[0]=s.id,n[1]=t):t=n[1];const o=U(t);return k(s.id,"CONNECTIONS",e,o)}function et(){const e=I.c(2),{org:n}=x();let s;e[0]!==n.id?(s={connectionId:q,orgId:n.id},e[0]=n.id,e[1]=s):s=e[1];const t=U(s);return j(n.id,"CONNECTIONS",t)}export{B as E,D as a,X as b,b as c,k as d,R as e,tt as f,et as g,Z as h,j as u};
@@ -1 +1 @@
1
- import{r,c}from"./index-BkxNgQ-z.js";const l=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M5 12h14m0 0-7-7m7 7-7 7"}));l.displayName="ArrowRight";const d=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M10.5 9.002a2.248 2.248 0 0 1 4.369.75C14.869 11.25 12.62 12 12.62 12m.028 3h.01m-.16 5a8.5 8.5 0 1 0-8.056-5.783c.108.32.162.481.172.604a.899.899 0 0 1-.028.326c-.03.12-.098.245-.232.494l-1.636 3.027c-.233.432-.35.648-.324.815a.5.5 0 0 0 .234.35c.144.087.388.062.876.011l5.121-.529c.155-.016.233-.024.303-.021.07.002.12.009.187.024.069.016.155.05.329.116A8.478 8.478 0 0 0 12.5 20Z"}));d.displayName="MessageQuestionCircle";function h(){const e=c.c(3),[t,o]=r.useState(!1);let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=async s=>{await navigator.clipboard.writeText(s),o(!0),setTimeout(()=>o(!1),2e3)},e[0]=i):i=e[0];const n=i;let a;return e[1]!==t?(a={handleCopy:n,copied:t},e[1]=t,e[2]=a):a=e[2],a}export{l as i,d as t,h as u};
1
+ import{r,c}from"./index-CgikKIzX.js";const l=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M5 12h14m0 0-7-7m7 7-7 7"}));l.displayName="ArrowRight";const d=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M10.5 9.002a2.248 2.248 0 0 1 4.369.75C14.869 11.25 12.62 12 12.62 12m.028 3h.01m-.16 5a8.5 8.5 0 1 0-8.056-5.783c.108.32.162.481.172.604a.899.899 0 0 1-.028.326c-.03.12-.098.245-.232.494l-1.636 3.027c-.233.432-.35.648-.324.815a.5.5 0 0 0 .234.35c.144.087.388.062.876.011l5.121-.529c.155-.016.233-.024.303-.021.07.002.12.009.187.024.069.016.155.05.329.116A8.478 8.478 0 0 0 12.5 20Z"}));d.displayName="MessageQuestionCircle";function h(){const e=c.c(3),[t,o]=r.useState(!1);let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=async s=>{await navigator.clipboard.writeText(s),o(!0),setTimeout(()=>o(!1),2e3)},e[0]=i):i=e[0];const n=i;let a;return e[1]!==t?(a={handleCopy:n,copied:t},e[1]=t,e[2]=a):a=e[2],a}export{l as i,d as t,h as u};
@@ -1 +1 @@
1
- import{c as p,u as C,b as f,O as m}from"./index-BkxNgQ-z.js";import{a as v}from"./use-virtual-mcp-Wj5StsuR.js";function M(s){const e=p.c(10);let a;e[0]!==s?(a=s===void 0?{}:s,e[0]=s,e[1]=a):a=e[1];const d=a,{navigateOnCreate:l}=d,o=l===void 0?!1:l,{org:r}=C(),c=f(),t=v();let n;e[2]!==t.create||e[3]!==c||e[4]!==o||e[5]!==r?(n=async()=>{const g=await t.create.mutateAsync({title:"New Agent",description:"Agents let you securely expose integrated tools to the outside world.",status:"active",connections:[]});return o&&c({to:"/$org/$project/agents/$agentId",params:{org:r.slug,project:m,agentId:g.id}}),{id:g.id,virtualMcp:g}},e[2]=t.create,e[3]=c,e[4]=o,e[5]=r,e[6]=n):n=e[6];const u=n;let i;return e[7]!==t.create.isPending||e[8]!==u?(i={createVirtualMCP:u,isCreating:t.create.isPending},e[7]=t.create.isPending,e[8]=u,e[9]=i):i=e[9],i}export{M as u};
1
+ import{c as p,u as C,b as f,O as m}from"./index-CgikKIzX.js";import{a as v}from"./use-virtual-mcp-XCW3W4C9.js";function M(s){const e=p.c(10);let a;e[0]!==s?(a=s===void 0?{}:s,e[0]=s,e[1]=a):a=e[1];const d=a,{navigateOnCreate:l}=d,o=l===void 0?!1:l,{org:r}=C(),c=f(),t=v();let n;e[2]!==t.create||e[3]!==c||e[4]!==o||e[5]!==r?(n=async()=>{const g=await t.create.mutateAsync({title:"New Agent",description:"Agents let you securely expose integrated tools to the outside world.",status:"active",connections:[]});return o&&c({to:"/$org/$project/agents/$agentId",params:{org:r.slug,project:m,agentId:g.id}}),{id:g.id,virtualMcp:g}},e[2]=t.create,e[3]=c,e[4]=o,e[5]=r,e[6]=n):n=e[6];const u=n;let i;return e[7]!==t.create.isPending||e[8]!==u?(i={createVirtualMCP:u,isCreating:t.create.isPending},e[7]=t.create.isPending,e[8]=u,e[9]=i):i=e[9],i}export{M as u};
@@ -1 +1 @@
1
- import{u as y,d as g,t as e}from"./index-BkxNgQ-z.js";import{u as C}from"./use-binding-CVLYzFG-.js";import{g as S,h as v}from"./use-connection-DjiXkPUz.js";import{e as B}from"./extract-connection-data-DtOGbK2O.js";import{f as I,c as P,e as _}from"./registry-utils-Bm8aYhvn.js";function w(t){return t.startsWith("@")?t:`@${t}`}function F(){const{org:t}=y(),{data:s}=g.useSession(),i=S(),l=v(),u=C(l);return{installByBinding:async r=>{if(!t||!s?.user?.id){e.error("Not authenticated");return}const d=w(r),a=(await Promise.all(u.map(async o=>{const c=I(o.tools);if(!c)return null;try{const p=await P(o.id,t.id,c,{where:{appName:d}});return _(p??[])[0]??null}catch{return null}}))).find(o=>o!==null);if(!a){e.error(`MCP Server not found in registry: ${r}`);return}const n=B(a,t.id,s.user.id),m=n.connection_type==="STDIO",f=!!n.connection_url,h=m&&n.connection_headers&&typeof n.connection_headers=="object"&&"command"in n.connection_headers;if(!f&&!h){e.error("This MCP Server cannot be connected: no connection method available");return}return await i.create.mutateAsync(n),{id:n.id,connection:n}},isInstalling:i.create.isPending}}export{F as u};
1
+ import{u as y,d as g,t as e}from"./index-CgikKIzX.js";import{u as C}from"./use-binding-BrV6OHbU.js";import{g as S,h as v}from"./use-connection-0uAZ0JSW.js";import{e as B}from"./extract-connection-data-DuIP9X1x.js";import{f as I,c as P,e as _}from"./registry-utils-BapNTecL.js";function w(t){return t.startsWith("@")?t:`@${t}`}function F(){const{org:t}=y(),{data:s}=g.useSession(),i=S(),l=v(),u=C(l);return{installByBinding:async r=>{if(!t||!s?.user?.id){e.error("Not authenticated");return}const d=w(r),a=(await Promise.all(u.map(async o=>{const c=I(o.tools);if(!c)return null;try{const p=await P(o.id,t.id,c,{where:{appName:d}});return _(p??[])[0]??null}catch{return null}}))).find(o=>o!==null);if(!a){e.error(`MCP Server not found in registry: ${r}`);return}const n=B(a,t.id,s.user.id),m=n.connection_type==="STDIO",f=!!n.connection_url,h=m&&n.connection_headers&&typeof n.connection_headers=="object"&&"command"in n.connection_headers;if(!f&&!h){e.error("This MCP Server cannot be connected: no connection method available");return}return await i.create.mutateAsync(n),{id:n.id,connection:n}},isInstalling:i.create.isPending}}export{F as u};
@@ -1 +1 @@
1
- import{r as u,c as w}from"./index-BkxNgQ-z.js";import{u as E}from"./use-view-mode-3_G2qIMG.js";function J(c){const e=`deco-filters-${c}`,[s,i]=u.useState(()=>{try{const t=globalThis.localStorage?.getItem(e);if(t)return JSON.parse(t)}catch(t){console.error("Failed to parse stored filters:",t)}return[]});return[s,t=>{i(t);try{globalThis.localStorage?.setItem(e,JSON.stringify(t))}catch(l){console.error("Failed to save filters:",l)}}]}function N(c){const e=w.c(7),[s,i]=u.useState(c),[r,t]=u.useState(c?"desc":null);let l;e[0]!==r||e[1]!==s?(l=S=>{s!==S?(i(S),t("asc")):r==="asc"?t("desc"):r==="desc"&&(i(void 0),t(null))},e[0]=r,e[1]=s,e[2]=l):l=e[2];const d=l;let o;return e[3]!==d||e[4]!==r||e[5]!==s?(o={sortKey:s,sortDirection:r,handleSort:d},e[3]=d,e[4]=r,e[5]=s,e[6]=o):o=e[6],o}function W(c){const e=w.c(20),{namespace:s,resource:i,defaultSortKey:r,defaultViewMode:t}=c,l=r===void 0?"title":r,d=t===void 0?"table":t,[o,S]=u.useState(""),b=u.useDeferredValue(o),D=`${s}-${i}`,[p,F]=J(D),a=`mesh-${i}-filter-visible-${s}`;let g;e[0]!==a?(g=()=>globalThis.localStorage?.getItem(a)==="true",e[0]=a,e[1]=g):g=e[1];const[n,x]=u.useState(g);let h;e[2]!==a?(h=T=>{x(T),globalThis.localStorage?.setItem(a,String(T))},e[2]=a,e[3]=h):h=e[3];const f=h;let m;e[4]!==n||e[5]!==f?(m=()=>{f(!n)},e[4]=n,e[5]=f,e[6]=m):m=e[6];const V=m,[$,K]=E(`mesh-${i}-${s}`,d),{sortKey:I,sortDirection:v,handleSort:B}=N(l),M=I;let y;return e[7]!==n||e[8]!==p||e[9]!==B||e[10]!==o||e[11]!==b||e[12]!==f||e[13]!==F||e[14]!==K||e[15]!==v||e[16]!==M||e[17]!==V||e[18]!==$?(y={search:o,searchTerm:b,setSearch:S,filters:p,setFilters:F,filterBarVisible:n,setFilterBarVisible:f,toggleFilterBar:V,viewMode:$,setViewMode:K,sortKey:M,sortDirection:v,handleSort:B},e[7]=n,e[8]=p,e[9]=B,e[10]=o,e[11]=b,e[12]=f,e[13]=F,e[14]=K,e[15]=v,e[16]=M,e[17]=V,e[18]=$,e[19]=y):y=e[19],y}export{W as u};
1
+ import{r as u,c as w}from"./index-CgikKIzX.js";import{u as E}from"./use-view-mode-C4bMLQky.js";function J(c){const e=`deco-filters-${c}`,[s,i]=u.useState(()=>{try{const t=globalThis.localStorage?.getItem(e);if(t)return JSON.parse(t)}catch(t){console.error("Failed to parse stored filters:",t)}return[]});return[s,t=>{i(t);try{globalThis.localStorage?.setItem(e,JSON.stringify(t))}catch(l){console.error("Failed to save filters:",l)}}]}function N(c){const e=w.c(7),[s,i]=u.useState(c),[r,t]=u.useState(c?"desc":null);let l;e[0]!==r||e[1]!==s?(l=S=>{s!==S?(i(S),t("asc")):r==="asc"?t("desc"):r==="desc"&&(i(void 0),t(null))},e[0]=r,e[1]=s,e[2]=l):l=e[2];const d=l;let o;return e[3]!==d||e[4]!==r||e[5]!==s?(o={sortKey:s,sortDirection:r,handleSort:d},e[3]=d,e[4]=r,e[5]=s,e[6]=o):o=e[6],o}function W(c){const e=w.c(20),{namespace:s,resource:i,defaultSortKey:r,defaultViewMode:t}=c,l=r===void 0?"title":r,d=t===void 0?"table":t,[o,S]=u.useState(""),b=u.useDeferredValue(o),D=`${s}-${i}`,[p,F]=J(D),a=`mesh-${i}-filter-visible-${s}`;let g;e[0]!==a?(g=()=>globalThis.localStorage?.getItem(a)==="true",e[0]=a,e[1]=g):g=e[1];const[n,x]=u.useState(g);let h;e[2]!==a?(h=T=>{x(T),globalThis.localStorage?.setItem(a,String(T))},e[2]=a,e[3]=h):h=e[3];const f=h;let m;e[4]!==n||e[5]!==f?(m=()=>{f(!n)},e[4]=n,e[5]=f,e[6]=m):m=e[6];const V=m,[$,K]=E(`mesh-${i}-${s}`,d),{sortKey:I,sortDirection:v,handleSort:B}=N(l),M=I;let y;return e[7]!==n||e[8]!==p||e[9]!==B||e[10]!==o||e[11]!==b||e[12]!==f||e[13]!==F||e[14]!==K||e[15]!==v||e[16]!==M||e[17]!==V||e[18]!==$?(y={search:o,searchTerm:b,setSearch:S,filters:p,setFilters:F,filterBarVisible:n,setFilterBarVisible:f,toggleFilterBar:V,viewMode:$,setViewMode:K,sortKey:M,sortDirection:v,handleSort:B},e[7]=n,e[8]=p,e[9]=B,e[10]=o,e[11]=b,e[12]=f,e[13]=F,e[14]=K,e[15]=v,e[16]=M,e[17]=V,e[18]=$,e[19]=y):y=e[19],y}export{W as u};
@@ -1 +1 @@
1
- import{c,u}from"./index-BkxNgQ-z.js";import{h as m,e as a}from"./use-connection-DjiXkPUz.js";import{j as p}from"./constants--aQ9HnxF.js";import{a as C}from"./use-binding-CVLYzFG-.js";function x(n,s){const o=c.c(5);let e;o[0]!==s?(e=s===void 0?{}:s,o[0]=s,o[1]=e):e=o[1];const r=e,{org:i}=u();let t;o[2]!==n||o[3]!==i.id?(t={connectionId:n,orgId:i.id},o[2]=n,o[3]=i.id,o[4]=t):t=o[4];const l=p(t);return a(n??"no-connection","LLM",l,r)}function j(){const n=c.c(2),s=m();let o;return n[0]!==s?(o={connections:s,binding:"LLMS"},n[0]=s,n[1]=o):o=n[1],C(o)}export{x as a,j as u};
1
+ import{c,u}from"./index-CgikKIzX.js";import{h as m,e as a}from"./use-connection-0uAZ0JSW.js";import{j as p}from"./constants-CvFlNMMf.js";import{a as C}from"./use-binding-BrV6OHbU.js";function x(n,s){const o=c.c(5);let e;o[0]!==s?(e=s===void 0?{}:s,o[0]=s,o[1]=e):e=o[1];const r=e,{org:i}=u();let t;o[2]!==n||o[3]!==i.id?(t={connectionId:n,orgId:i.id},o[2]=n,o[3]=i.id,o[4]=t):t=o[4];const l=p(t);return a(n??"no-connection","LLM",l,r)}function j(){const n=c.c(2),s=m();let o;return n[0]!==s?(o={connections:s,binding:"LLMS"},n[0]=s,n[1]=o):o=n[1],C(o)}export{x as a,j as u};
@@ -1 +1 @@
1
- import{c as a,m as f,ay as m,az as p}from"./index-BkxNgQ-z.js";import{u as R}from"./useQuery-Cj-miqA2.js";import{K as n}from"./constants--aQ9HnxF.js";async function y(u){if(!u.getServerCapabilities()?.resources)return{resources:[]};try{return await u.listResources()}catch(s){if(s instanceof m&&s.code===p.MethodNotFound)return{resources:[]};throw s}}async function q(u,e){return await u.readResource({uri:e})}function K(u){const e=a.c(12);let s,t;e[0]!==u?({client:s,...t}=u,e[0]=u,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let r;e[3]!==s?(r=n.mcpResourcesList(s),e[3]=s,e[4]=r):r=e[4];let i;e[5]!==s?(i=()=>y(s),e[5]=s,e[6]=i):i=e[6];const o=t.staleTime??3e4;let l;return e[7]!==t||e[8]!==r||e[9]!==i||e[10]!==o?(l={...t,queryKey:r,queryFn:i,staleTime:o,retry:!1},e[7]=t,e[8]=r,e[9]=i,e[10]=o,e[11]=l):l=e[11],f(l)}function M(u){const e=a.c(12);let s,t;e[0]!==u?({client:s,...t}=u,e[0]=u,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let r;e[3]!==s?(r=n.mcpResourcesList(s),e[3]=s,e[4]=r):r=e[4];let i;e[5]!==s?(i=()=>y(s),e[5]=s,e[6]=i):i=e[6];const o=t.staleTime??3e4;let l;return e[7]!==t||e[8]!==r||e[9]!==i||e[10]!==o?(l={...t,queryKey:r,queryFn:i,staleTime:o,retry:!1},e[7]=t,e[8]=r,e[9]=i,e[10]=o,e[11]=l):l=e[11],R(l)}function b(u){const e=a.c(15);let s,t,r;e[0]!==u?({client:s,uri:r,...t}=u,e[0]=u,e[1]=s,e[2]=t,e[3]=r):(s=e[1],t=e[2],r=e[3]);let i;e[4]!==s||e[5]!==r?(i=n.mcpReadResource(s,r),e[4]=s,e[5]=r,e[6]=i):i=e[6];let o;e[7]!==s||e[8]!==r?(o=()=>q(s,r),e[7]=s,e[8]=r,e[9]=o):o=e[9];const l=t.staleTime??3e4;let c;return e[10]!==t||e[11]!==i||e[12]!==o||e[13]!==l?(c={...t,queryKey:i,queryFn:o,staleTime:l,retry:!1},e[10]=t,e[11]=i,e[12]=o,e[13]=l,e[14]=c):c=e[14],f(c)}export{K as a,M as b,y as l,q as r,b as u};
1
+ import{c as a,m as f,ay as m,az as p}from"./index-CgikKIzX.js";import{u as R}from"./useQuery-BEiGk_96.js";import{K as n}from"./constants-CvFlNMMf.js";async function y(u){if(!u.getServerCapabilities()?.resources)return{resources:[]};try{return await u.listResources()}catch(s){if(s instanceof m&&s.code===p.MethodNotFound)return{resources:[]};throw s}}async function q(u,e){return await u.readResource({uri:e})}function K(u){const e=a.c(12);let s,t;e[0]!==u?({client:s,...t}=u,e[0]=u,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let r;e[3]!==s?(r=n.mcpResourcesList(s),e[3]=s,e[4]=r):r=e[4];let i;e[5]!==s?(i=()=>y(s),e[5]=s,e[6]=i):i=e[6];const o=t.staleTime??3e4;let l;return e[7]!==t||e[8]!==r||e[9]!==i||e[10]!==o?(l={...t,queryKey:r,queryFn:i,staleTime:o,retry:!1},e[7]=t,e[8]=r,e[9]=i,e[10]=o,e[11]=l):l=e[11],f(l)}function M(u){const e=a.c(12);let s,t;e[0]!==u?({client:s,...t}=u,e[0]=u,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let r;e[3]!==s?(r=n.mcpResourcesList(s),e[3]=s,e[4]=r):r=e[4];let i;e[5]!==s?(i=()=>y(s),e[5]=s,e[6]=i):i=e[6];const o=t.staleTime??3e4;let l;return e[7]!==t||e[8]!==r||e[9]!==i||e[10]!==o?(l={...t,queryKey:r,queryFn:i,staleTime:o,retry:!1},e[7]=t,e[8]=r,e[9]=i,e[10]=o,e[11]=l):l=e[11],R(l)}function b(u){const e=a.c(15);let s,t,r;e[0]!==u?({client:s,uri:r,...t}=u,e[0]=u,e[1]=s,e[2]=t,e[3]=r):(s=e[1],t=e[2],r=e[3]);let i;e[4]!==s||e[5]!==r?(i=n.mcpReadResource(s,r),e[4]=s,e[5]=r,e[6]=i):i=e[6];let o;e[7]!==s||e[8]!==r?(o=()=>q(s,r),e[7]=s,e[8]=r,e[9]=o):o=e[9];const l=t.staleTime??3e4;let c;return e[10]!==t||e[11]!==i||e[12]!==o||e[13]!==l?(c={...t,queryKey:i,queryFn:o,staleTime:l,retry:!1},e[10]=t,e[11]=i,e[12]=o,e[13]=l,e[14]=c):c=e[14],f(c)}export{K as a,M as b,y as l,q as r,b as u};
@@ -1 +1 @@
1
- import{c as y,m as p}from"./index-BkxNgQ-z.js";import{u as q}from"./useQuery-Cj-miqA2.js";import{u as C}from"./useMutation-DtOoZO7h.js";import{K as T}from"./constants--aQ9HnxF.js";function w(r){const e=y.c(12);let t,s;e[0]!==r?({client:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let l;e[3]!==t?(l=T.mcpToolsList(t),e[3]=t,e[4]=l):l=e[4];let o;e[5]!==t?(o=async()=>await t.listTools(),e[5]=t,e[6]=o):o=e[6];const i=s.staleTime??3e4;let n;return e[7]!==s||e[8]!==l||e[9]!==o||e[10]!==i?(n={...s,queryKey:l,queryFn:o,staleTime:i,retry:!1},e[7]=s,e[8]=l,e[9]=o,e[10]=i,e[11]=n):n=e[11],p(n)}function F(r){const e=y.c(12);let t,s;e[0]!==r?({client:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let l;e[3]!==t?(l=T.mcpToolsList(t),e[3]=t,e[4]=l):l=e[4];let o;e[5]!==t?(o=async()=>await t.listTools(),e[5]=t,e[6]=o):o=e[6];const i=s.staleTime??3e4;let n;return e[7]!==s||e[8]!==l||e[9]!==o||e[10]!==i?(n={...s,queryKey:l,queryFn:o,staleTime:i,retry:!1},e[7]=s,e[8]=l,e[9]=o,e[10]=i,e[11]=n):n=e[11],q(n)}function P(r){const e=y.c(21);let t,s,l,o;e[0]!==r?({client:t,toolName:o,toolArguments:l,...s}=r,e[0]=r,e[1]=t,e[2]=s,e[3]=l,e[4]=o):(t=e[1],s=e[2],l=e[3],o=e[4]);let i,n,u;if(e[5]!==t||e[6]!==s||e[7]!==l||e[8]!==o){const m=JSON.stringify(l??{});u=p,i=s,n=T.mcpToolCall(t,o,m),e[5]=t,e[6]=s,e[7]=l,e[8]=o,e[9]=i,e[10]=n,e[11]=u}else i=e[9],n=e[10],u=e[11];let a;e[12]!==t||e[13]!==l||e[14]!==o?(a=async()=>await t.callTool({name:o,arguments:l}),e[12]=t,e[13]=l,e[14]=o,e[15]=a):a=e[15];const f=s.staleTime??3e4;let c;return e[16]!==i||e[17]!==n||e[18]!==a||e[19]!==f?(c={...i,queryKey:n,queryFn:a,staleTime:f,retry:!1},e[16]=i,e[17]=n,e[18]=a,e[19]=f,e[20]=c):c=e[20],u(c)}function $(r){const e=y.c(21);let t,s,l,o;e[0]!==r?({client:t,toolName:o,toolArguments:l,...s}=r,e[0]=r,e[1]=t,e[2]=s,e[3]=l,e[4]=o):(t=e[1],s=e[2],l=e[3],o=e[4]);let i,n,u;if(e[5]!==t||e[6]!==s||e[7]!==l||e[8]!==o){const m=JSON.stringify(l??{});u=q,i=s,n=T.mcpToolCall(t,o,m),e[5]=t,e[6]=s,e[7]=l,e[8]=o,e[9]=i,e[10]=n,e[11]=u}else i=e[9],n=e[10],u=e[11];let a;e[12]!==t||e[13]!==l||e[14]!==o?(a=async()=>await t.callTool({name:o,arguments:l}),e[12]=t,e[13]=l,e[14]=o,e[15]=a):a=e[15];const f=s.staleTime??3e4;let c;return e[16]!==i||e[17]!==n||e[18]!==a||e[19]!==f?(c={...i,queryKey:n,queryFn:a,staleTime:f,retry:!1},e[16]=i,e[17]=n,e[18]=a,e[19]=f,e[20]=c):c=e[20],u(c)}function L(r){const e=y.c(8);let t,s;e[0]!==r?({client:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let l;e[3]!==t?(l=async i=>await t.callTool(i),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==s||e[6]!==l?(o={...s,mutationFn:l},e[5]=s,e[6]=l,e[7]=o):o=e[7],C(o)}export{L as a,$ as b,w as c,F as d,P as u};
1
+ import{c as y,m as p}from"./index-CgikKIzX.js";import{u as q}from"./useQuery-BEiGk_96.js";import{u as C}from"./useMutation-CspL2qBT.js";import{K as T}from"./constants-CvFlNMMf.js";function w(r){const e=y.c(12);let t,s;e[0]!==r?({client:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let l;e[3]!==t?(l=T.mcpToolsList(t),e[3]=t,e[4]=l):l=e[4];let o;e[5]!==t?(o=async()=>await t.listTools(),e[5]=t,e[6]=o):o=e[6];const i=s.staleTime??3e4;let n;return e[7]!==s||e[8]!==l||e[9]!==o||e[10]!==i?(n={...s,queryKey:l,queryFn:o,staleTime:i,retry:!1},e[7]=s,e[8]=l,e[9]=o,e[10]=i,e[11]=n):n=e[11],p(n)}function F(r){const e=y.c(12);let t,s;e[0]!==r?({client:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let l;e[3]!==t?(l=T.mcpToolsList(t),e[3]=t,e[4]=l):l=e[4];let o;e[5]!==t?(o=async()=>await t.listTools(),e[5]=t,e[6]=o):o=e[6];const i=s.staleTime??3e4;let n;return e[7]!==s||e[8]!==l||e[9]!==o||e[10]!==i?(n={...s,queryKey:l,queryFn:o,staleTime:i,retry:!1},e[7]=s,e[8]=l,e[9]=o,e[10]=i,e[11]=n):n=e[11],q(n)}function P(r){const e=y.c(21);let t,s,l,o;e[0]!==r?({client:t,toolName:o,toolArguments:l,...s}=r,e[0]=r,e[1]=t,e[2]=s,e[3]=l,e[4]=o):(t=e[1],s=e[2],l=e[3],o=e[4]);let i,n,u;if(e[5]!==t||e[6]!==s||e[7]!==l||e[8]!==o){const m=JSON.stringify(l??{});u=p,i=s,n=T.mcpToolCall(t,o,m),e[5]=t,e[6]=s,e[7]=l,e[8]=o,e[9]=i,e[10]=n,e[11]=u}else i=e[9],n=e[10],u=e[11];let a;e[12]!==t||e[13]!==l||e[14]!==o?(a=async()=>await t.callTool({name:o,arguments:l}),e[12]=t,e[13]=l,e[14]=o,e[15]=a):a=e[15];const f=s.staleTime??3e4;let c;return e[16]!==i||e[17]!==n||e[18]!==a||e[19]!==f?(c={...i,queryKey:n,queryFn:a,staleTime:f,retry:!1},e[16]=i,e[17]=n,e[18]=a,e[19]=f,e[20]=c):c=e[20],u(c)}function $(r){const e=y.c(21);let t,s,l,o;e[0]!==r?({client:t,toolName:o,toolArguments:l,...s}=r,e[0]=r,e[1]=t,e[2]=s,e[3]=l,e[4]=o):(t=e[1],s=e[2],l=e[3],o=e[4]);let i,n,u;if(e[5]!==t||e[6]!==s||e[7]!==l||e[8]!==o){const m=JSON.stringify(l??{});u=q,i=s,n=T.mcpToolCall(t,o,m),e[5]=t,e[6]=s,e[7]=l,e[8]=o,e[9]=i,e[10]=n,e[11]=u}else i=e[9],n=e[10],u=e[11];let a;e[12]!==t||e[13]!==l||e[14]!==o?(a=async()=>await t.callTool({name:o,arguments:l}),e[12]=t,e[13]=l,e[14]=o,e[15]=a):a=e[15];const f=s.staleTime??3e4;let c;return e[16]!==i||e[17]!==n||e[18]!==a||e[19]!==f?(c={...i,queryKey:n,queryFn:a,staleTime:f,retry:!1},e[16]=i,e[17]=n,e[18]=a,e[19]=f,e[20]=c):c=e[20],u(c)}function L(r){const e=y.c(8);let t,s;e[0]!==r?({client:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let l;e[3]!==t?(l=async i=>await t.callTool(i),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==s||e[6]!==l?(o={...s,mutationFn:l},e[5]=s,e[6]=l,e[7]=o):o=e[7],C(o)}export{L as a,$ as b,w as c,F as d,P as u};
@@ -1 +1 @@
1
- import{c as n,u as o,m as u,K as i,d as a}from"./index-BkxNgQ-z.js";function l(){const e=n.c(4),{locator:r}=o();let t;e[0]!==r?(t=i.members(r),e[0]=r,e[1]=t):t=e[1];let s;return e[2]!==t?(s={queryKey:t,queryFn:m},e[2]=t,e[3]=s):s=e[3],u(s)}function m(){return a.organization.listMembers()}export{l as u};
1
+ import{c as n,u as o,m as u,K as i,d as a}from"./index-CgikKIzX.js";function l(){const e=n.c(4),{locator:r}=o();let t;e[0]!==r?(t=i.members(r),e[0]=r,e[1]=t):t=e[1];let s;return e[2]!==t?(s={queryKey:t,queryFn:m},e[2]=t,e[3]=s):s=e[3],u(s)}function m(){return a.organization.listMembers()}export{l as u};
@@ -1 +1 @@
1
- import{c as m,r}from"./index-BkxNgQ-z.js";const a=768,o=()=>globalThis.innerWidth<a;function u(){const e=m.c(2),[l,n]=r.useState(o);let t,s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{const i=()=>n(o),c=globalThis.matchMedia(`(max-width: ${a-1}px)`);return c.addEventListener("change",i),n(o),()=>c.removeEventListener("change",i)},s=[],e[0]=t,e[1]=s):(t=e[0],s=e[1]),r.useEffect(t,s),l}export{u};
1
+ import{c as m,r}from"./index-CgikKIzX.js";const a=768,o=()=>globalThis.innerWidth<a;function u(){const e=m.c(2),[l,n]=r.useState(o);let t,s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{const i=()=>n(o),c=globalThis.matchMedia(`(max-width: ${a-1}px)`);return c.addEventListener("change",i),n(o),()=>c.removeEventListener("change",i)},s=[],e[0]=t,e[1]=s):(t=e[0],s=e[1]),r.useEffect(t,s),l}export{u};
@@ -1 +1 @@
1
- import{K as m,c as C,m as T}from"./index-BkxNgQ-z.js";import{u as y}from"./useQuery-Cj-miqA2.js";import{u as f,a}from"./constants--aQ9HnxF.js";function S(t,s){const e=C.c(13);let r;e[0]!==t?(r={connectionId:a,orgId:t},e[0]=t,e[1]=r):r=e[1];const l=f(r);let u;e[2]!==t||e[3]!==s?(u=m.project(t,s),e[2]=t,e[3]=s,e[4]=u):u=e[4];let c;e[5]!==l||e[6]!==t||e[7]!==s?(c=async()=>{const p=await l.callTool({name:"PROJECT_GET",arguments:{organizationId:t,slug:s}});return(p.structuredContent??p).project},e[5]=l,e[6]=t,e[7]=s,e[8]=c):c=e[8];const o=!!t&&!!s;let n;return e[9]!==u||e[10]!==c||e[11]!==o?(n={queryKey:u,queryFn:c,enabled:o,staleTime:3e4},e[9]=u,e[10]=c,e[11]=o,e[12]=n):n=e[12],y(n)}function _(t,s){const e=f({connectionId:a,orgId:t}),r={queryKey:m.projects(t),queryFn:async()=>{const l=await e.callTool({name:"PROJECT_LIST",arguments:{organizationId:t}});return(l.structuredContent??l).projects.map(c=>({...c,organizationId:t}))},staleTime:3e4};return s?.suspense?T(r):y({...r,enabled:!!t})}export{_ as a,S as u};
1
+ import{K as m,c as C,m as T}from"./index-CgikKIzX.js";import{u as y}from"./useQuery-BEiGk_96.js";import{u as f,a}from"./constants-CvFlNMMf.js";function S(t,s){const e=C.c(13);let r;e[0]!==t?(r={connectionId:a,orgId:t},e[0]=t,e[1]=r):r=e[1];const l=f(r);let u;e[2]!==t||e[3]!==s?(u=m.project(t,s),e[2]=t,e[3]=s,e[4]=u):u=e[4];let c;e[5]!==l||e[6]!==t||e[7]!==s?(c=async()=>{const p=await l.callTool({name:"PROJECT_GET",arguments:{organizationId:t,slug:s}});return(p.structuredContent??p).project},e[5]=l,e[6]=t,e[7]=s,e[8]=c):c=e[8];const o=!!t&&!!s;let n;return e[9]!==u||e[10]!==c||e[11]!==o?(n={queryKey:u,queryFn:c,enabled:o,staleTime:3e4},e[9]=u,e[10]=c,e[11]=o,e[12]=n):n=e[12],y(n)}function _(t,s){const e=f({connectionId:a,orgId:t}),r={queryKey:m.projects(t),queryFn:async()=>{const l=await e.callTool({name:"PROJECT_LIST",arguments:{organizationId:t}});return(l.structuredContent??l).projects.map(c=>({...c,organizationId:t}))},staleTime:3e4};return s?.suspense?T(r):y({...r,enabled:!!t})}export{_ as a,S as u};
@@ -1 +1 @@
1
- import{r as g,c as v,b as C,a as k,e as E}from"./index-BkxNgQ-z.js";const x=({size:e=24,color:t="currentColor",...s})=>g.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},g.createElement("path",{d:"M15 21v-5.4c0-.56 0-.84-.109-1.054a1 1 0 0 0-.437-.437C14.24 14 13.96 14 13.4 14h-2.8c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C9 14.76 9 15.04 9 15.6V21M3 7a3 3 0 0 0 6 0 3 3 0 1 0 6 0 3 3 0 1 0 6 0M6.2 21h11.6c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C21 19.48 21 18.92 21 17.8V6.2c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C19.48 3 18.92 3 17.8 3H6.2c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C3 4.52 3 5.08 3 6.2v11.6c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C4.52 21 5.08 21 6.2 21Z"}));x.displayName="Building02";const M=({size:e=24,color:t="currentColor",...s})=>g.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},g.createElement("path",{d:"M15.938 15.938A7.001 7.001 0 0 0 15 2a7.001 7.001 0 0 0-6.938 6.062M16 15a7 7 0 1 1-14 0 7 7 0 0 1 14 0Z"}));M.displayName="Coins01";const j=new Set(["account.profile","account.preferences","account.experimental","org.general","org.plugins","org.billing"]);function w(e){return e?j.has(e):!1}function _(){const e=v.c(17),t=C();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={strict:!1},e[0]=s):s=e[0];const r=k(s);let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i={strict:!1},e[1]=i):i=e[1];const{org:o,project:n}=E(i);let c;e[2]!==r.settings?(c=w(r.settings)?r.settings:void 0,e[2]=r.settings,e[3]=c):c=e[3];const m=c,p=!!m;let a;e[4]!==t||e[5]!==o||e[6]!==n?(a=S=>{!o||!n||t({to:"/$org/$project",params:{org:o,project:n},search:{settings:S}})},e[4]=t,e[5]=o,e[6]=n,e[7]=a):a=e[7];const f=a;let l;e[8]!==t||e[9]!==o||e[10]!==n?(l=()=>{!o||!n||t({to:"/$org/$project",params:{org:o,project:n},search:{}})},e[8]=t,e[9]=o,e[10]=n,e[11]=l):l=e[11];const h=l,d=m??"account.preferences";let u;return e[12]!==h||e[13]!==p||e[14]!==f||e[15]!==d?(u={isOpen:p,activeSection:d,open:f,close:h},e[12]=h,e[13]=p,e[14]=f,e[15]=d,e[16]=u):u=e[16],u}export{M as i,x as t,_ as u};
1
+ import{r as g,c as v,b as C,a as k,e as E}from"./index-CgikKIzX.js";const x=({size:e=24,color:t="currentColor",...s})=>g.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},g.createElement("path",{d:"M15 21v-5.4c0-.56 0-.84-.109-1.054a1 1 0 0 0-.437-.437C14.24 14 13.96 14 13.4 14h-2.8c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C9 14.76 9 15.04 9 15.6V21M3 7a3 3 0 0 0 6 0 3 3 0 1 0 6 0 3 3 0 1 0 6 0M6.2 21h11.6c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C21 19.48 21 18.92 21 17.8V6.2c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C19.48 3 18.92 3 17.8 3H6.2c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C3 4.52 3 5.08 3 6.2v11.6c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C4.52 21 5.08 21 6.2 21Z"}));x.displayName="Building02";const M=({size:e=24,color:t="currentColor",...s})=>g.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},g.createElement("path",{d:"M15.938 15.938A7.001 7.001 0 0 0 15 2a7.001 7.001 0 0 0-6.938 6.062M16 15a7 7 0 1 1-14 0 7 7 0 0 1 14 0Z"}));M.displayName="Coins01";const j=new Set(["account.profile","account.preferences","account.experimental","org.general","org.plugins","org.billing"]);function w(e){return e?j.has(e):!1}function _(){const e=v.c(17),t=C();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={strict:!1},e[0]=s):s=e[0];const r=k(s);let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i={strict:!1},e[1]=i):i=e[1];const{org:o,project:n}=E(i);let c;e[2]!==r.settings?(c=w(r.settings)?r.settings:void 0,e[2]=r.settings,e[3]=c):c=e[3];const m=c,p=!!m;let a;e[4]!==t||e[5]!==o||e[6]!==n?(a=S=>{!o||!n||t({to:"/$org/$project",params:{org:o,project:n},search:{settings:S}})},e[4]=t,e[5]=o,e[6]=n,e[7]=a):a=e[7];const f=a;let l;e[8]!==t||e[9]!==o||e[10]!==n?(l=()=>{!o||!n||t({to:"/$org/$project",params:{org:o,project:n},search:{}})},e[8]=t,e[9]=o,e[10]=n,e[11]=l):l=e[11];const h=l,d=m??"account.preferences";let u;return e[12]!==h||e[13]!==p||e[14]!==f||e[15]!==d?(u={isOpen:p,activeSection:d,open:f,close:h},e[12]=h,e[13]=p,e[14]=f,e[15]=d,e[16]=u):u=e[16],u}export{M as i,x as t,_ as u};
@@ -1 +1 @@
1
- import{c as p,r as f}from"./index-BkxNgQ-z.js";import{u as w}from"./use-mobile-BArkW6j1.js";function S(m,M){const e=p.c(12),u=M===void 0?"cards":M,o=w(),b=f.useRef(o),s=m?`deco-view-mode-${m}`:"deco-view-mode";let i;e[0]!==u||e[1]!==s?(i=()=>{const r=globalThis.localStorage?.getItem(s);return r==="cards"||r==="table"?r:u},e[0]=u,e[1]=s,e[2]=i):i=e[2];const[t,g]=f.useState(i);let l;e[3]!==s?(l=r=>{g(r),globalThis.localStorage?.setItem(s,r)},e[3]=s,e[4]=l):l=e[4];const d=l;let c,a;e[5]!==o||e[6]!==t?(c=()=>{!b.current&&o&&t==="table"&&g("cards"),b.current=o},a=[o,t],e[5]=o,e[6]=t,e[7]=c,e[8]=a):(c=e[7],a=e[8]),f.useEffect(c,a);let n;return e[9]!==d||e[10]!==t?(n=[t,d],e[9]=d,e[10]=t,e[11]=n):n=e[11],n}export{S as u};
1
+ import{c as p,r as f}from"./index-CgikKIzX.js";import{u as w}from"./use-mobile-CePuocbs.js";function S(m,M){const e=p.c(12),u=M===void 0?"cards":M,o=w(),b=f.useRef(o),s=m?`deco-view-mode-${m}`:"deco-view-mode";let i;e[0]!==u||e[1]!==s?(i=()=>{const r=globalThis.localStorage?.getItem(s);return r==="cards"||r==="table"?r:u},e[0]=u,e[1]=s,e[2]=i):i=e[2];const[t,g]=f.useState(i);let l;e[3]!==s?(l=r=>{g(r),globalThis.localStorage?.setItem(s,r)},e[3]=s,e[4]=l):l=e[4];const d=l;let c,a;e[5]!==o||e[6]!==t?(c=()=>{!b.current&&o&&t==="table"&&g("cards"),b.current=o},a=[o,t],e[5]=o,e[6]=t,e[7]=c,e[8]=a):(c=e[7],a=e[8]),f.useEffect(c,a);let n;return e[9]!==d||e[10]!==t?(n=[t,d],e[9]=d,e[10]=t,e[11]=n):n=e[11],n}export{S as u};
@@ -1 +1 @@
1
- import{c,u as r}from"./index-BkxNgQ-z.js";import{e as a,u as C,d as I}from"./use-connection-DjiXkPUz.js";import{a as l,u}from"./constants--aQ9HnxF.js";function m(i){const t=c.c(4);let o;t[0]!==i?(o=i===void 0?{}:i,t[0]=i,t[1]=o):o=t[1];const n=o,{org:e}=r();let s;t[2]!==e.id?(s={connectionId:l,orgId:e.id},t[2]=e.id,t[3]=s):s=t[3];const d=u(s);return a(e.id,"VIRTUAL_MCP",d,n)}function V(i){const t=c.c(2),{org:o}=r();let n;t[0]!==o.id?(n={connectionId:l,orgId:o.id},t[0]=o.id,t[1]=n):n=t[1];const e=u(n);return I(o.id,"VIRTUAL_MCP",i??void 0,e)}function p(){const i=c.c(2),{org:t}=r();let o;i[0]!==t.id?(o={connectionId:l,orgId:t.id},i[0]=t.id,i[1]=o):o=i[1];const n=u(o);return C(t.id,"VIRTUAL_MCP",n)}export{p as a,m as b,V as u};
1
+ import{c,u as r}from"./index-CgikKIzX.js";import{e as a,u as C,d as I}from"./use-connection-0uAZ0JSW.js";import{a as l,u}from"./constants-CvFlNMMf.js";function m(i){const t=c.c(4);let o;t[0]!==i?(o=i===void 0?{}:i,t[0]=i,t[1]=o):o=t[1];const n=o,{org:e}=r();let s;t[2]!==e.id?(s={connectionId:l,orgId:e.id},t[2]=e.id,t[3]=s):s=t[3];const d=u(s);return a(e.id,"VIRTUAL_MCP",d,n)}function V(i){const t=c.c(2),{org:o}=r();let n;t[0]!==o.id?(n={connectionId:l,orgId:o.id},t[0]=o.id,t[1]=n):n=t[1];const e=u(n);return I(o.id,"VIRTUAL_MCP",i??void 0,e)}function p(){const i=c.c(2),{org:t}=r();let o;i[0]!==t.id?(o={connectionId:l,orgId:t.id},i[0]=t.id,i[1]=o):o=i[1];const n=u(o);return C(t.id,"VIRTUAL_MCP",n)}export{p as a,m as b,V as u};
@@ -0,0 +1 @@
1
+ import{I as u}from"./infiniteQueryObserver-DsXqsvOO.js";import{Y as i}from"./index-CgikKIzX.js";function t(e,r){return i(e,u,r)}export{t as u};
@@ -1 +1 @@
1
- import{aN as l,aO as p,aP as n,aQ as d,aR as h,n as b,r as o,aS as m,aT as f}from"./index-BkxNgQ-z.js";var v=class extends l{#s;#i=void 0;#t;#e;constructor(t,s){super(),this.#s=t,this.setOptions(s),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const s=this.options;this.options=this.#s.defaultMutationOptions(t),p(this.options,s)||this.#s.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#t,observer:this}),s?.mutationKey&&this.options.mutationKey&&n(s.mutationKey)!==n(this.options.mutationKey)?this.reset():this.#t?.state.status==="pending"&&this.#t.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#t?.removeObserver(this)}onMutationUpdate(t){this.#r(),this.#o(t)}getCurrentResult(){return this.#i}reset(){this.#t?.removeObserver(this),this.#t=void 0,this.#r(),this.#o()}mutate(t,s){return this.#e=s,this.#t?.removeObserver(this),this.#t=this.#s.getMutationCache().build(this.#s,this.options),this.#t.addObserver(this),this.#t.execute(t)}#r(){const t=this.#t?.state??d();this.#i={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#o(t){h.batch(()=>{if(this.#e&&this.hasListeners()){const s=this.#i.variables,i=this.#i.context,e={client:this.#s,meta:this.options.meta,mutationKey:this.options.mutationKey};t?.type==="success"?(this.#e.onSuccess?.(t.data,s,i,e),this.#e.onSettled?.(t.data,null,s,i,e)):t?.type==="error"&&(this.#e.onError?.(t.error,s,i,e),this.#e.onSettled?.(void 0,t.error,s,i,e))}this.listeners.forEach(s=>{s(this.#i)})})}};function O(t,s){const i=b(s),[e]=o.useState(()=>new v(i,t));o.useEffect(()=>{e.setOptions(t)},[e,t]);const r=o.useSyncExternalStore(o.useCallback(a=>e.subscribe(h.batchCalls(a)),[e]),()=>e.getCurrentResult(),()=>e.getCurrentResult()),u=o.useCallback((a,c)=>{e.mutate(a,c).catch(m)},[e]);if(r.error&&f(e.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:u,mutateAsync:r.mutate}}export{O as u};
1
+ import{aP as l,aQ as p,aR as n,aS as d,aT as h,n as b,r as o,aU as m,aV as f}from"./index-CgikKIzX.js";var v=class extends l{#s;#i=void 0;#t;#e;constructor(t,s){super(),this.#s=t,this.setOptions(s),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const s=this.options;this.options=this.#s.defaultMutationOptions(t),p(this.options,s)||this.#s.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#t,observer:this}),s?.mutationKey&&this.options.mutationKey&&n(s.mutationKey)!==n(this.options.mutationKey)?this.reset():this.#t?.state.status==="pending"&&this.#t.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#t?.removeObserver(this)}onMutationUpdate(t){this.#r(),this.#o(t)}getCurrentResult(){return this.#i}reset(){this.#t?.removeObserver(this),this.#t=void 0,this.#r(),this.#o()}mutate(t,s){return this.#e=s,this.#t?.removeObserver(this),this.#t=this.#s.getMutationCache().build(this.#s,this.options),this.#t.addObserver(this),this.#t.execute(t)}#r(){const t=this.#t?.state??d();this.#i={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#o(t){h.batch(()=>{if(this.#e&&this.hasListeners()){const s=this.#i.variables,i=this.#i.context,e={client:this.#s,meta:this.options.meta,mutationKey:this.options.mutationKey};t?.type==="success"?(this.#e.onSuccess?.(t.data,s,i,e),this.#e.onSettled?.(t.data,null,s,i,e)):t?.type==="error"&&(this.#e.onError?.(t.error,s,i,e),this.#e.onSettled?.(void 0,t.error,s,i,e))}this.listeners.forEach(s=>{s(this.#i)})})}};function O(t,s){const i=b(s),[e]=o.useState(()=>new v(i,t));o.useEffect(()=>{e.setOptions(t)},[e,t]);const r=o.useSyncExternalStore(o.useCallback(a=>e.subscribe(h.batchCalls(a)),[e]),()=>e.getCurrentResult(),()=>e.getCurrentResult()),u=o.useCallback((a,c)=>{e.mutate(a,c).catch(m)},[e]);if(r.error&&f(e.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:u,mutateAsync:r.mutate}}export{O as u};
@@ -0,0 +1 @@
1
+ import{Y as u,a3 as s}from"./index-CgikKIzX.js";function o(e,r){return u(e,s,r)}export{o as u};
@@ -0,0 +1 @@
1
+ import{I as s}from"./infiniteQueryObserver-DsXqsvOO.js";import{Y as u,Z as n}from"./index-CgikKIzX.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};
@@ -1 +1 @@
1
- import{c as w,u as C,K as S,v as y,j as t}from"./index-BkxNgQ-z.js";import{A as E}from"./avatar-BeiX4aSz.js";import{u as k}from"./useQuery-Cj-miqA2.js";import{a as A,u as _}from"./constants--aQ9HnxF.js";function K(m){const e=w.c(11),{org:h}=C();let x;e[0]!==h.id?(x={connectionId:A,orgId:h.id},e[0]=h.id,e[1]=x):x=e[1];const u=_(x);let d;e[2]!==m?(d=S.user(m),e[2]=m,e[3]=d):d=e[3];let s;e[4]!==u||e[5]!==m?(s=async()=>{const r=await u.callTool({name:"USER_GET",arguments:{id:m}});return(r.structuredContent??r).user},e[4]=u,e[5]=m,e[6]=s):s=e[6];const l=!!m;let o;return e[7]!==d||e[8]!==s||e[9]!==l?(o={queryKey:d,queryFn:s,staleTime:3e5,retry:1,enabled:l},e[7]=d,e[8]=s,e[9]=l,e[10]=o):o=e[10],k(o)}function q(m){const e=w.c(36),{id:h,size:x,showEmail:u,avatarOnly:d,className:s}=m,l=x===void 0?"xs":x,o=u===void 0?!1:u,r=d===void 0?!1:d,{data:c,isLoading:U,isError:b}=K(h);if(U){let a;e[0]!==s?(a=y("flex items-center gap-2",s),e[0]=s,e[1]=a):a=e[1];let i;e[2]!==l?(i=t.jsx(E.Skeleton,{shape:"circle",size:l}),e[2]=l,e[3]=i):i=e[3];let n;e[4]!==r||e[5]!==o?(n=!r&&t.jsxs("div",{className:"flex flex-col gap-1",children:[t.jsx("div",{className:"h-3 w-24 bg-muted animate-pulse rounded"}),o&&t.jsx("div",{className:"h-2 w-32 bg-muted animate-pulse rounded"})]}),e[4]=r,e[5]=o,e[6]=n):n=e[6];let f;return e[7]!==a||e[8]!==i||e[9]!==n?(f=t.jsxs("div",{className:a,children:[i,n]}),e[7]=a,e[8]=i,e[9]=n,e[10]=f):f=e[10],f}if(b||!c){let a;e[11]!==s?(a=y("flex items-center gap-2",s),e[11]=s,e[12]=a):a=e[12];let i;e[13]!==l?(i=t.jsx(E,{shape:"circle",size:l,fallback:"?",muted:!0}),e[13]=l,e[14]=i):i=e[14];let n;e[15]!==r?(n=!r&&t.jsx("div",{className:"flex flex-col",children:t.jsx("div",{className:"text-sm text-muted-foreground",children:"Unknown User"})}),e[15]=r,e[16]=n):n=e[16];let f;return e[17]!==a||e[18]!==i||e[19]!==n?(f=t.jsxs("div",{className:a,children:[i,n]}),e[17]=a,e[18]=i,e[19]=n,e[20]=f):f=e[20],f}let p;e[21]!==s?(p=y("flex items-center gap-2",s),e[21]=s,e[22]=p):p=e[22];const N=c.image??void 0;let v;e[23]!==l||e[24]!==N||e[25]!==c.name?(v=t.jsx(E,{shape:"circle",size:l,url:N,fallback:c.name}),e[23]=l,e[24]=N,e[25]=c.name,e[26]=v):v=e[26];let j;e[27]!==r||e[28]!==o||e[29]!==c.email||e[30]!==c.name?(j=!r&&t.jsxs("div",{className:"flex flex-col",children:[t.jsx("div",{className:"text-sm font-medium",children:c.name}),o&&t.jsx("div",{className:"text-xs text-muted-foreground",children:c.email})]}),e[27]=r,e[28]=o,e[29]=c.email,e[30]=c.name,e[31]=j):j=e[31];let g;return e[32]!==p||e[33]!==v||e[34]!==j?(g=t.jsxs("div",{className:p,children:[v,j]}),e[32]=p,e[33]=v,e[34]=j,e[35]=g):g=e[35],g}export{q as U};
1
+ import{c as w,u as C,K as S,v as y,j as t}from"./index-CgikKIzX.js";import{A as E}from"./avatar-D4ALUDCI.js";import{u as k}from"./useQuery-BEiGk_96.js";import{a as A,u as _}from"./constants-CvFlNMMf.js";function K(m){const e=w.c(11),{org:h}=C();let x;e[0]!==h.id?(x={connectionId:A,orgId:h.id},e[0]=h.id,e[1]=x):x=e[1];const u=_(x);let d;e[2]!==m?(d=S.user(m),e[2]=m,e[3]=d):d=e[3];let s;e[4]!==u||e[5]!==m?(s=async()=>{const r=await u.callTool({name:"USER_GET",arguments:{id:m}});return(r.structuredContent??r).user},e[4]=u,e[5]=m,e[6]=s):s=e[6];const l=!!m;let o;return e[7]!==d||e[8]!==s||e[9]!==l?(o={queryKey:d,queryFn:s,staleTime:3e5,retry:1,enabled:l},e[7]=d,e[8]=s,e[9]=l,e[10]=o):o=e[10],k(o)}function q(m){const e=w.c(36),{id:h,size:x,showEmail:u,avatarOnly:d,className:s}=m,l=x===void 0?"xs":x,o=u===void 0?!1:u,r=d===void 0?!1:d,{data:c,isLoading:U,isError:b}=K(h);if(U){let a;e[0]!==s?(a=y("flex items-center gap-2",s),e[0]=s,e[1]=a):a=e[1];let i;e[2]!==l?(i=t.jsx(E.Skeleton,{shape:"circle",size:l}),e[2]=l,e[3]=i):i=e[3];let n;e[4]!==r||e[5]!==o?(n=!r&&t.jsxs("div",{className:"flex flex-col gap-1",children:[t.jsx("div",{className:"h-3 w-24 bg-muted animate-pulse rounded"}),o&&t.jsx("div",{className:"h-2 w-32 bg-muted animate-pulse rounded"})]}),e[4]=r,e[5]=o,e[6]=n):n=e[6];let f;return e[7]!==a||e[8]!==i||e[9]!==n?(f=t.jsxs("div",{className:a,children:[i,n]}),e[7]=a,e[8]=i,e[9]=n,e[10]=f):f=e[10],f}if(b||!c){let a;e[11]!==s?(a=y("flex items-center gap-2",s),e[11]=s,e[12]=a):a=e[12];let i;e[13]!==l?(i=t.jsx(E,{shape:"circle",size:l,fallback:"?",muted:!0}),e[13]=l,e[14]=i):i=e[14];let n;e[15]!==r?(n=!r&&t.jsx("div",{className:"flex flex-col",children:t.jsx("div",{className:"text-sm text-muted-foreground",children:"Unknown User"})}),e[15]=r,e[16]=n):n=e[16];let f;return e[17]!==a||e[18]!==i||e[19]!==n?(f=t.jsxs("div",{className:a,children:[i,n]}),e[17]=a,e[18]=i,e[19]=n,e[20]=f):f=e[20],f}let p;e[21]!==s?(p=y("flex items-center gap-2",s),e[21]=s,e[22]=p):p=e[22];const N=c.image??void 0;let v;e[23]!==l||e[24]!==N||e[25]!==c.name?(v=t.jsx(E,{shape:"circle",size:l,url:N,fallback:c.name}),e[23]=l,e[24]=N,e[25]=c.name,e[26]=v):v=e[26];let j;e[27]!==r||e[28]!==o||e[29]!==c.email||e[30]!==c.name?(j=!r&&t.jsxs("div",{className:"flex flex-col",children:[t.jsx("div",{className:"text-sm font-medium",children:c.name}),o&&t.jsx("div",{className:"text-xs text-muted-foreground",children:c.email})]}),e[27]=r,e[28]=o,e[29]=c.email,e[30]=c.name,e[31]=j):j=e[31];let g;return e[32]!==p||e[33]!==v||e[34]!==j?(g=t.jsxs("div",{className:p,children:[v,j]}),e[32]=p,e[33]=v,e[34]=j,e[35]=g):g=e[35],g}export{q as U};
@@ -1 +1 @@
1
- import{r as N,u as w,d as q,b as G,j as t,B as I,O as B,c as _,E as Q,_ as J,aD as Z,n as V,K as W,t as A}from"./index-BkxNgQ-z.js";import{a as Y,u as X,e as ee}from"./constants--aQ9HnxF.js";import{C as te}from"./collection-tab-CkymCS_K.js";import{g as ne,h as se}from"./use-connection-DjiXkPUz.js";import{E as R}from"./collection-search-BgstpGbD.js";import{P as x}from"./index-B4YFEuZr.js";import{B as F,a as M,b as z,c as T}from"./breadcrumb-DxXcAXh7.js";import{a as ie,b as oe}from"./use-binding-CVLYzFG-.js";import{i as le}from"./Loading01-BLoQsWVt.js";import{s as re}from"./RefreshCcw01-DzE0Vt_s.js";import{u as ae}from"./useMutation-DtOoZO7h.js";import{e as ce}from"./Dataflow03-TMmWfgl9.js";import"./generate-id-Dyweu44Y.js";import"./collection-table-wrapper-B7II4YYC.js";import"./dropdown-menu-DvfBJ25L.js";import"./Check-BuBqfL8V.js";import"./ChevronRight-u7jqeZNG.js";import"./ArrowDown-BfANN175.js";import"./ArrowUp-BNm6R5tp.js";import"./Grid01-DjcW2Js4.js";import"./List-Be3XBHwN.js";import"./tooltip-DvMRS01W.js";import"./index-dKQNml8k.js";import"./table-BJ3W5Geb.js";import"./card-BRjix5ol.js";import"./integration-icon-DqBJsR0X.js";import"./Container-CFxptFeR.js";import"./Copy01-D2l3XUry.js";import"./DotsVertical-B78gtBdB.js";import"./Edit01-CbZPkCJz.js";import"./Eye-vR70tVFn.js";import"./Trash01-BvIumE4M.js";import"./empty-state-C2LU6BeW.js";import"./Inbox01-xF_R8liT.js";import"./user-BcEL6pjj.js";import"./avatar-BeiX4aSz.js";import"./useQuery-Cj-miqA2.js";import"./use-list-state-CCFlT7yz.js";import"./use-view-mode-3_G2qIMG.js";import"./use-mobile-BArkW6j1.js";import"./constants-DoLvwboP.js";import"./alert-dialog-B0yEBEkb.js";import"./Plus-4zX3n4bH.js";import"./layout-rnNZXdmD.js";import"./SearchMd-BvHN4xgB.js";import"./input-BxWPl4Ur.js";import"./localstorage-keys-2beZrYfY.js";import"./binder-DUACCYIe.js";const D=({size:n=24,color:e="currentColor",...i})=>N.createElement("svg",{viewBox:"0 0 24 24",width:n,height:n,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i},N.createElement("path",{d:"m9.395 19.371.585 1.315a2.212 2.212 0 0 0 4.044 0l.584-1.315a2.426 2.426 0 0 1 2.47-1.423l1.43.152a2.212 2.212 0 0 0 2.023-3.502l-.847-1.164a2.428 2.428 0 0 1-.46-1.434c0-.513.163-1.014.464-1.429l.847-1.163a2.211 2.211 0 0 0-2.022-3.502l-1.43.152a2.433 2.433 0 0 1-1.47-.312 2.426 2.426 0 0 1-1-1.117l-.589-1.315a2.212 2.212 0 0 0-4.044 0L9.395 4.63c-.207.468-.557.86-1 1.117-.445.256-.96.365-1.47.312l-1.434-.152a2.212 2.212 0 0 0-2.023 3.502l.847 1.163a2.43 2.43 0 0 1 0 2.858l-.847 1.163a2.21 2.21 0 0 0 .786 3.273c.382.195.811.274 1.237.23l1.43-.153a2.434 2.434 0 0 1 2.474 1.43Z"}),N.createElement("path",{d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"}));D.displayName="Settings02";function de({title:n,description:e,wellKnownMcp:i,imageSrc:a,onConnected:o}){const c=ne(),{org:{slug:s}}=w(),{data:r}=q.useSession(),d=G(),[m,p]=N.useState(!1),l=async()=>{if(!(!i||!r?.user?.id)){p(!0);try{const f=await c.create.mutateAsync(i);o?.(f.id),d({to:"/$org/$project/mcps/$connectionId",params:{org:s,project:B,connectionId:f.id}})}finally{p(!1)}}},u=()=>{d({to:"/$org/$project/mcps",params:{org:s,project:B},search:{action:"create"}})};return t.jsx(R,{image:a?t.jsx("img",{src:a,alt:n,width:336,height:320,className:"max-w-full h-auto"}):null,title:n,description:e,actions:t.jsxs(t.Fragment,{children:[t.jsxs(I,{variant:"outline",onClick:l,disabled:m||!i,children:[i?.icon&&t.jsx("img",{src:i.icon,alt:"",className:"size-4"}),m?"Installing...":`Install ${i?.title||"MCP"}`]}),t.jsx(I,{variant:"outline",onClick:u,children:"Custom Connection"})]})})}function me(n){const e=_.c(35),{bindingName:i,collectionName:a,title:o,emptyState:c,wellKnownMcp:s}=n,{org:r}=w(),d=se();let m;e[0]!==d||e[1]!==i?(m={connections:d,binding:i},e[0]=d,e[1]=i,e[2]=m):m=e[2];const l=ie(m)[0],u=oe(l);let f;if(e[3]!==a||e[4]!==u){let g;e[6]!==a?(g=$=>$.name.toLowerCase()===a.toLowerCase(),e[6]=a,e[7]=g):g=e[7],f=u.find(g),e[3]=a,e[4]=u,e[5]=f}else f=e[5];const S=f,[U,H]=N.useState(null),L=l&&S&&(l.id||U);let h;e[8]!==o?(h=t.jsx(x.Header,{children:t.jsx(x.Header.Left,{children:t.jsx(F,{children:t.jsx(M,{children:t.jsx(z,{children:t.jsx(T,{children:o})})})})})}),e[8]=o,e[9]=h):h=e[9];let j;e[10]!==l||e[11]!==r||e[12]!==o?(j=g=>{const{error:$,resetError:K}=g;return t.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[t.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:t.jsx(J,{className:"h-6 w-6 text-destructive"})}),t.jsxs("div",{className:"space-y-2",children:[t.jsxs("h3",{className:"text-lg font-medium",children:["Failed to load ",o.toLowerCase()]}),t.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:$?.message||"Unable to connect to the server. Please check that it is running and accessible."})]}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsxs(I,{variant:"outline",onClick:K,children:[t.jsx(re,{className:"size-4"}),"Try again"]}),l&&t.jsx(I,{variant:"outline",asChild:!0,children:t.jsxs(Z,{to:"/$org/$project/mcps/$connectionId",params:{org:r.slug,project:B,connectionId:l.id},search:{tab:"settings"},children:[t.jsx(D,{className:"size-4"}),"Connection Settings"]})})]})]})},e[10]=l,e[11]=r,e[12]=o,e[13]=j):j=e[13];let k;e[14]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx(le,{size:32,className:"animate-spin text-muted-foreground mb-4"}),e[14]=k):k=e[14];let b;e[15]!==o?(b=o.toLowerCase(),e[15]=o,e[16]=b):b=e[16];let C;e[17]!==b?(C=t.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[k,t.jsxs("p",{className:"text-sm text-muted-foreground",children:["Loading ",b,"..."]})]}),e[17]=b,e[18]=C):C=e[18];let y;e[19]!==S||e[20]!==l||e[21]!==c||e[22]!==r||e[23]!==L||e[24]!==s?(y=L?t.jsx(te,{connectionId:l.id,org:r.slug,activeCollection:S}):t.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:t.jsx(de,{title:c.title,description:c.description,wellKnownMcp:s,imageSrc:c.imageSrc,onConnected:g=>{H(g)}})}),e[19]=S,e[20]=l,e[21]=c,e[22]=r,e[23]=L,e[24]=s,e[25]=y):y=e[25];let P;e[26]!==C||e[27]!==y?(P=t.jsx(N.Suspense,{fallback:C,children:y}),e[26]=C,e[27]=y,e[28]=P):P=e[28];let E;e[29]!==j||e[30]!==P?(E=t.jsx(x.Content,{children:t.jsx(Q,{fallback:j,children:P})}),e[29]=j,e[30]=P,e[31]=E):E=e[31];let v;return e[32]!==E||e[33]!==h?(v=t.jsxs(x,{children:[h,E]}),e[32]=E,e[33]=h,e[34]=v):v=e[34],v}function ue(){const n=_.c(12),{org:e,project:i}=w(),a=V();let o;n[0]!==e.id?(o={connectionId:Y,orgId:e.id},n[0]=e.id,n[1]=o):o=n[1];const c=X(o);let s;n[2]!==c||n[3]!==i?(s=async p=>{const l=i.enabledPlugins??[];if(l.includes(p))return;const u=[...l,p],f=await c.callTool({name:"PROJECT_UPDATE",arguments:{projectId:i.id,enabledPlugins:u}});return f.structuredContent??f},n[2]=c,n[3]=i,n[4]=s):s=n[4];let r;n[5]!==e.id||n[6]!==i||n[7]!==a?(r=()=>{a.invalidateQueries({queryKey:W.project(e.id,i.slug)}),a.invalidateQueries({queryKey:W.projects(e.id)})},n[5]=e.id,n[6]=i,n[7]=a,n[8]=r):r=n[8];let d;return n[9]!==s||n[10]!==r?(d={mutationFn:s,onSuccess:r,onError:pe},n[9]=s,n[10]=r,n[11]=d):d=n[11],ae(d)}function pe(n){A.error("Failed to enable plugin: "+(n instanceof Error?n.message:"Unknown error"))}function fe(n){const e=_.c(12),{pluginId:i,title:a,description:o,icon:c}=n,s=ue();let r;e[0]!==s||e[1]!==i?(r=async()=>{try{await s.mutateAsync(i),A.success("Plugin enabled!")}catch{}},e[0]=s,e[1]=i,e[2]=r):r=e[2];const d=r,m=c??null,p=s.isPending?"Enabling…":"Enable plugin";let l;e[3]!==s.isPending||e[4]!==d||e[5]!==p?(l=t.jsx(I,{onClick:d,disabled:s.isPending,children:p}),e[3]=s.isPending,e[4]=d,e[5]=p,e[6]=l):l=e[6];let u;return e[7]!==o||e[8]!==m||e[9]!==l||e[10]!==a?(u=t.jsx(R,{image:m,title:a,description:o,actions:l}),e[7]=o,e[8]=m,e[9]=l,e[10]=a,e[11]=u):u=e[11],u}const O="workflows";function ct(){const n=_.c(3),{project:e}=w();if(!(e.enabledPlugins??[]).includes(O)){let c;n[0]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx(x.Header,{children:t.jsx(x.Header.Left,{children:t.jsx(F,{children:t.jsx(M,{children:t.jsx(z,{children:t.jsx(T,{children:"Workflows"})})})})})}),n[0]=c):c=n[0];let s;return n[1]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsxs(x,{children:[c,t.jsx(x.Content,{children:t.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:t.jsx(fe,{pluginId:O,title:"Enable Workflows",description:"Automate multi-step processes by enabling the Workflows plugin. Once enabled you can create, run, and monitor workflows.",icon:t.jsx("div",{className:"bg-muted p-4 rounded-full",children:t.jsx(ce,{className:"size-8 text-muted-foreground"})})})})})]}),n[1]=s):s=n[1],s}let o;return n[2]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx(me,{bindingName:"WORKFLOW",collectionName:"workflow",title:"Workflows",emptyState:{title:"Create Workflows",description:"Run durable MCP tool calls in background."},wellKnownMcp:ee()}),n[2]=o):o=n[2],o}export{ct as default};
1
+ import{r as N,u as w,d as q,b as G,j as t,B as I,O as B,c as _,E as Q,_ as J,aD as Z,n as V,K as W,t as A}from"./index-CgikKIzX.js";import{a as Y,u as X,e as ee}from"./constants-CvFlNMMf.js";import{C as te}from"./collection-tab-Bjsr3KyB.js";import{g as ne,h as se}from"./use-connection-0uAZ0JSW.js";import{E as R}from"./collection-search-Dslk4ok0.js";import{P as x}from"./index-CpowEWO4.js";import{B as F,a as M,b as z,c as T}from"./breadcrumb-g5L8PoZQ.js";import{a as ie,b as oe}from"./use-binding-BrV6OHbU.js";import{i as le}from"./Loading01-9Lg_Mx7W.js";import{s as re}from"./RefreshCcw01-CzWuABhj.js";import{u as ae}from"./useMutation-CspL2qBT.js";import{e as ce}from"./Dataflow03-C15CIhqP.js";import"./generate-id-Dyweu44Y.js";import"./collection-table-wrapper-1X3tw2a2.js";import"./dropdown-menu-CgkGkmVE.js";import"./Check-CBQI4sX_.js";import"./ChevronRight-DvHc-b9M.js";import"./ArrowDown-C1XwJGei.js";import"./ArrowUp-D96x2aXm.js";import"./Grid01-DxL3VpUb.js";import"./List-C6WR2hvg.js";import"./tooltip-iSvWdfhX.js";import"./index-Bk2D_7VR.js";import"./table-7t3Ngqct.js";import"./card-Cj-GkUHD.js";import"./integration-icon-B4kJo2_s.js";import"./Container-B6Xs6_xK.js";import"./Copy01-DZUQRIVw.js";import"./DotsVertical-CJ3pBFjL.js";import"./Edit01-Dm0PZjiv.js";import"./Eye-BR_9-9sx.js";import"./Trash01-DTIwE-5T.js";import"./empty-state-K_49Yi3c.js";import"./Inbox01-ImXIGZnT.js";import"./user-BHCtEUxl.js";import"./avatar-D4ALUDCI.js";import"./useQuery-BEiGk_96.js";import"./use-list-state-BywHZDup.js";import"./use-view-mode-C4bMLQky.js";import"./use-mobile-CePuocbs.js";import"./constants-Cc2ACrvf.js";import"./alert-dialog-D90wrdGx.js";import"./Plus-BnMd-Nlg.js";import"./layout-8RHk-XUu.js";import"./SearchMd-Br2lRaPk.js";import"./input-BT1GzEWi.js";import"./localstorage-keys-DSrv9tDi.js";import"./binder-BCMoHYJm.js";const D=({size:n=24,color:e="currentColor",...i})=>N.createElement("svg",{viewBox:"0 0 24 24",width:n,height:n,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i},N.createElement("path",{d:"m9.395 19.371.585 1.315a2.212 2.212 0 0 0 4.044 0l.584-1.315a2.426 2.426 0 0 1 2.47-1.423l1.43.152a2.212 2.212 0 0 0 2.023-3.502l-.847-1.164a2.428 2.428 0 0 1-.46-1.434c0-.513.163-1.014.464-1.429l.847-1.163a2.211 2.211 0 0 0-2.022-3.502l-1.43.152a2.433 2.433 0 0 1-1.47-.312 2.426 2.426 0 0 1-1-1.117l-.589-1.315a2.212 2.212 0 0 0-4.044 0L9.395 4.63c-.207.468-.557.86-1 1.117-.445.256-.96.365-1.47.312l-1.434-.152a2.212 2.212 0 0 0-2.023 3.502l.847 1.163a2.43 2.43 0 0 1 0 2.858l-.847 1.163a2.21 2.21 0 0 0 .786 3.273c.382.195.811.274 1.237.23l1.43-.153a2.434 2.434 0 0 1 2.474 1.43Z"}),N.createElement("path",{d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"}));D.displayName="Settings02";function de({title:n,description:e,wellKnownMcp:i,imageSrc:a,onConnected:o}){const c=ne(),{org:{slug:s}}=w(),{data:r}=q.useSession(),d=G(),[m,p]=N.useState(!1),l=async()=>{if(!(!i||!r?.user?.id)){p(!0);try{const f=await c.create.mutateAsync(i);o?.(f.id),d({to:"/$org/$project/mcps/$connectionId",params:{org:s,project:B,connectionId:f.id}})}finally{p(!1)}}},u=()=>{d({to:"/$org/$project/mcps",params:{org:s,project:B},search:{action:"create"}})};return t.jsx(R,{image:a?t.jsx("img",{src:a,alt:n,width:336,height:320,className:"max-w-full h-auto"}):null,title:n,description:e,actions:t.jsxs(t.Fragment,{children:[t.jsxs(I,{variant:"outline",onClick:l,disabled:m||!i,children:[i?.icon&&t.jsx("img",{src:i.icon,alt:"",className:"size-4"}),m?"Installing...":`Install ${i?.title||"MCP"}`]}),t.jsx(I,{variant:"outline",onClick:u,children:"Custom Connection"})]})})}function me(n){const e=_.c(35),{bindingName:i,collectionName:a,title:o,emptyState:c,wellKnownMcp:s}=n,{org:r}=w(),d=se();let m;e[0]!==d||e[1]!==i?(m={connections:d,binding:i},e[0]=d,e[1]=i,e[2]=m):m=e[2];const l=ie(m)[0],u=oe(l);let f;if(e[3]!==a||e[4]!==u){let g;e[6]!==a?(g=$=>$.name.toLowerCase()===a.toLowerCase(),e[6]=a,e[7]=g):g=e[7],f=u.find(g),e[3]=a,e[4]=u,e[5]=f}else f=e[5];const S=f,[U,H]=N.useState(null),L=l&&S&&(l.id||U);let h;e[8]!==o?(h=t.jsx(x.Header,{children:t.jsx(x.Header.Left,{children:t.jsx(F,{children:t.jsx(M,{children:t.jsx(z,{children:t.jsx(T,{children:o})})})})})}),e[8]=o,e[9]=h):h=e[9];let j;e[10]!==l||e[11]!==r||e[12]!==o?(j=g=>{const{error:$,resetError:K}=g;return t.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[t.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:t.jsx(J,{className:"h-6 w-6 text-destructive"})}),t.jsxs("div",{className:"space-y-2",children:[t.jsxs("h3",{className:"text-lg font-medium",children:["Failed to load ",o.toLowerCase()]}),t.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:$?.message||"Unable to connect to the server. Please check that it is running and accessible."})]}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsxs(I,{variant:"outline",onClick:K,children:[t.jsx(re,{className:"size-4"}),"Try again"]}),l&&t.jsx(I,{variant:"outline",asChild:!0,children:t.jsxs(Z,{to:"/$org/$project/mcps/$connectionId",params:{org:r.slug,project:B,connectionId:l.id},search:{tab:"settings"},children:[t.jsx(D,{className:"size-4"}),"Connection Settings"]})})]})]})},e[10]=l,e[11]=r,e[12]=o,e[13]=j):j=e[13];let k;e[14]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx(le,{size:32,className:"animate-spin text-muted-foreground mb-4"}),e[14]=k):k=e[14];let b;e[15]!==o?(b=o.toLowerCase(),e[15]=o,e[16]=b):b=e[16];let C;e[17]!==b?(C=t.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[k,t.jsxs("p",{className:"text-sm text-muted-foreground",children:["Loading ",b,"..."]})]}),e[17]=b,e[18]=C):C=e[18];let y;e[19]!==S||e[20]!==l||e[21]!==c||e[22]!==r||e[23]!==L||e[24]!==s?(y=L?t.jsx(te,{connectionId:l.id,org:r.slug,activeCollection:S}):t.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:t.jsx(de,{title:c.title,description:c.description,wellKnownMcp:s,imageSrc:c.imageSrc,onConnected:g=>{H(g)}})}),e[19]=S,e[20]=l,e[21]=c,e[22]=r,e[23]=L,e[24]=s,e[25]=y):y=e[25];let P;e[26]!==C||e[27]!==y?(P=t.jsx(N.Suspense,{fallback:C,children:y}),e[26]=C,e[27]=y,e[28]=P):P=e[28];let E;e[29]!==j||e[30]!==P?(E=t.jsx(x.Content,{children:t.jsx(Q,{fallback:j,children:P})}),e[29]=j,e[30]=P,e[31]=E):E=e[31];let v;return e[32]!==E||e[33]!==h?(v=t.jsxs(x,{children:[h,E]}),e[32]=E,e[33]=h,e[34]=v):v=e[34],v}function ue(){const n=_.c(12),{org:e,project:i}=w(),a=V();let o;n[0]!==e.id?(o={connectionId:Y,orgId:e.id},n[0]=e.id,n[1]=o):o=n[1];const c=X(o);let s;n[2]!==c||n[3]!==i?(s=async p=>{const l=i.enabledPlugins??[];if(l.includes(p))return;const u=[...l,p],f=await c.callTool({name:"PROJECT_UPDATE",arguments:{projectId:i.id,enabledPlugins:u}});return f.structuredContent??f},n[2]=c,n[3]=i,n[4]=s):s=n[4];let r;n[5]!==e.id||n[6]!==i||n[7]!==a?(r=()=>{a.invalidateQueries({queryKey:W.project(e.id,i.slug)}),a.invalidateQueries({queryKey:W.projects(e.id)})},n[5]=e.id,n[6]=i,n[7]=a,n[8]=r):r=n[8];let d;return n[9]!==s||n[10]!==r?(d={mutationFn:s,onSuccess:r,onError:pe},n[9]=s,n[10]=r,n[11]=d):d=n[11],ae(d)}function pe(n){A.error("Failed to enable plugin: "+(n instanceof Error?n.message:"Unknown error"))}function fe(n){const e=_.c(12),{pluginId:i,title:a,description:o,icon:c}=n,s=ue();let r;e[0]!==s||e[1]!==i?(r=async()=>{try{await s.mutateAsync(i),A.success("Plugin enabled!")}catch{}},e[0]=s,e[1]=i,e[2]=r):r=e[2];const d=r,m=c??null,p=s.isPending?"Enabling…":"Enable plugin";let l;e[3]!==s.isPending||e[4]!==d||e[5]!==p?(l=t.jsx(I,{onClick:d,disabled:s.isPending,children:p}),e[3]=s.isPending,e[4]=d,e[5]=p,e[6]=l):l=e[6];let u;return e[7]!==o||e[8]!==m||e[9]!==l||e[10]!==a?(u=t.jsx(R,{image:m,title:a,description:o,actions:l}),e[7]=o,e[8]=m,e[9]=l,e[10]=a,e[11]=u):u=e[11],u}const O="workflows";function ct(){const n=_.c(3),{project:e}=w();if(!(e.enabledPlugins??[]).includes(O)){let c;n[0]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx(x.Header,{children:t.jsx(x.Header.Left,{children:t.jsx(F,{children:t.jsx(M,{children:t.jsx(z,{children:t.jsx(T,{children:"Workflows"})})})})})}),n[0]=c):c=n[0];let s;return n[1]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsxs(x,{children:[c,t.jsx(x.Content,{children:t.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:t.jsx(fe,{pluginId:O,title:"Enable Workflows",description:"Automate multi-step processes by enabling the Workflows plugin. Once enabled you can create, run, and monitor workflows.",icon:t.jsx("div",{className:"bg-muted p-4 rounded-full",children:t.jsx(ce,{className:"size-8 text-muted-foreground"})})})})})]}),n[1]=s):s=n[1],s}let o;return n[2]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx(me,{bindingName:"WORKFLOW",collectionName:"workflow",title:"Workflows",emptyState:{title:"Create Workflows",description:"Run durable MCP tool calls in background."},wellKnownMcp:ee()}),n[2]=o):o=n[2],o}export{ct as default};