@univerjs-pro/mcp-ui 1.0.0-alpha.0 → 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/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 +7 -7
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0xfb996e=_0x5d68;(function(_0x17ba92,_0x27a8d5){const _0x1abdf9=_0x5d68,_0x6a796a=_0x17ba92();while(!![]){try{const _0x48b653=-parseInt(_0x1abdf9(0x12b))/0x1*(parseInt(_0x1abdf9(0xdf))/0x2)+parseInt(_0x1abdf9(0x14d))/0x3+parseInt(_0x1abdf9(0x12c))/0x4+-parseInt(_0x1abdf9(0x151))/0x5*(parseInt(_0x1abdf9(0x147))/0x6)+parseInt(_0x1abdf9(0xe4))/0x7*(-parseInt(_0x1abdf9(0x11e))/0x8)+-parseInt(_0x1abdf9(0xec))/0x9*(parseInt(_0x1abdf9(0x166))/0xa)+parseInt(_0x1abdf9(0x1b6))/0xb*(parseInt(_0x1abdf9(0x119))/0xc);if(_0x48b653===_0x27a8d5)break;else _0x6a796a['push'](_0x6a796a['shift']());}catch(_0xe0f589){_0x6a796a['push'](_0x6a796a['shift']());}}}(_0x1e3f,0x6b8b1));import _0x331a29 from'./locale/en-US.js';import _0x1d1e9c from'./locale/zh-CN.js';import{CommandType as _0x315ca4,DependentOn as _0xe38ea0,Disposable as _0x6a89c1,ICommandService as _0x30bcd1,IConfigService as _0xcae5bb,ILocalStorageService as _0x5b47d9,ILogService as _0x54826a,Inject as _0x59ad70,Injector as _0x37b342,LocaleService as _0x2214f6,Plugin as _0x5417cd,merge as _0x195429}from'@univerjs/core';import{MCPConnectionController as _0x4f5f2a,MCPConnectionError as _0xb4d197,MCPConnectionStatus as _0x476fe9,MCP_PLUGIN_CONFIG_KEY as _0x1ee857,UniverMCPPlugin as _0x2629f3}from'@univerjs-pro/mcp';import{Button as _0x1c7b06,Input as _0x6c4022,MessageType as _0x1aeee4,Tooltip as _0x3eb85a,clsx as _0x25d26d}from'@univerjs/design';import{BuiltInUIPart as _0xadbc61,ComponentManager as _0x2b04e5,IDialogService as _0x424255,IMenuManagerService as _0x52a5ea,IMessageService as _0x412477,IUIPartsService as _0x2785c0,MenuItemType as _0x58cdca,RibbonStartGroup as _0x26ee93,connectInjector as _0xaa714c,useDependency as _0x139827,useObservable as _0x99f738}from'@univerjs/ui';import{BehaviorSubject as _0xea1916}from'rxjs';import{CheckMarkIcon as _0x446a15,CloseIcon as _0x13e633,HelpIcon as _0x2284db,OffLineIcon as _0x314932,OnLineIcon as _0x1a0756}from'@univerjs/icons';import{useCallback as _0x5be9f2,useState as _0x2f44ff}from'react';import{jsx as _0x2dd2fc,jsxs as _0x1d64b9}from'react/jsx-runtime';import{ISocketService as _0x4e5159,WebSocketService as _0x1c3c2c}from'@univerjs/network';function R(_0x5b3e3d){const _0x366674=_0x5d68;var _0x39c577,_0x2659c8;let {mcpCoreConfig:_0xfeb426,onSave:_0xf0edda,loading:_0x4bc1f0=!0x1,config:_0x5dc5ce,connectionStatus$:_0x20a117,connectionError$:_0x377f69,currentApiKey$:_0x11b57f,currentSessionId$:_0x4bf8a1}=_0x5b3e3d,_0x59ddeb=_0x139827(_0x2214f6),_0xd39952=_0x99f738(_0x20a117,_0x476fe9[_0x366674(0x168)]),_0x45e87e=_0x99f738(_0x377f69,_0xb4d197[_0x366674(0x14c)]),_0x409abb=_0x99f738(_0x4bf8a1,''),[_0x2969cd,_0x1e6553]=_0x2f44ff(_0x99f738(_0x11b57f,'')||''),_0x1fbc2b=_0x5dc5ce[_0x366674(0x1a6)]&&_0xfeb426[_0x366674(0x179)]&&(_0xfeb426[_0x366674(0x179)]['includes'](_0x366674(0xe9))||_0xfeb426[_0x366674(0x179)][_0x366674(0x159)]('univer.ai')),_0x230e5d=(_0x39c577=_0xfeb426[_0x366674(0x179)])==null?void 0x0:_0x39c577[_0x366674(0x159)]('univer.plus'),_0x28c3bb=(_0x2659c8=_0xfeb426['mcpServerUrl'])==null?void 0x0:_0x2659c8[_0x366674(0x159)](_0x366674(0x195)),_0x249bad=_0x230e5d?_0x366674(0x1bb):'https://console.univer.ai',_0x5bbf40=_0x5dc5ce['showDeveloperTools']&&(_0x230e5d||_0x28c3bb),[_0x34a4bc,_0xea4a2e]=_0x2f44ff(!_0x2969cd[_0x366674(0x1ba)]()),_0x2730b3=(_0x3e9423,_0x467823)=>{const _0x414656=_0x366674;if(_0x467823===_0xb4d197[_0x414656(0xe0)])return _0x414656(0x105);switch(_0x3e9423){case _0x476fe9[_0x414656(0x120)]:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case _0x476fe9['CONNECTING']:case _0x476fe9['RETRYING']:return _0x414656(0x18a);case _0x476fe9[_0x414656(0x11c)]:return _0x414656(0x105);default:return _0x414656(0x1a4);}},_0x273e46=(_0x14d667,_0x51a495)=>{const _0x1822d3=_0x366674;if(_0x51a495===_0xb4d197['UNAUTHORIZED'])return'univer-bg-red-500';switch(_0x14d667){case _0x476fe9[_0x1822d3(0x120)]:return _0x1822d3(0x164);case _0x476fe9['CONNECTING']:case _0x476fe9[_0x1822d3(0x1b4)]:return _0x1822d3(0x1a0);case _0x476fe9[_0x1822d3(0x11c)]:return _0x1822d3(0x111);default:return _0x1822d3(0x100);}},_0x577840=_0x5e052d=>{const _0x438979=_0x366674;switch(_0x5e052d){case _0x476fe9[_0x438979(0x120)]:return _0x59ddeb['t'](_0x438979(0x17d));case _0x476fe9['CONNECTING']:return _0x59ddeb['t'](_0x438979(0xf9));case _0x476fe9[_0x438979(0x11c)]:return _0x59ddeb['t']('mcpConfig.connectionStatus.failed');case _0x476fe9[_0x438979(0x1b4)]:return _0x59ddeb['t'](_0x438979(0x11f));default:return _0x59ddeb['t'](_0x438979(0x17b));}},_0x40fa62=_0x23b546=>{const _0x532db3=_0x366674;switch(_0x23b546){case _0xb4d197[_0x532db3(0xe0)]:return _0x59ddeb['t'](_0x532db3(0x137));case _0xb4d197['SESSION_ID_OCCUPIED']:return _0x59ddeb['t'](_0x532db3(0x1aa));case _0xb4d197['NETWORK_ERROR']:return _0x59ddeb['t'](_0x532db3(0x18e));case _0xb4d197[_0x532db3(0xd8)]:return _0x59ddeb['t'](_0x532db3(0x133));default:return'';}},_0x50636c=_0x5be9f2(()=>{const _0x1728bf=_0x366674;_0xf0edda({..._0xfeb426,'apiKey':_0x2969cd[_0x1728bf(0x1ba)](),'enableAuth':!0x0});},[_0xfeb426,_0x2969cd,!0x0,_0xf0edda]),_0x204809=_0x2969cd[_0x366674(0x1ba)]()[_0x366674(0x10e)]>0x0;return _0x1d64b9(_0x366674(0x13d),{'className':_0x366674(0x112),'children':[_0x2dd2fc(_0x366674(0x13d),{'className':_0x366674(0x10a),'children':_0x1d64b9('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[_0x2dd2fc(_0x366674(0x13d),{'className':_0x366674(0xfa),'children':_0x2dd2fc('span',{'className':'univer-text-white','children':'⚙'})}),_0x2dd2fc('div',{'children':_0x2dd2fc('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x59ddeb['t']('mcpConfig.description')})})]})}),_0x1d64b9(_0x366674(0x13d),{'className':_0x366674(0x116),'children':[_0x2dd2fc(_0x366674(0x13d),{'className':_0x25d26d('univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2',_0x2730b3(_0xd39952,_0x45e87e)),'children':_0x1d64b9('div',{'className':_0x366674(0xea),'children':[_0x2dd2fc('div',{'className':_0x25d26d(_0x366674(0x16d),_0x273e46(_0xd39952,_0x45e87e))}),_0x2dd2fc(_0x366674(0x12d),{'className':'univer-text-sm\x20univer-font-medium','children':_0x577840(_0xd39952)})]})}),_0x45e87e!==_0xb4d197[_0x366674(0x14c)]&&(_0xd39952===_0x476fe9['FAILED']||_0x45e87e===_0xb4d197[_0x366674(0xe0)])&&_0x2dd2fc('div',{'className':_0x366674(0x18c),'children':_0x1d64b9(_0x366674(0x13d),{'className':_0x366674(0x160),'children':[_0x2dd2fc('span',{'className':_0x366674(0xde),'children':'⚠️'}),_0x2dd2fc('p',{'className':_0x366674(0x125),'children':_0x40fa62(_0x45e87e)})]})})]}),_0x2dd2fc(_0x366674(0x13d),{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':_0x1d64b9(_0x366674(0x13d),{'className':'univer-space-y-5','children':[_0x1d64b9(_0x366674(0x13d),{'className':_0x366674(0x17e),'children':[_0x1d64b9(_0x366674(0xf4),{'className':_0x366674(0x162),'children':[_0x2dd2fc(_0x366674(0x12d),{'children':'🔑'}),'\x20',_0x59ddeb['t']('mcpConfig.apiKey'),_0x2dd2fc(_0x366674(0x12d),{'className':_0x366674(0x15d),'children':'*'}),_0x1fbc2b&&_0x2dd2fc('a',{'className':_0x366674(0xd9),'title':_0x59ddeb['t'](_0x366674(0x10b)),'role':_0x366674(0x18f),'onClick':()=>_0xea4a2e(!0x0),'children':_0x2dd2fc(_0x2284db,{})})]}),_0x2dd2fc(_0x6c4022,{'type':_0x366674(0x149),'placeholder':_0x59ddeb['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x2969cd,'disabled':_0x4bc1f0,'autoComplete':_0x366674(0xdd),'onChange':_0x1e6553}),_0x2dd2fc('p',{'className':_0x366674(0x13b),'children':_0x59ddeb['t'](_0x366674(0x188))})]}),_0x1fbc2b&&_0x34a4bc&&_0x1d64b9('div',{'className':_0x366674(0x130),'children':[_0x2dd2fc('a',{'className':_0x366674(0x134),'role':'button','onClick':()=>_0xea4a2e(!0x1),'children':_0x2dd2fc(_0x13e633,{'className':_0x366674(0x142)})}),_0x1d64b9(_0x366674(0x13d),{'className':_0x366674(0x11d),'children':[_0x2dd2fc(_0x366674(0x13d),{'className':_0x366674(0xd6),'children':_0x2dd2fc(_0x366674(0x12d),{'className':_0x366674(0x174),'children':'🚀'})}),_0x1d64b9(_0x366674(0x13d),{'className':_0x366674(0x19a),'children':[_0x2dd2fc('h4',{'className':_0x366674(0x101),'children':_0x59ddeb['t'](_0x366674(0x10b))}),_0x2dd2fc('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x59ddeb['t'](_0x366674(0xe3))}),_0x2dd2fc(_0x366674(0x13d),{'className':_0x366674(0x185),'children':_0x5bbf40&&_0x1d64b9('a',{'className':_0x366674(0x154),'href':_0x249bad,'target':'_blank','rel':_0x366674(0xed),'children':[_0x2dd2fc(_0x366674(0x12d),{'children':'🤖'}),_0x59ddeb['t']('mcpConfig.apiApplyInfo.univerAiLabel'),_0x2dd2fc('span',{'className':_0x366674(0x102),'children':'↗'})]})}),_0x1d64b9(_0x366674(0x13d),{'className':_0x366674(0x14a),'children':['✨','\x20',_0x59ddeb['t'](_0x366674(0x104))]})]})]})]}),_0x5dc5ce[_0x366674(0x1a6)]&&_0x1d64b9(_0x366674(0x13d),{'className':_0x366674(0xe5),'children':[_0x1d64b9('h4',{'className':_0x366674(0x1a2),'children':[_0x2dd2fc(_0x366674(0x12d),{'children':'🔗'}),'\x20',_0x59ddeb['t'](_0x366674(0x192))]}),_0x1d64b9(_0x366674(0x13d),{'className':_0x366674(0x1b0),'children':[_0x1d64b9('div',{'className':'univer-space-y-3','children':[_0x2dd2fc('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x59ddeb['t'](_0x366674(0x12f))}),_0x1d64b9('div',{'className':_0x366674(0x17e),'children':[_0x2dd2fc(_0x366674(0x13d),{'className':_0x366674(0x183),'children':_0x59ddeb['t'](_0x366674(0x176))}),_0x1d64b9(_0x366674(0x13d),{'className':_0x366674(0xf6),'children':[_0x1d64b9(_0x366674(0x13d),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x2dd2fc(_0x366674(0x12d),{'className':_0x366674(0x15c),'children':'1'}),_0x59ddeb['t'](_0x366674(0x113))]}),_0x1d64b9(_0x366674(0x13d),{'className':_0x366674(0xea),'children':[_0x2dd2fc(_0x366674(0x12d),{'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'}),_0x59ddeb['t']('mcpConfig.configStep2')]}),_0x1d64b9(_0x366674(0x13d),{'className':_0x366674(0xea),'children':[_0x2dd2fc('span',{'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'}),_0x59ddeb['t'](_0x366674(0x16a))]})]})]})]}),_0x1d64b9(_0x366674(0x13d),{'className':_0x366674(0x17e),'children':[_0x2dd2fc(_0x366674(0x13d),{'className':_0x366674(0x183),'children':_0x366674(0x141)}),_0x2dd2fc(_0x366674(0x13d),{'className':_0x366674(0x10c),'children':_0x2dd2fc(_0x366674(0x122),{'className':_0x366674(0x131),'children':JSON[_0x366674(0x146)]({'mcpServers':{'univer':{'url':_0x366674(0x13a)+(_0x409abb||_0x366674(0x156)),'type':_0x366674(0x17a),'headers':{'Authorization':_0x366674(0x145)+(_0x2969cd||_0x366674(0x1b8))}}}},null,0x2)})})]}),_0x1d64b9(_0x366674(0x13d),{'className':_0x366674(0x198),'children':[_0x2dd2fc(_0x366674(0x13d),{'className':_0x366674(0x183),'children':_0x59ddeb['t'](_0x366674(0x117))}),_0x1d64b9('div',{'className':_0x366674(0x17e),'children':[_0x1d64b9(_0x366674(0x13d),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x2dd2fc(_0x366674(0x13d),{'className':_0x366674(0x190)}),_0x1d64b9(_0x366674(0x13d),{'className':_0x366674(0x194),'children':[_0x2dd2fc(_0x366674(0x13d),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':'univer_session_id:'}),_0x2dd2fc(_0x366674(0x13d),{'className':_0x366674(0x13b),'children':_0x59ddeb['t']('mcpConfig.sessionIdDescription')})]})]}),_0x1d64b9(_0x366674(0x13d),{'className':_0x366674(0x196),'children':[_0x2dd2fc(_0x366674(0x13d),{'className':_0x366674(0x190)}),_0x1d64b9('div',{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x2dd2fc(_0x366674(0x13d),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x366674(0x10d)}),_0x2dd2fc(_0x366674(0x13d),{'className':_0x366674(0x13b),'children':_0x59ddeb['t'](_0x366674(0x14f))})]})]})]})]})]})]}),_0x2dd2fc(_0x1c7b06,{'onClick':_0x50636c,'disabled':!_0x204809||_0x4bc1f0,'className':_0x366674(0xfb),'children':_0x4bc1f0?_0x1d64b9(_0x366674(0x12d),{'className':_0x366674(0xea),'children':[_0x2dd2fc(_0x366674(0x12d),{'children':'⟲'}),_0x59ddeb['t'](_0x366674(0x173))]}):_0x1d64b9('span',{'className':_0x366674(0xea),'children':[_0x2dd2fc(_0x446a15,{}),_0x59ddeb['t'](_0x366674(0x132))]})}),_0x2dd2fc(_0x366674(0x13d),{'className':_0x366674(0x14e),'children':_0x1d64b9(_0x366674(0x13d),{'className':_0x366674(0x1a3),'children':[_0x2dd2fc(_0x366674(0x12d),{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),_0x1d64b9('div',{'className':_0x366674(0x11a),'children':[_0x2dd2fc(_0x366674(0x13d),{'className':_0x366674(0x180),'children':_0x366674(0xef)}),_0x1d64b9(_0x366674(0x13d),{'children':['•',_0x59ddeb['t'](_0x366674(0x1a9))]}),_0x1d64b9(_0x366674(0x13d),{'children':['•',_0x59ddeb['t']('mcpConfig.note2')]})]})]})})]})})]});}const z=_0xfb996e(0x191),B={'showDeveloperTools':!0x1,'showStatus':!0x0};function V(_0x10fe18){'@babel/helpers - typeof';const _0x61e2ea=_0xfb996e;return V=typeof Symbol==_0x61e2ea(0x1b9)&&typeof Symbol[_0x61e2ea(0x199)]=='symbol'?function(_0xbd24ce){return typeof _0xbd24ce;}:function(_0xd0346a){const _0x18f336=_0x61e2ea;return _0xd0346a&&typeof Symbol==_0x18f336(0x1b9)&&_0xd0346a['constructor']===Symbol&&_0xd0346a!==Symbol[_0x18f336(0x129)]?_0x18f336(0xf7):typeof _0xd0346a;},V(_0x10fe18);}function le(_0x136cd7,_0x49fe9d){const _0x38d66b=_0xfb996e;if(V(_0x136cd7)!=_0x38d66b(0x19d)||!_0x136cd7)return _0x136cd7;var _0x14514f=_0x136cd7[Symbol[_0x38d66b(0x1ad)]];if(_0x14514f!==void 0x0){var _0x82c877=_0x14514f[_0x38d66b(0x16e)](_0x136cd7,_0x49fe9d||_0x38d66b(0x1ae));if(V(_0x82c877)!=_0x38d66b(0x19d))return _0x82c877;throw TypeError(_0x38d66b(0x124));}return(_0x49fe9d===_0x38d66b(0x12e)?String:Number)(_0x136cd7);}function ue(_0x1f2c5d){const _0x3237e0=_0xfb996e;var _0x34e4b0=le(_0x1f2c5d,_0x3237e0(0x12e));return V(_0x34e4b0)=='symbol'?_0x34e4b0:_0x34e4b0+'';}function H(_0x29d3b2,_0x2ed627,_0x2437b3){const _0x5af7fa=_0xfb996e;return(_0x2ed627=ue(_0x2ed627))in _0x29d3b2?Object[_0x5af7fa(0xfd)](_0x29d3b2,_0x2ed627,{'value':_0x2437b3,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x29d3b2[_0x2ed627]=_0x2437b3,_0x29d3b2;}function U(_0x433d07,_0x23c76a){return function(_0x1825c6,_0x1816e4){_0x23c76a(_0x1825c6,_0x1816e4,_0x433d07);};}function W(_0x3f84e7,_0x508b19,_0x3ae4ad,_0x3c18f0){const _0x41db62=_0xfb996e;var _0x5cb6a3=arguments[_0x41db62(0x10e)],_0x2de287=_0x5cb6a3<0x3?_0x508b19:_0x3c18f0===null?_0x3c18f0=Object['getOwnPropertyDescriptor'](_0x508b19,_0x3ae4ad):_0x3c18f0,_0x4b4581;if(typeof Reflect==_0x41db62(0x19d)&&typeof Reflect[_0x41db62(0x115)]==_0x41db62(0x1b9))_0x2de287=Reflect[_0x41db62(0x115)](_0x3f84e7,_0x508b19,_0x3ae4ad,_0x3c18f0);else{for(var _0x45b2fc=_0x3f84e7['length']-0x1;_0x45b2fc>=0x0;_0x45b2fc--)(_0x4b4581=_0x3f84e7[_0x45b2fc])&&(_0x2de287=(_0x5cb6a3<0x3?_0x4b4581(_0x2de287):_0x5cb6a3>0x3?_0x4b4581(_0x508b19,_0x3ae4ad,_0x2de287):_0x4b4581(_0x508b19,_0x3ae4ad))||_0x2de287);}return _0x5cb6a3>0x3&&_0x2de287&&Object[_0x41db62(0xfd)](_0x508b19,_0x3ae4ad,_0x2de287),_0x2de287;}const G=_0xfb996e(0x157),K=_0xfb996e(0x184);let q=class extends _0x6a89c1{constructor(_0xda7d06,_0x55456d,_0x55104d,_0x29c2ca,_0x454412,_0x499f94,_0x43774d,_0x23e926,_0x44c727,_0x10787e){const _0x193a98=_0xfb996e;super(),this[_0x193a98(0xf3)]=_0xda7d06,this[_0x193a98(0x171)]=_0x55456d,this[_0x193a98(0xf8)]=_0x55104d,this[_0x193a98(0x15e)]=_0x29c2ca,this[_0x193a98(0x16c)]=_0x454412,this[_0x193a98(0x1b2)]=_0x499f94,this['_componentManager']=_0x43774d,this[_0x193a98(0x14b)]=_0x23e926,this[_0x193a98(0x170)]=_0x44c727,this[_0x193a98(0x13e)]=_0x10787e,H(this,_0x193a98(0xf0),new _0xea1916(!0x1)),H(this,_0x193a98(0x139),new _0xea1916({})),H(this,'_config$',new _0xea1916({})),H(this,_0x193a98(0x175),new _0xea1916('')),H(this,'_handleConfigSave',async _0x8cf801=>{const _0x365cf3=_0x193a98;this['_loading$'][_0x365cf3(0x123)](!0x0);try{var _0x2b57db,_0x15baa1;let _0x5ea83c=await this[_0x365cf3(0x13f)](_0x8cf801);if(!_0x5ea83c[_0x365cf3(0xff)]){this[_0x365cf3(0x1b2)]['show']({'type':_0x1aeee4['Error'],'content':_0x5ea83c['errorMessage']||this['_localeService']['t']('mcpConfig.validation.invalidConfig')});return;}_0x8cf801[_0x365cf3(0x165)]?await this[_0x365cf3(0x15e)][_0x365cf3(0x172)](G,_0x8cf801[_0x365cf3(0x165)][_0x365cf3(0x1ba)]()):await this[_0x365cf3(0x15e)][_0x365cf3(0xf1)](G),this[_0x365cf3(0x175)][_0x365cf3(0x123)](((_0x2b57db=_0x8cf801['apiKey'])==null?void 0x0:_0x2b57db[_0x365cf3(0x1ba)]())||''),this[_0x365cf3(0x13e)][_0x365cf3(0xe2)]({'Authorization':_0x365cf3(0x145)+((_0x15baa1=_0x8cf801[_0x365cf3(0x165)])==null?void 0x0:_0x15baa1[_0x365cf3(0x1ba)]())}),this[_0x365cf3(0x1b2)][_0x365cf3(0x103)]({'type':_0x1aeee4[_0x365cf3(0x178)],'content':this[_0x365cf3(0x14b)]['t'](_0x365cf3(0x1ac))}),setTimeout(()=>{const _0x4ca09d=_0x365cf3;this['_dialogService'][_0x4ca09d(0x17c)](K);},0x320);}catch(_0x23c4b7){this[_0x365cf3(0x170)]['error'](_0x365cf3(0x10f),_0x23c4b7),this[_0x365cf3(0x1b2)][_0x365cf3(0x103)]({'type':_0x1aeee4[_0x365cf3(0x150)],'content':this[_0x365cf3(0x14b)]['t'](_0x365cf3(0xd7))});}finally{this[_0x365cf3(0xf0)]['next'](!0x1);}}),this['_initConfigSync'](),this[_0x193a98(0x15f)](),this['_registerComponent']();}[_0xfb996e(0x15a)](){const _0x4ce4ae=_0xfb996e;let _0x52aba0=this[_0x4ce4ae(0xf8)][_0x4ce4ae(0x118)](z);_0x52aba0!=null&&_0x52aba0['showDeveloperTools']&&this[_0x4ce4ae(0x16c)][_0x4ce4ae(0x1ab)]({'id':K,'title':{'title':this['_localeService']['t']('mcpConfig.title')},'children':{'label':_0x4ce4ae(0x128)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x186eaa=_0x4ce4ae;this[_0x186eaa(0x16c)]['close'](K);}});}[_0xfb996e(0x19e)](){const _0x5ba20b=_0xfb996e;return this[_0x5ba20b(0x139)]['value'];}[_0xfb996e(0x107)](){const _0x1bfa1d=_0xfb996e;this['disposeWithMe'](this[_0x1bfa1d(0xf5)][_0x1bfa1d(0x15b)](_0x1bfa1d(0x128),this[_0x1bfa1d(0xe8)]()));}['_createConfigPanelComponent'](){return _0xaa714c(()=>{const _0x4e3b89=_0x5d68;var _0x102599,_0x5649ee,_0x180e05;return _0x2dd2fc(R,{'config':this[_0x4e3b89(0x169)]['value'],'mcpCoreConfig':this[_0x4e3b89(0x139)][_0x4e3b89(0x108)],'currentApiKey$':this[_0x4e3b89(0x175)],'onSave':this['_handleConfigSave'],'loading':this['_loading$'][_0x4e3b89(0x108)],'connectionStatus$':(_0x102599=this[_0x4e3b89(0x13e)])==null?void 0x0:_0x102599[_0x4e3b89(0x16f)],'connectionError$':(_0x5649ee=this[_0x4e3b89(0x13e)])==null?void 0x0:_0x5649ee['connectionError$'],'currentSessionId$':(_0x180e05=this[_0x4e3b89(0x13e)])==null?void 0x0:_0x180e05['sessionId$']});},this['_injector']);}[_0xfb996e(0x109)](){const _0xd266b4=_0xfb996e;this[_0xd266b4(0x1af)](this[_0xd266b4(0xf8)][_0xd266b4(0x161)](_0x1ee857)[_0xd266b4(0x1b1)](_0x4131de=>{const _0x1e08eb=_0xd266b4;this[_0x1e08eb(0x139)][_0x1e08eb(0x123)](_0x4131de||{});}));let _0x260c9f=this['_configService'][_0xd266b4(0x118)](_0x1ee857);this[_0xd266b4(0x139)][_0xd266b4(0x123)](_0x260c9f||{}),this[_0xd266b4(0x1af)](this[_0xd266b4(0xf8)][_0xd266b4(0x161)](z)[_0xd266b4(0x1b1)](_0x21548d=>{const _0x215abf=_0xd266b4;this[_0x215abf(0x169)][_0x215abf(0x123)](_0x21548d||{});}));let _0x3a88da=this['_configService']['getConfig'](z);this[_0xd266b4(0x169)][_0xd266b4(0x123)](_0x3a88da||{});}async[_0xfb996e(0x15f)](){const _0x15551b=_0xfb996e;let _0x550e2b=this['_configService'][_0x15551b(0x118)](z);if(!(_0x550e2b!=null&&_0x550e2b[_0x15551b(0x1a6)]))return;let _0x1e6e1f=await this[_0x15551b(0x15e)][_0x15551b(0xe1)](G);_0x1e6e1f&&(this[_0x15551b(0x13e)][_0x15551b(0xe2)]({'Authorization':_0x15551b(0x145)+_0x1e6e1f}),this['_apiKey$'][_0x15551b(0x123)](_0x1e6e1f));}async[_0xfb996e(0x13f)](_0x5d86f1){const _0x4e2f38=_0xfb996e;if(!_0x5d86f1[_0x4e2f38(0x165)]||_0x5d86f1[_0x4e2f38(0x165)]['trim']()['length']===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t']('mcpConfig.validation.apiKeyRequired')};if(_0x5d86f1[_0x4e2f38(0x165)][_0x4e2f38(0x1ba)]()[_0x4e2f38(0x10e)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x4e2f38(0x14b)]['t'](_0x4e2f38(0x19f))};try{let _0x2a9982=await this[_0x4e2f38(0xf3)][_0x4e2f38(0x155)](_0x4f5f2a)[_0x4e2f38(0xe7)](_0x5d86f1[_0x4e2f38(0x165)][_0x4e2f38(0x1ba)]());return _0x2a9982[_0x4e2f38(0xff)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x2a9982[_0x4e2f38(0x1a8)]||this[_0x4e2f38(0x14b)]['t'](_0x4e2f38(0x121))};}catch(_0x168158){return console[_0x4e2f38(0x138)](_0x4e2f38(0x1a7),_0x168158),{'isValid':!0x0};}}};q=W([U(0x0,_0x59ad70(_0x37b342)),U(0x1,_0x2785c0),U(0x2,_0xcae5bb),U(0x3,_0x5b47d9),U(0x4,_0x424255),U(0x5,_0x412477),U(0x6,_0x59ad70(_0x2b04e5)),U(0x7,_0x59ad70(_0x2214f6)),U(0x8,_0x54826a),U(0x9,_0x59ad70(_0x4f5f2a))],q);const J={'id':_0xfb996e(0x1a1),'type':_0x315ca4[_0xfb996e(0x1b7)],'handler':async(_0x129d53,_0x5db921)=>(_0x129d53[_0xfb996e(0x155)](q)[_0xfb996e(0x15a)](),!0x0)};function Y(_0x40b31d,_0x4907e7){const _0x2bb808=_0xfb996e;switch(_0x40b31d){case _0x476fe9[_0x2bb808(0x168)]:return'mcpStatus.disconnected';case _0x476fe9[_0x2bb808(0x153)]:return _0x2bb808(0x152);case _0x476fe9[_0x2bb808(0x120)]:return _0x2bb808(0x19b);case _0x476fe9[_0x2bb808(0x11c)]:switch(_0x4907e7){case _0xb4d197[_0x2bb808(0xe0)]:return _0x2bb808(0xee);case _0xb4d197['SESSION_ID_OCCUPIED']:return _0x2bb808(0x114);case _0xb4d197[_0x2bb808(0x144)]:return'mcpStatus.networkError';case _0xb4d197[_0x2bb808(0xd8)]:return _0x2bb808(0xda);default:return _0x2bb808(0xfe);}case _0x476fe9[_0x2bb808(0x1b4)]:return _0x2bb808(0x143);default:return _0x2bb808(0x193);}}function de(_0x59e998,_0xee92a5,_0x774e53,_0x2251fa=!0x0){const _0x54d81e=_0xfb996e;let _0x3203da=Y(_0x59e998,_0xee92a5),_0x50a45f=_0x774e53['t'](_0x3203da);return _0x2251fa?_0x59e998===_0x476fe9[_0x54d81e(0x168)]&&_0xee92a5===_0xb4d197[_0x54d81e(0xe0)]?_0x50a45f+_0x54d81e(0x189)+_0x774e53['t'](_0x54d81e(0x13c)):_0x59e998===_0x476fe9[_0x54d81e(0x120)]?''+_0x50a45f:_0x59e998===_0x476fe9[_0x54d81e(0x168)]||_0x59e998===_0x476fe9[_0x54d81e(0x11c)]?_0x50a45f+_0x54d81e(0x189)+_0x774e53['t']('mcpStatus.clickToConnect'):_0x50a45f:_0x50a45f;}function fe(_0x27edbd){const _0x2a55e4=_0xfb996e;switch(_0x27edbd){case _0x476fe9[_0x2a55e4(0x120)]:return _0x2a55e4(0x158);case _0x476fe9[_0x2a55e4(0x153)]:case _0x476fe9['RETRYING']:return _0x2a55e4(0xdc);case _0x476fe9[_0x2a55e4(0x11c)]:case _0x476fe9[_0x2a55e4(0x168)]:return'univer-text-red-500';default:return _0x2a55e4(0x18d);}}function _0x5d68(_0x1e7fa8,_0x41a2a2){_0x1e7fa8=_0x1e7fa8-0xd6;const _0x1e3f78=_0x1e3f();let _0x5d68b2=_0x1e3f78[_0x1e7fa8];return _0x5d68b2;}function X(_0x3d60b4){const _0x13136d=_0xfb996e;let {status$:_0x529fd8,error$:_0x3e78b4,onConfigure:_0x2d1618,showClickable:_0x22705c=!0x0}=_0x3d60b4,_0x43349c=_0x99f738(_0x529fd8,_0x476fe9['DISCONNECTED']),_0x5d4b4e=_0x99f738(_0x3e78b4,_0xb4d197[_0x13136d(0x14c)]),_0x2a59e1=_0x139827(_0x2214f6),_0x5e8f3a=_0x43349c===_0x476fe9[_0x13136d(0x120)];_0x43349c===_0x476fe9[_0x13136d(0x153)]||_0x476fe9[_0x13136d(0x1b4)];let _0x55f92a=_0x2a59e1['t'](Y(_0x43349c,_0x5d4b4e)),_0x1d05cc=de(_0x43349c,_0x5d4b4e,_0x2a59e1,_0x22705c),_0x24024a=fe(_0x43349c),_0x371f52=_0x2dd2fc(_0x5e8f3a?_0x1a0756:_0x314932,{}),_0x13f24d=_0x5be9f2(()=>{_0x22705c&&_0x2d1618&&_0x2d1618();},[_0x22705c,_0x2d1618]);function _0x2fddf3(){const _0x574bf3=_0x13136d;return _0x1d64b9('div',{'className':_0x25d26d(_0x574bf3(0x1b5),_0x22705c&&_0x2d1618&&_0x574bf3(0x106)),'role':_0x574bf3(0x18f),'onClick':_0x22705c&&_0x2d1618?_0x13f24d:void 0x0,'children':[_0x2dd2fc('div',{'className':_0x25d26d(_0x574bf3(0x127),_0x24024a),'children':_0x371f52}),_0x2dd2fc(_0x574bf3(0x13d),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x55f92a})]});}return _0x2dd2fc(_0x3eb85a,{'title':_0x1d05cc,'placement':_0x13136d(0x135),'children':_0x2fddf3()});}let Z=class extends _0x6a89c1{constructor(_0x561f21,_0x5246f7,_0x4530de,_0x549c96){const _0x233d0e=_0xfb996e;super(),this[_0x233d0e(0xf3)]=_0x561f21,this[_0x233d0e(0x140)]=_0x5246f7,this[_0x233d0e(0x171)]=_0x4530de,this[_0x233d0e(0xf8)]=_0x549c96,this[_0x233d0e(0x1a5)](),this[_0x233d0e(0x136)]();}[_0xfb996e(0x1a5)](){const _0x4e8c85=_0xfb996e;let _0x391951=this[_0x4e8c85(0xf8)][_0x4e8c85(0x118)](z);_0x391951!=null&&_0x391951[_0x4e8c85(0x1a6)]&&(this[_0x4e8c85(0x140)]['enableAutoConnect']=!0x1);}[_0xfb996e(0x136)](){const _0x8606ac=_0xfb996e;let _0x3d04ce=this['_configService'][_0x8606ac(0x118)](z);(_0x3d04ce==null?void 0x0:_0x3d04ce['showStatus'])!==!0x1&&this[_0x8606ac(0x1af)](this[_0x8606ac(0x171)][_0x8606ac(0x167)](_0xadbc61[_0x8606ac(0x182)],()=>{const _0xdeb53e=_0x8606ac;var _0x91ff82;return _0xaa714c(pe({'status$':this[_0xdeb53e(0x140)][_0xdeb53e(0x16f)],'error$':this[_0xdeb53e(0x140)]['connectionError$'],'onConfigure':()=>this[_0xdeb53e(0xeb)](),'showClickable':(_0x91ff82=_0x3d04ce==null?void 0x0:_0x3d04ce[_0xdeb53e(0x1a6)])==null?!0x1:_0x91ff82}),this[_0xdeb53e(0xf3)]);}));}['_handleConfigure'](){const _0x380a86=_0xfb996e;this[_0x380a86(0xf3)][_0x380a86(0x155)](q)[_0x380a86(0x15a)]();}};Z=W([U(0x0,_0x59ad70(_0x37b342)),U(0x1,_0x59ad70(_0x4f5f2a)),U(0x2,_0x2785c0),U(0x3,_0xcae5bb)],Z);function pe(_0x130bed){let {status$:_0x43dc0a,error$:_0x3924cf,onConfigure:_0x134c54,showClickable:_0x3d3b67}=_0x130bed;return function(){return _0x2dd2fc(X,{'status$':_0x43dc0a,'error$':_0x3924cf,'onConfigure':_0x134c54,'showClickable':_0x3d3b67});};}function me(_0x5dfa2c){const _0xeb4a49=_0xfb996e;return{'id':J['id'],'type':_0x58cdca[_0xeb4a49(0x1b3)],'icon':'MenuIcon','title':_0xeb4a49(0x18b),'tooltip':_0xeb4a49(0x18b)};}const he={[_0x26ee93[_0xfb996e(0x12a)]]:{[J['id']]:{'order':0xa,'menuItemFactory':me}}};let Q=class extends _0x6a89c1{constructor(_0x1688eb,_0x102ad9){const _0x1e5269=_0xfb996e;super(),this[_0x1e5269(0xf2)]=_0x1688eb,this['_menuManagerService']=_0x102ad9,this[_0x1e5269(0x177)](),this[_0x1e5269(0xfc)]();}[_0xfb996e(0x177)](){const _0x2ea97d=_0xfb996e;[J][_0x2ea97d(0x187)](_0x5a2040=>{const _0x3db437=_0x2ea97d;this[_0x3db437(0x1af)](this['_commandService'][_0x3db437(0x197)](_0x5a2040));});}[_0xfb996e(0xfc)](){const _0x20e7e6=_0xfb996e;this[_0x20e7e6(0x186)][_0x20e7e6(0x181)](he);}};Q=W([U(0x0,_0x30bcd1),U(0x1,_0x52a5ea)],Q);var ge=_0xfb996e(0x17f),_e='1.0.0-alpha.0';let $=class extends _0x5417cd{constructor(_0x42cacb=B,_0x2f8252,_0x232deb,_0x35b529,_0x1a70ed,_0x127ca3){const _0x3a4536=_0xfb996e;super(),this[_0x3a4536(0x110)]=_0x42cacb,this[_0x3a4536(0xf3)]=_0x2f8252,this[_0x3a4536(0xf8)]=_0x232deb,this[_0x3a4536(0x171)]=_0x35b529,this[_0x3a4536(0x15e)]=_0x1a70ed,this['_localeService']=_0x127ca3;let {..._0xea25f1}=_0x195429({},B,this[_0x3a4536(0x110)]);this['_configService'][_0x3a4536(0x148)](z,_0xea25f1);}async[_0xfb996e(0x163)](){const _0x2dbc91=_0xfb996e;let _0x5af662=[[Z],[q],[Q]];this['_injector'][_0x2dbc91(0x11b)](_0x4e5159)||_0x5af662['push']([_0x4e5159,{'useClass':_0x1c3c2c}]),_0x5af662[_0x2dbc91(0x187)](_0x1e1334=>this[_0x2dbc91(0xf3)][_0x2dbc91(0xdb)](_0x1e1334)),this[_0x2dbc91(0xf3)][_0x2dbc91(0x155)](Z),this[_0x2dbc91(0xf3)][_0x2dbc91(0x155)](q),this[_0x2dbc91(0xf3)][_0x2dbc91(0x155)](Q);}};H($,_0xfb996e(0x16b),_0xfb996e(0x126)),H($,_0xfb996e(0x19c),ge),H($,_0xfb996e(0xe6),_e),$=W([_0xe38ea0(_0x2629f3),U(0x1,_0x59ad70(_0x37b342)),U(0x2,_0xcae5bb),U(0x3,_0x2785c0),U(0x4,_0x5b47d9),U(0x5,_0x59ad70(_0x2214f6))],$);export{R as MCPConfigPanel,q as MCPConfigUIController,Z as MCPConnectionUIController,X as MCPStatusDisplay,Q as MCPUIMenuController,J as OpenMCPConfigPanelCommand,$ as UniverMCPUIPlugin,_0x331a29 as enUS,_0x1d1e9c as zhCN};function _0x1e3f(){const _0x9e75a5=['mcpConfig.configInstructions','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','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','mcpConfig.save','mcpConfig.connectionError.maxRetriesExceeded','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','bottom','_initStatusComponent','mcpConfig.connectionError.unauthorized','warn','_mcpCoreConfig$','https://mcp.univer.ai/mcp/?univer_session_id=','univer-text-xs\x20univer-text-gray-500','mcpStatus.clickToConfigure','div','_mcpConnectionController','_validateConfig','_connectionController','MCP\x20Configuration','univer-size-4','mcpStatus.retrying','NETWORK_ERROR','Bearer\x20','stringify','142338rKgJQw','setConfig','text','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','_localeService','NONE','415530GZeywZ','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','mcpConfig.authorizationDescription','Error','165wTzjBV','mcpStatus.connecting','CONNECTING','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','get','<SESSION_ID>','mcp.apiKey','univer-text-green-500','includes','showConfigPanel','register','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-text-red-500','_localStorageService','_loadStoredApiKey','univer-flex\x20univer-items-start\x20univer-gap-2','subscribeConfigValue$','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','onStarting','univer-bg-green-500','apiKey','90qXRtVZ','registerComponent','DISCONNECTED','_config$','mcpConfig.configStep3','pluginName','_dialogService','univer-size-2\x20univer-rounded-full','call','connectionStatus$','_logService','_uiPartsService','setItem','mcpConfig.saving','univer-text-blue-600','_apiKey$','mcpConfig.configStepTitle','_initializeCommands','Success','mcpServerUrl','http','mcpConfig.connectionStatus.disconnected','close','mcpConfig.connectionStatus.connected','univer-space-y-2','@univerjs-pro/mcp-ui','univer-font-medium','mergeMenu','HEADER_MENU','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','mcp-config-dialog','univer-flex\x20univer-flex-wrap\x20univer-gap-2','_menuManagerService','forEach','mcpConfig.apiKeyHint','\x20-\x20','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','mcpConfig.title','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','univer-text-gray-500','mcpConfig.connectionError.networkError','button','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','mcp-ui.config','mcpConfig.connectionInfo','mcpStatus.unknown','univer-min-w-0\x20univer-flex-1','univer.ai','univer-flex\x20univer-items-start\x20univer-gap-3','registerCommand','univer-space-y-3','iterator','univer-flex-1','mcpStatus.connected','packageName','object','getCurrentConfig','mcpConfig.validation.apiKeyTooShort','univer-bg-blue-500','mcp-ui.command.openConfigPanel','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer-flex\x20univer-gap-3','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','_initAutoConnect','showDeveloperTools','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','error','mcpConfig.note1','mcpConfig.connectionError.sessionOccupied','open','mcpConfig.configSaved','toPrimitive','default','disposeWithMe','univer-space-y-4','subscribe','_messageService','BUTTON','RETRYING','univer-flex\x20univer-items-center','22uCmZjF','COMMAND','<API_KEY>','function','trim','https://console.univer.plus','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','mcpConfig.configError','MAX_RETRIES_EXCEEDED','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','mcpStatus.maxRetriesExceeded','add','univer-text-yellow-500','off','univer-shrink-0\x20univer-text-red-500','2qbFlvk','UNAUTHORIZED','getItem','__setCustomHeaders','mcpConfig.apiApplyInfo.description','273yWRmRG','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','version','validateApiKey','_createConfigPanelComponent','univer.plus','univer-flex\x20univer-items-center\x20univer-gap-2','_handleConfigure','29979Zdspdw','noopener\x20noreferrer','mcpStatus.unauthorized','Configuration\x20Notes:','_loading$','removeItem','_commandService','_injector','label','_componentManager','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','symbol','_configService','mcpConfig.connectionStatus.connecting','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','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','_initializeMenus','defineProperty','mcpStatus.failed','isValid','univer-bg-gray-500','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer-text-gray-400','show','mcpConfig.apiApplyInfo.getStarted','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','univer-cursor-pointer\x20hover:univer-opacity-80','_registerComponent','value','_initConfigSync','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','mcpConfig.apiApplyInfo.title','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','Authorization:','length','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','_config','univer-bg-red-500','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','mcpConfig.configStep1','mcpStatus.sessionOccupied','decorate','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','mcpConfig.configParameters','getConfig','11024904AsQlsH','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','has','FAILED','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','128824taQTbX','mcpConfig.connectionStatus.retrying','CONNECTED','mcpConfig.validation.invalidApiKey','pre','next','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','MCP_UI_PLUGIN','univer-mr-2\x20univer-flex\x20univer-text-xl','MCPConfigPanel','prototype','OTHERS','225334RaCCML','522768PyEwQq','span','string'];_0x1e3f=function(){return _0x9e75a5;};return _0x1e3f();}
|
|
1
|
+
const _0x5b386b=_0x26a5;(function(_0x5167eb,_0x32576f){const _0x35e351=_0x26a5,_0x4bafaf=_0x5167eb();while(!![]){try{const _0x5cca18=-parseInt(_0x35e351(0x1e0))/0x1+parseInt(_0x35e351(0x2a5))/0x2*(parseInt(_0x35e351(0x1d4))/0x3)+-parseInt(_0x35e351(0x23c))/0x4*(-parseInt(_0x35e351(0x22e))/0x5)+parseInt(_0x35e351(0x21e))/0x6+-parseInt(_0x35e351(0x23e))/0x7+parseInt(_0x35e351(0x214))/0x8+-parseInt(_0x35e351(0x206))/0x9*(parseInt(_0x35e351(0x222))/0xa);if(_0x5cca18===_0x32576f)break;else _0x4bafaf['push'](_0x4bafaf['shift']());}catch(_0x412f8d){_0x4bafaf['push'](_0x4bafaf['shift']());}}}(_0x1683,0x22f8a));import _0x161449 from'./locale/en-US.js';import _0x397a8e from'./locale/zh-CN.js';import{CommandType as _0x593979,DependentOn as _0x492c3b,Disposable as _0x36bc9e,ICommandService as _0x4bda18,IConfigService as _0x20fb6a,ILocalStorageService as _0x154cb1,ILogService as _0x1ebe22,Inject as _0x5289d4,Injector as _0xbbbf4b,LocaleService as _0x51f592,Plugin as _0x3e8439,merge as _0x354f9c}from'@univerjs/core';function _0x26a5(_0x22ada1,_0x432410){_0x22ada1=_0x22ada1-0x1c8;const _0x16831d=_0x1683();let _0x26a59c=_0x16831d[_0x22ada1];return _0x26a59c;}import{MCPConnectionController as _0x4b7493,MCPConnectionError as _0x8f97d4,MCPConnectionStatus as _0xd1ea3a,MCP_PLUGIN_CONFIG_KEY as _0x2eedd5,UniverMCPPlugin as _0x5d8c82}from'@univerjs-pro/mcp';import{Button as _0x24b75f,Input as _0x4619da,MessageType as _0x169226,Tooltip as _0x20c901,clsx as _0xa49791}from'@univerjs/design';import{BuiltInUIPart as _0x209d4c,ComponentManager as _0x368ca5,IDialogService as _0x15974b,IMenuManagerService as _0x27ead3,IMessageService as _0x181e42,IUIPartsService as _0x2e6601,MenuItemType as _0x53c3c0,RibbonStartGroup as _0x15a128,connectInjector as _0x30c1f6,useDependency as _0x15c776,useObservable as _0x6ce075}from'@univerjs/ui';import{BehaviorSubject as _0x1d736b}from'rxjs';import{CheckMarkIcon as _0x43bc65,CloseIcon as _0x51a9d2,HelpIcon as _0x168b18,OffLineIcon as _0x1ecc57,OnLineIcon as _0x3ef954}from'@univerjs/icons';import{useCallback as _0x2ae2c6,useState as _0x2054c5}from'react';import{jsx as _0x18af1c,jsxs as _0x362d0c}from'react/jsx-runtime';import{ISocketService as _0x429c47,WebSocketService as _0x27c201}from'@univerjs/network';function R(_0x529ae8){const _0xd12f9c=_0x26a5;var _0x45df0c,_0x352f80;let {mcpCoreConfig:_0x533d24,onSave:_0x13e0d4,loading:_0x475938=!0x1,config:_0x4c4e5b,connectionStatus$:_0x3c5014,connectionError$:_0x598d64,currentApiKey$:_0x3e944e,currentSessionId$:_0xfba125}=_0x529ae8,_0x25f614=_0x15c776(_0x51f592),_0x56f284=_0x6ce075(_0x3c5014,_0xd1ea3a[_0xd12f9c(0x1c8)]),_0x4b89d0=_0x6ce075(_0x598d64,_0x8f97d4[_0xd12f9c(0x283)]),_0x25d9de=_0x6ce075(_0xfba125,''),[_0xa4acf2,_0x1a7c5a]=_0x2054c5(_0x6ce075(_0x3e944e,'')||''),_0x1216c7=_0x4c4e5b[_0xd12f9c(0x282)]&&_0x533d24['mcpServerUrl']&&(_0x533d24['mcpServerUrl'][_0xd12f9c(0x24f)](_0xd12f9c(0x20b))||_0x533d24['mcpServerUrl'][_0xd12f9c(0x24f)](_0xd12f9c(0x20f))),_0x588a5c=(_0x45df0c=_0x533d24[_0xd12f9c(0x28d)])==null?void 0x0:_0x45df0c['includes'](_0xd12f9c(0x20b)),_0x10f46c=(_0x352f80=_0x533d24[_0xd12f9c(0x28d)])==null?void 0x0:_0x352f80[_0xd12f9c(0x24f)](_0xd12f9c(0x20f)),_0x361b03=_0x588a5c?_0xd12f9c(0x241):'https://console.univer.ai',_0x5d323b=_0x4c4e5b[_0xd12f9c(0x282)]&&(_0x588a5c||_0x10f46c),[_0x3fa0e2,_0x44502b]=_0x2054c5(!_0xa4acf2[_0xd12f9c(0x237)]()),_0x34c0ff=(_0x1acb3a,_0xab883)=>{const _0x571d37=_0xd12f9c;if(_0xab883===_0x8f97d4['UNAUTHORIZED'])return _0x571d37(0x1e4);switch(_0x1acb3a){case _0xd1ea3a['CONNECTED']:return _0x571d37(0x265);case _0xd1ea3a[_0x571d37(0x230)]:case _0xd1ea3a['RETRYING']:return _0x571d37(0x1ea);case _0xd1ea3a[_0x571d37(0x1fa)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return _0x571d37(0x1ce);}},_0x2a704c=(_0x3c5fb6,_0x155e2a)=>{const _0x169d31=_0xd12f9c;if(_0x155e2a===_0x8f97d4['UNAUTHORIZED'])return _0x169d31(0x239);switch(_0x3c5fb6){case _0xd1ea3a[_0x169d31(0x296)]:return _0x169d31(0x242);case _0xd1ea3a['CONNECTING']:case _0xd1ea3a[_0x169d31(0x1e2)]:return _0x169d31(0x1de);case _0xd1ea3a[_0x169d31(0x1fa)]:return _0x169d31(0x239);default:return _0x169d31(0x26a);}},_0x31d294=_0xfbef80=>{const _0x5c8afd=_0xd12f9c;switch(_0xfbef80){case _0xd1ea3a[_0x5c8afd(0x296)]:return _0x25f614['t'](_0x5c8afd(0x1dc));case _0xd1ea3a[_0x5c8afd(0x230)]:return _0x25f614['t'](_0x5c8afd(0x1da));case _0xd1ea3a[_0x5c8afd(0x1fa)]:return _0x25f614['t'](_0x5c8afd(0x1ca));case _0xd1ea3a['RETRYING']:return _0x25f614['t'](_0x5c8afd(0x1f7));default:return _0x25f614['t'](_0x5c8afd(0x213));}},_0xc6ff83=_0x42748e=>{const _0x5c205b=_0xd12f9c;switch(_0x42748e){case _0x8f97d4[_0x5c205b(0x236)]:return _0x25f614['t'](_0x5c205b(0x26c));case _0x8f97d4[_0x5c205b(0x1d3)]:return _0x25f614['t'](_0x5c205b(0x218));case _0x8f97d4[_0x5c205b(0x1f0)]:return _0x25f614['t']('mcpConfig.connectionError.networkError');case _0x8f97d4[_0x5c205b(0x285)]:return _0x25f614['t'](_0x5c205b(0x274));default:return'';}},_0x153faa=_0x2ae2c6(()=>{const _0x432424=_0xd12f9c;_0x13e0d4({..._0x533d24,'apiKey':_0xa4acf2[_0x432424(0x237)](),'enableAuth':!0x0});},[_0x533d24,_0xa4acf2,!0x0,_0x13e0d4]),_0x49ecac=_0xa4acf2[_0xd12f9c(0x237)]()['length']>0x0;return _0x362d0c(_0xd12f9c(0x1e6),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[_0x18af1c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x284),'children':_0x362d0c('div',{'className':_0xd12f9c(0x1e5),'children':[_0x18af1c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x25e),'children':_0x18af1c(_0xd12f9c(0x1ec),{'className':_0xd12f9c(0x244),'children':'⚙'})}),_0x18af1c(_0xd12f9c(0x1e6),{'children':_0x18af1c('p',{'className':_0xd12f9c(0x29a),'children':_0x25f614['t']('mcpConfig.description')})})]})}),_0x362d0c('div',{'className':_0xd12f9c(0x24c),'children':[_0x18af1c(_0xd12f9c(0x1e6),{'className':_0xa49791(_0xd12f9c(0x288),_0x34c0ff(_0x56f284,_0x4b89d0)),'children':_0x362d0c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x279),'children':[_0x18af1c(_0xd12f9c(0x1e6),{'className':_0xa49791(_0xd12f9c(0x215),_0x2a704c(_0x56f284,_0x4b89d0))}),_0x18af1c(_0xd12f9c(0x1ec),{'className':_0xd12f9c(0x261),'children':_0x31d294(_0x56f284)})]})}),_0x4b89d0!==_0x8f97d4[_0xd12f9c(0x283)]&&(_0x56f284===_0xd1ea3a[_0xd12f9c(0x1fa)]||_0x4b89d0===_0x8f97d4[_0xd12f9c(0x236)])&&_0x18af1c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x252),'children':_0x362d0c('div',{'className':_0xd12f9c(0x298),'children':[_0x18af1c(_0xd12f9c(0x1ec),{'className':_0xd12f9c(0x293),'children':'⚠️'}),_0x18af1c('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0xc6ff83(_0x4b89d0)})]})})]}),_0x18af1c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x24b),'children':_0x362d0c('div',{'className':_0xd12f9c(0x289),'children':[_0x362d0c(_0xd12f9c(0x1e6),{'className':'univer-space-y-2','children':[_0x362d0c(_0xd12f9c(0x272),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0x18af1c(_0xd12f9c(0x1ec),{'children':'🔑'}),'\x20',_0x25f614['t']('mcpConfig.apiKey'),_0x18af1c(_0xd12f9c(0x1ec),{'className':_0xd12f9c(0x201),'children':'*'}),_0x1216c7&&_0x18af1c('a',{'className':_0xd12f9c(0x267),'title':_0x25f614['t'](_0xd12f9c(0x21a)),'role':_0xd12f9c(0x25a),'onClick':()=>_0x44502b(!0x0),'children':_0x18af1c(_0x168b18,{})})]}),_0x18af1c(_0x4619da,{'type':_0xd12f9c(0x27f),'placeholder':_0x25f614['t']('mcpConfig.apiKeyPlaceholder'),'value':_0xa4acf2,'disabled':_0x475938,'autoComplete':_0xd12f9c(0x26f),'onChange':_0x1a7c5a}),_0x18af1c('p',{'className':_0xd12f9c(0x21c),'children':_0x25f614['t'](_0xd12f9c(0x1f2))})]}),_0x1216c7&&_0x3fa0e2&&_0x362d0c('div',{'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':[_0x18af1c('a',{'className':_0xd12f9c(0x229),'role':_0xd12f9c(0x25a),'onClick':()=>_0x44502b(!0x1),'children':_0x18af1c(_0x51a9d2,{'className':_0xd12f9c(0x1d7)})}),_0x362d0c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x286),'children':[_0x18af1c('div',{'className':_0xd12f9c(0x27a),'children':_0x18af1c('span',{'className':_0xd12f9c(0x22a),'children':'🚀'})}),_0x362d0c(_0xd12f9c(0x1e6),{'className':'univer-flex-1','children':[_0x18af1c('h4',{'className':_0xd12f9c(0x292),'children':_0x25f614['t']('mcpConfig.apiApplyInfo.title')}),_0x18af1c('p',{'className':_0xd12f9c(0x234),'children':_0x25f614['t'](_0xd12f9c(0x290))}),_0x18af1c(_0xd12f9c(0x1e6),{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x5d323b&&_0x362d0c('a',{'className':'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','href':_0x361b03,'target':_0xd12f9c(0x204),'rel':_0xd12f9c(0x2a8),'children':[_0x18af1c(_0xd12f9c(0x1ec),{'children':'🤖'}),_0x25f614['t'](_0xd12f9c(0x22b)),_0x18af1c('span',{'className':'univer-text-gray-400','children':'↗'})]})}),_0x362d0c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x20d),'children':['✨','\x20',_0x25f614['t'](_0xd12f9c(0x2a0))]})]})]})]}),_0x4c4e5b[_0xd12f9c(0x282)]&&_0x362d0c(_0xd12f9c(0x1e6),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[_0x362d0c('h4',{'className':_0xd12f9c(0x24d),'children':[_0x18af1c(_0xd12f9c(0x1ec),{'children':'🔗'}),'\x20',_0x25f614['t'](_0xd12f9c(0x2a2))]}),_0x362d0c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x281),'children':[_0x362d0c('div',{'className':_0xd12f9c(0x226),'children':[_0x18af1c('p',{'className':_0xd12f9c(0x2a3),'children':_0x25f614['t']('mcpConfig.configInstructions')}),_0x362d0c(_0xd12f9c(0x1e6),{'className':'univer-space-y-2','children':[_0x18af1c(_0xd12f9c(0x1e6),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x25f614['t'](_0xd12f9c(0x25f))}),_0x362d0c('div',{'className':_0xd12f9c(0x25c),'children':[_0x362d0c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x279),'children':[_0x18af1c('span',{'className':_0xd12f9c(0x202),'children':'1'}),_0x25f614['t'](_0xd12f9c(0x200))]}),_0x362d0c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x279),'children':[_0x18af1c('span',{'className':_0xd12f9c(0x202),'children':'2'}),_0x25f614['t'](_0xd12f9c(0x26e))]}),_0x362d0c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x279),'children':[_0x18af1c(_0xd12f9c(0x1ec),{'className':_0xd12f9c(0x202),'children':'3'}),_0x25f614['t'](_0xd12f9c(0x21f))]})]})]})]}),_0x362d0c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x249),'children':[_0x18af1c('div',{'className':_0xd12f9c(0x20c),'children':_0xd12f9c(0x278)}),_0x18af1c('div',{'className':_0xd12f9c(0x1f3),'children':_0x18af1c('pre',{'className':_0xd12f9c(0x28b),'children':JSON[_0xd12f9c(0x257)]({'mcpServers':{'univer':{'url':_0xd12f9c(0x26d)+(_0x25d9de||_0xd12f9c(0x28e)),'type':_0xd12f9c(0x243),'headers':{'Authorization':_0xd12f9c(0x24e)+(_0xa4acf2||_0xd12f9c(0x209))}}}},null,0x2)})})]}),_0x362d0c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x226),'children':[_0x18af1c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x20c),'children':_0x25f614['t'](_0xd12f9c(0x2a1))}),_0x362d0c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x249),'children':[_0x362d0c('div',{'className':_0xd12f9c(0x273),'children':[_0x18af1c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x246)}),_0x362d0c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x23d),'children':[_0x18af1c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x1fc),'children':_0xd12f9c(0x231)}),_0x18af1c('div',{'className':_0xd12f9c(0x21c),'children':_0x25f614['t'](_0xd12f9c(0x23f))})]})]}),_0x362d0c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x273),'children':[_0x18af1c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x246)}),_0x362d0c(_0xd12f9c(0x1e6),{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x18af1c('div',{'className':_0xd12f9c(0x1fc),'children':_0xd12f9c(0x232)}),_0x18af1c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x21c),'children':_0x25f614['t'](_0xd12f9c(0x1f5))})]})]})]})]})]})]}),_0x18af1c(_0x24b75f,{'onClick':_0x153faa,'disabled':!_0x49ecac||_0x475938,'className':_0xd12f9c(0x208),'children':_0x475938?_0x362d0c(_0xd12f9c(0x1ec),{'className':_0xd12f9c(0x279),'children':[_0x18af1c(_0xd12f9c(0x1ec),{'children':'⟲'}),_0x25f614['t'](_0xd12f9c(0x27e))]}):_0x362d0c(_0xd12f9c(0x1ec),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x18af1c(_0x43bc65,{}),_0x25f614['t'](_0xd12f9c(0x275))]})}),_0x18af1c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x2a7),'children':_0x362d0c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x21b),'children':[_0x18af1c(_0xd12f9c(0x1ec),{'className':_0xd12f9c(0x1ed),'children':'💡'}),_0x362d0c(_0xd12f9c(0x1e6),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[_0x18af1c('div',{'className':_0xd12f9c(0x295),'children':_0xd12f9c(0x26b)}),_0x362d0c(_0xd12f9c(0x1e6),{'children':['•',_0x25f614['t'](_0xd12f9c(0x1e7))]}),_0x362d0c(_0xd12f9c(0x1e6),{'children':['•',_0x25f614['t'](_0xd12f9c(0x227))]})]})]})})]})})]});}const z='mcp-ui.config',B={'showDeveloperTools':!0x1,'showStatus':!0x0};function V(_0x305e66){'@babel/helpers - typeof';const _0x39e552=_0x26a5;return V=typeof Symbol==_0x39e552(0x250)&&typeof Symbol[_0x39e552(0x224)]==_0x39e552(0x260)?function(_0x24ddc1){return typeof _0x24ddc1;}:function(_0x1010a7){const _0x19d758=_0x39e552;return _0x1010a7&&typeof Symbol==_0x19d758(0x250)&&_0x1010a7[_0x19d758(0x1e1)]===Symbol&&_0x1010a7!==Symbol[_0x19d758(0x22d)]?_0x19d758(0x260):typeof _0x1010a7;},V(_0x305e66);}function le(_0x349133,_0x35aa36){const _0x1b7465=_0x26a5;if(V(_0x349133)!=_0x1b7465(0x255)||!_0x349133)return _0x349133;var _0x543647=_0x349133[Symbol[_0x1b7465(0x22c)]];if(_0x543647!==void 0x0){var _0x5a545c=_0x543647[_0x1b7465(0x20a)](_0x349133,_0x35aa36||'default');if(V(_0x5a545c)!=_0x1b7465(0x255))return _0x5a545c;throw TypeError(_0x1b7465(0x1d2));}return(_0x35aa36===_0x1b7465(0x216)?String:Number)(_0x349133);}function ue(_0x2352d5){const _0x436c5d=_0x26a5;var _0x1e26c3=le(_0x2352d5,_0x436c5d(0x216));return V(_0x1e26c3)==_0x436c5d(0x260)?_0x1e26c3:_0x1e26c3+'';}function H(_0x7c03f9,_0x5a1a3d,_0x36d9a8){const _0x1d4842=_0x26a5;return(_0x5a1a3d=ue(_0x5a1a3d))in _0x7c03f9?Object[_0x1d4842(0x233)](_0x7c03f9,_0x5a1a3d,{'value':_0x36d9a8,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x7c03f9[_0x5a1a3d]=_0x36d9a8,_0x7c03f9;}function U(_0x287273,_0x9332ab){return function(_0x5aadb9,_0x3df309){_0x9332ab(_0x5aadb9,_0x3df309,_0x287273);};}function W(_0x5e6206,_0x4100e6,_0x581ae5,_0x27eb69){const _0x34b335=_0x26a5;var _0x2a9fca=arguments[_0x34b335(0x28a)],_0x180ccc=_0x2a9fca<0x3?_0x4100e6:_0x27eb69===null?_0x27eb69=Object[_0x34b335(0x248)](_0x4100e6,_0x581ae5):_0x27eb69,_0x8f56ae;if(typeof Reflect==_0x34b335(0x255)&&typeof Reflect[_0x34b335(0x1f8)]==_0x34b335(0x250))_0x180ccc=Reflect[_0x34b335(0x1f8)](_0x5e6206,_0x4100e6,_0x581ae5,_0x27eb69);else{for(var _0x41f8a4=_0x5e6206[_0x34b335(0x28a)]-0x1;_0x41f8a4>=0x0;_0x41f8a4--)(_0x8f56ae=_0x5e6206[_0x41f8a4])&&(_0x180ccc=(_0x2a9fca<0x3?_0x8f56ae(_0x180ccc):_0x2a9fca>0x3?_0x8f56ae(_0x4100e6,_0x581ae5,_0x180ccc):_0x8f56ae(_0x4100e6,_0x581ae5))||_0x180ccc);}return _0x2a9fca>0x3&&_0x180ccc&&Object[_0x34b335(0x233)](_0x4100e6,_0x581ae5,_0x180ccc),_0x180ccc;}const G=_0x5b386b(0x28f),K='mcp-config-dialog';let q=class extends _0x36bc9e{constructor(_0xc8dc65,_0x1de6e8,_0xe31107,_0x4e1398,_0x2dd3c4,_0x367b86,_0x536adb,_0x3f7775,_0x1a488e,_0x28182c){const _0x47b937=_0x5b386b;super(),this['_injector']=_0xc8dc65,this[_0x47b937(0x1fe)]=_0x1de6e8,this['_configService']=_0xe31107,this['_localStorageService']=_0x4e1398,this[_0x47b937(0x27d)]=_0x2dd3c4,this[_0x47b937(0x23a)]=_0x367b86,this[_0x47b937(0x1f6)]=_0x536adb,this[_0x47b937(0x1e3)]=_0x3f7775,this['_logService']=_0x1a488e,this[_0x47b937(0x247)]=_0x28182c,H(this,_0x47b937(0x1ff),new _0x1d736b(!0x1)),H(this,_0x47b937(0x219),new _0x1d736b({})),H(this,_0x47b937(0x280),new _0x1d736b({})),H(this,_0x47b937(0x268),new _0x1d736b('')),H(this,_0x47b937(0x1f4),async _0x2e95ec=>{const _0x5d88dd=_0x47b937;this[_0x5d88dd(0x1ff)][_0x5d88dd(0x1d0)](!0x0);try{var _0x1de00a,_0x8cf87f;let _0xcbba43=await this[_0x5d88dd(0x299)](_0x2e95ec);if(!_0xcbba43[_0x5d88dd(0x223)]){this[_0x5d88dd(0x23a)][_0x5d88dd(0x1f1)]({'type':_0x169226[_0x5d88dd(0x1d1)],'content':_0xcbba43[_0x5d88dd(0x212)]||this[_0x5d88dd(0x1e3)]['t']('mcpConfig.validation.invalidConfig')});return;}_0x2e95ec['apiKey']?await this[_0x5d88dd(0x277)]['setItem'](G,_0x2e95ec[_0x5d88dd(0x262)][_0x5d88dd(0x237)]()):await this['_localStorageService']['removeItem'](G),this[_0x5d88dd(0x268)][_0x5d88dd(0x1d0)](((_0x1de00a=_0x2e95ec[_0x5d88dd(0x262)])==null?void 0x0:_0x1de00a[_0x5d88dd(0x237)]())||''),this[_0x5d88dd(0x247)][_0x5d88dd(0x238)]({'Authorization':_0x5d88dd(0x24e)+((_0x8cf87f=_0x2e95ec[_0x5d88dd(0x262)])==null?void 0x0:_0x8cf87f[_0x5d88dd(0x237)]())}),this[_0x5d88dd(0x23a)]['show']({'type':_0x169226[_0x5d88dd(0x294)],'content':this[_0x5d88dd(0x1e3)]['t'](_0x5d88dd(0x27b))}),setTimeout(()=>{const _0x3c62c2=_0x5d88dd;this['_dialogService'][_0x3c62c2(0x23b)](K);},0x320);}catch(_0x4e150e){this[_0x5d88dd(0x203)][_0x5d88dd(0x21d)](_0x5d88dd(0x24a),_0x4e150e),this[_0x5d88dd(0x23a)]['show']({'type':_0x169226[_0x5d88dd(0x1d1)],'content':this[_0x5d88dd(0x1e3)]['t'](_0x5d88dd(0x211))});}finally{this[_0x5d88dd(0x1ff)][_0x5d88dd(0x1d0)](!0x1);}}),this[_0x47b937(0x217)](),this[_0x47b937(0x29d)](),this[_0x47b937(0x253)]();}['showConfigPanel'](){const _0x20755e=_0x5b386b;let _0x388c03=this['_configService']['getConfig'](z);_0x388c03!=null&&_0x388c03['showDeveloperTools']&&this['_dialogService']['open']({'id':K,'title':{'title':this[_0x20755e(0x1e3)]['t'](_0x20755e(0x2a4))},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x9d52d4=_0x20755e;this[_0x9d52d4(0x27d)][_0x9d52d4(0x23b)](K);}});}['getCurrentConfig'](){const _0x3b041f=_0x5b386b;return this[_0x3b041f(0x219)][_0x3b041f(0x29c)];}[_0x5b386b(0x253)](){const _0x3ebba7=_0x5b386b;this['disposeWithMe'](this[_0x3ebba7(0x1f6)][_0x3ebba7(0x263)]('MCPConfigPanel',this[_0x3ebba7(0x29b)]()));}['_createConfigPanelComponent'](){const _0x5bbb92=_0x5b386b;return _0x30c1f6(()=>{const _0x52bec7=_0x26a5;var _0x4a2d19,_0x19fe61,_0x4e6706;return _0x18af1c(R,{'config':this[_0x52bec7(0x280)][_0x52bec7(0x29c)],'mcpCoreConfig':this[_0x52bec7(0x219)][_0x52bec7(0x29c)],'currentApiKey$':this[_0x52bec7(0x268)],'onSave':this[_0x52bec7(0x1f4)],'loading':this[_0x52bec7(0x1ff)][_0x52bec7(0x29c)],'connectionStatus$':(_0x4a2d19=this[_0x52bec7(0x247)])==null?void 0x0:_0x4a2d19['connectionStatus$'],'connectionError$':(_0x19fe61=this[_0x52bec7(0x247)])==null?void 0x0:_0x19fe61['connectionError$'],'currentSessionId$':(_0x4e6706=this['_mcpConnectionController'])==null?void 0x0:_0x4e6706[_0x52bec7(0x271)]});},this[_0x5bbb92(0x240)]);}[_0x5b386b(0x217)](){const _0x31e407=_0x5b386b;this[_0x31e407(0x1d8)](this['_configService']['subscribeConfigValue$'](_0x2eedd5)[_0x31e407(0x225)](_0x3532ff=>{this['_mcpCoreConfig$']['next'](_0x3532ff||{});}));let _0x31889f=this['_configService'][_0x31e407(0x20e)](_0x2eedd5);this[_0x31e407(0x219)][_0x31e407(0x1d0)](_0x31889f||{}),this[_0x31e407(0x1d8)](this[_0x31e407(0x1ee)]['subscribeConfigValue$'](z)[_0x31e407(0x225)](_0x808664=>{const _0xa8fcd9=_0x31e407;this['_config$'][_0xa8fcd9(0x1d0)](_0x808664||{});}));let _0x4322c3=this['_configService'][_0x31e407(0x20e)](z);this[_0x31e407(0x280)][_0x31e407(0x1d0)](_0x4322c3||{});}async['_loadStoredApiKey'](){const _0x111bfc=_0x5b386b;let _0x4ff80b=this[_0x111bfc(0x1ee)][_0x111bfc(0x20e)](z);if(!(_0x4ff80b!=null&&_0x4ff80b[_0x111bfc(0x282)]))return;let _0x237c87=await this[_0x111bfc(0x277)][_0x111bfc(0x266)](G);_0x237c87&&(this[_0x111bfc(0x247)][_0x111bfc(0x238)]({'Authorization':_0x111bfc(0x24e)+_0x237c87}),this[_0x111bfc(0x268)][_0x111bfc(0x1d0)](_0x237c87));}async[_0x5b386b(0x299)](_0x175811){const _0xf4b28a=_0x5b386b;if(!_0x175811[_0xf4b28a(0x262)]||_0x175811[_0xf4b28a(0x262)][_0xf4b28a(0x237)]()[_0xf4b28a(0x28a)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0xf4b28a(0x1e3)]['t'](_0xf4b28a(0x1cb))};if(_0x175811[_0xf4b28a(0x262)][_0xf4b28a(0x237)]()[_0xf4b28a(0x28a)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0xf4b28a(0x1e3)]['t']('mcpConfig.validation.apiKeyTooShort')};try{let _0x50280f=await this['_injector'][_0xf4b28a(0x1ef)](_0x4b7493)[_0xf4b28a(0x287)](_0x175811[_0xf4b28a(0x262)][_0xf4b28a(0x237)]());return _0x50280f[_0xf4b28a(0x223)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x50280f[_0xf4b28a(0x21d)]||this[_0xf4b28a(0x1e3)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x427054){return console[_0xf4b28a(0x29e)](_0xf4b28a(0x258),_0x427054),{'isValid':!0x0};}}};q=W([U(0x0,_0x5289d4(_0xbbbf4b)),U(0x1,_0x2e6601),U(0x2,_0x20fb6a),U(0x3,_0x154cb1),U(0x4,_0x15974b),U(0x5,_0x181e42),U(0x6,_0x5289d4(_0x368ca5)),U(0x7,_0x5289d4(_0x51f592)),U(0x8,_0x1ebe22),U(0x9,_0x5289d4(_0x4b7493))],q);const J={'id':'mcp-ui.command.openConfigPanel','type':_0x593979['COMMAND'],'handler':async(_0x2b5c5a,_0x45a285)=>(_0x2b5c5a[_0x5b386b(0x1ef)](q)[_0x5b386b(0x1eb)](),!0x0)};function Y(_0x455cae,_0x3c48bd){const _0x50786b=_0x5b386b;switch(_0x455cae){case _0xd1ea3a['DISCONNECTED']:return _0x50786b(0x1d9);case _0xd1ea3a[_0x50786b(0x230)]:return'mcpStatus.connecting';case _0xd1ea3a['CONNECTED']:return _0x50786b(0x205);case _0xd1ea3a[_0x50786b(0x1fa)]:switch(_0x3c48bd){case _0x8f97d4[_0x50786b(0x236)]:return'mcpStatus.unauthorized';case _0x8f97d4[_0x50786b(0x1d3)]:return _0x50786b(0x259);case _0x8f97d4[_0x50786b(0x1f0)]:return _0x50786b(0x235);case _0x8f97d4[_0x50786b(0x285)]:return _0x50786b(0x27c);default:return _0x50786b(0x28c);}case _0xd1ea3a[_0x50786b(0x1e2)]:return _0x50786b(0x291);default:return'mcpStatus.unknown';}}function de(_0x2590cb,_0x4c5cdb,_0x19a3c2,_0xa20008=!0x0){const _0x269dc6=_0x5b386b;let _0x430f19=Y(_0x2590cb,_0x4c5cdb),_0x41f045=_0x19a3c2['t'](_0x430f19);return _0xa20008?_0x2590cb===_0xd1ea3a[_0x269dc6(0x1c8)]&&_0x4c5cdb===_0x8f97d4['UNAUTHORIZED']?_0x41f045+'\x20-\x20'+_0x19a3c2['t'](_0x269dc6(0x2a6)):_0x2590cb===_0xd1ea3a[_0x269dc6(0x296)]?''+_0x41f045:_0x2590cb===_0xd1ea3a[_0x269dc6(0x1c8)]||_0x2590cb===_0xd1ea3a['FAILED']?_0x41f045+'\x20-\x20'+_0x19a3c2['t'](_0x269dc6(0x264)):_0x41f045:_0x41f045;}function _0x1683(){const _0x11e54a=['registerComponent','OTHERS','univer-size-4','disposeWithMe','mcpStatus.disconnected','mcpConfig.connectionStatus.connecting','has','mcpConfig.connectionStatus.connected','registerCommand','univer-bg-blue-500','_handleConfigure','126730MSIWXo','constructor','RETRYING','_localeService','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','univer-flex\x20univer-items-center\x20univer-gap-3','div','mcpConfig.note1','_config','_initializeCommands','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','showConfigPanel','span','univer-shrink-0\x20univer-text-blue-500','_configService','get','NETWORK_ERROR','show','mcpConfig.apiKeyHint','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','_handleConfigSave','mcpConfig.authorizationDescription','_componentManager','mcpConfig.connectionStatus.retrying','decorate','1.0.0-alpha.1','FAILED','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','@univerjs-pro/mcp-ui','_uiPartsService','_loading$','mcpConfig.configStep1','univer-text-red-500','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','_logService','_blank','mcpStatus.connected','9gPnHhq','_initializeMenus','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','<API_KEY>','call','univer.plus','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','getConfig','univer.ai','_menuManagerService','mcpConfig.configError','errorMessage','mcpConfig.connectionStatus.disconnected','227520fwJgTk','univer-size-2\x20univer-rounded-full','string','_initConfigSync','mcpConfig.connectionError.sessionOccupied','_mcpCoreConfig$','mcpConfig.apiApplyInfo.title','univer-flex\x20univer-gap-3','univer-text-xs\x20univer-text-gray-500','error','741528nIPQOs','mcpConfig.configStep3','setConfig','univer-mr-2\x20univer-flex\x20univer-text-xl','1453560HgAlEF','isValid','iterator','subscribe','univer-space-y-3','mcpConfig.note2','showStatus','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','univer-text-blue-600','mcpConfig.apiApplyInfo.univerAiLabel','toPrimitive','prototype','5DqYuBa','forEach','CONNECTING','univer_session_id:','Authorization:','defineProperty','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','mcpStatus.networkError','UNAUTHORIZED','trim','__setCustomHeaders','univer-bg-red-500','_messageService','close','306068DZXiDn','univer-min-w-0\x20univer-flex-1','616588HPdMWb','mcpConfig.sessionIdDescription','_injector','https://console.univer.plus','univer-bg-green-500','http','univer-text-white','connectionError$','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','_mcpConnectionController','getOwnPropertyDescriptor','univer-space-y-2','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','Bearer\x20','includes','function','bottom','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','_registerComponent','_initAutoConnect','object','pluginName','stringify','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','mcpStatus.sessionOccupied','button','univer-flex\x20univer-items-center','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','enableAutoConnect','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','mcpConfig.configStepTitle','symbol','univer-text-sm\x20univer-font-medium','apiKey','register','mcpStatus.clickToConnect','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','getItem','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','_apiKey$','univer-text-yellow-500','univer-bg-gray-500','Configuration\x20Notes:','mcpConfig.connectionError.unauthorized','https://mcp.univer.ai/mcp/?univer_session_id=','mcpConfig.configStep2','off','onStarting','sessionId$','label','univer-flex\x20univer-items-start\x20univer-gap-3','mcpConfig.connectionError.maxRetriesExceeded','mcpConfig.save','MenuIcon','_localStorageService','MCP\x20Configuration','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','mcpConfig.configSaved','mcpStatus.maxRetriesExceeded','_dialogService','mcpConfig.saving','text','_config$','univer-space-y-4','showDeveloperTools','NONE','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','MAX_RETRIES_EXCEEDED','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','validateApiKey','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','univer-space-y-5','length','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','mcpStatus.failed','mcpServerUrl','<SESSION_ID>','mcp.apiKey','mcpConfig.apiApplyInfo.description','mcpStatus.retrying','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer-shrink-0\x20univer-text-red-500','Success','univer-font-medium','CONNECTED','_commandService','univer-flex\x20univer-items-start\x20univer-gap-2','_validateConfig','univer-text-sm\x20univer-text-gray-500','_createConfigPanelComponent','value','_loadStoredApiKey','warn','_initStatusComponent','mcpConfig.apiApplyInfo.getStarted','mcpConfig.configParameters','mcpConfig.connectionInfo','univer-text-xs\x20univer-text-gray-600','mcpConfig.title','2pLGPbd','mcpStatus.clickToConfigure','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','noopener\x20noreferrer','DISCONNECTED','_connectionController','mcpConfig.connectionStatus.failed','mcpConfig.validation.apiKeyRequired','univer-text-green-500','push','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','mergeMenu','next','Error','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','SESSION_ID_OCCUPIED','824601gAAcaQ'];_0x1683=function(){return _0x11e54a;};return _0x1683();}function fe(_0x1d3583){const _0x3737f8=_0x5b386b;switch(_0x1d3583){case _0xd1ea3a['CONNECTED']:return _0x3737f8(0x1cc);case _0xd1ea3a[_0x3737f8(0x230)]:case _0xd1ea3a[_0x3737f8(0x1e2)]:return _0x3737f8(0x269);case _0xd1ea3a['FAILED']:case _0xd1ea3a['DISCONNECTED']:return _0x3737f8(0x201);default:return'univer-text-gray-500';}}function X(_0x286f1f){const _0x1719b0=_0x5b386b;let {status$:_0x5b4279,error$:_0x584f6f,onConfigure:_0x441f1c,showClickable:_0x61431e=!0x0}=_0x286f1f,_0x45fbf7=_0x6ce075(_0x5b4279,_0xd1ea3a['DISCONNECTED']),_0x10bb4e=_0x6ce075(_0x584f6f,_0x8f97d4[_0x1719b0(0x283)]),_0x2c5e95=_0x15c776(_0x51f592),_0x524ac7=_0x45fbf7===_0xd1ea3a[_0x1719b0(0x296)];_0x45fbf7===_0xd1ea3a['CONNECTING']||_0xd1ea3a[_0x1719b0(0x1e2)];let _0x3f0101=_0x2c5e95['t'](Y(_0x45fbf7,_0x10bb4e)),_0x146fe0=de(_0x45fbf7,_0x10bb4e,_0x2c5e95,_0x61431e),_0x4a7955=fe(_0x45fbf7),_0x446289=_0x18af1c(_0x524ac7?_0x3ef954:_0x1ecc57,{}),_0x5614ed=_0x2ae2c6(()=>{_0x61431e&&_0x441f1c&&_0x441f1c();},[_0x61431e,_0x441f1c]);function _0x301867(){const _0x5f457a=_0x1719b0;return _0x362d0c(_0x5f457a(0x1e6),{'className':_0xa49791(_0x5f457a(0x25b),_0x61431e&&_0x441f1c&&'univer-cursor-pointer\x20hover:univer-opacity-80'),'role':_0x5f457a(0x25a),'onClick':_0x61431e&&_0x441f1c?_0x5614ed:void 0x0,'children':[_0x18af1c(_0x5f457a(0x1e6),{'className':_0xa49791(_0x5f457a(0x221),_0x4a7955),'children':_0x446289}),_0x18af1c(_0x5f457a(0x1e6),{'className':_0x5f457a(0x1fb),'children':_0x3f0101})]});}return _0x18af1c(_0x20c901,{'title':_0x146fe0,'placement':_0x1719b0(0x251),'children':_0x301867()});}let Z=class extends _0x36bc9e{constructor(_0x24b23a,_0x1b9398,_0x1f2754,_0x26bc44){const _0x16e31b=_0x5b386b;super(),this[_0x16e31b(0x240)]=_0x24b23a,this[_0x16e31b(0x1c9)]=_0x1b9398,this['_uiPartsService']=_0x1f2754,this['_configService']=_0x26bc44,this[_0x16e31b(0x254)](),this[_0x16e31b(0x29f)]();}[_0x5b386b(0x254)](){const _0x4c16be=_0x5b386b;let _0x4043e2=this[_0x4c16be(0x1ee)][_0x4c16be(0x20e)](z);_0x4043e2!=null&&_0x4043e2['showDeveloperTools']&&(this[_0x4c16be(0x1c9)][_0x4c16be(0x25d)]=!0x1);}[_0x5b386b(0x29f)](){const _0x445587=_0x5b386b;let _0x1323b9=this[_0x445587(0x1ee)][_0x445587(0x20e)](z);(_0x1323b9==null?void 0x0:_0x1323b9[_0x445587(0x228)])!==!0x1&&this['disposeWithMe'](this[_0x445587(0x1fe)][_0x445587(0x1d5)](_0x209d4c['HEADER_MENU'],()=>{const _0x5af502=_0x445587;var _0x36e6b3;return _0x30c1f6(pe({'status$':this[_0x5af502(0x1c9)]['connectionStatus$'],'error$':this[_0x5af502(0x1c9)][_0x5af502(0x245)],'onConfigure':()=>this[_0x5af502(0x1df)](),'showClickable':(_0x36e6b3=_0x1323b9==null?void 0x0:_0x1323b9[_0x5af502(0x282)])==null?!0x1:_0x36e6b3}),this['_injector']);}));}[_0x5b386b(0x1df)](){const _0xdf00df=_0x5b386b;this[_0xdf00df(0x240)][_0xdf00df(0x1ef)](q)['showConfigPanel']();}};Z=W([U(0x0,_0x5289d4(_0xbbbf4b)),U(0x1,_0x5289d4(_0x4b7493)),U(0x2,_0x2e6601),U(0x3,_0x20fb6a)],Z);function pe(_0x3d7f5a){let {status$:_0x1424dc,error$:_0x49ce84,onConfigure:_0x2b1cfa,showClickable:_0x51ca9b}=_0x3d7f5a;return function(){return _0x18af1c(X,{'status$':_0x1424dc,'error$':_0x49ce84,'onConfigure':_0x2b1cfa,'showClickable':_0x51ca9b});};}function me(_0x180c4d){const _0x4d227e=_0x5b386b;return{'id':J['id'],'type':_0x53c3c0['BUTTON'],'icon':_0x4d227e(0x276),'title':_0x4d227e(0x2a4),'tooltip':_0x4d227e(0x2a4)};}const he={[_0x15a128[_0x5b386b(0x1d6)]]:{[J['id']]:{'order':0xa,'menuItemFactory':me}}};let Q=class extends _0x36bc9e{constructor(_0x115ccc,_0x3ab81f){const _0x10ec34=_0x5b386b;super(),this[_0x10ec34(0x297)]=_0x115ccc,this[_0x10ec34(0x210)]=_0x3ab81f,this[_0x10ec34(0x1e9)](),this[_0x10ec34(0x207)]();}['_initializeCommands'](){const _0x4ca115=_0x5b386b;[J][_0x4ca115(0x22f)](_0x34d06e=>{const _0x4b7d95=_0x4ca115;this[_0x4b7d95(0x1d8)](this['_commandService'][_0x4b7d95(0x1dd)](_0x34d06e));});}['_initializeMenus'](){const _0x581c1b=_0x5b386b;this['_menuManagerService'][_0x581c1b(0x1cf)](he);}};Q=W([U(0x0,_0x4bda18),U(0x1,_0x27ead3)],Q);var ge=_0x5b386b(0x1fd),_e=_0x5b386b(0x1f9);let $=class extends _0x3e8439{constructor(_0x1ba424=B,_0x339013,_0x26da5a,_0x2e3470,_0x2b63cb,_0xde7eea){const _0x2bd8b6=_0x5b386b;super(),this[_0x2bd8b6(0x1e8)]=_0x1ba424,this[_0x2bd8b6(0x240)]=_0x339013,this[_0x2bd8b6(0x1ee)]=_0x26da5a,this[_0x2bd8b6(0x1fe)]=_0x2e3470,this['_localStorageService']=_0x2b63cb,this[_0x2bd8b6(0x1e3)]=_0xde7eea;let {..._0x4633d8}=_0x354f9c({},B,this[_0x2bd8b6(0x1e8)]);this[_0x2bd8b6(0x1ee)][_0x2bd8b6(0x220)](z,_0x4633d8);}async[_0x5b386b(0x270)](){const _0x2d937b=_0x5b386b;let _0x5ab5a4=[[Z],[q],[Q]];this[_0x2d937b(0x240)][_0x2d937b(0x1db)](_0x429c47)||_0x5ab5a4[_0x2d937b(0x1cd)]([_0x429c47,{'useClass':_0x27c201}]),_0x5ab5a4[_0x2d937b(0x22f)](_0x440ad0=>this[_0x2d937b(0x240)]['add'](_0x440ad0)),this[_0x2d937b(0x240)][_0x2d937b(0x1ef)](Z),this[_0x2d937b(0x240)][_0x2d937b(0x1ef)](q),this[_0x2d937b(0x240)][_0x2d937b(0x1ef)](Q);}};H($,_0x5b386b(0x256),'MCP_UI_PLUGIN'),H($,'packageName',ge),H($,'version',_e),$=W([_0x492c3b(_0x5d8c82),U(0x1,_0x5289d4(_0xbbbf4b)),U(0x2,_0x20fb6a),U(0x3,_0x2e6601),U(0x4,_0x154cb1),U(0x5,_0x5289d4(_0x51f592))],$);export{R as MCPConfigPanel,q as MCPConfigUIController,Z as MCPConnectionUIController,X as MCPStatusDisplay,Q as MCPUIMenuController,J as OpenMCPConfigPanelCommand,$ as UniverMCPUIPlugin,_0x161449 as enUS,_0x397a8e as zhCN};
|
package/lib/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x538f(_0x188c15,_0x319aa1){_0x188c15=_0x188c15-0x96;const _0x4cfb67=_0x4cfb();let _0x538fe6=_0x4cfb67[_0x188c15];return _0x538fe6;}(function(_0x23a7b5,_0x156346){const _0x180b59=_0x538f,_0x4b02e2=_0x23a7b5();while(!![]){try{const _0x11dc3e=parseInt(_0x180b59(0x9a))/0x1*(parseInt(_0x180b59(0x9b))/0x2)+-parseInt(_0x180b59(0x9e))/0x3+parseInt(_0x180b59(0x9d))/0x4+parseInt(_0x180b59(0x98))/0x5*(parseInt(_0x180b59(0x9c))/0x6)+parseInt(_0x180b59(0x96))/0x7+-parseInt(_0x180b59(0x99))/0x8+-parseInt(_0x180b59(0x97))/0x9;if(_0x11dc3e===_0x156346)break;else _0x4b02e2['push'](_0x4b02e2['shift']());}catch(_0x433342){_0x4b02e2['push'](_0x4b02e2['shift']());}}}(_0x4cfb,0x68de0));function _0x4cfb(){const _0x592bec=['2831408MpDbZB','28vBUMUE','33358VvIaOT','6qGhzjb','243780jmxrue','2010924oHzfQc','5476884yffmWe','2798397XSecGa','2271670TKYapF'];_0x4cfb=function(){return _0x592bec;};return _0x4cfb();}import _0xbbacae from'./en-US.js';const t=_0xbbacae;export{t as default};
|
package/lib/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x9583fd=_0x5a20;(function(_0x52cfa1,_0x67ce9f){const _0x1f860a=_0x5a20,_0x1dca41=_0x52cfa1();while(!![]){try{const _0x3a27fd=-parseInt(_0x1f860a(0x1c5))/0x1+-parseInt(_0x1f860a(0x1b7))/0x2+parseInt(_0x1f860a(0x1af))/0x3*(-parseInt(_0x1f860a(0x1bb))/0x4)+-parseInt(_0x1f860a(0x1ac))/0x5+-parseInt(_0x1f860a(0x19e))/0x6+-parseInt(_0x1f860a(0x1bc))/0x7*(-parseInt(_0x1f860a(0x1a7))/0x8)+parseInt(_0x1f860a(0x1c0))/0x9;if(_0x3a27fd===_0x67ce9f)break;else _0x1dca41['push'](_0x1dca41['shift']());}catch(_0x205bba){_0x1dca41['push'](_0x1dca41['shift']());}}}(_0x173a,0x8443a));const e={'mcpStatus':{'disconnected':_0x9583fd(0x1bf),'connecting':_0x9583fd(0x1b2),'connected':_0x9583fd(0x1a9),'failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x9583fd(0x1b6),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x9583fd(0x1ae),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x9583fd(0x1b3)},'mcpConfig':{'title':_0x9583fd(0x1c3),'description':_0x9583fd(0x1b5),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x9583fd(0x1aa),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x9583fd(0x1a2),'connectionInfo':_0x9583fd(0x1a8),'mcpClientConfig':_0x9583fd(0x1a8),'configInstructions':_0x9583fd(0x1a1),'configStepTitle':_0x9583fd(0x1a0),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x9583fd(0x1b8),'configStep3':_0x9583fd(0x19f),'sessionId':_0x9583fd(0x19d),'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':_0x9583fd(0x1b9),'maxRetries':_0x9583fd(0x1c2),'save':_0x9583fd(0x1a6),'saving':'Saving...','note1':_0x9583fd(0x1c7),'note2':_0x9583fd(0x1a5),'configSaved':_0x9583fd(0x1bd),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x9583fd(0x1be),'univerAiLabel':_0x9583fd(0x1c6),'getStarted':_0x9583fd(0x1c1)},'validation':{'apiKeyRequired':_0x9583fd(0x1a4),'apiKeyTooShort':_0x9583fd(0x1b0),'invalidConfig':_0x9583fd(0x1a3),'invalidApiKey':_0x9583fd(0x1c8)},'connectionStatus':{'disconnected':_0x9583fd(0x1b4),'connecting':_0x9583fd(0x1c9),'connected':'Connected','failed':_0x9583fd(0x1ba),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x9583fd(0x1b1),'sessionOccupied':_0x9583fd(0x1ad),'networkError':_0x9583fd(0x1c4),'maxRetriesExceeded':_0x9583fd(0x1ab)}}};function _0x5a20(_0xc41961,_0x56bc0c){_0xc41961=_0xc41961-0x19d;const _0x173a4e=_0x173a();let _0x5a202e=_0x173a4e[_0xc41961];return _0x5a202e;}function _0x173a(){const _0x5b7837=['Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','3379065arOJkX','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP:\x20Max\x20Retries\x20Exceeded','3iwhVTr','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Connecting...','Click\x20to\x20configure\x20MCP','Disconnected','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20Unauthorized','910788KGLctb','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Configuration\x20Parameters:','Connection\x20Failed','748740eKblLQ','170443dIYxNV','Configuration\x20saved\x20successfully','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP\x20Disconnected','28278378nDdqFW','Get\x20your\x20API\x20key\x20in\x20seconds','Max\x20Retries','MCP\x20Configuration','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','899778gppjRs','Univer\x20AI\x20Console','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Connecting...','Session\x20ID','2584896NSnNnU','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Configuration\x20Steps:','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Enable\x20authentication\x20for\x20secure\x20connections','Invalid\x20configuration','API\x20key\x20is\x20required','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Save\x20Configuration','16ehtihH','MCP\x20Client\x20Configuration','MCP\x20Connected','Enter\x20your\x20API\x20key'];_0x173a=function(){return _0x5b7837;};return _0x173a();}export{e as default};
|
package/lib/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5603d1,_0x49a4c2){const _0x56bab2=_0x1e9c,_0x538b81=_0x5603d1();while(!![]){try{const _0x3e4ed2=parseInt(_0x56bab2(0x80))/0x1*(-parseInt(_0x56bab2(0x87))/0x2)+-parseInt(_0x56bab2(0x7e))/0x3*(-parseInt(_0x56bab2(0x82))/0x4)+parseInt(_0x56bab2(0x8a))/0x5*(-parseInt(_0x56bab2(0x8b))/0x6)+-parseInt(_0x56bab2(0x84))/0x7*(parseInt(_0x56bab2(0x86))/0x8)+-parseInt(_0x56bab2(0x89))/0x9*(-parseInt(_0x56bab2(0x81))/0xa)+-parseInt(_0x56bab2(0x83))/0xb*(-parseInt(_0x56bab2(0x7f))/0xc)+-parseInt(_0x56bab2(0x85))/0xd*(-parseInt(_0x56bab2(0x88))/0xe);if(_0x3e4ed2===_0x49a4c2)break;else _0x538b81['push'](_0x538b81['shift']());}catch(_0x576f1d){_0x538b81['push'](_0x538b81['shift']());}}}(_0x5180,0xc5da1));import _0x376a77 from'./en-US.js';const t=_0x376a77;function _0x5180(){const _0x9367c9=['1987gnqIsA','10ugInMe','4MobEeM','4284269qscvLt','7357quptEf','273YLMGmY','9480xreKGe','422ERkAsI','1313060LMdBxd','8669061cZMUQI','5oFVgwb','5367048tFEHhV','141909fPRSaB','12CVpiNT'];_0x5180=function(){return _0x9367c9;};return _0x5180();}function _0x1e9c(_0x3950be,_0x283a1d){_0x3950be=_0x3950be-0x7e;const _0x5180ef=_0x5180();let _0x1e9ca8=_0x5180ef[_0x3950be];return _0x1e9ca8;}export{t as default};
|
package/lib/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xa89362,_0x433615){const _0x22469f=_0x4e16,_0x98c369=_0xa89362();while(!![]){try{const _0x182296=parseInt(_0x22469f(0x97))/0x1*(parseInt(_0x22469f(0x96))/0x2)+-parseInt(_0x22469f(0x95))/0x3+parseInt(_0x22469f(0x91))/0x4*(-parseInt(_0x22469f(0x93))/0x5)+parseInt(_0x22469f(0x98))/0x6+parseInt(_0x22469f(0x92))/0x7+parseInt(_0x22469f(0x99))/0x8+-parseInt(_0x22469f(0x94))/0x9;if(_0x182296===_0x433615)break;else _0x98c369['push'](_0x98c369['shift']());}catch(_0xc34afb){_0x98c369['push'](_0x98c369['shift']());}}}(_0x899e,0x1f111));import _0x2c8e24 from'./en-US.js';const t=_0x2c8e24;function _0x4e16(_0x2612ef,_0x1d75ab){_0x2612ef=_0x2612ef-0x91;const _0x899e7e=_0x899e();let _0x4e16b6=_0x899e7e[_0x2612ef];return _0x4e16b6;}function _0x899e(){const _0x235c62=['5bhvWCf','1471662UIhCZI','497997GIddjU','441778Iaxaro','1IJnJSg','264750wQhtoZ','1487912WixHPr','338592VdwEHe','632877nBUTAi'];_0x899e=function(){return _0x235c62;};return _0x899e();}export{t as default};
|
package/lib/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2cc7f0,_0x1af231){const _0x51c60=_0x4441,_0x2372c9=_0x2cc7f0();while(!![]){try{const _0x31171d=parseInt(_0x51c60(0x156))/0x1+-parseInt(_0x51c60(0x155))/0x2+parseInt(_0x51c60(0x15a))/0x3*(parseInt(_0x51c60(0x154))/0x4)+parseInt(_0x51c60(0x158))/0x5+-parseInt(_0x51c60(0x159))/0x6+parseInt(_0x51c60(0x152))/0x7*(parseInt(_0x51c60(0x151))/0x8)+-parseInt(_0x51c60(0x157))/0x9*(parseInt(_0x51c60(0x153))/0xa);if(_0x31171d===_0x1af231)break;else _0x2372c9['push'](_0x2372c9['shift']());}catch(_0x936881){_0x2372c9['push'](_0x2372c9['shift']());}}}(_0x6566,0x5cfb7));import _0x458b53 from'./en-US.js';function _0x6566(){const _0xb59625=['119298sKNmRj','16344TugpCi','1917490SQxYUN','2797644CCCPGa','25689NxavfQ','304QFQQBx','107569TZOWPr','1630hzBHBz','48gVASuc','92722LrTaBf'];_0x6566=function(){return _0xb59625;};return _0x6566();}const t=_0x458b53;function _0x4441(_0x1bb9a1,_0x1c00b5){_0x1bb9a1=_0x1bb9a1-0x151;const _0x656698=_0x6566();let _0x44414f=_0x656698[_0x1bb9a1];return _0x44414f;}export{t as default};
|
package/lib/locale/ja-JP.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x31e151=_0x3f18;(function(_0x522534,_0xfcfbcb){const _0x22e1e7=_0x3f18,_0x3b2a20=_0x522534();while(!![]){try{const _0x2c980c=parseInt(_0x22e1e7(0x1d1))/0x1*(parseInt(_0x22e1e7(0x1d5))/0x2)+parseInt(_0x22e1e7(0x1cd))/0x3*(parseInt(_0x22e1e7(0x1e5))/0x4)+parseInt(_0x22e1e7(0x1c6))/0x5*(-parseInt(_0x22e1e7(0x1dd))/0x6)+-parseInt(_0x22e1e7(0x1e0))/0x7+-parseInt(_0x22e1e7(0x1cb))/0x8*(parseInt(_0x22e1e7(0x1cc))/0x9)+-parseInt(_0x22e1e7(0x1bb))/0xa+parseInt(_0x22e1e7(0x1b6))/0xb;if(_0x2c980c===_0xfcfbcb)break;else _0x3b2a20['push'](_0x3b2a20['shift']());}catch(_0x337fec){_0x3b2a20['push'](_0x3b2a20['shift']());}}}(_0x103a,0x4d8f5));const e={'mcpStatus':{'disconnected':'MCP\x20未接続','connecting':_0x31e151(0x1e2),'connected':_0x31e151(0x1ba),'failed':'MCP\x20接続失敗','retrying':'MCP\x20再試行中...','unknown':_0x31e151(0x1b7),'unauthorized':_0x31e151(0x1d8),'sessionOccupied':_0x31e151(0x1db),'networkError':_0x31e151(0x1be),'maxRetriesExceeded':_0x31e151(0x1b8),'clickToConnect':'クリックしてMCPに接続','clickToConfigure':_0x31e151(0x1d7)},'mcpConfig':{'title':_0x31e151(0x1ca),'description':_0x31e151(0x1d0),'apiKey':_0x31e151(0x1bd),'apiKeyPlaceholder':_0x31e151(0x1c9),'apiKeyHint':_0x31e151(0x1c2),'enableAuth':_0x31e151(0x1c3),'enableAuthHint':_0x31e151(0x1de),'connectionInfo':'MCPクライアント設定','mcpClientConfig':'MCPクライアント設定','configInstructions':'MCPクライアントの設定に次の設定を追加してください:','configStepTitle':_0x31e151(0x1c0),'configStep1':'以下のJSON設定をコピー','configStep2':'MCPクライアントの設定ファイルに設定を追加','configStep3':_0x31e151(0x1e4),'sessionId':_0x31e151(0x1d3),'sessionIdDescription':'一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','authorizationDescription':_0x31e151(0x1b4),'configParameters':_0x31e151(0x1cf),'maxRetries':_0x31e151(0x1df),'save':'設定を保存','saving':_0x31e151(0x1d9),'note1':_0x31e151(0x1c7),'note2':'APIキーはローカルストレージに安全に保存されます','configSaved':'設定が正常に保存されました','configError':'設定の保存に失敗しました','apiApplyInfo':{'title':_0x31e151(0x1c8),'description':_0x31e151(0x1d4),'univerAiLabel':_0x31e151(0x1e3),'getStarted':_0x31e151(0x1d2)},'validation':{'apiKeyRequired':_0x31e151(0x1ce),'apiKeyTooShort':_0x31e151(0x1b9),'invalidConfig':'無効な設定','invalidApiKey':_0x31e151(0x1d6)},'connectionStatus':{'disconnected':_0x31e151(0x1da),'connecting':_0x31e151(0x1bf),'connected':_0x31e151(0x1c5),'failed':_0x31e151(0x1bc),'retrying':_0x31e151(0x1c4)},'connectionError':{'unauthorized':_0x31e151(0x1b5),'sessionOccupied':_0x31e151(0x1c1),'networkError':_0x31e151(0x1dc),'maxRetriesExceeded':_0x31e151(0x1e1)}}};function _0x3f18(_0x48240e,_0x47e62b){_0x48240e=_0x48240e-0x1b4;const _0x103ad1=_0x103a();let _0x3f181c=_0x103ad1[_0x48240e];return _0x3f181c;}function _0x103a(){const _0x859a97=['認証を有効にする','再試行中...','接続済み','5515vrtELh','設定の変更は直ちに有効になります','APIキーとは?','APIキーを入力してください','MCP設定','8tNAyJE','4126401kOOicm','9rFQuex','APIキーは必須です','設定パラメータ:','MCPを設定してAIでスプレッドシートを操作','282134OKqEZA','数秒でAPIキーを取得','セッションID','APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','4SBwpye','無効なAPIキーです。キーが正しいか確認してください','クリックしてMCPを設定','MCP:\x20認証されていません','保存中...','未接続','MCP:\x20セッションIDが使用中','ネットワーク接続エラー。インターネット接続を確認してください','3018zaKCLl','セキュアな接続のために認証を有効にする','最大再試行回数','892899yXwENF','最大再試行回数を超過しました。後でもう一度お試しください','MCP\x20接続中...','Univer\x20AIコンソール','MCPクライアントを再起動して設定を適用','841004EClbAR','Bearerプレフィックス付きのAPIキー。','認証に失敗しました。APIキーを確認してください','9155894eczTYB','MCP\x20不明な状態','MCP:\x20最大再試行回数を超過','APIキーは10文字以上である必要があります','MCP\x20接続済み','5688350jczfyt','接続失敗','APIキー','MCP:\x20ネットワークエラー','接続中...','設定手順:','セッションIDが現在使用中です。後でもう一度お試しください','APIキーはこのブラウザのローカルに保存されます'];_0x103a=function(){return _0x859a97;};return _0x103a();}export{e as default};
|
package/lib/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x5ad125=_0x2195;(function(_0x2fbf6d,_0x4344f1){const _0x2a4a3f=_0x2195,_0x483ed3=_0x2fbf6d();while(!![]){try{const _0x2ed0b8=parseInt(_0x2a4a3f(0xf2))/0x1+parseInt(_0x2a4a3f(0xef))/0x2*(-parseInt(_0x2a4a3f(0xe5))/0x3)+-parseInt(_0x2a4a3f(0xfe))/0x4+-parseInt(_0x2a4a3f(0xeb))/0x5*(parseInt(_0x2a4a3f(0xf3))/0x6)+parseInt(_0x2a4a3f(0xd9))/0x7+-parseInt(_0x2a4a3f(0xed))/0x8*(-parseInt(_0x2a4a3f(0xfd))/0x9)+parseInt(_0x2a4a3f(0xda))/0xa*(parseInt(_0x2a4a3f(0xf5))/0xb);if(_0x2ed0b8===_0x4344f1)break;else _0x483ed3['push'](_0x483ed3['shift']());}catch(_0x1d162e){_0x483ed3['push'](_0x483ed3['shift']());}}}(_0x3a80,0xa0776));function _0x2195(_0x31657a,_0x3178d5){_0x31657a=_0x31657a-0xce;const _0x3a8035=_0x3a80();let _0x219530=_0x3a8035[_0x31657a];return _0x219530;}const e={'mcpStatus':{'disconnected':_0x5ad125(0xd1),'connecting':_0x5ad125(0x100),'connected':'MCP\x20연결됨','failed':_0x5ad125(0xd3),'retrying':_0x5ad125(0xd4),'unknown':_0x5ad125(0xf4),'unauthorized':_0x5ad125(0xcf),'sessionOccupied':'MCP:\x20세션\x20ID\x20사용\x20중','networkError':_0x5ad125(0xdc),'maxRetriesExceeded':_0x5ad125(0xdf),'clickToConnect':'클릭하여\x20MCP\x20연결','clickToConfigure':'클릭하여\x20MCP\x20설정'},'mcpConfig':{'title':_0x5ad125(0xdb),'description':'AI를\x20사용하여\x20스프레드시트를\x20조작하도록\x20MCP\x20설정','apiKey':_0x5ad125(0xe6),'apiKeyPlaceholder':_0x5ad125(0xe4),'apiKeyHint':_0x5ad125(0xe1),'enableAuth':_0x5ad125(0xea),'enableAuthHint':_0x5ad125(0xec),'connectionInfo':_0x5ad125(0xf1),'mcpClientConfig':_0x5ad125(0xf1),'configInstructions':_0x5ad125(0xff),'configStepTitle':_0x5ad125(0xe2),'configStep1':_0x5ad125(0xfc),'configStep2':_0x5ad125(0xd5),'configStep3':'MCP\x20클라이언트를\x20다시\x20시작하여\x20설정\x20적용','sessionId':'세션\x20ID','sessionIdDescription':'고유\x20세션\x20식별자입니다.\x20여러\x20Univer\x20인스턴스가\x20열려\x20있는\x20경우,\x20연결\x20충돌을\x20방지하기\x20위해\x20각\x20인스턴스는\x20서로\x20다른\x20session_id를\x20사용해야\x20합니다.','authorizationDescription':_0x5ad125(0xd0),'configParameters':'설정\x20매개변수:','maxRetries':_0x5ad125(0xde),'save':_0x5ad125(0xd6),'saving':_0x5ad125(0xdd),'note1':_0x5ad125(0xce),'note2':_0x5ad125(0xf9),'configSaved':_0x5ad125(0xd7),'configError':_0x5ad125(0xe0),'apiApplyInfo':{'title':_0x5ad125(0xee),'description':_0x5ad125(0xe8),'univerAiLabel':_0x5ad125(0xfb),'getStarted':_0x5ad125(0xe7)},'validation':{'apiKeyRequired':'API\x20키는\x20필수입니다','apiKeyTooShort':_0x5ad125(0xe9),'invalidConfig':'유효하지\x20않은\x20설정','invalidApiKey':'유효하지\x20않은\x20API\x20키입니다.\x20키가\x20올바른지\x20확인하세요'},'connectionStatus':{'disconnected':_0x5ad125(0xe3),'connecting':_0x5ad125(0xd2),'connected':'연결됨','failed':_0x5ad125(0xf8),'retrying':_0x5ad125(0xfa)},'connectionError':{'unauthorized':_0x5ad125(0xf7),'sessionOccupied':_0x5ad125(0xf6),'networkError':_0x5ad125(0xd8),'maxRetriesExceeded':_0x5ad125(0xf0)}}};export{e as default};function _0x3a80(){const _0x5c0175=['API\x20키는\x20로컬\x20스토리지에\x20안전하게\x20저장됩니다','재시도\x20중...','Univer\x20AI\x20콘솔','아래\x20JSON\x20설정\x20복사','684cxGsFo','4835132RIIszx','MCP\x20클라이언트\x20설정에\x20다음\x20구성을\x20추가하세요:','MCP\x20연결\x20중...','설정\x20변경\x20사항은\x20즉시\x20적용됩니다','MCP:\x20인증되지\x20않음','Bearer\x20접두사가\x20있는\x20API\x20키.','MCP\x20연결\x20끊김','연결\x20중...','MCP\x20연결\x20실패','MCP\x20재시도\x20중...','MCP\x20클라이언트\x20설정\x20파일에\x20구성\x20추가','설정\x20저장','설정이\x20성공적으로\x20저장되었습니다','네트워크\x20연결\x20오류.\x20인터넷\x20연결을\x20확인하세요','4725273mWujHC','20211450xxfoqE','MCP\x20설정','MCP:\x20네트워크\x20오류','저장\x20중...','최대\x20재시도\x20횟수','MCP:\x20최대\x20재시도\x20횟수\x20초과','설정\x20저장\x20실패','API\x20키는\x20이\x20브라우저의\x20로컬에\x20저장됩니다','설정\x20단계:','연결\x20끊김','API\x20키를\x20입력하세요','165WwcUnz','API\x20키','몇\x20초\x20만에\x20API\x20키\x20발급받기','API\x20키는\x20Univer\x20MCP\x20서버에\x20연결하여\x20AI로\x20스프레드시트를\x20조작할\x20수\x20있게\x20해줍니다.\x20콘솔에서\x20API\x20키를\x20발급받아\x20시작하세요.','API\x20키는\x2010자\x20이상이어야\x20합니다','인증\x20활성화','7765YwKdmq','보안\x20연결을\x20위해\x20인증\x20활성화','13552awUWUZ','API\x20키란\x20무엇인가요?','46792TNYicQ','최대\x20재시도\x20횟수를\x20초과했습니다.\x20나중에\x20다시\x20시도하세요','MCP\x20클라이언트\x20설정','484758zWnNEo','606ReLXFn','MCP\x20알\x20수\x20없는\x20상태','11UaYIpR','세션\x20ID가\x20현재\x20사용\x20중입니다.\x20나중에\x20다시\x20시도하세요','인증\x20실패.\x20API\x20키를\x20확인하세요','연결\x20실패'];_0x3a80=function(){return _0x5c0175;};return _0x3a80();}
|
package/lib/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0xb64b(_0x38c5f8,_0x4fac42){_0x38c5f8=_0x38c5f8-0xd1;const _0x5e2a93=_0x5e2a();let _0xb64be5=_0x5e2a93[_0x38c5f8];return _0xb64be5;}(function(_0x352591,_0x513bce){const _0x2af0b2=_0xb64b,_0x134319=_0x352591();while(!![]){try{const _0xfadf5a=-parseInt(_0x2af0b2(0xd5))/0x1*(-parseInt(_0x2af0b2(0xd8))/0x2)+parseInt(_0x2af0b2(0xd3))/0x3*(parseInt(_0x2af0b2(0xd7))/0x4)+parseInt(_0x2af0b2(0xda))/0x5*(-parseInt(_0x2af0b2(0xd4))/0x6)+-parseInt(_0x2af0b2(0xd6))/0x7+parseInt(_0x2af0b2(0xd1))/0x8+parseInt(_0x2af0b2(0xd9))/0x9+-parseInt(_0x2af0b2(0xd2))/0xa;if(_0xfadf5a===_0x513bce)break;else _0x134319['push'](_0x134319['shift']());}catch(_0x3f9032){_0x134319['push'](_0x134319['shift']());}}}(_0x5e2a,0x7d007));function _0x5e2a(){const _0xbe4fb=['384ZaAYAm','101447JavvEr','3449243BViYYH','288WNLzin','12APkbjv','4294206mwQGGg','42650EZRcRK','6997688qHlbTM','5354190HDPexe','5232lqjsWW'];_0x5e2a=function(){return _0xbe4fb;};return _0x5e2a();}import _0x5b1fbf from'./en-US.js';const t=_0x5b1fbf;export{t as default};
|
package/lib/locale/sk-SK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x10cc93=_0x57c2;function _0x16d0(){const _0x18c322=['Povoliť\x20overenie\x20pre\x20bezpečné\x20pripojenia','623tPVCNl','MCP:\x20Sieťová\x20chyba','Pridajte\x20nasledujúcu\x20konfiguráciu\x20do\x20nastavení\x20klienta\x20MCP:','Povoliť\x20overenie','4735065OHCwHj','Chyba\x20sieťového\x20pripojenia.\x20Skontrolujte\x20svoje\x20internetové\x20pripojenie','Neplatný\x20API\x20kľúč,\x20skontrolujte,\x20či\x20je\x20správny','Zadajte\x20svoj\x20API\x20kľúč','Získajte\x20svoj\x20API\x20kľúč\x20za\x20pár\x20sekúnd','Uložiť\x20konfiguráciu','MCP\x20pripojené','MCP\x20odpojené','4230916FFnKfH','MCP:\x20Neautorizované','Maximálny\x20počet\x20pokusov','748774BiSIsU','API\x20kľúč\x20je\x20povinný','954640ncJYJr','API\x20kľúč\x20musí\x20mať\x20aspoň\x2010\x20znakov','Pripája\x20sa...','51330dVeYnC','MCP:\x20Prekročený\x20počet\x20pokusov','4645680CQsIUz','Pripojené','API\x20kľúč','MCP:\x20ID\x20relácie\x20je\x20obsadené','Váš\x20API\x20kľúč\x20sa\x20uloží\x20lokálne\x20v\x20tomto\x20prehliadači','Čo\x20je\x20API\x20kľúč?','Neplatná\x20konfigurácia','Reštartujte\x20klienta\x20MCP,\x20aby\x20sa\x20konfigurácia\x20použila','Konfigurácia\x20klienta\x20MCP','ID\x20relácie','ID\x20relácie\x20je\x20momentálne\x20obsadené,\x20skúste\x20neskôr','Kliknite\x20na\x20pripojenie\x20MCP','Parametre\x20konfigurácie:','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.','4064739vjLTxG','Skopírujte\x20nižšie\x20uvedenú\x20konfiguráciu\x20JSON','Maximálny\x20počet\x20pokusov\x20bol\x20prekročený.\x20Skúste\x20neskôr','Konfigurácia\x20bola\x20úspešne\x20uložená','Nepodarilo\x20sa\x20uložiť\x20konfiguráciu','Pripojenie\x20zlyhalo','Univer\x20AI\x20konzola','Pripojenie\x20MCP\x20zlyhalo','Odpojené','Skúša\x20sa\x20znova...','Nakonfigurujte\x20MCP\x20na\x20používanie\x20AI\x20pri\x20práci\x20s\x20tabuľkami'];_0x16d0=function(){return _0x18c322;};return _0x16d0();}(function(_0x1cccf5,_0x5b3cbd){const _0x45e248=_0x57c2,_0x520b69=_0x1cccf5();while(!![]){try{const _0x5ef6c7=parseInt(_0x45e248(0xea))/0x1+-parseInt(_0x45e248(0xe8))/0x2+parseInt(_0x45e248(0xfd))/0x3+parseInt(_0x45e248(0xe5))/0x4+-parseInt(_0x45e248(0xdd))/0x5+-parseInt(_0x45e248(0xed))/0x6*(parseInt(_0x45e248(0xd9))/0x7)+-parseInt(_0x45e248(0xef))/0x8;if(_0x5ef6c7===_0x5b3cbd)break;else _0x520b69['push'](_0x520b69['shift']());}catch(_0x147108){_0x520b69['push'](_0x520b69['shift']());}}}(_0x16d0,0xabd21));const e={'mcpStatus':{'disconnected':_0x10cc93(0xe4),'connecting':'MCP\x20sa\x20pripája...','connected':_0x10cc93(0xe3),'failed':_0x10cc93(0xd4),'retrying':'MCP\x20opakuje\x20pokus...','unknown':'MCP\x20neznámy\x20stav','unauthorized':_0x10cc93(0xe6),'sessionOccupied':_0x10cc93(0xf2),'networkError':_0x10cc93(0xda),'maxRetriesExceeded':_0x10cc93(0xee),'clickToConnect':_0x10cc93(0xfa),'clickToConfigure':'Kliknite\x20na\x20konfiguráciu\x20MCP'},'mcpConfig':{'title':'Konfigurácia\x20MCP','description':_0x10cc93(0xd7),'apiKey':_0x10cc93(0xf1),'apiKeyPlaceholder':_0x10cc93(0xe0),'apiKeyHint':_0x10cc93(0xf3),'enableAuth':_0x10cc93(0xdc),'enableAuthHint':_0x10cc93(0xd8),'connectionInfo':_0x10cc93(0xf7),'mcpClientConfig':_0x10cc93(0xf7),'configInstructions':_0x10cc93(0xdb),'configStepTitle':'Kroky\x20konfigurácie:','configStep1':_0x10cc93(0xfe),'configStep2':'Pridajte\x20konfiguráciu\x20do\x20súboru\x20nastavení\x20klienta\x20MCP','configStep3':_0x10cc93(0xf6),'sessionId':_0x10cc93(0xf8),'sessionIdDescription':'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.','authorizationDescription':'API\x20kľúč\x20s\x20prefixom\x20Bearer.','configParameters':_0x10cc93(0xfb),'maxRetries':_0x10cc93(0xe7),'save':_0x10cc93(0xe2),'saving':'Ukladá\x20sa...','note1':'Zmeny\x20konfigurácie\x20sa\x20prejavia\x20okamžite','note2':'Váš\x20API\x20kľúč\x20je\x20bezpečne\x20uložený\x20v\x20lokálnom\x20úložisku','configSaved':_0x10cc93(0x100),'configError':_0x10cc93(0xd1),'apiApplyInfo':{'title':_0x10cc93(0xf4),'description':_0x10cc93(0xfc),'univerAiLabel':_0x10cc93(0xd3),'getStarted':_0x10cc93(0xe1)},'validation':{'apiKeyRequired':_0x10cc93(0xe9),'apiKeyTooShort':_0x10cc93(0xeb),'invalidConfig':_0x10cc93(0xf5),'invalidApiKey':_0x10cc93(0xdf)},'connectionStatus':{'disconnected':_0x10cc93(0xd5),'connecting':_0x10cc93(0xec),'connected':_0x10cc93(0xf0),'failed':_0x10cc93(0xd2),'retrying':_0x10cc93(0xd6)},'connectionError':{'unauthorized':'Overenie\x20zlyhalo,\x20skontrolujte\x20svoj\x20API\x20kľúč','sessionOccupied':_0x10cc93(0xf9),'networkError':_0x10cc93(0xde),'maxRetriesExceeded':_0x10cc93(0xff)}}};function _0x57c2(_0x4b2523,_0x3f2fb7){_0x4b2523=_0x4b2523-0xd1;const _0x16d005=_0x16d0();let _0x57c27a=_0x16d005[_0x4b2523];return _0x57c27a;}export{e as default};
|
package/lib/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x1f47c0=_0x1715;function _0x2baa(){const _0x122f29=['Đang\x20thử\x20lại...','Bật\x20xác\x20thực\x20cho\x20các\x20kết\x20nối\x20an\x20toàn','Thêm\x20cấu\x20hình\x20sau\x20vào\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn:','Cấu\x20hình\x20MCP','MCP:\x20Lỗi\x20mạng','Khóa\x20API','Bảng\x20điều\x20khiển\x20Univer\x20AI','MCP:\x20ID\x20phiên\x20đã\x20bị\x20chiếm\x20dụng','MCP\x20Kết\x20nối\x20thất\x20bại','Đang\x20lưu...','Khóa\x20API\x20là\x20gì?','971082bRRJdb','807324TmiLGE','Khởi\x20động\x20lại\x20máy\x20khách\x20MCP\x20của\x20bạn\x20để\x20áp\x20dụng\x20cấu\x20hình','449364jAyIUL','33tQflkw','Khóa\x20API\x20của\x20bạn\x20được\x20lưu\x20trữ\x20an\x20toàn\x20trong\x20bộ\x20nhớ\x20cục\x20bộ','1409755ndyoqU','Khóa\x20API\x20của\x20bạn\x20sẽ\x20được\x20lưu\x20trữ\x20cục\x20bộ\x20trong\x20trình\x20duyệt\x20này','MCP\x20Đang\x20thử\x20lại...','Số\x20lần\x20thử\x20lại\x20tối\x20đa','Nhấp\x20để\x20cấu\x20hình\x20MCP','Cấu\x20hình\x20không\x20hợp\x20lệ','Khóa\x20API\x20phải\x20dài\x20ít\x20nhất\x2010\x20ký\x20tự','Đã\x20kết\x20nối','Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa.\x20Vui\x20lòng\x20thử\x20lại\x20sau','Bật\x20xác\x20thực','ID\x20phiên','Thêm\x20cấu\x20hình\x20vào\x20tệp\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn','Thay\x20đổi\x20cấu\x20hình\x20sẽ\x20có\x20hiệu\x20lực\x20ngay\x20lập\x20tức','Tham\x20số\x20cấu\x20hình:','MCP:\x20Không\x20được\x20phép','Khóa\x20API\x20không\x20hợp\x20lệ,\x20vui\x20lòng\x20kiểm\x20tra\x20xem\x20khóa\x20có\x20chính\x20xác\x20không','Các\x20bước\x20cấu\x20hình:','Nhập\x20khóa\x20API\x20của\x20bạn','Xác\x20thực\x20thất\x20bại,\x20vui\x20lòng\x20kiểm\x20tra\x20khóa\x20API\x20của\x20bạn','4382rKAwKE','Lưu\x20cấu\x20hình\x20thất\x20bại','Yêu\x20cầu\x20khóa\x20API','Cấu\x20hình\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính','357960iwKdkL','MCP\x20Đang\x20kết\x20nối...','Định\x20danh\x20phiên\x20duy\x20nhất.\x20Nếu\x20bạn\x20mở\x20nhiều\x20phiên\x20bản\x20Univer,\x20mỗi\x20phiên\x20bản\x20phải\x20sử\x20dụng\x20một\x20session_id\x20khác\x20nhau\x20để\x20tránh\x20xung\x20đột\x20kết\x20nối.','Đang\x20kết\x20nối...','3709000FARGnz','Session-id\x20hiện\x20đang\x20bị\x20chiếm\x20dụng,\x20vui\x20lòng\x20thử\x20lại\x20sau','Cấu\x20hình\x20máy\x20khách\x20MCP','MCP\x20Trạng\x20thái\x20không\x20xác\x20định','Khóa\x20API\x20với\x20tiền\x20tố\x20Bearer.','Lưu\x20cấu\x20hình'];_0x2baa=function(){return _0x122f29;};return _0x2baa();}function _0x1715(_0x1b3ed5,_0x58bf84){_0x1b3ed5=_0x1b3ed5-0xed;const _0x2baa2e=_0x2baa();let _0x1715a3=_0x2baa2e[_0x1b3ed5];return _0x1715a3;}(function(_0x3b6a72,_0x36b0cc){const _0x2ed69a=_0x1715,_0x60218e=_0x3b6a72();while(!![]){try{const _0x1b342c=-parseInt(_0x2ed69a(0x111))/0x1*(-parseInt(_0x2ed69a(0xf4))/0x2)+-parseInt(_0x2ed69a(0x110))/0x3+parseInt(_0x2ed69a(0xf8))/0x4+-parseInt(_0x2ed69a(0x113))/0x5+-parseInt(_0x2ed69a(0x10d))/0x6+parseInt(_0x2ed69a(0x10e))/0x7+parseInt(_0x2ed69a(0xfc))/0x8;if(_0x1b342c===_0x36b0cc)break;else _0x60218e['push'](_0x60218e['shift']());}catch(_0x3f8705){_0x60218e['push'](_0x60218e['shift']());}}}(_0x2baa,0x23edc));const e={'mcpStatus':{'disconnected':'MCP\x20Đã\x20ngắt\x20kết\x20nối','connecting':_0x1f47c0(0xf9),'connected':'MCP\x20Đã\x20kết\x20nối','failed':_0x1f47c0(0x10a),'retrying':_0x1f47c0(0x115),'unknown':_0x1f47c0(0xff),'unauthorized':_0x1f47c0(0xef),'sessionOccupied':_0x1f47c0(0x109),'networkError':_0x1f47c0(0x106),'maxRetriesExceeded':'MCP:\x20Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa','clickToConnect':'Nhấp\x20để\x20kết\x20nối\x20MCP','clickToConfigure':_0x1f47c0(0x117)},'mcpConfig':{'title':_0x1f47c0(0x105),'description':_0x1f47c0(0xf7),'apiKey':_0x1f47c0(0x107),'apiKeyPlaceholder':_0x1f47c0(0xf2),'apiKeyHint':_0x1f47c0(0x114),'enableAuth':_0x1f47c0(0x11c),'enableAuthHint':_0x1f47c0(0x103),'connectionInfo':_0x1f47c0(0xfe),'mcpClientConfig':'Cấu\x20hình\x20máy\x20khách\x20MCP','configInstructions':_0x1f47c0(0x104),'configStepTitle':_0x1f47c0(0xf1),'configStep1':'Sao\x20chép\x20cấu\x20hình\x20JSON\x20bên\x20dưới','configStep2':_0x1f47c0(0x11e),'configStep3':_0x1f47c0(0x10f),'sessionId':_0x1f47c0(0x11d),'sessionIdDescription':_0x1f47c0(0xfa),'authorizationDescription':_0x1f47c0(0x100),'configParameters':_0x1f47c0(0xee),'maxRetries':_0x1f47c0(0x116),'save':_0x1f47c0(0x101),'saving':_0x1f47c0(0x10b),'note1':_0x1f47c0(0xed),'note2':_0x1f47c0(0x112),'configSaved':'Cấu\x20hình\x20đã\x20được\x20lưu\x20thành\x20công','configError':_0x1f47c0(0xf5),'apiApplyInfo':{'title':_0x1f47c0(0x10c),'description':'Khóa\x20API\x20kết\x20nối\x20bạn\x20với\x20Máy\x20chủ\x20Univer\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính.\x20Nhận\x20khóa\x20API\x20của\x20bạn\x20từ\x20bảng\x20điều\x20khiển\x20của\x20chúng\x20tôi\x20để\x20bắt\x20đầu.','univerAiLabel':_0x1f47c0(0x108),'getStarted':'Nhận\x20khóa\x20API\x20của\x20bạn\x20trong\x20vài\x20giây'},'validation':{'apiKeyRequired':_0x1f47c0(0xf6),'apiKeyTooShort':_0x1f47c0(0x119),'invalidConfig':_0x1f47c0(0x118),'invalidApiKey':_0x1f47c0(0xf0)},'connectionStatus':{'disconnected':'Đã\x20ngắt\x20kết\x20nối','connecting':_0x1f47c0(0xfb),'connected':_0x1f47c0(0x11a),'failed':'Kết\x20nối\x20thất\x20bại','retrying':_0x1f47c0(0x102)},'connectionError':{'unauthorized':_0x1f47c0(0xf3),'sessionOccupied':_0x1f47c0(0xfd),'networkError':'Lỗi\x20kết\x20nối\x20mạng.\x20Vui\x20lòng\x20kiểm\x20tra\x20kết\x20nối\x20internet\x20của\x20bạn','maxRetriesExceeded':_0x1f47c0(0x11b)}}};export{e as default};
|
package/lib/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x3314(_0x818e13,_0x1f22b8){_0x818e13=_0x818e13-0x122;const _0x2e681d=_0x2e68();let _0x331438=_0x2e681d[_0x818e13];return _0x331438;}const _0x3568a7=_0x3314;function _0x2e68(){const _0x1e3569=['超出最大重试次数,请稍后再试','点击配置\x20MCP','重连中...','配置无效','API\x20密钥长度至少需要\x2010\x20位','MCP\x20状态未知','MCP:\x20超出最大重试次数','1189056jHKxnc','已连接','连接失败','API\x20密钥无效,请检查密钥是否正确','将配置添加到您的\x20MCP\x20客户端设置文件中','609504pZCLMo','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','复制以下\x20JSON\x20配置','保存配置','464438Axdwdv','您的\x20API\x20密钥安全存储在本地存储中','配置参数:','配置保存成功','会话ID','5193825GJVobI','点击连接\x20MCP','配置\x20MCP\x20使用\x20AI\x20操作电子表格','MCP\x20客户端配置','权限验证失败,请检查您的\x20API\x20密钥','120310bhXRBU','网络连接错误,请检查您的网络连接','配置步骤:','MCP\x20已断开','MCP\x20连接失败','API\x20密钥不能为空','1081775cNWgwp','重启您的\x20MCP\x20客户端以使配置生效','您的\x20API\x20密钥将在此浏览器中本地存储','761404fvPuXo','API\x20密钥','MCP:\x20会话\x20ID\x20已被占用','几秒钟内获取您的\x20API\x20密钥','什么是\x20API\x20密钥?','将以下配置添加到您的\x20MCP\x20客户端设置中:','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','带有\x20Bearer\x20前缀的\x20API\x20密钥。','请输入您的\x20API\x20密钥','最大重试次数'];_0x2e68=function(){return _0x1e3569;};return _0x2e68();}(function(_0x26bab0,_0x5b622e){const _0x9dd040=_0x3314,_0x233af6=_0x26bab0();while(!![]){try{const _0x5aac0d=parseInt(_0x9dd040(0x143))/0x1+-parseInt(_0x9dd040(0x139))/0x2+-parseInt(_0x9dd040(0x135))/0x3+-parseInt(_0x9dd040(0x14c))/0x4+-parseInt(_0x9dd040(0x149))/0x5+parseInt(_0x9dd040(0x130))/0x6+parseInt(_0x9dd040(0x13e))/0x7;if(_0x5aac0d===_0x5b622e)break;else _0x233af6['push'](_0x233af6['shift']());}catch(_0x2c194f){_0x233af6['push'](_0x233af6['shift']());}}}(_0x2e68,0x35500));const e={'mcpStatus':{'disconnected':_0x3568a7(0x146),'connecting':'MCP\x20连接中...','connected':'MCP\x20已连接','failed':_0x3568a7(0x147),'retrying':'MCP\x20重连中...','unknown':_0x3568a7(0x12e),'unauthorized':'MCP:\x20未授权','sessionOccupied':_0x3568a7(0x14e),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x3568a7(0x12f),'clickToConnect':_0x3568a7(0x13f),'clickToConfigure':_0x3568a7(0x12a)},'mcpConfig':{'title':'MCP\x20配置','description':_0x3568a7(0x140),'apiKey':_0x3568a7(0x14d),'apiKeyPlaceholder':_0x3568a7(0x127),'apiKeyHint':_0x3568a7(0x14b),'enableAuth':'启用身份验证','enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x3568a7(0x141),'mcpClientConfig':_0x3568a7(0x141),'configInstructions':_0x3568a7(0x124),'configStepTitle':_0x3568a7(0x145),'configStep1':_0x3568a7(0x137),'configStep2':_0x3568a7(0x134),'configStep3':_0x3568a7(0x14a),'sessionId':_0x3568a7(0x13d),'sessionIdDescription':_0x3568a7(0x136),'authorizationDescription':_0x3568a7(0x126),'configParameters':_0x3568a7(0x13b),'maxRetries':_0x3568a7(0x128),'save':_0x3568a7(0x138),'saving':'保存中...','note1':'配置更改将立即生效','note2':_0x3568a7(0x13a),'configSaved':_0x3568a7(0x13c),'configError':'配置保存失败','apiApplyInfo':{'title':_0x3568a7(0x123),'description':_0x3568a7(0x125),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0x3568a7(0x122)},'validation':{'apiKeyRequired':_0x3568a7(0x148),'apiKeyTooShort':_0x3568a7(0x12d),'invalidConfig':_0x3568a7(0x12c),'invalidApiKey':_0x3568a7(0x133)},'connectionStatus':{'disconnected':'未连接','connecting':'连接中...','connected':_0x3568a7(0x131),'failed':_0x3568a7(0x132),'retrying':_0x3568a7(0x12b)},'connectionError':{'unauthorized':_0x3568a7(0x142),'sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':_0x3568a7(0x144),'maxRetriesExceeded':_0x3568a7(0x129)}}};export{e as default};
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x30e3(_0x9e7519,_0x3bc82c){_0x9e7519=_0x9e7519-0x186;const _0x1161fe=_0x1161();let _0x30e3ab=_0x1161fe[_0x9e7519];return _0x30e3ab;}(function(_0x251b2c,_0x2425ed){const _0x5a202c=_0x30e3,_0x2b9955=_0x251b2c();while(!![]){try{const _0x2d5c6f=parseInt(_0x5a202c(0x18d))/0x1+-parseInt(_0x5a202c(0x189))/0x2+-parseInt(_0x5a202c(0x18e))/0x3*(parseInt(_0x5a202c(0x186))/0x4)+parseInt(_0x5a202c(0x188))/0x5*(-parseInt(_0x5a202c(0x187))/0x6)+parseInt(_0x5a202c(0x18b))/0x7+-parseInt(_0x5a202c(0x18c))/0x8+-parseInt(_0x5a202c(0x18a))/0x9;if(_0x2d5c6f===_0x2425ed)break;else _0x2b9955['push'](_0x2b9955['shift']());}catch(_0x39886e){_0x2b9955['push'](_0x2b9955['shift']());}}}(_0x1161,0x9d46d));import _0x4efa63 from'./en-US.js';const t=_0x4efa63;export{t as default};function _0x1161(){const _0x240a8f=['347376uHSsYa','665217vraMAF','7591143ASitZw','6412976PGCqYx','867417utDlQF','9381oPWxoM','128pYVRUQ','12VJZwbX','395935PXjejo'];_0x1161=function(){return _0x240a8f;};return _0x1161();}
|