@univerjs-pro/mcp-ui 0.10.11 → 0.10.12
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/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.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/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.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/ko-KR.js +1 -1
- package/lib/locale/ru-RU.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/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.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
|
-
var _0x4d8f51=_0x19b5;(function(_0x300f26,_0x1cd1c7){var _0x48561f=_0x19b5,_0x23860a=_0x300f26();while(!![]){try{var _0x47a6c8=parseInt(_0x48561f(0x145))/0x1*(-parseInt(_0x48561f(0x17c))/0x2)+-parseInt(_0x48561f(0x1fc))/0x3+parseInt(_0x48561f(0x1a9))/0x4+-parseInt(_0x48561f(0x13f))/0x5*(-parseInt(_0x48561f(0x14b))/0x6)+-parseInt(_0x48561f(0x19b))/0x7*(parseInt(_0x48561f(0x121))/0x8)+-parseInt(_0x48561f(0x1d9))/0x9*(parseInt(_0x48561f(0x1a7))/0xa)+parseInt(_0x48561f(0x19e))/0xb;if(_0x47a6c8===_0x1cd1c7)break;else _0x23860a['push'](_0x23860a['shift']());}catch(_0x500b6a){_0x23860a['push'](_0x23860a['shift']());}}}(_0x4d38,0xa899b));var we=Object[_0x4d8f51(0xe6)],Ee=(_0x2f08b2,_0x44fd16,_0x442ceb)=>_0x44fd16 in _0x2f08b2?we(_0x2f08b2,_0x44fd16,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x442ceb}):_0x2f08b2[_0x44fd16]=_0x442ceb,S=(_0x2b3014,_0x2f504a,_0x31b5bc)=>Ee(_0x2b3014,typeof _0x2f504a!='symbol'?_0x2f504a+'':_0x2f504a,_0x31b5bc);import{LocaleService as _0x4e1c5e,Inject as _0x3b0792,Injector as _0x411d26,IConfigService as _0x1ac548,ILocalStorageService as _0xc9fca9,ILogService as _0x4cfa88,Disposable as _0x428065,CommandType as _0x258e53,ICommandService as _0x1d64a9,DependentOn as _0x29f989,Plugin as _0x5d9bb9,merge as _0x5ce5aa}from'@univerjs/core';import{jsxs as _0x3e91a3,jsx as _0x545b8f}from'react/jsx-runtime';import{MCPConnectionStatus as _0x222185,MCPConnectionError as _0x15ebfc,MCPConnectionController as _0x44417d,MCP_PLUGIN_CONFIG_KEY as _0x118351,UniverMCPPlugin as _0x658713}from'@univerjs-pro/mcp';import{Input as _0x5ea6cf,Button as _0x170022,MessageType as _0x2d3162,Tooltip as _0x5d6c61,clsx as _0x2dc55a}from'@univerjs/design';import{useDependency as _0x4f1abc,useObservable as _0xb4b57b,IUIPartsService as _0x48c0c0,IDialogService as _0xabbea1,IMessageService as _0x10be1c,ComponentManager as _0x2cfcc6,connectInjector as _0x342000,BuiltInUIPart as _0x1eea1b,MenuItemType as _0x15fbbd,RibbonStartGroup as _0x56f0cf,IMenuManagerService as _0x21e6bc}from'@univerjs/ui';import{BehaviorSubject as _0x44dd94}from'rxjs';import{forwardRef as _0x3ff9b4,useRef as _0x434671,createElement as _0x30deec,useState as _0x6a6c9a,useCallback as _0x86bd20}from'react';import{ISocketService as _0x421c1d,WebSocketService as _0x56bed1}from'@univerjs/network';var f=function(){var _0x435e1c=_0x4d8f51;return f=Object[_0x435e1c(0xcc)]||function(_0x3bf003){var _0x358dad=_0x435e1c;for(var _0x30daf7,_0x4583ed=0x1,_0x71013=arguments[_0x358dad(0x217)];_0x4583ed<_0x71013;_0x4583ed++){_0x30daf7=arguments[_0x4583ed];for(var _0x40e718 in _0x30daf7)Object[_0x358dad(0x1f3)]['hasOwnProperty'][_0x358dad(0x13b)](_0x30daf7,_0x40e718)&&(_0x3bf003[_0x40e718]=_0x30daf7[_0x40e718]);}return _0x3bf003;},f[_0x435e1c(0x122)](this,arguments);},Ye=function(_0x192068,_0x5125c7){var _0x19dffe=_0x4d8f51,_0x2faf00={};for(var _0x2735ec in _0x192068)Object[_0x19dffe(0x1f3)][_0x19dffe(0x137)][_0x19dffe(0x13b)](_0x192068,_0x2735ec)&&_0x5125c7['indexOf'](_0x2735ec)<0x0&&(_0x2faf00[_0x2735ec]=_0x192068[_0x2735ec]);if(_0x192068!=null&&typeof Object[_0x19dffe(0x19a)]=='function'){for(var _0x8224b1=0x0,_0x2735ec=Object['getOwnPropertySymbols'](_0x192068);_0x8224b1<_0x2735ec[_0x19dffe(0x217)];_0x8224b1++)_0x5125c7[_0x19dffe(0x16f)](_0x2735ec[_0x8224b1])<0x0&&Object['prototype']['propertyIsEnumerable']['call'](_0x192068,_0x2735ec[_0x8224b1])&&(_0x2faf00[_0x2735ec[_0x8224b1]]=_0x192068[_0x2735ec[_0x8224b1]]);}return _0x2faf00;},w=_0x3ff9b4(function(_0xbd563d,_0x1547ce){var _0x583a4b=_0x4d8f51,_0x4ff4c5=_0xbd563d[_0x583a4b(0x15b)],_0x3b9c2c=_0xbd563d['id'],_0x5f0a4f=_0xbd563d[_0x583a4b(0xe5)],_0x1351df=_0xbd563d[_0x583a4b(0x1b4)],_0x5bce56=Ye(_0xbd563d,[_0x583a4b(0x15b),'id',_0x583a4b(0xe5),'extend']),_0x5f17b7=_0x583a4b(0x17b)[_0x583a4b(0x10a)](_0x3b9c2c,'\x20')['concat'](_0x5f0a4f||'')[_0x583a4b(0xcf)](),_0x3d21ee=_0x434671('_'[_0x583a4b(0x10a)](Xe()));return ue(_0x4ff4c5,''[_0x583a4b(0x10a)](_0x3b9c2c),{'defIds':_0x4ff4c5[_0x583a4b(0x20c)],'idSuffix':_0x3d21ee[_0x583a4b(0x192)]},f({'ref':_0x1547ce,'className':_0x5f17b7},_0x5bce56),_0x1351df);});function ue(_0x2e8bd7,_0x571721,_0x488862,_0x2b1e2b,_0x1baa0e){var _0x1d4bf7=_0x4d8f51;return _0x30deec(_0x2e8bd7[_0x1d4bf7(0xd5)],f(f({'key':_0x571721},Ze(_0x2e8bd7,_0x488862,_0x1baa0e)),_0x2b1e2b),(qe(_0x2e8bd7,_0x488862)[_0x1d4bf7(0x105)]||[])[_0x1d4bf7(0xf3)](function(_0x6b3e89,_0x36d848){var _0xbd9fdc=_0x1d4bf7;return ue(_0x6b3e89,''[_0xbd9fdc(0x10a)](_0x571721,'-')[_0xbd9fdc(0x10a)](_0x2e8bd7[_0xbd9fdc(0xd5)],'-')[_0xbd9fdc(0x10a)](_0x36d848),_0x488862,void 0x0,_0x1baa0e);}));}function Ze(_0x136072,_0x1b77c5,_0x420af0){var _0x545302=_0x4d8f51,_0x104cef=f({},_0x136072[_0x545302(0x195)]);_0x420af0!=null&&_0x420af0[_0x545302(0xaf)]&&_0x104cef[_0x545302(0x1bf)]==='colorChannel1'&&(_0x104cef['fill']=_0x420af0[_0x545302(0xaf)]),_0x136072[_0x545302(0xd5)]==='mask'&&_0x104cef['id']&&(_0x104cef['id']=_0x104cef['id']+_0x1b77c5[_0x545302(0x159)]),Object['entries'](_0x104cef)[_0x545302(0x12d)](function(_0x5107ba){var _0x44751b=_0x545302,_0x42b116=_0x5107ba[0x0],_0x3ba1ff=_0x5107ba[0x1];_0x42b116==='mask'&&typeof _0x3ba1ff==_0x44751b(0x108)&&(_0x104cef[_0x42b116]=_0x3ba1ff['replace'](/url\(#(.*)\)/,_0x44751b(0x10b)[_0x44751b(0x10a)](_0x1b77c5[_0x44751b(0x159)],')')));});var _0x408421=_0x1b77c5['defIds'];return!_0x408421||_0x408421[_0x545302(0x217)]===0x0||(_0x136072[_0x545302(0xd5)]==='use'&&_0x104cef['xlink:href']&&(_0x104cef['xlink:href']=_0x104cef[_0x545302(0xeb)]+_0x1b77c5['idSuffix']),Object['entries'](_0x104cef)[_0x545302(0x12d)](function(_0x261752){var _0x3045eb=_0x545302,_0x908b51=_0x261752[0x0],_0x182d8b=_0x261752[0x1];typeof _0x182d8b==_0x3045eb(0x108)&&(_0x104cef[_0x908b51]=_0x182d8b[_0x3045eb(0x155)](/url\(#(.*)\)/,_0x3045eb(0x10b)['concat'](_0x1b77c5['idSuffix'],')')));})),_0x104cef;}function _0x19b5(_0x10b3da,_0x28640){var _0x4d3893=_0x4d38();return _0x19b5=function(_0x19b599,_0x5f18b5){_0x19b599=_0x19b599-0xaa;var _0x1eb620=_0x4d3893[_0x19b599];return _0x1eb620;},_0x19b5(_0x10b3da,_0x28640);}function qe(_0x137eda,_0x3cfa28){var _0x2fed02=_0x4d8f51,_0x53a367,_0x2612d2=_0x3cfa28[_0x2fed02(0x20c)];return!_0x2612d2||_0x2612d2[_0x2fed02(0x217)]===0x0?_0x137eda:_0x137eda[_0x2fed02(0xd5)]===_0x2fed02(0x184)&&(!((_0x53a367=_0x137eda[_0x2fed02(0x105)])===null||_0x53a367===void 0x0)&&_0x53a367[_0x2fed02(0x217)])?f(f({},_0x137eda),{'children':_0x137eda[_0x2fed02(0x105)]['map'](function(_0x51fd39){var _0xb4f3ad=_0x2fed02;return typeof _0x51fd39[_0xb4f3ad(0x195)]['id']=='string'&&_0x2612d2&&_0x2612d2[_0xb4f3ad(0x1f1)](_0x51fd39[_0xb4f3ad(0x195)]['id'])?f(f({},_0x51fd39),{'attrs':f(f({},_0x51fd39[_0xb4f3ad(0x195)]),{'id':_0x51fd39[_0xb4f3ad(0x195)]['id']+_0x3cfa28[_0xb4f3ad(0x159)]})}):_0x51fd39;})}):_0x137eda;}function Xe(){var _0x346a14=_0x4d8f51;return Math[_0x346a14(0x1c6)]()[_0x346a14(0x213)](0x24)['substring'](0x2,0x8);}w[_0x4d8f51(0xc1)]=_0x4d8f51(0x179);var Je={'tag':_0x4d8f51(0xc7),'attrs':{'xmlns':_0x4d8f51(0x1e1),'fill':_0x4d8f51(0x113),'viewBox':_0x4d8f51(0x112),'width':_0x4d8f51(0xea),'height':_0x4d8f51(0xea)},'children':[{'tag':_0x4d8f51(0x1ed),'attrs':{'fill':'currentColor','d':_0x4d8f51(0xd8),'fillRule':_0x4d8f51(0x1f2),'clipRule':'evenodd'}}]},le=_0x3ff9b4(function(_0x390591,_0x420fb3){var _0x3c411b=_0x4d8f51;return _0x30deec(w,Object[_0x3c411b(0xcc)]({},_0x390591,{'id':_0x3c411b(0x1da),'ref':_0x420fb3,'icon':Je}));});function _0x4d38(){var _0x3b7fc0=['univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','_localeService','toString','javascript:void(0)','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','mcpStatus.networkError','length','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','DISCONNECTED','API\x20key\x20with\x20Bearer\x20prefix.','apiKey','_initializeCommands','colorChannel1','mcpConfig.configInstructions','_config','connectionStatus$','未连接','\x22,\x0a\x20\x20\x20\x20\x20\x20\x22type\x22:\x20\x22http\x22,\x0a\x20\x20\x20\x20\x20\x20\x22headers\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22Authorization\x22:\x20\x22Bearer\x20','mcpConfig.connectionError.networkError','subscribeConfigValue$','translate(.97)','mcpConfig.save','MAX_RETRIES_EXCEEDED','mcpConfig.validation.invalidApiKey','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','API\x20密钥','next','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','mcpConfig.connectionError.maxRetriesExceeded','connectionError$','displayName','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','_messageService','univer-text-white','MCP_UI_PLUGIN','warn','svg','配置无效','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','mcp-ui.command.openConfigPanel','_injector','assign','show','univer-text-green-500','trim','univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','univer-flex\x20univer-flex-wrap\x20univer-gap-2','Success','Close','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','tag','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','error','M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-h-6\x20univer-w-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','您的\x20API\x20密钥安全存储在本地存储中','setConfig','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','MCP\x20状态未知','univer-ml-1\x20univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','_initAutoConnect','mcpStatus.clickToConfigure','_menuManagerService','mcpConfig.title','_dialogService','className','defineProperty','disposeWithMe','mcpConfig.connectionError.sessionOccupied','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','1em','xlink:href','Configuration\x20Parameters:','NETWORK_ERROR','API\x20key\x20is\x20required','sessionId$','univer-bg-red-500','white','mcpConfig.connectionStatus.retrying','map','CONNECTED','OnLineIcon','univer.plus','mcpConfig.connectionStatus.failed','将配置添加到您的\x20MCP\x20客户端设置文件中','Bearer\x20','配置保存失败','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','univer-mr-2\x20univer-flex\x20univer-text-xl','span','https://console.univer.ai','isValid','univer-min-w-0\x20univer-flex-1','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','univer-bg-gray-500','get','children','保存中...','M0\x200H16V16H0z','string','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','concat','url(#$1','API\x20密钥长度至少需要\x2010\x20位','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Configuration\x20Steps:','close-small-single','BUTTON','HEADER_MENU','0\x200\x2016\x2016','none','univer-bg-blue-500','clipPath','off-line-icon','Univer\x20AI\x20控制台','MCP\x20重连中...','registerCommand','\x20-\x20','on-line-icon','COMMAND','mcpConfig.validation.apiKeyTooShort','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','配置保存成功','MCP\x20已连接','1718536PYJvGh','apply','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-h-2\x20univer-w-2\x20univer-rounded-full\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','round','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','会话\x20ID\x20已被占用,请稍后再试','univer-bg-green-500','连接中...','_validateConfig','OTHERS','forEach','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','univer-font-medium','mcpConfig.note2','univer-flex-shrink-0\x20univer-text-red-500','MCP\x20Unknown\x20Status','MCP:\x20超出最大重试次数','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','mcpServerUrl','hasOwnProperty','https://console.univer.plus','0\x200\x2017\x2017','_createConfigPanelComponent','call','subscribe','mcpConfig.connectionError.unauthorized','<API_KEY>','12185xIcSeW','mcpConfig.apiKey','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','errorMessage','Connection\x20Failed','mcpConfig.connectionStatus.connecting','1BhSOqR','getConfig','_initializeMenus','RETRYING','MCP:\x20Network\x20Error','_connectionController','2460DLyqMk','_componentManager','univer-flex-1','MCPConfigPanel','MCP\x20客户端配置','MCP\x20连接中...','mcpStatus.maxRetriesExceeded','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','noopener\x20noreferrer','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','replace','univer-space-y-2','保存配置','网络连接错误,请检查您的网络连接','idSuffix','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','icon','pluginName','help-single','univer-text-gray-500','univer-text-xs\x20univer-text-gray-500','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','SESSION_ID_OCCUPIED','url(#off-line-icon_clip0_910_343)','最大重试次数','register','close','value','univer-text-sm\x20univer-text-gray-500','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','MCP\x20Connection\x20Failed','mcpStatus.unknown','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','配置步骤:','What\x20is\x20API\x20Key?','bottom','indexOf','API\x20密钥无效,请检查密钥是否正确','mcpConfig.apiKeyHint','OffLineIcon','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','getOwnPropertyDescriptor','mcpConfig.validation.apiKeyRequired','_uiPartsService','MCP:\x20Session\x20ID\x20Occupied','showDeveloperTools','UniverIcon','MCP\x20Retrying...','univerjs-icon\x20univerjs-icon-','4694NWZAdI','配置\x20MCP\x20使用\x20AI\x20操作电子表格','重启您的\x20MCP\x20客户端以使配置生效','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','univer-flex\x20univer-items-center\x20univer-gap-3','univer.ai','_configService','Configuration\x20Notes:','defs','_loadStoredApiKey','CONNECTING','push','Save\x20Configuration','registerComponent','mcpStatus.clickToConnect','配置参数:','API\x20密钥不能为空','currentColor','0\x200\x2017\x2016','{\x0a\x20\x20\x22mcpServers\x22:\x20{\x0a\x20\x20\x20\x20\x22univer\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x22url\x22:\x20\x22https://mcp.univer.ai/mcp/?univer_session_id=','__setCustomHeaders','mcpConfig.configStepTitle','current','mcpStatus.connected','off-line-icon_clip0_910_343','attrs','Copy\x20the\x20JSON\x20configuration\x20below','univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','复制以下\x20JSON\x20配置','url(#on-line-icon_clip0_910_349)','getOwnPropertySymbols','35VSJuMm','Disconnected','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','20661311gjXitW','mcpConfig.configStep3','MCP\x20Configuration','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-text-sm\x20univer-font-medium','removeItem','mcpConfig.apiApplyInfo.title','启用身份验证以获得安全连接','mcpConfig.sessionIdDescription','3970OxNqBM','配置更改将立即生效','619244QCMnKe','div','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','Saving...','mcpConfig.configParameters','mcpStatus.connecting','mcpConfig.connectionStatus.connected','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','mcp.apiKey','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','univer-flex\x20univer-gap-3','extend','univer-space-y-3','mcpConfig.note1','_mcpCoreConfig$','启用身份验证','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','MCP\x20连接失败','Univer\x20AI\x20Console','Enter\x20your\x20API\x20key','点击连接\x20MCP','连接失败','fill','Click\x20to\x20connect\x20MCP','Connecting...','_localStorageService','带有\x20Bearer\x20前缀的\x20API\x20密钥。','univer-text-blue-600','univer-flex-shrink-0\x20univer-text-blue-500','random','_config$','已连接','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','mcpStatus.failed','MCP:\x20会话\x20ID\x20已被占用','on-line-icon_clip0_910_349','MCP:\x20Unauthorized','mcpConfig.saving','univer-text-yellow-500','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','MCP\x20已断开','NONE','MCP:\x20未授权','_commandService','_logService','mcpConfig.connectionStatus.disconnected','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','univer-space-y-5','21447qUHcTU','check-mark-icon','univer-text-red-500','open','Session\x20ID','univer-text-gray-400','label','mcpConfig.connectionInfo','http://www.w3.org/2000/svg','showConfigPanel','M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','_initConfigSync','text','enableAutoConnect','univer-text-xs\x20univer-text-gray-600','univer_session_id:','什么是\x20API\x20密钥?','FAILED','MCP\x20Client\x20Configuration','mcpConfig.apiApplyInfo.univerAiLabel','path','_registerComponent','univer-space-y-4','off','includes','evenodd','prototype','_loading$','Connected','Enable\x20Authentication','mergeMenu','mcpConfig.validation.invalidConfig','CloseSmallSingle','UNAUTHORIZED','getItem','957636AWApwY','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','权限验证失败,请检查您的\x20API\x20密钥','API\x20Key','MenuIcon','M5.21243\x2012.287L11.8791\x205.62036','univer-flex\x20univer-items-center\x20univer-gap-2','pre','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','Failed\x20to\x20save\x20configuration','Error','MCP:\x20Max\x20Retries\x20Exceeded','mcpConfig.apiApplyInfo.getStarted','_handleConfigure','_mcpConnectionController','Invalid\x20configuration','defIds','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','请输入您的\x20API\x20密钥','_apiKey$','会话ID'];_0x4d38=function(){return _0x3b7fc0;};return _0x4d38();}le[_0x4d8f51(0xc1)]='CheckMarkIcon';var Qe={'tag':_0x4d8f51(0xc7),'attrs':{'xmlns':_0x4d8f51(0x1e1),'fill':_0x4d8f51(0x113),'viewBox':_0x4d8f51(0x139),'width':_0x4d8f51(0xea),'height':'1em'},'children':[{'tag':_0x4d8f51(0x1ed),'attrs':{'stroke':_0x4d8f51(0x18d),'d':'M5.21243\x205.62036L11.8791\x2012.287','strokeLinecap':_0x4d8f51(0x124),'strokeLinejoin':'round','strokeWidth':1.33}},{'tag':_0x4d8f51(0x1ed),'attrs':{'stroke':_0x4d8f51(0x18d),'d':_0x4d8f51(0x201),'strokeLinecap':_0x4d8f51(0x124),'strokeLinejoin':_0x4d8f51(0x124),'strokeWidth':1.33}}]},ve=_0x3ff9b4(function(_0x1c18cd,_0x5dc5d4){var _0x161f58=_0x4d8f51;return _0x30deec(w,Object[_0x161f58(0xcc)]({},_0x1c18cd,{'id':_0x161f58(0x10f),'ref':_0x5dc5d4,'icon':Qe}));});ve['displayName']=_0x4d8f51(0x1f9);var en={'tag':_0x4d8f51(0xc7),'attrs':{'xmlns':_0x4d8f51(0x1e1),'fill':_0x4d8f51(0x113),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x4d8f51(0xea)},'children':[{'tag':_0x4d8f51(0x1ed),'attrs':{'fill':_0x4d8f51(0x18d),'d':'M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z'}},{'tag':_0x4d8f51(0x1ed),'attrs':{'fill':_0x4d8f51(0x18d),'d':'M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z'}},{'tag':_0x4d8f51(0x1ed),'attrs':{'fill':'currentColor','d':_0x4d8f51(0x1e3),'fillRule':_0x4d8f51(0x1f2),'clipRule':_0x4d8f51(0x1f2)}}]},de=_0x3ff9b4(function(_0x476d26,_0x2ee098){var _0x2b8cc9=_0x4d8f51;return _0x30deec(w,Object['assign']({},_0x476d26,{'id':_0x2b8cc9(0x15d),'ref':_0x2ee098,'icon':en}));});de[_0x4d8f51(0xc1)]='HelpSingle';var nn={'tag':_0x4d8f51(0xc7),'attrs':{'xmlns':_0x4d8f51(0x1e1),'fill':_0x4d8f51(0x113),'viewBox':_0x4d8f51(0x112),'width':'1em','height':_0x4d8f51(0xea)},'children':[{'tag':'g','attrs':{'clipPath':_0x4d8f51(0x162)},'children':[{'tag':_0x4d8f51(0x1ed),'attrs':{'stroke':_0x4d8f51(0x18d),'d':_0x4d8f51(0xc2),'strokeLinecap':_0x4d8f51(0x124),'strokeLinejoin':_0x4d8f51(0x124),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x4d8f51(0x115),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x4d8f51(0x1ed),'attrs':{'fill':_0x4d8f51(0xf1),'d':_0x4d8f51(0x107)}}]}]}],'defIds':[_0x4d8f51(0x194)]},fe=_0x3ff9b4(function(_0x20079f,_0x232883){var _0x315c60=_0x4d8f51;return _0x30deec(w,Object[_0x315c60(0xcc)]({},_0x20079f,{'id':_0x315c60(0x116),'ref':_0x232883,'icon':nn}));});fe['displayName']=_0x4d8f51(0x172);var rn={'tag':_0x4d8f51(0xc7),'attrs':{'xmlns':_0x4d8f51(0x1e1),'fill':'none','viewBox':_0x4d8f51(0x18e),'width':_0x4d8f51(0xea),'height':_0x4d8f51(0xea)},'children':[{'tag':'g','attrs':{'clipPath':_0x4d8f51(0x199)},'children':[{'tag':_0x4d8f51(0x1ed),'attrs':{'stroke':_0x4d8f51(0x18d),'d':_0x4d8f51(0x1b0),'strokeLinecap':_0x4d8f51(0x124),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x4d8f51(0x184),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x4d8f51(0x1cc)},'children':[{'tag':_0x4d8f51(0x1ed),'attrs':{'fill':'white','d':_0x4d8f51(0x107),'transform':_0x4d8f51(0xb7)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},ge=_0x3ff9b4(function(_0x1edf31,_0x2d9bef){var _0x123c80=_0x4d8f51;return _0x30deec(w,Object['assign']({},_0x1edf31,{'id':_0x123c80(0x11b),'ref':_0x2d9bef,'icon':rn}));});ge[_0x4d8f51(0xc1)]=_0x4d8f51(0xf5);function tn(_0x741e31){var _0x1fbb3a=_0x4d8f51,_0x3acfc6,_0x537c9f;const {mcpCoreConfig:_0x2f7225,onSave:_0x15eaae,loading:_0x32f8fc=!0x1,config:_0x532156,connectionStatus$:_0x846f71,connectionError$:_0x1cc2e7,currentApiKey$:_0x45ccaa,currentSessionId$:_0x44c2f9}=_0x741e31,_0x5d12cb=_0x4f1abc(_0x4e1c5e),_0x369525=_0xb4b57b(_0x846f71,_0x222185[_0x1fbb3a(0xab)]),_0x482f42=_0xb4b57b(_0x1cc2e7,_0x15ebfc[_0x1fbb3a(0x1d2)]),_0x13b3f5=_0xb4b57b(_0x44c2f9,''),_0x37b15f=_0xb4b57b(_0x45ccaa,''),[_0x4d9165,_0x105ea9]=_0x6a6c9a(_0x37b15f||''),_0x120d5b=!0x0,_0x222210=_0x532156[_0x1fbb3a(0x178)]&&_0x2f7225[_0x1fbb3a(0x136)]&&(_0x2f7225[_0x1fbb3a(0x136)]['includes']('univer.plus')||_0x2f7225[_0x1fbb3a(0x136)][_0x1fbb3a(0x1f1)]('univer.ai')),_0x469847=(_0x3acfc6=_0x2f7225['mcpServerUrl'])==null?void 0x0:_0x3acfc6['includes'](_0x1fbb3a(0xf6)),_0x22c905=(_0x537c9f=_0x2f7225[_0x1fbb3a(0x136)])==null?void 0x0:_0x537c9f[_0x1fbb3a(0x1f1)](_0x1fbb3a(0x181)),_0x5ec886=_0x469847?_0x1fbb3a(0x138):_0x1fbb3a(0xff),_0x31bf7a=_0x532156[_0x1fbb3a(0x178)]&&(_0x469847||_0x22c905),[_0xea5956,_0x10b7a6]=_0x6a6c9a(!_0x4d9165[_0x1fbb3a(0xcf)]()),_0x4507a6=(_0x42749a,_0x187344)=>{var _0x2010ed=_0x1fbb3a;if(_0x187344===_0x15ebfc[_0x2010ed(0x1fa)])return _0x2010ed(0x19d);switch(_0x42749a){case _0x222185['CONNECTED']:return _0x2010ed(0x211);case _0x222185[_0x2010ed(0x186)]:case _0x222185[_0x2010ed(0x148)]:return _0x2010ed(0x12f);case _0x222185[_0x2010ed(0x1ea)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return _0x2010ed(0xbb);}},_0x41986e=(_0x497691,_0x4c608c)=>{var _0x2ed4f0=_0x1fbb3a;if(_0x4c608c===_0x15ebfc['UNAUTHORIZED'])return _0x2ed4f0(0xf0);switch(_0x497691){case _0x222185[_0x2ed4f0(0xf4)]:return _0x2ed4f0(0x129);case _0x222185[_0x2ed4f0(0x186)]:case _0x222185[_0x2ed4f0(0x148)]:return _0x2ed4f0(0x114);case _0x222185[_0x2ed4f0(0x1ea)]:return _0x2ed4f0(0xf0);default:return _0x2ed4f0(0x103);}},_0x234acb=_0x2b816a=>{var _0x54d3f3=_0x1fbb3a;switch(_0x2b816a){case _0x222185['CONNECTED']:return _0x5d12cb['t'](_0x54d3f3(0x1af));case _0x222185[_0x54d3f3(0x186)]:return _0x5d12cb['t'](_0x54d3f3(0x144));case _0x222185[_0x54d3f3(0x1ea)]:return _0x5d12cb['t'](_0x54d3f3(0xf7));case _0x222185['RETRYING']:return _0x5d12cb['t'](_0x54d3f3(0xf2));default:return _0x5d12cb['t'](_0x54d3f3(0x1d6));}},_0x1a1867=_0x3ee272=>{var _0xf42d1c=_0x1fbb3a;switch(_0x3ee272){case _0x15ebfc[_0xf42d1c(0x1fa)]:return _0x5d12cb['t'](_0xf42d1c(0x13d));case _0x15ebfc[_0xf42d1c(0x161)]:return _0x5d12cb['t'](_0xf42d1c(0xe8));case _0x15ebfc[_0xf42d1c(0xed)]:return _0x5d12cb['t'](_0xf42d1c(0xb5));case _0x15ebfc[_0xf42d1c(0xb9)]:return _0x5d12cb['t'](_0xf42d1c(0xbf));default:return'';}},_0x24b923=_0x86bd20(()=>{const _0x3872c8={..._0x2f7225,'apiKey':_0x4d9165['trim'](),'enableAuth':_0x120d5b};_0x15eaae(_0x3872c8);},[_0x2f7225,_0x4d9165,_0x120d5b,_0x15eaae]),_0x12a897=_0x4d9165[_0x1fbb3a(0xcf)]()[_0x1fbb3a(0x217)]>0x0;return _0x3e91a3('div',{'className':_0x1fbb3a(0x1b9),'children':[_0x545b8f(_0x1fbb3a(0x1aa),{'className':_0x1fbb3a(0x127),'children':_0x3e91a3('div',{'className':_0x1fbb3a(0x180),'children':[_0x545b8f(_0x1fbb3a(0x1aa),{'className':_0x1fbb3a(0xd0),'children':_0x545b8f(_0x1fbb3a(0xfe),{'className':_0x1fbb3a(0xc4),'children':'⚙'})}),_0x545b8f(_0x1fbb3a(0x1aa),{'children':_0x545b8f('p',{'className':_0x1fbb3a(0x167),'children':_0x5d12cb['t']('mcpConfig.description')})})]})}),_0x3e91a3(_0x1fbb3a(0x1aa),{'className':_0x1fbb3a(0xaa),'children':[_0x545b8f(_0x1fbb3a(0x1aa),{'className':_0x1fbb3a(0x1d7)+_0x4507a6(_0x369525,_0x482f42)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','children':_0x3e91a3(_0x1fbb3a(0x1aa),{'className':_0x1fbb3a(0x202),'children':[_0x545b8f(_0x1fbb3a(0x1aa),{'className':_0x1fbb3a(0x123)+_0x41986e(_0x369525,_0x482f42)+_0x1fbb3a(0x1b2)}),_0x545b8f('span',{'className':_0x1fbb3a(0x1a2),'children':_0x234acb(_0x369525)})]})}),_0x482f42!==_0x15ebfc[_0x1fbb3a(0x1d2)]&&(_0x369525===_0x222185['FAILED']||_0x482f42===_0x15ebfc['UNAUTHORIZED'])&&_0x545b8f(_0x1fbb3a(0x1aa),{'className':_0x1fbb3a(0x12e),'children':_0x3e91a3(_0x1fbb3a(0x1aa),{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[_0x545b8f(_0x1fbb3a(0xfe),{'className':_0x1fbb3a(0x132),'children':'⚠️'}),_0x545b8f('p',{'className':_0x1fbb3a(0xdf),'children':_0x1a1867(_0x482f42)})]})})]}),_0x545b8f(_0x1fbb3a(0x1aa),{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':_0x3e91a3(_0x1fbb3a(0x1aa),{'className':_0x1fbb3a(0x1d8),'children':[_0x3e91a3(_0x1fbb3a(0x1aa),{'className':_0x1fbb3a(0x156),'children':[_0x3e91a3(_0x1fbb3a(0x1df),{'className':_0x1fbb3a(0xfc),'children':[_0x545b8f(_0x1fbb3a(0xfe),{'children':'🔑'}),'\x20',_0x5d12cb['t'](_0x1fbb3a(0x140)),_0x545b8f(_0x1fbb3a(0xfe),{'className':'univer-text-red-500','children':'*'}),_0x222210&&_0x545b8f('a',{'href':_0x1fbb3a(0x214),'onClick':()=>_0x10b7a6(!0x0),'className':_0x1fbb3a(0xde),'title':_0x5d12cb['t'](_0x1fbb3a(0x1a4)),'children':_0x545b8f(de,{})})]}),_0x545b8f(_0x5ea6cf,{'type':_0x1fbb3a(0x1e5),'placeholder':_0x5d12cb['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x4d9165,'onChange':_0x105ea9,'disabled':_0x32f8fc,'autoComplete':_0x1fbb3a(0x1f0)}),_0x545b8f('p',{'className':_0x1fbb3a(0x15f),'children':_0x5d12cb['t'](_0x1fbb3a(0x171))})]}),_0x222210&&_0xea5956&&_0x3e91a3(_0x1fbb3a(0x1aa),{'className':_0x1fbb3a(0x1a1),'children':[_0x545b8f('a',{'href':_0x1fbb3a(0x214),'onClick':()=>_0x10b7a6(!0x1),'className':_0x1fbb3a(0xd9),'title':_0x1fbb3a(0xd3),'children':_0x545b8f(ve,{})}),_0x3e91a3(_0x1fbb3a(0x1aa),{'className':_0x1fbb3a(0x20d),'children':[_0x545b8f(_0x1fbb3a(0x1aa),{'className':'univer-flex\x20univer-h-10\x20univer-w-10\x20univer-flex-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':_0x545b8f(_0x1fbb3a(0xfe),{'className':_0x1fbb3a(0x1c4),'children':'🚀'})}),_0x3e91a3(_0x1fbb3a(0x1aa),{'className':_0x1fbb3a(0x14d),'children':[_0x545b8f('h4',{'className':_0x1fbb3a(0x204),'children':_0x5d12cb['t'](_0x1fbb3a(0x1a4))}),_0x545b8f('p',{'className':_0x1fbb3a(0x126),'children':_0x5d12cb['t']('mcpConfig.apiApplyInfo.description')}),_0x545b8f('div',{'className':_0x1fbb3a(0xd1),'children':_0x31bf7a&&_0x3e91a3('a',{'href':_0x5ec886,'target':'_blank','rel':_0x1fbb3a(0x153),'className':_0x1fbb3a(0x1c9),'children':[_0x545b8f('span',{'children':'🤖'}),_0x5d12cb['t'](_0x1fbb3a(0x1ec)),_0x545b8f(_0x1fbb3a(0xfe),{'className':_0x1fbb3a(0x1de),'children':'↗'})]})}),_0x3e91a3(_0x1fbb3a(0x1aa),{'className':_0x1fbb3a(0x11e),'children':['✨','\x20',_0x5d12cb['t'](_0x1fbb3a(0x208))]})]})]})]}),_0x532156['showDeveloperTools']&&_0x3e91a3(_0x1fbb3a(0x1aa),{'className':_0x1fbb3a(0xbe),'children':[_0x3e91a3('h4',{'className':_0x1fbb3a(0xe9),'children':[_0x545b8f(_0x1fbb3a(0xfe),{'children':'🔗'}),'\x20',_0x5d12cb['t'](_0x1fbb3a(0x1e0))]}),_0x3e91a3(_0x1fbb3a(0x1aa),{'className':_0x1fbb3a(0x1ef),'children':[_0x3e91a3(_0x1fbb3a(0x1aa),{'className':_0x1fbb3a(0x1b5),'children':[_0x545b8f('p',{'className':_0x1fbb3a(0x1e7),'children':_0x5d12cb['t'](_0x1fbb3a(0xb0))}),_0x3e91a3(_0x1fbb3a(0x1aa),{'className':_0x1fbb3a(0x156),'children':[_0x545b8f('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x5d12cb['t'](_0x1fbb3a(0x191))}),_0x3e91a3(_0x1fbb3a(0x1aa),{'className':_0x1fbb3a(0x1fd),'children':[_0x3e91a3('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x545b8f('span',{'className':_0x1fbb3a(0x197),'children':'1'}),_0x5d12cb['t']('mcpConfig.configStep1')]}),_0x3e91a3('div',{'className':_0x1fbb3a(0x202),'children':[_0x545b8f('span',{'className':_0x1fbb3a(0x197),'children':'2'}),_0x5d12cb['t']('mcpConfig.configStep2')]}),_0x3e91a3(_0x1fbb3a(0x1aa),{'className':_0x1fbb3a(0x202),'children':[_0x545b8f(_0x1fbb3a(0xfe),{'className':_0x1fbb3a(0x197),'children':'3'}),_0x5d12cb['t'](_0x1fbb3a(0x19f))]})]})]})]}),_0x3e91a3(_0x1fbb3a(0x1aa),{'className':'univer-space-y-2','children':[_0x545b8f(_0x1fbb3a(0x1aa),{'className':_0x1fbb3a(0x1ab),'children':'MCP\x20Configuration'}),_0x545b8f('div',{'className':_0x1fbb3a(0xfb),'children':_0x545b8f(_0x1fbb3a(0x203),{'className':_0x1fbb3a(0x168),'children':_0x1fbb3a(0x18f)+_0x13b3f5+_0x1fbb3a(0xb4)+(_0x4d9165||_0x1fbb3a(0x13e))+'\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x0a}'})})]}),_0x3e91a3(_0x1fbb3a(0x1aa),{'className':_0x1fbb3a(0x1b5),'children':[_0x545b8f('div',{'className':_0x1fbb3a(0x1ab),'children':_0x5d12cb['t'](_0x1fbb3a(0x1ad))}),_0x3e91a3('div',{'className':_0x1fbb3a(0x156),'children':[_0x3e91a3('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x545b8f(_0x1fbb3a(0x1aa),{'className':_0x1fbb3a(0x215)}),_0x3e91a3(_0x1fbb3a(0x1aa),{'className':_0x1fbb3a(0x101),'children':[_0x545b8f(_0x1fbb3a(0x1aa),{'className':_0x1fbb3a(0x1d0),'children':_0x1fbb3a(0x1e8)}),_0x545b8f('div',{'className':_0x1fbb3a(0x15f),'children':_0x5d12cb['t'](_0x1fbb3a(0x1a6))})]})]}),_0x3e91a3(_0x1fbb3a(0x1aa),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x545b8f(_0x1fbb3a(0x1aa),{'className':'univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x3e91a3(_0x1fbb3a(0x1aa),{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x545b8f(_0x1fbb3a(0x1aa),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':'Authorization:'}),_0x545b8f(_0x1fbb3a(0x1aa),{'className':_0x1fbb3a(0x15f),'children':_0x5d12cb['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),_0x545b8f(_0x170022,{'onClick':_0x24b923,'disabled':!_0x12a897||_0x32f8fc,'className':'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','children':_0x32f8fc?_0x3e91a3('span',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x545b8f(_0x1fbb3a(0xfe),{'children':'⟲'}),_0x5d12cb['t'](_0x1fbb3a(0x1ce))]}):_0x3e91a3(_0x1fbb3a(0xfe),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x545b8f(le,{}),_0x5d12cb['t'](_0x1fbb3a(0xb8))]})}),_0x545b8f(_0x1fbb3a(0x1aa),{'className':_0x1fbb3a(0x152),'children':_0x3e91a3(_0x1fbb3a(0x1aa),{'className':_0x1fbb3a(0x1b3),'children':[_0x545b8f(_0x1fbb3a(0xfe),{'className':_0x1fbb3a(0x1c5),'children':'💡'}),_0x3e91a3('div',{'className':_0x1fbb3a(0x17f),'children':[_0x545b8f('div',{'className':_0x1fbb3a(0x130),'children':_0x1fbb3a(0x183)}),_0x3e91a3(_0x1fbb3a(0x1aa),{'children':['•',_0x5d12cb['t'](_0x1fbb3a(0x1b6))]}),_0x3e91a3(_0x1fbb3a(0x1aa),{'children':['•',_0x5d12cb['t'](_0x1fbb3a(0x131))]})]})]})})]})})]});}const x='mcp-ui.config',re={'showDeveloperTools':!0x1,'showStatus':!0x0};var on=Object[_0x4d8f51(0x174)],sn=(_0x5cbffb,_0x3e6342,_0x810a17,_0x4b2639)=>{var _0x456a4d=_0x4d8f51;for(var _0x3cc735=_0x4b2639>0x1?void 0x0:_0x4b2639?on(_0x3e6342,_0x810a17):_0x3e6342,_0x386e82=_0x5cbffb[_0x456a4d(0x217)]-0x1,_0x24a591;_0x386e82>=0x0;_0x386e82--)(_0x24a591=_0x5cbffb[_0x386e82])&&(_0x3cc735=_0x24a591(_0x3cc735)||_0x3cc735);return _0x3cc735;},g=(_0x47228b,_0x1acbe7)=>(_0x190663,_0x4fd4c9)=>_0x1acbe7(_0x190663,_0x4fd4c9,_0x47228b);const j=_0x4d8f51(0x1b1),U='mcp-config-dialog';let I=class extends _0x428065{constructor(_0xd0ebce,_0x2d3d55,_0x224dd0,_0x27bc47,_0x4617ec,_0x2cbb33,_0x29904d,_0x5b78f4,_0xff6edc,_0x4d1060){var _0x41b6b2=_0x4d8f51;super(),S(this,_0x41b6b2(0x1f4),new _0x44dd94(!0x1)),S(this,'_mcpCoreConfig$',new _0x44dd94({})),S(this,'_config$',new _0x44dd94({})),S(this,'_apiKey$',new _0x44dd94('')),S(this,'_handleConfigSave',async _0x171901=>{var _0x16a2b2=_0x41b6b2,_0x4da19c,_0x31313d;this[_0x16a2b2(0x1f4)][_0x16a2b2(0xbd)](!0x0);try{const _0x3bc71f=await this[_0x16a2b2(0x12b)](_0x171901);if(!_0x3bc71f[_0x16a2b2(0x100)]){this[_0x16a2b2(0xc3)][_0x16a2b2(0xcd)]({'type':_0x2d3162[_0x16a2b2(0x206)],'content':_0x3bc71f[_0x16a2b2(0x142)]||this[_0x16a2b2(0x212)]['t'](_0x16a2b2(0x1f8))});return;}_0x171901['apiKey']?await this['_localStorageService']['setItem'](j,_0x171901['apiKey'][_0x16a2b2(0xcf)]()):await this[_0x16a2b2(0x1c2)][_0x16a2b2(0x1a3)](j),this[_0x16a2b2(0x20f)][_0x16a2b2(0xbd)](((_0x4da19c=_0x171901[_0x16a2b2(0xad)])==null?void 0x0:_0x4da19c[_0x16a2b2(0xcf)]())||''),this[_0x16a2b2(0x20a)][_0x16a2b2(0x190)]({'Authorization':_0x16a2b2(0xf9)+((_0x31313d=_0x171901['apiKey'])==null?void 0x0:_0x31313d[_0x16a2b2(0xcf)]())}),this[_0x16a2b2(0xc3)]['show']({'type':_0x2d3162[_0x16a2b2(0xd2)],'content':this['_localeService']['t']('mcpConfig.configSaved')}),setTimeout(()=>{var _0x303dfc=_0x16a2b2;this[_0x303dfc(0xe4)][_0x303dfc(0x165)](U);},0x320);}catch(_0x7cbb22){this[_0x16a2b2(0x1d5)][_0x16a2b2(0xd7)](_0x16a2b2(0xd4),_0x7cbb22),this[_0x16a2b2(0xc3)][_0x16a2b2(0xcd)]({'type':_0x2d3162[_0x16a2b2(0x206)],'content':this[_0x16a2b2(0x212)]['t']('mcpConfig.configError')});}finally{this[_0x16a2b2(0x1f4)][_0x16a2b2(0xbd)](!0x1);}}),(this[_0x41b6b2(0xcb)]=_0xd0ebce,this[_0x41b6b2(0x176)]=_0x2d3d55,this[_0x41b6b2(0x182)]=_0x224dd0,this[_0x41b6b2(0x1c2)]=_0x27bc47,this[_0x41b6b2(0xe4)]=_0x4617ec,this[_0x41b6b2(0xc3)]=_0x2cbb33,this[_0x41b6b2(0x14c)]=_0x29904d,this[_0x41b6b2(0x212)]=_0x5b78f4,this[_0x41b6b2(0x1d5)]=_0xff6edc,this[_0x41b6b2(0x20a)]=_0x4d1060,this[_0x41b6b2(0x1e4)](),this[_0x41b6b2(0x185)](),this[_0x41b6b2(0x1ee)]());}[_0x4d8f51(0x1e2)](){var _0x5ef873=_0x4d8f51;const _0x105e4e=this[_0x5ef873(0x182)][_0x5ef873(0x146)](x);_0x105e4e!=null&&_0x105e4e[_0x5ef873(0x178)]&&this[_0x5ef873(0xe4)][_0x5ef873(0x1dc)]({'id':U,'title':{'title':this['_localeService']['t'](_0x5ef873(0xe3))},'children':{'label':_0x5ef873(0x14e)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0x1f84c9=_0x5ef873;this[_0x1f84c9(0xe4)][_0x1f84c9(0x165)](U);}});}['getCurrentConfig'](){var _0x3fe65c=_0x4d8f51;return this[_0x3fe65c(0x1b7)][_0x3fe65c(0x166)];}['_registerComponent'](){var _0xaa4bcb=_0x4d8f51;this['disposeWithMe'](this['_componentManager'][_0xaa4bcb(0x164)]('MCPConfigPanel',this['_createConfigPanelComponent']()));}[_0x4d8f51(0x13a)](){var _0xbbefc2=_0x4d8f51;return _0x342000(()=>{var _0x29ed02=_0x19b5,_0x595833,_0x43ae69,_0x5702d2;return _0x545b8f(tn,{'config':this[_0x29ed02(0x1c7)][_0x29ed02(0x166)],'mcpCoreConfig':this[_0x29ed02(0x1b7)][_0x29ed02(0x166)],'currentApiKey$':this['_apiKey$'],'onSave':this['_handleConfigSave'],'loading':this[_0x29ed02(0x1f4)][_0x29ed02(0x166)],'connectionStatus$':(_0x595833=this[_0x29ed02(0x20a)])==null?void 0x0:_0x595833['connectionStatus$'],'connectionError$':(_0x43ae69=this[_0x29ed02(0x20a)])==null?void 0x0:_0x43ae69[_0x29ed02(0xc0)],'currentSessionId$':(_0x5702d2=this[_0x29ed02(0x20a)])==null?void 0x0:_0x5702d2[_0x29ed02(0xef)]});},this[_0xbbefc2(0xcb)]);}[_0x4d8f51(0x1e4)](){var _0x2a6ce8=_0x4d8f51;this[_0x2a6ce8(0xe7)](this['_configService'][_0x2a6ce8(0xb6)](_0x118351)[_0x2a6ce8(0x13c)](_0x2858c4=>{var _0x20bba9=_0x2a6ce8;this['_mcpCoreConfig$'][_0x20bba9(0xbd)](_0x2858c4||{});}));const _0x3e3fb0=this[_0x2a6ce8(0x182)]['getConfig'](_0x118351);this[_0x2a6ce8(0x1b7)][_0x2a6ce8(0xbd)](_0x3e3fb0||{}),this[_0x2a6ce8(0xe7)](this[_0x2a6ce8(0x182)][_0x2a6ce8(0xb6)](x)[_0x2a6ce8(0x13c)](_0x4f8d84=>{var _0x249fd6=_0x2a6ce8;this[_0x249fd6(0x1c7)][_0x249fd6(0xbd)](_0x4f8d84||{});}));const _0x50960d=this['_configService'][_0x2a6ce8(0x146)](x);this[_0x2a6ce8(0x1c7)][_0x2a6ce8(0xbd)](_0x50960d||{});}async[_0x4d8f51(0x185)](){var _0x1fabf7=_0x4d8f51;const _0x51e9d0=this[_0x1fabf7(0x182)][_0x1fabf7(0x146)](x);if(!(_0x51e9d0!=null&&_0x51e9d0[_0x1fabf7(0x178)]))return;const _0x18b903=await this['_localStorageService'][_0x1fabf7(0x1fb)](j);_0x18b903&&(this['_mcpConnectionController']['__setCustomHeaders']({'Authorization':_0x1fabf7(0xf9)+_0x18b903}),this[_0x1fabf7(0x20f)]['next'](_0x18b903));}async[_0x4d8f51(0x12b)](_0x4ec3e5){var _0xbb0cdc=_0x4d8f51;if(!_0x4ec3e5[_0xbb0cdc(0xad)]||_0x4ec3e5[_0xbb0cdc(0xad)][_0xbb0cdc(0xcf)]()[_0xbb0cdc(0x217)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0xbb0cdc(0x212)]['t'](_0xbb0cdc(0x175))};if(_0x4ec3e5['apiKey'][_0xbb0cdc(0xcf)]()[_0xbb0cdc(0x217)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0xbb0cdc(0x212)]['t'](_0xbb0cdc(0x11d))};try{const _0x59cc1c=await this[_0xbb0cdc(0xcb)]['get'](_0x44417d)['validateApiKey'](_0x4ec3e5[_0xbb0cdc(0xad)][_0xbb0cdc(0xcf)]());return _0x59cc1c[_0xbb0cdc(0x100)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x59cc1c[_0xbb0cdc(0xd7)]||this['_localeService']['t'](_0xbb0cdc(0xba))};}catch(_0xcf0fdc){return console[_0xbb0cdc(0xc6)](_0xbb0cdc(0x102),_0xcf0fdc),{'isValid':!0x0};}}};I=sn([g(0x0,_0x3b0792(_0x411d26)),g(0x1,_0x48c0c0),g(0x2,_0x1ac548),g(0x3,_0xc9fca9),g(0x4,_0xabbea1),g(0x5,_0x10be1c),g(0x6,_0x3b0792(_0x2cfcc6)),g(0x7,_0x3b0792(_0x4e1c5e)),g(0x8,_0x4cfa88),g(0x9,_0x3b0792(_0x44417d))],I);const V={'id':_0x4d8f51(0xca),'type':_0x258e53[_0x4d8f51(0x11c)],'handler':async(_0x359165,_0x44fe6d)=>(_0x359165[_0x4d8f51(0x104)](I)[_0x4d8f51(0x1e2)](),!0x0)};function pe(_0x5e0e0c,_0x3d6b11){var _0x3cf959=_0x4d8f51;switch(_0x5e0e0c){case _0x222185['DISCONNECTED']:return'mcpStatus.disconnected';case _0x222185[_0x3cf959(0x186)]:return _0x3cf959(0x1ae);case _0x222185[_0x3cf959(0xf4)]:return _0x3cf959(0x193);case _0x222185[_0x3cf959(0x1ea)]:switch(_0x3d6b11){case _0x15ebfc[_0x3cf959(0x1fa)]:return'mcpStatus.unauthorized';case _0x15ebfc[_0x3cf959(0x161)]:return'mcpStatus.sessionOccupied';case _0x15ebfc[_0x3cf959(0xed)]:return _0x3cf959(0x216);case _0x15ebfc[_0x3cf959(0xb9)]:return _0x3cf959(0x151);default:return _0x3cf959(0x1ca);}case _0x222185[_0x3cf959(0x148)]:return'mcpStatus.retrying';default:return _0x3cf959(0x16a);}}function cn(_0x34dec3,_0xd88066,_0x4b20a9,_0x7e38c0=!0x0){var _0x5617c3=_0x4d8f51;const _0xe2b2bc=pe(_0x34dec3,_0xd88066),_0x516125=_0x4b20a9['t'](_0xe2b2bc);return _0x7e38c0?_0x34dec3===_0x222185[_0x5617c3(0xab)]&&_0xd88066===_0x15ebfc[_0x5617c3(0x1fa)]?_0x516125+_0x5617c3(0x11a)+_0x4b20a9['t'](_0x5617c3(0xe1)):_0x34dec3===_0x222185[_0x5617c3(0xf4)]?''+_0x516125:_0x34dec3===_0x222185[_0x5617c3(0xab)]||_0x34dec3===_0x222185[_0x5617c3(0x1ea)]?_0x516125+_0x5617c3(0x11a)+_0x4b20a9['t'](_0x5617c3(0x18a)):_0x516125:_0x516125;}function an(_0x30400e){var _0x5cf75d=_0x4d8f51;switch(_0x30400e){case _0x222185[_0x5cf75d(0xf4)]:return _0x5cf75d(0xce);case _0x222185[_0x5cf75d(0x186)]:case _0x222185['RETRYING']:return _0x5cf75d(0x1cf);case _0x222185[_0x5cf75d(0x1ea)]:case _0x222185[_0x5cf75d(0xab)]:return _0x5cf75d(0x1db);default:return _0x5cf75d(0x15e);}}function un(_0x43d154){var _0x121d90=_0x4d8f51;const {status$:_0xb61577,error$:_0x2a6497,onConfigure:_0x5d0e99,showClickable:_0x5cada5=!0x0}=_0x43d154,_0x19f7ed=_0xb4b57b(_0xb61577,_0x222185[_0x121d90(0xab)]),_0x195956=_0xb4b57b(_0x2a6497,_0x15ebfc['NONE']),_0x4fc606=_0x4f1abc(_0x4e1c5e),_0x243397=_0x19f7ed===_0x222185[_0x121d90(0xf4)];_0x19f7ed===_0x222185['CONNECTING']||_0x222185['RETRYING'];const _0x20ca32=_0x4fc606['t'](pe(_0x19f7ed,_0x195956)),_0x1334bc=cn(_0x19f7ed,_0x195956,_0x4fc606,_0x5cada5),_0x5f3691=an(_0x19f7ed),_0x4cebb8=_0x243397?_0x545b8f(ge,{}):_0x545b8f(fe,{}),_0x23d191=_0x86bd20(()=>{_0x5cada5&&_0x5d0e99&&_0x5d0e99();},[_0x5cada5,_0x5d0e99]);function _0x18893e(){var _0x3fcafd=_0x121d90;return _0x3e91a3('div',{'className':_0x2dc55a('univer-flex\x20univer-items-center',_0x5cada5&&_0x5d0e99&&_0x3fcafd(0x173)),'onClick':_0x5cada5&&_0x5d0e99?_0x23d191:void 0x0,'children':[_0x545b8f(_0x3fcafd(0x1aa),{'className':_0x2dc55a(_0x3fcafd(0xfd),_0x5f3691),'children':_0x4cebb8}),_0x545b8f(_0x3fcafd(0x1aa),{'className':_0x3fcafd(0x135),'children':_0x20ca32})]});}return _0x545b8f(_0x5d6c61,{'title':_0x1334bc,'placement':_0x121d90(0x16e),'children':_0x18893e()});}var ln=Object[_0x4d8f51(0x174)],vn=(_0x36511e,_0x31fb3a,_0x1ee800,_0x2c8ce9)=>{var _0x251f78=_0x4d8f51;for(var _0x422201=_0x2c8ce9>0x1?void 0x0:_0x2c8ce9?ln(_0x31fb3a,_0x1ee800):_0x31fb3a,_0xdff16e=_0x36511e[_0x251f78(0x217)]-0x1,_0x32a4cb;_0xdff16e>=0x0;_0xdff16e--)(_0x32a4cb=_0x36511e[_0xdff16e])&&(_0x422201=_0x32a4cb(_0x422201)||_0x422201);return _0x422201;},A=(_0x248158,_0x1035ab)=>(_0x12663b,_0x12309a)=>_0x1035ab(_0x12663b,_0x12309a,_0x248158);let O=class extends _0x428065{constructor(_0x297197,_0x97d3b6,_0x5b398d,_0x571d69){var _0x10201a=_0x4d8f51;super(),this[_0x10201a(0xcb)]=_0x297197,this[_0x10201a(0x14a)]=_0x97d3b6,this['_uiPartsService']=_0x5b398d,this['_configService']=_0x571d69,this[_0x10201a(0xe0)](),this['_initStatusComponent']();}['_initAutoConnect'](){var _0x59bcbd=_0x4d8f51;const _0xd29146=this[_0x59bcbd(0x182)]['getConfig'](x);_0xd29146!=null&&_0xd29146[_0x59bcbd(0x178)]&&(this['_connectionController'][_0x59bcbd(0x1e6)]=!0x1);}['_initStatusComponent'](){var _0x1461ba=_0x4d8f51;const _0x4ecc3f=this['_configService'][_0x1461ba(0x146)](x);(_0x4ecc3f==null?void 0x0:_0x4ecc3f['showStatus'])!==!0x1&&this[_0x1461ba(0xe7)](this[_0x1461ba(0x176)][_0x1461ba(0x189)](_0x1eea1b[_0x1461ba(0x111)],()=>{var _0x5e135f=_0x1461ba,_0x48dffe;return _0x342000(dn({'status$':this['_connectionController'][_0x5e135f(0xb2)],'error$':this['_connectionController'][_0x5e135f(0xc0)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x48dffe=_0x4ecc3f==null?void 0x0:_0x4ecc3f['showDeveloperTools'])!=null?_0x48dffe:!0x1}),this[_0x5e135f(0xcb)]);}));}[_0x4d8f51(0x209)](){var _0x318994=_0x4d8f51;this[_0x318994(0xcb)][_0x318994(0x104)](I)[_0x318994(0x1e2)]();}};O=vn([A(0x0,_0x3b0792(_0x411d26)),A(0x1,_0x3b0792(_0x44417d)),A(0x2,_0x48c0c0),A(0x3,_0x1ac548)],O);function dn(_0x231a5f){const {status$:_0x29354b,error$:_0x3e882e,onConfigure:_0x36d03f,showClickable:_0x5ab0a7}=_0x231a5f;return function(){return _0x545b8f(un,{'status$':_0x29354b,'error$':_0x3e882e,'onConfigure':_0x36d03f,'showClickable':_0x5ab0a7});};}function fn(_0x22c7d6){var _0x402f49=_0x4d8f51;return{'id':V['id'],'type':_0x15fbbd[_0x402f49(0x110)],'icon':_0x402f49(0x200),'title':_0x402f49(0xe3),'tooltip':_0x402f49(0xe3)};}const gn={[_0x56f0cf[_0x4d8f51(0x12c)]]:{[V['id']]:{'order':0xa,'menuItemFactory':fn}}};var pn=Object['getOwnPropertyDescriptor'],hn=(_0xd44223,_0x12398a,_0x7d910c,_0x2c7857)=>{for(var _0x4e8eaf=_0x2c7857>0x1?void 0x0:_0x2c7857?pn(_0x12398a,_0x7d910c):_0x12398a,_0x285db3=_0xd44223['length']-0x1,_0x4b0f0b;_0x285db3>=0x0;_0x285db3--)(_0x4b0f0b=_0xd44223[_0x285db3])&&(_0x4e8eaf=_0x4b0f0b(_0x4e8eaf)||_0x4e8eaf);return _0x4e8eaf;},te=(_0x4d2d1f,_0x39be9f)=>(_0x5b26c4,_0x38d69e)=>_0x39be9f(_0x5b26c4,_0x38d69e,_0x4d2d1f);let k=class extends _0x428065{constructor(_0x42780b,_0x539fe8){var _0x5dac67=_0x4d8f51;super(),this[_0x5dac67(0x1d4)]=_0x42780b,this['_menuManagerService']=_0x539fe8,this[_0x5dac67(0xae)](),this[_0x5dac67(0x147)]();}['_initializeCommands'](){var _0x4d8f67=_0x4d8f51;[V][_0x4d8f67(0x12d)](_0x1d3f57=>{var _0x5f0c94=_0x4d8f67;this['disposeWithMe'](this[_0x5f0c94(0x1d4)][_0x5f0c94(0x119)](_0x1d3f57));});}[_0x4d8f51(0x147)](){var _0x12e8ba=_0x4d8f51;this[_0x12e8ba(0xe2)][_0x12e8ba(0x1f7)](gn);}};k=hn([te(0x0,_0x1d64a9),te(0x1,_0x21e6bc)],k);const On={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':_0x4d8f51(0x169),'retrying':_0x4d8f51(0x17a),'unknown':_0x4d8f51(0x133),'unauthorized':_0x4d8f51(0x1cd),'sessionOccupied':_0x4d8f51(0x177),'networkError':_0x4d8f51(0x149),'maxRetriesExceeded':_0x4d8f51(0x207),'clickToConnect':_0x4d8f51(0x1c0),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x4d8f51(0x1a0),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x4d8f51(0x1ff),'apiKeyPlaceholder':_0x4d8f51(0x1bc),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x4d8f51(0x1f6),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x4d8f51(0x1eb),'mcpClientConfig':_0x4d8f51(0x1eb),'configInstructions':_0x4d8f51(0x125),'configStepTitle':_0x4d8f51(0x10e),'configStep1':_0x4d8f51(0x196),'configStep2':_0x4d8f51(0x154),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x4d8f51(0x1dd),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x4d8f51(0xac),'configParameters':_0x4d8f51(0xec),'maxRetries':'Max\x20Retries','save':_0x4d8f51(0x188),'saving':_0x4d8f51(0x1ac),'note1':_0x4d8f51(0x109),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x4d8f51(0x205),'apiApplyInfo':{'title':_0x4d8f51(0x16d),'description':_0x4d8f51(0x15a),'univerAiLabel':_0x4d8f51(0x1bb),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x4d8f51(0xee),'apiKeyTooShort':_0x4d8f51(0x10d),'invalidConfig':_0x4d8f51(0x20b),'invalidApiKey':_0x4d8f51(0x16b)},'connectionStatus':{'disconnected':_0x4d8f51(0x19c),'connecting':_0x4d8f51(0x1c1),'connected':_0x4d8f51(0x1f5),'failed':_0x4d8f51(0x143),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x4d8f51(0xd6),'sessionOccupied':_0x4d8f51(0xc9),'networkError':_0x4d8f51(0x141),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},kn={'mcpStatus':{'disconnected':_0x4d8f51(0x1d1),'connecting':_0x4d8f51(0x150),'connected':_0x4d8f51(0x120),'failed':_0x4d8f51(0x1ba),'retrying':_0x4d8f51(0x118),'unknown':_0x4d8f51(0xdd),'unauthorized':_0x4d8f51(0x1d3),'sessionOccupied':_0x4d8f51(0x1cb),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x4d8f51(0x134),'clickToConnect':_0x4d8f51(0x1bd),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':'MCP\x20配置','description':_0x4d8f51(0x17d),'apiKey':_0x4d8f51(0xbc),'apiKeyPlaceholder':_0x4d8f51(0x20e),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':_0x4d8f51(0x1b8),'enableAuthHint':_0x4d8f51(0x1a5),'connectionInfo':_0x4d8f51(0x14f),'mcpClientConfig':_0x4d8f51(0x14f),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x4d8f51(0x16c),'configStep1':_0x4d8f51(0x198),'configStep2':_0x4d8f51(0xf8),'configStep3':_0x4d8f51(0x17e),'sessionId':_0x4d8f51(0x210),'sessionIdDescription':_0x4d8f51(0x160),'authorizationDescription':_0x4d8f51(0x1c3),'configParameters':_0x4d8f51(0x18b),'maxRetries':_0x4d8f51(0x163),'save':_0x4d8f51(0x157),'saving':_0x4d8f51(0x106),'note1':_0x4d8f51(0x1a8),'note2':_0x4d8f51(0xda),'configSaved':_0x4d8f51(0x11f),'configError':_0x4d8f51(0xfa),'apiApplyInfo':{'title':_0x4d8f51(0x1e9),'description':_0x4d8f51(0xdc),'univerAiLabel':_0x4d8f51(0x117),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x4d8f51(0x18c),'apiKeyTooShort':_0x4d8f51(0x10c),'invalidConfig':_0x4d8f51(0xc8),'invalidApiKey':_0x4d8f51(0x170)},'connectionStatus':{'disconnected':_0x4d8f51(0xb3),'connecting':_0x4d8f51(0x12a),'connected':_0x4d8f51(0x1c8),'failed':_0x4d8f51(0x1be),'retrying':'重连中...'},'connectionError':{'unauthorized':_0x4d8f51(0x1fe),'sessionOccupied':_0x4d8f51(0x128),'networkError':_0x4d8f51(0x158),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var mn=Object[_0x4d8f51(0xe6)],Cn=Object[_0x4d8f51(0x174)],yn=(_0x10cade,_0x44b898,_0x42981a)=>_0x44b898 in _0x10cade?mn(_0x10cade,_0x44b898,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x42981a}):_0x10cade[_0x44b898]=_0x42981a,_n=(_0x1d02c1,_0x4341a2,_0x319c2a,_0x5224a1)=>{for(var _0x6e0b57=_0x5224a1>0x1?void 0x0:_0x5224a1?Cn(_0x4341a2,_0x319c2a):_0x4341a2,_0x2275b3=_0x1d02c1['length']-0x1,_0x5b3c21;_0x2275b3>=0x0;_0x2275b3--)(_0x5b3c21=_0x1d02c1[_0x2275b3])&&(_0x6e0b57=_0x5b3c21(_0x6e0b57)||_0x6e0b57);return _0x6e0b57;},E=(_0x4b9b86,_0x1f7756)=>(_0x1bd272,_0x5ab052)=>_0x1f7756(_0x1bd272,_0x5ab052,_0x4b9b86),xn=(_0x5a689c,_0x4e9145,_0x382fe8)=>yn(_0x5a689c,_0x4e9145+'',_0x382fe8);let L=class extends _0x5d9bb9{constructor(_0x394c0a=re,_0x58f270,_0x39797c,_0x3df6eb,_0x9f29cc,_0x4d3999){var _0xc0301d=_0x4d8f51;super(),this[_0xc0301d(0xb1)]=_0x394c0a,this[_0xc0301d(0xcb)]=_0x58f270,this[_0xc0301d(0x182)]=_0x39797c,this[_0xc0301d(0x176)]=_0x3df6eb,this['_localStorageService']=_0x9f29cc,this[_0xc0301d(0x212)]=_0x4d3999;const {..._0xd3290e}=_0x5ce5aa({},re,this[_0xc0301d(0xb1)]);this[_0xc0301d(0x182)][_0xc0301d(0xdb)](x,_0xd3290e);}async['onStarting'](){var _0x3802d6=_0x4d8f51;const _0x17644d=[[O],[I],[k]];this[_0x3802d6(0xcb)]['has'](_0x421c1d)||_0x17644d[_0x3802d6(0x187)]([_0x421c1d,{'useClass':_0x56bed1}]),_0x17644d[_0x3802d6(0x12d)](_0x4b06b8=>this[_0x3802d6(0xcb)]['add'](_0x4b06b8)),this['_injector']['get'](O),this[_0x3802d6(0xcb)][_0x3802d6(0x104)](I),this[_0x3802d6(0xcb)][_0x3802d6(0x104)](k);}};xn(L,_0x4d8f51(0x15c),_0x4d8f51(0xc5)),L=_n([_0x29f989(_0x658713),E(0x1,_0x3b0792(_0x411d26)),E(0x2,_0x1ac548),E(0x3,_0x48c0c0),E(0x4,_0xc9fca9),E(0x5,_0x3b0792(_0x4e1c5e))],L);export{tn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,un as MCPStatusDisplay,k as MCPUIMenuController,V as OpenMCPConfigPanelCommand,L as UniverMCPUIPlugin,On as enUS,kn as zhCN};
|
|
1
|
+
var _0x103721=_0x4233;(function(_0x3dcc0e,_0x56c218){var _0x39e297=_0x4233,_0x3a3131=_0x3dcc0e();while(!![]){try{var _0x3f8750=parseInt(_0x39e297(0x250))/0x1+-parseInt(_0x39e297(0x232))/0x2+-parseInt(_0x39e297(0x339))/0x3+-parseInt(_0x39e297(0x236))/0x4+-parseInt(_0x39e297(0x2d5))/0x5+-parseInt(_0x39e297(0x223))/0x6*(-parseInt(_0x39e297(0x2a0))/0x7)+parseInt(_0x39e297(0x2bb))/0x8;if(_0x3f8750===_0x56c218)break;else _0x3a3131['push'](_0x3a3131['shift']());}catch(_0x2ac2cf){_0x3a3131['push'](_0x3a3131['shift']());}}}(_0x210c,0x6f705));var we=Object[_0x103721(0x220)],Ee=(_0x13500c,_0x368a85,_0x1da4db)=>_0x368a85 in _0x13500c?we(_0x13500c,_0x368a85,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1da4db}):_0x13500c[_0x368a85]=_0x1da4db,S=(_0x4d38af,_0x4d1537,_0x1dc24c)=>Ee(_0x4d38af,typeof _0x4d1537!=_0x103721(0x2f0)?_0x4d1537+'':_0x4d1537,_0x1dc24c);import{LocaleService as _0x1cb48f,Inject as _0x2235fd,Injector as _0x40d19b,IConfigService as _0x4d3163,ILocalStorageService as _0xcab0cf,ILogService as _0x3547f4,Disposable as _0x58601d,CommandType as _0x153d32,ICommandService as _0x2dd78e,DependentOn as _0x17438e,Plugin as _0x57747f,merge as _0x16a3ed}from'@univerjs/core';import{jsxs as _0x2678b2,jsx as _0x2108d8}from'react/jsx-runtime';import{MCPConnectionStatus as _0x5cf9aa,MCPConnectionError as _0x2f0c0c,MCPConnectionController as _0x19e8d5,MCP_PLUGIN_CONFIG_KEY as _0x430f8a,UniverMCPPlugin as _0x4538b1}from'@univerjs-pro/mcp';import{Input as _0x3fb065,Button as _0x6e2211,MessageType as _0xa82ba2,Tooltip as _0x171aed,clsx as _0x3c6797}from'@univerjs/design';import{useDependency as _0x850478,useObservable as _0x2f03e5,IUIPartsService as _0x29d968,IDialogService as _0x15a5f5,IMessageService as _0x5abb6a,ComponentManager as _0x59058c,connectInjector as _0x261a19,BuiltInUIPart as _0x3172b9,MenuItemType as _0x49d67f,RibbonStartGroup as _0x1df899,IMenuManagerService as _0x193d79}from'@univerjs/ui';import{BehaviorSubject as _0x226704}from'rxjs';import{forwardRef as _0x46622c,useRef as _0x485ae7,createElement as _0x3809ab,useState as _0x19fdc5,useCallback as _0x37a6dc}from'react';import{ISocketService as _0x2e09fb,WebSocketService as _0x12b718}from'@univerjs/network';var f=function(){var _0x22e8a8=_0x103721;return f=Object[_0x22e8a8(0x308)]||function(_0x3f69b2){var _0x4109c0=_0x22e8a8;for(var _0x58aefd,_0x3ab4f6=0x1,_0x2f3aff=arguments[_0x4109c0(0x2bf)];_0x3ab4f6<_0x2f3aff;_0x3ab4f6++){_0x58aefd=arguments[_0x3ab4f6];for(var _0x390bdf in _0x58aefd)Object[_0x4109c0(0x233)][_0x4109c0(0x27a)][_0x4109c0(0x1f8)](_0x58aefd,_0x390bdf)&&(_0x3f69b2[_0x390bdf]=_0x58aefd[_0x390bdf]);}return _0x3f69b2;},f[_0x22e8a8(0x284)](this,arguments);},Ye=function(_0x5314ed,_0x1a4ea2){var _0x2b021e=_0x103721,_0x3cf48c={};for(var _0x2ae938 in _0x5314ed)Object[_0x2b021e(0x233)][_0x2b021e(0x27a)]['call'](_0x5314ed,_0x2ae938)&&_0x1a4ea2[_0x2b021e(0x245)](_0x2ae938)<0x0&&(_0x3cf48c[_0x2ae938]=_0x5314ed[_0x2ae938]);if(_0x5314ed!=null&&typeof Object[_0x2b021e(0x1f5)]=='function'){for(var _0x5ec160=0x0,_0x2ae938=Object[_0x2b021e(0x1f5)](_0x5314ed);_0x5ec160<_0x2ae938[_0x2b021e(0x2bf)];_0x5ec160++)_0x1a4ea2['indexOf'](_0x2ae938[_0x5ec160])<0x0&&Object[_0x2b021e(0x233)][_0x2b021e(0x283)][_0x2b021e(0x1f8)](_0x5314ed,_0x2ae938[_0x5ec160])&&(_0x3cf48c[_0x2ae938[_0x5ec160]]=_0x5314ed[_0x2ae938[_0x5ec160]]);}return _0x3cf48c;},w=_0x46622c(function(_0x30c01d,_0x1df286){var _0x5c8d4c=_0x103721,_0x1277cc=_0x30c01d[_0x5c8d4c(0x25a)],_0x355f1b=_0x30c01d['id'],_0x3b9612=_0x30c01d[_0x5c8d4c(0x26a)],_0xfb29f7=_0x30c01d[_0x5c8d4c(0x213)],_0x2b31cb=Ye(_0x30c01d,[_0x5c8d4c(0x25a),'id',_0x5c8d4c(0x26a),_0x5c8d4c(0x213)]),_0x5cc171='univerjs-icon\x20univerjs-icon-'[_0x5c8d4c(0x288)](_0x355f1b,'\x20')['concat'](_0x3b9612||'')[_0x5c8d4c(0x20e)](),_0x3eb49f=_0x485ae7('_'[_0x5c8d4c(0x288)](Xe()));return ue(_0x1277cc,''[_0x5c8d4c(0x288)](_0x355f1b),{'defIds':_0x1277cc['defIds'],'idSuffix':_0x3eb49f['current']},f({'ref':_0x1df286,'className':_0x5cc171},_0x2b31cb),_0xfb29f7);});function ue(_0x1f736e,_0x577423,_0x24335,_0x422718,_0x1637d4){var _0x1d1d21=_0x103721;return _0x3809ab(_0x1f736e['tag'],f(f({'key':_0x577423},Ze(_0x1f736e,_0x24335,_0x1637d4)),_0x422718),(qe(_0x1f736e,_0x24335)[_0x1d1d21(0x1f6)]||[])['map'](function(_0x3cf50e,_0x501e25){var _0x25f818=_0x1d1d21;return ue(_0x3cf50e,''[_0x25f818(0x288)](_0x577423,'-')['concat'](_0x1f736e['tag'],'-')['concat'](_0x501e25),_0x24335,void 0x0,_0x1637d4);}));}function Ze(_0x294742,_0x259017,_0x5af284){var _0x4309f0=_0x103721,_0x459650=f({},_0x294742[_0x4309f0(0x2f2)]);_0x5af284!=null&&_0x5af284[_0x4309f0(0x244)]&&_0x459650['fill']==='colorChannel1'&&(_0x459650['fill']=_0x5af284[_0x4309f0(0x244)]),_0x294742['tag']===_0x4309f0(0x327)&&_0x459650['id']&&(_0x459650['id']=_0x459650['id']+_0x259017[_0x4309f0(0x2b1)]),Object[_0x4309f0(0x2a1)](_0x459650)[_0x4309f0(0x2b5)](function(_0x5ad264){var _0x95492=_0x4309f0,_0xec1ba7=_0x5ad264[0x0],_0x11e9fa=_0x5ad264[0x1];_0xec1ba7===_0x95492(0x327)&&typeof _0x11e9fa==_0x95492(0x2e5)&&(_0x459650[_0xec1ba7]=_0x11e9fa[_0x95492(0x312)](/url\(#(.*)\)/,_0x95492(0x22e)[_0x95492(0x288)](_0x259017[_0x95492(0x2b1)],')')));});var _0x3f04b1=_0x259017[_0x4309f0(0x2e1)];return!_0x3f04b1||_0x3f04b1[_0x4309f0(0x2bf)]===0x0||(_0x294742[_0x4309f0(0x2e6)]==='use'&&_0x459650[_0x4309f0(0x22a)]&&(_0x459650[_0x4309f0(0x22a)]=_0x459650[_0x4309f0(0x22a)]+_0x259017['idSuffix']),Object[_0x4309f0(0x2a1)](_0x459650)[_0x4309f0(0x2b5)](function(_0x440f9c){var _0x1578c3=_0x4309f0,_0x1594f0=_0x440f9c[0x0],_0x56b260=_0x440f9c[0x1];typeof _0x56b260=='string'&&(_0x459650[_0x1594f0]=_0x56b260[_0x1578c3(0x312)](/url\(#(.*)\)/,_0x1578c3(0x22e)['concat'](_0x259017['idSuffix'],')')));})),_0x459650;}function qe(_0x227483,_0x1c9578){var _0x235759=_0x103721,_0x2705d3,_0x50679b=_0x1c9578[_0x235759(0x2e1)];return!_0x50679b||_0x50679b[_0x235759(0x2bf)]===0x0?_0x227483:_0x227483[_0x235759(0x2e6)]===_0x235759(0x25f)&&(!((_0x2705d3=_0x227483[_0x235759(0x1f6)])===null||_0x2705d3===void 0x0)&&_0x2705d3[_0x235759(0x2bf)])?f(f({},_0x227483),{'children':_0x227483[_0x235759(0x1f6)][_0x235759(0x209)](function(_0x591c1a){var _0x3f1232=_0x235759;return typeof _0x591c1a[_0x3f1232(0x2f2)]['id']=='string'&&_0x50679b&&_0x50679b[_0x3f1232(0x31b)](_0x591c1a[_0x3f1232(0x2f2)]['id'])?f(f({},_0x591c1a),{'attrs':f(f({},_0x591c1a[_0x3f1232(0x2f2)]),{'id':_0x591c1a['attrs']['id']+_0x1c9578[_0x3f1232(0x2b1)]})}):_0x591c1a;})}):_0x227483;}function Xe(){var _0x2871b1=_0x103721;return Math[_0x2871b1(0x2eb)]()[_0x2871b1(0x350)](0x24)['substring'](0x2,0x8);}w[_0x103721(0x1ed)]=_0x103721(0x1f4);var Je={'tag':'svg','attrs':{'xmlns':_0x103721(0x25c),'fill':'none','viewBox':'0\x200\x2016\x2016','width':'1em','height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x103721(0x351),'d':'M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','fillRule':_0x103721(0x325),'clipRule':'evenodd'}}]},le=_0x46622c(function(_0x40ba22,_0x48c5aa){var _0x1930fa=_0x103721;return _0x3809ab(w,Object[_0x1930fa(0x308)]({},_0x40ba22,{'id':_0x1930fa(0x2c7),'ref':_0x48c5aa,'icon':Je}));});le['displayName']=_0x103721(0x2cc);var Qe={'tag':'svg','attrs':{'xmlns':_0x103721(0x25c),'fill':_0x103721(0x2ef),'viewBox':_0x103721(0x293),'width':'1em','height':_0x103721(0x24e)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x103721(0x28a),'strokeLinecap':_0x103721(0x34f),'strokeLinejoin':_0x103721(0x34f),'strokeWidth':1.33}},{'tag':_0x103721(0x2e0),'attrs':{'stroke':'currentColor','d':_0x103721(0x333),'strokeLinecap':_0x103721(0x34f),'strokeLinejoin':_0x103721(0x34f),'strokeWidth':1.33}}]},ve=_0x46622c(function(_0x304e7d,_0x55cdd9){var _0x4cbf3c=_0x103721;return _0x3809ab(w,Object['assign']({},_0x304e7d,{'id':_0x4cbf3c(0x2c2),'ref':_0x55cdd9,'icon':Qe}));});ve[_0x103721(0x1ed)]=_0x103721(0x29d);var en={'tag':_0x103721(0x2b2),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x103721(0x295),'width':'1em','height':_0x103721(0x24e)},'children':[{'tag':_0x103721(0x2e0),'attrs':{'fill':_0x103721(0x351),'d':'M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z'}},{'tag':_0x103721(0x2e0),'attrs':{'fill':_0x103721(0x351),'d':_0x103721(0x1f1)}},{'tag':_0x103721(0x2e0),'attrs':{'fill':'currentColor','d':_0x103721(0x2d1),'fillRule':_0x103721(0x325),'clipRule':_0x103721(0x325)}}]},de=_0x46622c(function(_0x2e889c,_0x1a8fc7){var _0x3fd263=_0x103721;return _0x3809ab(w,Object[_0x3fd263(0x308)]({},_0x2e889c,{'id':_0x3fd263(0x2c5),'ref':_0x1a8fc7,'icon':en}));});de['displayName']=_0x103721(0x2cf);var nn={'tag':_0x103721(0x2b2),'attrs':{'xmlns':_0x103721(0x25c),'fill':_0x103721(0x2ef),'viewBox':'0\x200\x2016\x2016','width':_0x103721(0x24e),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x103721(0x237)},'children':[{'tag':_0x103721(0x2e0),'attrs':{'stroke':_0x103721(0x351),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x103721(0x34f),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x103721(0x25f),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x103721(0x1fa)},'children':[{'tag':_0x103721(0x2e0),'attrs':{'fill':_0x103721(0x310),'d':_0x103721(0x24b)}}]}]}],'defIds':[_0x103721(0x1fa)]},fe=_0x46622c(function(_0xc03575,_0x579b25){var _0x11e7eb=_0x103721;return _0x3809ab(w,Object[_0x11e7eb(0x308)]({},_0xc03575,{'id':'off-line-icon','ref':_0x579b25,'icon':nn}));});fe[_0x103721(0x1ed)]='OffLineIcon';var rn={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x103721(0x2ef),'viewBox':_0x103721(0x2db),'width':'1em','height':_0x103721(0x24e)},'children':[{'tag':'g','attrs':{'clipPath':_0x103721(0x285)},'children':[{'tag':_0x103721(0x2e0),'attrs':{'stroke':_0x103721(0x351),'d':_0x103721(0x215),'strokeLinecap':'round','strokeLinejoin':_0x103721(0x34f),'strokeWidth':1.2}}]},{'tag':_0x103721(0x25f),'attrs':{},'children':[{'tag':_0x103721(0x31c),'attrs':{'id':_0x103721(0x2bc)},'children':[{'tag':_0x103721(0x2e0),'attrs':{'fill':_0x103721(0x310),'d':_0x103721(0x24b),'transform':_0x103721(0x294)}}]}]}],'defIds':[_0x103721(0x2bc)]},ge=_0x46622c(function(_0x2dd6d1,_0x55a8cf){var _0xa22b66=_0x103721;return _0x3809ab(w,Object[_0xa22b66(0x308)]({},_0x2dd6d1,{'id':'on-line-icon','ref':_0x55a8cf,'icon':rn}));});ge[_0x103721(0x1ed)]=_0x103721(0x23a);function _0x210c(){var _0x27b2ee=['mcpConfig.connectionError.unauthorized','NETWORK_ERROR','Enter\x20your\x20API\x20key','_localStorageService','_messageService','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','启用身份验证','mcpStatus.connecting','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','univer-bg-blue-500','round','toString','currentColor','mcpConfig.configStep3','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-h-6\x20univer-w-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','displayName','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','mcp-ui.command.openConfigPanel','M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z','MCP\x20已断开','MCP\x20连接失败','UniverIcon','getOwnPropertySymbols','children','univer-mr-2\x20univer-flex\x20univer-text-xl','call','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','off-line-icon_clip0_910_343','点击配置\x20MCP','_componentManager','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','bottom','_registerComponent','MAX_RETRIES_EXCEEDED','Configuration\x20Parameters:','MCP\x20Client\x20Configuration','univer-ml-1\x20univer-flex\x20univer-h-4\x20univer-w-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','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','\x20-\x20','API\x20密钥不能为空','mcpConfig.title','univer-text-xs\x20univer-text-gray-600','map','mcpConfig.configSaved','mcpConfig.configInstructions','mcpStatus.clickToConfigure','univer-min-w-0\x20univer-flex-1','trim','next','mcpConfig.connectionInfo','mcpConfig.apiApplyInfo.univerAiLabel','MCP\x20Unknown\x20Status','extend','univer-text-xs\x20univer-text-gray-500','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','univer-space-y-2','mcpConfig.save','Failed\x20to\x20save\x20configuration','mcpConfig.configParameters','isValid','univer-flex-shrink-0\x20univer-text-blue-500','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','_config$','_logService','MCP\x20Retrying...','defineProperty','mergeMenu','univer-flex\x20univer-flex-wrap\x20univer-gap-2','978TsTxRP','get','_uiPartsService','Retrying...','mcpConfig.validation.invalidApiKey','_localeService','超出最大重试次数,请稍后再试','xlink:href','Click\x20to\x20configure\x20MCP','register','API\x20key\x20is\x20required','url(#$1','mcpConfig.connectionStatus.disconnected','showConfigPanel','univer-flex\x20univer-items-center\x20univer-gap-3','731900ZeISDU','prototype','_config','API\x20密钥','686796WPqcdv','url(#off-line-icon_clip0_910_343)','mcpConfig.description','DISCONNECTED','OnLineIcon','Save\x20Configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','univer-flex\x20univer-items-center\x20univer-gap-2','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','_initAutoConnect','MCP\x20客户端配置','点击连接\x20MCP','NONE','mcpStatus.connected','colorChannel1','indexOf','univer-text-red-500','validateApiKey','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Connection\x20Failed','已连接','M0\x200H16V16H0z','_handleConfigure','univer-text-gray-500','1em','HEADER_MENU','633372VYZNHw','Configuration\x20Steps:','_initStatusComponent','javascript:void(0)','_initializeMenus','UNAUTHORIZED','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','mcpConfig.connectionError.networkError','open','保存中...','icon','MCP\x20重连中...','http://www.w3.org/2000/svg','univer-flex\x20univer-gap-3','value','defs','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','showDeveloperTools','_connectionController','univer-text-sm\x20univer-font-medium','mcpStatus.sessionOccupied','MCP\x20Connecting...','\x22,\x0a\x20\x20\x20\x20\x20\x20\x22type\x22:\x20\x22http\x22,\x0a\x20\x20\x20\x20\x20\x20\x22headers\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22Authorization\x22:\x20\x22Bearer\x20','FAILED','配置更改将立即生效','connectionError$','className','_injector','重连中...','保存配置','__setCustomHeaders','API\x20密钥无效,请检查密钥是否正确','_blank','_dialogService','COMMAND','univer-text-sm\x20univer-text-gray-500','mcpConfig.connectionStatus.failed','_menuManagerService','mcpConfig.note1','https://console.univer.ai','Get\x20your\x20API\x20key\x20in\x20seconds','univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','hasOwnProperty','mcpConfig.configError','apiKey','subscribe','Enable\x20Authentication','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','label','将以下配置添加到您的\x20MCP\x20客户端设置中:','Error','propertyIsEnumerable','apply','url(#on-line-icon_clip0_910_349)','off','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','concat','warn','M5.21243\x205.62036L11.8791\x2012.287','MenuIcon','_mcpConnectionController','sessionId$','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','mcpConfig.connectionError.sessionOccupied','univer-flex-1','disposeWithMe','connectionStatus$','0\x200\x2017\x2017','translate(.97)','0\x200\x2016\x2016','RETRYING','MCP\x20状态未知','几秒钟内获取您的\x20API\x20密钥','MCP:\x20未授权','mcpConfig.saving','What\x20is\x20API\x20Key?','Authorization:','CloseSmallSingle','_commandService','_createConfigPanelComponent','1939SWaMxj','entries','Max\x20Retries','连接中...','setConfig','mcpStatus.disconnected','网络连接错误,请检查您的网络连接','重启您的\x20MCP\x20客户端以使配置生效','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','mcpConfig.validation.invalidConfig','subscribeConfigValue$','univer-flex\x20univer-items-center','将配置添加到您的\x20MCP\x20客户端设置文件中','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','show','mcpStatus.clickToConnect','univer.ai','idSuffix','svg','Bearer\x20','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','forEach','Enable\x20authentication\x20for\x20secure\x20connections','mcpStatus.failed','univer-flex\x20univer-h-10\x20univer-w-10\x20univer-flex-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','API\x20key\x20with\x20Bearer\x20prefix.','has','10682768KbARHE','on-line-icon_clip0_910_349','https://console.univer.plus','MCP:\x20Max\x20Retries\x20Exceeded','length','MCPConfigPanel','MCP:\x20Session\x20ID\x20Occupied','close-small-single','mcp-ui.config','mcpConfig.connectionError.maxRetriesExceeded','help-single','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','check-mark-icon','mcpStatus.unknown','_loading$','getConfig','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','CheckMarkIcon','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','univer-text-yellow-500','HelpSingle','_handleConfigSave','M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','univer-bg-red-500','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','CONNECTING','3239510QEjCKv','配置\x20MCP\x20使用\x20AI\x20操作电子表格','Disconnected','Configuration\x20Notes:','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','0\x200\x2017\x2016','配置无效','MCP\x20已连接','getItem','Connection\x20Failed','path','defIds','mcpConfig.apiKey','univer-text-green-500','mcpStatus.retrying','string','tag','mcp.apiKey','_mcpCoreConfig$','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','mcpServerUrl','random','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','pre','none','symbol','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','attrs','close','Saving...','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','mcpConfig.apiKeyHint','复制以下\x20JSON\x20配置','error','会话\x20ID\x20已被占用,请稍后再试','mcpConfig.apiApplyInfo.description','mcpConfig.sessionIdDescription','mcpConfig.connectionStatus.retrying','MCP:\x20Unauthorized','add','{\x0a\x20\x20\x22mcpServers\x22:\x20{\x0a\x20\x20\x20\x20\x22univer\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x22url\x22:\x20\x22https://mcp.univer.ai/mcp/?univer_session_id=','mcpConfig.validation.apiKeyTooShort','mcpConfig.configStepTitle','univer-bg-green-500','配置保存成功','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','univer-flex\x20univer-items-start\x20univer-gap-3','mcpConfig.configStep2','Session\x20ID','assign','配置参数:','API\x20Key','Univer\x20AI\x20控制台','OTHERS','_configService','univer-space-y-4','Connecting...','white','Copy\x20the\x20JSON\x20configuration\x20below','replace','getCurrentConfig','连接失败','CONNECTED','univer-font-medium','MCP:\x20网络错误','MCP\x20配置','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','includes','clipPath','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','_loadStoredApiKey','mcpConfig.validation.apiKeyRequired','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP_UI_PLUGIN','mcpConfig.apiApplyInfo.title','您的\x20API\x20密钥安全存储在本地存储中','removeItem','evenodd','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','mask','getOwnPropertyDescriptor','univer.plus','errorMessage','配置步骤:','启用身份验证以获得安全连接','univer-text-blue-600','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','什么是\x20API\x20密钥?','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','div','最大重试次数','M5.21243\x2012.287L11.8791\x205.62036','_apiKey$','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','MCP:\x20超出最大重试次数','BUTTON','SESSION_ID_OCCUPIED','1115595kYAwcW','\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x0a}','univer-space-y-3','_initializeCommands','mcpConfig.apiKeyPlaceholder','API\x20密钥长度至少需要\x2010\x20位','_initConfigSync','您的\x20API\x20密钥将在此浏览器中本地存储','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-h-2\x20univer-w-2\x20univer-rounded-full\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','span','univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600'];_0x210c=function(){return _0x27b2ee;};return _0x210c();}function tn(_0x730be2){var _0x4f7af9=_0x103721,_0x1cfad1,_0x1b3c11;const {mcpCoreConfig:_0x41186e,onSave:_0x32d938,loading:_0x1c5464=!0x1,config:_0x5e45ea,connectionStatus$:_0xf25ddb,connectionError$:_0x318888,currentApiKey$:_0x53dd1c,currentSessionId$:_0x3ba136}=_0x730be2,_0x1cb510=_0x850478(_0x1cb48f),_0x189393=_0x2f03e5(_0xf25ddb,_0x5cf9aa[_0x4f7af9(0x239)]),_0x1c0d39=_0x2f03e5(_0x318888,_0x2f0c0c[_0x4f7af9(0x242)]),_0x38d782=_0x2f03e5(_0x3ba136,''),_0x190f76=_0x2f03e5(_0x53dd1c,''),[_0x3dea7e,_0x9227c9]=_0x19fdc5(_0x190f76||''),_0x57754d=!0x0,_0x2275fe=_0x5e45ea[_0x4f7af9(0x261)]&&_0x41186e['mcpServerUrl']&&(_0x41186e[_0x4f7af9(0x2ea)][_0x4f7af9(0x31b)](_0x4f7af9(0x329))||_0x41186e['mcpServerUrl'][_0x4f7af9(0x31b)]('univer.ai')),_0x1ba57c=(_0x1cfad1=_0x41186e['mcpServerUrl'])==null?void 0x0:_0x1cfad1['includes'](_0x4f7af9(0x329)),_0x44d54e=(_0x1b3c11=_0x41186e['mcpServerUrl'])==null?void 0x0:_0x1b3c11['includes'](_0x4f7af9(0x2b0)),_0x4f549c=_0x1ba57c?_0x4f7af9(0x2bd):_0x4f7af9(0x277),_0xceadd7=_0x5e45ea[_0x4f7af9(0x261)]&&(_0x1ba57c||_0x44d54e),[_0x4a7fd4,_0x2f04f8]=_0x19fdc5(!_0x3dea7e[_0x4f7af9(0x20e)]()),_0x199131=(_0x5752d1,_0x5b4ad2)=>{var _0x4792c2=_0x4f7af9;if(_0x5b4ad2===_0x2f0c0c['UNAUTHORIZED'])return _0x4792c2(0x256);switch(_0x5752d1){case _0x5cf9aa['CONNECTED']:return _0x4792c2(0x342);case _0x5cf9aa['CONNECTING']:case _0x5cf9aa['RETRYING']:return _0x4792c2(0x34d);case _0x5cf9aa['FAILED']:return _0x4792c2(0x256);default:return _0x4792c2(0x2b4);}},_0x3190b7=(_0x1f3e48,_0xf69ec5)=>{var _0xf48682=_0x4f7af9;if(_0xf69ec5===_0x2f0c0c[_0xf48682(0x255)])return _0xf48682(0x2d2);switch(_0x1f3e48){case _0x5cf9aa[_0xf48682(0x315)]:return _0xf48682(0x302);case _0x5cf9aa[_0xf48682(0x2d4)]:case _0x5cf9aa[_0xf48682(0x296)]:return _0xf48682(0x34e);case _0x5cf9aa[_0xf48682(0x267)]:return _0xf48682(0x2d2);default:return'univer-bg-gray-500';}},_0x109887=_0x303fcb=>{var _0x348354=_0x4f7af9;switch(_0x303fcb){case _0x5cf9aa[_0x348354(0x315)]:return _0x1cb510['t']('mcpConfig.connectionStatus.connected');case _0x5cf9aa[_0x348354(0x2d4)]:return _0x1cb510['t']('mcpConfig.connectionStatus.connecting');case _0x5cf9aa[_0x348354(0x267)]:return _0x1cb510['t'](_0x348354(0x274));case _0x5cf9aa[_0x348354(0x296)]:return _0x1cb510['t'](_0x348354(0x2fc));default:return _0x1cb510['t'](_0x348354(0x22f));}},_0x29fa92=_0x4ede1b=>{var _0x13ee1f=_0x4f7af9;switch(_0x4ede1b){case _0x2f0c0c['UNAUTHORIZED']:return _0x1cb510['t'](_0x13ee1f(0x345));case _0x2f0c0c['SESSION_ID_OCCUPIED']:return _0x1cb510['t'](_0x13ee1f(0x28f));case _0x2f0c0c[_0x13ee1f(0x346)]:return _0x1cb510['t'](_0x13ee1f(0x257));case _0x2f0c0c[_0x13ee1f(0x200)]:return _0x1cb510['t'](_0x13ee1f(0x2c4));default:return'';}},_0x470188=_0x37a6dc(()=>{var _0x62492e=_0x4f7af9;const _0x286d11={..._0x41186e,'apiKey':_0x3dea7e[_0x62492e(0x20e)](),'enableAuth':_0x57754d};_0x32d938(_0x286d11);},[_0x41186e,_0x3dea7e,_0x57754d,_0x32d938]),_0x1e4c1c=_0x3dea7e[_0x4f7af9(0x20e)]()[_0x4f7af9(0x2bf)]>0x0;return _0x2678b2(_0x4f7af9(0x331),{'className':_0x4f7af9(0x28e),'children':[_0x2108d8(_0x4f7af9(0x331),{'className':_0x4f7af9(0x2f1),'children':_0x2678b2(_0x4f7af9(0x331),{'className':_0x4f7af9(0x231),'children':[_0x2108d8(_0x4f7af9(0x331),{'className':_0x4f7af9(0x279),'children':_0x2108d8(_0x4f7af9(0x343),{'className':'univer-text-white','children':'⚙'})}),_0x2108d8(_0x4f7af9(0x331),{'children':_0x2108d8('p',{'className':_0x4f7af9(0x273),'children':_0x1cb510['t'](_0x4f7af9(0x238))})})]})}),_0x2678b2(_0x4f7af9(0x331),{'className':_0x4f7af9(0x2f5),'children':[_0x2108d8(_0x4f7af9(0x331),{'className':_0x4f7af9(0x31d)+_0x199131(_0x189393,_0x1c0d39)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','children':_0x2678b2(_0x4f7af9(0x331),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x2108d8(_0x4f7af9(0x331),{'className':_0x4f7af9(0x341)+_0x3190b7(_0x189393,_0x1c0d39)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'}),_0x2108d8(_0x4f7af9(0x343),{'className':_0x4f7af9(0x263),'children':_0x109887(_0x189393)})]})}),_0x1c0d39!==_0x2f0c0c['NONE']&&(_0x189393===_0x5cf9aa[_0x4f7af9(0x267)]||_0x1c0d39===_0x2f0c0c[_0x4f7af9(0x255)])&&_0x2108d8(_0x4f7af9(0x331),{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':_0x2678b2(_0x4f7af9(0x331),{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[_0x2108d8(_0x4f7af9(0x343),{'className':'univer-flex-shrink-0\x20univer-text-red-500','children':'⚠️'}),_0x2108d8('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x29fa92(_0x1c0d39)})]})})]}),_0x2108d8(_0x4f7af9(0x331),{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':_0x2678b2(_0x4f7af9(0x331),{'className':'univer-space-y-5','children':[_0x2678b2(_0x4f7af9(0x331),{'className':_0x4f7af9(0x216),'children':[_0x2678b2(_0x4f7af9(0x280),{'className':_0x4f7af9(0x2e9),'children':[_0x2108d8(_0x4f7af9(0x343),{'children':'🔑'}),'\x20',_0x1cb510['t'](_0x4f7af9(0x2e2)),_0x2108d8('span',{'className':_0x4f7af9(0x246),'children':'*'}),_0x2275fe&&_0x2108d8('a',{'href':_0x4f7af9(0x253),'onClick':()=>_0x2f04f8(!0x0),'className':_0x4f7af9(0x203),'title':_0x1cb510['t'](_0x4f7af9(0x322)),'children':_0x2108d8(de,{})})]}),_0x2108d8(_0x3fb065,{'type':'text','placeholder':_0x1cb510['t'](_0x4f7af9(0x33d)),'value':_0x3dea7e,'onChange':_0x9227c9,'disabled':_0x1c5464,'autoComplete':_0x4f7af9(0x286)}),_0x2108d8('p',{'className':_0x4f7af9(0x214),'children':_0x1cb510['t'](_0x4f7af9(0x2f6))})]}),_0x2275fe&&_0x4a7fd4&&_0x2678b2(_0x4f7af9(0x331),{'className':_0x4f7af9(0x326),'children':[_0x2108d8('a',{'href':_0x4f7af9(0x253),'onClick':()=>_0x2f04f8(!0x1),'className':_0x4f7af9(0x1ec),'title':'Close','children':_0x2108d8(ve,{})}),_0x2678b2('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[_0x2108d8(_0x4f7af9(0x331),{'className':_0x4f7af9(0x2b8),'children':_0x2108d8('span',{'className':_0x4f7af9(0x32d),'children':'🚀'})}),_0x2678b2(_0x4f7af9(0x331),{'className':_0x4f7af9(0x290),'children':[_0x2108d8('h4',{'className':_0x4f7af9(0x1ef),'children':_0x1cb510['t'](_0x4f7af9(0x322))}),_0x2108d8('p',{'className':_0x4f7af9(0x2c6),'children':_0x1cb510['t'](_0x4f7af9(0x2fa))}),_0x2108d8('div',{'className':_0x4f7af9(0x222),'children':_0xceadd7&&_0x2678b2('a',{'href':_0x4f549c,'target':_0x4f7af9(0x270),'rel':'noopener\x20noreferrer','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','children':[_0x2108d8(_0x4f7af9(0x343),{'children':'🤖'}),_0x1cb510['t'](_0x4f7af9(0x211)),_0x2108d8(_0x4f7af9(0x343),{'className':'univer-text-gray-400','children':'↗'})]})}),_0x2678b2(_0x4f7af9(0x331),{'className':_0x4f7af9(0x2ad),'children':['✨','\x20',_0x1cb510['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x5e45ea[_0x4f7af9(0x261)]&&_0x2678b2(_0x4f7af9(0x331),{'className':_0x4f7af9(0x335),'children':[_0x2678b2('h4',{'className':_0x4f7af9(0x2da),'children':[_0x2108d8('span',{'children':'🔗'}),'\x20',_0x1cb510['t'](_0x4f7af9(0x210))]}),_0x2678b2('div',{'className':_0x4f7af9(0x30e),'children':[_0x2678b2(_0x4f7af9(0x331),{'className':_0x4f7af9(0x33b),'children':[_0x2108d8('p',{'className':_0x4f7af9(0x208),'children':_0x1cb510['t'](_0x4f7af9(0x20b))}),_0x2678b2(_0x4f7af9(0x331),{'className':'univer-space-y-2','children':[_0x2108d8(_0x4f7af9(0x331),{'className':_0x4f7af9(0x32e),'children':_0x1cb510['t'](_0x4f7af9(0x301))}),_0x2678b2(_0x4f7af9(0x331),{'className':_0x4f7af9(0x2ed),'children':[_0x2678b2('div',{'className':_0x4f7af9(0x23d),'children':[_0x2108d8(_0x4f7af9(0x343),{'className':_0x4f7af9(0x344),'children':'1'}),_0x1cb510['t']('mcpConfig.configStep1')]}),_0x2678b2('div',{'className':_0x4f7af9(0x23d),'children':[_0x2108d8(_0x4f7af9(0x343),{'className':_0x4f7af9(0x344),'children':'2'}),_0x1cb510['t'](_0x4f7af9(0x306))]}),_0x2678b2('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x2108d8(_0x4f7af9(0x343),{'className':_0x4f7af9(0x344),'children':'3'}),_0x1cb510['t'](_0x4f7af9(0x352))]})]})]})]}),_0x2678b2(_0x4f7af9(0x331),{'className':_0x4f7af9(0x216),'children':[_0x2108d8(_0x4f7af9(0x331),{'className':_0x4f7af9(0x32e),'children':'MCP\x20Configuration'}),_0x2108d8(_0x4f7af9(0x331),{'className':_0x4f7af9(0x1f9),'children':_0x2108d8(_0x4f7af9(0x2ee),{'className':_0x4f7af9(0x1ee),'children':_0x4f7af9(0x2ff)+_0x38d782+_0x4f7af9(0x266)+(_0x3dea7e||'<API_KEY>')+_0x4f7af9(0x33a)})})]}),_0x2678b2('div',{'className':_0x4f7af9(0x33b),'children':[_0x2108d8(_0x4f7af9(0x331),{'className':_0x4f7af9(0x32e),'children':_0x1cb510['t'](_0x4f7af9(0x219))}),_0x2678b2(_0x4f7af9(0x331),{'className':_0x4f7af9(0x216),'children':[_0x2678b2(_0x4f7af9(0x331),{'className':_0x4f7af9(0x305),'children':[_0x2108d8(_0x4f7af9(0x331),{'className':_0x4f7af9(0x2d3)}),_0x2678b2(_0x4f7af9(0x331),{'className':_0x4f7af9(0x20d),'children':[_0x2108d8(_0x4f7af9(0x331),{'className':_0x4f7af9(0x1fd),'children':'univer_session_id:'}),_0x2108d8(_0x4f7af9(0x331),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x1cb510['t'](_0x4f7af9(0x2fb))})]})]}),_0x2678b2(_0x4f7af9(0x331),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x2108d8(_0x4f7af9(0x331),{'className':_0x4f7af9(0x2d3)}),_0x2678b2(_0x4f7af9(0x331),{'className':_0x4f7af9(0x20d),'children':[_0x2108d8('div',{'className':_0x4f7af9(0x1fd),'children':_0x4f7af9(0x29c)}),_0x2108d8(_0x4f7af9(0x331),{'className':_0x4f7af9(0x214),'children':_0x1cb510['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),_0x2108d8(_0x6e2211,{'onClick':_0x470188,'disabled':!_0x1e4c1c||_0x1c5464,'className':_0x4f7af9(0x287),'children':_0x1c5464?_0x2678b2('span',{'className':_0x4f7af9(0x23d),'children':[_0x2108d8(_0x4f7af9(0x343),{'children':'⟲'}),_0x1cb510['t'](_0x4f7af9(0x29a))]}):_0x2678b2(_0x4f7af9(0x343),{'className':_0x4f7af9(0x23d),'children':[_0x2108d8(le,{}),_0x1cb510['t'](_0x4f7af9(0x217))]})}),_0x2108d8(_0x4f7af9(0x331),{'className':_0x4f7af9(0x2d9),'children':_0x2678b2('div',{'className':_0x4f7af9(0x25d),'children':[_0x2108d8(_0x4f7af9(0x343),{'className':_0x4f7af9(0x21b),'children':'💡'}),_0x2678b2('div',{'className':_0x4f7af9(0x2cd),'children':[_0x2108d8('div',{'className':_0x4f7af9(0x316),'children':_0x4f7af9(0x2d8)}),_0x2678b2('div',{'children':['•',_0x1cb510['t'](_0x4f7af9(0x276))]}),_0x2678b2(_0x4f7af9(0x331),{'children':['•',_0x1cb510['t']('mcpConfig.note2')]})]})]})})]})})]});}const x=_0x103721(0x2c3),re={'showDeveloperTools':!0x1,'showStatus':!0x0};var on=Object['getOwnPropertyDescriptor'],sn=(_0x1b9043,_0x1474db,_0xbc87df,_0xcd1c37)=>{var _0x208d26=_0x103721;for(var _0x363c58=_0xcd1c37>0x1?void 0x0:_0xcd1c37?on(_0x1474db,_0xbc87df):_0x1474db,_0x1d3df7=_0x1b9043[_0x208d26(0x2bf)]-0x1,_0x4a963e;_0x1d3df7>=0x0;_0x1d3df7--)(_0x4a963e=_0x1b9043[_0x1d3df7])&&(_0x363c58=_0x4a963e(_0x363c58)||_0x363c58);return _0x363c58;},g=(_0x42ef9c,_0x5087c7)=>(_0x269d23,_0x4224a9)=>_0x5087c7(_0x269d23,_0x4224a9,_0x42ef9c);function _0x4233(_0x132230,_0x4b7abe){var _0x210cb9=_0x210c();return _0x4233=function(_0x423350,_0x67fbc5){_0x423350=_0x423350-0x1ec;var _0x225a4e=_0x210cb9[_0x423350];return _0x225a4e;},_0x4233(_0x132230,_0x4b7abe);}const j=_0x103721(0x2e7),U='mcp-config-dialog';let I=class extends _0x58601d{constructor(_0x2c1b01,_0x3ef9e2,_0x5b6887,_0xa60970,_0x567aee,_0x2ee659,_0x96e819,_0x205fcd,_0x2dbfc5,_0x3e53b9){var _0x551e8b=_0x103721;super(),S(this,_0x551e8b(0x2c9),new _0x226704(!0x1)),S(this,_0x551e8b(0x2e8),new _0x226704({})),S(this,_0x551e8b(0x21d),new _0x226704({})),S(this,_0x551e8b(0x334),new _0x226704('')),S(this,_0x551e8b(0x2d0),async _0x5d196e=>{var _0x34d33a=_0x551e8b,_0x5e3c8e,_0x1277d1;this[_0x34d33a(0x2c9)][_0x34d33a(0x20f)](!0x0);try{const _0x3f02bf=await this['_validateConfig'](_0x5d196e);if(!_0x3f02bf[_0x34d33a(0x21a)]){this[_0x34d33a(0x349)][_0x34d33a(0x2ae)]({'type':_0xa82ba2[_0x34d33a(0x282)],'content':_0x3f02bf[_0x34d33a(0x32a)]||this['_localeService']['t'](_0x34d33a(0x2a9))});return;}_0x5d196e[_0x34d33a(0x27c)]?await this[_0x34d33a(0x348)]['setItem'](j,_0x5d196e[_0x34d33a(0x27c)]['trim']()):await this[_0x34d33a(0x348)][_0x34d33a(0x324)](j),this[_0x34d33a(0x334)][_0x34d33a(0x20f)](((_0x5e3c8e=_0x5d196e[_0x34d33a(0x27c)])==null?void 0x0:_0x5e3c8e[_0x34d33a(0x20e)]())||''),this[_0x34d33a(0x28c)][_0x34d33a(0x26e)]({'Authorization':_0x34d33a(0x2b3)+((_0x1277d1=_0x5d196e['apiKey'])==null?void 0x0:_0x1277d1[_0x34d33a(0x20e)]())}),this[_0x34d33a(0x349)][_0x34d33a(0x2ae)]({'type':_0xa82ba2['Success'],'content':this[_0x34d33a(0x228)]['t'](_0x34d33a(0x20a))}),setTimeout(()=>{var _0x5ad4bb=_0x34d33a;this[_0x5ad4bb(0x271)][_0x5ad4bb(0x2f3)](U);},0x320);}catch(_0x3844f9){this[_0x34d33a(0x21e)][_0x34d33a(0x2f8)](_0x34d33a(0x21c),_0x3844f9),this['_messageService']['show']({'type':_0xa82ba2[_0x34d33a(0x282)],'content':this['_localeService']['t'](_0x34d33a(0x27b))});}finally{this[_0x34d33a(0x2c9)]['next'](!0x1);}}),(this[_0x551e8b(0x26b)]=_0x2c1b01,this[_0x551e8b(0x225)]=_0x3ef9e2,this['_configService']=_0x5b6887,this[_0x551e8b(0x348)]=_0xa60970,this[_0x551e8b(0x271)]=_0x567aee,this['_messageService']=_0x2ee659,this[_0x551e8b(0x1fc)]=_0x96e819,this[_0x551e8b(0x228)]=_0x205fcd,this[_0x551e8b(0x21e)]=_0x2dbfc5,this[_0x551e8b(0x28c)]=_0x3e53b9,this[_0x551e8b(0x33f)](),this[_0x551e8b(0x31e)](),this['_registerComponent']());}[_0x103721(0x230)](){var _0x5cf760=_0x103721;const _0x27883e=this[_0x5cf760(0x30d)][_0x5cf760(0x2ca)](x);_0x27883e!=null&&_0x27883e[_0x5cf760(0x261)]&&this[_0x5cf760(0x271)][_0x5cf760(0x258)]({'id':U,'title':{'title':this[_0x5cf760(0x228)]['t'](_0x5cf760(0x207))},'children':{'label':_0x5cf760(0x2c0)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0x485339=_0x5cf760;this[_0x485339(0x271)][_0x485339(0x2f3)](U);}});}[_0x103721(0x313)](){var _0x5120df=_0x103721;return this[_0x5120df(0x2e8)][_0x5120df(0x25e)];}[_0x103721(0x1ff)](){var _0x2d0274=_0x103721;this[_0x2d0274(0x291)](this[_0x2d0274(0x1fc)][_0x2d0274(0x22c)](_0x2d0274(0x2c0),this[_0x2d0274(0x29f)]()));}[_0x103721(0x29f)](){var _0x324467=_0x103721;return _0x261a19(()=>{var _0x461e27=_0x4233,_0x239332,_0x337998,_0xe1fe73;return _0x2108d8(tn,{'config':this[_0x461e27(0x21d)][_0x461e27(0x25e)],'mcpCoreConfig':this[_0x461e27(0x2e8)][_0x461e27(0x25e)],'currentApiKey$':this[_0x461e27(0x334)],'onSave':this[_0x461e27(0x2d0)],'loading':this[_0x461e27(0x2c9)][_0x461e27(0x25e)],'connectionStatus$':(_0x239332=this[_0x461e27(0x28c)])==null?void 0x0:_0x239332[_0x461e27(0x292)],'connectionError$':(_0x337998=this[_0x461e27(0x28c)])==null?void 0x0:_0x337998[_0x461e27(0x269)],'currentSessionId$':(_0xe1fe73=this[_0x461e27(0x28c)])==null?void 0x0:_0xe1fe73[_0x461e27(0x28d)]});},this[_0x324467(0x26b)]);}['_initConfigSync'](){var _0x309985=_0x103721;this[_0x309985(0x291)](this['_configService'][_0x309985(0x2aa)](_0x430f8a)[_0x309985(0x27d)](_0x4a4341=>{var _0x365b35=_0x309985;this[_0x365b35(0x2e8)]['next'](_0x4a4341||{});}));const _0x5eac97=this[_0x309985(0x30d)][_0x309985(0x2ca)](_0x430f8a);this['_mcpCoreConfig$'][_0x309985(0x20f)](_0x5eac97||{}),this[_0x309985(0x291)](this[_0x309985(0x30d)][_0x309985(0x2aa)](x)[_0x309985(0x27d)](_0x320887=>{var _0x4dfad5=_0x309985;this[_0x4dfad5(0x21d)]['next'](_0x320887||{});}));const _0x2926fd=this['_configService'][_0x309985(0x2ca)](x);this[_0x309985(0x21d)][_0x309985(0x20f)](_0x2926fd||{});}async['_loadStoredApiKey'](){var _0x529b2b=_0x103721;const _0x41fba6=this[_0x529b2b(0x30d)][_0x529b2b(0x2ca)](x);if(!(_0x41fba6!=null&&_0x41fba6['showDeveloperTools']))return;const _0x5e618e=await this[_0x529b2b(0x348)][_0x529b2b(0x2de)](j);_0x5e618e&&(this[_0x529b2b(0x28c)][_0x529b2b(0x26e)]({'Authorization':_0x529b2b(0x2b3)+_0x5e618e}),this[_0x529b2b(0x334)][_0x529b2b(0x20f)](_0x5e618e));}async['_validateConfig'](_0x48f4e5){var _0x30ba14=_0x103721;if(!_0x48f4e5[_0x30ba14(0x27c)]||_0x48f4e5[_0x30ba14(0x27c)][_0x30ba14(0x20e)]()[_0x30ba14(0x2bf)]===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x30ba14(0x31f))};if(_0x48f4e5[_0x30ba14(0x27c)]['trim']()['length']<0xa)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x30ba14(0x300))};try{const _0x4cfdd8=await this[_0x30ba14(0x26b)]['get'](_0x19e8d5)[_0x30ba14(0x247)](_0x48f4e5[_0x30ba14(0x27c)]['trim']());return _0x4cfdd8[_0x30ba14(0x21a)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x4cfdd8[_0x30ba14(0x2f8)]||this[_0x30ba14(0x228)]['t'](_0x30ba14(0x227))};}catch(_0x227dee){return console[_0x30ba14(0x289)](_0x30ba14(0x330),_0x227dee),{'isValid':!0x0};}}};I=sn([g(0x0,_0x2235fd(_0x40d19b)),g(0x1,_0x29d968),g(0x2,_0x4d3163),g(0x3,_0xcab0cf),g(0x4,_0x15a5f5),g(0x5,_0x5abb6a),g(0x6,_0x2235fd(_0x59058c)),g(0x7,_0x2235fd(_0x1cb48f)),g(0x8,_0x3547f4),g(0x9,_0x2235fd(_0x19e8d5))],I);const V={'id':_0x103721(0x1f0),'type':_0x153d32[_0x103721(0x272)],'handler':async(_0x464329,_0x234637)=>(_0x464329[_0x103721(0x224)](I)['showConfigPanel'](),!0x0)};function pe(_0x2c9311,_0x474488){var _0x5c2ad5=_0x103721;switch(_0x2c9311){case _0x5cf9aa[_0x5c2ad5(0x239)]:return _0x5c2ad5(0x2a5);case _0x5cf9aa[_0x5c2ad5(0x2d4)]:return _0x5c2ad5(0x34c);case _0x5cf9aa[_0x5c2ad5(0x315)]:return _0x5c2ad5(0x243);case _0x5cf9aa['FAILED']:switch(_0x474488){case _0x2f0c0c[_0x5c2ad5(0x255)]:return'mcpStatus.unauthorized';case _0x2f0c0c[_0x5c2ad5(0x338)]:return _0x5c2ad5(0x264);case _0x2f0c0c[_0x5c2ad5(0x346)]:return'mcpStatus.networkError';case _0x2f0c0c[_0x5c2ad5(0x200)]:return'mcpStatus.maxRetriesExceeded';default:return _0x5c2ad5(0x2b7);}case _0x5cf9aa[_0x5c2ad5(0x296)]:return _0x5c2ad5(0x2e4);default:return _0x5c2ad5(0x2c8);}}function cn(_0x275b89,_0x4355dd,_0x543590,_0x42f66=!0x0){var _0x30b130=_0x103721;const _0x3641ca=pe(_0x275b89,_0x4355dd),_0x31b1d5=_0x543590['t'](_0x3641ca);return _0x42f66?_0x275b89===_0x5cf9aa[_0x30b130(0x239)]&&_0x4355dd===_0x2f0c0c[_0x30b130(0x255)]?_0x31b1d5+_0x30b130(0x205)+_0x543590['t'](_0x30b130(0x20c)):_0x275b89===_0x5cf9aa[_0x30b130(0x315)]?''+_0x31b1d5:_0x275b89===_0x5cf9aa['DISCONNECTED']||_0x275b89===_0x5cf9aa[_0x30b130(0x267)]?_0x31b1d5+'\x20-\x20'+_0x543590['t'](_0x30b130(0x2af)):_0x31b1d5:_0x31b1d5;}function an(_0x3f40f5){var _0x55c032=_0x103721;switch(_0x3f40f5){case _0x5cf9aa['CONNECTED']:return _0x55c032(0x2e3);case _0x5cf9aa[_0x55c032(0x2d4)]:case _0x5cf9aa[_0x55c032(0x296)]:return _0x55c032(0x2ce);case _0x5cf9aa['FAILED']:case _0x5cf9aa[_0x55c032(0x239)]:return _0x55c032(0x246);default:return _0x55c032(0x24d);}}function un(_0x2d2646){var _0x51d765=_0x103721;const {status$:_0x1b40fa,error$:_0x4aeabd,onConfigure:_0x3d8ac6,showClickable:_0x557bae=!0x0}=_0x2d2646,_0x43606d=_0x2f03e5(_0x1b40fa,_0x5cf9aa[_0x51d765(0x239)]),_0x54118=_0x2f03e5(_0x4aeabd,_0x2f0c0c[_0x51d765(0x242)]),_0x2408ff=_0x850478(_0x1cb48f),_0x4b84ab=_0x43606d===_0x5cf9aa[_0x51d765(0x315)];_0x43606d===_0x5cf9aa[_0x51d765(0x2d4)]||_0x5cf9aa[_0x51d765(0x296)];const _0x3b7e40=_0x2408ff['t'](pe(_0x43606d,_0x54118)),_0x2af719=cn(_0x43606d,_0x54118,_0x2408ff,_0x557bae),_0x3ee373=an(_0x43606d),_0x3a85c1=_0x4b84ab?_0x2108d8(ge,{}):_0x2108d8(fe,{}),_0x25278c=_0x37a6dc(()=>{_0x557bae&&_0x3d8ac6&&_0x3d8ac6();},[_0x557bae,_0x3d8ac6]);function _0x58aa13(){var _0x4dced0=_0x51d765;return _0x2678b2(_0x4dced0(0x331),{'className':_0x3c6797(_0x4dced0(0x2ab),_0x557bae&&_0x3d8ac6&&'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'),'onClick':_0x557bae&&_0x3d8ac6?_0x25278c:void 0x0,'children':[_0x2108d8(_0x4dced0(0x331),{'className':_0x3c6797(_0x4dced0(0x1f7),_0x3ee373),'children':_0x3a85c1}),_0x2108d8(_0x4dced0(0x331),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x3b7e40})]});}return _0x2108d8(_0x171aed,{'title':_0x2af719,'placement':_0x51d765(0x1fe),'children':_0x58aa13()});}var ln=Object['getOwnPropertyDescriptor'],vn=(_0x2b0a68,_0x1c9261,_0x2e11ef,_0x118b03)=>{for(var _0x572838=_0x118b03>0x1?void 0x0:_0x118b03?ln(_0x1c9261,_0x2e11ef):_0x1c9261,_0x4af9c8=_0x2b0a68['length']-0x1,_0xb7d619;_0x4af9c8>=0x0;_0x4af9c8--)(_0xb7d619=_0x2b0a68[_0x4af9c8])&&(_0x572838=_0xb7d619(_0x572838)||_0x572838);return _0x572838;},A=(_0x1ee585,_0x3d4d1e)=>(_0x1d38cc,_0x7de9a9)=>_0x3d4d1e(_0x1d38cc,_0x7de9a9,_0x1ee585);let O=class extends _0x58601d{constructor(_0xfea851,_0x172c1f,_0x29773c,_0x5e3cf6){var _0x50c510=_0x103721;super(),this['_injector']=_0xfea851,this['_connectionController']=_0x172c1f,this[_0x50c510(0x225)]=_0x29773c,this[_0x50c510(0x30d)]=_0x5e3cf6,this[_0x50c510(0x23f)](),this[_0x50c510(0x252)]();}[_0x103721(0x23f)](){var _0x3b292c=_0x103721;const _0x475196=this[_0x3b292c(0x30d)][_0x3b292c(0x2ca)](x);_0x475196!=null&&_0x475196['showDeveloperTools']&&(this['_connectionController']['enableAutoConnect']=!0x1);}[_0x103721(0x252)](){var _0xd805d1=_0x103721;const _0x411ba3=this['_configService'][_0xd805d1(0x2ca)](x);(_0x411ba3==null?void 0x0:_0x411ba3['showStatus'])!==!0x1&&this['disposeWithMe'](this[_0xd805d1(0x225)]['registerComponent'](_0x3172b9[_0xd805d1(0x24f)],()=>{var _0x3aed0c=_0xd805d1,_0x40d9f5;return _0x261a19(dn({'status$':this[_0x3aed0c(0x262)]['connectionStatus$'],'error$':this['_connectionController'][_0x3aed0c(0x269)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x40d9f5=_0x411ba3==null?void 0x0:_0x411ba3[_0x3aed0c(0x261)])!=null?_0x40d9f5:!0x1}),this[_0x3aed0c(0x26b)]);}));}[_0x103721(0x24c)](){var _0x4996ff=_0x103721;this[_0x4996ff(0x26b)][_0x4996ff(0x224)](I)[_0x4996ff(0x230)]();}};O=vn([A(0x0,_0x2235fd(_0x40d19b)),A(0x1,_0x2235fd(_0x19e8d5)),A(0x2,_0x29d968),A(0x3,_0x4d3163)],O);function dn(_0x321229){const {status$:_0x196c83,error$:_0x511b73,onConfigure:_0x1a5137,showClickable:_0x11ec3d}=_0x321229;return function(){return _0x2108d8(un,{'status$':_0x196c83,'error$':_0x511b73,'onConfigure':_0x1a5137,'showClickable':_0x11ec3d});};}function fn(_0x24a618){var _0x418f0e=_0x103721;return{'id':V['id'],'type':_0x49d67f[_0x418f0e(0x337)],'icon':_0x418f0e(0x28b),'title':_0x418f0e(0x207),'tooltip':_0x418f0e(0x207)};}const gn={[_0x1df899[_0x103721(0x30c)]]:{[V['id']]:{'order':0xa,'menuItemFactory':fn}}};var pn=Object['getOwnPropertyDescriptor'],hn=(_0x28b50b,_0x309707,_0x9f7b93,_0x30fd7b)=>{var _0x46cd0e=_0x103721;for(var _0x3b18b9=_0x30fd7b>0x1?void 0x0:_0x30fd7b?pn(_0x309707,_0x9f7b93):_0x309707,_0xc5488b=_0x28b50b[_0x46cd0e(0x2bf)]-0x1,_0x4d74da;_0xc5488b>=0x0;_0xc5488b--)(_0x4d74da=_0x28b50b[_0xc5488b])&&(_0x3b18b9=_0x4d74da(_0x3b18b9)||_0x3b18b9);return _0x3b18b9;},te=(_0x5b2968,_0x1d24b3)=>(_0x3a9c74,_0x1c3465)=>_0x1d24b3(_0x3a9c74,_0x1c3465,_0x5b2968);let k=class extends _0x58601d{constructor(_0x4832e4,_0x2e7da2){var _0x49f1c2=_0x103721;super(),this[_0x49f1c2(0x29e)]=_0x4832e4,this[_0x49f1c2(0x275)]=_0x2e7da2,this['_initializeCommands'](),this[_0x49f1c2(0x254)]();}[_0x103721(0x33c)](){[V]['forEach'](_0x459f3b=>{var _0x40615b=_0x4233;this[_0x40615b(0x291)](this['_commandService']['registerCommand'](_0x459f3b));});}['_initializeMenus'](){var _0xba67ac=_0x103721;this[_0xba67ac(0x275)][_0xba67ac(0x221)](gn);}};k=hn([te(0x0,_0x2dd78e),te(0x1,_0x193d79)],k);const On={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x103721(0x265),'connected':'MCP\x20Connected','failed':_0x103721(0x249),'retrying':_0x103721(0x21f),'unknown':_0x103721(0x212),'unauthorized':_0x103721(0x2fd),'sessionOccupied':_0x103721(0x2c1),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x103721(0x2be),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x103721(0x22b)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x103721(0x260),'apiKey':_0x103721(0x30a),'apiKeyPlaceholder':_0x103721(0x347),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x103721(0x27e),'enableAuthHint':_0x103721(0x2b6),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x103721(0x202),'configInstructions':_0x103721(0x319),'configStepTitle':_0x103721(0x251),'configStep1':_0x103721(0x311),'configStep2':_0x103721(0x248),'configStep3':_0x103721(0x2cb),'sessionId':_0x103721(0x307),'sessionIdDescription':_0x103721(0x2a8),'authorizationDescription':_0x103721(0x2b9),'configParameters':_0x103721(0x201),'maxRetries':_0x103721(0x2a2),'save':_0x103721(0x23b),'saving':_0x103721(0x2f4),'note1':_0x103721(0x304),'note2':_0x103721(0x204),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x103721(0x218),'apiApplyInfo':{'title':_0x103721(0x29b),'description':_0x103721(0x23e),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x103721(0x278)},'validation':{'apiKeyRequired':_0x103721(0x22d),'apiKeyTooShort':_0x103721(0x23c),'invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x103721(0x2d7),'connecting':_0x103721(0x30f),'connected':'Connected','failed':_0x103721(0x2df),'retrying':_0x103721(0x226)},'connectionError':{'unauthorized':_0x103721(0x34a),'sessionOccupied':_0x103721(0x2ec),'networkError':_0x103721(0x27f),'maxRetriesExceeded':_0x103721(0x320)}}},kn={'mcpStatus':{'disconnected':_0x103721(0x1f2),'connecting':'MCP\x20连接中...','connected':_0x103721(0x2dd),'failed':_0x103721(0x1f3),'retrying':_0x103721(0x25b),'unknown':_0x103721(0x297),'unauthorized':_0x103721(0x299),'sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':_0x103721(0x317),'maxRetriesExceeded':_0x103721(0x336),'clickToConnect':_0x103721(0x241),'clickToConfigure':_0x103721(0x1fb)},'mcpConfig':{'title':_0x103721(0x318),'description':_0x103721(0x2d6),'apiKey':_0x103721(0x235),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x103721(0x340),'enableAuth':_0x103721(0x34b),'enableAuthHint':_0x103721(0x32c),'connectionInfo':_0x103721(0x240),'mcpClientConfig':_0x103721(0x240),'configInstructions':_0x103721(0x281),'configStepTitle':_0x103721(0x32b),'configStep1':_0x103721(0x2f7),'configStep2':_0x103721(0x2ac),'configStep3':_0x103721(0x2a7),'sessionId':'会话ID','sessionIdDescription':_0x103721(0x31a),'authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':_0x103721(0x309),'maxRetries':_0x103721(0x332),'save':_0x103721(0x26d),'saving':_0x103721(0x259),'note1':_0x103721(0x268),'note2':_0x103721(0x323),'configSaved':_0x103721(0x303),'configError':'配置保存失败','apiApplyInfo':{'title':_0x103721(0x32f),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0x103721(0x30b),'getStarted':_0x103721(0x298)},'validation':{'apiKeyRequired':_0x103721(0x206),'apiKeyTooShort':_0x103721(0x33e),'invalidConfig':_0x103721(0x2dc),'invalidApiKey':_0x103721(0x26f)},'connectionStatus':{'disconnected':'未连接','connecting':_0x103721(0x2a3),'connected':_0x103721(0x24a),'failed':_0x103721(0x314),'retrying':_0x103721(0x26c)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x103721(0x2f9),'networkError':_0x103721(0x2a6),'maxRetriesExceeded':_0x103721(0x229)}}};var mn=Object[_0x103721(0x220)],Cn=Object[_0x103721(0x328)],yn=(_0x970f5d,_0x22f5b8,_0x410547)=>_0x22f5b8 in _0x970f5d?mn(_0x970f5d,_0x22f5b8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x410547}):_0x970f5d[_0x22f5b8]=_0x410547,_n=(_0x4a86e8,_0x3c52f5,_0x33d73a,_0x40d8df)=>{var _0x2bca59=_0x103721;for(var _0x2396eb=_0x40d8df>0x1?void 0x0:_0x40d8df?Cn(_0x3c52f5,_0x33d73a):_0x3c52f5,_0x217cd1=_0x4a86e8[_0x2bca59(0x2bf)]-0x1,_0x53d218;_0x217cd1>=0x0;_0x217cd1--)(_0x53d218=_0x4a86e8[_0x217cd1])&&(_0x2396eb=_0x53d218(_0x2396eb)||_0x2396eb);return _0x2396eb;},E=(_0x2fdd76,_0x1632c2)=>(_0x33d649,_0x376967)=>_0x1632c2(_0x33d649,_0x376967,_0x2fdd76),xn=(_0x2fe070,_0xc60af9,_0x3419fe)=>yn(_0x2fe070,_0xc60af9+'',_0x3419fe);let L=class extends _0x57747f{constructor(_0x682aff=re,_0x43f7b8,_0x197710,_0x4922cd,_0x5dcebb,_0x2a899b){var _0x3824d5=_0x103721;super(),this[_0x3824d5(0x234)]=_0x682aff,this['_injector']=_0x43f7b8,this[_0x3824d5(0x30d)]=_0x197710,this['_uiPartsService']=_0x4922cd,this[_0x3824d5(0x348)]=_0x5dcebb,this[_0x3824d5(0x228)]=_0x2a899b;const {..._0x38515d}=_0x16a3ed({},re,this[_0x3824d5(0x234)]);this[_0x3824d5(0x30d)][_0x3824d5(0x2a4)](x,_0x38515d);}async['onStarting'](){var _0x2390c3=_0x103721;const _0x4a0f16=[[O],[I],[k]];this[_0x2390c3(0x26b)][_0x2390c3(0x2ba)](_0x2e09fb)||_0x4a0f16['push']([_0x2e09fb,{'useClass':_0x12b718}]),_0x4a0f16[_0x2390c3(0x2b5)](_0x49ea34=>this[_0x2390c3(0x26b)][_0x2390c3(0x2fe)](_0x49ea34)),this[_0x2390c3(0x26b)][_0x2390c3(0x224)](O),this[_0x2390c3(0x26b)][_0x2390c3(0x224)](I),this[_0x2390c3(0x26b)]['get'](k);}};xn(L,'pluginName',_0x103721(0x321)),L=_n([_0x17438e(_0x4538b1),E(0x1,_0x2235fd(_0x40d19b)),E(0x2,_0x4d3163),E(0x3,_0x29d968),E(0x4,_0xcab0cf),E(0x5,_0x2235fd(_0x1cb48f))],L);export{tn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,un as MCPStatusDisplay,k as MCPUIMenuController,V as OpenMCPConfigPanelCommand,L as UniverMCPUIPlugin,On as enUS,kn as zhCN};
|
package/lib/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x1641(_0x2415c2,_0x118e87){const _0x627354=_0x6273();return _0x1641=function(_0x1641ec,_0x1c387e){_0x1641ec=_0x1641ec-0x145;let _0x414de4=_0x627354[_0x1641ec];return _0x414de4;},_0x1641(_0x2415c2,_0x118e87);}const _0x4d37d7=_0x1641;(function(_0x446a1a,_0x445032){const _0x76b0f2=_0x1641,_0x14aca5=_0x446a1a();while(!![]){try{const _0xa46c8c=parseInt(_0x76b0f2(0x15b))/0x1+-parseInt(_0x76b0f2(0x151))/0x2+parseInt(_0x76b0f2(0x175))/0x3*(-parseInt(_0x76b0f2(0x14f))/0x4)+-parseInt(_0x76b0f2(0x167))/0x5*(parseInt(_0x76b0f2(0x16d))/0x6)+parseInt(_0x76b0f2(0x155))/0x7+parseInt(_0x76b0f2(0x163))/0x8*(-parseInt(_0x76b0f2(0x16c))/0x9)+parseInt(_0x76b0f2(0x14e))/0xa;if(_0xa46c8c===_0x445032)break;else _0x14aca5['push'](_0x14aca5['shift']());}catch(_0x3807d1){_0x14aca5['push'](_0x14aca5['shift']());}}}(_0x6273,0xb7685));function _0x6273(){const _0x57661e=['Enable\x20authentication\x20for\x20secure\x20connections','MCP:\x20Network\x20Error','Session\x20ID','API\x20key\x20with\x20Bearer\x20prefix.','311606zdJmvE','Max\x20Retries','MCP\x20Configuration','Configuration\x20Steps:','MCP:\x20Session\x20ID\x20Occupied','API\x20key\x20is\x20required','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Disconnected','16OVDfmw','What\x20is\x20API\x20Key?','Connecting...','Enter\x20your\x20API\x20key','5GRrYHQ','Enable\x20Authentication','Configuration\x20Parameters:','MCP\x20Connecting...','Configuration\x20saved\x20successfully','632538edKnzm','2330070wfUGbv','Saving...','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Get\x20your\x20API\x20key\x20in\x20seconds','Copy\x20the\x20JSON\x20configuration\x20below','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','9djMXmA','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','API\x20Key','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Click\x20to\x20connect\x20MCP','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Retrying...','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','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\x20Client\x20Configuration','Invalid\x20configuration','MCP\x20Unknown\x20Status','MCP:\x20Max\x20Retries\x20Exceeded','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','10458000qSqlUP','647188weSCde','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','2086502TVfbWl','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Retrying...','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','10159674sGrOLb','MCP\x20Connected'];_0x6273=function(){return _0x57661e;};return _0x6273();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x4d37d7(0x16a),'connected':_0x4d37d7(0x156),'failed':'MCP\x20Connection\x20Failed','retrying':_0x4d37d7(0x153),'unknown':_0x4d37d7(0x14b),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x4d37d7(0x15f),'networkError':_0x4d37d7(0x158),'maxRetriesExceeded':_0x4d37d7(0x14c),'clickToConnect':_0x4d37d7(0x179),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x4d37d7(0x15d),'description':_0x4d37d7(0x178),'apiKey':_0x4d37d7(0x177),'apiKeyPlaceholder':_0x4d37d7(0x166),'apiKeyHint':_0x4d37d7(0x176),'enableAuth':_0x4d37d7(0x168),'enableAuthHint':_0x4d37d7(0x157),'connectionInfo':_0x4d37d7(0x149),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x4d37d7(0x161),'configStepTitle':_0x4d37d7(0x15e),'configStep1':_0x4d37d7(0x173),'configStep2':_0x4d37d7(0x145),'configStep3':_0x4d37d7(0x147),'sessionId':_0x4d37d7(0x159),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x4d37d7(0x15a),'configParameters':_0x4d37d7(0x169),'maxRetries':_0x4d37d7(0x15c),'save':'Save\x20Configuration','saving':_0x4d37d7(0x16e),'note1':_0x4d37d7(0x154),'note2':_0x4d37d7(0x152),'configSaved':_0x4d37d7(0x16b),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x4d37d7(0x164),'description':_0x4d37d7(0x148),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x4d37d7(0x172)},'validation':{'apiKeyRequired':_0x4d37d7(0x160),'apiKeyTooShort':_0x4d37d7(0x14d),'invalidConfig':_0x4d37d7(0x14a),'invalidApiKey':_0x4d37d7(0x16f)},'connectionStatus':{'disconnected':_0x4d37d7(0x162),'connecting':_0x4d37d7(0x165),'connected':'Connected','failed':'Connection\x20Failed','retrying':_0x4d37d7(0x146)},'connectionError':{'unauthorized':_0x4d37d7(0x170),'sessionOccupied':_0x4d37d7(0x174),'networkError':_0x4d37d7(0x150),'maxRetriesExceeded':_0x4d37d7(0x171)}}},n=e;export{n as default};
|
package/lib/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x49348c=_0x89fa;function _0x5e0f(){const _0xd4a87e=['Invalid\x20configuration','MCP\x20Configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','What\x20is\x20API\x20Key?','MCP\x20Client\x20Configuration','Max\x20Retries','Save\x20Configuration','Retrying...','Enable\x20authentication\x20for\x20secure\x20connections','126hyIgPZ','312vzQlMu','MCP:\x20Session\x20ID\x20Occupied','Disconnected','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','30KoNvOH','22uZTbCv','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','13582348KUgAhN','65526jlRFqe','MCP\x20Disconnected','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Enable\x20Authentication','Failed\x20to\x20save\x20configuration','Configuration\x20Parameters:','Configuration\x20Steps:','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Retrying...','64022UstePG','MCP\x20Connection\x20Failed','257410dQdaJj','11362vmejuT','Click\x20to\x20configure\x20MCP','Enter\x20your\x20API\x20key','605373pZLVQn','MCP:\x20Max\x20Retries\x20Exceeded','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','14uVahNG','MCP:\x20Unauthorized','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Connected','1287636pYFxzB','MCP\x20Unknown\x20Status','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','4kyOaOi'];_0x5e0f=function(){return _0xd4a87e;};return _0x5e0f();}(function(_0x45406e,_0x2a022c){const _0x343294=_0x89fa,_0x388deb=_0x45406e();while(!![]){try{const _0x1eb3a5=-parseInt(_0x343294(0x9d))/0x1*(parseInt(_0x343294(0x74))/0x2)+parseInt(_0x343294(0x71))/0x3*(-parseInt(_0x343294(0x7d))/0x4)+parseInt(_0x343294(0x8d))/0x5*(-parseInt(_0x343294(0x91))/0x6)+-parseInt(_0x343294(0x9a))/0x7*(parseInt(_0x343294(0x89))/0x8)+parseInt(_0x343294(0x88))/0x9*(-parseInt(_0x343294(0x9c))/0xa)+parseInt(_0x343294(0x8e))/0xb*(parseInt(_0x343294(0x78))/0xc)+parseInt(_0x343294(0x90))/0xd;if(_0x1eb3a5===_0x2a022c)break;else _0x388deb['push'](_0x388deb['shift']());}catch(_0x49de69){_0x388deb['push'](_0x388deb['shift']());}}}(_0x5e0f,0x2fb9b));const e={'mcpStatus':{'disconnected':_0x49348c(0x92),'connecting':'MCP\x20Connecting...','connected':_0x49348c(0x77),'failed':_0x49348c(0x9b),'retrying':_0x49348c(0x99),'unknown':_0x49348c(0x79),'unauthorized':_0x49348c(0x75),'sessionOccupied':_0x49348c(0x8a),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x49348c(0x72),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x49348c(0x6f)},'mcpConfig':{'title':_0x49348c(0x7f),'description':_0x49348c(0x80),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x49348c(0x70),'apiKeyHint':_0x49348c(0x7b),'enableAuth':_0x49348c(0x94),'enableAuthHint':_0x49348c(0x87),'connectionInfo':_0x49348c(0x83),'mcpClientConfig':_0x49348c(0x83),'configInstructions':_0x49348c(0x73),'configStepTitle':_0x49348c(0x97),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x49348c(0x98),'sessionId':'Session\x20ID','sessionIdDescription':_0x49348c(0x7a),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x49348c(0x96),'maxRetries':_0x49348c(0x84),'save':_0x49348c(0x85),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x49348c(0x76),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x49348c(0x95),'apiApplyInfo':{'title':_0x49348c(0x82),'description':_0x49348c(0x93),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x49348c(0x7e),'invalidApiKey':_0x49348c(0x7c)},'connectionStatus':{'disconnected':_0x49348c(0x8b),'connecting':'Connecting...','connected':'Connected','failed':'Connection\x20Failed','retrying':_0x49348c(0x86)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x49348c(0x81),'networkError':_0x49348c(0x8c),'maxRetriesExceeded':_0x49348c(0x8f)}}};function _0x89fa(_0x40d125,_0x4e11d7){const _0x5e0f6b=_0x5e0f();return _0x89fa=function(_0x89fad4,_0x55c0e2){_0x89fad4=_0x89fad4-0x6f;let _0x20f7c4=_0x5e0f6b[_0x89fad4];return _0x20f7c4;},_0x89fa(_0x40d125,_0x4e11d7);}export{e as default};
|
package/lib/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x2b233d=_0x504a;(function(_0x9b0c3f,_0x224ff1){const _0x30a459=_0x504a,_0x3d5b4b=_0x9b0c3f();while(!![]){try{const _0x129d0a=-parseInt(_0x30a459(0x82))/0x1+parseInt(_0x30a459(0x94))/0x2+-parseInt(_0x30a459(0x84))/0x3+-parseInt(_0x30a459(0x97))/0x4+parseInt(_0x30a459(0x77))/0x5+-parseInt(_0x30a459(0x89))/0x6*(parseInt(_0x30a459(0x85))/0x7)+parseInt(_0x30a459(0x75))/0x8*(parseInt(_0x30a459(0x98))/0x9);if(_0x129d0a===_0x224ff1)break;else _0x3d5b4b['push'](_0x3d5b4b['shift']());}catch(_0x301cb0){_0x3d5b4b['push'](_0x3d5b4b['shift']());}}}(_0x3012,0xb4a9d));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x2b233d(0x73),'connected':'MCP\x20Connected','failed':_0x2b233d(0x96),'retrying':_0x2b233d(0x87),'unknown':_0x2b233d(0x9a),'unauthorized':_0x2b233d(0x88),'sessionOccupied':_0x2b233d(0x7f),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x2b233d(0x8a),'clickToConnect':_0x2b233d(0x76),'clickToConfigure':_0x2b233d(0x9c)},'mcpConfig':{'title':_0x2b233d(0x72),'description':_0x2b233d(0x95),'apiKey':_0x2b233d(0x7c),'apiKeyPlaceholder':_0x2b233d(0x9d),'apiKeyHint':_0x2b233d(0x90),'enableAuth':_0x2b233d(0x91),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x2b233d(0x8e),'configInstructions':_0x2b233d(0x80),'configStepTitle':_0x2b233d(0x71),'configStep1':_0x2b233d(0x8d),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x2b233d(0x86),'sessionId':'Session\x20ID','sessionIdDescription':_0x2b233d(0x74),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':_0x2b233d(0x70),'save':'Save\x20Configuration','saving':_0x2b233d(0x92),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x2b233d(0x83),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x2b233d(0x8f),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x2b233d(0x7e)},'validation':{'apiKeyRequired':_0x2b233d(0x81),'apiKeyTooShort':_0x2b233d(0x99),'invalidConfig':_0x2b233d(0x7a),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x2b233d(0x8b),'connecting':_0x2b233d(0x93),'connected':_0x2b233d(0x7b),'failed':_0x2b233d(0x8c),'retrying':_0x2b233d(0x78)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x2b233d(0x7d),'networkError':_0x2b233d(0x9b),'maxRetriesExceeded':_0x2b233d(0x79)}}},n=e;export{n as default};function _0x504a(_0x47981a,_0x4aac6e){const _0x301243=_0x3012();return _0x504a=function(_0x504ace,_0x18e33){_0x504ace=_0x504ace-0x70;let _0x23272f=_0x301243[_0x504ace];return _0x23272f;},_0x504a(_0x47981a,_0x4aac6e);}function _0x3012(){const _0x237ba7=['Click\x20to\x20configure\x20MCP','Enter\x20your\x20API\x20key','Max\x20Retries','Configuration\x20Steps:','MCP\x20Configuration','MCP\x20Connecting...','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','64vGOuaf','Click\x20to\x20connect\x20MCP','1210870BJcbgR','Retrying...','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Invalid\x20configuration','Connected','API\x20Key','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Get\x20your\x20API\x20key\x20in\x20seconds','MCP:\x20Session\x20ID\x20Occupied','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','API\x20key\x20is\x20required','560050ocFfJF','Failed\x20to\x20save\x20configuration','1208529JpbwDE','49wuCTuT','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Retrying...','MCP:\x20Unauthorized','31998viPuuG','MCP:\x20Max\x20Retries\x20Exceeded','Disconnected','Connection\x20Failed','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Client\x20Configuration','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Enable\x20Authentication','Saving...','Connecting...','1704376HjfSJt','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Connection\x20Failed','582292bxxNUd','890361KwtKpB','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Unknown\x20Status','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection'];_0x3012=function(){return _0x237ba7;};return _0x3012();}
|
package/lib/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0xf3240f=_0x4976;function _0x4976(_0x26e165,_0x3c53f4){const _0x2a64ee=_0x2a64();return _0x4976=function(_0x497602,_0x187fb7){_0x497602=_0x497602-0xf5;let _0x135653=_0x2a64ee[_0x497602];return _0x135653;},_0x4976(_0x26e165,_0x3c53f4);}(function(_0x2a4511,_0x5b4bf9){const _0x573809=_0x4976,_0x3bd430=_0x2a4511();while(!![]){try{const _0x3a3a41=parseInt(_0x573809(0x117))/0x1*(-parseInt(_0x573809(0x118))/0x2)+parseInt(_0x573809(0x11d))/0x3+-parseInt(_0x573809(0x120))/0x4+-parseInt(_0x573809(0x101))/0x5+-parseInt(_0x573809(0x104))/0x6+-parseInt(_0x573809(0x10a))/0x7*(parseInt(_0x573809(0x11f))/0x8)+parseInt(_0x573809(0xfe))/0x9;if(_0x3a3a41===_0x5b4bf9)break;else _0x3bd430['push'](_0x3bd430['shift']());}catch(_0x40a48c){_0x3bd430['push'](_0x3bd430['shift']());}}}(_0x2a64,0xbb6e5));const e={'mcpStatus':{'disconnected':_0xf3240f(0x107),'connecting':_0xf3240f(0xff),'connected':_0xf3240f(0x112),'failed':_0xf3240f(0x123),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':_0xf3240f(0x11b),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0xf3240f(0x10c),'maxRetriesExceeded':_0xf3240f(0x10b),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0xf3240f(0x100)},'mcpConfig':{'title':_0xf3240f(0x11a),'description':_0xf3240f(0x111),'apiKey':_0xf3240f(0x122),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0xf3240f(0x105),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0xf3240f(0x114),'connectionInfo':_0xf3240f(0x124),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0xf3240f(0xfa),'configStepTitle':_0xf3240f(0x115),'configStep1':_0xf3240f(0xf9),'configStep2':_0xf3240f(0x10d),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0xf3240f(0x106),'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':_0xf3240f(0x10e),'maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0xf3240f(0xf8),'note1':_0xf3240f(0x11e),'note2':_0xf3240f(0x103),'configSaved':'Configuration\x20saved\x20successfully','configError':_0xf3240f(0x125),'apiApplyInfo':{'title':_0xf3240f(0x113),'description':_0xf3240f(0x11c),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0xf3240f(0xf7)},'validation':{'apiKeyRequired':_0xf3240f(0x109),'apiKeyTooShort':_0xf3240f(0x10f),'invalidConfig':_0xf3240f(0x119),'invalidApiKey':_0xf3240f(0xfd)},'connectionStatus':{'disconnected':_0xf3240f(0x102),'connecting':_0xf3240f(0xf5),'connected':_0xf3240f(0xfc),'failed':_0xf3240f(0x121),'retrying':_0xf3240f(0x116)},'connectionError':{'unauthorized':_0xf3240f(0x108),'sessionOccupied':_0xf3240f(0xf6),'networkError':_0xf3240f(0x110),'maxRetriesExceeded':_0xf3240f(0xfb)}}},n=e;function _0x2a64(){const _0x292845=['Connection\x20Failed','API\x20Key','MCP\x20Connection\x20Failed','MCP\x20Client\x20Configuration','Failed\x20to\x20save\x20configuration','Connecting...','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Get\x20your\x20API\x20key\x20in\x20seconds','Saving...','Copy\x20the\x20JSON\x20configuration\x20below','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Connected','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','39299823xONXEc','MCP\x20Connecting...','Click\x20to\x20configure\x20MCP','5726420DWwaJV','Disconnected','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','8238990QYyaxg','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Session\x20ID','MCP\x20Disconnected','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','API\x20key\x20is\x20required','3955805atmYew','MCP:\x20Max\x20Retries\x20Exceeded','MCP:\x20Network\x20Error','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Configuration\x20Parameters:','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Connected','What\x20is\x20API\x20Key?','Enable\x20authentication\x20for\x20secure\x20connections','Configuration\x20Steps:','Retrying...','247gzOiZe','6888idRcav','Invalid\x20configuration','MCP\x20Configuration','MCP:\x20Unauthorized','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','2991330NUfQap','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','16mHtUVU','386772yailTF'];_0x2a64=function(){return _0x292845;};return _0x2a64();}export{n as default};
|
package/lib/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x5288cb=_0x15f9;(function(_0x4ecc9c,_0x208292){const _0x2e8b45=_0x15f9,_0x173c6c=_0x4ecc9c();while(!![]){try{const _0x16fb46=-parseInt(_0x2e8b45(0x139))/0x1*(parseInt(_0x2e8b45(0x148))/0x2)+parseInt(_0x2e8b45(0x125))/0x3*(parseInt(_0x2e8b45(0x136))/0x4)+-parseInt(_0x2e8b45(0x121))/0x5+-parseInt(_0x2e8b45(0x13b))/0x6+-parseInt(_0x2e8b45(0x144))/0x7*(-parseInt(_0x2e8b45(0x12c))/0x8)+parseInt(_0x2e8b45(0x12b))/0x9*(-parseInt(_0x2e8b45(0x13a))/0xa)+parseInt(_0x2e8b45(0x13c))/0xb;if(_0x16fb46===_0x208292)break;else _0x173c6c['push'](_0x173c6c['shift']());}catch(_0x3f4e72){_0x173c6c['push'](_0x173c6c['shift']());}}}(_0x36c0,0x5221f));const e={'mcpStatus':{'disconnected':_0x5288cb(0x131),'connecting':_0x5288cb(0x11f),'connected':_0x5288cb(0x128),'failed':'MCP\x20Connection\x20Failed','retrying':_0x5288cb(0x13f),'unknown':_0x5288cb(0x14d),'unauthorized':_0x5288cb(0x150),'sessionOccupied':_0x5288cb(0x145),'networkError':_0x5288cb(0x14b),'maxRetriesExceeded':_0x5288cb(0x12d),'clickToConnect':_0x5288cb(0x141),'clickToConfigure':_0x5288cb(0x151)},'mcpConfig':{'title':_0x5288cb(0x12a),'description':_0x5288cb(0x137),'apiKey':'API\x20Key','apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x5288cb(0x126),'enableAuth':_0x5288cb(0x142),'enableAuthHint':_0x5288cb(0x153),'connectionInfo':_0x5288cb(0x14e),'mcpClientConfig':_0x5288cb(0x14e),'configInstructions':_0x5288cb(0x154),'configStepTitle':_0x5288cb(0x147),'configStep1':_0x5288cb(0x12e),'configStep2':_0x5288cb(0x12f),'configStep3':_0x5288cb(0x130),'sessionId':_0x5288cb(0x13d),'sessionIdDescription':_0x5288cb(0x146),'authorizationDescription':_0x5288cb(0x132),'configParameters':_0x5288cb(0x122),'maxRetries':_0x5288cb(0x134),'save':'Save\x20Configuration','saving':'Saving...','note1':_0x5288cb(0x13e),'note2':_0x5288cb(0x123),'configSaved':_0x5288cb(0x14a),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x5288cb(0x120),'description':_0x5288cb(0x149),'univerAiLabel':_0x5288cb(0x143),'getStarted':_0x5288cb(0x152)},'validation':{'apiKeyRequired':_0x5288cb(0x140),'apiKeyTooShort':_0x5288cb(0x124),'invalidConfig':_0x5288cb(0x135),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x5288cb(0x133),'connecting':_0x5288cb(0x14c),'connected':_0x5288cb(0x129),'failed':'Connection\x20Failed','retrying':_0x5288cb(0x14f)},'connectionError':{'unauthorized':_0x5288cb(0x138),'sessionOccupied':_0x5288cb(0x127),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;function _0x15f9(_0x12fe5c,_0x2e7bac){const _0x36c01b=_0x36c0();return _0x15f9=function(_0x15f945,_0x240154){_0x15f945=_0x15f945-0x11f;let _0x457200=_0x36c01b[_0x15f945];return _0x457200;},_0x15f9(_0x12fe5c,_0x2e7bac);}function _0x36c0(){const _0xe292f=['Configuration\x20saved\x20successfully','MCP:\x20Network\x20Error','Connecting...','MCP\x20Unknown\x20Status','MCP\x20Client\x20Configuration','Retrying...','MCP:\x20Unauthorized','Click\x20to\x20configure\x20MCP','Get\x20your\x20API\x20key\x20in\x20seconds','Enable\x20authentication\x20for\x20secure\x20connections','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Connecting...','What\x20is\x20API\x20Key?','2073955rHTwDG','Configuration\x20Parameters:','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','14199KCQrnw','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Connected','Connected','MCP\x20Configuration','243dhxMSp','260016JuyUGY','MCP:\x20Max\x20Retries\x20Exceeded','Copy\x20the\x20JSON\x20configuration\x20below','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Disconnected','API\x20key\x20with\x20Bearer\x20prefix.','Disconnected','Max\x20Retries','Invalid\x20configuration','344SSiJvN','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','105538DTYRNU','244120BSvOZO','1873326zbkPQw','15274039GgATuF','Session\x20ID','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Retrying...','API\x20key\x20is\x20required','Click\x20to\x20connect\x20MCP','Enable\x20Authentication','Univer\x20AI\x20Console','7VDadzU','MCP:\x20Session\x20ID\x20Occupied','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configuration\x20Steps:','2mtsabe','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.'];_0x36c0=function(){return _0xe292f;};return _0x36c0();}export{n as default};
|
package/lib/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x411240=_0x3075;(function(_0x1f8dae,_0x4ebac7){const _0x56bebd=_0x3075,_0x4ed4ef=_0x1f8dae();while(!![]){try{const _0x150119=-parseInt(_0x56bebd(0x182))/0x1*(-parseInt(_0x56bebd(0x1a0))/0x2)+parseInt(_0x56bebd(0x1a2))/0x3*(-parseInt(_0x56bebd(0x199))/0x4)+parseInt(_0x56bebd(0x185))/0x5*(-parseInt(_0x56bebd(0x193))/0x6)+-parseInt(_0x56bebd(0x17a))/0x7+-parseInt(_0x56bebd(0x1a8))/0x8*(parseInt(_0x56bebd(0x1b0))/0x9)+parseInt(_0x56bebd(0x1a7))/0xa+-parseInt(_0x56bebd(0x1ae))/0xb*(-parseInt(_0x56bebd(0x17e))/0xc);if(_0x150119===_0x4ebac7)break;else _0x4ed4ef['push'](_0x4ed4ef['shift']());}catch(_0x3f9e48){_0x4ed4ef['push'](_0x4ed4ef['shift']());}}}(_0x3224,0x94da8));const e={'mcpStatus':{'disconnected':_0x411240(0x19b),'connecting':_0x411240(0x1a4),'connected':_0x411240(0x186),'failed':_0x411240(0x19f),'retrying':_0x411240(0x1a6),'unknown':_0x411240(0x17b),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x411240(0x190),'networkError':_0x411240(0x17d),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x411240(0x1ab),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x411240(0x189),'description':_0x411240(0x18d),'apiKey':_0x411240(0x19d),'apiKeyPlaceholder':_0x411240(0x18a),'apiKeyHint':_0x411240(0x1b1),'enableAuth':_0x411240(0x19e),'enableAuthHint':_0x411240(0x17f),'connectionInfo':_0x411240(0x180),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x411240(0x1a3),'configStep1':_0x411240(0x19c),'configStep2':_0x411240(0x1a9),'configStep3':_0x411240(0x18f),'sessionId':_0x411240(0x188),'sessionIdDescription':_0x411240(0x1a5),'authorizationDescription':_0x411240(0x195),'configParameters':_0x411240(0x192),'maxRetries':_0x411240(0x187),'save':_0x411240(0x18b),'saving':_0x411240(0x196),'note1':_0x411240(0x1aa),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x411240(0x183),'apiApplyInfo':{'title':_0x411240(0x1af),'description':_0x411240(0x198),'univerAiLabel':_0x411240(0x19a),'getStarted':_0x411240(0x184)},'validation':{'apiKeyRequired':_0x411240(0x1a1),'apiKeyTooShort':_0x411240(0x18e),'invalidConfig':_0x411240(0x1ac),'invalidApiKey':_0x411240(0x18c)},'connectionStatus':{'disconnected':_0x411240(0x191),'connecting':'Connecting...','connected':_0x411240(0x17c),'failed':_0x411240(0x181),'retrying':_0x411240(0x194)},'connectionError':{'unauthorized':_0x411240(0x197),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x411240(0x1ad),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;function _0x3224(){const _0x1bdffd=['API\x20key\x20with\x20Bearer\x20prefix.','Saving...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','2720Pdeyuv','Univer\x20AI\x20Console','MCP\x20Disconnected','Copy\x20the\x20JSON\x20configuration\x20below','API\x20Key','Enable\x20Authentication','MCP\x20Connection\x20Failed','4vGEoUR','API\x20key\x20is\x20required','3957qHLgct','Configuration\x20Steps:','MCP\x20Connecting...','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Retrying...','3243790blVPBk','3570584NuMMxj','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Click\x20to\x20connect\x20MCP','Invalid\x20configuration','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','25971qfvPJv','What\x20is\x20API\x20Key?','9UkTeif','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','2467507hzVKzM','MCP\x20Unknown\x20Status','Connected','MCP:\x20Network\x20Error','9012MbUioS','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Client\x20Configuration','Connection\x20Failed','243792mLWZSS','Failed\x20to\x20save\x20configuration','Get\x20your\x20API\x20key\x20in\x20seconds','10MckYRM','MCP\x20Connected','Max\x20Retries','Session\x20ID','MCP\x20Configuration','Enter\x20your\x20API\x20key','Save\x20Configuration','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP:\x20Session\x20ID\x20Occupied','Disconnected','Configuration\x20Parameters:','838878oYSvzG','Retrying...'];_0x3224=function(){return _0x1bdffd;};return _0x3224();}function _0x3075(_0x56bd27,_0x3e0f07){const _0x3224ac=_0x3224();return _0x3075=function(_0x3075d2,_0x4b6440){_0x3075d2=_0x3075d2-0x17a;let _0x4ee946=_0x3224ac[_0x3075d2];return _0x4ee946;},_0x3075(_0x56bd27,_0x3e0f07);}export{n as default};
|