@univerjs-pro/mcp-ui 0.25.1 → 1.0.0-alpha.1
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/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/views/components/mcp-config.d.ts +1 -1
- package/lib/types/views/components/mcp-status.d.ts +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +12 -12
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x215031=_0x30f8;(function(_0x25e05f,_0xa0b6b9){const _0x1ded62=_0x30f8,_0x4c8865=_0x25e05f();while(!![]){try{const _0x140913=-parseInt(_0x1ded62(0x1c3))/0x1+-parseInt(_0x1ded62(0x1bd))/0x2*(-parseInt(_0x1ded62(0x2b6))/0x3)+-parseInt(_0x1ded62(0x269))/0x4*(-parseInt(_0x1ded62(0x281))/0x5)+parseInt(_0x1ded62(0x205))/0x6+-parseInt(_0x1ded62(0x288))/0x7+-parseInt(_0x1ded62(0x1f6))/0x8*(-parseInt(_0x1ded62(0x2f0))/0x9)+-parseInt(_0x1ded62(0x1b4))/0xa;if(_0x140913===_0xa0b6b9)break;else _0x4c8865['push'](_0x4c8865['shift']());}catch(_0x200d4f){_0x4c8865['push'](_0x4c8865['shift']());}}}(_0x4761,0x9a39f),Object[_0x215031(0x265)](exports,Symbol[_0x215031(0x2af)],{'value':_0x215031(0x1ec)}));let e=require('@univerjs/core'),t=require('@univerjs-pro/mcp'),n=require('@univerjs/design'),r=require('@univerjs/ui'),i=require('rxjs'),a=require('@univerjs/icons'),o=require('react'),s=require('react/jsx-runtime'),c=require('@univerjs/network');function l(_0x22b9f1){const _0x3173d4=_0x215031;var _0x2c5cb6,_0x265e01;let {mcpCoreConfig:_0x54d6d7,onSave:_0x2bf3e1,loading:_0x240b14=!0x1,config:_0x13464e,connectionStatus$:_0x104c0f,connectionError$:_0x3c12e6,currentApiKey$:_0x3aad14,currentSessionId$:_0x158678}=_0x22b9f1,_0x216134=(0x0,r['useDependency'])(e[_0x3173d4(0x1c4)]),_0x3315b5=(0x0,r[_0x3173d4(0x1b8)])(_0x104c0f,t[_0x3173d4(0x227)][_0x3173d4(0x29e)]),_0x279c9e=(0x0,r[_0x3173d4(0x1b8)])(_0x3c12e6,t[_0x3173d4(0x22e)]['NONE']),_0x3ac65e=(0x0,r['useObservable'])(_0x158678,''),[_0x52051e,_0x2e4000]=(0x0,o[_0x3173d4(0x2ec)])((0x0,r['useObservable'])(_0x3aad14,'')||''),_0x594837=_0x13464e[_0x3173d4(0x1d4)]&&_0x54d6d7['mcpServerUrl']&&(_0x54d6d7['mcpServerUrl'][_0x3173d4(0x24a)](_0x3173d4(0x2d6))||_0x54d6d7[_0x3173d4(0x200)]['includes']('univer.ai')),_0x12d36a=(_0x2c5cb6=_0x54d6d7['mcpServerUrl'])==null?void 0x0:_0x2c5cb6[_0x3173d4(0x24a)](_0x3173d4(0x2d6)),_0x789dc8=(_0x265e01=_0x54d6d7[_0x3173d4(0x200)])==null?void 0x0:_0x265e01[_0x3173d4(0x24a)](_0x3173d4(0x1b7)),_0x55df42=_0x12d36a?'https://console.univer.plus':_0x3173d4(0x29c),_0x3712fa=_0x13464e[_0x3173d4(0x1d4)]&&(_0x12d36a||_0x789dc8),[_0x22ef8b,_0x279446]=(0x0,o[_0x3173d4(0x2ec)])(!_0x52051e[_0x3173d4(0x249)]()),_0x2bcab7=(_0x2a7f58,_0x59d7c1)=>{const _0x4b0898=_0x3173d4;if(_0x59d7c1===t[_0x4b0898(0x22e)]['UNAUTHORIZED'])return _0x4b0898(0x25f);switch(_0x2a7f58){case t[_0x4b0898(0x227)][_0x4b0898(0x214)]:return _0x4b0898(0x2d0);case t[_0x4b0898(0x227)]['CONNECTING']:case t[_0x4b0898(0x227)][_0x4b0898(0x296)]:return _0x4b0898(0x289);case t[_0x4b0898(0x227)][_0x4b0898(0x278)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x551e6e=(_0x4c4d75,_0xbe38f)=>{const _0x2ab86c=_0x3173d4;if(_0xbe38f===t[_0x2ab86c(0x22e)][_0x2ab86c(0x1a8)])return'univer-bg-red-500';switch(_0x4c4d75){case t[_0x2ab86c(0x227)][_0x2ab86c(0x214)]:return'univer-bg-green-500';case t['MCPConnectionStatus'][_0x2ab86c(0x2c3)]:case t[_0x2ab86c(0x227)][_0x2ab86c(0x296)]:return _0x2ab86c(0x239);case t[_0x2ab86c(0x227)]['FAILED']:return _0x2ab86c(0x271);default:return _0x2ab86c(0x1d3);}},_0x72143d=_0x13ae49=>{const _0x2cb1d6=_0x3173d4;switch(_0x13ae49){case t['MCPConnectionStatus']['CONNECTED']:return _0x216134['t'](_0x2cb1d6(0x236));case t[_0x2cb1d6(0x227)]['CONNECTING']:return _0x216134['t'](_0x2cb1d6(0x2d1));case t[_0x2cb1d6(0x227)][_0x2cb1d6(0x278)]:return _0x216134['t'](_0x2cb1d6(0x1cb));case t[_0x2cb1d6(0x227)]['RETRYING']:return _0x216134['t'](_0x2cb1d6(0x26b));default:return _0x216134['t'](_0x2cb1d6(0x2aa));}},_0x28a95b=_0x4a634c=>{const _0x2cc4d6=_0x3173d4;switch(_0x4a634c){case t[_0x2cc4d6(0x22e)][_0x2cc4d6(0x1a8)]:return _0x216134['t'](_0x2cc4d6(0x300));case t['MCPConnectionError'][_0x2cc4d6(0x1f0)]:return _0x216134['t'](_0x2cc4d6(0x2d7));case t['MCPConnectionError'][_0x2cc4d6(0x24f)]:return _0x216134['t']('mcpConfig.connectionError.networkError');case t[_0x2cc4d6(0x22e)][_0x2cc4d6(0x27b)]:return _0x216134['t'](_0x2cc4d6(0x1eb));default:return'';}},_0x4a557e=(0x0,o[_0x3173d4(0x2f8)])(()=>{const _0x2c82b0=_0x3173d4;_0x2bf3e1({..._0x54d6d7,'apiKey':_0x52051e[_0x2c82b0(0x249)](),'enableAuth':!0x0});},[_0x54d6d7,_0x52051e,!0x0,_0x2bf3e1]),_0x17e788=_0x52051e[_0x3173d4(0x249)]()[_0x3173d4(0x1d2)]>0x0;return(0x0,s['jsxs'])(_0x3173d4(0x230),{'className':_0x3173d4(0x1fe),'children':[(0x0,s[_0x3173d4(0x2b7)])(_0x3173d4(0x230),{'className':_0x3173d4(0x1bb),'children':(0x0,s[_0x3173d4(0x229)])(_0x3173d4(0x230),{'className':_0x3173d4(0x225),'children':[(0x0,s[_0x3173d4(0x2b7)])(_0x3173d4(0x230),{'className':_0x3173d4(0x264),'children':(0x0,s['jsx'])(_0x3173d4(0x2a2),{'className':_0x3173d4(0x1ff),'children':'⚙'})}),(0x0,s[_0x3173d4(0x2b7)])('div',{'children':(0x0,s[_0x3173d4(0x2b7)])('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x216134['t'](_0x3173d4(0x1e9))})})]})}),(0x0,s['jsxs'])('div',{'className':_0x3173d4(0x1ef),'children':[(0x0,s[_0x3173d4(0x2b7)])(_0x3173d4(0x230),{'className':(0x0,n[_0x3173d4(0x1d6)])('univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2',_0x2bcab7(_0x3315b5,_0x279c9e)),'children':(0x0,s[_0x3173d4(0x229)])(_0x3173d4(0x230),{'className':_0x3173d4(0x1ab),'children':[(0x0,s[_0x3173d4(0x2b7)])(_0x3173d4(0x230),{'className':(0x0,n[_0x3173d4(0x1d6)])('univer-size-2\x20univer-rounded-full',_0x551e6e(_0x3315b5,_0x279c9e))}),(0x0,s[_0x3173d4(0x2b7)])('span',{'className':_0x3173d4(0x2f5),'children':_0x72143d(_0x3315b5)})]})}),_0x279c9e!==t[_0x3173d4(0x22e)][_0x3173d4(0x25b)]&&(_0x3315b5===t[_0x3173d4(0x227)][_0x3173d4(0x278)]||_0x279c9e===t['MCPConnectionError'][_0x3173d4(0x1a8)])&&(0x0,s[_0x3173d4(0x2b7)])(_0x3173d4(0x230),{'className':_0x3173d4(0x1ae),'children':(0x0,s[_0x3173d4(0x229)])(_0x3173d4(0x230),{'className':_0x3173d4(0x253),'children':[(0x0,s[_0x3173d4(0x2b7)])('span',{'className':_0x3173d4(0x203),'children':'⚠️'}),(0x0,s[_0x3173d4(0x2b7)])('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x28a95b(_0x279c9e)})]})})]}),(0x0,s['jsx'])(_0x3173d4(0x230),{'className':_0x3173d4(0x22d),'children':(0x0,s['jsxs'])('div',{'className':'univer-space-y-5','children':[(0x0,s[_0x3173d4(0x229)])(_0x3173d4(0x230),{'className':_0x3173d4(0x244),'children':[(0x0,s['jsxs'])(_0x3173d4(0x226),{'className':_0x3173d4(0x2ca),'children':[(0x0,s[_0x3173d4(0x2b7)])(_0x3173d4(0x2a2),{'children':'🔑'}),'\x20',_0x216134['t'](_0x3173d4(0x21c)),(0x0,s[_0x3173d4(0x2b7)])('span',{'className':_0x3173d4(0x268),'children':'*'}),_0x594837&&(0x0,s[_0x3173d4(0x2b7)])('a',{'className':_0x3173d4(0x1e2),'title':_0x216134['t'](_0x3173d4(0x218)),'role':'button','onClick':()=>_0x279446(!0x0),'children':(0x0,s[_0x3173d4(0x2b7)])(a['HelpIcon'],{})})]}),(0x0,s[_0x3173d4(0x2b7)])(n[_0x3173d4(0x2ef)],{'type':_0x3173d4(0x1de),'placeholder':_0x216134['t'](_0x3173d4(0x1e7)),'value':_0x52051e,'disabled':_0x240b14,'autoComplete':_0x3173d4(0x1c2),'onChange':_0x2e4000}),(0x0,s[_0x3173d4(0x2b7)])('p',{'className':_0x3173d4(0x2ad),'children':_0x216134['t']('mcpConfig.apiKeyHint')})]}),_0x594837&&_0x22ef8b&&(0x0,s[_0x3173d4(0x229)])(_0x3173d4(0x230),{'className':'univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','children':[(0x0,s[_0x3173d4(0x2b7)])('a',{'className':'univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','role':_0x3173d4(0x1c6),'onClick':()=>_0x279446(!0x1),'children':(0x0,s[_0x3173d4(0x2b7)])(a['CloseIcon'],{'className':_0x3173d4(0x1f8)})}),(0x0,s[_0x3173d4(0x229)])(_0x3173d4(0x230),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[(0x0,s[_0x3173d4(0x2b7)])(_0x3173d4(0x230),{'className':_0x3173d4(0x21a),'children':(0x0,s[_0x3173d4(0x2b7)])(_0x3173d4(0x2a2),{'className':'univer-text-blue-600','children':'🚀'})}),(0x0,s['jsxs'])(_0x3173d4(0x230),{'className':'univer-flex-1','children':[(0x0,s['jsx'])('h4',{'className':_0x3173d4(0x2e6),'children':_0x216134['t'](_0x3173d4(0x218))}),(0x0,s[_0x3173d4(0x2b7)])('p',{'className':_0x3173d4(0x228),'children':_0x216134['t']('mcpConfig.apiApplyInfo.description')}),(0x0,s[_0x3173d4(0x2b7)])('div',{'className':_0x3173d4(0x1fa),'children':_0x3712fa&&(0x0,s[_0x3173d4(0x229)])('a',{'className':_0x3173d4(0x2b5),'href':_0x55df42,'target':_0x3173d4(0x2c6),'rel':'noopener\x20noreferrer','children':[(0x0,s['jsx'])('span',{'children':'🤖'}),_0x216134['t']('mcpConfig.apiApplyInfo.univerAiLabel'),(0x0,s['jsx'])(_0x3173d4(0x2a2),{'className':_0x3173d4(0x234),'children':'↗'})]})}),(0x0,s[_0x3173d4(0x229)])(_0x3173d4(0x230),{'className':_0x3173d4(0x2ba),'children':['✨','\x20',_0x216134['t'](_0x3173d4(0x2bb))]})]})]})]}),_0x13464e[_0x3173d4(0x1d4)]&&(0x0,s[_0x3173d4(0x229)])(_0x3173d4(0x230),{'className':_0x3173d4(0x20e),'children':[(0x0,s[_0x3173d4(0x229)])('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[(0x0,s[_0x3173d4(0x2b7)])(_0x3173d4(0x2a2),{'children':'🔗'}),'\x20',_0x216134['t'](_0x3173d4(0x222))]}),(0x0,s['jsxs'])(_0x3173d4(0x230),{'className':_0x3173d4(0x291),'children':[(0x0,s[_0x3173d4(0x229)])(_0x3173d4(0x230),{'className':_0x3173d4(0x2e8),'children':[(0x0,s[_0x3173d4(0x2b7)])('p',{'className':_0x3173d4(0x1db),'children':_0x216134['t'](_0x3173d4(0x2c9))}),(0x0,s['jsxs'])(_0x3173d4(0x230),{'className':_0x3173d4(0x244),'children':[(0x0,s[_0x3173d4(0x2b7)])(_0x3173d4(0x230),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x216134['t'](_0x3173d4(0x237))}),(0x0,s[_0x3173d4(0x229)])('div',{'className':_0x3173d4(0x2e5),'children':[(0x0,s[_0x3173d4(0x229)])(_0x3173d4(0x230),{'className':_0x3173d4(0x1ab),'children':[(0x0,s[_0x3173d4(0x2b7)])(_0x3173d4(0x2a2),{'className':_0x3173d4(0x1e3),'children':'1'}),_0x216134['t'](_0x3173d4(0x216))]}),(0x0,s['jsxs'])(_0x3173d4(0x230),{'className':_0x3173d4(0x1ab),'children':[(0x0,s[_0x3173d4(0x2b7)])(_0x3173d4(0x2a2),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'2'}),_0x216134['t'](_0x3173d4(0x2a1))]}),(0x0,s['jsxs'])(_0x3173d4(0x230),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[(0x0,s[_0x3173d4(0x2b7)])(_0x3173d4(0x2a2),{'className':_0x3173d4(0x1e3),'children':'3'}),_0x216134['t'](_0x3173d4(0x1c7))]})]})]})]}),(0x0,s['jsxs'])(_0x3173d4(0x230),{'className':'univer-space-y-2','children':[(0x0,s[_0x3173d4(0x2b7)])(_0x3173d4(0x230),{'className':_0x3173d4(0x2e1),'children':'MCP\x20Configuration'}),(0x0,s[_0x3173d4(0x2b7)])('div',{'className':_0x3173d4(0x20f),'children':(0x0,s[_0x3173d4(0x2b7)])(_0x3173d4(0x23f),{'className':_0x3173d4(0x232),'children':JSON[_0x3173d4(0x1f1)]({'mcpServers':{'univer':{'url':'https://mcp.univer.ai/mcp/?univer_session_id='+(_0x3ac65e||_0x3173d4(0x21b)),'type':_0x3173d4(0x1f9),'headers':{'Authorization':_0x3173d4(0x2f3)+(_0x52051e||_0x3173d4(0x1b2))}}}},null,0x2)})})]}),(0x0,s[_0x3173d4(0x229)])(_0x3173d4(0x230),{'className':_0x3173d4(0x2e8),'children':[(0x0,s[_0x3173d4(0x2b7)])(_0x3173d4(0x230),{'className':_0x3173d4(0x2e1),'children':_0x216134['t'](_0x3173d4(0x258))}),(0x0,s[_0x3173d4(0x229)])(_0x3173d4(0x230),{'className':_0x3173d4(0x244),'children':[(0x0,s[_0x3173d4(0x229)])(_0x3173d4(0x230),{'className':_0x3173d4(0x2b1),'children':[(0x0,s['jsx'])(_0x3173d4(0x230),{'className':_0x3173d4(0x2e0)}),(0x0,s[_0x3173d4(0x229)])(_0x3173d4(0x230),{'className':_0x3173d4(0x273),'children':[(0x0,s[_0x3173d4(0x2b7)])('div',{'className':_0x3173d4(0x2e3),'children':_0x3173d4(0x1f7)}),(0x0,s[_0x3173d4(0x2b7)])('div',{'className':_0x3173d4(0x2ad),'children':_0x216134['t'](_0x3173d4(0x2cf))})]})]}),(0x0,s[_0x3173d4(0x229)])('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[(0x0,s['jsx'])(_0x3173d4(0x230),{'className':_0x3173d4(0x2e0)}),(0x0,s[_0x3173d4(0x229)])(_0x3173d4(0x230),{'className':_0x3173d4(0x273),'children':[(0x0,s['jsx'])(_0x3173d4(0x230),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':'Authorization:'}),(0x0,s['jsx'])(_0x3173d4(0x230),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x216134['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),(0x0,s[_0x3173d4(0x2b7)])(n[_0x3173d4(0x2fb)],{'onClick':_0x4a557e,'disabled':!_0x17e788||_0x240b14,'className':_0x3173d4(0x2de),'children':_0x240b14?(0x0,s[_0x3173d4(0x229)])(_0x3173d4(0x2a2),{'className':_0x3173d4(0x1ab),'children':[(0x0,s[_0x3173d4(0x2b7)])(_0x3173d4(0x2a2),{'children':'⟲'}),_0x216134['t']('mcpConfig.saving')]}):(0x0,s[_0x3173d4(0x229)])(_0x3173d4(0x2a2),{'className':_0x3173d4(0x1ab),'children':[(0x0,s[_0x3173d4(0x2b7)])(a[_0x3173d4(0x290)],{}),_0x216134['t'](_0x3173d4(0x23e))]})}),(0x0,s[_0x3173d4(0x2b7)])(_0x3173d4(0x230),{'className':_0x3173d4(0x20d),'children':(0x0,s[_0x3173d4(0x229)])('div',{'className':_0x3173d4(0x217),'children':[(0x0,s[_0x3173d4(0x2b7)])('span',{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),(0x0,s[_0x3173d4(0x229)])(_0x3173d4(0x230),{'className':_0x3173d4(0x2c4),'children':[(0x0,s[_0x3173d4(0x2b7)])(_0x3173d4(0x230),{'className':_0x3173d4(0x27c),'children':_0x3173d4(0x2bc)}),(0x0,s[_0x3173d4(0x229)])(_0x3173d4(0x230),{'children':['•',_0x216134['t'](_0x3173d4(0x1e0))]}),(0x0,s[_0x3173d4(0x229)])('div',{'children':['•',_0x216134['t'](_0x3173d4(0x2ab))]})]})]})})]})})]});}const u=_0x215031(0x2e9),d={'showDeveloperTools':!0x1,'showStatus':!0x0};function f(_0x5b157f){'@babel/helpers - typeof';const _0x13a0bd=_0x215031;return f=typeof Symbol==_0x13a0bd(0x274)&&typeof Symbol[_0x13a0bd(0x276)]=='symbol'?function(_0x2c1605){return typeof _0x2c1605;}:function(_0x38040f){const _0x3a36f7=_0x13a0bd;return _0x38040f&&typeof Symbol=='function'&&_0x38040f[_0x3a36f7(0x2cd)]===Symbol&&_0x38040f!==Symbol[_0x3a36f7(0x29f)]?_0x3a36f7(0x1dc):typeof _0x38040f;},f(_0x5b157f);}function p(_0x32f163,_0x4bce99){const _0x592a90=_0x215031;if(f(_0x32f163)!='object'||!_0x32f163)return _0x32f163;var _0xa59d78=_0x32f163[Symbol['toPrimitive']];if(_0xa59d78!==void 0x0){var _0x1097ea=_0xa59d78[_0x592a90(0x24e)](_0x32f163,_0x4bce99||_0x592a90(0x1d5));if(f(_0x1097ea)!=_0x592a90(0x1be))return _0x1097ea;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x4bce99===_0x592a90(0x1bf)?String:Number)(_0x32f163);}function m(_0x22c722){const _0x2dea07=_0x215031;var _0x3fd8d8=p(_0x22c722,_0x2dea07(0x1bf));return f(_0x3fd8d8)==_0x2dea07(0x1dc)?_0x3fd8d8:_0x3fd8d8+'';}function h(_0x2d2aeb,_0x26f9b7,_0x43e13a){const _0x1ab0cf=_0x215031;return(_0x26f9b7=m(_0x26f9b7))in _0x2d2aeb?Object[_0x1ab0cf(0x265)](_0x2d2aeb,_0x26f9b7,{'value':_0x43e13a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2d2aeb[_0x26f9b7]=_0x43e13a,_0x2d2aeb;}function g(_0x2e5af1,_0x3716ce){return function(_0x38a139,_0x556b76){_0x3716ce(_0x38a139,_0x556b76,_0x2e5af1);};}function _(_0xd9c62c,_0x3bb806,_0x32090b,_0x591e6e){const _0x252605=_0x215031;var _0x2da987=arguments[_0x252605(0x1d2)],_0x470ec4=_0x2da987<0x3?_0x3bb806:_0x591e6e===null?_0x591e6e=Object[_0x252605(0x2ea)](_0x3bb806,_0x32090b):_0x591e6e,_0x254881;if(typeof Reflect==_0x252605(0x1be)&&typeof Reflect['decorate']==_0x252605(0x274))_0x470ec4=Reflect['decorate'](_0xd9c62c,_0x3bb806,_0x32090b,_0x591e6e);else{for(var _0x285f95=_0xd9c62c[_0x252605(0x1d2)]-0x1;_0x285f95>=0x0;_0x285f95--)(_0x254881=_0xd9c62c[_0x285f95])&&(_0x470ec4=(_0x2da987<0x3?_0x254881(_0x470ec4):_0x2da987>0x3?_0x254881(_0x3bb806,_0x32090b,_0x470ec4):_0x254881(_0x3bb806,_0x32090b))||_0x470ec4);}return _0x2da987>0x3&&_0x470ec4&&Object[_0x252605(0x265)](_0x3bb806,_0x32090b,_0x470ec4),_0x470ec4;}const v=_0x215031(0x21f),y=_0x215031(0x1cf);let b=class extends e[_0x215031(0x1ee)]{constructor(_0x6c1530,_0x3945b4,_0x72f13a,_0x44de13,_0x9e367c,_0x336aca,_0x403de2,_0x51f1fa,_0x1463b5,_0x1b6588){const _0x11c094=_0x215031;super(),this['_injector']=_0x6c1530,this[_0x11c094(0x2b9)]=_0x3945b4,this['_configService']=_0x72f13a,this[_0x11c094(0x295)]=_0x44de13,this[_0x11c094(0x1b6)]=_0x9e367c,this['_messageService']=_0x336aca,this[_0x11c094(0x243)]=_0x403de2,this[_0x11c094(0x29d)]=_0x51f1fa,this['_logService']=_0x1463b5,this['_mcpConnectionController']=_0x1b6588,h(this,'_loading$',new i[(_0x11c094(0x22f))](!0x1)),h(this,_0x11c094(0x25a),new i[(_0x11c094(0x22f))]({})),h(this,_0x11c094(0x2c7),new i[(_0x11c094(0x22f))]({})),h(this,_0x11c094(0x1ac),new i['BehaviorSubject']('')),h(this,'_handleConfigSave',async _0x113fbf=>{const _0x1bc6eb=_0x11c094;this[_0x1bc6eb(0x1cc)][_0x1bc6eb(0x2e2)](!0x0);try{var _0x17103e,_0x19e53d;let _0x36bf27=await this['_validateConfig'](_0x113fbf);if(!_0x36bf27[_0x1bc6eb(0x252)]){this[_0x1bc6eb(0x248)]['show']({'type':n[_0x1bc6eb(0x267)][_0x1bc6eb(0x2c2)],'content':_0x36bf27[_0x1bc6eb(0x2eb)]||this[_0x1bc6eb(0x29d)]['t'](_0x1bc6eb(0x1d8))});return;}_0x113fbf[_0x1bc6eb(0x2b2)]?await this[_0x1bc6eb(0x295)]['setItem'](v,_0x113fbf[_0x1bc6eb(0x2b2)][_0x1bc6eb(0x249)]()):await this[_0x1bc6eb(0x295)][_0x1bc6eb(0x263)](v),this['_apiKey$'][_0x1bc6eb(0x2e2)](((_0x17103e=_0x113fbf[_0x1bc6eb(0x2b2)])==null?void 0x0:_0x17103e[_0x1bc6eb(0x249)]())||''),this[_0x1bc6eb(0x2ce)][_0x1bc6eb(0x28f)]({'Authorization':'Bearer\x20'+((_0x19e53d=_0x113fbf[_0x1bc6eb(0x2b2)])==null?void 0x0:_0x19e53d[_0x1bc6eb(0x249)]())}),this[_0x1bc6eb(0x248)][_0x1bc6eb(0x238)]({'type':n[_0x1bc6eb(0x267)]['Success'],'content':this['_localeService']['t'](_0x1bc6eb(0x240))}),setTimeout(()=>{const _0x39c0b2=_0x1bc6eb;this[_0x39c0b2(0x1b6)][_0x39c0b2(0x2ae)](y);},0x320);}catch(_0x51ea59){this[_0x1bc6eb(0x1dd)]['error'](_0x1bc6eb(0x246),_0x51ea59),this[_0x1bc6eb(0x248)][_0x1bc6eb(0x238)]({'type':n[_0x1bc6eb(0x267)]['Error'],'content':this[_0x1bc6eb(0x29d)]['t'](_0x1bc6eb(0x259))});}finally{this[_0x1bc6eb(0x1cc)][_0x1bc6eb(0x2e2)](!0x1);}}),this[_0x11c094(0x2f7)](),this['_loadStoredApiKey'](),this[_0x11c094(0x2a0)]();}[_0x215031(0x22a)](){const _0x1fc4f9=_0x215031;let _0x4b3383=this[_0x1fc4f9(0x20b)][_0x1fc4f9(0x270)](u);_0x4b3383!=null&&_0x4b3383[_0x1fc4f9(0x1d4)]&&this[_0x1fc4f9(0x1b6)][_0x1fc4f9(0x301)]({'id':y,'title':{'title':this[_0x1fc4f9(0x29d)]['t'](_0x1fc4f9(0x250))},'children':{'label':_0x1fc4f9(0x1f4)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x281a24=_0x1fc4f9;this[_0x281a24(0x1b6)]['close'](y);}});}[_0x215031(0x2a4)](){const _0xe31836=_0x215031;return this[_0xe31836(0x25a)][_0xe31836(0x1d1)];}[_0x215031(0x2a0)](){const _0x4d7d87=_0x215031;this[_0x4d7d87(0x1cd)](this[_0x4d7d87(0x243)]['register'](_0x4d7d87(0x1f4),this['_createConfigPanelComponent']()));}[_0x215031(0x1e5)](){const _0x2b63c0=_0x215031;return(0x0,r[_0x2b63c0(0x2f2)])(()=>{const _0x221322=_0x2b63c0;var _0x2c29bf,_0xf8a172,_0x8c71bb;return(0x0,s[_0x221322(0x2b7)])(l,{'config':this['_config$'][_0x221322(0x1d1)],'mcpCoreConfig':this[_0x221322(0x25a)][_0x221322(0x1d1)],'currentApiKey$':this['_apiKey$'],'onSave':this[_0x221322(0x285)],'loading':this[_0x221322(0x1cc)]['value'],'connectionStatus$':(_0x2c29bf=this['_mcpConnectionController'])==null?void 0x0:_0x2c29bf[_0x221322(0x235)],'connectionError$':(_0xf8a172=this['_mcpConnectionController'])==null?void 0x0:_0xf8a172['connectionError$'],'currentSessionId$':(_0x8c71bb=this[_0x221322(0x2ce)])==null?void 0x0:_0x8c71bb[_0x221322(0x27d)]});},this[_0x2b63c0(0x2fa)]);}[_0x215031(0x2f7)](){const _0x2221e1=_0x215031;this[_0x2221e1(0x1cd)](this[_0x2221e1(0x20b)]['subscribeConfigValue$'](t[_0x2221e1(0x23a)])[_0x2221e1(0x1b5)](_0x1f053e=>{const _0x54aec2=_0x2221e1;this[_0x54aec2(0x25a)][_0x54aec2(0x2e2)](_0x1f053e||{});}));let _0x4e85ed=this[_0x2221e1(0x20b)][_0x2221e1(0x270)](t[_0x2221e1(0x23a)]);this[_0x2221e1(0x25a)]['next'](_0x4e85ed||{}),this[_0x2221e1(0x1cd)](this['_configService']['subscribeConfigValue$'](u)[_0x2221e1(0x1b5)](_0x34b4f5=>{const _0x16d317=_0x2221e1;this['_config$'][_0x16d317(0x2e2)](_0x34b4f5||{});}));let _0x5520f3=this[_0x2221e1(0x20b)][_0x2221e1(0x270)](u);this['_config$']['next'](_0x5520f3||{});}async['_loadStoredApiKey'](){const _0x5710a4=_0x215031;let _0x2cda6c=this[_0x5710a4(0x20b)][_0x5710a4(0x270)](u);if(!(_0x2cda6c!=null&&_0x2cda6c[_0x5710a4(0x1d4)]))return;let _0x2fd006=await this[_0x5710a4(0x295)][_0x5710a4(0x24d)](v);_0x2fd006&&(this[_0x5710a4(0x2ce)]['__setCustomHeaders']({'Authorization':_0x5710a4(0x2f3)+_0x2fd006}),this[_0x5710a4(0x1ac)][_0x5710a4(0x2e2)](_0x2fd006));}async['_validateConfig'](_0x2dfd98){const _0x474188=_0x215031;if(!_0x2dfd98[_0x474188(0x2b2)]||_0x2dfd98['apiKey'][_0x474188(0x249)]()[_0x474188(0x1d2)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x474188(0x29d)]['t'](_0x474188(0x1d7))};if(_0x2dfd98[_0x474188(0x2b2)]['trim']()[_0x474188(0x1d2)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x474188(0x29d)]['t']('mcpConfig.validation.apiKeyTooShort')};try{let _0x3137d1=await this[_0x474188(0x2fa)][_0x474188(0x219)](t[_0x474188(0x2f6)])['validateApiKey'](_0x2dfd98[_0x474188(0x2b2)]['trim']());return _0x3137d1[_0x474188(0x252)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x3137d1[_0x474188(0x2d2)]||this[_0x474188(0x29d)]['t'](_0x474188(0x282))};}catch(_0x50a556){return console[_0x474188(0x272)](_0x474188(0x206),_0x50a556),{'isValid':!0x0};}}};b=_([g(0x0,(0x0,e[_0x215031(0x220)])(e[_0x215031(0x1f3)])),g(0x1,r[_0x215031(0x292)]),g(0x2,e['IConfigService']),g(0x3,e[_0x215031(0x1af)]),g(0x4,r[_0x215031(0x277)]),g(0x5,r[_0x215031(0x255)]),g(0x6,(0x0,e[_0x215031(0x220)])(r[_0x215031(0x26d)])),g(0x7,(0x0,e['Inject'])(e[_0x215031(0x1c4)])),g(0x8,e[_0x215031(0x215)]),g(0x9,(0x0,e['Inject'])(t[_0x215031(0x2f6)]))],b);const x={'id':_0x215031(0x2bf),'type':e[_0x215031(0x2df)]['COMMAND'],'handler':async(_0x1baed6,_0x371b04)=>(_0x1baed6['get'](b)[_0x215031(0x22a)](),!0x0)};function S(_0x20d93e,_0x5b24bf){const _0x314e1a=_0x215031;switch(_0x20d93e){case t[_0x314e1a(0x227)][_0x314e1a(0x29e)]:return _0x314e1a(0x27a);case t[_0x314e1a(0x227)][_0x314e1a(0x2c3)]:return _0x314e1a(0x21e);case t['MCPConnectionStatus'][_0x314e1a(0x214)]:return _0x314e1a(0x24b);case t[_0x314e1a(0x227)][_0x314e1a(0x278)]:switch(_0x5b24bf){case t['MCPConnectionError'][_0x314e1a(0x1a8)]:return _0x314e1a(0x2ff);case t[_0x314e1a(0x22e)][_0x314e1a(0x1f0)]:return _0x314e1a(0x1c9);case t[_0x314e1a(0x22e)][_0x314e1a(0x24f)]:return'mcpStatus.networkError';case t[_0x314e1a(0x22e)]['MAX_RETRIES_EXCEEDED']:return _0x314e1a(0x1c5);default:return _0x314e1a(0x2b0);}case t[_0x314e1a(0x227)][_0x314e1a(0x296)]:return _0x314e1a(0x28d);default:return'mcpStatus.unknown';}}function C(_0x1ab034,_0x5ac853,_0x130c81,_0x2cfd76=!0x0){const _0x34ea5d=_0x215031;let _0x51dea2=S(_0x1ab034,_0x5ac853),_0x55cd6c=_0x130c81['t'](_0x51dea2);return _0x2cfd76?_0x1ab034===t[_0x34ea5d(0x227)][_0x34ea5d(0x29e)]&&_0x5ac853===t[_0x34ea5d(0x22e)][_0x34ea5d(0x1a8)]?_0x55cd6c+_0x34ea5d(0x2a3)+_0x130c81['t']('mcpStatus.clickToConfigure'):_0x1ab034===t['MCPConnectionStatus'][_0x34ea5d(0x214)]?''+_0x55cd6c:_0x1ab034===t['MCPConnectionStatus'][_0x34ea5d(0x29e)]||_0x1ab034===t[_0x34ea5d(0x227)][_0x34ea5d(0x278)]?_0x55cd6c+_0x34ea5d(0x2a3)+_0x130c81['t'](_0x34ea5d(0x1f5)):_0x55cd6c:_0x55cd6c;}function w(_0x26817c){const _0x4fa78f=_0x215031;switch(_0x26817c){case t[_0x4fa78f(0x227)]['CONNECTED']:return _0x4fa78f(0x2b8);case t[_0x4fa78f(0x227)][_0x4fa78f(0x2c3)]:case t[_0x4fa78f(0x227)][_0x4fa78f(0x296)]:return _0x4fa78f(0x2da);case t['MCPConnectionStatus'][_0x4fa78f(0x278)]:case t[_0x4fa78f(0x227)]['DISCONNECTED']:return _0x4fa78f(0x268);default:return _0x4fa78f(0x2be);}}function T(_0x16178c){const _0x49dead=_0x215031;let {status$:_0x231a96,error$:_0x1c0f5a,onConfigure:_0x49ffbe,showClickable:_0x3803d5=!0x0}=_0x16178c,_0xceea29=(0x0,r[_0x49dead(0x1b8)])(_0x231a96,t[_0x49dead(0x227)][_0x49dead(0x29e)]),_0x15d347=(0x0,r['useObservable'])(_0x1c0f5a,t['MCPConnectionError'][_0x49dead(0x25b)]),_0x27b601=(0x0,r[_0x49dead(0x26c)])(e['LocaleService']),_0x262c73=_0xceea29===t[_0x49dead(0x227)][_0x49dead(0x214)];_0xceea29===t[_0x49dead(0x227)][_0x49dead(0x2c3)]||t[_0x49dead(0x227)][_0x49dead(0x296)];let _0x487e66=_0x27b601['t'](S(_0xceea29,_0x15d347)),_0x311a81=C(_0xceea29,_0x15d347,_0x27b601,_0x3803d5),_0xc81bd2=w(_0xceea29),_0xbccc2c=_0x262c73?(0x0,s['jsx'])(a[_0x49dead(0x254)],{}):(0x0,s[_0x49dead(0x2b7)])(a['OffLineIcon'],{}),_0x24aa73=(0x0,o[_0x49dead(0x2f8)])(()=>{_0x3803d5&&_0x49ffbe&&_0x49ffbe();},[_0x3803d5,_0x49ffbe]);function _0x328e83(){const _0x10d589=_0x49dead;return(0x0,s[_0x10d589(0x229)])('div',{'className':(0x0,n[_0x10d589(0x1d6)])(_0x10d589(0x1e8),_0x3803d5&&_0x49ffbe&&_0x10d589(0x2cb)),'role':_0x10d589(0x1c6),'onClick':_0x3803d5&&_0x49ffbe?_0x24aa73:void 0x0,'children':[(0x0,s[_0x10d589(0x2b7)])(_0x10d589(0x230),{'className':(0x0,n[_0x10d589(0x1d6)])(_0x10d589(0x1b3),_0xc81bd2),'children':_0xbccc2c}),(0x0,s[_0x10d589(0x2b7)])(_0x10d589(0x230),{'className':_0x10d589(0x2a5),'children':_0x487e66})]});}return(0x0,s[_0x49dead(0x2b7)])(n['Tooltip'],{'title':_0x311a81,'placement':_0x49dead(0x257),'children':_0x328e83()});}let E=class extends e['Disposable']{constructor(_0xdd3bec,_0x49b69d,_0x5dd197,_0x38bef8){const _0x185b70=_0x215031;super(),this[_0x185b70(0x2fa)]=_0xdd3bec,this[_0x185b70(0x202)]=_0x49b69d,this['_uiPartsService']=_0x5dd197,this['_configService']=_0x38bef8,this[_0x185b70(0x1c0)](),this['_initStatusComponent']();}[_0x215031(0x1c0)](){const _0x3b5c26=_0x215031;let _0x41fc6b=this[_0x3b5c26(0x20b)]['getConfig'](u);_0x41fc6b!=null&&_0x41fc6b['showDeveloperTools']&&(this[_0x3b5c26(0x202)][_0x3b5c26(0x23d)]=!0x1);}['_initStatusComponent'](){const _0x2f3bcc=_0x215031;let _0x128932=this[_0x2f3bcc(0x20b)][_0x2f3bcc(0x270)](u);(_0x128932==null?void 0x0:_0x128932[_0x2f3bcc(0x1bc)])!==!0x1&&this['disposeWithMe'](this[_0x2f3bcc(0x2b9)][_0x2f3bcc(0x1a7)](r['BuiltInUIPart'][_0x2f3bcc(0x2f4)],()=>{const _0x9a5cc0=_0x2f3bcc;var _0xd16335;return(0x0,r['connectInjector'])(D({'status$':this[_0x9a5cc0(0x202)][_0x9a5cc0(0x235)],'error$':this[_0x9a5cc0(0x202)][_0x9a5cc0(0x283)],'onConfigure':()=>this[_0x9a5cc0(0x2d9)](),'showClickable':(_0xd16335=_0x128932==null?void 0x0:_0x128932[_0x9a5cc0(0x1d4)])==null?!0x1:_0xd16335}),this[_0x9a5cc0(0x2fa)]);}));}[_0x215031(0x2d9)](){const _0x12b638=_0x215031;this[_0x12b638(0x2fa)][_0x12b638(0x219)](b)[_0x12b638(0x22a)]();}};E=_([g(0x0,(0x0,e[_0x215031(0x220)])(e[_0x215031(0x1f3)])),g(0x1,(0x0,e[_0x215031(0x220)])(t[_0x215031(0x2f6)])),g(0x2,r[_0x215031(0x292)]),g(0x3,e['IConfigService'])],E);function D(_0x56b4c8){let {status$:_0x48fa20,error$:_0x5850b7,onConfigure:_0x2f8501,showClickable:_0x3254e1}=_0x56b4c8;return function(){return(0x0,s['jsx'])(T,{'status$':_0x48fa20,'error$':_0x5850b7,'onConfigure':_0x2f8501,'showClickable':_0x3254e1});};}function O(_0x4d2199){const _0x46e443=_0x215031;return{'id':x['id'],'type':r[_0x46e443(0x1ea)]['BUTTON'],'icon':_0x46e443(0x2c1),'title':_0x46e443(0x250),'tooltip':_0x46e443(0x250)};}const k={[r[_0x215031(0x27e)][_0x215031(0x2d8)]]:{[x['id']]:{'order':0xa,'menuItemFactory':O}}};let A=class extends e['Disposable']{constructor(_0x4c88eb,_0x231107){const _0x4dde15=_0x215031;super(),this[_0x4dde15(0x20a)]=_0x4c88eb,this['_menuManagerService']=_0x231107,this['_initializeCommands'](),this[_0x4dde15(0x2fe)]();}[_0x215031(0x1e4)](){[x]['forEach'](_0x1f9c82=>{const _0x40e553=_0x30f8;this[_0x40e553(0x1cd)](this[_0x40e553(0x20a)][_0x40e553(0x23c)](_0x1f9c82));});}[_0x215031(0x2fe)](){const _0x4dc795=_0x215031;this[_0x4dc795(0x2a9)][_0x4dc795(0x28e)](k);}};A=_([g(0x0,e[_0x215031(0x1ce)]),g(0x1,r['IMenuManagerService'])],A);const j={'mcpStatus':{'disconnected':_0x215031(0x2a8),'connecting':_0x215031(0x2db),'connected':_0x215031(0x260),'failed':_0x215031(0x287),'retrying':_0x215031(0x28a),'unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x215031(0x1ed),'networkError':_0x215031(0x208),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x215031(0x1b1),'clickToConfigure':_0x215031(0x1c1)},'mcpConfig':{'title':_0x215031(0x1e1),'description':_0x215031(0x293),'apiKey':_0x215031(0x2bd),'apiKeyPlaceholder':_0x215031(0x245),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x215031(0x209),'enableAuthHint':_0x215031(0x1fd),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x215031(0x261),'configInstructions':_0x215031(0x2c8),'configStepTitle':_0x215031(0x1d0),'configStep1':_0x215031(0x22b),'configStep2':_0x215031(0x2fd),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':_0x215031(0x2d4),'save':_0x215031(0x27f),'saving':_0x215031(0x1d9),'note1':_0x215031(0x2ee),'note2':_0x215031(0x28b),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x215031(0x223),'apiApplyInfo':{'title':_0x215031(0x1fc),'description':_0x215031(0x2e7),'univerAiLabel':_0x215031(0x2b3),'getStarted':_0x215031(0x1c8)},'validation':{'apiKeyRequired':_0x215031(0x280),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x215031(0x26a),'invalidApiKey':_0x215031(0x298)},'connectionStatus':{'disconnected':_0x215031(0x242),'connecting':_0x215031(0x1ca),'connected':_0x215031(0x224),'failed':_0x215031(0x2c5),'retrying':_0x215031(0x2d5)},'connectionError':{'unauthorized':_0x215031(0x1da),'sessionOccupied':_0x215031(0x21d),'networkError':_0x215031(0x2b4),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},M={'mcpStatus':{'disconnected':_0x215031(0x2ed),'connecting':_0x215031(0x2e4),'connected':_0x215031(0x204),'failed':_0x215031(0x2ac),'retrying':_0x215031(0x213),'unknown':_0x215031(0x2a6),'unauthorized':_0x215031(0x294),'sessionOccupied':_0x215031(0x1ad),'networkError':_0x215031(0x1f2),'maxRetriesExceeded':_0x215031(0x233),'clickToConnect':_0x215031(0x2d3),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':'MCP\x20配置','description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x215031(0x22c),'apiKeyPlaceholder':_0x215031(0x1e6),'apiKeyHint':_0x215031(0x275),'enableAuth':_0x215031(0x25d),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x215031(0x2f9),'mcpClientConfig':_0x215031(0x2f9),'configInstructions':_0x215031(0x1fb),'configStepTitle':_0x215031(0x241),'configStep1':_0x215031(0x26f),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x215031(0x25e),'sessionId':_0x215031(0x262),'sessionIdDescription':_0x215031(0x1df),'authorizationDescription':_0x215031(0x251),'configParameters':_0x215031(0x210),'maxRetries':_0x215031(0x20c),'save':_0x215031(0x1b9),'saving':'保存中...','note1':_0x215031(0x23b),'note2':_0x215031(0x284),'configSaved':_0x215031(0x2f1),'configError':'配置保存失败','apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':'Univer\x20AI\x20控制台','getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x215031(0x207),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x215031(0x221),'invalidApiKey':_0x215031(0x29b)},'connectionStatus':{'disconnected':_0x215031(0x29a),'connecting':'连接中...','connected':_0x215031(0x299),'failed':_0x215031(0x286),'retrying':'重连中...'},'connectionError':{'unauthorized':_0x215031(0x28c),'sessionOccupied':_0x215031(0x247),'networkError':_0x215031(0x212),'maxRetriesExceeded':_0x215031(0x2dd)}}};function _0x4761(){const _0x475671=['476213RCcsWZ','LocaleService','mcpStatus.maxRetriesExceeded','button','mcpConfig.configStep3','Get\x20your\x20API\x20key\x20in\x20seconds','mcpStatus.sessionOccupied','Connecting...','mcpConfig.connectionStatus.failed','_loading$','disposeWithMe','ICommandService','mcp-config-dialog','Configuration\x20Steps:','value','length','univer-bg-gray-500','showDeveloperTools','default','clsx','mcpConfig.validation.apiKeyRequired','mcpConfig.validation.invalidConfig','Saving...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','univer-text-xs\x20univer-text-gray-600','symbol','_logService','text','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','mcpConfig.note1','MCP\x20Configuration','univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','_initializeCommands','_createConfigPanelComponent','请输入您的\x20API\x20密钥','mcpConfig.apiKeyPlaceholder','univer-flex\x20univer-items-center','mcpConfig.description','MenuItemType','mcpConfig.connectionError.maxRetriesExceeded','Module','MCP:\x20Session\x20ID\x20Occupied','Disposable','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','SESSION_ID_OCCUPIED','stringify','MCP:\x20网络错误','Injector','MCPConfigPanel','mcpStatus.clickToConnect','160lIPGXk','univer_session_id:','univer-size-4','http','univer-flex\x20univer-flex-wrap\x20univer-gap-2','将以下配置添加到您的\x20MCP\x20客户端设置中:','What\x20is\x20API\x20Key?','Enable\x20authentication\x20for\x20secure\x20connections','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','univer-text-white','mcpServerUrl','WebSocketService','_connectionController','univer-shrink-0\x20univer-text-red-500','MCP\x20已连接','1946502SSmqag','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','API\x20密钥不能为空','MCP:\x20Network\x20Error','Enable\x20Authentication','_commandService','_configService','最大重试次数','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','配置参数:','Plugin','网络连接错误,请检查您的网络连接','MCP\x20重连中...','CONNECTED','ILogService','mcpConfig.configStep1','univer-flex\x20univer-gap-3','mcpConfig.apiApplyInfo.title','get','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','<SESSION_ID>','mcpConfig.apiKey','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','mcpStatus.connecting','mcp.apiKey','Inject','配置无效','mcpConfig.connectionInfo','Failed\x20to\x20save\x20configuration','Connected','univer-flex\x20univer-items-center\x20univer-gap-3','label','MCPConnectionStatus','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','jsxs','showConfigPanel','Copy\x20the\x20JSON\x20configuration\x20below','API\x20密钥','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','MCPConnectionError','BehaviorSubject','div','MCPUIMenuController','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','MCP:\x20超出最大重试次数','univer-text-gray-400','connectionStatus$','mcpConfig.connectionStatus.connected','mcpConfig.configStepTitle','show','univer-bg-blue-500','MCP_PLUGIN_CONFIG_KEY','配置更改将立即生效','registerCommand','enableAutoConnect','mcpConfig.save','pre','mcpConfig.configSaved','配置步骤:','Disconnected','_componentManager','univer-space-y-2','Enter\x20your\x20API\x20key','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','会话\x20ID\x20已被占用,请稍后再试','_messageService','trim','includes','mcpStatus.connected','OpenMCPConfigPanelCommand','getItem','call','NETWORK_ERROR','mcpConfig.title','带有\x20Bearer\x20前缀的\x20API\x20密钥。','isValid','univer-flex\x20univer-items-start\x20univer-gap-2','OnLineIcon','IMessageService','merge','bottom','mcpConfig.configParameters','mcpConfig.configError','_mcpCoreConfig$','NONE','packageName','启用身份验证','重启您的\x20MCP\x20客户端以使配置生效','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','MCP\x20Connected','MCP\x20Client\x20Configuration','会话ID','removeItem','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','defineProperty','MCPConfigUIController','MessageType','univer-text-red-500','8qDehZw','Invalid\x20configuration','mcpConfig.connectionStatus.retrying','useDependency','ComponentManager','0.25.1','复制以下\x20JSON\x20配置','getConfig','univer-bg-red-500','warn','univer-min-w-0\x20univer-flex-1','function','您的\x20API\x20密钥将在此浏览器中本地存储','iterator','IDialogService','FAILED','forEach','mcpStatus.disconnected','MAX_RETRIES_EXCEEDED','univer-font-medium','sessionId$','RibbonStartGroup','Save\x20Configuration','API\x20key\x20is\x20required','2509345peMmEj','mcpConfig.validation.invalidApiKey','connectionError$','您的\x20API\x20密钥安全存储在本地存储中','_handleConfigSave','连接失败','MCP\x20Connection\x20Failed','5183948vFBPLm','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','MCP\x20Retrying...','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','权限验证失败,请检查您的\x20API\x20密钥','mcpStatus.retrying','mergeMenu','__setCustomHeaders','CheckMarkIcon','univer-space-y-4','IUIPartsService','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20未授权','_localStorageService','RETRYING','ISocketService','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','已连接','未连接','API\x20密钥无效,请检查密钥是否正确','https://console.univer.ai','_localeService','DISCONNECTED','prototype','_registerComponent','mcpConfig.configStep2','span','\x20-\x20','getCurrentConfig','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','MCP\x20状态未知','pluginName','MCP\x20Disconnected','_menuManagerService','mcpConfig.connectionStatus.disconnected','mcpConfig.note2','MCP\x20连接失败','univer-text-xs\x20univer-text-gray-500','close','toStringTag','mcpStatus.failed','univer-flex\x20univer-items-start\x20univer-gap-3','apiKey','Univer\x20AI\x20Console','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','2457171nmGpqh','jsx','univer-text-green-500','_uiPartsService','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','mcpConfig.apiApplyInfo.getStarted','Configuration\x20Notes:','API\x20Key','univer-text-gray-500','mcp-ui.command.openConfigPanel','MCP_UI_PLUGIN','MenuIcon','Error','CONNECTING','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','Connection\x20Failed','_blank','_config$','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','mcpConfig.configInstructions','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','enUS','constructor','_mcpConnectionController','mcpConfig.sessionIdDescription','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','mcpConfig.connectionStatus.connecting','error','点击连接\x20MCP','Max\x20Retries','Retrying...','univer.plus','mcpConfig.connectionError.sessionOccupied','OTHERS','_handleConfigure','univer-text-yellow-500','MCP\x20Connecting...','MCPConnectionUIController','超出最大重试次数,请稍后再试','univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','CommandType','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','next','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','MCP\x20连接中...','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univer-space-y-3','mcp-ui.config','getOwnPropertyDescriptor','errorMessage','useState','MCP\x20已断开','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Input','18153EFMudC','配置保存成功','connectInjector','Bearer\x20','HEADER_MENU','univer-text-sm\x20univer-font-medium','MCPConnectionController','_initConfigSync','useCallback','MCP\x20客户端配置','_injector','Button','_config','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','_initializeMenus','mcpStatus.unauthorized','mcpConfig.connectionError.unauthorized','open','registerComponent','UNAUTHORIZED','setConfig','UniverMCPPlugin','univer-flex\x20univer-items-center\x20univer-gap-2','_apiKey$','MCP:\x20会话\x20ID\x20已被占用','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','ILocalStorageService','UniverMCPUIPlugin','Click\x20to\x20connect\x20MCP','<API_KEY>','univer-mr-2\x20univer-flex\x20univer-text-xl','3390640rVblaV','subscribe','_dialogService','univer.ai','useObservable','保存配置','add','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','showStatus','2wumhCq','object','string','_initAutoConnect','Click\x20to\x20configure\x20MCP','off'];_0x4761=function(){return _0x475671;};return _0x4761();}function _0x30f8(_0x788d69,_0x34923a){_0x788d69=_0x788d69-0x1a7;const _0x47613f=_0x4761();let _0x30f88b=_0x47613f[_0x788d69];return _0x30f88b;}var N='@univerjs-pro/mcp-ui',P=_0x215031(0x26e);let F=class extends e[_0x215031(0x211)]{constructor(_0x2cab50=d,_0x5ef4eb,_0x4f3989,_0x32ee05,_0x1849e4,_0x9ba6af){const _0x1ec114=_0x215031;super(),this[_0x1ec114(0x2fc)]=_0x2cab50,this[_0x1ec114(0x2fa)]=_0x5ef4eb,this[_0x1ec114(0x20b)]=_0x4f3989,this[_0x1ec114(0x2b9)]=_0x32ee05,this['_localStorageService']=_0x1849e4,this[_0x1ec114(0x29d)]=_0x9ba6af;let {..._0x4b3654}=(0x0,e[_0x1ec114(0x256)])({},d,this[_0x1ec114(0x2fc)]);this[_0x1ec114(0x20b)][_0x1ec114(0x1a9)](u,_0x4b3654);}async['onStarting'](){const _0x405423=_0x215031;let _0x1ec63d=[[E],[b],[A]];this['_injector']['has'](c[_0x405423(0x297)])||_0x1ec63d['push']([c[_0x405423(0x297)],{'useClass':c[_0x405423(0x201)]}]),_0x1ec63d[_0x405423(0x279)](_0x564dce=>this['_injector'][_0x405423(0x1ba)](_0x564dce)),this['_injector'][_0x405423(0x219)](E),this[_0x405423(0x2fa)][_0x405423(0x219)](b),this[_0x405423(0x2fa)]['get'](A);}};h(F,_0x215031(0x2a7),_0x215031(0x2c0)),h(F,_0x215031(0x25c),N),h(F,'version',P),F=_([(0x0,e['DependentOn'])(t[_0x215031(0x1aa)]),g(0x1,(0x0,e[_0x215031(0x220)])(e[_0x215031(0x1f3)])),g(0x2,e['IConfigService']),g(0x3,r['IUIPartsService']),g(0x4,e[_0x215031(0x1af)]),g(0x5,(0x0,e[_0x215031(0x220)])(e[_0x215031(0x1c4)]))],F),exports[_0x215031(0x1f4)]=l,Object[_0x215031(0x265)](exports,_0x215031(0x266),{'enumerable':!0x0,'get':function(){return b;}}),Object[_0x215031(0x265)](exports,_0x215031(0x2dc),{'enumerable':!0x0,'get':function(){return E;}}),exports['MCPStatusDisplay']=T,Object[_0x215031(0x265)](exports,_0x215031(0x231),{'enumerable':!0x0,'get':function(){return A;}}),exports[_0x215031(0x24c)]=x,Object[_0x215031(0x265)](exports,_0x215031(0x1b0),{'enumerable':!0x0,'get':function(){return F;}}),exports[_0x215031(0x2cc)]=j,exports['zhCN']=M;
|
|
1
|
+
const _0x26f842=_0x3e41;(function(_0x2a3d55,_0x28a424){const _0x30355c=_0x3e41,_0x1eb6c7=_0x2a3d55();while(!![]){try{const _0x2a6b59=-parseInt(_0x30355c(0x17c))/0x1*(-parseInt(_0x30355c(0x241))/0x2)+parseInt(_0x30355c(0x217))/0x3*(parseInt(_0x30355c(0x23a))/0x4)+parseInt(_0x30355c(0x191))/0x5*(parseInt(_0x30355c(0x1d4))/0x6)+parseInt(_0x30355c(0x21f))/0x7*(-parseInt(_0x30355c(0x1d1))/0x8)+parseInt(_0x30355c(0x21d))/0x9*(parseInt(_0x30355c(0x210))/0xa)+-parseInt(_0x30355c(0x229))/0xb*(-parseInt(_0x30355c(0x221))/0xc)+-parseInt(_0x30355c(0x202))/0xd*(parseInt(_0x30355c(0x1d6))/0xe);if(_0x2a6b59===_0x28a424)break;else _0x1eb6c7['push'](_0x1eb6c7['shift']());}catch(_0x26d85d){_0x1eb6c7['push'](_0x1eb6c7['shift']());}}}(_0x2528,0x56638),Object[_0x26f842(0x193)](exports,Symbol[_0x26f842(0x18a)],{'value':'Module'}));const e=require('./locale/en-US.js'),t=require('./locale/zh-CN.js');let n=require('@univerjs/core'),r=require('@univerjs-pro/mcp'),i=require('@univerjs/design'),a=require('@univerjs/ui'),o=require('rxjs'),s=require('@univerjs/icons'),c=require('react'),l=require('react/jsx-runtime'),u=require('@univerjs/network');function d(_0x2cc193){const _0xbe7dee=_0x26f842;var _0x4e0755,_0x15ea24;let {mcpCoreConfig:_0x10e0f3,onSave:_0x21611f,loading:_0x54523e=!0x1,config:_0x5b9f8b,connectionStatus$:_0x15fe91,connectionError$:_0x50e8f6,currentApiKey$:_0x17e0b7,currentSessionId$:_0x254fc0}=_0x2cc193,_0x3b95d5=(0x0,a[_0xbe7dee(0x1e9)])(n['LocaleService']),_0x37ba1f=(0x0,a[_0xbe7dee(0x160)])(_0x15fe91,r['MCPConnectionStatus'][_0xbe7dee(0x15b)]),_0x566c8b=(0x0,a[_0xbe7dee(0x160)])(_0x50e8f6,r['MCPConnectionError']['NONE']),_0x3f236c=(0x0,a[_0xbe7dee(0x160)])(_0x254fc0,''),[_0x35ae26,_0x228dcf]=(0x0,c[_0xbe7dee(0x1fc)])((0x0,a[_0xbe7dee(0x160)])(_0x17e0b7,'')||''),_0x4284bc=_0x5b9f8b[_0xbe7dee(0x1eb)]&&_0x10e0f3[_0xbe7dee(0x1a2)]&&(_0x10e0f3[_0xbe7dee(0x1a2)][_0xbe7dee(0x255)]('univer.plus')||_0x10e0f3[_0xbe7dee(0x1a2)]['includes'](_0xbe7dee(0x1c2))),_0x9c6cc6=(_0x4e0755=_0x10e0f3[_0xbe7dee(0x1a2)])==null?void 0x0:_0x4e0755[_0xbe7dee(0x255)](_0xbe7dee(0x1a5)),_0x5ab641=(_0x15ea24=_0x10e0f3[_0xbe7dee(0x1a2)])==null?void 0x0:_0x15ea24[_0xbe7dee(0x255)](_0xbe7dee(0x1c2)),_0x1f65b8=_0x9c6cc6?'https://console.univer.plus':'https://console.univer.ai',_0x572c92=_0x5b9f8b[_0xbe7dee(0x1eb)]&&(_0x9c6cc6||_0x5ab641),[_0x16b2bb,_0x3654c2]=(0x0,c[_0xbe7dee(0x1fc)])(!_0x35ae26['trim']()),_0x40568b=(_0x5aab32,_0x2c6576)=>{const _0x32ec75=_0xbe7dee;if(_0x2c6576===r['MCPConnectionError'][_0x32ec75(0x1fd)])return _0x32ec75(0x1b7);switch(_0x5aab32){case r[_0x32ec75(0x1cd)][_0x32ec75(0x21b)]:return _0x32ec75(0x149);case r[_0x32ec75(0x1cd)][_0x32ec75(0x250)]:case r[_0x32ec75(0x1cd)][_0x32ec75(0x242)]:return _0x32ec75(0x213);case r[_0x32ec75(0x1cd)][_0x32ec75(0x197)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return _0x32ec75(0x16f);}},_0x52d9c5=(_0x51657f,_0x4b8e13)=>{const _0x4a8a10=_0xbe7dee;if(_0x4b8e13===r['MCPConnectionError']['UNAUTHORIZED'])return _0x4a8a10(0x186);switch(_0x51657f){case r['MCPConnectionStatus'][_0x4a8a10(0x21b)]:return _0x4a8a10(0x215);case r[_0x4a8a10(0x1cd)][_0x4a8a10(0x250)]:case r['MCPConnectionStatus'][_0x4a8a10(0x242)]:return _0x4a8a10(0x172);case r[_0x4a8a10(0x1cd)][_0x4a8a10(0x197)]:return'univer-bg-red-500';default:return _0x4a8a10(0x25b);}},_0x51abce=_0x5e65c9=>{const _0x13e617=_0xbe7dee;switch(_0x5e65c9){case r['MCPConnectionStatus'][_0x13e617(0x21b)]:return _0x3b95d5['t'](_0x13e617(0x157));case r[_0x13e617(0x1cd)][_0x13e617(0x250)]:return _0x3b95d5['t'](_0x13e617(0x175));case r[_0x13e617(0x1cd)][_0x13e617(0x197)]:return _0x3b95d5['t'](_0x13e617(0x22a));case r[_0x13e617(0x1cd)][_0x13e617(0x242)]:return _0x3b95d5['t'](_0x13e617(0x192));default:return _0x3b95d5['t'](_0x13e617(0x1f0));}},_0x4afa7a=_0x1373db=>{const _0x4f3bac=_0xbe7dee;switch(_0x1373db){case r[_0x4f3bac(0x179)]['UNAUTHORIZED']:return _0x3b95d5['t'](_0x4f3bac(0x1cf));case r[_0x4f3bac(0x179)][_0x4f3bac(0x1c7)]:return _0x3b95d5['t']('mcpConfig.connectionError.sessionOccupied');case r[_0x4f3bac(0x179)][_0x4f3bac(0x169)]:return _0x3b95d5['t'](_0x4f3bac(0x25e));case r['MCPConnectionError'][_0x4f3bac(0x209)]:return _0x3b95d5['t'](_0x4f3bac(0x198));default:return'';}},_0x470bf1=(0x0,c[_0xbe7dee(0x20d)])(()=>{_0x21611f({..._0x10e0f3,'apiKey':_0x35ae26['trim'](),'enableAuth':!0x0});},[_0x10e0f3,_0x35ae26,!0x0,_0x21611f]),_0x923e74=_0x35ae26['trim']()['length']>0x0;return(0x0,l[_0xbe7dee(0x16a)])('div',{'className':_0xbe7dee(0x16c),'children':[(0x0,l[_0xbe7dee(0x243)])(_0xbe7dee(0x1ca),{'className':_0xbe7dee(0x146),'children':(0x0,l[_0xbe7dee(0x16a)])(_0xbe7dee(0x1ca),{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[(0x0,l[_0xbe7dee(0x243)])(_0xbe7dee(0x1ca),{'className':'univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','children':(0x0,l[_0xbe7dee(0x243)])(_0xbe7dee(0x19c),{'className':'univer-text-white','children':'⚙'})}),(0x0,l[_0xbe7dee(0x243)])('div',{'children':(0x0,l[_0xbe7dee(0x243)])('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x3b95d5['t'](_0xbe7dee(0x19f))})})]})}),(0x0,l[_0xbe7dee(0x16a)])(_0xbe7dee(0x1ca),{'className':_0xbe7dee(0x214),'children':[(0x0,l[_0xbe7dee(0x243)])(_0xbe7dee(0x1ca),{'className':(0x0,i[_0xbe7dee(0x19b)])(_0xbe7dee(0x1fe),_0x40568b(_0x37ba1f,_0x566c8b)),'children':(0x0,l[_0xbe7dee(0x16a)])(_0xbe7dee(0x1ca),{'className':_0xbe7dee(0x1dc),'children':[(0x0,l[_0xbe7dee(0x243)])('div',{'className':(0x0,i['clsx'])(_0xbe7dee(0x1c9),_0x52d9c5(_0x37ba1f,_0x566c8b))}),(0x0,l[_0xbe7dee(0x243)])(_0xbe7dee(0x19c),{'className':'univer-text-sm\x20univer-font-medium','children':_0x51abce(_0x37ba1f)})]})}),_0x566c8b!==r[_0xbe7dee(0x179)][_0xbe7dee(0x19a)]&&(_0x37ba1f===r['MCPConnectionStatus']['FAILED']||_0x566c8b===r['MCPConnectionError'][_0xbe7dee(0x1fd)])&&(0x0,l['jsx'])(_0xbe7dee(0x1ca),{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':(0x0,l['jsxs'])(_0xbe7dee(0x1ca),{'className':_0xbe7dee(0x253),'children':[(0x0,l[_0xbe7dee(0x243)])(_0xbe7dee(0x19c),{'className':_0xbe7dee(0x21e),'children':'⚠️'}),(0x0,l[_0xbe7dee(0x243)])('p',{'className':_0xbe7dee(0x23c),'children':_0x4afa7a(_0x566c8b)})]})})]}),(0x0,l['jsx'])('div',{'className':_0xbe7dee(0x1ee),'children':(0x0,l[_0xbe7dee(0x16a)])(_0xbe7dee(0x1ca),{'className':_0xbe7dee(0x252),'children':[(0x0,l[_0xbe7dee(0x16a)])('div',{'className':_0xbe7dee(0x151),'children':[(0x0,l[_0xbe7dee(0x16a)])(_0xbe7dee(0x257),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[(0x0,l[_0xbe7dee(0x243)])('span',{'children':'🔑'}),'\x20',_0x3b95d5['t'](_0xbe7dee(0x1fa)),(0x0,l[_0xbe7dee(0x243)])(_0xbe7dee(0x19c),{'className':_0xbe7dee(0x148),'children':'*'}),_0x4284bc&&(0x0,l[_0xbe7dee(0x243)])('a',{'className':'univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','title':_0x3b95d5['t']('mcpConfig.apiApplyInfo.title'),'role':_0xbe7dee(0x168),'onClick':()=>_0x3654c2(!0x0),'children':(0x0,l[_0xbe7dee(0x243)])(s[_0xbe7dee(0x205)],{})})]}),(0x0,l[_0xbe7dee(0x243)])(i[_0xbe7dee(0x163)],{'type':_0xbe7dee(0x1d2),'placeholder':_0x3b95d5['t'](_0xbe7dee(0x231)),'value':_0x35ae26,'disabled':_0x54523e,'autoComplete':_0xbe7dee(0x156),'onChange':_0x228dcf}),(0x0,l[_0xbe7dee(0x243)])('p',{'className':_0xbe7dee(0x23e),'children':_0x3b95d5['t']('mcpConfig.apiKeyHint')})]}),_0x4284bc&&_0x16b2bb&&(0x0,l[_0xbe7dee(0x16a)])(_0xbe7dee(0x1ca),{'className':_0xbe7dee(0x235),'children':[(0x0,l[_0xbe7dee(0x243)])('a',{'className':_0xbe7dee(0x24a),'role':'button','onClick':()=>_0x3654c2(!0x1),'children':(0x0,l[_0xbe7dee(0x243)])(s[_0xbe7dee(0x212)],{'className':_0xbe7dee(0x196)})}),(0x0,l[_0xbe7dee(0x16a)])(_0xbe7dee(0x1ca),{'className':_0xbe7dee(0x150),'children':[(0x0,l['jsx'])('div',{'className':_0xbe7dee(0x1dd),'children':(0x0,l[_0xbe7dee(0x243)])(_0xbe7dee(0x19c),{'className':_0xbe7dee(0x206),'children':'🚀'})}),(0x0,l[_0xbe7dee(0x16a)])(_0xbe7dee(0x1ca),{'className':_0xbe7dee(0x14f),'children':[(0x0,l[_0xbe7dee(0x243)])('h4',{'className':_0xbe7dee(0x25d),'children':_0x3b95d5['t'](_0xbe7dee(0x18b))}),(0x0,l[_0xbe7dee(0x243)])('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x3b95d5['t'](_0xbe7dee(0x1d9))}),(0x0,l[_0xbe7dee(0x243)])(_0xbe7dee(0x1ca),{'className':_0xbe7dee(0x22b),'children':_0x572c92&&(0x0,l[_0xbe7dee(0x16a)])('a',{'className':_0xbe7dee(0x20e),'href':_0x1f65b8,'target':_0xbe7dee(0x16e),'rel':_0xbe7dee(0x1c1),'children':[(0x0,l['jsx'])('span',{'children':'🤖'}),_0x3b95d5['t'](_0xbe7dee(0x17f)),(0x0,l['jsx'])(_0xbe7dee(0x19c),{'className':_0xbe7dee(0x24e),'children':'↗'})]})}),(0x0,l[_0xbe7dee(0x16a)])(_0xbe7dee(0x1ca),{'className':_0xbe7dee(0x1f3),'children':['✨','\x20',_0x3b95d5['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x5b9f8b['showDeveloperTools']&&(0x0,l[_0xbe7dee(0x16a)])('div',{'className':_0xbe7dee(0x170),'children':[(0x0,l[_0xbe7dee(0x16a)])('h4',{'className':_0xbe7dee(0x207),'children':[(0x0,l[_0xbe7dee(0x243)])(_0xbe7dee(0x19c),{'children':'🔗'}),'\x20',_0x3b95d5['t'](_0xbe7dee(0x237))]}),(0x0,l[_0xbe7dee(0x16a)])(_0xbe7dee(0x1ca),{'className':_0xbe7dee(0x20f),'children':[(0x0,l['jsxs'])(_0xbe7dee(0x1ca),{'className':_0xbe7dee(0x240),'children':[(0x0,l[_0xbe7dee(0x243)])('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x3b95d5['t']('mcpConfig.configInstructions')}),(0x0,l[_0xbe7dee(0x16a)])(_0xbe7dee(0x1ca),{'className':'univer-space-y-2','children':[(0x0,l['jsx'])(_0xbe7dee(0x1ca),{'className':_0xbe7dee(0x1a9),'children':_0x3b95d5['t'](_0xbe7dee(0x1da))}),(0x0,l[_0xbe7dee(0x16a)])(_0xbe7dee(0x1ca),{'className':_0xbe7dee(0x176),'children':[(0x0,l['jsxs'])('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[(0x0,l['jsx'])('span',{'className':_0xbe7dee(0x1db),'children':'1'}),_0x3b95d5['t'](_0xbe7dee(0x249))]}),(0x0,l[_0xbe7dee(0x16a)])(_0xbe7dee(0x1ca),{'className':_0xbe7dee(0x1dc),'children':[(0x0,l[_0xbe7dee(0x243)])(_0xbe7dee(0x19c),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'2'}),_0x3b95d5['t'](_0xbe7dee(0x1c3))]}),(0x0,l[_0xbe7dee(0x16a)])('div',{'className':_0xbe7dee(0x1dc),'children':[(0x0,l[_0xbe7dee(0x243)])(_0xbe7dee(0x19c),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'3'}),_0x3b95d5['t'](_0xbe7dee(0x1c0))]})]})]})]}),(0x0,l[_0xbe7dee(0x16a)])(_0xbe7dee(0x1ca),{'className':_0xbe7dee(0x151),'children':[(0x0,l['jsx'])(_0xbe7dee(0x1ca),{'className':_0xbe7dee(0x1a9),'children':'MCP\x20Configuration'}),(0x0,l[_0xbe7dee(0x243)])(_0xbe7dee(0x1ca),{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':(0x0,l['jsx'])(_0xbe7dee(0x22f),{'className':_0xbe7dee(0x25c),'children':JSON[_0xbe7dee(0x20b)]({'mcpServers':{'univer':{'url':_0xbe7dee(0x1cb)+(_0x3f236c||_0xbe7dee(0x232)),'type':'http','headers':{'Authorization':_0xbe7dee(0x1e0)+(_0x35ae26||'<API_KEY>')}}}},null,0x2)})})]}),(0x0,l[_0xbe7dee(0x16a)])(_0xbe7dee(0x1ca),{'className':'univer-space-y-3','children':[(0x0,l[_0xbe7dee(0x243)])(_0xbe7dee(0x1ca),{'className':_0xbe7dee(0x1a9),'children':_0x3b95d5['t'](_0xbe7dee(0x224))}),(0x0,l[_0xbe7dee(0x16a)])(_0xbe7dee(0x1ca),{'className':_0xbe7dee(0x151),'children':[(0x0,l[_0xbe7dee(0x16a)])(_0xbe7dee(0x1ca),{'className':_0xbe7dee(0x22d),'children':[(0x0,l['jsx'])(_0xbe7dee(0x1ca),{'className':_0xbe7dee(0x19e)}),(0x0,l[_0xbe7dee(0x16a)])('div',{'className':_0xbe7dee(0x22e),'children':[(0x0,l[_0xbe7dee(0x243)])('div',{'className':_0xbe7dee(0x1d0),'children':'univer_session_id:'}),(0x0,l[_0xbe7dee(0x243)])(_0xbe7dee(0x1ca),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x3b95d5['t']('mcpConfig.sessionIdDescription')})]})]}),(0x0,l['jsxs'])(_0xbe7dee(0x1ca),{'className':_0xbe7dee(0x22d),'children':[(0x0,l['jsx'])(_0xbe7dee(0x1ca),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),(0x0,l[_0xbe7dee(0x16a)])(_0xbe7dee(0x1ca),{'className':_0xbe7dee(0x22e),'children':[(0x0,l[_0xbe7dee(0x243)])('div',{'className':_0xbe7dee(0x1d0),'children':_0xbe7dee(0x18f)}),(0x0,l['jsx'])(_0xbe7dee(0x1ca),{'className':_0xbe7dee(0x23e),'children':_0x3b95d5['t'](_0xbe7dee(0x1b3))})]})]})]})]})]})]}),(0x0,l[_0xbe7dee(0x243)])(i[_0xbe7dee(0x244)],{'onClick':_0x470bf1,'disabled':!_0x923e74||_0x54523e,'className':_0xbe7dee(0x1f6),'children':_0x54523e?(0x0,l[_0xbe7dee(0x16a)])(_0xbe7dee(0x19c),{'className':_0xbe7dee(0x1dc),'children':[(0x0,l[_0xbe7dee(0x243)])('span',{'children':'⟲'}),_0x3b95d5['t'](_0xbe7dee(0x15d))]}):(0x0,l[_0xbe7dee(0x16a)])(_0xbe7dee(0x19c),{'className':_0xbe7dee(0x1dc),'children':[(0x0,l[_0xbe7dee(0x243)])(s[_0xbe7dee(0x1ec)],{}),_0x3b95d5['t'](_0xbe7dee(0x1c6))]})}),(0x0,l[_0xbe7dee(0x243)])(_0xbe7dee(0x1ca),{'className':_0xbe7dee(0x1aa),'children':(0x0,l[_0xbe7dee(0x16a)])(_0xbe7dee(0x1ca),{'className':'univer-flex\x20univer-gap-3','children':[(0x0,l[_0xbe7dee(0x243)])('span',{'className':_0xbe7dee(0x23d),'children':'💡'}),(0x0,l[_0xbe7dee(0x16a)])(_0xbe7dee(0x1ca),{'className':_0xbe7dee(0x1e8),'children':[(0x0,l[_0xbe7dee(0x243)])(_0xbe7dee(0x1ca),{'className':_0xbe7dee(0x228),'children':_0xbe7dee(0x19d)}),(0x0,l[_0xbe7dee(0x16a)])(_0xbe7dee(0x1ca),{'children':['•',_0x3b95d5['t'](_0xbe7dee(0x1bc))]}),(0x0,l[_0xbe7dee(0x16a)])('div',{'children':['•',_0x3b95d5['t']('mcpConfig.note2')]})]})]})})]})})]});}const f='mcp-ui.config',p={'showDeveloperTools':!0x1,'showStatus':!0x0};function m(_0x4c12dd){'@babel/helpers - typeof';const _0x38d9a2=_0x26f842;return m=typeof Symbol==_0x38d9a2(0x17e)&&typeof Symbol['iterator']==_0x38d9a2(0x24b)?function(_0x3ec52f){return typeof _0x3ec52f;}:function(_0x5c824f){const _0x19a191=_0x38d9a2;return _0x5c824f&&typeof Symbol==_0x19a191(0x17e)&&_0x5c824f[_0x19a191(0x211)]===Symbol&&_0x5c824f!==Symbol[_0x19a191(0x194)]?'symbol':typeof _0x5c824f;},m(_0x4c12dd);}function h(_0x55d8ce,_0x38119b){const _0xb75304=_0x26f842;if(m(_0x55d8ce)!=_0xb75304(0x223)||!_0x55d8ce)return _0x55d8ce;var _0x378ca4=_0x55d8ce[Symbol['toPrimitive']];if(_0x378ca4!==void 0x0){var _0x407fca=_0x378ca4[_0xb75304(0x1b8)](_0x55d8ce,_0x38119b||_0xb75304(0x1ba));if(m(_0x407fca)!=_0xb75304(0x223))return _0x407fca;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x38119b===_0xb75304(0x1e4)?String:Number)(_0x55d8ce);}function g(_0x336c59){const _0x46c39a=_0x26f842;var _0x360461=h(_0x336c59,_0x46c39a(0x1e4));return m(_0x360461)==_0x46c39a(0x24b)?_0x360461:_0x360461+'';}function _(_0x54a31b,_0x1e0619,_0xc3904e){const _0x179a35=_0x26f842;return(_0x1e0619=g(_0x1e0619))in _0x54a31b?Object[_0x179a35(0x193)](_0x54a31b,_0x1e0619,{'value':_0xc3904e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x54a31b[_0x1e0619]=_0xc3904e,_0x54a31b;}function v(_0x23ae4e,_0x1518d5){return function(_0x398d6c,_0x4c6ed0){_0x1518d5(_0x398d6c,_0x4c6ed0,_0x23ae4e);};}function y(_0x581af2,_0x1d24b8,_0x5253a4,_0x63b5a0){const _0x5bca1f=_0x26f842;var _0x44b814=arguments['length'],_0x4bbad0=_0x44b814<0x3?_0x1d24b8:_0x63b5a0===null?_0x63b5a0=Object[_0x5bca1f(0x1bf)](_0x1d24b8,_0x5253a4):_0x63b5a0,_0x5189ef;if(typeof Reflect==_0x5bca1f(0x223)&&typeof Reflect[_0x5bca1f(0x1d3)]==_0x5bca1f(0x17e))_0x4bbad0=Reflect[_0x5bca1f(0x1d3)](_0x581af2,_0x1d24b8,_0x5253a4,_0x63b5a0);else{for(var _0x12f37c=_0x581af2[_0x5bca1f(0x218)]-0x1;_0x12f37c>=0x0;_0x12f37c--)(_0x5189ef=_0x581af2[_0x12f37c])&&(_0x4bbad0=(_0x44b814<0x3?_0x5189ef(_0x4bbad0):_0x44b814>0x3?_0x5189ef(_0x1d24b8,_0x5253a4,_0x4bbad0):_0x5189ef(_0x1d24b8,_0x5253a4))||_0x4bbad0);}return _0x44b814>0x3&&_0x4bbad0&&Object[_0x5bca1f(0x193)](_0x1d24b8,_0x5253a4,_0x4bbad0),_0x4bbad0;}const b=_0x26f842(0x1a0),x=_0x26f842(0x14b);let S=class extends n['Disposable']{constructor(_0x400c32,_0x2ae056,_0x401caf,_0x34765f,_0xa2f6f4,_0xa43987,_0x2f1c7f,_0x11ecb5,_0x1cfae8,_0x10d61a){const _0x55f34a=_0x26f842;super(),this[_0x55f34a(0x1bd)]=_0x400c32,this[_0x55f34a(0x15c)]=_0x2ae056,this[_0x55f34a(0x208)]=_0x401caf,this['_localStorageService']=_0x34765f,this[_0x55f34a(0x203)]=_0xa2f6f4,this[_0x55f34a(0x25a)]=_0xa43987,this[_0x55f34a(0x16b)]=_0x2f1c7f,this['_localeService']=_0x11ecb5,this['_logService']=_0x1cfae8,this['_mcpConnectionController']=_0x10d61a,_(this,'_loading$',new o['BehaviorSubject'](!0x1)),_(this,_0x55f34a(0x158),new o[(_0x55f34a(0x159))]({})),_(this,_0x55f34a(0x1d8),new o['BehaviorSubject']({})),_(this,_0x55f34a(0x154),new o[(_0x55f34a(0x159))]('')),_(this,_0x55f34a(0x181),async _0x5e913f=>{const _0x163af4=_0x55f34a;this[_0x163af4(0x1f2)]['next'](!0x0);try{var _0x307e8d,_0x5b3ab6;let _0x333f0d=await this['_validateConfig'](_0x5e913f);if(!_0x333f0d['isValid']){this[_0x163af4(0x25a)][_0x163af4(0x152)]({'type':i[_0x163af4(0x1de)][_0x163af4(0x1e2)],'content':_0x333f0d[_0x163af4(0x201)]||this['_localeService']['t'](_0x163af4(0x1b4))});return;}_0x5e913f['apiKey']?await this[_0x163af4(0x225)][_0x163af4(0x16d)](b,_0x5e913f['apiKey']['trim']()):await this[_0x163af4(0x225)][_0x163af4(0x153)](b),this[_0x163af4(0x154)][_0x163af4(0x1ff)](((_0x307e8d=_0x5e913f[_0x163af4(0x254)])==null?void 0x0:_0x307e8d[_0x163af4(0x24f)]())||''),this['_mcpConnectionController'][_0x163af4(0x147)]({'Authorization':_0x163af4(0x1e0)+((_0x5b3ab6=_0x5e913f[_0x163af4(0x254)])==null?void 0x0:_0x5b3ab6[_0x163af4(0x24f)]())}),this[_0x163af4(0x25a)][_0x163af4(0x152)]({'type':i[_0x163af4(0x1de)][_0x163af4(0x195)],'content':this[_0x163af4(0x1a3)]['t'](_0x163af4(0x245))}),setTimeout(()=>{const _0x4283eb=_0x163af4;this[_0x4283eb(0x203)]['close'](x);},0x320);}catch(_0x2a83ba){this[_0x163af4(0x236)][_0x163af4(0x1a7)](_0x163af4(0x1b0),_0x2a83ba),this[_0x163af4(0x25a)][_0x163af4(0x152)]({'type':i['MessageType'][_0x163af4(0x1e2)],'content':this[_0x163af4(0x1a3)]['t'](_0x163af4(0x1f8))});}finally{this[_0x163af4(0x1f2)]['next'](!0x1);}}),this['_initConfigSync'](),this[_0x55f34a(0x15f)](),this[_0x55f34a(0x183)]();}[_0x26f842(0x1e7)](){const _0x3c292c=_0x26f842;let _0x38d7df=this[_0x3c292c(0x208)][_0x3c292c(0x238)](f);_0x38d7df!=null&&_0x38d7df[_0x3c292c(0x1eb)]&&this['_dialogService'][_0x3c292c(0x256)]({'id':x,'title':{'title':this[_0x3c292c(0x1a3)]['t'](_0x3c292c(0x258))},'children':{'label':_0x3c292c(0x1f9)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x512004=_0x3c292c;this['_dialogService'][_0x512004(0x171)](x);}});}[_0x26f842(0x17d)](){const _0x1e03f2=_0x26f842;return this[_0x1e03f2(0x158)][_0x1e03f2(0x1f7)];}[_0x26f842(0x183)](){const _0x5559fa=_0x26f842;this[_0x5559fa(0x14d)](this[_0x5559fa(0x16b)][_0x5559fa(0x14e)](_0x5559fa(0x1f9),this[_0x5559fa(0x178)]()));}['_createConfigPanelComponent'](){const _0x588fcb=_0x26f842;return(0x0,a[_0x588fcb(0x22c)])(()=>{const _0x270db5=_0x588fcb;var _0x44b081,_0x3283d3,_0x71a3e2;return(0x0,l[_0x270db5(0x243)])(d,{'config':this[_0x270db5(0x1d8)][_0x270db5(0x1f7)],'mcpCoreConfig':this[_0x270db5(0x158)]['value'],'currentApiKey$':this[_0x270db5(0x154)],'onSave':this['_handleConfigSave'],'loading':this[_0x270db5(0x1f2)]['value'],'connectionStatus$':(_0x44b081=this[_0x270db5(0x25f)])==null?void 0x0:_0x44b081[_0x270db5(0x17a)],'connectionError$':(_0x3283d3=this[_0x270db5(0x25f)])==null?void 0x0:_0x3283d3[_0x270db5(0x166)],'currentSessionId$':(_0x71a3e2=this[_0x270db5(0x25f)])==null?void 0x0:_0x71a3e2[_0x270db5(0x1e6)]});},this['_injector']);}['_initConfigSync'](){const _0xa536af=_0x26f842;this[_0xa536af(0x14d)](this[_0xa536af(0x208)][_0xa536af(0x180)](r[_0xa536af(0x1a4)])[_0xa536af(0x18e)](_0x378c00=>{const _0x24e7f4=_0xa536af;this[_0x24e7f4(0x158)]['next'](_0x378c00||{});}));let _0xd6e444=this[_0xa536af(0x208)]['getConfig'](r[_0xa536af(0x1a4)]);this[_0xa536af(0x158)][_0xa536af(0x1ff)](_0xd6e444||{}),this['disposeWithMe'](this[_0xa536af(0x208)][_0xa536af(0x180)](f)[_0xa536af(0x18e)](_0x4e0b08=>{const _0x1bee32=_0xa536af;this[_0x1bee32(0x1d8)]['next'](_0x4e0b08||{});}));let _0x576159=this[_0xa536af(0x208)][_0xa536af(0x238)](f);this[_0xa536af(0x1d8)][_0xa536af(0x1ff)](_0x576159||{});}async['_loadStoredApiKey'](){const _0x524891=_0x26f842;let _0xcc7f53=this[_0x524891(0x208)]['getConfig'](f);if(!(_0xcc7f53!=null&&_0xcc7f53[_0x524891(0x1eb)]))return;let _0x21adf5=await this[_0x524891(0x225)][_0x524891(0x174)](b);_0x21adf5&&(this[_0x524891(0x25f)][_0x524891(0x147)]({'Authorization':'Bearer\x20'+_0x21adf5}),this[_0x524891(0x154)][_0x524891(0x1ff)](_0x21adf5));}async['_validateConfig'](_0x22f0ff){const _0x4e65d5=_0x26f842;if(!_0x22f0ff[_0x4e65d5(0x254)]||_0x22f0ff[_0x4e65d5(0x254)]['trim']()[_0x4e65d5(0x218)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x4e65d5(0x1a3)]['t'](_0x4e65d5(0x248))};if(_0x22f0ff['apiKey'][_0x4e65d5(0x24f)]()[_0x4e65d5(0x218)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x4e65d5(0x1a3)]['t'](_0x4e65d5(0x222))};try{let _0x54db8e=await this['_injector'][_0x4e65d5(0x165)](r['MCPConnectionController'])[_0x4e65d5(0x177)](_0x22f0ff[_0x4e65d5(0x254)][_0x4e65d5(0x24f)]());return _0x54db8e[_0x4e65d5(0x1f4)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x54db8e[_0x4e65d5(0x1a7)]||this[_0x4e65d5(0x1a3)]['t'](_0x4e65d5(0x188))};}catch(_0x2f8ae0){return console[_0x4e65d5(0x24d)](_0x4e65d5(0x182),_0x2f8ae0),{'isValid':!0x0};}}};S=y([v(0x0,(0x0,n[_0x26f842(0x1b9)])(n[_0x26f842(0x1af)])),v(0x1,a['IUIPartsService']),v(0x2,n[_0x26f842(0x18d)]),v(0x3,n[_0x26f842(0x20c)]),v(0x4,a[_0x26f842(0x1e3)]),v(0x5,a[_0x26f842(0x1b6)]),v(0x6,(0x0,n[_0x26f842(0x1b9)])(a[_0x26f842(0x24c)])),v(0x7,(0x0,n[_0x26f842(0x1b9)])(n['LocaleService'])),v(0x8,n[_0x26f842(0x1ae)]),v(0x9,(0x0,n[_0x26f842(0x1b9)])(r[_0x26f842(0x1e1)]))],S);const C={'id':_0x26f842(0x173),'type':n[_0x26f842(0x239)]['COMMAND'],'handler':async(_0x43cda9,_0x5cfc70)=>(_0x43cda9[_0x26f842(0x165)](S)[_0x26f842(0x1e7)](),!0x0)};function w(_0x24511e,_0x474624){const _0x12395f=_0x26f842;switch(_0x24511e){case r[_0x12395f(0x1cd)][_0x12395f(0x15b)]:return _0x12395f(0x1c4);case r[_0x12395f(0x1cd)][_0x12395f(0x250)]:return _0x12395f(0x220);case r['MCPConnectionStatus'][_0x12395f(0x21b)]:return'mcpStatus.connected';case r[_0x12395f(0x1cd)]['FAILED']:switch(_0x474624){case r[_0x12395f(0x179)][_0x12395f(0x1fd)]:return _0x12395f(0x1b2);case r[_0x12395f(0x179)][_0x12395f(0x1c7)]:return _0x12395f(0x189);case r[_0x12395f(0x179)][_0x12395f(0x169)]:return _0x12395f(0x233);case r['MCPConnectionError'][_0x12395f(0x209)]:return _0x12395f(0x1b1);default:return _0x12395f(0x1f5);}case r[_0x12395f(0x1cd)][_0x12395f(0x242)]:return'mcpStatus.retrying';default:return'mcpStatus.unknown';}}function T(_0x2b2558,_0x37871c,_0xfeafce,_0x5a1036=!0x0){const _0x146bfe=_0x26f842;let _0x486ab8=w(_0x2b2558,_0x37871c),_0x1f9f31=_0xfeafce['t'](_0x486ab8);return _0x5a1036?_0x2b2558===r['MCPConnectionStatus'][_0x146bfe(0x15b)]&&_0x37871c===r['MCPConnectionError'][_0x146bfe(0x1fd)]?_0x1f9f31+_0x146bfe(0x227)+_0xfeafce['t'](_0x146bfe(0x21c)):_0x2b2558===r[_0x146bfe(0x1cd)][_0x146bfe(0x21b)]?''+_0x1f9f31:_0x2b2558===r[_0x146bfe(0x1cd)][_0x146bfe(0x15b)]||_0x2b2558===r[_0x146bfe(0x1cd)]['FAILED']?_0x1f9f31+'\x20-\x20'+_0xfeafce['t'](_0x146bfe(0x185)):_0x1f9f31:_0x1f9f31;}function _0x2528(){const _0x397b62=['UniverMCPPlugin','NONE','clsx','span','Configuration\x20Notes:','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','mcpConfig.description','mcp.apiKey','showStatus','mcpServerUrl','_localeService','MCP_PLUGIN_CONFIG_KEY','univer.plus','MCPStatusDisplay','error','_initializeMenus','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','MenuIcon','has','pluginName','ILogService','Injector','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','mcpStatus.maxRetriesExceeded','mcpStatus.unauthorized','mcpConfig.authorizationDescription','mcpConfig.validation.invalidConfig','LocaleService','IMessageService','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','call','Inject','default','MCP_UI_PLUGIN','mcpConfig.note1','_injector','_initializeCommands','getOwnPropertyDescriptor','mcpConfig.configStep3','noopener\x20noreferrer','univer.ai','mcpConfig.configStep2','mcpStatus.disconnected','@univerjs-pro/mcp-ui','mcpConfig.save','SESSION_ID_OCCUPIED','BUTTON','univer-size-2\x20univer-rounded-full','div','https://mcp.univer.ai/mcp/?univer_session_id=','Disposable','MCPConnectionStatus','merge','mcpConfig.connectionError.unauthorized','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','465032LXJDiK','text','decorate','258TuTvyP','_connectionController','42mqPTxo','_commandService','_config$','mcpConfig.apiApplyInfo.description','mcpConfig.configStepTitle','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','univer-flex\x20univer-items-center\x20univer-gap-2','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','MessageType','_handleConfigure','Bearer\x20','MCPConnectionController','Error','IDialogService','string','_initAutoConnect','sessionId$','showConfigPanel','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','useDependency','univer-cursor-pointer\x20hover:univer-opacity-80','showDeveloperTools','CheckMarkIcon','MCPUIMenuController','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','mergeMenu','mcpConfig.connectionStatus.disconnected','MenuItemType','_loading$','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','isValid','mcpStatus.failed','univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','value','mcpConfig.configError','MCPConfigPanel','mcpConfig.apiKey','add','useState','UNAUTHORIZED','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','next','univer-text-yellow-500','errorMessage','2956369kPAxIO','_dialogService','push','HelpIcon','univer-text-blue-600','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','_configService','MAX_RETRIES_EXCEEDED','HEADER_MENU','stringify','ILocalStorageService','useCallback','univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','univer-space-y-4','3440810XdKkhz','constructor','CloseIcon','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','univer-bg-green-500','WebSocketService','139143HSLEYL','length','registerCommand','IMenuManagerService','CONNECTED','mcpStatus.clickToConfigure','9AvRZYD','univer-shrink-0\x20univer-text-red-500','42mGRzTz','mcpStatus.connecting','132GEhkOR','mcpConfig.validation.apiKeyTooShort','object','mcpConfig.configParameters','_localStorageService','version','\x20-\x20','univer-font-medium','538285dptyzC','mcpConfig.connectionStatus.failed','univer-flex\x20univer-flex-wrap\x20univer-gap-2','connectInjector','univer-flex\x20univer-items-start\x20univer-gap-3','univer-min-w-0\x20univer-flex-1','pre','_menuManagerService','mcpConfig.apiKeyPlaceholder','<SESSION_ID>','mcpStatus.networkError','_config','univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','_logService','mcpConfig.connectionInfo','getConfig','CommandType','8joEfQq','OffLineIcon','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','univer-shrink-0\x20univer-text-blue-500','univer-text-xs\x20univer-text-gray-500','forEach','univer-space-y-3','264422oWKFcn','RETRYING','jsx','Button','mcpConfig.configSaved','UniverMCPUIPlugin','univer-text-gray-500','mcpConfig.validation.apiKeyRequired','mcpConfig.configStep1','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','symbol','ComponentManager','warn','univer-text-gray-400','trim','CONNECTING','ISocketService','univer-space-y-5','univer-flex\x20univer-items-start\x20univer-gap-2','apiKey','includes','open','label','mcpConfig.title','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_messageService','univer-bg-gray-500','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','mcpConfig.connectionError.networkError','_mcpConnectionController','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','__setCustomHeaders','univer-text-red-500','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','_initStatusComponent','mcp-config-dialog','univer-mr-2\x20univer-flex\x20univer-text-xl','disposeWithMe','register','univer-flex-1','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','univer-space-y-2','show','removeItem','_apiKey$','1.0.0-alpha.1','off','mcpConfig.connectionStatus.connected','_mcpCoreConfig$','BehaviorSubject','ICommandService','DISCONNECTED','_uiPartsService','mcpConfig.saving','enUS','_loadStoredApiKey','useObservable','bottom','OnLineIcon','Input','univer-flex\x20univer-items-center','get','connectionError$','MCPConfigUIController','button','NETWORK_ERROR','jsxs','_componentManager','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','setItem','_blank','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','close','univer-bg-blue-500','mcp-ui.command.openConfigPanel','getItem','mcpConfig.connectionStatus.connecting','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','validateApiKey','_createConfigPanelComponent','MCPConnectionError','connectionStatus$','enableAutoConnect','1QdILJv','getCurrentConfig','function','mcpConfig.apiApplyInfo.univerAiLabel','subscribeConfigValue$','_handleConfigSave','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','_registerComponent','registerComponent','mcpStatus.clickToConnect','univer-bg-red-500','BuiltInUIPart','mcpConfig.validation.invalidApiKey','mcpStatus.sessionOccupied','toStringTag','mcpConfig.apiApplyInfo.title','onStarting','IConfigService','subscribe','Authorization:','Plugin','32270EptsEU','mcpConfig.connectionStatus.retrying','defineProperty','prototype','Success','univer-size-4','FAILED','mcpConfig.connectionError.maxRetriesExceeded'];_0x2528=function(){return _0x397b62;};return _0x2528();}function E(_0x4e8cea){const _0x580d86=_0x26f842;switch(_0x4e8cea){case r['MCPConnectionStatus'][_0x580d86(0x21b)]:return'univer-text-green-500';case r['MCPConnectionStatus']['CONNECTING']:case r[_0x580d86(0x1cd)]['RETRYING']:return _0x580d86(0x200);case r[_0x580d86(0x1cd)][_0x580d86(0x197)]:case r['MCPConnectionStatus'][_0x580d86(0x15b)]:return _0x580d86(0x148);default:return _0x580d86(0x247);}}function D(_0x10116e){const _0x245df1=_0x26f842;let {status$:_0x425027,error$:_0x5f5bd4,onConfigure:_0x1c19a0,showClickable:_0x4ff345=!0x0}=_0x10116e,_0x5af774=(0x0,a[_0x245df1(0x160)])(_0x425027,r[_0x245df1(0x1cd)][_0x245df1(0x15b)]),_0x2b7d83=(0x0,a[_0x245df1(0x160)])(_0x5f5bd4,r[_0x245df1(0x179)]['NONE']),_0x122196=(0x0,a['useDependency'])(n['LocaleService']),_0x565870=_0x5af774===r['MCPConnectionStatus'][_0x245df1(0x21b)];_0x5af774===r['MCPConnectionStatus'][_0x245df1(0x250)]||r['MCPConnectionStatus'][_0x245df1(0x242)];let _0x10238e=_0x122196['t'](w(_0x5af774,_0x2b7d83)),_0x30e6b6=T(_0x5af774,_0x2b7d83,_0x122196,_0x4ff345),_0x192f47=E(_0x5af774),_0x2a1e2d=_0x565870?(0x0,l[_0x245df1(0x243)])(s[_0x245df1(0x162)],{}):(0x0,l[_0x245df1(0x243)])(s[_0x245df1(0x23b)],{}),_0x5224e4=(0x0,c[_0x245df1(0x20d)])(()=>{_0x4ff345&&_0x1c19a0&&_0x1c19a0();},[_0x4ff345,_0x1c19a0]);function _0x3a5d60(){const _0x156051=_0x245df1;return(0x0,l[_0x156051(0x16a)])('div',{'className':(0x0,i[_0x156051(0x19b)])(_0x156051(0x164),_0x4ff345&&_0x1c19a0&&_0x156051(0x1ea)),'role':'button','onClick':_0x4ff345&&_0x1c19a0?_0x5224e4:void 0x0,'children':[(0x0,l[_0x156051(0x243)])(_0x156051(0x1ca),{'className':(0x0,i[_0x156051(0x19b)])(_0x156051(0x14c),_0x192f47),'children':_0x2a1e2d}),(0x0,l[_0x156051(0x243)])(_0x156051(0x1ca),{'className':_0x156051(0x259),'children':_0x10238e})]});}return(0x0,l['jsx'])(i['Tooltip'],{'title':_0x30e6b6,'placement':_0x245df1(0x161),'children':_0x3a5d60()});}let O=class extends n[_0x26f842(0x1cc)]{constructor(_0x50da42,_0x4b6b90,_0x593296,_0x1fc6f8){const _0x6a2c74=_0x26f842;super(),this[_0x6a2c74(0x1bd)]=_0x50da42,this[_0x6a2c74(0x1d5)]=_0x4b6b90,this[_0x6a2c74(0x15c)]=_0x593296,this[_0x6a2c74(0x208)]=_0x1fc6f8,this[_0x6a2c74(0x1e5)](),this[_0x6a2c74(0x14a)]();}[_0x26f842(0x1e5)](){const _0xd02120=_0x26f842;let _0x38e002=this[_0xd02120(0x208)][_0xd02120(0x238)](f);_0x38e002!=null&&_0x38e002[_0xd02120(0x1eb)]&&(this[_0xd02120(0x1d5)][_0xd02120(0x17b)]=!0x1);}[_0x26f842(0x14a)](){const _0x5bd1cf=_0x26f842;let _0x3cc435=this[_0x5bd1cf(0x208)][_0x5bd1cf(0x238)](f);(_0x3cc435==null?void 0x0:_0x3cc435[_0x5bd1cf(0x1a1)])!==!0x1&&this[_0x5bd1cf(0x14d)](this[_0x5bd1cf(0x15c)][_0x5bd1cf(0x184)](a[_0x5bd1cf(0x187)][_0x5bd1cf(0x20a)],()=>{const _0x24f048=_0x5bd1cf;var _0x2bf4a3;return(0x0,a[_0x24f048(0x22c)])(k({'status$':this[_0x24f048(0x1d5)][_0x24f048(0x17a)],'error$':this[_0x24f048(0x1d5)][_0x24f048(0x166)],'onConfigure':()=>this[_0x24f048(0x1df)](),'showClickable':(_0x2bf4a3=_0x3cc435==null?void 0x0:_0x3cc435[_0x24f048(0x1eb)])==null?!0x1:_0x2bf4a3}),this[_0x24f048(0x1bd)]);}));}[_0x26f842(0x1df)](){const _0x3bed9c=_0x26f842;this['_injector'][_0x3bed9c(0x165)](S)['showConfigPanel']();}};function _0x3e41(_0x5b9284,_0x475383){_0x5b9284=_0x5b9284-0x146;const _0x25281f=_0x2528();let _0x3e41bf=_0x25281f[_0x5b9284];return _0x3e41bf;}O=y([v(0x0,(0x0,n[_0x26f842(0x1b9)])(n[_0x26f842(0x1af)])),v(0x1,(0x0,n[_0x26f842(0x1b9)])(r['MCPConnectionController'])),v(0x2,a['IUIPartsService']),v(0x3,n['IConfigService'])],O);function k(_0x4ba266){let {status$:_0x4cc6ea,error$:_0x107ac0,onConfigure:_0x36e8d1,showClickable:_0x56f64b}=_0x4ba266;return function(){const _0x563667=_0x3e41;return(0x0,l[_0x563667(0x243)])(D,{'status$':_0x4cc6ea,'error$':_0x107ac0,'onConfigure':_0x36e8d1,'showClickable':_0x56f64b});};}function A(_0x2e1828){const _0xaaf57b=_0x26f842;return{'id':C['id'],'type':a[_0xaaf57b(0x1f1)][_0xaaf57b(0x1c8)],'icon':_0xaaf57b(0x1ab),'title':_0xaaf57b(0x258),'tooltip':_0xaaf57b(0x258)};}const j={[a['RibbonStartGroup']['OTHERS']]:{[C['id']]:{'order':0xa,'menuItemFactory':A}}};let M=class extends n[_0x26f842(0x1cc)]{constructor(_0x2ee27f,_0x134938){const _0x5e83c1=_0x26f842;super(),this['_commandService']=_0x2ee27f,this[_0x5e83c1(0x230)]=_0x134938,this[_0x5e83c1(0x1be)](),this[_0x5e83c1(0x1a8)]();}['_initializeCommands'](){const _0x39a70b=_0x26f842;[C][_0x39a70b(0x23f)](_0x5a314d=>{const _0x3992de=_0x39a70b;this['disposeWithMe'](this[_0x3992de(0x1d7)][_0x3992de(0x219)](_0x5a314d));});}['_initializeMenus'](){const _0x1f735c=_0x26f842;this['_menuManagerService'][_0x1f735c(0x1ef)](j);}};M=y([v(0x0,n[_0x26f842(0x15a)]),v(0x1,a[_0x26f842(0x21a)])],M);var N=_0x26f842(0x1c5),P=_0x26f842(0x155);let F=class extends n[_0x26f842(0x190)]{constructor(_0xaa5f05=p,_0x4ebf25,_0x2b383c,_0x39a5a1,_0x5e522f,_0x1c232c){const _0x6949d2=_0x26f842;super(),this[_0x6949d2(0x234)]=_0xaa5f05,this[_0x6949d2(0x1bd)]=_0x4ebf25,this[_0x6949d2(0x208)]=_0x2b383c,this['_uiPartsService']=_0x39a5a1,this[_0x6949d2(0x225)]=_0x5e522f,this[_0x6949d2(0x1a3)]=_0x1c232c;let {..._0xaa9565}=(0x0,n[_0x6949d2(0x1ce)])({},p,this[_0x6949d2(0x234)]);this[_0x6949d2(0x208)]['setConfig'](f,_0xaa9565);}async[_0x26f842(0x18c)](){const _0x446a31=_0x26f842;let _0x4e023d=[[O],[S],[M]];this[_0x446a31(0x1bd)][_0x446a31(0x1ac)](u[_0x446a31(0x251)])||_0x4e023d[_0x446a31(0x204)]([u['ISocketService'],{'useClass':u[_0x446a31(0x216)]}]),_0x4e023d[_0x446a31(0x23f)](_0x396e10=>this[_0x446a31(0x1bd)][_0x446a31(0x1fb)](_0x396e10)),this[_0x446a31(0x1bd)][_0x446a31(0x165)](O),this[_0x446a31(0x1bd)][_0x446a31(0x165)](S),this[_0x446a31(0x1bd)][_0x446a31(0x165)](M);}};_(F,_0x26f842(0x1ad),_0x26f842(0x1bb)),_(F,'packageName',N),_(F,_0x26f842(0x226),P),F=y([(0x0,n['DependentOn'])(r[_0x26f842(0x199)]),v(0x1,(0x0,n[_0x26f842(0x1b9)])(n[_0x26f842(0x1af)])),v(0x2,n[_0x26f842(0x18d)]),v(0x3,a['IUIPartsService']),v(0x4,n[_0x26f842(0x20c)]),v(0x5,(0x0,n[_0x26f842(0x1b9)])(n[_0x26f842(0x1b5)]))],F),exports['MCPConfigPanel']=d,Object['defineProperty'](exports,_0x26f842(0x167),{'enumerable':!0x0,'get':function(){return S;}}),Object[_0x26f842(0x193)](exports,'MCPConnectionUIController',{'enumerable':!0x0,'get':function(){return O;}}),exports[_0x26f842(0x1a6)]=D,Object[_0x26f842(0x193)](exports,_0x26f842(0x1ed),{'enumerable':!0x0,'get':function(){return M;}}),exports['OpenMCPConfigPanelCommand']=C,Object[_0x26f842(0x193)](exports,_0x26f842(0x246),{'enumerable':!0x0,'get':function(){return F;}}),exports[_0x26f842(0x15e)]=e,exports['zhCN']=t;
|
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x3be766=_0x4d15;function _0x4d15(_0x54a184,_0x686994){_0x54a184=_0x54a184-0xfa;const _0x22f4ac=_0x22f4();let _0x4d15c8=_0x22f4ac[_0x54a184];return _0x4d15c8;}(function(_0x43b29e,_0x466c26){const _0x23bd93=_0x4d15,_0x57e0ac=_0x43b29e();while(!![]){try{const _0x4c748e=parseInt(_0x23bd93(0xff))/0x1+-parseInt(_0x23bd93(0x101))/0x2+-parseInt(_0x23bd93(0x103))/0x3*(-parseInt(_0x23bd93(0x102))/0x4)+-parseInt(_0x23bd93(0x100))/0x5*(-parseInt(_0x23bd93(0x104))/0x6)+-parseInt(_0x23bd93(0xfc))/0x7+parseInt(_0x23bd93(0xfe))/0x8*(parseInt(_0x23bd93(0xfd))/0x9)+-parseInt(_0x23bd93(0xfb))/0xa;if(_0x4c748e===_0x466c26)break;else _0x57e0ac['push'](_0x57e0ac['shift']());}catch(_0x36e4de){_0x57e0ac['push'](_0x57e0ac['shift']());}}}(_0x22f4,0xa305a));function _0x22f4(){const _0xac6dd6=['2715gMZJBE','958340oXMXoA','1162588anuCRr','3kyfdQn','8898qZoNsB','exports','11564240eYCnHD','4470991yMVApg','9mEkbPL','10124408uisTCO','580578zSjPPs'];_0x22f4=function(){return _0xac6dd6;};return _0x22f4();}const e=require('./en-US.js');module[_0x3be766(0xfa)]=e;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x3aac(_0x3d1370,_0x3e5d6f){_0x3d1370=_0x3d1370-0x1be;const _0x47a1b9=_0x47a1();let _0x3aac7f=_0x47a1b9[_0x3d1370];return _0x3aac7f;}const _0x5bff4f=_0x3aac;(function(_0x3937fe,_0x4b3b6b){const _0x2970e3=_0x3aac,_0x25d867=_0x3937fe();while(!![]){try{const _0x35a740=-parseInt(_0x2970e3(0x1e1))/0x1*(parseInt(_0x2970e3(0x1d5))/0x2)+-parseInt(_0x2970e3(0x1d3))/0x3+parseInt(_0x2970e3(0x1d9))/0x4+parseInt(_0x2970e3(0x1d7))/0x5+parseInt(_0x2970e3(0x1d1))/0x6*(-parseInt(_0x2970e3(0x1de))/0x7)+-parseInt(_0x2970e3(0x1e0))/0x8*(parseInt(_0x2970e3(0x1bf))/0x9)+-parseInt(_0x2970e3(0x1e6))/0xa*(-parseInt(_0x2970e3(0x1e9))/0xb);if(_0x35a740===_0x4b3b6b)break;else _0x25d867['push'](_0x25d867['shift']());}catch(_0x38647d){_0x25d867['push'](_0x25d867['shift']());}}}(_0x47a1,0x84b4f));const e={'mcpStatus':{'disconnected':_0x5bff4f(0x1c2),'connecting':'MCP\x20Connecting...','connected':_0x5bff4f(0x1d4),'failed':'MCP\x20Connection\x20Failed','retrying':_0x5bff4f(0x1d0),'unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x5bff4f(0x1d8),'clickToConfigure':_0x5bff4f(0x1ca)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x5bff4f(0x1d2),'apiKey':_0x5bff4f(0x1cb),'apiKeyPlaceholder':_0x5bff4f(0x1c8),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x5bff4f(0x1e5),'configInstructions':_0x5bff4f(0x1c0),'configStepTitle':_0x5bff4f(0x1cf),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x5bff4f(0x1df),'configStep3':_0x5bff4f(0x1c3),'sessionId':_0x5bff4f(0x1d6),'sessionIdDescription':_0x5bff4f(0x1dc),'authorizationDescription':_0x5bff4f(0x1e8),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x5bff4f(0x1c7),'save':_0x5bff4f(0x1c5),'saving':_0x5bff4f(0x1e7),'note1':_0x5bff4f(0x1ea),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x5bff4f(0x1cc),'description':_0x5bff4f(0x1ce),'univerAiLabel':_0x5bff4f(0x1cd),'getStarted':_0x5bff4f(0x1db)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x5bff4f(0x1c6),'invalidConfig':_0x5bff4f(0x1da),'invalidApiKey':_0x5bff4f(0x1dd)},'connectionStatus':{'disconnected':_0x5bff4f(0x1e4),'connecting':_0x5bff4f(0x1e3),'connected':_0x5bff4f(0x1c4),'failed':'Connection\x20Failed','retrying':_0x5bff4f(0x1e2)},'connectionError':{'unauthorized':_0x5bff4f(0x1c9),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x5bff4f(0x1be),'maxRetriesExceeded':_0x5bff4f(0x1c1)}}};module['exports']=e;function _0x47a1(){const _0x1d6a3f=['Enter\x20your\x20API\x20key','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Click\x20to\x20configure\x20MCP','API\x20Key','What\x20is\x20API\x20Key?','Univer\x20AI\x20Console','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Configuration\x20Steps:','MCP\x20Retrying...','132906YwzlqN','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','1497699zXnTXA','MCP\x20Connected','86074uNACyr','Session\x20ID','341410fAdpLh','Click\x20to\x20connect\x20MCP','836860gItFrx','Invalid\x20configuration','Get\x20your\x20API\x20key\x20in\x20seconds','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','70HaJFNH','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','1312520PJOJME','6TwJfYp','Retrying...','Connecting...','Disconnected','MCP\x20Client\x20Configuration','102190whqBCz','Saving...','API\x20key\x20with\x20Bearer\x20prefix.','1870oDIQoE','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','27PmbWFJ','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Disconnected','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Connected','Save\x20Configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Max\x20Retries'];_0x47a1=function(){return _0x1d6a3f;};return _0x47a1();}
|
package/lib/cjs/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x4ba9(_0x341799,_0x168672){_0x341799=_0x341799-0x1ea;const _0x42afa7=_0x42af();let _0x4ba901=_0x42afa7[_0x341799];return _0x4ba901;}const _0x350f4b=_0x4ba9;(function(_0x32057f,_0x2c09c5){const _0x100d6e=_0x4ba9,_0x4e2969=_0x32057f();while(!![]){try{const _0x4b7da7=-parseInt(_0x100d6e(0x1f1))/0x1*(parseInt(_0x100d6e(0x1ea))/0x2)+-parseInt(_0x100d6e(0x1eb))/0x3*(parseInt(_0x100d6e(0x1ec))/0x4)+parseInt(_0x100d6e(0x1ef))/0x5+-parseInt(_0x100d6e(0x1f4))/0x6*(parseInt(_0x100d6e(0x1f5))/0x7)+-parseInt(_0x100d6e(0x1f2))/0x8+parseInt(_0x100d6e(0x1ed))/0x9+-parseInt(_0x100d6e(0x1f0))/0xa*(-parseInt(_0x100d6e(0x1ee))/0xb);if(_0x4b7da7===_0x2c09c5)break;else _0x4e2969['push'](_0x4e2969['shift']());}catch(_0x567816){_0x4e2969['push'](_0x4e2969['shift']());}}}(_0x42af,0x54320));function _0x42af(){const _0x5acd0e=['310256AQwnmN','exports','6XGSAdF','75474zlBZjR','4MdcrPN','3hgxCZK','1283188sFKnHy','6177933JwzeWL','76395XHeUAK','435895XwmWyo','690KDkgNa','268798VjYSAt'];_0x42af=function(){return _0x5acd0e;};return _0x42af();}const e=require('./en-US.js');module[_0x350f4b(0x1f3)]=e;
|
package/lib/cjs/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x1ebed1=_0x1945;function _0x1945(_0x29b002,_0x335c2d){_0x29b002=_0x29b002-0xf9;const _0x27a95c=_0x27a9();let _0x19452c=_0x27a95c[_0x29b002];return _0x19452c;}(function(_0x418884,_0x2fd043){const _0x2d8845=_0x1945,_0x21cf35=_0x418884();while(!![]){try{const _0x53b543=parseInt(_0x2d8845(0xfc))/0x1*(parseInt(_0x2d8845(0xfd))/0x2)+parseInt(_0x2d8845(0xfe))/0x3+parseInt(_0x2d8845(0xfb))/0x4+-parseInt(_0x2d8845(0x100))/0x5+parseInt(_0x2d8845(0x103))/0x6+-parseInt(_0x2d8845(0x102))/0x7*(parseInt(_0x2d8845(0xfa))/0x8)+-parseInt(_0x2d8845(0xf9))/0x9*(parseInt(_0x2d8845(0xff))/0xa);if(_0x53b543===_0x2fd043)break;else _0x21cf35['push'](_0x21cf35['shift']());}catch(_0x34f357){_0x21cf35['push'](_0x21cf35['shift']());}}}(_0x27a9,0xf3fdc));function _0x27a9(){const _0xc18b37=['1656qNGHIj','1274068UwedBp','765724HCADVB','2YtrzYg','4920939arrdYL','10ThdlPX','6631105KKfrYB','exports','30611IOFSmD','4170564vPWmdS','1699452CLVsdg'];_0x27a9=function(){return _0xc18b37;};return _0x27a9();}const e=require('./en-US.js');module[_0x1ebed1(0x101)]=e;
|
package/lib/cjs/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2d8f0e,_0x4ba119){const _0x448d1c=_0x3d1f,_0x31a947=_0x2d8f0e();while(!![]){try{const _0x44f6ae=-parseInt(_0x448d1c(0x11c))/0x1+-parseInt(_0x448d1c(0x11b))/0x2+-parseInt(_0x448d1c(0x11f))/0x3*(-parseInt(_0x448d1c(0x121))/0x4)+-parseInt(_0x448d1c(0x123))/0x5+parseInt(_0x448d1c(0x11d))/0x6+parseInt(_0x448d1c(0x120))/0x7*(-parseInt(_0x448d1c(0x122))/0x8)+parseInt(_0x448d1c(0x11e))/0x9;if(_0x44f6ae===_0x4ba119)break;else _0x31a947['push'](_0x31a947['shift']());}catch(_0x45b061){_0x31a947['push'](_0x31a947['shift']());}}}(_0x137a,0xa4e41));const e=require('./en-US.js');module['exports']=e;function _0x3d1f(_0xcedf7d,_0x821383){_0xcedf7d=_0xcedf7d-0x11b;const _0x137ac5=_0x137a();let _0x3d1f4a=_0x137ac5[_0xcedf7d];return _0x3d1f4a;}function _0x137a(){const _0x563a5e=['658428QnDUOE','714743hKseev','2877318KuKWmR','18968022thUJaM','18kpHdxt','3376163OmEVcp','533328FznpIB','8FBiriR','5927220zbhfek'];_0x137a=function(){return _0x563a5e;};return _0x137a();}
|
package/lib/cjs/locale/ja-JP.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x9210(_0x273592,_0x222554){_0x273592=_0x273592-0x173;const _0x57e004=_0x57e0();let _0x9210e3=_0x57e004[_0x273592];return _0x9210e3;}function _0x57e0(){const _0x18d045=['未接続','Bearerプレフィックス付きのAPIキー。','MCP:\x20最大再試行回数を超過','接続失敗','7077816nGhRsl','接続済み','MCP設定','クリックしてMCPを設定','APIキーは必須です','45115rYusPK','Univer\x20AIコンソール','894HSvvGf','MCP\x20接続中...','設定の保存に失敗しました','APIキーを入力してください','接続中...','MCP\x20未接続','41804hJPWRq','MCPクライアント設定','393575JQZoRd','MCP\x20接続済み','MCP:\x20認証されていません','MCPクライアントの設定に次の設定を追加してください:','APIキー','セッションIDが現在使用中です。後でもう一度お試しください','MCPを設定してAIでスプレッドシートを操作','13831112XSPatC','APIキーとは?','MCPクライアントの設定ファイルに設定を追加','APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','認証に失敗しました。APIキーを確認してください','MCP\x20接続失敗','最大再試行回数','18635058IYYiOt','設定が正常に保存されました','保存中...','APIキーはローカルストレージに安全に保存されます','MCP:\x20セッションIDが使用中','APIキーはこのブラウザのローカルに保存されます','ネットワーク接続エラー。インターネット接続を確認してください','3aGujIN','3784394fIzIXX','セキュアな接続のために認証を有効にする','APIキーは10文字以上である必要があります','MCPクライアントを再起動して設定を適用','MCP:\x20ネットワークエラー','クリックしてMCPに接続','無効な設定'];_0x57e0=function(){return _0x18d045;};return _0x57e0();}const _0x735238=_0x9210;(function(_0x4002b4,_0x5430a5){const _0x34cb13=_0x9210,_0x420900=_0x4002b4();while(!![]){try{const _0x19127d=-parseInt(_0x34cb13(0x176))/0x1+-parseInt(_0x34cb13(0x18c))/0x2*(-parseInt(_0x34cb13(0x18b))/0x3)+-parseInt(_0x34cb13(0x197))/0x4+parseInt(_0x34cb13(0x19c))/0x5+-parseInt(_0x34cb13(0x19e))/0x6*(-parseInt(_0x34cb13(0x174))/0x7)+-parseInt(_0x34cb13(0x17d))/0x8+parseInt(_0x34cb13(0x184))/0x9;if(_0x19127d===_0x5430a5)break;else _0x420900['push'](_0x420900['shift']());}catch(_0x4d91de){_0x420900['push'](_0x420900['shift']());}}}(_0x57e0,0xecbdc));const e={'mcpStatus':{'disconnected':_0x735238(0x173),'connecting':_0x735238(0x19f),'connected':_0x735238(0x177),'failed':_0x735238(0x182),'retrying':'MCP\x20再試行中...','unknown':'MCP\x20不明な状態','unauthorized':_0x735238(0x178),'sessionOccupied':_0x735238(0x188),'networkError':_0x735238(0x190),'maxRetriesExceeded':_0x735238(0x195),'clickToConnect':_0x735238(0x191),'clickToConfigure':_0x735238(0x19a)},'mcpConfig':{'title':_0x735238(0x199),'description':_0x735238(0x17c),'apiKey':_0x735238(0x17a),'apiKeyPlaceholder':_0x735238(0x1a1),'apiKeyHint':_0x735238(0x189),'enableAuth':'認証を有効にする','enableAuthHint':_0x735238(0x18d),'connectionInfo':'MCPクライアント設定','mcpClientConfig':_0x735238(0x175),'configInstructions':_0x735238(0x179),'configStepTitle':'設定手順:','configStep1':'以下のJSON設定をコピー','configStep2':_0x735238(0x17f),'configStep3':_0x735238(0x18f),'sessionId':'セッションID','sessionIdDescription':'一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','authorizationDescription':_0x735238(0x194),'configParameters':'設定パラメータ:','maxRetries':_0x735238(0x183),'save':'設定を保存','saving':_0x735238(0x186),'note1':'設定の変更は直ちに有効になります','note2':_0x735238(0x187),'configSaved':_0x735238(0x185),'configError':_0x735238(0x1a0),'apiApplyInfo':{'title':_0x735238(0x17e),'description':_0x735238(0x180),'univerAiLabel':_0x735238(0x19d),'getStarted':'数秒でAPIキーを取得'},'validation':{'apiKeyRequired':_0x735238(0x19b),'apiKeyTooShort':_0x735238(0x18e),'invalidConfig':_0x735238(0x192),'invalidApiKey':'無効なAPIキーです。キーが正しいか確認してください'},'connectionStatus':{'disconnected':_0x735238(0x193),'connecting':_0x735238(0x1a2),'connected':_0x735238(0x198),'failed':_0x735238(0x196),'retrying':'再試行中...'},'connectionError':{'unauthorized':_0x735238(0x181),'sessionOccupied':_0x735238(0x17b),'networkError':_0x735238(0x18a),'maxRetriesExceeded':'最大再試行回数を超過しました。後でもう一度お試しください'}}};module['exports']=e;
|
package/lib/cjs/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x4c5f(_0x103cf3,_0x48d2a0){_0x103cf3=_0x103cf3-0x6f;const _0x1b7f75=_0x1b7f();let _0x4c5f66=_0x1b7f75[_0x103cf3];return _0x4c5f66;}const _0x2268ca=_0x4c5f;(function(_0x40743f,_0x3d48e1){const _0x3af770=_0x4c5f,_0x484024=_0x40743f();while(!![]){try{const _0x17261c=parseInt(_0x3af770(0x9d))/0x1*(-parseInt(_0x3af770(0x85))/0x2)+-parseInt(_0x3af770(0x9f))/0x3+parseInt(_0x3af770(0xa1))/0x4+-parseInt(_0x3af770(0x95))/0x5+-parseInt(_0x3af770(0x70))/0x6+-parseInt(_0x3af770(0xa0))/0x7+parseInt(_0x3af770(0x8d))/0x8;if(_0x17261c===_0x3d48e1)break;else _0x484024['push'](_0x484024['shift']());}catch(_0x308d3f){_0x484024['push'](_0x484024['shift']());}}}(_0x1b7f,0x87f87));function _0x1b7f(){const _0xefd57e=['API\x20키는\x20Univer\x20MCP\x20서버에\x20연결하여\x20AI로\x20스프레드시트를\x20조작할\x20수\x20있게\x20해줍니다.\x20콘솔에서\x20API\x20키를\x20발급받아\x20시작하세요.','유효하지\x20않은\x20API\x20키입니다.\x20키가\x20올바른지\x20확인하세요','API\x20키는\x20이\x20브라우저의\x20로컬에\x20저장됩니다','17QbYqRz','MCP\x20클라이언트를\x20다시\x20시작하여\x20설정\x20적용','588642aAxVkz','7264257pveliM','2972032hcKeyK','MCP\x20알\x20수\x20없는\x20상태','MCP\x20연결\x20중...','MCP:\x20네트워크\x20오류','exports','MCP\x20연결\x20실패','클릭하여\x20MCP\x20연결','API\x20키는\x2010자\x20이상이어야\x20합니다','486738NbGGzK','설정\x20저장','클릭하여\x20MCP\x20설정','인증\x20활성화','MCP:\x20인증되지\x20않음','연결\x20중...','설정\x20변경\x20사항은\x20즉시\x20적용됩니다','세션\x20ID','MCP\x20클라이언트\x20설정','설정\x20저장\x20실패','재시도\x20중...','MCP\x20재시도\x20중...','Univer\x20AI\x20콘솔','설정이\x20성공적으로\x20저장되었습니다','유효하지\x20않은\x20설정','최대\x20재시도\x20횟수를\x20초과했습니다.\x20나중에\x20다시\x20시도하세요','설정\x20매개변수:','MCP\x20클라이언트\x20설정에\x20다음\x20구성을\x20추가하세요:','아래\x20JSON\x20설정\x20복사','몇\x20초\x20만에\x20API\x20키\x20발급받기','네트워크\x20연결\x20오류.\x20인터넷\x20연결을\x20확인하세요','38354MpTLwr','API\x20키란\x20무엇인가요?','MCP\x20연결됨','설정\x20단계:','연결됨','API\x20키는\x20로컬\x20스토리지에\x20안전하게\x20저장됩니다','Bearer\x20접두사가\x20있는\x20API\x20키.','API\x20키는\x20필수입니다','13614080syUtJk','세션\x20ID가\x20현재\x20사용\x20중입니다.\x20나중에\x20다시\x20시도하세요','고유\x20세션\x20식별자입니다.\x20여러\x20Univer\x20인스턴스가\x20열려\x20있는\x20경우,\x20연결\x20충돌을\x20방지하기\x20위해\x20각\x20인스턴스는\x20서로\x20다른\x20session_id를\x20사용해야\x20합니다.','최대\x20재시도\x20횟수','MCP:\x20세션\x20ID\x20사용\x20중','MCP:\x20최대\x20재시도\x20횟수\x20초과','연결\x20끊김','연결\x20실패','1233680jXXyMO','MCP\x20클라이언트\x20설정\x20파일에\x20구성\x20추가','MCP\x20연결\x20끊김','AI를\x20사용하여\x20스프레드시트를\x20조작하도록\x20MCP\x20설정','API\x20키'];_0x1b7f=function(){return _0xefd57e;};return _0x1b7f();}const e={'mcpStatus':{'disconnected':_0x2268ca(0x97),'connecting':_0x2268ca(0xa3),'connected':_0x2268ca(0x87),'failed':_0x2268ca(0xa6),'retrying':_0x2268ca(0x7b),'unknown':_0x2268ca(0xa2),'unauthorized':_0x2268ca(0x74),'sessionOccupied':_0x2268ca(0x91),'networkError':_0x2268ca(0xa4),'maxRetriesExceeded':_0x2268ca(0x92),'clickToConnect':_0x2268ca(0xa7),'clickToConfigure':_0x2268ca(0x72)},'mcpConfig':{'title':'MCP\x20설정','description':_0x2268ca(0x98),'apiKey':_0x2268ca(0x99),'apiKeyPlaceholder':'API\x20키를\x20입력하세요','apiKeyHint':_0x2268ca(0x9c),'enableAuth':_0x2268ca(0x73),'enableAuthHint':'보안\x20연결을\x20위해\x20인증\x20활성화','connectionInfo':_0x2268ca(0x78),'mcpClientConfig':'MCP\x20클라이언트\x20설정','configInstructions':_0x2268ca(0x81),'configStepTitle':_0x2268ca(0x88),'configStep1':_0x2268ca(0x82),'configStep2':_0x2268ca(0x96),'configStep3':_0x2268ca(0x9e),'sessionId':_0x2268ca(0x77),'sessionIdDescription':_0x2268ca(0x8f),'authorizationDescription':_0x2268ca(0x8b),'configParameters':_0x2268ca(0x80),'maxRetries':_0x2268ca(0x90),'save':_0x2268ca(0x71),'saving':'저장\x20중...','note1':_0x2268ca(0x76),'note2':_0x2268ca(0x8a),'configSaved':_0x2268ca(0x7d),'configError':_0x2268ca(0x79),'apiApplyInfo':{'title':_0x2268ca(0x86),'description':_0x2268ca(0x9a),'univerAiLabel':_0x2268ca(0x7c),'getStarted':_0x2268ca(0x83)},'validation':{'apiKeyRequired':_0x2268ca(0x8c),'apiKeyTooShort':_0x2268ca(0x6f),'invalidConfig':_0x2268ca(0x7e),'invalidApiKey':_0x2268ca(0x9b)},'connectionStatus':{'disconnected':_0x2268ca(0x93),'connecting':_0x2268ca(0x75),'connected':_0x2268ca(0x89),'failed':_0x2268ca(0x94),'retrying':_0x2268ca(0x7a)},'connectionError':{'unauthorized':'인증\x20실패.\x20API\x20키를\x20확인하세요','sessionOccupied':_0x2268ca(0x8e),'networkError':_0x2268ca(0x84),'maxRetriesExceeded':_0x2268ca(0x7f)}}};module[_0x2268ca(0xa5)]=e;
|
package/lib/cjs/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x532d37,_0x3c6119){const _0x3c19c0=_0xedc1,_0xa08810=_0x532d37();while(!![]){try{const _0x3ee2dc=parseInt(_0x3c19c0(0x131))/0x1+parseInt(_0x3c19c0(0x12d))/0x2+parseInt(_0x3c19c0(0x134))/0x3*(parseInt(_0x3c19c0(0x135))/0x4)+parseInt(_0x3c19c0(0x12e))/0x5*(parseInt(_0x3c19c0(0x132))/0x6)+-parseInt(_0x3c19c0(0x12f))/0x7*(-parseInt(_0x3c19c0(0x12c))/0x8)+parseInt(_0x3c19c0(0x136))/0x9*(parseInt(_0x3c19c0(0x130))/0xa)+-parseInt(_0x3c19c0(0x133))/0xb;if(_0x3ee2dc===_0x3c6119)break;else _0xa08810['push'](_0xa08810['shift']());}catch(_0xa40907){_0xa08810['push'](_0xa08810['shift']());}}}(_0x5a9a,0xe817b));function _0xedc1(_0x530493,_0x4fa3cd){_0x530493=_0x530493-0x12c;const _0x5a9aad=_0x5a9a();let _0xedc18=_0x5a9aad[_0x530493];return _0xedc18;}const e=require('./en-US.js');module['exports']=e;function _0x5a9a(){const _0x152c71=['906bJwTlS','53820382IaiTul','13557aiNKes','300uhXshp','456957futnja','88wuJYCp','3194958FiAjbz','13600vdfmsE','939547aITPss','320hjLrbl','395122CvZvrm'];_0x5a9a=function(){return _0x152c71;};return _0x5a9a();}
|
package/lib/cjs/locale/sk-SK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x1b644e=_0x3e5c;function _0x5c83(){const _0x553e98=['Pridajte\x20konfiguráciu\x20do\x20súboru\x20nastavení\x20klienta\x20MCP','Pripojenie\x20zlyhalo','API\x20kľúč\x20s\x20prefixom\x20Bearer.','Nepodarilo\x20sa\x20uložiť\x20konfiguráciu','Povoliť\x20overenie','Parametre\x20konfigurácie:','Neplatná\x20konfigurácia','Povoliť\x20overenie\x20pre\x20bezpečné\x20pripojenia','24900930lfQQjj','Univer\x20AI\x20konzola','2784764FAQgsG','API\x20kľúč','Jedinečný\x20identifikátor\x20relácie.\x20Ak\x20máte\x20otvorených\x20viac\x20inštancií\x20Univer,\x20každá\x20inštancia\x20musí\x20používať\x20iné\x20session_id,\x20aby\x20sa\x20predišlo\x20konfliktom\x20pripojenia.','Overenie\x20zlyhalo,\x20skontrolujte\x20svoj\x20API\x20kľúč','2888016QNGkRM','69564xyhfqT','Čo\x20je\x20API\x20kľúč?','MCP\x20pripojené','Uložiť\x20konfiguráciu','Skopírujte\x20nižšie\x20uvedenú\x20konfiguráciu\x20JSON','2247XsXbLv','MCP\x20odpojené','Konfigurácia\x20bola\x20úspešne\x20uložená','1290084reYPqA','Pridajte\x20nasledujúcu\x20konfiguráciu\x20do\x20nastavení\x20klienta\x20MCP:','MCP:\x20ID\x20relácie\x20je\x20obsadené','MCP:\x20Neautorizované','Konfigurácia\x20klienta\x20MCP','16792kQmvoZ','Kroky\x20konfigurácie:','ID\x20relácie','API\x20kľúč\x20je\x20povinný','MCP:\x20Sieťová\x20chyba','Získajte\x20svoj\x20API\x20kľúč\x20za\x20pár\x20sekúnd','Chyba\x20sieťového\x20pripojenia.\x20Skontrolujte\x20svoje\x20internetové\x20pripojenie','5812515BgIyjB','ID\x20relácie\x20je\x20momentálne\x20obsadené,\x20skúste\x20neskôr','MCP\x20sa\x20pripája...','Kliknite\x20na\x20pripojenie\x20MCP','MCP:\x20Prekročený\x20počet\x20pokusov','Váš\x20API\x20kľúč\x20sa\x20uloží\x20lokálne\x20v\x20tomto\x20prehliadači','MCP\x20opakuje\x20pokus...','Kliknite\x20na\x20konfiguráciu\x20MCP','Zmeny\x20konfigurácie\x20sa\x20prejavia\x20okamžite','Skúša\x20sa\x20znova...','API\x20kľúč\x20vás\x20pripojí\x20k\x20serveru\x20Univer\x20MCP\x20a\x20umožní\x20používať\x20AI\x20pri\x20práci\x20s\x20tabuľkami.\x20Získajte\x20svoj\x20API\x20kľúč\x20v\x20našej\x20konzole.','API\x20kľúč\x20musí\x20mať\x20aspoň\x2010\x20znakov','24YbVKOo','Nakonfigurujte\x20MCP\x20na\x20používanie\x20AI\x20pri\x20práci\x20s\x20tabuľkami','Konfigurácia\x20MCP'];_0x5c83=function(){return _0x553e98;};return _0x5c83();}function _0x3e5c(_0x2b2aba,_0x56fa3c){_0x2b2aba=_0x2b2aba-0x1a6;const _0x5c8332=_0x5c83();let _0x3e5c4c=_0x5c8332[_0x2b2aba];return _0x3e5c4c;}(function(_0x36b93e,_0x29709a){const _0x11a20e=_0x3e5c,_0x35e314=_0x36b93e();while(!![]){try{const _0x5d7327=parseInt(_0x11a20e(0x1ba))/0x1+parseInt(_0x11a20e(0x1ad))/0x2+parseInt(_0x11a20e(0x1b2))/0x3*(-parseInt(_0x11a20e(0x1d2))/0x4)+parseInt(_0x11a20e(0x1c6))/0x5+parseInt(_0x11a20e(0x1b1))/0x6+-parseInt(_0x11a20e(0x1b7))/0x7*(parseInt(_0x11a20e(0x1bf))/0x8)+-parseInt(_0x11a20e(0x1ab))/0x9;if(_0x5d7327===_0x29709a)break;else _0x35e314['push'](_0x35e314['shift']());}catch(_0x50a942){_0x35e314['push'](_0x35e314['shift']());}}}(_0x5c83,0xb6484));const e={'mcpStatus':{'disconnected':_0x1b644e(0x1b8),'connecting':_0x1b644e(0x1c8),'connected':_0x1b644e(0x1b4),'failed':'Pripojenie\x20MCP\x20zlyhalo','retrying':_0x1b644e(0x1cc),'unknown':'MCP\x20neznámy\x20stav','unauthorized':_0x1b644e(0x1bd),'sessionOccupied':_0x1b644e(0x1bc),'networkError':_0x1b644e(0x1c3),'maxRetriesExceeded':_0x1b644e(0x1ca),'clickToConnect':_0x1b644e(0x1c9),'clickToConfigure':_0x1b644e(0x1cd)},'mcpConfig':{'title':_0x1b644e(0x1d4),'description':_0x1b644e(0x1d3),'apiKey':_0x1b644e(0x1ae),'apiKeyPlaceholder':'Zadajte\x20svoj\x20API\x20kľúč','apiKeyHint':_0x1b644e(0x1cb),'enableAuth':_0x1b644e(0x1a7),'enableAuthHint':_0x1b644e(0x1aa),'connectionInfo':_0x1b644e(0x1be),'mcpClientConfig':_0x1b644e(0x1be),'configInstructions':_0x1b644e(0x1bb),'configStepTitle':_0x1b644e(0x1c0),'configStep1':_0x1b644e(0x1b6),'configStep2':_0x1b644e(0x1d5),'configStep3':'Reštartujte\x20klienta\x20MCP,\x20aby\x20sa\x20konfigurácia\x20použila','sessionId':_0x1b644e(0x1c1),'sessionIdDescription':_0x1b644e(0x1af),'authorizationDescription':_0x1b644e(0x1d7),'configParameters':_0x1b644e(0x1a8),'maxRetries':'Maximálny\x20počet\x20pokusov','save':_0x1b644e(0x1b5),'saving':'Ukladá\x20sa...','note1':_0x1b644e(0x1ce),'note2':'Váš\x20API\x20kľúč\x20je\x20bezpečne\x20uložený\x20v\x20lokálnom\x20úložisku','configSaved':_0x1b644e(0x1b9),'configError':_0x1b644e(0x1a6),'apiApplyInfo':{'title':_0x1b644e(0x1b3),'description':_0x1b644e(0x1d0),'univerAiLabel':_0x1b644e(0x1ac),'getStarted':_0x1b644e(0x1c4)},'validation':{'apiKeyRequired':_0x1b644e(0x1c2),'apiKeyTooShort':_0x1b644e(0x1d1),'invalidConfig':_0x1b644e(0x1a9),'invalidApiKey':'Neplatný\x20API\x20kľúč,\x20skontrolujte,\x20či\x20je\x20správny'},'connectionStatus':{'disconnected':'Odpojené','connecting':'Pripája\x20sa...','connected':'Pripojené','failed':_0x1b644e(0x1d6),'retrying':_0x1b644e(0x1cf)},'connectionError':{'unauthorized':_0x1b644e(0x1b0),'sessionOccupied':_0x1b644e(0x1c7),'networkError':_0x1b644e(0x1c5),'maxRetriesExceeded':'Maximálny\x20počet\x20pokusov\x20bol\x20prekročený.\x20Skúste\x20neskôr'}}};module['exports']=e;
|