ryco-cli 0.1.6 → 0.1.7
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/{AzureDevOpsSourceControlProvider-6holYS_D.cjs → AzureDevOpsSourceControlProvider-5exivY-1.cjs} +2 -2
- package/dist/{AzureDevOpsSourceControlProvider-CC2_COxP.mjs → AzureDevOpsSourceControlProvider-CF5LuCHp.mjs} +2 -2
- package/dist/{BitbucketSourceControlProvider-a0IsNFyG.cjs → BitbucketSourceControlProvider-1GWENqcl.cjs} +2 -2
- package/dist/{BitbucketSourceControlProvider-CYR_BD1d.mjs → BitbucketSourceControlProvider-CKH09tfT.mjs} +2 -2
- package/dist/{ClaudeDriver-C6tQNEWO.cjs → ClaudeDriver-BXLdjrht.cjs} +177 -4
- package/dist/{ClaudeDriver-D3nsxwH9.mjs → ClaudeDriver-WwWFTu61.mjs} +178 -5
- package/dist/{CodexDriver-BILrJG8o.mjs → CodexDriver-93-TmCrO.mjs} +6 -5
- package/dist/{CodexDriver-ms_YgFD7.cjs → CodexDriver-BboMT9uk.cjs} +5 -4
- package/dist/{CodexTextGeneration-CHEgoANm.cjs → CodexTextGeneration-0pRbJji3.cjs} +2 -2
- package/dist/{CodexTextGeneration-BIKHl7E3.mjs → CodexTextGeneration-BU9Myn87.mjs} +3 -3
- package/dist/{CopilotDriver-CmD3Ffyl.mjs → CopilotDriver-BASi8pJ0.mjs} +4 -4
- package/dist/{CopilotDriver-B0--ZwIK.cjs → CopilotDriver-DCsv-17W.cjs} +3 -3
- package/dist/{CursorDriver-DTVPXZ-R.cjs → CursorDriver-BTSiM3A8.cjs} +161 -14
- package/dist/{CursorDriver-CbeaIbdb.mjs → CursorDriver-D5LvIqUk.mjs} +162 -15
- package/dist/{ForgejoSourceControlProvider-DwAog76b.cjs → ForgejoSourceControlProvider-BTXRDCGB.cjs} +2 -2
- package/dist/{ForgejoSourceControlProvider-DX6d9gvz.mjs → ForgejoSourceControlProvider-e-4hvvZ_.mjs} +2 -2
- package/dist/{GitHubSourceControlProvider-C-LGwho3.mjs → GitHubSourceControlProvider-26IofDAO.mjs} +2 -2
- package/dist/{GitHubSourceControlProvider-9lJFzjsu.cjs → GitHubSourceControlProvider-DWmwkA_y.cjs} +2 -2
- package/dist/{GitLabSourceControlProvider-CvKA74lg.cjs → GitLabSourceControlProvider-D-YHnxRe.cjs} +2 -2
- package/dist/{GitLabSourceControlProvider-CkeT2aEx.mjs → GitLabSourceControlProvider-DePct78W.mjs} +2 -2
- package/dist/{OpenCodeDriver-ClWtCk0j.mjs → OpenCodeDriver-BhvLOmvn.mjs} +325 -38
- package/dist/{OpenCodeDriver-CXUsnl5o.cjs → OpenCodeDriver-CVeZ4n9-.cjs} +324 -37
- package/dist/{SourceControlProviderDiscoveryCatalog-_rg0mc1o.cjs → SourceControlProviderDiscoveryCatalog-DeFR5xH3.cjs} +1 -64
- package/dist/{SourceControlProviderDiscoveryCatalog-yMDer_Yh.mjs → SourceControlProviderDiscoveryCatalog-mJV_Xitr.mjs} +3 -48
- package/dist/bin.cjs +1280 -519
- package/dist/bin.mjs +1234 -474
- package/dist/client/assets/{AnimatedHeight-DgItDSis.js → AnimatedHeight-BSU0lzYs.js} +1 -1
- package/dist/client/assets/AppearanceSettings-D7q0ujGK.js +1 -0
- package/dist/client/assets/{BranchToolbar.logic-C_xHEt9C.js → BranchToolbar.logic-CZIFSvhd.js} +1 -1
- package/dist/client/assets/ChatRightPanel-CWHOIuiQ.js +188 -0
- package/dist/client/assets/{ChatThreadRouteView-CV6ETYG5.js → ChatThreadRouteView-bA7xWXzc.js} +1 -1
- package/dist/client/assets/{CommandPaletteDialog-C_H7R8S5.js → CommandPaletteDialog-DNYaVOZO.js} +1 -1
- package/dist/client/assets/CompositeRoot-B_KEfCUE.js +1 -0
- package/dist/client/assets/ConnectionsSettings-CLZPbx_K.js +1 -0
- package/dist/client/assets/{DiagnosticsSettings-B340S_mq.js → DiagnosticsSettings-DtzPCb6N.js} +1 -1
- package/dist/client/assets/{DialogHandle-BJY7cHCV.js → DialogHandle-DuHnmWoE.js} +1 -1
- package/dist/client/assets/{DialogRoot-Ej1FVk-_.js → DialogRoot-BV25qAcA.js} +1 -1
- package/dist/client/assets/DialogTitle-DQsi-RTa.js +1 -0
- package/dist/client/assets/DialogTrigger-D0fA01C6.js +1 -0
- package/dist/client/assets/{DialogViewport-DvjAl76K.js → DialogViewport-CMV_BePU.js} +1 -1
- package/dist/client/assets/{DraftChatThreadRouteView-pOkyeKPS.js → DraftChatThreadRouteView-BoiKnrii.js} +1 -1
- package/dist/client/assets/{JetBrainsIcons-DTTF47I0.js → JetBrainsIcons-BcPxJlMf.js} +1 -1
- package/dist/client/assets/{KeybindingsSettings-CW3RRi-7.js → KeybindingsSettings-LuI98pdF.js} +1 -1
- package/dist/client/assets/McpServersSettings-BFMuWYVV.js +6 -0
- package/dist/client/assets/{NoActiveThreadState-DVHwrkCp.js → NoActiveThreadState-C2q_O1kP.js} +1 -1
- package/dist/client/assets/{OpinionatedPluginsSettings-Cjj23Fs4.js → OpinionatedPluginsSettings-Bqwct37O.js} +1 -1
- package/dist/client/assets/{ProjectFavicon-TDP7HRfn.js → ProjectFavicon-D2imiJ8M.js} +1 -1
- package/dist/client/assets/{ProviderUpdateLaunchNotification.logic-6TpFsmiI.js → ProviderUpdateLaunchNotification.logic-CJgA--nK.js} +1 -1
- package/dist/client/assets/ProvidersSettingsPanel-B97vbeu6.js +1 -0
- package/dist/client/assets/{RedactedSensitiveText-BfoVjPsE.js → RedactedSensitiveText-B2GFTyfq.js} +1 -1
- package/dist/client/assets/RootAppShell-C1xTR98P.js +12 -0
- package/dist/client/assets/SettingsDialog-Q0Q8O5oH.js +2 -0
- package/dist/client/assets/SourceControlSettings-KAvoPTNi.js +1 -0
- package/dist/client/assets/StatisticsPanel-BzsQ444K.js +64 -0
- package/dist/client/assets/{ThreadStatusIndicators-B0leIJGD.js → ThreadStatusIndicators-Cw_jLVQf.js} +1 -1
- package/dist/client/assets/{ThreadTerminalDrawer-COq2Fk17.js → ThreadTerminalDrawer-D1WnSemH.js} +17 -17
- package/dist/client/assets/ThreadWorkspacePanel-L4qCPTOA.js +166 -0
- package/dist/client/assets/{alert-dialog-lMfKpG2t.js → alert-dialog-CNmKa0BK.js} +1 -1
- package/dist/client/assets/chart-column-BWSKYZ_a.js +1 -0
- package/dist/client/assets/{chatThreadActions-PPyTj_x0.js → chatThreadActions-TtDsiwDC.js} +1 -1
- package/dist/client/assets/chevron-up-zopJ_99l.js +1 -0
- package/dist/client/assets/{clamp-JiD4IZ0Z.js → clamp-Ds6WJu8j.js} +1 -1
- package/dist/client/assets/{clipboard-copy-CYBLSG2q.js → clipboard-copy-BoJGpdmJ.js} +1 -1
- package/dist/client/assets/clock-CzUHThzk.js +1 -0
- package/dist/client/assets/{commandPaletteStore-uVfCD7zE.js → commandPaletteStore-KebG835b.js} +1 -1
- package/dist/client/assets/composerDraftStore-DpPEQ6BN.js +21 -0
- package/dist/client/assets/{desktopUpdateAtoms-X6uM5SoD.js → desktopUpdateAtoms-BQ0GGEfM.js} +1 -1
- package/dist/client/assets/{download-DLBlpp4h.js → download-CUiRE0N9.js} +1 -1
- package/dist/client/assets/{draft-input-dLlVMl5P.js → draft-input-CwpGDtoT.js} +1 -1
- package/dist/client/assets/editorPreferences-jN7DKbyt.js +1 -0
- package/dist/client/assets/{empty-DlLY-Hhj.js → empty-CBuXePtg.js} +1 -1
- package/dist/client/assets/{group-zDBPF7rR.js → group-BpZvxjG5.js} +1 -1
- package/dist/client/assets/{index-Dq8sT2lF.js → index-BKzXTNJ_.js} +2 -2
- package/dist/client/assets/{input-B9-RWT56.js → input-CgDawd6k.js} +1 -1
- package/dist/client/assets/kbd-QYSL97CK.js +1 -0
- package/dist/client/assets/{keybindings-Dx4Nc1vY.js → keybindings-CUTRYI_A.js} +1 -1
- package/dist/client/assets/{keyboard-DDTWQkr0.js → keyboard-DFFiI7JY.js} +1 -1
- package/dist/client/assets/{keyedQuery-Ds4OGhX2.js → keyedQuery-DiOCbGH0.js} +0 -0
- package/dist/client/assets/{main-DxfpmoKJ.js → main-BgFGju3e.js} +3 -3
- package/dist/client/assets/main-D0UFdwts.css +2 -0
- package/dist/client/assets/{palette-BQcz-ZYV.js → palette-BXCL909c.js} +1 -1
- package/dist/client/assets/{play-QloDGe4R.js → play-DI2LZohg.js} +1 -1
- package/dist/client/assets/plus-DzgIfHUF.js +1 -0
- package/dist/client/assets/projectAtoms-DXXpuERK.js +1 -0
- package/dist/client/assets/providerDriverMeta-CRNNp0q3.js +1 -0
- package/dist/client/assets/providerIconUtils-D-DFhem2.js +47 -0
- package/dist/client/assets/radio-group-_PPYg3YY.js +1 -0
- package/dist/client/assets/{refresh-cw-DkBMGllm.js → refresh-cw-BsQTNBXl.js} +1 -1
- package/dist/client/assets/{resolveAriaLabelledBy-DDfIbj05.js → resolveAriaLabelledBy-CRHo_s16.js} +1 -1
- package/dist/client/assets/{rightPanelRouteSearch-DfuWVvXN.js → rightPanelRouteSearch-CfmZ7osj.js} +1 -1
- package/dist/client/assets/{scale-BActunFu.js → scale-DDEJ-tvn.js} +1 -1
- package/dist/client/assets/{scroll-area-D-YOUG02.js → scroll-area-HgsI-ErG.js} +1 -1
- package/dist/client/assets/{separator-TInKeIDo.js → separator-ClnL4mUB.js} +1 -1
- package/dist/client/assets/{server-BtEG3NAw.js → server-Bbs3L-6_.js} +1 -1
- package/dist/client/assets/{session-logic-DNf1aXq_.js → session-logic-CKQkgIwo.js} +1 -1
- package/dist/client/assets/settingsDialogStore-SG-W1q0A.js +1 -0
- package/dist/client/assets/{settingsLayout-D22Mm0u3.js → settingsLayout-G5xVm-ZT.js} +1 -1
- package/dist/client/assets/sidebar-_u7SGgmC.js +1 -0
- package/dist/client/assets/sidebarStatusText-BTYnwflG.js +1 -0
- package/dist/client/assets/{skeleton-DWaac_qp.js → skeleton-CmUvhZGP.js} +1 -1
- package/dist/client/assets/{storeSelectors-Cx1IYPA4.js → storeSelectors-DhJRpdiw.js} +1 -1
- package/dist/client/assets/threadSelectionStore-ygmA4DNA.js +1 -0
- package/dist/client/assets/toast-DmA_ziPT.js +1 -0
- package/dist/client/assets/toggle-DGS7tKuj.js +1 -0
- package/dist/client/assets/{toggle-group-CnLjaHSL.js → toggle-group-Dtv1ZUFW.js} +1 -1
- package/dist/client/assets/{tokenModePresentation-BSYdIvBm.js → tokenModePresentation-Dor1DnBx.js} +1 -1
- package/dist/client/assets/{trash-2-BI5xcbsm.js → trash-2-C2G3VGoV.js} +1 -1
- package/dist/client/assets/{triangle-alert-DJef_Uvh.js → triangle-alert-Bpz3xGu5.js} +1 -1
- package/dist/client/assets/{undo-2-DeZ2cMGS.js → undo-2-C3rtxuqZ.js} +1 -1
- package/dist/client/assets/{useHandleNewThread-XB82O6SA.js → useHandleNewThread-ypSbzG0P.js} +1 -1
- package/dist/client/assets/useLabelableId-Bc7KEnHU.js +1 -0
- package/dist/client/assets/{useNavigate-B2tgshhW.js → useNavigate-_4hWGSey.js} +1 -1
- package/dist/client/assets/useTheme-HcKmBfpF.js +1 -0
- package/dist/client/assets/{vscode-icons-DM9qFoEr.js → vscode-icons-DdSTtxYd.js} +1 -1
- package/dist/client/assets/{wrench-je4QOyG-.js → wrench-C4jdis40.js} +1 -1
- package/dist/client/assets/x-CG2WU63t.js +1 -0
- package/dist/client/index.html +1 -1
- package/dist/{collectUint8StreamText-C2z5Y8tF.mjs → collectUint8StreamText-Lv4GGI79.mjs} +269 -14
- package/dist/{collectUint8StreamText-TCG6xW_P.cjs → collectUint8StreamText-uNXVRHOf.cjs} +291 -12
- package/dist/{makeManagedServerProvider-DPFw9gV_.cjs → makeManagedServerProvider-3SD-Q5xh.cjs} +1 -1
- package/dist/{makeManagedServerProvider-BXO8QvzC.mjs → makeManagedServerProvider-CkPEptun.mjs} +1 -1
- package/package.json +1 -1
- package/dist/client/assets/AppearanceSettings-BlsMFBvJ.js +0 -1
- package/dist/client/assets/ChatRightPanel-CThudBb1.js +0 -188
- package/dist/client/assets/CompositeRoot-DjnzUIwC.js +0 -1
- package/dist/client/assets/ConnectionsSettings-hArR4Oe3.js +0 -1
- package/dist/client/assets/DialogTitle-H1yIMmA9.js +0 -1
- package/dist/client/assets/DialogTrigger-BHMq_K2G.js +0 -1
- package/dist/client/assets/McpServersSettings-dQ3BzOWY.js +0 -6
- package/dist/client/assets/ProvidersSettingsPanel-D15EeWAq.js +0 -1
- package/dist/client/assets/RootAppShell-CWBPSA2w.js +0 -12
- package/dist/client/assets/SettingsDialog-oJCE5foT.js +0 -2
- package/dist/client/assets/SourceControlSettings-CPnlMxNm.js +0 -1
- package/dist/client/assets/ThreadWorkspacePanel-qF9y6QT9.js +0 -166
- package/dist/client/assets/composerDraftStore-D12lUSfh.js +0 -21
- package/dist/client/assets/editorPreferences-BLeEBSD_.js +0 -1
- package/dist/client/assets/folder-open-DMjz0lpx.js +0 -1
- package/dist/client/assets/kbd-aeSsjiPI.js +0 -1
- package/dist/client/assets/main-C57RhHZ_.css +0 -2
- package/dist/client/assets/plus-4Oy56d-3.js +0 -1
- package/dist/client/assets/projectAtoms-DUEBb7Zz.js +0 -1
- package/dist/client/assets/providerDriverMeta-Dwi6Zqgd.js +0 -1
- package/dist/client/assets/providerIconUtils-uhWb4bdg.js +0 -47
- package/dist/client/assets/radio-group-DHyQlLeX.js +0 -1
- package/dist/client/assets/settingsDialogStore-BINi7pdD.js +0 -1
- package/dist/client/assets/sidebar-DHwNQmWp.js +0 -1
- package/dist/client/assets/threadSelectionStore-C0ig4405.js +0 -1
- package/dist/client/assets/toast-DE7a4wkW.js +0 -1
- package/dist/client/assets/toggle-BIW4AyPY.js +0 -1
- package/dist/client/assets/useLabelableId-DBAgv9qQ.js +0 -1
- package/dist/client/assets/useTheme-Dv42Z8uy.js +0 -1
- package/dist/client/assets/x-fI9snvD3.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e,t}from"./react-PSPkXoKo.js";import{t as n}from"./compiler-runtime-BNrXlsa1.js";import{Ni as r,Xr as i}from"./composerDraftStore-D12lUSfh.js";var a=i(`folder-closed`,[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}],[`path`,{d:`M2 10h20`,key:`1ir3d8`}]]),o=n(),s=e(t(),1),c=r(),l=(e,t)=>{let n=(0,o.c)(7),r=(0,s.useId)(),i;if(n[0]!==t||n[1]!==r||n[2]!==e){let a;n[4]!==r||n[5]!==e?(a=(t,n)=>`${r}-${e}-${String.fromCharCode(97+n)}`,n[4]=r,n[5]=e,n[6]=a):a=n[6],i=Array.from({length:t},a),n[0]=t,n[1]=r,n[2]=e,n[3]=i}else i=n[3];return i},u=e=>{let t=(0,o.c)(23),[n,r]=l(`aqua`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,c.jsx)(`stop`,{offset:`.25`,stopColor:`#7256FF`}),a=(0,c.jsx)(`stop`,{offset:`.73`,stopColor:`#007DFE`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let s;t[2]===n?s=t[3]:(s=(0,c.jsxs)(`linearGradient`,{id:n,x1:`59.932`,x2:`1.336`,y1:`59.676`,y2:`1.079`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=s);let u,d;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,c.jsx)(`stop`,{offset:`.3`,stopColor:`#00D886`}),d=(0,c.jsx)(`stop`,{offset:`.54`,stopColor:`#7256FF`}),t[4]=u,t[5]=d):(u=t[4],d=t[5]);let f;t[6]===r?f=t[7]:(f=(0,c.jsxs)(`linearGradient`,{id:r,x1:`7.671`,x2:`61.125`,y1:`64.392`,y2:`39.609`,gradientUnits:`userSpaceOnUse`,children:[u,d]}),t[6]=r,t[7]=f);let p;t[8]!==s||t[9]!==f?(p=(0,c.jsxs)(`defs`,{children:[s,f]}),t[8]=s,t[9]=f,t[10]=p):p=t[10];let m=`url(#${n})`,h;t[11]===m?h=t[12]:(h=(0,c.jsx)(`path`,{fill:m,d:`M0 4.125v34.128c0 1.658.993 3.154 2.52 3.8L39.943 57.85c.518.219 1.075.33 1.638.324l18.329-.15A4.125 4.125 0 0 0 64 53.9V36.234c0-.806-.236-1.593-.678-2.267L42.213 1.86A4.13 4.13 0 0 0 38.766 0H4.125A4.125 4.125 0 0 0 0 4.125`}),t[11]=m,t[12]=h);let g=`url(#${r})`,_;t[13]===g?_=t[14]:(_=(0,c.jsx)(`path`,{fill:g,d:`M6 49.015v10.862a4.125 4.125 0 0 0 4.125 4.125h12.566q.3 0 .598-.044l37.185-5.448A4.125 4.125 0 0 0 64 54.429V39.03a4.125 4.125 0 0 0-4.127-4.125l-18.504.005c-.426 0-.849.066-1.254.195L8.871 45.085A4.13 4.13 0 0 0 6 49.015z`}),t[13]=g,t[14]=_);let v,y,b;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,c.jsx)(`path`,{fill:`#00D886`,d:`M6 47.55v12.259a4.125 4.125 0 0 0 4.19 4.124L21 64c1.181-.019 2.531-.786 3.3-1.683l32.707-38.158c.64-.748.993-1.7.993-2.685V10.125A4.125 4.125 0 0 0 53.875 6H42.872c-1.19 0-2.321.514-3.105 1.409L7.021 44.834A4.12 4.12 0 0 0 6 47.55`}),y=(0,c.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),b=(0,c.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM20.746 31.243a7.3 7.3 0 0 1-2.755-2.787q-1.002-1.774-1.003-3.961c0-2.187.334-2.778 1.003-3.96a7.3 7.3 0 0 1 2.755-2.787q1.752-1.013 3.917-1.014c1.443 0 2.739.338 3.907 1.013a7.3 7.3 0 0 1 2.75 2.787q.996 1.774.996 3.961c0 2.187-.332 2.778-.997 3.96a7.3 7.3 0 0 1-2.749 2.788q-1.752 1.013-3.907 1.013c-1.436 0-2.75-.338-3.917-1.013m6.308-2.23q1.06-.67 1.661-1.854.6-1.185.6-2.664t-.6-2.664a4.6 4.6 0 0 0-1.661-1.854q-1.061-.67-2.39-.67t-2.396.67a4.6 4.6 0 0 0-1.672 1.854q-.605 1.185-.605 2.664t.605 2.664 1.672 1.854q1.067.67 2.396.67 1.33 0 2.39-.67m-2.16 6.034a2.67 2.67 0 0 1-1.126-1.077q-.391-.696-.391-1.64l-.01-1.94h2.743v1.811q0 .332.129.573.128.242.37.365.24.123.574.123h1.833v2.165h-2.412q-.975 0-1.71-.38M38.233 16.992h3.173l5.563 15.006h-2.947l-1.212-3.483h-5.842l-1.136 3.483H32.82zm3.805 9.261-2.025-5.723-.225-.954-.215.954-1.908 5.723z`}),t[15]=v,t[16]=y,t[17]=b):(v=t[15],y=t[16],b=t[17]);let x;return t[18]!==e||t[19]!==_||t[20]!==p||t[21]!==h?(x=(0,c.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[p,h,_,v,y,b]}),t[18]=e,t[19]=_,t[20]=p,t[21]=h,t[22]=x):x=t[22],x},d=e=>{let t=(0,o.c)(23),[n,r]=l(`clion`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,c.jsx)(`stop`,{offset:`.29`,stopColor:`#009AE5`}),a=(0,c.jsx)(`stop`,{offset:`.7`,stopColor:`#00D980`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let s;t[2]===n?s=t[3]:(s=(0,c.jsxs)(`linearGradient`,{id:n,x1:`4.067`,x2:`62.664`,y1:`4.327`,y2:`62.923`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=s);let u,d;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,c.jsx)(`stop`,{offset:`.3`,stopColor:`#FF2D90`}),d=(0,c.jsx)(`stop`,{offset:`.54`,stopColor:`#009AE5`}),t[4]=u,t[5]=d):(u=t[4],d=t[5]);let f;t[6]===r?f=t[7]:(f=(0,c.jsxs)(`linearGradient`,{id:r,x1:`56.329`,x2:`2.874`,y1:`-.391`,y2:`24.393`,gradientUnits:`userSpaceOnUse`,children:[u,d]}),t[6]=r,t[7]=f);let p;t[8]!==s||t[9]!==f?(p=(0,c.jsxs)(`defs`,{children:[s,f]}),t[8]=s,t[9]=f,t[10]=p):p=t[10];let m=`url(#${n})`,h;t[11]===m?h=t[12]:(h=(0,c.jsx)(`path`,{fill:m,d:`M64 59.878V25.75a4.13 4.13 0 0 0-2.52-3.8L24.057 6.153a4.1 4.1 0 0 0-1.638-.325l-18.329.15A4.124 4.124 0 0 0 0 10.103v17.665c0 .806.236 1.593.678 2.267l21.109 32.109a4.12 4.12 0 0 0 3.447 1.859h34.641A4.125 4.125 0 0 0 64 59.878`}),t[11]=m,t[12]=h);let g=`url(#${r})`,_;t[13]===g?_=t[14]:(_=(0,c.jsx)(`path`,{fill:g,d:`M58 14.988V4.125A4.125 4.125 0 0 0 53.875 0H41.309q-.3 0-.598.044L3.527 5.492A4.125 4.125 0 0 0 0 9.573v15.398a4.125 4.125 0 0 0 4.126 4.125l18.505-.005c.425 0 .848-.066 1.253-.195l31.246-9.98A4.13 4.13 0 0 0 58 14.988`}),t[13]=g,t[14]=_);let v,y,b;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,c.jsx)(`path`,{fill:`#FF2D90`,d:`M58 16.453V4.194A4.125 4.125 0 0 0 53.81.07L43.003.008c-1.18.019-2.535.781-3.304 1.678L6.993 39.844c-.64.748-.993 1.7-.993 2.684v11.35a4.125 4.125 0 0 0 4.125 4.125h11.003c1.19 0 2.321-.514 3.105-1.409L56.979 19.17A4.12 4.12 0 0 0 58 16.453`}),y=(0,c.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),b=(0,c.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM20.747 31.243a7.3 7.3 0 0 1-2.744-2.787q-.997-1.774-.997-3.961c0-2.187.332-2.778.997-3.96a7.3 7.3 0 0 1 2.744-2.787q1.747-1.013 3.901-1.014 1.823 0 3.345.675a6.86 6.86 0 0 1 2.535 1.892 6.44 6.44 0 0 1 1.355 2.793h-3.065a4.05 4.05 0 0 0-.895-1.431 4 4 0 0 0-1.431-.95 4.9 4.9 0 0 0-1.822-.332q-1.33 0-2.402.665a4.6 4.6 0 0 0-1.677 1.827q-.606 1.164-.606 2.62 0 1.459.606 2.621a4.6 4.6 0 0 0 1.677 1.828q1.072.664 2.402.664a4.9 4.9 0 0 0 1.822-.332 4.02 4.02 0 0 0 2.326-2.38h3.065a6.44 6.44 0 0 1-1.355 2.792 6.86 6.86 0 0 1-2.535 1.892q-1.522.675-3.345.675-2.154 0-3.901-1.013zM37.33 16.992v12.37h7.117v2.636H34.414V16.992z`}),t[15]=v,t[16]=y,t[17]=b):(v=t[15],y=t[16],b=t[17]);let x;return t[18]!==e||t[19]!==_||t[20]!==p||t[21]!==h?(x=(0,c.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[p,h,_,v,y,b]}),t[18]=e,t[19]=_,t[20]=p,t[21]=h,t[22]=x):x=t[22],x},f=e=>{let t=(0,o.c)(23),[n,r]=l(`datagrip`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,c.jsx)(`stop`,{offset:`.28`,stopColor:`#7256FF`}),a=(0,c.jsx)(`stop`,{offset:`.66`,stopColor:`#00D980`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let s;t[2]===n?s=t[3]:(s=(0,c.jsxs)(`linearGradient`,{id:n,x1:`59.676`,x2:`1.08`,y1:`4.067`,y2:`62.663`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=s);let u,d;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,c.jsx)(`stop`,{offset:`.3`,stopColor:`#FF43F2`}),d=(0,c.jsx)(`stop`,{offset:`.54`,stopColor:`#7256FF`}),t[4]=u,t[5]=d):(u=t[4],d=t[5]);let f;t[6]===r?f=t[7]:(f=(0,c.jsxs)(`linearGradient`,{id:r,x1:`64.391`,x2:`39.607`,y1:`56.329`,y2:`2.874`,gradientUnits:`userSpaceOnUse`,children:[u,d]}),t[6]=r,t[7]=f);let p;t[8]!==s||t[9]!==f?(p=(0,c.jsxs)(`defs`,{children:[s,f]}),t[8]=s,t[9]=f,t[10]=p):p=t[10];let m=`url(#${n})`,h;t[11]===m?h=t[12]:(h=(0,c.jsx)(`path`,{fill:m,d:`M4.125 64h34.128a4.13 4.13 0 0 0 3.8-2.52L57.85 24.057c.219-.518.33-1.076.324-1.638l-.15-18.329A4.125 4.125 0 0 0 53.9 0H36.234c-.806 0-1.593.236-2.267.678L1.86 21.787A4.13 4.13 0 0 0 0 25.234v34.641A4.125 4.125 0 0 0 4.125 64`}),t[11]=m,t[12]=h);let g=`url(#${r})`,_;t[13]===g?_=t[14]:(_=(0,c.jsx)(`path`,{fill:g,d:`M49.013 58h10.862A4.125 4.125 0 0 0 64 53.875V41.309q0-.3-.044-.598L58.508 3.527A4.125 4.125 0 0 0 54.427 0H39.029a4.125 4.125 0 0 0-4.125 4.126l.005 18.505c0 .425.066.848.195 1.253l9.979 31.246a4.13 4.13 0 0 0 3.93 2.87`}),t[13]=g,t[14]=_);let v,y,b;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,c.jsx)(`path`,{fill:`#FF43F2`,d:`M47.55 58h12.259a4.125 4.125 0 0 0 4.124-4.19L64 43c-.018-1.181-.785-2.531-1.682-3.3L24.159 6.993A4.13 4.13 0 0 0 21.474 6H10.125A4.125 4.125 0 0 0 6 10.125v11.003c0 1.19.514 2.321 1.409 3.105l37.425 32.746A4.12 4.12 0 0 0 47.55 58`}),y=(0,c.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),b=(0,c.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM17.012 16.992h5.713q2.133 0 3.821.965a6.9 6.9 0 0 1 2.642 2.674q.954 1.71.954 3.864t-.954 3.865a6.9 6.9 0 0 1-2.642 2.674q-1.688.964-3.821.964h-5.713zm8.028 11.876q1.008-.6 1.554-1.72.547-1.12.547-2.653 0-1.534-.547-2.653-.546-1.12-1.554-1.721-1.008-.6-2.348-.6h-2.755v9.947h2.755q1.34 0 2.348-.6M35.426 31.243a7.3 7.3 0 0 1-2.744-2.787q-.997-1.774-.997-3.961c0-2.187.333-2.778.997-3.96s1.58-2.112 2.744-2.787q1.747-1.013 3.902-1.014 1.746 0 3.221.622a6.9 6.9 0 0 1 2.487 1.747 6.36 6.36 0 0 1 1.42 2.594h-3.13a3.9 3.9 0 0 0-.927-1.228q-.585-.52-1.367-.803c-.782-.283-1.082-.284-1.683-.284q-1.329 0-2.401.664a4.6 4.6 0 0 0-1.678 1.828q-.605 1.163-.605 2.62c0 1.457.202 1.846.605 2.621a4.6 4.6 0 0 0 1.678 1.828q1.072.664 2.401.664 1.233 0 2.235-.461t1.592-1.276a3.3 3.3 0 0 0 .633-1.833l.01.31h-3.526v-2.304h6.356v1.18q0 1.982-.96 3.585a6.9 6.9 0 0 1-2.625 2.525q-1.668.921-3.736.921c-1.38 0-2.737-.337-3.902-1.013z`}),t[15]=v,t[16]=y,t[17]=b):(v=t[15],y=t[16],b=t[17]);let x;return t[18]!==e||t[19]!==_||t[20]!==p||t[21]!==h?(x=(0,c.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[p,h,_,v,y,b]}),t[18]=e,t[19]=_,t[20]=p,t[21]=h,t[22]=x):x=t[22],x},p=e=>{let t=(0,o.c)(23),[n,r]=l(`dataspell`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,c.jsx)(`stop`,{offset:`.28`,stopColor:`#007DFE`}),a=(0,c.jsx)(`stop`,{offset:`.73`,stopColor:`#00D980`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let s;t[2]===n?s=t[3]:(s=(0,c.jsxs)(`linearGradient`,{id:n,x1:`4.067`,x2:`62.664`,y1:`4.327`,y2:`62.923`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=s);let u,d;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,c.jsx)(`stop`,{offset:`.32`,stopColor:`#F0EB18`}),d=(0,c.jsx)(`stop`,{offset:`.55`,stopColor:`#007DFE`}),t[4]=u,t[5]=d):(u=t[4],d=t[5]);let f;t[6]===r?f=t[7]:(f=(0,c.jsxs)(`linearGradient`,{id:r,x1:`56.329`,x2:`2.875`,y1:`-.391`,y2:`24.392`,gradientUnits:`userSpaceOnUse`,children:[u,d]}),t[6]=r,t[7]=f);let p;t[8]!==s||t[9]!==f?(p=(0,c.jsxs)(`defs`,{children:[s,f]}),t[8]=s,t[9]=f,t[10]=p):p=t[10];let m=`url(#${n})`,h;t[11]===m?h=t[12]:(h=(0,c.jsx)(`path`,{fill:m,d:`M64 59.878V25.75a4.13 4.13 0 0 0-2.52-3.8L24.057 6.153a4.1 4.1 0 0 0-1.638-.325l-18.329.15A4.124 4.124 0 0 0 0 10.103v17.665c0 .806.236 1.593.678 2.267l21.109 32.109a4.12 4.12 0 0 0 3.447 1.859h34.641A4.125 4.125 0 0 0 64 59.878`}),t[11]=m,t[12]=h);let g=`url(#${r})`,_;t[13]===g?_=t[14]:(_=(0,c.jsx)(`path`,{fill:g,d:`M58 14.988V4.125A4.125 4.125 0 0 0 53.875 0H41.309q-.3 0-.598.044L3.527 5.492A4.125 4.125 0 0 0 0 9.573v15.398a4.125 4.125 0 0 0 4.126 4.125l18.505-.005c.425 0 .848-.066 1.253-.195l31.246-9.98A4.13 4.13 0 0 0 58 14.988`}),t[13]=g,t[14]=_);let v,y,b;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,c.jsx)(`path`,{fill:`#F0EB18`,d:`M58 16.45V4.191A4.125 4.125 0 0 0 53.81.067L43 0c-1.181.019-2.531.786-3.3 1.683L6.993 39.84c-.64.748-.993 1.7-.993 2.685v11.349A4.125 4.125 0 0 0 10.125 58h11.003c1.19 0 2.321-.514 3.105-1.409l32.746-37.425A4.12 4.12 0 0 0 58 16.45`}),y=(0,c.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),b=(0,c.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM17.012 16.992h5.713q2.133 0 3.821.965a6.9 6.9 0 0 1 2.642 2.674q.954 1.71.954 3.864t-.954 3.865a6.9 6.9 0 0 1-2.642 2.674q-1.688.964-3.821.964h-5.713zm8.028 11.876q1.008-.6 1.554-1.72.547-1.12.547-2.653 0-1.534-.547-2.653-.546-1.12-1.554-1.721-1.008-.6-2.348-.6h-2.755v9.947h2.755q1.34 0 2.348-.6M34.713 31.664q-1.26-.59-1.973-1.65t-.734-2.444h2.937q0 .654.343 1.147t.954.772q.61.278 1.404.278c.53 0 .952-.083 1.334-.251q.574-.252.89-.702t.316-1.029q0-.718-.434-1.19-.435-.471-1.195-.654l-2.648-.59q-1.071-.234-1.865-.809a4 4 0 0 1-1.232-1.42q-.44-.846-.44-1.908 0-1.286.665-2.31.664-1.023 1.854-1.597 1.19-.573 2.701-.573c1.511 0 1.933.186 2.733.558s1.424.888 1.871 1.549q.67.99.68 2.277h-2.926q0-.546-.289-.98c-.289-.435-.466-.515-.82-.676a2.9 2.9 0 0 0-1.217-.24q-.686 0-1.205.23a1.9 1.9 0 0 0-.81.643q-.29.412-.29.96 0 .621.403 1.028.402.407 1.098.579l2.552.557q1.103.226 1.967.852a4.45 4.45 0 0 1 1.345 1.544q.481.917.482 1.999 0 1.329-.702 2.385-.702 1.054-1.967 1.656-1.265.6-2.894.6t-2.889-.59`}),t[15]=v,t[16]=y,t[17]=b):(v=t[15],y=t[16],b=t[17]);let x;return t[18]!==e||t[19]!==_||t[20]!==p||t[21]!==h?(x=(0,c.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[p,h,_,v,y,b]}),t[18]=e,t[19]=_,t[20]=p,t[21]=h,t[22]=x):x=t[22],x},m=e=>{let t=(0,o.c)(23),[n,r]=l(`goland`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,c.jsx)(`stop`,{offset:`.24`,stopColor:`#00D886`}),a=(0,c.jsx)(`stop`,{offset:`.51`,stopColor:`#007DFE`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let s;t[2]===n?s=t[3]:(s=(0,c.jsxs)(`linearGradient`,{id:n,x1:`64.391`,x2:`39.607`,y1:`56.329`,y2:`2.874`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=s);let u,d;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,c.jsx)(`stop`,{offset:`.27`,stopColor:`#007DFE`}),d=(0,c.jsx)(`stop`,{offset:`.7`,stopColor:`#D249FC`}),t[4]=u,t[5]=d):(u=t[4],d=t[5]);let f;t[6]===r?f=t[7]:(f=(0,c.jsxs)(`linearGradient`,{id:r,x1:`59.676`,x2:`1.08`,y1:`4.067`,y2:`62.663`,gradientUnits:`userSpaceOnUse`,children:[u,d]}),t[6]=r,t[7]=f);let p;t[8]!==s||t[9]!==f?(p=(0,c.jsxs)(`defs`,{children:[s,f]}),t[8]=s,t[9]=f,t[10]=p):p=t[10];let m;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,c.jsx)(`path`,{fill:`#00D886`,d:`M47.55 58h12.259a4.125 4.125 0 0 0 4.124-4.19l-.176-11.044a4.13 4.13 0 0 0-1.44-3.066L24.159 6.993A4.13 4.13 0 0 0 21.474 6H10.125A4.125 4.125 0 0 0 6 10.125v11.003c0 1.19.514 2.321 1.409 3.105l37.425 32.746A4.12 4.12 0 0 0 47.55 58`}),t[11]=m):m=t[11];let h=`url(#${n})`,g;t[12]===h?g=t[13]:(g=(0,c.jsx)(`path`,{fill:h,d:`M49.013 58h10.862A4.125 4.125 0 0 0 64 53.875V41.309q0-.3-.044-.598L58.508 3.527A4.124 4.124 0 0 0 54.427 0H39.029a4.125 4.125 0 0 0-4.125 4.126l.005 18.505c0 .425.066.848.195 1.253l9.979 31.246a4.13 4.13 0 0 0 3.93 2.87`}),t[12]=h,t[13]=g);let _=`url(#${r})`,v;t[14]===_?v=t[15]:(v=(0,c.jsx)(`path`,{fill:_,d:`M4.125 64h34.128a4.13 4.13 0 0 0 3.8-2.52L57.85 24.057c.219-.518.33-1.076.324-1.638l-.15-18.329A4.124 4.124 0 0 0 53.9 0H36.234c-.805 0-1.593.236-2.266.678L1.86 21.787A4.13 4.13 0 0 0 0 25.234v34.641A4.125 4.125 0 0 0 4.125 64`}),t[14]=_,t[15]=v);let y,b;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,c.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),b=(0,c.jsx)(`path`,{fill:`#fff`,d:`M19.748 31.243a7.3 7.3 0 0 1-2.743-2.787q-.997-1.774-.997-3.961c0-2.187.332-2.778.997-3.96s1.58-2.112 2.743-2.787q1.747-1.013 3.902-1.014 1.747 0 3.222.622a6.9 6.9 0 0 1 2.486 1.747 6.4 6.4 0 0 1 1.42 2.594h-3.13a3.9 3.9 0 0 0-.926-1.228q-.584-.52-1.367-.803c-.783-.283-1.083-.284-1.683-.284q-1.33 0-2.402.664a4.6 4.6 0 0 0-1.677 1.828q-.606 1.163-.606 2.62c0 1.457.202 1.846.606 2.621a4.6 4.6 0 0 0 1.677 1.828q1.072.664 2.402.664 1.232 0 2.235-.461t1.591-1.276a3.3 3.3 0 0 0 .633-1.833l.01.31h-3.526v-2.304h6.357v1.18q0 1.982-.96 3.585a6.9 6.9 0 0 1-2.626 2.525q-1.666.921-3.736.921c-2.07 0-2.737-.337-3.902-1.013zM36.271 31.243a7.3 7.3 0 0 1-2.755-2.787q-1.002-1.774-1.002-3.961c0-2.187.333-2.778 1.002-3.96a7.3 7.3 0 0 1 2.755-2.787q1.752-1.013 3.918-1.014c1.443 0 2.738.338 3.907 1.013a7.3 7.3 0 0 1 2.749 2.787q.996 1.774.997 3.961c0 2.187-.333 2.778-.997 3.96s-1.581 2.113-2.75 2.788q-1.752 1.013-3.906 1.013c-1.437 0-2.75-.338-3.918-1.013m6.308-2.23q1.062-.67 1.662-1.854t.6-2.664-.6-2.664-1.662-1.854-2.39-.67-2.395.67a4.6 4.6 0 0 0-1.672 1.854q-.606 1.185-.606 2.664t.606 2.664 1.672 1.854 2.395.67q1.33 0 2.39-.67M33 44H17v3h16z`}),t[16]=y,t[17]=b):(y=t[16],b=t[17]);let x;return t[18]!==e||t[19]!==v||t[20]!==p||t[21]!==g?(x=(0,c.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[p,m,g,v,y,b]}),t[18]=e,t[19]=v,t[20]=p,t[21]=g,t[22]=x):x=t[22],x},h=e=>{let t=(0,o.c)(23),[n,r]=l(`intellij-idea`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,c.jsx)(`stop`,{offset:`.1`,stopColor:`#FC801D`}),a=(0,c.jsx)(`stop`,{offset:`.59`,stopColor:`#FE2857`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let s;t[2]===n?s=t[3]:(s=(0,c.jsxs)(`linearGradient`,{id:n,x1:`-.391`,x2:`24.392`,y1:`7.671`,y2:`61.126`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=s);let u,d;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,c.jsx)(`stop`,{offset:`.21`,stopColor:`#FE2857`}),d=(0,c.jsx)(`stop`,{offset:`.7`,stopColor:`#007EFF`}),t[4]=u,t[5]=d):(u=t[4],d=t[5]);let f;t[6]===r?f=t[7]:(f=(0,c.jsxs)(`linearGradient`,{id:r,x1:`4.325`,x2:`62.921`,y1:`59.932`,y2:`1.336`,gradientUnits:`userSpaceOnUse`,children:[u,d]}),t[6]=r,t[7]=f);let p;t[8]!==s||t[9]!==f?(p=(0,c.jsxs)(`defs`,{children:[s,f]}),t[8]=s,t[9]=f,t[10]=p):p=t[10];let m;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,c.jsx)(`path`,{fill:`#FF8100`,d:`M16.45 6H4.191a4.125 4.125 0 0 0-4.124 4.19l.176 11.044a4.13 4.13 0 0 0 1.44 3.066l38.159 32.707c.747.64 1.7.993 2.684.993h11.35A4.125 4.125 0 0 0 58 53.875V42.872c0-1.19-.514-2.321-1.41-3.105L19.167 7.021A4.12 4.12 0 0 0 16.45 6`}),t[11]=m):m=t[11];let h=`url(#${n})`,g;t[12]===h?g=t[13]:(g=(0,c.jsx)(`path`,{fill:h,d:`M14.988 6H4.125A4.125 4.125 0 0 0 0 10.125v12.566q0 .3.044.598l5.448 37.185A4.125 4.125 0 0 0 9.573 64h15.398a4.125 4.125 0 0 0 4.125-4.127L29.09 41.37c0-.426-.066-.849-.195-1.254l-9.98-31.245A4.13 4.13 0 0 0 14.988 6z`}),t[12]=h,t[13]=g);let _=`url(#${r})`,v;t[14]===_?v=t[15]:(v=(0,c.jsx)(`path`,{fill:_,d:`M59.876 0H25.748a4.13 4.13 0 0 0-3.8 2.52L6.151 39.943a4.1 4.1 0 0 0-.325 1.638l.15 18.329A4.125 4.125 0 0 0 10.101 64h17.666c.806 0 1.593-.236 2.266-.678l32.11-21.109A4.12 4.12 0 0 0 64 38.766V4.125A4.125 4.125 0 0 0 59.876 0`}),t[14]=_,t[15]=v);let y,b;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,c.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),b=(0,c.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM17 29.383h2.98v-9.775H17v-2.616h8.843v2.616h-2.98v9.775h2.98V32H17zM27.643 29.298h2.154a2.4 2.4 0 0 0 1.163-.279q.51-.279.788-.788.279-.51.279-1.163V16.992h2.926v10.28q0 1.35-.622 2.427a4.45 4.45 0 0 1-1.715 1.688q-1.092.612-2.454.611h-2.519z`}),t[16]=y,t[17]=b):(y=t[16],b=t[17]);let x;return t[18]!==e||t[19]!==v||t[20]!==p||t[21]!==g?(x=(0,c.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[p,m,g,v,y,b]}),t[18]=e,t[19]=v,t[20]=p,t[21]=g,t[22]=x):x=t[22],x},g=e=>{let t=(0,o.c)(23),[n,r]=l(`phpstorm`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,c.jsx)(`stop`,{offset:`.16`,stopColor:`#D249FC`}),a=(0,c.jsx)(`stop`,{offset:`.55`,stopColor:`#FF2D90`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let s;t[2]===n?s=t[3]:(s=(0,c.jsxs)(`linearGradient`,{id:n,x1:`56.329`,x2:`2.874`,y1:`-.391`,y2:`24.392`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=s);let u,d;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,c.jsx)(`stop`,{offset:`.3`,stopColor:`#FF2D90`}),d=(0,c.jsx)(`stop`,{offset:`.7`,stopColor:`#7256FF`}),t[4]=u,t[5]=d):(u=t[4],d=t[5]);let f;t[6]===r?f=t[7]:(f=(0,c.jsxs)(`linearGradient`,{id:r,x1:`4.067`,x2:`62.664`,y1:`4.326`,y2:`62.923`,gradientUnits:`userSpaceOnUse`,children:[u,d]}),t[6]=r,t[7]=f);let p;t[8]!==s||t[9]!==f?(p=(0,c.jsxs)(`defs`,{children:[s,f]}),t[8]=s,t[9]=f,t[10]=p):p=t[10];let m;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,c.jsx)(`path`,{fill:`#D249FC`,d:`M58 16.446V4.187A4.125 4.125 0 0 0 53.81.063L42.765.239A4.13 4.13 0 0 0 39.7 1.68L6.993 39.837c-.64.748-.993 1.7-.993 2.685v11.35a4.125 4.125 0 0 0 4.125 4.124h11.003c1.19 0 2.321-.514 3.105-1.409l32.746-37.425A4.12 4.12 0 0 0 58 16.446`}),t[11]=m):m=t[11];let h=`url(#${n})`,g;t[12]===h?g=t[13]:(g=(0,c.jsx)(`path`,{fill:h,d:`M58 14.988V4.125A4.125 4.125 0 0 0 53.875 0H41.309q-.3 0-.598.044L3.527 5.492A4.125 4.125 0 0 0 0 9.573v15.398a4.125 4.125 0 0 0 4.126 4.125l18.505-.005c.425 0 .848-.066 1.253-.195l31.246-9.98A4.13 4.13 0 0 0 58 14.988`}),t[12]=h,t[13]=g);let _=`url(#${r})`,v;t[14]===_?v=t[15]:(v=(0,c.jsx)(`path`,{fill:_,d:`M64 59.878V25.75a4.13 4.13 0 0 0-2.52-3.8L24.057 6.153a4.1 4.1 0 0 0-1.638-.325l-18.329.15A4.124 4.124 0 0 0 0 10.103v17.665c0 .806.236 1.593.678 2.267l21.109 32.109a4.12 4.12 0 0 0 3.447 1.859h34.641A4.125 4.125 0 0 0 64 59.878`}),t[14]=_,t[15]=v);let y,b;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,c.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),b=(0,c.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM16.993 16.992h6.442q1.586 0 2.78.579 1.196.579 1.845 1.63.648 1.05.648 2.432c0 .922-.22 1.759-.659 2.466q-.66 1.062-1.87 1.646-1.212.584-2.83.584h-3.43V32h-2.927zm7.54 6.63q.553-.273.852-.782.3-.51.3-1.195c0-.685-.1-.842-.3-1.174q-.3-.5-.852-.772-.552-.273-1.291-.273h-3.323v4.47h3.323q.74 0 1.291-.273M32.572 31.664q-1.26-.59-1.972-1.65t-.735-2.444h2.937q0 .654.343 1.147t.954.772q.611.278 1.404.278c.53 0 .952-.083 1.335-.251q.572-.252.89-.702c.317-.45.315-.643.315-1.029q0-.718-.434-1.19-.435-.471-1.195-.654l-2.647-.59q-1.073-.234-1.866-.809a4 4 0 0 1-1.232-1.42q-.44-.846-.44-1.908 0-1.286.665-2.31.665-1.023 1.854-1.597 1.19-.573 2.702-.573c1.512 0 1.933.186 2.733.558q1.2.558 1.87 1.549t.681 2.277h-2.926q0-.546-.29-.98a1.9 1.9 0 0 0-.82-.676 2.9 2.9 0 0 0-1.216-.24q-.687 0-1.206.23a1.9 1.9 0 0 0-.81.643q-.29.412-.289.96 0 .621.402 1.028t1.099.579l2.551.557q1.104.226 1.967.852a4.45 4.45 0 0 1 1.345 1.544q.482.917.482 1.999 0 1.329-.701 2.385-.703 1.054-1.967 1.656-1.264.6-2.895.6-1.63 0-2.888-.59`}),t[16]=y,t[17]=b):(y=t[16],b=t[17]);let x;return t[18]!==e||t[19]!==v||t[20]!==p||t[21]!==g?(x=(0,c.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[p,m,g,v,y,b]}),t[18]=e,t[19]=v,t[20]=p,t[21]=g,t[22]=x):x=t[22],x},_=e=>{let t=(0,o.c)(23),[n,r]=l(`pycharm`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,c.jsx)(`stop`,{offset:`.1`,stopColor:`#00D886`}),a=(0,c.jsx)(`stop`,{offset:`.59`,stopColor:`#F0EB18`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let s;t[2]===n?s=t[3]:(s=(0,c.jsxs)(`linearGradient`,{id:n,x1:`7.671`,x2:`61.126`,y1:`64.393`,y2:`39.609`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=s);let u,d;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,c.jsx)(`stop`,{offset:`.3`,stopColor:`#F0EB18`}),d=(0,c.jsx)(`stop`,{offset:`.7`,stopColor:`#00C4F4`}),t[4]=u,t[5]=d):(u=t[4],d=t[5]);let f;t[6]===r?f=t[7]:(f=(0,c.jsxs)(`linearGradient`,{id:r,x1:`59.933`,x2:`1.337`,y1:`59.676`,y2:`1.08`,gradientUnits:`userSpaceOnUse`,children:[u,d]}),t[6]=r,t[7]=f);let p;t[8]!==s||t[9]!==f?(p=(0,c.jsxs)(`defs`,{children:[s,f]}),t[8]=s,t[9]=f,t[10]=p):p=t[10];let m;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,c.jsx)(`path`,{fill:`#00D886`,d:`M6 47.55v12.259a4.125 4.125 0 0 0 4.19 4.124l11.044-.176a4.13 4.13 0 0 0 3.066-1.44l32.707-38.158c.64-.748.993-1.7.993-2.685V10.125A4.125 4.125 0 0 0 53.875 6H42.872c-1.19 0-2.321.514-3.105 1.409L7.021 44.834A4.12 4.12 0 0 0 6 47.55`}),t[11]=m):m=t[11];let h=`url(#${n})`,g;t[12]===h?g=t[13]:(g=(0,c.jsx)(`path`,{fill:h,d:`M6 49.015v10.862a4.125 4.125 0 0 0 4.125 4.125h12.566q.3 0 .598-.044l37.185-5.448A4.125 4.125 0 0 0 64 54.429V39.03a4.125 4.125 0 0 0-4.127-4.125l-18.504.005c-.426 0-.849.066-1.254.195L8.871 45.085A4.13 4.13 0 0 0 6 49.015z`}),t[12]=h,t[13]=g);let _=`url(#${r})`,v;t[14]===_?v=t[15]:(v=(0,c.jsx)(`path`,{fill:_,d:`M0 4.125v34.128c0 1.658.993 3.154 2.52 3.8L39.943 57.85c.518.219 1.075.33 1.638.324l18.329-.15A4.125 4.125 0 0 0 64 53.9V36.234c0-.806-.236-1.593-.678-2.267L42.213 1.86A4.13 4.13 0 0 0 38.766 0H4.125A4.125 4.125 0 0 0 0 4.125`}),t[14]=_,t[15]=v);let y,b;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,c.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),b=(0,c.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM16.993 16.992h6.442q1.586 0 2.78.579 1.196.579 1.845 1.63.648 1.05.648 2.432c0 .922-.22 1.759-.659 2.466q-.66 1.062-1.87 1.646-1.212.584-2.83.584h-3.43V32h-2.927zm7.54 6.63q.553-.273.852-.782.3-.51.3-1.195c0-.685-.1-.842-.3-1.174q-.3-.5-.852-.772-.552-.273-1.291-.273h-3.324v4.47h3.324q.74 0 1.291-.273M33.713 31.243a7.3 7.3 0 0 1-2.744-2.787q-.996-1.774-.996-3.961c0-2.187.332-2.778.996-3.96a7.3 7.3 0 0 1 2.744-2.787q1.748-1.013 3.902-1.014 1.823 0 3.344.675a6.86 6.86 0 0 1 2.535 1.892 6.44 6.44 0 0 1 1.356 2.793h-3.066a4.05 4.05 0 0 0-.895-1.431 4 4 0 0 0-1.43-.95 4.9 4.9 0 0 0-1.823-.332q-1.33 0-2.402.665a4.6 4.6 0 0 0-1.677 1.827q-.606 1.164-.606 2.62 0 1.459.606 2.621a4.6 4.6 0 0 0 1.677 1.828q1.072.664 2.402.664.986 0 1.822-.332a4.02 4.02 0 0 0 2.326-2.38h3.066a6.44 6.44 0 0 1-1.356 2.792 6.86 6.86 0 0 1-2.535 1.892q-1.522.675-3.344.675-2.154 0-3.902-1.013z`}),t[16]=y,t[17]=b):(y=t[16],b=t[17]);let x;return t[18]!==e||t[19]!==v||t[20]!==p||t[21]!==g?(x=(0,c.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[p,m,g,v,y,b]}),t[18]=e,t[19]=v,t[20]=p,t[21]=g,t[22]=x):x=t[22],x},v=e=>{let t=(0,o.c)(23),[n,r]=l(`rider`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,c.jsx)(`stop`,{offset:`.21`,stopColor:`#007DFE`}),a=(0,c.jsx)(`stop`,{offset:`.55`,stopColor:`#FFB700`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let s;t[2]===n?s=t[3]:(s=(0,c.jsxs)(`linearGradient`,{id:n,x1:`64.391`,x2:`39.607`,y1:`56.329`,y2:`2.874`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=s);let u,d;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,c.jsx)(`stop`,{offset:`.23`,stopColor:`#FFB700`}),d=(0,c.jsx)(`stop`,{offset:`.73`,stopColor:`#FF0A67`}),t[4]=u,t[5]=d):(u=t[4],d=t[5]);let f;t[6]===r?f=t[7]:(f=(0,c.jsxs)(`linearGradient`,{id:r,x1:`59.676`,x2:`1.08`,y1:`4.067`,y2:`62.663`,gradientUnits:`userSpaceOnUse`,children:[u,d]}),t[6]=r,t[7]=f);let p;t[8]!==s||t[9]!==f?(p=(0,c.jsxs)(`defs`,{children:[s,f]}),t[8]=s,t[9]=f,t[10]=p):p=t[10];let m;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,c.jsx)(`path`,{fill:`#007DFE`,d:`M47.55 58h12.258a4.125 4.125 0 0 0 4.124-4.19l-.176-11.044a4.12 4.12 0 0 0-1.44-3.066L24.158 6.993A4.13 4.13 0 0 0 21.474 6H10.125A4.125 4.125 0 0 0 6 10.125v11.003c0 1.19.514 2.321 1.409 3.105l37.425 32.746A4.12 4.12 0 0 0 47.55 58`}),t[11]=m):m=t[11];let h=`url(#${n})`,g;t[12]===h?g=t[13]:(g=(0,c.jsx)(`path`,{fill:h,d:`M49.013 58h10.862A4.125 4.125 0 0 0 64 53.875V41.309q0-.3-.044-.598L58.508 3.527A4.125 4.125 0 0 0 54.427 0H39.029a4.125 4.125 0 0 0-4.125 4.126l.005 18.505c0 .425.066.848.195 1.253l9.979 31.246a4.13 4.13 0 0 0 3.93 2.87`}),t[12]=h,t[13]=g);let _=`url(#${r})`,v;t[14]===_?v=t[15]:(v=(0,c.jsx)(`path`,{fill:_,d:`M4.125 64h34.128a4.13 4.13 0 0 0 3.8-2.52L57.85 24.057c.219-.518.33-1.076.324-1.638l-.15-18.329A4.124 4.124 0 0 0 53.9 0H36.234c-.805 0-1.593.236-2.266.678L1.86 21.787A4.13 4.13 0 0 0 0 25.234v34.641A4.125 4.125 0 0 0 4.125 64`}),t[14]=_,t[15]=v);let y,b;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,c.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),b=(0,c.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM16.992 16.992h6.442q1.576 0 2.776.579t1.85 1.63.648 2.432c0 .922-.22 1.75-.66 2.46q-.66 1.068-1.875 1.651-1.217.584-2.825.584h-3.43v5.67h-2.926zm7.54 6.63q.553-.274.853-.783.3-.51.3-1.184c0-.45-.1-.852-.3-1.185q-.3-.498-.852-.772-.552-.273-1.292-.273h-3.323v4.47h3.323q.74 0 1.292-.273m-2.63 1.763h3.194L29.03 32h-3.355zM31.613 16.992h5.713q2.133 0 3.822.965a6.9 6.9 0 0 1 2.641 2.674q.954 1.71.954 3.864t-.953 3.865a6.9 6.9 0 0 1-2.642 2.674q-1.688.964-3.822.964h-5.713zm8.028 11.876q1.008-.6 1.555-1.72t.547-2.653q0-1.534-.547-2.653-.547-1.12-1.555-1.721-1.008-.6-2.347-.6h-2.755v9.947h2.755q1.34 0 2.347-.6`}),t[16]=y,t[17]=b):(y=t[16],b=t[17]);let x;return t[18]!==e||t[19]!==v||t[20]!==p||t[21]!==g?(x=(0,c.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[p,m,g,v,y,b]}),t[18]=e,t[19]=v,t[20]=p,t[21]=g,t[22]=x):x=t[22],x},y=e=>{let t=(0,o.c)(23),[n,r]=l(`rubymine`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,c.jsx)(`stop`,{offset:`.29`,stopColor:`#FF2358`}),a=(0,c.jsx)(`stop`,{offset:`.75`,stopColor:`#7256FF`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let s;t[2]===n?s=t[3]:(s=(0,c.jsxs)(`linearGradient`,{id:n,x1:`4.325`,x2:`62.921`,y1:`59.932`,y2:`1.337`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=s);let u,d;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,c.jsx)(`stop`,{offset:`.29`,stopColor:`#FF8100`}),d=(0,c.jsx)(`stop`,{offset:`.56`,stopColor:`#FF2358`}),t[4]=u,t[5]=d):(u=t[4],d=t[5]);let f;t[6]===r?f=t[7]:(f=(0,c.jsxs)(`linearGradient`,{id:r,x1:`-.391`,x2:`24.393`,y1:`7.671`,y2:`61.125`,gradientUnits:`userSpaceOnUse`,children:[u,d]}),t[6]=r,t[7]=f);let p;t[8]!==s||t[9]!==f?(p=(0,c.jsxs)(`defs`,{children:[s,f]}),t[8]=s,t[9]=f,t[10]=p):p=t[10];let m=`url(#${n})`,h;t[11]===m?h=t[12]:(h=(0,c.jsx)(`path`,{fill:m,d:`M59.875 0H25.748a4.13 4.13 0 0 0-3.8 2.52L6.151 39.942a4.1 4.1 0 0 0-.325 1.639l.15 18.328A4.125 4.125 0 0 0 10.101 64h17.666c.805 0 1.593-.235 2.266-.678l32.109-21.108A4.12 4.12 0 0 0 64 38.766V4.125A4.125 4.125 0 0 0 59.875 0`}),t[11]=m,t[12]=h);let g=`url(#${r})`,_;t[13]===g?_=t[14]:(_=(0,c.jsx)(`path`,{fill:g,d:`M14.987 6H4.126A4.125 4.125 0 0 0 0 10.125v12.566q0 .3.044.598l5.448 37.184A4.125 4.125 0 0 0 9.572 64H24.97a4.125 4.125 0 0 0 4.125-4.126l-.004-18.504c0-.426-.067-.85-.196-1.254L18.917 8.87A4.13 4.13 0 0 0 14.987 6z`}),t[13]=g,t[14]=_);let v,y,b;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,c.jsx)(`path`,{fill:`#FF8100`,d:`M16.45 6H4.19a4.125 4.125 0 0 0-4.124 4.19L0 21c.019 1.181.786 2.531 1.683 3.3l38.158 32.706c.748.641 1.7.993 2.684.993h11.35A4.125 4.125 0 0 0 58 53.875V42.872c0-1.189-.514-2.32-1.41-3.104L19.167 7.021A4.12 4.12 0 0 0 16.45 6`}),y=(0,c.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),b=(0,c.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM17.012 16.992h6.442q1.575 0 2.776.579t1.849 1.63.648 2.432c0 .922-.22 1.75-.66 2.46q-.658 1.068-1.875 1.651-1.216.584-2.824.584h-3.43v5.67h-2.926zm7.54 6.63q.552-.274.852-.783.3-.51.3-1.184c0-.45-.1-.852-.3-1.185q-.3-.498-.852-.772-.552-.273-1.292-.273h-3.323v4.47h3.323q.74 0 1.292-.273m-2.631 1.763h3.194L29.05 32h-3.355zM31.633 16.992h4.073l3.087 9.85.257 1.287.225-1.286 2.98-9.85h4.138v15.005h-2.894V21.29l.043-.782-3.494 11.49h-2.123l-3.451-11.415.043.707v10.708h-2.883V16.992z`}),t[15]=v,t[16]=y,t[17]=b):(v=t[15],y=t[16],b=t[17]);let x;return t[18]!==e||t[19]!==_||t[20]!==p||t[21]!==h?(x=(0,c.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[p,h,_,v,y,b]}),t[18]=e,t[19]=_,t[20]=p,t[21]=h,t[22]=x):x=t[22],x},b=e=>{let t=(0,o.c)(23),[n,r]=l(`rustrover`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,c.jsx)(`stop`,{offset:`.08`,stopColor:`#00D886`}),a=(0,c.jsx)(`stop`,{offset:`.46`,stopColor:`#FFAB00`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let s;t[2]===n?s=t[3]:(s=(0,c.jsxs)(`linearGradient`,{id:n,x1:`7.671`,x2:`61.125`,y1:`64.393`,y2:`39.609`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=s);let u,d;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,c.jsx)(`stop`,{offset:`.19`,stopColor:`#FFAB00`}),d=(0,c.jsx)(`stop`,{offset:`.83`,stopColor:`#FF004C`}),t[4]=u,t[5]=d):(u=t[4],d=t[5]);let f;t[6]===r?f=t[7]:(f=(0,c.jsxs)(`linearGradient`,{id:r,x1:`59.932`,x2:`1.336`,y1:`59.676`,y2:`1.08`,gradientUnits:`userSpaceOnUse`,children:[u,d]}),t[6]=r,t[7]=f);let p;t[8]!==s||t[9]!==f?(p=(0,c.jsxs)(`defs`,{children:[s,f]}),t[8]=s,t[9]=f,t[10]=p):p=t[10];let m;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,c.jsx)(`path`,{fill:`#00D886`,d:`M6 47.55v12.258a4.125 4.125 0 0 0 4.19 4.124l11.044-.176a4.12 4.12 0 0 0 3.066-1.44l32.707-38.158c.64-.747.993-1.7.993-2.684V10.125A4.125 4.125 0 0 0 53.875 6H42.872c-1.19 0-2.321.514-3.105 1.409L7.021 44.833A4.12 4.12 0 0 0 6 47.55`}),t[11]=m):m=t[11];let h=`url(#${n})`,g;t[12]===h?g=t[13]:(g=(0,c.jsx)(`path`,{fill:h,d:`M6 49.015v10.862a4.125 4.125 0 0 0 4.125 4.125h12.566q.3 0 .598-.044l37.185-5.448A4.125 4.125 0 0 0 64 54.429V39.03a4.125 4.125 0 0 0-4.127-4.125l-18.504.005c-.426 0-.849.066-1.254.195L8.871 45.085A4.13 4.13 0 0 0 6 49.015z`}),t[12]=h,t[13]=g);let _=`url(#${r})`,v;t[14]===_?v=t[15]:(v=(0,c.jsx)(`path`,{fill:_,d:`M0 4.125v34.128c0 1.658.993 3.154 2.52 3.8L39.943 57.85c.518.219 1.075.33 1.638.324l18.329-.15A4.125 4.125 0 0 0 64 53.9V36.234c0-.806-.236-1.593-.678-2.267L42.213 1.86A4.13 4.13 0 0 0 38.766 0H4.125A4.125 4.125 0 0 0 0 4.125`}),t[14]=_,t[15]=v);let y,b;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,c.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),b=(0,c.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM16.992 16.992h6.442q1.576 0 2.776.579t1.85 1.63.648 2.432c0 .922-.22 1.75-.66 2.46q-.66 1.068-1.875 1.651-1.217.584-2.825.584h-3.43v5.67h-2.926zm7.54 6.63q.553-.274.853-.783.3-.51.3-1.184c0-.45-.1-.852-.3-1.185q-.3-.498-.852-.772-.552-.273-1.292-.273h-3.323v4.47h3.323q.74 0 1.292-.273m-2.63 1.763h3.194L29.03 32h-3.355zM31.613 16.992h6.442q1.575 0 2.776.579t1.85 1.63.648 2.432c0 .922-.22 1.75-.66 2.46q-.659 1.068-1.875 1.651-1.217.584-2.824.584h-3.43v5.67h-2.927zm7.54 6.63q.553-.274.853-.783.3-.51.3-1.184c0-.45-.1-.852-.3-1.185q-.3-.498-.852-.772-.552-.273-1.292-.273h-3.323v4.47h3.323q.74 0 1.292-.273m-2.63 1.763h3.194L43.651 32h-3.355z`}),t[16]=y,t[17]=b):(y=t[16],b=t[17]);let x;return t[18]!==e||t[19]!==v||t[20]!==p||t[21]!==g?(x=(0,c.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[p,m,g,v,y,b]}),t[18]=e,t[19]=v,t[20]=p,t[21]=g,t[22]=x):x=t[22],x},x=e=>{let t=(0,o.c)(23),[n,r]=l(`webstorm`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,c.jsx)(`stop`,{offset:`.22`,stopColor:`#F0EB18`}),a=(0,c.jsx)(`stop`,{offset:`.59`,stopColor:`#00C4F4`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let s;t[2]===n?s=t[3]:(s=(0,c.jsxs)(`linearGradient`,{id:n,x1:`7.671`,x2:`61.126`,y1:`64.392`,y2:`39.609`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=s);let u,d;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,c.jsx)(`stop`,{offset:`.19`,stopColor:`#00C4F4`}),d=(0,c.jsx)(`stop`,{offset:`.83`,stopColor:`#007DFE`}),t[4]=u,t[5]=d):(u=t[4],d=t[5]);let f;t[6]===r?f=t[7]:(f=(0,c.jsxs)(`linearGradient`,{id:r,x1:`59.932`,x2:`1.337`,y1:`59.676`,y2:`1.079`,gradientUnits:`userSpaceOnUse`,children:[u,d]}),t[6]=r,t[7]=f);let p;t[8]!==s||t[9]!==f?(p=(0,c.jsxs)(`defs`,{children:[s,f]}),t[8]=s,t[9]=f,t[10]=p):p=t[10];let m;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,c.jsx)(`path`,{fill:`#F0EB18`,d:`M6 47.55v12.258a4.125 4.125 0 0 0 4.19 4.124l11.044-.176a4.12 4.12 0 0 0 3.066-1.44l32.707-38.158c.64-.747.993-1.7.993-2.684V10.125A4.125 4.125 0 0 0 53.875 6H42.872c-1.19 0-2.321.514-3.105 1.409L7.021 44.833A4.12 4.12 0 0 0 6 47.55`}),t[11]=m):m=t[11];let h=`url(#${n})`,g;t[12]===h?g=t[13]:(g=(0,c.jsx)(`path`,{fill:h,d:`M6 49.015v10.862a4.125 4.125 0 0 0 4.125 4.125h12.566q.3 0 .598-.044l37.185-5.448A4.125 4.125 0 0 0 64 54.429V39.03a4.125 4.125 0 0 0-4.127-4.125l-18.504.005c-.426 0-.849.066-1.254.195L8.871 45.085A4.13 4.13 0 0 0 6 49.015z`}),t[12]=h,t[13]=g);let _=`url(#${r})`,v;t[14]===_?v=t[15]:(v=(0,c.jsx)(`path`,{fill:_,d:`M0 4.125v34.128c0 1.658.993 3.154 2.52 3.8L39.943 57.85c.518.219 1.075.33 1.638.324l18.329-.15A4.125 4.125 0 0 0 64 53.9V36.234c0-.806-.236-1.593-.678-2.267L42.213 1.86A4.13 4.13 0 0 0 38.766 0H4.125A4.125 4.125 0 0 0 0 4.125`}),t[14]=_,t[15]=v);let y,b;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,c.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),b=(0,c.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM19.051 16.992l2.423 10.955 2.583-10.955h2.958l2.701 10.955 2.348-10.955h2.97l-3.645 15.006h-3.334l-2.53-10.9-2.561 10.9H19.64l-3.623-15.006zM38.662 31.664q-1.26-.59-1.972-1.65t-.735-2.444h2.937q0 .654.343 1.147t.954.772q.61.278 1.404.278c.53 0 .952-.083 1.335-.251q.573-.252.889-.702t.316-1.029q0-.718-.434-1.19-.435-.471-1.195-.654l-2.648-.59q-1.071-.234-1.865-.809a4 4 0 0 1-1.232-1.42q-.44-.846-.44-1.908 0-1.286.665-2.31.664-1.023 1.854-1.597 1.19-.573 2.701-.573c1.008 0 1.934.186 2.734.558q1.2.558 1.87 1.549t.68 2.277h-2.925q0-.546-.29-.98c-.29-.435-.466-.515-.82-.676a2.9 2.9 0 0 0-1.217-.24q-.686 0-1.205.23a1.9 1.9 0 0 0-.81.643q-.29.412-.289.96 0 .621.402 1.028t1.099.579l2.55.557q1.105.226 1.968.852a4.45 4.45 0 0 1 1.345 1.544 4.2 4.2 0 0 1 .482 1.999q0 1.329-.702 2.385-.702 1.054-1.966 1.656-1.266.6-2.894.6-1.63 0-2.889-.59`}),t[16]=y,t[17]=b):(y=t[16],b=t[17]);let x;return t[18]!==e||t[19]!==v||t[20]!==p||t[21]!==g?(x=(0,c.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[p,m,g,v,y,b]}),t[18]=e,t[19]=v,t[20]=p,t[21]=g,t[22]=x):x=t[22],x};export{m as a,_ as c,b as d,x as f,p as i,v as l,d as n,h as o,a as p,f as r,g as s,u as t,y as u};
|
|
1
|
+
import{i as e,t}from"./react-PSPkXoKo.js";import{t as n}from"./compiler-runtime-BNrXlsa1.js";import{Pi as r,Zr as i}from"./composerDraftStore-DpPEQ6BN.js";var a=i(`folder-closed`,[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}],[`path`,{d:`M2 10h20`,key:`1ir3d8`}]]),o=n(),s=e(t(),1),c=r(),l=(e,t)=>{let n=(0,o.c)(7),r=(0,s.useId)(),i;if(n[0]!==t||n[1]!==r||n[2]!==e){let a;n[4]!==r||n[5]!==e?(a=(t,n)=>`${r}-${e}-${String.fromCharCode(97+n)}`,n[4]=r,n[5]=e,n[6]=a):a=n[6],i=Array.from({length:t},a),n[0]=t,n[1]=r,n[2]=e,n[3]=i}else i=n[3];return i},u=e=>{let t=(0,o.c)(23),[n,r]=l(`aqua`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,c.jsx)(`stop`,{offset:`.25`,stopColor:`#7256FF`}),a=(0,c.jsx)(`stop`,{offset:`.73`,stopColor:`#007DFE`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let s;t[2]===n?s=t[3]:(s=(0,c.jsxs)(`linearGradient`,{id:n,x1:`59.932`,x2:`1.336`,y1:`59.676`,y2:`1.079`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=s);let u,d;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,c.jsx)(`stop`,{offset:`.3`,stopColor:`#00D886`}),d=(0,c.jsx)(`stop`,{offset:`.54`,stopColor:`#7256FF`}),t[4]=u,t[5]=d):(u=t[4],d=t[5]);let f;t[6]===r?f=t[7]:(f=(0,c.jsxs)(`linearGradient`,{id:r,x1:`7.671`,x2:`61.125`,y1:`64.392`,y2:`39.609`,gradientUnits:`userSpaceOnUse`,children:[u,d]}),t[6]=r,t[7]=f);let p;t[8]!==s||t[9]!==f?(p=(0,c.jsxs)(`defs`,{children:[s,f]}),t[8]=s,t[9]=f,t[10]=p):p=t[10];let m=`url(#${n})`,h;t[11]===m?h=t[12]:(h=(0,c.jsx)(`path`,{fill:m,d:`M0 4.125v34.128c0 1.658.993 3.154 2.52 3.8L39.943 57.85c.518.219 1.075.33 1.638.324l18.329-.15A4.125 4.125 0 0 0 64 53.9V36.234c0-.806-.236-1.593-.678-2.267L42.213 1.86A4.13 4.13 0 0 0 38.766 0H4.125A4.125 4.125 0 0 0 0 4.125`}),t[11]=m,t[12]=h);let g=`url(#${r})`,_;t[13]===g?_=t[14]:(_=(0,c.jsx)(`path`,{fill:g,d:`M6 49.015v10.862a4.125 4.125 0 0 0 4.125 4.125h12.566q.3 0 .598-.044l37.185-5.448A4.125 4.125 0 0 0 64 54.429V39.03a4.125 4.125 0 0 0-4.127-4.125l-18.504.005c-.426 0-.849.066-1.254.195L8.871 45.085A4.13 4.13 0 0 0 6 49.015z`}),t[13]=g,t[14]=_);let v,y,b;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,c.jsx)(`path`,{fill:`#00D886`,d:`M6 47.55v12.259a4.125 4.125 0 0 0 4.19 4.124L21 64c1.181-.019 2.531-.786 3.3-1.683l32.707-38.158c.64-.748.993-1.7.993-2.685V10.125A4.125 4.125 0 0 0 53.875 6H42.872c-1.19 0-2.321.514-3.105 1.409L7.021 44.834A4.12 4.12 0 0 0 6 47.55`}),y=(0,c.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),b=(0,c.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM20.746 31.243a7.3 7.3 0 0 1-2.755-2.787q-1.002-1.774-1.003-3.961c0-2.187.334-2.778 1.003-3.96a7.3 7.3 0 0 1 2.755-2.787q1.752-1.013 3.917-1.014c1.443 0 2.739.338 3.907 1.013a7.3 7.3 0 0 1 2.75 2.787q.996 1.774.996 3.961c0 2.187-.332 2.778-.997 3.96a7.3 7.3 0 0 1-2.749 2.788q-1.752 1.013-3.907 1.013c-1.436 0-2.75-.338-3.917-1.013m6.308-2.23q1.06-.67 1.661-1.854.6-1.185.6-2.664t-.6-2.664a4.6 4.6 0 0 0-1.661-1.854q-1.061-.67-2.39-.67t-2.396.67a4.6 4.6 0 0 0-1.672 1.854q-.605 1.185-.605 2.664t.605 2.664 1.672 1.854q1.067.67 2.396.67 1.33 0 2.39-.67m-2.16 6.034a2.67 2.67 0 0 1-1.126-1.077q-.391-.696-.391-1.64l-.01-1.94h2.743v1.811q0 .332.129.573.128.242.37.365.24.123.574.123h1.833v2.165h-2.412q-.975 0-1.71-.38M38.233 16.992h3.173l5.563 15.006h-2.947l-1.212-3.483h-5.842l-1.136 3.483H32.82zm3.805 9.261-2.025-5.723-.225-.954-.215.954-1.908 5.723z`}),t[15]=v,t[16]=y,t[17]=b):(v=t[15],y=t[16],b=t[17]);let x;return t[18]!==e||t[19]!==_||t[20]!==p||t[21]!==h?(x=(0,c.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[p,h,_,v,y,b]}),t[18]=e,t[19]=_,t[20]=p,t[21]=h,t[22]=x):x=t[22],x},d=e=>{let t=(0,o.c)(23),[n,r]=l(`clion`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,c.jsx)(`stop`,{offset:`.29`,stopColor:`#009AE5`}),a=(0,c.jsx)(`stop`,{offset:`.7`,stopColor:`#00D980`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let s;t[2]===n?s=t[3]:(s=(0,c.jsxs)(`linearGradient`,{id:n,x1:`4.067`,x2:`62.664`,y1:`4.327`,y2:`62.923`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=s);let u,d;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,c.jsx)(`stop`,{offset:`.3`,stopColor:`#FF2D90`}),d=(0,c.jsx)(`stop`,{offset:`.54`,stopColor:`#009AE5`}),t[4]=u,t[5]=d):(u=t[4],d=t[5]);let f;t[6]===r?f=t[7]:(f=(0,c.jsxs)(`linearGradient`,{id:r,x1:`56.329`,x2:`2.874`,y1:`-.391`,y2:`24.393`,gradientUnits:`userSpaceOnUse`,children:[u,d]}),t[6]=r,t[7]=f);let p;t[8]!==s||t[9]!==f?(p=(0,c.jsxs)(`defs`,{children:[s,f]}),t[8]=s,t[9]=f,t[10]=p):p=t[10];let m=`url(#${n})`,h;t[11]===m?h=t[12]:(h=(0,c.jsx)(`path`,{fill:m,d:`M64 59.878V25.75a4.13 4.13 0 0 0-2.52-3.8L24.057 6.153a4.1 4.1 0 0 0-1.638-.325l-18.329.15A4.124 4.124 0 0 0 0 10.103v17.665c0 .806.236 1.593.678 2.267l21.109 32.109a4.12 4.12 0 0 0 3.447 1.859h34.641A4.125 4.125 0 0 0 64 59.878`}),t[11]=m,t[12]=h);let g=`url(#${r})`,_;t[13]===g?_=t[14]:(_=(0,c.jsx)(`path`,{fill:g,d:`M58 14.988V4.125A4.125 4.125 0 0 0 53.875 0H41.309q-.3 0-.598.044L3.527 5.492A4.125 4.125 0 0 0 0 9.573v15.398a4.125 4.125 0 0 0 4.126 4.125l18.505-.005c.425 0 .848-.066 1.253-.195l31.246-9.98A4.13 4.13 0 0 0 58 14.988`}),t[13]=g,t[14]=_);let v,y,b;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,c.jsx)(`path`,{fill:`#FF2D90`,d:`M58 16.453V4.194A4.125 4.125 0 0 0 53.81.07L43.003.008c-1.18.019-2.535.781-3.304 1.678L6.993 39.844c-.64.748-.993 1.7-.993 2.684v11.35a4.125 4.125 0 0 0 4.125 4.125h11.003c1.19 0 2.321-.514 3.105-1.409L56.979 19.17A4.12 4.12 0 0 0 58 16.453`}),y=(0,c.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),b=(0,c.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM20.747 31.243a7.3 7.3 0 0 1-2.744-2.787q-.997-1.774-.997-3.961c0-2.187.332-2.778.997-3.96a7.3 7.3 0 0 1 2.744-2.787q1.747-1.013 3.901-1.014 1.823 0 3.345.675a6.86 6.86 0 0 1 2.535 1.892 6.44 6.44 0 0 1 1.355 2.793h-3.065a4.05 4.05 0 0 0-.895-1.431 4 4 0 0 0-1.431-.95 4.9 4.9 0 0 0-1.822-.332q-1.33 0-2.402.665a4.6 4.6 0 0 0-1.677 1.827q-.606 1.164-.606 2.62 0 1.459.606 2.621a4.6 4.6 0 0 0 1.677 1.828q1.072.664 2.402.664a4.9 4.9 0 0 0 1.822-.332 4.02 4.02 0 0 0 2.326-2.38h3.065a6.44 6.44 0 0 1-1.355 2.792 6.86 6.86 0 0 1-2.535 1.892q-1.522.675-3.345.675-2.154 0-3.901-1.013zM37.33 16.992v12.37h7.117v2.636H34.414V16.992z`}),t[15]=v,t[16]=y,t[17]=b):(v=t[15],y=t[16],b=t[17]);let x;return t[18]!==e||t[19]!==_||t[20]!==p||t[21]!==h?(x=(0,c.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[p,h,_,v,y,b]}),t[18]=e,t[19]=_,t[20]=p,t[21]=h,t[22]=x):x=t[22],x},f=e=>{let t=(0,o.c)(23),[n,r]=l(`datagrip`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,c.jsx)(`stop`,{offset:`.28`,stopColor:`#7256FF`}),a=(0,c.jsx)(`stop`,{offset:`.66`,stopColor:`#00D980`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let s;t[2]===n?s=t[3]:(s=(0,c.jsxs)(`linearGradient`,{id:n,x1:`59.676`,x2:`1.08`,y1:`4.067`,y2:`62.663`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=s);let u,d;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,c.jsx)(`stop`,{offset:`.3`,stopColor:`#FF43F2`}),d=(0,c.jsx)(`stop`,{offset:`.54`,stopColor:`#7256FF`}),t[4]=u,t[5]=d):(u=t[4],d=t[5]);let f;t[6]===r?f=t[7]:(f=(0,c.jsxs)(`linearGradient`,{id:r,x1:`64.391`,x2:`39.607`,y1:`56.329`,y2:`2.874`,gradientUnits:`userSpaceOnUse`,children:[u,d]}),t[6]=r,t[7]=f);let p;t[8]!==s||t[9]!==f?(p=(0,c.jsxs)(`defs`,{children:[s,f]}),t[8]=s,t[9]=f,t[10]=p):p=t[10];let m=`url(#${n})`,h;t[11]===m?h=t[12]:(h=(0,c.jsx)(`path`,{fill:m,d:`M4.125 64h34.128a4.13 4.13 0 0 0 3.8-2.52L57.85 24.057c.219-.518.33-1.076.324-1.638l-.15-18.329A4.125 4.125 0 0 0 53.9 0H36.234c-.806 0-1.593.236-2.267.678L1.86 21.787A4.13 4.13 0 0 0 0 25.234v34.641A4.125 4.125 0 0 0 4.125 64`}),t[11]=m,t[12]=h);let g=`url(#${r})`,_;t[13]===g?_=t[14]:(_=(0,c.jsx)(`path`,{fill:g,d:`M49.013 58h10.862A4.125 4.125 0 0 0 64 53.875V41.309q0-.3-.044-.598L58.508 3.527A4.125 4.125 0 0 0 54.427 0H39.029a4.125 4.125 0 0 0-4.125 4.126l.005 18.505c0 .425.066.848.195 1.253l9.979 31.246a4.13 4.13 0 0 0 3.93 2.87`}),t[13]=g,t[14]=_);let v,y,b;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,c.jsx)(`path`,{fill:`#FF43F2`,d:`M47.55 58h12.259a4.125 4.125 0 0 0 4.124-4.19L64 43c-.018-1.181-.785-2.531-1.682-3.3L24.159 6.993A4.13 4.13 0 0 0 21.474 6H10.125A4.125 4.125 0 0 0 6 10.125v11.003c0 1.19.514 2.321 1.409 3.105l37.425 32.746A4.12 4.12 0 0 0 47.55 58`}),y=(0,c.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),b=(0,c.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM17.012 16.992h5.713q2.133 0 3.821.965a6.9 6.9 0 0 1 2.642 2.674q.954 1.71.954 3.864t-.954 3.865a6.9 6.9 0 0 1-2.642 2.674q-1.688.964-3.821.964h-5.713zm8.028 11.876q1.008-.6 1.554-1.72.547-1.12.547-2.653 0-1.534-.547-2.653-.546-1.12-1.554-1.721-1.008-.6-2.348-.6h-2.755v9.947h2.755q1.34 0 2.348-.6M35.426 31.243a7.3 7.3 0 0 1-2.744-2.787q-.997-1.774-.997-3.961c0-2.187.333-2.778.997-3.96s1.58-2.112 2.744-2.787q1.747-1.013 3.902-1.014 1.746 0 3.221.622a6.9 6.9 0 0 1 2.487 1.747 6.36 6.36 0 0 1 1.42 2.594h-3.13a3.9 3.9 0 0 0-.927-1.228q-.585-.52-1.367-.803c-.782-.283-1.082-.284-1.683-.284q-1.329 0-2.401.664a4.6 4.6 0 0 0-1.678 1.828q-.605 1.163-.605 2.62c0 1.457.202 1.846.605 2.621a4.6 4.6 0 0 0 1.678 1.828q1.072.664 2.401.664 1.233 0 2.235-.461t1.592-1.276a3.3 3.3 0 0 0 .633-1.833l.01.31h-3.526v-2.304h6.356v1.18q0 1.982-.96 3.585a6.9 6.9 0 0 1-2.625 2.525q-1.668.921-3.736.921c-1.38 0-2.737-.337-3.902-1.013z`}),t[15]=v,t[16]=y,t[17]=b):(v=t[15],y=t[16],b=t[17]);let x;return t[18]!==e||t[19]!==_||t[20]!==p||t[21]!==h?(x=(0,c.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[p,h,_,v,y,b]}),t[18]=e,t[19]=_,t[20]=p,t[21]=h,t[22]=x):x=t[22],x},p=e=>{let t=(0,o.c)(23),[n,r]=l(`dataspell`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,c.jsx)(`stop`,{offset:`.28`,stopColor:`#007DFE`}),a=(0,c.jsx)(`stop`,{offset:`.73`,stopColor:`#00D980`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let s;t[2]===n?s=t[3]:(s=(0,c.jsxs)(`linearGradient`,{id:n,x1:`4.067`,x2:`62.664`,y1:`4.327`,y2:`62.923`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=s);let u,d;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,c.jsx)(`stop`,{offset:`.32`,stopColor:`#F0EB18`}),d=(0,c.jsx)(`stop`,{offset:`.55`,stopColor:`#007DFE`}),t[4]=u,t[5]=d):(u=t[4],d=t[5]);let f;t[6]===r?f=t[7]:(f=(0,c.jsxs)(`linearGradient`,{id:r,x1:`56.329`,x2:`2.875`,y1:`-.391`,y2:`24.392`,gradientUnits:`userSpaceOnUse`,children:[u,d]}),t[6]=r,t[7]=f);let p;t[8]!==s||t[9]!==f?(p=(0,c.jsxs)(`defs`,{children:[s,f]}),t[8]=s,t[9]=f,t[10]=p):p=t[10];let m=`url(#${n})`,h;t[11]===m?h=t[12]:(h=(0,c.jsx)(`path`,{fill:m,d:`M64 59.878V25.75a4.13 4.13 0 0 0-2.52-3.8L24.057 6.153a4.1 4.1 0 0 0-1.638-.325l-18.329.15A4.124 4.124 0 0 0 0 10.103v17.665c0 .806.236 1.593.678 2.267l21.109 32.109a4.12 4.12 0 0 0 3.447 1.859h34.641A4.125 4.125 0 0 0 64 59.878`}),t[11]=m,t[12]=h);let g=`url(#${r})`,_;t[13]===g?_=t[14]:(_=(0,c.jsx)(`path`,{fill:g,d:`M58 14.988V4.125A4.125 4.125 0 0 0 53.875 0H41.309q-.3 0-.598.044L3.527 5.492A4.125 4.125 0 0 0 0 9.573v15.398a4.125 4.125 0 0 0 4.126 4.125l18.505-.005c.425 0 .848-.066 1.253-.195l31.246-9.98A4.13 4.13 0 0 0 58 14.988`}),t[13]=g,t[14]=_);let v,y,b;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,c.jsx)(`path`,{fill:`#F0EB18`,d:`M58 16.45V4.191A4.125 4.125 0 0 0 53.81.067L43 0c-1.181.019-2.531.786-3.3 1.683L6.993 39.84c-.64.748-.993 1.7-.993 2.685v11.349A4.125 4.125 0 0 0 10.125 58h11.003c1.19 0 2.321-.514 3.105-1.409l32.746-37.425A4.12 4.12 0 0 0 58 16.45`}),y=(0,c.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),b=(0,c.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM17.012 16.992h5.713q2.133 0 3.821.965a6.9 6.9 0 0 1 2.642 2.674q.954 1.71.954 3.864t-.954 3.865a6.9 6.9 0 0 1-2.642 2.674q-1.688.964-3.821.964h-5.713zm8.028 11.876q1.008-.6 1.554-1.72.547-1.12.547-2.653 0-1.534-.547-2.653-.546-1.12-1.554-1.721-1.008-.6-2.348-.6h-2.755v9.947h2.755q1.34 0 2.348-.6M34.713 31.664q-1.26-.59-1.973-1.65t-.734-2.444h2.937q0 .654.343 1.147t.954.772q.61.278 1.404.278c.53 0 .952-.083 1.334-.251q.574-.252.89-.702t.316-1.029q0-.718-.434-1.19-.435-.471-1.195-.654l-2.648-.59q-1.071-.234-1.865-.809a4 4 0 0 1-1.232-1.42q-.44-.846-.44-1.908 0-1.286.665-2.31.664-1.023 1.854-1.597 1.19-.573 2.701-.573c1.511 0 1.933.186 2.733.558s1.424.888 1.871 1.549q.67.99.68 2.277h-2.926q0-.546-.289-.98c-.289-.435-.466-.515-.82-.676a2.9 2.9 0 0 0-1.217-.24q-.686 0-1.205.23a1.9 1.9 0 0 0-.81.643q-.29.412-.29.96 0 .621.403 1.028.402.407 1.098.579l2.552.557q1.103.226 1.967.852a4.45 4.45 0 0 1 1.345 1.544q.481.917.482 1.999 0 1.329-.702 2.385-.702 1.054-1.967 1.656-1.265.6-2.894.6t-2.889-.59`}),t[15]=v,t[16]=y,t[17]=b):(v=t[15],y=t[16],b=t[17]);let x;return t[18]!==e||t[19]!==_||t[20]!==p||t[21]!==h?(x=(0,c.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[p,h,_,v,y,b]}),t[18]=e,t[19]=_,t[20]=p,t[21]=h,t[22]=x):x=t[22],x},m=e=>{let t=(0,o.c)(23),[n,r]=l(`goland`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,c.jsx)(`stop`,{offset:`.24`,stopColor:`#00D886`}),a=(0,c.jsx)(`stop`,{offset:`.51`,stopColor:`#007DFE`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let s;t[2]===n?s=t[3]:(s=(0,c.jsxs)(`linearGradient`,{id:n,x1:`64.391`,x2:`39.607`,y1:`56.329`,y2:`2.874`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=s);let u,d;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,c.jsx)(`stop`,{offset:`.27`,stopColor:`#007DFE`}),d=(0,c.jsx)(`stop`,{offset:`.7`,stopColor:`#D249FC`}),t[4]=u,t[5]=d):(u=t[4],d=t[5]);let f;t[6]===r?f=t[7]:(f=(0,c.jsxs)(`linearGradient`,{id:r,x1:`59.676`,x2:`1.08`,y1:`4.067`,y2:`62.663`,gradientUnits:`userSpaceOnUse`,children:[u,d]}),t[6]=r,t[7]=f);let p;t[8]!==s||t[9]!==f?(p=(0,c.jsxs)(`defs`,{children:[s,f]}),t[8]=s,t[9]=f,t[10]=p):p=t[10];let m;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,c.jsx)(`path`,{fill:`#00D886`,d:`M47.55 58h12.259a4.125 4.125 0 0 0 4.124-4.19l-.176-11.044a4.13 4.13 0 0 0-1.44-3.066L24.159 6.993A4.13 4.13 0 0 0 21.474 6H10.125A4.125 4.125 0 0 0 6 10.125v11.003c0 1.19.514 2.321 1.409 3.105l37.425 32.746A4.12 4.12 0 0 0 47.55 58`}),t[11]=m):m=t[11];let h=`url(#${n})`,g;t[12]===h?g=t[13]:(g=(0,c.jsx)(`path`,{fill:h,d:`M49.013 58h10.862A4.125 4.125 0 0 0 64 53.875V41.309q0-.3-.044-.598L58.508 3.527A4.124 4.124 0 0 0 54.427 0H39.029a4.125 4.125 0 0 0-4.125 4.126l.005 18.505c0 .425.066.848.195 1.253l9.979 31.246a4.13 4.13 0 0 0 3.93 2.87`}),t[12]=h,t[13]=g);let _=`url(#${r})`,v;t[14]===_?v=t[15]:(v=(0,c.jsx)(`path`,{fill:_,d:`M4.125 64h34.128a4.13 4.13 0 0 0 3.8-2.52L57.85 24.057c.219-.518.33-1.076.324-1.638l-.15-18.329A4.124 4.124 0 0 0 53.9 0H36.234c-.805 0-1.593.236-2.266.678L1.86 21.787A4.13 4.13 0 0 0 0 25.234v34.641A4.125 4.125 0 0 0 4.125 64`}),t[14]=_,t[15]=v);let y,b;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,c.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),b=(0,c.jsx)(`path`,{fill:`#fff`,d:`M19.748 31.243a7.3 7.3 0 0 1-2.743-2.787q-.997-1.774-.997-3.961c0-2.187.332-2.778.997-3.96s1.58-2.112 2.743-2.787q1.747-1.013 3.902-1.014 1.747 0 3.222.622a6.9 6.9 0 0 1 2.486 1.747 6.4 6.4 0 0 1 1.42 2.594h-3.13a3.9 3.9 0 0 0-.926-1.228q-.584-.52-1.367-.803c-.783-.283-1.083-.284-1.683-.284q-1.33 0-2.402.664a4.6 4.6 0 0 0-1.677 1.828q-.606 1.163-.606 2.62c0 1.457.202 1.846.606 2.621a4.6 4.6 0 0 0 1.677 1.828q1.072.664 2.402.664 1.232 0 2.235-.461t1.591-1.276a3.3 3.3 0 0 0 .633-1.833l.01.31h-3.526v-2.304h6.357v1.18q0 1.982-.96 3.585a6.9 6.9 0 0 1-2.626 2.525q-1.666.921-3.736.921c-2.07 0-2.737-.337-3.902-1.013zM36.271 31.243a7.3 7.3 0 0 1-2.755-2.787q-1.002-1.774-1.002-3.961c0-2.187.333-2.778 1.002-3.96a7.3 7.3 0 0 1 2.755-2.787q1.752-1.013 3.918-1.014c1.443 0 2.738.338 3.907 1.013a7.3 7.3 0 0 1 2.749 2.787q.996 1.774.997 3.961c0 2.187-.333 2.778-.997 3.96s-1.581 2.113-2.75 2.788q-1.752 1.013-3.906 1.013c-1.437 0-2.75-.338-3.918-1.013m6.308-2.23q1.062-.67 1.662-1.854t.6-2.664-.6-2.664-1.662-1.854-2.39-.67-2.395.67a4.6 4.6 0 0 0-1.672 1.854q-.606 1.185-.606 2.664t.606 2.664 1.672 1.854 2.395.67q1.33 0 2.39-.67M33 44H17v3h16z`}),t[16]=y,t[17]=b):(y=t[16],b=t[17]);let x;return t[18]!==e||t[19]!==v||t[20]!==p||t[21]!==g?(x=(0,c.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[p,m,g,v,y,b]}),t[18]=e,t[19]=v,t[20]=p,t[21]=g,t[22]=x):x=t[22],x},h=e=>{let t=(0,o.c)(23),[n,r]=l(`intellij-idea`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,c.jsx)(`stop`,{offset:`.1`,stopColor:`#FC801D`}),a=(0,c.jsx)(`stop`,{offset:`.59`,stopColor:`#FE2857`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let s;t[2]===n?s=t[3]:(s=(0,c.jsxs)(`linearGradient`,{id:n,x1:`-.391`,x2:`24.392`,y1:`7.671`,y2:`61.126`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=s);let u,d;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,c.jsx)(`stop`,{offset:`.21`,stopColor:`#FE2857`}),d=(0,c.jsx)(`stop`,{offset:`.7`,stopColor:`#007EFF`}),t[4]=u,t[5]=d):(u=t[4],d=t[5]);let f;t[6]===r?f=t[7]:(f=(0,c.jsxs)(`linearGradient`,{id:r,x1:`4.325`,x2:`62.921`,y1:`59.932`,y2:`1.336`,gradientUnits:`userSpaceOnUse`,children:[u,d]}),t[6]=r,t[7]=f);let p;t[8]!==s||t[9]!==f?(p=(0,c.jsxs)(`defs`,{children:[s,f]}),t[8]=s,t[9]=f,t[10]=p):p=t[10];let m;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,c.jsx)(`path`,{fill:`#FF8100`,d:`M16.45 6H4.191a4.125 4.125 0 0 0-4.124 4.19l.176 11.044a4.13 4.13 0 0 0 1.44 3.066l38.159 32.707c.747.64 1.7.993 2.684.993h11.35A4.125 4.125 0 0 0 58 53.875V42.872c0-1.19-.514-2.321-1.41-3.105L19.167 7.021A4.12 4.12 0 0 0 16.45 6`}),t[11]=m):m=t[11];let h=`url(#${n})`,g;t[12]===h?g=t[13]:(g=(0,c.jsx)(`path`,{fill:h,d:`M14.988 6H4.125A4.125 4.125 0 0 0 0 10.125v12.566q0 .3.044.598l5.448 37.185A4.125 4.125 0 0 0 9.573 64h15.398a4.125 4.125 0 0 0 4.125-4.127L29.09 41.37c0-.426-.066-.849-.195-1.254l-9.98-31.245A4.13 4.13 0 0 0 14.988 6z`}),t[12]=h,t[13]=g);let _=`url(#${r})`,v;t[14]===_?v=t[15]:(v=(0,c.jsx)(`path`,{fill:_,d:`M59.876 0H25.748a4.13 4.13 0 0 0-3.8 2.52L6.151 39.943a4.1 4.1 0 0 0-.325 1.638l.15 18.329A4.125 4.125 0 0 0 10.101 64h17.666c.806 0 1.593-.236 2.266-.678l32.11-21.109A4.12 4.12 0 0 0 64 38.766V4.125A4.125 4.125 0 0 0 59.876 0`}),t[14]=_,t[15]=v);let y,b;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,c.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),b=(0,c.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM17 29.383h2.98v-9.775H17v-2.616h8.843v2.616h-2.98v9.775h2.98V32H17zM27.643 29.298h2.154a2.4 2.4 0 0 0 1.163-.279q.51-.279.788-.788.279-.51.279-1.163V16.992h2.926v10.28q0 1.35-.622 2.427a4.45 4.45 0 0 1-1.715 1.688q-1.092.612-2.454.611h-2.519z`}),t[16]=y,t[17]=b):(y=t[16],b=t[17]);let x;return t[18]!==e||t[19]!==v||t[20]!==p||t[21]!==g?(x=(0,c.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[p,m,g,v,y,b]}),t[18]=e,t[19]=v,t[20]=p,t[21]=g,t[22]=x):x=t[22],x},g=e=>{let t=(0,o.c)(23),[n,r]=l(`phpstorm`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,c.jsx)(`stop`,{offset:`.16`,stopColor:`#D249FC`}),a=(0,c.jsx)(`stop`,{offset:`.55`,stopColor:`#FF2D90`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let s;t[2]===n?s=t[3]:(s=(0,c.jsxs)(`linearGradient`,{id:n,x1:`56.329`,x2:`2.874`,y1:`-.391`,y2:`24.392`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=s);let u,d;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,c.jsx)(`stop`,{offset:`.3`,stopColor:`#FF2D90`}),d=(0,c.jsx)(`stop`,{offset:`.7`,stopColor:`#7256FF`}),t[4]=u,t[5]=d):(u=t[4],d=t[5]);let f;t[6]===r?f=t[7]:(f=(0,c.jsxs)(`linearGradient`,{id:r,x1:`4.067`,x2:`62.664`,y1:`4.326`,y2:`62.923`,gradientUnits:`userSpaceOnUse`,children:[u,d]}),t[6]=r,t[7]=f);let p;t[8]!==s||t[9]!==f?(p=(0,c.jsxs)(`defs`,{children:[s,f]}),t[8]=s,t[9]=f,t[10]=p):p=t[10];let m;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,c.jsx)(`path`,{fill:`#D249FC`,d:`M58 16.446V4.187A4.125 4.125 0 0 0 53.81.063L42.765.239A4.13 4.13 0 0 0 39.7 1.68L6.993 39.837c-.64.748-.993 1.7-.993 2.685v11.35a4.125 4.125 0 0 0 4.125 4.124h11.003c1.19 0 2.321-.514 3.105-1.409l32.746-37.425A4.12 4.12 0 0 0 58 16.446`}),t[11]=m):m=t[11];let h=`url(#${n})`,g;t[12]===h?g=t[13]:(g=(0,c.jsx)(`path`,{fill:h,d:`M58 14.988V4.125A4.125 4.125 0 0 0 53.875 0H41.309q-.3 0-.598.044L3.527 5.492A4.125 4.125 0 0 0 0 9.573v15.398a4.125 4.125 0 0 0 4.126 4.125l18.505-.005c.425 0 .848-.066 1.253-.195l31.246-9.98A4.13 4.13 0 0 0 58 14.988`}),t[12]=h,t[13]=g);let _=`url(#${r})`,v;t[14]===_?v=t[15]:(v=(0,c.jsx)(`path`,{fill:_,d:`M64 59.878V25.75a4.13 4.13 0 0 0-2.52-3.8L24.057 6.153a4.1 4.1 0 0 0-1.638-.325l-18.329.15A4.124 4.124 0 0 0 0 10.103v17.665c0 .806.236 1.593.678 2.267l21.109 32.109a4.12 4.12 0 0 0 3.447 1.859h34.641A4.125 4.125 0 0 0 64 59.878`}),t[14]=_,t[15]=v);let y,b;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,c.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),b=(0,c.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM16.993 16.992h6.442q1.586 0 2.78.579 1.196.579 1.845 1.63.648 1.05.648 2.432c0 .922-.22 1.759-.659 2.466q-.66 1.062-1.87 1.646-1.212.584-2.83.584h-3.43V32h-2.927zm7.54 6.63q.553-.273.852-.782.3-.51.3-1.195c0-.685-.1-.842-.3-1.174q-.3-.5-.852-.772-.552-.273-1.291-.273h-3.323v4.47h3.323q.74 0 1.291-.273M32.572 31.664q-1.26-.59-1.972-1.65t-.735-2.444h2.937q0 .654.343 1.147t.954.772q.611.278 1.404.278c.53 0 .952-.083 1.335-.251q.572-.252.89-.702c.317-.45.315-.643.315-1.029q0-.718-.434-1.19-.435-.471-1.195-.654l-2.647-.59q-1.073-.234-1.866-.809a4 4 0 0 1-1.232-1.42q-.44-.846-.44-1.908 0-1.286.665-2.31.665-1.023 1.854-1.597 1.19-.573 2.702-.573c1.512 0 1.933.186 2.733.558q1.2.558 1.87 1.549t.681 2.277h-2.926q0-.546-.29-.98a1.9 1.9 0 0 0-.82-.676 2.9 2.9 0 0 0-1.216-.24q-.687 0-1.206.23a1.9 1.9 0 0 0-.81.643q-.29.412-.289.96 0 .621.402 1.028t1.099.579l2.551.557q1.104.226 1.967.852a4.45 4.45 0 0 1 1.345 1.544q.482.917.482 1.999 0 1.329-.701 2.385-.703 1.054-1.967 1.656-1.264.6-2.895.6-1.63 0-2.888-.59`}),t[16]=y,t[17]=b):(y=t[16],b=t[17]);let x;return t[18]!==e||t[19]!==v||t[20]!==p||t[21]!==g?(x=(0,c.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[p,m,g,v,y,b]}),t[18]=e,t[19]=v,t[20]=p,t[21]=g,t[22]=x):x=t[22],x},_=e=>{let t=(0,o.c)(23),[n,r]=l(`pycharm`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,c.jsx)(`stop`,{offset:`.1`,stopColor:`#00D886`}),a=(0,c.jsx)(`stop`,{offset:`.59`,stopColor:`#F0EB18`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let s;t[2]===n?s=t[3]:(s=(0,c.jsxs)(`linearGradient`,{id:n,x1:`7.671`,x2:`61.126`,y1:`64.393`,y2:`39.609`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=s);let u,d;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,c.jsx)(`stop`,{offset:`.3`,stopColor:`#F0EB18`}),d=(0,c.jsx)(`stop`,{offset:`.7`,stopColor:`#00C4F4`}),t[4]=u,t[5]=d):(u=t[4],d=t[5]);let f;t[6]===r?f=t[7]:(f=(0,c.jsxs)(`linearGradient`,{id:r,x1:`59.933`,x2:`1.337`,y1:`59.676`,y2:`1.08`,gradientUnits:`userSpaceOnUse`,children:[u,d]}),t[6]=r,t[7]=f);let p;t[8]!==s||t[9]!==f?(p=(0,c.jsxs)(`defs`,{children:[s,f]}),t[8]=s,t[9]=f,t[10]=p):p=t[10];let m;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,c.jsx)(`path`,{fill:`#00D886`,d:`M6 47.55v12.259a4.125 4.125 0 0 0 4.19 4.124l11.044-.176a4.13 4.13 0 0 0 3.066-1.44l32.707-38.158c.64-.748.993-1.7.993-2.685V10.125A4.125 4.125 0 0 0 53.875 6H42.872c-1.19 0-2.321.514-3.105 1.409L7.021 44.834A4.12 4.12 0 0 0 6 47.55`}),t[11]=m):m=t[11];let h=`url(#${n})`,g;t[12]===h?g=t[13]:(g=(0,c.jsx)(`path`,{fill:h,d:`M6 49.015v10.862a4.125 4.125 0 0 0 4.125 4.125h12.566q.3 0 .598-.044l37.185-5.448A4.125 4.125 0 0 0 64 54.429V39.03a4.125 4.125 0 0 0-4.127-4.125l-18.504.005c-.426 0-.849.066-1.254.195L8.871 45.085A4.13 4.13 0 0 0 6 49.015z`}),t[12]=h,t[13]=g);let _=`url(#${r})`,v;t[14]===_?v=t[15]:(v=(0,c.jsx)(`path`,{fill:_,d:`M0 4.125v34.128c0 1.658.993 3.154 2.52 3.8L39.943 57.85c.518.219 1.075.33 1.638.324l18.329-.15A4.125 4.125 0 0 0 64 53.9V36.234c0-.806-.236-1.593-.678-2.267L42.213 1.86A4.13 4.13 0 0 0 38.766 0H4.125A4.125 4.125 0 0 0 0 4.125`}),t[14]=_,t[15]=v);let y,b;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,c.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),b=(0,c.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM16.993 16.992h6.442q1.586 0 2.78.579 1.196.579 1.845 1.63.648 1.05.648 2.432c0 .922-.22 1.759-.659 2.466q-.66 1.062-1.87 1.646-1.212.584-2.83.584h-3.43V32h-2.927zm7.54 6.63q.553-.273.852-.782.3-.51.3-1.195c0-.685-.1-.842-.3-1.174q-.3-.5-.852-.772-.552-.273-1.291-.273h-3.324v4.47h3.324q.74 0 1.291-.273M33.713 31.243a7.3 7.3 0 0 1-2.744-2.787q-.996-1.774-.996-3.961c0-2.187.332-2.778.996-3.96a7.3 7.3 0 0 1 2.744-2.787q1.748-1.013 3.902-1.014 1.823 0 3.344.675a6.86 6.86 0 0 1 2.535 1.892 6.44 6.44 0 0 1 1.356 2.793h-3.066a4.05 4.05 0 0 0-.895-1.431 4 4 0 0 0-1.43-.95 4.9 4.9 0 0 0-1.823-.332q-1.33 0-2.402.665a4.6 4.6 0 0 0-1.677 1.827q-.606 1.164-.606 2.62 0 1.459.606 2.621a4.6 4.6 0 0 0 1.677 1.828q1.072.664 2.402.664.986 0 1.822-.332a4.02 4.02 0 0 0 2.326-2.38h3.066a6.44 6.44 0 0 1-1.356 2.792 6.86 6.86 0 0 1-2.535 1.892q-1.522.675-3.344.675-2.154 0-3.902-1.013z`}),t[16]=y,t[17]=b):(y=t[16],b=t[17]);let x;return t[18]!==e||t[19]!==v||t[20]!==p||t[21]!==g?(x=(0,c.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[p,m,g,v,y,b]}),t[18]=e,t[19]=v,t[20]=p,t[21]=g,t[22]=x):x=t[22],x},v=e=>{let t=(0,o.c)(23),[n,r]=l(`rider`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,c.jsx)(`stop`,{offset:`.21`,stopColor:`#007DFE`}),a=(0,c.jsx)(`stop`,{offset:`.55`,stopColor:`#FFB700`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let s;t[2]===n?s=t[3]:(s=(0,c.jsxs)(`linearGradient`,{id:n,x1:`64.391`,x2:`39.607`,y1:`56.329`,y2:`2.874`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=s);let u,d;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,c.jsx)(`stop`,{offset:`.23`,stopColor:`#FFB700`}),d=(0,c.jsx)(`stop`,{offset:`.73`,stopColor:`#FF0A67`}),t[4]=u,t[5]=d):(u=t[4],d=t[5]);let f;t[6]===r?f=t[7]:(f=(0,c.jsxs)(`linearGradient`,{id:r,x1:`59.676`,x2:`1.08`,y1:`4.067`,y2:`62.663`,gradientUnits:`userSpaceOnUse`,children:[u,d]}),t[6]=r,t[7]=f);let p;t[8]!==s||t[9]!==f?(p=(0,c.jsxs)(`defs`,{children:[s,f]}),t[8]=s,t[9]=f,t[10]=p):p=t[10];let m;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,c.jsx)(`path`,{fill:`#007DFE`,d:`M47.55 58h12.258a4.125 4.125 0 0 0 4.124-4.19l-.176-11.044a4.12 4.12 0 0 0-1.44-3.066L24.158 6.993A4.13 4.13 0 0 0 21.474 6H10.125A4.125 4.125 0 0 0 6 10.125v11.003c0 1.19.514 2.321 1.409 3.105l37.425 32.746A4.12 4.12 0 0 0 47.55 58`}),t[11]=m):m=t[11];let h=`url(#${n})`,g;t[12]===h?g=t[13]:(g=(0,c.jsx)(`path`,{fill:h,d:`M49.013 58h10.862A4.125 4.125 0 0 0 64 53.875V41.309q0-.3-.044-.598L58.508 3.527A4.125 4.125 0 0 0 54.427 0H39.029a4.125 4.125 0 0 0-4.125 4.126l.005 18.505c0 .425.066.848.195 1.253l9.979 31.246a4.13 4.13 0 0 0 3.93 2.87`}),t[12]=h,t[13]=g);let _=`url(#${r})`,v;t[14]===_?v=t[15]:(v=(0,c.jsx)(`path`,{fill:_,d:`M4.125 64h34.128a4.13 4.13 0 0 0 3.8-2.52L57.85 24.057c.219-.518.33-1.076.324-1.638l-.15-18.329A4.124 4.124 0 0 0 53.9 0H36.234c-.805 0-1.593.236-2.266.678L1.86 21.787A4.13 4.13 0 0 0 0 25.234v34.641A4.125 4.125 0 0 0 4.125 64`}),t[14]=_,t[15]=v);let y,b;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,c.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),b=(0,c.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM16.992 16.992h6.442q1.576 0 2.776.579t1.85 1.63.648 2.432c0 .922-.22 1.75-.66 2.46q-.66 1.068-1.875 1.651-1.217.584-2.825.584h-3.43v5.67h-2.926zm7.54 6.63q.553-.274.853-.783.3-.51.3-1.184c0-.45-.1-.852-.3-1.185q-.3-.498-.852-.772-.552-.273-1.292-.273h-3.323v4.47h3.323q.74 0 1.292-.273m-2.63 1.763h3.194L29.03 32h-3.355zM31.613 16.992h5.713q2.133 0 3.822.965a6.9 6.9 0 0 1 2.641 2.674q.954 1.71.954 3.864t-.953 3.865a6.9 6.9 0 0 1-2.642 2.674q-1.688.964-3.822.964h-5.713zm8.028 11.876q1.008-.6 1.555-1.72t.547-2.653q0-1.534-.547-2.653-.547-1.12-1.555-1.721-1.008-.6-2.347-.6h-2.755v9.947h2.755q1.34 0 2.347-.6`}),t[16]=y,t[17]=b):(y=t[16],b=t[17]);let x;return t[18]!==e||t[19]!==v||t[20]!==p||t[21]!==g?(x=(0,c.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[p,m,g,v,y,b]}),t[18]=e,t[19]=v,t[20]=p,t[21]=g,t[22]=x):x=t[22],x},y=e=>{let t=(0,o.c)(23),[n,r]=l(`rubymine`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,c.jsx)(`stop`,{offset:`.29`,stopColor:`#FF2358`}),a=(0,c.jsx)(`stop`,{offset:`.75`,stopColor:`#7256FF`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let s;t[2]===n?s=t[3]:(s=(0,c.jsxs)(`linearGradient`,{id:n,x1:`4.325`,x2:`62.921`,y1:`59.932`,y2:`1.337`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=s);let u,d;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,c.jsx)(`stop`,{offset:`.29`,stopColor:`#FF8100`}),d=(0,c.jsx)(`stop`,{offset:`.56`,stopColor:`#FF2358`}),t[4]=u,t[5]=d):(u=t[4],d=t[5]);let f;t[6]===r?f=t[7]:(f=(0,c.jsxs)(`linearGradient`,{id:r,x1:`-.391`,x2:`24.393`,y1:`7.671`,y2:`61.125`,gradientUnits:`userSpaceOnUse`,children:[u,d]}),t[6]=r,t[7]=f);let p;t[8]!==s||t[9]!==f?(p=(0,c.jsxs)(`defs`,{children:[s,f]}),t[8]=s,t[9]=f,t[10]=p):p=t[10];let m=`url(#${n})`,h;t[11]===m?h=t[12]:(h=(0,c.jsx)(`path`,{fill:m,d:`M59.875 0H25.748a4.13 4.13 0 0 0-3.8 2.52L6.151 39.942a4.1 4.1 0 0 0-.325 1.639l.15 18.328A4.125 4.125 0 0 0 10.101 64h17.666c.805 0 1.593-.235 2.266-.678l32.109-21.108A4.12 4.12 0 0 0 64 38.766V4.125A4.125 4.125 0 0 0 59.875 0`}),t[11]=m,t[12]=h);let g=`url(#${r})`,_;t[13]===g?_=t[14]:(_=(0,c.jsx)(`path`,{fill:g,d:`M14.987 6H4.126A4.125 4.125 0 0 0 0 10.125v12.566q0 .3.044.598l5.448 37.184A4.125 4.125 0 0 0 9.572 64H24.97a4.125 4.125 0 0 0 4.125-4.126l-.004-18.504c0-.426-.067-.85-.196-1.254L18.917 8.87A4.13 4.13 0 0 0 14.987 6z`}),t[13]=g,t[14]=_);let v,y,b;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,c.jsx)(`path`,{fill:`#FF8100`,d:`M16.45 6H4.19a4.125 4.125 0 0 0-4.124 4.19L0 21c.019 1.181.786 2.531 1.683 3.3l38.158 32.706c.748.641 1.7.993 2.684.993h11.35A4.125 4.125 0 0 0 58 53.875V42.872c0-1.189-.514-2.32-1.41-3.104L19.167 7.021A4.12 4.12 0 0 0 16.45 6`}),y=(0,c.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),b=(0,c.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM17.012 16.992h6.442q1.575 0 2.776.579t1.849 1.63.648 2.432c0 .922-.22 1.75-.66 2.46q-.658 1.068-1.875 1.651-1.216.584-2.824.584h-3.43v5.67h-2.926zm7.54 6.63q.552-.274.852-.783.3-.51.3-1.184c0-.45-.1-.852-.3-1.185q-.3-.498-.852-.772-.552-.273-1.292-.273h-3.323v4.47h3.323q.74 0 1.292-.273m-2.631 1.763h3.194L29.05 32h-3.355zM31.633 16.992h4.073l3.087 9.85.257 1.287.225-1.286 2.98-9.85h4.138v15.005h-2.894V21.29l.043-.782-3.494 11.49h-2.123l-3.451-11.415.043.707v10.708h-2.883V16.992z`}),t[15]=v,t[16]=y,t[17]=b):(v=t[15],y=t[16],b=t[17]);let x;return t[18]!==e||t[19]!==_||t[20]!==p||t[21]!==h?(x=(0,c.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[p,h,_,v,y,b]}),t[18]=e,t[19]=_,t[20]=p,t[21]=h,t[22]=x):x=t[22],x},b=e=>{let t=(0,o.c)(23),[n,r]=l(`rustrover`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,c.jsx)(`stop`,{offset:`.08`,stopColor:`#00D886`}),a=(0,c.jsx)(`stop`,{offset:`.46`,stopColor:`#FFAB00`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let s;t[2]===n?s=t[3]:(s=(0,c.jsxs)(`linearGradient`,{id:n,x1:`7.671`,x2:`61.125`,y1:`64.393`,y2:`39.609`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=s);let u,d;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,c.jsx)(`stop`,{offset:`.19`,stopColor:`#FFAB00`}),d=(0,c.jsx)(`stop`,{offset:`.83`,stopColor:`#FF004C`}),t[4]=u,t[5]=d):(u=t[4],d=t[5]);let f;t[6]===r?f=t[7]:(f=(0,c.jsxs)(`linearGradient`,{id:r,x1:`59.932`,x2:`1.336`,y1:`59.676`,y2:`1.08`,gradientUnits:`userSpaceOnUse`,children:[u,d]}),t[6]=r,t[7]=f);let p;t[8]!==s||t[9]!==f?(p=(0,c.jsxs)(`defs`,{children:[s,f]}),t[8]=s,t[9]=f,t[10]=p):p=t[10];let m;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,c.jsx)(`path`,{fill:`#00D886`,d:`M6 47.55v12.258a4.125 4.125 0 0 0 4.19 4.124l11.044-.176a4.12 4.12 0 0 0 3.066-1.44l32.707-38.158c.64-.747.993-1.7.993-2.684V10.125A4.125 4.125 0 0 0 53.875 6H42.872c-1.19 0-2.321.514-3.105 1.409L7.021 44.833A4.12 4.12 0 0 0 6 47.55`}),t[11]=m):m=t[11];let h=`url(#${n})`,g;t[12]===h?g=t[13]:(g=(0,c.jsx)(`path`,{fill:h,d:`M6 49.015v10.862a4.125 4.125 0 0 0 4.125 4.125h12.566q.3 0 .598-.044l37.185-5.448A4.125 4.125 0 0 0 64 54.429V39.03a4.125 4.125 0 0 0-4.127-4.125l-18.504.005c-.426 0-.849.066-1.254.195L8.871 45.085A4.13 4.13 0 0 0 6 49.015z`}),t[12]=h,t[13]=g);let _=`url(#${r})`,v;t[14]===_?v=t[15]:(v=(0,c.jsx)(`path`,{fill:_,d:`M0 4.125v34.128c0 1.658.993 3.154 2.52 3.8L39.943 57.85c.518.219 1.075.33 1.638.324l18.329-.15A4.125 4.125 0 0 0 64 53.9V36.234c0-.806-.236-1.593-.678-2.267L42.213 1.86A4.13 4.13 0 0 0 38.766 0H4.125A4.125 4.125 0 0 0 0 4.125`}),t[14]=_,t[15]=v);let y,b;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,c.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),b=(0,c.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM16.992 16.992h6.442q1.576 0 2.776.579t1.85 1.63.648 2.432c0 .922-.22 1.75-.66 2.46q-.66 1.068-1.875 1.651-1.217.584-2.825.584h-3.43v5.67h-2.926zm7.54 6.63q.553-.274.853-.783.3-.51.3-1.184c0-.45-.1-.852-.3-1.185q-.3-.498-.852-.772-.552-.273-1.292-.273h-3.323v4.47h3.323q.74 0 1.292-.273m-2.63 1.763h3.194L29.03 32h-3.355zM31.613 16.992h6.442q1.575 0 2.776.579t1.85 1.63.648 2.432c0 .922-.22 1.75-.66 2.46q-.659 1.068-1.875 1.651-1.217.584-2.824.584h-3.43v5.67h-2.927zm7.54 6.63q.553-.274.853-.783.3-.51.3-1.184c0-.45-.1-.852-.3-1.185q-.3-.498-.852-.772-.552-.273-1.292-.273h-3.323v4.47h3.323q.74 0 1.292-.273m-2.63 1.763h3.194L43.651 32h-3.355z`}),t[16]=y,t[17]=b):(y=t[16],b=t[17]);let x;return t[18]!==e||t[19]!==v||t[20]!==p||t[21]!==g?(x=(0,c.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[p,m,g,v,y,b]}),t[18]=e,t[19]=v,t[20]=p,t[21]=g,t[22]=x):x=t[22],x},x=e=>{let t=(0,o.c)(23),[n,r]=l(`webstorm`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,c.jsx)(`stop`,{offset:`.22`,stopColor:`#F0EB18`}),a=(0,c.jsx)(`stop`,{offset:`.59`,stopColor:`#00C4F4`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let s;t[2]===n?s=t[3]:(s=(0,c.jsxs)(`linearGradient`,{id:n,x1:`7.671`,x2:`61.126`,y1:`64.392`,y2:`39.609`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=s);let u,d;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,c.jsx)(`stop`,{offset:`.19`,stopColor:`#00C4F4`}),d=(0,c.jsx)(`stop`,{offset:`.83`,stopColor:`#007DFE`}),t[4]=u,t[5]=d):(u=t[4],d=t[5]);let f;t[6]===r?f=t[7]:(f=(0,c.jsxs)(`linearGradient`,{id:r,x1:`59.932`,x2:`1.337`,y1:`59.676`,y2:`1.079`,gradientUnits:`userSpaceOnUse`,children:[u,d]}),t[6]=r,t[7]=f);let p;t[8]!==s||t[9]!==f?(p=(0,c.jsxs)(`defs`,{children:[s,f]}),t[8]=s,t[9]=f,t[10]=p):p=t[10];let m;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,c.jsx)(`path`,{fill:`#F0EB18`,d:`M6 47.55v12.258a4.125 4.125 0 0 0 4.19 4.124l11.044-.176a4.12 4.12 0 0 0 3.066-1.44l32.707-38.158c.64-.747.993-1.7.993-2.684V10.125A4.125 4.125 0 0 0 53.875 6H42.872c-1.19 0-2.321.514-3.105 1.409L7.021 44.833A4.12 4.12 0 0 0 6 47.55`}),t[11]=m):m=t[11];let h=`url(#${n})`,g;t[12]===h?g=t[13]:(g=(0,c.jsx)(`path`,{fill:h,d:`M6 49.015v10.862a4.125 4.125 0 0 0 4.125 4.125h12.566q.3 0 .598-.044l37.185-5.448A4.125 4.125 0 0 0 64 54.429V39.03a4.125 4.125 0 0 0-4.127-4.125l-18.504.005c-.426 0-.849.066-1.254.195L8.871 45.085A4.13 4.13 0 0 0 6 49.015z`}),t[12]=h,t[13]=g);let _=`url(#${r})`,v;t[14]===_?v=t[15]:(v=(0,c.jsx)(`path`,{fill:_,d:`M0 4.125v34.128c0 1.658.993 3.154 2.52 3.8L39.943 57.85c.518.219 1.075.33 1.638.324l18.329-.15A4.125 4.125 0 0 0 64 53.9V36.234c0-.806-.236-1.593-.678-2.267L42.213 1.86A4.13 4.13 0 0 0 38.766 0H4.125A4.125 4.125 0 0 0 0 4.125`}),t[14]=_,t[15]=v);let y,b;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,c.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),b=(0,c.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM19.051 16.992l2.423 10.955 2.583-10.955h2.958l2.701 10.955 2.348-10.955h2.97l-3.645 15.006h-3.334l-2.53-10.9-2.561 10.9H19.64l-3.623-15.006zM38.662 31.664q-1.26-.59-1.972-1.65t-.735-2.444h2.937q0 .654.343 1.147t.954.772q.61.278 1.404.278c.53 0 .952-.083 1.335-.251q.573-.252.889-.702t.316-1.029q0-.718-.434-1.19-.435-.471-1.195-.654l-2.648-.59q-1.071-.234-1.865-.809a4 4 0 0 1-1.232-1.42q-.44-.846-.44-1.908 0-1.286.665-2.31.664-1.023 1.854-1.597 1.19-.573 2.701-.573c1.008 0 1.934.186 2.734.558q1.2.558 1.87 1.549t.68 2.277h-2.925q0-.546-.29-.98c-.29-.435-.466-.515-.82-.676a2.9 2.9 0 0 0-1.217-.24q-.686 0-1.205.23a1.9 1.9 0 0 0-.81.643q-.29.412-.289.96 0 .621.402 1.028t1.099.579l2.55.557q1.105.226 1.968.852a4.45 4.45 0 0 1 1.345 1.544 4.2 4.2 0 0 1 .482 1.999q0 1.329-.702 2.385-.702 1.054-1.966 1.656-1.266.6-2.894.6-1.63 0-2.889-.59`}),t[16]=y,t[17]=b):(y=t[16],b=t[17]);let x;return t[18]!==e||t[19]!==v||t[20]!==p||t[21]!==g?(x=(0,c.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[p,m,g,v,y,b]}),t[18]=e,t[19]=v,t[20]=p,t[21]=g,t[22]=x):x=t[22],x};export{m as a,_ as c,b as d,x as f,p as i,v as l,d as n,h as o,a as p,f as r,g as s,u as t,y as u};
|
package/dist/client/assets/{KeybindingsSettings-CW3RRi-7.js → KeybindingsSettings-LuI98pdF.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as e,t}from"./react-PSPkXoKo.js";import{t as n}from"./compiler-runtime-BNrXlsa1.js";import{Jt as r,Ot as i,bn as a,fn as o,gn as s,gt as c,pn as l}from"./projectAtoms-DUEBb7Zz.js";import{A as u,Cr as d,H as f,M as p,Ni as m,R as h,Sr as g,V as _,br as v,k as y,q as b}from"./composerDraftStore-D12lUSfh.js";import{a as x,i as S}from"./toast-DE7a4wkW.js";import{ir as C}from"./providerIconUtils-uhWb4bdg.js";import{t as w}from"./keyboard-DDTWQkr0.js";import{t as T}from"./plus-4Oy56d-3.js";import{t as E}from"./triangle-alert-DJef_Uvh.js";import{t as D}from"./undo-2-DeZ2cMGS.js";import{t as O}from"./x-fI9snvD3.js";import{t as k}from"./shallow-Dmd-gez1.js";import{t as A}from"./input-B9-RWT56.js";import{n as j}from"./editorPreferences-BLeEBSD_.js";import{i as M,n as N,r as P}from"./settingsLayout-D22Mm0u3.js";var F=e(t(),1),I=n(),L={terminal:{id:`terminal`,label:`Terminal`,sortWeight:10},workspace:{id:`workspace`,label:`Workspace`,sortWeight:20},diff:{id:`diff`,label:`Diff`,sortWeight:30},commandPalette:{id:`commandPalette`,label:`Command palette`,sortWeight:40},chat:{id:`chat`,label:`Chat`,sortWeight:50},editor:{id:`editor`,label:`Editor`,sortWeight:60},modelPicker:{id:`modelPicker`,label:`Model picker`,sortWeight:70},thread:{id:`thread`,label:`Threads`,sortWeight:80},script:{id:`script`,label:`Project scripts`,sortWeight:90}},R={"terminal.toggle":{title:`Toggle terminal drawer`,sortWeight:1},"terminal.split":{title:`Split terminal`,sortWeight:2},"terminal.new":{title:`New terminal`,sortWeight:3},"terminal.close":{title:`Close terminal`,sortWeight:4},"workspace.files":{title:`Open workspace files`,sortWeight:1},"workspace.review":{title:`Open workspace review`,sortWeight:2},"workspace.terminal":{title:`Open workspace terminal`,sortWeight:3},"diff.toggle":{title:`Toggle diff view`,sortWeight:1},"commandPalette.toggle":{title:`Open command palette`,sortWeight:1},"chat.new":{title:`New chat`,sortWeight:1},"chat.newLocal":{title:`New chat (local environment)`,sortWeight:2},"editor.openFavorite":{title:`Open in preferred editor`,sortWeight:1},"modelPicker.toggle":{title:`Toggle model picker`,sortWeight:1},"modelPicker.jump.1":{title:`Pick model 1`,sortWeight:2},"modelPicker.jump.2":{title:`Pick model 2`,sortWeight:3},"modelPicker.jump.3":{title:`Pick model 3`,sortWeight:4},"modelPicker.jump.4":{title:`Pick model 4`,sortWeight:5},"modelPicker.jump.5":{title:`Pick model 5`,sortWeight:6},"modelPicker.jump.6":{title:`Pick model 6`,sortWeight:7},"modelPicker.jump.7":{title:`Pick model 7`,sortWeight:8},"modelPicker.jump.8":{title:`Pick model 8`,sortWeight:9},"modelPicker.jump.9":{title:`Pick model 9`,sortWeight:10},"thread.previous":{title:`Previous thread`,sortWeight:1},"thread.next":{title:`Next thread`,sortWeight:2},"thread.jump.1":{title:`Jump to thread 1`,sortWeight:3},"thread.jump.2":{title:`Jump to thread 2`,sortWeight:4},"thread.jump.3":{title:`Jump to thread 3`,sortWeight:5},"thread.jump.4":{title:`Jump to thread 4`,sortWeight:6},"thread.jump.5":{title:`Jump to thread 5`,sortWeight:7},"thread.jump.6":{title:`Jump to thread 6`,sortWeight:8},"thread.jump.7":{title:`Jump to thread 7`,sortWeight:9},"thread.jump.8":{title:`Jump to thread 8`,sortWeight:10},"thread.jump.9":{title:`Jump to thread 9`,sortWeight:11}};function z(e){let t=e.indexOf(`.`),n=t===-1?e:e.slice(0,t);return n===`script`?L.script:L[n]??L.script}function B(e,t){let n=z(e),r=R[e];if(r)return{category:n,title:r.title,sortWeight:r.sortWeight};let i=e.match(/^script\.([a-z0-9][a-z0-9-]*)\.run$/)?.[1]??e;return{category:n,title:t??`Run: ${i}`,sortWeight:100}}var V=[{id:`always`,label:`Always`,value:void 0},{id:`terminalFocus`,label:`Terminal focused`,value:`terminalFocus`},{id:`notTerminalFocus`,label:`Not in terminal`,value:`!terminalFocus`},{id:`terminalOpen`,label:`Terminal open`,value:`terminalOpen`},{id:`notTerminalOpen`,label:`Terminal not open`,value:`!terminalOpen`},{id:`modelPickerOpen`,label:`Model picker open`,value:`modelPickerOpen`},{id:`commandPaletteOpen`,label:`Command palette open`,value:`commandPaletteOpen`},{id:`composerFocus`,label:`Composer focused`,value:`composerFocus`},{id:`notComposerFocus`,label:`Not in composer`,value:`!composerFocus`}],H=new Map(V.map(e=>[e.value,e])),U=new Map(V.map(e=>[e.value===void 0?void 0:e.value.replace(/\s+/g,``),e]));function W(e){return e===void 0?H.get(void 0):H.get(e)||U.get(e.replace(/\s+/g,``))}function G(e){let t=W(e);return t?t.label:e??`Always`}function K(e){if(e)switch(e.type){case`identifier`:return e.name;case`not`:return`!${K(e.node)}`;case`and`:return`(${K(e.left)} && ${K(e.right)})`;case`or`:return`(${K(e.left)} || ${K(e.right)})`}}function ee(e,t){return(e===void 0?``:e.replace(/\s+/g,``))===(t===void 0?``:t.replace(/\s+/g,``))}function te(e,t){let n=e[t];if(!n)return[];let r=[];return e.forEach((e,i)=>{i!==t&&e.command!==n.command&&e.key===n.key&&ee(e.when,n.when)&&r.push({key:n.key,otherCommand:e.command,otherWhen:e.when})}),r}function ne(e){let t=new Map;return e.forEach((n,r)=>{let i=te(e,r);if(i.length===0)return;let a=e[r].command,o=t.get(a)??[];o.push(...i),t.set(a,o)}),t}function q(e){return/mac|iphone|ipad|ipod/i.test(e)}var J=new Set([`control`,`shift`,`alt`,`altgraph`,`meta`,`os`,`hyper`,`super`,`fn`,`capslock`,`numlock`,`scrolllock`]),re=new Set([`escape`,`tab`,`enter`]);function ie(e,t){let n=e.toLowerCase();if(n===` `||n===`spacebar`)return`space`;if(n===`esc`)return`escape`;if(n===`arrowup`)return`up`;if(n===`arrowdown`)return`down`;if(n===`arrowleft`)return`left`;if(n===`arrowright`)return`right`;if(t){let e=t.match(/^Digit(\d)$/);if(e)return e[1];if(t===`BracketLeft`)return`[`;if(t===`BracketRight`)return`]`}return n}function Y(e,t){let n=e.key.toLowerCase();if(J.has(n))return null;let r=q(t?.platform??(typeof navigator<`u`?navigator.platform:``)),i=r?e.metaKey:e.ctrlKey;if(!(i||e.shiftKey||e.altKey||(r?e.ctrlKey:e.metaKey))&&re.has(n))return null;let a=ie(e.key,e.code);return a.length===0?null:{key:a,modKey:i,metaKey:!r&&e.metaKey,ctrlKey:r&&e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey}}var ae={mod:`⌘`,meta:`⌘`,cmd:`⌘`,ctrl:`⌃`,control:`⌃`,shift:`⇧`,alt:`⌥`,option:`⌥`},oe={mod:`Ctrl`,meta:`Meta`,cmd:`Meta`,ctrl:`Ctrl`,control:`Ctrl`,shift:`Shift`,alt:`Alt`,option:`Alt`},se={space:`Space`,enter:`Enter`,escape:`Esc`,up:`↑`,down:`↓`,left:`←`,right:`→`,tab:`Tab`,backspace:`⌫`,delete:`Del`};function ce(e,t){let n=q(t?.platform??(typeof navigator<`u`?navigator.platform:``))?ae:oe,r=[];e.modKey&&r.push(n.mod),e.metaKey&&r.push(n.meta),e.ctrlKey&&r.push(n.ctrl),e.altKey&&r.push(n.alt),e.shiftKey&&r.push(n.shift);let i=se[e.key]??(e.key.length===1?e.key.toUpperCase():e.key);return r.push(i),r}function le(e){let t=[];e.modKey&&t.push(`mod`),e.metaKey&&t.push(`meta`),e.ctrlKey&&t.push(`ctrl`),e.altKey&&t.push(`alt`),e.shiftKey&&t.push(`shift`);let n=e.key===` `?`space`:e.key;return t.push(n),t.join(`+`)}var X=m(),ue=[],de=(()=>{let e=new Map;for(let t of a){let n=`${t.key}|${t.when??``}`,r=e.get(t.command)??new Set;r.add(n),e.set(t.command,r)}return e})(),Z=new Set(a.map(e=>e.command));function Q(e,t){return`${e.command}|${e.key}|${e.when??``}|${t}`}function fe(e){return{key:le(e.shortcut),command:e.command,when:K(e.whenAst)}}function $(e){return e.map((e,t)=>({...fe(e),__id:Q(e,t)}))}function pe(e){return e.map(({__id:e,...t})=>t)}function me(e){return a.filter(t=>t.command===e).map(e=>Object.assign({},e))}function he(e,t){if(!Z.has(e))return`custom`;let n=de.get(e);if(!n)return`custom`;if(t.length!==n.size)return`modified`;for(let e of t){let t=`${e.key}|${e.when??``}`;if(!n.has(t))return`modified`}return`default`}function ge(e,t,n){return n?[t.toLowerCase(),e.command.toLowerCase(),e.key.toLowerCase(),G(e.when).toLowerCase()].some(e=>e.includes(n)):!0}function _e(){return Math.random().toString(36).slice(2)}function ve(){let e=l(),t=s(),n=o(),a=typeof navigator<`u`?navigator.platform:``,u=d(a),[f,p]=(0,F.useState)(!1),[m,h]=(0,F.useState)(null),g=(0,F.useCallback)(()=>{if(!t)return;h(null),p(!0);let e=j(n??[]);if(!e){h(`No available editors found.`),p(!1);return}r().shell.openInEditor(t,e).catch(e=>{h(e instanceof Error?e.message:`Unable to open keybindings file.`)}).finally(()=>{p(!1)})},[n,t]),_=i(k(c)),y=(0,F.useMemo)(()=>{let e=new Set,t=new Map;for(let n of _)for(let r of n.scripts){let n=`script.${r.id}.run`;e.add(n),t.has(n)||t.set(n,`Run: ${r.name}`)}return{commandList:Array.from(e),titles:t}},[_]),b=e?.keybindings??ue,[T,O]=(0,F.useState)(()=>$(b)),[I,R]=(0,F.useState)(()=>JSON.stringify(pe($(b)))),z=(0,F.useRef)(!1);(0,F.useEffect)(()=>{let e=JSON.stringify(pe($(b)));e!==I&&(R(e),z.current||O($(b)))},[b,I]);let V=(0,F.useCallback)(async e=>{z.current=!0;try{await r().keybindings.replaceCustom({rules:pe(e)})}catch(e){S.add(x({type:`error`,title:`Could not save keybindings`,description:e instanceof Error?e.message:`An unknown error occurred.`})),O($(b))}finally{z.current=!1}},[b]),H=(0,F.useCallback)((e,t)=>{O(n=>{let r=n.slice(),i=r[e];if(!i)return n;let a=le(t);return a===i.key?n:(r[e]={...i,key:a,__id:i.__id},V(r),r)})},[V]),U=(0,F.useCallback)(e=>{O(t=>{let n={command:e,key:``,when:void 0,__id:`placeholder-${_e()}`},r=(()=>{let n=-1;return t.forEach((t,r)=>{t.command===e&&(n=r)}),n})();return r===-1?[...t,n]:[...t.slice(0,r+1),n,...t.slice(r+1)]})},[]),W=(0,F.useCallback)(e=>{O(t=>{let n=t.slice();return n.splice(e,1),V(n),n})},[V]),G=(0,F.useCallback)((e,t)=>{O(n=>{let r=n.slice(),i=r[e];return!i||(i.when??void 0)===t?n:(r[e]={...i,when:t,__id:i.__id},V(r),r)})},[V]),K=(0,F.useCallback)(e=>{O(t=>{let n=t[e];if(!n)return t;let r=n.command;if(!Z.has(r)){let n=t.slice();return n.splice(e,1),V(n),n}let i=me(r),a=t.filter(e=>e.command!==r);for(let e of i)a.push({...e,__id:`default-${r}-${_e()}`});return V(a),a})},[V]),ee=(0,F.useCallback)(e=>{O(t=>{let n=t.filter(t=>t.command!==e);if(Z.has(e))for(let t of me(e))n.push({...t,__id:`default-${e}-${_e()}`});return V(n),n})},[V]),te=(0,F.useCallback)(async()=>{O([]);try{await r().keybindings.replaceCustom({rules:[]})}catch(e){S.add(x({type:`error`,title:`Could not restore default keybindings`,description:e instanceof Error?e.message:`An unknown error occurred.`})),O($(b))}},[b]),q=(0,F.useRef)(new Map),J=(0,F.useCallback)(e=>{let t=q.current.get(e);t&&(t.scrollIntoView({behavior:`smooth`,block:`center`}),t.dataset.flash=`true`,window.setTimeout(()=>{delete t.dataset.flash},1100))},[]),[re,ie]=(0,F.useState)(``),Y=(0,F.useDeferredValue)(re.trim().toLowerCase()),ae=(0,F.useMemo)(()=>ne(T),[T]),oe=(0,F.useMemo)(()=>{let e=new Map;T.forEach((t,n)=>{let r=e.get(t.command);r?r.push(n):e.set(t.command,[n])});let t=new Set([...e.keys(),...Z,...y.commandList]),n=new Map;for(let r of t){let t=e.get(r)??[],i=t.map(e=>T[e]).filter(Boolean),a=B(r,y.titles.get(r)),o=he(r,i),s={key:``,command:r,when:void 0};if(!(Y.length===0||ge(s,a.title,Y)||i.some(e=>ge(e,a.title,Y))))continue;let c={command:r,title:a.title,indicesInDraft:t,status:o},l=n.get(a.category.id);l?l.push(c):n.set(a.category.id,[c])}let r=[];for(let e of Object.values(L).toSorted((e,t)=>e.sortWeight-t.sortWeight)){let t=n.get(e.id);!t||t.length===0||(t.sort((e,t)=>{let n=B(e.command,y.titles.get(e.command)),r=B(t.command,y.titles.get(t.command));return n.sortWeight-r.sortWeight}),r.push({category:e,rows:t}))}return r},[T,Y,y]),se=oe.reduce((e,t)=>e+t.rows.length,0),ce=(0,F.useMemo)(()=>({platform:a,draft:T,conflictsByCommand:ae,onRebind:H,onAddBinding:U,onRemoveBinding:W,onChangeWhen:G,onResetBinding:K,onResetCommand:ee,scrollToCommand:J,rowRefs:q}),[a,T,ae,H,U,W,G,K,ee,J]),de=e?.issues.filter(e=>e.kind.startsWith(`keybindings.`))??[],Q=(n??[]).length>0;return(0,X.jsxs)(N,{children:[(0,X.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,X.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,X.jsx)(`span`,{className:`grid size-9 place-items-center rounded-lg bg-accent text-foreground/70`,children:(0,X.jsx)(w,{className:`size-4`})}),(0,X.jsxs)(`div`,{children:[(0,X.jsx)(`h1`,{className:`text-lg font-semibold tracking-tight`,children:`Keybindings`}),(0,X.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Click any shortcut and press a new combination to rebind. Press Esc to cancel, Backspace to clear.`})]})]}),(0,X.jsxs)(v,{variant:`outline`,size:`xs`,onClick:()=>void te(),disabled:T.length===0,children:[(0,X.jsx)(D,{className:`size-3.5`}),`Restore defaults`]})]}),(0,X.jsx)(M,{title:`Configuration file`,children:(0,X.jsx)(P,{title:`Keybindings file`,description:"Open the persisted `keybindings.json` file to edit advanced bindings directly.",status:(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(`span`,{className:`block break-all font-mono text-[11px] text-foreground`,children:t??`Resolving keybindings path...`}),m?(0,X.jsx)(`span`,{className:`mt-1 block text-destructive`,children:m}):(0,X.jsx)(`span`,{className:`mt-1 block`,children:Q?`Opens in your preferred editor.`:`No available editors found.`})]}),control:(0,X.jsx)(v,{size:`xs`,variant:`outline`,disabled:!t||!Q||f,onClick:g,children:f?`Opening...`:`Open file`})})}),de.length>0?(0,X.jsxs)(`div`,{className:`flex items-start gap-2 rounded-lg border border-amber-500/30 bg-amber-500/10 px-3 py-2 text-xs text-amber-200`,children:[(0,X.jsx)(E,{className:`mt-0.5 size-4 shrink-0`}),(0,X.jsxs)(`div`,{className:`flex-1 space-y-0.5`,children:[de.map(e=>(0,X.jsx)(`p`,{children:e.message},`${e.kind}-${e.message}`)),t?(0,X.jsxs)(`p`,{className:`opacity-70`,children:[`Edit `,(0,X.jsx)(`code`,{className:`rounded bg-amber-500/20 px-1`,children:t}),` `,`to resolve.`]}):null]})]}):null,(0,X.jsxs)(`div`,{className:`relative`,children:[(0,X.jsx)(C,{className:`absolute left-3 top-1/2 size-3.5 -translate-y-1/2 text-muted-foreground/60`}),(0,X.jsx)(A,{type:`search`,placeholder:`Search by command, shortcut, or when…`,className:`pl-9`,value:re,onChange:e=>ie(e.target.value)})]}),se===0?(0,X.jsx)(`div`,{className:`rounded-lg border border-dashed border-border/60 px-6 py-12 text-center text-sm text-muted-foreground`,children:`No commands match your search.`}):oe.map(e=>(0,X.jsx)(M,{title:e.category.label,children:e.rows.map(e=>(0,X.jsx)(ye,{row:e,context:ce,isMac:u,scriptTitle:y.titles.get(e.command)},e.command))},e.category.id))]})}var ye=(0,F.memo)(function(e){let t=(0,I.c)(42),{row:n,context:r,isMac:i}=e,a;if(t[0]!==r||t[1]!==i||t[2]!==n.command||t[3]!==n.indicesInDraft||t[4]!==n.status||t[5]!==n.title){let e;t[7]===r.draft?e=t[8]:(e=e=>({index:e,rule:r.draft[e]}),t[7]=r.draft,t[8]=e);let o=n.indicesInDraft.map(e),s=r.conflictsByCommand.get(n.command)??[],c=s.slice(0,3),l=n.command,d;t[9]!==r.rowRefs.current||t[10]!==n.command?(d=e=>{r.rowRefs.current.set(n.command,e)},t[9]=r.rowRefs.current,t[10]=n.command,t[11]=d):d=t[11];let f;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(f=g(`group flex flex-col gap-2 border-t border-border/60 px-4 py-3 first:border-t-0 transition-colors data-[flash=true]:bg-amber-500/10 sm:px-5`),t[12]=f):f=t[12];let m;t[13]===n.title?m=t[14]:(m=(0,X.jsx)(`span`,{className:`truncate text-[13px] font-medium tracking-tight text-foreground`,children:n.title}),t[13]=n.title,t[14]=m);let h;t[15]===n.status?h=t[16]:(h=(0,X.jsx)(be,{status:n.status}),t[15]=n.status,t[16]=h);let _;t[17]!==m||t[18]!==h?(_=(0,X.jsxs)(`div`,{className:`flex items-center gap-2`,children:[m,h]}),t[17]=m,t[18]=h,t[19]=_):_=t[19];let v;t[20]===n.command?v=t[21]:(v=(0,X.jsx)(`code`,{className:`block truncate text-[10px] text-muted-foreground/60`,children:n.command}),t[20]=n.command,t[21]=v);let b;t[22]!==_||t[23]!==v?(b=(0,X.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[_,v]}),t[22]=_,t[23]=v,t[24]=b):b=t[24];let x=o.length===0?(0,X.jsx)(Se,{draftIndex:-1,rule:{command:n.command,key:``,when:void 0},context:r,isMac:i,isPrimary:!0,isPlaceholder:!0,onAddPlaceholder:()=>r.onAddBinding(n.command)},`placeholder`):o.map((e,t)=>{let{index:n,rule:a}=e;return(0,X.jsx)(Se,{draftIndex:n,rule:a,context:r,isMac:i,isPrimary:t===0,isPlaceholder:a.key.length===0},`${n}-${a.__id}`)}),S;t[25]!==r||t[26]!==n.command||t[27]!==n.title||t[28]!==o?(S=o.length>0?(0,X.jsxs)(y,{children:[(0,X.jsx)(p,{render:(0,X.jsx)(`button`,{type:`button`,onClick:()=>r.onAddBinding(n.command),className:`inline-flex size-6 items-center justify-center rounded-md border border-dashed border-border/60 text-muted-foreground/60 transition-colors hover:border-border hover:text-foreground`,"aria-label":`Add another shortcut for ${n.title}`,children:(0,X.jsx)(T,{className:`size-3.5`})})}),(0,X.jsx)(u,{side:`top`,children:`Add another shortcut`})]}):null,t[25]=r,t[26]=n.command,t[27]=n.title,t[28]=o,t[29]=S):S=t[29];let C;t[30]!==r||t[31]!==n.command||t[32]!==n.status||t[33]!==n.title?(C=n.status!=="default"&&Z.has(n.command)?(0,X.jsxs)(y,{children:[(0,X.jsx)(p,{render:(0,X.jsx)(`button`,{type:`button`,onClick:()=>r.onResetCommand(n.command),className:`inline-flex size-6 items-center justify-center rounded-md text-muted-foreground/50 transition-colors hover:text-foreground`,"aria-label":`Reset ${n.title} to default`,children:(0,X.jsx)(D,{className:`size-3.5`})})}),(0,X.jsx)(u,{side:`top`,children:`Reset to default`})]}):null,t[30]=r,t[31]=n.command,t[32]=n.status,t[33]=n.title,t[34]=C):C=t[34];let w;t[35]!==x||t[36]!==S||t[37]!==C?(w=(0,X.jsxs)(`div`,{className:`flex flex-wrap items-center justify-end gap-1.5`,children:[x,S,C]}),t[35]=x,t[36]=S,t[37]=C,t[38]=w):w=t[38];let E;t[39]!==b||t[40]!==w?(E=(0,X.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[b,w]}),t[39]=b,t[40]=w,t[41]=E):E=t[41],a=(0,X.jsxs)(`div`,{"data-keybinding-command":l,ref:d,className:f,children:[E,c.length>0?(0,X.jsxs)(`div`,{className:`animate-in fade-in slide-in-from-top-1 flex flex-col gap-1 rounded-md border border-destructive/30 bg-destructive/10 px-2.5 py-1.5 text-[11px] text-destructive-foreground/90`,children:[c.map(e=>(0,X.jsx)(xe,{conflict:e,isMac:i,platform:r.platform,onSelect:()=>r.scrollToCommand(e.otherCommand)},`${e.key}-${e.otherCommand}`)),s.length>c.length?(0,X.jsxs)(`span`,{className:`opacity-70`,children:[`+ `,s.length-c.length,` more`]}):null]}):null]}),t[0]=r,t[1]=i,t[2]=n.command,t[3]=n.indicesInDraft,t[4]=n.status,t[5]=n.title,t[6]=a}else a=t[6];return a});function be(e){let t=(0,I.c)(5),{status:n}=e;if(n==="default")return null;let r=n===`modified`?`bg-amber-500/15 text-amber-300`:`bg-indigo-500/15 text-indigo-300`,i;t[0]===r?i=t[1]:(i=g(`rounded px-1.5 py-0.5 text-[9px] font-medium uppercase tracking-[0.06em]`,r),t[0]=r,t[1]=i);let a=n===`modified`?`Modified`:`Custom`,o;return t[2]!==i||t[3]!==a?(o=(0,X.jsx)(`span`,{className:i,children:a}),t[2]=i,t[3]=a,t[4]=o):o=t[4],o}function xe(e){let t=(0,I.c)(27),{conflict:n,platform:r,isMac:i,onSelect:a}=e,o;t[0]===n.otherCommand?o=t[1]:(o=B(n.otherCommand),t[0]=n.otherCommand,t[1]=o);let s=o,c,l,u,d;if(t[2]!==n.key||t[3]!==i||t[4]!==r){let e=ke(n.key),a=e?ce(e,{platform:r}):[n.key];u=`flex flex-wrap items-center gap-1.5`,t[9]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,X.jsx)(E,{className:`size-3 shrink-0 text-destructive`}),t[9]=d):d=t[9],c=`inline-flex items-center gap-0.5 font-mono`;let o;t[10]===i?o=t[11]:(o=e=>(0,X.jsx)(Te,{token:e,isMac:i},e),t[10]=i,t[11]=o),l=a.map(o),t[2]=n.key,t[3]=i,t[4]=r,t[5]=c,t[6]=l,t[7]=u,t[8]=d}else c=t[5],l=t[6],u=t[7],d=t[8];let f;t[12]!==c||t[13]!==l?(f=(0,X.jsx)(`span`,{className:c,children:l}),t[12]=c,t[13]=l,t[14]=f):f=t[14];let p;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,X.jsx)(`span`,{children:`also bound to`}),t[15]=p):p=t[15];let m;t[16]!==s.title||t[17]!==a?(m=(0,X.jsx)(`button`,{type:`button`,onClick:a,className:`rounded bg-destructive/20 px-1.5 py-0.5 font-medium text-destructive-foreground hover:bg-destructive/30`,children:s.title}),t[16]=s.title,t[17]=a,t[18]=m):m=t[18];let h;t[19]===n.otherWhen?h=t[20]:(h=n.otherWhen===void 0?null:(0,X.jsxs)(`span`,{className:`opacity-70`,children:[`when `,(0,X.jsx)(`code`,{className:`font-mono`,children:G(n.otherWhen)})]}),t[19]=n.otherWhen,t[20]=h);let g;return t[21]!==u||t[22]!==d||t[23]!==f||t[24]!==m||t[25]!==h?(g=(0,X.jsxs)(`div`,{className:u,children:[d,f,p,m,h]}),t[21]=u,t[22]=d,t[23]=f,t[24]=m,t[25]=h,t[26]=g):g=t[26],g}function Se(e){let t=(0,I.c)(59),{draftIndex:n,rule:r,context:i,isMac:a,isPlaceholder:o,onAddPlaceholder:s}=e,[c,l]=(0,F.useState)(!1),[u,d]=(0,F.useState)(!1),f=(0,F.useRef)(null),p;bb0:{if(r.key.length===0){p=null;break bb0}let e;t[0]===r.key?e=t[1]:(e=ke(r.key),t[0]=r.key,t[1]=e),p=e}let m=p,h=m?ce(m,{platform:i.platform}):[],_;t[2]!==n||t[3]!==o||t[4]!==s?(_=()=>{if(o&&n===-1&&s){s(),setTimeout(Ce,50);return}l(!0)},t[2]=n,t[3]=o,t[4]=s,t[5]=_):_=t[5];let v=_,y,b;t[6]!==i||t[7]!==n||t[8]!==c?(y=()=>{if(!c)return;let e=e=>{if(e.preventDefault(),e.stopPropagation(),e.key===`Escape`&&!Oe(e)){l(!1);return}if(e.key===`Tab`&&!Oe(e)){l(!1);return}if(e.key===`Backspace`&&!Oe(e)){n>=0&&i.onRemoveBinding(n),l(!1);return}let t=Y(e,{platform:i.platform});t&&(n>=0&&i.onRebind(n,t),d(!0),l(!1),setTimeout(()=>d(!1),220))};return window.addEventListener(`keydown`,e,{capture:!0}),()=>window.removeEventListener(`keydown`,e,{capture:!0})},b=[c,n,i],t[6]=i,t[7]=n,t[8]=c,t[9]=y,t[10]=b):(y=t[9],b=t[10]),(0,F.useEffect)(y,b);let x,S;t[11]===c?(x=t[12],S=t[13]):(x=()=>{c&&f.current?.focus()},S=[c],t[11]=c,t[12]=x,t[13]=S),(0,F.useEffect)(x,S);let C;t[14]!==c||t[15]!==v?(C=e=>{c||(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),v())},t[14]=c,t[15]=v,t[16]=C):C=t[16];let w=C,E;t[17]!==i||t[18]!==n?(E=()=>{n>=0&&i.onRemoveBinding(n)},t[17]=i,t[18]=n,t[19]=E):E=t[19];let D=E;if(o&&n===-1&&h.length===0){let e;t[20]===s?e=t[21]:(e=()=>s?.(),t[20]=s,t[21]=e);let n;t[22]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,X.jsx)(T,{className:`size-3`}),t[22]=n):n=t[22];let r;return t[23]!==w||t[24]!==e?(r=(0,X.jsxs)(`button`,{ref:f,type:`button`,onClick:e,onKeyDown:w,className:`inline-flex h-6 items-center gap-1 rounded-md border border-dashed border-border/60 bg-transparent px-2 text-[11px] text-muted-foreground/70 transition-colors hover:border-border hover:text-foreground`,children:[n,` No shortcut — click to set`]}),t[23]=w,t[24]=e,t[25]=r):r=t[25],r}let k=`Edit shortcut for ${r.command}`,A=h.length===0&&n>=0?`true`:void 0,j=c?`kb-chip-recording border-indigo-500/60 bg-indigo-500/15 text-indigo-100 shadow-[0_0_0_4px_rgba(99,102,241,0.18)]`:u?`border-emerald-500/50 bg-emerald-500/15 text-emerald-100`:`border-border bg-muted/60 text-foreground hover:bg-muted`,M;t[26]===j?M=t[27]:(M=g(`inline-flex h-6 items-center gap-1 rounded-md border px-2 font-mono text-[11px] transition-all duration-150`,j),t[26]=j,t[27]=M);let N;t[28]===c?N=t[29]:(N=c?{animation:`keybindings-pulse 1.4s ease-in-out infinite`}:{},t[28]=c,t[29]=N);let P=c?(0,X.jsx)(`span`,{className:`text-[11px] tracking-[0.04em]`,children:`Press shortcut…`}):h.length===0?(0,X.jsx)(`span`,{className:`text-muted-foreground/60`,children:`Click to set`}):h.map(e=>(0,X.jsx)(Te,{token:e,isMac:a},e)),L;t[30]!==c||t[31]!==r.when?(L=!c&&r.when!==void 0?(0,X.jsx)(`span`,{className:`ml-1 hidden sm:inline`,children:`·`}):null,t[30]=c,t[31]=r.when,t[32]=L):L=t[32];let R;t[33]!==c||t[34]!==w||t[35]!==v||t[36]!==k||t[37]!==A||t[38]!==M||t[39]!==N||t[40]!==P||t[41]!==L?(R=(0,X.jsxs)(`button`,{ref:f,type:`button`,"aria-pressed":c,"aria-label":k,"data-chip-pending-record":A,onClick:v,onKeyDown:w,className:M,style:N,children:[P,L]}),t[33]=c,t[34]=w,t[35]=v,t[36]=k,t[37]=A,t[38]=M,t[39]=N,t[40]=P,t[41]=L,t[42]=R):R=t[42];let z;t[43]!==i||t[44]!==n?(z=e=>i.onChangeWhen(n,e),t[43]=i,t[44]=n,t[45]=z):z=t[45];let B=n<0||c,V;t[46]!==r.when||t[47]!==z||t[48]!==B?(V=(0,X.jsx)(Ee,{currentWhen:r.when,onChange:z,disabled:B}),t[46]=r.when,t[47]=z,t[48]=B,t[49]=V):V=t[49];let H;t[50]!==n||t[51]!==D||t[52]!==c?(H=n>=0&&!c?(0,X.jsx)(`button`,{type:`button`,onClick:D,"aria-label":`Remove this shortcut`,className:`opacity-0 transition-opacity group-hover:opacity-100 focus:opacity-100`,children:(0,X.jsx)(O,{className:`size-3 text-muted-foreground/60 hover:text-destructive`})}):null,t[50]=n,t[51]=D,t[52]=c,t[53]=H):H=t[53];let U;t[54]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,X.jsx)(De,{}),t[54]=U):U=t[54];let W;return t[55]!==R||t[56]!==V||t[57]!==H?(W=(0,X.jsxs)(`span`,{className:`relative inline-flex items-center gap-1`,children:[R,V,H,U]}),t[55]=R,t[56]=V,t[57]=H,t[58]=W):W=t[58],W}function Ce(){document.querySelectorAll(`[data-chip-pending-record="true"]`).forEach(we)}function we(e){e.click()}function Te(e){let t=(0,I.c)(5),{token:n,isMac:r}=e,i=r&&n.length===1&&/[⌀-⏿←-⇿]/.test(n)?`bg-transparent`:`bg-foreground/10`,a;t[0]===i?a=t[1]:(a=g(`rounded px-1 leading-none`,i),t[0]=i,t[1]=a);let o;return t[2]!==a||t[3]!==n?(o=(0,X.jsx)(`span`,{className:a,children:n}),t[2]=a,t[3]=n,t[4]=o):o=t[4],o}function Ee(e){let t=(0,I.c)(35),{currentWhen:n,onChange:r,disabled:i}=e,a;t[0]===n?a=t[1]:(a=W(n),t[0]=n,t[1]=a);let o=a,s,c,l,u,d,p,m;if(t[2]!==n||t[3]!==i){let e=G(n);c=h,s=b,l=`button`,u=i;let r=n===void 0&&`italic opacity-70`;t[11]===r?d=t[12]:(d=g(`inline-flex h-5 items-center gap-1 rounded bg-muted/40 px-1.5 text-[10px] text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50`,r),t[11]=r,t[12]=d),p=`When: ${e}`,m=n===void 0?`always`:e.toLowerCase(),t[2]=n,t[3]=i,t[4]=s,t[5]=c,t[6]=l,t[7]=u,t[8]=d,t[9]=p,t[10]=m}else s=t[4],c=t[5],l=t[6],u=t[7],d=t[8],p=t[9],m=t[10];let v;t[13]!==l||t[14]!==u||t[15]!==d||t[16]!==p||t[17]!==m?(v=(0,X.jsx)(`button`,{type:l,disabled:u,className:d,"aria-label":p,children:m}),t[13]=l,t[14]=u,t[15]=d,t[16]=p,t[17]=m,t[18]=v):v=t[18];let y;t[19]!==s||t[20]!==v?(y=(0,X.jsx)(s,{render:v}),t[19]=s,t[20]=v,t[21]=y):y=t[21];let x;t[22]!==n||t[23]!==o?(x=!o&&n!==void 0?(0,X.jsxs)(`div`,{className:`px-2 py-1.5 text-[10px] text-muted-foreground`,children:[`Current: `,(0,X.jsx)(`code`,{className:`font-mono`,children:n})]}):null,t[22]=n,t[23]=o,t[24]=x):x=t[24];let S;t[25]!==n||t[26]!==r?(S=V.map(e=>(0,X.jsxs)(_,{onClick:()=>r(e.value),className:g(`flex items-center justify-between text-[12px]`,e.value===n&&`font-semibold text-foreground`),children:[(0,X.jsx)(`span`,{children:e.label}),e.value===void 0?(0,X.jsx)(`span`,{className:`text-[10px] text-muted-foreground/60`,children:`no condition`}):(0,X.jsx)(`code`,{className:`text-[10px] font-mono text-muted-foreground/60`,children:e.value})]},e.id)),t[25]=n,t[26]=r,t[27]=S):S=t[27];let C;t[28]!==S||t[29]!==x?(C=(0,X.jsxs)(f,{side:`bottom`,align:`end`,className:`min-w-[220px]`,children:[x,S]}),t[28]=S,t[29]=x,t[30]=C):C=t[30];let w;return t[31]!==c||t[32]!==C||t[33]!==y?(w=(0,X.jsxs)(c,{children:[y,C]}),t[31]=c,t[32]=C,t[33]=y,t[34]=w):w=t[34],w}function De(){let e=(0,I.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,X.jsx)(`style`,{children:`@keyframes keybindings-pulse {
|
|
1
|
+
import{i as e,t}from"./react-PSPkXoKo.js";import{t as n}from"./compiler-runtime-BNrXlsa1.js";import{Jt as r,Ot as i,bn as a,fn as o,gn as s,gt as c,pn as l}from"./projectAtoms-DXXpuERK.js";import{A as u,Cr as d,H as f,M as p,Pi as m,R as h,Sr as g,V as _,br as v,k as y,q as b}from"./composerDraftStore-DpPEQ6BN.js";import{a as x,i as S}from"./toast-DmA_ziPT.js";import{tr as C}from"./providerIconUtils-D-DFhem2.js";import{t as w}from"./keyboard-DFFiI7JY.js";import{t as T}from"./plus-DzgIfHUF.js";import{t as E}from"./triangle-alert-Bpz3xGu5.js";import{t as D}from"./undo-2-C3rtxuqZ.js";import{t as O}from"./x-CG2WU63t.js";import{t as k}from"./shallow-Dmd-gez1.js";import{t as A}from"./input-CgDawd6k.js";import{n as j}from"./editorPreferences-jN7DKbyt.js";import{i as M,n as N,r as P}from"./settingsLayout-G5xVm-ZT.js";var F=e(t(),1),I=n(),L={terminal:{id:`terminal`,label:`Terminal`,sortWeight:10},workspace:{id:`workspace`,label:`Workspace`,sortWeight:20},diff:{id:`diff`,label:`Diff`,sortWeight:30},commandPalette:{id:`commandPalette`,label:`Command palette`,sortWeight:40},chat:{id:`chat`,label:`Chat`,sortWeight:50},editor:{id:`editor`,label:`Editor`,sortWeight:60},modelPicker:{id:`modelPicker`,label:`Model picker`,sortWeight:70},thread:{id:`thread`,label:`Threads`,sortWeight:80},script:{id:`script`,label:`Project scripts`,sortWeight:90}},R={"terminal.toggle":{title:`Toggle terminal drawer`,sortWeight:1},"terminal.split":{title:`Split terminal`,sortWeight:2},"terminal.new":{title:`New terminal`,sortWeight:3},"terminal.close":{title:`Close terminal`,sortWeight:4},"workspace.files":{title:`Open workspace files`,sortWeight:1},"workspace.review":{title:`Open workspace review`,sortWeight:2},"workspace.terminal":{title:`Open workspace terminal`,sortWeight:3},"diff.toggle":{title:`Toggle diff view`,sortWeight:1},"commandPalette.toggle":{title:`Open command palette`,sortWeight:1},"chat.new":{title:`New chat`,sortWeight:1},"chat.newLocal":{title:`New chat (local environment)`,sortWeight:2},"editor.openFavorite":{title:`Open in preferred editor`,sortWeight:1},"modelPicker.toggle":{title:`Toggle model picker`,sortWeight:1},"modelPicker.jump.1":{title:`Pick model 1`,sortWeight:2},"modelPicker.jump.2":{title:`Pick model 2`,sortWeight:3},"modelPicker.jump.3":{title:`Pick model 3`,sortWeight:4},"modelPicker.jump.4":{title:`Pick model 4`,sortWeight:5},"modelPicker.jump.5":{title:`Pick model 5`,sortWeight:6},"modelPicker.jump.6":{title:`Pick model 6`,sortWeight:7},"modelPicker.jump.7":{title:`Pick model 7`,sortWeight:8},"modelPicker.jump.8":{title:`Pick model 8`,sortWeight:9},"modelPicker.jump.9":{title:`Pick model 9`,sortWeight:10},"thread.previous":{title:`Previous thread`,sortWeight:1},"thread.next":{title:`Next thread`,sortWeight:2},"thread.jump.1":{title:`Jump to thread 1`,sortWeight:3},"thread.jump.2":{title:`Jump to thread 2`,sortWeight:4},"thread.jump.3":{title:`Jump to thread 3`,sortWeight:5},"thread.jump.4":{title:`Jump to thread 4`,sortWeight:6},"thread.jump.5":{title:`Jump to thread 5`,sortWeight:7},"thread.jump.6":{title:`Jump to thread 6`,sortWeight:8},"thread.jump.7":{title:`Jump to thread 7`,sortWeight:9},"thread.jump.8":{title:`Jump to thread 8`,sortWeight:10},"thread.jump.9":{title:`Jump to thread 9`,sortWeight:11}};function z(e){let t=e.indexOf(`.`),n=t===-1?e:e.slice(0,t);return n===`script`?L.script:L[n]??L.script}function B(e,t){let n=z(e),r=R[e];if(r)return{category:n,title:r.title,sortWeight:r.sortWeight};let i=e.match(/^script\.([a-z0-9][a-z0-9-]*)\.run$/)?.[1]??e;return{category:n,title:t??`Run: ${i}`,sortWeight:100}}var V=[{id:`always`,label:`Always`,value:void 0},{id:`terminalFocus`,label:`Terminal focused`,value:`terminalFocus`},{id:`notTerminalFocus`,label:`Not in terminal`,value:`!terminalFocus`},{id:`terminalOpen`,label:`Terminal open`,value:`terminalOpen`},{id:`notTerminalOpen`,label:`Terminal not open`,value:`!terminalOpen`},{id:`modelPickerOpen`,label:`Model picker open`,value:`modelPickerOpen`},{id:`commandPaletteOpen`,label:`Command palette open`,value:`commandPaletteOpen`},{id:`composerFocus`,label:`Composer focused`,value:`composerFocus`},{id:`notComposerFocus`,label:`Not in composer`,value:`!composerFocus`}],H=new Map(V.map(e=>[e.value,e])),U=new Map(V.map(e=>[e.value===void 0?void 0:e.value.replace(/\s+/g,``),e]));function W(e){return e===void 0?H.get(void 0):H.get(e)||U.get(e.replace(/\s+/g,``))}function G(e){let t=W(e);return t?t.label:e??`Always`}function K(e){if(e)switch(e.type){case`identifier`:return e.name;case`not`:return`!${K(e.node)}`;case`and`:return`(${K(e.left)} && ${K(e.right)})`;case`or`:return`(${K(e.left)} || ${K(e.right)})`}}function ee(e,t){return(e===void 0?``:e.replace(/\s+/g,``))===(t===void 0?``:t.replace(/\s+/g,``))}function te(e,t){let n=e[t];if(!n)return[];let r=[];return e.forEach((e,i)=>{i!==t&&e.command!==n.command&&e.key===n.key&&ee(e.when,n.when)&&r.push({key:n.key,otherCommand:e.command,otherWhen:e.when})}),r}function ne(e){let t=new Map;return e.forEach((n,r)=>{let i=te(e,r);if(i.length===0)return;let a=e[r].command,o=t.get(a)??[];o.push(...i),t.set(a,o)}),t}function q(e){return/mac|iphone|ipad|ipod/i.test(e)}var J=new Set([`control`,`shift`,`alt`,`altgraph`,`meta`,`os`,`hyper`,`super`,`fn`,`capslock`,`numlock`,`scrolllock`]),re=new Set([`escape`,`tab`,`enter`]);function ie(e,t){let n=e.toLowerCase();if(n===` `||n===`spacebar`)return`space`;if(n===`esc`)return`escape`;if(n===`arrowup`)return`up`;if(n===`arrowdown`)return`down`;if(n===`arrowleft`)return`left`;if(n===`arrowright`)return`right`;if(t){let e=t.match(/^Digit(\d)$/);if(e)return e[1];if(t===`BracketLeft`)return`[`;if(t===`BracketRight`)return`]`}return n}function Y(e,t){let n=e.key.toLowerCase();if(J.has(n))return null;let r=q(t?.platform??(typeof navigator<`u`?navigator.platform:``)),i=r?e.metaKey:e.ctrlKey;if(!(i||e.shiftKey||e.altKey||(r?e.ctrlKey:e.metaKey))&&re.has(n))return null;let a=ie(e.key,e.code);return a.length===0?null:{key:a,modKey:i,metaKey:!r&&e.metaKey,ctrlKey:r&&e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey}}var ae={mod:`⌘`,meta:`⌘`,cmd:`⌘`,ctrl:`⌃`,control:`⌃`,shift:`⇧`,alt:`⌥`,option:`⌥`},oe={mod:`Ctrl`,meta:`Meta`,cmd:`Meta`,ctrl:`Ctrl`,control:`Ctrl`,shift:`Shift`,alt:`Alt`,option:`Alt`},se={space:`Space`,enter:`Enter`,escape:`Esc`,up:`↑`,down:`↓`,left:`←`,right:`→`,tab:`Tab`,backspace:`⌫`,delete:`Del`};function ce(e,t){let n=q(t?.platform??(typeof navigator<`u`?navigator.platform:``))?ae:oe,r=[];e.modKey&&r.push(n.mod),e.metaKey&&r.push(n.meta),e.ctrlKey&&r.push(n.ctrl),e.altKey&&r.push(n.alt),e.shiftKey&&r.push(n.shift);let i=se[e.key]??(e.key.length===1?e.key.toUpperCase():e.key);return r.push(i),r}function le(e){let t=[];e.modKey&&t.push(`mod`),e.metaKey&&t.push(`meta`),e.ctrlKey&&t.push(`ctrl`),e.altKey&&t.push(`alt`),e.shiftKey&&t.push(`shift`);let n=e.key===` `?`space`:e.key;return t.push(n),t.join(`+`)}var X=m(),ue=[],de=(()=>{let e=new Map;for(let t of a){let n=`${t.key}|${t.when??``}`,r=e.get(t.command)??new Set;r.add(n),e.set(t.command,r)}return e})(),Z=new Set(a.map(e=>e.command));function Q(e,t){return`${e.command}|${e.key}|${e.when??``}|${t}`}function fe(e){return{key:le(e.shortcut),command:e.command,when:K(e.whenAst)}}function $(e){return e.map((e,t)=>({...fe(e),__id:Q(e,t)}))}function pe(e){return e.map(({__id:e,...t})=>t)}function me(e){return a.filter(t=>t.command===e).map(e=>Object.assign({},e))}function he(e,t){if(!Z.has(e))return`custom`;let n=de.get(e);if(!n)return`custom`;if(t.length!==n.size)return`modified`;for(let e of t){let t=`${e.key}|${e.when??``}`;if(!n.has(t))return`modified`}return`default`}function ge(e,t,n){return n?[t.toLowerCase(),e.command.toLowerCase(),e.key.toLowerCase(),G(e.when).toLowerCase()].some(e=>e.includes(n)):!0}function _e(){return Math.random().toString(36).slice(2)}function ve(){let e=l(),t=s(),n=o(),a=typeof navigator<`u`?navigator.platform:``,u=d(a),[f,p]=(0,F.useState)(!1),[m,h]=(0,F.useState)(null),g=(0,F.useCallback)(()=>{if(!t)return;h(null),p(!0);let e=j(n??[]);if(!e){h(`No available editors found.`),p(!1);return}r().shell.openInEditor(t,e).catch(e=>{h(e instanceof Error?e.message:`Unable to open keybindings file.`)}).finally(()=>{p(!1)})},[n,t]),_=i(k(c)),y=(0,F.useMemo)(()=>{let e=new Set,t=new Map;for(let n of _)for(let r of n.scripts){let n=`script.${r.id}.run`;e.add(n),t.has(n)||t.set(n,`Run: ${r.name}`)}return{commandList:Array.from(e),titles:t}},[_]),b=e?.keybindings??ue,[T,O]=(0,F.useState)(()=>$(b)),[I,R]=(0,F.useState)(()=>JSON.stringify(pe($(b)))),z=(0,F.useRef)(!1);(0,F.useEffect)(()=>{let e=JSON.stringify(pe($(b)));e!==I&&(R(e),z.current||O($(b)))},[b,I]);let V=(0,F.useCallback)(async e=>{z.current=!0;try{await r().keybindings.replaceCustom({rules:pe(e)})}catch(e){S.add(x({type:`error`,title:`Could not save keybindings`,description:e instanceof Error?e.message:`An unknown error occurred.`})),O($(b))}finally{z.current=!1}},[b]),H=(0,F.useCallback)((e,t)=>{O(n=>{let r=n.slice(),i=r[e];if(!i)return n;let a=le(t);return a===i.key?n:(r[e]={...i,key:a,__id:i.__id},V(r),r)})},[V]),U=(0,F.useCallback)(e=>{O(t=>{let n={command:e,key:``,when:void 0,__id:`placeholder-${_e()}`},r=(()=>{let n=-1;return t.forEach((t,r)=>{t.command===e&&(n=r)}),n})();return r===-1?[...t,n]:[...t.slice(0,r+1),n,...t.slice(r+1)]})},[]),W=(0,F.useCallback)(e=>{O(t=>{let n=t.slice();return n.splice(e,1),V(n),n})},[V]),G=(0,F.useCallback)((e,t)=>{O(n=>{let r=n.slice(),i=r[e];return!i||(i.when??void 0)===t?n:(r[e]={...i,when:t,__id:i.__id},V(r),r)})},[V]),K=(0,F.useCallback)(e=>{O(t=>{let n=t[e];if(!n)return t;let r=n.command;if(!Z.has(r)){let n=t.slice();return n.splice(e,1),V(n),n}let i=me(r),a=t.filter(e=>e.command!==r);for(let e of i)a.push({...e,__id:`default-${r}-${_e()}`});return V(a),a})},[V]),ee=(0,F.useCallback)(e=>{O(t=>{let n=t.filter(t=>t.command!==e);if(Z.has(e))for(let t of me(e))n.push({...t,__id:`default-${e}-${_e()}`});return V(n),n})},[V]),te=(0,F.useCallback)(async()=>{O([]);try{await r().keybindings.replaceCustom({rules:[]})}catch(e){S.add(x({type:`error`,title:`Could not restore default keybindings`,description:e instanceof Error?e.message:`An unknown error occurred.`})),O($(b))}},[b]),q=(0,F.useRef)(new Map),J=(0,F.useCallback)(e=>{let t=q.current.get(e);t&&(t.scrollIntoView({behavior:`smooth`,block:`center`}),t.dataset.flash=`true`,window.setTimeout(()=>{delete t.dataset.flash},1100))},[]),[re,ie]=(0,F.useState)(``),Y=(0,F.useDeferredValue)(re.trim().toLowerCase()),ae=(0,F.useMemo)(()=>ne(T),[T]),oe=(0,F.useMemo)(()=>{let e=new Map;T.forEach((t,n)=>{let r=e.get(t.command);r?r.push(n):e.set(t.command,[n])});let t=new Set([...e.keys(),...Z,...y.commandList]),n=new Map;for(let r of t){let t=e.get(r)??[],i=t.map(e=>T[e]).filter(Boolean),a=B(r,y.titles.get(r)),o=he(r,i),s={key:``,command:r,when:void 0};if(!(Y.length===0||ge(s,a.title,Y)||i.some(e=>ge(e,a.title,Y))))continue;let c={command:r,title:a.title,indicesInDraft:t,status:o},l=n.get(a.category.id);l?l.push(c):n.set(a.category.id,[c])}let r=[];for(let e of Object.values(L).toSorted((e,t)=>e.sortWeight-t.sortWeight)){let t=n.get(e.id);!t||t.length===0||(t.sort((e,t)=>{let n=B(e.command,y.titles.get(e.command)),r=B(t.command,y.titles.get(t.command));return n.sortWeight-r.sortWeight}),r.push({category:e,rows:t}))}return r},[T,Y,y]),se=oe.reduce((e,t)=>e+t.rows.length,0),ce=(0,F.useMemo)(()=>({platform:a,draft:T,conflictsByCommand:ae,onRebind:H,onAddBinding:U,onRemoveBinding:W,onChangeWhen:G,onResetBinding:K,onResetCommand:ee,scrollToCommand:J,rowRefs:q}),[a,T,ae,H,U,W,G,K,ee,J]),de=e?.issues.filter(e=>e.kind.startsWith(`keybindings.`))??[],Q=(n??[]).length>0;return(0,X.jsxs)(N,{children:[(0,X.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,X.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,X.jsx)(`span`,{className:`grid size-9 place-items-center rounded-lg bg-accent text-foreground/70`,children:(0,X.jsx)(w,{className:`size-4`})}),(0,X.jsxs)(`div`,{children:[(0,X.jsx)(`h1`,{className:`text-lg font-semibold tracking-tight`,children:`Keybindings`}),(0,X.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Click any shortcut and press a new combination to rebind. Press Esc to cancel, Backspace to clear.`})]})]}),(0,X.jsxs)(v,{variant:`outline`,size:`xs`,onClick:()=>void te(),disabled:T.length===0,children:[(0,X.jsx)(D,{className:`size-3.5`}),`Restore defaults`]})]}),(0,X.jsx)(M,{title:`Configuration file`,children:(0,X.jsx)(P,{title:`Keybindings file`,description:"Open the persisted `keybindings.json` file to edit advanced bindings directly.",status:(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(`span`,{className:`block break-all font-mono text-[11px] text-foreground`,children:t??`Resolving keybindings path...`}),m?(0,X.jsx)(`span`,{className:`mt-1 block text-destructive`,children:m}):(0,X.jsx)(`span`,{className:`mt-1 block`,children:Q?`Opens in your preferred editor.`:`No available editors found.`})]}),control:(0,X.jsx)(v,{size:`xs`,variant:`outline`,disabled:!t||!Q||f,onClick:g,children:f?`Opening...`:`Open file`})})}),de.length>0?(0,X.jsxs)(`div`,{className:`flex items-start gap-2 rounded-lg border border-amber-500/30 bg-amber-500/10 px-3 py-2 text-xs text-amber-200`,children:[(0,X.jsx)(E,{className:`mt-0.5 size-4 shrink-0`}),(0,X.jsxs)(`div`,{className:`flex-1 space-y-0.5`,children:[de.map(e=>(0,X.jsx)(`p`,{children:e.message},`${e.kind}-${e.message}`)),t?(0,X.jsxs)(`p`,{className:`opacity-70`,children:[`Edit `,(0,X.jsx)(`code`,{className:`rounded bg-amber-500/20 px-1`,children:t}),` `,`to resolve.`]}):null]})]}):null,(0,X.jsxs)(`div`,{className:`relative`,children:[(0,X.jsx)(C,{className:`absolute left-3 top-1/2 size-3.5 -translate-y-1/2 text-muted-foreground/60`}),(0,X.jsx)(A,{type:`search`,placeholder:`Search by command, shortcut, or when…`,className:`pl-9`,value:re,onChange:e=>ie(e.target.value)})]}),se===0?(0,X.jsx)(`div`,{className:`rounded-lg border border-dashed border-border/60 px-6 py-12 text-center text-sm text-muted-foreground`,children:`No commands match your search.`}):oe.map(e=>(0,X.jsx)(M,{title:e.category.label,children:e.rows.map(e=>(0,X.jsx)(ye,{row:e,context:ce,isMac:u,scriptTitle:y.titles.get(e.command)},e.command))},e.category.id))]})}var ye=(0,F.memo)(function(e){let t=(0,I.c)(42),{row:n,context:r,isMac:i}=e,a;if(t[0]!==r||t[1]!==i||t[2]!==n.command||t[3]!==n.indicesInDraft||t[4]!==n.status||t[5]!==n.title){let e;t[7]===r.draft?e=t[8]:(e=e=>({index:e,rule:r.draft[e]}),t[7]=r.draft,t[8]=e);let o=n.indicesInDraft.map(e),s=r.conflictsByCommand.get(n.command)??[],c=s.slice(0,3),l=n.command,d;t[9]!==r.rowRefs.current||t[10]!==n.command?(d=e=>{r.rowRefs.current.set(n.command,e)},t[9]=r.rowRefs.current,t[10]=n.command,t[11]=d):d=t[11];let f;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(f=g(`group flex flex-col gap-2 border-t border-border/60 px-4 py-3 first:border-t-0 transition-colors data-[flash=true]:bg-amber-500/10 sm:px-5`),t[12]=f):f=t[12];let m;t[13]===n.title?m=t[14]:(m=(0,X.jsx)(`span`,{className:`truncate text-[13px] font-medium tracking-tight text-foreground`,children:n.title}),t[13]=n.title,t[14]=m);let h;t[15]===n.status?h=t[16]:(h=(0,X.jsx)(be,{status:n.status}),t[15]=n.status,t[16]=h);let _;t[17]!==m||t[18]!==h?(_=(0,X.jsxs)(`div`,{className:`flex items-center gap-2`,children:[m,h]}),t[17]=m,t[18]=h,t[19]=_):_=t[19];let v;t[20]===n.command?v=t[21]:(v=(0,X.jsx)(`code`,{className:`block truncate text-[10px] text-muted-foreground/60`,children:n.command}),t[20]=n.command,t[21]=v);let b;t[22]!==_||t[23]!==v?(b=(0,X.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[_,v]}),t[22]=_,t[23]=v,t[24]=b):b=t[24];let x=o.length===0?(0,X.jsx)(Se,{draftIndex:-1,rule:{command:n.command,key:``,when:void 0},context:r,isMac:i,isPrimary:!0,isPlaceholder:!0,onAddPlaceholder:()=>r.onAddBinding(n.command)},`placeholder`):o.map((e,t)=>{let{index:n,rule:a}=e;return(0,X.jsx)(Se,{draftIndex:n,rule:a,context:r,isMac:i,isPrimary:t===0,isPlaceholder:a.key.length===0},`${n}-${a.__id}`)}),S;t[25]!==r||t[26]!==n.command||t[27]!==n.title||t[28]!==o?(S=o.length>0?(0,X.jsxs)(y,{children:[(0,X.jsx)(p,{render:(0,X.jsx)(`button`,{type:`button`,onClick:()=>r.onAddBinding(n.command),className:`inline-flex size-6 items-center justify-center rounded-md border border-dashed border-border/60 text-muted-foreground/60 transition-colors hover:border-border hover:text-foreground`,"aria-label":`Add another shortcut for ${n.title}`,children:(0,X.jsx)(T,{className:`size-3.5`})})}),(0,X.jsx)(u,{side:`top`,children:`Add another shortcut`})]}):null,t[25]=r,t[26]=n.command,t[27]=n.title,t[28]=o,t[29]=S):S=t[29];let C;t[30]!==r||t[31]!==n.command||t[32]!==n.status||t[33]!==n.title?(C=n.status!=="default"&&Z.has(n.command)?(0,X.jsxs)(y,{children:[(0,X.jsx)(p,{render:(0,X.jsx)(`button`,{type:`button`,onClick:()=>r.onResetCommand(n.command),className:`inline-flex size-6 items-center justify-center rounded-md text-muted-foreground/50 transition-colors hover:text-foreground`,"aria-label":`Reset ${n.title} to default`,children:(0,X.jsx)(D,{className:`size-3.5`})})}),(0,X.jsx)(u,{side:`top`,children:`Reset to default`})]}):null,t[30]=r,t[31]=n.command,t[32]=n.status,t[33]=n.title,t[34]=C):C=t[34];let w;t[35]!==x||t[36]!==S||t[37]!==C?(w=(0,X.jsxs)(`div`,{className:`flex flex-wrap items-center justify-end gap-1.5`,children:[x,S,C]}),t[35]=x,t[36]=S,t[37]=C,t[38]=w):w=t[38];let E;t[39]!==b||t[40]!==w?(E=(0,X.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[b,w]}),t[39]=b,t[40]=w,t[41]=E):E=t[41],a=(0,X.jsxs)(`div`,{"data-keybinding-command":l,ref:d,className:f,children:[E,c.length>0?(0,X.jsxs)(`div`,{className:`animate-in fade-in slide-in-from-top-1 flex flex-col gap-1 rounded-md border border-destructive/30 bg-destructive/10 px-2.5 py-1.5 text-[11px] text-destructive-foreground/90`,children:[c.map(e=>(0,X.jsx)(xe,{conflict:e,isMac:i,platform:r.platform,onSelect:()=>r.scrollToCommand(e.otherCommand)},`${e.key}-${e.otherCommand}`)),s.length>c.length?(0,X.jsxs)(`span`,{className:`opacity-70`,children:[`+ `,s.length-c.length,` more`]}):null]}):null]}),t[0]=r,t[1]=i,t[2]=n.command,t[3]=n.indicesInDraft,t[4]=n.status,t[5]=n.title,t[6]=a}else a=t[6];return a});function be(e){let t=(0,I.c)(5),{status:n}=e;if(n==="default")return null;let r=n===`modified`?`bg-amber-500/15 text-amber-300`:`bg-indigo-500/15 text-indigo-300`,i;t[0]===r?i=t[1]:(i=g(`rounded px-1.5 py-0.5 text-[9px] font-medium uppercase tracking-[0.06em]`,r),t[0]=r,t[1]=i);let a=n===`modified`?`Modified`:`Custom`,o;return t[2]!==i||t[3]!==a?(o=(0,X.jsx)(`span`,{className:i,children:a}),t[2]=i,t[3]=a,t[4]=o):o=t[4],o}function xe(e){let t=(0,I.c)(27),{conflict:n,platform:r,isMac:i,onSelect:a}=e,o;t[0]===n.otherCommand?o=t[1]:(o=B(n.otherCommand),t[0]=n.otherCommand,t[1]=o);let s=o,c,l,u,d;if(t[2]!==n.key||t[3]!==i||t[4]!==r){let e=ke(n.key),a=e?ce(e,{platform:r}):[n.key];u=`flex flex-wrap items-center gap-1.5`,t[9]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,X.jsx)(E,{className:`size-3 shrink-0 text-destructive`}),t[9]=d):d=t[9],c=`inline-flex items-center gap-0.5 font-mono`;let o;t[10]===i?o=t[11]:(o=e=>(0,X.jsx)(Te,{token:e,isMac:i},e),t[10]=i,t[11]=o),l=a.map(o),t[2]=n.key,t[3]=i,t[4]=r,t[5]=c,t[6]=l,t[7]=u,t[8]=d}else c=t[5],l=t[6],u=t[7],d=t[8];let f;t[12]!==c||t[13]!==l?(f=(0,X.jsx)(`span`,{className:c,children:l}),t[12]=c,t[13]=l,t[14]=f):f=t[14];let p;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,X.jsx)(`span`,{children:`also bound to`}),t[15]=p):p=t[15];let m;t[16]!==s.title||t[17]!==a?(m=(0,X.jsx)(`button`,{type:`button`,onClick:a,className:`rounded bg-destructive/20 px-1.5 py-0.5 font-medium text-destructive-foreground hover:bg-destructive/30`,children:s.title}),t[16]=s.title,t[17]=a,t[18]=m):m=t[18];let h;t[19]===n.otherWhen?h=t[20]:(h=n.otherWhen===void 0?null:(0,X.jsxs)(`span`,{className:`opacity-70`,children:[`when `,(0,X.jsx)(`code`,{className:`font-mono`,children:G(n.otherWhen)})]}),t[19]=n.otherWhen,t[20]=h);let g;return t[21]!==u||t[22]!==d||t[23]!==f||t[24]!==m||t[25]!==h?(g=(0,X.jsxs)(`div`,{className:u,children:[d,f,p,m,h]}),t[21]=u,t[22]=d,t[23]=f,t[24]=m,t[25]=h,t[26]=g):g=t[26],g}function Se(e){let t=(0,I.c)(59),{draftIndex:n,rule:r,context:i,isMac:a,isPlaceholder:o,onAddPlaceholder:s}=e,[c,l]=(0,F.useState)(!1),[u,d]=(0,F.useState)(!1),f=(0,F.useRef)(null),p;bb0:{if(r.key.length===0){p=null;break bb0}let e;t[0]===r.key?e=t[1]:(e=ke(r.key),t[0]=r.key,t[1]=e),p=e}let m=p,h=m?ce(m,{platform:i.platform}):[],_;t[2]!==n||t[3]!==o||t[4]!==s?(_=()=>{if(o&&n===-1&&s){s(),setTimeout(Ce,50);return}l(!0)},t[2]=n,t[3]=o,t[4]=s,t[5]=_):_=t[5];let v=_,y,b;t[6]!==i||t[7]!==n||t[8]!==c?(y=()=>{if(!c)return;let e=e=>{if(e.preventDefault(),e.stopPropagation(),e.key===`Escape`&&!Oe(e)){l(!1);return}if(e.key===`Tab`&&!Oe(e)){l(!1);return}if(e.key===`Backspace`&&!Oe(e)){n>=0&&i.onRemoveBinding(n),l(!1);return}let t=Y(e,{platform:i.platform});t&&(n>=0&&i.onRebind(n,t),d(!0),l(!1),setTimeout(()=>d(!1),220))};return window.addEventListener(`keydown`,e,{capture:!0}),()=>window.removeEventListener(`keydown`,e,{capture:!0})},b=[c,n,i],t[6]=i,t[7]=n,t[8]=c,t[9]=y,t[10]=b):(y=t[9],b=t[10]),(0,F.useEffect)(y,b);let x,S;t[11]===c?(x=t[12],S=t[13]):(x=()=>{c&&f.current?.focus()},S=[c],t[11]=c,t[12]=x,t[13]=S),(0,F.useEffect)(x,S);let C;t[14]!==c||t[15]!==v?(C=e=>{c||(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),v())},t[14]=c,t[15]=v,t[16]=C):C=t[16];let w=C,E;t[17]!==i||t[18]!==n?(E=()=>{n>=0&&i.onRemoveBinding(n)},t[17]=i,t[18]=n,t[19]=E):E=t[19];let D=E;if(o&&n===-1&&h.length===0){let e;t[20]===s?e=t[21]:(e=()=>s?.(),t[20]=s,t[21]=e);let n;t[22]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,X.jsx)(T,{className:`size-3`}),t[22]=n):n=t[22];let r;return t[23]!==w||t[24]!==e?(r=(0,X.jsxs)(`button`,{ref:f,type:`button`,onClick:e,onKeyDown:w,className:`inline-flex h-6 items-center gap-1 rounded-md border border-dashed border-border/60 bg-transparent px-2 text-[11px] text-muted-foreground/70 transition-colors hover:border-border hover:text-foreground`,children:[n,` No shortcut — click to set`]}),t[23]=w,t[24]=e,t[25]=r):r=t[25],r}let k=`Edit shortcut for ${r.command}`,A=h.length===0&&n>=0?`true`:void 0,j=c?`kb-chip-recording border-indigo-500/60 bg-indigo-500/15 text-indigo-100 shadow-[0_0_0_4px_rgba(99,102,241,0.18)]`:u?`border-emerald-500/50 bg-emerald-500/15 text-emerald-100`:`border-border bg-muted/60 text-foreground hover:bg-muted`,M;t[26]===j?M=t[27]:(M=g(`inline-flex h-6 items-center gap-1 rounded-md border px-2 font-mono text-[11px] transition-all duration-150`,j),t[26]=j,t[27]=M);let N;t[28]===c?N=t[29]:(N=c?{animation:`keybindings-pulse 1.4s ease-in-out infinite`}:{},t[28]=c,t[29]=N);let P=c?(0,X.jsx)(`span`,{className:`text-[11px] tracking-[0.04em]`,children:`Press shortcut…`}):h.length===0?(0,X.jsx)(`span`,{className:`text-muted-foreground/60`,children:`Click to set`}):h.map(e=>(0,X.jsx)(Te,{token:e,isMac:a},e)),L;t[30]!==c||t[31]!==r.when?(L=!c&&r.when!==void 0?(0,X.jsx)(`span`,{className:`ml-1 hidden sm:inline`,children:`·`}):null,t[30]=c,t[31]=r.when,t[32]=L):L=t[32];let R;t[33]!==c||t[34]!==w||t[35]!==v||t[36]!==k||t[37]!==A||t[38]!==M||t[39]!==N||t[40]!==P||t[41]!==L?(R=(0,X.jsxs)(`button`,{ref:f,type:`button`,"aria-pressed":c,"aria-label":k,"data-chip-pending-record":A,onClick:v,onKeyDown:w,className:M,style:N,children:[P,L]}),t[33]=c,t[34]=w,t[35]=v,t[36]=k,t[37]=A,t[38]=M,t[39]=N,t[40]=P,t[41]=L,t[42]=R):R=t[42];let z;t[43]!==i||t[44]!==n?(z=e=>i.onChangeWhen(n,e),t[43]=i,t[44]=n,t[45]=z):z=t[45];let B=n<0||c,V;t[46]!==r.when||t[47]!==z||t[48]!==B?(V=(0,X.jsx)(Ee,{currentWhen:r.when,onChange:z,disabled:B}),t[46]=r.when,t[47]=z,t[48]=B,t[49]=V):V=t[49];let H;t[50]!==n||t[51]!==D||t[52]!==c?(H=n>=0&&!c?(0,X.jsx)(`button`,{type:`button`,onClick:D,"aria-label":`Remove this shortcut`,className:`opacity-0 transition-opacity group-hover:opacity-100 focus:opacity-100`,children:(0,X.jsx)(O,{className:`size-3 text-muted-foreground/60 hover:text-destructive`})}):null,t[50]=n,t[51]=D,t[52]=c,t[53]=H):H=t[53];let U;t[54]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,X.jsx)(De,{}),t[54]=U):U=t[54];let W;return t[55]!==R||t[56]!==V||t[57]!==H?(W=(0,X.jsxs)(`span`,{className:`relative inline-flex items-center gap-1`,children:[R,V,H,U]}),t[55]=R,t[56]=V,t[57]=H,t[58]=W):W=t[58],W}function Ce(){document.querySelectorAll(`[data-chip-pending-record="true"]`).forEach(we)}function we(e){e.click()}function Te(e){let t=(0,I.c)(5),{token:n,isMac:r}=e,i=r&&n.length===1&&/[⌀-⏿←-⇿]/.test(n)?`bg-transparent`:`bg-foreground/10`,a;t[0]===i?a=t[1]:(a=g(`rounded px-1 leading-none`,i),t[0]=i,t[1]=a);let o;return t[2]!==a||t[3]!==n?(o=(0,X.jsx)(`span`,{className:a,children:n}),t[2]=a,t[3]=n,t[4]=o):o=t[4],o}function Ee(e){let t=(0,I.c)(35),{currentWhen:n,onChange:r,disabled:i}=e,a;t[0]===n?a=t[1]:(a=W(n),t[0]=n,t[1]=a);let o=a,s,c,l,u,d,p,m;if(t[2]!==n||t[3]!==i){let e=G(n);c=h,s=b,l=`button`,u=i;let r=n===void 0&&`italic opacity-70`;t[11]===r?d=t[12]:(d=g(`inline-flex h-5 items-center gap-1 rounded bg-muted/40 px-1.5 text-[10px] text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50`,r),t[11]=r,t[12]=d),p=`When: ${e}`,m=n===void 0?`always`:e.toLowerCase(),t[2]=n,t[3]=i,t[4]=s,t[5]=c,t[6]=l,t[7]=u,t[8]=d,t[9]=p,t[10]=m}else s=t[4],c=t[5],l=t[6],u=t[7],d=t[8],p=t[9],m=t[10];let v;t[13]!==l||t[14]!==u||t[15]!==d||t[16]!==p||t[17]!==m?(v=(0,X.jsx)(`button`,{type:l,disabled:u,className:d,"aria-label":p,children:m}),t[13]=l,t[14]=u,t[15]=d,t[16]=p,t[17]=m,t[18]=v):v=t[18];let y;t[19]!==s||t[20]!==v?(y=(0,X.jsx)(s,{render:v}),t[19]=s,t[20]=v,t[21]=y):y=t[21];let x;t[22]!==n||t[23]!==o?(x=!o&&n!==void 0?(0,X.jsxs)(`div`,{className:`px-2 py-1.5 text-[10px] text-muted-foreground`,children:[`Current: `,(0,X.jsx)(`code`,{className:`font-mono`,children:n})]}):null,t[22]=n,t[23]=o,t[24]=x):x=t[24];let S;t[25]!==n||t[26]!==r?(S=V.map(e=>(0,X.jsxs)(_,{onClick:()=>r(e.value),className:g(`flex items-center justify-between text-[12px]`,e.value===n&&`font-semibold text-foreground`),children:[(0,X.jsx)(`span`,{children:e.label}),e.value===void 0?(0,X.jsx)(`span`,{className:`text-[10px] text-muted-foreground/60`,children:`no condition`}):(0,X.jsx)(`code`,{className:`text-[10px] font-mono text-muted-foreground/60`,children:e.value})]},e.id)),t[25]=n,t[26]=r,t[27]=S):S=t[27];let C;t[28]!==S||t[29]!==x?(C=(0,X.jsxs)(f,{side:`bottom`,align:`end`,className:`min-w-[220px]`,children:[x,S]}),t[28]=S,t[29]=x,t[30]=C):C=t[30];let w;return t[31]!==c||t[32]!==C||t[33]!==y?(w=(0,X.jsxs)(c,{children:[y,C]}),t[31]=c,t[32]=C,t[33]=y,t[34]=w):w=t[34],w}function De(){let e=(0,I.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,X.jsx)(`style`,{children:`@keyframes keybindings-pulse {
|
|
2
2
|
0%, 100% { box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15); }
|
|
3
3
|
50% { box-shadow: 0 0 0 8px rgba(99, 102, 241, 0.30); }
|
|
4
4
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{i as e,t}from"./react-PSPkXoKo.js";import{t as n}from"./compiler-runtime-BNrXlsa1.js";import{Jt as r}from"./projectAtoms-DXXpuERK.js";import{A as i,M as a,Pi as o,Qr as s,Ri as c,Sr as l,Yr as u,Zr as d,br as f,k as ee,zi as p}from"./composerDraftStore-DpPEQ6BN.js";import{a as m,i as h,m as te}from"./toast-DmA_ziPT.js";import{$n as ne,At as g,D as _,Dt as v,G as y,H as b,Mt as x,Nt as S,Pt as C,Tt as w,U as T,W as E,_ as re,jt as D,kt as O,sr as k,z as A}from"./providerIconUtils-D-DFhem2.js";import{t as j}from"./plus-DzgIfHUF.js";import{t as M}from"./refresh-cw-BsQTNBXl.js";import{t as N}from"./server-Bbs3L-6_.js";import{t as ie}from"./trash-2-C2G3VGoV.js";import{t as P}from"./triangle-alert-Bpz3xGu5.js";import{t as F}from"./wrench-C4jdis40.js";import{t as I}from"./input-CgDawd6k.js";import{r as L}from"./providerDriverMeta-CRNNp0q3.js";var ae=d(`earth`,[[`path`,{d:`M21.54 15H17a2 2 0 0 0-2 2v4.54`,key:`1djwo0`}],[`path`,{d:`M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17`,key:`1tzkfa`}],[`path`,{d:`M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05`,key:`14pb5j`}],[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),oe=d(`log-in`,[[`path`,{d:`m10 17 5-5-5-5`,key:`1bsop3`}],[`path`,{d:`M15 12H3`,key:`6jk70r`}],[`path`,{d:`M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4`,key:`u53s6r`}]]),R=d(`save`,[[`path`,{d:`M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z`,key:`1c8476`}],[`path`,{d:`M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7`,key:`1ydtos`}],[`path`,{d:`M7 3v4a1 1 0 0 0 1 1h7`,key:`t51u73`}]]),z=e(t(),1),B=n(),se=/^[a-zA-Z][a-zA-Z0-9_-]*$/;function ce(){return{name:``,transport:`stdio`,command:``,argsText:``,cwd:``,url:``,bearerTokenEnvVar:``,envText:``,envVarsText:``,httpHeadersText:``,envHttpHeadersText:``,enabled:!0,required:!1,startupTimeoutSec:``,toolTimeoutSec:``,enabledToolsText:``,disabledToolsText:``,oauthScopesText:``}}function V(e){return e.join(`
|
|
2
|
+
`)}function H(e){return Object.entries(e).map(([e,t])=>`${e}=${t}`).join(`
|
|
3
|
+
`)}function U(e){let t=e.config;return{name:e.name,transport:t.transport===`http`?`http`:`stdio`,command:t.command??``,argsText:V(t.args),cwd:t.cwd??``,url:t.url??``,bearerTokenEnvVar:t.bearerTokenEnvVar??``,envText:H(t.env),envVarsText:V(t.envVars),httpHeadersText:H(t.httpHeaders),envHttpHeadersText:H(t.envHttpHeaders),enabled:t.enabled,required:t.required??!1,startupTimeoutSec:t.startupTimeoutSec?.toString()??``,toolTimeoutSec:t.toolTimeoutSec?.toString()??``,enabledToolsText:V(t.enabledTools),disabledToolsText:V(t.disabledTools),oauthScopesText:V(t.oauthScopes)}}function W(e){return e.split(/\r?\n/).map(e=>e.trim()).filter(e=>e.length>0)}function le(e){let t={};for(let n of W(e)){let e=n.indexOf(`=`);if(e<=0)continue;let r=n.slice(0,e).trim(),i=n.slice(e+1).trim();r.length>0&&(t[r]=i)}return t}function G(e){let t=e.trim();if(!t)return;let n=Number(t);return Number.isFinite(n)&&n>0?n:NaN}function ue(e){let t=e.name.trim();if(!se.test(t))return`Server name must start with a letter and use only letters, numbers, dashes, and underscores.`;if(e.transport===`stdio`&&e.command.trim().length===0)return`Stdio servers need a command.`;if(e.transport===`http`&&e.url.trim().length===0)return`HTTP servers need a URL.`;for(let[t,n]of[[`Startup timeout`,e.startupTimeoutSec],[`Tool timeout`,e.toolTimeoutSec]]){let e=G(n);if(Number.isNaN(e))return`${t} must be a positive number.`}return null}function de(e){let t=G(e.startupTimeoutSec),n=G(e.toolTimeoutSec);return{transport:e.transport,command:e.command.trim(),args:W(e.argsText),cwd:e.cwd.trim()||null,url:e.url.trim(),bearerTokenEnvVar:e.bearerTokenEnvVar.trim()||null,env:le(e.envText),envVars:W(e.envVarsText),httpHeaders:le(e.httpHeadersText),envHttpHeaders:le(e.envHttpHeadersText),enabled:e.enabled,required:e.required,...t===void 0||Number.isNaN(t)?{}:{startupTimeoutSec:t},...n===void 0||Number.isNaN(n)?{}:{toolTimeoutSec:n},enabledTools:W(e.enabledToolsText),disabledTools:W(e.disabledToolsText),oauthScopes:W(e.oauthScopesText)}}function fe(e){let t=e.config;return t.transport===`http`?t.url||`HTTP`:t.transport===`stdio`?[t.command,...t.args].filter(Boolean).join(` `)||`stdio`:`Configured outside the known MCP schema`}var K=o(),pe=[],q=[];function J(){let e=r().mcp;if(!e)throw Error(`MCP settings are unavailable before a backend is paired.`);return e}function Y(e,t){h.add(m({type:`error`,title:e,description:t instanceof Error?t.message:`An error occurred.`}))}function me(e){switch(e){case`user`:return`User config`;case`project`:return`Project`;case`system`:return`System`;case`managed`:return`Managed`;case`mixed`:return`Mixed`;case`unknown`:return`Unknown`}}function he(e){return e.startupStatus===`failed`?`error`:e.startupStatus===`disabled`?`outline`:e.authStatus===`notLoggedIn`?`warning`:e.startupStatus===`ready`?`success`:`outline`}function ge(e){return e.startupStatus===`disabled`?`Disabled`:e.startupStatus===`failed`?`Failed`:e.authStatus===`notLoggedIn`?`Login needed`:e.startupStatus===`ready`?`Ready`:`Unknown`}function X(e){return e.enabled?e.status===`managed`?`success`:e.status===`external`?`warning`:`outline`:`outline`}function Z(e){if(!e.enabled)return`Disabled`;switch(e.status){case`managed`:return`Managed`;case`external`:return`External config`;case`unsupported`:return`Not wired`}}function Q(e){return e.displayName??L(e.driver)?.label??s(e.driver)}function $(e){let t=(0,B.c)(5),n;t[0]===e.label?n=t[1]:(n=(0,K.jsx)(`span`,{children:e.label}),t[0]=e.label,t[1]=n);let r;return t[2]!==e.children||t[3]!==n?(r=(0,K.jsxs)(`label`,{className:`grid gap-1.5 text-xs font-medium text-foreground/80`,children:[n,e.children]}),t[2]=e.children,t[3]=n,t[4]=r):r=t[4],r}function _e(e){let t=(0,B.c)(2),{children:n}=e,r;return t[0]===n?r=t[1]:(r=(0,K.jsx)(`p`,{className:`text-[11px] leading-relaxed text-muted-foreground/70`,children:n}),t[0]=n,t[1]=r),r}function ve(e){let t=(0,B.c)(5),{value:n,onChange:r}=e,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i={value:`stdio`,label:`Stdio`,icon:ne},t[0]=i):i=t[0];let a;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(a=[i,{value:`http`,label:`HTTP`,icon:ae}],t[1]=a):a=t[1];let o;return t[2]!==r||t[3]!==n?(o=(0,K.jsx)(`div`,{className:`grid grid-cols-2 rounded-lg border bg-muted/30 p-1`,children:a.map(e=>{let t=e.icon;return(0,K.jsxs)(`button`,{type:`button`,onClick:()=>r(e.value),className:l(`flex h-8 items-center justify-center gap-2 rounded-md text-xs font-medium transition-colors`,n===e.value?`bg-background text-foreground shadow-xs`:`text-muted-foreground`),children:[(0,K.jsx)(t,{className:`size-3.5`}),e.label]},e.value)})}),t[2]=r,t[3]=n,t[4]=o):o=t[4],o}function ye({open:e,server:t,onOpenChange:n,onSubmit:r}){let[i,a]=(0,z.useState)(()=>ce()),[o,s]=(0,z.useState)(null),[c,l]=(0,z.useState)(!1),u=t!==null;(0,z.useEffect)(()=>{e&&(a(t?U(t):ce()),s(null))},[e,t]);let d=(e,t)=>{a(n=>({...n,[e]:t}))},ee=async()=>{let e=ue(i);if(e){s(e);return}l(!0);try{await r(i),n(!1)}catch(e){Y(`Failed to save MCP server`,e)}finally{l(!1)}};return(0,K.jsx)(v,{open:e,onOpenChange:n,children:(0,K.jsxs)(S,{className:`max-w-2xl`,bottomStickOnMobile:!1,children:[(0,K.jsxs)(D,{children:[(0,K.jsx)(C,{children:u?`Edit MCP server`:`Add MCP server`}),(0,K.jsx)(O,{children:`Configuration is written to the selected Codex config and reloaded after save.`})]}),(0,K.jsxs)(x,{className:`space-y-5`,children:[(0,K.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-[1fr_12rem]`,children:[(0,K.jsx)($,{label:`Server name`,children:(0,K.jsx)(I,{value:i.name,disabled:u,onChange:e=>d(`name`,e.target.value),placeholder:`github`,spellCheck:!1})}),(0,K.jsx)($,{label:`Transport`,children:(0,K.jsx)(ve,{value:i.transport,onChange:e=>d(`transport`,e)})})]}),i.transport===`stdio`?(0,K.jsxs)(`div`,{className:`grid gap-4`,children:[(0,K.jsx)($,{label:`Command`,children:(0,K.jsx)(I,{value:i.command,onChange:e=>d(`command`,e.target.value),placeholder:`npx`,spellCheck:!1})}),(0,K.jsxs)($,{label:`Arguments`,children:[(0,K.jsx)(w,{value:i.argsText,onChange:e=>d(`argsText`,e.target.value),placeholder:`-y
|
|
4
|
+
@modelcontextprotocol/server-filesystem
|
|
5
|
+
/tmp/project`,spellCheck:!1}),(0,K.jsx)(_e,{children:`One argument per line.`})]}),(0,K.jsx)($,{label:`Working directory`,children:(0,K.jsx)(I,{value:i.cwd,onChange:e=>d(`cwd`,e.target.value),placeholder:`/path/to/project`,spellCheck:!1})})]}):(0,K.jsxs)(`div`,{className:`grid gap-4`,children:[(0,K.jsx)($,{label:`URL`,children:(0,K.jsx)(I,{value:i.url,onChange:e=>d(`url`,e.target.value),placeholder:`https://mcp.example.com/mcp`,spellCheck:!1})}),(0,K.jsx)($,{label:`Bearer token env var`,children:(0,K.jsx)(I,{value:i.bearerTokenEnvVar,onChange:e=>d(`bearerTokenEnvVar`,e.target.value),placeholder:`MCP_TOKEN`,spellCheck:!1})}),(0,K.jsxs)($,{label:`HTTP headers`,children:[(0,K.jsx)(w,{value:i.httpHeadersText,onChange:e=>d(`httpHeadersText`,e.target.value),placeholder:`X-Client=ryco`,spellCheck:!1}),(0,K.jsx)(_e,{children:`Static headers as KEY=VALUE lines.`})]}),(0,K.jsxs)($,{label:`Env-backed HTTP headers`,children:[(0,K.jsx)(w,{value:i.envHttpHeadersText,onChange:e=>d(`envHttpHeadersText`,e.target.value),placeholder:`Authorization=GITHUB_TOKEN`,spellCheck:!1}),(0,K.jsx)(_e,{children:`Header name to environment variable name, one per line.`})]})]}),(0,K.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-2`,children:[(0,K.jsxs)($,{label:`Environment values`,children:[(0,K.jsx)(w,{value:i.envText,onChange:e=>d(`envText`,e.target.value),placeholder:`API_BASE=https://example.com`,spellCheck:!1}),(0,K.jsx)(_e,{children:`KEY=VALUE lines stored in Codex config.`})]}),(0,K.jsxs)($,{label:`Environment allow-list`,children:[(0,K.jsx)(w,{value:i.envVarsText,onChange:e=>d(`envVarsText`,e.target.value),placeholder:`GITHUB_TOKEN
|
|
6
|
+
SENTRY_AUTH_TOKEN`,spellCheck:!1}),(0,K.jsx)(_e,{children:`One env var name per line.`})]})]}),(0,K.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-2`,children:[(0,K.jsx)($,{label:`Startup timeout seconds`,children:(0,K.jsx)(I,{value:i.startupTimeoutSec,onChange:e=>d(`startupTimeoutSec`,e.target.value),inputMode:`decimal`,placeholder:`10`})}),(0,K.jsx)($,{label:`Tool timeout seconds`,children:(0,K.jsx)(I,{value:i.toolTimeoutSec,onChange:e=>d(`toolTimeoutSec`,e.target.value),inputMode:`decimal`,placeholder:`60`})})]}),(0,K.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-3`,children:[(0,K.jsx)($,{label:`Enabled tools`,children:(0,K.jsx)(w,{value:i.enabledToolsText,onChange:e=>d(`enabledToolsText`,e.target.value),spellCheck:!1})}),(0,K.jsx)($,{label:`Disabled tools`,children:(0,K.jsx)(w,{value:i.disabledToolsText,onChange:e=>d(`disabledToolsText`,e.target.value),spellCheck:!1})}),(0,K.jsx)($,{label:`OAuth scopes`,children:(0,K.jsx)(w,{value:i.oauthScopesText,onChange:e=>d(`oauthScopesText`,e.target.value),spellCheck:!1})})]}),(0,K.jsxs)(`div`,{className:`flex flex-wrap items-center gap-5 border-t pt-4`,children:[(0,K.jsxs)(`label`,{className:`flex items-center gap-2 text-xs font-medium text-foreground/80`,children:[(0,K.jsx)(_,{checked:i.enabled,onCheckedChange:e=>d(`enabled`,!!e)}),`Enabled`]}),(0,K.jsxs)(`label`,{className:`flex items-center gap-2 text-xs font-medium text-foreground/80`,children:[(0,K.jsx)(_,{checked:i.required,onCheckedChange:e=>d(`required`,!!e)}),`Required`]})]}),o?(0,K.jsxs)(`div`,{className:`flex items-start gap-2 rounded-lg border border-destructive/30 bg-destructive/6 px-3 py-2 text-xs text-destructive-foreground`,children:[(0,K.jsx)(P,{className:`mt-0.5 size-3.5`}),(0,K.jsx)(`span`,{children:o})]}):null]}),(0,K.jsxs)(g,{children:[(0,K.jsx)(f,{variant:`outline`,onClick:()=>n(!1),disabled:c,children:`Cancel`}),(0,K.jsxs)(f,{onClick:()=>void ee(),disabled:c,children:[c?(0,K.jsx)(k,{className:`animate-spin`}):(0,K.jsx)(R,{}),`Save`]})]})]})})}function be(e){let t=(0,B.c)(18),{workspaces:n,selectedWorkspaceId:r,onChange:i}=e;if(n.length<=1||!r)return null;let a;if(t[0]!==r||t[1]!==n){let e;t[3]===r?e=t[4]:(e=e=>e.id===r,t[3]=r,t[4]=e),a=n.find(e),t[0]=r,t[1]=n,t[2]=a}else a=t[2];let o=a,s;t[5]===i?s=t[6]:(s=e=>{e&&i(e)},t[5]=i,t[6]=s);let c=o?.displayPath??`Select workspace`,l;t[7]===c?l=t[8]:(l=(0,K.jsx)(E,{className:`w-full sm:w-72`,"aria-label":`MCP workspace`,children:(0,K.jsx)(y,{children:c})}),t[7]=c,t[8]=l);let u;t[9]===n?u=t[10]:(u=n.map(xe),t[9]=n,t[10]=u);let d;t[11]===u?d=t[12]:(d=(0,K.jsx)(T,{align:`end`,alignItemWithTrigger:!1,children:u}),t[11]=u,t[12]=d);let f;return t[13]!==r||t[14]!==s||t[15]!==l||t[16]!==d?(f=(0,K.jsxs)(A,{value:r,onValueChange:s,children:[l,d]}),t[13]=r,t[14]=s,t[15]=l,t[16]=d,t[17]=f):f=t[17],f}function xe(e){return(0,K.jsx)(b,{hideIndicator:!0,value:e.id,children:(0,K.jsx)(`span`,{className:`truncate`,children:e.displayPath})},e.id)}function Se(e){let t=(0,B.c)(10),{providers:n,selectedWorkspaceId:r,onSelectWorkspace:i}=e;if(n.length===0)return null;let a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,K.jsx)(`div`,{className:`border-b px-4 py-3`,children:(0,K.jsx)(`h3`,{className:`text-sm font-semibold`,children:`Provider MCP support`})}),t[0]=a):a=t[0];let o;if(t[1]!==i||t[2]!==n||t[3]!==r){let e;t[5]!==i||t[6]!==r?(e=e=>{let t=L(e.driver)?.icon??N,n=e.workspaceId!==void 0&&e.workspaceId===r,a=e.workspaceId!==void 0&&!n;return(0,K.jsxs)(`div`,{className:`flex flex-col gap-3 px-4 py-3 sm:flex-row sm:items-center sm:justify-between`,children:[(0,K.jsxs)(`div`,{className:`flex min-w-0 items-start gap-3`,children:[(0,K.jsxs)(`div`,{className:`relative mt-0.5 flex size-8 shrink-0 items-center justify-center rounded-lg border bg-background`,children:[(0,K.jsx)(t,{className:`size-4 text-muted-foreground`}),e.accentColor?(0,K.jsx)(`span`,{className:`absolute -right-0.5 -bottom-0.5 size-2.5 rounded-full border border-background`,style:{backgroundColor:e.accentColor}}):null]}),(0,K.jsxs)(`div`,{className:`min-w-0`,children:[(0,K.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-2 gap-y-1`,children:[(0,K.jsx)(`span`,{className:`text-sm font-medium`,children:Q(e)}),(0,K.jsx)(`span`,{className:`font-mono text-[11px] text-muted-foreground/70`,children:e.instanceId})]}),(0,K.jsx)(`p`,{className:`mt-1 max-w-2xl text-xs leading-relaxed text-muted-foreground/80`,children:e.message})]})]}),(0,K.jsxs)(`div`,{className:`flex shrink-0 flex-wrap items-center gap-2 sm:justify-end`,children:[(0,K.jsx)(re,{variant:X(e),children:Z(e)}),e.workspaceId?(0,K.jsx)(f,{size:`xs`,variant:n?`secondary`:`outline`,disabled:!a,onClick:()=>{e.workspaceId&&i(e.workspaceId)},children:`Codex workspace`}):null]})]},e.instanceId)},t[5]=i,t[6]=r,t[7]=e):e=t[7],o=n.map(e),t[1]=i,t[2]=n,t[3]=r,t[4]=o}else o=t[4];let s;return t[8]===o?s=t[9]:(s=(0,K.jsxs)(`section`,{className:`rounded-lg border bg-muted/10`,children:[a,(0,K.jsx)(`div`,{className:`divide-y`,children:o})]}),t[8]=o,t[9]=s),s}function Ce(e){let t=(0,B.c)(20),{server:n}=e;if(n.tools.length===0&&n.resources.length===0&&n.resourceTemplates.length===0){let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,K.jsx)(`p`,{className:`text-xs text-muted-foreground/70`,children:`No tools or resources reported.`}),t[0]=e):e=t[0],e}let r;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,K.jsx)(`h4`,{className:`mb-1.5 text-[11px] font-semibold uppercase tracking-[0.08em] text-muted-foreground`,children:`Tools`}),t[1]=r):r=t[1];let i;t[2]===n.tools?i=t[3]:(i=n.tools.slice(0,12).map(Ee),t[2]=n.tools,t[3]=i);let a;t[4]===i?a=t[5]:(a=(0,K.jsxs)(`div`,{children:[r,(0,K.jsx)(`div`,{className:`space-y-1`,children:i})]}),t[4]=i,t[5]=a);let o;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,K.jsx)(`h4`,{className:`mb-1.5 text-[11px] font-semibold uppercase tracking-[0.08em] text-muted-foreground`,children:`Resources`}),t[6]=o):o=t[6];let s;t[7]===n.resources?s=t[8]:(s=n.resources.slice(0,10).map(Te),t[7]=n.resources,t[8]=s);let c;t[9]===s?c=t[10]:(c=(0,K.jsxs)(`div`,{children:[o,(0,K.jsx)(`div`,{className:`space-y-1`,children:s})]}),t[9]=s,t[10]=c);let l;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,K.jsx)(`h4`,{className:`mb-1.5 text-[11px] font-semibold uppercase tracking-[0.08em] text-muted-foreground`,children:`Templates`}),t[11]=l):l=t[11];let u;t[12]===n.resourceTemplates?u=t[13]:(u=n.resourceTemplates.slice(0,10).map(we),t[12]=n.resourceTemplates,t[13]=u);let d;t[14]===u?d=t[15]:(d=(0,K.jsxs)(`div`,{children:[l,(0,K.jsx)(`div`,{className:`space-y-1`,children:u})]}),t[14]=u,t[15]=d);let f;return t[16]!==a||t[17]!==c||t[18]!==d?(f=(0,K.jsxs)(`div`,{className:`grid gap-4 md:grid-cols-3`,children:[a,c,d]}),t[16]=a,t[17]=c,t[18]=d,t[19]=f):f=t[19],f}function we(e){return(0,K.jsxs)(`div`,{className:`rounded-md border bg-background/60 px-2 py-1.5`,children:[(0,K.jsx)(`div`,{className:`truncate text-xs font-medium`,children:e.title??e.name}),(0,K.jsx)(`div`,{className:`truncate text-[11px] text-muted-foreground/75`,children:e.uriTemplate})]},e.uriTemplate)}function Te(e){return(0,K.jsxs)(`div`,{className:`rounded-md border bg-background/60 px-2 py-1.5`,children:[(0,K.jsx)(`div`,{className:`truncate text-xs font-medium`,children:e.title??e.name}),(0,K.jsx)(`div`,{className:`truncate text-[11px] text-muted-foreground/75`,children:e.uri})]},e.uri)}function Ee(e){return(0,K.jsxs)(`div`,{className:`rounded-md border bg-background/60 px-2 py-1.5`,children:[(0,K.jsx)(`div`,{className:`truncate text-xs font-medium`,children:e.title??e.name}),e.description?(0,K.jsx)(`div`,{className:`line-clamp-2 text-[11px] text-muted-foreground/75`,children:e.description}):null]},e.name)}function De(e){let t=(0,B.c)(97),{server:n,mutating:r,onToggleEnabled:o,onEdit:s,onRemove:c,onOauthLogin:d}=e,[p,m]=(0,z.useState)(!1),h;t[0]===n?h=t[1]:(h=fe(n),t[0]=n,t[1]=h);let te=h,g=`${n.tools.length} tools · ${n.resources.length+n.resourceTemplates.length} resources`,v;t[2]===n.config.transport?v=t[3]:(v=n.config.transport===`http`?(0,K.jsx)(ae,{className:`size-4 text-muted-foreground`}):(0,K.jsx)(ne,{className:`size-4 text-muted-foreground`}),t[2]=n.config.transport,t[3]=v);let y;t[4]===n.name?y=t[5]:(y=(0,K.jsx)(`h3`,{className:`truncate text-sm font-semibold`,children:n.name}),t[4]=n.name,t[5]=y);let b;t[6]!==v||t[7]!==y?(b=(0,K.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[v,y]}),t[6]=v,t[7]=y,t[8]=b):b=t[8];let x;t[9]===n?x=t[10]:(x=he(n),t[9]=n,t[10]=x);let S;t[11]===n?S=t[12]:(S=ge(n),t[11]=n,t[12]=S);let C;t[13]!==x||t[14]!==S?(C=(0,K.jsx)(re,{variant:x,children:S}),t[13]=x,t[14]=S,t[15]=C):C=t[15];let w;t[16]===n.source?w=t[17]:(w=me(n.source),t[16]=n.source,t[17]=w);let T;t[18]===w?T=t[19]:(T=(0,K.jsx)(re,{variant:`outline`,children:w}),t[18]=w,t[19]=T);let E;t[20]!==b||t[21]!==C||t[22]!==T?(E=(0,K.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[b,C,T]}),t[20]=b,t[21]=C,t[22]=T,t[23]=E):E=t[23];let D;t[24]===te?D=t[25]:(D=(0,K.jsx)(`p`,{className:`mt-1 truncate font-mono text-[11px] text-muted-foreground/80`,children:te}),t[24]=te,t[25]=D);let O;t[26]===n.config.transport?O=t[27]:(O=n.config.transport.toUpperCase(),t[26]=n.config.transport,t[27]=O);let k;t[28]===O?k=t[29]:(k=(0,K.jsx)(`span`,{children:O}),t[28]=O,t[29]=k);let A;t[30]===g?A=t[31]:(A=(0,K.jsx)(`span`,{children:g}),t[30]=g,t[31]=A);let j;t[32]===n.authStatus?j=t[33]:(j=(0,K.jsxs)(`span`,{children:[`Auth: `,n.authStatus]}),t[32]=n.authStatus,t[33]=j);let M;t[34]!==k||t[35]!==A||t[36]!==j?(M=(0,K.jsxs)(`div`,{className:`mt-2 flex flex-wrap gap-2 text-[11px] text-muted-foreground`,children:[k,A,j]}),t[34]=k,t[35]=A,t[36]=j,t[37]=M):M=t[37];let N;t[38]===n.error?N=t[39]:(N=n.error?(0,K.jsx)(`p`,{className:`mt-2 text-xs text-destructive`,children:n.error}):null,t[38]=n.error,t[39]=N);let P;t[40]!==E||t[41]!==D||t[42]!==M||t[43]!==N?(P=(0,K.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[E,D,M,N]}),t[40]=E,t[41]=D,t[42]=M,t[43]=N,t[44]=P):P=t[44];let F;t[45]!==r||t[46]!==d||t[47]!==n?(F=n.authStatus===`notLoggedIn`?(0,K.jsxs)(ee,{children:[(0,K.jsx)(a,{render:(0,K.jsx)(f,{size:`icon-sm`,variant:`outline`,disabled:r,onClick:()=>d(n),"aria-label":`Log in to ${n.name}`,children:(0,K.jsx)(oe,{})})}),(0,K.jsx)(i,{children:`Start OAuth login`})]}):null,t[45]=r,t[46]=d,t[47]=n,t[48]=F):F=t[48];let I;t[49]!==s||t[50]!==n?(I=()=>s(n),t[49]=s,t[50]=n,t[51]=I):I=t[51];let L;t[52]!==r||t[53]!==I?(L=(0,K.jsx)(f,{size:`sm`,variant:`outline`,onClick:I,disabled:r,children:`Edit`}),t[52]=r,t[53]=I,t[54]=L):L=t[54];let R;t[55]!==c||t[56]!==n?(R=()=>c(n),t[55]=c,t[56]=n,t[57]=R):R=t[57];let se=`Remove ${n.name}`,ce;t[58]===Symbol.for(`react.memo_cache_sentinel`)?(ce=(0,K.jsx)(ie,{}),t[58]=ce):ce=t[58];let V;t[59]!==r||t[60]!==R||t[61]!==se?(V=(0,K.jsx)(a,{render:(0,K.jsx)(f,{size:`icon-sm`,variant:`destructive-outline`,disabled:r,onClick:R,"aria-label":se,children:ce})}),t[59]=r,t[60]=R,t[61]=se,t[62]=V):V=t[62];let H;t[63]===Symbol.for(`react.memo_cache_sentinel`)?(H=(0,K.jsx)(i,{children:`Remove server`}),t[63]=H):H=t[63];let U;t[64]===V?U=t[65]:(U=(0,K.jsxs)(ee,{children:[V,H]}),t[64]=V,t[65]=U);let W;t[66]!==o||t[67]!==n?(W=e=>o(n,!!e),t[66]=o,t[67]=n,t[68]=W):W=t[68];let le=`Enable ${n.name}`,G;t[69]!==r||t[70]!==n.config.enabled||t[71]!==W||t[72]!==le?(G=(0,K.jsx)(_,{checked:n.config.enabled,disabled:r,onCheckedChange:W,"aria-label":le}),t[69]=r,t[70]=n.config.enabled,t[71]=W,t[72]=le,t[73]=G):G=t[73];let ue;t[74]===Symbol.for(`react.memo_cache_sentinel`)?(ue=()=>m(Oe),t[74]=ue):ue=t[74];let de=`Toggle ${n.name} inventory`,pe=p&&`rotate-180`,q;t[75]===pe?q=t[76]:(q=l(`transition-transform`,pe),t[75]=pe,t[76]=q);let J;t[77]===q?J=t[78]:(J=(0,K.jsx)(u,{className:q}),t[77]=q,t[78]=J);let Y;t[79]!==de||t[80]!==J?(Y=(0,K.jsx)(f,{size:`icon-sm`,variant:`ghost`,onClick:ue,"aria-label":de,children:J}),t[79]=de,t[80]=J,t[81]=Y):Y=t[81];let X;t[82]!==F||t[83]!==L||t[84]!==U||t[85]!==G||t[86]!==Y?(X=(0,K.jsxs)(`div`,{className:`flex shrink-0 items-center gap-1.5`,children:[F,L,U,G,Y]}),t[82]=F,t[83]=L,t[84]=U,t[85]=G,t[86]=Y,t[87]=X):X=t[87];let Z;t[88]!==P||t[89]!==X?(Z=(0,K.jsxs)(`div`,{className:`flex flex-col gap-3 p-4 sm:flex-row sm:items-start sm:justify-between`,children:[P,X]}),t[88]=P,t[89]=X,t[90]=Z):Z=t[90];let Q;t[91]!==p||t[92]!==n?(Q=p?(0,K.jsx)(`div`,{className:`border-t bg-muted/20 p-4`,children:(0,K.jsx)(Ce,{server:n})}):null,t[91]=p,t[92]=n,t[93]=Q):Q=t[93];let $;return t[94]!==Z||t[95]!==Q?($=(0,K.jsxs)(`article`,{className:`rounded-lg border bg-card text-card-foreground shadow-sm/4`,children:[Z,Q]}),t[94]=Z,t[95]=Q,t[96]=$):$=t[96],$}function Oe(e){return!e}function ke(){let[e,t]=(0,z.useState)(null),[n,o]=(0,z.useState)(null),[s,u]=(0,z.useState)(null),[d,ne]=(0,z.useState)(!0),[g,_]=(0,z.useState)(!1),[v,y]=(0,z.useState)(null),[b,x]=(0,z.useState)(!1),[S,C]=(0,z.useState)(null),[w,T]=(0,z.useState)(null),E=e?.workspaces??pe,re=e?.providers??q,D=(0,z.useMemo)(()=>E.find(e=>e.id===n)??null,[n,E]),O=(0,z.useCallback)(async(e,t)=>{t?.quiet||_(!0),T(null);try{u(await J().listServers({workspaceId:p.make(e),detail:`full`}))}catch(e){T(e instanceof Error?e.message:`Failed to load MCP servers.`),Y(`Failed to load MCP servers`,e)}finally{_(!1)}},[]),A=(0,z.useCallback)(async()=>{ne(!0),T(null);try{let e=await J().listWorkspaces();t(e);let r=e.workspaces.find(e=>e.id===n)?.id??e.workspaces[0]?.id??null;o(r),r?await O(r,{quiet:!0}):u(null)}catch(e){T(e instanceof Error?e.message:`Failed to load MCP workspaces.`),Y(`Failed to load MCP workspaces`,e)}finally{ne(!1)}},[O,n]);(0,z.useEffect)(()=>{A()},[A]);let ie=async()=>{if(!n){await A();return}await O(n)},I=async()=>{if(n){_(!0);try{u(await J().reloadServers({workspaceId:p.make(n)})),h.add(m({type:`success`,title:`MCP servers reloaded`}))}catch(e){Y(`Failed to reload MCP servers`,e)}finally{_(!1)}}},L=async e=>{n&&(u(await J().upsertServer({workspaceId:p.make(n),name:c.make(e.name.trim()),config:de(e)})),h.add(m({type:`success`,title:`MCP server saved`})))},ae=async(e,t)=>{if(n){y(e.name);try{u(await J().setServerEnabled({workspaceId:p.make(n),name:e.name,enabled:t}))}catch(e){Y(`Failed to update MCP server`,e)}finally{y(null)}}},oe=async e=>{if(n&&await r().dialogs.confirm(`Remove MCP server "${e.name}"?`)){y(e.name);try{u(await J().removeServer({workspaceId:p.make(n),name:e.name})),h.add(m({type:`success`,title:`MCP server removed`}))}catch(e){Y(`Failed to remove MCP server`,e)}finally{y(null)}}},R=async e=>{if(n){y(e.name);try{let t=await J().startOauthLogin({workspaceId:p.make(n),serverName:e.name,scopes:e.config.oauthScopes});await r().shell.openExternal(t.authorizationUrl),h.add(m({type:`success`,title:`OAuth login opened`}))}catch(e){Y(`Failed to start OAuth login`,e)}finally{y(null)}}},B=()=>{C(null),x(!0)},se=e=>{C(e),x(!0)};return(0,K.jsxs)(`div`,{className:`flex-1 p-6 sm:p-8`,children:[(0,K.jsxs)(`div`,{className:`mx-auto flex w-full max-w-4xl flex-col gap-6`,children:[(0,K.jsxs)(`header`,{className:`flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between`,children:[(0,K.jsxs)(`div`,{className:`min-w-0`,children:[(0,K.jsxs)(`div`,{className:`flex items-center gap-2 text-[11px] font-semibold uppercase tracking-[0.08em] text-muted-foreground`,children:[(0,K.jsx)(N,{className:`size-3.5`}),`Provider MCP`]}),(0,K.jsx)(`h2`,{className:`mt-1 text-lg font-semibold tracking-[-0.01em]`,children:`MCP Servers`}),(0,K.jsx)(`p`,{className:`mt-1 max-w-2xl text-sm leading-relaxed text-muted-foreground/80`,children:`Manage Codex MCP servers and inspect how other provider instances currently expose MCP support.`})]}),(0,K.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,K.jsx)(be,{workspaces:E,selectedWorkspaceId:n,onChange:e=>{o(e),O(e)}}),(0,K.jsxs)(ee,{children:[(0,K.jsx)(a,{render:(0,K.jsx)(f,{size:`icon`,variant:`outline`,onClick:()=>void ie(),disabled:d||g,"aria-label":`Refresh MCP servers`,children:(0,K.jsx)(M,{className:l((d||g)&&`animate-spin`)})})}),(0,K.jsx)(i,{children:`Refresh`})]}),(0,K.jsxs)(f,{variant:`outline`,disabled:!n||g,onClick:()=>void I(),children:[(0,K.jsx)(F,{}),`Reload`]}),(0,K.jsxs)(f,{disabled:!n,onClick:B,children:[(0,K.jsx)(j,{}),`Add server`]})]})]}),(0,K.jsx)(Se,{providers:re,selectedWorkspaceId:n,onSelectWorkspace:e=>{o(e),O(e)}}),D?(0,K.jsxs)(`div`,{className:`rounded-lg border bg-muted/20 px-4 py-3 text-xs text-muted-foreground`,children:[(0,K.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-4 gap-y-1`,children:[(0,K.jsx)(`span`,{className:`font-mono`,children:D.displayPath}),(0,K.jsx)(`span`,{children:D.mode===`authOverlay`?`Auth overlay`:`Direct home`}),(0,K.jsxs)(`span`,{children:[`Used by`,` `,D.providerInstances.map(e=>e.displayName??e.instanceId).join(`, `)]})]}),s?.configPath?(0,K.jsx)(`div`,{className:`mt-1 font-mono text-[11px] text-muted-foreground/70`,children:s.configPath}):null]}):null,e?.issues.length?(0,K.jsx)(`div`,{className:`space-y-2 rounded-lg border border-warning/30 bg-warning/6 p-3`,children:e.issues.map(e=>(0,K.jsxs)(`div`,{className:`flex gap-2 text-xs`,children:[(0,K.jsx)(P,{className:`mt-0.5 size-3.5 text-warning-foreground`}),(0,K.jsxs)(`span`,{children:[(0,K.jsx)(`span`,{className:`font-medium`,children:e.instanceId}),`: `,e.message]})]},`${e.instanceId}:${e.message}`))}):null,w?(0,K.jsx)(`div`,{className:`rounded-lg border border-destructive/30 bg-destructive/6 p-3 text-sm text-destructive-foreground`,children:w}):null,d?(0,K.jsx)(`div`,{className:`flex min-h-48 items-center justify-center rounded-lg border border-dashed`,children:(0,K.jsx)(k,{className:`size-5 animate-spin text-muted-foreground`})}):E.length===0?(0,K.jsxs)(`div`,{className:`rounded-lg border border-dashed p-8 text-center`,children:[(0,K.jsx)(N,{className:`mx-auto size-7 text-muted-foreground/60`}),(0,K.jsx)(`h3`,{className:`mt-3 text-sm font-semibold`,children:`No Codex workspaces`}),(0,K.jsx)(`p`,{className:`mx-auto mt-1 max-w-md text-sm text-muted-foreground/80`,children:`Add or enable a Codex provider instance before managing MCP servers.`})]}):s?.servers.length===0?(0,K.jsxs)(`div`,{className:`rounded-lg border border-dashed p-8 text-center`,children:[(0,K.jsx)(te,{className:`mx-auto size-7 text-muted-foreground/60`}),(0,K.jsx)(`h3`,{className:`mt-3 text-sm font-semibold`,children:`No MCP servers configured`}),(0,K.jsx)(`p`,{className:`mx-auto mt-1 max-w-md text-sm text-muted-foreground/80`,children:`Add a stdio or HTTP server to make its tools available to Codex sessions.`}),(0,K.jsxs)(f,{className:`mt-4`,onClick:B,children:[(0,K.jsx)(j,{}),`Add server`]})]}):(0,K.jsx)(`div`,{className:`grid gap-3`,children:s?.servers.map(e=>(0,K.jsx)(De,{server:e,mutating:v===e.name,onToggleEnabled:(e,t)=>void ae(e,t),onEdit:se,onRemove:e=>void oe(e),onOauthLogin:e=>void R(e)},e.name))})]}),(0,K.jsx)(ye,{open:b,server:S,onOpenChange:x,onSubmit:L})]})}export{ke as McpServersSettings};
|
package/dist/client/assets/{NoActiveThreadState-DVHwrkCp.js → NoActiveThreadState-C2q_O1kP.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./compiler-runtime-BNrXlsa1.js";import{ut as t}from"./projectAtoms-
|
|
1
|
+
import{t as e}from"./compiler-runtime-BNrXlsa1.js";import{ut as t}from"./projectAtoms-DXXpuERK.js";import{Pi as n,Sr as r}from"./composerDraftStore-DpPEQ6BN.js";import{g as i,o as a}from"./sidebar-_u7SGgmC.js";import{i as o,o as s,r as c,t as l}from"./empty-CBuXePtg.js";var u=e(),d=n();function f(){let e=(0,u.c)(2),n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,d.jsx)(`header`,{className:r(`border-b border-border px-3 sm:px-5`,t?`drag-region flex h-[52px] items-center wco:h-[env(titlebar-area-height)]`:`py-2 sm:py-3`),children:t?(0,d.jsx)(`span`,{className:`text-xs text-muted-foreground/50 wco:pr-[calc(100vw-env(titlebar-area-width)-env(titlebar-area-x)+1em)]`,children:`No active thread`}):(0,d.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,d.jsx)(i,{className:`size-7 shrink-0 md:hidden`}),(0,d.jsx)(`span`,{className:`text-sm font-medium text-foreground md:text-muted-foreground/60`,children:`No active thread`})]})}),e[0]=n):n=e[0];let f;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,d.jsx)(a,{className:`h-dvh min-h-0 overflow-hidden overscroll-y-none bg-background text-foreground`,children:(0,d.jsxs)(`div`,{className:`flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden bg-background`,children:[n,(0,d.jsx)(l,{className:`flex-1`,children:(0,d.jsx)(`div`,{className:`w-full max-w-lg rounded-3xl border border-border/55 bg-card/20 px-8 py-12 shadow-sm/5`,children:(0,d.jsxs)(o,{className:`max-w-none`,children:[(0,d.jsx)(s,{className:`text-foreground text-xl`,children:`Pick a thread to continue`}),(0,d.jsx)(c,{className:`mt-2 text-sm text-muted-foreground/78`,children:`Select an existing thread or create a new one to get started.`})]})})})]})}),e[1]=f):f=e[1],f}export{f as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e,t}from"./react-PSPkXoKo.js";import{t as n}from"./compiler-runtime-BNrXlsa1.js";import{Jt as r,cn as i,sn as a}from"./projectAtoms-DUEBb7Zz.js";import{A as o,M as s,Ni as c,Sr as l,br as u,k as d}from"./composerDraftStore-D12lUSfh.js";import{a as f,h as p,i as m,m as h}from"./toast-DE7a4wkW.js";import{G as g,H as _,Tr as v,U as y,W as ee,_ as b,lr as x,yr as te,z as ne}from"./providerIconUtils-uhWb4bdg.js";import{t as S}from"./download-DLBlpp4h.js";import{t as re}from"./refresh-cw-DkBMGllm.js";import{n as ie,t as ae}from"./tokenModePresentation-BSYdIvBm.js";import{i as oe,n as se,r as ce}from"./settingsLayout-D22Mm0u3.js";var le=n(),C=e(t(),1),w=c();function T(e){return`${e.pluginId}:${e.targetKind}:${e.providerInstanceId??`global`}`}function E(e){switch(e.state){case`installed`:return`Installed`;case`not-installed`:return`Not installed`;case`unsupported`:return`Unsupported`;case`error`:return`Error`}}function ue(e){switch(e.state){case`installed`:return`success`;case`not-installed`:return`outline`;case`unsupported`:return`warning`;case`error`:return`error`}}function D(e){switch(e.state){case`installed`:return(0,w.jsx)(h,{className:`size-3.5 text-success-foreground`});case`not-installed`:return(0,w.jsx)(v,{className:`size-3.5 text-muted-foreground`});case`unsupported`:case`error`:return(0,w.jsx)(p,{className:`size-3.5 text-warning-foreground`})}}function O(e){return e.targetKind===`global`?`System`:e.providerDisplayName??String(e.providerInstanceId??`Provider`)}function de(e){return e.impact===`tool-output`?`Tool output`:`Assistant output`}function fe(e){return e.scope===`global`?`Global`:`Provider`}function k(e){switch(e){case`rtk`:return 0;case`caveman`:return 1;case`token-optimizer`:return 2;case`token-savior`:return 3;case`lean-ctx`:return 4}}function A(e){return`${e.targetKind===`global`?`0`:`1`}:${O(e).toLowerCase()}`}function pe(e){let t=(0,le.c)(36),{status:n,isInstalling:r,onInstall:i}=e,a=n.canInstall&&n.state!==`installed`,o;t[0]===n?o=t[1]:(o=D(n),t[0]=n,t[1]=o);let s;t[2]===n?s=t[3]:(s=O(n),t[2]=n,t[3]=s);let c;t[4]===s?c=t[5]:(c=(0,w.jsx)(`span`,{className:`truncate text-[13px] font-medium text-foreground`,children:s}),t[4]=s,t[5]=c);let l;t[6]===n?l=t[7]:(l=ue(n),t[6]=n,t[7]=l);let d;t[8]===n?d=t[9]:(d=E(n),t[8]=n,t[9]=d);let f;t[10]!==l||t[11]!==d?(f=(0,w.jsx)(b,{variant:l,size:`sm`,children:d}),t[10]=l,t[11]=d,t[12]=f):f=t[12];let p;t[13]===n.version?p=t[14]:(p=n.version?(0,w.jsx)(`span`,{className:`font-mono text-[11px] text-muted-foreground/70`,children:n.version}):null,t[13]=n.version,t[14]=p);let m;t[15]!==o||t[16]!==c||t[17]!==f||t[18]!==p?(m=(0,w.jsxs)(`div`,{className:`flex min-h-5 flex-wrap items-center gap-2`,children:[o,c,f,p]}),t[15]=o,t[16]=c,t[17]=f,t[18]=p,t[19]=m):m=t[19];let h;t[20]===n.detail?h=t[21]:(h=n.detail?(0,w.jsx)(`p`,{className:`max-w-2xl text-xs leading-relaxed text-muted-foreground/80`,children:n.detail}):null,t[20]=n.detail,t[21]=h);let g;t[22]===n.manualSteps?g=t[23]:(g=n.manualSteps.length>0?(0,w.jsx)(`div`,{className:`space-y-1 pt-1`,children:n.manualSteps.map(me)}):null,t[22]=n.manualSteps,t[23]=g);let _;t[24]!==g||t[25]!==m||t[26]!==h?(_=(0,w.jsxs)(`div`,{className:`min-w-0 space-y-1`,children:[m,h,g]}),t[24]=g,t[25]=m,t[26]=h,t[27]=_):_=t[27];let v;t[28]!==a||t[29]!==r||t[30]!==i||t[31]!==n?(v=a?(0,w.jsxs)(u,{size:`xs`,variant:`outline`,disabled:r,className:`self-start sm:self-auto`,onClick:()=>i(n),children:[r?(0,w.jsx)(x,{className:`size-3.5 animate-spin`}):(0,w.jsx)(S,{className:`size-3.5`}),`Install`]}):null,t[28]=a,t[29]=r,t[30]=i,t[31]=n,t[32]=v):v=t[32];let y;return t[33]!==_||t[34]!==v?(y=(0,w.jsxs)(`div`,{className:`flex flex-col gap-3 border-t border-border/50 px-4 py-3 first:border-t-0 sm:flex-row sm:items-center sm:justify-between sm:px-5`,children:[_,v]}),t[33]=_,t[34]=v,t[35]=y):y=t[35],y}function me(e){return(0,w.jsx)(`p`,{className:`font-mono text-[11px] leading-relaxed text-muted-foreground`,children:e},e)}function j(){let e=(0,le.c)(48),t=a(),{updateSettings:n}=i(),c=t.defaultAgentTokenMode??`balanced`,f=ie[c],p=f.icon,h;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(h=[],e[0]=h):h=e[0];let[_,v]=(0,C.useState)(h),S;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(S=[],e[1]=S):S=e[1];let[E,ue]=(0,C.useState)(S),[D,k]=(0,C.useState)(!1),[A,me]=(0,C.useState)(null),j=(0,C.useRef)(!1),M;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(M=()=>{if(j.current)return;j.current=!0,k(!0);let e=r();Promise.all([e.server.listOpinionatedPlugins(),e.server.checkOpinionatedPlugins()]).then(e=>{let[t,n]=e;v(t.plugins.toSorted(Se)),ue(n.statuses)}).catch(xe).finally(()=>{j.current=!1,k(!1)})},e[2]=M):M=e[2];let N=M,P,F;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(P=()=>{N()},F=[N],e[3]=P,e[4]=F):(P=e[3],F=e[4]),(0,C.useEffect)(P,F);let I;if(e[5]!==E){let t=new Map;for(let e of E){let n=t.get(e.pluginId)??[];n.push(e),t.set(e.pluginId,n)}I=new Map;for(let[e,n]of t)I.set(e,n.toSorted(be));e[5]=E,e[6]=I}else I=e[6];let L=I,Ce=ye,R;e[7]===Symbol.for(`react.memo_cache_sentinel`)?(R=e=>{let t=r(),n=O(e);t.dialogs.confirm(`Install ${e.pluginId===`rtk`?`RTK`:`Caveman`} for ${n}?\n\nThis may run networked CLI installation commands on this machine.`).then(r=>{if(!r)return;let i=T(e);return me(i),t.server.installOpinionatedPlugin({pluginId:e.pluginId,...e.providerInstanceId?{providerInstanceId:e.providerInstanceId}:{}}).then(t=>{ue(e=>[...e.filter(e=>T(e)!==i),t.status]),m.add({type:`success`,title:`${e.pluginId===`rtk`?`RTK`:`Caveman`} installed`,description:t.commands.length>0?t.commands[t.commands.length-1]:n}),N()}).catch(ve).finally(()=>me(null))}).catch(_e)},e[7]=R):R=e[7];let we=R,z;e[8]===n?z=e[9]:(z=e=>n({defaultAgentTokenMode:e}),e[8]=n,e[9]=z);let B;e[10]===p?B=e[11]:(B=(0,w.jsx)(p,{className:`size-4 shrink-0 text-muted-foreground`}),e[10]=p,e[11]=B);let V;e[12]===f.triggerLabel?V=e[13]:(V=(0,w.jsx)(g,{children:f.triggerLabel}),e[12]=f.triggerLabel,e[13]=V);let H;e[14]!==B||e[15]!==V?(H=(0,w.jsx)(ee,{className:`w-full sm:w-52`,"aria-label":`Default token mode`,children:(0,w.jsxs)(`span`,{className:`inline-flex min-w-0 items-center gap-2`,children:[B,V]})}),e[14]=B,e[15]=V,e[16]=H):H=e[16];let U;e[17]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,w.jsx)(y,{align:`end`,alignItemWithTrigger:!1,className:`w-60`,children:ae.map(ge)}),e[17]=U):U=e[17];let W;e[18]!==c||e[19]!==z||e[20]!==H?(W=(0,w.jsx)(oe,{title:`Token mode`,children:(0,w.jsx)(ce,{title:`Default token mode`,description:`Applied to new threads and draft sessions. Existing threads keep their own mode.`,control:(0,w.jsxs)(ne,{value:c,onValueChange:z,children:[H,U]})})}),e[18]=c,e[19]=z,e[20]=H,e[21]=W):W=e[21];let G;e[22]===Symbol.for(`react.memo_cache_sentinel`)?(G=()=>N(),e[22]=G):G=e[22];let K;e[23]===D?K=e[24]:(K=D?(0,w.jsx)(x,{className:`size-3 animate-spin`}):(0,w.jsx)(re,{className:`size-3`}),e[23]=D,e[24]=K);let q;e[25]!==D||e[26]!==K?(q=(0,w.jsx)(s,{render:(0,w.jsx)(u,{size:`icon-xs`,variant:`ghost`,className:`size-5 rounded-sm p-0 text-muted-foreground hover:text-foreground`,disabled:D,onClick:G,"aria-label":`Refresh plugin status`,children:K})}),e[25]=D,e[26]=K,e[27]=q):q=e[27];let J;e[28]===Symbol.for(`react.memo_cache_sentinel`)?(J=(0,w.jsx)(o,{side:`top`,children:`Refresh plugin status`}),e[28]=J):J=e[28];let Y;e[29]===q?Y=e[30]:(Y=(0,w.jsxs)(d,{children:[q,J]}),e[29]=q,e[30]=Y);let X;e[31]!==D||e[32]!==_.length?(X=_.length===0&&D?(0,w.jsxs)(`div`,{className:`flex items-center gap-2 px-5 py-4 text-xs text-muted-foreground`,children:[(0,w.jsx)(x,{className:`size-3.5 animate-spin`}),`Loading plugin status`]}):null,e[31]=D,e[32]=_.length,e[33]=X):X=e[33];let Z;if(e[34]!==A||e[35]!==_||e[36]!==L){let t;e[38]!==A||e[39]!==L?(t=e=>{let t=L.get(e.id)??[],n=t.filter(he).length;return(0,w.jsx)(ce,{title:(0,w.jsxs)(`span`,{className:`flex min-w-0 items-center gap-2`,children:[(0,w.jsx)(`span`,{className:`truncate`,children:e.name}),(0,w.jsx)(b,{variant:n>0?`success`:`outline`,size:`sm`,children:n>0?`${n} installed`:`Available`})]}),description:e.summary,status:(0,w.jsxs)(`span`,{className:`flex flex-wrap gap-1.5`,children:[(0,w.jsx)(b,{variant:`info`,size:`sm`,children:de(e)}),(0,w.jsx)(b,{variant:`outline`,size:`sm`,children:fe(e)})]}),control:(0,w.jsxs)(u,{size:`xs`,variant:`ghost`,onClick:()=>Ce(e),children:[(0,w.jsx)(te,{className:`size-3.5`}),`Docs`]}),children:(0,w.jsx)(`div`,{className:l(`mt-4 border-t border-border/60`,t.length===0?`px-5 py-4`:``),children:t.length===0?(0,w.jsx)(`p`,{className:`text-xs text-muted-foreground/80`,children:`No compatible provider instances detected.`}):t.map(e=>(0,w.jsx)(pe,{status:e,isInstalling:A===T(e),onInstall:we},T(e)))})},e.id)},e[38]=A,e[39]=L,e[40]=t):t=e[40],Z=_.map(t),e[34]=A,e[35]=_,e[36]=L,e[37]=Z}else Z=e[37];let Q;e[41]!==Y||e[42]!==X||e[43]!==Z?(Q=(0,w.jsxs)(oe,{title:`Opinionated plugins`,headerAction:Y,children:[X,Z]}),e[41]=Y,e[42]=X,e[43]=Z,e[44]=Q):Q=e[44];let $;return e[45]!==W||e[46]!==Q?($=(0,w.jsxs)(se,{children:[W,Q]}),e[45]=W,e[46]=Q,e[47]=$):$=e[47],$}function he(e){return e.state===`installed`}function ge(e){let t=ie[e],n=t.icon;return(0,w.jsx)(_,{hideIndicator:!0,value:e,children:(0,w.jsxs)(`div`,{className:`grid min-w-0 gap-0.5`,children:[(0,w.jsxs)(`span`,{className:`inline-flex items-center gap-1.5 font-medium text-foreground`,children:[(0,w.jsx)(n,{className:`size-3.5 shrink-0 text-muted-foreground`}),t.label]}),(0,w.jsx)(`span`,{className:`text-muted-foreground text-xs leading-4`,children:t.description})]})},e)}function _e(e){m.add(f({type:`error`,title:`Install confirmation failed`,description:e instanceof Error?e.message:`An error occurred.`}))}function ve(e){m.add(f({type:`error`,title:`Plugin install failed`,description:e instanceof Error?e.message:`An error occurred.`}))}function ye(e){let t=e.docsUrl??e.homepageUrl;r().shell.openExternal(t).catch(M)}function M(e){m.add(f({type:`error`,title:`Failed to open plugin docs`,description:e instanceof Error?e.message:`An error occurred.`}))}function be(e,t){return A(e).localeCompare(A(t))}function xe(e){m.add(f({type:`error`,title:`Failed to load plugins`,description:e instanceof Error?e.message:`An error occurred.`}))}function Se(e,t){return k(e.id)-k(t.id)}export{j as OpinionatedPluginsSettingsPanel};
|
|
1
|
+
import{i as e,t}from"./react-PSPkXoKo.js";import{t as n}from"./compiler-runtime-BNrXlsa1.js";import{Jt as r,cn as i,sn as a}from"./projectAtoms-DXXpuERK.js";import{A as o,M as s,Pi as c,Sr as l,br as u,k as d}from"./composerDraftStore-DpPEQ6BN.js";import{a as f,h as p,i as m,m as h}from"./toast-DmA_ziPT.js";import{G as g,H as _,Sr as v,U as y,W as ee,_ as b,_r as te,sr as x,z as ne}from"./providerIconUtils-D-DFhem2.js";import{t as S}from"./download-CUiRE0N9.js";import{t as re}from"./refresh-cw-BsQTNBXl.js";import{n as ie,t as ae}from"./tokenModePresentation-Dor1DnBx.js";import{i as oe,n as se,r as ce}from"./settingsLayout-G5xVm-ZT.js";var le=n(),C=e(t(),1),w=c();function T(e){return`${e.pluginId}:${e.targetKind}:${e.providerInstanceId??`global`}`}function E(e){switch(e.state){case`installed`:return`Installed`;case`not-installed`:return`Not installed`;case`unsupported`:return`Unsupported`;case`error`:return`Error`}}function ue(e){switch(e.state){case`installed`:return`success`;case`not-installed`:return`outline`;case`unsupported`:return`warning`;case`error`:return`error`}}function D(e){switch(e.state){case`installed`:return(0,w.jsx)(h,{className:`size-3.5 text-success-foreground`});case`not-installed`:return(0,w.jsx)(v,{className:`size-3.5 text-muted-foreground`});case`unsupported`:case`error`:return(0,w.jsx)(p,{className:`size-3.5 text-warning-foreground`})}}function O(e){return e.targetKind===`global`?`System`:e.providerDisplayName??String(e.providerInstanceId??`Provider`)}function de(e){return e.impact===`tool-output`?`Tool output`:`Assistant output`}function fe(e){return e.scope===`global`?`Global`:`Provider`}function k(e){switch(e){case`rtk`:return 0;case`caveman`:return 1;case`token-optimizer`:return 2;case`token-savior`:return 3;case`lean-ctx`:return 4}}function A(e){return`${e.targetKind===`global`?`0`:`1`}:${O(e).toLowerCase()}`}function pe(e){let t=(0,le.c)(36),{status:n,isInstalling:r,onInstall:i}=e,a=n.canInstall&&n.state!==`installed`,o;t[0]===n?o=t[1]:(o=D(n),t[0]=n,t[1]=o);let s;t[2]===n?s=t[3]:(s=O(n),t[2]=n,t[3]=s);let c;t[4]===s?c=t[5]:(c=(0,w.jsx)(`span`,{className:`truncate text-[13px] font-medium text-foreground`,children:s}),t[4]=s,t[5]=c);let l;t[6]===n?l=t[7]:(l=ue(n),t[6]=n,t[7]=l);let d;t[8]===n?d=t[9]:(d=E(n),t[8]=n,t[9]=d);let f;t[10]!==l||t[11]!==d?(f=(0,w.jsx)(b,{variant:l,size:`sm`,children:d}),t[10]=l,t[11]=d,t[12]=f):f=t[12];let p;t[13]===n.version?p=t[14]:(p=n.version?(0,w.jsx)(`span`,{className:`font-mono text-[11px] text-muted-foreground/70`,children:n.version}):null,t[13]=n.version,t[14]=p);let m;t[15]!==o||t[16]!==c||t[17]!==f||t[18]!==p?(m=(0,w.jsxs)(`div`,{className:`flex min-h-5 flex-wrap items-center gap-2`,children:[o,c,f,p]}),t[15]=o,t[16]=c,t[17]=f,t[18]=p,t[19]=m):m=t[19];let h;t[20]===n.detail?h=t[21]:(h=n.detail?(0,w.jsx)(`p`,{className:`max-w-2xl text-xs leading-relaxed text-muted-foreground/80`,children:n.detail}):null,t[20]=n.detail,t[21]=h);let g;t[22]===n.manualSteps?g=t[23]:(g=n.manualSteps.length>0?(0,w.jsx)(`div`,{className:`space-y-1 pt-1`,children:n.manualSteps.map(me)}):null,t[22]=n.manualSteps,t[23]=g);let _;t[24]!==g||t[25]!==m||t[26]!==h?(_=(0,w.jsxs)(`div`,{className:`min-w-0 space-y-1`,children:[m,h,g]}),t[24]=g,t[25]=m,t[26]=h,t[27]=_):_=t[27];let v;t[28]!==a||t[29]!==r||t[30]!==i||t[31]!==n?(v=a?(0,w.jsxs)(u,{size:`xs`,variant:`outline`,disabled:r,className:`self-start sm:self-auto`,onClick:()=>i(n),children:[r?(0,w.jsx)(x,{className:`size-3.5 animate-spin`}):(0,w.jsx)(S,{className:`size-3.5`}),`Install`]}):null,t[28]=a,t[29]=r,t[30]=i,t[31]=n,t[32]=v):v=t[32];let y;return t[33]!==_||t[34]!==v?(y=(0,w.jsxs)(`div`,{className:`flex flex-col gap-3 border-t border-border/50 px-4 py-3 first:border-t-0 sm:flex-row sm:items-center sm:justify-between sm:px-5`,children:[_,v]}),t[33]=_,t[34]=v,t[35]=y):y=t[35],y}function me(e){return(0,w.jsx)(`p`,{className:`font-mono text-[11px] leading-relaxed text-muted-foreground`,children:e},e)}function j(){let e=(0,le.c)(48),t=a(),{updateSettings:n}=i(),c=t.defaultAgentTokenMode??`balanced`,f=ie[c],p=f.icon,h;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(h=[],e[0]=h):h=e[0];let[_,v]=(0,C.useState)(h),S;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(S=[],e[1]=S):S=e[1];let[E,ue]=(0,C.useState)(S),[D,k]=(0,C.useState)(!1),[A,me]=(0,C.useState)(null),j=(0,C.useRef)(!1),M;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(M=()=>{if(j.current)return;j.current=!0,k(!0);let e=r();Promise.all([e.server.listOpinionatedPlugins(),e.server.checkOpinionatedPlugins()]).then(e=>{let[t,n]=e;v(t.plugins.toSorted(Se)),ue(n.statuses)}).catch(xe).finally(()=>{j.current=!1,k(!1)})},e[2]=M):M=e[2];let N=M,P,F;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(P=()=>{N()},F=[N],e[3]=P,e[4]=F):(P=e[3],F=e[4]),(0,C.useEffect)(P,F);let I;if(e[5]!==E){let t=new Map;for(let e of E){let n=t.get(e.pluginId)??[];n.push(e),t.set(e.pluginId,n)}I=new Map;for(let[e,n]of t)I.set(e,n.toSorted(be));e[5]=E,e[6]=I}else I=e[6];let L=I,Ce=ye,R;e[7]===Symbol.for(`react.memo_cache_sentinel`)?(R=e=>{let t=r(),n=O(e);t.dialogs.confirm(`Install ${e.pluginId===`rtk`?`RTK`:`Caveman`} for ${n}?\n\nThis may run networked CLI installation commands on this machine.`).then(r=>{if(!r)return;let i=T(e);return me(i),t.server.installOpinionatedPlugin({pluginId:e.pluginId,...e.providerInstanceId?{providerInstanceId:e.providerInstanceId}:{}}).then(t=>{ue(e=>[...e.filter(e=>T(e)!==i),t.status]),m.add({type:`success`,title:`${e.pluginId===`rtk`?`RTK`:`Caveman`} installed`,description:t.commands.length>0?t.commands[t.commands.length-1]:n}),N()}).catch(ve).finally(()=>me(null))}).catch(_e)},e[7]=R):R=e[7];let we=R,z;e[8]===n?z=e[9]:(z=e=>n({defaultAgentTokenMode:e}),e[8]=n,e[9]=z);let B;e[10]===p?B=e[11]:(B=(0,w.jsx)(p,{className:`size-4 shrink-0 text-muted-foreground`}),e[10]=p,e[11]=B);let V;e[12]===f.triggerLabel?V=e[13]:(V=(0,w.jsx)(g,{children:f.triggerLabel}),e[12]=f.triggerLabel,e[13]=V);let H;e[14]!==B||e[15]!==V?(H=(0,w.jsx)(ee,{className:`w-full sm:w-52`,"aria-label":`Default token mode`,children:(0,w.jsxs)(`span`,{className:`inline-flex min-w-0 items-center gap-2`,children:[B,V]})}),e[14]=B,e[15]=V,e[16]=H):H=e[16];let U;e[17]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,w.jsx)(y,{align:`end`,alignItemWithTrigger:!1,className:`w-60`,children:ae.map(ge)}),e[17]=U):U=e[17];let W;e[18]!==c||e[19]!==z||e[20]!==H?(W=(0,w.jsx)(oe,{title:`Token mode`,children:(0,w.jsx)(ce,{title:`Default token mode`,description:`Applied to new threads and draft sessions. Existing threads keep their own mode.`,control:(0,w.jsxs)(ne,{value:c,onValueChange:z,children:[H,U]})})}),e[18]=c,e[19]=z,e[20]=H,e[21]=W):W=e[21];let G;e[22]===Symbol.for(`react.memo_cache_sentinel`)?(G=()=>N(),e[22]=G):G=e[22];let K;e[23]===D?K=e[24]:(K=D?(0,w.jsx)(x,{className:`size-3 animate-spin`}):(0,w.jsx)(re,{className:`size-3`}),e[23]=D,e[24]=K);let q;e[25]!==D||e[26]!==K?(q=(0,w.jsx)(s,{render:(0,w.jsx)(u,{size:`icon-xs`,variant:`ghost`,className:`size-5 rounded-sm p-0 text-muted-foreground hover:text-foreground`,disabled:D,onClick:G,"aria-label":`Refresh plugin status`,children:K})}),e[25]=D,e[26]=K,e[27]=q):q=e[27];let J;e[28]===Symbol.for(`react.memo_cache_sentinel`)?(J=(0,w.jsx)(o,{side:`top`,children:`Refresh plugin status`}),e[28]=J):J=e[28];let Y;e[29]===q?Y=e[30]:(Y=(0,w.jsxs)(d,{children:[q,J]}),e[29]=q,e[30]=Y);let X;e[31]!==D||e[32]!==_.length?(X=_.length===0&&D?(0,w.jsxs)(`div`,{className:`flex items-center gap-2 px-5 py-4 text-xs text-muted-foreground`,children:[(0,w.jsx)(x,{className:`size-3.5 animate-spin`}),`Loading plugin status`]}):null,e[31]=D,e[32]=_.length,e[33]=X):X=e[33];let Z;if(e[34]!==A||e[35]!==_||e[36]!==L){let t;e[38]!==A||e[39]!==L?(t=e=>{let t=L.get(e.id)??[],n=t.filter(he).length;return(0,w.jsx)(ce,{title:(0,w.jsxs)(`span`,{className:`flex min-w-0 items-center gap-2`,children:[(0,w.jsx)(`span`,{className:`truncate`,children:e.name}),(0,w.jsx)(b,{variant:n>0?`success`:`outline`,size:`sm`,children:n>0?`${n} installed`:`Available`})]}),description:e.summary,status:(0,w.jsxs)(`span`,{className:`flex flex-wrap gap-1.5`,children:[(0,w.jsx)(b,{variant:`info`,size:`sm`,children:de(e)}),(0,w.jsx)(b,{variant:`outline`,size:`sm`,children:fe(e)})]}),control:(0,w.jsxs)(u,{size:`xs`,variant:`ghost`,onClick:()=>Ce(e),children:[(0,w.jsx)(te,{className:`size-3.5`}),`Docs`]}),children:(0,w.jsx)(`div`,{className:l(`mt-4 border-t border-border/60`,t.length===0?`px-5 py-4`:``),children:t.length===0?(0,w.jsx)(`p`,{className:`text-xs text-muted-foreground/80`,children:`No compatible provider instances detected.`}):t.map(e=>(0,w.jsx)(pe,{status:e,isInstalling:A===T(e),onInstall:we},T(e)))})},e.id)},e[38]=A,e[39]=L,e[40]=t):t=e[40],Z=_.map(t),e[34]=A,e[35]=_,e[36]=L,e[37]=Z}else Z=e[37];let Q;e[41]!==Y||e[42]!==X||e[43]!==Z?(Q=(0,w.jsxs)(oe,{title:`Opinionated plugins`,headerAction:Y,children:[X,Z]}),e[41]=Y,e[42]=X,e[43]=Z,e[44]=Q):Q=e[44];let $;return e[45]!==W||e[46]!==Q?($=(0,w.jsxs)(se,{children:[W,Q]}),e[45]=W,e[46]=Q,e[47]=$):$=e[47],$}function he(e){return e.state===`installed`}function ge(e){let t=ie[e],n=t.icon;return(0,w.jsx)(_,{hideIndicator:!0,value:e,children:(0,w.jsxs)(`div`,{className:`grid min-w-0 gap-0.5`,children:[(0,w.jsxs)(`span`,{className:`inline-flex items-center gap-1.5 font-medium text-foreground`,children:[(0,w.jsx)(n,{className:`size-3.5 shrink-0 text-muted-foreground`}),t.label]}),(0,w.jsx)(`span`,{className:`text-muted-foreground text-xs leading-4`,children:t.description})]})},e)}function _e(e){m.add(f({type:`error`,title:`Install confirmation failed`,description:e instanceof Error?e.message:`An error occurred.`}))}function ve(e){m.add(f({type:`error`,title:`Plugin install failed`,description:e instanceof Error?e.message:`An error occurred.`}))}function ye(e){let t=e.docsUrl??e.homepageUrl;r().shell.openExternal(t).catch(M)}function M(e){m.add(f({type:`error`,title:`Failed to open plugin docs`,description:e instanceof Error?e.message:`An error occurred.`}))}function be(e,t){return A(e).localeCompare(A(t))}function xe(e){m.add(f({type:`error`,title:`Failed to load plugins`,description:e instanceof Error?e.message:`An error occurred.`}))}function Se(e,t){return k(e.id)-k(t.id)}export{j as OpinionatedPluginsSettingsPanel};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e,t}from"./react-PSPkXoKo.js";import{Gt as n}from"./projectAtoms-
|
|
1
|
+
import{i as e,t}from"./react-PSPkXoKo.js";import{Gt as n}from"./projectAtoms-DXXpuERK.js";import{Pi as r,Sr as i}from"./composerDraftStore-DpPEQ6BN.js";import{fr as a}from"./providerIconUtils-D-DFhem2.js";var o=e(t(),1),s=r(),c=new Set;function l(e){let t=(()=>{try{return e.customAvatarContentHash&&e.projectId?n({environmentId:e.environmentId,pathname:`/api/project-avatar`,searchParams:{projectId:e.projectId,v:e.customAvatarContentHash}}):n({environmentId:e.environmentId,pathname:`/api/project-favicon`,searchParams:{cwd:e.cwd}})}catch{return null}})(),[r,l]=(0,o.useState)(()=>t&&c.has(t)?`loaded`:`loading`),u=e.fillContainer?i(`size-full text-muted-foreground/50`,e.className):i(`size-3.5 shrink-0 text-muted-foreground/50`,e.className);if(!t||r===`error`)return(0,s.jsx)(a,{className:u});let d=e.fillContainer?i(`size-full object-cover`,r===`loaded`?``:`hidden`,e.className):i(`size-3.5 shrink-0 rounded-sm object-contain`,r===`loaded`?``:`hidden`,e.className);return(0,s.jsxs)(s.Fragment,{children:[r===`loaded`?null:(0,s.jsx)(a,{className:u}),(0,s.jsx)(`img`,{src:t,alt:``,className:d,onLoad:()=>{c.add(t),l(`loaded`)},onError:()=>l(`error`)})]})}export{l as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{da as e,ma as t}from"./composerDraftStore-DpPEQ6BN.js";var n=3e3;function r(e){return e.startsWith(`v`)?e:`v${e}`}function i(e,n){if(!e)return n;let r=t(n.driver);return n.instanceId===r?n:e.instanceId===r?e:n.checkedAt.localeCompare(e.checkedAt)>=0?n:e}function a(e){let t=new Map;for(let n of e)t.set(n.driver,i(t.get(n.driver),n));return[...t.values()]}function o(e){let t=new Map;for(let n of e){let e=t.get(n.instanceId);(!e||n.checkedAt.localeCompare(e.checkedAt)>=0)&&t.set(n.instanceId,n)}return[...t.values()]}function s(t){let n=e[t.driver]??t.driver;return t.version?`${n} updated: ${r(t.version)}`:`${n} updated`}function c(e){return e===1?`New sessions will use the updated provider.`:`New sessions will use the updated providers.`}function l(t){let n=e[t.driver]??t.driver,i=t.versionAdvisory?.latestVersion;return i?`${n} ${r(i)} update failed`:`${n} update failed`}function u(e){return e.enabled&&e.versionAdvisory?.status===`behind_latest`&&e.versionAdvisory.latestVersion!==null}function d(e){return e.updateState?.status===`queued`||e.updateState?.status===`running`}function f(e){return a(e.filter(u))}function p(e,t){if(e.versionAdvisory.canUpdate!==!0||e.versionAdvisory.updateCommand===null)return!1;let n=t.filter(t=>t.driver===e.driver);if(n.length===0)return!1;let r=new Set;for(let e of n){if(!u(e))continue;let t=e.versionAdvisory;if(!t||t.canUpdate!==!0||t.updateCommand===null)return!1;r.add(t.updateCommand)}return r.size===1}function m(e,t){return!d(e)&&p(e,t)}function h(e){let t=a(e).map(e=>{let t=e.versionAdvisory;return[e.driver,t.latestVersion].join(`:`)}).toSorted();return t.length>0?t.join(`|`):null}function g(t){let n=t.map(t=>e[t.driver]??t.driver);return n.length<=2?n.join(` and `):`${n.slice(0,-1).join(`, `)}, and ${n[n.length-1]}`}function _(e){return{phase:`initial`,type:`warning`,title:D(e.updateProviders),description:e.oneClickProviders.length>0?`Install the update now or review provider settings.`:`${g(e.updateProviders)} can be updated from provider settings.`}}function v(e){return{phase:`running`,type:`loading`,title:e===1?`Updating provider`:`Updating providers`,description:`Running provider update command.`}}function y(e,t){return{phase:`failed`,type:`error`,title:e===1?`Provider update failed`:`Provider updates failed`,description:t}}function b(e){let t=a(e.providers),r=t.filter(e=>e.updateState?.status===`failed`);if(r.length>0)return{phase:`failed`,type:`error`,title:r.length===1?`Provider update failed`:`Provider updates failed`,description:O(r)};let i=t.filter(e=>e.updateState?.status===`unchanged`);return i.length>0?{phase:`unchanged`,type:`warning`,title:i.length===1?`Provider still needs an update`:`Providers still need updates`,description:`${g(i)} ${i.length===1?`still appears`:`still appear`} outdated. Check provider settings for details.`}:t.some(d)?v(e.providerCount):t.length>=e.providerCount&&t.every(e=>e.updateState?.status===`succeeded`||!u(e))?{phase:`succeeded`,type:`success`,title:e.providerCount===1?`Provider updated`:`Provider updates finished`,description:c(e.providerCount),dismissAfterVisibleMs:n}:v(e.providerCount)}function x(e){let t=[];for(let n of e.results)if(n.status===`fulfilled`)for(let r of n.value.providers)e.providerInstanceIds.has(r.instanceId)&&t.push(r);return o(t)}function S(e){let t=e.find(e=>e.status===`rejected`);return t?t.reason instanceof Error?t.reason.message:`Provider update failed.`:null}function C(e){return e.updateState?.finishedAt??null}function w(e,t){let n=e.updateState?.status;if(n!==`failed`&&n!==`unchanged`&&n!==`succeeded`)return!1;if(t===void 0)return!0;let r=C(e);return r!==null&&r>=t}function T(e){return e.reduce((e,t)=>{let n=C(t);return n===null?e:e===null||n>e?n:e},null)}function E(t,r){let i=a(t),o=i.filter(d);if(o.length>0){let t=o[0],n=e[t.driver]??t.driver;return{key:`loading:${o.map(e=>`${e.driver}:${e.updateState?.status??`idle`}`).toSorted().join(`|`)}`,tone:`loading`,title:o.length===1?`Updating ${n}`:`Updating ${o.length} providers`,description:o.length===1?`${g(o)} update in progress.`:`${g(o)} updates are in progress.`}}let u=i.filter(e=>w(e,r?.visibleAfterIso)),f=[],p=u.filter(e=>e.updateState?.status===`failed`);if(p.length>0){let e=p[0];f.push({key:`failed:${p.map(e=>`${e.driver}:${e.updateState?.finishedAt??`pending`}:${e.updateState?.message??``}`).toSorted().join(`|`)}`,tone:`error`,title:p.length===1?l(e):`${p.length} provider updates failed`,description:O(p),dismissible:!0})}let m=u.filter(e=>e.updateState?.status===`unchanged`);if(m.length>0){let t=m[0],n=e[t.driver]??t.driver;f.push({key:`unchanged:${m.map(e=>`${e.driver}:${e.updateState?.finishedAt??`pending`}:${e.updateState?.message??``}`).toSorted().join(`|`)}`,tone:`warning`,title:m.length===1?`${n} still needs an update`:`${m.length} providers still need updates`,description:`${g(m)} ${m.length===1?`still appears`:`still appear`} outdated. Review provider settings for details.`,dismissible:!0})}let h=u.filter(e=>e.updateState?.status===`succeeded`);if(h.length>0){let e=h[0];f.push({key:`succeeded:${h.map(e=>`${e.driver}:${e.updateState?.finishedAt??`pending`}:${e.updateState?.message??``}`).toSorted().join(`|`)}`,tone:`success`,title:h.length===1?s(e):`${h.length} providers updated`,description:c(h.length),dismissAfterVisibleMs:n})}return f.toSorted((e,t)=>{let n=e.tone===`error`?p:e.tone===`warning`?m:h,r=t.tone===`error`?p:t.tone===`warning`?m:h,i=T(n)??``;return(T(r)??``).localeCompare(i)}).find(e=>!r?.dismissedKeys?.has(e.key))??null}function D(t){if(t.length===1){let n=t[0];return`Update Available: ${e[n.driver]??n.driver} ${r(n.versionAdvisory.latestVersion)}`}return`Updates Available: ${t.length} providers`}function O(e){if(e.length===1){let t=e[0];if(t.updateState?.message)return t.updateState.message}return`${g(e)} failed to update. Check provider settings for details.`}export{_ as a,v as c,u as d,h as f,S as i,E as l,f as n,b as o,x as r,y as s,m as t,d as u};
|