@decocms/mesh 2.46.0 → 2.48.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 (130) hide show
  1. package/dist/client/assets/{AlertCircle-BRKPE3Yu.js → AlertCircle-DqJIxjvF.js} +1 -1
  2. package/dist/client/assets/{ArrowLeft-B43nR51t.js → ArrowLeft--M9RKOnF.js} +1 -1
  3. package/dist/client/assets/{ArrowUp-C_dzgGyM.js → ArrowUp-ttOC0bOt.js} +1 -1
  4. package/dist/client/assets/{Check-rWpHI8gM.js → Check-BcsxKL4g.js} +1 -1
  5. package/dist/client/assets/{ChevronDown-BXPmQwly.js → ChevronDown-DsBSj-kA.js} +1 -1
  6. package/dist/client/assets/{Code01-B__CiFwm.js → Code01-D224sVX5.js} +1 -1
  7. package/dist/client/assets/{Copy01-DoovYO7Z.js → Copy01-BR_VfIYA.js} +1 -1
  8. package/dist/client/assets/{CpuChip02-CskLQzoo.js → CpuChip02-DiEDSlAW.js} +1 -1
  9. package/dist/client/assets/{DotsHorizontal-lH4CPQBL.js → DotsHorizontal-irKDVnQr.js} +1 -1
  10. package/dist/client/assets/{DotsVertical-ZFxA3aY_.js → DotsVertical-Bb4S0lBR.js} +1 -1
  11. package/dist/client/assets/{Download01-C_m4KR1A.js → Download01-BSKFPhE5.js} +1 -1
  12. package/dist/client/assets/{Edit01-BbH3QU1f.js → Edit01-BDqZRKj8.js} +1 -1
  13. package/dist/client/assets/{File06-D26j-lUs.js → File06-BJSnpJUU.js} +1 -1
  14. package/dist/client/assets/{FilterLines-td_bMbCp.js → FilterLines-PJl7EzIx.js} +1 -1
  15. package/dist/client/assets/{FlipBackward-B6olifFw.js → FlipBackward-6UWZdjeE.js} +1 -1
  16. package/dist/client/assets/{GitBranch01-BZmF93dQ.js → GitBranch01-B4AT3DvQ.js} +1 -1
  17. package/dist/client/assets/{Grid01-Dib_0u4G.js → Grid01-BKPBdVgH.js} +1 -1
  18. package/dist/client/assets/{Home02-DP3iyvEF.js → Home02-Bq5IJXiG.js} +1 -1
  19. package/dist/client/assets/{Image01-Bjf5zXxa.js → Image01-Bf48ELb0.js} +1 -1
  20. package/dist/client/assets/{Inbox01-DKPhOTqf.js → Inbox01-BKTkxAD7.js} +1 -1
  21. package/dist/client/assets/{InfoCircle-IGfKG_za.js → InfoCircle-DDo7Edp5.js} +1 -1
  22. package/dist/client/assets/{Key01-Bd8OdMD2.js → Key01-Bx5Z1S6k.js} +1 -1
  23. package/dist/client/assets/{LinkExternal01-B2SPmpsS.js → LinkExternal01-BCqlseXG.js} +1 -1
  24. package/dist/client/assets/{List-BXWuxsJI.js → List-CBwyHC0P.js} +1 -1
  25. package/dist/client/assets/{Loading01-C7lL3UEX.js → Loading01-Cdkd6fzk.js} +1 -1
  26. package/dist/client/assets/{Lock01-C9cgncNa.js → Lock01-BEPOHRTg.js} +1 -1
  27. package/dist/client/assets/{Play-BTbopfLx.js → Play-BKqyGtYZ.js} +1 -1
  28. package/dist/client/assets/{Plus-C_fl4PEA.js → Plus-DSeo2GxF.js} +1 -1
  29. package/dist/client/assets/{SearchMd--9TE30ud.js → SearchMd-DDul_VnD.js} +1 -1
  30. package/dist/client/assets/{Terminal-BYjTu7XM.js → Terminal-BRId488U.js} +1 -1
  31. package/dist/client/assets/{Trash01-BML4V2Hg.js → Trash01-CaywBdrJ.js} +1 -1
  32. package/dist/client/assets/{Upload01-A1hn1cqk.js → Upload01-DvgHBjeM.js} +1 -1
  33. package/dist/client/assets/{X-o9cXdoSX.js → X-C5X5_Hg0.js} +1 -1
  34. package/dist/client/assets/{XClose-Lrw72nwV.js → XClose-DbetxY4h.js} +1 -1
  35. package/dist/client/assets/{agent-detail-Cb4Yjee1.js → agent-detail-BrZ8JM_K.js} +1 -1
  36. package/dist/client/assets/{agents-ByD-k3QG.js → agents-Bh0-YBex.js} +1 -1
  37. package/dist/client/assets/{alert-dialog-CmbyBQPM.js → alert-dialog-BgRdbtOY.js} +1 -1
  38. package/dist/client/assets/{auth-catchall-DRc70BVe.js → auth-catchall-Clsbxru9.js} +1 -1
  39. package/dist/client/assets/{avatar-DHhEwgut.js → avatar-DAz8EJEx.js} +1 -1
  40. package/dist/client/assets/{badge-C3SQ_FhJ.js → badge-DmbA4ft0.js} +1 -1
  41. package/dist/client/assets/{binder-D1E-ZiIS.js → binder-DH2V1iY7.js} +1 -1
  42. package/dist/client/assets/{button-CvJoPChh.js → button-BDmDqE1y.js} +1 -1
  43. package/dist/client/assets/{card-Bcqw3W4A.js → card-CyHFuMIX.js} +1 -1
  44. package/dist/client/assets/{checkbox-VCgA7gWR.js → checkbox-DUrZ1l3G.js} +1 -1
  45. package/dist/client/assets/collection-detail-BxDuevIM.js +26 -0
  46. package/dist/client/assets/{collection-display-button-Ct4YNN53.js → collection-display-button-lcFR3vca.js} +1 -1
  47. package/dist/client/assets/{collection-header-k71cK-lF.js → collection-header-D9j0lSR0.js} +1 -1
  48. package/dist/client/assets/{collection-page-DGuuWhJX.js → collection-page-DdDDO4bR.js} +1 -1
  49. package/dist/client/assets/{collection-search-DRAHEgKw.js → collection-search-D9YVIQel.js} +1 -1
  50. package/dist/client/assets/{collection-tab-D0RO0CcF.js → collection-tab-BjSEDKeG.js} +1 -1
  51. package/dist/client/assets/{collection-table-wrapper-DXOj93c5.js → collection-table-wrapper-DNs5GXFH.js} +1 -1
  52. package/dist/client/assets/{connect-B440oepi.js → connect-CaPbCkpH.js} +1 -1
  53. package/dist/client/assets/{connection-card-HCmyn7jF.js → connection-card-qmLBdpzE.js} +1 -1
  54. package/dist/client/assets/{connection-detail-B7Rf_Lty.js → connection-detail-CuES8B6h.js} +1 -1
  55. package/dist/client/assets/{connections-BKNmgYx3.js → connections-0XMNz2vp.js} +1 -1
  56. package/dist/client/assets/constants-CkeNEJKm.js +1 -0
  57. package/dist/client/assets/{constants-CQBwKZNg.js → constants-bvduSbuP.js} +1 -1
  58. package/dist/client/assets/{create-organization-dialog-JK2NLely.js → create-organization-dialog-DRxf5Ivm.js} +1 -1
  59. package/dist/client/assets/{dialog-BTPFfJzS.js → dialog-C9WI8xll.js} +1 -1
  60. package/dist/client/assets/{dropdown-menu-DJCZCaVG.js → dropdown-menu-DYw5NLwW.js} +1 -1
  61. package/dist/client/assets/{dynamic-plugin-layout-BoJN7wL7.js → dynamic-plugin-layout-d7eLUxNb.js} +1 -1
  62. package/dist/client/assets/{empty-state-G8RiHLmX.js → empty-state-CO-Xq2qd.js} +1 -1
  63. package/dist/client/assets/{empty-state-Ct8nX8re.js → empty-state-DjyMDe9Q.js} +1 -1
  64. package/dist/client/assets/{env-vars-editor-W0zXrs0t.js → env-vars-editor-DO-cLV92.js} +1 -1
  65. package/dist/client/assets/{error-boundary-11PeIG-4.js → error-boundary-LSbGudzr.js} +1 -1
  66. package/dist/client/assets/{extract-connection-data-B_Hy83oK.js → extract-connection-data-BS2wRVpz.js} +1 -1
  67. package/dist/client/assets/{file-browser-DSu5pEER.js → file-browser-Bye9PkXL.js} +2 -2
  68. package/dist/client/assets/{form-DPWu2QtA.js → form-k9nklkyB.js} +1 -1
  69. package/dist/client/assets/{grid-view-Bp1KBSKy.js → grid-view-hAk85Wz6.js} +1 -1
  70. package/dist/client/assets/{home-DWD-yOYI.js → home-BBmnwVmQ.js} +1 -1
  71. package/dist/client/assets/{index-DqNAPjpW.js → index-B-ZYi3Gx.js} +1 -1
  72. package/dist/client/assets/{index-ByirigEe.js → index-BtMVAY-f.js} +1 -1
  73. package/dist/client/assets/{index-m-oORR-i.js → index-C5RZ-Gcv.js} +1 -1
  74. package/dist/client/assets/{index-DTOdCC-5.js → index-CWBQTqdY.js} +1 -1
  75. package/dist/client/assets/{index-DJrCN3i2.js → index-CvLEK5kU.js} +2 -2
  76. package/dist/client/assets/{index-DCqMbcfi.js → index-DM3HTos7.js} +1 -1
  77. package/dist/client/assets/{infiniteQueryObserver-BZ2mYAel.js → infiniteQueryObserver-OtG986vD.js} +1 -1
  78. package/dist/client/assets/{input-z3sZIpoP.js → input-X_pZqzD9.js} +1 -1
  79. package/dist/client/assets/{layout-CvmMcuAx.js → layout-BCHT5goR.js} +1 -1
  80. package/dist/client/assets/{localstorage-keys-CJ7NZMbs.js → localstorage-keys-GUcDb8Bh.js} +1 -1
  81. package/dist/client/assets/{login-CzhjzjJL.js → login-CmzFxR27.js} +1 -1
  82. package/dist/client/assets/{mcp-oauth-ubxm1vX9.js → mcp-oauth-ClcLSGR-.js} +1 -1
  83. package/dist/client/assets/{mcp-server-card-C5lTA7fo.js → mcp-server-card-GSAOrorP.js} +1 -1
  84. package/dist/client/assets/{mcp-server-detail-CRhf9fHc.js → mcp-server-detail-Bsa6kT24.js} +2 -2
  85. package/dist/client/assets/{members-BDLJRyX5.js → members-CJmhuHKQ.js} +1 -1
  86. package/dist/client/assets/{monaco-editor-Cd_jB0rD.js → monaco-editor-BL6Qs5QL.js} +1 -1
  87. package/dist/client/assets/{monitoring-BDUfwBgC.js → monitoring-BbCkEIfq.js} +1 -1
  88. package/dist/client/assets/{oauth-callback-DuOa85vm.js → oauth-callback-CUKFvlP8.js} +1 -1
  89. package/dist/client/assets/{page-WFX7yDF8.js → page-BYidsB3h.js} +1 -1
  90. package/dist/client/assets/{page-C4S1Seu0.js → page-BZIc1LSb.js} +1 -1
  91. package/dist/client/assets/{pin-to-sidebar-button-SwV4uptA.js → pin-to-sidebar-button-C0EGfAqi.js} +1 -1
  92. package/dist/client/assets/{plugin-empty-state-DsKdrT8i.js → plugin-empty-state-DaWaZTMW.js} +1 -1
  93. package/dist/client/assets/{plugin-header-CpnFRHFF.js → plugin-header-BibGdq2-.js} +1 -1
  94. package/dist/client/assets/{plugins-D6GJCGJx.js → plugins-IuBW5MJ_.js} +1 -1
  95. package/dist/client/assets/{popover-BmP65HKt.js → popover-CnPhimSt.js} +1 -1
  96. package/dist/client/assets/{registry-utils-DE2gmofn.js → registry-utils-r4NbRTr0.js} +1 -1
  97. package/dist/client/assets/{resizable-BGKBAXNy.js → resizable-D4oMtLW6.js} +1 -1
  98. package/dist/client/assets/{resource-tabs-QpM99oZr.js → resource-tabs-CVnCGzVB.js} +1 -1
  99. package/dist/client/assets/{select-CF10mTqX.js → select-Bc2Bn-Rz.js} +1 -1
  100. package/dist/client/assets/{settings-_JcS51yo.js → settings-Bf1wXi0M.js} +1 -1
  101. package/dist/client/assets/{shell-layout-Y4wZbFRq.js → shell-layout-DF1pjRhq.js} +1 -1
  102. package/dist/client/assets/{spinner-uP-9D1rn.js → spinner-bU_UQLDR.js} +1 -1
  103. package/dist/client/assets/{switch-BFDFKZSn.js → switch-BFp4Zf3B.js} +1 -1
  104. package/dist/client/assets/{textarea-DWuWykm2.js → textarea-DEh3Ba_x.js} +1 -1
  105. package/dist/client/assets/{tool-set-selector-GOXOsQiE.js → tool-set-selector-DHeQJqxo.js} +1 -1
  106. package/dist/client/assets/{tools-list-DGuIFdHY.js → tools-list-BdJfeTy0.js} +1 -1
  107. package/dist/client/assets/{tooltip-X0aARx7t.js → tooltip-D0a-0EdS.js} +1 -1
  108. package/dist/client/assets/{typewriter-title-CGcCeNFK.js → typewriter-title-Bupem0DG.js} +1 -1
  109. package/dist/client/assets/{use-binding-hMYM9l94.js → use-binding-D3Z4tcGL.js} +2 -2
  110. package/dist/client/assets/{use-collections-DX9zmS5Y.js → use-collections-Db2rAgnN.js} +1 -1
  111. package/dist/client/assets/{use-connection-DXi2YQyF.js → use-connection-Dd3WfwgO.js} +1 -1
  112. package/dist/client/assets/{use-create-virtual-mcp-CBTNAU_C.js → use-create-virtual-mcp-IHfdsr8Q.js} +1 -1
  113. package/dist/client/assets/{use-list-state-CJ7Gqypi.js → use-list-state-CQ4iaW-4.js} +1 -1
  114. package/dist/client/assets/{use-mcp-prompts-4-XCXkEo.js → use-mcp-prompts-BlFopYYu.js} +1 -1
  115. package/dist/client/assets/{use-members-C-Qz2YAC.js → use-members-BePfHQ_l.js} +1 -1
  116. package/dist/client/assets/{use-mobile-BFUJE28S.js → use-mobile-b1atwjp1.js} +1 -1
  117. package/dist/client/assets/{use-organization-settings-Cqvrqw7g.js → use-organization-settings-__NNxuFk.js} +1 -1
  118. package/dist/client/assets/{use-virtual-mcp-C6KYkWgJ.js → use-virtual-mcp-DnQE2OId.js} +1 -1
  119. package/dist/client/assets/useInfiniteQuery-zQFE3vYD.js +1 -0
  120. package/dist/client/assets/{useMutation-Bv8zH83E.js → useMutation-AGSpiXOj.js} +1 -1
  121. package/dist/client/assets/useQuery-BqHRRmoD.js +1 -0
  122. package/dist/client/assets/{value-Du2fskT8.js → value-C8D6L3ex.js} +1 -1
  123. package/dist/client/assets/{view-mode-toggle-uP_0P-Q4.js → view-mode-toggle-mhruJVW8.js} +1 -1
  124. package/dist/client/assets/{workflow-BG4JZ9VJ.js → workflow-CWTncpAk.js} +1 -1
  125. package/dist/client/index.html +1 -1
  126. package/package.json +1 -1
  127. package/dist/client/assets/collection-detail-DKz4uDhT.js +0 -26
  128. package/dist/client/assets/constants-CSeHBPkf.js +0 -1
  129. package/dist/client/assets/useInfiniteQuery-CrWFql5G.js +0 -1
  130. package/dist/client/assets/useQuery-Cc2WyvHU.js +0 -1
@@ -1 +1 @@
1
- import{bu as Ie,r as u,ag as K,bv as F,R as Re,q as Ce,t as $e,n as Me,bw as O}from"./index-DJrCN3i2.js";var Q={exports:{}},h={};var fe;function Ae(){if(fe)return h;fe=1;var t=Symbol.for("react.element"),l=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),d=Symbol.for("react.context"),v=Symbol.for("react.server_context"),y=Symbol.for("react.forward_ref"),i=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),b=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),$;$=Symbol.for("react.module.reference");function k(n){if(typeof n=="object"&&n!==null){var M=n.$$typeof;switch(M){case t:switch(n=n.type,n){case r:case o:case f:case i:case p:return n;default:switch(n=n&&n.$$typeof,n){case v:case d:case y:case E:case b:case c:return n;default:return M}}case l:return M}}}return h.ContextConsumer=d,h.ContextProvider=c,h.Element=t,h.ForwardRef=y,h.Fragment=r,h.Lazy=E,h.Memo=b,h.Portal=l,h.Profiler=o,h.StrictMode=f,h.Suspense=i,h.SuspenseList=p,h.isAsyncMode=function(){return!1},h.isConcurrentMode=function(){return!1},h.isContextConsumer=function(n){return k(n)===d},h.isContextProvider=function(n){return k(n)===c},h.isElement=function(n){return typeof n=="object"&&n!==null&&n.$$typeof===t},h.isForwardRef=function(n){return k(n)===y},h.isFragment=function(n){return k(n)===r},h.isLazy=function(n){return k(n)===E},h.isMemo=function(n){return k(n)===b},h.isPortal=function(n){return k(n)===l},h.isProfiler=function(n){return k(n)===o},h.isStrictMode=function(n){return k(n)===f},h.isSuspense=function(n){return k(n)===i},h.isSuspenseList=function(n){return k(n)===p},h.isValidElementType=function(n){return typeof n=="string"||typeof n=="function"||n===r||n===o||n===f||n===i||n===p||n===x||typeof n=="object"&&n!==null&&(n.$$typeof===E||n.$$typeof===b||n.$$typeof===c||n.$$typeof===d||n.$$typeof===y||n.$$typeof===$||n.getModuleId!==void 0)},h.typeOf=k,h}var me;function Fe(){return me||(me=1,Q.exports=Ae()),Q.exports}var qe=Fe();const lt=Ie(qe);var ve=1,De=.9,Pe=.8,je=.17,Z=.1,ee=.999,Le=.9999,Ke=.99,Ve=/[\\\/_+.#"@\[\(\{&]/,ze=/[\\\/_+.#"@\[\(\{&]/g,Oe=/[\s-]/,be=/[\s-]/g;function re(t,l,r,f,o,c,d){if(c===l.length)return o===t.length?ve:Ke;var v=`${o},${c}`;if(d[v]!==void 0)return d[v];for(var y=f.charAt(c),i=r.indexOf(y,o),p=0,b,E,x,$;i>=0;)b=re(t,l,r,f,i+1,c+1,d),b>p&&(i===o?b*=ve:Ve.test(t.charAt(i-1))?(b*=Pe,x=t.slice(o,i-1).match(ze),x&&o>0&&(b*=Math.pow(ee,x.length))):Oe.test(t.charAt(i-1))?(b*=De,$=t.slice(o,i-1).match(be),$&&o>0&&(b*=Math.pow(ee,$.length))):(b*=je,o>0&&(b*=Math.pow(ee,i-o))),t.charAt(i)!==l.charAt(c)&&(b*=Le)),(b<Z&&r.charAt(i-1)===f.charAt(c+1)||f.charAt(c+1)===f.charAt(c)&&r.charAt(i-1)!==f.charAt(c))&&(E=re(t,l,r,f,i+1,c+2,d),E*Z>b&&(b=E*Z)),b>p&&(p=b),i=r.indexOf(y,i+1);return d[v]=p,p}function pe(t){return t.toLowerCase().replace(be," ")}function Be(t,l,r){return t=r&&r.length>0?`${t+" "+r.join(" ")}`:t,re(t,l,pe(t),pe(l),0,0,{})}var z='[cmdk-group=""]',te='[cmdk-group-items=""]',_e='[cmdk-group-heading=""]',ge='[cmdk-item=""]',he=`${ge}:not([aria-disabled="true"])`,ne="cmdk-item-select",j="data-value",Te=(t,l,r)=>Be(t,l,r),ye=u.createContext(void 0),B=()=>u.useContext(ye),Se=u.createContext(void 0),le=()=>u.useContext(Se),we=u.createContext(void 0),Ee=u.forwardRef((t,l)=>{let r=L(()=>{var e,s;return{search:"",value:(s=(e=t.value)!=null?e:t.defaultValue)!=null?s:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),f=L(()=>new Set),o=L(()=>new Map),c=L(()=>new Map),d=L(()=>new Set),v=xe(t),{label:y,children:i,value:p,onValueChange:b,filter:E,shouldFilter:x,loop:$,disablePointerSelection:k=!1,vimBindings:n=!0,...M}=t,U=K(),ue=K(),H=K(),q=u.useRef(null),w=et();D(()=>{if(p!==void 0){let e=p.trim();r.current.value=e,R.emit()}},[p]),D(()=>{w(6,ae)},[]);let R=u.useMemo(()=>({subscribe:e=>(d.current.add(e),()=>d.current.delete(e)),snapshot:()=>r.current,setState:(e,s,m)=>{var a,g,S,C;if(!Object.is(r.current[e],s)){if(r.current[e]=s,e==="search")J(),W(),w(1,G);else if(e==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let I=document.getElementById(H);I?I.focus():(a=document.getElementById(U))==null||a.focus()}if(w(7,()=>{var I;r.current.selectedItemId=(I=P())==null?void 0:I.id,R.emit()}),m||w(5,ae),((g=v.current)==null?void 0:g.value)!==void 0){let I=s??"";(C=(S=v.current).onValueChange)==null||C.call(S,I);return}}R.emit()}},emit:()=>{d.current.forEach(e=>e())}}),[]),N=u.useMemo(()=>({value:(e,s,m)=>{var a;s!==((a=c.current.get(e))==null?void 0:a.value)&&(c.current.set(e,{value:s,keywords:m}),r.current.filtered.items.set(e,oe(s,m)),w(2,()=>{W(),R.emit()}))},item:(e,s)=>(f.current.add(e),s&&(o.current.has(s)?o.current.get(s).add(e):o.current.set(s,new Set([e]))),w(3,()=>{J(),W(),r.current.value||G(),R.emit()}),()=>{c.current.delete(e),f.current.delete(e),r.current.filtered.items.delete(e);let m=P();w(4,()=>{J(),m?.getAttribute("id")===e&&G(),R.emit()})}),group:e=>(o.current.has(e)||o.current.set(e,new Set),()=>{c.current.delete(e),o.current.delete(e)}),filter:()=>v.current.shouldFilter,label:y||t["aria-label"],getDisablePointerSelection:()=>v.current.disablePointerSelection,listId:U,inputId:H,labelId:ue,listInnerRef:q}),[]);function oe(e,s){var m,a;let g=(a=(m=v.current)==null?void 0:m.filter)!=null?a:Te;return e?g(e,r.current.search,s):0}function W(){if(!r.current.search||v.current.shouldFilter===!1)return;let e=r.current.filtered.items,s=[];r.current.filtered.groups.forEach(a=>{let g=o.current.get(a),S=0;g.forEach(C=>{let I=e.get(C);S=Math.max(I,S)}),s.push([a,S])});let m=q.current;V().sort((a,g)=>{var S,C;let I=a.getAttribute("id"),_=g.getAttribute("id");return((S=e.get(_))!=null?S:0)-((C=e.get(I))!=null?C:0)}).forEach(a=>{let g=a.closest(te);g?g.appendChild(a.parentElement===g?a:a.closest(`${te} > *`)):m.appendChild(a.parentElement===m?a:a.closest(`${te} > *`))}),s.sort((a,g)=>g[1]-a[1]).forEach(a=>{var g;let S=(g=q.current)==null?void 0:g.querySelector(`${z}[${j}="${encodeURIComponent(a[0])}"]`);S?.parentElement.appendChild(S)})}function G(){let e=V().find(m=>m.getAttribute("aria-disabled")!=="true"),s=e?.getAttribute(j);R.setState("value",s||void 0)}function J(){var e,s,m,a;if(!r.current.search||v.current.shouldFilter===!1){r.current.filtered.count=f.current.size;return}r.current.filtered.groups=new Set;let g=0;for(let S of f.current){let C=(s=(e=c.current.get(S))==null?void 0:e.value)!=null?s:"",I=(a=(m=c.current.get(S))==null?void 0:m.keywords)!=null?a:[],_=oe(C,I);r.current.filtered.items.set(S,_),_>0&&g++}for(let[S,C]of o.current)for(let I of C)if(r.current.filtered.items.get(I)>0){r.current.filtered.groups.add(S);break}r.current.filtered.count=g}function ae(){var e,s,m;let a=P();a&&(((e=a.parentElement)==null?void 0:e.firstChild)===a&&((m=(s=a.closest(z))==null?void 0:s.querySelector(_e))==null||m.scrollIntoView({block:"nearest"})),a.scrollIntoView({block:"nearest"}))}function P(){var e;return(e=q.current)==null?void 0:e.querySelector(`${ge}[aria-selected="true"]`)}function V(){var e;return Array.from(((e=q.current)==null?void 0:e.querySelectorAll(he))||[])}function X(e){let s=V()[e];s&&R.setState("value",s.getAttribute(j))}function Y(e){var s;let m=P(),a=V(),g=a.findIndex(C=>C===m),S=a[g+e];(s=v.current)!=null&&s.loop&&(S=g+e<0?a[a.length-1]:g+e===a.length?a[0]:a[g+e]),S&&R.setState("value",S.getAttribute(j))}function ie(e){let s=P(),m=s?.closest(z),a;for(;m&&!a;)m=e>0?Qe(m,z):Ze(m,z),a=m?.querySelector(he);a?R.setState("value",a.getAttribute(j)):Y(e)}let ce=()=>X(V().length-1),se=e=>{e.preventDefault(),e.metaKey?ce():e.altKey?ie(1):Y(1)},de=e=>{e.preventDefault(),e.metaKey?X(0):e.altKey?ie(-1):Y(-1)};return u.createElement(F.div,{ref:l,tabIndex:-1,...M,"cmdk-root":"",onKeyDown:e=>{var s;(s=M.onKeyDown)==null||s.call(M,e);let m=e.nativeEvent.isComposing||e.keyCode===229;if(!(e.defaultPrevented||m))switch(e.key){case"n":case"j":{n&&e.ctrlKey&&se(e);break}case"ArrowDown":{se(e);break}case"p":case"k":{n&&e.ctrlKey&&de(e);break}case"ArrowUp":{de(e);break}case"Home":{e.preventDefault(),X(0);break}case"End":{e.preventDefault(),ce();break}case"Enter":{e.preventDefault();let a=P();if(a){let g=new Event(ne);a.dispatchEvent(g)}}}}},u.createElement("label",{"cmdk-label":"",htmlFor:N.inputId,id:N.labelId,style:rt},y),T(t,e=>u.createElement(Se.Provider,{value:R},u.createElement(ye.Provider,{value:N},e))))}),Ue=u.forwardRef((t,l)=>{var r,f;let o=K(),c=u.useRef(null),d=u.useContext(we),v=B(),y=xe(t),i=(f=(r=y.current)==null?void 0:r.forceMount)!=null?f:d?.forceMount;D(()=>{if(!i)return v.item(o,d?.id)},[i]);let p=ke(o,c,[t.value,t.children,c],t.keywords),b=le(),E=A(w=>w.value&&w.value===p.current),x=A(w=>i||v.filter()===!1?!0:w.search?w.filtered.items.get(o)>0:!0);u.useEffect(()=>{let w=c.current;if(!(!w||t.disabled))return w.addEventListener(ne,$),()=>w.removeEventListener(ne,$)},[x,t.onSelect,t.disabled]);function $(){var w,R;k(),(R=(w=y.current).onSelect)==null||R.call(w,p.current)}function k(){b.setState("value",p.current,!0)}if(!x)return null;let{disabled:n,value:M,onSelect:U,forceMount:ue,keywords:H,...q}=t;return u.createElement(F.div,{ref:O(c,l),...q,id:o,"cmdk-item":"",role:"option","aria-disabled":!!n,"aria-selected":!!E,"data-disabled":!!n,"data-selected":!!E,onPointerMove:n||v.getDisablePointerSelection()?void 0:k,onClick:n?void 0:$},t.children)}),He=u.forwardRef((t,l)=>{let{heading:r,children:f,forceMount:o,...c}=t,d=K(),v=u.useRef(null),y=u.useRef(null),i=K(),p=B(),b=A(x=>o||p.filter()===!1?!0:x.search?x.filtered.groups.has(d):!0);D(()=>p.group(d),[]),ke(d,v,[t.value,t.heading,y]);let E=u.useMemo(()=>({id:d,forceMount:o}),[o]);return u.createElement(F.div,{ref:O(v,l),...c,"cmdk-group":"",role:"presentation",hidden:b?void 0:!0},r&&u.createElement("div",{ref:y,"cmdk-group-heading":"","aria-hidden":!0,id:i},r),T(t,x=>u.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?i:void 0},u.createElement(we.Provider,{value:E},x))))}),Ne=u.forwardRef((t,l)=>{let{alwaysRender:r,...f}=t,o=u.useRef(null),c=A(d=>!d.search);return!r&&!c?null:u.createElement(F.div,{ref:O(o,l),...f,"cmdk-separator":"",role:"separator"})}),We=u.forwardRef((t,l)=>{let{onValueChange:r,...f}=t,o=t.value!=null,c=le(),d=A(i=>i.search),v=A(i=>i.selectedItemId),y=B();return u.useEffect(()=>{t.value!=null&&c.setState("search",t.value)},[t.value]),u.createElement(F.input,{ref:l,...f,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":y.listId,"aria-labelledby":y.labelId,"aria-activedescendant":v,id:y.inputId,type:"text",value:o?t.value:d,onChange:i=>{o||c.setState("search",i.target.value),r?.(i.target.value)}})}),Ge=u.forwardRef((t,l)=>{let{children:r,label:f="Suggestions",...o}=t,c=u.useRef(null),d=u.useRef(null),v=A(i=>i.selectedItemId),y=B();return u.useEffect(()=>{if(d.current&&c.current){let i=d.current,p=c.current,b,E=new ResizeObserver(()=>{b=requestAnimationFrame(()=>{let x=i.offsetHeight;p.style.setProperty("--cmdk-list-height",x.toFixed(1)+"px")})});return E.observe(i),()=>{cancelAnimationFrame(b),E.unobserve(i)}}},[]),u.createElement(F.div,{ref:O(c,l),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":v,"aria-label":f,id:y.listId},T(t,i=>u.createElement("div",{ref:O(d,y.listInnerRef),"cmdk-list-sizer":""},i)))}),Je=u.forwardRef((t,l)=>{let{open:r,onOpenChange:f,overlayClassName:o,contentClassName:c,container:d,...v}=t;return u.createElement(Re,{open:r,onOpenChange:f},u.createElement(Ce,{container:d},u.createElement($e,{"cmdk-overlay":"",className:o}),u.createElement(Me,{"aria-label":t.label,"cmdk-dialog":"",className:c},u.createElement(Ee,{ref:l,...v}))))}),Xe=u.forwardRef((t,l)=>A(r=>r.filtered.count===0)?u.createElement(F.div,{ref:l,...t,"cmdk-empty":"",role:"presentation"}):null),Ye=u.forwardRef((t,l)=>{let{progress:r,children:f,label:o="Loading...",...c}=t;return u.createElement(F.div,{ref:l,...c,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},T(t,d=>u.createElement("div",{"aria-hidden":!0},d)))}),ut=Object.assign(Ee,{List:Ge,Item:Ue,Input:We,Group:He,Separator:Ne,Dialog:Je,Empty:Xe,Loading:Ye});function Qe(t,l){let r=t.nextElementSibling;for(;r;){if(r.matches(l))return r;r=r.nextElementSibling}}function Ze(t,l){let r=t.previousElementSibling;for(;r;){if(r.matches(l))return r;r=r.previousElementSibling}}function xe(t){let l=u.useRef(t);return D(()=>{l.current=t}),l}var D=typeof window>"u"?u.useEffect:u.useLayoutEffect;function L(t){let l=u.useRef();return l.current===void 0&&(l.current=t()),l}function A(t){let l=le(),r=()=>t(l.snapshot());return u.useSyncExternalStore(l.subscribe,r,r)}function ke(t,l,r,f=[]){let o=u.useRef(),c=B();return D(()=>{var d;let v=(()=>{var i;for(let p of r){if(typeof p=="string")return p.trim();if(typeof p=="object"&&"current"in p)return p.current?(i=p.current.textContent)==null?void 0:i.trim():o.current}})(),y=f.map(i=>i.trim());c.value(t,v,y),(d=l.current)==null||d.setAttribute(j,v),o.current=v}),o}var et=()=>{let[t,l]=u.useState(),r=L(()=>new Map);return D(()=>{r.current.forEach(f=>f()),r.current=new Map},[t]),(f,o)=>{r.current.set(f,o),l({})}};function tt(t){let l=t.type;return typeof l=="function"?l(t.props):"render"in l?l.render(t.props):t}function T({asChild:t,children:l},r){return t&&u.isValidElement(l)?u.cloneElement(tt(l),{ref:l.ref},r(l.props.children)):r(l)}var rt={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};export{lt as R,ut as _,qe as r};
1
+ import{bu as Ie,r as u,ag as K,bv as F,R as Re,q as Ce,t as $e,n as Me,bw as O}from"./index-CvLEK5kU.js";var Q={exports:{}},h={};var fe;function Ae(){if(fe)return h;fe=1;var t=Symbol.for("react.element"),l=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),d=Symbol.for("react.context"),v=Symbol.for("react.server_context"),y=Symbol.for("react.forward_ref"),i=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),b=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),$;$=Symbol.for("react.module.reference");function k(n){if(typeof n=="object"&&n!==null){var M=n.$$typeof;switch(M){case t:switch(n=n.type,n){case r:case o:case f:case i:case p:return n;default:switch(n=n&&n.$$typeof,n){case v:case d:case y:case E:case b:case c:return n;default:return M}}case l:return M}}}return h.ContextConsumer=d,h.ContextProvider=c,h.Element=t,h.ForwardRef=y,h.Fragment=r,h.Lazy=E,h.Memo=b,h.Portal=l,h.Profiler=o,h.StrictMode=f,h.Suspense=i,h.SuspenseList=p,h.isAsyncMode=function(){return!1},h.isConcurrentMode=function(){return!1},h.isContextConsumer=function(n){return k(n)===d},h.isContextProvider=function(n){return k(n)===c},h.isElement=function(n){return typeof n=="object"&&n!==null&&n.$$typeof===t},h.isForwardRef=function(n){return k(n)===y},h.isFragment=function(n){return k(n)===r},h.isLazy=function(n){return k(n)===E},h.isMemo=function(n){return k(n)===b},h.isPortal=function(n){return k(n)===l},h.isProfiler=function(n){return k(n)===o},h.isStrictMode=function(n){return k(n)===f},h.isSuspense=function(n){return k(n)===i},h.isSuspenseList=function(n){return k(n)===p},h.isValidElementType=function(n){return typeof n=="string"||typeof n=="function"||n===r||n===o||n===f||n===i||n===p||n===x||typeof n=="object"&&n!==null&&(n.$$typeof===E||n.$$typeof===b||n.$$typeof===c||n.$$typeof===d||n.$$typeof===y||n.$$typeof===$||n.getModuleId!==void 0)},h.typeOf=k,h}var me;function Fe(){return me||(me=1,Q.exports=Ae()),Q.exports}var qe=Fe();const lt=Ie(qe);var ve=1,De=.9,Pe=.8,je=.17,Z=.1,ee=.999,Le=.9999,Ke=.99,Ve=/[\\\/_+.#"@\[\(\{&]/,ze=/[\\\/_+.#"@\[\(\{&]/g,Oe=/[\s-]/,be=/[\s-]/g;function re(t,l,r,f,o,c,d){if(c===l.length)return o===t.length?ve:Ke;var v=`${o},${c}`;if(d[v]!==void 0)return d[v];for(var y=f.charAt(c),i=r.indexOf(y,o),p=0,b,E,x,$;i>=0;)b=re(t,l,r,f,i+1,c+1,d),b>p&&(i===o?b*=ve:Ve.test(t.charAt(i-1))?(b*=Pe,x=t.slice(o,i-1).match(ze),x&&o>0&&(b*=Math.pow(ee,x.length))):Oe.test(t.charAt(i-1))?(b*=De,$=t.slice(o,i-1).match(be),$&&o>0&&(b*=Math.pow(ee,$.length))):(b*=je,o>0&&(b*=Math.pow(ee,i-o))),t.charAt(i)!==l.charAt(c)&&(b*=Le)),(b<Z&&r.charAt(i-1)===f.charAt(c+1)||f.charAt(c+1)===f.charAt(c)&&r.charAt(i-1)!==f.charAt(c))&&(E=re(t,l,r,f,i+1,c+2,d),E*Z>b&&(b=E*Z)),b>p&&(p=b),i=r.indexOf(y,i+1);return d[v]=p,p}function pe(t){return t.toLowerCase().replace(be," ")}function Be(t,l,r){return t=r&&r.length>0?`${t+" "+r.join(" ")}`:t,re(t,l,pe(t),pe(l),0,0,{})}var z='[cmdk-group=""]',te='[cmdk-group-items=""]',_e='[cmdk-group-heading=""]',ge='[cmdk-item=""]',he=`${ge}:not([aria-disabled="true"])`,ne="cmdk-item-select",j="data-value",Te=(t,l,r)=>Be(t,l,r),ye=u.createContext(void 0),B=()=>u.useContext(ye),Se=u.createContext(void 0),le=()=>u.useContext(Se),we=u.createContext(void 0),Ee=u.forwardRef((t,l)=>{let r=L(()=>{var e,s;return{search:"",value:(s=(e=t.value)!=null?e:t.defaultValue)!=null?s:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),f=L(()=>new Set),o=L(()=>new Map),c=L(()=>new Map),d=L(()=>new Set),v=xe(t),{label:y,children:i,value:p,onValueChange:b,filter:E,shouldFilter:x,loop:$,disablePointerSelection:k=!1,vimBindings:n=!0,...M}=t,U=K(),ue=K(),H=K(),q=u.useRef(null),w=et();D(()=>{if(p!==void 0){let e=p.trim();r.current.value=e,R.emit()}},[p]),D(()=>{w(6,ae)},[]);let R=u.useMemo(()=>({subscribe:e=>(d.current.add(e),()=>d.current.delete(e)),snapshot:()=>r.current,setState:(e,s,m)=>{var a,g,S,C;if(!Object.is(r.current[e],s)){if(r.current[e]=s,e==="search")J(),W(),w(1,G);else if(e==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let I=document.getElementById(H);I?I.focus():(a=document.getElementById(U))==null||a.focus()}if(w(7,()=>{var I;r.current.selectedItemId=(I=P())==null?void 0:I.id,R.emit()}),m||w(5,ae),((g=v.current)==null?void 0:g.value)!==void 0){let I=s??"";(C=(S=v.current).onValueChange)==null||C.call(S,I);return}}R.emit()}},emit:()=>{d.current.forEach(e=>e())}}),[]),N=u.useMemo(()=>({value:(e,s,m)=>{var a;s!==((a=c.current.get(e))==null?void 0:a.value)&&(c.current.set(e,{value:s,keywords:m}),r.current.filtered.items.set(e,oe(s,m)),w(2,()=>{W(),R.emit()}))},item:(e,s)=>(f.current.add(e),s&&(o.current.has(s)?o.current.get(s).add(e):o.current.set(s,new Set([e]))),w(3,()=>{J(),W(),r.current.value||G(),R.emit()}),()=>{c.current.delete(e),f.current.delete(e),r.current.filtered.items.delete(e);let m=P();w(4,()=>{J(),m?.getAttribute("id")===e&&G(),R.emit()})}),group:e=>(o.current.has(e)||o.current.set(e,new Set),()=>{c.current.delete(e),o.current.delete(e)}),filter:()=>v.current.shouldFilter,label:y||t["aria-label"],getDisablePointerSelection:()=>v.current.disablePointerSelection,listId:U,inputId:H,labelId:ue,listInnerRef:q}),[]);function oe(e,s){var m,a;let g=(a=(m=v.current)==null?void 0:m.filter)!=null?a:Te;return e?g(e,r.current.search,s):0}function W(){if(!r.current.search||v.current.shouldFilter===!1)return;let e=r.current.filtered.items,s=[];r.current.filtered.groups.forEach(a=>{let g=o.current.get(a),S=0;g.forEach(C=>{let I=e.get(C);S=Math.max(I,S)}),s.push([a,S])});let m=q.current;V().sort((a,g)=>{var S,C;let I=a.getAttribute("id"),_=g.getAttribute("id");return((S=e.get(_))!=null?S:0)-((C=e.get(I))!=null?C:0)}).forEach(a=>{let g=a.closest(te);g?g.appendChild(a.parentElement===g?a:a.closest(`${te} > *`)):m.appendChild(a.parentElement===m?a:a.closest(`${te} > *`))}),s.sort((a,g)=>g[1]-a[1]).forEach(a=>{var g;let S=(g=q.current)==null?void 0:g.querySelector(`${z}[${j}="${encodeURIComponent(a[0])}"]`);S?.parentElement.appendChild(S)})}function G(){let e=V().find(m=>m.getAttribute("aria-disabled")!=="true"),s=e?.getAttribute(j);R.setState("value",s||void 0)}function J(){var e,s,m,a;if(!r.current.search||v.current.shouldFilter===!1){r.current.filtered.count=f.current.size;return}r.current.filtered.groups=new Set;let g=0;for(let S of f.current){let C=(s=(e=c.current.get(S))==null?void 0:e.value)!=null?s:"",I=(a=(m=c.current.get(S))==null?void 0:m.keywords)!=null?a:[],_=oe(C,I);r.current.filtered.items.set(S,_),_>0&&g++}for(let[S,C]of o.current)for(let I of C)if(r.current.filtered.items.get(I)>0){r.current.filtered.groups.add(S);break}r.current.filtered.count=g}function ae(){var e,s,m;let a=P();a&&(((e=a.parentElement)==null?void 0:e.firstChild)===a&&((m=(s=a.closest(z))==null?void 0:s.querySelector(_e))==null||m.scrollIntoView({block:"nearest"})),a.scrollIntoView({block:"nearest"}))}function P(){var e;return(e=q.current)==null?void 0:e.querySelector(`${ge}[aria-selected="true"]`)}function V(){var e;return Array.from(((e=q.current)==null?void 0:e.querySelectorAll(he))||[])}function X(e){let s=V()[e];s&&R.setState("value",s.getAttribute(j))}function Y(e){var s;let m=P(),a=V(),g=a.findIndex(C=>C===m),S=a[g+e];(s=v.current)!=null&&s.loop&&(S=g+e<0?a[a.length-1]:g+e===a.length?a[0]:a[g+e]),S&&R.setState("value",S.getAttribute(j))}function ie(e){let s=P(),m=s?.closest(z),a;for(;m&&!a;)m=e>0?Qe(m,z):Ze(m,z),a=m?.querySelector(he);a?R.setState("value",a.getAttribute(j)):Y(e)}let ce=()=>X(V().length-1),se=e=>{e.preventDefault(),e.metaKey?ce():e.altKey?ie(1):Y(1)},de=e=>{e.preventDefault(),e.metaKey?X(0):e.altKey?ie(-1):Y(-1)};return u.createElement(F.div,{ref:l,tabIndex:-1,...M,"cmdk-root":"",onKeyDown:e=>{var s;(s=M.onKeyDown)==null||s.call(M,e);let m=e.nativeEvent.isComposing||e.keyCode===229;if(!(e.defaultPrevented||m))switch(e.key){case"n":case"j":{n&&e.ctrlKey&&se(e);break}case"ArrowDown":{se(e);break}case"p":case"k":{n&&e.ctrlKey&&de(e);break}case"ArrowUp":{de(e);break}case"Home":{e.preventDefault(),X(0);break}case"End":{e.preventDefault(),ce();break}case"Enter":{e.preventDefault();let a=P();if(a){let g=new Event(ne);a.dispatchEvent(g)}}}}},u.createElement("label",{"cmdk-label":"",htmlFor:N.inputId,id:N.labelId,style:rt},y),T(t,e=>u.createElement(Se.Provider,{value:R},u.createElement(ye.Provider,{value:N},e))))}),Ue=u.forwardRef((t,l)=>{var r,f;let o=K(),c=u.useRef(null),d=u.useContext(we),v=B(),y=xe(t),i=(f=(r=y.current)==null?void 0:r.forceMount)!=null?f:d?.forceMount;D(()=>{if(!i)return v.item(o,d?.id)},[i]);let p=ke(o,c,[t.value,t.children,c],t.keywords),b=le(),E=A(w=>w.value&&w.value===p.current),x=A(w=>i||v.filter()===!1?!0:w.search?w.filtered.items.get(o)>0:!0);u.useEffect(()=>{let w=c.current;if(!(!w||t.disabled))return w.addEventListener(ne,$),()=>w.removeEventListener(ne,$)},[x,t.onSelect,t.disabled]);function $(){var w,R;k(),(R=(w=y.current).onSelect)==null||R.call(w,p.current)}function k(){b.setState("value",p.current,!0)}if(!x)return null;let{disabled:n,value:M,onSelect:U,forceMount:ue,keywords:H,...q}=t;return u.createElement(F.div,{ref:O(c,l),...q,id:o,"cmdk-item":"",role:"option","aria-disabled":!!n,"aria-selected":!!E,"data-disabled":!!n,"data-selected":!!E,onPointerMove:n||v.getDisablePointerSelection()?void 0:k,onClick:n?void 0:$},t.children)}),He=u.forwardRef((t,l)=>{let{heading:r,children:f,forceMount:o,...c}=t,d=K(),v=u.useRef(null),y=u.useRef(null),i=K(),p=B(),b=A(x=>o||p.filter()===!1?!0:x.search?x.filtered.groups.has(d):!0);D(()=>p.group(d),[]),ke(d,v,[t.value,t.heading,y]);let E=u.useMemo(()=>({id:d,forceMount:o}),[o]);return u.createElement(F.div,{ref:O(v,l),...c,"cmdk-group":"",role:"presentation",hidden:b?void 0:!0},r&&u.createElement("div",{ref:y,"cmdk-group-heading":"","aria-hidden":!0,id:i},r),T(t,x=>u.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?i:void 0},u.createElement(we.Provider,{value:E},x))))}),Ne=u.forwardRef((t,l)=>{let{alwaysRender:r,...f}=t,o=u.useRef(null),c=A(d=>!d.search);return!r&&!c?null:u.createElement(F.div,{ref:O(o,l),...f,"cmdk-separator":"",role:"separator"})}),We=u.forwardRef((t,l)=>{let{onValueChange:r,...f}=t,o=t.value!=null,c=le(),d=A(i=>i.search),v=A(i=>i.selectedItemId),y=B();return u.useEffect(()=>{t.value!=null&&c.setState("search",t.value)},[t.value]),u.createElement(F.input,{ref:l,...f,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":y.listId,"aria-labelledby":y.labelId,"aria-activedescendant":v,id:y.inputId,type:"text",value:o?t.value:d,onChange:i=>{o||c.setState("search",i.target.value),r?.(i.target.value)}})}),Ge=u.forwardRef((t,l)=>{let{children:r,label:f="Suggestions",...o}=t,c=u.useRef(null),d=u.useRef(null),v=A(i=>i.selectedItemId),y=B();return u.useEffect(()=>{if(d.current&&c.current){let i=d.current,p=c.current,b,E=new ResizeObserver(()=>{b=requestAnimationFrame(()=>{let x=i.offsetHeight;p.style.setProperty("--cmdk-list-height",x.toFixed(1)+"px")})});return E.observe(i),()=>{cancelAnimationFrame(b),E.unobserve(i)}}},[]),u.createElement(F.div,{ref:O(c,l),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":v,"aria-label":f,id:y.listId},T(t,i=>u.createElement("div",{ref:O(d,y.listInnerRef),"cmdk-list-sizer":""},i)))}),Je=u.forwardRef((t,l)=>{let{open:r,onOpenChange:f,overlayClassName:o,contentClassName:c,container:d,...v}=t;return u.createElement(Re,{open:r,onOpenChange:f},u.createElement(Ce,{container:d},u.createElement($e,{"cmdk-overlay":"",className:o}),u.createElement(Me,{"aria-label":t.label,"cmdk-dialog":"",className:c},u.createElement(Ee,{ref:l,...v}))))}),Xe=u.forwardRef((t,l)=>A(r=>r.filtered.count===0)?u.createElement(F.div,{ref:l,...t,"cmdk-empty":"",role:"presentation"}):null),Ye=u.forwardRef((t,l)=>{let{progress:r,children:f,label:o="Loading...",...c}=t;return u.createElement(F.div,{ref:l,...c,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},T(t,d=>u.createElement("div",{"aria-hidden":!0},d)))}),ut=Object.assign(Ee,{List:Ge,Item:Ue,Input:We,Group:He,Separator:Ne,Dialog:Je,Empty:Xe,Loading:Ye});function Qe(t,l){let r=t.nextElementSibling;for(;r;){if(r.matches(l))return r;r=r.nextElementSibling}}function Ze(t,l){let r=t.previousElementSibling;for(;r;){if(r.matches(l))return r;r=r.previousElementSibling}}function xe(t){let l=u.useRef(t);return D(()=>{l.current=t}),l}var D=typeof window>"u"?u.useEffect:u.useLayoutEffect;function L(t){let l=u.useRef();return l.current===void 0&&(l.current=t()),l}function A(t){let l=le(),r=()=>t(l.snapshot());return u.useSyncExternalStore(l.subscribe,r,r)}function ke(t,l,r,f=[]){let o=u.useRef(),c=B();return D(()=>{var d;let v=(()=>{var i;for(let p of r){if(typeof p=="string")return p.trim();if(typeof p=="object"&&"current"in p)return p.current?(i=p.current.textContent)==null?void 0:i.trim():o.current}})(),y=f.map(i=>i.trim());c.value(t,v,y),(d=l.current)==null||d.setAttribute(j,v),o.current=v}),o}var et=()=>{let[t,l]=u.useState(),r=L(()=>new Map);return D(()=>{r.current.forEach(f=>f()),r.current=new Map},[t]),(f,o)=>{r.current.set(f,o),l({})}};function tt(t){let l=t.type;return typeof l=="function"?l(t.props):"render"in l?l.render(t.props):t}function T({asChild:t,children:l},r){return t&&u.isValidElement(l)?u.cloneElement(tt(l),{ref:l.ref},r(l.props.children)):r(l)}var rt={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};export{lt as R,ut as _,qe as r};
@@ -1 +1 @@
1
- import{C as r,L as i,O as u,P as l,V as C,i as c,p as P,u as m}from"./index-DJrCN3i2.js";import{u as M,a as g,b as x,c as L,d as S,e as d,f}from"./use-collections-DX9zmS5Y.js";import{u as A,a as R,b as T}from"./use-connection-DXi2YQyF.js";import{S as s}from"./constants-CQBwKZNg.js";import{K as h,a as K,W as O,c as V,g as W,b as _,d as w,e as E,u as I}from"./constants-CQBwKZNg.js";import{g as j,l as D,a as G,r as U,u as k,b as v,c as F}from"./use-mcp-prompts-4-XCXkEo.js";import{u as J,a as N,b as Y}from"./use-virtual-mcp-C6KYkWgJ.js";import{a as z,h as B,i as X}from"./mcp-oauth-ubxm1vX9.js";import"./useMutation-Bv8zH83E.js";import"./useQuery-Cc2WyvHU.js";export{r as ConnectionEntitySchema,h as KEYS,i as Locator,u as ORG_ADMIN_PROJECT_SLUG,l as ProjectContextProvider,K as SELF_MCP_ALIAS_ID,s as StreamableHTTPClientTransport,C as VirtualMCPEntitySchema,O as WellKnownOrgMCPId,z as authenticateMcp,V as createMCPClient,j as getPrompt,W as getWellKnownCommunityRegistryConnection,_ as getWellKnownMcpStudioConnection,w as getWellKnownOpenRouterConnection,E as getWellKnownRegistryConnection,B as handleOAuthCallback,X as isConnectionAuthenticated,c as isStdioParameters,D as listPrompts,G as listResources,P as parseVirtualUrl,U as readResource,M as useCollectionActions,g as useCollectionItem,x as useCollectionList,A as useConnection,R as useConnectionActions,T as useConnections,I as useMCPClient,k as useMCPPromptsList,v as useMCPPromptsListQuery,F as useMCPResourcesListQuery,L as useMCPToolCall,S as useMCPToolCallMutation,d as useMCPToolCallQuery,f as useMCPToolsListQuery,m as useProjectContext,J as useVirtualMCP,N as useVirtualMCPActions,Y as useVirtualMCPs};
1
+ import{C as r,L as i,O as u,P as l,V as C,i as c,p as P,u as m}from"./index-CvLEK5kU.js";import{u as M,a as g,b as x,c as L,d as S,e as d,f}from"./use-collections-Db2rAgnN.js";import{u as A,a as R,b as T}from"./use-connection-Dd3WfwgO.js";import{S as s}from"./constants-bvduSbuP.js";import{K as h,a as K,W as O,c as V,g as W,b as _,d as w,e as E,u as I}from"./constants-bvduSbuP.js";import{g as j,l as D,a as G,r as U,u as k,b as v,c as F}from"./use-mcp-prompts-BlFopYYu.js";import{u as J,a as N,b as Y}from"./use-virtual-mcp-DnQE2OId.js";import{a as z,h as B,i as X}from"./mcp-oauth-ClcLSGR-.js";import"./useMutation-AGSpiXOj.js";import"./useQuery-BqHRRmoD.js";export{r as ConnectionEntitySchema,h as KEYS,i as Locator,u as ORG_ADMIN_PROJECT_SLUG,l as ProjectContextProvider,K as SELF_MCP_ALIAS_ID,s as StreamableHTTPClientTransport,C as VirtualMCPEntitySchema,O as WellKnownOrgMCPId,z as authenticateMcp,V as createMCPClient,j as getPrompt,W as getWellKnownCommunityRegistryConnection,_ as getWellKnownMcpStudioConnection,w as getWellKnownOpenRouterConnection,E as getWellKnownRegistryConnection,B as handleOAuthCallback,X as isConnectionAuthenticated,c as isStdioParameters,D as listPrompts,G as listResources,P as parseVirtualUrl,U as readResource,M as useCollectionActions,g as useCollectionItem,x as useCollectionList,A as useConnection,R as useConnectionActions,T as useConnections,I as useMCPClient,k as useMCPPromptsList,v as useMCPPromptsListQuery,F as useMCPResourcesListQuery,L as useMCPToolCall,S as useMCPToolCallMutation,d as useMCPToolCallQuery,f as useMCPToolsListQuery,m as useProjectContext,J as useVirtualMCP,N as useVirtualMCPActions,Y as useVirtualMCPs};
@@ -1,4 +1,4 @@
1
- import{r as M,c as ne,j as S,bU as zO,bV as jO,x as qO,ad as jt,s as ee,bW as io,bX as s_,bn as GO,bo as VO,bl as WO,aa as Ot,ab as Ma,k as rs,o as Oe,bm as de,ac as Zn,bY as YO,bZ as ze,_ as KO,bu as ul,u as Gn,l as o_,K as Ui,a as l_,N as Gg,a8 as un,e as u_,b as XO,d as ZO,Q as c_,b_ as d_,bR as QO,bz as Lt,b$ as JO,c0 as eL,aX as p_,c1 as tL,c2 as vn,c3 as Xl,c4 as nL,c5 as Zl,c6 as rL,c7 as iL,c8 as aL,c9 as sL,ca as oL,cb as lL,cc as uL,cd as cL,f as f_,bQ as ao,ai as Vg,aj as dL,al as pL,ae as fL,ag as hL,ah as mL,bb as gL,aq as bL}from"./index-DJrCN3i2.js";import{c as me,B as gt}from"./button-CvJoPChh.js";import{i as EL}from"./X-o9cXdoSX.js";import{u as Qr,a as Wg,d as yL}from"./constants-CQBwKZNg.js";import{b as h_}from"./use-virtual-mcp-C6KYkWgJ.js";import{b as TL}from"./use-collections-DX9zmS5Y.js";import{b as m_,a as SL}from"./use-connection-DXi2YQyF.js";import{a as AL}from"./use-binding-hMYM9l94.js";import{u as kL,M as g_,s as HE}from"./monaco-editor-Cd_jB0rD.js";import{u as ma,L as so}from"./localstorage-keys-CJ7NZMbs.js";import{I as Yg}from"./input-z3sZIpoP.js";import{a as is,b as as,P as ss}from"./popover-BmP65HKt.js";import{S as xL,a as vL,b as _L,c as CL,d as IL}from"./select-CF10mTqX.js";import{i as NL}from"./File06-D26j-lUs.js";import{c as wL,i as b_}from"./Grid01-Dib_0u4G.js";import{a as RL}from"./Image01-Bjf5zXxa.js";import{i as cl}from"./SearchMd--9TE30ud.js";import{S as dl}from"./spinner-uP-9D1rn.js";import{c as Jr,T as ei,a as ti,b as Kg}from"./tooltip-X0aARx7t.js";import{u as OL,g as E_,l as $E,a as zE,r as LL}from"./use-mcp-prompts-4-XCXkEo.js";import{E as DL,i as ML}from"./error-boundary-11PeIG-4.js";import{c as PL,b as FL,e as BL,a as UL,D as HL}from"./dialog-BTPFfJzS.js";import{a as $L,F as zL,b as jL,c as qL,d as GL,f as VL}from"./form-DPWu2QtA.js";import{I as Xg,E as WL}from"./empty-state-Ct8nX8re.js";import{i as y_}from"./AlertCircle-BRKPE3Yu.js";import{i as YL}from"./ArrowUp-C_dzgGyM.js";import{t as KL}from"./ChevronDown-BXPmQwly.js";import{i as Zg}from"./CpuChip02-CskLQzoo.js";import{i as XL}from"./Edit01-BbH3QU1f.js";import{i as pl}from"./Check-rWpHI8gM.js";import{a as Qg}from"./Copy01-DoovYO7Z.js";import{i as ZL}from"./Terminal-BYjTu7XM.js";import{g as QL}from"./generate-id-Dyweu44Y.js";import{s as JL}from"./Trash01-BML4V2Hg.js";import{u as e2}from"./use-create-virtual-mcp-CBTNAU_C.js";import{s as t2}from"./Plus-C_fl4PEA.js";var Pa;(function(t){t.assertEqual=i=>{};function e(i){}t.assertIs=e;function n(i){throw new Error}t.assertNever=n,t.arrayToEnum=i=>{const a={};for(const s of i)a[s]=s;return a},t.getValidEnumValues=i=>{const a=t.objectKeys(i).filter(o=>typeof i[i[o]]!="number"),s={};for(const o of a)s[o]=i[o];return t.objectValues(s)},t.objectValues=i=>t.objectKeys(i).map(function(a){return i[a]}),t.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const a=[];for(const s in i)Object.prototype.hasOwnProperty.call(i,s)&&a.push(s);return a},t.find=(i,a)=>{for(const s of i)if(a(s))return s},t.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&Number.isFinite(i)&&Math.floor(i)===i;function r(i,a=" | "){return i.map(s=>typeof s=="string"?`'${s}'`:s).join(a)}t.joinValues=r,t.jsonStringifyReplacer=(i,a)=>typeof a=="bigint"?a.toString():a})(Pa||(Pa={}));var jE;(function(t){t.mergeShapes=(e,n)=>({...e,...n})})(jE||(jE={}));Pa.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]);Pa.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class oo extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=e}format(e){const n=e||function(a){return a.message},r={_errors:[]},i=a=>{for(const s of a.issues)if(s.code==="invalid_union")s.unionErrors.map(i);else if(s.code==="invalid_return_type")i(s.returnTypeError);else if(s.code==="invalid_arguments")i(s.argumentsError);else if(s.path.length===0)r._errors.push(n(s));else{let o=r,l=0;for(;l<s.path.length;){const u=s.path[l];l===s.path.length-1?(o[u]=o[u]||{_errors:[]},o[u]._errors.push(n(s))):o[u]=o[u]||{_errors:[]},o=o[u],l++}}};return i(this),r}static assert(e){if(!(e instanceof oo))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Pa.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=n=>n.message){const n=Object.create(null),r=[];for(const i of this.issues)if(i.path.length>0){const a=i.path[0];n[a]=n[a]||[],n[a].push(e(i))}else r.push(e(i));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}oo.create=t=>new oo(t);var qE;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e?.message})(qE||(qE={}));var ge;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(ge||(ge={}));const T_=({size:t=24,color:e="currentColor",...n})=>M.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},M.createElement("path",{d:"M17.115 15.358c-.27.306-.554.608-.851.905-4.296 4.296-9.678 5.88-12.021 3.536-1.607-1.606-1.368-4.641.325-7.775M6.89 8.725c.281-.32.578-.636.888-.947C12.074 3.482 17.456 1.9 19.8 4.243c1.608 1.607 1.367 4.645-.33 7.781m-3.206-4.246c4.296 4.296 5.88 9.678 3.536 12.021-2.343 2.343-7.725.76-12.02-3.535C3.483 11.968 1.9 6.586 4.244 4.243c2.343-2.343 7.725-.76 12.02 3.535ZM13 12a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"}));T_.displayName="Atom02";const S_=({size:t=24,color:e="currentColor",...n})=>M.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},M.createElement("path",{d:"m7 15 5 5 5-5M7 9l5-5 5 5"}));S_.displayName="ChevronSelectorVertical";const A_=({size:t=24,color:e="currentColor",...n})=>M.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},M.createElement("path",{d:"M15.938 15.938A7.001 7.001 0 0 0 15 2a7.001 7.001 0 0 0-6.938 6.062M16 15a7 7 0 1 1-14 0 7 7 0 0 1 14 0Z"}));A_.displayName="Coins01";const k_=({size:t=24,color:e="currentColor",...n})=>M.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},M.createElement("path",{d:"M6 16a4 4 0 0 0 4 4h4a4 4 0 0 0 0-8h-4a4 4 0 0 1 0-8h4a4 4 0 0 1 4 4m-6-6v20"}));k_.displayName="CurrencyDollar";const x_=({size:t=24,color:e="currentColor",...n})=>M.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},M.createElement("path",{d:"M15 16.5V19c0 .932 0 1.398-.152 1.765a2 2 0 0 1-1.083 1.083C13.398 22 12.932 22 12 22c-.932 0-1.398 0-1.765-.152a2 2 0 0 1-1.083-1.083C9 20.398 9 19.932 9 19v-2.5m6 0c2.649-1.157 4.5-3.925 4.5-7a7.5 7.5 0 0 0-15 0c0 3.075 1.851 5.843 4.5 7m6 0H9"}));x_.displayName="Lightbulb01";const v_=({size:t=24,color:e="currentColor",...n})=>M.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},M.createElement("path",{d:"m18 8 4 4m0 0-4 4m4-4H9m6-7.796A8.383 8.383 0 0 0 10.667 3C5.88 3 2 7.03 2 12s3.88 9 8.667 9A8.384 8.384 0 0 0 15 19.796"}));v_.displayName="LogOut04";const fl=({size:t=24,color:e="currentColor",...n})=>M.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},M.createElement("path",{d:"m6.5 13 .784 1.569c.266.53.399.796.576 1.026a3 3 0 0 0 .545.545c.23.177.495.31 1.026.575L11 17.5l-1.569.785c-.53.265-.796.398-1.026.575a3 3 0 0 0-.545.545c-.177.23-.31.495-.576 1.026L6.5 22l-.784-1.569c-.266-.53-.399-.796-.576-1.026a3 3 0 0 0-.545-.545c-.23-.177-.495-.31-1.026-.575L2 17.5l1.569-.785c.53-.265.796-.398 1.026-.575a3 3 0 0 0 .545-.545c.177-.23.31-.495.576-1.026L6.5 13ZM15 2l1.179 3.064c.282.734.423 1.1.642 1.409a3 3 0 0 0 .706.706c.309.22.675.36 1.409.642L22 9l-3.064 1.179c-.734.282-1.1.423-1.409.642a3 3 0 0 0-.706.706c-.22.309-.36.675-.642 1.409L15 16l-1.179-3.064c-.282-.734-.423-1.1-.642-1.409a3 3 0 0 0-.706-.706c-.309-.22-.675-.36-1.409-.642L8 9l3.064-1.179c.734-.282 1.1-.423 1.409-.642a3 3 0 0 0 .706-.706c.22-.309.36-.675.642-1.409L15 2Z"}));fl.displayName="Stars01";const __=({size:t=24,color:e="currentColor",...n})=>M.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},M.createElement("path",{d:"M3 7.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C5.28 3 6.12 3 7.8 3h8.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C21 5.28 21 6.12 21 7.8v8.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V7.8Z"}));__.displayName="Stop";const C_=({size:t=24,color:e="currentColor",...n})=>M.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},M.createElement("path",{d:"M16 8V5l3-3 1 2 2 1-3 3h-3Zm0 0-4 4m10 0c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m5 10a5 5 0 1 1-5-5"}));C_.displayName="Target04";const I_=({size:t=24,color:e="currentColor",...n})=>M.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},M.createElement("path",{d:"m15 9-6 6m0-6 6 6m7-3c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z"}));I_.displayName="XCircle";function yt(t){const e=ne.c(8);let n,r;e[0]!==t?({className:n,...r}=t,e[0]=t,e[1]=n,e[2]=r):(n=e[1],r=e[2]);let i;e[3]!==n?(i=me("bg-accent animate-pulse rounded-md",n),e[3]=n,e[4]=i):i=e[4];let a;return e[5]!==r||e[6]!==i?(a=S.jsx("div",{"data-slot":"skeleton",className:i,...r}),e[5]=r,e[6]=i,e[7]=a):a=e[7],a}function n2(){const t=ne.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=so.developerMode(),t[0]=e):e=t[0],ma(e,!1)}var N_="vercel.ai.error",r2=Symbol.for(N_),GE,VE,Cn=class w_ extends(VE=Error,GE=r2,VE){constructor({name:e,message:n,cause:r}){super(n),this[GE]=!0,this.name=e,this.cause=r}static isInstance(e){return w_.hasMarker(e,N_)}static hasMarker(e,n){const r=Symbol.for(n);return e!=null&&typeof e=="object"&&r in e&&typeof e[r]=="boolean"&&e[r]===!0}};function R_(t){return t==null?"unknown error":typeof t=="string"?t:t instanceof Error?t.message:JSON.stringify(t)}var O_="AI_InvalidArgumentError",L_=`vercel.ai.error.${O_}`,i2=Symbol.for(L_),WE,YE,a2=class extends(YE=Cn,WE=i2,YE){constructor({message:t,cause:e,argument:n}){super({name:O_,message:t,cause:e}),this[WE]=!0,this.argument=n}static isInstance(t){return Cn.hasMarker(t,L_)}},D_="AI_JSONParseError",M_=`vercel.ai.error.${D_}`,s2=Symbol.for(M_),KE,XE,ZE=class extends(XE=Cn,KE=s2,XE){constructor({text:t,cause:e}){super({name:D_,message:`JSON parsing failed: Text: ${t}.
1
+ import{r as M,c as ne,j as S,bU as zO,bV as jO,x as qO,ad as jt,s as ee,bW as io,bX as s_,bn as GO,bo as VO,bl as WO,aa as Ot,ab as Ma,k as rs,o as Oe,bm as de,ac as Zn,bY as YO,bZ as ze,_ as KO,bu as ul,u as Gn,l as o_,K as Ui,a as l_,N as Gg,a8 as un,e as u_,b as XO,d as ZO,Q as c_,b_ as d_,bR as QO,bz as Lt,b$ as JO,c0 as eL,aX as p_,c1 as tL,c2 as vn,c3 as Xl,c4 as nL,c5 as Zl,c6 as rL,c7 as iL,c8 as aL,c9 as sL,ca as oL,cb as lL,cc as uL,cd as cL,f as f_,bQ as ao,ai as Vg,aj as dL,al as pL,ae as fL,ag as hL,ah as mL,bb as gL,aq as bL}from"./index-CvLEK5kU.js";import{c as me,B as gt}from"./button-BDmDqE1y.js";import{i as EL}from"./X-C5X5_Hg0.js";import{u as Qr,a as Wg,d as yL}from"./constants-bvduSbuP.js";import{b as h_}from"./use-virtual-mcp-DnQE2OId.js";import{b as TL}from"./use-collections-Db2rAgnN.js";import{b as m_,a as SL}from"./use-connection-Dd3WfwgO.js";import{a as AL}from"./use-binding-D3Z4tcGL.js";import{u as kL,M as g_,s as HE}from"./monaco-editor-BL6Qs5QL.js";import{u as ma,L as so}from"./localstorage-keys-GUcDb8Bh.js";import{I as Yg}from"./input-X_pZqzD9.js";import{a as is,b as as,P as ss}from"./popover-CnPhimSt.js";import{S as xL,a as vL,b as _L,c as CL,d as IL}from"./select-Bc2Bn-Rz.js";import{i as NL}from"./File06-BJSnpJUU.js";import{c as wL,i as b_}from"./Grid01-BKPBdVgH.js";import{a as RL}from"./Image01-Bf48ELb0.js";import{i as cl}from"./SearchMd-DDul_VnD.js";import{S as dl}from"./spinner-bU_UQLDR.js";import{c as Jr,T as ei,a as ti,b as Kg}from"./tooltip-D0a-0EdS.js";import{u as OL,g as E_,l as $E,a as zE,r as LL}from"./use-mcp-prompts-BlFopYYu.js";import{E as DL,i as ML}from"./error-boundary-LSbGudzr.js";import{c as PL,b as FL,e as BL,a as UL,D as HL}from"./dialog-C9WI8xll.js";import{a as $L,F as zL,b as jL,c as qL,d as GL,f as VL}from"./form-k9nklkyB.js";import{I as Xg,E as WL}from"./empty-state-DjyMDe9Q.js";import{i as y_}from"./AlertCircle-DqJIxjvF.js";import{i as YL}from"./ArrowUp-ttOC0bOt.js";import{t as KL}from"./ChevronDown-DsBSj-kA.js";import{i as Zg}from"./CpuChip02-DiEDSlAW.js";import{i as XL}from"./Edit01-BDqZRKj8.js";import{i as pl}from"./Check-BcsxKL4g.js";import{a as Qg}from"./Copy01-BR_VfIYA.js";import{i as ZL}from"./Terminal-BRId488U.js";import{g as QL}from"./generate-id-Dyweu44Y.js";import{s as JL}from"./Trash01-CaywBdrJ.js";import{u as e2}from"./use-create-virtual-mcp-IHfdsr8Q.js";import{s as t2}from"./Plus-DSeo2GxF.js";var Pa;(function(t){t.assertEqual=i=>{};function e(i){}t.assertIs=e;function n(i){throw new Error}t.assertNever=n,t.arrayToEnum=i=>{const a={};for(const s of i)a[s]=s;return a},t.getValidEnumValues=i=>{const a=t.objectKeys(i).filter(o=>typeof i[i[o]]!="number"),s={};for(const o of a)s[o]=i[o];return t.objectValues(s)},t.objectValues=i=>t.objectKeys(i).map(function(a){return i[a]}),t.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const a=[];for(const s in i)Object.prototype.hasOwnProperty.call(i,s)&&a.push(s);return a},t.find=(i,a)=>{for(const s of i)if(a(s))return s},t.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&Number.isFinite(i)&&Math.floor(i)===i;function r(i,a=" | "){return i.map(s=>typeof s=="string"?`'${s}'`:s).join(a)}t.joinValues=r,t.jsonStringifyReplacer=(i,a)=>typeof a=="bigint"?a.toString():a})(Pa||(Pa={}));var jE;(function(t){t.mergeShapes=(e,n)=>({...e,...n})})(jE||(jE={}));Pa.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]);Pa.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class oo extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=e}format(e){const n=e||function(a){return a.message},r={_errors:[]},i=a=>{for(const s of a.issues)if(s.code==="invalid_union")s.unionErrors.map(i);else if(s.code==="invalid_return_type")i(s.returnTypeError);else if(s.code==="invalid_arguments")i(s.argumentsError);else if(s.path.length===0)r._errors.push(n(s));else{let o=r,l=0;for(;l<s.path.length;){const u=s.path[l];l===s.path.length-1?(o[u]=o[u]||{_errors:[]},o[u]._errors.push(n(s))):o[u]=o[u]||{_errors:[]},o=o[u],l++}}};return i(this),r}static assert(e){if(!(e instanceof oo))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Pa.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=n=>n.message){const n=Object.create(null),r=[];for(const i of this.issues)if(i.path.length>0){const a=i.path[0];n[a]=n[a]||[],n[a].push(e(i))}else r.push(e(i));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}oo.create=t=>new oo(t);var qE;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e?.message})(qE||(qE={}));var ge;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(ge||(ge={}));const T_=({size:t=24,color:e="currentColor",...n})=>M.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},M.createElement("path",{d:"M17.115 15.358c-.27.306-.554.608-.851.905-4.296 4.296-9.678 5.88-12.021 3.536-1.607-1.606-1.368-4.641.325-7.775M6.89 8.725c.281-.32.578-.636.888-.947C12.074 3.482 17.456 1.9 19.8 4.243c1.608 1.607 1.367 4.645-.33 7.781m-3.206-4.246c4.296 4.296 5.88 9.678 3.536 12.021-2.343 2.343-7.725.76-12.02-3.535C3.483 11.968 1.9 6.586 4.244 4.243c2.343-2.343 7.725-.76 12.02 3.535ZM13 12a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"}));T_.displayName="Atom02";const S_=({size:t=24,color:e="currentColor",...n})=>M.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},M.createElement("path",{d:"m7 15 5 5 5-5M7 9l5-5 5 5"}));S_.displayName="ChevronSelectorVertical";const A_=({size:t=24,color:e="currentColor",...n})=>M.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},M.createElement("path",{d:"M15.938 15.938A7.001 7.001 0 0 0 15 2a7.001 7.001 0 0 0-6.938 6.062M16 15a7 7 0 1 1-14 0 7 7 0 0 1 14 0Z"}));A_.displayName="Coins01";const k_=({size:t=24,color:e="currentColor",...n})=>M.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},M.createElement("path",{d:"M6 16a4 4 0 0 0 4 4h4a4 4 0 0 0 0-8h-4a4 4 0 0 1 0-8h4a4 4 0 0 1 4 4m-6-6v20"}));k_.displayName="CurrencyDollar";const x_=({size:t=24,color:e="currentColor",...n})=>M.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},M.createElement("path",{d:"M15 16.5V19c0 .932 0 1.398-.152 1.765a2 2 0 0 1-1.083 1.083C13.398 22 12.932 22 12 22c-.932 0-1.398 0-1.765-.152a2 2 0 0 1-1.083-1.083C9 20.398 9 19.932 9 19v-2.5m6 0c2.649-1.157 4.5-3.925 4.5-7a7.5 7.5 0 0 0-15 0c0 3.075 1.851 5.843 4.5 7m6 0H9"}));x_.displayName="Lightbulb01";const v_=({size:t=24,color:e="currentColor",...n})=>M.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},M.createElement("path",{d:"m18 8 4 4m0 0-4 4m4-4H9m6-7.796A8.383 8.383 0 0 0 10.667 3C5.88 3 2 7.03 2 12s3.88 9 8.667 9A8.384 8.384 0 0 0 15 19.796"}));v_.displayName="LogOut04";const fl=({size:t=24,color:e="currentColor",...n})=>M.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},M.createElement("path",{d:"m6.5 13 .784 1.569c.266.53.399.796.576 1.026a3 3 0 0 0 .545.545c.23.177.495.31 1.026.575L11 17.5l-1.569.785c-.53.265-.796.398-1.026.575a3 3 0 0 0-.545.545c-.177.23-.31.495-.576 1.026L6.5 22l-.784-1.569c-.266-.53-.399-.796-.576-1.026a3 3 0 0 0-.545-.545c-.23-.177-.495-.31-1.026-.575L2 17.5l1.569-.785c.53-.265.796-.398 1.026-.575a3 3 0 0 0 .545-.545c.177-.23.31-.495.576-1.026L6.5 13ZM15 2l1.179 3.064c.282.734.423 1.1.642 1.409a3 3 0 0 0 .706.706c.309.22.675.36 1.409.642L22 9l-3.064 1.179c-.734.282-1.1.423-1.409.642a3 3 0 0 0-.706.706c-.22.309-.36.675-.642 1.409L15 16l-1.179-3.064c-.282-.734-.423-1.1-.642-1.409a3 3 0 0 0-.706-.706c-.309-.22-.675-.36-1.409-.642L8 9l3.064-1.179c.734-.282 1.1-.423 1.409-.642a3 3 0 0 0 .706-.706c.22-.309.36-.675.642-1.409L15 2Z"}));fl.displayName="Stars01";const __=({size:t=24,color:e="currentColor",...n})=>M.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},M.createElement("path",{d:"M3 7.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C5.28 3 6.12 3 7.8 3h8.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C21 5.28 21 6.12 21 7.8v8.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V7.8Z"}));__.displayName="Stop";const C_=({size:t=24,color:e="currentColor",...n})=>M.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},M.createElement("path",{d:"M16 8V5l3-3 1 2 2 1-3 3h-3Zm0 0-4 4m10 0c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m5 10a5 5 0 1 1-5-5"}));C_.displayName="Target04";const I_=({size:t=24,color:e="currentColor",...n})=>M.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},M.createElement("path",{d:"m15 9-6 6m0-6 6 6m7-3c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z"}));I_.displayName="XCircle";function yt(t){const e=ne.c(8);let n,r;e[0]!==t?({className:n,...r}=t,e[0]=t,e[1]=n,e[2]=r):(n=e[1],r=e[2]);let i;e[3]!==n?(i=me("bg-accent animate-pulse rounded-md",n),e[3]=n,e[4]=i):i=e[4];let a;return e[5]!==r||e[6]!==i?(a=S.jsx("div",{"data-slot":"skeleton",className:i,...r}),e[5]=r,e[6]=i,e[7]=a):a=e[7],a}function n2(){const t=ne.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=so.developerMode(),t[0]=e):e=t[0],ma(e,!1)}var N_="vercel.ai.error",r2=Symbol.for(N_),GE,VE,Cn=class w_ extends(VE=Error,GE=r2,VE){constructor({name:e,message:n,cause:r}){super(n),this[GE]=!0,this.name=e,this.cause=r}static isInstance(e){return w_.hasMarker(e,N_)}static hasMarker(e,n){const r=Symbol.for(n);return e!=null&&typeof e=="object"&&r in e&&typeof e[r]=="boolean"&&e[r]===!0}};function R_(t){return t==null?"unknown error":typeof t=="string"?t:t instanceof Error?t.message:JSON.stringify(t)}var O_="AI_InvalidArgumentError",L_=`vercel.ai.error.${O_}`,i2=Symbol.for(L_),WE,YE,a2=class extends(YE=Cn,WE=i2,YE){constructor({message:t,cause:e,argument:n}){super({name:O_,message:t,cause:e}),this[WE]=!0,this.argument=n}static isInstance(t){return Cn.hasMarker(t,L_)}},D_="AI_JSONParseError",M_=`vercel.ai.error.${D_}`,s2=Symbol.for(M_),KE,XE,ZE=class extends(XE=Cn,KE=s2,XE){constructor({text:t,cause:e}){super({name:D_,message:`JSON parsing failed: Text: ${t}.
2
2
  Error message: ${R_(e)}`,cause:e}),this[KE]=!0,this.text=t}static isInstance(t){return Cn.hasMarker(t,M_)}},P_="AI_TypeValidationError",F_=`vercel.ai.error.${P_}`,o2=Symbol.for(F_),QE,JE,Ci=class Mm extends(JE=Cn,QE=o2,JE){constructor({value:e,cause:n}){super({name:P_,message:`Type validation failed: Value: ${JSON.stringify(e)}.
3
3
  Error message: ${R_(n)}`,cause:n}),this[QE]=!0,this.value=e}static isInstance(e){return Cn.hasMarker(e,F_)}static wrap({value:e,cause:n}){return Mm.isInstance(n)&&n.value===e?n:new Mm({value:e,cause:n})}},ls=({prefix:t,size:e=16,alphabet:n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:r="-"}={})=>{const i=()=>{const a=n.length,s=new Array(e);for(let o=0;o<e;o++)s[o]=n[Math.random()*a|0];return s.join("")};if(t==null)return i;if(n.includes(r))throw new a2({argument:"separator",message:`The separator "${r}" must not be part of the alphabet "${n}".`});return()=>`${t}${r}${i()}`},l2=ls();function e0(t=globalThis){var e,n,r;return t.window?"runtime/browser":(e=t.navigator)!=null&&e.userAgent?`runtime/${t.navigator.userAgent.toLowerCase()}`:(r=(n=t.process)==null?void 0:n.versions)!=null&&r.node?`runtime/node.js/${t.process.version.substring(0)}`:t.EdgeRuntime?"runtime/vercel-edge":"runtime/unknown"}function wr(t){if(t==null)return{};const e={};if(t instanceof Headers)t.forEach((n,r)=>{e[r.toLowerCase()]=n});else{Array.isArray(t)||(t=Object.entries(t));for(const[n,r]of t)r!=null&&(e[n.toLowerCase()]=r)}return e}function t0(t,...e){const n=new Headers(wr(t)),r=n.get("user-agent")||"";return n.set("user-agent",[r,...e].filter(Boolean).join(" ")),Object.fromEntries(n.entries())}var u2=/"__proto__"\s*:/,c2=/"constructor"\s*:/;function n0(t){const e=JSON.parse(t);return e===null||typeof e!="object"||u2.test(t)===!1&&c2.test(t)===!1?e:d2(e)}function d2(t){let e=[t];for(;e.length;){const n=e;e=[];for(const r of n){if(Object.prototype.hasOwnProperty.call(r,"__proto__"))throw new SyntaxError("Object contains forbidden prototype property");if(Object.prototype.hasOwnProperty.call(r,"constructor")&&Object.prototype.hasOwnProperty.call(r.constructor,"prototype"))throw new SyntaxError("Object contains forbidden prototype property");for(const i in r){const a=r[i];a&&typeof a=="object"&&e.push(a)}}}return t}function p2(t){const{stackTraceLimit:e}=Error;try{Error.stackTraceLimit=0}catch{return n0(t)}try{return n0(t)}finally{Error.stackTraceLimit=e}}function Jg(t){if(t.type==="object"||Array.isArray(t.type)&&t.type.includes("object")){t.additionalProperties=!1;const{properties:n}=t;if(n!=null)for(const r of Object.keys(n))n[r]=Cr(n[r])}t.items!=null&&(t.items=Array.isArray(t.items)?t.items.map(Cr):Cr(t.items)),t.anyOf!=null&&(t.anyOf=t.anyOf.map(Cr)),t.allOf!=null&&(t.allOf=t.allOf.map(Cr)),t.oneOf!=null&&(t.oneOf=t.oneOf.map(Cr));const{definitions:e}=t;if(e!=null)for(const n of Object.keys(e))e[n]=Cr(e[n]);return t}function Cr(t){return typeof t=="boolean"?t:Jg(t)}var f2=Symbol("Let zodToJsonSchema decide on which parser to use"),r0={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",strictUnions:!1,definitions:{},errorMessages:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref"},h2=t=>typeof t=="string"?{...r0,name:t}:{...r0,...t};function Qt(){return{}}function m2(t,e){var n,r,i;const a={type:"array"};return(n=t.type)!=null&&n._def&&((i=(r=t.type)==null?void 0:r._def)==null?void 0:i.typeName)!==ge.ZodAny&&(a.items=De(t.type._def,{...e,currentPath:[...e.currentPath,"items"]})),t.minLength&&(a.minItems=t.minLength.value),t.maxLength&&(a.maxItems=t.maxLength.value),t.exactLength&&(a.minItems=t.exactLength.value,a.maxItems=t.exactLength.value),a}function g2(t){const e={type:"integer",format:"int64"};if(!t.checks)return e;for(const n of t.checks)switch(n.kind){case"min":n.inclusive?e.minimum=n.value:e.exclusiveMinimum=n.value;break;case"max":n.inclusive?e.maximum=n.value:e.exclusiveMaximum=n.value;break;case"multipleOf":e.multipleOf=n.value;break}return e}function b2(){return{type:"boolean"}}function B_(t,e){return De(t.type._def,e)}var E2=(t,e)=>De(t.innerType._def,e);function U_(t,e,n){const r=n??e.dateStrategy;if(Array.isArray(r))return{anyOf:r.map((i,a)=>U_(t,e,i))};switch(r){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return y2(t)}}var y2=t=>{const e={type:"integer",format:"unix-time"};for(const n of t.checks)switch(n.kind){case"min":e.minimum=n.value;break;case"max":e.maximum=n.value;break}return e};function T2(t,e){return{...De(t.innerType._def,e),default:t.defaultValue()}}function S2(t,e){return e.effectStrategy==="input"?De(t.schema._def,e):Qt()}function A2(t){return{type:"string",enum:Array.from(t.values)}}var k2=t=>"type"in t&&t.type==="string"?!1:"allOf"in t;function x2(t,e){const n=[De(t.left._def,{...e,currentPath:[...e.currentPath,"allOf","0"]}),De(t.right._def,{...e,currentPath:[...e.currentPath,"allOf","1"]})].filter(i=>!!i),r=[];return n.forEach(i=>{if(k2(i))r.push(...i.allOf);else{let a=i;if("additionalProperties"in i&&i.additionalProperties===!1){const{additionalProperties:s,...o}=i;a=o}r.push(a)}}),r.length?{allOf:r}:void 0}function v2(t){const e=typeof t.value;return e!=="bigint"&&e!=="number"&&e!=="boolean"&&e!=="string"?{type:Array.isArray(t.value)?"array":"object"}:{type:e==="bigint"?"integer":e,const:t.value}}var Ql=void 0,pn={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>(Ql===void 0&&(Ql=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),Ql),uuid:/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,ipv4:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ipv4Cidr:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function H_(t,e){const n={type:"string"};if(t.checks)for(const r of t.checks)switch(r.kind){case"min":n.minLength=typeof n.minLength=="number"?Math.max(n.minLength,r.value):r.value;break;case"max":n.maxLength=typeof n.maxLength=="number"?Math.min(n.maxLength,r.value):r.value;break;case"email":switch(e.emailStrategy){case"format:email":fn(n,"email",r.message,e);break;case"format:idn-email":fn(n,"idn-email",r.message,e);break;case"pattern:zod":Rt(n,pn.email,r.message,e);break}break;case"url":fn(n,"uri",r.message,e);break;case"uuid":fn(n,"uuid",r.message,e);break;case"regex":Rt(n,r.regex,r.message,e);break;case"cuid":Rt(n,pn.cuid,r.message,e);break;case"cuid2":Rt(n,pn.cuid2,r.message,e);break;case"startsWith":Rt(n,RegExp(`^${Jl(r.value,e)}`),r.message,e);break;case"endsWith":Rt(n,RegExp(`${Jl(r.value,e)}$`),r.message,e);break;case"datetime":fn(n,"date-time",r.message,e);break;case"date":fn(n,"date",r.message,e);break;case"time":fn(n,"time",r.message,e);break;case"duration":fn(n,"duration",r.message,e);break;case"length":n.minLength=typeof n.minLength=="number"?Math.max(n.minLength,r.value):r.value,n.maxLength=typeof n.maxLength=="number"?Math.min(n.maxLength,r.value):r.value;break;case"includes":{Rt(n,RegExp(Jl(r.value,e)),r.message,e);break}case"ip":{r.version!=="v6"&&fn(n,"ipv4",r.message,e),r.version!=="v4"&&fn(n,"ipv6",r.message,e);break}case"base64url":Rt(n,pn.base64url,r.message,e);break;case"jwt":Rt(n,pn.jwt,r.message,e);break;case"cidr":{r.version!=="v6"&&Rt(n,pn.ipv4Cidr,r.message,e),r.version!=="v4"&&Rt(n,pn.ipv6Cidr,r.message,e);break}case"emoji":Rt(n,pn.emoji(),r.message,e);break;case"ulid":{Rt(n,pn.ulid,r.message,e);break}case"base64":{switch(e.base64Strategy){case"format:binary":{fn(n,"binary",r.message,e);break}case"contentEncoding:base64":{n.contentEncoding="base64";break}case"pattern:zod":{Rt(n,pn.base64,r.message,e);break}}break}case"nanoid":Rt(n,pn.nanoid,r.message,e)}return n}function Jl(t,e){return e.patternStrategy==="escape"?C2(t):t}var _2=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function C2(t){let e="";for(let n=0;n<t.length;n++)_2.has(t[n])||(e+="\\"),e+=t[n];return e}function fn(t,e,n,r){var i;t.format||(i=t.anyOf)!=null&&i.some(a=>a.format)?(t.anyOf||(t.anyOf=[]),t.format&&(t.anyOf.push({format:t.format}),delete t.format),t.anyOf.push({format:e,...n&&r.errorMessages&&{errorMessage:{format:n}}})):t.format=e}function Rt(t,e,n,r){var i;t.pattern||(i=t.allOf)!=null&&i.some(a=>a.pattern)?(t.allOf||(t.allOf=[]),t.pattern&&(t.allOf.push({pattern:t.pattern}),delete t.pattern),t.allOf.push({pattern:i0(e,r),...n&&r.errorMessages&&{errorMessage:{pattern:n}}})):t.pattern=i0(e,r)}function i0(t,e){var n;if(!e.applyRegexFlags||!t.flags)return t.source;const r={i:t.flags.includes("i"),m:t.flags.includes("m"),s:t.flags.includes("s")},i=r.i?t.source.toLowerCase():t.source;let a="",s=!1,o=!1,l=!1;for(let u=0;u<i.length;u++){if(s){a+=i[u],s=!1;continue}if(r.i){if(o){if(i[u].match(/[a-z]/)){l?(a+=i[u],a+=`${i[u-2]}-${i[u]}`.toUpperCase(),l=!1):i[u+1]==="-"&&((n=i[u+2])!=null&&n.match(/[a-z]/))?(a+=i[u],l=!0):a+=`${i[u]}${i[u].toUpperCase()}`;continue}}else if(i[u].match(/[a-z]/)){a+=`[${i[u]}${i[u].toUpperCase()}]`;continue}}if(r.m){if(i[u]==="^"){a+=`(^|(?<=[\r
4
4
  ]))`;continue}else if(i[u]==="$"){a+=`($|(?=[\r