@univerjs-pro/mcp-ui 0.10.14-nightly.202511031023 → 0.10.14-nightly.202511070628
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 +6 -6
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x3504c9=_0x418a;(function(_0x2b86e2,_0x4ef7db){const _0x4f2592=_0x418a,_0x5f2c50=_0x2b86e2();while(!![]){try{const _0x167a71=parseInt(_0x4f2592(0x248))/0x1+parseInt(_0x4f2592(0x225))/0x2+-parseInt(_0x4f2592(0x1ee))/0x3+-parseInt(_0x4f2592(0x288))/0x4+-parseInt(_0x4f2592(0x224))/0x5*(parseInt(_0x4f2592(0x17f))/0x6)+-parseInt(_0x4f2592(0x18c))/0x7*(-parseInt(_0x4f2592(0x228))/0x8)+parseInt(_0x4f2592(0x1ec))/0x9*(parseInt(_0x4f2592(0x191))/0xa);if(_0x167a71===_0x4ef7db)break;else _0x5f2c50['push'](_0x5f2c50['shift']());}catch(_0x2f5785){_0x5f2c50['push'](_0x5f2c50['shift']());}}}(_0x1da1,0xea29b));var Pe=Object[_0x3504c9(0x299)],Ee=(_0x1c94df,_0xd3714d,_0x56e2e4)=>_0xd3714d in _0x1c94df?Pe(_0x1c94df,_0xd3714d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x56e2e4}):_0x1c94df[_0xd3714d]=_0x56e2e4,x=(_0x5be7f8,_0x4478c5,_0x4c7f1d)=>Ee(_0x5be7f8,typeof _0x4478c5!='symbol'?_0x4478c5+'':_0x4478c5,_0x4c7f1d);import{LocaleService as _0x500816,Inject as _0x22aeb1,Injector as _0x3b20df,IConfigService as _0x967953,ILocalStorageService as _0x493214,ILogService as _0x1b5827,Disposable as _0x422753,CommandType as _0x498394,ICommandService as _0x4ae9c5,DependentOn as _0x3893d1,Plugin as _0xe522b5,merge as _0x52c909}from'@univerjs/core';import{jsxs as _0x26b802,jsx as _0x47d81f}from'react/jsx-runtime';import{MCPConnectionStatus as _0x53b579,MCPConnectionError as _0x1b6dba,MCPConnectionController as _0x2f25e4,MCP_PLUGIN_CONFIG_KEY as _0x2502a4,UniverMCPPlugin as _0x1a183c}from'@univerjs-pro/mcp';import{clsx as _0x2316bb,Input as _0x510951,Button as _0x146f3d,MessageType as _0x3dcc20,Tooltip as _0x1114ec}from'@univerjs/design';import{useDependency as _0x256644,useObservable as _0x478b78,IUIPartsService as _0x5e5a73,IDialogService as _0x1c68c5,IMessageService as _0x52f42d,ComponentManager as _0x25a9b7,connectInjector as _0x3c7794,BuiltInUIPart as _0x4f81ad,MenuItemType as _0xd1e96c,RibbonStartGroup as _0x17a6fa,IMenuManagerService as _0x7041bd}from'@univerjs/ui';import{BehaviorSubject as _0x8a14c2}from'rxjs';import{useRef as _0x114157,createElement as _0x222e2d,forwardRef as _0x1fe796,useState as _0x27f889,useCallback as _0x10851e}from'react';function _0x418a(_0x470a75,_0x1926cc){const _0x1da1ce=_0x1da1();return _0x418a=function(_0x418afc,_0x3837ea){_0x418afc=_0x418afc-0x14c;let _0x7391f8=_0x1da1ce[_0x418afc];return _0x7391f8;},_0x418a(_0x470a75,_0x1926cc);}import{ISocketService as _0x274cf1,WebSocketService as _0x180b24}from'@univerjs/network';function b({ref:_0x38cfa0,..._0x3ea635}){const _0x58c5a4=_0x3504c9,{icon:_0x359bc1,id:_0x54ebf9,className:_0x1a2df2,extend:_0x141502,..._0x54c02b}=_0x3ea635,_0x3571f7=('univerjs-icon\x20univerjs-icon-'+_0x54ebf9+'\x20'+(_0x1a2df2||''))[_0x58c5a4(0x21b)](),_0x50e652=_0x114157('_'+We());return ae(_0x359bc1,''+_0x54ebf9,{'defIds':_0x359bc1[_0x58c5a4(0x297)],'idSuffix':_0x50e652[_0x58c5a4(0x28a)]},{'ref':_0x38cfa0,'className':_0x3571f7,..._0x54c02b},_0x141502);}function ae(_0x3506f2,_0x3f22e2,_0x1e777f,_0x1cc31d,_0x13f755){const _0x549c52=_0x3504c9;return _0x222e2d(_0x3506f2[_0x549c52(0x28c)],{'key':_0x3f22e2,...Ye(_0x3506f2,_0x1e777f,_0x13f755),..._0x1cc31d},(Ze(_0x3506f2,_0x1e777f)[_0x549c52(0x251)]||[])[_0x549c52(0x1a1)]((_0x4a8752,_0x31bd67)=>ae(_0x4a8752,_0x3f22e2+'-'+_0x3506f2[_0x549c52(0x28c)]+'-'+_0x31bd67,_0x1e777f,void 0x0,_0x13f755)));}function Ye(_0x3fe012,_0x4869d6,_0x5a7573){const _0x1de176=_0x3504c9,_0x1eaed9={..._0x3fe012[_0x1de176(0x26f)]};_0x5a7573!=null&&_0x5a7573['colorChannel1']&&_0x1eaed9['fill']===_0x1de176(0x203)&&(_0x1eaed9['fill']=_0x5a7573[_0x1de176(0x203)]),_0x3fe012[_0x1de176(0x28c)]==='mask'&&_0x1eaed9['id']&&(_0x1eaed9['id']=_0x1eaed9['id']+_0x4869d6[_0x1de176(0x196)]),Object[_0x1de176(0x1fa)](_0x1eaed9)['forEach'](([_0x164658,_0x16f018])=>{const _0x139d61=_0x1de176;_0x164658===_0x139d61(0x23e)&&typeof _0x16f018==_0x139d61(0x177)&&(_0x1eaed9[_0x164658]=_0x16f018[_0x139d61(0x253)](/url\(#(.*)\)/,_0x139d61(0x234)+_0x4869d6['idSuffix']+')'));});const {defIds:_0x401506}=_0x4869d6;return!_0x401506||_0x401506['length']===0x0||(_0x3fe012[_0x1de176(0x28c)]===_0x1de176(0x211)&&_0x1eaed9[_0x1de176(0x1b3)]&&(_0x1eaed9['xlink:href']=_0x1eaed9[_0x1de176(0x1b3)]+_0x4869d6[_0x1de176(0x196)]),Object['entries'](_0x1eaed9)[_0x1de176(0x20d)](([_0x4f408c,_0x6dd55c])=>{const _0x27894c=_0x1de176;typeof _0x6dd55c==_0x27894c(0x177)&&(_0x1eaed9[_0x4f408c]=_0x6dd55c[_0x27894c(0x253)](/url\(#(.*)\)/,'url(#$1'+_0x4869d6[_0x27894c(0x196)]+')'));})),_0x1eaed9;}function Ze(_0x2a538b,_0x56897b){const _0x1cf9c3=_0x3504c9;var _0x21695a;const {defIds:_0xa94e1e}=_0x56897b;return!_0xa94e1e||_0xa94e1e['length']===0x0?_0x2a538b:_0x2a538b['tag']===_0x1cf9c3(0x14f)&&((_0x21695a=_0x2a538b[_0x1cf9c3(0x251)])!=null&&_0x21695a[_0x1cf9c3(0x16b)])?{..._0x2a538b,'children':_0x2a538b[_0x1cf9c3(0x251)][_0x1cf9c3(0x1a1)](_0x23c725=>typeof _0x23c725['attrs']['id']==_0x1cf9c3(0x177)&&_0xa94e1e&&_0xa94e1e['includes'](_0x23c725[_0x1cf9c3(0x26f)]['id'])?{..._0x23c725,'attrs':{..._0x23c725[_0x1cf9c3(0x26f)],'id':_0x23c725[_0x1cf9c3(0x26f)]['id']+_0x56897b[_0x1cf9c3(0x196)]}}:_0x23c725)}:_0x2a538b;}function We(){return Math['random']()['toString'](0x24)['substring'](0x2,0x8);}b['displayName']=_0x3504c9(0x286);function _0x1da1(){const _0x1fbd04=['_mcpCoreConfig$','<API_KEY>','value','add','Bearer\x20','35649KMNrAK','http://www.w3.org/2000/svg','1037733txvsiC','1em','mcpServerUrl','mcpStatus.unknown','Configuration\x20Steps:','MCP\x20Connected','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','UNAUTHORIZED','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','translate(.97)','_messageService','on-line-icon','entries','_validateConfig','currentColor','univer-min-w-0\x20univer-flex-1','_config$','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','on-line-icon_clip0_910_349','__setCustomHeaders','svg','colorChannel1','mcp-config-dialog','启用身份验证','NONE','_configService','univer-flex\x20univer-items-center\x20univer-gap-2','SESSION_ID_OCCUPIED','includes','univer-bg-blue-500','univer-text-green-500','forEach','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','M0\x200H16V16H0z','Invalid\x20configuration','use','mcpStatus.retrying','off','MCP:\x20Network\x20Error','FAILED','univer-space-y-3','Error','mcpConfig.apiKeyHint','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','registerComponent','trim','show','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','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','重连中...','点击连接\x20MCP','配置保存失败','stringify','What\x20is\x20API\x20Key?','13775tbAoVy','1235920UipbEP','会话\x20ID\x20已被占用,请稍后再试','网络连接错误,请检查您的网络连接','682544yUithd','mcpConfig.configInstructions','Success','mcpConfig.configStep1','0\x200\x2016\x2016','mcpStatus.clickToConnect','univer-font-medium','_dialogService','最大重试次数','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','path','showConfigPanel','url(#$1','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','mcpConfig.configStepTitle','Configuration\x20Parameters:','text','mcpConfig.sessionIdDescription','mcpConfig.connectionError.unauthorized','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','clipPath','M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z','mask','push','univer-shrink-0\x20univer-text-red-500','mcpConfig.authorizationDescription','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','removeItem','保存配置','white','DISCONNECTED','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','1428007BeOkbM','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer-space-y-2','univer.plus','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','_createConfigPanelComponent','Copy\x20the\x20JSON\x20configuration\x20below','connectionError$','univer-space-y-4','children','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','replace','重启您的\x20MCP\x20客户端以使配置生效','mcpConfig.connectionStatus.retrying','univer-text-red-500','_handleConfigSave','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','RETRYING','noopener\x20noreferrer','MCP:\x20Session\x20ID\x20Occupied','将以下配置添加到您的\x20MCP\x20客户端设置中:','API\x20密钥长度至少需要\x2010\x20位','_logService','Saving...','OTHERS','mcpConfig.apiApplyInfo.univerAiLabel','MCP\x20Configuration','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','请输入您的\x20API\x20密钥','open','会话ID','evenodd','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','点击配置\x20MCP','CONNECTED','none','mcpConfig.configStep3','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','_localeService','attrs','_initAutoConnect','univer-size-2\x20univer-rounded-full','mcpStatus.maxRetriesExceeded','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','get','MCP\x20Connecting...','univer-text-white','mcpStatus.failed','registerCommand','mcpConfig.validation.apiKeyRequired','univer-size-4','getCurrentConfig','mcpConfig.configError','将配置添加到您的\x20MCP\x20客户端设置文件中','mcp-ui.command.openConfigPanel','MCP:\x20Max\x20Retries\x20Exceeded','mcp.apiKey','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','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\x20已断开','round','UniverIcon','API\x20key\x20with\x20Bearer\x20prefix.','7159144NTrOkt','BUTTON','current','univer-flex\x20univer-items-center','tag','span','_loading$','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','mcpConfig.connectionError.networkError','配置无效','next','univer-bg-gray-500','API\x20密钥','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','univer-text-yellow-500','defIds','HEADER_MENU','defineProperty','_initConfigSync','bottom','OnLineIcon','MCP\x20连接中...','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','您的\x20API\x20密钥安全存储在本地存储中','off-line-icon','defs','mcp-ui.config','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','univer.ai','mcpConfig.title','mcpConfig.connectionStatus.failed','univer-flex\x20univer-items-center\x20univer-gap-3','_loadStoredApiKey','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','mcpConfig.connectionStatus.connecting','MCP\x20连接失败','univer-text-sm\x20univer-font-medium','mcpConfig.apiApplyInfo.description','univer-shrink-0\x20univer-text-blue-500','启用身份验证以获得安全连接','Max\x20Retries','_config','connectionStatus$','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Click\x20to\x20configure\x20MCP','warn','Enable\x20authentication\x20for\x20secure\x20connections','API\x20key\x20is\x20required','Univer\x20AI\x20Console','MCP\x20客户端配置','getItem','univer-space-y-5','univer-text-blue-600','length','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','close-icon','连接失败','Configuration\x20Notes:','_localStorageService','_initializeMenus','MAX_RETRIES_EXCEEDED','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','button','displayName','Connection\x20Failed','string','mcpConfig.validation.apiKeyTooShort','MCP\x20Unknown\x20Status','MCP\x20重连中...','API\x20密钥无效,请检查密钥是否正确','univer-text-gray-500','mcpStatus.connecting','MenuIcon','2388vFSwuj','mcpConfig.connectionStatus.connected','MCP\x20配置','pre','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','OffLineIcon','mcpConfig.validation.invalidConfig','配置\x20MCP\x20使用\x20AI\x20操作电子表格','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','error','univer-flex\x20univer-items-start\x20univer-gap-2','getOwnPropertyDescriptor','_injector','21hmfCWZ','univer-flex\x20univer-items-start\x20univer-gap-3','mcpConfig.note2','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','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','4770gyTxxS','Enter\x20your\x20API\x20key','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Failed\x20to\x20save\x20configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','idSuffix','什么是\x20API\x20密钥?','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','univer-bg-red-500','Univer\x20AI\x20控制台','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','_registerComponent','mcpConfig.description','close','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','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','map','univer-text-xs\x20univer-text-gray-500','_mcpConnectionController','disposeWithMe','带有\x20Bearer\x20前缀的\x20API\x20密钥。','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','url(#on-line-icon_clip0_910_349)','MCP\x20Client\x20Configuration','univer_session_id:','apiKey','Disconnected','subscribe','showDeveloperTools','MCPConfigPanel','onStarting','Session\x20ID','subscribeConfigValue$','MCP:\x20会话\x20ID\x20已被占用','xlink:href','_menuManagerService','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','getConfig','mcpStatus.sessionOccupied','univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','univer-flex\x20univer-gap-3','showStatus','MCP:\x20超出最大重试次数','CONNECTING','_uiPartsService','配置参数:','register','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','mcpConfig.apiApplyInfo.title','mcpConfig.apiApplyInfo.getStarted','isValid','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','保存中...','\x20-\x20','您的\x20API\x20密钥将在此浏览器中本地存储','mcpStatus.disconnected','univer-bg-green-500','_initStatusComponent','sessionId$','univer-text-gray-400','Enable\x20Authentication','setItem','mcpConfig.saving','div','assign','mcpStatus.networkError','mcpConfig.apiKey','has','_apiKey$','MCP\x20Disconnected','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','NETWORK_ERROR','_connectionController','mcpConfig.connectionError.maxRetriesExceeded','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','0\x200\x2017\x2016','mergeMenu','enableAutoConnect','_initializeCommands','Connected','_handleConfigure','CloseIcon','mcpConfig.connectionError.sessionOccupied'];_0x1da1=function(){return _0x1fbd04;};return _0x1da1();}const qe={'tag':_0x3504c9(0x202),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x3504c9(0x26b),'viewBox':_0x3504c9(0x22c),'width':_0x3504c9(0x1ef),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x3504c9(0x1fc),'d':_0x3504c9(0x18f),'fillRule':_0x3504c9(0x267),'clipRule':_0x3504c9(0x267)}}]},le=_0x1fe796(function(_0x51c5bc,_0x49e1b1){const _0x10ae15=_0x3504c9;return _0x222e2d(b,Object[_0x10ae15(0x1d3)]({},_0x51c5bc,{'id':'check-mark-icon','ref':_0x49e1b1,'icon':qe}));});le['displayName']='CheckMarkIcon';const Xe={'tag':'svg','attrs':{'xmlns':_0x3504c9(0x1ed),'fill':_0x3504c9(0x26b),'viewBox':_0x3504c9(0x22c),'width':'1em','height':_0x3504c9(0x1ef)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0x3504c9(0x23d)}}]},ue=_0x1fe796(function(_0x331fcc,_0x9aa9da){const _0x5d5d61=_0x3504c9;return _0x222e2d(b,Object[_0x5d5d61(0x1d3)]({},_0x331fcc,{'id':_0x5d5d61(0x16d),'ref':_0x9aa9da,'icon':Xe}));});ue[_0x3504c9(0x175)]=_0x3504c9(0x1e5);const Je={'tag':_0x3504c9(0x202),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x3504c9(0x26b),'viewBox':_0x3504c9(0x22c),'width':'1em','height':'1em'},'children':[{'tag':_0x3504c9(0x232),'attrs':{'fill':_0x3504c9(0x1fc),'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':'path','attrs':{'fill':_0x3504c9(0x1fc),'d':_0x3504c9(0x1de)}},{'tag':_0x3504c9(0x232),'attrs':{'fill':_0x3504c9(0x1fc),'d':_0x3504c9(0x1a6),'fillRule':_0x3504c9(0x267),'clipRule':'evenodd'}}]},ve=_0x1fe796(function(_0x532e9c,_0x106138){const _0x53b54f=_0x3504c9;return _0x222e2d(b,Object[_0x53b54f(0x1d3)]({},_0x532e9c,{'id':'help-icon','ref':_0x106138,'icon':Je}));});ve[_0x3504c9(0x175)]='HelpIcon';const Qe={'tag':_0x3504c9(0x202),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x3504c9(0x26b),'viewBox':_0x3504c9(0x22c),'width':'1em','height':_0x3504c9(0x1ef)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x3504c9(0x232),'attrs':{'stroke':_0x3504c9(0x1fc),'d':_0x3504c9(0x21e),'strokeLinecap':_0x3504c9(0x285),'strokeLinejoin':_0x3504c9(0x285),'strokeWidth':1.2}}]},{'tag':_0x3504c9(0x14f),'attrs':{},'children':[{'tag':_0x3504c9(0x23c),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':_0x3504c9(0x245),'d':_0x3504c9(0x20f)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},de=_0x1fe796(function(_0x20b9f6,_0x53cce7){const _0x119f06=_0x3504c9;return _0x222e2d(b,Object[_0x119f06(0x1d3)]({},_0x20b9f6,{'id':_0x119f06(0x14e),'ref':_0x53cce7,'icon':Qe}));});de[_0x3504c9(0x175)]=_0x3504c9(0x184);const en={'tag':'svg','attrs':{'xmlns':_0x3504c9(0x1ed),'fill':_0x3504c9(0x26b),'viewBox':_0x3504c9(0x1df),'width':'1em','height':_0x3504c9(0x1ef)},'children':[{'tag':'g','attrs':{'clipPath':_0x3504c9(0x1a7)},'children':[{'tag':_0x3504c9(0x232),'attrs':{'stroke':_0x3504c9(0x1fc),'d':_0x3504c9(0x283),'strokeLinecap':_0x3504c9(0x285),'strokeLinejoin':_0x3504c9(0x285),'strokeWidth':1.2}}]},{'tag':_0x3504c9(0x14f),'attrs':{},'children':[{'tag':_0x3504c9(0x23c),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x3504c9(0x232),'attrs':{'fill':_0x3504c9(0x245),'d':_0x3504c9(0x20f),'transform':_0x3504c9(0x1f7)}}]}]}],'defIds':[_0x3504c9(0x200)]},ge=_0x1fe796(function(_0x218977,_0x15e131){const _0x2a471e=_0x3504c9;return _0x222e2d(b,Object[_0x2a471e(0x1d3)]({},_0x218977,{'id':_0x2a471e(0x1f9),'ref':_0x15e131,'icon':en}));});ge['displayName']=_0x3504c9(0x29c);function nn(_0x283731){const _0xa71d99=_0x3504c9;var _0x33d3ec,_0xc2ca5c;const {mcpCoreConfig:_0x34a8d2,onSave:_0x5baf93,loading:_0x4cbef5=!0x1,config:_0x48bb1c,connectionStatus$:_0x970d05,connectionError$:_0x34f186,currentApiKey$:_0x263f24,currentSessionId$:_0x4bd101}=_0x283731,_0x5a6eea=_0x256644(_0x500816),_0x462d5d=_0x478b78(_0x970d05,_0x53b579['DISCONNECTED']),_0x1ebfee=_0x478b78(_0x34f186,_0x1b6dba[_0xa71d99(0x206)]),_0xcdd1b8=_0x478b78(_0x4bd101,''),_0x1b3279=_0x478b78(_0x263f24,''),[_0x27a2be,_0x12a562]=_0x27f889(_0x1b3279||''),_0x1072c=!0x0,_0x352f02=_0x48bb1c[_0xa71d99(0x1ad)]&&_0x34a8d2[_0xa71d99(0x1f0)]&&(_0x34a8d2[_0xa71d99(0x1f0)][_0xa71d99(0x20a)](_0xa71d99(0x24b))||_0x34a8d2[_0xa71d99(0x1f0)][_0xa71d99(0x20a)](_0xa71d99(0x152))),_0x45c65c=(_0x33d3ec=_0x34a8d2[_0xa71d99(0x1f0)])==null?void 0x0:_0x33d3ec[_0xa71d99(0x20a)]('univer.plus'),_0x166c37=(_0xc2ca5c=_0x34a8d2[_0xa71d99(0x1f0)])==null?void 0x0:_0xc2ca5c[_0xa71d99(0x20a)](_0xa71d99(0x152)),_0x53f6af=_0x45c65c?'https://console.univer.plus':'https://console.univer.ai',_0xf45637=_0x48bb1c[_0xa71d99(0x1ad)]&&(_0x45c65c||_0x166c37),[_0x45d8aa,_0x363334]=_0x27f889(!_0x27a2be[_0xa71d99(0x21b)]()),_0x408f56=(_0x24a3fa,_0xacbe5c)=>{const _0x191b32=_0xa71d99;if(_0xacbe5c===_0x1b6dba['UNAUTHORIZED'])return _0x191b32(0x1da);switch(_0x24a3fa){case _0x53b579[_0x191b32(0x26a)]:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case _0x53b579[_0x191b32(0x1be)]:case _0x53b579[_0x191b32(0x259)]:return'univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200';case _0x53b579[_0x191b32(0x215)]:return _0x191b32(0x1da);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x179c7a=(_0x187b21,_0x2507a5)=>{const _0x337c12=_0xa71d99;if(_0x2507a5===_0x1b6dba[_0x337c12(0x1f5)])return _0x337c12(0x199);switch(_0x187b21){case _0x53b579[_0x337c12(0x26a)]:return _0x337c12(0x1cb);case _0x53b579[_0x337c12(0x1be)]:case _0x53b579[_0x337c12(0x259)]:return _0x337c12(0x20b);case _0x53b579['FAILED']:return _0x337c12(0x199);default:return _0x337c12(0x293);}},_0x9563b8=_0x2373a4=>{const _0x548631=_0xa71d99;switch(_0x2373a4){case _0x53b579['CONNECTED']:return _0x5a6eea['t'](_0x548631(0x180));case _0x53b579[_0x548631(0x1be)]:return _0x5a6eea['t'](_0x548631(0x158));case _0x53b579[_0x548631(0x215)]:return _0x5a6eea['t'](_0x548631(0x154));case _0x53b579[_0x548631(0x259)]:return _0x5a6eea['t'](_0x548631(0x255));default:return _0x5a6eea['t']('mcpConfig.connectionStatus.disconnected');}},_0x43e104=_0x5f1d8e=>{const _0x575a12=_0xa71d99;switch(_0x5f1d8e){case _0x1b6dba[_0x575a12(0x1f5)]:return _0x5a6eea['t'](_0x575a12(0x23a));case _0x1b6dba[_0x575a12(0x209)]:return _0x5a6eea['t'](_0x575a12(0x1e6));case _0x1b6dba[_0x575a12(0x1db)]:return _0x5a6eea['t'](_0x575a12(0x290));case _0x1b6dba[_0x575a12(0x172)]:return _0x5a6eea['t'](_0x575a12(0x1dd));default:return'';}},_0xf39519=_0x10851e(()=>{const _0x16d584=_0xa71d99,_0x479bad={..._0x34a8d2,'apiKey':_0x27a2be[_0x16d584(0x21b)](),'enableAuth':_0x1072c};_0x5baf93(_0x479bad);},[_0x34a8d2,_0x27a2be,_0x1072c,_0x5baf93]),_0x5c2208=_0x27a2be['trim']()['length']>0x0;return _0x26b802('div',{'className':_0xa71d99(0x274),'children':[_0x47d81f('div',{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x155),'children':[_0x47d81f(_0xa71d99(0x1d2),{'className':_0xa71d99(0x157),'children':_0x47d81f(_0xa71d99(0x28d),{'className':_0xa71d99(0x277),'children':'⚙'})}),_0x47d81f(_0xa71d99(0x1d2),{'children':_0x47d81f('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x5a6eea['t'](_0xa71d99(0x19d))})})]})}),_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x151),'children':[_0x47d81f(_0xa71d99(0x1d2),{'className':_0x2316bb(_0xa71d99(0x1f4),_0x408f56(_0x462d5d,_0x1ebfee)),'children':_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x208),'children':[_0x47d81f(_0xa71d99(0x1d2),{'className':_0x2316bb(_0xa71d99(0x271),_0x179c7a(_0x462d5d,_0x1ebfee))}),_0x47d81f(_0xa71d99(0x28d),{'className':_0xa71d99(0x15a),'children':_0x9563b8(_0x462d5d)})]})}),_0x1ebfee!==_0x1b6dba[_0xa71d99(0x206)]&&(_0x462d5d===_0x53b579[_0xa71d99(0x215)]||_0x1ebfee===_0x1b6dba[_0xa71d99(0x1f5)])&&_0x47d81f(_0xa71d99(0x1d2),{'className':_0xa71d99(0x273),'children':_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x189),'children':[_0x47d81f(_0xa71d99(0x28d),{'className':_0xa71d99(0x240),'children':'⚠️'}),_0x47d81f('p',{'className':_0xa71d99(0x16c),'children':_0x43e104(_0x1ebfee)})]})})]}),_0x47d81f('div',{'className':_0xa71d99(0x1c6),'children':_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x169),'children':[_0x26b802(_0xa71d99(0x1d2),{'className':'univer-space-y-2','children':[_0x26b802('label',{'className':_0xa71d99(0x23b),'children':[_0x47d81f(_0xa71d99(0x28d),{'children':'🔑'}),'\x20',_0x5a6eea['t'](_0xa71d99(0x1d5)),_0x47d81f('span',{'className':_0xa71d99(0x256),'children':'*'}),_0x352f02&&_0x47d81f('a',{'className':_0xa71d99(0x1b9),'title':_0x5a6eea['t'](_0xa71d99(0x1c3)),'role':_0xa71d99(0x174),'onClick':()=>_0x363334(!0x0),'children':_0x47d81f(ve,{})})]}),_0x47d81f(_0x510951,{'type':_0xa71d99(0x238),'placeholder':_0x5a6eea['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x27a2be,'disabled':_0x4cbef5,'autoComplete':_0xa71d99(0x213),'onChange':_0x12a562}),_0x47d81f('p',{'className':_0xa71d99(0x1a2),'children':_0x5a6eea['t'](_0xa71d99(0x218))})]}),_0x352f02&&_0x45d8aa&&_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x26d),'children':[_0x47d81f('a',{'className':_0xa71d99(0x242),'role':_0xa71d99(0x174),'onClick':()=>_0x363334(!0x1),'children':_0x47d81f(ue,{'className':_0xa71d99(0x27b)})}),_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x282),'children':[_0x47d81f(_0xa71d99(0x1d2),{'className':_0xa71d99(0x263),'children':_0x47d81f(_0xa71d99(0x28d),{'className':_0xa71d99(0x16a),'children':'🚀'})}),_0x26b802('div',{'className':'univer-flex-1','children':[_0x47d81f('h4',{'className':_0xa71d99(0x1ff),'children':_0x5a6eea['t'](_0xa71d99(0x1c3))}),_0x47d81f('p',{'className':_0xa71d99(0x268),'children':_0x5a6eea['t'](_0xa71d99(0x15b))}),_0x47d81f(_0xa71d99(0x1d2),{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0xf45637&&_0x26b802('a',{'className':_0xa71d99(0x19f),'href':_0x53f6af,'target':'_blank','rel':_0xa71d99(0x25a),'children':[_0x47d81f(_0xa71d99(0x28d),{'children':'🤖'}),_0x5a6eea['t'](_0xa71d99(0x261)),_0x47d81f(_0xa71d99(0x28d),{'className':_0xa71d99(0x1ce),'children':'↗'})]})}),_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x231),'children':['✨','\x20',_0x5a6eea['t'](_0xa71d99(0x1c4))]})]})]})]}),_0x48bb1c['showDeveloperTools']&&_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x21d),'children':[_0x26b802('h4',{'className':_0xa71d99(0x249),'children':[_0x47d81f(_0xa71d99(0x28d),{'children':'🔗'}),'\x20',_0x5a6eea['t']('mcpConfig.connectionInfo')]}),_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x250),'children':[_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x216),'children':[_0x47d81f('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x5a6eea['t'](_0xa71d99(0x229))}),_0x26b802('div',{'className':_0xa71d99(0x24a),'children':[_0x47d81f('div',{'className':_0xa71d99(0x1d9),'children':_0x5a6eea['t'](_0xa71d99(0x236))}),_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x1b6),'children':[_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x208),'children':[_0x47d81f(_0xa71d99(0x28d),{'className':_0xa71d99(0x19b),'children':'1'}),_0x5a6eea['t'](_0xa71d99(0x22b))]}),_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x208),'children':[_0x47d81f(_0xa71d99(0x28d),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'2'}),_0x5a6eea['t']('mcpConfig.configStep2')]}),_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x208),'children':[_0x47d81f(_0xa71d99(0x28d),{'className':_0xa71d99(0x19b),'children':'3'}),_0x5a6eea['t'](_0xa71d99(0x26c))]})]})]})]}),_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x24a),'children':[_0x47d81f(_0xa71d99(0x1d2),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0xa71d99(0x262)}),_0x47d81f(_0xa71d99(0x1d2),{'className':_0xa71d99(0x28f),'children':_0x47d81f(_0xa71d99(0x182),{'className':_0xa71d99(0x187),'children':JSON[_0xa71d99(0x222)]({'mcpServers':{'univer':{'url':'https://mcp.univer.ai/mcp/?univer_session_id='+(_0xcdd1b8||'<SESSION_ID>'),'type':'http','headers':{'Authorization':'Bearer\x20'+(_0x27a2be||_0xa71d99(0x1e8))}}}},null,0x2)})})]}),_0x26b802(_0xa71d99(0x1d2),{'className':'univer-space-y-3','children':[_0x47d81f(_0xa71d99(0x1d2),{'className':_0xa71d99(0x1d9),'children':_0x5a6eea['t']('mcpConfig.configParameters')}),_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x24a),'children':[_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x18d),'children':[_0x47d81f(_0xa71d99(0x1d2),{'className':_0xa71d99(0x14c)}),_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x1fd),'children':[_0x47d81f(_0xa71d99(0x1d2),{'className':_0xa71d99(0x20e),'children':_0xa71d99(0x1a9)}),_0x47d81f(_0xa71d99(0x1d2),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x5a6eea['t'](_0xa71d99(0x239))})]})]}),_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x18d),'children':[_0x47d81f(_0xa71d99(0x1d2),{'className':_0xa71d99(0x14c)}),_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x1fd),'children':[_0x47d81f(_0xa71d99(0x1d2),{'className':_0xa71d99(0x20e),'children':'Authorization:'}),_0x47d81f(_0xa71d99(0x1d2),{'className':_0xa71d99(0x1a2),'children':_0x5a6eea['t'](_0xa71d99(0x241))})]})]})]})]})]})]}),_0x47d81f(_0x146f3d,{'onClick':_0xf39519,'disabled':!_0x5c2208||_0x4cbef5,'className':_0xa71d99(0x295),'children':_0x4cbef5?_0x26b802(_0xa71d99(0x28d),{'className':_0xa71d99(0x208),'children':[_0x47d81f('span',{'children':'⟲'}),_0x5a6eea['t'](_0xa71d99(0x1d1))]}):_0x26b802(_0xa71d99(0x28d),{'className':_0xa71d99(0x208),'children':[_0x47d81f(le,{}),_0x5a6eea['t']('mcpConfig.save')]})}),_0x47d81f(_0xa71d99(0x1d2),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x1bb),'children':[_0x47d81f(_0xa71d99(0x28d),{'className':_0xa71d99(0x15c),'children':'💡'}),_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x183),'children':[_0x47d81f('div',{'className':_0xa71d99(0x22e),'children':_0xa71d99(0x16f)}),_0x26b802(_0xa71d99(0x1d2),{'children':['•',_0x5a6eea['t']('mcpConfig.note1')]}),_0x26b802(_0xa71d99(0x1d2),{'children':['•',_0x5a6eea['t'](_0xa71d99(0x18e))]})]})]})})]})})]});}const y=_0x3504c9(0x150),ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object[_0x3504c9(0x18a)],tn=(_0xc602c1,_0x483573,_0x36ce2a,_0x68a81e)=>{for(var _0x36da5b=_0x68a81e>0x1?void 0x0:_0x68a81e?rn(_0x483573,_0x36ce2a):_0x483573,_0x2fd63d=_0xc602c1['length']-0x1,_0x5b66d0;_0x2fd63d>=0x0;_0x2fd63d--)(_0x5b66d0=_0xc602c1[_0x2fd63d])&&(_0x36da5b=_0x5b66d0(_0x36da5b)||_0x36da5b);return _0x36da5b;},d=(_0x1f83f9,_0x180a52)=>(_0x135573,_0xe12907)=>_0x180a52(_0x135573,_0xe12907,_0x1f83f9);const U=_0x3504c9(0x281),L=_0x3504c9(0x204);let I=class extends _0x422753{constructor(_0x657625,_0x169e26,_0x46fc97,_0x4ff583,_0x1090ae,_0x5265de,_0x380ff1,_0x58ffcf,_0xfbaebb,_0x2708df){const _0x36b526=_0x3504c9;super(),x(this,_0x36b526(0x28e),new _0x8a14c2(!0x1)),x(this,_0x36b526(0x1e7),new _0x8a14c2({})),x(this,_0x36b526(0x1fe),new _0x8a14c2({})),x(this,_0x36b526(0x1d7),new _0x8a14c2('')),x(this,_0x36b526(0x257),async _0x44be91=>{const _0x11cd63=_0x36b526;var _0x38b9f4,_0xd0c211;this['_loading$']['next'](!0x0);try{const _0x1e7fde=await this[_0x11cd63(0x1fb)](_0x44be91);if(!_0x1e7fde[_0x11cd63(0x1c5)]){this[_0x11cd63(0x1f8)]['show']({'type':_0x3dcc20[_0x11cd63(0x217)],'content':_0x1e7fde['errorMessage']||this['_localeService']['t'](_0x11cd63(0x185))});return;}_0x44be91['apiKey']?await this[_0x11cd63(0x170)][_0x11cd63(0x1d0)](U,_0x44be91[_0x11cd63(0x1aa)][_0x11cd63(0x21b)]()):await this[_0x11cd63(0x170)][_0x11cd63(0x243)](U),this[_0x11cd63(0x1d7)]['next'](((_0x38b9f4=_0x44be91['apiKey'])==null?void 0x0:_0x38b9f4['trim']())||''),this[_0x11cd63(0x1a3)][_0x11cd63(0x201)]({'Authorization':_0x11cd63(0x1eb)+((_0xd0c211=_0x44be91['apiKey'])==null?void 0x0:_0xd0c211[_0x11cd63(0x21b)]())}),this['_messageService']['show']({'type':_0x3dcc20[_0x11cd63(0x22a)],'content':this['_localeService']['t']('mcpConfig.configSaved')}),setTimeout(()=>{const _0x67f2cf=_0x11cd63;this[_0x67f2cf(0x22f)]['close'](L);},0x320);}catch(_0x387ffc){this[_0x11cd63(0x25e)]['error']('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x387ffc),this[_0x11cd63(0x1f8)][_0x11cd63(0x21c)]({'type':_0x3dcc20[_0x11cd63(0x217)],'content':this[_0x11cd63(0x26e)]['t'](_0x11cd63(0x27d))});}finally{this[_0x11cd63(0x28e)]['next'](!0x1);}}),(this[_0x36b526(0x18b)]=_0x657625,this['_uiPartsService']=_0x169e26,this['_configService']=_0x46fc97,this['_localStorageService']=_0x4ff583,this[_0x36b526(0x22f)]=_0x1090ae,this['_messageService']=_0x5265de,this['_componentManager']=_0x380ff1,this[_0x36b526(0x26e)]=_0x58ffcf,this[_0x36b526(0x25e)]=_0xfbaebb,this[_0x36b526(0x1a3)]=_0x2708df,this[_0x36b526(0x29a)](),this[_0x36b526(0x156)](),this['_registerComponent']());}['showConfigPanel'](){const _0x340b15=_0x3504c9,_0x10a6f0=this['_configService'][_0x340b15(0x1b7)](y);_0x10a6f0!=null&&_0x10a6f0['showDeveloperTools']&&this[_0x340b15(0x22f)][_0x340b15(0x265)]({'id':L,'title':{'title':this[_0x340b15(0x26e)]['t']('mcpConfig.title')},'children':{'label':_0x340b15(0x1ae)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x3d8579=_0x340b15;this[_0x3d8579(0x22f)][_0x3d8579(0x19e)](L);}});}[_0x3504c9(0x27c)](){const _0x28423b=_0x3504c9;return this['_mcpCoreConfig$'][_0x28423b(0x1e9)];}[_0x3504c9(0x19c)](){const _0xc257db=_0x3504c9;this[_0xc257db(0x1a4)](this['_componentManager'][_0xc257db(0x1c1)](_0xc257db(0x1ae),this['_createConfigPanelComponent']()));}[_0x3504c9(0x24d)](){const _0x398888=_0x3504c9;return _0x3c7794(()=>{const _0xfd8e17=_0x418a;var _0x3cac0f,_0x24d6fc,_0x524f48;return _0x47d81f(nn,{'config':this[_0xfd8e17(0x1fe)][_0xfd8e17(0x1e9)],'mcpCoreConfig':this[_0xfd8e17(0x1e7)][_0xfd8e17(0x1e9)],'currentApiKey$':this['_apiKey$'],'onSave':this[_0xfd8e17(0x257)],'loading':this['_loading$'][_0xfd8e17(0x1e9)],'connectionStatus$':(_0x3cac0f=this[_0xfd8e17(0x1a3)])==null?void 0x0:_0x3cac0f[_0xfd8e17(0x160)],'connectionError$':(_0x24d6fc=this[_0xfd8e17(0x1a3)])==null?void 0x0:_0x24d6fc['connectionError$'],'currentSessionId$':(_0x524f48=this[_0xfd8e17(0x1a3)])==null?void 0x0:_0x524f48[_0xfd8e17(0x1cd)]});},this[_0x398888(0x18b)]);}[_0x3504c9(0x29a)](){const _0x4b7fe8=_0x3504c9;this[_0x4b7fe8(0x1a4)](this[_0x4b7fe8(0x207)][_0x4b7fe8(0x1b1)](_0x2502a4)[_0x4b7fe8(0x1ac)](_0x44ca85=>{const _0x1556dd=_0x4b7fe8;this[_0x1556dd(0x1e7)][_0x1556dd(0x292)](_0x44ca85||{});}));const _0x4f8dae=this[_0x4b7fe8(0x207)][_0x4b7fe8(0x1b7)](_0x2502a4);this[_0x4b7fe8(0x1e7)][_0x4b7fe8(0x292)](_0x4f8dae||{}),this[_0x4b7fe8(0x1a4)](this[_0x4b7fe8(0x207)][_0x4b7fe8(0x1b1)](y)[_0x4b7fe8(0x1ac)](_0x82d13a=>{const _0x14a591=_0x4b7fe8;this[_0x14a591(0x1fe)][_0x14a591(0x292)](_0x82d13a||{});}));const _0x3be09e=this[_0x4b7fe8(0x207)][_0x4b7fe8(0x1b7)](y);this['_config$'][_0x4b7fe8(0x292)](_0x3be09e||{});}async[_0x3504c9(0x156)](){const _0x209d14=_0x3504c9,_0x4e07f=this[_0x209d14(0x207)][_0x209d14(0x1b7)](y);if(!(_0x4e07f!=null&&_0x4e07f[_0x209d14(0x1ad)]))return;const _0x2cd740=await this[_0x209d14(0x170)][_0x209d14(0x168)](U);_0x2cd740&&(this[_0x209d14(0x1a3)][_0x209d14(0x201)]({'Authorization':_0x209d14(0x1eb)+_0x2cd740}),this[_0x209d14(0x1d7)][_0x209d14(0x292)](_0x2cd740));}async[_0x3504c9(0x1fb)](_0x3b772b){const _0x31e4ce=_0x3504c9;if(!_0x3b772b['apiKey']||_0x3b772b[_0x31e4ce(0x1aa)][_0x31e4ce(0x21b)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this[_0x31e4ce(0x26e)]['t'](_0x31e4ce(0x27a))};if(_0x3b772b[_0x31e4ce(0x1aa)][_0x31e4ce(0x21b)]()[_0x31e4ce(0x16b)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x31e4ce(0x26e)]['t'](_0x31e4ce(0x178))};try{const _0x2d4260=await this['_injector'][_0x31e4ce(0x275)](_0x2f25e4)['validateApiKey'](_0x3b772b[_0x31e4ce(0x1aa)][_0x31e4ce(0x21b)]());return _0x2d4260[_0x31e4ce(0x1c5)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x2d4260[_0x31e4ce(0x188)]||this[_0x31e4ce(0x26e)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0xd68368){return console[_0x31e4ce(0x163)](_0x31e4ce(0x190),_0xd68368),{'isValid':!0x0};}}};I=tn([d(0x0,_0x22aeb1(_0x3b20df)),d(0x1,_0x5e5a73),d(0x2,_0x967953),d(0x3,_0x493214),d(0x4,_0x1c68c5),d(0x5,_0x52f42d),d(0x6,_0x22aeb1(_0x25a9b7)),d(0x7,_0x22aeb1(_0x500816)),d(0x8,_0x1b5827),d(0x9,_0x22aeb1(_0x2f25e4))],I);const V={'id':_0x3504c9(0x27f),'type':_0x498394['COMMAND'],'handler':async(_0x52184e,_0x116fb2)=>(_0x52184e['get'](I)[_0x3504c9(0x233)](),!0x0)};function pe(_0x39c257,_0x2b8dcd){const _0x532eda=_0x3504c9;switch(_0x39c257){case _0x53b579[_0x532eda(0x246)]:return _0x532eda(0x1ca);case _0x53b579[_0x532eda(0x1be)]:return _0x532eda(0x17d);case _0x53b579[_0x532eda(0x26a)]:return'mcpStatus.connected';case _0x53b579[_0x532eda(0x215)]:switch(_0x2b8dcd){case _0x1b6dba['UNAUTHORIZED']:return'mcpStatus.unauthorized';case _0x1b6dba[_0x532eda(0x209)]:return _0x532eda(0x1b8);case _0x1b6dba[_0x532eda(0x1db)]:return _0x532eda(0x1d4);case _0x1b6dba[_0x532eda(0x172)]:return _0x532eda(0x272);default:return _0x532eda(0x278);}case _0x53b579[_0x532eda(0x259)]:return _0x532eda(0x212);default:return _0x532eda(0x1f1);}}function on(_0x228303,_0x382e58,_0x1bd0b6,_0x5c2c00=!0x0){const _0x2d77aa=_0x3504c9,_0x12676e=pe(_0x228303,_0x382e58),_0x525ad1=_0x1bd0b6['t'](_0x12676e);return _0x5c2c00?_0x228303===_0x53b579[_0x2d77aa(0x246)]&&_0x382e58===_0x1b6dba[_0x2d77aa(0x1f5)]?_0x525ad1+'\x20-\x20'+_0x1bd0b6['t']('mcpStatus.clickToConfigure'):_0x228303===_0x53b579[_0x2d77aa(0x26a)]?''+_0x525ad1:_0x228303===_0x53b579[_0x2d77aa(0x246)]||_0x228303===_0x53b579['FAILED']?_0x525ad1+_0x2d77aa(0x1c8)+_0x1bd0b6['t'](_0x2d77aa(0x22d)):_0x525ad1:_0x525ad1;}function sn(_0x436a14){const _0x4f8e81=_0x3504c9;switch(_0x436a14){case _0x53b579[_0x4f8e81(0x26a)]:return _0x4f8e81(0x20c);case _0x53b579['CONNECTING']:case _0x53b579['RETRYING']:return _0x4f8e81(0x296);case _0x53b579['FAILED']:case _0x53b579['DISCONNECTED']:return _0x4f8e81(0x256);default:return _0x4f8e81(0x17c);}}function cn(_0xa271c){const _0x46f79f=_0x3504c9,{status$:_0x500225,error$:_0x286ed9,onConfigure:_0x1b7df9,showClickable:_0x1eae48=!0x0}=_0xa271c,_0x4c98c2=_0x478b78(_0x500225,_0x53b579[_0x46f79f(0x246)]),_0x45361d=_0x478b78(_0x286ed9,_0x1b6dba[_0x46f79f(0x206)]),_0x563b50=_0x256644(_0x500816),_0x2b197d=_0x4c98c2===_0x53b579[_0x46f79f(0x26a)];_0x4c98c2===_0x53b579[_0x46f79f(0x1be)]||_0x53b579['RETRYING'];const _0x40dec3=_0x563b50['t'](pe(_0x4c98c2,_0x45361d)),_0x5af01a=on(_0x4c98c2,_0x45361d,_0x563b50,_0x1eae48),_0x5c3966=sn(_0x4c98c2),_0x1564bb=_0x2b197d?_0x47d81f(ge,{}):_0x47d81f(de,{}),_0x1a62c4=_0x10851e(()=>{_0x1eae48&&_0x1b7df9&&_0x1b7df9();},[_0x1eae48,_0x1b7df9]);function _0xe649de(){const _0x1a121f=_0x46f79f;return _0x26b802('div',{'className':_0x2316bb(_0x1a121f(0x28b),_0x1eae48&&_0x1b7df9&&'\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'),'role':'button','onClick':_0x1eae48&&_0x1b7df9?_0x1a62c4:void 0x0,'children':[_0x47d81f('div',{'className':_0x2316bb('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x5c3966),'children':_0x1564bb}),_0x47d81f(_0x1a121f(0x1d2),{'className':_0x1a121f(0x1c2),'children':_0x40dec3})]});}return _0x47d81f(_0x1114ec,{'title':_0x5af01a,'placement':_0x46f79f(0x29b),'children':_0xe649de()});}var an=Object[_0x3504c9(0x18a)],ln=(_0x2c4392,_0x4db0c9,_0x150fe9,_0xc665c2)=>{const _0x1b5813=_0x3504c9;for(var _0x2697fd=_0xc665c2>0x1?void 0x0:_0xc665c2?an(_0x4db0c9,_0x150fe9):_0x4db0c9,_0x2b954b=_0x2c4392[_0x1b5813(0x16b)]-0x1,_0x2a6eee;_0x2b954b>=0x0;_0x2b954b--)(_0x2a6eee=_0x2c4392[_0x2b954b])&&(_0x2697fd=_0x2a6eee(_0x2697fd)||_0x2697fd);return _0x2697fd;},M=(_0x2e466d,_0x1e7be5)=>(_0x871e4,_0x169173)=>_0x1e7be5(_0x871e4,_0x169173,_0x2e466d);let O=class extends _0x422753{constructor(_0x1e647e,_0x12a254,_0x2cdebc,_0x41244e){const _0x461660=_0x3504c9;super(),this[_0x461660(0x18b)]=_0x1e647e,this[_0x461660(0x1dc)]=_0x12a254,this[_0x461660(0x1bf)]=_0x2cdebc,this[_0x461660(0x207)]=_0x41244e,this[_0x461660(0x270)](),this[_0x461660(0x1cc)]();}[_0x3504c9(0x270)](){const _0x438bf7=_0x3504c9,_0x45789d=this[_0x438bf7(0x207)][_0x438bf7(0x1b7)](y);_0x45789d!=null&&_0x45789d['showDeveloperTools']&&(this[_0x438bf7(0x1dc)][_0x438bf7(0x1e1)]=!0x1);}[_0x3504c9(0x1cc)](){const _0x24496a=_0x3504c9,_0x507559=this[_0x24496a(0x207)][_0x24496a(0x1b7)](y);(_0x507559==null?void 0x0:_0x507559[_0x24496a(0x1bc)])!==!0x1&&this['disposeWithMe'](this['_uiPartsService'][_0x24496a(0x21a)](_0x4f81ad[_0x24496a(0x298)],()=>{const _0x2cc5c9=_0x24496a;var _0x77a6b8;return _0x3c7794(un({'status$':this[_0x2cc5c9(0x1dc)]['connectionStatus$'],'error$':this[_0x2cc5c9(0x1dc)][_0x2cc5c9(0x24f)],'onConfigure':()=>this[_0x2cc5c9(0x1e4)](),'showClickable':(_0x77a6b8=_0x507559==null?void 0x0:_0x507559[_0x2cc5c9(0x1ad)])!=null?_0x77a6b8:!0x1}),this[_0x2cc5c9(0x18b)]);}));}[_0x3504c9(0x1e4)](){const _0x2a1e20=_0x3504c9;this[_0x2a1e20(0x18b)][_0x2a1e20(0x275)](I)['showConfigPanel']();}};O=ln([M(0x0,_0x22aeb1(_0x3b20df)),M(0x1,_0x22aeb1(_0x2f25e4)),M(0x2,_0x5e5a73),M(0x3,_0x967953)],O);function un(_0x1408a3){const {status$:_0x515444,error$:_0x3cab24,onConfigure:_0x5dc6b1,showClickable:_0x51bdba}=_0x1408a3;return function(){return _0x47d81f(cn,{'status$':_0x515444,'error$':_0x3cab24,'onConfigure':_0x5dc6b1,'showClickable':_0x51bdba});};}function vn(_0x4702fd){const _0x24d80d=_0x3504c9;return{'id':V['id'],'type':_0xd1e96c[_0x24d80d(0x289)],'icon':_0x24d80d(0x17e),'title':_0x24d80d(0x153),'tooltip':_0x24d80d(0x153)};}const dn={[_0x17a6fa[_0x3504c9(0x260)]]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object[_0x3504c9(0x18a)],pn=(_0x292ee6,_0xd306a9,_0x2b02fd,_0x5165b5)=>{const _0x1ad892=_0x3504c9;for(var _0x43840d=_0x5165b5>0x1?void 0x0:_0x5165b5?gn(_0xd306a9,_0x2b02fd):_0xd306a9,_0x3ac4c8=_0x292ee6[_0x1ad892(0x16b)]-0x1,_0x11c381;_0x3ac4c8>=0x0;_0x3ac4c8--)(_0x11c381=_0x292ee6[_0x3ac4c8])&&(_0x43840d=_0x11c381(_0x43840d)||_0x43840d);return _0x43840d;},re=(_0x448f30,_0x577c13)=>(_0x228292,_0x4269ab)=>_0x577c13(_0x228292,_0x4269ab,_0x448f30);let D=class extends _0x422753{constructor(_0x183b51,_0x1e9168){const _0x3a3152=_0x3504c9;super(),this['_commandService']=_0x183b51,this[_0x3a3152(0x1b4)]=_0x1e9168,this[_0x3a3152(0x1e2)](),this['_initializeMenus']();}[_0x3504c9(0x1e2)](){const _0x58217a=_0x3504c9;[V][_0x58217a(0x20d)](_0x5bcae6=>{const _0x3e2b59=_0x58217a;this[_0x3e2b59(0x1a4)](this['_commandService'][_0x3e2b59(0x279)](_0x5bcae6));});}[_0x3504c9(0x171)](){const _0x5f1922=_0x3504c9;this[_0x5f1922(0x1b4)][_0x5f1922(0x1e0)](dn);}};D=pn([re(0x0,_0x4ae9c5),re(0x1,_0x7041bd)],D);const Mn={'mcpStatus':{'disconnected':_0x3504c9(0x1d8),'connecting':_0x3504c9(0x276),'connected':_0x3504c9(0x1f3),'failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':_0x3504c9(0x179),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x3504c9(0x25b),'networkError':_0x3504c9(0x214),'maxRetriesExceeded':_0x3504c9(0x280),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x3504c9(0x162)},'mcpConfig':{'title':_0x3504c9(0x262),'description':_0x3504c9(0x247),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x3504c9(0x192),'apiKeyHint':_0x3504c9(0x195),'enableAuth':_0x3504c9(0x1cf),'enableAuthHint':_0x3504c9(0x164),'connectionInfo':_0x3504c9(0x1a8),'mcpClientConfig':_0x3504c9(0x1a8),'configInstructions':_0x3504c9(0x173),'configStepTitle':_0x3504c9(0x1f2),'configStep1':_0x3504c9(0x24e),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x3504c9(0x235),'sessionId':_0x3504c9(0x1b0),'sessionIdDescription':_0x3504c9(0x161),'authorizationDescription':_0x3504c9(0x287),'configParameters':_0x3504c9(0x237),'maxRetries':_0x3504c9(0x15e),'save':'Save\x20Configuration','saving':_0x3504c9(0x25f),'note1':_0x3504c9(0x258),'note2':_0x3504c9(0x1a0),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x3504c9(0x194),'apiApplyInfo':{'title':_0x3504c9(0x223),'description':_0x3504c9(0x219),'univerAiLabel':_0x3504c9(0x166),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x3504c9(0x165),'apiKeyTooShort':_0x3504c9(0x1f6),'invalidConfig':_0x3504c9(0x210),'invalidApiKey':_0x3504c9(0x198)},'connectionStatus':{'disconnected':_0x3504c9(0x1ab),'connecting':'Connecting...','connected':_0x3504c9(0x1e3),'failed':_0x3504c9(0x176),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x3504c9(0x1ba),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x3504c9(0x24c),'maxRetriesExceeded':_0x3504c9(0x193)}}},An={'mcpStatus':{'disconnected':_0x3504c9(0x284),'connecting':_0x3504c9(0x29d),'connected':'MCP\x20已连接','failed':_0x3504c9(0x159),'retrying':_0x3504c9(0x17a),'unknown':'MCP\x20状态未知','unauthorized':'MCP:\x20未授权','sessionOccupied':_0x3504c9(0x1b2),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x3504c9(0x1bd),'clickToConnect':_0x3504c9(0x220),'clickToConfigure':_0x3504c9(0x269)},'mcpConfig':{'title':_0x3504c9(0x181),'description':_0x3504c9(0x186),'apiKey':_0x3504c9(0x294),'apiKeyPlaceholder':_0x3504c9(0x264),'apiKeyHint':_0x3504c9(0x1c9),'enableAuth':_0x3504c9(0x205),'enableAuthHint':_0x3504c9(0x15d),'connectionInfo':_0x3504c9(0x167),'mcpClientConfig':_0x3504c9(0x167),'configInstructions':_0x3504c9(0x25c),'configStepTitle':'配置步骤:','configStep1':'复制以下\x20JSON\x20配置','configStep2':_0x3504c9(0x27e),'configStep3':_0x3504c9(0x254),'sessionId':_0x3504c9(0x266),'sessionIdDescription':_0x3504c9(0x252),'authorizationDescription':_0x3504c9(0x1a5),'configParameters':_0x3504c9(0x1c0),'maxRetries':_0x3504c9(0x230),'save':_0x3504c9(0x244),'saving':_0x3504c9(0x1c7),'note1':'配置更改将立即生效','note2':_0x3504c9(0x14d),'configSaved':'配置保存成功','configError':_0x3504c9(0x221),'apiApplyInfo':{'title':_0x3504c9(0x197),'description':_0x3504c9(0x1b5),'univerAiLabel':_0x3504c9(0x19a),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x3504c9(0x25d),'invalidConfig':_0x3504c9(0x291),'invalidApiKey':_0x3504c9(0x17b)},'connectionStatus':{'disconnected':'未连接','connecting':'连接中...','connected':'已连接','failed':_0x3504c9(0x16e),'retrying':_0x3504c9(0x21f)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x3504c9(0x226),'networkError':_0x3504c9(0x227),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var fn=Object[_0x3504c9(0x299)],hn=Object[_0x3504c9(0x18a)],Cn=(_0x9850fd,_0x1aeaf1,_0x17b81a)=>_0x1aeaf1 in _0x9850fd?fn(_0x9850fd,_0x1aeaf1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x17b81a}):_0x9850fd[_0x1aeaf1]=_0x17b81a,mn=(_0x211164,_0x24190e,_0x5c2dcf,_0x5639e2)=>{for(var _0x23b883=_0x5639e2>0x1?void 0x0:_0x5639e2?hn(_0x24190e,_0x5c2dcf):_0x24190e,_0x3c225b=_0x211164['length']-0x1,_0x1fddec;_0x3c225b>=0x0;_0x3c225b--)(_0x1fddec=_0x211164[_0x3c225b])&&(_0x23b883=_0x1fddec(_0x23b883)||_0x23b883);return _0x23b883;},P=(_0x9431f7,_0x44b475)=>(_0x34bbfb,_0x10edc1)=>_0x44b475(_0x34bbfb,_0x10edc1,_0x9431f7),_n=(_0xa7cb3d,_0x58e618,_0x26b387)=>Cn(_0xa7cb3d,_0x58e618+'',_0x26b387);let j=class extends _0xe522b5{constructor(_0x22354c=ie,_0x3c7375,_0x2945a6,_0xdc303b,_0x28f16f,_0x13020c){const _0x5c6f0f=_0x3504c9;super(),this['_config']=_0x22354c,this[_0x5c6f0f(0x18b)]=_0x3c7375,this['_configService']=_0x2945a6,this[_0x5c6f0f(0x1bf)]=_0xdc303b,this['_localStorageService']=_0x28f16f,this[_0x5c6f0f(0x26e)]=_0x13020c;const {..._0x237015}=_0x52c909({},ie,this[_0x5c6f0f(0x15f)]);this[_0x5c6f0f(0x207)]['setConfig'](y,_0x237015);}async[_0x3504c9(0x1af)](){const _0x5597f5=_0x3504c9,_0x1a30ea=[[O],[I],[D]];this['_injector'][_0x5597f5(0x1d6)](_0x274cf1)||_0x1a30ea[_0x5597f5(0x23f)]([_0x274cf1,{'useClass':_0x180b24}]),_0x1a30ea[_0x5597f5(0x20d)](_0x4c67cd=>this[_0x5597f5(0x18b)][_0x5597f5(0x1ea)](_0x4c67cd)),this[_0x5597f5(0x18b)]['get'](O),this[_0x5597f5(0x18b)][_0x5597f5(0x275)](I),this[_0x5597f5(0x18b)][_0x5597f5(0x275)](D);}};_n(j,'pluginName','MCP_UI_PLUGIN'),j=mn([_0x3893d1(_0x1a183c),P(0x1,_0x22aeb1(_0x3b20df)),P(0x2,_0x967953),P(0x3,_0x5e5a73),P(0x4,_0x493214),P(0x5,_0x22aeb1(_0x500816))],j);export{nn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,cn as MCPStatusDisplay,D as MCPUIMenuController,V as OpenMCPConfigPanelCommand,j as UniverMCPUIPlugin,Mn as enUS,An as zhCN};
|
|
1
|
+
const _0x3c9208=_0x2f9c;(function(_0xa6e3c1,_0x14df49){const _0x1d84f2=_0x2f9c,_0x31d45b=_0xa6e3c1();while(!![]){try{const _0x1fcbe4=parseInt(_0x1d84f2(0x198))/0x1*(-parseInt(_0x1d84f2(0x1f8))/0x2)+parseInt(_0x1d84f2(0x2b8))/0x3*(-parseInt(_0x1d84f2(0x26c))/0x4)+parseInt(_0x1d84f2(0x1a9))/0x5+-parseInt(_0x1d84f2(0x26e))/0x6+parseInt(_0x1d84f2(0x1ca))/0x7+parseInt(_0x1d84f2(0x1f0))/0x8+parseInt(_0x1d84f2(0x260))/0x9;if(_0x1fcbe4===_0x14df49)break;else _0x31d45b['push'](_0x31d45b['shift']());}catch(_0x861f11){_0x31d45b['push'](_0x31d45b['shift']());}}}(_0x160a,0x731da));var Pe=Object['defineProperty'],Ee=(_0x49049c,_0x5e78c3,_0x131c0a)=>_0x5e78c3 in _0x49049c?Pe(_0x49049c,_0x5e78c3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x131c0a}):_0x49049c[_0x5e78c3]=_0x131c0a,x=(_0x4a6a8d,_0xf699f6,_0x47b963)=>Ee(_0x4a6a8d,typeof _0xf699f6!=_0x3c9208(0x2be)?_0xf699f6+'':_0xf699f6,_0x47b963);import{LocaleService as _0x53bf0c,Inject as _0x4bcb75,Injector as _0x57274b,IConfigService as _0x575615,ILocalStorageService as _0x9e998,ILogService as _0xf54f67,Disposable as _0x5cea02,CommandType as _0x1f1a15,ICommandService as _0x3900c0,DependentOn as _0x5862b0,Plugin as _0x5d41e1,merge as _0x211ca7}from'@univerjs/core';import{jsxs as _0x18c759,jsx as _0x462323}from'react/jsx-runtime';function _0x160a(){const _0x492995=['启用身份验证','重启您的\x20MCP\x20客户端以使配置生效','mcpConfig.connectionStatus.failed','Copy\x20the\x20JSON\x20configuration\x20below','_initializeMenus','mcpConfig.configStep3','mcpStatus.clickToConfigure','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','univer-mr-2\x20univer-flex\x20univer-text-xl','Enable\x20authentication\x20for\x20secure\x20connections','mcpStatus.disconnected','error','_initStatusComponent','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','mcpConfig.configStep2','API\x20密钥无效,请检查密钥是否正确','mcp-ui.command.openConfigPanel','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','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','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Disconnected','_localeService','univer-text-green-500','1087792KcLYau','url(#$1','_createConfigPanelComponent','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','Connecting...','removeItem','MCP:\x20网络错误','univer-flex-1','82KMibzc','univer-space-y-3','univer-space-y-2','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','mcpStatus.sessionOccupied','MCP\x20配置','CheckMarkIcon','defs','mcpConfig.saving','Failed\x20to\x20save\x20configuration','svg','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','mcpStatus.connecting','mcpStatus.unauthorized','API\x20key\x20is\x20required','div','Univer\x20AI\x20控制台','BUTTON','subscribe','MCP\x20Configuration','DISCONNECTED','What\x20is\x20API\x20Key?','MCP:\x20超出最大重试次数','mcpStatus.networkError','API\x20密钥不能为空','Univer\x20AI\x20Console','push','OTHERS','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','MCP\x20Disconnected','univer-bg-blue-500','toString','currentColor','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','univer-size-2\x20univer-rounded-full','mcpConfig.note1','mcpConfig.configStep1','mcpConfig.configParameters','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','show','_commandService','mcpConfig.validation.invalidApiKey','NONE','tag','displayName','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','_logService','HelpIcon','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','_validateConfig','MenuIcon','MAX_RETRIES_EXCEEDED','translate(.97)','string','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','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','white','includes','Invalid\x20configuration','mcp.apiKey','mcpConfig.connectionError.sessionOccupied','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','url(#on-line-icon_clip0_910_349)','none','HEADER_MENU','trim','MCP:\x20会话\x20ID\x20已被占用','UNAUTHORIZED','_handleConfigure','请输入您的\x20API\x20密钥','off-line-icon_clip0_910_343','mcpConfig.note2','_localStorageService','0\x200\x2017\x2016','mcpConfig.connectionError.networkError','保存配置','univer-text-xs\x20univer-text-gray-600','use','mcpConfig.description','univer-min-w-0\x20univer-flex-1','univer-space-y-4','errorMessage','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-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','0\x200\x2016\x2016','_handleConfigSave','on-line-icon_clip0_910_349','http://www.w3.org/2000/svg','univer-bg-gray-500','univer-text-blue-600','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','mcpConfig.connectionStatus.disconnected','Configuration\x20Parameters:','check-mark-icon','https://console.univer.plus','path','NETWORK_ERROR','connectionStatus$','idSuffix','mcpConfig.connectionStatus.connected','replace','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','7747677FWhiBo','http','entries','defIds','round','mcpConfig.apiKeyPlaceholder','最大重试次数','_apiKey$','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','colorChannel1','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','COMMAND','276OsrEre','mcpConfig.apiApplyInfo.getStarted','3483312IwZSpo','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','getOwnPropertyDescriptor','fill','univer-flex\x20univer-items-center\x20univer-gap-2','API\x20Key','getConfig','Configuration\x20saved\x20successfully','univer-shrink-0\x20univer-text-red-500','mcpStatus.maxRetriesExceeded','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','SESSION_ID_OCCUPIED','Enter\x20your\x20API\x20key','univer-text-xs\x20univer-text-gray-500','Success','children','保存中...','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','MCP\x20Unknown\x20Status','CONNECTED','univer-flex\x20univer-items-center','_loadStoredApiKey','点击连接\x20MCP','disposeWithMe','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','univer-text-red-500','Connected','mcpConfig.connectionInfo','mcp-config-dialog','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','text','mcpConfig.title','__setCustomHeaders','label','mcpConfig.apiKeyHint','配置\x20MCP\x20使用\x20AI\x20操作电子表格','超出最大重试次数,请稍后再试','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','MCP:\x20Session\x20ID\x20Occupied','MCP\x20连接中...','Error','univer-flex\x20univer-items-start\x20univer-gap-3','将以下配置添加到您的\x20MCP\x20客户端设置中:','mcpServerUrl','get','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','MCP\x20Connection\x20Failed','mcpConfig.apiApplyInfo.description','mcpStatus.unknown','univer-flex\x20univer-items-start\x20univer-gap-2','RETRYING','setConfig','univer-flex\x20univer-items-center\x20univer-gap-3','https://console.univer.ai','Saving...','_uiPartsService','univer-bg-red-500','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','API\x20密钥','配置保存成功','showConfigPanel','univer-bg-green-500','value','_configService','mcpConfig.configStepTitle','subscribeConfigValue$','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','_menuManagerService','registerComponent','substring','Authorization:','MCP\x20已连接','38673HTAPxn','mcpConfig.sessionIdDescription','on-line-icon','CONNECTING','Save\x20Configuration','_messageService','symbol','xlink:href','配置更改将立即生效','univer-text-yellow-500','Click\x20to\x20connect\x20MCP','apiKey','univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','_injector','univer-text-sm\x20univer-font-medium','MCPConfigPanel','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','您的\x20API\x20密钥安全存储在本地存储中','univer-font-medium','_componentManager','off-line-icon','MCP:\x20Network\x20Error','mcpStatus.retrying','_config','univer.ai','button','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','univerjs-icon\x20univerjs-icon-','网络连接错误,请检查您的网络连接','mcpConfig.validation.invalidConfig','evenodd','M0\x200H16V16H0z','sessionId$','mcpConfig.connectionError.unauthorized','MCP\x20客户端配置','mask','带有\x20Bearer\x20前缀的\x20API\x20密钥。','showStatus','连接中...','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','assign','mcpStatus.failed','MCP\x20Connecting...','什么是\x20API\x20密钥?','Get\x20your\x20API\x20key\x20in\x20seconds','Click\x20to\x20configure\x20MCP','pre','UniverIcon','CloseIcon','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','enableAutoConnect','权限验证失败,请检查您的\x20API\x20密钥','3424CPCvol','MCP:\x20Unauthorized','_initializeCommands','_initConfigSync','mcpStatus.connected','mcpConfig.save','_loading$','forEach','getCurrentConfig','_initAutoConnect','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','https://mcp.univer.ai/mcp/?univer_session_id=','_mcpCoreConfig$','Enable\x20Authentication','span','Retrying...','Configuration\x20Notes:','1784600JPdusK','random','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','FAILED','MCP\x20Client\x20Configuration','_config$','attrs','您的\x20API\x20密钥将在此浏览器中本地存储','univer-text-gray-500','has','clipPath','close-icon','next','M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z','isValid','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','\x20-\x20','_mcpConnectionController','MCP_UI_PLUGIN','showDeveloperTools','mcpConfig.configError','length','url(#off-line-icon_clip0_910_343)','_connectionController','会话ID','MCP\x20Connected','getItem','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','mcpConfig.apiApplyInfo.title','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','map','pluginName','connectionError$','5097274gGAKWd','_dialogService','<SESSION_ID>','registerCommand','1em','MCP\x20已断开','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','univer.plus','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','Bearer\x20','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20连接失败','close','OnLineIcon','defineProperty'];_0x160a=function(){return _0x492995;};return _0x160a();}import{MCPConnectionStatus as _0xff81e2,MCPConnectionError as _0x23ba44,MCPConnectionController as _0x14f893,MCP_PLUGIN_CONFIG_KEY as _0x1c72e8,UniverMCPPlugin as _0x245195}from'@univerjs-pro/mcp';import{clsx as _0x5b246f,Input as _0x2186ab,Button as _0x3af2d5,MessageType as _0x6e385b,Tooltip as _0x39918b}from'@univerjs/design';import{useDependency as _0x150436,useObservable as _0x3a8338,IUIPartsService as _0x549fee,IDialogService as _0x4ac42f,IMessageService as _0x419c17,ComponentManager as _0x135d71,connectInjector as _0x5dfb6b,BuiltInUIPart as _0x538232,MenuItemType as _0x247193,RibbonStartGroup as _0xa097e0,IMenuManagerService as _0x54a9fe}from'@univerjs/ui';import{BehaviorSubject as _0x314270}from'rxjs';import{useRef as _0x5d9ae4,createElement as _0x47a95e,forwardRef as _0x192872,useState as _0x2aa459,useCallback as _0x3c10b4}from'react';import{ISocketService as _0x10fe15,WebSocketService as _0x451010}from'@univerjs/network';function b({ref:_0x318aa4,..._0x1361ac}){const _0x447de0=_0x3c9208,{icon:_0x28b8f8,id:_0x1acf63,className:_0x1928f8,extend:_0x9f014c,..._0x53e03d}=_0x1361ac,_0x2e4540=(_0x447de0(0x17f)+_0x1acf63+'\x20'+(_0x1928f8||''))['trim'](),_0x2bfc94=_0x5d9ae4('_'+We());return ae(_0x28b8f8,''+_0x1acf63,{'defIds':_0x28b8f8[_0x447de0(0x263)],'idSuffix':_0x2bfc94['current']},{'ref':_0x318aa4,'className':_0x2e4540,..._0x53e03d},_0x9f014c);}function ae(_0x2b3cb7,_0x424f09,_0x239ba3,_0x48c03e,_0x41fed3){const _0x1bf7e6=_0x3c9208;return _0x47a95e(_0x2b3cb7[_0x1bf7e6(0x223)],{'key':_0x424f09,...Ye(_0x2b3cb7,_0x239ba3,_0x41fed3),..._0x48c03e},(Ze(_0x2b3cb7,_0x239ba3)[_0x1bf7e6(0x27d)]||[])['map']((_0x173c73,_0x3a7d50)=>ae(_0x173c73,_0x424f09+'-'+_0x2b3cb7[_0x1bf7e6(0x223)]+'-'+_0x3a7d50,_0x239ba3,void 0x0,_0x41fed3)));}function Ye(_0x5c2b21,_0x499a2b,_0x21ee4b){const _0x2b6256=_0x3c9208,_0xee4155={..._0x5c2b21['attrs']};_0x21ee4b!=null&&_0x21ee4b[_0x2b6256(0x269)]&&_0xee4155[_0x2b6256(0x271)]===_0x2b6256(0x269)&&(_0xee4155['fill']=_0x21ee4b[_0x2b6256(0x269)]),_0x5c2b21[_0x2b6256(0x223)]===_0x2b6256(0x187)&&_0xee4155['id']&&(_0xee4155['id']=_0xee4155['id']+_0x499a2b[_0x2b6256(0x25b)]),Object['entries'](_0xee4155)[_0x2b6256(0x19f)](([_0x4086a4,_0x5ef665])=>{const _0x4651ba=_0x2b6256;_0x4086a4===_0x4651ba(0x187)&&typeof _0x5ef665=='string'&&(_0xee4155[_0x4086a4]=_0x5ef665[_0x4651ba(0x25d)](/url\(#(.*)\)/,_0x4651ba(0x1f1)+_0x499a2b[_0x4651ba(0x25b)]+')'));});const {defIds:_0x20f9ce}=_0x499a2b;return!_0x20f9ce||_0x20f9ce[_0x2b6256(0x1be)]===0x0||(_0x5c2b21['tag']===_0x2b6256(0x246)&&_0xee4155['xlink:href']&&(_0xee4155[_0x2b6256(0x2bf)]=_0xee4155[_0x2b6256(0x2bf)]+_0x499a2b[_0x2b6256(0x25b)]),Object[_0x2b6256(0x262)](_0xee4155)[_0x2b6256(0x19f)](([_0x149639,_0x38a4fc])=>{const _0x5ee67c=_0x2b6256;typeof _0x38a4fc==_0x5ee67c(0x22e)&&(_0xee4155[_0x149639]=_0x38a4fc['replace'](/url\(#(.*)\)/,'url(#$1'+_0x499a2b['idSuffix']+')'));})),_0xee4155;}function Ze(_0x415b63,_0x71377){const _0x4254d4=_0x3c9208;var _0x27fc12;const {defIds:_0x37344e}=_0x71377;return!_0x37344e||_0x37344e[_0x4254d4(0x1be)]===0x0?_0x415b63:_0x415b63['tag']===_0x4254d4(0x1ff)&&((_0x27fc12=_0x415b63['children'])!=null&&_0x27fc12[_0x4254d4(0x1be)])?{..._0x415b63,'children':_0x415b63[_0x4254d4(0x27d)][_0x4254d4(0x1c7)](_0x16892f=>typeof _0x16892f[_0x4254d4(0x1af)]['id']==_0x4254d4(0x22e)&&_0x37344e&&_0x37344e[_0x4254d4(0x232)](_0x16892f[_0x4254d4(0x1af)]['id'])?{..._0x16892f,'attrs':{..._0x16892f[_0x4254d4(0x1af)],'id':_0x16892f['attrs']['id']+_0x71377[_0x4254d4(0x25b)]}}:_0x16892f)}:_0x415b63;}function We(){const _0x35e869=_0x3c9208;return Math[_0x35e869(0x1aa)]()[_0x35e869(0x217)](0x24)[_0x35e869(0x2b5)](0x2,0x8);}b[_0x3c9208(0x224)]=_0x3c9208(0x193);const qe={'tag':_0x3c9208(0x202),'attrs':{'xmlns':_0x3c9208(0x250),'fill':_0x3c9208(0x238),'viewBox':_0x3c9208(0x24d),'width':_0x3c9208(0x1ce),'height':'1em'},'children':[{'tag':_0x3c9208(0x258),'attrs':{'fill':_0x3c9208(0x218),'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':_0x3c9208(0x182),'clipRule':'evenodd'}}]},le=_0x192872(function(_0x26e006,_0x22b598){const _0x34e4bc=_0x3c9208;return _0x47a95e(b,Object[_0x34e4bc(0x18c)]({},_0x26e006,{'id':_0x34e4bc(0x256),'ref':_0x22b598,'icon':qe}));});le['displayName']=_0x3c9208(0x1fe);const Xe={'tag':_0x3c9208(0x202),'attrs':{'xmlns':_0x3c9208(0x250),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x3c9208(0x1ce),'height':_0x3c9208(0x1ce)},'children':[{'tag':_0x3c9208(0x258),'attrs':{'fill':_0x3c9208(0x218),'d':_0x3c9208(0x1b6)}}]},ue=_0x192872(function(_0x253d73,_0x4878e0){const _0x2d22d9=_0x3c9208;return _0x47a95e(b,Object[_0x2d22d9(0x18c)]({},_0x253d73,{'id':_0x2d22d9(0x1b4),'ref':_0x4878e0,'icon':Xe}));});ue[_0x3c9208(0x224)]=_0x3c9208(0x194);const Je={'tag':_0x3c9208(0x202),'attrs':{'xmlns':_0x3c9208(0x250),'fill':_0x3c9208(0x238),'viewBox':_0x3c9208(0x24d),'width':_0x3c9208(0x1ce),'height':_0x3c9208(0x1ce)},'children':[{'tag':_0x3c9208(0x258),'attrs':{'fill':'currentColor','d':_0x3c9208(0x1a2)}},{'tag':'path','attrs':{'fill':'currentColor','d':_0x3c9208(0x1eb)}},{'tag':_0x3c9208(0x258),'attrs':{'fill':'currentColor','d':_0x3c9208(0x24b),'fillRule':_0x3c9208(0x182),'clipRule':_0x3c9208(0x182)}}]},ve=_0x192872(function(_0x4b53e2,_0x522c22){return _0x47a95e(b,Object['assign']({},_0x4b53e2,{'id':'help-icon','ref':_0x522c22,'icon':Je}));});ve[_0x3c9208(0x224)]=_0x3c9208(0x227);const Qe={'tag':_0x3c9208(0x202),'attrs':{'xmlns':_0x3c9208(0x250),'fill':_0x3c9208(0x238),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x3c9208(0x1ce)},'children':[{'tag':'g','attrs':{'clipPath':_0x3c9208(0x1bf)},'children':[{'tag':'path','attrs':{'stroke':_0x3c9208(0x218),'d':_0x3c9208(0x1ab),'strokeLinecap':_0x3c9208(0x264),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x3c9208(0x1ff),'attrs':{},'children':[{'tag':_0x3c9208(0x1b3),'attrs':{'id':_0x3c9208(0x23f)},'children':[{'tag':_0x3c9208(0x258),'attrs':{'fill':_0x3c9208(0x231),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x3c9208(0x23f)]},de=_0x192872(function(_0x1ff062,_0x3df4a6){const _0xe660ae=_0x3c9208;return _0x47a95e(b,Object['assign']({},_0x1ff062,{'id':_0xe660ae(0x178),'ref':_0x3df4a6,'icon':Qe}));});de[_0x3c9208(0x224)]='OffLineIcon';const en={'tag':_0x3c9208(0x202),'attrs':{'xmlns':_0x3c9208(0x250),'fill':'none','viewBox':_0x3c9208(0x242),'width':'1em','height':_0x3c9208(0x1ce)},'children':[{'tag':'g','attrs':{'clipPath':_0x3c9208(0x237)},'children':[{'tag':_0x3c9208(0x258),'attrs':{'stroke':'currentColor','d':_0x3c9208(0x22f),'strokeLinecap':_0x3c9208(0x264),'strokeLinejoin':_0x3c9208(0x264),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x3c9208(0x1b3),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x3c9208(0x258),'attrs':{'fill':_0x3c9208(0x231),'d':_0x3c9208(0x183),'transform':_0x3c9208(0x22d)}}]}]}],'defIds':[_0x3c9208(0x24f)]},ge=_0x192872(function(_0x123242,_0xaf2b26){const _0x550cd1=_0x3c9208;return _0x47a95e(b,Object['assign']({},_0x123242,{'id':_0x550cd1(0x2ba),'ref':_0xaf2b26,'icon':en}));});ge[_0x3c9208(0x224)]=_0x3c9208(0x1d7);function nn(_0x4104e8){const _0x34f9f9=_0x3c9208;var _0x1462e4,_0x33d4f8;const {mcpCoreConfig:_0x4cab80,onSave:_0x273255,loading:_0x347ad0=!0x1,config:_0x2ebe3f,connectionStatus$:_0x2edf61,connectionError$:_0x4f07dc,currentApiKey$:_0x2711fb,currentSessionId$:_0x48f859}=_0x4104e8,_0x46c3f1=_0x150436(_0x53bf0c),_0x57012e=_0x3a8338(_0x2edf61,_0xff81e2[_0x34f9f9(0x20c)]),_0x478594=_0x3a8338(_0x4f07dc,_0x23ba44[_0x34f9f9(0x222)]),_0x43c5c6=_0x3a8338(_0x48f859,''),_0x452b15=_0x3a8338(_0x2711fb,''),[_0x32d163,_0x467e6d]=_0x2aa459(_0x452b15||''),_0x5bbad0=!0x0,_0x549b25=_0x2ebe3f['showDeveloperTools']&&_0x4cab80[_0x34f9f9(0x29a)]&&(_0x4cab80['mcpServerUrl'][_0x34f9f9(0x232)](_0x34f9f9(0x1d1))||_0x4cab80[_0x34f9f9(0x29a)][_0x34f9f9(0x232)](_0x34f9f9(0x17c))),_0x21b88d=(_0x1462e4=_0x4cab80[_0x34f9f9(0x29a)])==null?void 0x0:_0x1462e4[_0x34f9f9(0x232)]('univer.plus'),_0x2cfdf5=(_0x33d4f8=_0x4cab80[_0x34f9f9(0x29a)])==null?void 0x0:_0x33d4f8[_0x34f9f9(0x232)](_0x34f9f9(0x17c)),_0x3bba40=_0x21b88d?_0x34f9f9(0x257):_0x34f9f9(0x2a4),_0x19bf87=_0x2ebe3f[_0x34f9f9(0x1bc)]&&(_0x21b88d||_0x2cfdf5),[_0x532342,_0x532437]=_0x2aa459(!_0x32d163['trim']()),_0x33febd=(_0x5b4f35,_0x2163d7)=>{const _0x1fefa3=_0x34f9f9;if(_0x2163d7===_0x23ba44['UNAUTHORIZED'])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x5b4f35){case _0xff81e2['CONNECTED']:return _0x1fefa3(0x225);case _0xff81e2[_0x1fefa3(0x2bb)]:case _0xff81e2[_0x1fefa3(0x2a1)]:return _0x1fefa3(0x27f);case _0xff81e2[_0x1fefa3(0x1ac)]:return _0x1fefa3(0x214);default:return _0x1fefa3(0x2a8);}},_0x5eed14=(_0x5aa91a,_0x15e727)=>{const _0x393245=_0x34f9f9;if(_0x15e727===_0x23ba44[_0x393245(0x23c)])return _0x393245(0x2a7);switch(_0x5aa91a){case _0xff81e2[_0x393245(0x281)]:return _0x393245(0x2ad);case _0xff81e2[_0x393245(0x2bb)]:case _0xff81e2['RETRYING']:return _0x393245(0x216);case _0xff81e2[_0x393245(0x1ac)]:return'univer-bg-red-500';default:return _0x393245(0x251);}},_0x507aca=_0x18f379=>{const _0x127201=_0x34f9f9;switch(_0x18f379){case _0xff81e2[_0x127201(0x281)]:return _0x46c3f1['t'](_0x127201(0x25c));case _0xff81e2[_0x127201(0x2bb)]:return _0x46c3f1['t']('mcpConfig.connectionStatus.connecting');case _0xff81e2['FAILED']:return _0x46c3f1['t'](_0x127201(0x1db));case _0xff81e2[_0x127201(0x2a1)]:return _0x46c3f1['t']('mcpConfig.connectionStatus.retrying');default:return _0x46c3f1['t'](_0x127201(0x254));}},_0x4a7515=_0x37df40=>{const _0x1ac2cb=_0x34f9f9;switch(_0x37df40){case _0x23ba44[_0x1ac2cb(0x23c)]:return _0x46c3f1['t'](_0x1ac2cb(0x185));case _0x23ba44[_0x1ac2cb(0x279)]:return _0x46c3f1['t'](_0x1ac2cb(0x235));case _0x23ba44[_0x1ac2cb(0x259)]:return _0x46c3f1['t'](_0x1ac2cb(0x243));case _0x23ba44[_0x1ac2cb(0x22c)]:return _0x46c3f1['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x473305=_0x3c10b4(()=>{const _0x38131b=_0x34f9f9,_0x5f10db={..._0x4cab80,'apiKey':_0x32d163[_0x38131b(0x23a)](),'enableAuth':_0x5bbad0};_0x273255(_0x5f10db);},[_0x4cab80,_0x32d163,_0x5bbad0,_0x273255]),_0x4534e6=_0x32d163[_0x34f9f9(0x23a)]()[_0x34f9f9(0x1be)]>0x0;return _0x18c759(_0x34f9f9(0x207),{'className':_0x34f9f9(0x1c6),'children':[_0x462323(_0x34f9f9(0x207),{'className':_0x34f9f9(0x203),'children':_0x18c759('div',{'className':_0x34f9f9(0x2a3),'children':[_0x462323(_0x34f9f9(0x207),{'className':_0x34f9f9(0x219),'children':_0x462323(_0x34f9f9(0x1a6),{'className':'univer-text-white','children':'⚙'})}),_0x462323(_0x34f9f9(0x207),{'children':_0x462323('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x46c3f1['t'](_0x34f9f9(0x247))})})]})}),_0x18c759(_0x34f9f9(0x207),{'className':_0x34f9f9(0x1f3),'children':[_0x462323(_0x34f9f9(0x207),{'className':_0x5b246f(_0x34f9f9(0x26f),_0x33febd(_0x57012e,_0x478594)),'children':_0x18c759(_0x34f9f9(0x207),{'className':_0x34f9f9(0x272),'children':[_0x462323(_0x34f9f9(0x207),{'className':_0x5b246f(_0x34f9f9(0x21a),_0x5eed14(_0x57012e,_0x478594))}),_0x462323(_0x34f9f9(0x1a6),{'className':_0x34f9f9(0x172),'children':_0x507aca(_0x57012e)})]})}),_0x478594!==_0x23ba44[_0x34f9f9(0x222)]&&(_0x57012e===_0xff81e2[_0x34f9f9(0x1ac)]||_0x478594===_0x23ba44[_0x34f9f9(0x23c)])&&_0x462323(_0x34f9f9(0x207),{'className':_0x34f9f9(0x228),'children':_0x18c759(_0x34f9f9(0x207),{'className':_0x34f9f9(0x2a0),'children':[_0x462323(_0x34f9f9(0x1a6),{'className':_0x34f9f9(0x276),'children':'⚠️'}),_0x462323('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x4a7515(_0x478594)})]})})]}),_0x462323(_0x34f9f9(0x207),{'className':_0x34f9f9(0x21e),'children':_0x18c759(_0x34f9f9(0x207),{'className':'univer-space-y-5','children':[_0x18c759(_0x34f9f9(0x207),{'className':'univer-space-y-2','children':[_0x18c759(_0x34f9f9(0x290),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0x462323(_0x34f9f9(0x1a6),{'children':'🔑'}),'\x20',_0x46c3f1['t']('mcpConfig.apiKey'),_0x462323(_0x34f9f9(0x1a6),{'className':'univer-text-red-500','children':'*'}),_0x549b25&&_0x462323('a',{'className':_0x34f9f9(0x170),'title':_0x46c3f1['t'](_0x34f9f9(0x1c5)),'role':_0x34f9f9(0x17d),'onClick':()=>_0x532437(!0x0),'children':_0x462323(ve,{})})]}),_0x462323(_0x2186ab,{'type':_0x34f9f9(0x28d),'placeholder':_0x46c3f1['t'](_0x34f9f9(0x265)),'value':_0x32d163,'disabled':_0x347ad0,'autoComplete':'off','onChange':_0x467e6d}),_0x462323('p',{'className':_0x34f9f9(0x27b),'children':_0x46c3f1['t'](_0x34f9f9(0x291))})]}),_0x549b25&&_0x532342&&_0x18c759('div',{'className':_0x34f9f9(0x24c),'children':[_0x462323('a',{'className':_0x34f9f9(0x1e0),'role':_0x34f9f9(0x17d),'onClick':()=>_0x532437(!0x1),'children':_0x462323(ue,{'className':'univer-size-4'})}),_0x18c759('div',{'className':_0x34f9f9(0x268),'children':[_0x462323(_0x34f9f9(0x207),{'className':_0x34f9f9(0x28c),'children':_0x462323(_0x34f9f9(0x1a6),{'className':_0x34f9f9(0x252),'children':'🚀'})}),_0x18c759(_0x34f9f9(0x207),{'className':_0x34f9f9(0x1f7),'children':[_0x462323('h4',{'className':_0x34f9f9(0x253),'children':_0x46c3f1['t'](_0x34f9f9(0x1c5))}),_0x462323('p',{'className':_0x34f9f9(0x17e),'children':_0x46c3f1['t'](_0x34f9f9(0x29e))}),_0x462323(_0x34f9f9(0x207),{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x19bf87&&_0x18c759('a',{'className':'univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','href':_0x3bba40,'target':'_blank','rel':'noopener\x20noreferrer','children':[_0x462323(_0x34f9f9(0x1a6),{'children':'🤖'}),_0x46c3f1['t']('mcpConfig.apiApplyInfo.univerAiLabel'),_0x462323(_0x34f9f9(0x1a6),{'className':'univer-text-gray-400','children':'↗'})]})}),_0x18c759(_0x34f9f9(0x207),{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x46c3f1['t'](_0x34f9f9(0x26d))]})]})]})]}),_0x2ebe3f[_0x34f9f9(0x1bc)]&&_0x18c759(_0x34f9f9(0x207),{'className':_0x34f9f9(0x286),'children':[_0x18c759('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[_0x462323(_0x34f9f9(0x1a6),{'children':'🔗'}),'\x20',_0x46c3f1['t'](_0x34f9f9(0x28a))]}),_0x18c759('div',{'className':_0x34f9f9(0x249),'children':[_0x18c759('div',{'className':_0x34f9f9(0x1f9),'children':[_0x462323('p',{'className':_0x34f9f9(0x245),'children':_0x46c3f1['t']('mcpConfig.configInstructions')}),_0x18c759(_0x34f9f9(0x207),{'className':_0x34f9f9(0x1fa),'children':[_0x462323(_0x34f9f9(0x207),{'className':_0x34f9f9(0x2b2),'children':_0x46c3f1['t'](_0x34f9f9(0x2b0))}),_0x18c759('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[_0x18c759('div',{'className':_0x34f9f9(0x272),'children':[_0x462323(_0x34f9f9(0x1a6),{'className':_0x34f9f9(0x1e6),'children':'1'}),_0x46c3f1['t'](_0x34f9f9(0x21c))]}),_0x18c759('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x462323('span',{'className':_0x34f9f9(0x1e6),'children':'2'}),_0x46c3f1['t'](_0x34f9f9(0x1e7))]}),_0x18c759(_0x34f9f9(0x207),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x462323(_0x34f9f9(0x1a6),{'className':_0x34f9f9(0x1e6),'children':'3'}),_0x46c3f1['t'](_0x34f9f9(0x1de))]})]})]})]}),_0x18c759('div',{'className':_0x34f9f9(0x1fa),'children':[_0x462323(_0x34f9f9(0x207),{'className':_0x34f9f9(0x2b2),'children':_0x34f9f9(0x20b)}),_0x462323(_0x34f9f9(0x207),{'className':_0x34f9f9(0x1b8),'children':_0x462323(_0x34f9f9(0x192),{'className':_0x34f9f9(0x1ea),'children':JSON['stringify']({'mcpServers':{'univer':{'url':_0x34f9f9(0x1a3)+(_0x43c5c6||_0x34f9f9(0x1cc)),'type':_0x34f9f9(0x261),'headers':{'Authorization':_0x34f9f9(0x1d3)+(_0x32d163||'<API_KEY>')}}}},null,0x2)})})]}),_0x18c759('div',{'className':_0x34f9f9(0x1f9),'children':[_0x462323(_0x34f9f9(0x207),{'className':_0x34f9f9(0x2b2),'children':_0x46c3f1['t'](_0x34f9f9(0x21d))}),_0x18c759('div',{'className':_0x34f9f9(0x1fa),'children':[_0x18c759(_0x34f9f9(0x207),{'className':_0x34f9f9(0x298),'children':[_0x462323(_0x34f9f9(0x207),{'className':_0x34f9f9(0x25f)}),_0x18c759('div',{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x462323('div',{'className':_0x34f9f9(0x229),'children':'univer_session_id:'}),_0x462323('div',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x46c3f1['t'](_0x34f9f9(0x2b9))})]})]}),_0x18c759(_0x34f9f9(0x207),{'className':_0x34f9f9(0x298),'children':[_0x462323(_0x34f9f9(0x207),{'className':_0x34f9f9(0x25f)}),_0x18c759('div',{'className':_0x34f9f9(0x248),'children':[_0x462323(_0x34f9f9(0x207),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x34f9f9(0x2b6)}),_0x462323(_0x34f9f9(0x207),{'className':_0x34f9f9(0x27b),'children':_0x46c3f1['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),_0x462323(_0x3af2d5,{'onClick':_0x473305,'disabled':!_0x4534e6||_0x347ad0,'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':_0x347ad0?_0x18c759(_0x34f9f9(0x1a6),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x462323(_0x34f9f9(0x1a6),{'children':'⟲'}),_0x46c3f1['t'](_0x34f9f9(0x200))]}):_0x18c759('span',{'className':_0x34f9f9(0x272),'children':[_0x462323(le,{}),_0x46c3f1['t'](_0x34f9f9(0x19d))]})}),_0x462323(_0x34f9f9(0x207),{'className':_0x34f9f9(0x294),'children':_0x18c759('div',{'className':'univer-flex\x20univer-gap-3','children':[_0x462323(_0x34f9f9(0x1a6),{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),_0x18c759(_0x34f9f9(0x207),{'className':_0x34f9f9(0x1d2),'children':[_0x462323(_0x34f9f9(0x207),{'className':_0x34f9f9(0x176),'children':_0x34f9f9(0x1a8)}),_0x18c759(_0x34f9f9(0x207),{'children':['•',_0x46c3f1['t'](_0x34f9f9(0x21b))]}),_0x18c759('div',{'children':['•',_0x46c3f1['t'](_0x34f9f9(0x240))]})]})]})})]})})]});}const y='mcp-ui.config',ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object[_0x3c9208(0x270)],tn=(_0x21ec20,_0x4c4a53,_0x52230c,_0x1795c1)=>{const _0x597bb3=_0x3c9208;for(var _0x587d30=_0x1795c1>0x1?void 0x0:_0x1795c1?rn(_0x4c4a53,_0x52230c):_0x4c4a53,_0x55e87a=_0x21ec20[_0x597bb3(0x1be)]-0x1,_0x247656;_0x55e87a>=0x0;_0x55e87a--)(_0x247656=_0x21ec20[_0x55e87a])&&(_0x587d30=_0x247656(_0x587d30)||_0x587d30);return _0x587d30;},d=(_0x4102ae,_0xce7d00)=>(_0x555a80,_0x2c8fd1)=>_0xce7d00(_0x555a80,_0x2c8fd1,_0x4102ae);const U=_0x3c9208(0x234),L=_0x3c9208(0x28b);let I=class extends _0x5cea02{constructor(_0x1fd1ee,_0x435ed2,_0x10f658,_0x521257,_0x5cad00,_0x327fc2,_0x3b4d3e,_0x322acd,_0x192a16,_0x177abe){const _0x705b77=_0x3c9208;super(),x(this,_0x705b77(0x19e),new _0x314270(!0x1)),x(this,_0x705b77(0x1a4),new _0x314270({})),x(this,_0x705b77(0x1ae),new _0x314270({})),x(this,_0x705b77(0x267),new _0x314270('')),x(this,_0x705b77(0x24e),async _0x2ee118=>{const _0x22a8f2=_0x705b77;var _0x4a72d4,_0x26f79a;this[_0x22a8f2(0x19e)]['next'](!0x0);try{const _0x3e1656=await this[_0x22a8f2(0x22a)](_0x2ee118);if(!_0x3e1656[_0x22a8f2(0x1b7)]){this['_messageService'][_0x22a8f2(0x21f)]({'type':_0x6e385b[_0x22a8f2(0x297)],'content':_0x3e1656[_0x22a8f2(0x24a)]||this[_0x22a8f2(0x1ee)]['t'](_0x22a8f2(0x181))});return;}_0x2ee118[_0x22a8f2(0x16f)]?await this['_localStorageService']['setItem'](U,_0x2ee118[_0x22a8f2(0x16f)]['trim']()):await this['_localStorageService'][_0x22a8f2(0x1f5)](U),this[_0x22a8f2(0x267)][_0x22a8f2(0x1b5)](((_0x4a72d4=_0x2ee118[_0x22a8f2(0x16f)])==null?void 0x0:_0x4a72d4[_0x22a8f2(0x23a)]())||''),this[_0x22a8f2(0x1ba)][_0x22a8f2(0x28f)]({'Authorization':_0x22a8f2(0x1d3)+((_0x26f79a=_0x2ee118[_0x22a8f2(0x16f)])==null?void 0x0:_0x26f79a[_0x22a8f2(0x23a)]())}),this[_0x22a8f2(0x2bd)][_0x22a8f2(0x21f)]({'type':_0x6e385b[_0x22a8f2(0x27c)],'content':this[_0x22a8f2(0x1ee)]['t']('mcpConfig.configSaved')}),setTimeout(()=>{const _0x529248=_0x22a8f2;this[_0x529248(0x1cb)][_0x529248(0x1d6)](L);},0x320);}catch(_0x1123c3){this[_0x22a8f2(0x226)][_0x22a8f2(0x1e4)](_0x22a8f2(0x2a9),_0x1123c3),this[_0x22a8f2(0x2bd)]['show']({'type':_0x6e385b[_0x22a8f2(0x297)],'content':this[_0x22a8f2(0x1ee)]['t'](_0x22a8f2(0x1bd))});}finally{this[_0x22a8f2(0x19e)][_0x22a8f2(0x1b5)](!0x1);}}),(this[_0x705b77(0x171)]=_0x1fd1ee,this['_uiPartsService']=_0x435ed2,this[_0x705b77(0x2af)]=_0x10f658,this[_0x705b77(0x241)]=_0x521257,this[_0x705b77(0x1cb)]=_0x5cad00,this[_0x705b77(0x2bd)]=_0x327fc2,this[_0x705b77(0x177)]=_0x3b4d3e,this[_0x705b77(0x1ee)]=_0x322acd,this['_logService']=_0x192a16,this[_0x705b77(0x1ba)]=_0x177abe,this[_0x705b77(0x19b)](),this[_0x705b77(0x283)](),this['_registerComponent']());}[_0x3c9208(0x2ac)](){const _0x442d97=_0x3c9208,_0xc0b624=this['_configService']['getConfig'](y);_0xc0b624!=null&&_0xc0b624['showDeveloperTools']&&this[_0x442d97(0x1cb)]['open']({'id':L,'title':{'title':this[_0x442d97(0x1ee)]['t'](_0x442d97(0x28e))},'children':{'label':_0x442d97(0x173)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x3c4907=_0x442d97;this[_0x3c4907(0x1cb)][_0x3c4907(0x1d6)](L);}});}[_0x3c9208(0x1a0)](){const _0x1e2422=_0x3c9208;return this[_0x1e2422(0x1a4)][_0x1e2422(0x2ae)];}['_registerComponent'](){const _0x4a5bc0=_0x3c9208;this[_0x4a5bc0(0x285)](this[_0x4a5bc0(0x177)]['register'](_0x4a5bc0(0x173),this['_createConfigPanelComponent']()));}[_0x3c9208(0x1f2)](){const _0x94de7d=_0x3c9208;return _0x5dfb6b(()=>{const _0x4b6688=_0x2f9c;var _0x2ac3a4,_0x509bcb,_0x57bcf7;return _0x462323(nn,{'config':this['_config$']['value'],'mcpCoreConfig':this[_0x4b6688(0x1a4)][_0x4b6688(0x2ae)],'currentApiKey$':this[_0x4b6688(0x267)],'onSave':this[_0x4b6688(0x24e)],'loading':this['_loading$']['value'],'connectionStatus$':(_0x2ac3a4=this[_0x4b6688(0x1ba)])==null?void 0x0:_0x2ac3a4[_0x4b6688(0x25a)],'connectionError$':(_0x509bcb=this[_0x4b6688(0x1ba)])==null?void 0x0:_0x509bcb[_0x4b6688(0x1c9)],'currentSessionId$':(_0x57bcf7=this[_0x4b6688(0x1ba)])==null?void 0x0:_0x57bcf7[_0x4b6688(0x184)]});},this[_0x94de7d(0x171)]);}[_0x3c9208(0x19b)](){const _0x43945a=_0x3c9208;this[_0x43945a(0x285)](this[_0x43945a(0x2af)][_0x43945a(0x2b1)](_0x1c72e8)[_0x43945a(0x20a)](_0x3a678c=>{const _0x26f858=_0x43945a;this[_0x26f858(0x1a4)][_0x26f858(0x1b5)](_0x3a678c||{});}));const _0x3c475c=this[_0x43945a(0x2af)][_0x43945a(0x274)](_0x1c72e8);this[_0x43945a(0x1a4)][_0x43945a(0x1b5)](_0x3c475c||{}),this[_0x43945a(0x285)](this[_0x43945a(0x2af)][_0x43945a(0x2b1)](y)[_0x43945a(0x20a)](_0x4caffc=>{const _0x23ca5a=_0x43945a;this[_0x23ca5a(0x1ae)]['next'](_0x4caffc||{});}));const _0x501f07=this[_0x43945a(0x2af)]['getConfig'](y);this['_config$'][_0x43945a(0x1b5)](_0x501f07||{});}async[_0x3c9208(0x283)](){const _0x240f03=_0x3c9208,_0x569c35=this[_0x240f03(0x2af)]['getConfig'](y);if(!(_0x569c35!=null&&_0x569c35[_0x240f03(0x1bc)]))return;const _0x6fefb2=await this[_0x240f03(0x241)][_0x240f03(0x1c3)](U);_0x6fefb2&&(this[_0x240f03(0x1ba)][_0x240f03(0x28f)]({'Authorization':_0x240f03(0x1d3)+_0x6fefb2}),this[_0x240f03(0x267)]['next'](_0x6fefb2));}async[_0x3c9208(0x22a)](_0x40f6f1){const _0x42e328=_0x3c9208;if(!_0x40f6f1[_0x42e328(0x16f)]||_0x40f6f1[_0x42e328(0x16f)]['trim']()[_0x42e328(0x1be)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x42e328(0x1ee)]['t']('mcpConfig.validation.apiKeyRequired')};if(_0x40f6f1['apiKey'][_0x42e328(0x23a)]()[_0x42e328(0x1be)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x42e328(0x1ee)]['t']('mcpConfig.validation.apiKeyTooShort')};try{const _0x1bc997=await this[_0x42e328(0x171)][_0x42e328(0x29b)](_0x14f893)['validateApiKey'](_0x40f6f1[_0x42e328(0x16f)][_0x42e328(0x23a)]());return _0x1bc997[_0x42e328(0x1b7)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x1bc997[_0x42e328(0x1e4)]||this[_0x42e328(0x1ee)]['t'](_0x42e328(0x221))};}catch(_0x172eab){return console['warn'](_0x42e328(0x287),_0x172eab),{'isValid':!0x0};}}};I=tn([d(0x0,_0x4bcb75(_0x57274b)),d(0x1,_0x549fee),d(0x2,_0x575615),d(0x3,_0x9e998),d(0x4,_0x4ac42f),d(0x5,_0x419c17),d(0x6,_0x4bcb75(_0x135d71)),d(0x7,_0x4bcb75(_0x53bf0c)),d(0x8,_0xf54f67),d(0x9,_0x4bcb75(_0x14f893))],I);const V={'id':_0x3c9208(0x1e9),'type':_0x1f1a15[_0x3c9208(0x26b)],'handler':async(_0x237251,_0x35b3d3)=>(_0x237251[_0x3c9208(0x29b)](I)[_0x3c9208(0x2ac)](),!0x0)};function pe(_0x32d73b,_0x3ad4ee){const _0x201f49=_0x3c9208;switch(_0x32d73b){case _0xff81e2[_0x201f49(0x20c)]:return _0x201f49(0x1e3);case _0xff81e2['CONNECTING']:return _0x201f49(0x204);case _0xff81e2['CONNECTED']:return _0x201f49(0x19c);case _0xff81e2[_0x201f49(0x1ac)]:switch(_0x3ad4ee){case _0x23ba44[_0x201f49(0x23c)]:return _0x201f49(0x205);case _0x23ba44[_0x201f49(0x279)]:return _0x201f49(0x1fc);case _0x23ba44[_0x201f49(0x259)]:return _0x201f49(0x20f);case _0x23ba44[_0x201f49(0x22c)]:return _0x201f49(0x277);default:return _0x201f49(0x18d);}case _0xff81e2['RETRYING']:return _0x201f49(0x17a);default:return _0x201f49(0x29f);}}function on(_0x20410b,_0x126301,_0x4f1d92,_0x38f18f=!0x0){const _0x30db2c=_0x3c9208,_0x4c4324=pe(_0x20410b,_0x126301),_0xb4c857=_0x4f1d92['t'](_0x4c4324);return _0x38f18f?_0x20410b===_0xff81e2[_0x30db2c(0x20c)]&&_0x126301===_0x23ba44[_0x30db2c(0x23c)]?_0xb4c857+'\x20-\x20'+_0x4f1d92['t'](_0x30db2c(0x1df)):_0x20410b===_0xff81e2[_0x30db2c(0x281)]?''+_0xb4c857:_0x20410b===_0xff81e2['DISCONNECTED']||_0x20410b===_0xff81e2[_0x30db2c(0x1ac)]?_0xb4c857+_0x30db2c(0x1b9)+_0x4f1d92['t']('mcpStatus.clickToConnect'):_0xb4c857:_0xb4c857;}function sn(_0xa2d2c){const _0x2378cd=_0x3c9208;switch(_0xa2d2c){case _0xff81e2['CONNECTED']:return _0x2378cd(0x1ef);case _0xff81e2['CONNECTING']:case _0xff81e2[_0x2378cd(0x2a1)]:return _0x2378cd(0x2c1);case _0xff81e2[_0x2378cd(0x1ac)]:case _0xff81e2[_0x2378cd(0x20c)]:return _0x2378cd(0x288);default:return _0x2378cd(0x1b1);}}function _0x2f9c(_0x22124f,_0x135566){const _0x160a21=_0x160a();return _0x2f9c=function(_0x2f9cd8,_0x10278d){_0x2f9cd8=_0x2f9cd8-0x16f;let _0x558cbd=_0x160a21[_0x2f9cd8];return _0x558cbd;},_0x2f9c(_0x22124f,_0x135566);}function cn(_0x1671b7){const _0x326fc9=_0x3c9208,{status$:_0x4784a8,error$:_0x277b43,onConfigure:_0x44bc9d,showClickable:_0x528c65=!0x0}=_0x1671b7,_0x2b2426=_0x3a8338(_0x4784a8,_0xff81e2['DISCONNECTED']),_0x1ec468=_0x3a8338(_0x277b43,_0x23ba44[_0x326fc9(0x222)]),_0x5304e7=_0x150436(_0x53bf0c),_0x3fdaca=_0x2b2426===_0xff81e2[_0x326fc9(0x281)];_0x2b2426===_0xff81e2[_0x326fc9(0x2bb)]||_0xff81e2[_0x326fc9(0x2a1)];const _0x1b90c6=_0x5304e7['t'](pe(_0x2b2426,_0x1ec468)),_0x3cb573=on(_0x2b2426,_0x1ec468,_0x5304e7,_0x528c65),_0x2302ae=sn(_0x2b2426),_0x1b69f7=_0x3fdaca?_0x462323(ge,{}):_0x462323(de,{}),_0x1076bd=_0x3c10b4(()=>{_0x528c65&&_0x44bc9d&&_0x44bc9d();},[_0x528c65,_0x44bc9d]);function _0x532de6(){const _0x35234b=_0x326fc9;return _0x18c759('div',{'className':_0x5b246f(_0x35234b(0x282),_0x528c65&&_0x44bc9d&&'\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'),'role':_0x35234b(0x17d),'onClick':_0x528c65&&_0x44bc9d?_0x1076bd:void 0x0,'children':[_0x462323(_0x35234b(0x207),{'className':_0x5b246f(_0x35234b(0x1e1),_0x2302ae),'children':_0x1b69f7}),_0x462323(_0x35234b(0x207),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x1b90c6})]});}return _0x462323(_0x39918b,{'title':_0x3cb573,'placement':'bottom','children':_0x532de6()});}var an=Object['getOwnPropertyDescriptor'],ln=(_0x2d8921,_0xb30912,_0x5c761d,_0x24d9ed)=>{const _0x55719e=_0x3c9208;for(var _0x11a47d=_0x24d9ed>0x1?void 0x0:_0x24d9ed?an(_0xb30912,_0x5c761d):_0xb30912,_0x52ebb4=_0x2d8921[_0x55719e(0x1be)]-0x1,_0x5c5bcf;_0x52ebb4>=0x0;_0x52ebb4--)(_0x5c5bcf=_0x2d8921[_0x52ebb4])&&(_0x11a47d=_0x5c5bcf(_0x11a47d)||_0x11a47d);return _0x11a47d;},M=(_0x5a1196,_0x5353dc)=>(_0x5ed73d,_0x551887)=>_0x5353dc(_0x5ed73d,_0x551887,_0x5a1196);let O=class extends _0x5cea02{constructor(_0x15dd1d,_0x3f0f2a,_0x3a622b,_0x43e862){const _0x5089c8=_0x3c9208;super(),this['_injector']=_0x15dd1d,this[_0x5089c8(0x1c0)]=_0x3f0f2a,this['_uiPartsService']=_0x3a622b,this[_0x5089c8(0x2af)]=_0x43e862,this[_0x5089c8(0x1a1)](),this[_0x5089c8(0x1e5)]();}['_initAutoConnect'](){const _0x3c24e3=_0x3c9208,_0x3dd84c=this[_0x3c24e3(0x2af)][_0x3c24e3(0x274)](y);_0x3dd84c!=null&&_0x3dd84c[_0x3c24e3(0x1bc)]&&(this[_0x3c24e3(0x1c0)][_0x3c24e3(0x196)]=!0x1);}[_0x3c9208(0x1e5)](){const _0x3ff391=_0x3c9208,_0x99b1c0=this[_0x3ff391(0x2af)][_0x3ff391(0x274)](y);(_0x99b1c0==null?void 0x0:_0x99b1c0[_0x3ff391(0x189)])!==!0x1&&this[_0x3ff391(0x285)](this[_0x3ff391(0x2a6)][_0x3ff391(0x2b4)](_0x538232[_0x3ff391(0x239)],()=>{const _0x38ec52=_0x3ff391;var _0x372b29;return _0x5dfb6b(un({'status$':this[_0x38ec52(0x1c0)][_0x38ec52(0x25a)],'error$':this[_0x38ec52(0x1c0)]['connectionError$'],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x372b29=_0x99b1c0==null?void 0x0:_0x99b1c0[_0x38ec52(0x1bc)])!=null?_0x372b29:!0x1}),this[_0x38ec52(0x171)]);}));}[_0x3c9208(0x23d)](){const _0x537cb8=_0x3c9208;this[_0x537cb8(0x171)][_0x537cb8(0x29b)](I)[_0x537cb8(0x2ac)]();}};O=ln([M(0x0,_0x4bcb75(_0x57274b)),M(0x1,_0x4bcb75(_0x14f893)),M(0x2,_0x549fee),M(0x3,_0x575615)],O);function un(_0x2ebe8e){const {status$:_0x3508fa,error$:_0xf0ada5,onConfigure:_0x4d0690,showClickable:_0x1a9616}=_0x2ebe8e;return function(){return _0x462323(cn,{'status$':_0x3508fa,'error$':_0xf0ada5,'onConfigure':_0x4d0690,'showClickable':_0x1a9616});};}function vn(_0x525a53){const _0x22518d=_0x3c9208;return{'id':V['id'],'type':_0x247193[_0x22518d(0x209)],'icon':_0x22518d(0x22b),'title':'mcpConfig.title','tooltip':_0x22518d(0x28e)};}const dn={[_0xa097e0[_0x3c9208(0x213)]]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object[_0x3c9208(0x270)],pn=(_0x1912fc,_0x311426,_0x53c4f3,_0x4b8a14)=>{const _0x4b2993=_0x3c9208;for(var _0x4864d6=_0x4b8a14>0x1?void 0x0:_0x4b8a14?gn(_0x311426,_0x53c4f3):_0x311426,_0x24440a=_0x1912fc[_0x4b2993(0x1be)]-0x1,_0x4a1236;_0x24440a>=0x0;_0x24440a--)(_0x4a1236=_0x1912fc[_0x24440a])&&(_0x4864d6=_0x4a1236(_0x4864d6)||_0x4864d6);return _0x4864d6;},re=(_0xed6746,_0x55753b)=>(_0x43ad41,_0x47fb35)=>_0x55753b(_0x43ad41,_0x47fb35,_0xed6746);let D=class extends _0x5cea02{constructor(_0x448b86,_0x22854b){const _0x56e1da=_0x3c9208;super(),this[_0x56e1da(0x220)]=_0x448b86,this[_0x56e1da(0x2b3)]=_0x22854b,this['_initializeCommands'](),this['_initializeMenus']();}[_0x3c9208(0x19a)](){[V]['forEach'](_0x2cf4a0=>{const _0x30a38e=_0x2f9c;this[_0x30a38e(0x285)](this[_0x30a38e(0x220)][_0x30a38e(0x1cd)](_0x2cf4a0));});}[_0x3c9208(0x1dd)](){const _0x593422=_0x3c9208;this[_0x593422(0x2b3)]['mergeMenu'](dn);}};D=pn([re(0x0,_0x3900c0),re(0x1,_0x54a9fe)],D);const Mn={'mcpStatus':{'disconnected':_0x3c9208(0x215),'connecting':_0x3c9208(0x18e),'connected':_0x3c9208(0x1c2),'failed':_0x3c9208(0x29d),'retrying':'MCP\x20Retrying...','unknown':_0x3c9208(0x280),'unauthorized':_0x3c9208(0x199),'sessionOccupied':_0x3c9208(0x295),'networkError':_0x3c9208(0x179),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x3c9208(0x2c2),'clickToConfigure':_0x3c9208(0x191)},'mcpConfig':{'title':_0x3c9208(0x20b),'description':_0x3c9208(0x25e),'apiKey':_0x3c9208(0x273),'apiKeyPlaceholder':_0x3c9208(0x27a),'apiKeyHint':_0x3c9208(0x278),'enableAuth':_0x3c9208(0x1a5),'enableAuthHint':_0x3c9208(0x1e2),'connectionInfo':_0x3c9208(0x1ad),'mcpClientConfig':_0x3c9208(0x1ad),'configInstructions':_0x3c9208(0x174),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x3c9208(0x1dc),'configStep2':_0x3c9208(0x18b),'configStep3':_0x3c9208(0x1c4),'sessionId':'Session\x20ID','sessionIdDescription':_0x3c9208(0x1ec),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x3c9208(0x255),'maxRetries':'Max\x20Retries','save':_0x3c9208(0x2bc),'saving':_0x3c9208(0x2a5),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x3c9208(0x1d0),'configSaved':_0x3c9208(0x275),'configError':_0x3c9208(0x201),'apiApplyInfo':{'title':_0x3c9208(0x20d),'description':_0x3c9208(0x195),'univerAiLabel':_0x3c9208(0x211),'getStarted':_0x3c9208(0x190)},'validation':{'apiKeyRequired':_0x3c9208(0x206),'apiKeyTooShort':_0x3c9208(0x1fb),'invalidConfig':_0x3c9208(0x233),'invalidApiKey':_0x3c9208(0x26a)},'connectionStatus':{'disconnected':_0x3c9208(0x1ed),'connecting':_0x3c9208(0x1f4),'connected':_0x3c9208(0x289),'failed':'Connection\x20Failed','retrying':_0x3c9208(0x1a7)},'connectionError':{'unauthorized':_0x3c9208(0x1d4),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x3c9208(0x230),'maxRetriesExceeded':_0x3c9208(0x236)}}},An={'mcpStatus':{'disconnected':_0x3c9208(0x1cf),'connecting':_0x3c9208(0x296),'connected':_0x3c9208(0x2b7),'failed':_0x3c9208(0x1d5),'retrying':'MCP\x20重连中...','unknown':'MCP\x20状态未知','unauthorized':'MCP:\x20未授权','sessionOccupied':_0x3c9208(0x23b),'networkError':_0x3c9208(0x1f6),'maxRetriesExceeded':_0x3c9208(0x20e),'clickToConnect':_0x3c9208(0x284),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x3c9208(0x1fd),'description':_0x3c9208(0x292),'apiKey':_0x3c9208(0x2aa),'apiKeyPlaceholder':_0x3c9208(0x23e),'apiKeyHint':_0x3c9208(0x1b0),'enableAuth':_0x3c9208(0x1d9),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x3c9208(0x186),'configInstructions':_0x3c9208(0x299),'configStepTitle':'配置步骤:','configStep1':'复制以下\x20JSON\x20配置','configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x3c9208(0x1da),'sessionId':_0x3c9208(0x1c1),'sessionIdDescription':_0x3c9208(0x29c),'authorizationDescription':_0x3c9208(0x188),'configParameters':'配置参数:','maxRetries':_0x3c9208(0x266),'save':_0x3c9208(0x244),'saving':_0x3c9208(0x27e),'note1':_0x3c9208(0x2c0),'note2':_0x3c9208(0x175),'configSaved':_0x3c9208(0x2ab),'configError':'配置保存失败','apiApplyInfo':{'title':_0x3c9208(0x18f),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0x3c9208(0x208),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x3c9208(0x210),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':'配置无效','invalidApiKey':_0x3c9208(0x1e8)},'connectionStatus':{'disconnected':'未连接','connecting':_0x3c9208(0x18a),'connected':'已连接','failed':'连接失败','retrying':'重连中...'},'connectionError':{'unauthorized':_0x3c9208(0x197),'sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':_0x3c9208(0x180),'maxRetriesExceeded':_0x3c9208(0x293)}}};var fn=Object[_0x3c9208(0x1d8)],hn=Object[_0x3c9208(0x270)],Cn=(_0x5a7e84,_0x502643,_0x302ada)=>_0x502643 in _0x5a7e84?fn(_0x5a7e84,_0x502643,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x302ada}):_0x5a7e84[_0x502643]=_0x302ada,mn=(_0x160f23,_0x46c321,_0x3887f5,_0x3350e1)=>{const _0x328c8c=_0x3c9208;for(var _0x259baf=_0x3350e1>0x1?void 0x0:_0x3350e1?hn(_0x46c321,_0x3887f5):_0x46c321,_0x5175a4=_0x160f23[_0x328c8c(0x1be)]-0x1,_0x3a704c;_0x5175a4>=0x0;_0x5175a4--)(_0x3a704c=_0x160f23[_0x5175a4])&&(_0x259baf=_0x3a704c(_0x259baf)||_0x259baf);return _0x259baf;},P=(_0x36549e,_0x1c1c03)=>(_0x18a79e,_0x5e5759)=>_0x1c1c03(_0x18a79e,_0x5e5759,_0x36549e),_n=(_0x286019,_0x3cbb2d,_0x36433b)=>Cn(_0x286019,_0x3cbb2d+'',_0x36433b);let j=class extends _0x5d41e1{constructor(_0x4c0625=ie,_0x3fa566,_0x54117d,_0x40c441,_0x5c3ad7,_0x2e0d5b){const _0x2e5772=_0x3c9208;super(),this[_0x2e5772(0x17b)]=_0x4c0625,this[_0x2e5772(0x171)]=_0x3fa566,this[_0x2e5772(0x2af)]=_0x54117d,this['_uiPartsService']=_0x40c441,this['_localStorageService']=_0x5c3ad7,this['_localeService']=_0x2e0d5b;const {..._0x4472e4}=_0x211ca7({},ie,this[_0x2e5772(0x17b)]);this[_0x2e5772(0x2af)][_0x2e5772(0x2a2)](y,_0x4472e4);}async['onStarting'](){const _0x165134=_0x3c9208,_0x361d84=[[O],[I],[D]];this[_0x165134(0x171)][_0x165134(0x1b2)](_0x10fe15)||_0x361d84[_0x165134(0x212)]([_0x10fe15,{'useClass':_0x451010}]),_0x361d84['forEach'](_0x8ee386=>this[_0x165134(0x171)]['add'](_0x8ee386)),this['_injector'][_0x165134(0x29b)](O),this[_0x165134(0x171)][_0x165134(0x29b)](I),this['_injector'][_0x165134(0x29b)](D);}};_n(j,_0x3c9208(0x1c8),_0x3c9208(0x1bb)),j=mn([_0x5862b0(_0x245195),P(0x1,_0x4bcb75(_0x57274b)),P(0x2,_0x575615),P(0x3,_0x549fee),P(0x4,_0x9e998),P(0x5,_0x4bcb75(_0x53bf0c))],j);export{nn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,cn as MCPStatusDisplay,D as MCPUIMenuController,V as OpenMCPConfigPanelCommand,j as UniverMCPUIPlugin,Mn as enUS,An as zhCN};
|
package/lib/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x2bf633=_0xd5aa;(function(_0x306395,_0x3bf970){const _0x15f091=_0xd5aa,_0xc61bb3=_0x306395();while(!![]){try{const _0x42dbdb=parseInt(_0x15f091(0x128))/0x1+parseInt(_0x15f091(0x124))/0x2*(-parseInt(_0x15f091(0x121))/0x3)+-parseInt(_0x15f091(0x11b))/0x4*(-parseInt(_0x15f091(0x11a))/0x5)+-parseInt(_0x15f091(0x12e))/0x6*(-parseInt(_0x15f091(0x12c))/0x7)+parseInt(_0x15f091(0x12f))/0x8+parseInt(_0x15f091(0x138))/0x9*(-parseInt(_0x15f091(0x126))/0xa)+parseInt(_0x15f091(0x129))/0xb*(-parseInt(_0x15f091(0x11c))/0xc);if(_0x42dbdb===_0x3bf970)break;else _0xc61bb3['push'](_0xc61bb3['shift']());}catch(_0x577238){_0xc61bb3['push'](_0xc61bb3['shift']());}}}(_0x559b,0x584cd));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x2bf633(0x13c),'connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':_0x2bf633(0x115),'unauthorized':_0x2bf633(0x133),'sessionOccupied':_0x2bf633(0x112),'networkError':_0x2bf633(0x12d),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x2bf633(0x134)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x2bf633(0x113),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x2bf633(0x12b),'apiKeyHint':_0x2bf633(0x110),'enableAuth':_0x2bf633(0x130),'enableAuthHint':_0x2bf633(0x117),'connectionInfo':_0x2bf633(0x13d),'mcpClientConfig':_0x2bf633(0x13d),'configInstructions':_0x2bf633(0x114),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x2bf633(0x13e),'configStep2':_0x2bf633(0x137),'configStep3':_0x2bf633(0x120),'sessionId':_0x2bf633(0x127),'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':_0x2bf633(0x12a),'maxRetries':_0x2bf633(0x11d),'save':_0x2bf633(0x13b),'saving':'Saving...','note1':_0x2bf633(0x135),'note2':_0x2bf633(0x136),'configSaved':_0x2bf633(0x11f),'configError':_0x2bf633(0x11e),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x2bf633(0x123),'univerAiLabel':_0x2bf633(0x111),'getStarted':_0x2bf633(0x119)},'validation':{'apiKeyRequired':_0x2bf633(0x122),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x2bf633(0x118)},'connectionStatus':{'disconnected':_0x2bf633(0x132),'connecting':_0x2bf633(0x131),'connected':'Connected','failed':'Connection\x20Failed','retrying':_0x2bf633(0x116)},'connectionError':{'unauthorized':_0x2bf633(0x13a),'sessionOccupied':_0x2bf633(0x125),'networkError':_0x2bf633(0x139),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;export{n as default};function _0xd5aa(_0xd8d418,_0x434ddf){const _0x559b4e=_0x559b();return _0xd5aa=function(_0xd5aa8c,_0x5d231b){_0xd5aa8c=_0xd5aa8c-0x110;let _0x217017=_0x559b4e[_0xd5aa8c];return _0x217017;},_0xd5aa(_0xd8d418,_0x434ddf);}function _0x559b(){const _0xda356f=['Configuration\x20Parameters:','Enter\x20your\x20API\x20key','93366hMlqye','MCP:\x20Network\x20Error','180XkvrIC','5477016kDPEVf','Enable\x20Authentication','Connecting...','Disconnected','MCP:\x20Unauthorized','Click\x20to\x20configure\x20MCP','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','563814BqhkVM','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Save\x20Configuration','MCP\x20Connecting...','MCP\x20Client\x20Configuration','Copy\x20the\x20JSON\x20configuration\x20below','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Univer\x20AI\x20Console','MCP:\x20Session\x20ID\x20Occupied','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Unknown\x20Status','Retrying...','Enable\x20authentication\x20for\x20secure\x20connections','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Get\x20your\x20API\x20key\x20in\x20seconds','5eXJFuI','759336fCZLBT','4445304FVMyeX','Max\x20Retries','Failed\x20to\x20save\x20configuration','Configuration\x20saved\x20successfully','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','592761WsPeCP','API\x20key\x20is\x20required','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','4AKldaZ','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','40CXDtEE','Session\x20ID','103276iSXSBF','11Mqtwvd'];_0x559b=function(){return _0xda356f;};return _0x559b();}
|
package/lib/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x220d(_0x1222dc,_0x514e04){const _0x3ec510=_0x3ec5();return _0x220d=function(_0x220d9f,_0xeebdf2){_0x220d9f=_0x220d9f-0x7b;let _0x582075=_0x3ec510[_0x220d9f];return _0x582075;},_0x220d(_0x1222dc,_0x514e04);}const _0x158e05=_0x220d;function _0x3ec5(){const _0x1dedef=['Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','API\x20key\x20with\x20Bearer\x20prefix.','Univer\x20AI\x20Console','Session\x20ID','2719641zIflWX','3045EsDVZU','What\x20is\x20API\x20Key?','MCP:\x20Unauthorized','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Unknown\x20Status','Configuration\x20Steps:','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Client\x20Configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','708tKIkwI','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP:\x20Max\x20Retries\x20Exceeded','1143612shqZvJ','Enter\x20your\x20API\x20key','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Configuration','Invalid\x20configuration','Max\x20Retries','Save\x20Configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Configuration\x20saved\x20successfully','4392032IQlDEl','API\x20key\x20is\x20required','Enable\x20Authentication','11343960chNNKN','10748HOMeNO','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','67iQKsCH','Saving...','Configuration\x20Parameters:','MCP:\x20Network\x20Error','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','5895456eoSaax','Copy\x20the\x20JSON\x20configuration\x20below'];_0x3ec5=function(){return _0x1dedef;};return _0x3ec5();}(function(_0x1821e1,_0x4089ed){const _0x45b61b=_0x220d,_0x4d0bae=_0x1821e1();while(!![]){try{const _0x123b72=parseInt(_0x45b61b(0x96))/0x1*(-parseInt(_0x45b61b(0x94))/0x2)+-parseInt(_0x45b61b(0xa1))/0x3+parseInt(_0x45b61b(0x87))/0x4+-parseInt(_0x45b61b(0xa2))/0x5*(parseInt(_0x45b61b(0x84))/0x6)+parseInt(_0x45b61b(0x9b))/0x7+-parseInt(_0x45b61b(0x90))/0x8+parseInt(_0x45b61b(0x93))/0x9;if(_0x123b72===_0x4089ed)break;else _0x4d0bae['push'](_0x4d0bae['shift']());}catch(_0x3dce9c){_0x4d0bae['push'](_0x4d0bae['shift']());}}}(_0x3ec5,0x7a558));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':_0x158e05(0x7e),'unauthorized':_0x158e05(0x7c),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x158e05(0x99),'maxRetriesExceeded':_0x158e05(0x86),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x158e05(0x8a),'description':_0x158e05(0x83),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x158e05(0x88),'apiKeyHint':_0x158e05(0x85),'enableAuth':_0x158e05(0x92),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x158e05(0x82),'mcpClientConfig':_0x158e05(0x82),'configInstructions':_0x158e05(0x8e),'configStepTitle':_0x158e05(0x7f),'configStep1':_0x158e05(0x9c),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x158e05(0x95),'sessionId':_0x158e05(0xa0),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x158e05(0x9e),'configParameters':_0x158e05(0x98),'maxRetries':_0x158e05(0x8c),'save':_0x158e05(0x8d),'saving':_0x158e05(0x97),'note1':_0x158e05(0x80),'note2':_0x158e05(0x7d),'configSaved':_0x158e05(0x8f),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x158e05(0x7b),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0x158e05(0x9f),'getStarted':_0x158e05(0x81)},'validation':{'apiKeyRequired':_0x158e05(0x91),'apiKeyTooShort':_0x158e05(0x89),'invalidConfig':_0x158e05(0x8b),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':'Connected','failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'unauthorized':_0x158e05(0x9a),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x158e05(0x9d),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}};export{e as default};
|
package/lib/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x2826(_0x341ff0,_0x3d18cd){const _0x3b50e8=_0x3b50();return _0x2826=function(_0x282615,_0x572c15){_0x282615=_0x282615-0xaa;let _0x4bcb74=_0x3b50e8[_0x282615];return _0x4bcb74;},_0x2826(_0x341ff0,_0x3d18cd);}const _0x13ff4c=_0x2826;(function(_0x16cd0b,_0x2ca7a4){const _0x2fe59f=_0x2826,_0x26b57a=_0x16cd0b();while(!![]){try{const _0x410d78=-parseInt(_0x2fe59f(0xd4))/0x1+parseInt(_0x2fe59f(0xb1))/0x2+parseInt(_0x2fe59f(0xbd))/0x3+-parseInt(_0x2fe59f(0xaf))/0x4+parseInt(_0x2fe59f(0xcb))/0x5+parseInt(_0x2fe59f(0xdb))/0x6*(-parseInt(_0x2fe59f(0xdc))/0x7)+parseInt(_0x2fe59f(0xb4))/0x8;if(_0x410d78===_0x2ca7a4)break;else _0x26b57a['push'](_0x26b57a['shift']());}catch(_0x342df6){_0x26b57a['push'](_0x26b57a['shift']());}}}(_0x3b50,0x3d835));const e={'mcpStatus':{'disconnected':_0x13ff4c(0xc0),'connecting':_0x13ff4c(0xd6),'connected':_0x13ff4c(0xd5),'failed':_0x13ff4c(0xcf),'retrying':'MCP\x20Retrying...','unknown':_0x13ff4c(0xdd),'unauthorized':_0x13ff4c(0xab),'sessionOccupied':_0x13ff4c(0xdf),'networkError':_0x13ff4c(0xd3),'maxRetriesExceeded':_0x13ff4c(0xaa),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x13ff4c(0xbb)},'mcpConfig':{'title':_0x13ff4c(0xac),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x13ff4c(0xb7),'apiKeyPlaceholder':_0x13ff4c(0xc4),'apiKeyHint':_0x13ff4c(0xd0),'enableAuth':_0x13ff4c(0xc3),'enableAuthHint':_0x13ff4c(0xce),'connectionInfo':_0x13ff4c(0xbf),'mcpClientConfig':_0x13ff4c(0xbf),'configInstructions':_0x13ff4c(0xb3),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x13ff4c(0xcd),'configStep2':_0x13ff4c(0xbe),'configStep3':_0x13ff4c(0xbc),'sessionId':_0x13ff4c(0xd7),'sessionIdDescription':_0x13ff4c(0xd9),'authorizationDescription':_0x13ff4c(0xda),'configParameters':_0x13ff4c(0xca),'maxRetries':_0x13ff4c(0xc7),'save':_0x13ff4c(0xba),'saving':_0x13ff4c(0xae),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x13ff4c(0xc1),'configSaved':_0x13ff4c(0xde),'configError':_0x13ff4c(0xc5),'apiApplyInfo':{'title':_0x13ff4c(0xd1),'description':_0x13ff4c(0xad),'univerAiLabel':_0x13ff4c(0xb6),'getStarted':_0x13ff4c(0xc9)},'validation':{'apiKeyRequired':_0x13ff4c(0xd2),'apiKeyTooShort':_0x13ff4c(0xc8),'invalidConfig':_0x13ff4c(0xb9),'invalidApiKey':_0x13ff4c(0xb2)},'connectionStatus':{'disconnected':_0x13ff4c(0xd8),'connecting':'Connecting...','connected':'Connected','failed':_0x13ff4c(0xb0),'retrying':_0x13ff4c(0xb8)},'connectionError':{'unauthorized':_0x13ff4c(0xb5),'sessionOccupied':_0x13ff4c(0xcc),'networkError':_0x13ff4c(0xc6),'maxRetriesExceeded':_0x13ff4c(0xc2)}}},n=e;function _0x3b50(){const _0x11115e=['Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','345864kZNxex','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Client\x20Configuration','MCP\x20Disconnected','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Enable\x20Authentication','Enter\x20your\x20API\x20key','Failed\x20to\x20save\x20configuration','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Max\x20Retries','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Get\x20your\x20API\x20key\x20in\x20seconds','Configuration\x20Parameters:','2444470YfwrkF','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Copy\x20the\x20JSON\x20configuration\x20below','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Connection\x20Failed','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','What\x20is\x20API\x20Key?','API\x20key\x20is\x20required','MCP:\x20Network\x20Error','335427DufyEM','MCP\x20Connected','MCP\x20Connecting...','Session\x20ID','Disconnected','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','API\x20key\x20with\x20Bearer\x20prefix.','12894GgItEW','1561wAupOt','MCP\x20Unknown\x20Status','Configuration\x20saved\x20successfully','MCP:\x20Session\x20ID\x20Occupied','MCP:\x20Max\x20Retries\x20Exceeded','MCP:\x20Unauthorized','MCP\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.','Saving...','1919516cRpoNA','Connection\x20Failed','802820ZgmJtA','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','4327184VVJtUt','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Univer\x20AI\x20Console','API\x20Key','Retrying...','Invalid\x20configuration','Save\x20Configuration','Click\x20to\x20configure\x20MCP'];_0x3b50=function(){return _0x11115e;};return _0x3b50();}export{n as default};
|
package/lib/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x3ef950=_0x24ae;function _0x24ae(_0x584d5d,_0x45f78d){const _0x1dda34=_0x1dda();return _0x24ae=function(_0x24ae9f,_0x42ae9a){_0x24ae9f=_0x24ae9f-0x131;let _0x237fbf=_0x1dda34[_0x24ae9f];return _0x237fbf;},_0x24ae(_0x584d5d,_0x45f78d);}function _0x1dda(){const _0x5795f1=['Save\x20Configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Saving...','16nrpQrk','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','6192504tDweHJ','MCP:\x20Session\x20ID\x20Occupied','Configuration\x20Parameters:','What\x20is\x20API\x20Key?','API\x20key\x20with\x20Bearer\x20prefix.','4405254QMwJFI','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Connecting...','MCP\x20Connected','Univer\x20AI\x20Console','API\x20Key','MCP:\x20Unauthorized','1298788hhguKy','MCP\x20Configuration','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Unknown\x20Status','API\x20key\x20is\x20required','2157789GPBJyf','MCP\x20Connecting...','1pjpYMJ','Copy\x20the\x20JSON\x20configuration\x20below','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP:\x20Network\x20Error','MCP\x20Disconnected','Get\x20your\x20API\x20key\x20in\x20seconds','Retrying...','Connection\x20Failed','5180499kNUnzt','Configuration\x20saved\x20successfully','Click\x20to\x20connect\x20MCP','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Client\x20Configuration','Connected','Max\x20Retries','Click\x20to\x20configure\x20MCP','3493470rFKGHz','Disconnected','Enter\x20your\x20API\x20key','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Failed\x20to\x20save\x20configuration','3505284YanPUg'];_0x1dda=function(){return _0x5795f1;};return _0x1dda();}(function(_0x4a29fe,_0x1d3673){const _0xcd04be=_0x24ae,_0xe64fd3=_0x4a29fe();while(!![]){try{const _0x1a709e=parseInt(_0xcd04be(0x14e))/0x1*(parseInt(_0xcd04be(0x146))/0x2)+parseInt(_0xcd04be(0x14c))/0x3+-parseInt(_0xcd04be(0x131))/0x4+-parseInt(_0xcd04be(0x15f))/0x5+-parseInt(_0xcd04be(0x137))/0x6+parseInt(_0xcd04be(0x13c))/0x7+parseInt(_0xcd04be(0x135))/0x8*(parseInt(_0xcd04be(0x157))/0x9);if(_0x1a709e===_0x1d3673)break;else _0xe64fd3['push'](_0xe64fd3['shift']());}catch(_0x1aa7ae){_0xe64fd3['push'](_0xe64fd3['shift']());}}}(_0x1dda,0x84596));const e={'mcpStatus':{'disconnected':_0x3ef950(0x153),'connecting':_0x3ef950(0x14d),'connected':_0x3ef950(0x142),'failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':_0x3ef950(0x14a),'unauthorized':_0x3ef950(0x145),'sessionOccupied':_0x3ef950(0x138),'networkError':_0x3ef950(0x152),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x3ef950(0x159),'clickToConfigure':_0x3ef950(0x15e)},'mcpConfig':{'title':_0x3ef950(0x147),'description':_0x3ef950(0x133),'apiKey':_0x3ef950(0x144),'apiKeyPlaceholder':_0x3ef950(0x161),'apiKeyHint':_0x3ef950(0x149),'enableAuth':'Enable\x20Authentication','enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x3ef950(0x15b),'mcpClientConfig':_0x3ef950(0x15b),'configInstructions':_0x3ef950(0x13d),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x3ef950(0x14f),'configStep2':_0x3ef950(0x148),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':_0x3ef950(0x151),'authorizationDescription':_0x3ef950(0x13b),'configParameters':_0x3ef950(0x139),'maxRetries':_0x3ef950(0x15d),'save':_0x3ef950(0x132),'saving':_0x3ef950(0x134),'note1':_0x3ef950(0x13e),'note2':_0x3ef950(0x13f),'configSaved':_0x3ef950(0x158),'configError':_0x3ef950(0x163),'apiApplyInfo':{'title':_0x3ef950(0x13a),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0x3ef950(0x143),'getStarted':_0x3ef950(0x154)},'validation':{'apiKeyRequired':_0x3ef950(0x14b),'apiKeyTooShort':_0x3ef950(0x162),'invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x3ef950(0x160),'connecting':_0x3ef950(0x141),'connected':_0x3ef950(0x15c),'failed':_0x3ef950(0x156),'retrying':_0x3ef950(0x155)},'connectionError':{'unauthorized':_0x3ef950(0x150),'sessionOccupied':_0x3ef950(0x15a),'networkError':_0x3ef950(0x140),'maxRetriesExceeded':_0x3ef950(0x136)}}},n=e;export{n as default};
|
package/lib/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x48aa(){const _0x58623d=['MCP\x20Connection\x20Failed','215515odsDkp','1146848hCYDxA','1432vdFKlI','2251540AHZFbO','Configuration\x20Parameters:','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Disconnected','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','What\x20is\x20API\x20Key?','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Enable\x20Authentication','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Connected','25711dRqBWS','Save\x20Configuration','Invalid\x20configuration','1846485uFtRQw','Max\x20Retries','MCP\x20Connecting...','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Connected','Connecting...','MCP:\x20Session\x20ID\x20Occupied','Click\x20to\x20configure\x20MCP','381538hxhhaY','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Client\x20Configuration','MCP:\x20Unauthorized','MCP:\x20Max\x20Retries\x20Exceeded','Enter\x20your\x20API\x20key','Saving...','MCP\x20Retrying...','Disconnected','Failed\x20to\x20save\x20configuration','7520301fcNodQ','Get\x20your\x20API\x20key\x20in\x20seconds','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Configuration','78iDqAHA','API\x20key\x20is\x20required','Configuration\x20Steps:','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','API\x20Key','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Copy\x20the\x20JSON\x20configuration\x20below'];_0x48aa=function(){return _0x58623d;};return _0x48aa();}function _0x4b88(_0x5db8bf,_0x44aac8){const _0x48aa98=_0x48aa();return _0x4b88=function(_0x4b885f,_0xcdb9ad){_0x4b885f=_0x4b885f-0xdf;let _0x43aeb3=_0x48aa98[_0x4b885f];return _0x43aeb3;},_0x4b88(_0x5db8bf,_0x44aac8);}const _0x15e51a=_0x4b88;(function(_0x62f5c,_0x3bfe07){const _0x53b08e=_0x4b88,_0x3f295f=_0x62f5c();while(!![]){try{const _0x4475ed=-parseInt(_0x53b08e(0xff))/0x1+parseInt(_0x53b08e(0xe9))/0x2+parseInt(_0x53b08e(0xf7))/0x3+parseInt(_0x53b08e(0xe7))/0x4+parseInt(_0x53b08e(0xe6))/0x5*(parseInt(_0x53b08e(0x10d))/0x6)+parseInt(_0x53b08e(0xf4))/0x7*(-parseInt(_0x53b08e(0xe8))/0x8)+-parseInt(_0x53b08e(0x109))/0x9;if(_0x4475ed===_0x3bfe07)break;else _0x3f295f['push'](_0x3f295f['shift']());}catch(_0x580df0){_0x3f295f['push'](_0x3f295f['shift']());}}}(_0x48aa,0xae3fa));const e={'mcpStatus':{'disconnected':_0x15e51a(0xec),'connecting':_0x15e51a(0xf9),'connected':_0x15e51a(0xf3),'failed':_0x15e51a(0xe5),'retrying':_0x15e51a(0x106),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x15e51a(0x102),'sessionOccupied':_0x15e51a(0xfd),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x15e51a(0x103),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x15e51a(0xfe)},'mcpConfig':{'title':_0x15e51a(0x10c),'description':_0x15e51a(0xe1),'apiKey':_0x15e51a(0xe2),'apiKeyPlaceholder':_0x15e51a(0x104),'apiKeyHint':_0x15e51a(0xe3),'enableAuth':_0x15e51a(0xf0),'enableAuthHint':_0x15e51a(0x100),'connectionInfo':_0x15e51a(0x101),'mcpClientConfig':_0x15e51a(0x101),'configInstructions':_0x15e51a(0xeb),'configStepTitle':_0x15e51a(0xe0),'configStep1':_0x15e51a(0xe4),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x15e51a(0xf2),'configParameters':_0x15e51a(0xea),'maxRetries':_0x15e51a(0xf8),'save':_0x15e51a(0xf5),'saving':_0x15e51a(0x105),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x15e51a(0xfa),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x15e51a(0x108),'apiApplyInfo':{'title':_0x15e51a(0xee),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x15e51a(0x10a)},'validation':{'apiKeyRequired':_0x15e51a(0xdf),'apiKeyTooShort':_0x15e51a(0xf1),'invalidConfig':_0x15e51a(0xf6),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x15e51a(0x107),'connecting':_0x15e51a(0xfc),'connected':_0x15e51a(0xfb),'failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'unauthorized':_0x15e51a(0x10b),'sessionOccupied':_0x15e51a(0xed),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x15e51a(0xef)}}},n=e;export{n as default};
|
package/lib/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x50bd59=_0x47b7;function _0x47b7(_0x18c015,_0x1c7ed8){const _0x38b899=_0x38b8();return _0x47b7=function(_0x47b7b3,_0x2cf7ce){_0x47b7b3=_0x47b7b3-0x94;let _0x304145=_0x38b899[_0x47b7b3];return _0x304145;},_0x47b7(_0x18c015,_0x1c7ed8);}(function(_0x1beb9e,_0x51b14b){const _0x2a2e79=_0x47b7,_0x497839=_0x1beb9e();while(!![]){try{const _0x551b57=parseInt(_0x2a2e79(0xac))/0x1*(parseInt(_0x2a2e79(0xb5))/0x2)+-parseInt(_0x2a2e79(0xad))/0x3*(parseInt(_0x2a2e79(0xa6))/0x4)+parseInt(_0x2a2e79(0x94))/0x5+parseInt(_0x2a2e79(0xc3))/0x6+-parseInt(_0x2a2e79(0xb1))/0x7+parseInt(_0x2a2e79(0x98))/0x8*(-parseInt(_0x2a2e79(0x96))/0x9)+parseInt(_0x2a2e79(0x9b))/0xa*(parseInt(_0x2a2e79(0x97))/0xb);if(_0x551b57===_0x51b14b)break;else _0x497839['push'](_0x497839['shift']());}catch(_0x43fed3){_0x497839['push'](_0x497839['shift']());}}}(_0x38b8,0x9a7f5));const e={'mcpStatus':{'disconnected':_0x50bd59(0xb6),'connecting':_0x50bd59(0xa1),'connected':_0x50bd59(0x9e),'failed':_0x50bd59(0xc1),'retrying':_0x50bd59(0xa8),'unknown':_0x50bd59(0xbe),'unauthorized':_0x50bd59(0xa7),'sessionOccupied':_0x50bd59(0x9d),'networkError':_0x50bd59(0xb0),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x50bd59(0xc6),'clickToConfigure':_0x50bd59(0xb4)},'mcpConfig':{'title':_0x50bd59(0xa5),'description':_0x50bd59(0xb3),'apiKey':'API\x20Key','apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x50bd59(0xb8),'enableAuth':_0x50bd59(0xb9),'enableAuthHint':_0x50bd59(0xaa),'connectionInfo':_0x50bd59(0xbc),'mcpClientConfig':_0x50bd59(0xbc),'configInstructions':_0x50bd59(0xab),'configStepTitle':_0x50bd59(0x99),'configStep1':_0x50bd59(0x95),'configStep2':_0x50bd59(0x9c),'configStep3':_0x50bd59(0xae),'sessionId':_0x50bd59(0x9a),'sessionIdDescription':_0x50bd59(0xb2),'authorizationDescription':_0x50bd59(0xbb),'configParameters':_0x50bd59(0xc2),'maxRetries':_0x50bd59(0xa2),'save':_0x50bd59(0xc7),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x50bd59(0xa4),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x50bd59(0xcb),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x50bd59(0xc0),'univerAiLabel':_0x50bd59(0xaf),'getStarted':_0x50bd59(0xa0)},'validation':{'apiKeyRequired':_0x50bd59(0xca),'apiKeyTooShort':_0x50bd59(0x9f),'invalidConfig':_0x50bd59(0xb7),'invalidApiKey':_0x50bd59(0xc9)},'connectionStatus':{'disconnected':_0x50bd59(0xbf),'connecting':'Connecting...','connected':_0x50bd59(0xba),'failed':_0x50bd59(0xc5),'retrying':_0x50bd59(0xc4)},'connectionError':{'unauthorized':_0x50bd59(0xc8),'sessionOccupied':_0x50bd59(0xa3),'networkError':_0x50bd59(0xa9),'maxRetriesExceeded':_0x50bd59(0xbd)}}},n=e;function _0x38b8(){const _0x4c0db1=['296XsIJhQ','Configuration\x20Steps:','Session\x20ID','19001210JGDWwW','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP:\x20Session\x20ID\x20Occupied','MCP\x20Connected','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Connecting...','Max\x20Retries','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Configuration','2984132KiNKEp','MCP:\x20Unauthorized','MCP\x20Retrying...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Enable\x20authentication\x20for\x20secure\x20connections','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','332kDRHYS','3vuYxxb','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Univer\x20AI\x20Console','MCP:\x20Network\x20Error','6512121dDmdft','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Click\x20to\x20configure\x20MCP','2876jqPngq','MCP\x20Disconnected','Invalid\x20configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Enable\x20Authentication','Connected','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Client\x20Configuration','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Unknown\x20Status','Disconnected','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\x20Connection\x20Failed','Configuration\x20Parameters:','2250180eLPjYb','Retrying...','Connection\x20Failed','Click\x20to\x20connect\x20MCP','Save\x20Configuration','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','API\x20key\x20is\x20required','Failed\x20to\x20save\x20configuration','285445zKnbAt','Copy\x20the\x20JSON\x20configuration\x20below','121743VdnOzr','11fFCuYI'];_0x38b8=function(){return _0x4c0db1;};return _0x38b8();}export{n as default};
|