@decocms/mesh 2.4.3 → 2.5.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 (109) hide show
  1. package/dist/client/assets/{AlertCircle-DS3woffv.js → AlertCircle-DAyHhLS6.js} +1 -1
  2. package/dist/client/assets/{ArrowLeft-D2fGgQyc.js → ArrowLeft-Bpp_SsGd.js} +1 -1
  3. package/dist/client/assets/{ChevronDown-D3DcMPHu.js → ChevronDown-CsOv8W2I.js} +1 -1
  4. package/dist/client/assets/{ChevronRight-BODSq5G5.js → ChevronRight-Boh94iyZ.js} +1 -1
  5. package/dist/client/assets/{Copy01-B96wF_qg.js → Copy01-BrkhNqAw.js} +1 -1
  6. package/dist/client/assets/{DotsHorizontal-M253MPy-.js → DotsHorizontal-Bv4IcguS.js} +1 -1
  7. package/dist/client/assets/{DotsVertical-CBAKO30_.js → DotsVertical-cXTBD68H.js} +1 -1
  8. package/dist/client/assets/{File06-l3h9AVPx.js → File06-l4-3IHqa.js} +1 -1
  9. package/dist/client/assets/{FilterLines-8SByZGzN.js → FilterLines-D2prJuZ_.js} +1 -1
  10. package/dist/client/assets/{FlipBackward-BT85q6tr.js → FlipBackward-Cuwh5H4e.js} +1 -1
  11. package/dist/client/assets/{GitBranch01-C4NzhJdd.js → GitBranch01-DDKUuZMu.js} +1 -1
  12. package/dist/client/assets/{Grid01-BFWxtLBX.js → Grid01-COCXYn3t.js} +1 -1
  13. package/dist/client/assets/{Inbox01-Ci4ucd41.js → Inbox01-CEyXxA8m.js} +1 -1
  14. package/dist/client/assets/{InfoCircle-C37WJXSN.js → InfoCircle-C2iaXmlJ.js} +1 -1
  15. package/dist/client/assets/{Key01-CL3PceML.js → Key01-CcMWzP51.js} +1 -1
  16. package/dist/client/assets/{LinkExternal01-DaWdwcWA.js → LinkExternal01-31BeOzKc.js} +1 -1
  17. package/dist/client/assets/{Loading01-_oFW2JNJ.js → Loading01-BqUL1Os2.js} +1 -1
  18. package/dist/client/assets/{Lock01-B3oAmGqm.js → Lock01-BfDepLwB.js} +1 -1
  19. package/dist/client/assets/{Play-DJOCAMI5.js → Play-DqaoplmY.js} +1 -1
  20. package/dist/client/assets/{Plus-FlxbOuMX.js → Plus-CJASgavw.js} +1 -1
  21. package/dist/client/assets/Stop-CRrts02X.js +1 -0
  22. package/dist/client/assets/{Terminal-CLum5--_.js → Terminal-e-eRty6Q.js} +1 -1
  23. package/dist/client/assets/{Trash01-WW5sibLz.js → Trash01-C3O36hTP.js} +1 -1
  24. package/dist/client/assets/{X-BZJtnnGU.js → X-D4fwyn55.js} +1 -1
  25. package/dist/client/assets/{XClose-C9M6lt1R.js → XClose-Bfbqr-bg.js} +1 -1
  26. package/dist/client/assets/{alert-dialog-BcpPYYpI.js → alert-dialog-F5nkQKBj.js} +1 -1
  27. package/dist/client/assets/{auth-catchall-Yc-olrlU.js → auth-catchall-BAZuaH8l.js} +1 -1
  28. package/dist/client/assets/{auth-B5ky5TwC.js → auth-m66JRmI1.js} +1 -1
  29. package/dist/client/assets/{avatar-mUjH8S2o.js → avatar-MdaY7dDq.js} +1 -1
  30. package/dist/client/assets/{badge-Cd9ypVQ7.js → badge-BRpJ4D36.js} +1 -1
  31. package/dist/client/assets/{card-DoMPrO_z.js → card-DPsjHi5_.js} +1 -1
  32. package/dist/client/assets/{checkbox-Ce2c6Q0F.js → checkbox-dB50xYpN.js} +1 -1
  33. package/dist/client/assets/{collection-detail-BCCi1HOu.js → collection-detail-glRN62L4.js} +3 -3
  34. package/dist/client/assets/{collection-display-button-DPE08pwq.js → collection-display-button-BEkWecO6.js} +1 -1
  35. package/dist/client/assets/{collection-header-ClZ3_QoL.js → collection-header-DS84Dz-Z.js} +1 -1
  36. package/dist/client/assets/{collection-page-CNDl2O18.js → collection-page-Dw7iXEq1.js} +1 -1
  37. package/dist/client/assets/{collection-search-C3TCN4Mb.js → collection-search-Dwhflp6J.js} +1 -1
  38. package/dist/client/assets/{collection-tab-DjZWXwnt.js → collection-tab-CQ_V1h26.js} +1 -1
  39. package/dist/client/assets/{collection-table-wrapper-W9a8ZvDr.js → collection-table-wrapper-Tc6aoQU4.js} +1 -1
  40. package/dist/client/assets/{connection-card-WM_Vw-m7.js → connection-card-BOHNc6OM.js} +1 -1
  41. package/dist/client/assets/connection-detail-yed7lEwn.js +1 -0
  42. package/dist/client/assets/{connections-CKJZNUiK.js → connections-Cyw4vKCR.js} +1 -1
  43. package/dist/client/assets/constants-DgMd8oVj.js +1 -0
  44. package/dist/client/assets/{create-organization-dialog-BfxOKUe8.js → create-organization-dialog-BW64m1n3.js} +1 -1
  45. package/dist/client/assets/{dialog-DrPTLHGi.js → dialog-dVO4tnyX.js} +1 -1
  46. package/dist/client/assets/{dropdown-menu-BVwO0hZx.js → dropdown-menu-Dl6PURsy.js} +1 -1
  47. package/dist/client/assets/{empty-state-CiWt0JeA.js → empty-state-Ctkb5o27.js} +1 -1
  48. package/dist/client/assets/{env-vars-editor-Czs7y3Aa.js → env-vars-editor-BH1jNoL-.js} +1 -1
  49. package/dist/client/assets/{error-boundary-DPQKA3ls.js → error-boundary-NRHN5Y9-.js} +1 -1
  50. package/dist/client/assets/{extract-connection-data-BI7D_yAD.js → extract-connection-data-BaLXzQ_k.js} +1 -1
  51. package/dist/client/assets/{form-DYBkwks3.js → form-BYRg0fLZ.js} +1 -1
  52. package/dist/client/assets/{gateway-detail-vGOSate4.js → gateway-detail-BfXnCLYA.js} +1 -1
  53. package/dist/client/assets/gateway-selector-DAEirbF5.js +1 -0
  54. package/dist/client/assets/{gateways-DDhGrUfh.js → gateways-BJBU4jqZ.js} +1 -1
  55. package/dist/client/assets/{home-Cywix_jq.js → home-4Azy8yCf.js} +1 -1
  56. package/dist/client/assets/{index-DPFV2snR.js → index-CiFNe-N2.js} +1 -1
  57. package/dist/client/assets/index-DJlsJ8uo.js +25 -0
  58. package/dist/client/assets/{index-C42QK8hz.js → index-DsWTyaMI.js} +2 -2
  59. package/dist/client/assets/{input-DxnDBmuJ.js → input-Bjw47IqN.js} +1 -1
  60. package/dist/client/assets/{layout-DXdXITg6.js → layout-CSrwjVH6.js} +1 -1
  61. package/dist/client/assets/{lazy-highlighter-Da5CMBG0.js → lazy-highlighter-3jMk7DX6.js} +1 -1
  62. package/dist/client/assets/{localstorage-keys-Ddx17ibV.js → localstorage-keys-mgwVhAgB.js} +1 -1
  63. package/dist/client/assets/{login-o1Tj7sX_.js → login-B4k1yizo.js} +1 -1
  64. package/dist/client/assets/{mcp-oauth-B9Ov-xsR.js → mcp-oauth-CYe4lbkF.js} +1 -1
  65. package/dist/client/assets/{mcp-server-detail-BoRotZPL.js → mcp-server-detail-BncapnIe.js} +1 -1
  66. package/dist/client/assets/{members-DVjTxGu7.js → members-CvcRBE7N.js} +1 -1
  67. package/dist/client/assets/{monaco-editor-Bm6Oe5sG.js → monaco-editor-CiWfYNhn.js} +1 -1
  68. package/dist/client/assets/{monitoring-C2RnSJ3o.js → monitoring-C2NQS-B1.js} +1 -1
  69. package/dist/client/assets/{oauth-callback-DMHRNVai.js → oauth-callback-CVfImHX4.js} +1 -1
  70. package/dist/client/assets/{page-DDFD8VO6.js → page-4Om70maF.js} +1 -1
  71. package/dist/client/assets/{page-CFlN9WXe.js → page-DWpNpeBI.js} +2 -2
  72. package/dist/client/assets/{pin-to-sidebar-button-CLveGjFp.js → pin-to-sidebar-button-B_8L8Vb0.js} +1 -1
  73. package/dist/client/assets/{popover-DxCOgWPI.js → popover-BAqz8iCu.js} +1 -1
  74. package/dist/client/assets/project-context-provider-4_jnbmhf.js +1 -0
  75. package/dist/client/assets/{resizable-57JmaYTe.js → resizable-BQxIvKty.js} +1 -1
  76. package/dist/client/assets/{resource-tabs-BEIxRUtB.js → resource-tabs-N7R8QmbK.js} +1 -1
  77. package/dist/client/assets/{select-Cz5FKfAF.js → select-D0sx2072.js} +1 -1
  78. package/dist/client/assets/{settings-B4usvQoK.js → settings-DBVtWxtX.js} +1 -1
  79. package/dist/client/assets/shell-layout-yGeudWHM.js +1 -0
  80. package/dist/client/assets/{spinner-Dh2iZtLK.js → spinner-DZG16LrV.js} +1 -1
  81. package/dist/client/assets/{switch-DImiMRQV.js → switch-BRK3ymGn.js} +1 -1
  82. package/dist/client/assets/{textarea-Coh9WaVd.js → textarea-Ct5hMebK.js} +1 -1
  83. package/dist/client/assets/{thread-history-popover-BdhASe2w.js → thread-history-popover-CUQ7xqpL.js} +65 -65
  84. package/dist/client/assets/{tools-list-Bgq8z3Q2.js → tools-list-B6Grd2aY.js} +1 -1
  85. package/dist/client/assets/{use-binding-CpFrN3sc.js → use-binding-CocjKJdo.js} +1 -1
  86. package/dist/client/assets/{use-connection-CD7OAk7L.js → use-connection-BRzCmTOd.js} +1 -1
  87. package/dist/client/assets/{use-connection-resources-4i_WQ9lu.js → use-connection-resources-AWPWi-RH.js} +1 -1
  88. package/dist/client/assets/{use-gateway-BoEwJYby.js → use-gateway-LBTVY8TW.js} +1 -1
  89. package/dist/client/assets/{use-gateway-system-prompt-BzqlsYn1.js → use-gateway-system-prompt-DscZjM_A.js} +1 -1
  90. package/dist/client/assets/{use-list-state-BFO-aJCX.js → use-list-state-C9bMHTQK.js} +1 -1
  91. package/dist/client/assets/{use-mcp-B4Ldjn0r.js → use-mcp-Xq1C6Xb8.js} +1 -1
  92. package/dist/client/assets/{use-members-FRhqDkLq.js → use-members-DwaDlN2k.js} +1 -1
  93. package/dist/client/assets/{use-mobile-DiJcsLPG.js → use-mobile-b2I183jd.js} +1 -1
  94. package/dist/client/assets/{use-organization-settings-CcG3A1Ve.js → use-organization-settings-D21MRe-D.js} +1 -1
  95. package/dist/client/assets/{use-tool-call-3UqP0ScZ.js → use-tool-call-DWmlWS7M.js} +1 -1
  96. package/dist/client/assets/{useQueries-D8IoiJsJ.js → useQueries-BLLM0cVq.js} +1 -1
  97. package/dist/client/assets/useQuery-BXYZ1U8o.js +1 -0
  98. package/dist/client/assets/{value-CFA-sNzA.js → value-D6kCdY90.js} +1 -1
  99. package/dist/client/assets/{view-mode-toggle-B13uQDqD.js → view-mode-toggle-DlhHZSZ6.js} +1 -1
  100. package/dist/client/assets/{workflow-CBTdFU5D.js → workflow-DufdLkFQ.js} +1 -1
  101. package/dist/client/index.html +1 -1
  102. package/package.json +1 -1
  103. package/dist/client/assets/connection-detail-RVIT3UFi.js +0 -1
  104. package/dist/client/assets/constants-B1MsiORH.js +0 -1
  105. package/dist/client/assets/gateway-selector-CpwrRP5L.js +0 -1
  106. package/dist/client/assets/index-BIxXvhQZ.js +0 -25
  107. package/dist/client/assets/project-context-provider-D9nZUGnc.js +0 -1
  108. package/dist/client/assets/shell-layout-BHXYIaoX.js +0 -1
  109. package/dist/client/assets/useQuery-CaL9aChr.js +0 -1
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/login-o1Tj7sX_.js","assets/input-DxnDBmuJ.js","assets/shell-layout-BHXYIaoX.js","assets/error-boundary-DPQKA3ls.js","assets/File06-l3h9AVPx.js","assets/X-BZJtnnGU.js","assets/use-mobile-DiJcsLPG.js","assets/project-context-provider-D9nZUGnc.js","assets/use-organization-settings-CcG3A1Ve.js","assets/use-connection-CD7OAk7L.js","assets/use-gateway-BoEwJYby.js","assets/create-organization-dialog-BfxOKUe8.js","assets/alert-dialog-BcpPYYpI.js","assets/form-DYBkwks3.js","assets/spinner-Dh2iZtLK.js","assets/popover-DxCOgWPI.js","assets/avatar-mUjH8S2o.js","assets/Grid01-BFWxtLBX.js","assets/gateway-selector-CpwrRP5L.js","assets/select-Cz5FKfAF.js","assets/ChevronDown-D3DcMPHu.js","assets/dropdown-menu-BVwO0hZx.js","assets/ChevronRight-BODSq5G5.js","assets/Copy01-B96wF_qg.js","assets/LinkExternal01-DaWdwcWA.js","assets/dialog-DrPTLHGi.js","assets/localstorage-keys-Ddx17ibV.js","assets/useQuery-CaL9aChr.js","assets/thread-history-popover-BdhASe2w.js","assets/use-binding-CpFrN3sc.js","assets/auth-B5ky5TwC.js","assets/use-gateway-system-prompt-BzqlsYn1.js","assets/AlertCircle-DS3woffv.js","assets/textarea-Coh9WaVd.js","assets/Terminal-CLum5--_.js","assets/monaco-editor-Bm6Oe5sG.js","assets/InfoCircle-C37WJXSN.js","assets/well-known-mcp-D13f-8h2.js","assets/generate-id-Dyweu44Y.js","assets/Trash01-WW5sibLz.js","assets/resizable-57JmaYTe.js","assets/Loading01-_oFW2JNJ.js","assets/Plus-FlxbOuMX.js","assets/home-Cywix_jq.js","assets/card-DoMPrO_z.js","assets/page-CFlN9WXe.js","assets/view-mode-toggle-B13uQDqD.js","assets/GitBranch01-C4NzhJdd.js","assets/use-tool-call-3UqP0ScZ.js","assets/value-CFA-sNzA.js","assets/page-BZV40eAE.css","assets/members-DVjTxGu7.js","assets/collection-header-ClZ3_QoL.js","assets/collection-display-button-DPE08pwq.js","assets/collection-page-CNDl2O18.js","assets/collection-search-C3TCN4Mb.js","assets/collection-table-wrapper-W9a8ZvDr.js","assets/switch-DImiMRQV.js","assets/checkbox-Ce2c6Q0F.js","assets/ArrowLeft-D2fGgQyc.js","assets/use-members-FRhqDkLq.js","assets/badge-Cd9ypVQ7.js","assets/DotsHorizontal-M253MPy-.js","assets/Lock01-B3oAmGqm.js","assets/DotsVertical-CBAKO30_.js","assets/Key01-CL3PceML.js","assets/XClose-C9M6lt1R.js","assets/connections-CKJZNUiK.js","assets/connection-card-WM_Vw-m7.js","assets/use-list-state-BFO-aJCX.js","assets/env-vars-editor-Czs7y3Aa.js","assets/registry-utils-B7t_ZBUi.js","assets/settings-B4usvQoK.js","assets/monitoring-C2RnSJ3o.js","assets/FilterLines-8SByZGzN.js","assets/Play-DJOCAMI5.js","assets/index-DPFV2snR.js","assets/resource-tabs-BEIxRUtB.js","assets/page-DDFD8VO6.js","assets/Inbox01-Ci4ucd41.js","assets/slugify-CEUa2lfQ.js","assets/github-icon-Dp3wHhYE.js","assets/server-name-C3ttWdyD.js","assets/mcp-server-detail-BoRotZPL.js","assets/tools-list-Bgq8z3Q2.js","assets/layout-DXdXITg6.js","assets/tools-list-CSRUKxnt.css","assets/use-mcp-B4Ldjn0r.js","assets/extract-connection-data-BI7D_yAD.js","assets/constants-B1MsiORH.js","assets/connection-detail-RVIT3UFi.js","assets/index-BIxXvhQZ.js","assets/mcp-oauth-B9Ov-xsR.js","assets/pin-to-sidebar-button-CLveGjFp.js","assets/useQueries-D8IoiJsJ.js","assets/use-connection-resources-4i_WQ9lu.js","assets/collection-tab-DjZWXwnt.js","assets/empty-state-CiWt0JeA.js","assets/collection-detail-BCCi1HOu.js","assets/FlipBackward-BT85q6tr.js","assets/gateways-DDhGrUfh.js","assets/gateway-detail-vGOSate4.js","assets/workflow-CBTdFU5D.js","assets/oauth-callback-DMHRNVai.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/login-B4k1yizo.js","assets/input-Bjw47IqN.js","assets/shell-layout-yGeudWHM.js","assets/error-boundary-NRHN5Y9-.js","assets/File06-l4-3IHqa.js","assets/X-D4fwyn55.js","assets/use-mobile-b2I183jd.js","assets/project-context-provider-4_jnbmhf.js","assets/use-organization-settings-D21MRe-D.js","assets/use-connection-BRzCmTOd.js","assets/use-gateway-LBTVY8TW.js","assets/create-organization-dialog-BW64m1n3.js","assets/alert-dialog-F5nkQKBj.js","assets/form-BYRg0fLZ.js","assets/spinner-DZG16LrV.js","assets/popover-BAqz8iCu.js","assets/avatar-MdaY7dDq.js","assets/Grid01-COCXYn3t.js","assets/gateway-selector-DAEirbF5.js","assets/select-D0sx2072.js","assets/ChevronDown-CsOv8W2I.js","assets/dropdown-menu-Dl6PURsy.js","assets/ChevronRight-Boh94iyZ.js","assets/Copy01-BrkhNqAw.js","assets/LinkExternal01-31BeOzKc.js","assets/dialog-dVO4tnyX.js","assets/localstorage-keys-mgwVhAgB.js","assets/useQuery-BXYZ1U8o.js","assets/thread-history-popover-CUQ7xqpL.js","assets/use-binding-CocjKJdo.js","assets/auth-m66JRmI1.js","assets/use-gateway-system-prompt-DscZjM_A.js","assets/AlertCircle-DAyHhLS6.js","assets/Stop-CRrts02X.js","assets/textarea-Ct5hMebK.js","assets/Terminal-e-eRty6Q.js","assets/monaco-editor-CiWfYNhn.js","assets/InfoCircle-C2iaXmlJ.js","assets/well-known-mcp-D13f-8h2.js","assets/generate-id-Dyweu44Y.js","assets/Trash01-C3O36hTP.js","assets/resizable-BQxIvKty.js","assets/Loading01-BqUL1Os2.js","assets/Plus-CJASgavw.js","assets/home-4Azy8yCf.js","assets/card-DPsjHi5_.js","assets/page-DWpNpeBI.js","assets/view-mode-toggle-DlhHZSZ6.js","assets/GitBranch01-DDKUuZMu.js","assets/use-tool-call-DWmlWS7M.js","assets/value-D6kCdY90.js","assets/page-BZV40eAE.css","assets/members-CvcRBE7N.js","assets/collection-header-DS84Dz-Z.js","assets/collection-display-button-BEkWecO6.js","assets/collection-page-Dw7iXEq1.js","assets/collection-search-Dwhflp6J.js","assets/collection-table-wrapper-Tc6aoQU4.js","assets/switch-BRK3ymGn.js","assets/checkbox-dB50xYpN.js","assets/ArrowLeft-Bpp_SsGd.js","assets/use-members-DwaDlN2k.js","assets/badge-BRpJ4D36.js","assets/DotsHorizontal-Bv4IcguS.js","assets/Lock01-BfDepLwB.js","assets/DotsVertical-cXTBD68H.js","assets/Key01-CcMWzP51.js","assets/XClose-Bfbqr-bg.js","assets/connections-Cyw4vKCR.js","assets/connection-card-BOHNc6OM.js","assets/use-list-state-C9bMHTQK.js","assets/env-vars-editor-BH1jNoL-.js","assets/registry-utils-B7t_ZBUi.js","assets/settings-DBVtWxtX.js","assets/monitoring-C2NQS-B1.js","assets/FilterLines-D2prJuZ_.js","assets/Play-DqaoplmY.js","assets/index-CiFNe-N2.js","assets/resource-tabs-N7R8QmbK.js","assets/page-4Om70maF.js","assets/Inbox01-CEyXxA8m.js","assets/slugify-CEUa2lfQ.js","assets/github-icon-Dp3wHhYE.js","assets/server-name-C3ttWdyD.js","assets/mcp-server-detail-BncapnIe.js","assets/tools-list-B6Grd2aY.js","assets/layout-CSrwjVH6.js","assets/tools-list-CSRUKxnt.css","assets/use-mcp-Xq1C6Xb8.js","assets/extract-connection-data-BaLXzQ_k.js","assets/constants-DgMd8oVj.js","assets/connection-detail-yed7lEwn.js","assets/index-DJlsJ8uo.js","assets/mcp-oauth-CYe4lbkF.js","assets/pin-to-sidebar-button-B_8L8Vb0.js","assets/useQueries-BLLM0cVq.js","assets/use-connection-resources-AWPWi-RH.js","assets/collection-tab-CQ_V1h26.js","assets/empty-state-Ctkb5o27.js","assets/collection-detail-glRN62L4.js","assets/FlipBackward-Cuwh5H4e.js","assets/gateways-BJBU4jqZ.js","assets/gateway-detail-BfXnCLYA.js","assets/workflow-DufdLkFQ.js","assets/oauth-callback-CVfImHX4.js"])))=>i.map(i=>d[i]);
2
2
  function f4(e,t){for(var n=0;n<t.length;n++){const o=t[n];if(typeof o!="string"&&!Array.isArray(o)){for(const i in o)if(i!=="default"&&!(i in e)){const l=Object.getOwnPropertyDescriptor(o,i);l&&Object.defineProperty(e,i,l.get?l:{enumerable:!0,get:()=>o[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))o(i);new MutationObserver(i=>{for(const l of i)if(l.type==="childList")for(const c of l.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&o(c)}).observe(document,{childList:!0,subtree:!0});function n(i){const l={};return i.integrity&&(l.integrity=i.integrity),i.referrerPolicy&&(l.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?l.credentials="include":i.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function o(i){if(i.ep)return;i.ep=!0;const l=n(i);fetch(i.href,l)}})();const h4="modulepreload",p4=function(e){return"/"+e},p_={},Tn=function(t,n,o){let i=Promise.resolve();if(n&&n.length>0){let c=function(h){return Promise.all(h.map(v=>Promise.resolve(v).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),f=d?.nonce||d?.getAttribute("nonce");i=c(n.map(h=>{if(h=p4(h),h in p_)return;p_[h]=!0;const v=h.endsWith(".css"),p=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${p}`))return;const g=document.createElement("link");if(g.rel=v?"stylesheet":h4,v||(g.as="script"),g.crossOrigin="",g.href=h,f&&g.setAttribute("nonce",f),document.head.appendChild(g),v)return new Promise((_,S)=>{g.addEventListener("load",_),g.addEventListener("error",()=>S(Error(`Unable to preload CSS for ${h}`)))})}))}function l(c){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=c,window.dispatchEvent(d),!d.defaultPrevented)throw c}return i.then(c=>{for(const d of c||[])d.status==="rejected"&&l(d.reason);return t().catch(l)})};var hH=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Yp={exports:{}},Cl={};var m_;function m4(){if(m_)return Cl;m_=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(o,i,l){var c=null;if(l!==void 0&&(c=""+l),i.key!==void 0&&(c=""+i.key),"key"in i){l={};for(var d in i)d!=="key"&&(l[d]=i[d])}else l=i;return i=l.ref,{$$typeof:e,type:o,key:c,ref:i!==void 0?i:null,props:l}}return Cl.Fragment=t,Cl.jsx=n,Cl.jsxs=n,Cl}var v_;function v4(){return v_||(v_=1,Yp.exports=m4()),Yp.exports}var b=v4(),Kp={exports:{}},Il={},Wp={exports:{}},Qp={};var g_;function g4(){return g_||(g_=1,(function(e){function t(L,F){var G=L.length;L.push(F);e:for(;0<G;){var re=G-1>>>1,be=L[re];if(0<i(be,F))L[re]=F,L[G]=be,G=re;else break e}}function n(L){return L.length===0?null:L[0]}function o(L){if(L.length===0)return null;var F=L[0],G=L.pop();if(G!==F){L[0]=G;e:for(var re=0,be=L.length,P=be>>>1;re<P;){var Q=2*(re+1)-1,te=L[Q],se=Q+1,me=L[se];if(0>i(te,G))se<be&&0>i(me,te)?(L[re]=me,L[se]=G,re=se):(L[re]=te,L[Q]=G,re=Q);else if(se<be&&0>i(me,G))L[re]=me,L[se]=G,re=se;else break e}}return F}function i(L,F){var G=L.sortIndex-F.sortIndex;return G!==0?G:L.id-F.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var c=Date,d=c.now();e.unstable_now=function(){return c.now()-d}}var f=[],h=[],v=1,p=null,g=3,_=!1,S=!1,w=!1,T=!1,R=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,C=typeof setImmediate<"u"?setImmediate:null;function O(L){for(var F=n(h);F!==null;){if(F.callback===null)o(h);else if(F.startTime<=L)o(h),F.sortIndex=F.expirationTime,t(f,F);else break;F=n(h)}}function I(L){if(w=!1,O(L),!S)if(n(f)!==null)S=!0,k||(k=!0,q());else{var F=n(h);F!==null&&oe(I,F.startTime-L)}}var k=!1,D=-1,N=5,z=-1;function W(){return T?!0:!(e.unstable_now()-z<N)}function V(){if(T=!1,k){var L=e.unstable_now();z=L;var F=!0;try{e:{S=!1,w&&(w=!1,A(D),D=-1),_=!0;var G=g;try{t:{for(O(L),p=n(f);p!==null&&!(p.expirationTime>L&&W());){var re=p.callback;if(typeof re=="function"){p.callback=null,g=p.priorityLevel;var be=re(p.expirationTime<=L);if(L=e.unstable_now(),typeof be=="function"){p.callback=be,O(L),F=!0;break t}p===n(f)&&o(f),O(L)}else o(f);p=n(f)}if(p!==null)F=!0;else{var P=n(h);P!==null&&oe(I,P.startTime-L),F=!1}}break e}finally{p=null,g=G,_=!1}F=void 0}}finally{F?q():k=!1}}}var q;if(typeof C=="function")q=function(){C(V)};else if(typeof MessageChannel<"u"){var j=new MessageChannel,X=j.port2;j.port1.onmessage=V,q=function(){X.postMessage(null)}}else q=function(){R(V,0)};function oe(L,F){D=R(function(){L(e.unstable_now())},F)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(L){L.callback=null},e.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):N=0<L?Math.floor(1e3/L):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_next=function(L){switch(g){case 1:case 2:case 3:var F=3;break;default:F=g}var G=g;g=F;try{return L()}finally{g=G}},e.unstable_requestPaint=function(){T=!0},e.unstable_runWithPriority=function(L,F){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var G=g;g=L;try{return F()}finally{g=G}},e.unstable_scheduleCallback=function(L,F,G){var re=e.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?re+G:re):G=re,L){case 1:var be=-1;break;case 2:be=250;break;case 5:be=1073741823;break;case 4:be=1e4;break;default:be=5e3}return be=G+be,L={id:v++,callback:F,priorityLevel:L,startTime:G,expirationTime:be,sortIndex:-1},G>re?(L.sortIndex=G,t(h,L),n(f)===null&&L===n(h)&&(w?(A(D),D=-1):w=!0,oe(I,G-re))):(L.sortIndex=be,t(f,L),S||_||(S=!0,k||(k=!0,q()))),L},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(L){var F=g;return function(){var G=g;g=F;try{return L.apply(this,arguments)}finally{g=G}}}})(Qp)),Qp}var y_;function y4(){return y_||(y_=1,Wp.exports=g4()),Wp.exports}var Xp={exports:{}},Fe={};var b_;function b4(){if(b_)return Fe;b_=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),g=Symbol.iterator;function _(P){return P===null||typeof P!="object"?null:(P=g&&P[g]||P["@@iterator"],typeof P=="function"?P:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,T={};function R(P,Q,te){this.props=P,this.context=Q,this.refs=T,this.updater=te||S}R.prototype.isReactComponent={},R.prototype.setState=function(P,Q){if(typeof P!="object"&&typeof P!="function"&&P!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,P,Q,"setState")},R.prototype.forceUpdate=function(P){this.updater.enqueueForceUpdate(this,P,"forceUpdate")};function A(){}A.prototype=R.prototype;function C(P,Q,te){this.props=P,this.context=Q,this.refs=T,this.updater=te||S}var O=C.prototype=new A;O.constructor=C,w(O,R.prototype),O.isPureReactComponent=!0;var I=Array.isArray;function k(){}var D={H:null,A:null,T:null,S:null},N=Object.prototype.hasOwnProperty;function z(P,Q,te){var se=te.ref;return{$$typeof:e,type:P,key:Q,ref:se!==void 0?se:null,props:te}}function W(P,Q){return z(P.type,Q,P.props)}function V(P){return typeof P=="object"&&P!==null&&P.$$typeof===e}function q(P){var Q={"=":"=0",":":"=2"};return"$"+P.replace(/[=:]/g,function(te){return Q[te]})}var j=/\/+/g;function X(P,Q){return typeof P=="object"&&P!==null&&P.key!=null?q(""+P.key):Q.toString(36)}function oe(P){switch(P.status){case"fulfilled":return P.value;case"rejected":throw P.reason;default:switch(typeof P.status=="string"?P.then(k,k):(P.status="pending",P.then(function(Q){P.status==="pending"&&(P.status="fulfilled",P.value=Q)},function(Q){P.status==="pending"&&(P.status="rejected",P.reason=Q)})),P.status){case"fulfilled":return P.value;case"rejected":throw P.reason}}throw P}function L(P,Q,te,se,me){var _e=typeof P;(_e==="undefined"||_e==="boolean")&&(P=null);var ye=!1;if(P===null)ye=!0;else switch(_e){case"bigint":case"string":case"number":ye=!0;break;case"object":switch(P.$$typeof){case e:case t:ye=!0;break;case v:return ye=P._init,L(ye(P._payload),Q,te,se,me)}}if(ye)return me=me(P),ye=se===""?"."+X(P,0):se,I(me)?(te="",ye!=null&&(te=ye.replace(j,"$&/")+"/"),L(me,Q,te,"",function(Le){return Le})):me!=null&&(V(me)&&(me=W(me,te+(me.key==null||P&&P.key===me.key?"":(""+me.key).replace(j,"$&/")+"/")+ye)),Q.push(me)),1;ye=0;var Se=se===""?".":se+":";if(I(P))for(var De=0;De<P.length;De++)se=P[De],_e=Se+X(se,De),ye+=L(se,Q,te,_e,me);else if(De=_(P),typeof De=="function")for(P=De.call(P),De=0;!(se=P.next()).done;)se=se.value,_e=Se+X(se,De++),ye+=L(se,Q,te,_e,me);else if(_e==="object"){if(typeof P.then=="function")return L(oe(P),Q,te,se,me);throw Q=String(P),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(P).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.")}return ye}function F(P,Q,te){if(P==null)return P;var se=[],me=0;return L(P,se,"","",function(_e){return Q.call(te,_e,me++)}),se}function G(P){if(P._status===-1){var Q=P._result;Q=Q(),Q.then(function(te){(P._status===0||P._status===-1)&&(P._status=1,P._result=te)},function(te){(P._status===0||P._status===-1)&&(P._status=2,P._result=te)}),P._status===-1&&(P._status=0,P._result=Q)}if(P._status===1)return P._result.default;throw P._result}var re=typeof reportError=="function"?reportError:function(P){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof P=="object"&&P!==null&&typeof P.message=="string"?String(P.message):String(P),error:P});if(!window.dispatchEvent(Q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",P);return}console.error(P)},be={map:F,forEach:function(P,Q,te){F(P,function(){Q.apply(this,arguments)},te)},count:function(P){var Q=0;return F(P,function(){Q++}),Q},toArray:function(P){return F(P,function(Q){return Q})||[]},only:function(P){if(!V(P))throw Error("React.Children.only expected to receive a single React element child.");return P}};return Fe.Activity=p,Fe.Children=be,Fe.Component=R,Fe.Fragment=n,Fe.Profiler=i,Fe.PureComponent=C,Fe.StrictMode=o,Fe.Suspense=f,Fe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=D,Fe.__COMPILER_RUNTIME={__proto__:null,c:function(P){return D.H.useMemoCache(P)}},Fe.cache=function(P){return function(){return P.apply(null,arguments)}},Fe.cacheSignal=function(){return null},Fe.cloneElement=function(P,Q,te){if(P==null)throw Error("The argument must be a React element, but you passed "+P+".");var se=w({},P.props),me=P.key;if(Q!=null)for(_e in Q.key!==void 0&&(me=""+Q.key),Q)!N.call(Q,_e)||_e==="key"||_e==="__self"||_e==="__source"||_e==="ref"&&Q.ref===void 0||(se[_e]=Q[_e]);var _e=arguments.length-2;if(_e===1)se.children=te;else if(1<_e){for(var ye=Array(_e),Se=0;Se<_e;Se++)ye[Se]=arguments[Se+2];se.children=ye}return z(P.type,me,se)},Fe.createContext=function(P){return P={$$typeof:c,_currentValue:P,_currentValue2:P,_threadCount:0,Provider:null,Consumer:null},P.Provider=P,P.Consumer={$$typeof:l,_context:P},P},Fe.createElement=function(P,Q,te){var se,me={},_e=null;if(Q!=null)for(se in Q.key!==void 0&&(_e=""+Q.key),Q)N.call(Q,se)&&se!=="key"&&se!=="__self"&&se!=="__source"&&(me[se]=Q[se]);var ye=arguments.length-2;if(ye===1)me.children=te;else if(1<ye){for(var Se=Array(ye),De=0;De<ye;De++)Se[De]=arguments[De+2];me.children=Se}if(P&&P.defaultProps)for(se in ye=P.defaultProps,ye)me[se]===void 0&&(me[se]=ye[se]);return z(P,_e,me)},Fe.createRef=function(){return{current:null}},Fe.forwardRef=function(P){return{$$typeof:d,render:P}},Fe.isValidElement=V,Fe.lazy=function(P){return{$$typeof:v,_payload:{_status:-1,_result:P},_init:G}},Fe.memo=function(P,Q){return{$$typeof:h,type:P,compare:Q===void 0?null:Q}},Fe.startTransition=function(P){var Q=D.T,te={};D.T=te;try{var se=P(),me=D.S;me!==null&&me(te,se),typeof se=="object"&&se!==null&&typeof se.then=="function"&&se.then(k,re)}catch(_e){re(_e)}finally{Q!==null&&te.types!==null&&(Q.types=te.types),D.T=Q}},Fe.unstable_useCacheRefresh=function(){return D.H.useCacheRefresh()},Fe.use=function(P){return D.H.use(P)},Fe.useActionState=function(P,Q,te){return D.H.useActionState(P,Q,te)},Fe.useCallback=function(P,Q){return D.H.useCallback(P,Q)},Fe.useContext=function(P){return D.H.useContext(P)},Fe.useDebugValue=function(){},Fe.useDeferredValue=function(P,Q){return D.H.useDeferredValue(P,Q)},Fe.useEffect=function(P,Q){return D.H.useEffect(P,Q)},Fe.useEffectEvent=function(P){return D.H.useEffectEvent(P)},Fe.useId=function(){return D.H.useId()},Fe.useImperativeHandle=function(P,Q,te){return D.H.useImperativeHandle(P,Q,te)},Fe.useInsertionEffect=function(P,Q){return D.H.useInsertionEffect(P,Q)},Fe.useLayoutEffect=function(P,Q){return D.H.useLayoutEffect(P,Q)},Fe.useMemo=function(P,Q){return D.H.useMemo(P,Q)},Fe.useOptimistic=function(P,Q){return D.H.useOptimistic(P,Q)},Fe.useReducer=function(P,Q,te){return D.H.useReducer(P,Q,te)},Fe.useRef=function(P){return D.H.useRef(P)},Fe.useState=function(P){return D.H.useState(P)},Fe.useSyncExternalStore=function(P,Q,te){return D.H.useSyncExternalStore(P,Q,te)},Fe.useTransition=function(){return D.H.useTransition()},Fe.version="19.2.3",Fe}var __;function ka(){return __||(__=1,Xp.exports=b4()),Xp.exports}var Jp={exports:{}},Dn={};var E_;function _4(){if(E_)return Dn;E_=1;var e=ka();function t(f){var h="https://react.dev/errors/"+f;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)h+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+f+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var o={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},i=Symbol.for("react.portal");function l(f,h,v){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:p==null?null:""+p,children:f,containerInfo:h,implementation:v}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(f,h){if(f==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return Dn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,Dn.createPortal=function(f,h){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(t(299));return l(f,h,null,v)},Dn.flushSync=function(f){var h=c.T,v=o.p;try{if(c.T=null,o.p=2,f)return f()}finally{c.T=h,o.p=v,o.d.f()}},Dn.preconnect=function(f,h){typeof f=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,o.d.C(f,h))},Dn.prefetchDNS=function(f){typeof f=="string"&&o.d.D(f)},Dn.preinit=function(f,h){if(typeof f=="string"&&h&&typeof h.as=="string"){var v=h.as,p=d(v,h.crossOrigin),g=typeof h.integrity=="string"?h.integrity:void 0,_=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;v==="style"?o.d.S(f,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:p,integrity:g,fetchPriority:_}):v==="script"&&o.d.X(f,{crossOrigin:p,integrity:g,fetchPriority:_,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},Dn.preinitModule=function(f,h){if(typeof f=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var v=d(h.as,h.crossOrigin);o.d.M(f,{crossOrigin:v,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&o.d.M(f)},Dn.preload=function(f,h){if(typeof f=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var v=h.as,p=d(v,h.crossOrigin);o.d.L(f,v,{crossOrigin:p,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},Dn.preloadModule=function(f,h){if(typeof f=="string")if(h){var v=d(h.as,h.crossOrigin);o.d.m(f,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:v,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else o.d.m(f)},Dn.requestFormReset=function(f){o.d.r(f)},Dn.unstable_batchedUpdates=function(f,h){return f(h)},Dn.useFormState=function(f,h,v){return c.H.useFormState(f,h,v)},Dn.useFormStatus=function(){return c.H.useHostTransitionStatus()},Dn.version="19.2.3",Dn}var S_;function _w(){if(S_)return Jp.exports;S_=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Jp.exports=_4(),Jp.exports}var w_;function E4(){if(w_)return Il;w_=1;var e=y4(),t=ka(),n=_w();function o(r){var a="https://react.dev/errors/"+r;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var s=2;s<arguments.length;s++)a+="&args[]="+encodeURIComponent(arguments[s])}return"Minified React error #"+r+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function l(r){var a=r,s=r;if(r.alternate)for(;a.return;)a=a.return;else{r=a;do a=r,(a.flags&4098)!==0&&(s=a.return),r=a.return;while(r)}return a.tag===3?s:null}function c(r){if(r.tag===13){var a=r.memoizedState;if(a===null&&(r=r.alternate,r!==null&&(a=r.memoizedState)),a!==null)return a.dehydrated}return null}function d(r){if(r.tag===31){var a=r.memoizedState;if(a===null&&(r=r.alternate,r!==null&&(a=r.memoizedState)),a!==null)return a.dehydrated}return null}function f(r){if(l(r)!==r)throw Error(o(188))}function h(r){var a=r.alternate;if(!a){if(a=l(r),a===null)throw Error(o(188));return a!==r?null:r}for(var s=r,u=a;;){var m=s.return;if(m===null)break;var y=m.alternate;if(y===null){if(u=m.return,u!==null){s=u;continue}break}if(m.child===y.child){for(y=m.child;y;){if(y===s)return f(m),r;if(y===u)return f(m),a;y=y.sibling}throw Error(o(188))}if(s.return!==u.return)s=m,u=y;else{for(var x=!1,M=m.child;M;){if(M===s){x=!0,s=m,u=y;break}if(M===u){x=!0,u=m,s=y;break}M=M.sibling}if(!x){for(M=y.child;M;){if(M===s){x=!0,s=y,u=m;break}if(M===u){x=!0,u=y,s=m;break}M=M.sibling}if(!x)throw Error(o(189))}}if(s.alternate!==u)throw Error(o(190))}if(s.tag!==3)throw Error(o(188));return s.stateNode.current===s?r:a}function v(r){var a=r.tag;if(a===5||a===26||a===27||a===6)return r;for(r=r.child;r!==null;){if(a=v(r),a!==null)return a;r=r.sibling}return null}var p=Object.assign,g=Symbol.for("react.element"),_=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),A=Symbol.for("react.consumer"),C=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),W=Symbol.for("react.memo_cache_sentinel"),V=Symbol.iterator;function q(r){return r===null||typeof r!="object"?null:(r=V&&r[V]||r["@@iterator"],typeof r=="function"?r:null)}var j=Symbol.for("react.client.reference");function X(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===j?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case w:return"Fragment";case R:return"Profiler";case T:return"StrictMode";case I:return"Suspense";case k:return"SuspenseList";case z:return"Activity"}if(typeof r=="object")switch(r.$$typeof){case S:return"Portal";case C:return r.displayName||"Context";case A:return(r._context.displayName||"Context")+".Consumer";case O:var a=r.render;return r=r.displayName,r||(r=a.displayName||a.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case D:return a=r.displayName||null,a!==null?a:X(r.type)||"Memo";case N:a=r._payload,r=r._init;try{return X(r(a))}catch{}}return null}var oe=Array.isArray,L=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G={pending:!1,data:null,method:null,action:null},re=[],be=-1;function P(r){return{current:r}}function Q(r){0>be||(r.current=re[be],re[be]=null,be--)}function te(r,a){be++,re[be]=r.current,r.current=a}var se=P(null),me=P(null),_e=P(null),ye=P(null);function Se(r,a){switch(te(_e,a),te(me,r),te(se,null),a.nodeType){case 9:case 11:r=(r=a.documentElement)&&(r=r.namespaceURI)?jb(r):0;break;default:if(r=a.tagName,a=a.namespaceURI)a=jb(a),r=zb(a,r);else switch(r){case"svg":r=1;break;case"math":r=2;break;default:r=0}}Q(se),te(se,r)}function De(){Q(se),Q(me),Q(_e)}function Le(r){r.memoizedState!==null&&te(ye,r);var a=se.current,s=zb(a,r.type);a!==s&&(te(me,r),te(se,s))}function Ee(r){me.current===r&&(Q(se),Q(me)),ye.current===r&&(Q(ye),Rl._currentValue=G)}var ze,Nt;function ge(r){if(ze===void 0)try{throw Error()}catch(s){var a=s.stack.trim().match(/\n( *(at )?)/);ze=a&&a[1]||"",Nt=-1<s.stack.indexOf(`
3
3
  at`)?" (<anonymous>)":-1<s.stack.indexOf("@")?"@unknown:0:0":""}return`
4
4
  `+ze+r+Nt}var ve=!1;function Re(r,a){if(!r||ve)return"";ve=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(a){var de=function(){throw Error()};if(Object.defineProperty(de.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(de,[])}catch(ae){var ne=ae}Reflect.construct(r,[],de)}else{try{de.call()}catch(ae){ne=ae}r.call(de.prototype)}}else{try{throw Error()}catch(ae){ne=ae}(de=r())&&typeof de.catch=="function"&&de.catch(function(){})}}catch(ae){if(ae&&ne&&typeof ae.stack=="string")return[ae.stack,ne.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var m=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");m&&m.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var y=u.DetermineComponentFrameRoot(),x=y[0],M=y[1];if(x&&M){var B=x.split(`
@@ -160,4 +160,4 @@ ${o}
160
160
  ${o}
161
161
  }`)}if(n.length>0){const o=document.createElement("style");o.id="mesh-theme-overrides",o.textContent=n.join(`
162
162
 
163
- `),document.head.appendChild(o)}}function VV(e){const t=mc.c(6),{children:n}=e;let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o={queryKey:Dw.publicConfig(),queryFn:FV,staleTime:1/0},t[0]=o):o=t[0];const{data:i}=Nw(o);let l,c;t[1]!==i.theme?(l=()=>{$V(i.theme)},c=[i.theme],t[1]=i.theme,t[2]=l,t[3]=c):(l=t[2],c=t[3]),E.useLayoutEffect(l,c);let d;return t[4]!==n?(d=b.jsx(b.Fragment,{children:n}),t[4]=n,t[5]=d):d=t[5],d}function JT(){const e=mc.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=b.jsx("div",{className:"flex items-center justify-center min-h-screen",children:b.jsx("div",{className:"text-gray-500",children:"Loading..."})}),e[0]=t):t=e[0],t}const HV=new Y4;function GV(e){const t=mc.c(4),{children:n}=e;let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=b.jsx(ZP,{}),t[0]=o):o=t[0];let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i=b.jsx(JT,{}),t[1]=i):i=t[1];let l;return t[2]!==n?(l=b.jsxs(W4,{client:HV,children:[o,b.jsx(E.Suspense,{fallback:i,children:b.jsx(VV,{children:b.jsx(u3,{children:b.jsx(UV,{children:n})})})})]}),t[2]=n,t[3]=l):l=t[3],l}const qV=function(){return null},Mc=U5({component:()=>b.jsxs(GV,{children:[b.jsx(E.Suspense,{fallback:b.jsx(JT,{}),children:b.jsx(rx,{})}),b.jsx(qV,{})]})}),ZV=yn({getParentRoute:()=>Mc,path:"/login",component:An(()=>Tn(()=>import("./login-o1Tj7sX_.js"),__vite__mapDeps([0,1]))),validateSearch:Ua(()=>bn({next:Ve().optional(),client_id:Ve().optional(),redirect_uri:Ve().optional(),response_type:Ve().optional(),state:Ve().optional(),scope:Ve().optional(),code_challenge:Ve().optional(),code_challenge_method:Ve().optional()}))}),YV=yn({getParentRoute:()=>Mc,path:"/auth/$pathname",component:An(()=>Tn(()=>import("./auth-catchall-Yc-olrlU.js"),[]))}),yr=yn({getParentRoute:()=>Mc,id:"shell",component:An(()=>Tn(()=>import("./shell-layout-BHXYIaoX.js"),__vite__mapDeps([2,3,1,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42])))}),KV=yn({getParentRoute:()=>yr,path:"/",component:An(()=>Tn(()=>import("./home-Cywix_jq.js"),__vite__mapDeps([43,44,1,16,32,42,11,12,13,14])))}),WV=yn({getParentRoute:()=>yr,path:"/$org",component:An(()=>Tn(()=>import("./page-CFlN9WXe.js"),__vite__mapDeps([45,28,1,7,29,30,10,9,31,26,27,15,32,3,5,17,18,19,20,6,33,22,23,34,35,14,12,4,36,37,38,39,46,47,41,42,48,49,50])))}),QV=yn({getParentRoute:()=>yr,path:"/$org/members",component:An(()=>Tn(()=>import("./members-DVjTxGu7.js"),__vite__mapDeps([51,52,53,1,21,22,17,7,46,54,55,41,9,56,57,58,59,60,37,27,16,61,12,25,5,62,63,42,39,3,13,19,20,33,44,64,65,66])))}),XV=yn({getParentRoute:()=>yr,path:"/$org/mcps",component:An(()=>Tn(()=>import("./connections-CKJZNUiK.js"),__vite__mapDeps([67,52,53,1,21,22,17,7,46,54,55,41,9,56,68,44,3,29,30,69,6,12,61,25,5,13,64,70,42,39,34,19,20,33,38,48,27,71]))),validateSearch:Ua(()=>bn({action:ic(["create"]).optional()}))}),JV=yn({getParentRoute:()=>yr,path:"/$org/settings",component:An(()=>Tn(()=>import("./settings-B4usvQoK.js"),__vite__mapDeps([72,52,53,1,21,22,17,7,46,54,13,5])))}),eH=yn({getParentRoute:()=>yr,path:"/$org/monitoring",component:An(()=>Tn(()=>import("./monitoring-C2RnSJ3o.js"),__vite__mapDeps([73,9,1,7,52,53,21,22,17,46,54,55,41,3,61,20,15,23,74,65,75,35,14,76,49,10,60,42,39,58,19,33,77,48,27]))),validateSearch:Ua(()=>bn({tab:ic(["logs","analytics"]).default("logs"),from:Ve().default("now-24h"),to:Ve().default("now"),connectionId:xv(Ve()).optional().default([]),gatewayId:xv(Ve()).optional().default([]),tool:Ve().default(""),status:ic(["all","success","errors"]).default("all"),search:Ve().default(""),page:O2().optional(),streaming:Rg().default(!0),propertyFilters:Ve().default("")}))}),eA=yn({getParentRoute:()=>yr,path:"/$org/store",component:An(()=>Tn(()=>import("./page-DDFD8VO6.js"),__vite__mapDeps([78,37,52,53,1,21,22,17,7,46,74,79,41,9,71,80,55,63,44,81,82,15,20,66,19,42,29,30,26,27])))}),tH=yn({getParentRoute:()=>eA,path:"/$appName",component:An(()=>Tn(()=>import("./mcp-server-detail-BoRotZPL.js"),__vite__mapDeps([83,32,41,1,59,9,7,20,42,21,22,24,84,27,4,81,53,17,46,55,56,44,85,86,77,61,29,30,48,87,88,89,71,38,80,82,36]))),validateSearch:Ua(()=>bn({registryId:Ve().optional(),serverName:Ve().optional(),itemId:Ve().optional()}))}),nH=yn({getParentRoute:()=>yr,path:"/$org/mcps/$connectionId",component:An(()=>Tn(()=>import("./connection-detail-RVIT3UFi.js"),__vite__mapDeps([90,9,1,7,3,29,30,91,92,70,42,39,48,27,93,8,4,65,41,85,59,13,19,20,34,10,22,94,89,71,88,81,38,76,95,77,61,96,53,21,17,46,55,44,23,64,69,6,56,97,79,16,12,84,86]))),validateSearch:Ua(()=>bn({tab:Ve().optional()}))}),rH=yn({getParentRoute:()=>yr,path:"/$org/mcps/$connectionId/$collectionName/$itemId",component:An(()=>Tn(()=>import("./collection-detail-BCCi1HOu.js"),__vite__mapDeps([98,9,1,7,3,93,8,13,33,99,85,59,32,35,14,75,23,41,66,91,92,30,70,42,39,29,48,27,4,65,19,20,34,10,22,94,89,71,88,81,38,76,87,97,40,18,6,46,47,25,5,62,21,61]))),validateSearch:Ua(()=>bn({replayId:Ve().optional()}))}),oH=yn({getParentRoute:()=>yr,path:"/$org/gateways",component:An(()=>Tn(()=>import("./gateways-DDhGrUfh.js"),__vite__mapDeps([100,52,53,1,21,22,17,7,46,54,55,41,9,56,68,44,3,10,69,6,12,61,64,39]))),validateSearch:Ua(()=>bn({action:ic(["create"]).optional()}))}),aH=yn({getParentRoute:()=>yr,path:"/$org/gateways/$gatewayId",component:An(()=>Tn(()=>import("./gateway-detail-vGOSate4.js"),__vite__mapDeps([101,9,1,7,3,58,59,55,41,42,5,93,8,57,10,95,94,31,26,27,80,25,13,77,61,19,20,33,23,99,36,85]))),validateSearch:Ua(()=>bn({tab:Ve().optional()}))}),iH=yn({getParentRoute:()=>yr,path:"/$org/workflows",component:An(()=>Tn(()=>import("./workflow-CBTdFU5D.js"),__vite__mapDeps([102,37,96,38,9,1,7,53,21,22,17,46,55,41,44,23,64,69,6,39,56,97,79,16,27,93,8,89,29,30,12,42,85,59,52])))}),sH=yn({getParentRoute:()=>Mc,path:"/oauth/callback",component:An(()=>Tn(()=>import("./oauth-callback-DMHRNVai.js"),__vite__mapDeps([103,41,92,30])))}),lH=eA.addChildren([tH]),cH=yr.addChildren([KV,WV,QV,XV,oH,aH,eH,lH,JV,iH,nH,rH]),uH=Mc.addChildren([cH,ZV,YV,sH]),dH=Y5({routeTree:uH}),fH=document.getElementById("root");w4.createRoot(fH).render(b.jsx(E.StrictMode,{children:b.jsx(Q5,{router:dH})}));export{RH as $,GH as A,K4 as B,Uj as C,jH as D,KL as E,EH as F,X$ as G,T8 as H,NH as I,Ua as J,Dw as K,wH as L,O2 as M,bH as N,zj as O,jj as P,Rg as Q,Pj as R,JT as S,Bj as T,HH as U,CH as V,xv as W,IH as X,wv as Y,TH as Z,DH as _,yI as a,On as a$,ic as a0,_i as a1,Tn as a2,l3 as a3,o3 as a4,hH as a5,vx as a6,Xw as a7,mf as a8,uf as a9,cc as aA,oR as aB,Vg as aC,$g as aD,sz as aE,lz as aF,er as aG,In as aH,$U as aI,ex as aJ,U2 as aK,I7 as aL,IR as aM,O7 as aN,VH as aO,vg as aP,L7 as aQ,iM as aR,JO as aS,tT as aT,UU as aU,dB as aV,HR as aW,Tc as aX,_c as aY,kj as aZ,vc as a_,ka as aa,Fo as ab,dn as ac,MR as ad,wi as ae,Ut as af,Go as ag,Ge as ah,Wr as ai,Kr as aj,Ec as ak,rO as al,_z as am,bz as an,pH as ao,F4 as ap,P_ as aq,vH as ar,mH as as,qR as at,tO as au,Ia as av,iz as aw,Hg as ax,hR as ay,Gg as az,mg as b,sv as b0,Sw as b1,Q4 as b2,e3 as b3,a3 as b4,t3 as b5,n3 as b6,Qn as b7,s3 as b8,k_ as b9,DU as bA,LU as bB,PU as bC,kU as bD,BH as bE,FH as bF,$H as bG,UH as bH,tc as bI,G4 as bJ,xw as bK,X8 as bL,jE as bM,SH as bN,_H as bO,J8 as bP,i3 as ba,r3 as bb,z7 as bc,k7 as bd,j7 as be,jg as bf,KU as bg,WU as bh,YU as bi,xH as bj,A2 as bk,xg as bl,MH as bm,o8 as bn,AH as bo,O8 as bp,I8 as bq,Og as br,N8 as bs,xM as bt,OH as bu,zL as bv,PH as bw,kH as bx,LH as by,NU as bz,mc as c,pg as d,zH as e,ik as f,X2 as g,gc as h,Jn as i,b as j,D$ as k,qe as l,qH as m,ZH as n,YH as o,Nw as p,rx as q,E as r,bn as s,$E as t,gH as u,Ve as v,vo as w,mo as x,yH as y,$ as z};
163
+ `),document.head.appendChild(o)}}function VV(e){const t=mc.c(6),{children:n}=e;let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o={queryKey:Dw.publicConfig(),queryFn:FV,staleTime:1/0},t[0]=o):o=t[0];const{data:i}=Nw(o);let l,c;t[1]!==i.theme?(l=()=>{$V(i.theme)},c=[i.theme],t[1]=i.theme,t[2]=l,t[3]=c):(l=t[2],c=t[3]),E.useLayoutEffect(l,c);let d;return t[4]!==n?(d=b.jsx(b.Fragment,{children:n}),t[4]=n,t[5]=d):d=t[5],d}function JT(){const e=mc.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=b.jsx("div",{className:"flex items-center justify-center min-h-screen",children:b.jsx("div",{className:"text-gray-500",children:"Loading..."})}),e[0]=t):t=e[0],t}const HV=new Y4;function GV(e){const t=mc.c(4),{children:n}=e;let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=b.jsx(ZP,{}),t[0]=o):o=t[0];let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i=b.jsx(JT,{}),t[1]=i):i=t[1];let l;return t[2]!==n?(l=b.jsxs(W4,{client:HV,children:[o,b.jsx(E.Suspense,{fallback:i,children:b.jsx(VV,{children:b.jsx(u3,{children:b.jsx(UV,{children:n})})})})]}),t[2]=n,t[3]=l):l=t[3],l}const qV=function(){return null},Mc=U5({component:()=>b.jsxs(GV,{children:[b.jsx(E.Suspense,{fallback:b.jsx(JT,{}),children:b.jsx(rx,{})}),b.jsx(qV,{})]})}),ZV=yn({getParentRoute:()=>Mc,path:"/login",component:An(()=>Tn(()=>import("./login-B4k1yizo.js"),__vite__mapDeps([0,1]))),validateSearch:Ua(()=>bn({next:Ve().optional(),client_id:Ve().optional(),redirect_uri:Ve().optional(),response_type:Ve().optional(),state:Ve().optional(),scope:Ve().optional(),code_challenge:Ve().optional(),code_challenge_method:Ve().optional()}))}),YV=yn({getParentRoute:()=>Mc,path:"/auth/$pathname",component:An(()=>Tn(()=>import("./auth-catchall-BAZuaH8l.js"),[]))}),yr=yn({getParentRoute:()=>Mc,id:"shell",component:An(()=>Tn(()=>import("./shell-layout-yGeudWHM.js"),__vite__mapDeps([2,3,1,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43])))}),KV=yn({getParentRoute:()=>yr,path:"/",component:An(()=>Tn(()=>import("./home-4Azy8yCf.js"),__vite__mapDeps([44,45,1,16,32,43,11,12,13,14])))}),WV=yn({getParentRoute:()=>yr,path:"/$org",component:An(()=>Tn(()=>import("./page-DWpNpeBI.js"),__vite__mapDeps([46,28,1,7,29,30,10,9,31,26,27,15,32,3,5,17,33,34,22,23,35,36,14,12,18,19,20,6,4,37,38,39,40,47,48,42,43,49,50,51])))}),QV=yn({getParentRoute:()=>yr,path:"/$org/members",component:An(()=>Tn(()=>import("./members-CvcRBE7N.js"),__vite__mapDeps([52,53,54,1,21,22,17,7,47,55,56,42,9,57,58,59,60,61,38,27,16,62,12,25,5,63,64,43,40,3,13,19,20,34,45,65,66,67])))}),XV=yn({getParentRoute:()=>yr,path:"/$org/mcps",component:An(()=>Tn(()=>import("./connections-Cyw4vKCR.js"),__vite__mapDeps([68,53,54,1,21,22,17,7,47,55,56,42,9,57,69,45,3,29,30,70,6,12,62,25,5,13,65,71,43,40,35,19,20,34,39,49,27,72]))),validateSearch:Ua(()=>bn({action:ic(["create"]).optional()}))}),JV=yn({getParentRoute:()=>yr,path:"/$org/settings",component:An(()=>Tn(()=>import("./settings-DBVtWxtX.js"),__vite__mapDeps([73,53,54,1,21,22,17,7,47,55,13,5])))}),eH=yn({getParentRoute:()=>yr,path:"/$org/monitoring",component:An(()=>Tn(()=>import("./monitoring-C2NQS-B1.js"),__vite__mapDeps([74,9,1,7,53,54,21,22,17,47,55,56,42,3,62,20,15,23,75,66,76,36,14,77,50,10,61,43,40,59,19,34,78,49,27]))),validateSearch:Ua(()=>bn({tab:ic(["logs","analytics"]).default("logs"),from:Ve().default("now-24h"),to:Ve().default("now"),connectionId:xv(Ve()).optional().default([]),gatewayId:xv(Ve()).optional().default([]),tool:Ve().default(""),status:ic(["all","success","errors"]).default("all"),search:Ve().default(""),page:O2().optional(),streaming:Rg().default(!0),propertyFilters:Ve().default("")}))}),eA=yn({getParentRoute:()=>yr,path:"/$org/store",component:An(()=>Tn(()=>import("./page-4Om70maF.js"),__vite__mapDeps([79,38,53,54,1,21,22,17,7,47,75,80,42,9,72,81,56,64,45,82,83,15,20,67,19,43,29,30,26,27])))}),tH=yn({getParentRoute:()=>eA,path:"/$appName",component:An(()=>Tn(()=>import("./mcp-server-detail-BncapnIe.js"),__vite__mapDeps([84,32,42,1,60,9,7,20,43,21,22,24,85,27,4,82,54,17,47,56,57,45,86,87,78,62,29,30,49,88,89,90,72,39,81,83,37]))),validateSearch:Ua(()=>bn({registryId:Ve().optional(),serverName:Ve().optional(),itemId:Ve().optional()}))}),nH=yn({getParentRoute:()=>yr,path:"/$org/mcps/$connectionId",component:An(()=>Tn(()=>import("./connection-detail-yed7lEwn.js"),__vite__mapDeps([91,9,1,7,3,29,30,92,93,71,43,40,49,27,94,8,4,66,42,86,60,13,19,20,35,10,22,95,90,72,89,82,39,77,18,6,96,78,62,97,54,21,17,47,56,45,23,65,70,57,98,80,16,12,85,87]))),validateSearch:Ua(()=>bn({tab:Ve().optional()}))}),rH=yn({getParentRoute:()=>yr,path:"/$org/mcps/$connectionId/$collectionName/$itemId",component:An(()=>Tn(()=>import("./collection-detail-glRN62L4.js"),__vite__mapDeps([99,9,1,7,3,94,8,13,34,100,86,60,32,36,14,76,23,42,67,92,93,30,71,43,40,29,49,27,4,66,19,20,35,10,22,95,90,72,89,82,39,77,18,6,88,98,41,47,48,33,25,5,63,21,62]))),validateSearch:Ua(()=>bn({replayId:Ve().optional()}))}),oH=yn({getParentRoute:()=>yr,path:"/$org/gateways",component:An(()=>Tn(()=>import("./gateways-BJBU4jqZ.js"),__vite__mapDeps([101,53,54,1,21,22,17,7,47,55,56,42,9,57,69,45,3,10,70,6,12,62,65,40]))),validateSearch:Ua(()=>bn({action:ic(["create"]).optional()}))}),aH=yn({getParentRoute:()=>yr,path:"/$org/gateways/$gatewayId",component:An(()=>Tn(()=>import("./gateway-detail-BfXnCLYA.js"),__vite__mapDeps([102,9,1,7,3,59,60,56,42,43,5,94,8,58,10,96,95,31,26,27,81,25,13,78,62,19,20,34,23,100,37,86]))),validateSearch:Ua(()=>bn({tab:Ve().optional()}))}),iH=yn({getParentRoute:()=>yr,path:"/$org/workflows",component:An(()=>Tn(()=>import("./workflow-DufdLkFQ.js"),__vite__mapDeps([103,38,97,39,9,1,7,54,21,22,17,47,56,42,45,23,65,70,6,40,57,98,80,16,27,94,8,90,29,30,12,43,86,60,53])))}),sH=yn({getParentRoute:()=>Mc,path:"/oauth/callback",component:An(()=>Tn(()=>import("./oauth-callback-CVfImHX4.js"),__vite__mapDeps([104,42,93,30])))}),lH=eA.addChildren([tH]),cH=yr.addChildren([KV,WV,QV,XV,oH,aH,eH,lH,JV,iH,nH,rH]),uH=Mc.addChildren([cH,ZV,YV,sH]),dH=Y5({routeTree:uH}),fH=document.getElementById("root");w4.createRoot(fH).render(b.jsx(E.StrictMode,{children:b.jsx(Q5,{router:dH})}));export{RH as $,GH as A,K4 as B,Uj as C,jH as D,KL as E,EH as F,X$ as G,T8 as H,NH as I,Ua as J,Dw as K,wH as L,O2 as M,bH as N,zj as O,jj as P,Rg as Q,Pj as R,JT as S,Bj as T,HH as U,CH as V,xv as W,IH as X,wv as Y,TH as Z,DH as _,yI as a,On as a$,ic as a0,_i as a1,Tn as a2,l3 as a3,o3 as a4,hH as a5,vx as a6,Xw as a7,mf as a8,uf as a9,cc as aA,oR as aB,Vg as aC,$g as aD,sz as aE,lz as aF,er as aG,In as aH,$U as aI,ex as aJ,U2 as aK,I7 as aL,IR as aM,O7 as aN,vg as aO,L7 as aP,iM as aQ,JO as aR,tT as aS,UU as aT,dB as aU,HR as aV,VH as aW,Tc as aX,_c as aY,kj as aZ,vc as a_,ka as aa,Fo as ab,dn as ac,MR as ad,wi as ae,Ut as af,Go as ag,Ge as ah,Wr as ai,Kr as aj,Ec as ak,rO as al,_z as am,bz as an,pH as ao,F4 as ap,P_ as aq,vH as ar,mH as as,qR as at,tO as au,Ia as av,iz as aw,Hg as ax,hR as ay,Gg as az,mg as b,sv as b0,Sw as b1,Q4 as b2,e3 as b3,a3 as b4,t3 as b5,n3 as b6,Qn as b7,s3 as b8,k_ as b9,DU as bA,LU as bB,PU as bC,kU as bD,BH as bE,FH as bF,$H as bG,UH as bH,tc as bI,G4 as bJ,xw as bK,X8 as bL,jE as bM,SH as bN,_H as bO,J8 as bP,i3 as ba,r3 as bb,z7 as bc,k7 as bd,j7 as be,jg as bf,KU as bg,WU as bh,YU as bi,xH as bj,A2 as bk,xg as bl,MH as bm,o8 as bn,AH as bo,O8 as bp,I8 as bq,Og as br,N8 as bs,xM as bt,OH as bu,zL as bv,PH as bw,kH as bx,LH as by,NU as bz,mc as c,pg as d,zH as e,ik as f,X2 as g,gc as h,Jn as i,b as j,D$ as k,qe as l,qH as m,ZH as n,YH as o,Nw as p,rx as q,E as r,bn as s,$E as t,gH as u,Ve as v,vo as w,mo as x,yH as y,$ as z};
@@ -1 +1 @@
1
- import{a_ as f,b0 as m,bI as h,bJ as x,a$ as b,B as y,r as u,b7 as k,bK as O,aR as C,a6 as w,c as g,f as M,j as p,g as E}from"./index-C42QK8hz.js";var j=class extends f{#e;#i=void 0;#t;#s;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#e.defaultMutationOptions(e),m(this.options,t)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#t,observer:this}),t?.mutationKey&&this.options.mutationKey&&h(t.mutationKey)!==h(this.options.mutationKey)?this.reset():this.#t?.state.status==="pending"&&this.#t.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#t?.removeObserver(this)}onMutationUpdate(e){this.#r(),this.#n(e)}getCurrentResult(){return this.#i}reset(){this.#t?.removeObserver(this),this.#t=void 0,this.#r(),this.#n()}mutate(e,t){return this.#s=t,this.#t?.removeObserver(this),this.#t=this.#e.getMutationCache().build(this.#e,this.options),this.#t.addObserver(this),this.#t.execute(e)}#r(){const e=this.#t?.state??x();this.#i={...e,isPending:e.status==="pending",isSuccess:e.status==="success",isError:e.status==="error",isIdle:e.status==="idle",mutate:this.mutate,reset:this.reset}}#n(e){b.batch(()=>{if(this.#s&&this.hasListeners()){const t=this.#i.variables,r=this.#i.context,s={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type==="success"){try{this.#s.onSuccess?.(e.data,t,r,s)}catch(i){Promise.reject(i)}try{this.#s.onSettled?.(e.data,null,t,r,s)}catch(i){Promise.reject(i)}}else if(e?.type==="error"){try{this.#s.onError?.(e.error,t,r,s)}catch(i){Promise.reject(i)}try{this.#s.onSettled?.(void 0,e.error,t,r,s)}catch(i){Promise.reject(i)}}}this.listeners.forEach(t=>{t(this.#i)})})}};function K(e,t){const r=y(t),[s]=u.useState(()=>new j(r,e));u.useEffect(()=>{s.setOptions(e)},[s,e]);const i=u.useSyncExternalStore(u.useCallback(n=>s.subscribe(b.batchCalls(n)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),o=u.useCallback((n,c)=>{s.mutate(n,c).catch(k)},[s]);if(i.error&&O(s.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:o,mutateAsync:i.mutate}}function v(...e){return C(w(e))}const S=M("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive cursor-pointer",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border text-foreground bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-foreground/80 hover:text-foreground",brand:"bg-brand-green-light text-brand-green-dark hover:bg-brand-green-light/90"},size:{default:"h-10 px-4 py-2 has-[>svg]:px-3",sm:"h-7 gap-1.5 px-3 has-[>svg]:px-2.5",xs:"h-6 gap-1 px-2 text-xs has-[>svg]:px-1.5",lg:"h-10 px-6 has-[>svg]:px-4",icon:"size-10"}},defaultVariants:{variant:"default",size:"default"}});function z(e){const t=g.c(14);let r,s,i,o,n;t[0]!==e?({className:r,variant:n,size:i,asChild:o,...s}=e,t[0]=e,t[1]=r,t[2]=s,t[3]=i,t[4]=o,t[5]=n):(r=t[1],s=t[2],i=t[3],o=t[4],n=t[5]);const d=(o===void 0?!1:o)?E:"button";let a;t[6]!==r||t[7]!==i||t[8]!==n?(a=v(S({variant:n,size:i,className:r})),t[6]=r,t[7]=i,t[8]=n,t[9]=a):a=t[9];let l;return t[10]!==d||t[11]!==s||t[12]!==a?(l=p.jsx(d,{"data-slot":"button",className:a,...s}),t[10]=d,t[11]=s,t[12]=a,t[13]=l):l=t[13],l}function P(e){const t=g.c(10);let r,s,i;t[0]!==e?({className:r,type:i,...s}=e,t[0]=e,t[1]=r,t[2]=s,t[3]=i):(r=t[1],s=t[2],i=t[3]);let o;t[4]!==r?(o=v("file:text-foreground text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-10 w-full min-w-0 rounded-lg border bg-transparent px-3 py-1 text-base transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] bg-background","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",r),t[4]=r,t[5]=o):o=t[5];let n;return t[6]!==s||t[7]!==o||t[8]!==i?(n=p.jsx("input",{type:i,"data-slot":"input",className:o,...s}),t[6]=s,t[7]=o,t[8]=i,t[9]=n):n=t[9],n}export{z as B,P as I,S as b,v as c,K as u};
1
+ import{a_ as f,b0 as m,bI as h,bJ as x,a$ as b,B as y,r as u,b7 as k,bK as O,aQ as C,a6 as w,c as g,f as M,j as p,g as E}from"./index-DsWTyaMI.js";var j=class extends f{#e;#i=void 0;#t;#s;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#e.defaultMutationOptions(e),m(this.options,t)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#t,observer:this}),t?.mutationKey&&this.options.mutationKey&&h(t.mutationKey)!==h(this.options.mutationKey)?this.reset():this.#t?.state.status==="pending"&&this.#t.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#t?.removeObserver(this)}onMutationUpdate(e){this.#r(),this.#n(e)}getCurrentResult(){return this.#i}reset(){this.#t?.removeObserver(this),this.#t=void 0,this.#r(),this.#n()}mutate(e,t){return this.#s=t,this.#t?.removeObserver(this),this.#t=this.#e.getMutationCache().build(this.#e,this.options),this.#t.addObserver(this),this.#t.execute(e)}#r(){const e=this.#t?.state??x();this.#i={...e,isPending:e.status==="pending",isSuccess:e.status==="success",isError:e.status==="error",isIdle:e.status==="idle",mutate:this.mutate,reset:this.reset}}#n(e){b.batch(()=>{if(this.#s&&this.hasListeners()){const t=this.#i.variables,r=this.#i.context,s={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type==="success"){try{this.#s.onSuccess?.(e.data,t,r,s)}catch(i){Promise.reject(i)}try{this.#s.onSettled?.(e.data,null,t,r,s)}catch(i){Promise.reject(i)}}else if(e?.type==="error"){try{this.#s.onError?.(e.error,t,r,s)}catch(i){Promise.reject(i)}try{this.#s.onSettled?.(void 0,e.error,t,r,s)}catch(i){Promise.reject(i)}}}this.listeners.forEach(t=>{t(this.#i)})})}};function R(e,t){const r=y(t),[s]=u.useState(()=>new j(r,e));u.useEffect(()=>{s.setOptions(e)},[s,e]);const i=u.useSyncExternalStore(u.useCallback(n=>s.subscribe(b.batchCalls(n)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),o=u.useCallback((n,c)=>{s.mutate(n,c).catch(k)},[s]);if(i.error&&O(s.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:o,mutateAsync:i.mutate}}function v(...e){return C(w(e))}const S=M("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive cursor-pointer",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border text-foreground bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-foreground/80 hover:text-foreground",brand:"bg-brand-green-light text-brand-green-dark hover:bg-brand-green-light/90"},size:{default:"h-10 px-4 py-2 has-[>svg]:px-3",sm:"h-7 gap-1.5 px-3 has-[>svg]:px-2.5",xs:"h-6 gap-1 px-2 text-xs has-[>svg]:px-1.5",lg:"h-10 px-6 has-[>svg]:px-4",icon:"size-10"}},defaultVariants:{variant:"default",size:"default"}});function z(e){const t=g.c(14);let r,s,i,o,n;t[0]!==e?({className:r,variant:n,size:i,asChild:o,...s}=e,t[0]=e,t[1]=r,t[2]=s,t[3]=i,t[4]=o,t[5]=n):(r=t[1],s=t[2],i=t[3],o=t[4],n=t[5]);const d=(o===void 0?!1:o)?E:"button";let a;t[6]!==r||t[7]!==i||t[8]!==n?(a=v(S({variant:n,size:i,className:r})),t[6]=r,t[7]=i,t[8]=n,t[9]=a):a=t[9];let l;return t[10]!==d||t[11]!==s||t[12]!==a?(l=p.jsx(d,{"data-slot":"button",className:a,...s}),t[10]=d,t[11]=s,t[12]=a,t[13]=l):l=t[13],l}function P(e){const t=g.c(10);let r,s,i;t[0]!==e?({className:r,type:i,...s}=e,t[0]=e,t[1]=r,t[2]=s,t[3]=i):(r=t[1],s=t[2],i=t[3]);let o;t[4]!==r?(o=v("file:text-foreground text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-10 w-full min-w-0 rounded-lg border bg-transparent px-3 py-1 text-base transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] bg-background","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",r),t[4]=r,t[5]=o):o=t[5];let n;return t[6]!==s||t[7]!==o||t[8]!==i?(n=p.jsx("input",{type:i,"data-slot":"input",className:o,...s}),t[6]=s,t[7]=o,t[8]=i,t[9]=n):n=t[9],n}export{z as B,P as I,S as b,v as c,R as u};
@@ -1 +1 @@
1
- import{c as E,r as f,a8 as v,j as l}from"./index-C42QK8hz.js";import{B as w}from"./input-DxnDBmuJ.js";import{i as k}from"./ArrowLeft-D2fGgQyc.js";const j=f.createContext(null);function S(x){const e=E.c(3),{children:r}=x,s=f.useContext(j);if(!s?.tabsEl)return null;let t;return e[0]!==r||e[1]!==s.tabsEl?(t=v.createPortal(r,s.tabsEl),e[0]=r,e[1]=s.tabsEl,e[2]=t):t=e[2],t}function _(x){const e=E.c(3),{children:r}=x,s=f.useContext(j);if(!s?.actionsEl)return null;let t;return e[0]!==r||e[1]!==s.actionsEl?(t=v.createPortal(r,s.actionsEl),e[0]=r,e[1]=s.actionsEl,e[2]=t):t=e[2],t}function B(x){const e=E.c(20),{children:r,onBack:s,title:t}=x,[h,N]=f.useState(null),[p,g]=f.useState(null);let n;e[0]!==p||e[1]!==h?(n={tabsEl:h,actionsEl:p},e[0]=p,e[1]=h,e[2]=n):n=e[2];let u;e[3]===Symbol.for("react.memo_cache_sentinel")?(u=l.jsx(k,{}),e[3]=u):u=e[3];let i;e[4]!==s?(i=l.jsx("div",{className:"flex h-full px-2 border-r items-center",children:l.jsx(w,{variant:"ghost",size:"icon",className:"items-center size-8 text-muted-foreground",onClick:s,children:u})}),e[4]=s,e[5]=i):i=e[5];let c;e[6]!==t?(c=t&&l.jsx("div",{className:"flex items-center gap-2 px-2",children:l.jsx("p",{className:"text-sm font-medium",children:t})}),e[6]=t,e[7]=c):c=e[7];let d;e[8]===Symbol.for("react.memo_cache_sentinel")?(d=l.jsxs("div",{className:"flex px-4 items-center gap-0 flex-1 min-w-0",children:[l.jsx("div",{ref:N,className:"flex items-center gap-2 overflow-x-auto min-w-0"}),l.jsx("div",{ref:g,className:"flex items-center gap-2 ml-auto shrink-0 border-l border-border pl-4"})]}),e[8]=d):d=e[8];let o;e[9]!==i||e[10]!==c?(o=l.jsxs("div",{className:"flex items-center h-12 border-b border-border shrink-0",children:[i,c,d]}),e[9]=i,e[10]=c,e[11]=o):o=e[11];let a;e[12]!==r?(a=l.jsx("div",{className:"flex-1 overflow-auto",children:r}),e[12]=r,e[13]=a):a=e[13];let m;e[14]!==o||e[15]!==a?(m=l.jsxs("div",{className:"flex flex-col h-full bg-background",children:[o,a]}),e[14]=o,e[15]=a,e[16]=m):m=e[16];let b;return e[17]!==n||e[18]!==m?(b=l.jsx(j,{value:n,children:m}),e[17]=n,e[18]=m,e[19]=b):b=e[19],b}export{_ as V,S as a,B as b};
1
+ import{c as E,r as f,a8 as v,j as l}from"./index-DsWTyaMI.js";import{B as w}from"./input-Bjw47IqN.js";import{i as k}from"./ArrowLeft-Bpp_SsGd.js";const j=f.createContext(null);function S(x){const e=E.c(3),{children:r}=x,s=f.useContext(j);if(!s?.tabsEl)return null;let t;return e[0]!==r||e[1]!==s.tabsEl?(t=v.createPortal(r,s.tabsEl),e[0]=r,e[1]=s.tabsEl,e[2]=t):t=e[2],t}function _(x){const e=E.c(3),{children:r}=x,s=f.useContext(j);if(!s?.actionsEl)return null;let t;return e[0]!==r||e[1]!==s.actionsEl?(t=v.createPortal(r,s.actionsEl),e[0]=r,e[1]=s.actionsEl,e[2]=t):t=e[2],t}function B(x){const e=E.c(20),{children:r,onBack:s,title:t}=x,[h,N]=f.useState(null),[p,g]=f.useState(null);let n;e[0]!==p||e[1]!==h?(n={tabsEl:h,actionsEl:p},e[0]=p,e[1]=h,e[2]=n):n=e[2];let u;e[3]===Symbol.for("react.memo_cache_sentinel")?(u=l.jsx(k,{}),e[3]=u):u=e[3];let i;e[4]!==s?(i=l.jsx("div",{className:"flex h-full px-2 border-r items-center",children:l.jsx(w,{variant:"ghost",size:"icon",className:"items-center size-8 text-muted-foreground",onClick:s,children:u})}),e[4]=s,e[5]=i):i=e[5];let c;e[6]!==t?(c=t&&l.jsx("div",{className:"flex items-center gap-2 px-2",children:l.jsx("p",{className:"text-sm font-medium",children:t})}),e[6]=t,e[7]=c):c=e[7];let d;e[8]===Symbol.for("react.memo_cache_sentinel")?(d=l.jsxs("div",{className:"flex px-4 items-center gap-0 flex-1 min-w-0",children:[l.jsx("div",{ref:N,className:"flex items-center gap-2 overflow-x-auto min-w-0"}),l.jsx("div",{ref:g,className:"flex items-center gap-2 ml-auto shrink-0 border-l border-border pl-4"})]}),e[8]=d):d=e[8];let o;e[9]!==i||e[10]!==c?(o=l.jsxs("div",{className:"flex items-center h-12 border-b border-border shrink-0",children:[i,c,d]}),e[9]=i,e[10]=c,e[11]=o):o=e[11];let a;e[12]!==r?(a=l.jsx("div",{className:"flex-1 overflow-auto",children:r}),e[12]=r,e[13]=a):a=e[13];let m;e[14]!==o||e[15]!==a?(m=l.jsxs("div",{className:"flex flex-col h-full bg-background",children:[o,a]}),e[14]=o,e[15]=a,e[16]=m):m=e[16];let b;return e[17]!==n||e[18]!==m?(b=l.jsx(j,{value:n,children:m}),e[17]=n,e[18]=m,e[19]=b):b=e[19],b}export{_ as V,S as a,B as b};
@@ -1,4 +1,4 @@
1
- import{z as ae,a5 as Ie,a1 as Xp,c as Zp,j as Qp}from"./index-C42QK8hz.js";function To(){return To=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)({}).hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},To.apply(null,arguments)}function Jp(e,t){if(e==null)return{};var r={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;r[a]=e[a]}return r}function eg(e,t){if(e==null)return{};var r,a,n=Jp(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ao(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=Array(t);r<t;r++)a[r]=e[r];return a}function tg(e){if(Array.isArray(e))return Ao(e)}function rg(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ag(e,t){if(e){if(typeof e=="string")return Ao(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ao(e,t):void 0}}function ng(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
1
+ import{z as ae,a5 as Ie,a1 as Xp,c as Zp,j as Qp}from"./index-DsWTyaMI.js";function To(){return To=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)({}).hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},To.apply(null,arguments)}function Jp(e,t){if(e==null)return{};var r={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;r[a]=e[a]}return r}function eg(e,t){if(e==null)return{};var r,a,n=Jp(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ao(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=Array(t);r<t;r++)a[r]=e[r];return a}function tg(e){if(Array.isArray(e))return Ao(e)}function rg(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ag(e,t){if(e){if(typeof e=="string")return Ao(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ao(e,t):void 0}}function ng(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ro(e){return tg(e)||rg(e)||ag(e)||ng()}function Se(e){"@babel/helpers - typeof";return Se=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Se(e)}function ig(e,t){if(Se(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(Se(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function og(e){var t=ig(e,"string");return Se(t)=="symbol"?t:t+""}function kp(e,t,r){return(t=og(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Go(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function me(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Go(Object(r),!0).forEach(function(a){kp(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Go(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function sg(e){var t=e.length;if(t===0||t===1)return e;if(t===2)return[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])];if(t===3)return[e[0],e[1],e[2],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0])];if(t>=4)return[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]}var Ue={};function lg(e){if(e.length===0||e.length===1)return e;var t=e.join(".");return Ue[t]||(Ue[t]=sg(e)),Ue[t]}function ug(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,a=e.filter(function(i){return i!=="token"}),n=lg(a);return n.reduce(function(i,o){return me(me({},i),r[o])},t)}function $o(e){return e.join(" ")}function cg(e,t){var r=0;return function(a){return r+=1,a.map(function(n,i){return Cp({node:n,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(r,"-").concat(i)})})}}function Cp(e){var t=e.node,r=e.stylesheet,a=e.style,n=a===void 0?{}:a,i=e.useInlineStyles,o=e.key,s=t.properties,l=t.type,c=t.tagName,u=t.value;if(l==="text")return u;if(c){var p=cg(r,i),m;if(!i)m=me(me({},s),{},{className:$o(s.className)});else{var f=Object.keys(r).reduce(function(R,b){return b.split(".").forEach(function(g){R.includes(g)||R.push(g)}),R},[]),T=s.className&&s.className.includes("token")?["token"]:[],E=s.className&&T.concat(s.className.filter(function(R){return!f.includes(R)}));m=me(me({},s),{},{className:$o(E)||void 0,style:ug(s.className,Object.assign({},s.style,n),r)})}var A=p(t.children);return ae.createElement(c,To({key:o},m),A)}}const dg=(function(e,t){var r=e.listLanguages();return r.indexOf(t)!==-1});var pg=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function Ho(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function ne(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ho(Object(r),!0).forEach(function(a){kp(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ho(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}var gg=/\n/g;function bg(e){return e.match(gg)}function mg(e){var t=e.lines,r=e.startingLineNumber,a=e.style;return t.map(function(n,i){var o=i+r;return ae.createElement("span",{key:"line-".concat(i),className:"react-syntax-highlighter-line-number",style:typeof a=="function"?a(o):a},"".concat(o,`
3
3
  `))})}function fg(e){var t=e.codeString,r=e.codeStyle,a=e.containerStyle,n=a===void 0?{float:"left",paddingRight:"10px"}:a,i=e.numberStyle,o=i===void 0?{}:i,s=e.startingLineNumber;return ae.createElement("code",{style:Object.assign({},r,n)},mg({lines:t.replace(/\n$/,"").split(`
4
4
  `),style:o,startingLineNumber:s}))}function hg(e){return"".concat(e.toString().length,".25em")}function Op(e,t){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:t},children:[{type:"text",value:e}]}}function Lp(e,t,r){var a={display:"inline-block",minWidth:hg(r),paddingRight:"1em",textAlign:"right",userSelect:"none"},n=typeof e=="function"?e(t):e,i=ne(ne({},a),n);return i}function _e(e){var t=e.children,r=e.lineNumber,a=e.lineNumberStyle,n=e.largestLineNumber,i=e.showInlineLineNumbers,o=e.lineProps,s=o===void 0?{}:o,l=e.className,c=l===void 0?[]:l,u=e.showLineNumbers,p=e.wrapLongLines,m=e.wrapLines,f=m===void 0?!1:m,T=f?ne({},typeof s=="function"?s(r):s):{};if(T.className=T.className?[].concat(Ro(T.className.trim().split(/\s+/)),Ro(c)):c,r&&i){var E=Lp(a,r,n);t.unshift(Op(r,E))}return p&u&&(T.style=ne({display:"flex"},T.style)),{type:"element",tagName:"span",properties:T,children:t}}function Dp(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],a=0;a<e.length;a++){var n=e[a];if(n.type==="text")r.push(_e({children:[n],className:Ro(new Set(t))}));else if(n.children){var i=t.concat(n.properties.className);Dp(n.children,i).forEach(function(o){return r.push(o)})}}return r}function Eg(e,t,r,a,n,i,o,s,l){var c,u=Dp(e.value),p=[],m=-1,f=0;function T(S,d){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return _e({children:S,lineNumber:d,lineNumberStyle:s,largestLineNumber:o,showInlineLineNumbers:n,lineProps:r,className:y,showLineNumbers:a,wrapLongLines:l,wrapLines:t})}function E(S,d){if(a&&d&&n){var y=Lp(s,d,o);S.unshift(Op(d,y))}return S}function A(S,d){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||y.length>0?T(S,d,y):E(S,d)}for(var R=function(){var d=u[f],y=d.children[0].value,_=bg(y);if(_){var v=y.split(`
@@ -1 +1 @@
1
- import{c as O,B as I}from"./index-C42QK8hz.js";import{u as x}from"./useQuery-CaL9aChr.js";import{u as L}from"./input-DxnDBmuJ.js";function Q(e){try{return JSON.parse(e)}catch{return}}function $(e,s){const t=localStorage.getItem(e),a=t?Q(t):void 0,n=typeof s=="function"?s(a):a??s;if(a===void 0||n!==a)try{const o=JSON.stringify(n);localStorage.setItem(e,o)}catch{}return n}function A(e,s){const t=O.c(25),a=I();let n;t[0]!==e?(n=["localStorage",e],t[0]=e,t[1]=n):n=t[1];const o=n;let r,i;t[2]!==s||t[3]!==e?(r=()=>$(e,s),i=()=>$(e,s),t[2]=s,t[3]=e,t[4]=r,t[5]=i):(r=t[4],i=t[5]);let u;t[6]!==o||t[7]!==r||t[8]!==i?(u={queryKey:o,queryFn:r,initialData:i,staleTime:1/0,gcTime:1/0},t[6]=o,t[7]=r,t[8]=i,t[9]=u):u=t[9];const{data:v}=x(u);let l;t[10]!==e?(l=async c=>{const y=JSON.stringify(c);return localStorage.setItem(e,y),c},t[10]=e,t[11]=l):l=t[11];let m;t[12]!==a||t[13]!==o?(m=c=>{a.setQueryData(o,c)},t[12]=a,t[13]=o,t[14]=m):m=t[14];let h;t[15]!==l||t[16]!==m?(h={mutationFn:l,onSuccess:m},t[15]=l,t[16]=m,t[17]=h):h=t[17];const d=L(h);let f;t[18]!==d||t[19]!==a||t[20]!==o?(f=c=>{const y=a.getQueryData(o),C=typeof c=="function"?c(y):c;d.mutate(C)},t[18]=d,t[19]=a,t[20]=o,t[21]=f):f=t[21];const S=f,p=v;let g;return t[22]!==S||t[23]!==p?(g=[p,S],t[22]=S,t[23]=p,t[24]=g):g=t[24],g}const M={decoChatOpen:()=>"mesh:decochat:open",threadManagerState:e=>`mesh:thread-manager-state:${e}`,chatSelectedModel:e=>`mesh:chat:selectedModel:${e}`,assistantChatActiveThread:(e,s)=>`mesh:assistant-chat:active-thread:${e}:${s}`,gatewayChatActiveThread:(e,s)=>`mesh:gateway-chat:active-thread:${e}:${s}`,decoChatPanelWidth:()=>"mesh:decochat:panel-width",sidebarOpen:()=>"mesh:sidebar-open",selectedRegistry:e=>`mesh:store:selected-registry:${e}`,orgHomeQuickstart:e=>`mesh:org-home:quickstart:${e}`,gatewaySystemPrompts:e=>`mesh:gateway:system-prompts:${e}`};export{M as L,A as u};
1
+ import{c as O,B as I}from"./index-DsWTyaMI.js";import{u as x}from"./useQuery-BXYZ1U8o.js";import{u as L}from"./input-Bjw47IqN.js";function Q(e){try{return JSON.parse(e)}catch{return}}function $(e,s){const t=localStorage.getItem(e),a=t?Q(t):void 0,n=typeof s=="function"?s(a):a??s;if(a===void 0||n!==a)try{const o=JSON.stringify(n);localStorage.setItem(e,o)}catch{}return n}function A(e,s){const t=O.c(25),a=I();let n;t[0]!==e?(n=["localStorage",e],t[0]=e,t[1]=n):n=t[1];const o=n;let r,i;t[2]!==s||t[3]!==e?(r=()=>$(e,s),i=()=>$(e,s),t[2]=s,t[3]=e,t[4]=r,t[5]=i):(r=t[4],i=t[5]);let u;t[6]!==o||t[7]!==r||t[8]!==i?(u={queryKey:o,queryFn:r,initialData:i,staleTime:1/0,gcTime:1/0},t[6]=o,t[7]=r,t[8]=i,t[9]=u):u=t[9];const{data:v}=x(u);let l;t[10]!==e?(l=async c=>{const y=JSON.stringify(c);return localStorage.setItem(e,y),c},t[10]=e,t[11]=l):l=t[11];let m;t[12]!==a||t[13]!==o?(m=c=>{a.setQueryData(o,c)},t[12]=a,t[13]=o,t[14]=m):m=t[14];let h;t[15]!==l||t[16]!==m?(h={mutationFn:l,onSuccess:m},t[15]=l,t[16]=m,t[17]=h):h=t[17];const d=L(h);let f;t[18]!==d||t[19]!==a||t[20]!==o?(f=c=>{const y=a.getQueryData(o),C=typeof c=="function"?c(y):c;d.mutate(C)},t[18]=d,t[19]=a,t[20]=o,t[21]=f):f=t[21];const S=f,p=v;let g;return t[22]!==S||t[23]!==p?(g=[p,S],t[22]=S,t[23]=p,t[24]=g):g=t[24],g}const M={decoChatOpen:()=>"mesh:decochat:open",threadManagerState:e=>`mesh:thread-manager-state:${e}`,chatSelectedModel:e=>`mesh:chat:selectedModel:${e}`,assistantChatActiveThread:(e,s)=>`mesh:assistant-chat:active-thread:${e}:${s}`,gatewayChatActiveThread:(e,s)=>`mesh:gateway-chat:active-thread:${e}:${s}`,decoChatPanelWidth:()=>"mesh:decochat:panel-width",sidebarOpen:()=>"mesh:sidebar-open",selectedRegistry:e=>`mesh:store:selected-registry:${e}`,orgHomeQuickstart:e=>`mesh:org-home:quickstart:${e}`,gatewaySystemPrompts:e=>`mesh:gateway:system-prompts:${e}`};export{M as L,A as u};
@@ -1 +1 @@
1
- import{u as k,r as p,j as e,a as j,b as z,S as L,N as R,c as U}from"./index-C42QK8hz.js";import{u as T,c as b,I as E,B as P}from"./input-DxnDBmuJ.js";function B({redirectUrl:r}){const{emailAndPassword:t}=k(),[s,d]=p.useState(""),[o,u]=p.useState(""),[l,v]=p.useState(""),[i,N]=p.useState(()=>globalThis.localStorage?.getItem("hasLoggedIn")!=="true"),[m,h]=p.useState(""),g=T({mutationFn:async({email:a,password:n,name:C})=>{try{if(i){const c=await j.signUp.email({email:a,password:n,name:C||""});if(c.error)throw new Error(c.error.message||"Sign up failed");return c}else{const c=await j.signIn.email({email:a,password:n});if(c.error)throw new Error(c.error.message||"Sign in failed");return c}}catch(c){throw c instanceof Error?c:new Error("Authentication failed")}},onSuccess:()=>{globalThis.localStorage?.setItem("hasLoggedIn","true"),r&&(window.location.href=r)}}),y=a=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(a),x=()=>{s.trim()&&!y(s)&&h("Invalid email address")},S=a=>{if(a.preventDefault(),!y(s)){h("Invalid email address");return}g.mutate({email:s,password:o,name:l})},_=a=>n=>{a(n.target.value),I&&g.reset(),a===d&&m&&h("")},f=g.isPending,I=g.error,w=i?s.trim()&&o.trim()&&l.trim():s.trim()&&o.trim(),A=a=>{if(!a)return null;const n=a.message.toLowerCase();return n.includes("unauthorized")||n.includes("401")?"Invalid email or password. Please try again.":n.includes("already exists")||n.includes("409")?"An account with this email already exists. Try signing in instead.":n.includes("network")||n.includes("fetch")?"Network error. Please check your connection and try again.":n.includes("rate limit")||n.includes("429")?"Too many attempts. Please wait a moment and try again.":a.message||"An error occurred. Please try again."};return e.jsxs("div",{className:"mx-auto w-full min-w-[400px] max-w-md grid gap-6 bg-card p-10 border border-primary-foreground/20",children:[e.jsx("div",{className:"flex justify-center",children:e.jsx("img",{src:"/logos/deco logo.svg",alt:"Deco",className:"h-12 w-12"})}),e.jsx("div",{className:"text-center space-y-1",children:e.jsx("p",{className:"text-sm text-foreground/70",children:i?"Create your account":"Login or signup below"})}),I&&e.jsx("div",{className:"rounded-xl bg-destructive/10 p-3 text-sm text-destructive text-center",children:A(I)}),t.enabled&&e.jsxs("form",{onSubmit:S,className:"grid gap-4",children:[e.jsx("div",{className:b("overflow-hidden transition-all duration-300 ease-[cubic-bezier(0.075,0.82,0.165,1)]",i?"max-h-[200px] opacity-100 translate-y-0":"max-h-0 opacity-0 -translate-y-2"),children:e.jsxs("div",{className:b("p-1",!i&&"pointer-events-none"),children:[e.jsx("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Name"}),e.jsx(E,{type:"text",placeholder:"Your name",value:l,onChange:_(v),required:!0,disabled:f||!i,"aria-hidden":!i})]})}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Email"}),e.jsx(E,{type:"email",placeholder:"you@example.com",value:s,onChange:_(d),onBlur:x,required:!0,disabled:f,"aria-invalid":!!m}),m&&e.jsx("p",{className:"text-xs text-destructive mt-1.5",children:m})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Password"}),e.jsx(E,{type:"password",placeholder:"••••••••",value:o,onChange:_(u),required:!0,disabled:f})]}),e.jsx("div",{className:b("overflow-hidden transition-all duration-300 ease-[cubic-bezier(0.075,0.82,0.165,1)]",w?"max-h-[100px] opacity-100 translate-y-0":"max-h-0 opacity-0 -translate-y-2"),children:e.jsx("div",{className:b("p-1",!w&&"pointer-events-none"),children:e.jsx(P,{type:"submit",disabled:f||!w,className:b("w-full font-semibold"),size:"lg","aria-hidden":!w,children:f?i?"Creating account...":"Signing in...":"Continue"})})})]}),e.jsx("div",{className:"text-center",children:e.jsx(P,{type:"button",variant:"link",onClick:()=>{N(!i),v(""),h(""),g.reset()},disabled:f,className:"text-sm text-muted-foreground hover:text-foreground",children:i?"Already have an account? Sign in":"Don't have an account? Sign up"})}),e.jsxs("div",{className:"flex justify-between text-xs text-muted-foreground pt-4",children:[e.jsx("a",{href:"https://www.decocms.com/terms-of-use",target:"_blank",rel:"noopener noreferrer",className:"hover:text-foreground transition-colors",children:"Terms of Service"}),e.jsx("a",{href:"https://www.decocms.com/privacy-policy",target:"_blank",rel:"noopener noreferrer",className:"hover:text-foreground transition-colors",children:"Privacy Policy"})]})]})}function M(r){if(!r.client_id||r.response_type!=="code")return null;const t=new URLSearchParams;return r.client_id&&t.set("client_id",r.client_id),r.redirect_uri&&t.set("redirect_uri",r.redirect_uri),r.response_type&&t.set("response_type",r.response_type),r.state&&t.set("state",r.state),r.scope&&t.set("scope",r.scope),r.code_challenge&&t.set("code_challenge",r.code_challenge),r.code_challenge_method&&t.set("code_challenge_method",r.code_challenge_method),`/api/auth/mcp/authorize?${t.toString()}`}function q(r){const t=U.c(5),{callbackURL:s,providerId:d}=r;let o,u;t[0]!==s||t[1]!==d?(o=()=>{(async()=>await j.signIn.sso({providerId:d,callbackURL:s}))()},u=[d,s],t[0]=s,t[1]=d,t[2]=o,t[3]=u):(o=t[2],u=t[3]),p.useEffect(o,u);let l;return t[4]===Symbol.for("react.memo_cache_sentinel")?(l=e.jsx(L,{}),t[4]=l):l=t[4],l}function F(){const r=j.useSession(),t=z({from:"/login"}),{next:s="/",client_id:d,redirect_uri:o,response_type:u,state:l,scope:v,code_challenge:i,code_challenge_method:N}=t,{sso:m,emailAndPassword:h,magicLink:g,socialProviders:y}=k(),x=M({client_id:d,redirect_uri:o,response_type:u,state:l,scope:v,code_challenge:i,code_challenge_method:N}),S=x||s;return r.data?x?(window.location.href=x,e.jsx(L,{})):e.jsx(R,{to:s}):m.enabled?e.jsx(q,{callbackURL:S,providerId:m.providerId}):h.enabled||g.enabled||y.enabled?e.jsxs("main",{className:"relative flex min-h-screen items-center justify-center bg-gradient-to-br from-primary to-primary/75 p-4",children:[e.jsx("div",{className:"absolute inset-0",style:{backgroundImage:"radial-gradient(circle, var(--primary-foreground) 1px, transparent 1px)",backgroundSize:"16px 16px",opacity:.15}}),e.jsxs("div",{className:"relative z-10",children:[e.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-screen h-px bg-primary-foreground/15"}),e.jsx("div",{className:"absolute bottom-0 left-1/2 -translate-x-1/2 w-screen h-px bg-primary-foreground/15"}),e.jsx("div",{className:"absolute left-0 top-1/2 -translate-y-1/2 w-px h-screen bg-primary-foreground/15"}),e.jsx("div",{className:"absolute right-0 top-1/2 -translate-y-1/2 w-px h-screen bg-primary-foreground/15"}),e.jsx(B,{redirectUrl:x})]})]}):e.jsx("div",{children:"No login options available"})}export{F as default};
1
+ import{u as k,r as p,j as e,a as j,b as z,S as L,N as R,c as U}from"./index-DsWTyaMI.js";import{u as T,c as b,I as E,B as P}from"./input-Bjw47IqN.js";function B({redirectUrl:r}){const{emailAndPassword:t}=k(),[s,d]=p.useState(""),[o,u]=p.useState(""),[l,v]=p.useState(""),[i,N]=p.useState(()=>globalThis.localStorage?.getItem("hasLoggedIn")!=="true"),[m,h]=p.useState(""),g=T({mutationFn:async({email:a,password:n,name:C})=>{try{if(i){const c=await j.signUp.email({email:a,password:n,name:C||""});if(c.error)throw new Error(c.error.message||"Sign up failed");return c}else{const c=await j.signIn.email({email:a,password:n});if(c.error)throw new Error(c.error.message||"Sign in failed");return c}}catch(c){throw c instanceof Error?c:new Error("Authentication failed")}},onSuccess:()=>{globalThis.localStorage?.setItem("hasLoggedIn","true"),r&&(window.location.href=r)}}),y=a=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(a),x=()=>{s.trim()&&!y(s)&&h("Invalid email address")},S=a=>{if(a.preventDefault(),!y(s)){h("Invalid email address");return}g.mutate({email:s,password:o,name:l})},_=a=>n=>{a(n.target.value),I&&g.reset(),a===d&&m&&h("")},f=g.isPending,I=g.error,w=i?s.trim()&&o.trim()&&l.trim():s.trim()&&o.trim(),A=a=>{if(!a)return null;const n=a.message.toLowerCase();return n.includes("unauthorized")||n.includes("401")?"Invalid email or password. Please try again.":n.includes("already exists")||n.includes("409")?"An account with this email already exists. Try signing in instead.":n.includes("network")||n.includes("fetch")?"Network error. Please check your connection and try again.":n.includes("rate limit")||n.includes("429")?"Too many attempts. Please wait a moment and try again.":a.message||"An error occurred. Please try again."};return e.jsxs("div",{className:"mx-auto w-full min-w-[400px] max-w-md grid gap-6 bg-card p-10 border border-primary-foreground/20",children:[e.jsx("div",{className:"flex justify-center",children:e.jsx("img",{src:"/logos/deco logo.svg",alt:"Deco",className:"h-12 w-12"})}),e.jsx("div",{className:"text-center space-y-1",children:e.jsx("p",{className:"text-sm text-foreground/70",children:i?"Create your account":"Login or signup below"})}),I&&e.jsx("div",{className:"rounded-xl bg-destructive/10 p-3 text-sm text-destructive text-center",children:A(I)}),t.enabled&&e.jsxs("form",{onSubmit:S,className:"grid gap-4",children:[e.jsx("div",{className:b("overflow-hidden transition-all duration-300 ease-[cubic-bezier(0.075,0.82,0.165,1)]",i?"max-h-[200px] opacity-100 translate-y-0":"max-h-0 opacity-0 -translate-y-2"),children:e.jsxs("div",{className:b("p-1",!i&&"pointer-events-none"),children:[e.jsx("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Name"}),e.jsx(E,{type:"text",placeholder:"Your name",value:l,onChange:_(v),required:!0,disabled:f||!i,"aria-hidden":!i})]})}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Email"}),e.jsx(E,{type:"email",placeholder:"you@example.com",value:s,onChange:_(d),onBlur:x,required:!0,disabled:f,"aria-invalid":!!m}),m&&e.jsx("p",{className:"text-xs text-destructive mt-1.5",children:m})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Password"}),e.jsx(E,{type:"password",placeholder:"••••••••",value:o,onChange:_(u),required:!0,disabled:f})]}),e.jsx("div",{className:b("overflow-hidden transition-all duration-300 ease-[cubic-bezier(0.075,0.82,0.165,1)]",w?"max-h-[100px] opacity-100 translate-y-0":"max-h-0 opacity-0 -translate-y-2"),children:e.jsx("div",{className:b("p-1",!w&&"pointer-events-none"),children:e.jsx(P,{type:"submit",disabled:f||!w,className:b("w-full font-semibold"),size:"lg","aria-hidden":!w,children:f?i?"Creating account...":"Signing in...":"Continue"})})})]}),e.jsx("div",{className:"text-center",children:e.jsx(P,{type:"button",variant:"link",onClick:()=>{N(!i),v(""),h(""),g.reset()},disabled:f,className:"text-sm text-muted-foreground hover:text-foreground",children:i?"Already have an account? Sign in":"Don't have an account? Sign up"})}),e.jsxs("div",{className:"flex justify-between text-xs text-muted-foreground pt-4",children:[e.jsx("a",{href:"https://www.decocms.com/terms-of-use",target:"_blank",rel:"noopener noreferrer",className:"hover:text-foreground transition-colors",children:"Terms of Service"}),e.jsx("a",{href:"https://www.decocms.com/privacy-policy",target:"_blank",rel:"noopener noreferrer",className:"hover:text-foreground transition-colors",children:"Privacy Policy"})]})]})}function M(r){if(!r.client_id||r.response_type!=="code")return null;const t=new URLSearchParams;return r.client_id&&t.set("client_id",r.client_id),r.redirect_uri&&t.set("redirect_uri",r.redirect_uri),r.response_type&&t.set("response_type",r.response_type),r.state&&t.set("state",r.state),r.scope&&t.set("scope",r.scope),r.code_challenge&&t.set("code_challenge",r.code_challenge),r.code_challenge_method&&t.set("code_challenge_method",r.code_challenge_method),`/api/auth/mcp/authorize?${t.toString()}`}function q(r){const t=U.c(5),{callbackURL:s,providerId:d}=r;let o,u;t[0]!==s||t[1]!==d?(o=()=>{(async()=>await j.signIn.sso({providerId:d,callbackURL:s}))()},u=[d,s],t[0]=s,t[1]=d,t[2]=o,t[3]=u):(o=t[2],u=t[3]),p.useEffect(o,u);let l;return t[4]===Symbol.for("react.memo_cache_sentinel")?(l=e.jsx(L,{}),t[4]=l):l=t[4],l}function F(){const r=j.useSession(),t=z({from:"/login"}),{next:s="/",client_id:d,redirect_uri:o,response_type:u,state:l,scope:v,code_challenge:i,code_challenge_method:N}=t,{sso:m,emailAndPassword:h,magicLink:g,socialProviders:y}=k(),x=M({client_id:d,redirect_uri:o,response_type:u,state:l,scope:v,code_challenge:i,code_challenge_method:N}),S=x||s;return r.data?x?(window.location.href=x,e.jsx(L,{})):e.jsx(R,{to:s}):m.enabled?e.jsx(q,{callbackURL:S,providerId:m.providerId}):h.enabled||g.enabled||y.enabled?e.jsxs("main",{className:"relative flex min-h-screen items-center justify-center bg-gradient-to-br from-primary to-primary/75 p-4",children:[e.jsx("div",{className:"absolute inset-0",style:{backgroundImage:"radial-gradient(circle, var(--primary-foreground) 1px, transparent 1px)",backgroundSize:"16px 16px",opacity:.15}}),e.jsxs("div",{className:"relative z-10",children:[e.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-screen h-px bg-primary-foreground/15"}),e.jsx("div",{className:"absolute bottom-0 left-1/2 -translate-x-1/2 w-screen h-px bg-primary-foreground/15"}),e.jsx("div",{className:"absolute left-0 top-1/2 -translate-y-1/2 w-px h-screen bg-primary-foreground/15"}),e.jsx("div",{className:"absolute right-0 top-1/2 -translate-y-1/2 w-px h-screen bg-primary-foreground/15"}),e.jsx(B,{redirectUrl:x})]})]}):e.jsx("div",{children:"No login options available"})}export{F as default};
@@ -1 +1 @@
1
- import{O as T,Q as V,V as P,H as $}from"./auth-B5ky5TwC.js";function A(n){let e=0;for(let t=0;t<n.length;t++){const o=n.charCodeAt(t);e=(e<<5)-e+o,e=e&e}return Math.abs(e).toString(16)}const U=new Map,I="mcp:oauth:callback:";class L{serverUrl;_clientMetadata;_redirectUrl;_state=null;_codeVerifier=null;_clientInfo=null;_tokens=null;constructor(e){this.serverUrl=e.serverUrl,this._redirectUrl=e.callbackUrl??`${window.location.origin}/oauth/callback`;const t=e.scope?Array.isArray(e.scope)?e.scope.join(" "):e.scope:void 0;this._clientMetadata={redirect_uris:[this._redirectUrl],token_endpoint_auth_method:"none",grant_types:["authorization_code","refresh_token"],response_types:["code"],client_name:e.clientName??"@decocms/mesh MCP client",...t&&{scope:t}},U.set(A(this.serverUrl),this)}get redirectUrl(){return this._redirectUrl}get clientMetadata(){return this._clientMetadata}state(){return this._state||(this._state=crypto.randomUUID()),this._state}getStoredState(){return this._state}clientInformation(){return this._clientInfo??void 0}saveClientInformation(e){this._clientInfo=e}tokens(){return this._tokens??void 0}saveTokens(e){this._tokens=e}redirectToAuthorization(e){const a=window.screenX+(window.outerWidth-600)/2,s=window.screenY+(window.outerHeight-700)/2;window.open(e.toString(),"mcp-oauth",`width=600,height=700,left=${a},top=${s},popup=yes`)}saveCodeVerifier(e){this._codeVerifier=e}codeVerifier(){if(!this._codeVerifier)throw new Error("Code verifier not found");return this._codeVerifier}invalidateCredentials(){this._clientInfo=null,this._tokens=null,this._codeVerifier=null,this._state=null}getServerUrl(){return this.serverUrl}cleanup(){U.delete(A(this.serverUrl))}}async function x(n){const e=new URL(`/mcp/${n.connectionId}`,window.location.origin),t=new L({serverUrl:e.href,clientName:n.clientName,clientUri:n.clientUri,callbackUrl:n.callbackUrl,scope:n.scope});try{const o=new Promise((r,c)=>{const E=n.timeout||12e4;let w,f=!1;const O=t.state(),_=`${I}${O}`,l=()=>{if(!f){f=!0,window.removeEventListener("message",m),window.removeEventListener("storage",g),clearTimeout(w);try{localStorage.removeItem(_)}catch{}}},k=async i=>{if(f)return;if(!i.success){l(),c(new Error(i.error||"OAuth authentication failed"));return}const{code:h,state:b}=i;if(!h){l(),c(new Error("Missing authorization code"));return}if(t.getStoredState()!==b){l(),c(new Error("OAuth state mismatch - possible CSRF attack"));return}try{const S=(await T(e))?.authorization_servers?.[0]||e,y=await V(S),d=t.clientInformation();if(!d){l(),c(new Error("Client information not found"));return}const C=t.codeVerifier(),M=await P(S,{metadata:y,clientInformation:d,authorizationCode:h,codeVerifier:C,redirectUri:t.redirectUrl,resource:new URL(e)});l(),r({tokens:M,clientId:d.client_id??null,clientSecret:"client_secret"in d?d.client_secret:null,tokenEndpoint:y?.token_endpoint??null})}catch(v){l(),c(v)}},m=async i=>{i.origin===window.location.origin&&i.data?.type==="mcp:oauth:callback"&&await k(i.data)},g=async i=>{if(!(i.key!==_||!i.newValue))try{const h=JSON.parse(i.newValue);await k(h)}catch{}};window.addEventListener("message",m),window.addEventListener("storage",g),w=setTimeout(()=>{l(),c(new Error("OAuth authentication timeout"))},E)});if(await $(t,{serverUrl:e})==="REDIRECT"){const r=await o;return{token:r.tokens.access_token,tokenInfo:{accessToken:r.tokens.access_token,refreshToken:r.tokens.refresh_token??null,expiresIn:r.tokens.expires_in??null,scope:r.tokens.scope??null,clientId:r.clientId,clientSecret:r.clientSecret,tokenEndpoint:r.tokenEndpoint},error:null}}const s=t.tokens(),u=t.clientInformation();return{token:s?.access_token||null,tokenInfo:s?{accessToken:s.access_token,refreshToken:s.refresh_token??null,expiresIn:s.expires_in??null,scope:s.scope??null,clientId:u?.client_id??null,clientSecret:u&&"client_secret"in u?u.client_secret:null,tokenEndpoint:null}:null,error:null}}catch(o){return{token:null,tokenInfo:null,error:o instanceof Error?o.message:String(o)}}finally{t.cleanup()}}function p(n,e){if(window.opener&&!window.opener.closed)return window.opener.postMessage(n,window.location.origin),!0;if(e)try{const t=`${I}${e}`;return localStorage.setItem(t,JSON.stringify(n)),!0}catch{}return!1}async function N(){const n=new URLSearchParams(window.location.search),e=n.get("code");let t=n.get("state");const o=n.get("error"),a=n.get("error_description");let s=t;if(t)try{const r=atob(t),c=JSON.parse(r);c.clientState&&(s=c.clientState)}catch{}if(o){const r=a||o;return p({type:"mcp:oauth:callback",success:!1,error:r},s),{success:!1,error:r}}if(!e||!t){const r="Missing code or state parameter";return p({type:"mcp:oauth:callback",success:!1,error:r},s),{success:!1,error:r}}return t=s||t,p({type:"mcp:oauth:callback",success:!0,code:e,state:t},t)?{success:!0}:{success:!1,error:"Parent window not available"}}async function H({url:n,token:e}){try{const t=new Headers;t.set("Content-Type","application/json"),t.set("Accept","application/json, text/event-stream");const o=await fetch(n,{method:"POST",headers:t,body:JSON.stringify({jsonrpc:"2.0",id:1,method:"initialize",params:{protocolVersion:"2025-06-18",capabilities:{},clientInfo:{name:"@decocms/mesh MCP client",version:"1.0.0"}}})});if(o.ok)return{isAuthenticated:!0,supportsOAuth:!0};let a;try{const r=await o.json();a=r.error||r.message}catch{}return o.status>=500?{isAuthenticated:!1,supportsOAuth:!1,error:a||`HTTP ${o.status}`,isServerError:!0}:{isAuthenticated:!1,supportsOAuth:!!o.headers.get("WWW-Authenticate"),error:a||`HTTP ${o.status}`}}catch(t){return console.error("[isConnectionAuthenticated] Error:",t),{isAuthenticated:!1,supportsOAuth:!1,error:t.message}}}export{x as a,N as h,H as i};
1
+ import{O as T,Q as V,V as P,H as $}from"./auth-m66JRmI1.js";function A(n){let e=0;for(let t=0;t<n.length;t++){const o=n.charCodeAt(t);e=(e<<5)-e+o,e=e&e}return Math.abs(e).toString(16)}const U=new Map,I="mcp:oauth:callback:";class L{serverUrl;_clientMetadata;_redirectUrl;_state=null;_codeVerifier=null;_clientInfo=null;_tokens=null;constructor(e){this.serverUrl=e.serverUrl,this._redirectUrl=e.callbackUrl??`${window.location.origin}/oauth/callback`;const t=e.scope?Array.isArray(e.scope)?e.scope.join(" "):e.scope:void 0;this._clientMetadata={redirect_uris:[this._redirectUrl],token_endpoint_auth_method:"none",grant_types:["authorization_code","refresh_token"],response_types:["code"],client_name:e.clientName??"@decocms/mesh MCP client",...t&&{scope:t}},U.set(A(this.serverUrl),this)}get redirectUrl(){return this._redirectUrl}get clientMetadata(){return this._clientMetadata}state(){return this._state||(this._state=crypto.randomUUID()),this._state}getStoredState(){return this._state}clientInformation(){return this._clientInfo??void 0}saveClientInformation(e){this._clientInfo=e}tokens(){return this._tokens??void 0}saveTokens(e){this._tokens=e}redirectToAuthorization(e){const a=window.screenX+(window.outerWidth-600)/2,s=window.screenY+(window.outerHeight-700)/2;window.open(e.toString(),"mcp-oauth",`width=600,height=700,left=${a},top=${s},popup=yes`)}saveCodeVerifier(e){this._codeVerifier=e}codeVerifier(){if(!this._codeVerifier)throw new Error("Code verifier not found");return this._codeVerifier}invalidateCredentials(){this._clientInfo=null,this._tokens=null,this._codeVerifier=null,this._state=null}getServerUrl(){return this.serverUrl}cleanup(){U.delete(A(this.serverUrl))}}async function x(n){const e=new URL(`/mcp/${n.connectionId}`,window.location.origin),t=new L({serverUrl:e.href,clientName:n.clientName,clientUri:n.clientUri,callbackUrl:n.callbackUrl,scope:n.scope});try{const o=new Promise((r,c)=>{const E=n.timeout||12e4;let w,f=!1;const O=t.state(),_=`${I}${O}`,l=()=>{if(!f){f=!0,window.removeEventListener("message",m),window.removeEventListener("storage",g),clearTimeout(w);try{localStorage.removeItem(_)}catch{}}},k=async i=>{if(f)return;if(!i.success){l(),c(new Error(i.error||"OAuth authentication failed"));return}const{code:h,state:b}=i;if(!h){l(),c(new Error("Missing authorization code"));return}if(t.getStoredState()!==b){l(),c(new Error("OAuth state mismatch - possible CSRF attack"));return}try{const S=(await T(e))?.authorization_servers?.[0]||e,y=await V(S),d=t.clientInformation();if(!d){l(),c(new Error("Client information not found"));return}const C=t.codeVerifier(),M=await P(S,{metadata:y,clientInformation:d,authorizationCode:h,codeVerifier:C,redirectUri:t.redirectUrl,resource:new URL(e)});l(),r({tokens:M,clientId:d.client_id??null,clientSecret:"client_secret"in d?d.client_secret:null,tokenEndpoint:y?.token_endpoint??null})}catch(v){l(),c(v)}},m=async i=>{i.origin===window.location.origin&&i.data?.type==="mcp:oauth:callback"&&await k(i.data)},g=async i=>{if(!(i.key!==_||!i.newValue))try{const h=JSON.parse(i.newValue);await k(h)}catch{}};window.addEventListener("message",m),window.addEventListener("storage",g),w=setTimeout(()=>{l(),c(new Error("OAuth authentication timeout"))},E)});if(await $(t,{serverUrl:e})==="REDIRECT"){const r=await o;return{token:r.tokens.access_token,tokenInfo:{accessToken:r.tokens.access_token,refreshToken:r.tokens.refresh_token??null,expiresIn:r.tokens.expires_in??null,scope:r.tokens.scope??null,clientId:r.clientId,clientSecret:r.clientSecret,tokenEndpoint:r.tokenEndpoint},error:null}}const s=t.tokens(),u=t.clientInformation();return{token:s?.access_token||null,tokenInfo:s?{accessToken:s.access_token,refreshToken:s.refresh_token??null,expiresIn:s.expires_in??null,scope:s.scope??null,clientId:u?.client_id??null,clientSecret:u&&"client_secret"in u?u.client_secret:null,tokenEndpoint:null}:null,error:null}}catch(o){return{token:null,tokenInfo:null,error:o instanceof Error?o.message:String(o)}}finally{t.cleanup()}}function p(n,e){if(window.opener&&!window.opener.closed)return window.opener.postMessage(n,window.location.origin),!0;if(e)try{const t=`${I}${e}`;return localStorage.setItem(t,JSON.stringify(n)),!0}catch{}return!1}async function N(){const n=new URLSearchParams(window.location.search),e=n.get("code");let t=n.get("state");const o=n.get("error"),a=n.get("error_description");let s=t;if(t)try{const r=atob(t),c=JSON.parse(r);c.clientState&&(s=c.clientState)}catch{}if(o){const r=a||o;return p({type:"mcp:oauth:callback",success:!1,error:r},s),{success:!1,error:r}}if(!e||!t){const r="Missing code or state parameter";return p({type:"mcp:oauth:callback",success:!1,error:r},s),{success:!1,error:r}}return t=s||t,p({type:"mcp:oauth:callback",success:!0,code:e,state:t},t)?{success:!0}:{success:!1,error:"Parent window not available"}}async function H({url:n,token:e}){try{const t=new Headers;t.set("Content-Type","application/json"),t.set("Accept","application/json, text/event-stream");const o=await fetch(n,{method:"POST",headers:t,body:JSON.stringify({jsonrpc:"2.0",id:1,method:"initialize",params:{protocolVersion:"2025-06-18",capabilities:{},clientInfo:{name:"@decocms/mesh MCP client",version:"1.0.0"}}})});if(o.ok)return{isAuthenticated:!0,supportsOAuth:!0};let a;try{const r=await o.json();a=r.error||r.message}catch{}return o.status>=500?{isAuthenticated:!1,supportsOAuth:!1,error:a||`HTTP ${o.status}`,isServerError:!0}:{isAuthenticated:!1,supportsOAuth:!!o.headers.get("WWW-Authenticate"),error:a||`HTTP ${o.status}`}}catch(t){return console.error("[isConnectionAuthenticated] Error:",t),{isAuthenticated:!1,supportsOAuth:!1,error:t.message}}}export{x as a,N as h,H as i};
@@ -1 +1 @@
1
- import{r as E,c as M,j as s,h as ve,d as Te,b as _e,a as Ie,t as he}from"./index-C42QK8hz.js";import{i as Me}from"./AlertCircle-DS3woffv.js";import{i as je}from"./Loading01-_oFW2JNJ.js";import{B as ie}from"./input-DxnDBmuJ.js";import{i as Pe}from"./ArrowLeft-D2fGgQyc.js";import{I as ye,E as Le,b as De,u as Ee,d as $e,c as Ue}from"./use-connection-CD7OAk7L.js";import{t as Ve}from"./ChevronDown-D3DcMPHu.js";import{s as ge}from"./Plus-FlxbOuMX.js";import{b as Re,D as ze,a as Ae,c as Be}from"./dropdown-menu-BVwO0hZx.js";import{n as be}from"./LinkExternal01-DaWdwcWA.js";import{T as Ge,R as Oe}from"./tools-list-Bgq8z3Q2.js";import{R as We}from"./resource-tabs-BEIxRUtB.js";import{a as Fe}from"./use-binding-CpFrN3sc.js";import{u as He}from"./use-tool-call-3UqP0ScZ.js";import{u as Ze}from"./use-mcp-B4Ldjn0r.js";import{u as Ne}from"./project-context-provider-D9nZUGnc.js";import{e as Ke}from"./extract-connection-data-BI7D_yAD.js";import{s as qe}from"./slugify-CEUa2lfQ.js";import{e as Je,g as Qe}from"./github-icon-Dp3wHhYE.js";import{f as Xe,g as Ye,c as et}from"./registry-utils-B7t_ZBUi.js";import{e as tt}from"./server-name-C3ttWdyD.js";import{i as st}from"./InfoCircle-C37WJXSN.js";import"./ChevronRight-BODSq5G5.js";import"./useQuery-CaL9aChr.js";import"./File06-l3h9AVPx.js";import"./collection-display-button-DPE08pwq.js";import"./Grid01-BFWxtLBX.js";import"./view-mode-toggle-B13uQDqD.js";import"./collection-search-C3TCN4Mb.js";import"./collection-table-wrapper-W9a8ZvDr.js";import"./card-DoMPrO_z.js";import"./layout-DXdXITg6.js";import"./badge-Cd9ypVQ7.js";import"./auth-B5ky5TwC.js";import"./constants-B1MsiORH.js";import"./generate-id-Dyweu44Y.js";const Ce=({size:t=24,color:e="currentColor",...r})=>E.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},E.createElement("path",{d:"m7.5 12 3 3 6-6m5.5 3c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z"}));Ce.displayName="CheckCircle";const we=({size:t=24,color:e="currentColor",...r})=>E.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},E.createElement("path",{d:"m21 21-3.5-3.5m2.5-6a8.5 8.5 0 1 1-17 0 8.5 8.5 0 0 1 17 0Z"}));we.displayName="SearchLg";function rt(t){const e=M.c(3),{message:r}=t,o=r===void 0?"Loading MCP Server details...":r;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(je,{size:48,className:"animate-spin mb-4"}),e[0]=n):n=e[0];let i;return e[1]!==o?(i=s.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[n,s.jsx("p",{className:"text-sm text-muted-foreground",children:o})]}),e[1]=o,e[2]=i):i=e[2],i}function ot(t){const e=M.c(9),{error:r,onBack:o}=t,n=r instanceof Error?r.message:r;let i,d;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(Me,{size:48,className:"text-destructive mb-4"}),d=s.jsx("h3",{className:"text-lg font-medium mb-2",children:"Error loading MCP Server"}),e[0]=i,e[1]=d):(i=e[0],d=e[1]);let a;e[2]!==n?(a=s.jsx("p",{className:"text-muted-foreground max-w-md text-center",children:n}),e[2]=n,e[3]=a):a=e[3];let l;e[4]!==o?(l=s.jsx("button",{onClick:o,className:"mt-4 px-4 py-2 bg-primary text-primary-foreground rounded-lg hover:bg-primary/90 transition-colors",children:"Go Back"}),e[4]=o,e[5]=l):l=e[5];let f;return e[6]!==a||e[7]!==l?(f=s.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[i,d,a,l]}),e[6]=a,e[7]=l,e[8]=f):f=e[8],f}function nt(t){const e=M.c(5),{onBack:r}=t;let o,n,i;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(we,{size:48,className:"text-muted-foreground mb-4"}),n=s.jsx("h3",{className:"text-lg font-medium mb-2",children:"MCP Server not found"}),i=s.jsx("p",{className:"text-muted-foreground max-w-md text-center",children:"The MCP Server you're looking for doesn't exist in this store."}),e[0]=o,e[1]=n,e[2]=i):(o=e[0],n=e[1],i=e[2]);let d;return e[3]!==r?(d=s.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[o,n,i,s.jsx("button",{onClick:r,className:"mt-4 px-4 py-2 bg-primary text-primary-foreground rounded-lg hover:bg-primary/90 transition-colors",children:"Go Back to Store"})]}),e[3]=r,e[4]=d):d=e[4],d}function it(t){const e=M.c(3),{onBack:r}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(Pe,{}),e[0]=o):o=e[0];let n;return e[1]!==r?(n=s.jsx("div",{className:"flex items-center h-12 border-b border-border shrink-0",children:s.jsx("div",{className:"flex h-full px-2 border-r items-center",children:s.jsx(ie,{variant:"ghost",size:"icon",className:"items-center size-8 text-muted-foreground",onClick:r,"aria-label":"Go back",children:o})})}),e[1]=r,e[2]=n):n=e[2],n}function lt(t){const e=M.c(30),{data:r,itemVersions:o,onInstall:n,canInstall:i,isInstalling:d}=t,a=i===void 0?!0:i,l=d===void 0?!1:d,[f,b]=E.useState(0);let h;e[0]!==n?(h=j=>{b(j),n(j)},e[0]=n,e[1]=h):h=e[1];const u=h;let x;e[2]!==r.icon||e[3]!==r.name?(x=s.jsx(ye,{icon:r.icon,name:r.name,size:"lg",className:"shrink-0 shadow-sm"}),e[2]=r.icon,e[3]=r.name,e[4]=x):x=e[4];let p;e[5]!==r.name?(p=s.jsx("h1",{className:"text-3xl font-medium",children:r.name}),e[5]=r.name,e[6]=p):p=e[6];let g;e[7]!==r.verified?(g=r.verified&&s.jsx("img",{src:"/verified-badge.svg",alt:"Verified",className:"w-5 h-5 shrink-0"}),e[7]=r.verified,e[8]=g):g=e[8];let N;e[9]!==p||e[10]!==g?(N=s.jsxs("div",{className:"flex items-center gap-2",children:[p,g]}),e[9]=p,e[10]=g,e[11]=N):N=e[11];let C;e[12]!==r.shortDescription?(C=r.shortDescription&&s.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:r.shortDescription}),e[12]=r.shortDescription,e[13]=C):C=e[13];let w;e[14]!==N||e[15]!==C?(w=s.jsxs("div",{className:"flex-1 min-w-0",children:[N,C]}),e[14]=N,e[15]=C,e[16]=w):w=e[16];let S;e[17]!==a||e[18]!==u||e[19]!==l||e[20]!==o||e[21]!==n||e[22]!==f?(S=a?s.jsx("div",{className:"shrink-0",children:o.length>1?s.jsxs("div",{className:"flex",children:[s.jsxs(ie,{variant:"brand",onClick:()=>u(0),disabled:l,className:"shrink-0 rounded-r-none cursor-pointer",children:[s.jsx(ge,{size:20}),l?"Connecting...":"Connect Connection"]}),s.jsxs(Re,{children:[s.jsx(ze,{asChild:!0,children:s.jsx(ie,{variant:"brand",disabled:l,className:"shrink-0 rounded-l-none px-2 border-l-2 border-l-white/50 cursor-pointer",children:s.jsx(Ve,{size:20})})}),s.jsx(Ae,{align:"end",className:"w-56 max-h-[300px] overflow-y-auto",children:o.map((j,m)=>{const _=j._meta?.["io.modelcontextprotocol.registry/official"];return s.jsx(Be,{onClick:()=>u(m),disabled:l,className:"cursor-pointer",children:s.jsxs("div",{className:"flex items-center justify-between gap-2 w-full",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("div",{className:"font-medium text-sm",children:["v",j.server?.version||"unknown"]}),_?.isLatest&&s.jsx("div",{className:"text-xs text-muted-foreground/50 font-semibold",children:"LATEST"})]}),m===f&&s.jsx(Ce,{size:16,className:"text-muted-foreground shrink-0"})]})},m)})})]})]}):s.jsxs(ie,{variant:"brand",onClick:()=>n(),disabled:o.length===0||l,className:"shrink-0",children:[s.jsx(ge,{size:20}),l?"Connecting...":"Connect MCP Server"]})}):s.jsx("div",{className:"shrink-0 px-4 py-2 text-sm text-muted-foreground bg-muted rounded-lg",children:"Cannot be connected"}),e[17]=a,e[18]=u,e[19]=l,e[20]=o,e[21]=n,e[22]=f,e[23]=S):S=e[23];let k;e[24]!==S||e[25]!==w?(k=s.jsxs("div",{className:"flex-1 min-w-0 flex items-center justify-between",children:[w,S]}),e[24]=S,e[25]=w,e[26]=k):k=e[26];let T;return e[27]!==k||e[28]!==x?(T=s.jsxs("div",{className:"flex items-center gap-4 py-8 px-5 border-b border-border",children:[x,k]}),e[27]=k,e[28]=x,e[29]=T):T=e[29],T}function at(t){if(!t)return"—";try{const e=new Date(t);return isNaN(e.getTime())?"—":e.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})}catch{return"—"}}function ct(t){const e=M.c(47),{data:r,publisherInfo:o,selectedItem:n}=t;let i;e[0]!==r.description?(i=r.description&&s.jsxs("div",{className:"px-5 pb-5 border-b border-border",children:[s.jsx("h2",{className:"text-base font-medium mb-3",children:"Overview"}),s.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:r.description})]}),e[0]=r.description,e[1]=i):i=e[1];const d=r.publisher==="io.modelcontextprotocol.registry/official"?"Official Registry":r.publisher;let a;e[2]!==o.logo||e[3]!==d?(a=s.jsx(ye,{icon:o.logo,name:d,size:"sm",className:"shrink-0 shadow-sm"}),e[2]=o.logo,e[3]=d,e[4]=a):a=e[4];let l;e[5]!==r.publisher?(l=r.publisher==="io.modelcontextprotocol.registry/official"?"Official Registry":r.publisher.charAt(0).toUpperCase()+r.publisher.slice(1),e[5]=r.publisher,e[6]=l):l=e[6];let f;e[7]!==l?(f=s.jsx("div",{className:"font-medium",children:l}),e[7]=l,e[8]=f):f=e[8];let b;e[9]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx("div",{className:"text-xs text-muted-foreground",children:"Publisher"}),e[9]=b):b=e[9];let h;e[10]!==f?(h=s.jsxs("div",{children:[f,b]}),e[10]=f,e[11]=h):h=e[11];let u;e[12]!==a||e[13]!==h?(u=s.jsx("div",{className:"px-5 border-b border-border",children:s.jsxs("div",{className:"flex items-center gap-3 py-5",children:[a,h]})}),e[12]=a,e[13]=h,e[14]=u):u=e[14];let x;e[15]!==r.version?(x=r.version&&s.jsxs("div",{className:"flex justify-between items-center text-sm",children:[s.jsx("span",{className:"text-foreground text-sm",children:"Version"}),s.jsxs("span",{className:"text-muted-foreground uppercase text-xs",children:["v",r.version]})]}),e[15]=r.version,e[16]=x):x=e[16];let p;e[17]!==r.tags?(p=r.tags&&r.tags.length>0&&s.jsxs("div",{className:"flex justify-between items-start text-sm",children:[s.jsx("span",{className:"text-foreground text-sm",children:"Tags"}),s.jsx("div",{className:"flex flex-wrap gap-1 justify-end max-w-[60%]",children:r.tags.map(mt)})]}),e[17]=r.tags,e[18]=p):p=e[18];let g;e[19]!==r.categories?(g=r.categories&&r.categories.length>0&&s.jsxs("div",{className:"flex justify-between items-start text-sm",children:[s.jsx("span",{className:"text-foreground text-sm",children:"Categories"}),s.jsx("div",{className:"flex flex-wrap gap-1 justify-end max-w-[60%]",children:r.categories.map(dt)})]}),e[19]=r.categories,e[20]=g):g=e[20];let N;e[21]!==r.connectionType?(N=r.connectionType&&s.jsxs("div",{className:"flex justify-between items-center text-sm",children:[s.jsx("span",{className:"text-foreground text-sm",children:"Connection Type"}),s.jsx("span",{className:"text-muted-foreground uppercase text-xs",children:r.connectionType})]}),e[21]=r.connectionType,e[22]=N):N=e[22];let C;e[23]!==r.schemaVersion?(C=r.schemaVersion&&s.jsxs("div",{className:"flex justify-between items-center text-sm",children:[s.jsx("span",{className:"text-foreground text-sm",children:"Schema Version"}),s.jsx("span",{className:"text-muted-foreground text-xs",children:r.schemaVersion})]}),e[23]=r.schemaVersion,e[24]=C):C=e[24];let w;e[25]!==r.websiteUrl?(w=r.websiteUrl&&s.jsxs("div",{className:"flex justify-between items-center text-sm",children:[s.jsx("span",{className:"text-foreground text-sm",children:"Website"}),s.jsxs("a",{href:r.websiteUrl,target:"_blank",rel:"noopener noreferrer",className:"text-muted-foreground hover:underline flex items-center gap-1 text-xs",children:[s.jsx("span",{children:"Visit"}),s.jsx(be,{size:14})]})]}),e[25]=r.websiteUrl,e[26]=w):w=e[26];let S;e[27]!==r.repository?(S=r.repository?.url&&s.jsxs("div",{className:"flex justify-between items-center text-sm",children:[s.jsx("span",{className:"text-foreground text-sm",children:"Source"}),s.jsxs("a",{href:r.repository.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted-foreground hover:underline flex items-center gap-1 text-xs",children:[s.jsx("span",{children:"GitHub"}),s.jsx(be,{size:14})]})]}),e[27]=r.repository,e[28]=S):S=e[28];let k;e[29]!==p||e[30]!==g||e[31]!==N||e[32]!==C||e[33]!==w||e[34]!==S||e[35]!==x?(k=s.jsxs("div",{className:"px-5 py-5 border-b border-border space-y-4",children:[x,p,g,N,C,w,S]}),e[29]=p,e[30]=g,e[31]=N,e[32]=C,e[33]=w,e[34]=S,e[35]=x,e[36]=k):k=e[36];let T;e[37]===Symbol.for("react.memo_cache_sentinel")?(T=s.jsx("span",{className:"text-foreground text-sm",children:"Last Updated"}),e[37]=T):T=e[37];let j;e[38]!==n.updated_at?(j=at(n.updated_at),e[38]=n.updated_at,e[39]=j):j=e[39];let m;e[40]!==j?(m=s.jsxs("div",{className:"px-5 py-5 text-sm flex justify-between items-center border-b border-border",children:[T,s.jsx("span",{className:"text-muted-foreground uppercase text-xs",children:j})]}),e[40]=j,e[41]=m):m=e[41];let _;return e[42]!==i||e[43]!==k||e[44]!==m||e[45]!==u?(_=s.jsxs("div",{className:"lg:col-span-1 flex flex-col pt-5",children:[i,u,k,m]}),e[42]=i,e[43]=k,e[44]=m,e[45]=u,e[46]=_):_=e[46],_}function dt(t){return s.jsx("span",{className:"text-xs bg-muted px-2 py-0.5 rounded",children:t},t)}function mt(t){return s.jsx("span",{className:"text-xs bg-muted px-2 py-0.5 rounded",children:t},t)}function ft(t){const e=M.c(18),{data:r,availableTabs:o,effectiveActiveTabId:n,effectiveTools:i,isLoadingTools:d,onTabChange:a}=t,l=d===void 0?!1:d;let f;e[0]!==i?(f=i.map(ut),e[0]=i,e[1]=f):f=e[1];const b=f;let h;e[2]!==o||e[3]!==n||e[4]!==a?(h=o.length>0&&s.jsx("div",{className:"px-4 py-2 border-b border-border bg-background",children:s.jsx(We,{tabs:o,activeTab:n,onTabChange:a})}),e[2]=o,e[3]=n,e[4]=a,e[5]=h):h=e[5];let u;e[6]!==n||e[7]!==i.length||e[8]!==l||e[9]!==b?(u=n==="tools"&&s.jsx("div",{className:"flex flex-col flex-1",children:l?s.jsxs("div",{className:"flex items-center justify-center p-8",children:[s.jsx(je,{size:24,className:"animate-spin"}),s.jsx("span",{className:"ml-2 text-sm text-muted-foreground",children:"Loading tools..."})]}):i.length>0?s.jsx(Ge,{tools:b,showToolbar:!1,emptyMessage:"This MCP Server doesn't have any tools."}):s.jsx(Le,{image:null,title:"No tools available",description:"This MCP Server doesn't have any tools."})}),e[6]=n,e[7]=i.length,e[8]=l,e[9]=b,e[10]=u):u=e[10];let x;e[11]!==r?.repository||e[12]!==n?(x=n==="readme"&&s.jsx("div",{className:"flex-1 overflow-y-auto bg-background",children:s.jsx(Oe,{repository:r?.repository})}),e[11]=r?.repository,e[12]=n,e[13]=x):x=e[13];let p;return e[14]!==h||e[15]!==u||e[16]!==x?(p=s.jsxs("div",{className:"lg:col-span-2 flex flex-col border-l border-border",children:[h,u,x]}),e[14]=h,e[15]=u,e[16]=x,e[17]=p):p=e[17],p}function ut(t){const e=t;return{name:e.name||"",description:e.description||void 0}}function xt(t,e){if(!t||!e)return;const r=e.toLowerCase();return t.find(o=>o.app_name?.toLowerCase()===r||o.app_id?.toLowerCase()===r||o.title.toLowerCase()===r)||t.find(o=>o.title.toLowerCase().includes(r))}function pt(t,e,r,o,n){if(!e||e==="Unknown")return{count:0};if(e==="io.modelcontextprotocol.registry/official")return{logo:o?.icon||void 0,count:n??t.length};const i=e.toLowerCase(),d=t.filter(l=>(l._meta?.["io.modelcontextprotocol.registry/official"]?"io.modelcontextprotocol.registry/official":l.publisher||l._meta?.["mcp.mesh"]?.scopeName||"Unknown").toLowerCase()===i);return{logo:r?.icon||d[0]?.publisher_logo||d[0]?.icon||void 0,count:d.length}}function ht(t){const e=t._meta?.["mcp.mesh"],r=t._meta?.["io.modelcontextprotocol.registry/official"],o=t.server,n=Ye(o.remotes?.[0]?.type),i=et(o.$schema),d=r?"io.modelcontextprotocol.registry/official":t.publisher||e?.scopeName||"Unknown",a=Qe(o.repository),l=t.icon||t.image||t.logo||o.icons?.[0]?.src||a||null,f=t.name||t.title||t.server?.title||"Unnamed Item",b=tt(f),h=e?.friendly_name||b,u=e?.mesh_description||t.description||t.summary||o?.description||"",x=e?.short_description||null,p=e?.tags||[],g=e?.categories||[];return{name:h,description:u,shortDescription:x,icon:l,verified:t.verified||e?.verified,publisher:d,version:o.version||null,websiteUrl:o.websiteUrl||null,repository:o.repository||null,schemaVersion:i??null,connectionType:n,connectionUrl:null,remoteUrl:null,tags:p,categories:g,tools:t.tools||o.tools||e?.tools||[],models:t.models||o.models||e?.models||[],emails:t.emails||o.emails||e?.emails||[],analytics:t.analytics||o.analytics||e?.analytics,cdn:t.cdn||o.cdn||e?.cdn}}class gt extends E.Component{state={hasError:!1,error:null};static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,r){console.error("Store MCP server detail error:",e,r)}render(){return this.state.hasError?s.jsx(ot,{error:this.state.error||new Error("Unknown error"),onBack:this.props.onBack}):this.props.children}}function bt(){const t=M.c(70),{org:e}=Ne(),r=ve();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o={strict:!1},t[0]=o):o=t[0];const{appName:n}=Te(o);let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i={strict:!1},t[1]=i):i=t[1];const{registryId:d,serverName:a}=_e(i),[l,f]=E.useState("readme"),b=De(),h=Ee(),{data:u}=Ie.useSession(),x=Fe(h),p=d||x[0]?.id||"",g=$e(p),N=Xe(g?.tools),C=g?.tools&&g.tools.find(Ct)?.name||"",w=g?.tools&&g.tools.find(Nt)?.name||"",S=Ue(p),k=!!a;let T,j;k?(T=C||w,j={name:a}):(T=N,j={});const{data:m}=He({toolCaller:S,toolName:T,toolInputParams:j,scope:p});let _=[],P=[],xe=null;if(m){if(Array.isArray(m))_=m;else if(typeof m=="object"&&m!==null)if("totalCount"in m&&typeof m.totalCount=="number"&&(xe=m.totalCount),"item"in m&&m.item){const c=m.item,I=c.id||"",$=c.server,U=c._meta;let D;t[2]!==c.title||t[3]!==I||t[4]!==$||t[5]!==U?(D=[{id:I,title:c.title,server:$,_meta:U}],t[2]=c.title,t[3]=I,t[4]=$,t[5]=U,t[6]=D):D=t[6],_=D}else{let c;"versions"in m&&Array.isArray(m.versions)?c="versions":"servers"in m&&Array.isArray(m.servers)?c="servers":c=Object.keys(m).find(I=>Array.isArray(m[I])),c&&(_=m[c],(c==="versions"||T?.includes("VERSIONS"))&&(P=_))}}let X;t[7]!==n?(X=c=>{const I=c.name||c.title||c.server.title||"";return qe(I)===n},t[7]=n,t[8]=X):X=t[8];let y=_.find(X);if(!y&&a){let c;t[9]!==a?(c=I=>I.server.name===a||I.name===a||I.title===a,t[9]=a,t[10]=c):c=t[10],y=_.find(c)}const v=y?ht(y):null,le=(v?.tools?.length||0)>0,ae=y?.server?.remotes?.[0]?.url||null,J=!le&&!!ae,Q=Ze({url:J?ae:""}),Y=J&&Q.state==="connecting";let ee;t[11]!==Q||t[12]!==J?(ee=J&&Q.state==="ready"?(Q.tools||[]).map(yt):[],t[11]=Q,t[12]=J,t[13]=ee):ee=t[13];const pe=ee,V=le?v?.tools||[]:pe,Se=xt(h,v?.publisher),ce=v?pt(_,v.publisher,Se,g??null,xe):{count:0},ke=v?.repository?Je(v.repository):null,de=!!v?.repository&&!!ke;let R;t[14]!==de?(R={id:"readme",label:"README",visible:de},t[14]=de,t[15]=R):R=t[15];const me=le||pe.length>0||Y&&!!ae;let z;t[16]!==V.length||t[17]!==me?(z={id:"tools",label:"Tools",count:V.length,visible:me},t[16]=V.length,t[17]=me,t[18]=z):z=t[18];let te;t[19]!==R||t[20]!==z?(te=[R,z].filter(jt),t[19]=R,t[20]=z,t[21]=te):te=t[21];const L=te;let se;t[22]!==l||t[23]!==L?(se=L.find(c=>c.id===l)?l:L.find(vt)?.id||L[0]?.id||"overview",t[22]=l,t[23]=L,t[24]=se):se=t[24];const fe=se;let re;t[25]!==b||t[26]!==P||t[27]!==r||t[28]!==e||t[29]!==y||t[30]!==u?(re=async c=>{const I=P[c??0]||y;if(!I||!e||!u?.user?.id)return;const $=Ke(I,e.id,u.user.id);if(!$.connection_url){he.error("This MCP Server cannot be connected: no connection URL available");return}try{const{id:U}=await b.create.mutateAsync($);r({to:"/$org/mcps/$connectionId",params:{org:e.slug,connectionId:U}})}catch(U){const D=U;he.error(`Failed to connect MCP Server: ${D instanceof Error?D.message:String(D)}`)}},t[25]=b,t[26]=P,t[27]=r,t[28]=e,t[29]=y,t[30]=u,t[31]=re):re=t[31];const ue=re;let oe;t[32]!==r||t[33]!==e.slug?(oe=()=>{r({to:"/$org/store",params:{org:e.slug}})},t[32]=r,t[33]=e.slug,t[34]=oe):oe=t[34];const A=oe;if(!y){let c;return t[35]!==A?(c=s.jsx(nt,{onBack:A}),t[35]=A,t[36]=c):c=t[36],c}if(!v)return null;const B=(y?.server?.remotes?.length??0)>0;let G;t[37]!==A?(G=s.jsx(it,{onBack:A}),t[37]=A,t[38]=G):G=t[38];let O;t[39]!==B?(O=!B&&s.jsxs("div",{className:"mb-6 p-4 bg-amber-50 border border-amber-200 rounded-lg text-sm text-amber-900",children:[s.jsx(st,{size:16,className:"inline mr-2"}),"This MCP Server cannot be connected - no connection method available."]}),t[39]=B,t[40]=O):O=t[40];let W;t[41]!==P||t[42]!==y?(W=P.length>0?P:[y],t[41]=P,t[42]=y,t[43]=W):W=t[43];let F;t[44]!==b.create.isPending||t[45]!==B||t[46]!==v||t[47]!==ue||t[48]!==W?(F=s.jsx(lt,{data:v,itemVersions:W,onInstall:ue,canInstall:B,isInstalling:b.create.isPending}),t[44]=b.create.isPending,t[45]=B,t[46]=v,t[47]=ue,t[48]=W,t[49]=F):F=t[49];let H;t[50]!==v||t[51]!==ce||t[52]!==y?(H=s.jsx(ct,{data:v,publisherInfo:ce,selectedItem:y}),t[50]=v,t[51]=ce,t[52]=y,t[53]=H):H=t[53];let Z;t[54]!==L||t[55]!==v||t[56]!==fe||t[57]!==V||t[58]!==Y?(Z=s.jsx(ft,{data:v,availableTabs:L,effectiveActiveTabId:fe,effectiveTools:V,isLoadingTools:Y,onTabChange:f}),t[54]=L,t[55]=v,t[56]=fe,t[57]=V,t[58]=Y,t[59]=Z):Z=t[59];let K;t[60]!==H||t[61]!==Z?(K=s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 min-h-[677px]",children:[H,Z]}),t[60]=H,t[61]=Z,t[62]=K):K=t[62];let q;t[63]!==O||t[64]!==F||t[65]!==K?(q=s.jsx("div",{className:"flex-1 overflow-y-auto h-full",children:s.jsx("div",{className:"h-full",children:s.jsxs("div",{className:"h-full",children:[O,F,K]})})}),t[63]=O,t[64]=F,t[65]=K,t[66]=q):q=t[66];let ne;return t[67]!==G||t[68]!==q?(ne=s.jsxs("div",{className:"flex flex-col h-full border-l border-border",children:[G,q]}),t[67]=G,t[68]=q,t[69]=ne):ne=t[69],ne}function vt(t){return t.id==="readme"}function jt(t){return t.visible}function yt(t){return{name:t.name,description:t.description}}function Nt(t){return t.name.endsWith("_GET")}function Ct(t){return t.name.endsWith("_VERSIONS")}function is(){const t=M.c(6),{org:e}=Ne(),r=ve();let o;t[0]!==r||t[1]!==e.slug?(o=()=>{r({to:"/$org/store",params:{org:e.slug}})},t[0]=r,t[1]=e.slug,t[2]=o):o=t[2];const n=o;let i;t[3]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(E.Suspense,{fallback:s.jsx(rt,{}),children:s.jsx(bt,{})}),t[3]=i):i=t[3];let d;return t[4]!==n?(d=s.jsx(gt,{onBack:n,children:i}),t[4]=n,t[5]=d):d=t[5],d}export{is as default};
1
+ import{r as E,c as M,j as s,h as ve,d as Te,b as _e,a as Ie,t as he}from"./index-DsWTyaMI.js";import{i as Me}from"./AlertCircle-DAyHhLS6.js";import{i as je}from"./Loading01-BqUL1Os2.js";import{B as ie}from"./input-Bjw47IqN.js";import{i as Pe}from"./ArrowLeft-Bpp_SsGd.js";import{I as ye,E as Le,b as De,u as Ee,d as $e,c as Ue}from"./use-connection-BRzCmTOd.js";import{t as Ve}from"./ChevronDown-CsOv8W2I.js";import{s as ge}from"./Plus-CJASgavw.js";import{b as Re,D as ze,a as Ae,c as Be}from"./dropdown-menu-Dl6PURsy.js";import{n as be}from"./LinkExternal01-31BeOzKc.js";import{T as Ge,R as Oe}from"./tools-list-B6Grd2aY.js";import{R as We}from"./resource-tabs-N7R8QmbK.js";import{a as Fe}from"./use-binding-CocjKJdo.js";import{u as He}from"./use-tool-call-DWmlWS7M.js";import{u as Ze}from"./use-mcp-Xq1C6Xb8.js";import{u as Ne}from"./project-context-provider-4_jnbmhf.js";import{e as Ke}from"./extract-connection-data-BaLXzQ_k.js";import{s as qe}from"./slugify-CEUa2lfQ.js";import{e as Je,g as Qe}from"./github-icon-Dp3wHhYE.js";import{f as Xe,g as Ye,c as et}from"./registry-utils-B7t_ZBUi.js";import{e as tt}from"./server-name-C3ttWdyD.js";import{i as st}from"./InfoCircle-C2iaXmlJ.js";import"./ChevronRight-Boh94iyZ.js";import"./useQuery-BXYZ1U8o.js";import"./File06-l4-3IHqa.js";import"./collection-display-button-BEkWecO6.js";import"./Grid01-COCXYn3t.js";import"./view-mode-toggle-DlhHZSZ6.js";import"./collection-search-Dwhflp6J.js";import"./collection-table-wrapper-Tc6aoQU4.js";import"./card-DPsjHi5_.js";import"./layout-CSrwjVH6.js";import"./badge-BRpJ4D36.js";import"./auth-m66JRmI1.js";import"./constants-DgMd8oVj.js";import"./generate-id-Dyweu44Y.js";const Ce=({size:t=24,color:e="currentColor",...r})=>E.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},E.createElement("path",{d:"m7.5 12 3 3 6-6m5.5 3c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z"}));Ce.displayName="CheckCircle";const we=({size:t=24,color:e="currentColor",...r})=>E.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},E.createElement("path",{d:"m21 21-3.5-3.5m2.5-6a8.5 8.5 0 1 1-17 0 8.5 8.5 0 0 1 17 0Z"}));we.displayName="SearchLg";function rt(t){const e=M.c(3),{message:r}=t,o=r===void 0?"Loading MCP Server details...":r;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(je,{size:48,className:"animate-spin mb-4"}),e[0]=n):n=e[0];let i;return e[1]!==o?(i=s.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[n,s.jsx("p",{className:"text-sm text-muted-foreground",children:o})]}),e[1]=o,e[2]=i):i=e[2],i}function ot(t){const e=M.c(9),{error:r,onBack:o}=t,n=r instanceof Error?r.message:r;let i,d;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(Me,{size:48,className:"text-destructive mb-4"}),d=s.jsx("h3",{className:"text-lg font-medium mb-2",children:"Error loading MCP Server"}),e[0]=i,e[1]=d):(i=e[0],d=e[1]);let a;e[2]!==n?(a=s.jsx("p",{className:"text-muted-foreground max-w-md text-center",children:n}),e[2]=n,e[3]=a):a=e[3];let l;e[4]!==o?(l=s.jsx("button",{onClick:o,className:"mt-4 px-4 py-2 bg-primary text-primary-foreground rounded-lg hover:bg-primary/90 transition-colors",children:"Go Back"}),e[4]=o,e[5]=l):l=e[5];let f;return e[6]!==a||e[7]!==l?(f=s.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[i,d,a,l]}),e[6]=a,e[7]=l,e[8]=f):f=e[8],f}function nt(t){const e=M.c(5),{onBack:r}=t;let o,n,i;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(we,{size:48,className:"text-muted-foreground mb-4"}),n=s.jsx("h3",{className:"text-lg font-medium mb-2",children:"MCP Server not found"}),i=s.jsx("p",{className:"text-muted-foreground max-w-md text-center",children:"The MCP Server you're looking for doesn't exist in this store."}),e[0]=o,e[1]=n,e[2]=i):(o=e[0],n=e[1],i=e[2]);let d;return e[3]!==r?(d=s.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[o,n,i,s.jsx("button",{onClick:r,className:"mt-4 px-4 py-2 bg-primary text-primary-foreground rounded-lg hover:bg-primary/90 transition-colors",children:"Go Back to Store"})]}),e[3]=r,e[4]=d):d=e[4],d}function it(t){const e=M.c(3),{onBack:r}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(Pe,{}),e[0]=o):o=e[0];let n;return e[1]!==r?(n=s.jsx("div",{className:"flex items-center h-12 border-b border-border shrink-0",children:s.jsx("div",{className:"flex h-full px-2 border-r items-center",children:s.jsx(ie,{variant:"ghost",size:"icon",className:"items-center size-8 text-muted-foreground",onClick:r,"aria-label":"Go back",children:o})})}),e[1]=r,e[2]=n):n=e[2],n}function lt(t){const e=M.c(30),{data:r,itemVersions:o,onInstall:n,canInstall:i,isInstalling:d}=t,a=i===void 0?!0:i,l=d===void 0?!1:d,[f,b]=E.useState(0);let h;e[0]!==n?(h=j=>{b(j),n(j)},e[0]=n,e[1]=h):h=e[1];const u=h;let x;e[2]!==r.icon||e[3]!==r.name?(x=s.jsx(ye,{icon:r.icon,name:r.name,size:"lg",className:"shrink-0 shadow-sm"}),e[2]=r.icon,e[3]=r.name,e[4]=x):x=e[4];let p;e[5]!==r.name?(p=s.jsx("h1",{className:"text-3xl font-medium",children:r.name}),e[5]=r.name,e[6]=p):p=e[6];let g;e[7]!==r.verified?(g=r.verified&&s.jsx("img",{src:"/verified-badge.svg",alt:"Verified",className:"w-5 h-5 shrink-0"}),e[7]=r.verified,e[8]=g):g=e[8];let N;e[9]!==p||e[10]!==g?(N=s.jsxs("div",{className:"flex items-center gap-2",children:[p,g]}),e[9]=p,e[10]=g,e[11]=N):N=e[11];let C;e[12]!==r.shortDescription?(C=r.shortDescription&&s.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:r.shortDescription}),e[12]=r.shortDescription,e[13]=C):C=e[13];let w;e[14]!==N||e[15]!==C?(w=s.jsxs("div",{className:"flex-1 min-w-0",children:[N,C]}),e[14]=N,e[15]=C,e[16]=w):w=e[16];let S;e[17]!==a||e[18]!==u||e[19]!==l||e[20]!==o||e[21]!==n||e[22]!==f?(S=a?s.jsx("div",{className:"shrink-0",children:o.length>1?s.jsxs("div",{className:"flex",children:[s.jsxs(ie,{variant:"brand",onClick:()=>u(0),disabled:l,className:"shrink-0 rounded-r-none cursor-pointer",children:[s.jsx(ge,{size:20}),l?"Connecting...":"Connect Connection"]}),s.jsxs(Re,{children:[s.jsx(ze,{asChild:!0,children:s.jsx(ie,{variant:"brand",disabled:l,className:"shrink-0 rounded-l-none px-2 border-l-2 border-l-white/50 cursor-pointer",children:s.jsx(Ve,{size:20})})}),s.jsx(Ae,{align:"end",className:"w-56 max-h-[300px] overflow-y-auto",children:o.map((j,m)=>{const _=j._meta?.["io.modelcontextprotocol.registry/official"];return s.jsx(Be,{onClick:()=>u(m),disabled:l,className:"cursor-pointer",children:s.jsxs("div",{className:"flex items-center justify-between gap-2 w-full",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("div",{className:"font-medium text-sm",children:["v",j.server?.version||"unknown"]}),_?.isLatest&&s.jsx("div",{className:"text-xs text-muted-foreground/50 font-semibold",children:"LATEST"})]}),m===f&&s.jsx(Ce,{size:16,className:"text-muted-foreground shrink-0"})]})},m)})})]})]}):s.jsxs(ie,{variant:"brand",onClick:()=>n(),disabled:o.length===0||l,className:"shrink-0",children:[s.jsx(ge,{size:20}),l?"Connecting...":"Connect MCP Server"]})}):s.jsx("div",{className:"shrink-0 px-4 py-2 text-sm text-muted-foreground bg-muted rounded-lg",children:"Cannot be connected"}),e[17]=a,e[18]=u,e[19]=l,e[20]=o,e[21]=n,e[22]=f,e[23]=S):S=e[23];let k;e[24]!==S||e[25]!==w?(k=s.jsxs("div",{className:"flex-1 min-w-0 flex items-center justify-between",children:[w,S]}),e[24]=S,e[25]=w,e[26]=k):k=e[26];let T;return e[27]!==k||e[28]!==x?(T=s.jsxs("div",{className:"flex items-center gap-4 py-8 px-5 border-b border-border",children:[x,k]}),e[27]=k,e[28]=x,e[29]=T):T=e[29],T}function at(t){if(!t)return"—";try{const e=new Date(t);return isNaN(e.getTime())?"—":e.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})}catch{return"—"}}function ct(t){const e=M.c(47),{data:r,publisherInfo:o,selectedItem:n}=t;let i;e[0]!==r.description?(i=r.description&&s.jsxs("div",{className:"px-5 pb-5 border-b border-border",children:[s.jsx("h2",{className:"text-base font-medium mb-3",children:"Overview"}),s.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:r.description})]}),e[0]=r.description,e[1]=i):i=e[1];const d=r.publisher==="io.modelcontextprotocol.registry/official"?"Official Registry":r.publisher;let a;e[2]!==o.logo||e[3]!==d?(a=s.jsx(ye,{icon:o.logo,name:d,size:"sm",className:"shrink-0 shadow-sm"}),e[2]=o.logo,e[3]=d,e[4]=a):a=e[4];let l;e[5]!==r.publisher?(l=r.publisher==="io.modelcontextprotocol.registry/official"?"Official Registry":r.publisher.charAt(0).toUpperCase()+r.publisher.slice(1),e[5]=r.publisher,e[6]=l):l=e[6];let f;e[7]!==l?(f=s.jsx("div",{className:"font-medium",children:l}),e[7]=l,e[8]=f):f=e[8];let b;e[9]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx("div",{className:"text-xs text-muted-foreground",children:"Publisher"}),e[9]=b):b=e[9];let h;e[10]!==f?(h=s.jsxs("div",{children:[f,b]}),e[10]=f,e[11]=h):h=e[11];let u;e[12]!==a||e[13]!==h?(u=s.jsx("div",{className:"px-5 border-b border-border",children:s.jsxs("div",{className:"flex items-center gap-3 py-5",children:[a,h]})}),e[12]=a,e[13]=h,e[14]=u):u=e[14];let x;e[15]!==r.version?(x=r.version&&s.jsxs("div",{className:"flex justify-between items-center text-sm",children:[s.jsx("span",{className:"text-foreground text-sm",children:"Version"}),s.jsxs("span",{className:"text-muted-foreground uppercase text-xs",children:["v",r.version]})]}),e[15]=r.version,e[16]=x):x=e[16];let p;e[17]!==r.tags?(p=r.tags&&r.tags.length>0&&s.jsxs("div",{className:"flex justify-between items-start text-sm",children:[s.jsx("span",{className:"text-foreground text-sm",children:"Tags"}),s.jsx("div",{className:"flex flex-wrap gap-1 justify-end max-w-[60%]",children:r.tags.map(mt)})]}),e[17]=r.tags,e[18]=p):p=e[18];let g;e[19]!==r.categories?(g=r.categories&&r.categories.length>0&&s.jsxs("div",{className:"flex justify-between items-start text-sm",children:[s.jsx("span",{className:"text-foreground text-sm",children:"Categories"}),s.jsx("div",{className:"flex flex-wrap gap-1 justify-end max-w-[60%]",children:r.categories.map(dt)})]}),e[19]=r.categories,e[20]=g):g=e[20];let N;e[21]!==r.connectionType?(N=r.connectionType&&s.jsxs("div",{className:"flex justify-between items-center text-sm",children:[s.jsx("span",{className:"text-foreground text-sm",children:"Connection Type"}),s.jsx("span",{className:"text-muted-foreground uppercase text-xs",children:r.connectionType})]}),e[21]=r.connectionType,e[22]=N):N=e[22];let C;e[23]!==r.schemaVersion?(C=r.schemaVersion&&s.jsxs("div",{className:"flex justify-between items-center text-sm",children:[s.jsx("span",{className:"text-foreground text-sm",children:"Schema Version"}),s.jsx("span",{className:"text-muted-foreground text-xs",children:r.schemaVersion})]}),e[23]=r.schemaVersion,e[24]=C):C=e[24];let w;e[25]!==r.websiteUrl?(w=r.websiteUrl&&s.jsxs("div",{className:"flex justify-between items-center text-sm",children:[s.jsx("span",{className:"text-foreground text-sm",children:"Website"}),s.jsxs("a",{href:r.websiteUrl,target:"_blank",rel:"noopener noreferrer",className:"text-muted-foreground hover:underline flex items-center gap-1 text-xs",children:[s.jsx("span",{children:"Visit"}),s.jsx(be,{size:14})]})]}),e[25]=r.websiteUrl,e[26]=w):w=e[26];let S;e[27]!==r.repository?(S=r.repository?.url&&s.jsxs("div",{className:"flex justify-between items-center text-sm",children:[s.jsx("span",{className:"text-foreground text-sm",children:"Source"}),s.jsxs("a",{href:r.repository.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted-foreground hover:underline flex items-center gap-1 text-xs",children:[s.jsx("span",{children:"GitHub"}),s.jsx(be,{size:14})]})]}),e[27]=r.repository,e[28]=S):S=e[28];let k;e[29]!==p||e[30]!==g||e[31]!==N||e[32]!==C||e[33]!==w||e[34]!==S||e[35]!==x?(k=s.jsxs("div",{className:"px-5 py-5 border-b border-border space-y-4",children:[x,p,g,N,C,w,S]}),e[29]=p,e[30]=g,e[31]=N,e[32]=C,e[33]=w,e[34]=S,e[35]=x,e[36]=k):k=e[36];let T;e[37]===Symbol.for("react.memo_cache_sentinel")?(T=s.jsx("span",{className:"text-foreground text-sm",children:"Last Updated"}),e[37]=T):T=e[37];let j;e[38]!==n.updated_at?(j=at(n.updated_at),e[38]=n.updated_at,e[39]=j):j=e[39];let m;e[40]!==j?(m=s.jsxs("div",{className:"px-5 py-5 text-sm flex justify-between items-center border-b border-border",children:[T,s.jsx("span",{className:"text-muted-foreground uppercase text-xs",children:j})]}),e[40]=j,e[41]=m):m=e[41];let _;return e[42]!==i||e[43]!==k||e[44]!==m||e[45]!==u?(_=s.jsxs("div",{className:"lg:col-span-1 flex flex-col pt-5",children:[i,u,k,m]}),e[42]=i,e[43]=k,e[44]=m,e[45]=u,e[46]=_):_=e[46],_}function dt(t){return s.jsx("span",{className:"text-xs bg-muted px-2 py-0.5 rounded",children:t},t)}function mt(t){return s.jsx("span",{className:"text-xs bg-muted px-2 py-0.5 rounded",children:t},t)}function ft(t){const e=M.c(18),{data:r,availableTabs:o,effectiveActiveTabId:n,effectiveTools:i,isLoadingTools:d,onTabChange:a}=t,l=d===void 0?!1:d;let f;e[0]!==i?(f=i.map(ut),e[0]=i,e[1]=f):f=e[1];const b=f;let h;e[2]!==o||e[3]!==n||e[4]!==a?(h=o.length>0&&s.jsx("div",{className:"px-4 py-2 border-b border-border bg-background",children:s.jsx(We,{tabs:o,activeTab:n,onTabChange:a})}),e[2]=o,e[3]=n,e[4]=a,e[5]=h):h=e[5];let u;e[6]!==n||e[7]!==i.length||e[8]!==l||e[9]!==b?(u=n==="tools"&&s.jsx("div",{className:"flex flex-col flex-1",children:l?s.jsxs("div",{className:"flex items-center justify-center p-8",children:[s.jsx(je,{size:24,className:"animate-spin"}),s.jsx("span",{className:"ml-2 text-sm text-muted-foreground",children:"Loading tools..."})]}):i.length>0?s.jsx(Ge,{tools:b,showToolbar:!1,emptyMessage:"This MCP Server doesn't have any tools."}):s.jsx(Le,{image:null,title:"No tools available",description:"This MCP Server doesn't have any tools."})}),e[6]=n,e[7]=i.length,e[8]=l,e[9]=b,e[10]=u):u=e[10];let x;e[11]!==r?.repository||e[12]!==n?(x=n==="readme"&&s.jsx("div",{className:"flex-1 overflow-y-auto bg-background",children:s.jsx(Oe,{repository:r?.repository})}),e[11]=r?.repository,e[12]=n,e[13]=x):x=e[13];let p;return e[14]!==h||e[15]!==u||e[16]!==x?(p=s.jsxs("div",{className:"lg:col-span-2 flex flex-col border-l border-border",children:[h,u,x]}),e[14]=h,e[15]=u,e[16]=x,e[17]=p):p=e[17],p}function ut(t){const e=t;return{name:e.name||"",description:e.description||void 0}}function xt(t,e){if(!t||!e)return;const r=e.toLowerCase();return t.find(o=>o.app_name?.toLowerCase()===r||o.app_id?.toLowerCase()===r||o.title.toLowerCase()===r)||t.find(o=>o.title.toLowerCase().includes(r))}function pt(t,e,r,o,n){if(!e||e==="Unknown")return{count:0};if(e==="io.modelcontextprotocol.registry/official")return{logo:o?.icon||void 0,count:n??t.length};const i=e.toLowerCase(),d=t.filter(l=>(l._meta?.["io.modelcontextprotocol.registry/official"]?"io.modelcontextprotocol.registry/official":l.publisher||l._meta?.["mcp.mesh"]?.scopeName||"Unknown").toLowerCase()===i);return{logo:r?.icon||d[0]?.publisher_logo||d[0]?.icon||void 0,count:d.length}}function ht(t){const e=t._meta?.["mcp.mesh"],r=t._meta?.["io.modelcontextprotocol.registry/official"],o=t.server,n=Ye(o.remotes?.[0]?.type),i=et(o.$schema),d=r?"io.modelcontextprotocol.registry/official":t.publisher||e?.scopeName||"Unknown",a=Qe(o.repository),l=t.icon||t.image||t.logo||o.icons?.[0]?.src||a||null,f=t.name||t.title||t.server?.title||"Unnamed Item",b=tt(f),h=e?.friendly_name||b,u=e?.mesh_description||t.description||t.summary||o?.description||"",x=e?.short_description||null,p=e?.tags||[],g=e?.categories||[];return{name:h,description:u,shortDescription:x,icon:l,verified:t.verified||e?.verified,publisher:d,version:o.version||null,websiteUrl:o.websiteUrl||null,repository:o.repository||null,schemaVersion:i??null,connectionType:n,connectionUrl:null,remoteUrl:null,tags:p,categories:g,tools:t.tools||o.tools||e?.tools||[],models:t.models||o.models||e?.models||[],emails:t.emails||o.emails||e?.emails||[],analytics:t.analytics||o.analytics||e?.analytics,cdn:t.cdn||o.cdn||e?.cdn}}class gt extends E.Component{state={hasError:!1,error:null};static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,r){console.error("Store MCP server detail error:",e,r)}render(){return this.state.hasError?s.jsx(ot,{error:this.state.error||new Error("Unknown error"),onBack:this.props.onBack}):this.props.children}}function bt(){const t=M.c(70),{org:e}=Ne(),r=ve();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o={strict:!1},t[0]=o):o=t[0];const{appName:n}=Te(o);let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i={strict:!1},t[1]=i):i=t[1];const{registryId:d,serverName:a}=_e(i),[l,f]=E.useState("readme"),b=De(),h=Ee(),{data:u}=Ie.useSession(),x=Fe(h),p=d||x[0]?.id||"",g=$e(p),N=Xe(g?.tools),C=g?.tools&&g.tools.find(Ct)?.name||"",w=g?.tools&&g.tools.find(Nt)?.name||"",S=Ue(p),k=!!a;let T,j;k?(T=C||w,j={name:a}):(T=N,j={});const{data:m}=He({toolCaller:S,toolName:T,toolInputParams:j,scope:p});let _=[],P=[],xe=null;if(m){if(Array.isArray(m))_=m;else if(typeof m=="object"&&m!==null)if("totalCount"in m&&typeof m.totalCount=="number"&&(xe=m.totalCount),"item"in m&&m.item){const c=m.item,I=c.id||"",$=c.server,U=c._meta;let D;t[2]!==c.title||t[3]!==I||t[4]!==$||t[5]!==U?(D=[{id:I,title:c.title,server:$,_meta:U}],t[2]=c.title,t[3]=I,t[4]=$,t[5]=U,t[6]=D):D=t[6],_=D}else{let c;"versions"in m&&Array.isArray(m.versions)?c="versions":"servers"in m&&Array.isArray(m.servers)?c="servers":c=Object.keys(m).find(I=>Array.isArray(m[I])),c&&(_=m[c],(c==="versions"||T?.includes("VERSIONS"))&&(P=_))}}let X;t[7]!==n?(X=c=>{const I=c.name||c.title||c.server.title||"";return qe(I)===n},t[7]=n,t[8]=X):X=t[8];let y=_.find(X);if(!y&&a){let c;t[9]!==a?(c=I=>I.server.name===a||I.name===a||I.title===a,t[9]=a,t[10]=c):c=t[10],y=_.find(c)}const v=y?ht(y):null,le=(v?.tools?.length||0)>0,ae=y?.server?.remotes?.[0]?.url||null,J=!le&&!!ae,Q=Ze({url:J?ae:""}),Y=J&&Q.state==="connecting";let ee;t[11]!==Q||t[12]!==J?(ee=J&&Q.state==="ready"?(Q.tools||[]).map(yt):[],t[11]=Q,t[12]=J,t[13]=ee):ee=t[13];const pe=ee,V=le?v?.tools||[]:pe,Se=xt(h,v?.publisher),ce=v?pt(_,v.publisher,Se,g??null,xe):{count:0},ke=v?.repository?Je(v.repository):null,de=!!v?.repository&&!!ke;let R;t[14]!==de?(R={id:"readme",label:"README",visible:de},t[14]=de,t[15]=R):R=t[15];const me=le||pe.length>0||Y&&!!ae;let z;t[16]!==V.length||t[17]!==me?(z={id:"tools",label:"Tools",count:V.length,visible:me},t[16]=V.length,t[17]=me,t[18]=z):z=t[18];let te;t[19]!==R||t[20]!==z?(te=[R,z].filter(jt),t[19]=R,t[20]=z,t[21]=te):te=t[21];const L=te;let se;t[22]!==l||t[23]!==L?(se=L.find(c=>c.id===l)?l:L.find(vt)?.id||L[0]?.id||"overview",t[22]=l,t[23]=L,t[24]=se):se=t[24];const fe=se;let re;t[25]!==b||t[26]!==P||t[27]!==r||t[28]!==e||t[29]!==y||t[30]!==u?(re=async c=>{const I=P[c??0]||y;if(!I||!e||!u?.user?.id)return;const $=Ke(I,e.id,u.user.id);if(!$.connection_url){he.error("This MCP Server cannot be connected: no connection URL available");return}try{const{id:U}=await b.create.mutateAsync($);r({to:"/$org/mcps/$connectionId",params:{org:e.slug,connectionId:U}})}catch(U){const D=U;he.error(`Failed to connect MCP Server: ${D instanceof Error?D.message:String(D)}`)}},t[25]=b,t[26]=P,t[27]=r,t[28]=e,t[29]=y,t[30]=u,t[31]=re):re=t[31];const ue=re;let oe;t[32]!==r||t[33]!==e.slug?(oe=()=>{r({to:"/$org/store",params:{org:e.slug}})},t[32]=r,t[33]=e.slug,t[34]=oe):oe=t[34];const A=oe;if(!y){let c;return t[35]!==A?(c=s.jsx(nt,{onBack:A}),t[35]=A,t[36]=c):c=t[36],c}if(!v)return null;const B=(y?.server?.remotes?.length??0)>0;let G;t[37]!==A?(G=s.jsx(it,{onBack:A}),t[37]=A,t[38]=G):G=t[38];let O;t[39]!==B?(O=!B&&s.jsxs("div",{className:"mb-6 p-4 bg-amber-50 border border-amber-200 rounded-lg text-sm text-amber-900",children:[s.jsx(st,{size:16,className:"inline mr-2"}),"This MCP Server cannot be connected - no connection method available."]}),t[39]=B,t[40]=O):O=t[40];let W;t[41]!==P||t[42]!==y?(W=P.length>0?P:[y],t[41]=P,t[42]=y,t[43]=W):W=t[43];let F;t[44]!==b.create.isPending||t[45]!==B||t[46]!==v||t[47]!==ue||t[48]!==W?(F=s.jsx(lt,{data:v,itemVersions:W,onInstall:ue,canInstall:B,isInstalling:b.create.isPending}),t[44]=b.create.isPending,t[45]=B,t[46]=v,t[47]=ue,t[48]=W,t[49]=F):F=t[49];let H;t[50]!==v||t[51]!==ce||t[52]!==y?(H=s.jsx(ct,{data:v,publisherInfo:ce,selectedItem:y}),t[50]=v,t[51]=ce,t[52]=y,t[53]=H):H=t[53];let Z;t[54]!==L||t[55]!==v||t[56]!==fe||t[57]!==V||t[58]!==Y?(Z=s.jsx(ft,{data:v,availableTabs:L,effectiveActiveTabId:fe,effectiveTools:V,isLoadingTools:Y,onTabChange:f}),t[54]=L,t[55]=v,t[56]=fe,t[57]=V,t[58]=Y,t[59]=Z):Z=t[59];let K;t[60]!==H||t[61]!==Z?(K=s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 min-h-[677px]",children:[H,Z]}),t[60]=H,t[61]=Z,t[62]=K):K=t[62];let q;t[63]!==O||t[64]!==F||t[65]!==K?(q=s.jsx("div",{className:"flex-1 overflow-y-auto h-full",children:s.jsx("div",{className:"h-full",children:s.jsxs("div",{className:"h-full",children:[O,F,K]})})}),t[63]=O,t[64]=F,t[65]=K,t[66]=q):q=t[66];let ne;return t[67]!==G||t[68]!==q?(ne=s.jsxs("div",{className:"flex flex-col h-full border-l border-border",children:[G,q]}),t[67]=G,t[68]=q,t[69]=ne):ne=t[69],ne}function vt(t){return t.id==="readme"}function jt(t){return t.visible}function yt(t){return{name:t.name,description:t.description}}function Nt(t){return t.name.endsWith("_GET")}function Ct(t){return t.name.endsWith("_VERSIONS")}function is(){const t=M.c(6),{org:e}=Ne(),r=ve();let o;t[0]!==r||t[1]!==e.slug?(o=()=>{r({to:"/$org/store",params:{org:e.slug}})},t[0]=r,t[1]=e.slug,t[2]=o):o=t[2];const n=o;let i;t[3]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(E.Suspense,{fallback:s.jsx(rt,{}),children:s.jsx(bt,{})}),t[3]=i):i=t[3];let d;return t[4]!==n?(d=s.jsx(gt,{onBack:n,children:i}),t[4]=n,t[5]=d):d=t[5],d}export{is as default};