@decocms/mesh 1.13.4 → 2.0.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.
- package/dist/client/assets/{AlertCircle-CmTLFfTW.js → AlertCircle-BnQOnIUK.js} +1 -1
- package/dist/client/assets/{ArrowLeft-kUb-nLpp.js → ArrowLeft-s2LVd4Jh.js} +1 -1
- package/dist/client/assets/{ChevronDown-BIixgdXr.js → ChevronDown-DLHFQDss.js} +1 -1
- package/dist/client/assets/{ChevronRight-XFvS51AW.js → ChevronRight-Df7vxLuO.js} +1 -1
- package/dist/client/assets/{Copy01-Bbnq-cRP.js → Copy01-Cg-zZNgL.js} +1 -1
- package/dist/client/assets/{DotsHorizontal-Wp9Jfd-l.js → DotsHorizontal-S6AK1qMQ.js} +1 -1
- package/dist/client/assets/{DotsVertical-BWJddsCE.js → DotsVertical-DL1BOVox.js} +1 -1
- package/dist/client/assets/{File06-AO49hgxj.js → File06-BXoByNkx.js} +1 -1
- package/dist/client/assets/{FilterLines-D_oBG_mT.js → FilterLines-D-86Z5xi.js} +1 -1
- package/dist/client/assets/{FlipBackward-v3DJy5dX.js → FlipBackward-ZBsKqLYA.js} +1 -1
- package/dist/client/assets/{GitBranch01-Bg8OxNYr.js → GitBranch01-BU4xfNWf.js} +1 -1
- package/dist/client/assets/{Grid01-D8szKORD.js → Grid01-DTA7Ao9S.js} +1 -1
- package/dist/client/assets/{Inbox01-DKJqmGhJ.js → Inbox01-BMVbBJQA.js} +1 -1
- package/dist/client/assets/{InfoCircle-DQgIwXgE.js → InfoCircle-DrzBjG0U.js} +1 -1
- package/dist/client/assets/{Key01-j8Px8dQ3.js → Key01-DHDQn1LD.js} +1 -1
- package/dist/client/assets/{LinkExternal01-DtwuKg3k.js → LinkExternal01-cG3zQluY.js} +1 -1
- package/dist/client/assets/{Loading01-BFMDuD9f.js → Loading01-ev_d5Ul8.js} +1 -1
- package/dist/client/assets/{Lock01-B2Dlj0_A.js → Lock01-SYpb-IcY.js} +1 -1
- package/dist/client/assets/{Play-DZwkJO6F.js → Play-vz5syF_s.js} +1 -1
- package/dist/client/assets/{Plus-DCJuRkSA.js → Plus-CoA7veNR.js} +1 -1
- package/dist/client/assets/{Terminal-BgBiWCRz.js → Terminal-DmwCXCux.js} +1 -1
- package/dist/client/assets/{Trash01-DXJjsatW.js → Trash01-D5qtjx0n.js} +1 -1
- package/dist/client/assets/{X-DO5JCiO9.js → X-ucqgpLkV.js} +1 -1
- package/dist/client/assets/{XClose-yLguPztf.js → XClose-DDYQu1Ds.js} +1 -1
- package/dist/client/assets/{alert-dialog-BFj8FHOj.js → alert-dialog-IBFLzL1S.js} +1 -1
- package/dist/client/assets/{auth-CS1Cey1o.js → auth-ClQTpskF.js} +1 -1
- package/dist/client/assets/{auth-catchall-BbJfiMLS.js → auth-catchall-C5Hc-_dX.js} +1 -1
- package/dist/client/assets/{avatar-Cw7f7Fm7.js → avatar-DyfHzlT3.js} +1 -1
- package/dist/client/assets/{badge-cip1W12x.js → badge-CU1xq8P4.js} +1 -1
- package/dist/client/assets/{card-D7kEypvP.js → card-A0j-GQek.js} +1 -1
- package/dist/client/assets/{checkbox-DWLQD46M.js → checkbox-CKmzIgh_.js} +1 -1
- package/dist/client/assets/{collection-detail-BnPZ4P9Q.js → collection-detail-DfA_YTCa.js} +2 -2
- package/dist/client/assets/{collection-display-button-6se5sKw0.js → collection-display-button-CWAu-kzM.js} +1 -1
- package/dist/client/assets/{collection-header-BAGohiuL.js → collection-header-BwSc-_Kq.js} +1 -1
- package/dist/client/assets/{collection-page-BIjUaFrN.js → collection-page-DtIcDiZ6.js} +1 -1
- package/dist/client/assets/{collection-search-Bt7hJb44.js → collection-search-B9hWcULz.js} +1 -1
- package/dist/client/assets/{collection-tab-DofbhRON.js → collection-tab-B_R97p8f.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-Nus9WkY9.js → collection-table-wrapper-DQxK8uYh.js} +1 -1
- package/dist/client/assets/{connection-card-D6p9Apdb.js → connection-card-sB7DQoNm.js} +1 -1
- package/dist/client/assets/connection-detail-YVncur0H.js +1 -0
- package/dist/client/assets/connections-BXFZ3wvT.js +1 -0
- package/dist/client/assets/constants-C6wB7wau.js +1 -0
- package/dist/client/assets/{create-organization-dialog-D4ZZBa08.js → create-organization-dialog-Ekn1e0rk.js} +1 -1
- package/dist/client/assets/{dialog-BPRbMnap.js → dialog-BfmlLeqD.js} +1 -1
- package/dist/client/assets/{dropdown-menu-DH78LFXJ.js → dropdown-menu-B32DxAz8.js} +1 -1
- package/dist/client/assets/{empty-state-ZbNFSrHa.js → empty-state-B95c-kPA.js} +1 -1
- package/dist/client/assets/{env-vars-editor-HOD_p6bM.js → env-vars-editor-DWx6qXJH.js} +1 -1
- package/dist/client/assets/{error-boundary-CSDpN3IU.js → error-boundary-CeUty1fN.js} +1 -1
- package/dist/client/assets/extract-connection-data-BVC8xFla.js +1 -0
- package/dist/client/assets/{form-BWvfCr5W.js → form-JhtOrW0K.js} +1 -1
- package/dist/client/assets/{formatDistanceToNow-CUtIwGZO.js → formatDistanceToNow-Dn3t8R_C.js} +1 -1
- package/dist/client/assets/{gateway-detail-BVUnhnv6.js → gateway-detail-CFSYfSyg.js} +1 -1
- package/dist/client/assets/{gateway-selector-C6BhGNmC.js → gateway-selector-Dbt9ey6W.js} +1 -1
- package/dist/client/assets/{gateways-CUY_RF0g.js → gateways-DHNzyrkl.js} +1 -1
- package/dist/client/assets/github-icon-Dp3wHhYE.js +1 -0
- package/dist/client/assets/{home-BDMCtoFs.js → home-WYDr7ETr.js} +1 -1
- package/dist/client/assets/{index-CFqw5CAk.js → index-C1mekZiH.js} +2 -2
- package/dist/client/assets/index-D34hcbGg.js +25 -0
- package/dist/client/assets/{index-B1wnL3pV.css → index-DU53zBhA.css} +1 -1
- package/dist/client/assets/{index-m-YmB4ph.js → index-DfTxjkaX.js} +1 -1
- package/dist/client/assets/{input-BSDBSyke.js → input-DaU0Ki86.js} +1 -1
- package/dist/client/assets/{layout-C_WJLL2S.js → layout-BExJva29.js} +1 -1
- package/dist/client/assets/{lazy-highlighter-QHCwZ7Bv.js → lazy-highlighter-DaSVftiO.js} +1 -1
- package/dist/client/assets/{localstorage-keys-DnYi5wZr.js → localstorage-keys-D0etzHKS.js} +1 -1
- package/dist/client/assets/{login-unmsX_CR.js → login-CxcGRpej.js} +1 -1
- package/dist/client/assets/{mcp-oauth-D1oibR_i.js → mcp-oauth-BIn8BXP3.js} +1 -1
- package/dist/client/assets/mcp-server-detail-D6DvDFSK.js +1 -0
- package/dist/client/assets/{members-CgDxC8dY.js → members-D37gJv0X.js} +1 -1
- package/dist/client/assets/{monaco-editor-18l2E7lk.js → monaco-editor-Y-NWUHaI.js} +1 -1
- package/dist/client/assets/{monitoring-BS_WM-ML.js → monitoring-DlVue9UD.js} +1 -1
- package/dist/client/assets/{oauth-callback-tcEVQW2m.js → oauth-callback-WdcYmBNI.js} +1 -1
- package/dist/client/assets/{page-C_wcQFSa.js → page-BJvhqDxS.js} +1 -1
- package/dist/client/assets/page-CHJwayw7.js +1 -0
- package/dist/client/assets/{pin-to-sidebar-button-rUjoaKt7.js → pin-to-sidebar-button-byXh4q4H.js} +1 -1
- package/dist/client/assets/{popover-DGwJ1U8B.js → popover-DBs4BqBC.js} +1 -1
- package/dist/client/assets/{project-context-provider-C7-HmBKu.js → project-context-provider-CNg0H4Fo.js} +1 -1
- package/dist/client/assets/registry-utils-B7t_ZBUi.js +1 -0
- package/dist/client/assets/{resizable-BkJdAL7l.js → resizable-CTcl5OQf.js} +1 -1
- package/dist/client/assets/{resource-tabs-DhNIXHvE.js → resource-tabs-Bo8pm6CQ.js} +1 -1
- package/dist/client/assets/{select-DLPmxXDW.js → select-DbMbYBva.js} +1 -1
- package/dist/client/assets/{settings-Dg4J4piv.js → settings-7IN1gw1l.js} +1 -1
- package/dist/client/assets/{shell-layout-CW_3D6wx.js → shell-layout-nmRRj6_B.js} +1 -1
- package/dist/client/assets/{spinner-PGFal9m1.js → spinner-BGNFnmXu.js} +1 -1
- package/dist/client/assets/{switch-Fn7If0Ti.js → switch-CmxXnJyM.js} +1 -1
- package/dist/client/assets/{textarea-CbNfP826.js → textarea-DAtAmtc7.js} +1 -1
- package/dist/client/assets/{thread-history-popover-BW6o5miO.js → thread-history-popover-zKy_UgQq.js} +3 -3
- package/dist/client/assets/{tools-list-BMbd7IEa.js → tools-list-DN6AGQNR.js} +1 -1
- package/dist/client/assets/{use-binding-D77gExDp.js → use-binding-DgpwpEbl.js} +1 -1
- package/dist/client/assets/{use-connection-BPzhCo7m.js → use-connection-CqruT03A.js} +1 -1
- package/dist/client/assets/{use-connection-resources-CQGT27SN.js → use-connection-resources-CkpuXaD-.js} +1 -1
- package/dist/client/assets/{use-gateway-C8QVevg7.js → use-gateway-B1dIUnIy.js} +1 -1
- package/dist/client/assets/{use-list-state-BzeiRpp0.js → use-list-state-JWYeEYSc.js} +1 -1
- package/dist/client/assets/{use-mcp-D2cijL_p.js → use-mcp-JvlAYa3Y.js} +1 -1
- package/dist/client/assets/{use-members-CTyXRW-K.js → use-members-Do0dz7W-.js} +1 -1
- package/dist/client/assets/{use-mobile-BTxzaR4j.js → use-mobile-BtDidYAZ.js} +1 -1
- package/dist/client/assets/{use-organization-settings-aN8k0KJJ.js → use-organization-settings-BptZoa_W.js} +1 -1
- package/dist/client/assets/{use-tool-call-C4GcZMyW.js → use-tool-call-C_3QXJhb.js} +1 -1
- package/dist/client/assets/useQuery-BDFKN3rX.js +1 -0
- package/dist/client/assets/{value-DVG0CnkT.js → value-Dr4SJDBJ.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-DPmK0pgy.js → view-mode-toggle-D5v_tsuM.js} +1 -1
- package/dist/client/assets/{workflow-Dkm9OUwf.js → workflow-D697ZMd-.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/cli.js +108 -108
- package/dist/server/server.js +104 -104
- package/package.json +1 -1
- package/dist/client/assets/connection-detail-CkpomsVk.js +0 -1
- package/dist/client/assets/connections-X3ifJgj8.js +0 -1
- package/dist/client/assets/constants-B627FiQ3.js +0 -1
- package/dist/client/assets/extract-connection-data-BVRaMREC.js +0 -1
- package/dist/client/assets/github-icon-BrF3LMLL.js +0 -1
- package/dist/client/assets/index-2YBxks23.js +0 -25
- package/dist/client/assets/mcp-server-detail-5ueNKLNi.js +0 -1
- package/dist/client/assets/page-Bm0QzKLN.js +0 -1
- package/dist/client/assets/useQuery-DV_L-E86.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-C1mekZiH.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M12 8v4m0 4h.01M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z"}));i.displayName="AlertCircle";export{i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-C1mekZiH.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M19 12H5m0 0 7 7m-7-7 7-7"}));i.displayName="ArrowLeft";export{i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-C1mekZiH.js";const n=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"m6 9 6 6 6-6"}));n.displayName="ChevronDown";export{n as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-C1mekZiH.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"m9 18 6-6-6-6"}));i.displayName="ChevronRight";export{i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-C1mekZiH.js";const o=({size:e=24,color:t="currentColor",...a})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...a},r.createElement("path",{d:"M5 15c-.932 0-1.398 0-1.765-.152a2 2 0 0 1-1.083-1.083C2 13.398 2 12.932 2 12V5.2c0-1.12 0-1.68.218-2.108a2 2 0 0 1 .874-.874C3.52 2 4.08 2 5.2 2H12c.932 0 1.398 0 1.765.152a2 2 0 0 1 1.083 1.083C15 3.602 15 4.068 15 5m-2.8 17h6.6c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C22 20.48 22 19.92 22 18.8v-6.6c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C20.48 9 19.92 9 18.8 9h-6.6c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C9 10.52 9 11.08 9 12.2v6.6c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C10.52 22 11.08 22 12.2 22Z"}));o.displayName="Copy01";export{o as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-C1mekZiH.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M12 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm7 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM5 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"}));i.displayName="DotsHorizontal";export{i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t}from"./index-
|
|
1
|
+
import{r as t}from"./index-C1mekZiH.js";const i=({size:e=24,color:r="currentColor",...o})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:r,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},t.createElement("path",{d:"M12 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm0-7a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm0 14a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"}));i.displayName="DotsVertical";export{i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-C1mekZiH.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M14 2.27V6.4c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437c.214.11.494.11 1.054.11h4.13M16 13H8m8 4H8m2-8H8m6-7H8.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C4 4.28 4 5.12 4 6.8v10.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C6.28 22 7.12 22 8.8 22h6.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C20 19.72 20 18.88 20 17.2V8l-6-6Z"}));i.displayName="File06";export{i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ap as v,aq as f,ar as l,as as p,r as g}from"./index-
|
|
1
|
+
import{ap as v,aq as f,ar as l,as as p,r as g}from"./index-C1mekZiH.js";var m=class extends v{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:f()})}getOptimisticResult(e){return e.behavior=f(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){const{state:r}=e,i=super.createResult(e,t),{isFetching:a,isRefetching:P,isError:c,isRefetchError:d}=i,s=r.fetchMeta?.fetchMore?.direction,h=c&&s==="forward",o=a&&s==="forward",n=c&&s==="backward",u=a&&s==="backward";return{...i,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:p(t,r.data),hasPreviousPage:l(t,r.data),isFetchNextPageError:h,isFetchingNextPage:o,isFetchPreviousPageError:n,isFetchingPreviousPage:u,isRefetchError:d&&!h&&!n,isRefetching:P&&!o&&!u}}};const x=({size:e=24,color:t="currentColor",...r})=>g.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},g.createElement("path",{d:"M6 12h12M3 6h18M9 18h6"}));x.displayName="FilterLines";export{m as I,x as i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-C1mekZiH.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M3 9h13.5a4.5 4.5 0 1 1 0 9H12M3 9l4-4M3 9l4 4"}));i.displayName="FlipBackward";export{i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-C1mekZiH.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M3 3v10.2c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 18 6.12 18 7.8 18H15m0 0a3 3 0 1 0 6 0 3 3 0 0 0-6 0ZM3 8h12m0 0a3 3 0 1 0 6 0 3 3 0 0 0-6 0Z"}));i.displayName="GitBranch01";export{i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-C1mekZiH.js";const o=({size:e=24,color:a="currentColor",...t})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:a,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},r.createElement("path",{d:"M12 19V5m0 0-7 7m7-7 7 7"}));o.displayName="ArrowUp";const c=({size:e=24,color:a="currentColor",...t})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:a,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},r.createElement("path",{d:"M8.4 3H4.6c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C3 3.76 3 4.04 3 4.6v3.8c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C3.76 10 4.04 10 4.6 10h3.8c.56 0 .84 0 1.054-.109a1 1 0 0 0 .437-.437C10 9.24 10 8.96 10 8.4V4.6c0-.56 0-.84-.109-1.054a1 1 0 0 0-.437-.437C9.24 3 8.96 3 8.4 3Zm11 0h-3.8c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C14 3.76 14 4.04 14 4.6v3.8c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C14.76 10 15.04 10 15.6 10h3.8c.56 0 .84 0 1.054-.109a1 1 0 0 0 .437-.437C21 9.24 21 8.96 21 8.4V4.6c0-.56 0-.84-.109-1.054a1 1 0 0 0-.437-.437C20.24 3 19.96 3 19.4 3Zm0 11h-3.8c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C14 14.76 14 15.04 14 15.6v3.8c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C14.76 21 15.04 21 15.6 21h3.8c.56 0 .84 0 1.054-.109a1 1 0 0 0 .437-.437C21 20.24 21 19.96 21 19.4v-3.8c0-.56 0-.84-.109-1.054a1 1 0 0 0-.437-.437C20.24 14 19.96 14 19.4 14Zm-11 0H4.6c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C3 14.76 3 15.04 3 15.6v3.8c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C3.76 21 4.04 21 4.6 21h3.8c.56 0 .84 0 1.054-.109a1 1 0 0 0 .437-.437C10 20.24 10 19.96 10 19.4v-3.8c0-.56 0-.84-.109-1.054a1 1 0 0 0-.437-.437C9.24 14 8.96 14 8.4 14Z"}));c.displayName="Grid01";export{c,o as i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-C1mekZiH.js";const c=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M2.5 12h3.382c.685 0 1.312.387 1.618 1 .306.613.933 1 1.618 1h5.764c.685 0 1.312-.387 1.618-1 .306-.613.933-1 1.618-1H21.5M8.967 4h6.066c1.077 0 1.616 0 2.091.164a3 3 0 0 1 1.121.693c.36.352.6.833 1.082 1.796l2.166 4.333c.19.378.284.567.35.765.06.177.102.357.128.541.029.207.029.418.029.841V15.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C19.72 20 18.88 20 17.2 20H6.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C2 17.72 2 16.88 2 15.2v-2.067c0-.422 0-.634.029-.84.026-.184.068-.365.128-.541.066-.199.16-.388.35-.766l2.166-4.333c.482-.963.723-1.444 1.082-1.796a3 3 0 0 1 1.12-.693C7.352 4 7.89 4 8.968 4Z"}));c.displayName="Inbox01";export{c as n};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-C1mekZiH.js";const i=({size:e=24,color:o="currentColor",...t})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:o,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},r.createElement("path",{d:"M12 16v-4m0-4h.01M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z"}));i.displayName="InfoCircle";export{i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-C1mekZiH.js";const a=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M17 9a1.99 1.99 0 0 0-.586-1.414A1.994 1.994 0 0 0 15 7m0 8a6 6 0 1 0-5.946-5.193c.058.434.087.651.068.789a.853.853 0 0 1-.117.346c-.068.121-.187.24-.426.479l-5.11 5.11c-.173.173-.26.26-.322.36a1 1 0 0 0-.12.29C3 17.296 3 17.418 3 17.663V19.4c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C3.76 21 4.04 21 4.6 21H7v-2h2v-2h2l1.58-1.58c.238-.238.357-.357.478-.425a.852.852 0 0 1 .346-.117c.138-.02.355.01.789.068.264.036.533.054.807.054Z"}));a.displayName="Key01";export{a as i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-C1mekZiH.js";const n=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M21 9V3m0 0h-6m6 0-8 8m-3-6H7.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C3 7.28 3 8.12 3 9.8v6.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 21 6.12 21 7.8 21h6.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C19 18.72 19 17.88 19 16.2V14"}));n.displayName="LinkExternal01";export{n};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-C1mekZiH.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M12 2.25v2.5M12 18v4M5.75 12h-3.5m19 0h-1.5m-1.293 6.457-.707-.707m.914-12.334L17.25 6.83M4.922 19.078 7.75 16.25M5.129 5.209 7.25 7.33"}));i.displayName="Loading01";export{i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-C1mekZiH.js";const a=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M17 10V8A5 5 0 0 0 7 8v2m5 4.5v2M8.8 21h6.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C20 18.72 20 17.88 20 16.2v-1.4c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C17.72 10 16.88 10 15.2 10H8.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C4 12.28 4 13.12 4 14.8v1.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C6.28 21 7.12 21 8.8 21Z"}));a.displayName="Lock01";export{a as i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t}from"./index-
|
|
1
|
+
import{r as t}from"./index-C1mekZiH.js";const i=({size:e=24,color:r="currentColor",...o})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:r,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},t.createElement("path",{d:"M21 10H3m13-8v4M8 2v4m-.2 16h8.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C21 19.72 21 18.88 21 17.2V8.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C18.72 4 17.88 4 16.2 4H7.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C3 6.28 3 7.12 3 8.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 22 6.12 22 7.8 22Z"}));i.displayName="Calendar";const a=({size:e=24,color:r="currentColor",...o})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:r,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},t.createElement("path",{d:"m16 18 6-6-6-6M8 6l-6 6 6 6"}));a.displayName="Code01";const n=({size:e=24,color:r="currentColor",...o})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:r,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},t.createElement("path",{d:"M5 4.99c0-.972 0-1.457.202-1.725a1 1 0 0 1 .738-.395c.335-.02.74.25 1.548.788l10.515 7.01c.668.446 1.002.668 1.118.949a1 1 0 0 1 0 .766c-.116.28-.45.503-1.118.948l-10.515 7.01c-.809.54-1.213.809-1.548.789a1 1 0 0 1-.738-.395C5 20.467 5 19.98 5 19.01V4.99Z"}));n.displayName="Play";export{a,n as i,i as n};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-C1mekZiH.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M12 5v14m-7-7h14"}));i.displayName="Plus";export{i as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-C1mekZiH.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"m4 17 6-6-6-6m8 14h8"}));i.displayName="Terminal";export{i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-C1mekZiH.js";const a=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M16 6v-.8c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C14.48 2 13.92 2 12.8 2h-1.6c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C8 3.52 8 4.08 8 5.2V6m2 5.5v5m4-5v5M3 6h18m-2 0v11.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C16.72 22 15.88 22 14.2 22H9.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C5 19.72 5 18.88 5 17.2V6"}));a.displayName="Trash01";export{a as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-C1mekZiH.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M17 7 7 17M7 7l10 10"}));i.displayName="X";export{i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-C1mekZiH.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M18 6 6 18M6 6l12 12"}));i.displayName="XClose";export{i as s};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as i,bx as m,ac as A,j as r,by as T,ae as w,C as O,ah as M,bz as I,e as D,R as z,T as F,D as L,P as G,aP as k,O as H,c as n}from"./index-
|
|
1
|
+
import{r as i,bx as m,ac as A,j as r,by as T,ae as w,C as O,ah as M,bz as I,e as D,R as z,T as F,D as L,P as G,aP as k,O as H,c as n}from"./index-C1mekZiH.js";import{c as p,b as v}from"./input-DaU0Ki86.js";var x="AlertDialog",[V]=w(x,[m]),d=m(),N=l=>{const{__scopeAlertDialog:e,...t}=l,a=d(e);return r.jsx(z,{...a,...t,modal:!0})};N.displayName=x;var W="AlertDialogTrigger",Y=i.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,o=d(t);return r.jsx(k,{...o,...a,ref:e})});Y.displayName=W;var q="AlertDialogPortal",y=l=>{const{__scopeAlertDialog:e,...t}=l,a=d(e);return r.jsx(G,{...a,...t})};y.displayName=q;var B="AlertDialogOverlay",_=i.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,o=d(t);return r.jsx(H,{...o,...a,ref:e})});_.displayName=B;var f="AlertDialogContent",[J,K]=V(f),Q=I("AlertDialogContent"),j=i.forwardRef((l,e)=>{const{__scopeAlertDialog:t,children:a,...o}=l,s=d(t),c=i.useRef(null),S=A(e,c),u=i.useRef(null);return r.jsx(T,{contentName:f,titleName:b,docsSlug:"alert-dialog",children:r.jsx(J,{scope:t,cancelRef:u,children:r.jsxs(O,{role:"alertdialog",...s,...o,ref:S,onOpenAutoFocus:M(o.onOpenAutoFocus,g=>{g.preventDefault(),u.current?.focus({preventScroll:!0})}),onPointerDownOutside:g=>g.preventDefault(),onInteractOutside:g=>g.preventDefault(),children:[r.jsx(Q,{children:a}),r.jsx(X,{contentRef:c})]})})})});j.displayName=f;var b="AlertDialogTitle",h=i.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,o=d(t);return r.jsx(F,{...o,...a,ref:e})});h.displayName=b;var R="AlertDialogDescription",C=i.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,o=d(t);return r.jsx(L,{...o,...a,ref:e})});C.displayName=R;var U="AlertDialogAction",E=i.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,o=d(t);return r.jsx(D,{...o,...a,ref:e})});E.displayName=U;var $="AlertDialogCancel",P=i.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,{cancelRef:o}=K($,t),s=d(t),c=A(e,o);return r.jsx(D,{...s,...a,ref:c})});P.displayName=$;var X=({contentRef:l})=>{const e=`\`${f}\` requires a description for the component to be accessible for screen reader users.
|
|
2
2
|
|
|
3
3
|
You can add a description to the \`${f}\` by passing a \`${R}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{H as h,v as e,M as u,bv as y,L as ve,s as i,X as r,Y as S,a0 as U,W as s,bq as Le,V as _,Q as m,bM as Ie,I as dt,bN as g,bw as mt,Z as Ae,bO as ht,bP as _t,bQ as ft,bj as St}from"./index-CFqw5CAk.js";const gt={custom:"custom"},me="2025-11-25",Bn=[me,"2025-06-18","2025-03-26","2024-11-05","2024-10-07"],Rt="io.modelcontextprotocol/related-task",F="2.0",C=dt(t=>t!==null&&(typeof t=="object"||typeof t=="function")),Oe=h([e(),u().int()]),Me=e();y({ttl:h([u(),ve()]).optional(),pollInterval:u().optional()});const wt=i({ttl:u().optional()}),yt=i({taskId:e()}),he=y({progressToken:Oe.optional(),[Rt]:yt.optional()}),T=i({_meta:he.optional()}),M=T.extend({task:wt.optional()}),Jn=t=>M.safeParse(t).success,x=i({method:e(),params:T.loose().optional()}),b=i({_meta:he.optional()}),q=i({method:e(),params:b.loose().optional()}),k=y({_meta:he.optional()}),Z=h([e(),u().int()]),Ne=i({jsonrpc:r(F),id:Z,...x.shape}).strict(),Gn=t=>Ne.safeParse(t).success,je=i({jsonrpc:r(F),...q.shape}).strict(),Fn=t=>je.safeParse(t).success,_e=i({jsonrpc:r(F),id:Z,result:k}).strict(),Zn=t=>_e.safeParse(t).success;var V;(function(t){t[t.ConnectionClosed=-32e3]="ConnectionClosed",t[t.RequestTimeout=-32001]="RequestTimeout",t[t.ParseError=-32700]="ParseError",t[t.InvalidRequest=-32600]="InvalidRequest",t[t.MethodNotFound=-32601]="MethodNotFound",t[t.InvalidParams=-32602]="InvalidParams",t[t.InternalError=-32603]="InternalError",t[t.UrlElicitationRequired=-32042]="UrlElicitationRequired"})(V||(V={}));const fe=i({jsonrpc:r(F),id:Z.optional(),error:i({code:u().int(),message:e(),data:S().optional()})}).strict(),Kn=t=>fe.safeParse(t).success,Qn=h([Ne,je,_e,fe]);h([_e,fe]);const ze=k.strict(),Ct=b.extend({requestId:Z.optional(),reason:e().optional()}),$e=q.extend({method:r("notifications/cancelled"),params:Ct}),xt=i({src:e(),mimeType:e().optional(),sizes:s(e()).optional(),theme:U(["light","dark"]).optional()}),N=i({icons:s(xt).optional()}),L=i({name:e(),title:e().optional()}),He=L.extend({...L.shape,...N.shape,version:e(),websiteUrl:e().optional(),description:e().optional()}),kt=Le(i({applyDefaults:m().optional()}),_(e(),S())),Pt=Ie(t=>t&&typeof t=="object"&&!Array.isArray(t)&&Object.keys(t).length===0?{form:{}}:t,Le(i({form:kt.optional(),url:C.optional()}),_(e(),S()).optional())),Tt=y({list:C.optional(),cancel:C.optional(),requests:y({sampling:y({createMessage:C.optional()}).optional(),elicitation:y({create:C.optional()}).optional()}).optional()}),Ut=y({list:C.optional(),cancel:C.optional(),requests:y({tools:y({call:C.optional()}).optional()}).optional()}),bt=i({experimental:_(e(),C).optional(),sampling:i({context:C.optional(),tools:C.optional()}).optional(),elicitation:Pt.optional(),roots:i({listChanged:m().optional()}).optional(),tasks:Tt.optional()}),qt=T.extend({protocolVersion:e(),capabilities:bt,clientInfo:He}),Et=x.extend({method:r("initialize"),params:qt}),vt=i({experimental:_(e(),C).optional(),logging:C.optional(),completions:C.optional(),prompts:i({listChanged:m().optional()}).optional(),resources:i({subscribe:m().optional(),listChanged:m().optional()}).optional(),tools:i({listChanged:m().optional()}).optional(),tasks:Ut.optional()}),Lt=k.extend({protocolVersion:e(),capabilities:vt,serverInfo:He,instructions:e().optional()}),Ve=q.extend({method:r("notifications/initialized"),params:b.optional()}),Yn=t=>Ve.safeParse(t).success,We=x.extend({method:r("ping"),params:T.optional()}),It=i({progress:u(),total:g(u()),message:g(e())}),At=i({...b.shape,...It.shape,progressToken:Oe}),De=q.extend({method:r("notifications/progress"),params:At}),Ot=T.extend({cursor:Me.optional()}),j=x.extend({params:Ot.optional()}),z=k.extend({nextCursor:Me.optional()}),Mt=U(["working","input_required","completed","failed","cancelled"]),$=i({taskId:e(),status:Mt,ttl:h([u(),ve()]),createdAt:e(),lastUpdatedAt:e(),pollInterval:g(u()),statusMessage:g(e())}),Be=k.extend({task:$}),Nt=b.merge($),Je=q.extend({method:r("notifications/tasks/status"),params:Nt}),Ge=x.extend({method:r("tasks/get"),params:T.extend({taskId:e()})}),Fe=k.merge($),Ze=x.extend({method:r("tasks/result"),params:T.extend({taskId:e()})});k.loose();const Ke=j.extend({method:r("tasks/list")}),Qe=z.extend({tasks:s($)}),Ye=x.extend({method:r("tasks/cancel"),params:T.extend({taskId:e()})}),Xn=k.merge($),Xe=i({uri:e(),mimeType:g(e()),_meta:_(e(),S()).optional()}),et=Xe.extend({text:e()}),Se=e().refine(t=>{try{return atob(t),!0}catch{return!1}},{message:"Invalid Base64 string"}),tt=Xe.extend({blob:Se}),H=U(["user","assistant"]),A=i({audience:s(H).optional(),priority:u().min(0).max(1).optional(),lastModified:mt({offset:!0}).optional()}),ot=i({...L.shape,...N.shape,uri:e(),description:g(e()),mimeType:g(e()),annotations:A.optional(),_meta:g(y({}))}),jt=i({...L.shape,...N.shape,uriTemplate:e(),description:g(e()),mimeType:g(e()),annotations:A.optional(),_meta:g(y({}))}),zt=j.extend({method:r("resources/list")}),$t=z.extend({resources:s(ot)}),Ht=j.extend({method:r("resources/templates/list")}),Vt=z.extend({resourceTemplates:s(jt)}),ge=T.extend({uri:e()}),Wt=ge,Dt=x.extend({method:r("resources/read"),params:Wt}),Bt=k.extend({contents:s(h([et,tt]))}),Jt=q.extend({method:r("notifications/resources/list_changed"),params:b.optional()}),Gt=ge,Ft=x.extend({method:r("resources/subscribe"),params:Gt}),Zt=ge,Kt=x.extend({method:r("resources/unsubscribe"),params:Zt}),Qt=b.extend({uri:e()}),Yt=q.extend({method:r("notifications/resources/updated"),params:Qt}),Xt=i({name:e(),description:g(e()),required:g(m())}),eo=i({...L.shape,...N.shape,description:g(e()),arguments:g(s(Xt)),_meta:g(y({}))}),to=j.extend({method:r("prompts/list")}),oo=z.extend({prompts:s(eo)}),no=T.extend({name:e(),arguments:_(e(),e()).optional()}),ao=x.extend({method:r("prompts/get"),params:no}),Re=i({type:r("text"),text:e(),annotations:A.optional(),_meta:_(e(),S()).optional()}),we=i({type:r("image"),data:Se,mimeType:e(),annotations:A.optional(),_meta:_(e(),S()).optional()}),ye=i({type:r("audio"),data:Se,mimeType:e(),annotations:A.optional(),_meta:_(e(),S()).optional()}),so=i({type:r("tool_use"),name:e(),id:e(),input:_(e(),S()),_meta:_(e(),S()).optional()}),io=i({type:r("resource"),resource:h([et,tt]),annotations:A.optional(),_meta:_(e(),S()).optional()}),ro=ot.extend({type:r("resource_link")}),Ce=h([Re,we,ye,ro,io]),co=i({role:H,content:Ce}),lo=k.extend({description:e().optional(),messages:s(co)}),po=q.extend({method:r("notifications/prompts/list_changed"),params:b.optional()}),uo=i({title:e().optional(),readOnlyHint:m().optional(),destructiveHint:m().optional(),idempotentHint:m().optional(),openWorldHint:m().optional()}),mo=i({taskSupport:U(["required","optional","forbidden"]).optional()}),nt=i({...L.shape,...N.shape,description:e().optional(),inputSchema:i({type:r("object"),properties:_(e(),C).optional(),required:s(e()).optional()}).catchall(S()),outputSchema:i({type:r("object"),properties:_(e(),C).optional(),required:s(e()).optional()}).catchall(S()).optional(),annotations:uo.optional(),execution:mo.optional(),_meta:_(e(),S()).optional()}),ho=j.extend({method:r("tools/list")}),_o=z.extend({tools:s(nt)}),at=k.extend({content:s(Ce).default([]),structuredContent:_(e(),S()).optional(),isError:m().optional()});at.or(k.extend({toolResult:S()}));const fo=M.extend({name:e(),arguments:_(e(),S()).optional()}),So=x.extend({method:r("tools/call"),params:fo}),go=q.extend({method:r("notifications/tools/list_changed"),params:b.optional()}),ea=i({autoRefresh:m().default(!0),debounceMs:u().int().nonnegative().default(300)}),st=U(["debug","info","notice","warning","error","critical","alert","emergency"]),Ro=T.extend({level:st}),wo=x.extend({method:r("logging/setLevel"),params:Ro}),yo=b.extend({level:st,logger:e().optional(),data:S()}),Co=q.extend({method:r("notifications/message"),params:yo}),xo=i({name:e().optional()}),ko=i({hints:s(xo).optional(),costPriority:u().min(0).max(1).optional(),speedPriority:u().min(0).max(1).optional(),intelligencePriority:u().min(0).max(1).optional()}),Po=i({mode:U(["auto","required","none"]).optional()}),To=i({type:r("tool_result"),toolUseId:e().describe("The unique identifier for the corresponding tool call."),content:s(Ce).default([]),structuredContent:i({}).loose().optional(),isError:m().optional(),_meta:_(e(),S()).optional()}),Uo=Ae("type",[Re,we,ye]),W=Ae("type",[Re,we,ye,so,To]),bo=i({role:H,content:h([W,s(W)]),_meta:_(e(),S()).optional()}),qo=M.extend({messages:s(bo),modelPreferences:ko.optional(),systemPrompt:e().optional(),includeContext:U(["none","thisServer","allServers"]).optional(),temperature:u().optional(),maxTokens:u().int(),stopSequences:s(e()).optional(),metadata:C.optional(),tools:s(nt).optional(),toolChoice:Po.optional()}),Eo=x.extend({method:r("sampling/createMessage"),params:qo}),vo=k.extend({model:e(),stopReason:g(U(["endTurn","stopSequence","maxTokens"]).or(e())),role:H,content:Uo}),Lo=k.extend({model:e(),stopReason:g(U(["endTurn","stopSequence","maxTokens","toolUse"]).or(e())),role:H,content:h([W,s(W)])}),Io=i({type:r("boolean"),title:e().optional(),description:e().optional(),default:m().optional()}),Ao=i({type:r("string"),title:e().optional(),description:e().optional(),minLength:u().optional(),maxLength:u().optional(),format:U(["email","uri","date","date-time"]).optional(),default:e().optional()}),Oo=i({type:U(["number","integer"]),title:e().optional(),description:e().optional(),minimum:u().optional(),maximum:u().optional(),default:u().optional()}),Mo=i({type:r("string"),title:e().optional(),description:e().optional(),enum:s(e()),default:e().optional()}),No=i({type:r("string"),title:e().optional(),description:e().optional(),oneOf:s(i({const:e(),title:e()})),default:e().optional()}),jo=i({type:r("string"),title:e().optional(),description:e().optional(),enum:s(e()),enumNames:s(e()).optional(),default:e().optional()}),zo=h([Mo,No]),$o=i({type:r("array"),title:e().optional(),description:e().optional(),minItems:u().optional(),maxItems:u().optional(),items:i({type:r("string"),enum:s(e())}),default:s(e()).optional()}),Ho=i({type:r("array"),title:e().optional(),description:e().optional(),minItems:u().optional(),maxItems:u().optional(),items:i({anyOf:s(i({const:e(),title:e()}))}),default:s(e()).optional()}),Vo=h([$o,Ho]),Wo=h([jo,zo,Vo]),Do=h([Wo,Io,Ao,Oo]),Bo=M.extend({mode:r("form").optional(),message:e(),requestedSchema:i({type:r("object"),properties:_(e(),Do),required:s(e()).optional()})}),Jo=M.extend({mode:r("url"),message:e(),elicitationId:e(),url:e().url()}),Go=h([Bo,Jo]),Fo=x.extend({method:r("elicitation/create"),params:Go}),Zo=b.extend({elicitationId:e()}),Ko=q.extend({method:r("notifications/elicitation/complete"),params:Zo}),Qo=k.extend({action:U(["accept","decline","cancel"]),content:Ie(t=>t===null?void 0:t,_(e(),h([e(),u(),m(),s(e())])).optional())}),Yo=i({type:r("ref/resource"),uri:e()}),Xo=i({type:r("ref/prompt"),name:e()}),en=T.extend({ref:h([Xo,Yo]),argument:i({name:e(),value:e()}),context:i({arguments:_(e(),e()).optional()}).optional()}),tn=x.extend({method:r("completion/complete"),params:en}),on=k.extend({completion:y({values:s(e()).max(100),total:g(u().int()),hasMore:g(m())})}),nn=i({uri:e().startsWith("file://"),name:e().optional(),_meta:_(e(),S()).optional()}),an=x.extend({method:r("roots/list"),params:T.optional()}),sn=k.extend({roots:s(nn)}),rn=q.extend({method:r("notifications/roots/list_changed"),params:b.optional()});h([We,Et,tn,wo,ao,to,zt,Ht,Dt,Ft,Kt,So,ho,Ge,Ze,Ke,Ye]);h([$e,De,Ve,rn,Je]);h([ze,vo,Lo,Qo,sn,Fe,Qe,Be]);h([We,Eo,Fo,an,Ge,Ze,Ke,Ye]);h([$e,De,Co,Yt,Jt,go,po,Je,Ko]);h([ze,Lt,on,lo,oo,$t,Vt,Bt,at,_o,Fe,Qe,Be]);class xe extends Error{constructor(o,n,a){super(`MCP error ${o}: ${n}`),this.code=o,this.data=a,this.name="McpError"}static fromError(o,n,a){if(o===V.UrlElicitationRequired&&a){const c=a;if(c.elicitations)return new cn(c.elicitations,n)}return new xe(o,n,a)}}class cn extends xe{constructor(o,n=`URL elicitation${o.length>1?"s":""} required`){super(V.UrlElicitationRequired,n,{elicitations:o})}get elicitations(){return this.data?.elicitations??[]}}let ke;ke=globalThis.crypto;async function ln(t){return(await ke).getRandomValues(new Uint8Array(t))}async function pn(t){const o="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~",n=Math.pow(2,8)-Math.pow(2,8)%o.length;let a="";for(;a.length<t;){const c=await ln(t-a.length);for(const p of c)p<n&&(a+=o[p%o.length])}return a}async function un(t){return await pn(t)}async function dn(t){const o=await(await ke).subtle.digest("SHA-256",new TextEncoder().encode(t));return btoa(String.fromCharCode(...new Uint8Array(o))).replace(/\//g,"_").replace(/\+/g,"-").replace(/=/g,"")}async function mn(t){if(t||(t=43),t<43||t>128)throw`Expected a length between 43 and 128. Received ${t}.`;const o=await un(t),n=await dn(o);return{code_verifier:o,code_challenge:n}}const w=ht().superRefine((t,o)=>{if(!URL.canParse(t))return o.addIssue({code:gt.custom,message:"URL must be parseable",fatal:!0}),_t}).refine(t=>{const o=new URL(t);return o.protocol!=="javascript:"&&o.protocol!=="data:"&&o.protocol!=="vbscript:"},{message:"URL cannot use javascript:, data:, or vbscript: scheme"}),hn=y({resource:e().url(),authorization_servers:s(w).optional(),jwks_uri:e().url().optional(),scopes_supported:s(e()).optional(),bearer_methods_supported:s(e()).optional(),resource_signing_alg_values_supported:s(e()).optional(),resource_name:e().optional(),resource_documentation:e().optional(),resource_policy_uri:e().url().optional(),resource_tos_uri:e().url().optional(),tls_client_certificate_bound_access_tokens:m().optional(),authorization_details_types_supported:s(e()).optional(),dpop_signing_alg_values_supported:s(e()).optional(),dpop_bound_access_tokens_required:m().optional()}),it=y({issuer:e(),authorization_endpoint:w,token_endpoint:w,registration_endpoint:w.optional(),scopes_supported:s(e()).optional(),response_types_supported:s(e()),response_modes_supported:s(e()).optional(),grant_types_supported:s(e()).optional(),token_endpoint_auth_methods_supported:s(e()).optional(),token_endpoint_auth_signing_alg_values_supported:s(e()).optional(),service_documentation:w.optional(),revocation_endpoint:w.optional(),revocation_endpoint_auth_methods_supported:s(e()).optional(),revocation_endpoint_auth_signing_alg_values_supported:s(e()).optional(),introspection_endpoint:e().optional(),introspection_endpoint_auth_methods_supported:s(e()).optional(),introspection_endpoint_auth_signing_alg_values_supported:s(e()).optional(),code_challenge_methods_supported:s(e()).optional(),client_id_metadata_document_supported:m().optional()}),_n=y({issuer:e(),authorization_endpoint:w,token_endpoint:w,userinfo_endpoint:w.optional(),jwks_uri:w,registration_endpoint:w.optional(),scopes_supported:s(e()).optional(),response_types_supported:s(e()),response_modes_supported:s(e()).optional(),grant_types_supported:s(e()).optional(),acr_values_supported:s(e()).optional(),subject_types_supported:s(e()),id_token_signing_alg_values_supported:s(e()),id_token_encryption_alg_values_supported:s(e()).optional(),id_token_encryption_enc_values_supported:s(e()).optional(),userinfo_signing_alg_values_supported:s(e()).optional(),userinfo_encryption_alg_values_supported:s(e()).optional(),userinfo_encryption_enc_values_supported:s(e()).optional(),request_object_signing_alg_values_supported:s(e()).optional(),request_object_encryption_alg_values_supported:s(e()).optional(),request_object_encryption_enc_values_supported:s(e()).optional(),token_endpoint_auth_methods_supported:s(e()).optional(),token_endpoint_auth_signing_alg_values_supported:s(e()).optional(),display_values_supported:s(e()).optional(),claim_types_supported:s(e()).optional(),claims_supported:s(e()).optional(),service_documentation:e().optional(),claims_locales_supported:s(e()).optional(),ui_locales_supported:s(e()).optional(),claims_parameter_supported:m().optional(),request_parameter_supported:m().optional(),request_uri_parameter_supported:m().optional(),require_request_uri_registration:m().optional(),op_policy_uri:w.optional(),op_tos_uri:w.optional(),client_id_metadata_document_supported:m().optional()}),fn=i({..._n.shape,...it.pick({code_challenge_methods_supported:!0}).shape}),Sn=i({access_token:e(),id_token:e().optional(),token_type:e(),expires_in:ft().optional(),scope:e().optional(),refresh_token:e().optional()}).strip(),gn=i({error:e(),error_description:e().optional(),error_uri:e().optional()}),qe=w.optional().or(r("").transform(()=>{})),Rn=i({redirect_uris:s(w),token_endpoint_auth_method:e().optional(),grant_types:s(e()).optional(),response_types:s(e()).optional(),client_name:e().optional(),client_uri:w.optional(),logo_uri:qe,scope:e().optional(),contacts:s(e()).optional(),tos_uri:qe,policy_uri:e().optional(),jwks_uri:w.optional(),jwks:St().optional(),software_id:e().optional(),software_version:e().optional(),software_statement:e().optional()}).strip(),wn=i({client_id:e(),client_secret:e().optional(),client_id_issued_at:u().optional(),client_secret_expires_at:u().optional()}).strip(),yn=Rn.merge(wn);i({error:e(),error_description:e().optional()}).strip();i({token:e(),token_type_hint:e().optional()}).strip();function Cn(t){const o=typeof t=="string"?new URL(t):new URL(t.href);return o.hash="",o}function xn({requestedResource:t,configuredResource:o}){const n=typeof t=="string"?new URL(t):new URL(t.href),a=typeof o=="string"?new URL(o):new URL(o.href);if(n.origin!==a.origin||n.pathname.length<a.pathname.length)return!1;const c=n.pathname.endsWith("/")?n.pathname:n.pathname+"/",p=a.pathname.endsWith("/")?a.pathname:a.pathname+"/";return c.startsWith(p)}class R extends Error{constructor(o,n){super(o),this.errorUri=n,this.name=this.constructor.name}toResponseObject(){const o={error:this.errorCode,error_description:this.message};return this.errorUri&&(o.error_uri=this.errorUri),o}get errorCode(){return this.constructor.errorCode}}class te extends R{}te.errorCode="invalid_request";class D extends R{}D.errorCode="invalid_client";class B extends R{}B.errorCode="invalid_grant";class J extends R{}J.errorCode="unauthorized_client";class oe extends R{}oe.errorCode="unsupported_grant_type";class ne extends R{}ne.errorCode="invalid_scope";class ae extends R{}ae.errorCode="access_denied";class I extends R{}I.errorCode="server_error";class se extends R{}se.errorCode="temporarily_unavailable";class ie extends R{}ie.errorCode="unsupported_response_type";class re extends R{}re.errorCode="unsupported_token_type";class ce extends R{}ce.errorCode="invalid_token";class le extends R{}le.errorCode="method_not_allowed";class pe extends R{}pe.errorCode="too_many_requests";class G extends R{}G.errorCode="invalid_client_metadata";class ue extends R{}ue.errorCode="insufficient_scope";class de extends R{}de.errorCode="invalid_target";const kn={[te.errorCode]:te,[D.errorCode]:D,[B.errorCode]:B,[J.errorCode]:J,[oe.errorCode]:oe,[ne.errorCode]:ne,[ae.errorCode]:ae,[I.errorCode]:I,[se.errorCode]:se,[ie.errorCode]:ie,[re.errorCode]:re,[ce.errorCode]:ce,[le.errorCode]:le,[pe.errorCode]:pe,[G.errorCode]:G,[ue.errorCode]:ue,[de.errorCode]:de};class ta extends Error{constructor(o){super(o??"Unauthorized")}}function Pn(t){return["client_secret_basic","client_secret_post","none"].includes(t)}const Q="code",Y="S256";function Tn(t,o){const n=t.client_secret!==void 0;return o.length===0?n?"client_secret_post":"none":"token_endpoint_auth_method"in t&&t.token_endpoint_auth_method&&Pn(t.token_endpoint_auth_method)&&o.includes(t.token_endpoint_auth_method)?t.token_endpoint_auth_method:n&&o.includes("client_secret_basic")?"client_secret_basic":n&&o.includes("client_secret_post")?"client_secret_post":o.includes("none")?"none":n?"client_secret_post":"none"}function Un(t,o,n,a){const{client_id:c,client_secret:p}=o;switch(t){case"client_secret_basic":bn(c,p,n);return;case"client_secret_post":qn(c,p,a);return;case"none":En(c,a);return;default:throw new Error(`Unsupported client authentication method: ${t}`)}}function bn(t,o,n){if(!o)throw new Error("client_secret_basic authentication requires a client_secret");const a=btoa(`${t}:${o}`);n.set("Authorization",`Basic ${a}`)}function qn(t,o,n){n.set("client_id",t),o&&n.set("client_secret",o)}function En(t,o){o.set("client_id",t)}async function rt(t){const o=t instanceof Response?t.status:void 0,n=t instanceof Response?await t.text():t;try{const a=gn.parse(JSON.parse(n)),{error:c,error_description:p,error_uri:d}=a,l=kn[c]||I;return new l(p||"",d)}catch(a){const c=`${o?`HTTP ${o}: `:""}Invalid OAuth error response: ${a}. Raw body: ${n}`;return new I(c)}}async function oa(t,o){try{return await X(t,o)}catch(n){if(n instanceof D||n instanceof J)return await t.invalidateCredentials?.("all"),await X(t,o);if(n instanceof B)return await t.invalidateCredentials?.("tokens"),await X(t,o);throw n}}async function X(t,{serverUrl:o,authorizationCode:n,scope:a,resourceMetadataUrl:c,fetchFn:p}){let d,l;try{d=await In(o,{resourceMetadataUrl:c},p),d.authorization_servers&&d.authorization_servers.length>0&&(l=d.authorization_servers[0])}catch{}l||(l=new URL("/",o));const f=await Ln(o,t,d),P=await jn(l,{fetchFn:p});let E=await Promise.resolve(t.clientInformation());if(!E){if(n!==void 0)throw new Error("Existing OAuth client information is required when exchanging an authorization code");const v=P?.client_id_metadata_document_supported===!0,O=t.clientMetadataUrl;if(O&&!vn(O))throw new G(`clientMetadataUrl must be a valid HTTPS URL with a non-root pathname, got: ${O}`);if(v&&O)E={client_id:O},await t.saveClientInformation?.(E);else{if(!t.saveClientInformation)throw new Error("OAuth client information must be saveable for dynamic registration");const be=await Vn(l,{metadata:P,clientMetadata:t.clientMetadata,fetchFn:p});await t.saveClientInformation(be),E=be}}const K=!t.redirectUrl;if(n!==void 0||K){const v=await Hn(t,l,{metadata:P,resource:f,authorizationCode:n,fetchFn:p});return await t.saveTokens(v),"AUTHORIZED"}const Ue=await t.tokens();if(Ue?.refresh_token)try{const v=await $n(l,{metadata:P,clientInformation:E,refreshToken:Ue.refresh_token,resource:f,addClientAuthentication:t.addClientAuthentication,fetchFn:p});return await t.saveTokens(v),"AUTHORIZED"}catch(v){if(!(!(v instanceof R)||v instanceof I))throw v}const lt=t.state?await t.state():void 0,{authorizationUrl:pt,codeVerifier:ut}=await zn(l,{metadata:P,clientInformation:E,state:lt,redirectUrl:t.redirectUrl,scope:a||d?.scopes_supported?.join(" ")||t.clientMetadata.scope,resource:f});return await t.saveCodeVerifier(ut),await t.redirectToAuthorization(pt),"REDIRECT"}function vn(t){if(!t)return!1;try{const o=new URL(t);return o.protocol==="https:"&&o.pathname!=="/"}catch{return!1}}async function Ln(t,o,n){const a=Cn(t);if(o.validateResourceURL)return await o.validateResourceURL(a,n?.resource);if(n){if(!xn({requestedResource:a,configuredResource:n.resource}))throw new Error(`Protected resource ${n.resource} does not match expected ${a} (or origin)`);return new URL(n.resource)}}function na(t){const o=t.headers.get("WWW-Authenticate");if(!o)return{};const[n,a]=o.split(" ");if(n.toLowerCase()!=="bearer"||!a)return{};const c=ee(t,"resource_metadata")||void 0;let p;if(c)try{p=new URL(c)}catch{}const d=ee(t,"scope")||void 0,l=ee(t,"error")||void 0;return{resourceMetadataUrl:p,scope:d,error:l}}function ee(t,o){const n=t.headers.get("WWW-Authenticate");if(!n)return null;const a=new RegExp(`${o}=(?:"([^"]+)"|([^\\s,]+))`),c=n.match(a);return c?c[1]||c[2]:null}async function In(t,o,n=fetch){const a=await Mn(t,"oauth-protected-resource",n,{protocolVersion:o?.protocolVersion,metadataUrl:o?.resourceMetadataUrl});if(!a||a.status===404)throw await a?.body?.cancel(),new Error("Resource server does not implement OAuth 2.0 Protected Resource Metadata.");if(!a.ok)throw await a.body?.cancel(),new Error(`HTTP ${a.status} trying to load well-known OAuth protected resource metadata.`);return hn.parse(await a.json())}async function Pe(t,o,n=fetch){try{return await n(t,{headers:o})}catch(a){if(a instanceof TypeError)return o?Pe(t,void 0,n):void 0;throw a}}function An(t,o="",n={}){return o.endsWith("/")&&(o=o.slice(0,-1)),n.prependPathname?`${o}/.well-known/${t}`:`/.well-known/${t}${o}`}async function Ee(t,o,n=fetch){return await Pe(t,{"MCP-Protocol-Version":o},n)}function On(t,o){return!t||t.status>=400&&t.status<500&&o!=="/"}async function Mn(t,o,n,a){const c=new URL(t),p=a?.protocolVersion??me;let d;if(a?.metadataUrl)d=new URL(a.metadataUrl);else{const f=An(o,c.pathname);d=new URL(f,a?.metadataServerUrl??c),d.search=c.search}let l=await Ee(d,p,n);if(!a?.metadataUrl&&On(l,c.pathname)){const f=new URL(`/.well-known/${o}`,c);l=await Ee(f,p,n)}return l}function Nn(t){const o=typeof t=="string"?new URL(t):t,n=o.pathname!=="/",a=[];if(!n)return a.push({url:new URL("/.well-known/oauth-authorization-server",o.origin),type:"oauth"}),a.push({url:new URL("/.well-known/openid-configuration",o.origin),type:"oidc"}),a;let c=o.pathname;return c.endsWith("/")&&(c=c.slice(0,-1)),a.push({url:new URL(`/.well-known/oauth-authorization-server${c}`,o.origin),type:"oauth"}),a.push({url:new URL(`/.well-known/openid-configuration${c}`,o.origin),type:"oidc"}),a.push({url:new URL(`${c}/.well-known/openid-configuration`,o.origin),type:"oidc"}),a}async function jn(t,{fetchFn:o=fetch,protocolVersion:n=me}={}){const a={"MCP-Protocol-Version":n,Accept:"application/json"},c=Nn(t);for(const{url:p,type:d}of c){const l=await Pe(p,a,o);if(l){if(!l.ok){if(await l.body?.cancel(),l.status>=400&&l.status<500)continue;throw new Error(`HTTP ${l.status} trying to load ${d==="oauth"?"OAuth":"OpenID provider"} metadata from ${p}`)}return d==="oauth"?it.parse(await l.json()):fn.parse(await l.json())}}}async function zn(t,{metadata:o,clientInformation:n,redirectUrl:a,scope:c,state:p,resource:d}){let l;if(o){if(l=new URL(o.authorization_endpoint),!o.response_types_supported.includes(Q))throw new Error(`Incompatible auth server: does not support response type ${Q}`);if(o.code_challenge_methods_supported&&!o.code_challenge_methods_supported.includes(Y))throw new Error(`Incompatible auth server: does not support code challenge method ${Y}`)}else l=new URL("/authorize",t);const f=await mn(),P=f.code_verifier,E=f.code_challenge;return l.searchParams.set("response_type",Q),l.searchParams.set("client_id",n.client_id),l.searchParams.set("code_challenge",E),l.searchParams.set("code_challenge_method",Y),l.searchParams.set("redirect_uri",String(a)),p&&l.searchParams.set("state",p),c&&l.searchParams.set("scope",c),c?.includes("offline_access")&&l.searchParams.append("prompt","consent"),d&&l.searchParams.set("resource",d.href),{authorizationUrl:l,codeVerifier:P}}function ct(t,o,n){return new URLSearchParams({grant_type:"authorization_code",code:t,code_verifier:o,redirect_uri:String(n)})}async function Te(t,{metadata:o,tokenRequestParams:n,clientInformation:a,addClientAuthentication:c,resource:p,fetchFn:d}){const l=o?.token_endpoint?new URL(o.token_endpoint):new URL("/token",t),f=new Headers({"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"});if(p&&n.set("resource",p.href),c)await c(f,n,l,o);else if(a){const E=o?.token_endpoint_auth_methods_supported??[],K=Tn(a,E);Un(K,a,f,n)}const P=await(d??fetch)(l,{method:"POST",headers:f,body:n});if(!P.ok)throw await rt(P);return Sn.parse(await P.json())}async function aa(t,{metadata:o,clientInformation:n,authorizationCode:a,codeVerifier:c,redirectUri:p,resource:d,addClientAuthentication:l,fetchFn:f}){const P=ct(a,c,p);return Te(t,{metadata:o,tokenRequestParams:P,clientInformation:n,addClientAuthentication:l,resource:d,fetchFn:f})}async function $n(t,{metadata:o,clientInformation:n,refreshToken:a,resource:c,addClientAuthentication:p,fetchFn:d}){const l=new URLSearchParams({grant_type:"refresh_token",refresh_token:a}),f=await Te(t,{metadata:o,tokenRequestParams:l,clientInformation:n,addClientAuthentication:p,resource:c,fetchFn:d});return{refresh_token:a,...f}}async function Hn(t,o,{metadata:n,resource:a,authorizationCode:c,fetchFn:p}={}){const d=t.clientMetadata.scope;let l;if(t.prepareTokenRequest&&(l=await t.prepareTokenRequest(d)),!l){if(!c)throw new Error("Either provider.prepareTokenRequest() or authorizationCode is required");if(!t.redirectUrl)throw new Error("redirectUrl is required for authorization_code flow");const P=await t.codeVerifier();l=ct(c,P,t.redirectUrl)}const f=await t.clientInformation();return Te(o,{metadata:n,tokenRequestParams:l,clientInformation:f??void 0,addClientAuthentication:t.addClientAuthentication,resource:a,fetchFn:p})}async function Vn(t,{metadata:o,clientMetadata:n,fetchFn:a}){let c;if(o){if(!o.registration_endpoint)throw new Error("Incompatible auth server: does not support dynamic client registration");c=new URL(o.registration_endpoint)}else c=new URL("/register",t);const p=await(a??fetch)(c,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!p.ok)throw await rt(p);return yn.parse(await p.json())}export{Fo as A,Qo as B,$e as C,Eo as D,V as E,vo as F,Ge as G,oa as H,Lt as I,na as J,Qn as K,Ke as L,xe as M,Yn as N,In as O,De as P,jn as Q,Rt as R,Bn as S,Je as T,ta as U,aa as V,We as a,Ze as b,Ye as c,Kn as d,Gn as e,Fn as f,Jn as g,Be as h,Zn as i,Fe as j,Qe as k,Xn as l,at as m,go as n,po as o,Jt as p,me as q,ze as r,on as s,lo as t,oo as u,$t as v,Vt as w,Bt as x,_o as y,ea as z};
|
|
1
|
+
import{H as h,v as e,M as u,bv as y,L as ve,s as i,X as r,Y as S,a0 as U,W as s,bq as Le,V as _,Q as m,bM as Ie,I as dt,bN as g,bw as mt,Z as Ae,bO as ht,bP as _t,bQ as ft,bj as St}from"./index-C1mekZiH.js";const gt={custom:"custom"},me="2025-11-25",Bn=[me,"2025-06-18","2025-03-26","2024-11-05","2024-10-07"],Rt="io.modelcontextprotocol/related-task",F="2.0",C=dt(t=>t!==null&&(typeof t=="object"||typeof t=="function")),Oe=h([e(),u().int()]),Me=e();y({ttl:h([u(),ve()]).optional(),pollInterval:u().optional()});const wt=i({ttl:u().optional()}),yt=i({taskId:e()}),he=y({progressToken:Oe.optional(),[Rt]:yt.optional()}),T=i({_meta:he.optional()}),M=T.extend({task:wt.optional()}),Jn=t=>M.safeParse(t).success,x=i({method:e(),params:T.loose().optional()}),b=i({_meta:he.optional()}),q=i({method:e(),params:b.loose().optional()}),k=y({_meta:he.optional()}),Z=h([e(),u().int()]),Ne=i({jsonrpc:r(F),id:Z,...x.shape}).strict(),Gn=t=>Ne.safeParse(t).success,je=i({jsonrpc:r(F),...q.shape}).strict(),Fn=t=>je.safeParse(t).success,_e=i({jsonrpc:r(F),id:Z,result:k}).strict(),Zn=t=>_e.safeParse(t).success;var V;(function(t){t[t.ConnectionClosed=-32e3]="ConnectionClosed",t[t.RequestTimeout=-32001]="RequestTimeout",t[t.ParseError=-32700]="ParseError",t[t.InvalidRequest=-32600]="InvalidRequest",t[t.MethodNotFound=-32601]="MethodNotFound",t[t.InvalidParams=-32602]="InvalidParams",t[t.InternalError=-32603]="InternalError",t[t.UrlElicitationRequired=-32042]="UrlElicitationRequired"})(V||(V={}));const fe=i({jsonrpc:r(F),id:Z.optional(),error:i({code:u().int(),message:e(),data:S().optional()})}).strict(),Kn=t=>fe.safeParse(t).success,Qn=h([Ne,je,_e,fe]);h([_e,fe]);const ze=k.strict(),Ct=b.extend({requestId:Z.optional(),reason:e().optional()}),$e=q.extend({method:r("notifications/cancelled"),params:Ct}),xt=i({src:e(),mimeType:e().optional(),sizes:s(e()).optional(),theme:U(["light","dark"]).optional()}),N=i({icons:s(xt).optional()}),L=i({name:e(),title:e().optional()}),He=L.extend({...L.shape,...N.shape,version:e(),websiteUrl:e().optional(),description:e().optional()}),kt=Le(i({applyDefaults:m().optional()}),_(e(),S())),Pt=Ie(t=>t&&typeof t=="object"&&!Array.isArray(t)&&Object.keys(t).length===0?{form:{}}:t,Le(i({form:kt.optional(),url:C.optional()}),_(e(),S()).optional())),Tt=y({list:C.optional(),cancel:C.optional(),requests:y({sampling:y({createMessage:C.optional()}).optional(),elicitation:y({create:C.optional()}).optional()}).optional()}),Ut=y({list:C.optional(),cancel:C.optional(),requests:y({tools:y({call:C.optional()}).optional()}).optional()}),bt=i({experimental:_(e(),C).optional(),sampling:i({context:C.optional(),tools:C.optional()}).optional(),elicitation:Pt.optional(),roots:i({listChanged:m().optional()}).optional(),tasks:Tt.optional()}),qt=T.extend({protocolVersion:e(),capabilities:bt,clientInfo:He}),Et=x.extend({method:r("initialize"),params:qt}),vt=i({experimental:_(e(),C).optional(),logging:C.optional(),completions:C.optional(),prompts:i({listChanged:m().optional()}).optional(),resources:i({subscribe:m().optional(),listChanged:m().optional()}).optional(),tools:i({listChanged:m().optional()}).optional(),tasks:Ut.optional()}),Lt=k.extend({protocolVersion:e(),capabilities:vt,serverInfo:He,instructions:e().optional()}),Ve=q.extend({method:r("notifications/initialized"),params:b.optional()}),Yn=t=>Ve.safeParse(t).success,We=x.extend({method:r("ping"),params:T.optional()}),It=i({progress:u(),total:g(u()),message:g(e())}),At=i({...b.shape,...It.shape,progressToken:Oe}),De=q.extend({method:r("notifications/progress"),params:At}),Ot=T.extend({cursor:Me.optional()}),j=x.extend({params:Ot.optional()}),z=k.extend({nextCursor:Me.optional()}),Mt=U(["working","input_required","completed","failed","cancelled"]),$=i({taskId:e(),status:Mt,ttl:h([u(),ve()]),createdAt:e(),lastUpdatedAt:e(),pollInterval:g(u()),statusMessage:g(e())}),Be=k.extend({task:$}),Nt=b.merge($),Je=q.extend({method:r("notifications/tasks/status"),params:Nt}),Ge=x.extend({method:r("tasks/get"),params:T.extend({taskId:e()})}),Fe=k.merge($),Ze=x.extend({method:r("tasks/result"),params:T.extend({taskId:e()})});k.loose();const Ke=j.extend({method:r("tasks/list")}),Qe=z.extend({tasks:s($)}),Ye=x.extend({method:r("tasks/cancel"),params:T.extend({taskId:e()})}),Xn=k.merge($),Xe=i({uri:e(),mimeType:g(e()),_meta:_(e(),S()).optional()}),et=Xe.extend({text:e()}),Se=e().refine(t=>{try{return atob(t),!0}catch{return!1}},{message:"Invalid Base64 string"}),tt=Xe.extend({blob:Se}),H=U(["user","assistant"]),A=i({audience:s(H).optional(),priority:u().min(0).max(1).optional(),lastModified:mt({offset:!0}).optional()}),ot=i({...L.shape,...N.shape,uri:e(),description:g(e()),mimeType:g(e()),annotations:A.optional(),_meta:g(y({}))}),jt=i({...L.shape,...N.shape,uriTemplate:e(),description:g(e()),mimeType:g(e()),annotations:A.optional(),_meta:g(y({}))}),zt=j.extend({method:r("resources/list")}),$t=z.extend({resources:s(ot)}),Ht=j.extend({method:r("resources/templates/list")}),Vt=z.extend({resourceTemplates:s(jt)}),ge=T.extend({uri:e()}),Wt=ge,Dt=x.extend({method:r("resources/read"),params:Wt}),Bt=k.extend({contents:s(h([et,tt]))}),Jt=q.extend({method:r("notifications/resources/list_changed"),params:b.optional()}),Gt=ge,Ft=x.extend({method:r("resources/subscribe"),params:Gt}),Zt=ge,Kt=x.extend({method:r("resources/unsubscribe"),params:Zt}),Qt=b.extend({uri:e()}),Yt=q.extend({method:r("notifications/resources/updated"),params:Qt}),Xt=i({name:e(),description:g(e()),required:g(m())}),eo=i({...L.shape,...N.shape,description:g(e()),arguments:g(s(Xt)),_meta:g(y({}))}),to=j.extend({method:r("prompts/list")}),oo=z.extend({prompts:s(eo)}),no=T.extend({name:e(),arguments:_(e(),e()).optional()}),ao=x.extend({method:r("prompts/get"),params:no}),Re=i({type:r("text"),text:e(),annotations:A.optional(),_meta:_(e(),S()).optional()}),we=i({type:r("image"),data:Se,mimeType:e(),annotations:A.optional(),_meta:_(e(),S()).optional()}),ye=i({type:r("audio"),data:Se,mimeType:e(),annotations:A.optional(),_meta:_(e(),S()).optional()}),so=i({type:r("tool_use"),name:e(),id:e(),input:_(e(),S()),_meta:_(e(),S()).optional()}),io=i({type:r("resource"),resource:h([et,tt]),annotations:A.optional(),_meta:_(e(),S()).optional()}),ro=ot.extend({type:r("resource_link")}),Ce=h([Re,we,ye,ro,io]),co=i({role:H,content:Ce}),lo=k.extend({description:e().optional(),messages:s(co)}),po=q.extend({method:r("notifications/prompts/list_changed"),params:b.optional()}),uo=i({title:e().optional(),readOnlyHint:m().optional(),destructiveHint:m().optional(),idempotentHint:m().optional(),openWorldHint:m().optional()}),mo=i({taskSupport:U(["required","optional","forbidden"]).optional()}),nt=i({...L.shape,...N.shape,description:e().optional(),inputSchema:i({type:r("object"),properties:_(e(),C).optional(),required:s(e()).optional()}).catchall(S()),outputSchema:i({type:r("object"),properties:_(e(),C).optional(),required:s(e()).optional()}).catchall(S()).optional(),annotations:uo.optional(),execution:mo.optional(),_meta:_(e(),S()).optional()}),ho=j.extend({method:r("tools/list")}),_o=z.extend({tools:s(nt)}),at=k.extend({content:s(Ce).default([]),structuredContent:_(e(),S()).optional(),isError:m().optional()});at.or(k.extend({toolResult:S()}));const fo=M.extend({name:e(),arguments:_(e(),S()).optional()}),So=x.extend({method:r("tools/call"),params:fo}),go=q.extend({method:r("notifications/tools/list_changed"),params:b.optional()}),ea=i({autoRefresh:m().default(!0),debounceMs:u().int().nonnegative().default(300)}),st=U(["debug","info","notice","warning","error","critical","alert","emergency"]),Ro=T.extend({level:st}),wo=x.extend({method:r("logging/setLevel"),params:Ro}),yo=b.extend({level:st,logger:e().optional(),data:S()}),Co=q.extend({method:r("notifications/message"),params:yo}),xo=i({name:e().optional()}),ko=i({hints:s(xo).optional(),costPriority:u().min(0).max(1).optional(),speedPriority:u().min(0).max(1).optional(),intelligencePriority:u().min(0).max(1).optional()}),Po=i({mode:U(["auto","required","none"]).optional()}),To=i({type:r("tool_result"),toolUseId:e().describe("The unique identifier for the corresponding tool call."),content:s(Ce).default([]),structuredContent:i({}).loose().optional(),isError:m().optional(),_meta:_(e(),S()).optional()}),Uo=Ae("type",[Re,we,ye]),W=Ae("type",[Re,we,ye,so,To]),bo=i({role:H,content:h([W,s(W)]),_meta:_(e(),S()).optional()}),qo=M.extend({messages:s(bo),modelPreferences:ko.optional(),systemPrompt:e().optional(),includeContext:U(["none","thisServer","allServers"]).optional(),temperature:u().optional(),maxTokens:u().int(),stopSequences:s(e()).optional(),metadata:C.optional(),tools:s(nt).optional(),toolChoice:Po.optional()}),Eo=x.extend({method:r("sampling/createMessage"),params:qo}),vo=k.extend({model:e(),stopReason:g(U(["endTurn","stopSequence","maxTokens"]).or(e())),role:H,content:Uo}),Lo=k.extend({model:e(),stopReason:g(U(["endTurn","stopSequence","maxTokens","toolUse"]).or(e())),role:H,content:h([W,s(W)])}),Io=i({type:r("boolean"),title:e().optional(),description:e().optional(),default:m().optional()}),Ao=i({type:r("string"),title:e().optional(),description:e().optional(),minLength:u().optional(),maxLength:u().optional(),format:U(["email","uri","date","date-time"]).optional(),default:e().optional()}),Oo=i({type:U(["number","integer"]),title:e().optional(),description:e().optional(),minimum:u().optional(),maximum:u().optional(),default:u().optional()}),Mo=i({type:r("string"),title:e().optional(),description:e().optional(),enum:s(e()),default:e().optional()}),No=i({type:r("string"),title:e().optional(),description:e().optional(),oneOf:s(i({const:e(),title:e()})),default:e().optional()}),jo=i({type:r("string"),title:e().optional(),description:e().optional(),enum:s(e()),enumNames:s(e()).optional(),default:e().optional()}),zo=h([Mo,No]),$o=i({type:r("array"),title:e().optional(),description:e().optional(),minItems:u().optional(),maxItems:u().optional(),items:i({type:r("string"),enum:s(e())}),default:s(e()).optional()}),Ho=i({type:r("array"),title:e().optional(),description:e().optional(),minItems:u().optional(),maxItems:u().optional(),items:i({anyOf:s(i({const:e(),title:e()}))}),default:s(e()).optional()}),Vo=h([$o,Ho]),Wo=h([jo,zo,Vo]),Do=h([Wo,Io,Ao,Oo]),Bo=M.extend({mode:r("form").optional(),message:e(),requestedSchema:i({type:r("object"),properties:_(e(),Do),required:s(e()).optional()})}),Jo=M.extend({mode:r("url"),message:e(),elicitationId:e(),url:e().url()}),Go=h([Bo,Jo]),Fo=x.extend({method:r("elicitation/create"),params:Go}),Zo=b.extend({elicitationId:e()}),Ko=q.extend({method:r("notifications/elicitation/complete"),params:Zo}),Qo=k.extend({action:U(["accept","decline","cancel"]),content:Ie(t=>t===null?void 0:t,_(e(),h([e(),u(),m(),s(e())])).optional())}),Yo=i({type:r("ref/resource"),uri:e()}),Xo=i({type:r("ref/prompt"),name:e()}),en=T.extend({ref:h([Xo,Yo]),argument:i({name:e(),value:e()}),context:i({arguments:_(e(),e()).optional()}).optional()}),tn=x.extend({method:r("completion/complete"),params:en}),on=k.extend({completion:y({values:s(e()).max(100),total:g(u().int()),hasMore:g(m())})}),nn=i({uri:e().startsWith("file://"),name:e().optional(),_meta:_(e(),S()).optional()}),an=x.extend({method:r("roots/list"),params:T.optional()}),sn=k.extend({roots:s(nn)}),rn=q.extend({method:r("notifications/roots/list_changed"),params:b.optional()});h([We,Et,tn,wo,ao,to,zt,Ht,Dt,Ft,Kt,So,ho,Ge,Ze,Ke,Ye]);h([$e,De,Ve,rn,Je]);h([ze,vo,Lo,Qo,sn,Fe,Qe,Be]);h([We,Eo,Fo,an,Ge,Ze,Ke,Ye]);h([$e,De,Co,Yt,Jt,go,po,Je,Ko]);h([ze,Lt,on,lo,oo,$t,Vt,Bt,at,_o,Fe,Qe,Be]);class xe extends Error{constructor(o,n,a){super(`MCP error ${o}: ${n}`),this.code=o,this.data=a,this.name="McpError"}static fromError(o,n,a){if(o===V.UrlElicitationRequired&&a){const c=a;if(c.elicitations)return new cn(c.elicitations,n)}return new xe(o,n,a)}}class cn extends xe{constructor(o,n=`URL elicitation${o.length>1?"s":""} required`){super(V.UrlElicitationRequired,n,{elicitations:o})}get elicitations(){return this.data?.elicitations??[]}}let ke;ke=globalThis.crypto;async function ln(t){return(await ke).getRandomValues(new Uint8Array(t))}async function pn(t){const o="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~",n=Math.pow(2,8)-Math.pow(2,8)%o.length;let a="";for(;a.length<t;){const c=await ln(t-a.length);for(const p of c)p<n&&(a+=o[p%o.length])}return a}async function un(t){return await pn(t)}async function dn(t){const o=await(await ke).subtle.digest("SHA-256",new TextEncoder().encode(t));return btoa(String.fromCharCode(...new Uint8Array(o))).replace(/\//g,"_").replace(/\+/g,"-").replace(/=/g,"")}async function mn(t){if(t||(t=43),t<43||t>128)throw`Expected a length between 43 and 128. Received ${t}.`;const o=await un(t),n=await dn(o);return{code_verifier:o,code_challenge:n}}const w=ht().superRefine((t,o)=>{if(!URL.canParse(t))return o.addIssue({code:gt.custom,message:"URL must be parseable",fatal:!0}),_t}).refine(t=>{const o=new URL(t);return o.protocol!=="javascript:"&&o.protocol!=="data:"&&o.protocol!=="vbscript:"},{message:"URL cannot use javascript:, data:, or vbscript: scheme"}),hn=y({resource:e().url(),authorization_servers:s(w).optional(),jwks_uri:e().url().optional(),scopes_supported:s(e()).optional(),bearer_methods_supported:s(e()).optional(),resource_signing_alg_values_supported:s(e()).optional(),resource_name:e().optional(),resource_documentation:e().optional(),resource_policy_uri:e().url().optional(),resource_tos_uri:e().url().optional(),tls_client_certificate_bound_access_tokens:m().optional(),authorization_details_types_supported:s(e()).optional(),dpop_signing_alg_values_supported:s(e()).optional(),dpop_bound_access_tokens_required:m().optional()}),it=y({issuer:e(),authorization_endpoint:w,token_endpoint:w,registration_endpoint:w.optional(),scopes_supported:s(e()).optional(),response_types_supported:s(e()),response_modes_supported:s(e()).optional(),grant_types_supported:s(e()).optional(),token_endpoint_auth_methods_supported:s(e()).optional(),token_endpoint_auth_signing_alg_values_supported:s(e()).optional(),service_documentation:w.optional(),revocation_endpoint:w.optional(),revocation_endpoint_auth_methods_supported:s(e()).optional(),revocation_endpoint_auth_signing_alg_values_supported:s(e()).optional(),introspection_endpoint:e().optional(),introspection_endpoint_auth_methods_supported:s(e()).optional(),introspection_endpoint_auth_signing_alg_values_supported:s(e()).optional(),code_challenge_methods_supported:s(e()).optional(),client_id_metadata_document_supported:m().optional()}),_n=y({issuer:e(),authorization_endpoint:w,token_endpoint:w,userinfo_endpoint:w.optional(),jwks_uri:w,registration_endpoint:w.optional(),scopes_supported:s(e()).optional(),response_types_supported:s(e()),response_modes_supported:s(e()).optional(),grant_types_supported:s(e()).optional(),acr_values_supported:s(e()).optional(),subject_types_supported:s(e()),id_token_signing_alg_values_supported:s(e()),id_token_encryption_alg_values_supported:s(e()).optional(),id_token_encryption_enc_values_supported:s(e()).optional(),userinfo_signing_alg_values_supported:s(e()).optional(),userinfo_encryption_alg_values_supported:s(e()).optional(),userinfo_encryption_enc_values_supported:s(e()).optional(),request_object_signing_alg_values_supported:s(e()).optional(),request_object_encryption_alg_values_supported:s(e()).optional(),request_object_encryption_enc_values_supported:s(e()).optional(),token_endpoint_auth_methods_supported:s(e()).optional(),token_endpoint_auth_signing_alg_values_supported:s(e()).optional(),display_values_supported:s(e()).optional(),claim_types_supported:s(e()).optional(),claims_supported:s(e()).optional(),service_documentation:e().optional(),claims_locales_supported:s(e()).optional(),ui_locales_supported:s(e()).optional(),claims_parameter_supported:m().optional(),request_parameter_supported:m().optional(),request_uri_parameter_supported:m().optional(),require_request_uri_registration:m().optional(),op_policy_uri:w.optional(),op_tos_uri:w.optional(),client_id_metadata_document_supported:m().optional()}),fn=i({..._n.shape,...it.pick({code_challenge_methods_supported:!0}).shape}),Sn=i({access_token:e(),id_token:e().optional(),token_type:e(),expires_in:ft().optional(),scope:e().optional(),refresh_token:e().optional()}).strip(),gn=i({error:e(),error_description:e().optional(),error_uri:e().optional()}),qe=w.optional().or(r("").transform(()=>{})),Rn=i({redirect_uris:s(w),token_endpoint_auth_method:e().optional(),grant_types:s(e()).optional(),response_types:s(e()).optional(),client_name:e().optional(),client_uri:w.optional(),logo_uri:qe,scope:e().optional(),contacts:s(e()).optional(),tos_uri:qe,policy_uri:e().optional(),jwks_uri:w.optional(),jwks:St().optional(),software_id:e().optional(),software_version:e().optional(),software_statement:e().optional()}).strip(),wn=i({client_id:e(),client_secret:e().optional(),client_id_issued_at:u().optional(),client_secret_expires_at:u().optional()}).strip(),yn=Rn.merge(wn);i({error:e(),error_description:e().optional()}).strip();i({token:e(),token_type_hint:e().optional()}).strip();function Cn(t){const o=typeof t=="string"?new URL(t):new URL(t.href);return o.hash="",o}function xn({requestedResource:t,configuredResource:o}){const n=typeof t=="string"?new URL(t):new URL(t.href),a=typeof o=="string"?new URL(o):new URL(o.href);if(n.origin!==a.origin||n.pathname.length<a.pathname.length)return!1;const c=n.pathname.endsWith("/")?n.pathname:n.pathname+"/",p=a.pathname.endsWith("/")?a.pathname:a.pathname+"/";return c.startsWith(p)}class R extends Error{constructor(o,n){super(o),this.errorUri=n,this.name=this.constructor.name}toResponseObject(){const o={error:this.errorCode,error_description:this.message};return this.errorUri&&(o.error_uri=this.errorUri),o}get errorCode(){return this.constructor.errorCode}}class te extends R{}te.errorCode="invalid_request";class D extends R{}D.errorCode="invalid_client";class B extends R{}B.errorCode="invalid_grant";class J extends R{}J.errorCode="unauthorized_client";class oe extends R{}oe.errorCode="unsupported_grant_type";class ne extends R{}ne.errorCode="invalid_scope";class ae extends R{}ae.errorCode="access_denied";class I extends R{}I.errorCode="server_error";class se extends R{}se.errorCode="temporarily_unavailable";class ie extends R{}ie.errorCode="unsupported_response_type";class re extends R{}re.errorCode="unsupported_token_type";class ce extends R{}ce.errorCode="invalid_token";class le extends R{}le.errorCode="method_not_allowed";class pe extends R{}pe.errorCode="too_many_requests";class G extends R{}G.errorCode="invalid_client_metadata";class ue extends R{}ue.errorCode="insufficient_scope";class de extends R{}de.errorCode="invalid_target";const kn={[te.errorCode]:te,[D.errorCode]:D,[B.errorCode]:B,[J.errorCode]:J,[oe.errorCode]:oe,[ne.errorCode]:ne,[ae.errorCode]:ae,[I.errorCode]:I,[se.errorCode]:se,[ie.errorCode]:ie,[re.errorCode]:re,[ce.errorCode]:ce,[le.errorCode]:le,[pe.errorCode]:pe,[G.errorCode]:G,[ue.errorCode]:ue,[de.errorCode]:de};class ta extends Error{constructor(o){super(o??"Unauthorized")}}function Pn(t){return["client_secret_basic","client_secret_post","none"].includes(t)}const Q="code",Y="S256";function Tn(t,o){const n=t.client_secret!==void 0;return o.length===0?n?"client_secret_post":"none":"token_endpoint_auth_method"in t&&t.token_endpoint_auth_method&&Pn(t.token_endpoint_auth_method)&&o.includes(t.token_endpoint_auth_method)?t.token_endpoint_auth_method:n&&o.includes("client_secret_basic")?"client_secret_basic":n&&o.includes("client_secret_post")?"client_secret_post":o.includes("none")?"none":n?"client_secret_post":"none"}function Un(t,o,n,a){const{client_id:c,client_secret:p}=o;switch(t){case"client_secret_basic":bn(c,p,n);return;case"client_secret_post":qn(c,p,a);return;case"none":En(c,a);return;default:throw new Error(`Unsupported client authentication method: ${t}`)}}function bn(t,o,n){if(!o)throw new Error("client_secret_basic authentication requires a client_secret");const a=btoa(`${t}:${o}`);n.set("Authorization",`Basic ${a}`)}function qn(t,o,n){n.set("client_id",t),o&&n.set("client_secret",o)}function En(t,o){o.set("client_id",t)}async function rt(t){const o=t instanceof Response?t.status:void 0,n=t instanceof Response?await t.text():t;try{const a=gn.parse(JSON.parse(n)),{error:c,error_description:p,error_uri:d}=a,l=kn[c]||I;return new l(p||"",d)}catch(a){const c=`${o?`HTTP ${o}: `:""}Invalid OAuth error response: ${a}. Raw body: ${n}`;return new I(c)}}async function oa(t,o){try{return await X(t,o)}catch(n){if(n instanceof D||n instanceof J)return await t.invalidateCredentials?.("all"),await X(t,o);if(n instanceof B)return await t.invalidateCredentials?.("tokens"),await X(t,o);throw n}}async function X(t,{serverUrl:o,authorizationCode:n,scope:a,resourceMetadataUrl:c,fetchFn:p}){let d,l;try{d=await In(o,{resourceMetadataUrl:c},p),d.authorization_servers&&d.authorization_servers.length>0&&(l=d.authorization_servers[0])}catch{}l||(l=new URL("/",o));const f=await Ln(o,t,d),P=await jn(l,{fetchFn:p});let E=await Promise.resolve(t.clientInformation());if(!E){if(n!==void 0)throw new Error("Existing OAuth client information is required when exchanging an authorization code");const v=P?.client_id_metadata_document_supported===!0,O=t.clientMetadataUrl;if(O&&!vn(O))throw new G(`clientMetadataUrl must be a valid HTTPS URL with a non-root pathname, got: ${O}`);if(v&&O)E={client_id:O},await t.saveClientInformation?.(E);else{if(!t.saveClientInformation)throw new Error("OAuth client information must be saveable for dynamic registration");const be=await Vn(l,{metadata:P,clientMetadata:t.clientMetadata,fetchFn:p});await t.saveClientInformation(be),E=be}}const K=!t.redirectUrl;if(n!==void 0||K){const v=await Hn(t,l,{metadata:P,resource:f,authorizationCode:n,fetchFn:p});return await t.saveTokens(v),"AUTHORIZED"}const Ue=await t.tokens();if(Ue?.refresh_token)try{const v=await $n(l,{metadata:P,clientInformation:E,refreshToken:Ue.refresh_token,resource:f,addClientAuthentication:t.addClientAuthentication,fetchFn:p});return await t.saveTokens(v),"AUTHORIZED"}catch(v){if(!(!(v instanceof R)||v instanceof I))throw v}const lt=t.state?await t.state():void 0,{authorizationUrl:pt,codeVerifier:ut}=await zn(l,{metadata:P,clientInformation:E,state:lt,redirectUrl:t.redirectUrl,scope:a||d?.scopes_supported?.join(" ")||t.clientMetadata.scope,resource:f});return await t.saveCodeVerifier(ut),await t.redirectToAuthorization(pt),"REDIRECT"}function vn(t){if(!t)return!1;try{const o=new URL(t);return o.protocol==="https:"&&o.pathname!=="/"}catch{return!1}}async function Ln(t,o,n){const a=Cn(t);if(o.validateResourceURL)return await o.validateResourceURL(a,n?.resource);if(n){if(!xn({requestedResource:a,configuredResource:n.resource}))throw new Error(`Protected resource ${n.resource} does not match expected ${a} (or origin)`);return new URL(n.resource)}}function na(t){const o=t.headers.get("WWW-Authenticate");if(!o)return{};const[n,a]=o.split(" ");if(n.toLowerCase()!=="bearer"||!a)return{};const c=ee(t,"resource_metadata")||void 0;let p;if(c)try{p=new URL(c)}catch{}const d=ee(t,"scope")||void 0,l=ee(t,"error")||void 0;return{resourceMetadataUrl:p,scope:d,error:l}}function ee(t,o){const n=t.headers.get("WWW-Authenticate");if(!n)return null;const a=new RegExp(`${o}=(?:"([^"]+)"|([^\\s,]+))`),c=n.match(a);return c?c[1]||c[2]:null}async function In(t,o,n=fetch){const a=await Mn(t,"oauth-protected-resource",n,{protocolVersion:o?.protocolVersion,metadataUrl:o?.resourceMetadataUrl});if(!a||a.status===404)throw await a?.body?.cancel(),new Error("Resource server does not implement OAuth 2.0 Protected Resource Metadata.");if(!a.ok)throw await a.body?.cancel(),new Error(`HTTP ${a.status} trying to load well-known OAuth protected resource metadata.`);return hn.parse(await a.json())}async function Pe(t,o,n=fetch){try{return await n(t,{headers:o})}catch(a){if(a instanceof TypeError)return o?Pe(t,void 0,n):void 0;throw a}}function An(t,o="",n={}){return o.endsWith("/")&&(o=o.slice(0,-1)),n.prependPathname?`${o}/.well-known/${t}`:`/.well-known/${t}${o}`}async function Ee(t,o,n=fetch){return await Pe(t,{"MCP-Protocol-Version":o},n)}function On(t,o){return!t||t.status>=400&&t.status<500&&o!=="/"}async function Mn(t,o,n,a){const c=new URL(t),p=a?.protocolVersion??me;let d;if(a?.metadataUrl)d=new URL(a.metadataUrl);else{const f=An(o,c.pathname);d=new URL(f,a?.metadataServerUrl??c),d.search=c.search}let l=await Ee(d,p,n);if(!a?.metadataUrl&&On(l,c.pathname)){const f=new URL(`/.well-known/${o}`,c);l=await Ee(f,p,n)}return l}function Nn(t){const o=typeof t=="string"?new URL(t):t,n=o.pathname!=="/",a=[];if(!n)return a.push({url:new URL("/.well-known/oauth-authorization-server",o.origin),type:"oauth"}),a.push({url:new URL("/.well-known/openid-configuration",o.origin),type:"oidc"}),a;let c=o.pathname;return c.endsWith("/")&&(c=c.slice(0,-1)),a.push({url:new URL(`/.well-known/oauth-authorization-server${c}`,o.origin),type:"oauth"}),a.push({url:new URL(`/.well-known/openid-configuration${c}`,o.origin),type:"oidc"}),a.push({url:new URL(`${c}/.well-known/openid-configuration`,o.origin),type:"oidc"}),a}async function jn(t,{fetchFn:o=fetch,protocolVersion:n=me}={}){const a={"MCP-Protocol-Version":n,Accept:"application/json"},c=Nn(t);for(const{url:p,type:d}of c){const l=await Pe(p,a,o);if(l){if(!l.ok){if(await l.body?.cancel(),l.status>=400&&l.status<500)continue;throw new Error(`HTTP ${l.status} trying to load ${d==="oauth"?"OAuth":"OpenID provider"} metadata from ${p}`)}return d==="oauth"?it.parse(await l.json()):fn.parse(await l.json())}}}async function zn(t,{metadata:o,clientInformation:n,redirectUrl:a,scope:c,state:p,resource:d}){let l;if(o){if(l=new URL(o.authorization_endpoint),!o.response_types_supported.includes(Q))throw new Error(`Incompatible auth server: does not support response type ${Q}`);if(o.code_challenge_methods_supported&&!o.code_challenge_methods_supported.includes(Y))throw new Error(`Incompatible auth server: does not support code challenge method ${Y}`)}else l=new URL("/authorize",t);const f=await mn(),P=f.code_verifier,E=f.code_challenge;return l.searchParams.set("response_type",Q),l.searchParams.set("client_id",n.client_id),l.searchParams.set("code_challenge",E),l.searchParams.set("code_challenge_method",Y),l.searchParams.set("redirect_uri",String(a)),p&&l.searchParams.set("state",p),c&&l.searchParams.set("scope",c),c?.includes("offline_access")&&l.searchParams.append("prompt","consent"),d&&l.searchParams.set("resource",d.href),{authorizationUrl:l,codeVerifier:P}}function ct(t,o,n){return new URLSearchParams({grant_type:"authorization_code",code:t,code_verifier:o,redirect_uri:String(n)})}async function Te(t,{metadata:o,tokenRequestParams:n,clientInformation:a,addClientAuthentication:c,resource:p,fetchFn:d}){const l=o?.token_endpoint?new URL(o.token_endpoint):new URL("/token",t),f=new Headers({"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"});if(p&&n.set("resource",p.href),c)await c(f,n,l,o);else if(a){const E=o?.token_endpoint_auth_methods_supported??[],K=Tn(a,E);Un(K,a,f,n)}const P=await(d??fetch)(l,{method:"POST",headers:f,body:n});if(!P.ok)throw await rt(P);return Sn.parse(await P.json())}async function aa(t,{metadata:o,clientInformation:n,authorizationCode:a,codeVerifier:c,redirectUri:p,resource:d,addClientAuthentication:l,fetchFn:f}){const P=ct(a,c,p);return Te(t,{metadata:o,tokenRequestParams:P,clientInformation:n,addClientAuthentication:l,resource:d,fetchFn:f})}async function $n(t,{metadata:o,clientInformation:n,refreshToken:a,resource:c,addClientAuthentication:p,fetchFn:d}){const l=new URLSearchParams({grant_type:"refresh_token",refresh_token:a}),f=await Te(t,{metadata:o,tokenRequestParams:l,clientInformation:n,addClientAuthentication:p,resource:c,fetchFn:d});return{refresh_token:a,...f}}async function Hn(t,o,{metadata:n,resource:a,authorizationCode:c,fetchFn:p}={}){const d=t.clientMetadata.scope;let l;if(t.prepareTokenRequest&&(l=await t.prepareTokenRequest(d)),!l){if(!c)throw new Error("Either provider.prepareTokenRequest() or authorizationCode is required");if(!t.redirectUrl)throw new Error("redirectUrl is required for authorization_code flow");const P=await t.codeVerifier();l=ct(c,P,t.redirectUrl)}const f=await t.clientInformation();return Te(o,{metadata:n,tokenRequestParams:l,clientInformation:f??void 0,addClientAuthentication:t.addClientAuthentication,resource:a,fetchFn:p})}async function Vn(t,{metadata:o,clientMetadata:n,fetchFn:a}){let c;if(o){if(!o.registration_endpoint)throw new Error("Incompatible auth server: does not support dynamic client registration");c=new URL(o.registration_endpoint)}else c=new URL("/register",t);const p=await(a??fetch)(c,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!p.ok)throw await rt(p);return yn.parse(await p.json())}export{Fo as A,Qo as B,$e as C,Eo as D,V as E,vo as F,Ge as G,oa as H,Lt as I,na as J,Qn as K,Ke as L,xe as M,Yn as N,In as O,De as P,jn as Q,Rt as R,Bn as S,Je as T,ta as U,aa as V,We as a,Ze as b,Ye as c,Kn as d,Gn as e,Fn as f,Jn as g,Be as h,Zn as i,Fe as j,Qe as k,Xn as l,at as m,go as n,po as o,Jt as p,me as q,ze as r,on as s,lo as t,oo as u,$t as v,Vt as w,Bt as x,_o as y,ea as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as r,d as m,j as n,A as o}from"./index-
|
|
1
|
+
import{c as r,d as m,j as n,A as o}from"./index-C1mekZiH.js";function i(){const e=r.c(3);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={from:"/auth/$pathname"},e[0]=t):t=e[0];const{pathname:s}=m(t);let a;return e[1]!==s?(a=n.jsx("main",{className:"container mx-auto flex grow flex-col items-center justify-center gap-3 self-center p-4 md:p-6",children:n.jsx(o,{pathname:s})}),e[1]=s,e[2]=a):a=e[2],a}export{i as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as R,c as j,j as i,f as I,bg as $,bh as L,bi as M}from"./index-
|
|
1
|
+
import{r as R,c as j,j as i,f as I,bg as $,bh as L,bi as M}from"./index-C1mekZiH.js";import{c as m}from"./input-DaU0Ki86.js";const V=({size:a=24,color:e="currentColor",...s})=>R.createElement("svg",{viewBox:"0 0 24 24",width:a,height:a,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},R.createElement("path",{d:"M20 21c0-1.396 0-2.093-.172-2.661a4 4 0 0 0-2.667-2.667c-.568-.172-1.265-.172-2.661-.172h-5c-1.396 0-2.093 0-2.661.172a4 4 0 0 0-2.667 2.667C4 18.907 4 19.604 4 21M16.5 7.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0Z"}));V.displayName="User01";function O(a){const e=j.c(8);let s,t;e[0]!==a?({className:s,...t}=a,e[0]=a,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let o;e[3]!==s?(o=m("relative flex size-8 shrink-0 overflow-hidden rounded-full",s),e[3]=s,e[4]=o):o=e[4];let r;return e[5]!==t||e[6]!==o?(r=i.jsx(M,{"data-slot":"avatar",className:o,...t}),e[5]=t,e[6]=o,e[7]=r):r=e[7],r}function T(a){const e=j.c(8);let s,t;e[0]!==a?({className:s,...t}=a,e[0]=a,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let o;e[3]!==s?(o=m("aspect-square size-full",s),e[3]=s,e[4]=o):o=e[4];let r;return e[5]!==t||e[6]!==o?(r=i.jsx($,{"data-slot":"avatar-image",className:o,...t}),e[5]=t,e[6]=o,e[7]=r):r=e[7],r}function W(a){const e=j.c(8);let s,t;e[0]!==a?({className:s,...t}=a,e[0]=a,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let o;e[3]!==s?(o=m("bg-muted flex size-full items-center justify-center rounded-full",s),e[3]=s,e[4]=o):o=e[4];let r;return e[5]!==t||e[6]!==o?(r=i.jsx(L,{"data-slot":"avatar-fallback",className:o,...t}),e[5]=t,e[6]=o,e[7]=r):r=e[7],r}const S=["drop-shadow-lg bg-gradient-to-br from-red-100 to-red-300 text-red-800 shadow-lg shadow-red-300/40 ring-1 ring-red-300/30","drop-shadow-lg bg-gradient-to-br from-lime-100 to-lime-300 text-lime-800 shadow-lg shadow-lime-300/40 ring-1 ring-lime-300/30","drop-shadow-lg bg-gradient-to-br from-emerald-100 to-emerald-300 text-emerald-800 shadow-lg shadow-emerald-300/40 ring-1 ring-emerald-300/30","drop-shadow-lg bg-gradient-to-br from-orange-100 to-orange-300 text-orange-800 shadow-lg shadow-orange-300/40 ring-1 ring-orange-300/30","drop-shadow-lg bg-gradient-to-br from-amber-100 to-amber-300 text-amber-800 shadow-lg shadow-amber-300/40 ring-1 ring-amber-300/30","drop-shadow-lg bg-gradient-to-br from-yellow-100 to-yellow-300 text-yellow-800 shadow-lg shadow-yellow-300/40 ring-1 ring-yellow-300/30","drop-shadow-lg bg-gradient-to-br from-green-100 to-green-300 text-green-800 shadow-lg shadow-green-300/40 ring-1 ring-green-300/30","drop-shadow-lg bg-gradient-to-br from-teal-100 to-teal-300 text-teal-800 shadow-lg shadow-teal-300/40 ring-1 ring-teal-300/30","drop-shadow-lg bg-gradient-to-br from-cyan-100 to-cyan-300 text-cyan-800 shadow-lg shadow-cyan-300/40 ring-1 ring-cyan-300/30","drop-shadow-lg bg-gradient-to-br from-sky-100 to-sky-300 text-sky-800 shadow-lg shadow-sky-300/40 ring-1 ring-sky-300/30","drop-shadow-lg bg-gradient-to-br from-blue-100 to-blue-300 text-blue-800 shadow-lg shadow-blue-300/40 ring-1 ring-blue-300/30","drop-shadow-lg bg-gradient-to-br from-indigo-100 to-indigo-300 text-indigo-800 shadow-lg shadow-indigo-300/40 ring-1 ring-indigo-300/30","drop-shadow-lg bg-gradient-to-br from-violet-100 to-violet-300 text-violet-800 shadow-lg shadow-violet-300/40 ring-1 ring-violet-300/30","drop-shadow-lg bg-gradient-to-br from-purple-100 to-purple-300 text-purple-800 shadow-lg shadow-purple-300/40 ring-1 ring-purple-300/30","drop-shadow-lg bg-gradient-to-br from-fuchsia-100 to-fuchsia-300 text-fuchsia-800 shadow-lg shadow-fuchsia-300/40 ring-1 ring-fuchsia-300/30","drop-shadow-lg bg-gradient-to-br from-pink-100 to-pink-300 text-pink-800 shadow-lg shadow-pink-300/40 ring-1 ring-pink-300/30","drop-shadow-lg bg-gradient-to-br from-rose-100 to-rose-300 text-rose-800 shadow-lg shadow-rose-300/40 ring-1 ring-rose-300/30"],_="drop-shadow-lg text-muted-foreground bg-muted shadow-lg";function B(a){let e=0;for(let t=0;t<a.length;t++)e=a.charCodeAt(t)+((e<<5)-e);const s=Math.abs(e)%S.length;return S[s]}const U=I("border border-border",{variants:{shape:{circle:"rounded-full",square:""},size:{"3xs":"w-3 h-3 text-xs font-semibold","2xs":"w-4 h-4 text-xs font-semibold",xs:"w-6 h-6 text-sm font-semibold",sm:"w-8 h-8 text-lg font-semibold",base:"w-10 h-10 text-2xl font-semibold",lg:"w-12 h-12 text-3xl font-semibold",xl:"w-16 h-16 text-4xl font-semibold","2xl":"w-20 h-20 text-5xl font-semibold","3xl":"w-32 h-32 text-7xl font-semibold"}},compoundVariants:[{shape:"square",size:"xs",class:"rounded-lg"},{shape:"square",size:"sm",class:"rounded-xl"},{shape:"square",size:"base",class:"rounded-xl"},{shape:"square",size:"lg",class:"rounded-xl"},{shape:"square",size:"xl",class:"rounded-2xl"},{shape:"square",size:"2xl",class:"rounded-3xl"},{shape:"square",size:"3xl",class:"rounded-[40px]"}],defaultVariants:{shape:"square",size:"base"}}),D=I("",{variants:{objectFit:{contain:"object-contain",cover:"object-cover"}},defaultVariants:{objectFit:"cover"}}),Z=a=>{const e={"3xs":8,"2xs":8,xs:12,sm:16,base:24,lg:28,xl:36,"2xl":48,"3xl":80};return e[a]||e.base};function G(a){const e=j.c(35);let s,t,o,r,n,d,g,l;e[0]!==a?({url:l,fallback:t,shape:r,size:n,objectFit:d,className:s,muted:g,...o}=a,e[0]=a,e[1]=s,e[2]=t,e[3]=o,e[4]=r,e[5]=n,e[6]=d,e[7]=g,e[8]=l):(s=e[1],t=e[2],o=e[3],r=e[4],n=e[5],d=e[6],g=e[7],l=e[8]);const b=r===void 0?"square":r,h=n===void 0?"base":n,u=d===void 0?"cover":d,k=g===void 0?!1:g,[f,x]=R.useState(!1);let F;e:{if(typeof t=="string"){let c;e[9]!==t?(c=t.trim().slice(0,2).toUpperCase(),e[9]=t,e[10]=c):c=e[10],F=c;break e}F=t}const C=F;let z;e:{if(k){z=_;break e}if(typeof t=="string"){let c;e[11]!==t?(c=B(t),e[11]=t,e[12]=c):c=e[12],z=c;break e}z=S[0]}const y=z;let N;e[13]!==l?(N=l?.startsWith("icon://"),e[13]=l,e[14]=N):N=e[14];const p=N;let q;e[15]!==p||e[16]!==l?(q=p?l?.replace("icon://",""):void 0,e[15]=p,e[16]=l,e[17]=q):q=e[17];const E=q;let w;e[18]!==s||e[19]!==b||e[20]!==h?(w=m(U({shape:b,size:h}),s),e[18]=s,e[19]=b,e[20]=h,e[21]=w):w=e[21];let v;e[22]!==y||e[23]!==C||e[24]!==E||e[25]!==f||e[26]!==p||e[27]!==u||e[28]!==h||e[29]!==l?(v=p&&E?i.jsx("div",{className:m("flex items-center justify-center w-full h-full",y),children:i.jsx(V,{size:Z(h)})}):i.jsxs(i.Fragment,{children:[l&&!f&&i.jsx(T,{src:l,loading:"lazy",alt:"Avatar",className:m(D({objectFit:u})),onError:()=>x(!0)}),(!l||f)&&i.jsx(W,{className:m(y,"rounded-none"),children:C})]}),e[22]=y,e[23]=C,e[24]=E,e[25]=f,e[26]=p,e[27]=u,e[28]=h,e[29]=l,e[30]=v):v=e[30];let A;return e[31]!==o||e[32]!==v||e[33]!==w?(A=i.jsx(O,{className:w,...o,children:v}),e[31]=o,e[32]=v,e[33]=w,e[34]=A):A=e[34],A}function H(a){const e=j.c(18);let s,t,o,r,n,d,g,l;e[0]!==a?({shape:r,size:n,url:l,fallback:t,objectFit:d,className:s,muted:g,...o}=a,e[0]=a,e[1]=s,e[2]=t,e[3]=o,e[4]=r,e[5]=n,e[6]=d,e[7]=g,e[8]=l):(s=e[1],t=e[2],o=e[3],r=e[4],n=e[5],d=e[6],g=e[7],l=e[8]);const b=r===void 0?"square":r,h=n===void 0?"base":n,u=d===void 0?"cover":d,k=g===void 0?!1:g,f=h??"base";let x;return e[9]!==s||e[10]!==t||e[11]!==k||e[12]!==u||e[13]!==o||e[14]!==b||e[15]!==f||e[16]!==l?(x=i.jsx(G,{shape:b,url:l,fallback:t,size:f,objectFit:u,className:s,muted:k,...o}),e[9]=s,e[10]=t,e[11]=k,e[12]=u,e[13]=o,e[14]=b,e[15]=f,e[16]=l,e[17]=x):x=e[17],x}H.Skeleton=function({shape:e="square",size:s="base",className:t}){return i.jsx("div",{className:m(U({shape:e,size:s}),"bg-muted animate-pulse",t)})};export{H as A};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as d,f as u,j as l,g as v}from"./index-
|
|
1
|
+
import{c as d,f as u,j as l,g as v}from"./index-C1mekZiH.js";import{c as g}from"./input-DaU0Ki86.js";const f=u("inline-flex items-center justify-center rounded-full border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-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 transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",success:"border-transparent bg-success text-success-foreground [a&]:hover:bg-success/90 focus-visible:ring-success/20 dark:focus-visible:ring-success/40",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function m(o){const e=d.c(12);let r,s,a,t;e[0]!==o?({className:r,variant:t,asChild:a,...s}=o,e[0]=o,e[1]=r,e[2]=s,e[3]=a,e[4]=t):(r=e[1],s=e[2],a=e[3],t=e[4]);const c=(a===void 0?!1:a)?v:"span";let i;e[5]!==r||e[6]!==t?(i=g(f({variant:t}),r),e[5]=r,e[6]=t,e[7]=i):i=e[7];let n;return e[8]!==c||e[9]!==s||e[10]!==i?(n=l.jsx(c,{"data-slot":"badge",className:i,...s}),e[8]=c,e[9]=s,e[10]=i,e[11]=n):n=e[11],n}export{m as B};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c,j as l}from"./index-
|
|
1
|
+
import{c,j as l}from"./index-C1mekZiH.js";import{c as d}from"./input-DaU0Ki86.js";function f(a){const e=c.c(8);let r,o;e[0]!==a?({className:r,...o}=a,e[0]=a,e[1]=r,e[2]=o):(r=e[1],o=e[2]);let t;e[3]!==r?(t=d("bg-card text-card-foreground hover:bg-accent/50 flex flex-col gap-6 rounded-xl border border-border/75",r),e[3]=r,e[4]=t):t=e[4];let s;return e[5]!==o||e[6]!==t?(s=l.jsx("div",{"data-slot":"card",className:t,...o}),e[5]=o,e[6]=t,e[7]=s):s=e[7],s}export{f as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as d,j as c,aT as n,aU as l}from"./index-
|
|
1
|
+
import{c as d,j as c,aT as n,aU as l}from"./index-C1mekZiH.js";import{i as m}from"./project-context-provider-CNg0H4Fo.js";import{c as b}from"./input-DaU0Ki86.js";function f(o){const e=d.c(9);let r,a;e[0]!==o?({className:r,...a}=o,e[0]=o,e[1]=r,e[2]=a):(r=e[1],a=e[2]);let i;e[3]!==r?(i=b("peer border-foreground dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",r),e[3]=r,e[4]=i):i=e[4];let t;e[5]===Symbol.for("react.memo_cache_sentinel")?(t=c.jsx(l,{"data-slot":"checkbox-indicator",className:"flex items-center justify-center text-primary-foreground transition-none",children:c.jsx(m,{className:"size-3.5"})}),e[5]=t):t=e[5];let s;return e[6]!==a||e[7]!==i?(s=c.jsx(n,{"data-slot":"checkbox",className:i,...a,children:t}),e[6]=a,e[7]=i,e[8]=s):s=e[8],s}export{f as C};
|