@univerjs-pro/mcp-ui 0.10.13-nightly.202510290902 → 0.10.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +7 -7
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x5f14e5=_0x1d93;(function(_0x234a7b,_0x106ccc){const _0x5e01e7=_0x1d93,_0x324320=_0x234a7b();while(!![]){try{const _0x248890=parseInt(_0x5e01e7(0x1f3))/0x1*(-parseInt(_0x5e01e7(0x220))/0x2)+parseInt(_0x5e01e7(0x20a))/0x3+parseInt(_0x5e01e7(0x2eb))/0x4*(parseInt(_0x5e01e7(0x2d7))/0x5)+parseInt(_0x5e01e7(0x2d5))/0x6*(-parseInt(_0x5e01e7(0x336))/0x7)+parseInt(_0x5e01e7(0x202))/0x8+-parseInt(_0x5e01e7(0x2ec))/0x9+-parseInt(_0x5e01e7(0x29d))/0xa;if(_0x248890===_0x106ccc)break;else _0x324320['push'](_0x324320['shift']());}catch(_0x34d07f){_0x324320['push'](_0x324320['shift']());}}}(_0xbf3a,0xdc644));function _0xbf3a(){const _0x5af8cc=['tag','close-icon','defs','Enable\x20authentication\x20for\x20secure\x20connections','Error','点击连接\x20MCP','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','mcpConfig.description','mcpConfig.title','_initializeCommands','BuiltInUIPart','_config$','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','配置保存失败','enUS','_uiPartsService','Authorization:','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','connectInjector','会话\x20ID\x20已被占用,请稍后再试','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','_localeService','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','univer-size-2\x20univer-rounded-full','__setCustomHeaders','mcpStatus.disconnected','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','_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','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','connectionError$','_initConfigSync','1799371pBVGMS','url(#on-line-icon_clip0_910_349)','CONNECTING','univer-bg-gray-500','replace','连接中...','Button','_config','权限验证失败,请检查您的\x20API\x20密钥','getConfig','svg','Configuration\x20saved\x20successfully','mcp-ui.command.openConfigPanel','_mcpCoreConfig$','toStringTag','Enable\x20Authentication','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','useObservable','univerjs-icon\x20univerjs-icon-','apiKey','Input','UniverMCPUIPlugin','mcpConfig.connectionError.maxRetriesExceeded','next','HelpIcon','_commandService','API\x20Key','getCurrentConfig','stringify','createElement','mcpConfig.configStepTitle','Connecting...','CloseIcon','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20连接失败','univer-flex\x20univer-gap-3','univer-text-yellow-500','MCPUIMenuController','BehaviorSubject','IMessageService','showConfigPanel','https://console.univer.ai','mcp-config-dialog','mcpConfig.connectionStatus.retrying','OpenMCPConfigPanelCommand','Bearer\x20','fill','bottom','mcpStatus.connected','_validateConfig','mcpConfig.connectionError.networkError','MCP\x20Unknown\x20Status','univer-flex\x20univer-items-center\x20univer-gap-2','error','Click\x20to\x20connect\x20MCP','重启您的\x20MCP\x20客户端以使配置生效','enableAutoConnect','_dialogService','RETRYING','Inject','MCPConfigUIController','span','_messageService','mcpConfig.connectionStatus.connecting','removeItem','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','mcpConfig.validation.apiKeyTooShort','FAILED','defineProperty','mcpStatus.clickToConnect','mergeMenu','Connected','mcp.apiKey','配置\x20MCP\x20使用\x20AI\x20操作电子表格','displayName','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','get','IConfigService','SESSION_ID_OCCUPIED','28eBXUCw','value','MCP\x20状态未知','univer-bg-red-500','MCP:\x20Session\x20ID\x20Occupied','showDeveloperTools','url(#$1','getItem','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','ComponentManager','mcpConfig.connectionError.unauthorized','Save\x20Configuration','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','univer-text-xs\x20univer-text-gray-600','http','10739664szybDk','MAX_RETRIES_EXCEEDED','errorMessage','pluginName','mcpConfig.configError','您的\x20API\x20密钥将在此浏览器中本地存储','_loadStoredApiKey','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','4302813rKdbVE','xlink:href','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','Max\x20Retries','API\x20key\x20with\x20Bearer\x20prefix.','将配置添加到您的\x20MCP\x20客户端设置文件中','Univer\x20AI\x20控制台','MCP\x20已连接','CommandType','MCP:\x20Unauthorized','https://mcp.univer.ai/mcp/?univer_session_id=','round','_mcpConnectionController','配置参数:','trim','setConfig','mcpStatus.unknown','LocaleService','_menuManagerService','mask','MCP\x20Client\x20Configuration','univer-text-red-500','64696baykAe','none','random','univer-text-blue-600','on-line-icon','show','mcpConfig.connectionError.sessionOccupied','MCPStatusDisplay','univer.plus','MCP:\x20超出最大重试次数','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','univer-text-gray-400','mcpConfig.note2','univer-text-green-500','univer-font-medium','useDependency','univer-shrink-0\x20univer-text-blue-500','Enter\x20your\x20API\x20key','mcpConfig.apiApplyInfo.title','MCP:\x20会话\x20ID\x20已被占用','currentColor','on-line-icon_clip0_910_349','mcpConfig.configSaved','connectionStatus$','_logService','DependentOn','0\x200\x2017\x2016','RibbonStartGroup','NONE','zhCN','API\x20密钥不能为空','API\x20密钥无效,请检查密钥是否正确','path','mcpConfig.apiKeyHint','CheckMarkIcon','Configuration\x20Parameters:','MCP\x20Connected','MCP_UI_PLUGIN','useState','pre','您的\x20API\x20密钥安全存储在本地存储中','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','disposeWithMe','evenodd','jsxs','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','_loading$','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','merge','_configService','API\x20key\x20is\x20required','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','jsx','mcpConfig.configStep3','MCP:\x20网络错误','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','univer-flex-1','MCPConnectionController','registerComponent','mcpConfig.configStep1','_registerComponent','clipPath','IMenuManagerService','Session\x20ID','mcpStatus.connecting','translate(.97)','univer.ai','univer_session_id:','IUIPartsService','mcpStatus.failed','off-line-icon','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','Failed\x20to\x20save\x20configuration','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','Click\x20to\x20configure\x20MCP','HEADER_MENU','\x20-\x20','Saving...','useRef','getOwnPropertyDescriptor','validateApiKey','MCP\x20客户端配置','mcpConfig.configInstructions','MCP\x20重连中...','mcpConfig.connectionStatus.connected','UniverIcon','UniverMCPPlugin','substring','children','Retrying...','_handleConfigure','MCP\x20Configuration','univer-text-xs\x20univer-text-gray-500','univer-min-w-0\x20univer-flex-1','MCPConnectionError','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','mcpStatus.maxRetriesExceeded','white','toString','close','univer-shrink-0\x20univer-text-red-500','MenuIcon','text','NETWORK_ERROR','useCallback','push','mcpConfig.saving','WebSocketService','MCPConnectionUIController','Disconnected','univer-space-y-4','isValid','registerCommand','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','button','entries','mcpStatus.sessionOccupied','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','0\x200\x2016\x2016','univer-space-y-2','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','MCPConnectionStatus','mcpConfig.authorizationDescription','forwardRef','mcpConfig.save','21172170LJiZAi','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','map','ILogService','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','重连中...','几秒钟内获取您的\x20API\x20密钥','length','M0\x200H16V16H0z','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','mcpConfig.configStep2','\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','CONNECTED','symbol','<SESSION_ID>','将以下配置添加到您的\x20MCP\x20客户端设置中:','_createConfigPanelComponent','Injector','MCP\x20Connection\x20Failed','保存中...','mcpConfig.apiApplyInfo.getStarted','DISCONNECTED','复制以下\x20JSON\x20配置','idSuffix','off','Module','univer-bg-blue-500','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','mcpConfig.apiKey','_handleConfigSave','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','1em','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP_PLUGIN_CONFIG_KEY','register','What\x20is\x20API\x20Key?','has','COMMAND','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','warn','MCP\x20连接中...','string','onStarting','univer-bg-green-500','MCP\x20已断开','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','保存配置','mcpServerUrl','univer-flex\x20univer-flex-wrap\x20univer-gap-2','https://console.univer.plus','配置无效','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','sessionId$','subscribeConfigValue$','连接失败','12elUFCq','univer-text-sm\x20univer-text-gray-500','8668580XmXtoh','off-line-icon_clip0_910_343','showStatus','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','超出最大重试次数,请稍后再试','mcpConfig.sessionIdDescription','UNAUTHORIZED','Disposable','use','MCP\x20配置','Connection\x20Failed','div','OnLineIcon','Configuration\x20Notes:','未连接','Invalid\x20configuration','mcpConfig.apiKeyPlaceholder','什么是\x20API\x20密钥?','mcpStatus.clickToConfigure','BUTTON','4oxjVsZ','635886sUFkQO','includes','已连接','assign','MCPConfigPanel','mcp-ui.config','MenuItemType','最大重试次数','MCP\x20Connecting...','mcpConfig.note1','univer-text-white','Copy\x20the\x20JSON\x20configuration\x20below','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','_initAutoConnect','univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','univer-flex\x20univer-items-start\x20univer-gap-2','MessageType','subscribe','noopener\x20noreferrer','_localStorageService','clsx','_apiKey$','colorChannel1','univer-flex\x20univer-items-center','open','_connectionController','MCP\x20Disconnected','univer-flex\x20univer-items-start\x20univer-gap-3','attrs','univer-mr-2\x20univer-flex\x20univer-text-xl','OTHERS','_injector','univer-size-4','label','ILocalStorageService','http://www.w3.org/2000/svg','IDialogService','univer-text-sm\x20univer-font-medium','mcpConfig.connectionStatus.failed','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','forEach'];_0xbf3a=function(){return _0x5af8cc;};return _0xbf3a();}var ae=Object[_0x5f14e5(0x1e8)],le=(_0x562b9a,_0x5188e5,_0x5eb2d0)=>_0x5188e5 in _0x562b9a?ae(_0x562b9a,_0x5188e5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5eb2d0}):_0x562b9a[_0x5188e5]=_0x5eb2d0,I=(_0x14856d,_0x2d103d,_0x2ecc7f)=>le(_0x14856d,typeof _0x2d103d!=_0x5f14e5(0x2aa)?_0x2d103d+'':_0x2d103d,_0x2ecc7f);Object[_0x5f14e5(0x1e8)](exports,Symbol[_0x5f14e5(0x344)],{'value':_0x5f14e5(0x2b6)});const u=require('@univerjs/core'),i=require('react/jsx-runtime'),s=require('@univerjs-pro/mcp'),f=require('@univerjs/design'),v=require('@univerjs/ui'),M=require('rxjs'),d=require('react'),A=require('@univerjs/network');function _({ref:_0x134898,..._0x301629}){const _0x1c194b=_0x5f14e5,{icon:_0x321fda,id:_0x454b78,className:_0x4c034d,extend:_0x1fcdb0,..._0x33dcca}=_0x301629,_0x4baa73=(_0x1c194b(0x348)+_0x454b78+'\x20'+(_0x4c034d||''))[_0x1c194b(0x218)](),_0x29d319=d[_0x1c194b(0x26e)]('_'+de());return G(_0x321fda,''+_0x454b78,{'defIds':_0x321fda['defIds'],'idSuffix':_0x29d319['current']},{'ref':_0x134898,'className':_0x4baa73,..._0x33dcca},_0x1fcdb0);}function G(_0x2bbcd8,_0x48ad76,_0xbddc84,_0x57ba7c,_0x992bf9){const _0x2c00aa=_0x5f14e5;return d[_0x2c00aa(0x353)](_0x2bbcd8['tag'],{'key':_0x48ad76,...ue(_0x2bbcd8,_0xbddc84,_0x992bf9),..._0x57ba7c},(ve(_0x2bbcd8,_0xbddc84)['children']||[])['map']((_0x2218da,_0x3505dd)=>G(_0x2218da,_0x48ad76+'-'+_0x2bbcd8[_0x2c00aa(0x315)]+'-'+_0x3505dd,_0xbddc84,void 0x0,_0x992bf9)));}function ue(_0x172210,_0x2aa02d,_0x39b2de){const _0x301a13=_0x5f14e5,_0x1ec37f={..._0x172210['attrs']};_0x39b2de!=null&&_0x39b2de[_0x301a13(0x302)]&&_0x1ec37f[_0x301a13(0x364)]==='colorChannel1'&&(_0x1ec37f[_0x301a13(0x364)]=_0x39b2de[_0x301a13(0x302)]),_0x172210[_0x301a13(0x315)]===_0x301a13(0x21d)&&_0x1ec37f['id']&&(_0x1ec37f['id']=_0x1ec37f['id']+_0x2aa02d[_0x301a13(0x2b4)]),Object[_0x301a13(0x293)](_0x1ec37f)[_0x301a13(0x314)](([_0x570735,_0x2c0d03])=>{const _0x412633=_0x301a13;_0x570735===_0x412633(0x21d)&&typeof _0x2c0d03==_0x412633(0x2c7)&&(_0x1ec37f[_0x570735]=_0x2c0d03[_0x412633(0x33a)](/url\(#(.*)\)/,_0x412633(0x1f9)+_0x2aa02d[_0x412633(0x2b4)]+')'));});const {defIds:_0x3705cc}=_0x2aa02d;return!_0x3705cc||_0x3705cc[_0x301a13(0x2a4)]===0x0||(_0x172210[_0x301a13(0x315)]===_0x301a13(0x2df)&&_0x1ec37f[_0x301a13(0x20b)]&&(_0x1ec37f['xlink:href']=_0x1ec37f['xlink:href']+_0x2aa02d[_0x301a13(0x2b4)]),Object[_0x301a13(0x293)](_0x1ec37f)[_0x301a13(0x314)](([_0x5c67eb,_0x428b2e])=>{const _0x3a22dd=_0x301a13;typeof _0x428b2e==_0x3a22dd(0x2c7)&&(_0x1ec37f[_0x5c67eb]=_0x428b2e[_0x3a22dd(0x33a)](/url\(#(.*)\)/,'url(#$1'+_0x2aa02d['idSuffix']+')'));})),_0x1ec37f;}function ve(_0x151a35,_0x26edb1){const _0x2aec82=_0x5f14e5;var _0x4d77da;const {defIds:_0x285203}=_0x26edb1;return!_0x285203||_0x285203[_0x2aec82(0x2a4)]===0x0?_0x151a35:_0x151a35['tag']===_0x2aec82(0x317)&&((_0x4d77da=_0x151a35[_0x2aec82(0x278)])!=null&&_0x4d77da[_0x2aec82(0x2a4)])?{..._0x151a35,'children':_0x151a35[_0x2aec82(0x278)][_0x2aec82(0x29f)](_0xffb390=>typeof _0xffb390['attrs']['id']==_0x2aec82(0x2c7)&&_0x285203&&_0x285203[_0x2aec82(0x2ed)](_0xffb390[_0x2aec82(0x308)]['id'])?{..._0xffb390,'attrs':{..._0xffb390[_0x2aec82(0x308)],'id':_0xffb390['attrs']['id']+_0x26edb1[_0x2aec82(0x2b4)]}}:_0xffb390)}:_0x151a35;}function de(){const _0x1b3cee=_0x5f14e5;return Math[_0x1b3cee(0x222)]()[_0x1b3cee(0x282)](0x24)[_0x1b3cee(0x277)](0x2,0x8);}_[_0x5f14e5(0x1ee)]=_0x5f14e5(0x275);const Ce={'tag':_0x5f14e5(0x340),'attrs':{'xmlns':_0x5f14e5(0x30f),'fill':_0x5f14e5(0x221),'viewBox':_0x5f14e5(0x296),'width':_0x5f14e5(0x2bc),'height':'1em'},'children':[{'tag':_0x5f14e5(0x240),'attrs':{'fill':_0x5f14e5(0x234),'d':_0x5f14e5(0x31b),'fillRule':_0x5f14e5(0x24b),'clipRule':_0x5f14e5(0x24b)}}]},H=d['forwardRef'](function(_0xde5cce,_0x4b8c3b){const _0x45b399=_0x5f14e5;return d[_0x45b399(0x353)](_,Object['assign']({},_0xde5cce,{'id':'check-mark-icon','ref':_0x4b8c3b,'icon':Ce}));});H[_0x5f14e5(0x1ee)]=_0x5f14e5(0x242);const ge={'tag':'svg','attrs':{'xmlns':_0x5f14e5(0x30f),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x5f14e5(0x2bc),'height':_0x5f14e5(0x2bc)},'children':[{'tag':_0x5f14e5(0x240),'attrs':{'fill':'currentColor','d':_0x5f14e5(0x24d)}}]},B=d['forwardRef'](function(_0x24a446,_0x3a3492){const _0x4d1356=_0x5f14e5;return d[_0x4d1356(0x353)](_,Object[_0x4d1356(0x2ef)]({},_0x24a446,{'id':_0x4d1356(0x316),'ref':_0x3a3492,'icon':ge}));});B['displayName']=_0x5f14e5(0x356);const fe={'tag':_0x5f14e5(0x340),'attrs':{'xmlns':_0x5f14e5(0x30f),'fill':_0x5f14e5(0x221),'viewBox':_0x5f14e5(0x296),'width':_0x5f14e5(0x2bc),'height':_0x5f14e5(0x2bc)},'children':[{'tag':_0x5f14e5(0x240),'attrs':{'fill':'currentColor','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':_0x5f14e5(0x240),'attrs':{'fill':'currentColor','d':_0x5f14e5(0x253)}},{'tag':_0x5f14e5(0x240),'attrs':{'fill':'currentColor','d':'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','fillRule':_0x5f14e5(0x24b),'clipRule':_0x5f14e5(0x24b)}}]},F=d[_0x5f14e5(0x29b)](function(_0x590de6,_0x2ccc3d){const _0x2f4c61=_0x5f14e5;return d[_0x2f4c61(0x353)](_,Object['assign']({},_0x590de6,{'id':'help-icon','ref':_0x2ccc3d,'icon':fe}));});F['displayName']=_0x5f14e5(0x34e);const pe={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x5f14e5(0x221),'viewBox':_0x5f14e5(0x296),'width':_0x5f14e5(0x2bc),'height':_0x5f14e5(0x2bc)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':_0x5f14e5(0x234),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x5f14e5(0x215),'strokeLinejoin':_0x5f14e5(0x215),'strokeWidth':1.2}}]},{'tag':_0x5f14e5(0x317),'attrs':{},'children':[{'tag':_0x5f14e5(0x25d),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x5f14e5(0x240),'attrs':{'fill':_0x5f14e5(0x281),'d':_0x5f14e5(0x2a5)}}]}]}],'defIds':[_0x5f14e5(0x2d8)]},Y=d[_0x5f14e5(0x29b)](function(_0x29dbfd,_0x328849){const _0xb1a310=_0x5f14e5;return d[_0xb1a310(0x353)](_,Object[_0xb1a310(0x2ef)]({},_0x29dbfd,{'id':_0xb1a310(0x266),'ref':_0x328849,'icon':pe}));});Y[_0x5f14e5(0x1ee)]='OffLineIcon';const he={'tag':'svg','attrs':{'xmlns':_0x5f14e5(0x30f),'fill':_0x5f14e5(0x221),'viewBox':_0x5f14e5(0x23a),'width':_0x5f14e5(0x2bc),'height':_0x5f14e5(0x2bc)},'children':[{'tag':'g','attrs':{'clipPath':_0x5f14e5(0x337)},'children':[{'tag':_0x5f14e5(0x240),'attrs':{'stroke':_0x5f14e5(0x234),'d':'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','strokeLinecap':'round','strokeLinejoin':_0x5f14e5(0x215),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x5f14e5(0x25d),'attrs':{'id':_0x5f14e5(0x235)},'children':[{'tag':'path','attrs':{'fill':'white','d':_0x5f14e5(0x2a5),'transform':_0x5f14e5(0x261)}}]}]}],'defIds':[_0x5f14e5(0x235)]},q=d[_0x5f14e5(0x29b)](function(_0x50080f,_0x5eefa2){const _0x54e300=_0x5f14e5;return d[_0x54e300(0x353)](_,Object['assign']({},_0x50080f,{'id':_0x54e300(0x224),'ref':_0x5eefa2,'icon':he}));});q[_0x5f14e5(0x1ee)]=_0x5f14e5(0x2e3);function V(_0x68bbc2){const _0x1d0bcd=_0x5f14e5;var _0x33cffe,_0x2c75c9;const {mcpCoreConfig:_0x50f2a3,onSave:_0x505f01,loading:_0x2e93f5=!0x1,config:_0x4187e1,connectionStatus$:_0x3871cf,connectionError$:_0x298395,currentApiKey$:_0x24404b,currentSessionId$:_0x53cb9a}=_0x68bbc2,_0x5372b5=v[_0x1d0bcd(0x22f)](u[_0x1d0bcd(0x21b)]),_0x1d56fc=v[_0x1d0bcd(0x347)](_0x3871cf,s[_0x1d0bcd(0x299)][_0x1d0bcd(0x2b2)]),_0xef5288=v[_0x1d0bcd(0x347)](_0x298395,s[_0x1d0bcd(0x27e)][_0x1d0bcd(0x23c)]),_0x3f573a=v['useObservable'](_0x53cb9a,''),_0x31114b=v[_0x1d0bcd(0x347)](_0x24404b,''),[_0x226571,_0x1fa1d4]=d[_0x1d0bcd(0x246)](_0x31114b||''),_0x31dd70=!0x0,_0xd1c64a=_0x4187e1[_0x1d0bcd(0x1f8)]&&_0x50f2a3[_0x1d0bcd(0x2cd)]&&(_0x50f2a3[_0x1d0bcd(0x2cd)][_0x1d0bcd(0x2ed)](_0x1d0bcd(0x228))||_0x50f2a3[_0x1d0bcd(0x2cd)][_0x1d0bcd(0x2ed)](_0x1d0bcd(0x262))),_0x1257cc=(_0x33cffe=_0x50f2a3[_0x1d0bcd(0x2cd)])==null?void 0x0:_0x33cffe[_0x1d0bcd(0x2ed)](_0x1d0bcd(0x228)),_0x3285c3=(_0x2c75c9=_0x50f2a3[_0x1d0bcd(0x2cd)])==null?void 0x0:_0x2c75c9[_0x1d0bcd(0x2ed)](_0x1d0bcd(0x262)),_0x202f95=_0x1257cc?_0x1d0bcd(0x2cf):_0x1d0bcd(0x35f),_0x483eea=_0x4187e1[_0x1d0bcd(0x1f8)]&&(_0x1257cc||_0x3285c3),[_0x1cea1b,_0xa58d51]=d[_0x1d0bcd(0x246)](!_0x226571['trim']()),_0x584f8d=(_0x23b79f,_0x4ab3cd)=>{const _0x1fc757=_0x1d0bcd;if(_0x4ab3cd===s['MCPConnectionError'][_0x1fc757(0x2dd)])return _0x1fc757(0x326);switch(_0x23b79f){case s[_0x1fc757(0x299)][_0x1fc757(0x2a9)]:return _0x1fc757(0x22a);case s[_0x1fc757(0x299)][_0x1fc757(0x338)]:case s[_0x1fc757(0x299)][_0x1fc757(0x370)]:return _0x1fc757(0x267);case s[_0x1fc757(0x299)][_0x1fc757(0x1e7)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x565996=(_0x16320d,_0xebabf0)=>{const _0x14ed53=_0x1d0bcd;if(_0xebabf0===s[_0x14ed53(0x27e)]['UNAUTHORIZED'])return _0x14ed53(0x1f6);switch(_0x16320d){case s['MCPConnectionStatus'][_0x14ed53(0x2a9)]:return _0x14ed53(0x2c9);case s[_0x14ed53(0x299)][_0x14ed53(0x338)]:case s[_0x14ed53(0x299)][_0x14ed53(0x370)]:return _0x14ed53(0x2b7);case s['MCPConnectionStatus'][_0x14ed53(0x1e7)]:return _0x14ed53(0x1f6);default:return _0x14ed53(0x339);}},_0x3126c9=_0x46e0a0=>{const _0x34a367=_0x1d0bcd;switch(_0x46e0a0){case s['MCPConnectionStatus'][_0x34a367(0x2a9)]:return _0x5372b5['t'](_0x34a367(0x274));case s[_0x34a367(0x299)][_0x34a367(0x338)]:return _0x5372b5['t'](_0x34a367(0x375));case s[_0x34a367(0x299)][_0x34a367(0x1e7)]:return _0x5372b5['t'](_0x34a367(0x312));case s[_0x34a367(0x299)][_0x34a367(0x370)]:return _0x5372b5['t'](_0x34a367(0x361));default:return _0x5372b5['t']('mcpConfig.connectionStatus.disconnected');}},_0x4c32d9=_0x332171=>{const _0x24a0c3=_0x1d0bcd;switch(_0x332171){case s[_0x24a0c3(0x27e)][_0x24a0c3(0x2dd)]:return _0x5372b5['t'](_0x24a0c3(0x1fd));case s['MCPConnectionError'][_0x24a0c3(0x1f2)]:return _0x5372b5['t'](_0x24a0c3(0x226));case s[_0x24a0c3(0x27e)][_0x24a0c3(0x287)]:return _0x5372b5['t'](_0x24a0c3(0x368));case s[_0x24a0c3(0x27e)][_0x24a0c3(0x203)]:return _0x5372b5['t'](_0x24a0c3(0x34c));default:return'';}},_0x1647a7=d[_0x1d0bcd(0x288)](()=>{const _0x3b7e7b=_0x1d0bcd,_0x18018c={..._0x50f2a3,'apiKey':_0x226571[_0x3b7e7b(0x218)](),'enableAuth':_0x31dd70};_0x505f01(_0x18018c);},[_0x50f2a3,_0x226571,_0x31dd70,_0x505f01]),_0x14ff1c=_0x226571['trim']()[_0x1d0bcd(0x2a4)]>0x0;return i['jsxs'](_0x1d0bcd(0x2e2),{'className':_0x1d0bcd(0x295),'children':[i[_0x1d0bcd(0x254)](_0x1d0bcd(0x2e2),{'className':_0x1d0bcd(0x2f8),'children':i[_0x1d0bcd(0x24c)](_0x1d0bcd(0x2e2),{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[i['jsx'](_0x1d0bcd(0x2e2),{'className':'univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','children':i[_0x1d0bcd(0x254)](_0x1d0bcd(0x373),{'className':_0x1d0bcd(0x2f6),'children':'⚙'})}),i[_0x1d0bcd(0x254)](_0x1d0bcd(0x2e2),{'children':i['jsx']('p',{'className':_0x1d0bcd(0x2d6),'children':_0x5372b5['t'](_0x1d0bcd(0x31c))})})]})}),i[_0x1d0bcd(0x24c)](_0x1d0bcd(0x2e2),{'className':_0x1d0bcd(0x1ff),'children':[i['jsx'](_0x1d0bcd(0x2e2),{'className':f[_0x1d0bcd(0x300)]('univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2',_0x584f8d(_0x1d56fc,_0xef5288)),'children':i[_0x1d0bcd(0x24c)]('div',{'className':_0x1d0bcd(0x36a),'children':[i['jsx'](_0x1d0bcd(0x2e2),{'className':f['clsx'](_0x1d0bcd(0x32c),_0x565996(_0x1d56fc,_0xef5288))}),i[_0x1d0bcd(0x254)](_0x1d0bcd(0x373),{'className':_0x1d0bcd(0x311),'children':_0x3126c9(_0x1d56fc)})]})}),_0xef5288!==s[_0x1d0bcd(0x27e)][_0x1d0bcd(0x23c)]&&(_0x1d56fc===s['MCPConnectionStatus'][_0x1d0bcd(0x1e7)]||_0xef5288===s['MCPConnectionError']['UNAUTHORIZED'])&&i[_0x1d0bcd(0x254)]('div',{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':i[_0x1d0bcd(0x24c)](_0x1d0bcd(0x2e2),{'className':_0x1d0bcd(0x2fb),'children':[i[_0x1d0bcd(0x254)](_0x1d0bcd(0x373),{'className':_0x1d0bcd(0x284),'children':'⚠️'}),i[_0x1d0bcd(0x254)]('p',{'className':_0x1d0bcd(0x2cb),'children':_0x4c32d9(_0xef5288)})]})})]}),i['jsx'](_0x1d0bcd(0x2e2),{'className':_0x1d0bcd(0x269),'children':i[_0x1d0bcd(0x24c)](_0x1d0bcd(0x2e2),{'className':'univer-space-y-5','children':[i[_0x1d0bcd(0x24c)](_0x1d0bcd(0x2e2),{'className':_0x1d0bcd(0x297),'children':[i['jsxs'](_0x1d0bcd(0x30d),{'className':_0x1d0bcd(0x330),'children':[i[_0x1d0bcd(0x254)](_0x1d0bcd(0x373),{'children':'🔑'}),'\x20',_0x5372b5['t'](_0x1d0bcd(0x2b9)),i[_0x1d0bcd(0x254)]('span',{'className':_0x1d0bcd(0x21f),'children':'*'}),_0xd1c64a&&i[_0x1d0bcd(0x254)]('a',{'className':_0x1d0bcd(0x2fa),'title':_0x5372b5['t'](_0x1d0bcd(0x232)),'role':_0x1d0bcd(0x292),'onClick':()=>_0xa58d51(!0x0),'children':i[_0x1d0bcd(0x254)](F,{})})]}),i[_0x1d0bcd(0x254)](f[_0x1d0bcd(0x34a)],{'type':_0x1d0bcd(0x286),'placeholder':_0x5372b5['t'](_0x1d0bcd(0x2e7)),'value':_0x226571,'disabled':_0x2e93f5,'autoComplete':_0x1d0bcd(0x2b5),'onChange':_0x1fa1d4}),i['jsx']('p',{'className':_0x1d0bcd(0x27c),'children':_0x5372b5['t'](_0x1d0bcd(0x241))})]}),_0xd1c64a&&_0x1cea1b&&i['jsxs'](_0x1d0bcd(0x2e2),{'className':'univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','children':[i[_0x1d0bcd(0x254)]('a',{'className':'univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','role':_0x1d0bcd(0x292),'onClick':()=>_0xa58d51(!0x1),'children':i[_0x1d0bcd(0x254)](B,{'className':_0x1d0bcd(0x30c)})}),i['jsxs'](_0x1d0bcd(0x2e2),{'className':_0x1d0bcd(0x32f),'children':[i[_0x1d0bcd(0x254)](_0x1d0bcd(0x2e2),{'className':_0x1d0bcd(0x27f),'children':i['jsx'](_0x1d0bcd(0x373),{'className':_0x1d0bcd(0x223),'children':'🚀'})}),i['jsxs']('div',{'className':_0x1d0bcd(0x258),'children':[i[_0x1d0bcd(0x254)]('h4',{'className':_0x1d0bcd(0x2a1),'children':_0x5372b5['t']('mcpConfig.apiApplyInfo.title')}),i[_0x1d0bcd(0x254)]('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x5372b5['t']('mcpConfig.apiApplyInfo.description')}),i[_0x1d0bcd(0x254)]('div',{'className':_0x1d0bcd(0x2ce),'children':_0x483eea&&i[_0x1d0bcd(0x24c)]('a',{'className':_0x1d0bcd(0x2a6),'href':_0x202f95,'target':'_blank','rel':_0x1d0bcd(0x2fe),'children':[i[_0x1d0bcd(0x254)](_0x1d0bcd(0x373),{'children':'🤖'}),_0x5372b5['t']('mcpConfig.apiApplyInfo.univerAiLabel'),i['jsx'](_0x1d0bcd(0x373),{'className':_0x1d0bcd(0x22b),'children':'↗'})]})}),i['jsxs'](_0x1d0bcd(0x2e2),{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x5372b5['t'](_0x1d0bcd(0x2b1))]})]})]})]}),_0x4187e1[_0x1d0bcd(0x1f8)]&&i['jsxs']('div',{'className':_0x1d0bcd(0x2bb),'children':[i[_0x1d0bcd(0x24c)]('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[i[_0x1d0bcd(0x254)](_0x1d0bcd(0x373),{'children':'🔗'}),'\x20',_0x5372b5['t']('mcpConfig.connectionInfo')]}),i[_0x1d0bcd(0x24c)](_0x1d0bcd(0x2e2),{'className':_0x1d0bcd(0x28e),'children':[i[_0x1d0bcd(0x24c)](_0x1d0bcd(0x2e2),{'className':'univer-space-y-3','children':[i['jsx']('p',{'className':_0x1d0bcd(0x200),'children':_0x5372b5['t'](_0x1d0bcd(0x272))}),i[_0x1d0bcd(0x24c)](_0x1d0bcd(0x2e2),{'className':_0x1d0bcd(0x297),'children':[i['jsx'](_0x1d0bcd(0x2e2),{'className':_0x1d0bcd(0x329),'children':_0x5372b5['t'](_0x1d0bcd(0x354))}),i[_0x1d0bcd(0x24c)](_0x1d0bcd(0x2e2),{'className':_0x1d0bcd(0x2c4),'children':[i[_0x1d0bcd(0x24c)](_0x1d0bcd(0x2e2),{'className':_0x1d0bcd(0x36a),'children':[i['jsx'](_0x1d0bcd(0x373),{'className':_0x1d0bcd(0x332),'children':'1'}),_0x5372b5['t'](_0x1d0bcd(0x25b))]}),i[_0x1d0bcd(0x24c)](_0x1d0bcd(0x2e2),{'className':_0x1d0bcd(0x36a),'children':[i[_0x1d0bcd(0x254)](_0x1d0bcd(0x373),{'className':_0x1d0bcd(0x332),'children':'2'}),_0x5372b5['t'](_0x1d0bcd(0x2a7))]}),i[_0x1d0bcd(0x24c)](_0x1d0bcd(0x2e2),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x1d0bcd(0x254)](_0x1d0bcd(0x373),{'className':_0x1d0bcd(0x332),'children':'3'}),_0x5372b5['t'](_0x1d0bcd(0x255))]})]})]})]}),i[_0x1d0bcd(0x24c)](_0x1d0bcd(0x2e2),{'className':'univer-space-y-2','children':[i[_0x1d0bcd(0x254)](_0x1d0bcd(0x2e2),{'className':_0x1d0bcd(0x329),'children':_0x1d0bcd(0x27b)}),i['jsx'](_0x1d0bcd(0x2e2),{'className':_0x1d0bcd(0x333),'children':i[_0x1d0bcd(0x254)](_0x1d0bcd(0x247),{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':JSON[_0x1d0bcd(0x352)]({'mcpServers':{'univer':{'url':_0x1d0bcd(0x214)+(_0x3f573a||_0x1d0bcd(0x2ab)),'type':_0x1d0bcd(0x201),'headers':{'Authorization':_0x1d0bcd(0x363)+(_0x226571||'<API_KEY>')}}}},null,0x2)})})]}),i[_0x1d0bcd(0x24c)](_0x1d0bcd(0x2e2),{'className':'univer-space-y-3','children':[i[_0x1d0bcd(0x254)]('div',{'className':_0x1d0bcd(0x329),'children':_0x5372b5['t']('mcpConfig.configParameters')}),i[_0x1d0bcd(0x24c)]('div',{'className':_0x1d0bcd(0x297),'children':[i[_0x1d0bcd(0x24c)](_0x1d0bcd(0x2e2),{'className':_0x1d0bcd(0x307),'children':[i['jsx'](_0x1d0bcd(0x2e2),{'className':_0x1d0bcd(0x249)}),i[_0x1d0bcd(0x24c)]('div',{'className':_0x1d0bcd(0x27d),'children':[i[_0x1d0bcd(0x254)](_0x1d0bcd(0x2e2),{'className':_0x1d0bcd(0x2da),'children':_0x1d0bcd(0x263)}),i[_0x1d0bcd(0x254)](_0x1d0bcd(0x2e2),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x5372b5['t'](_0x1d0bcd(0x2dc))})]})]}),i[_0x1d0bcd(0x24c)]('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[i[_0x1d0bcd(0x254)]('div',{'className':_0x1d0bcd(0x249)}),i[_0x1d0bcd(0x24c)](_0x1d0bcd(0x2e2),{'className':_0x1d0bcd(0x27d),'children':[i['jsx']('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x1d0bcd(0x325)}),i[_0x1d0bcd(0x254)](_0x1d0bcd(0x2e2),{'className':_0x1d0bcd(0x27c),'children':_0x5372b5['t'](_0x1d0bcd(0x29a))})]})]})]})]})]})]}),i[_0x1d0bcd(0x254)](f[_0x1d0bcd(0x33c)],{'onClick':_0x1647a7,'disabled':!_0x14ff1c||_0x2e93f5,'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':_0x2e93f5?i[_0x1d0bcd(0x24c)](_0x1d0bcd(0x373),{'className':_0x1d0bcd(0x36a),'children':[i['jsx'](_0x1d0bcd(0x373),{'children':'⟲'}),_0x5372b5['t'](_0x1d0bcd(0x28a))]}):i['jsxs'](_0x1d0bcd(0x373),{'className':_0x1d0bcd(0x36a),'children':[i[_0x1d0bcd(0x254)](H,{}),_0x5372b5['t'](_0x1d0bcd(0x29c))]})}),i[_0x1d0bcd(0x254)](_0x1d0bcd(0x2e2),{'className':_0x1d0bcd(0x1e5),'children':i[_0x1d0bcd(0x24c)](_0x1d0bcd(0x2e2),{'className':_0x1d0bcd(0x359),'children':[i[_0x1d0bcd(0x254)](_0x1d0bcd(0x373),{'className':_0x1d0bcd(0x230),'children':'💡'}),i[_0x1d0bcd(0x24c)](_0x1d0bcd(0x2e2),{'className':_0x1d0bcd(0x20c),'children':[i[_0x1d0bcd(0x254)](_0x1d0bcd(0x2e2),{'className':_0x1d0bcd(0x22e),'children':_0x1d0bcd(0x2e4)}),i[_0x1d0bcd(0x24c)](_0x1d0bcd(0x2e2),{'children':['•',_0x5372b5['t'](_0x1d0bcd(0x2f5))]}),i[_0x1d0bcd(0x24c)](_0x1d0bcd(0x2e2),{'children':['•',_0x5372b5['t'](_0x1d0bcd(0x22c))]})]})]})})]})})]});}const P=_0x5f14e5(0x2f1),L={'showDeveloperTools':!0x1,'showStatus':!0x0};var me=Object[_0x5f14e5(0x26f)],xe=(_0x53c320,_0x531d08,_0x10ad59,_0x46f313)=>{const _0x22cb58=_0x5f14e5;for(var _0x422a0b=_0x46f313>0x1?void 0x0:_0x46f313?me(_0x531d08,_0x10ad59):_0x531d08,_0x1d7eb6=_0x53c320[_0x22cb58(0x2a4)]-0x1,_0x3f4bd1;_0x1d7eb6>=0x0;_0x1d7eb6--)(_0x3f4bd1=_0x53c320[_0x1d7eb6])&&(_0x422a0b=_0x3f4bd1(_0x422a0b)||_0x422a0b);return _0x422a0b;},g=(_0x320e3d,_0x2aa318)=>(_0x5e2b73,_0x23fa49)=>_0x2aa318(_0x5e2b73,_0x23fa49,_0x320e3d);const O=_0x5f14e5(0x1ec),D=_0x5f14e5(0x360);exports[_0x5f14e5(0x372)]=class extends u[_0x5f14e5(0x2de)]{constructor(_0x2096e8,_0x366b69,_0x25f8f0,_0x4918f2,_0x4c0a8d,_0xa6dd1a,_0x453bb0,_0xc4e450,_0x150964,_0x51a40f){const _0x1210f7=_0x5f14e5;super(),I(this,_0x1210f7(0x24e),new M[(_0x1210f7(0x35c))](!0x1)),I(this,_0x1210f7(0x343),new M['BehaviorSubject']({})),I(this,_0x1210f7(0x320),new M['BehaviorSubject']({})),I(this,_0x1210f7(0x301),new M['BehaviorSubject']('')),I(this,_0x1210f7(0x2ba),async _0xe94213=>{const _0xf092f7=_0x1210f7;var _0x106de7,_0x42a1f3;this[_0xf092f7(0x24e)][_0xf092f7(0x34d)](!0x0);try{const _0xe93400=await this[_0xf092f7(0x367)](_0xe94213);if(!_0xe93400[_0xf092f7(0x28f)]){this[_0xf092f7(0x374)][_0xf092f7(0x225)]({'type':f[_0xf092f7(0x2fc)]['Error'],'content':_0xe93400[_0xf092f7(0x204)]||this['_localeService']['t']('mcpConfig.validation.invalidConfig')});return;}_0xe94213['apiKey']?await this['_localStorageService']['setItem'](O,_0xe94213[_0xf092f7(0x349)]['trim']()):await this[_0xf092f7(0x2ff)][_0xf092f7(0x1e4)](O),this[_0xf092f7(0x301)][_0xf092f7(0x34d)](((_0x106de7=_0xe94213['apiKey'])==null?void 0x0:_0x106de7[_0xf092f7(0x218)]())||''),this[_0xf092f7(0x216)]['__setCustomHeaders']({'Authorization':'Bearer\x20'+((_0x42a1f3=_0xe94213[_0xf092f7(0x349)])==null?void 0x0:_0x42a1f3[_0xf092f7(0x218)]())}),this[_0xf092f7(0x374)][_0xf092f7(0x225)]({'type':f['MessageType']['Success'],'content':this[_0xf092f7(0x32a)]['t'](_0xf092f7(0x236))}),setTimeout(()=>{const _0x4689d1=_0xf092f7;this['_dialogService'][_0x4689d1(0x283)](D);},0x320);}catch(_0x533a6b){this[_0xf092f7(0x238)]['error'](_0xf092f7(0x1fb),_0x533a6b),this[_0xf092f7(0x374)][_0xf092f7(0x225)]({'type':f['MessageType'][_0xf092f7(0x319)],'content':this[_0xf092f7(0x32a)]['t'](_0xf092f7(0x206))});}finally{this[_0xf092f7(0x24e)]['next'](!0x1);}}),(this[_0x1210f7(0x30b)]=_0x2096e8,this[_0x1210f7(0x324)]=_0x366b69,this[_0x1210f7(0x251)]=_0x25f8f0,this[_0x1210f7(0x2ff)]=_0x4918f2,this['_dialogService']=_0x4c0a8d,this[_0x1210f7(0x374)]=_0xa6dd1a,this['_componentManager']=_0x453bb0,this['_localeService']=_0xc4e450,this[_0x1210f7(0x238)]=_0x150964,this[_0x1210f7(0x216)]=_0x51a40f,this[_0x1210f7(0x335)](),this['_loadStoredApiKey'](),this[_0x1210f7(0x25c)]());}[_0x5f14e5(0x35e)](){const _0x55c6d4=_0x5f14e5,_0x2d6479=this['_configService'][_0x55c6d4(0x33f)](P);_0x2d6479!=null&&_0x2d6479[_0x55c6d4(0x1f8)]&&this[_0x55c6d4(0x36f)][_0x55c6d4(0x304)]({'id':D,'title':{'title':this['_localeService']['t'](_0x55c6d4(0x31d))},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x8fd759=_0x55c6d4;this['_dialogService'][_0x8fd759(0x283)](D);}});}[_0x5f14e5(0x351)](){const _0x445928=_0x5f14e5;return this[_0x445928(0x343)]['value'];}[_0x5f14e5(0x25c)](){const _0x2a78b8=_0x5f14e5;this[_0x2a78b8(0x24a)](this['_componentManager'][_0x2a78b8(0x2c0)](_0x2a78b8(0x2f0),this[_0x2a78b8(0x2ad)]()));}[_0x5f14e5(0x2ad)](){const _0x508270=_0x5f14e5;return v[_0x508270(0x327)](()=>{const _0x598683=_0x508270;var _0x2544fa,_0x495417,_0xe34126;return i[_0x598683(0x254)](V,{'config':this['_config$']['value'],'mcpCoreConfig':this[_0x598683(0x343)][_0x598683(0x1f4)],'currentApiKey$':this[_0x598683(0x301)],'onSave':this[_0x598683(0x2ba)],'loading':this['_loading$'][_0x598683(0x1f4)],'connectionStatus$':(_0x2544fa=this[_0x598683(0x216)])==null?void 0x0:_0x2544fa['connectionStatus$'],'connectionError$':(_0x495417=this[_0x598683(0x216)])==null?void 0x0:_0x495417[_0x598683(0x334)],'currentSessionId$':(_0xe34126=this[_0x598683(0x216)])==null?void 0x0:_0xe34126[_0x598683(0x2d2)]});},this[_0x508270(0x30b)]);}[_0x5f14e5(0x335)](){const _0x2d245e=_0x5f14e5;this[_0x2d245e(0x24a)](this[_0x2d245e(0x251)]['subscribeConfigValue$'](s[_0x2d245e(0x2bf)])[_0x2d245e(0x2fd)](_0xd1fe6=>{const _0x288cf5=_0x2d245e;this[_0x288cf5(0x343)][_0x288cf5(0x34d)](_0xd1fe6||{});}));const _0xe2f671=this['_configService'][_0x2d245e(0x33f)](s['MCP_PLUGIN_CONFIG_KEY']);this[_0x2d245e(0x343)][_0x2d245e(0x34d)](_0xe2f671||{}),this['disposeWithMe'](this[_0x2d245e(0x251)][_0x2d245e(0x2d3)](P)[_0x2d245e(0x2fd)](_0x1a73f9=>{const _0x382a25=_0x2d245e;this[_0x382a25(0x320)]['next'](_0x1a73f9||{});}));const _0x3ce32e=this[_0x2d245e(0x251)][_0x2d245e(0x33f)](P);this[_0x2d245e(0x320)]['next'](_0x3ce32e||{});}async[_0x5f14e5(0x208)](){const _0x4bfa23=_0x5f14e5,_0x17b55c=this['_configService'][_0x4bfa23(0x33f)](P);if(!(_0x17b55c!=null&&_0x17b55c[_0x4bfa23(0x1f8)]))return;const _0x575922=await this[_0x4bfa23(0x2ff)][_0x4bfa23(0x1fa)](O);_0x575922&&(this[_0x4bfa23(0x216)][_0x4bfa23(0x32d)]({'Authorization':_0x4bfa23(0x363)+_0x575922}),this[_0x4bfa23(0x301)][_0x4bfa23(0x34d)](_0x575922));}async[_0x5f14e5(0x367)](_0x327d53){const _0x44ec02=_0x5f14e5;if(!_0x327d53['apiKey']||_0x327d53[_0x44ec02(0x349)][_0x44ec02(0x218)]()[_0x44ec02(0x2a4)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x44ec02(0x32a)]['t']('mcpConfig.validation.apiKeyRequired')};if(_0x327d53['apiKey'][_0x44ec02(0x218)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0x44ec02(0x32a)]['t'](_0x44ec02(0x1e6))};try{const _0x3d8760=await this[_0x44ec02(0x30b)][_0x44ec02(0x1f0)](s[_0x44ec02(0x259)])[_0x44ec02(0x270)](_0x327d53['apiKey'][_0x44ec02(0x218)]());return _0x3d8760[_0x44ec02(0x28f)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x3d8760[_0x44ec02(0x36b)]||this[_0x44ec02(0x32a)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x7c56e){return console[_0x44ec02(0x2c5)](_0x44ec02(0x313),_0x7c56e),{'isValid':!0x0};}}},exports[_0x5f14e5(0x372)]=xe([g(0x0,u[_0x5f14e5(0x371)](u[_0x5f14e5(0x2ae)])),g(0x1,v[_0x5f14e5(0x264)]),g(0x2,u['IConfigService']),g(0x3,u[_0x5f14e5(0x30e)]),g(0x4,v[_0x5f14e5(0x310)]),g(0x5,v[_0x5f14e5(0x35d)]),g(0x6,u[_0x5f14e5(0x371)](v[_0x5f14e5(0x1fc)])),g(0x7,u['Inject'](u[_0x5f14e5(0x21b)])),g(0x8,u[_0x5f14e5(0x2a0)]),g(0x9,u[_0x5f14e5(0x371)](s[_0x5f14e5(0x259)]))],exports[_0x5f14e5(0x372)]);const b={'id':_0x5f14e5(0x342),'type':u[_0x5f14e5(0x212)][_0x5f14e5(0x2c3)],'handler':async(_0x30ecb0,_0x16b9c0)=>(_0x30ecb0[_0x5f14e5(0x1f0)](exports[_0x5f14e5(0x372)])[_0x5f14e5(0x35e)](),!0x0)};function Z(_0x1f76ec,_0x2e870b){const _0x4b775b=_0x5f14e5;switch(_0x1f76ec){case s[_0x4b775b(0x299)][_0x4b775b(0x2b2)]:return _0x4b775b(0x32e);case s['MCPConnectionStatus']['CONNECTING']:return _0x4b775b(0x260);case s['MCPConnectionStatus'][_0x4b775b(0x2a9)]:return _0x4b775b(0x366);case s[_0x4b775b(0x299)]['FAILED']:switch(_0x2e870b){case s['MCPConnectionError'][_0x4b775b(0x2dd)]:return'mcpStatus.unauthorized';case s[_0x4b775b(0x27e)][_0x4b775b(0x1f2)]:return _0x4b775b(0x294);case s[_0x4b775b(0x27e)][_0x4b775b(0x287)]:return'mcpStatus.networkError';case s[_0x4b775b(0x27e)][_0x4b775b(0x203)]:return _0x4b775b(0x280);default:return _0x4b775b(0x265);}case s[_0x4b775b(0x299)][_0x4b775b(0x370)]:return'mcpStatus.retrying';default:return _0x4b775b(0x21a);}}function Se(_0x14c0a8,_0x40445d,_0x12f605,_0x4456bc=!0x0){const _0x1a306d=_0x5f14e5,_0x4aaef9=Z(_0x14c0a8,_0x40445d),_0x1c1e98=_0x12f605['t'](_0x4aaef9);return _0x4456bc?_0x14c0a8===s[_0x1a306d(0x299)][_0x1a306d(0x2b2)]&&_0x40445d===s[_0x1a306d(0x27e)][_0x1a306d(0x2dd)]?_0x1c1e98+_0x1a306d(0x26c)+_0x12f605['t'](_0x1a306d(0x2e9)):_0x14c0a8===s[_0x1a306d(0x299)][_0x1a306d(0x2a9)]?''+_0x1c1e98:_0x14c0a8===s[_0x1a306d(0x299)][_0x1a306d(0x2b2)]||_0x14c0a8===s[_0x1a306d(0x299)][_0x1a306d(0x1e7)]?_0x1c1e98+_0x1a306d(0x26c)+_0x12f605['t'](_0x1a306d(0x1e9)):_0x1c1e98:_0x1c1e98;}function Pe(_0x3b26ff){const _0x5be7c5=_0x5f14e5;switch(_0x3b26ff){case s[_0x5be7c5(0x299)][_0x5be7c5(0x2a9)]:return _0x5be7c5(0x22d);case s[_0x5be7c5(0x299)][_0x5be7c5(0x338)]:case s[_0x5be7c5(0x299)][_0x5be7c5(0x370)]:return _0x5be7c5(0x35a);case s[_0x5be7c5(0x299)][_0x5be7c5(0x1e7)]:case s[_0x5be7c5(0x299)][_0x5be7c5(0x2b2)]:return _0x5be7c5(0x21f);default:return'univer-text-gray-500';}}function W(_0x1d10ab){const _0x388559=_0x5f14e5,{status$:_0x2e88af,error$:_0x563bf7,onConfigure:_0x103654,showClickable:_0x5c7da4=!0x0}=_0x1d10ab,_0x4023ba=v[_0x388559(0x347)](_0x2e88af,s[_0x388559(0x299)][_0x388559(0x2b2)]),_0x1f007b=v[_0x388559(0x347)](_0x563bf7,s['MCPConnectionError'][_0x388559(0x23c)]),_0x6517d8=v[_0x388559(0x22f)](u[_0x388559(0x21b)]),_0x22ae3a=_0x4023ba===s['MCPConnectionStatus'][_0x388559(0x2a9)];_0x4023ba===s[_0x388559(0x299)][_0x388559(0x338)]||s[_0x388559(0x299)][_0x388559(0x370)];const _0x3eb035=_0x6517d8['t'](Z(_0x4023ba,_0x1f007b)),_0x2220b1=Se(_0x4023ba,_0x1f007b,_0x6517d8,_0x5c7da4),_0x66f05e=Pe(_0x4023ba),_0x4b8794=_0x22ae3a?i[_0x388559(0x254)](q,{}):i['jsx'](Y,{}),_0x3e3882=d['useCallback'](()=>{_0x5c7da4&&_0x103654&&_0x103654();},[_0x5c7da4,_0x103654]);function _0x5454de(){const _0x390fd8=_0x388559;return i[_0x390fd8(0x24c)](_0x390fd8(0x2e2),{'className':f[_0x390fd8(0x300)](_0x390fd8(0x303),_0x5c7da4&&_0x103654&&_0x390fd8(0x2a8)),'role':_0x390fd8(0x292),'onClick':_0x5c7da4&&_0x103654?_0x3e3882:void 0x0,'children':[i['jsx'](_0x390fd8(0x2e2),{'className':f['clsx'](_0x390fd8(0x309),_0x66f05e),'children':_0x4b8794}),i[_0x390fd8(0x254)](_0x390fd8(0x2e2),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x3eb035})]});}return i[_0x388559(0x254)](f['Tooltip'],{'title':_0x2220b1,'placement':_0x388559(0x365),'children':_0x5454de()});}var Ie=Object[_0x5f14e5(0x26f)],_e=(_0x4f6b39,_0x3bf8be,_0x547c50,_0x4712e0)=>{for(var _0x3b3ac0=_0x4712e0>0x1?void 0x0:_0x4712e0?Ie(_0x3bf8be,_0x547c50):_0x3bf8be,_0x4f2811=_0x4f6b39['length']-0x1,_0x27082f;_0x4f2811>=0x0;_0x4f2811--)(_0x27082f=_0x4f6b39[_0x4f2811])&&(_0x3b3ac0=_0x27082f(_0x3b3ac0)||_0x3b3ac0);return _0x3b3ac0;},N=(_0x71cfa8,_0x436f52)=>(_0x1b3e13,_0x2708f1)=>_0x436f52(_0x1b3e13,_0x2708f1,_0x71cfa8);exports['MCPConnectionUIController']=class extends u['Disposable']{constructor(_0x1399b8,_0x2d4733,_0x832208,_0x163175){const _0x22b6d5=_0x5f14e5;super(),this[_0x22b6d5(0x30b)]=_0x1399b8,this[_0x22b6d5(0x305)]=_0x2d4733,this[_0x22b6d5(0x324)]=_0x832208,this[_0x22b6d5(0x251)]=_0x163175,this[_0x22b6d5(0x2f9)](),this[_0x22b6d5(0x331)]();}[_0x5f14e5(0x2f9)](){const _0x59fdcb=_0x5f14e5,_0x2c4619=this[_0x59fdcb(0x251)]['getConfig'](P);_0x2c4619!=null&&_0x2c4619[_0x59fdcb(0x1f8)]&&(this[_0x59fdcb(0x305)][_0x59fdcb(0x36e)]=!0x1);}['_initStatusComponent'](){const _0x432fab=_0x5f14e5,_0x25f541=this[_0x432fab(0x251)][_0x432fab(0x33f)](P);(_0x25f541==null?void 0x0:_0x25f541[_0x432fab(0x2d9)])!==!0x1&&this[_0x432fab(0x24a)](this[_0x432fab(0x324)][_0x432fab(0x25a)](v[_0x432fab(0x31f)][_0x432fab(0x26b)],()=>{const _0x1ca329=_0x432fab;var _0x125847;return v['connectInjector'](ye({'status$':this[_0x1ca329(0x305)][_0x1ca329(0x237)],'error$':this['_connectionController'][_0x1ca329(0x334)],'onConfigure':()=>this[_0x1ca329(0x27a)](),'showClickable':(_0x125847=_0x25f541==null?void 0x0:_0x25f541[_0x1ca329(0x1f8)])!=null?_0x125847:!0x1}),this[_0x1ca329(0x30b)]);}));}[_0x5f14e5(0x27a)](){const _0x39b7d0=_0x5f14e5;this[_0x39b7d0(0x30b)]['get'](exports[_0x39b7d0(0x372)])[_0x39b7d0(0x35e)]();}},exports['MCPConnectionUIController']=_e([N(0x0,u[_0x5f14e5(0x371)](u[_0x5f14e5(0x2ae)])),N(0x1,u[_0x5f14e5(0x371)](s[_0x5f14e5(0x259)])),N(0x2,v[_0x5f14e5(0x264)]),N(0x3,u[_0x5f14e5(0x1f1)])],exports['MCPConnectionUIController']);function ye(_0x2ea8f4){const {status$:_0x195c3f,error$:_0x23b85a,onConfigure:_0x6ccc6e,showClickable:_0x4aa62f}=_0x2ea8f4;return function(){return i['jsx'](W,{'status$':_0x195c3f,'error$':_0x23b85a,'onConfigure':_0x6ccc6e,'showClickable':_0x4aa62f});};}function Me(_0x5ee0ba){const _0x180f72=_0x5f14e5;return{'id':b['id'],'type':v[_0x180f72(0x2f2)][_0x180f72(0x2ea)],'icon':_0x180f72(0x285),'title':_0x180f72(0x31d),'tooltip':_0x180f72(0x31d)};}const Ne={[v[_0x5f14e5(0x23b)][_0x5f14e5(0x30a)]]:{[b['id']]:{'order':0xa,'menuItemFactory':Me}}};var be=Object[_0x5f14e5(0x26f)],je=(_0x3d9a44,_0x394b25,_0x10359a,_0x336f7c)=>{for(var _0x2bbd30=_0x336f7c>0x1?void 0x0:_0x336f7c?be(_0x394b25,_0x10359a):_0x394b25,_0xcf2119=_0x3d9a44['length']-0x1,_0x27b7d9;_0xcf2119>=0x0;_0xcf2119--)(_0x27b7d9=_0x3d9a44[_0xcf2119])&&(_0x2bbd30=_0x27b7d9(_0x2bbd30)||_0x2bbd30);return _0x2bbd30;},z=(_0x21b504,_0x60aece)=>(_0x4ff5b8,_0x12095a)=>_0x60aece(_0x4ff5b8,_0x12095a,_0x21b504);exports[_0x5f14e5(0x35b)]=class extends u[_0x5f14e5(0x2de)]{constructor(_0x1d646d,_0x2c5e18){const _0x306f8c=_0x5f14e5;super(),this[_0x306f8c(0x34f)]=_0x1d646d,this[_0x306f8c(0x21c)]=_0x2c5e18,this[_0x306f8c(0x31e)](),this['_initializeMenus']();}[_0x5f14e5(0x31e)](){const _0x171ba7=_0x5f14e5;[b][_0x171ba7(0x314)](_0x242de3=>{const _0x270c24=_0x171ba7;this[_0x270c24(0x24a)](this[_0x270c24(0x34f)][_0x270c24(0x290)](_0x242de3));});}['_initializeMenus'](){const _0x2c3c2c=_0x5f14e5;this[_0x2c3c2c(0x21c)][_0x2c3c2c(0x1ea)](Ne);}},exports[_0x5f14e5(0x35b)]=je([z(0x0,u['ICommandService']),z(0x1,v[_0x5f14e5(0x25e)])],exports['MCPUIMenuController']);const Ee={'mcpStatus':{'disconnected':_0x5f14e5(0x306),'connecting':_0x5f14e5(0x2f4),'connected':_0x5f14e5(0x244),'failed':_0x5f14e5(0x2af),'retrying':'MCP\x20Retrying...','unknown':_0x5f14e5(0x369),'unauthorized':_0x5f14e5(0x213),'sessionOccupied':_0x5f14e5(0x1f7),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x5f14e5(0x36c),'clickToConfigure':_0x5f14e5(0x26a)},'mcpConfig':{'title':_0x5f14e5(0x27b),'description':_0x5f14e5(0x321),'apiKey':_0x5f14e5(0x350),'apiKeyPlaceholder':_0x5f14e5(0x231),'apiKeyHint':_0x5f14e5(0x32b),'enableAuth':_0x5f14e5(0x345),'enableAuthHint':_0x5f14e5(0x318),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x5f14e5(0x21e),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':_0x5f14e5(0x2f7),'configStep2':_0x5f14e5(0x357),'configStep3':_0x5f14e5(0x2be),'sessionId':_0x5f14e5(0x25f),'sessionIdDescription':_0x5f14e5(0x2bd),'authorizationDescription':_0x5f14e5(0x20e),'configParameters':_0x5f14e5(0x243),'maxRetries':_0x5f14e5(0x20d),'save':_0x5f14e5(0x1fe),'saving':_0x5f14e5(0x26d),'note1':_0x5f14e5(0x346),'note2':_0x5f14e5(0x209),'configSaved':_0x5f14e5(0x341),'configError':_0x5f14e5(0x268),'apiApplyInfo':{'title':_0x5f14e5(0x2c1),'description':_0x5f14e5(0x29e),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x5f14e5(0x252),'apiKeyTooShort':_0x5f14e5(0x24f),'invalidConfig':_0x5f14e5(0x2e6),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x5f14e5(0x28d),'connecting':_0x5f14e5(0x355),'connected':_0x5f14e5(0x1eb),'failed':_0x5f14e5(0x2e1),'retrying':_0x5f14e5(0x279)},'connectionError':{'unauthorized':_0x5f14e5(0x1ef),'sessionOccupied':_0x5f14e5(0x257),'networkError':_0x5f14e5(0x2b8),'maxRetriesExceeded':_0x5f14e5(0x2d1)}}},we={'mcpStatus':{'disconnected':_0x5f14e5(0x2ca),'connecting':_0x5f14e5(0x2c6),'connected':_0x5f14e5(0x211),'failed':_0x5f14e5(0x358),'retrying':_0x5f14e5(0x273),'unknown':_0x5f14e5(0x1f5),'unauthorized':'MCP:\x20未授权','sessionOccupied':_0x5f14e5(0x233),'networkError':_0x5f14e5(0x256),'maxRetriesExceeded':_0x5f14e5(0x229),'clickToConnect':_0x5f14e5(0x31a),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x5f14e5(0x2e0),'description':_0x5f14e5(0x1ed),'apiKey':'API\x20密钥','apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x5f14e5(0x207),'enableAuth':'启用身份验证','enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x5f14e5(0x271),'mcpClientConfig':_0x5f14e5(0x271),'configInstructions':_0x5f14e5(0x2ac),'configStepTitle':'配置步骤:','configStep1':_0x5f14e5(0x2b3),'configStep2':_0x5f14e5(0x20f),'configStep3':_0x5f14e5(0x36d),'sessionId':'会话ID','sessionIdDescription':_0x5f14e5(0x298),'authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':_0x5f14e5(0x217),'maxRetries':_0x5f14e5(0x2f3),'save':_0x5f14e5(0x2cc),'saving':_0x5f14e5(0x2b0),'note1':'配置更改将立即生效','note2':_0x5f14e5(0x248),'configSaved':'配置保存成功','configError':_0x5f14e5(0x322),'apiApplyInfo':{'title':_0x5f14e5(0x2e8),'description':_0x5f14e5(0x291),'univerAiLabel':_0x5f14e5(0x210),'getStarted':_0x5f14e5(0x2a3)},'validation':{'apiKeyRequired':_0x5f14e5(0x23e),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x5f14e5(0x2d0),'invalidApiKey':_0x5f14e5(0x23f)},'connectionStatus':{'disconnected':_0x5f14e5(0x2e5),'connecting':_0x5f14e5(0x33b),'connected':_0x5f14e5(0x2ee),'failed':_0x5f14e5(0x2d4),'retrying':_0x5f14e5(0x2a2)},'connectionError':{'unauthorized':_0x5f14e5(0x33e),'sessionOccupied':_0x5f14e5(0x328),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x5f14e5(0x2db)}}};function _0x1d93(_0x5f4007,_0x14ae38){const _0xbf3a28=_0xbf3a();return _0x1d93=function(_0x1d9359,_0x1eadb3){_0x1d9359=_0x1d9359-0x1e4;let _0x415e12=_0xbf3a28[_0x1d9359];return _0x415e12;},_0x1d93(_0x5f4007,_0x14ae38);}var Ae=Object[_0x5f14e5(0x1e8)],Oe=Object[_0x5f14e5(0x26f)],De=(_0x40003a,_0x3f1ff6,_0x25a38d)=>_0x3f1ff6 in _0x40003a?Ae(_0x40003a,_0x3f1ff6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x25a38d}):_0x40003a[_0x3f1ff6]=_0x25a38d,Ue=(_0x3e01e3,_0x6673d8,_0x15c720,_0x4d8ff1)=>{const _0x288e72=_0x5f14e5;for(var _0x1b4ec1=_0x4d8ff1>0x1?void 0x0:_0x4d8ff1?Oe(_0x6673d8,_0x15c720):_0x6673d8,_0x285d8a=_0x3e01e3[_0x288e72(0x2a4)]-0x1,_0x28f71b;_0x285d8a>=0x0;_0x285d8a--)(_0x28f71b=_0x3e01e3[_0x285d8a])&&(_0x1b4ec1=_0x28f71b(_0x1b4ec1)||_0x1b4ec1);return _0x1b4ec1;},y=(_0x432390,_0x44cb44)=>(_0x300847,_0xdb9d87)=>_0x44cb44(_0x300847,_0xdb9d87,_0x432390),$e=(_0x71f637,_0xb5ee4,_0xea4c5a)=>De(_0x71f637,_0xb5ee4+'',_0xea4c5a);exports[_0x5f14e5(0x34b)]=class extends u['Plugin']{constructor(_0x2265c3=L,_0x294fd1,_0x4ccc5d,_0x61229b,_0x22a2e5,_0x3a63c9){const _0xc152e1=_0x5f14e5;super(),this[_0xc152e1(0x33d)]=_0x2265c3,this[_0xc152e1(0x30b)]=_0x294fd1,this['_configService']=_0x4ccc5d,this['_uiPartsService']=_0x61229b,this['_localStorageService']=_0x22a2e5,this[_0xc152e1(0x32a)]=_0x3a63c9;const {..._0x1feb10}=u[_0xc152e1(0x250)]({},L,this[_0xc152e1(0x33d)]);this['_configService'][_0xc152e1(0x219)](P,_0x1feb10);}async[_0x5f14e5(0x2c8)](){const _0xb3a630=_0x5f14e5,_0x47195a=[[exports[_0xb3a630(0x28c)]],[exports[_0xb3a630(0x372)]],[exports[_0xb3a630(0x35b)]]];this[_0xb3a630(0x30b)][_0xb3a630(0x2c2)](A['ISocketService'])||_0x47195a[_0xb3a630(0x289)]([A['ISocketService'],{'useClass':A[_0xb3a630(0x28b)]}]),_0x47195a[_0xb3a630(0x314)](_0x183a52=>this[_0xb3a630(0x30b)]['add'](_0x183a52)),this[_0xb3a630(0x30b)][_0xb3a630(0x1f0)](exports[_0xb3a630(0x28c)]),this[_0xb3a630(0x30b)]['get'](exports[_0xb3a630(0x372)]),this[_0xb3a630(0x30b)][_0xb3a630(0x1f0)](exports[_0xb3a630(0x35b)]);}},$e(exports[_0x5f14e5(0x34b)],_0x5f14e5(0x205),_0x5f14e5(0x245)),exports['UniverMCPUIPlugin']=Ue([u[_0x5f14e5(0x239)](s[_0x5f14e5(0x276)]),y(0x1,u[_0x5f14e5(0x371)](u['Injector'])),y(0x2,u[_0x5f14e5(0x1f1)]),y(0x3,v[_0x5f14e5(0x264)]),y(0x4,u['ILocalStorageService']),y(0x5,u[_0x5f14e5(0x371)](u[_0x5f14e5(0x21b)]))],exports[_0x5f14e5(0x34b)]),exports[_0x5f14e5(0x2f0)]=V,exports[_0x5f14e5(0x227)]=W,exports[_0x5f14e5(0x362)]=b,exports[_0x5f14e5(0x323)]=Ee,exports[_0x5f14e5(0x23d)]=we;
|
|
1
|
+
'use strict';const _0x4c9222=_0x19e5;(function(_0x451e97,_0x292f02){const _0x111ab6=_0x19e5,_0x12ff30=_0x451e97();while(!![]){try{const _0x1f0207=parseInt(_0x111ab6(0x18f))/0x1*(parseInt(_0x111ab6(0x14a))/0x2)+parseInt(_0x111ab6(0x169))/0x3+-parseInt(_0x111ab6(0x1c3))/0x4+parseInt(_0x111ab6(0x13a))/0x5*(parseInt(_0x111ab6(0x23b))/0x6)+parseInt(_0x111ab6(0x1c6))/0x7+-parseInt(_0x111ab6(0x1a2))/0x8+-parseInt(_0x111ab6(0x13d))/0x9;if(_0x1f0207===_0x292f02)break;else _0x12ff30['push'](_0x12ff30['shift']());}catch(_0x3502ea){_0x12ff30['push'](_0x12ff30['shift']());}}}(_0x3c2c,0x43d1d));var ae=Object['defineProperty'],le=(_0x1038c,_0x52e135,_0x341da2)=>_0x52e135 in _0x1038c?ae(_0x1038c,_0x52e135,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x341da2}):_0x1038c[_0x52e135]=_0x341da2,I=(_0x30753c,_0x177616,_0x3e665d)=>le(_0x30753c,typeof _0x177616!=_0x4c9222(0x22a)?_0x177616+'':_0x177616,_0x3e665d);Object[_0x4c9222(0x1eb)](exports,Symbol[_0x4c9222(0x1cf)],{'value':_0x4c9222(0x297)});function _0x19e5(_0x285fb0,_0x566a9b){const _0x3c2cee=_0x3c2c();return _0x19e5=function(_0x19e567,_0x2e9ce2){_0x19e567=_0x19e567-0x130;let _0x2a2f92=_0x3c2cee[_0x19e567];return _0x2a2f92;},_0x19e5(_0x285fb0,_0x566a9b);}const u=require('@univerjs/core'),i=require('react/jsx-runtime'),s=require('@univerjs-pro/mcp'),f=require('@univerjs/design'),v=require('@univerjs/ui'),M=require('rxjs'),d=require('react'),A=require('@univerjs/network');function _({ref:_0x435fc3,..._0xac525d}){const _0x4966a1=_0x4c9222,{icon:_0x1dafdb,id:_0x1ee7e7,className:_0x4cd9fd,extend:_0x520af6,..._0x5564d7}=_0xac525d,_0x2bd360=(_0x4966a1(0x285)+_0x1ee7e7+'\x20'+(_0x4cd9fd||''))[_0x4966a1(0x25c)](),_0x168677=d[_0x4966a1(0x219)]('_'+de());return G(_0x1dafdb,''+_0x1ee7e7,{'defIds':_0x1dafdb['defIds'],'idSuffix':_0x168677[_0x4966a1(0x203)]},{'ref':_0x435fc3,'className':_0x2bd360,..._0x5564d7},_0x520af6);}function G(_0x2571c7,_0x2b225b,_0x322c27,_0x3cc458,_0x19ba34){const _0x590146=_0x4c9222;return d[_0x590146(0x1ac)](_0x2571c7['tag'],{'key':_0x2b225b,...ue(_0x2571c7,_0x322c27,_0x19ba34),..._0x3cc458},(ve(_0x2571c7,_0x322c27)['children']||[])[_0x590146(0x24a)]((_0x490b26,_0x1b342d)=>G(_0x490b26,_0x2b225b+'-'+_0x2571c7[_0x590146(0x20a)]+'-'+_0x1b342d,_0x322c27,void 0x0,_0x19ba34)));}function ue(_0x2d3eb4,_0xe5218c,_0x5e58ea){const _0x3f8f2b=_0x4c9222,_0x5f4a80={..._0x2d3eb4['attrs']};_0x5e58ea!=null&&_0x5e58ea[_0x3f8f2b(0x1fd)]&&_0x5f4a80[_0x3f8f2b(0x25d)]===_0x3f8f2b(0x1fd)&&(_0x5f4a80['fill']=_0x5e58ea['colorChannel1']),_0x2d3eb4[_0x3f8f2b(0x20a)]==='mask'&&_0x5f4a80['id']&&(_0x5f4a80['id']=_0x5f4a80['id']+_0xe5218c[_0x3f8f2b(0x2a2)]),Object[_0x3f8f2b(0x174)](_0x5f4a80)['forEach'](([_0x20c2df,_0x61308d])=>{const _0x2630ff=_0x3f8f2b;_0x20c2df===_0x2630ff(0x16c)&&typeof _0x61308d==_0x2630ff(0x147)&&(_0x5f4a80[_0x20c2df]=_0x61308d[_0x2630ff(0x273)](/url\(#(.*)\)/,_0x2630ff(0x235)+_0xe5218c[_0x2630ff(0x2a2)]+')'));});const {defIds:_0x4a6b2b}=_0xe5218c;return!_0x4a6b2b||_0x4a6b2b[_0x3f8f2b(0x1d9)]===0x0||(_0x2d3eb4[_0x3f8f2b(0x20a)]==='use'&&_0x5f4a80[_0x3f8f2b(0x1b3)]&&(_0x5f4a80['xlink:href']=_0x5f4a80[_0x3f8f2b(0x1b3)]+_0xe5218c['idSuffix']),Object['entries'](_0x5f4a80)[_0x3f8f2b(0x1c2)](([_0x4133a2,_0x4fa9e1])=>{const _0x1b40b1=_0x3f8f2b;typeof _0x4fa9e1==_0x1b40b1(0x147)&&(_0x5f4a80[_0x4133a2]=_0x4fa9e1['replace'](/url\(#(.*)\)/,_0x1b40b1(0x235)+_0xe5218c[_0x1b40b1(0x2a2)]+')'));})),_0x5f4a80;}function ve(_0x34ead7,_0x26c0d4){const _0x1c4738=_0x4c9222;var _0x4cdc23;const {defIds:_0x42a8d9}=_0x26c0d4;return!_0x42a8d9||_0x42a8d9[_0x1c4738(0x1d9)]===0x0?_0x34ead7:_0x34ead7['tag']===_0x1c4738(0x14e)&&((_0x4cdc23=_0x34ead7[_0x1c4738(0x230)])!=null&&_0x4cdc23[_0x1c4738(0x1d9)])?{..._0x34ead7,'children':_0x34ead7[_0x1c4738(0x230)][_0x1c4738(0x24a)](_0xd13163=>typeof _0xd13163[_0x1c4738(0x29b)]['id']=='string'&&_0x42a8d9&&_0x42a8d9[_0x1c4738(0x29a)](_0xd13163[_0x1c4738(0x29b)]['id'])?{..._0xd13163,'attrs':{..._0xd13163['attrs'],'id':_0xd13163[_0x1c4738(0x29b)]['id']+_0x26c0d4[_0x1c4738(0x2a2)]}}:_0xd13163)}:_0x34ead7;}function de(){const _0x58e809=_0x4c9222;return Math[_0x58e809(0x22f)]()['toString'](0x24)[_0x58e809(0x167)](0x2,0x8);}_[_0x4c9222(0x2a6)]=_0x4c9222(0x24d);const Ce={'tag':_0x4c9222(0x16a),'attrs':{'xmlns':_0x4c9222(0x185),'fill':_0x4c9222(0x208),'viewBox':_0x4c9222(0x256),'width':_0x4c9222(0x139),'height':_0x4c9222(0x139)},'children':[{'tag':_0x4c9222(0x26b),'attrs':{'fill':_0x4c9222(0x1d6),'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':_0x4c9222(0x210),'clipRule':_0x4c9222(0x210)}}]},H=d[_0x4c9222(0x1f5)](function(_0x50e0ef,_0x237228){const _0xc10c8a=_0x4c9222;return d[_0xc10c8a(0x1ac)](_,Object[_0xc10c8a(0x1a3)]({},_0x50e0ef,{'id':'check-mark-icon','ref':_0x237228,'icon':Ce}));});H[_0x4c9222(0x2a6)]=_0x4c9222(0x2aa);const ge={'tag':_0x4c9222(0x16a),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x4c9222(0x208),'viewBox':_0x4c9222(0x256),'width':'1em','height':_0x4c9222(0x139)},'children':[{'tag':_0x4c9222(0x26b),'attrs':{'fill':_0x4c9222(0x1d6),'d':_0x4c9222(0x172)}}]},B=d['forwardRef'](function(_0x19eba3,_0x334564){const _0x53c8f9=_0x4c9222;return d[_0x53c8f9(0x1ac)](_,Object[_0x53c8f9(0x1a3)]({},_0x19eba3,{'id':_0x53c8f9(0x260),'ref':_0x334564,'icon':ge}));});B['displayName']=_0x4c9222(0x268);const fe={'tag':'svg','attrs':{'xmlns':_0x4c9222(0x185),'fill':_0x4c9222(0x208),'viewBox':'0\x200\x2016\x2016','width':_0x4c9222(0x139),'height':'1em'},'children':[{'tag':_0x4c9222(0x26b),'attrs':{'fill':_0x4c9222(0x1d6),'d':_0x4c9222(0x187)}},{'tag':_0x4c9222(0x26b),'attrs':{'fill':_0x4c9222(0x1d6),'d':_0x4c9222(0x1fa)}},{'tag':_0x4c9222(0x26b),'attrs':{'fill':_0x4c9222(0x1d6),'d':'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','fillRule':_0x4c9222(0x210),'clipRule':'evenodd'}}]},F=d[_0x4c9222(0x1f5)](function(_0x34fa29,_0x41487f){const _0x2bc5c9=_0x4c9222;return d[_0x2bc5c9(0x1ac)](_,Object[_0x2bc5c9(0x1a3)]({},_0x34fa29,{'id':'help-icon','ref':_0x41487f,'icon':fe}));});F[_0x4c9222(0x2a6)]=_0x4c9222(0x266);const pe={'tag':_0x4c9222(0x16a),'attrs':{'xmlns':_0x4c9222(0x185),'fill':_0x4c9222(0x208),'viewBox':_0x4c9222(0x256),'width':_0x4c9222(0x139),'height':_0x4c9222(0x139)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x4c9222(0x26b),'attrs':{'stroke':_0x4c9222(0x1d6),'d':_0x4c9222(0x14d),'strokeLinecap':_0x4c9222(0x254),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x4c9222(0x14e),'attrs':{},'children':[{'tag':_0x4c9222(0x1ff),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x4c9222(0x26b),'attrs':{'fill':_0x4c9222(0x226),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x4c9222(0x192)]},Y=d[_0x4c9222(0x1f5)](function(_0x5bba72,_0x361587){const _0x2147df=_0x4c9222;return d[_0x2147df(0x1ac)](_,Object[_0x2147df(0x1a3)]({},_0x5bba72,{'id':_0x2147df(0x28c),'ref':_0x361587,'icon':pe}));});Y['displayName']=_0x4c9222(0x1e0);const he={'tag':_0x4c9222(0x16a),'attrs':{'xmlns':_0x4c9222(0x185),'fill':_0x4c9222(0x208),'viewBox':_0x4c9222(0x290),'width':'1em','height':_0x4c9222(0x139)},'children':[{'tag':'g','attrs':{'clipPath':_0x4c9222(0x1fc)},'children':[{'tag':_0x4c9222(0x26b),'attrs':{'stroke':_0x4c9222(0x1d6),'d':_0x4c9222(0x137),'strokeLinecap':_0x4c9222(0x254),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x4c9222(0x14e),'attrs':{},'children':[{'tag':_0x4c9222(0x1ff),'attrs':{'id':_0x4c9222(0x173)},'children':[{'tag':_0x4c9222(0x26b),'attrs':{'fill':_0x4c9222(0x226),'d':_0x4c9222(0x233),'transform':'translate(.97)'}}]}]}],'defIds':['on-line-icon_clip0_910_349']},q=d[_0x4c9222(0x1f5)](function(_0x3615e1,_0x4b2713){const _0x5c7e8e=_0x4c9222;return d[_0x5c7e8e(0x1ac)](_,Object['assign']({},_0x3615e1,{'id':'on-line-icon','ref':_0x4b2713,'icon':he}));});q['displayName']=_0x4c9222(0x1b4);function V(_0x2115c0){const _0x35e0f7=_0x4c9222;var _0x4a94f6,_0x1e3798;const {mcpCoreConfig:_0x467e77,onSave:_0xc9447b,loading:_0x1bd7f5=!0x1,config:_0x21df77,connectionStatus$:_0x3f8ff1,connectionError$:_0x184b6a,currentApiKey$:_0xe6aabf,currentSessionId$:_0xe254ef}=_0x2115c0,_0x45337a=v[_0x35e0f7(0x26f)](u[_0x35e0f7(0x277)]),_0x2e53af=v[_0x35e0f7(0x17d)](_0x3f8ff1,s[_0x35e0f7(0x1e2)]['DISCONNECTED']),_0x37c65f=v[_0x35e0f7(0x17d)](_0x184b6a,s[_0x35e0f7(0x166)]['NONE']),_0x40b636=v[_0x35e0f7(0x17d)](_0xe254ef,''),_0x23361a=v[_0x35e0f7(0x17d)](_0xe6aabf,''),[_0x4799b2,_0x3dc26a]=d[_0x35e0f7(0x1d3)](_0x23361a||''),_0x3ad125=!0x0,_0x308fb5=_0x21df77[_0x35e0f7(0x206)]&&_0x467e77[_0x35e0f7(0x240)]&&(_0x467e77[_0x35e0f7(0x240)]['includes'](_0x35e0f7(0x1d5))||_0x467e77[_0x35e0f7(0x240)][_0x35e0f7(0x29a)]('univer.ai')),_0x528915=(_0x4a94f6=_0x467e77[_0x35e0f7(0x240)])==null?void 0x0:_0x4a94f6[_0x35e0f7(0x29a)](_0x35e0f7(0x1d5)),_0x44b0f7=(_0x1e3798=_0x467e77[_0x35e0f7(0x240)])==null?void 0x0:_0x1e3798[_0x35e0f7(0x29a)]('univer.ai'),_0x3b93b3=_0x528915?_0x35e0f7(0x1a7):'https://console.univer.ai',_0x22173f=_0x21df77[_0x35e0f7(0x206)]&&(_0x528915||_0x44b0f7),[_0x48fd94,_0x40129e]=d[_0x35e0f7(0x1d3)](!_0x4799b2[_0x35e0f7(0x25c)]()),_0x3491eb=(_0x445643,_0x5013de)=>{const _0x124a14=_0x35e0f7;if(_0x5013de===s[_0x124a14(0x166)][_0x124a14(0x281)])return _0x124a14(0x1ce);switch(_0x445643){case s[_0x124a14(0x1e2)][_0x124a14(0x191)]:return _0x124a14(0x20d);case s[_0x124a14(0x1e2)][_0x124a14(0x207)]:case s[_0x124a14(0x1e2)][_0x124a14(0x1f0)]:return _0x124a14(0x280);case s[_0x124a14(0x1e2)][_0x124a14(0x1e7)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x59ff73=(_0x5024c9,_0x2dace4)=>{const _0x211164=_0x35e0f7;if(_0x2dace4===s[_0x211164(0x166)][_0x211164(0x281)])return _0x211164(0x1e9);switch(_0x5024c9){case s[_0x211164(0x1e2)]['CONNECTED']:return _0x211164(0x135);case s[_0x211164(0x1e2)]['CONNECTING']:case s[_0x211164(0x1e2)][_0x211164(0x1f0)]:return'univer-bg-blue-500';case s['MCPConnectionStatus'][_0x211164(0x1e7)]:return _0x211164(0x1e9);default:return'univer-bg-gray-500';}},_0x145470=_0x466e8a=>{const _0x580e94=_0x35e0f7;switch(_0x466e8a){case s['MCPConnectionStatus'][_0x580e94(0x191)]:return _0x45337a['t']('mcpConfig.connectionStatus.connected');case s[_0x580e94(0x1e2)][_0x580e94(0x207)]:return _0x45337a['t'](_0x580e94(0x152));case s[_0x580e94(0x1e2)][_0x580e94(0x1e7)]:return _0x45337a['t']('mcpConfig.connectionStatus.failed');case s[_0x580e94(0x1e2)][_0x580e94(0x1f0)]:return _0x45337a['t'](_0x580e94(0x267));default:return _0x45337a['t']('mcpConfig.connectionStatus.disconnected');}},_0x4fba44=_0x161263=>{const _0x5b5065=_0x35e0f7;switch(_0x161263){case s[_0x5b5065(0x166)][_0x5b5065(0x281)]:return _0x45337a['t'](_0x5b5065(0x19a));case s[_0x5b5065(0x166)]['SESSION_ID_OCCUPIED']:return _0x45337a['t']('mcpConfig.connectionError.sessionOccupied');case s[_0x5b5065(0x166)][_0x5b5065(0x1a9)]:return _0x45337a['t'](_0x5b5065(0x132));case s[_0x5b5065(0x166)][_0x5b5065(0x145)]:return _0x45337a['t'](_0x5b5065(0x258));default:return'';}},_0x38999d=d[_0x35e0f7(0x232)](()=>{const _0x4468c9=_0x35e0f7,_0x3fbc35={..._0x467e77,'apiKey':_0x4799b2[_0x4468c9(0x25c)](),'enableAuth':_0x3ad125};_0xc9447b(_0x3fbc35);},[_0x467e77,_0x4799b2,_0x3ad125,_0xc9447b]),_0x55194b=_0x4799b2[_0x35e0f7(0x25c)]()[_0x35e0f7(0x1d9)]>0x0;return i[_0x35e0f7(0x23a)](_0x35e0f7(0x1f6),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[i['jsx']('div',{'className':_0x35e0f7(0x179),'children':i['jsxs'](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x29d),'children':[i['jsx'](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x270),'children':i[_0x35e0f7(0x294)](_0x35e0f7(0x248),{'className':_0x35e0f7(0x2a1),'children':'⚙'})}),i[_0x35e0f7(0x294)](_0x35e0f7(0x1f6),{'children':i[_0x35e0f7(0x294)]('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x45337a['t'](_0x35e0f7(0x136))})})]})}),i[_0x35e0f7(0x23a)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x193),'children':[i[_0x35e0f7(0x294)]('div',{'className':f[_0x35e0f7(0x194)](_0x35e0f7(0x16d),_0x3491eb(_0x2e53af,_0x37c65f)),'children':i[_0x35e0f7(0x23a)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x1bc),'children':[i[_0x35e0f7(0x294)](_0x35e0f7(0x1f6),{'className':f[_0x35e0f7(0x194)]('univer-size-2\x20univer-rounded-full',_0x59ff73(_0x2e53af,_0x37c65f))}),i[_0x35e0f7(0x294)](_0x35e0f7(0x248),{'className':_0x35e0f7(0x262),'children':_0x145470(_0x2e53af)})]})}),_0x37c65f!==s[_0x35e0f7(0x166)][_0x35e0f7(0x1f7)]&&(_0x2e53af===s[_0x35e0f7(0x1e2)][_0x35e0f7(0x1e7)]||_0x37c65f===s[_0x35e0f7(0x166)][_0x35e0f7(0x281)])&&i['jsx'](_0x35e0f7(0x1f6),{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':i[_0x35e0f7(0x23a)]('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[i['jsx'](_0x35e0f7(0x248),{'className':_0x35e0f7(0x1af),'children':'⚠️'}),i[_0x35e0f7(0x294)]('p',{'className':_0x35e0f7(0x17c),'children':_0x4fba44(_0x37c65f)})]})})]}),i[_0x35e0f7(0x294)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x24f),'children':i[_0x35e0f7(0x23a)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x1be),'children':[i[_0x35e0f7(0x23a)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x154),'children':[i[_0x35e0f7(0x23a)](_0x35e0f7(0x1cc),{'className':_0x35e0f7(0x1f9),'children':[i[_0x35e0f7(0x294)](_0x35e0f7(0x248),{'children':'🔑'}),'\x20',_0x45337a['t'](_0x35e0f7(0x180)),i[_0x35e0f7(0x294)](_0x35e0f7(0x248),{'className':_0x35e0f7(0x162),'children':'*'}),_0x308fb5&&i['jsx']('a',{'className':_0x35e0f7(0x16f),'title':_0x45337a['t'](_0x35e0f7(0x238)),'role':'button','onClick':()=>_0x40129e(!0x0),'children':i[_0x35e0f7(0x294)](F,{})})]}),i[_0x35e0f7(0x294)](f[_0x35e0f7(0x26e)],{'type':'text','placeholder':_0x45337a['t'](_0x35e0f7(0x2a9)),'value':_0x4799b2,'disabled':_0x1bd7f5,'autoComplete':_0x35e0f7(0x251),'onChange':_0x3dc26a}),i[_0x35e0f7(0x294)]('p',{'className':_0x35e0f7(0x176),'children':_0x45337a['t']('mcpConfig.apiKeyHint')})]}),_0x308fb5&&_0x48fd94&&i[_0x35e0f7(0x23a)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x217),'children':[i[_0x35e0f7(0x294)]('a',{'className':'univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','role':_0x35e0f7(0x1a4),'onClick':()=>_0x40129e(!0x1),'children':i[_0x35e0f7(0x294)](B,{'className':_0x35e0f7(0x282)})}),i[_0x35e0f7(0x23a)]('div',{'className':_0x35e0f7(0x1e1),'children':[i[_0x35e0f7(0x294)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x2ae),'children':i[_0x35e0f7(0x294)]('span',{'className':_0x35e0f7(0x1b1),'children':'🚀'})}),i[_0x35e0f7(0x23a)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x202),'children':[i[_0x35e0f7(0x294)]('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x45337a['t']('mcpConfig.apiApplyInfo.title')}),i[_0x35e0f7(0x294)]('p',{'className':_0x35e0f7(0x1ab),'children':_0x45337a['t'](_0x35e0f7(0x27e))}),i[_0x35e0f7(0x294)](_0x35e0f7(0x1f6),{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x22173f&&i['jsxs']('a',{'className':_0x35e0f7(0x1aa),'href':_0x3b93b3,'target':'_blank','rel':_0x35e0f7(0x197),'children':[i[_0x35e0f7(0x294)](_0x35e0f7(0x248),{'children':'🤖'}),_0x45337a['t'](_0x35e0f7(0x1da)),i['jsx'](_0x35e0f7(0x248),{'className':_0x35e0f7(0x168),'children':'↗'})]})}),i[_0x35e0f7(0x23a)](_0x35e0f7(0x1f6),{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x45337a['t'](_0x35e0f7(0x13e))]})]})]})]}),_0x21df77['showDeveloperTools']&&i[_0x35e0f7(0x23a)]('div',{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[i['jsxs']('h4',{'className':_0x35e0f7(0x1e8),'children':[i['jsx'](_0x35e0f7(0x248),{'children':'🔗'}),'\x20',_0x45337a['t']('mcpConfig.connectionInfo')]}),i[_0x35e0f7(0x23a)](_0x35e0f7(0x1f6),{'className':'univer-space-y-4','children':[i[_0x35e0f7(0x23a)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x196),'children':[i[_0x35e0f7(0x294)]('p',{'className':_0x35e0f7(0x1ec),'children':_0x45337a['t'](_0x35e0f7(0x1c4))}),i[_0x35e0f7(0x23a)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x154),'children':[i[_0x35e0f7(0x294)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x21d),'children':_0x45337a['t'](_0x35e0f7(0x27c))}),i[_0x35e0f7(0x23a)](_0x35e0f7(0x1f6),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[i[_0x35e0f7(0x23a)]('div',{'className':_0x35e0f7(0x1bc),'children':[i[_0x35e0f7(0x294)](_0x35e0f7(0x248),{'className':_0x35e0f7(0x225),'children':'1'}),_0x45337a['t'](_0x35e0f7(0x276))]}),i['jsxs'](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x1bc),'children':[i[_0x35e0f7(0x294)]('span',{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'2'}),_0x45337a['t'](_0x35e0f7(0x1a5))]}),i[_0x35e0f7(0x23a)](_0x35e0f7(0x1f6),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i['jsx'](_0x35e0f7(0x248),{'className':_0x35e0f7(0x225),'children':'3'}),_0x45337a['t'](_0x35e0f7(0x274))]})]})]})]}),i[_0x35e0f7(0x23a)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x154),'children':[i[_0x35e0f7(0x294)](_0x35e0f7(0x1f6),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':'MCP\x20Configuration'}),i[_0x35e0f7(0x294)](_0x35e0f7(0x1f6),{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':i['jsx'](_0x35e0f7(0x271),{'className':_0x35e0f7(0x138),'children':JSON[_0x35e0f7(0x141)]({'mcpServers':{'univer':{'url':_0x35e0f7(0x218)+(_0x40b636||_0x35e0f7(0x23c)),'type':'http','headers':{'Authorization':_0x35e0f7(0x1dd)+(_0x4799b2||_0x35e0f7(0x1d0))}}}},null,0x2)})})]}),i[_0x35e0f7(0x23a)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x196),'children':[i[_0x35e0f7(0x294)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x21d),'children':_0x45337a['t'](_0x35e0f7(0x25b))}),i['jsxs'](_0x35e0f7(0x1f6),{'className':'univer-space-y-2','children':[i[_0x35e0f7(0x23a)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x13b),'children':[i[_0x35e0f7(0x294)](_0x35e0f7(0x1f6),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),i[_0x35e0f7(0x23a)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x249),'children':[i[_0x35e0f7(0x294)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x28e),'children':_0x35e0f7(0x1e4)}),i[_0x35e0f7(0x294)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x176),'children':_0x45337a['t'](_0x35e0f7(0x1ba))})]})]}),i[_0x35e0f7(0x23a)]('div',{'className':_0x35e0f7(0x13b),'children':[i[_0x35e0f7(0x294)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x298)}),i[_0x35e0f7(0x23a)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x249),'children':[i['jsx'](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x28e),'children':'Authorization:'}),i[_0x35e0f7(0x294)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x176),'children':_0x45337a['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),i[_0x35e0f7(0x294)](f[_0x35e0f7(0x186)],{'onClick':_0x38999d,'disabled':!_0x55194b||_0x1bd7f5,'className':_0x35e0f7(0x15b),'children':_0x1bd7f5?i[_0x35e0f7(0x23a)](_0x35e0f7(0x248),{'className':_0x35e0f7(0x1bc),'children':[i[_0x35e0f7(0x294)](_0x35e0f7(0x248),{'children':'⟲'}),_0x45337a['t'](_0x35e0f7(0x16e))]}):i['jsxs'](_0x35e0f7(0x248),{'className':_0x35e0f7(0x1bc),'children':[i['jsx'](H,{}),_0x45337a['t']('mcpConfig.save')]})}),i[_0x35e0f7(0x294)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x216),'children':i[_0x35e0f7(0x23a)]('div',{'className':_0x35e0f7(0x130),'children':[i[_0x35e0f7(0x294)]('span',{'className':_0x35e0f7(0x1b0),'children':'💡'}),i[_0x35e0f7(0x23a)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x250),'children':[i['jsx']('div',{'className':_0x35e0f7(0x2a8),'children':'Configuration\x20Notes:'}),i['jsxs']('div',{'children':['•',_0x45337a['t']('mcpConfig.note1')]}),i['jsxs'](_0x35e0f7(0x1f6),{'children':['•',_0x45337a['t'](_0x35e0f7(0x1c7))]})]})]})})]})})]});}const P='mcp-ui.config',L={'showDeveloperTools':!0x1,'showStatus':!0x0};var me=Object[_0x4c9222(0x247)],xe=(_0x3e7dee,_0x1347a7,_0x723229,_0xb1f9bf)=>{const _0x40cc04=_0x4c9222;for(var _0x1d4550=_0xb1f9bf>0x1?void 0x0:_0xb1f9bf?me(_0x1347a7,_0x723229):_0x1347a7,_0x4bae5e=_0x3e7dee[_0x40cc04(0x1d9)]-0x1,_0x55eef0;_0x4bae5e>=0x0;_0x4bae5e--)(_0x55eef0=_0x3e7dee[_0x4bae5e])&&(_0x1d4550=_0x55eef0(_0x1d4550)||_0x1d4550);return _0x1d4550;},g=(_0x56900c,_0x451a10)=>(_0x451346,_0x464f74)=>_0x451a10(_0x451346,_0x464f74,_0x56900c);const O=_0x4c9222(0x27b),D=_0x4c9222(0x244);exports[_0x4c9222(0x18e)]=class extends u[_0x4c9222(0x299)]{constructor(_0x142097,_0x270ca2,_0x37979f,_0x5a5646,_0x183cde,_0xb40c36,_0x37d14c,_0x53d96f,_0x398a4a,_0x51c86a){const _0x51c27a=_0x4c9222;super(),I(this,_0x51c27a(0x272),new M['BehaviorSubject'](!0x1)),I(this,_0x51c27a(0x131),new M[(_0x51c27a(0x278))]({})),I(this,_0x51c27a(0x1d4),new M['BehaviorSubject']({})),I(this,_0x51c27a(0x19f),new M[(_0x51c27a(0x278))]('')),I(this,'_handleConfigSave',async _0x199d7c=>{const _0x1fa7c7=_0x51c27a;var _0x24acbc,_0x541e5d;this[_0x1fa7c7(0x272)][_0x1fa7c7(0x1c0)](!0x0);try{const _0x436a23=await this[_0x1fa7c7(0x2ad)](_0x199d7c);if(!_0x436a23['isValid']){this['_messageService'][_0x1fa7c7(0x146)]({'type':f[_0x1fa7c7(0x28d)][_0x1fa7c7(0x134)],'content':_0x436a23[_0x1fa7c7(0x222)]||this['_localeService']['t'](_0x1fa7c7(0x21c))});return;}_0x199d7c['apiKey']?await this[_0x1fa7c7(0x1b8)][_0x1fa7c7(0x263)](O,_0x199d7c[_0x1fa7c7(0x19c)]['trim']()):await this[_0x1fa7c7(0x1b8)][_0x1fa7c7(0x1f3)](O),this[_0x1fa7c7(0x19f)][_0x1fa7c7(0x1c0)](((_0x24acbc=_0x199d7c[_0x1fa7c7(0x19c)])==null?void 0x0:_0x24acbc['trim']())||''),this['_mcpConnectionController'][_0x1fa7c7(0x284)]({'Authorization':_0x1fa7c7(0x1dd)+((_0x541e5d=_0x199d7c[_0x1fa7c7(0x19c)])==null?void 0x0:_0x541e5d[_0x1fa7c7(0x25c)]())}),this[_0x1fa7c7(0x1c9)][_0x1fa7c7(0x146)]({'type':f[_0x1fa7c7(0x28d)]['Success'],'content':this[_0x1fa7c7(0x28b)]['t'](_0x1fa7c7(0x255))}),setTimeout(()=>{const _0x22e07d=_0x1fa7c7;this['_dialogService'][_0x22e07d(0x292)](D);},0x320);}catch(_0x2ffa41){this[_0x1fa7c7(0x1ee)]['error'](_0x1fa7c7(0x1e6),_0x2ffa41),this[_0x1fa7c7(0x1c9)]['show']({'type':f[_0x1fa7c7(0x28d)][_0x1fa7c7(0x134)],'content':this[_0x1fa7c7(0x28b)]['t']('mcpConfig.configError')});}finally{this['_loading$'][_0x1fa7c7(0x1c0)](!0x1);}}),(this[_0x51c27a(0x291)]=_0x142097,this[_0x51c27a(0x17a)]=_0x270ca2,this[_0x51c27a(0x1f4)]=_0x37979f,this['_localStorageService']=_0x5a5646,this[_0x51c27a(0x279)]=_0x183cde,this['_messageService']=_0xb40c36,this[_0x51c27a(0x1a8)]=_0x37d14c,this[_0x51c27a(0x28b)]=_0x53d96f,this[_0x51c27a(0x1ee)]=_0x398a4a,this[_0x51c27a(0x175)]=_0x51c86a,this[_0x51c27a(0x150)](),this['_loadStoredApiKey'](),this[_0x51c27a(0x1db)]());}[_0x4c9222(0x283)](){const _0xcf5ff3=_0x4c9222,_0x38a936=this[_0xcf5ff3(0x1f4)][_0xcf5ff3(0x19e)](P);_0x38a936!=null&&_0x38a936['showDeveloperTools']&&this['_dialogService'][_0xcf5ff3(0x1bd)]({'id':D,'title':{'title':this[_0xcf5ff3(0x28b)]['t'](_0xcf5ff3(0x189))},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x21c7cb=_0xcf5ff3;this['_dialogService'][_0x21c7cb(0x292)](D);}});}[_0x4c9222(0x2a3)](){const _0x34df15=_0x4c9222;return this[_0x34df15(0x131)][_0x34df15(0x22d)];}['_registerComponent'](){const _0x5c76e8=_0x4c9222;this['disposeWithMe'](this[_0x5c76e8(0x1a8)][_0x5c76e8(0x25e)](_0x5c76e8(0x22b),this['_createConfigPanelComponent']()));}['_createConfigPanelComponent'](){return v['connectInjector'](()=>{const _0x11392d=_0x19e5;var _0x5b573f,_0x147578,_0x5d3ee3;return i[_0x11392d(0x294)](V,{'config':this[_0x11392d(0x1d4)]['value'],'mcpCoreConfig':this['_mcpCoreConfig$'][_0x11392d(0x22d)],'currentApiKey$':this[_0x11392d(0x19f)],'onSave':this['_handleConfigSave'],'loading':this[_0x11392d(0x272)]['value'],'connectionStatus$':(_0x5b573f=this[_0x11392d(0x175)])==null?void 0x0:_0x5b573f[_0x11392d(0x1ae)],'connectionError$':(_0x147578=this[_0x11392d(0x175)])==null?void 0x0:_0x147578[_0x11392d(0x25a)],'currentSessionId$':(_0x5d3ee3=this[_0x11392d(0x175)])==null?void 0x0:_0x5d3ee3[_0x11392d(0x2a5)]});},this['_injector']);}[_0x4c9222(0x150)](){const _0xb11288=_0x4c9222;this[_0xb11288(0x2a0)](this[_0xb11288(0x1f4)]['subscribeConfigValue$'](s['MCP_PLUGIN_CONFIG_KEY'])[_0xb11288(0x246)](_0x5b5424=>{const _0x413e2d=_0xb11288;this[_0x413e2d(0x131)][_0x413e2d(0x1c0)](_0x5b5424||{});}));const _0x1f1ba4=this[_0xb11288(0x1f4)]['getConfig'](s[_0xb11288(0x171)]);this[_0xb11288(0x131)][_0xb11288(0x1c0)](_0x1f1ba4||{}),this['disposeWithMe'](this[_0xb11288(0x1f4)]['subscribeConfigValue$'](P)[_0xb11288(0x246)](_0x5530f2=>{const _0x2e1a0c=_0xb11288;this[_0x2e1a0c(0x1d4)]['next'](_0x5530f2||{});}));const _0x3760c2=this['_configService'][_0xb11288(0x19e)](P);this[_0xb11288(0x1d4)][_0xb11288(0x1c0)](_0x3760c2||{});}async['_loadStoredApiKey'](){const _0x5d8895=_0x4c9222,_0x445347=this[_0x5d8895(0x1f4)][_0x5d8895(0x19e)](P);if(!(_0x445347!=null&&_0x445347[_0x5d8895(0x206)]))return;const _0x3c6f03=await this[_0x5d8895(0x1b8)]['getItem'](O);_0x3c6f03&&(this['_mcpConnectionController'][_0x5d8895(0x284)]({'Authorization':'Bearer\x20'+_0x3c6f03}),this[_0x5d8895(0x19f)][_0x5d8895(0x1c0)](_0x3c6f03));}async[_0x4c9222(0x2ad)](_0x4127be){const _0x3f37ef=_0x4c9222;if(!_0x4127be[_0x3f37ef(0x19c)]||_0x4127be['apiKey'][_0x3f37ef(0x25c)]()[_0x3f37ef(0x1d9)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x3f37ef(0x28b)]['t'](_0x3f37ef(0x21f))};if(_0x4127be['apiKey'][_0x3f37ef(0x25c)]()[_0x3f37ef(0x1d9)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x3f37ef(0x28b)]['t']('mcpConfig.validation.apiKeyTooShort')};try{const _0x16584e=await this[_0x3f37ef(0x291)][_0x3f37ef(0x149)](s['MCPConnectionController'])[_0x3f37ef(0x1ca)](_0x4127be[_0x3f37ef(0x19c)][_0x3f37ef(0x25c)]());return _0x16584e['isValid']?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x16584e['error']||this[_0x3f37ef(0x28b)]['t'](_0x3f37ef(0x21b))};}catch(_0x286848){return console['warn'](_0x3f37ef(0x170),_0x286848),{'isValid':!0x0};}}},exports[_0x4c9222(0x18e)]=xe([g(0x0,u['Inject'](u[_0x4c9222(0x159)])),g(0x1,v['IUIPartsService']),g(0x2,u[_0x4c9222(0x2ac)]),g(0x3,u['ILocalStorageService']),g(0x4,v[_0x4c9222(0x183)]),g(0x5,v['IMessageService']),g(0x6,u[_0x4c9222(0x287)](v[_0x4c9222(0x264)])),g(0x7,u[_0x4c9222(0x287)](u['LocaleService'])),g(0x8,u['ILogService']),g(0x9,u[_0x4c9222(0x287)](s[_0x4c9222(0x1fe)]))],exports[_0x4c9222(0x18e)]);const b={'id':_0x4c9222(0x1e5),'type':u[_0x4c9222(0x1a0)]['COMMAND'],'handler':async(_0x46fd81,_0x4c2732)=>(_0x46fd81[_0x4c9222(0x149)](exports[_0x4c9222(0x18e)])['showConfigPanel'](),!0x0)};function Z(_0x403598,_0x4f097a){const _0xabf7ab=_0x4c9222;switch(_0x403598){case s[_0xabf7ab(0x1e2)][_0xabf7ab(0x1ef)]:return _0xabf7ab(0x21a);case s[_0xabf7ab(0x1e2)]['CONNECTING']:return _0xabf7ab(0x1d8);case s['MCPConnectionStatus'][_0xabf7ab(0x191)]:return _0xabf7ab(0x1f1);case s['MCPConnectionStatus'][_0xabf7ab(0x1e7)]:switch(_0x4f097a){case s[_0xabf7ab(0x166)][_0xabf7ab(0x281)]:return _0xabf7ab(0x14b);case s[_0xabf7ab(0x166)][_0xabf7ab(0x1cd)]:return _0xabf7ab(0x1dc);case s[_0xabf7ab(0x166)]['NETWORK_ERROR']:return _0xabf7ab(0x223);case s[_0xabf7ab(0x166)][_0xabf7ab(0x145)]:return'mcpStatus.maxRetriesExceeded';default:return _0xabf7ab(0x212);}case s[_0xabf7ab(0x1e2)][_0xabf7ab(0x1f0)]:return _0xabf7ab(0x13c);default:return _0xabf7ab(0x140);}}function Se(_0x1990bb,_0x43a7ae,_0x39103b,_0x1fb8fd=!0x0){const _0xa2eecd=_0x4c9222,_0xae247e=Z(_0x1990bb,_0x43a7ae),_0x31d814=_0x39103b['t'](_0xae247e);return _0x1fb8fd?_0x1990bb===s[_0xa2eecd(0x1e2)]['DISCONNECTED']&&_0x43a7ae===s[_0xa2eecd(0x166)][_0xa2eecd(0x281)]?_0x31d814+_0xa2eecd(0x234)+_0x39103b['t'](_0xa2eecd(0x13f)):_0x1990bb===s[_0xa2eecd(0x1e2)][_0xa2eecd(0x191)]?''+_0x31d814:_0x1990bb===s[_0xa2eecd(0x1e2)]['DISCONNECTED']||_0x1990bb===s[_0xa2eecd(0x1e2)]['FAILED']?_0x31d814+_0xa2eecd(0x234)+_0x39103b['t'](_0xa2eecd(0x20e)):_0x31d814:_0x31d814;}function Pe(_0x5c80c3){const _0x5eda7b=_0x4c9222;switch(_0x5c80c3){case s[_0x5eda7b(0x1e2)][_0x5eda7b(0x191)]:return'univer-text-green-500';case s[_0x5eda7b(0x1e2)]['CONNECTING']:case s[_0x5eda7b(0x1e2)][_0x5eda7b(0x1f0)]:return'univer-text-yellow-500';case s[_0x5eda7b(0x1e2)][_0x5eda7b(0x1e7)]:case s[_0x5eda7b(0x1e2)][_0x5eda7b(0x1ef)]:return'univer-text-red-500';default:return _0x5eda7b(0x153);}}function W(_0x48697b){const _0x9e8d5=_0x4c9222,{status$:_0x33f1d2,error$:_0x5bc281,onConfigure:_0x369655,showClickable:_0x4bc9b8=!0x0}=_0x48697b,_0x558ff8=v['useObservable'](_0x33f1d2,s[_0x9e8d5(0x1e2)]['DISCONNECTED']),_0xc685af=v[_0x9e8d5(0x17d)](_0x5bc281,s[_0x9e8d5(0x166)]['NONE']),_0x116823=v[_0x9e8d5(0x26f)](u[_0x9e8d5(0x277)]),_0x16df0c=_0x558ff8===s[_0x9e8d5(0x1e2)][_0x9e8d5(0x191)];_0x558ff8===s[_0x9e8d5(0x1e2)][_0x9e8d5(0x207)]||s[_0x9e8d5(0x1e2)][_0x9e8d5(0x1f0)];const _0x1b2583=_0x116823['t'](Z(_0x558ff8,_0xc685af)),_0x43f41d=Se(_0x558ff8,_0xc685af,_0x116823,_0x4bc9b8),_0x548e43=Pe(_0x558ff8),_0x45161c=_0x16df0c?i['jsx'](q,{}):i['jsx'](Y,{}),_0x24961d=d[_0x9e8d5(0x232)](()=>{_0x4bc9b8&&_0x369655&&_0x369655();},[_0x4bc9b8,_0x369655]);function _0x2befae(){const _0xc31d29=_0x9e8d5;return i[_0xc31d29(0x23a)](_0xc31d29(0x1f6),{'className':f['clsx'](_0xc31d29(0x239),_0x4bc9b8&&_0x369655&&_0xc31d29(0x224)),'role':_0xc31d29(0x1a4),'onClick':_0x4bc9b8&&_0x369655?_0x24961d:void 0x0,'children':[i[_0xc31d29(0x294)](_0xc31d29(0x1f6),{'className':f['clsx'](_0xc31d29(0x1b6),_0x548e43),'children':_0x45161c}),i[_0xc31d29(0x294)](_0xc31d29(0x1f6),{'className':_0xc31d29(0x25f),'children':_0x1b2583})]});}return i[_0x9e8d5(0x294)](f['Tooltip'],{'title':_0x43f41d,'placement':_0x9e8d5(0x195),'children':_0x2befae()});}var Ie=Object['getOwnPropertyDescriptor'],_e=(_0x18be46,_0x42f0d8,_0x350713,_0x3e91cc)=>{const _0xeacb01=_0x4c9222;for(var _0x4b2c70=_0x3e91cc>0x1?void 0x0:_0x3e91cc?Ie(_0x42f0d8,_0x350713):_0x42f0d8,_0x5ccbf3=_0x18be46[_0xeacb01(0x1d9)]-0x1,_0xd68587;_0x5ccbf3>=0x0;_0x5ccbf3--)(_0xd68587=_0x18be46[_0x5ccbf3])&&(_0x4b2c70=_0xd68587(_0x4b2c70)||_0x4b2c70);return _0x4b2c70;},N=(_0x3cfaf9,_0x4c4bef)=>(_0x136042,_0x55389b)=>_0x4c4bef(_0x136042,_0x55389b,_0x3cfaf9);exports[_0x4c9222(0x1d1)]=class extends u[_0x4c9222(0x299)]{constructor(_0xd02072,_0x149bfb,_0x267d4e,_0x3f975e){const _0x4096ee=_0x4c9222;super(),this[_0x4096ee(0x291)]=_0xd02072,this['_connectionController']=_0x149bfb,this['_uiPartsService']=_0x267d4e,this['_configService']=_0x3f975e,this['_initAutoConnect'](),this[_0x4096ee(0x29e)]();}[_0x4c9222(0x201)](){const _0x22b916=_0x4c9222,_0x6e344b=this['_configService']['getConfig'](P);_0x6e344b!=null&&_0x6e344b[_0x22b916(0x206)]&&(this[_0x22b916(0x257)]['enableAutoConnect']=!0x1);}[_0x4c9222(0x29e)](){const _0x59f6ef=_0x4c9222,_0x2af691=this[_0x59f6ef(0x1f4)]['getConfig'](P);(_0x2af691==null?void 0x0:_0x2af691[_0x59f6ef(0x236)])!==!0x1&&this['disposeWithMe'](this[_0x59f6ef(0x17a)][_0x59f6ef(0x215)](v[_0x59f6ef(0x155)][_0x59f6ef(0x29f)],()=>{const _0x1e0529=_0x59f6ef;var _0x18722d;return v[_0x1e0529(0x1a1)](ye({'status$':this['_connectionController'][_0x1e0529(0x1ae)],'error$':this['_connectionController'][_0x1e0529(0x25a)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x18722d=_0x2af691==null?void 0x0:_0x2af691['showDeveloperTools'])!=null?_0x18722d:!0x1}),this['_injector']);}));}[_0x4c9222(0x22c)](){const _0xbc9ee0=_0x4c9222;this[_0xbc9ee0(0x291)][_0xbc9ee0(0x149)](exports[_0xbc9ee0(0x18e)])[_0xbc9ee0(0x283)]();}},exports['MCPConnectionUIController']=_e([N(0x0,u[_0x4c9222(0x287)](u[_0x4c9222(0x159)])),N(0x1,u['Inject'](s['MCPConnectionController'])),N(0x2,v[_0x4c9222(0x27a)]),N(0x3,u[_0x4c9222(0x2ac)])],exports['MCPConnectionUIController']);function ye(_0x26730c){const {status$:_0x395610,error$:_0x43dc35,onConfigure:_0x49950a,showClickable:_0x4729f0}=_0x26730c;return function(){return i['jsx'](W,{'status$':_0x395610,'error$':_0x43dc35,'onConfigure':_0x49950a,'showClickable':_0x4729f0});};}function Me(_0x2e5806){const _0x111a65=_0x4c9222;return{'id':b['id'],'type':v['MenuItemType']['BUTTON'],'icon':_0x111a65(0x29c),'title':_0x111a65(0x189),'tooltip':_0x111a65(0x189)};}const Ne={[v[_0x4c9222(0x1ad)]['OTHERS']]:{[b['id']]:{'order':0xa,'menuItemFactory':Me}}};function _0x3c2c(){const _0x24c26d=['registerComponent','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','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','https://mcp.univer.ai/mcp/?univer_session_id=','useRef','mcpStatus.disconnected','mcpConfig.validation.invalidApiKey','mcpConfig.validation.invalidConfig','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','_initializeMenus','mcpConfig.validation.apiKeyRequired','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','API\x20密钥无效,请检查密钥是否正确','errorMessage','mcpStatus.networkError','\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','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','white','MCP\x20连接失败','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Retrying...','symbol','MCPConfigPanel','_handleConfigure','value','将以下配置添加到您的\x20MCP\x20客户端设置中:','random','children','MCP\x20状态未知','useCallback','M0\x200H16V16H0z','\x20-\x20','url(#$1','showStatus','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','mcpConfig.apiApplyInfo.title','univer-flex\x20univer-items-center','jsxs','198618bUnkKK','<SESSION_ID>','权限验证失败,请检查您的\x20API\x20密钥','Plugin','重启您的\x20MCP\x20客户端以使配置生效','mcpServerUrl','MCPStatusDisplay','MCP:\x20Unauthorized','Configuration\x20Steps:','mcp-config-dialog','mergeMenu','subscribe','getOwnPropertyDescriptor','span','univer-min-w-0\x20univer-flex-1','map','_menuManagerService','配置\x20MCP\x20使用\x20AI\x20操作电子表格','UniverIcon','MCP\x20已断开','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','off','MCP\x20客户端配置','已连接','round','mcpConfig.configSaved','0\x200\x2016\x2016','_connectionController','mcpConfig.connectionError.maxRetriesExceeded','API\x20Key','connectionError$','mcpConfig.configParameters','trim','fill','register','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','close-icon','配置参数:','univer-text-sm\x20univer-font-medium','setItem','ComponentManager','has','HelpIcon','mcpConfig.connectionStatus.retrying','CloseIcon','MCP:\x20Session\x20ID\x20Occupied','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','path','MCP_UI_PLUGIN','Click\x20to\x20connect\x20MCP','Input','useDependency','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','pre','_loading$','replace','mcpConfig.configStep3','API\x20密钥不能为空','mcpConfig.configStep1','LocaleService','BehaviorSubject','_dialogService','IUIPartsService','mcp.apiKey','mcpConfig.configStepTitle','Session\x20ID','mcpConfig.apiApplyInfo.description','Enable\x20authentication\x20for\x20secure\x20connections','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','UNAUTHORIZED','univer-size-4','showConfigPanel','__setCustomHeaders','univerjs-icon\x20univerjs-icon-','您的\x20API\x20密钥将在此浏览器中本地存储','Inject','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','会话ID','MCP:\x20会话\x20ID\x20已被占用','_localeService','off-line-icon','MessageType','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','ICommandService','0\x200\x2017\x2016','_injector','close','_initializeCommands','jsx','Click\x20to\x20configure\x20MCP','DependentOn','Module','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','Disposable','includes','attrs','MenuIcon','univer-flex\x20univer-items-center\x20univer-gap-3','_initStatusComponent','HEADER_MENU','disposeWithMe','univer-text-white','idSuffix','getCurrentConfig','MCP\x20已连接','sessionId$','displayName','MCP\x20Retrying...','univer-font-medium','mcpConfig.apiKeyPlaceholder','CheckMarkIcon','What\x20is\x20API\x20Key?','IConfigService','_validateConfig','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','univer-flex\x20univer-gap-3','_mcpCoreConfig$','mcpConfig.connectionError.networkError','push','Error','univer-bg-green-500','mcpConfig.description','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','1em','15UmnpzW','univer-flex\x20univer-items-start\x20univer-gap-3','mcpStatus.retrying','4845294yfnwGG','mcpConfig.apiApplyInfo.getStarted','mcpStatus.clickToConfigure','mcpStatus.unknown','stringify','Disconnected','registerCommand','API\x20密钥长度至少需要\x2010\x20位','MAX_RETRIES_EXCEEDED','show','string','Connected','get','2hguNgj','mcpStatus.unauthorized','zhCN','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','defs','点击连接\x20MCP','_initConfigSync','将配置添加到您的\x20MCP\x20客户端设置文件中','mcpConfig.connectionStatus.connecting','univer-text-gray-500','univer-space-y-2','BuiltInUIPart','保存配置','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20配置','Injector','配置保存成功','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','几秒钟内获取您的\x20API\x20密钥','UniverMCPPlugin','setConfig','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Connecting...','Enter\x20your\x20API\x20key','univer-text-red-500','IMenuManagerService','MCPUIMenuController','未连接','MCPConnectionError','substring','univer-text-gray-400','1287543abHjJx','svg','Get\x20your\x20API\x20key\x20in\x20seconds','mask','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','mcpConfig.saving','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','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','MCP_PLUGIN_CONFIG_KEY','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','on-line-icon_clip0_910_349','entries','_mcpConnectionController','univer-text-xs\x20univer-text-gray-500','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Failed\x20to\x20save\x20configuration','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','_uiPartsService','Invalid\x20configuration','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','useObservable','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP:\x20未授权','mcpConfig.apiKey','会话\x20ID\x20已被占用,请稍后再试','启用身份验证','IDialogService','请输入您的\x20API\x20密钥','http://www.w3.org/2000/svg','Button','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','ISocketService','mcpConfig.title','enUS','MCP:\x20网络错误','_config','MCP\x20重连中...','MCPConfigUIController','207634XbDLfU','pluginName','CONNECTED','off-line-icon_clip0_910_343','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','clsx','bottom','univer-space-y-3','noopener\x20noreferrer','Save\x20Configuration','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','mcpConfig.connectionError.unauthorized','Configuration\x20saved\x20successfully','apiKey','WebSocketService','getConfig','_apiKey$','CommandType','connectInjector','760VNMfhu','assign','button','mcpConfig.configStep2','配置保存失败','https://console.univer.plus','_componentManager','NETWORK_ERROR','univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','createElement','RibbonStartGroup','connectionStatus$','univer-shrink-0\x20univer-text-red-500','univer-shrink-0\x20univer-text-blue-500','univer-text-blue-600','API\x20key\x20is\x20required','xlink:href','OnLineIcon','MCP\x20Connecting...','univer-mr-2\x20univer-flex\x20univer-text-xl','MCP:\x20Network\x20Error','_localStorageService','连接中...','mcpConfig.sessionIdDescription','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','univer-flex\x20univer-items-center\x20univer-gap-2','open','univer-space-y-5','API\x20密钥','next','复制以下\x20JSON\x20配置','forEach','488300ByKhmm','mcpConfig.configInstructions','重连中...','1415407QRMMpZ','mcpConfig.note2','add','_messageService','validateApiKey','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','label','SESSION_ID_OCCUPIED','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','toStringTag','<API_KEY>','MCPConnectionUIController','Enable\x20Authentication','useState','_config$','univer.plus','currentColor','MCP\x20Connection\x20Failed','mcpStatus.connecting','length','mcpConfig.apiApplyInfo.univerAiLabel','_registerComponent','mcpStatus.sessionOccupied','Bearer\x20','保存中...','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','OffLineIcon','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','MCPConnectionStatus','最大重试次数','univer_session_id:','mcp-ui.command.openConfigPanel','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','FAILED','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer-bg-red-500','MCP:\x20Max\x20Retries\x20Exceeded','defineProperty','univer-text-xs\x20univer-text-gray-600','UniverMCPUIPlugin','_logService','DISCONNECTED','RETRYING','mcpStatus.connected','点击配置\x20MCP','removeItem','_configService','forwardRef','div','NONE','启用身份验证以获得安全连接','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','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','Copy\x20the\x20JSON\x20configuration\x20below','url(#on-line-icon_clip0_910_349)','colorChannel1','MCPConnectionController','clipPath','MCP:\x20超出最大重试次数','_initAutoConnect','univer-flex-1','current','MCP\x20Connected','Configuration\x20Parameters:','showDeveloperTools','CONNECTING','none','配置步骤:','tag','您的\x20API\x20密钥安全存储在本地存储中','MCP\x20Unknown\x20Status','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','mcpStatus.clickToConnect','_commandService','evenodd','Max\x20Retries','mcpStatus.failed','配置更改将立即生效','ILocalStorageService'];_0x3c2c=function(){return _0x24c26d;};return _0x3c2c();}var be=Object[_0x4c9222(0x247)],je=(_0x2e5ab2,_0x345b26,_0x53f8ad,_0x439e91)=>{const _0x304d97=_0x4c9222;for(var _0x450602=_0x439e91>0x1?void 0x0:_0x439e91?be(_0x345b26,_0x53f8ad):_0x345b26,_0x61d6d2=_0x2e5ab2[_0x304d97(0x1d9)]-0x1,_0x5aff6b;_0x61d6d2>=0x0;_0x61d6d2--)(_0x5aff6b=_0x2e5ab2[_0x61d6d2])&&(_0x450602=_0x5aff6b(_0x450602)||_0x450602);return _0x450602;},z=(_0x2fc5b9,_0x123481)=>(_0x4011ce,_0x24c252)=>_0x123481(_0x4011ce,_0x24c252,_0x2fc5b9);exports[_0x4c9222(0x164)]=class extends u[_0x4c9222(0x299)]{constructor(_0x13b995,_0x443171){const _0x538d39=_0x4c9222;super(),this[_0x538d39(0x20f)]=_0x13b995,this[_0x538d39(0x24b)]=_0x443171,this[_0x538d39(0x293)](),this[_0x538d39(0x21e)]();}[_0x4c9222(0x293)](){const _0x5d261c=_0x4c9222;[b][_0x5d261c(0x1c2)](_0x3c0f56=>{const _0x4a1c59=_0x5d261c;this[_0x4a1c59(0x2a0)](this[_0x4a1c59(0x20f)][_0x4a1c59(0x143)](_0x3c0f56));});}[_0x4c9222(0x21e)](){const _0x171f13=_0x4c9222;this['_menuManagerService'][_0x171f13(0x245)](Ne);}},exports[_0x4c9222(0x164)]=je([z(0x0,u[_0x4c9222(0x28f)]),z(0x1,v[_0x4c9222(0x163)])],exports[_0x4c9222(0x164)]);const Ee={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x4c9222(0x1b5),'connected':_0x4c9222(0x204),'failed':_0x4c9222(0x1d7),'retrying':_0x4c9222(0x2a7),'unknown':_0x4c9222(0x20c),'unauthorized':_0x4c9222(0x242),'sessionOccupied':_0x4c9222(0x269),'networkError':_0x4c9222(0x1b7),'maxRetriesExceeded':_0x4c9222(0x1ea),'clickToConnect':_0x4c9222(0x26d),'clickToConfigure':_0x4c9222(0x295)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x4c9222(0x177),'apiKey':_0x4c9222(0x259),'apiKeyPlaceholder':_0x4c9222(0x161),'apiKeyHint':_0x4c9222(0x288),'enableAuth':_0x4c9222(0x1d2),'enableAuthHint':_0x4c9222(0x27f),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x4c9222(0x26a),'configStepTitle':_0x4c9222(0x243),'configStep1':_0x4c9222(0x1fb),'configStep2':_0x4c9222(0x1cb),'configStep3':_0x4c9222(0x199),'sessionId':_0x4c9222(0x27d),'sessionIdDescription':_0x4c9222(0x220),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x4c9222(0x205),'maxRetries':_0x4c9222(0x211),'save':_0x4c9222(0x198),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x4c9222(0x17e),'configSaved':_0x4c9222(0x19b),'configError':_0x4c9222(0x178),'apiApplyInfo':{'title':_0x4c9222(0x2ab),'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':_0x4c9222(0x16b)},'validation':{'apiKeyRequired':_0x4c9222(0x1b2),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x4c9222(0x17b),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x4c9222(0x142),'connecting':_0x4c9222(0x160),'connected':_0x4c9222(0x148),'failed':'Connection\x20Failed','retrying':_0x4c9222(0x229)},'connectionError':{'unauthorized':_0x4c9222(0x157),'sessionOccupied':_0x4c9222(0x1bb),'networkError':_0x4c9222(0x228),'maxRetriesExceeded':_0x4c9222(0x15f)}}},we={'mcpStatus':{'disconnected':_0x4c9222(0x24e),'connecting':'MCP\x20连接中...','connected':_0x4c9222(0x2a4),'failed':_0x4c9222(0x227),'retrying':_0x4c9222(0x18d),'unknown':_0x4c9222(0x231),'unauthorized':_0x4c9222(0x17f),'sessionOccupied':_0x4c9222(0x28a),'networkError':_0x4c9222(0x18b),'maxRetriesExceeded':_0x4c9222(0x200),'clickToConnect':_0x4c9222(0x14f),'clickToConfigure':_0x4c9222(0x1f2)},'mcpConfig':{'title':_0x4c9222(0x158),'description':_0x4c9222(0x24c),'apiKey':_0x4c9222(0x1bf),'apiKeyPlaceholder':_0x4c9222(0x184),'apiKeyHint':_0x4c9222(0x286),'enableAuth':_0x4c9222(0x182),'enableAuthHint':_0x4c9222(0x1f8),'connectionInfo':_0x4c9222(0x252),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':_0x4c9222(0x22e),'configStepTitle':_0x4c9222(0x209),'configStep1':_0x4c9222(0x1c1),'configStep2':_0x4c9222(0x151),'configStep3':_0x4c9222(0x23f),'sessionId':_0x4c9222(0x289),'sessionIdDescription':_0x4c9222(0x1df),'authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':_0x4c9222(0x261),'maxRetries':_0x4c9222(0x1e3),'save':_0x4c9222(0x156),'saving':_0x4c9222(0x1de),'note1':_0x4c9222(0x213),'note2':_0x4c9222(0x20b),'configSaved':_0x4c9222(0x15a),'configError':_0x4c9222(0x1a6),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x4c9222(0x237),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0x4c9222(0x15c)},'validation':{'apiKeyRequired':_0x4c9222(0x275),'apiKeyTooShort':_0x4c9222(0x144),'invalidConfig':'配置无效','invalidApiKey':_0x4c9222(0x221)},'connectionStatus':{'disconnected':_0x4c9222(0x165),'connecting':_0x4c9222(0x1b9),'connected':_0x4c9222(0x253),'failed':'连接失败','retrying':_0x4c9222(0x1c5)},'connectionError':{'unauthorized':_0x4c9222(0x23d),'sessionOccupied':_0x4c9222(0x181),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var Ae=Object[_0x4c9222(0x1eb)],Oe=Object[_0x4c9222(0x247)],De=(_0xe110a2,_0x90eba1,_0x590fa3)=>_0x90eba1 in _0xe110a2?Ae(_0xe110a2,_0x90eba1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x590fa3}):_0xe110a2[_0x90eba1]=_0x590fa3,Ue=(_0x31c550,_0x4fff59,_0x26d801,_0x10f593)=>{const _0x413e1a=_0x4c9222;for(var _0x5b73b6=_0x10f593>0x1?void 0x0:_0x10f593?Oe(_0x4fff59,_0x26d801):_0x4fff59,_0x13a932=_0x31c550[_0x413e1a(0x1d9)]-0x1,_0x37b669;_0x13a932>=0x0;_0x13a932--)(_0x37b669=_0x31c550[_0x13a932])&&(_0x5b73b6=_0x37b669(_0x5b73b6)||_0x5b73b6);return _0x5b73b6;},y=(_0x50c3f3,_0x2a9f4e)=>(_0x160a8e,_0x16755a)=>_0x2a9f4e(_0x160a8e,_0x16755a,_0x50c3f3),$e=(_0x4551f5,_0x432bc2,_0x3e1468)=>De(_0x4551f5,_0x432bc2+'',_0x3e1468);exports['UniverMCPUIPlugin']=class extends u[_0x4c9222(0x23e)]{constructor(_0x3d7ecc=L,_0xa6adb3,_0x527c7a,_0x469acc,_0x3ea5b4,_0x30fd14){const _0x434982=_0x4c9222;super(),this[_0x434982(0x18c)]=_0x3d7ecc,this[_0x434982(0x291)]=_0xa6adb3,this[_0x434982(0x1f4)]=_0x527c7a,this[_0x434982(0x17a)]=_0x469acc,this['_localStorageService']=_0x3ea5b4,this[_0x434982(0x28b)]=_0x30fd14;const {..._0x293730}=u['merge']({},L,this[_0x434982(0x18c)]);this[_0x434982(0x1f4)][_0x434982(0x15e)](P,_0x293730);}async['onStarting'](){const _0x2d6d72=_0x4c9222,_0x40e557=[[exports[_0x2d6d72(0x1d1)]],[exports[_0x2d6d72(0x18e)]],[exports[_0x2d6d72(0x164)]]];this['_injector'][_0x2d6d72(0x265)](A[_0x2d6d72(0x188)])||_0x40e557[_0x2d6d72(0x133)]([A[_0x2d6d72(0x188)],{'useClass':A[_0x2d6d72(0x19d)]}]),_0x40e557[_0x2d6d72(0x1c2)](_0x3d9084=>this['_injector'][_0x2d6d72(0x1c8)](_0x3d9084)),this[_0x2d6d72(0x291)]['get'](exports['MCPConnectionUIController']),this[_0x2d6d72(0x291)][_0x2d6d72(0x149)](exports[_0x2d6d72(0x18e)]),this[_0x2d6d72(0x291)][_0x2d6d72(0x149)](exports[_0x2d6d72(0x164)]);}},$e(exports[_0x4c9222(0x1ed)],_0x4c9222(0x190),_0x4c9222(0x26c)),exports[_0x4c9222(0x1ed)]=Ue([u[_0x4c9222(0x296)](s[_0x4c9222(0x15d)]),y(0x1,u[_0x4c9222(0x287)](u[_0x4c9222(0x159)])),y(0x2,u['IConfigService']),y(0x3,v['IUIPartsService']),y(0x4,u[_0x4c9222(0x214)]),y(0x5,u[_0x4c9222(0x287)](u[_0x4c9222(0x277)]))],exports[_0x4c9222(0x1ed)]),exports[_0x4c9222(0x22b)]=V,exports[_0x4c9222(0x241)]=W,exports['OpenMCPConfigPanelCommand']=b,exports[_0x4c9222(0x18a)]=Ee,exports[_0x4c9222(0x14c)]=we;
|
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x42d98d=_0xb3e9;(function(_0x8284cf,_0x21d79d){const _0x269d03=_0xb3e9,_0x592a27=_0x8284cf();while(!![]){try{const _0x43adcd=-parseInt(_0x269d03(0xbf))/0x1*(-parseInt(_0x269d03(0xbd))/0x2)+-parseInt(_0x269d03(0xa1))/0x3*(parseInt(_0x269d03(0xbc))/0x4)+-parseInt(_0x269d03(0xbe))/0x5+-parseInt(_0x269d03(0xb7))/0x6*(parseInt(_0x269d03(0x9e))/0x7)+-parseInt(_0x269d03(0xa3))/0x8*(parseInt(_0x269d03(0xa2))/0x9)+-parseInt(_0x269d03(0xa9))/0xa*(-parseInt(_0x269d03(0xcd))/0xb)+parseInt(_0x269d03(0xcf))/0xc;if(_0x43adcd===_0x21d79d)break;else _0x592a27['push'](_0x592a27['shift']());}catch(_0x58aed7){_0x592a27['push'](_0x592a27['shift']());}}}(_0x5950,0x5c536));function _0x5950(){const _0x52e793=['2jujgzL','3561815uzXyYE','70566FOnwpP','Invalid\x20configuration','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Connection\x20Failed','API\x20key\x20with\x20Bearer\x20prefix.','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Save\x20Configuration','Retrying...','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Unknown\x20Status','MCP\x20Connected','Get\x20your\x20API\x20key\x20in\x20seconds','22DrSlpc','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','28804344VWfoIL','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','70PlzWEu','Configuration\x20Parameters:','Configuration\x20Steps:','8484NIEFWo','3267syRJNT','6920AyPLbu','Configuration\x20saved\x20successfully','Session\x20ID','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Failed\x20to\x20save\x20configuration','MCP:\x20Unauthorized','1520670hMNQlp','Saving...','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Configuration','MCP:\x20Network\x20Error','MCP\x20Connection\x20Failed','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Click\x20to\x20connect\x20MCP','Disconnected','What\x20is\x20API\x20Key?','MCP\x20Client\x20Configuration','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Enable\x20Authentication','Max\x20Retries','430362YxESxN','Connected','MCP:\x20Session\x20ID\x20Occupied','Enable\x20authentication\x20for\x20secure\x20connections','Enter\x20your\x20API\x20key','924FYafLx'];_0x5950=function(){return _0x52e793;};return _0x5950();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x42d98d(0xcb),'failed':_0x42d98d(0xae),'retrying':'MCP\x20Retrying...','unknown':_0x42d98d(0xca),'unauthorized':_0x42d98d(0xa8),'sessionOccupied':_0x42d98d(0xb9),'networkError':_0x42d98d(0xad),'maxRetriesExceeded':_0x42d98d(0xc9),'clickToConnect':_0x42d98d(0xb0),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x42d98d(0xac),'description':_0x42d98d(0xd1),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x42d98d(0xbb),'apiKeyHint':_0x42d98d(0xc7),'enableAuth':_0x42d98d(0xb5),'enableAuthHint':_0x42d98d(0xba),'connectionInfo':_0x42d98d(0xb3),'mcpClientConfig':_0x42d98d(0xb3),'configInstructions':_0x42d98d(0xc4),'configStepTitle':_0x42d98d(0xa0),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x42d98d(0xd0),'configStep3':_0x42d98d(0xc1),'sessionId':_0x42d98d(0xa5),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x42d98d(0xc3),'configParameters':_0x42d98d(0x9f),'maxRetries':_0x42d98d(0xb6),'save':_0x42d98d(0xc5),'saving':_0x42d98d(0xaa),'note1':_0x42d98d(0xa6),'note2':_0x42d98d(0xab),'configSaved':_0x42d98d(0xa4),'configError':_0x42d98d(0xa7),'apiApplyInfo':{'title':_0x42d98d(0xb2),'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':_0x42d98d(0xcc)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x42d98d(0xc0),'invalidApiKey':_0x42d98d(0xaf)},'connectionStatus':{'disconnected':_0x42d98d(0xb1),'connecting':'Connecting...','connected':_0x42d98d(0xb8),'failed':_0x42d98d(0xc2),'retrying':_0x42d98d(0xc6)},'connectionError':{'unauthorized':_0x42d98d(0xb4),'sessionOccupied':_0x42d98d(0xc8),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x42d98d(0xce)}}},n=e;function _0xb3e9(_0xab18fd,_0x58d68a){const _0x5950a8=_0x5950();return _0xb3e9=function(_0xb3e98f,_0x2ae2b0){_0xb3e98f=_0xb3e98f-0x9e;let _0x3eb13e=_0x5950a8[_0xb3e98f];return _0x3eb13e;},_0xb3e9(_0xab18fd,_0x58d68a);}module['exports']=n;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x5176e9=_0x5a76;(function(_0xf137a5,_0x2aa035){const _0x244c3d=_0x5a76,_0x526108=_0xf137a5();while(!![]){try{const _0x471b2b=parseInt(_0x244c3d(0x187))/0x1+parseInt(_0x244c3d(0x184))/0x2*(parseInt(_0x244c3d(0x181))/0x3)+parseInt(_0x244c3d(0x18c))/0x4*(-parseInt(_0x244c3d(0x1a4))/0x5)+parseInt(_0x244c3d(0x188))/0x6*(parseInt(_0x244c3d(0x1a7))/0x7)+-parseInt(_0x244c3d(0x1ab))/0x8+parseInt(_0x244c3d(0x185))/0x9+-parseInt(_0x244c3d(0x1a3))/0xa;if(_0x471b2b===_0x2aa035)break;else _0x526108['push'](_0x526108['shift']());}catch(_0x29d817){_0x526108['push'](_0x526108['shift']());}}}(_0x4589,0x1b524));function _0x5a76(_0x24fd61,_0x433e24){const _0x4589d4=_0x4589();return _0x5a76=function(_0x5a7675,_0x4f0e43){_0x5a7675=_0x5a7675-0x17e;let _0x302230=_0x4589d4[_0x5a7675];return _0x302230;},_0x5a76(_0x24fd61,_0x433e24);}const e={'mcpStatus':{'disconnected':_0x5176e9(0x17f),'connecting':_0x5176e9(0x189),'connected':_0x5176e9(0x18f),'failed':_0x5176e9(0x195),'retrying':_0x5176e9(0x18b),'unknown':_0x5176e9(0x183),'unauthorized':_0x5176e9(0x1af),'sessionOccupied':_0x5176e9(0x18e),'networkError':_0x5176e9(0x193),'maxRetriesExceeded':_0x5176e9(0x190),'clickToConnect':_0x5176e9(0x19d),'clickToConfigure':_0x5176e9(0x1b0)},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':_0x5176e9(0x198),'apiKeyHint':_0x5176e9(0x194),'enableAuth':_0x5176e9(0x196),'enableAuthHint':_0x5176e9(0x19f),'connectionInfo':_0x5176e9(0x1a9),'mcpClientConfig':_0x5176e9(0x1a9),'configInstructions':_0x5176e9(0x1ac),'configStepTitle':_0x5176e9(0x19e),'configStep1':_0x5176e9(0x192),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x5176e9(0x180),'sessionId':'Session\x20ID','sessionIdDescription':_0x5176e9(0x1a5),'authorizationDescription':_0x5176e9(0x19b),'configParameters':_0x5176e9(0x18a),'maxRetries':_0x5176e9(0x19c),'save':'Save\x20Configuration','saving':'Saving...','note1':_0x5176e9(0x1a0),'note2':_0x5176e9(0x191),'configSaved':_0x5176e9(0x182),'configError':_0x5176e9(0x1a1),'apiApplyInfo':{'title':_0x5176e9(0x1ad),'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':_0x5176e9(0x1a2),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x5176e9(0x17e),'invalidConfig':_0x5176e9(0x1a6),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x5176e9(0x197),'connecting':'Connecting...','connected':_0x5176e9(0x199),'failed':'Connection\x20Failed','retrying':_0x5176e9(0x1a8)},'connectionError':{'unauthorized':_0x5176e9(0x19a),'sessionOccupied':_0x5176e9(0x18d),'networkError':_0x5176e9(0x186),'maxRetriesExceeded':_0x5176e9(0x1aa)}}};function _0x4589(){const _0x48957f=['Retrying...','MCP\x20Client\x20Configuration','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','385232kvDQIw','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','What\x20is\x20API\x20Key?','exports','MCP:\x20Unauthorized','Click\x20to\x20configure\x20MCP','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Disconnected','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','3LSSyYH','Configuration\x20saved\x20successfully','MCP\x20Unknown\x20Status','9134kBejpt','601515hiiVxm','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','166637SuyQxV','948KdLDuK','MCP\x20Connecting...','Configuration\x20Parameters:','MCP\x20Retrying...','4fsXdKx','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP:\x20Session\x20ID\x20Occupied','MCP\x20Connected','MCP:\x20Max\x20Retries\x20Exceeded','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Copy\x20the\x20JSON\x20configuration\x20below','MCP:\x20Network\x20Error','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Connection\x20Failed','Enable\x20Authentication','Disconnected','Enter\x20your\x20API\x20key','Connected','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','API\x20key\x20with\x20Bearer\x20prefix.','Max\x20Retries','Click\x20to\x20connect\x20MCP','Configuration\x20Steps:','Enable\x20authentication\x20for\x20secure\x20connections','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Failed\x20to\x20save\x20configuration','Univer\x20AI\x20Console','1271240tAVTUN','173755ZvzSgD','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Invalid\x20configuration','3717iKCGEc'];_0x4589=function(){return _0x48957f;};return _0x4589();}module[_0x5176e9(0x1ae)]=e;
|
package/lib/cjs/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x51b7(_0x1cbab8,_0x14fa81){const _0x275f24=_0x275f();return _0x51b7=function(_0x51b727,_0x359067){_0x51b727=_0x51b727-0x8a;let _0x1ac435=_0x275f24[_0x51b727];return _0x1ac435;},_0x51b7(_0x1cbab8,_0x14fa81);}const _0x3394c5=_0x51b7;(function(_0x3016be,_0x6d6933){const _0x2927a3=_0x51b7,_0x4532b2=_0x3016be();while(!![]){try{const _0x639ee3=parseInt(_0x2927a3(0xa4))/0x1*(parseInt(_0x2927a3(0x93))/0x2)+parseInt(_0x2927a3(0x9a))/0x3+-parseInt(_0x2927a3(0x99))/0x4+parseInt(_0x2927a3(0xb1))/0x5+parseInt(_0x2927a3(0xb8))/0x6+-parseInt(_0x2927a3(0xa8))/0x7*(parseInt(_0x2927a3(0xad))/0x8)+-parseInt(_0x2927a3(0xa9))/0x9;if(_0x639ee3===_0x6d6933)break;else _0x4532b2['push'](_0x4532b2['shift']());}catch(_0x48568d){_0x4532b2['push'](_0x4532b2['shift']());}}}(_0x275f,0xe424f));function _0x275f(){const _0x20daa3=['24KsXgHM','Session\x20ID','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','API\x20key\x20with\x20Bearer\x20prefix.','4638175oegHky','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Click\x20to\x20connect\x20MCP','Invalid\x20configuration','MCP:\x20Network\x20Error','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','5229588rPLGLO','What\x20is\x20API\x20Key?','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP:\x20Max\x20Retries\x20Exceeded','Disconnected','Enter\x20your\x20API\x20key','MCP\x20Disconnected','MCP\x20Connected','Get\x20your\x20API\x20key\x20in\x20seconds','Connecting...','316858QRzzfV','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Client\x20Configuration','MCP:\x20Unauthorized','MCP\x20Connecting...','Configuration\x20Steps:','4359592Ybeemy','4667529msSjFs','Click\x20to\x20configure\x20MCP','Enable\x20authentication\x20for\x20secure\x20connections','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Failed\x20to\x20save\x20configuration','API\x20Key','Copy\x20the\x20JSON\x20configuration\x20below','Max\x20Retries','Configuration\x20saved\x20successfully','9JXqTjO','API\x20key\x20is\x20required','Save\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.','1132810mdyXRi','20439630dAPsmt','Univer\x20AI\x20Console','MCP\x20Configuration','MCP\x20Retrying...'];_0x275f=function(){return _0x20daa3;};return _0x275f();}const e={'mcpStatus':{'disconnected':_0x3394c5(0x8f),'connecting':_0x3394c5(0x97),'connected':_0x3394c5(0x90),'failed':'MCP\x20Connection\x20Failed','retrying':_0x3394c5(0xac),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x3394c5(0x96),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x3394c5(0xb5),'maxRetriesExceeded':_0x3394c5(0x8c),'clickToConnect':_0x3394c5(0xb3),'clickToConfigure':_0x3394c5(0x9b)},'mcpConfig':{'title':_0x3394c5(0xab),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x3394c5(0xa0),'apiKeyPlaceholder':_0x3394c5(0x8e),'apiKeyHint':_0x3394c5(0x9d),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x3394c5(0x9c),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x3394c5(0x95),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x3394c5(0x98),'configStep1':_0x3394c5(0xa1),'configStep2':_0x3394c5(0xaf),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x3394c5(0xae),'sessionIdDescription':_0x3394c5(0xb6),'authorizationDescription':_0x3394c5(0xb0),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x3394c5(0xa2),'save':_0x3394c5(0xa6),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x3394c5(0x94),'configSaved':_0x3394c5(0xa3),'configError':_0x3394c5(0x9f),'apiApplyInfo':{'title':_0x3394c5(0x8a),'description':_0x3394c5(0xa7),'univerAiLabel':_0x3394c5(0xaa),'getStarted':_0x3394c5(0x91)},'validation':{'apiKeyRequired':_0x3394c5(0xa5),'apiKeyTooShort':_0x3394c5(0x8b),'invalidConfig':_0x3394c5(0xb4),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x3394c5(0x8d),'connecting':_0x3394c5(0x92),'connected':'Connected','failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x3394c5(0x9e),'networkError':_0x3394c5(0xb2),'maxRetriesExceeded':_0x3394c5(0xb7)}}},n=e;module['exports']=n;
|
package/lib/cjs/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x298fa1=_0x31d4;(function(_0x1576cb,_0x543cb6){const _0x2aac3b=_0x31d4,_0x3e8e07=_0x1576cb();while(!![]){try{const _0xb2f6af=parseInt(_0x2aac3b(0x157))/0x1+-parseInt(_0x2aac3b(0x128))/0x2*(parseInt(_0x2aac3b(0x126))/0x3)+parseInt(_0x2aac3b(0x13f))/0x4*(parseInt(_0x2aac3b(0x13c))/0x5)+-parseInt(_0x2aac3b(0x12c))/0x6*(parseInt(_0x2aac3b(0x146))/0x7)+-parseInt(_0x2aac3b(0x14b))/0x8+parseInt(_0x2aac3b(0x13a))/0x9*(-parseInt(_0x2aac3b(0x143))/0xa)+parseInt(_0x2aac3b(0x13e))/0xb;if(_0xb2f6af===_0x543cb6)break;else _0x3e8e07['push'](_0x3e8e07['shift']());}catch(_0x5ca367){_0x3e8e07['push'](_0x3e8e07['shift']());}}}(_0x4da4,0x88a70));function _0x31d4(_0x11b87d,_0x89225d){const _0x4da42c=_0x4da4();return _0x31d4=function(_0x31d46e,_0x1f0158){_0x31d46e=_0x31d46e-0x123;let _0x317a5e=_0x4da42c[_0x31d46e];return _0x317a5e;},_0x31d4(_0x11b87d,_0x89225d);}function _0x4da4(){const _0x43ca99=['Retrying...','API\x20key\x20with\x20Bearer\x20prefix.','Connecting...','API\x20Key','MCP\x20Disconnected','Session\x20ID','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','API\x20key\x20is\x20required','Configuration\x20Steps:','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Invalid\x20configuration','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','2043QZMqJv','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','2217730cJhPmi','MCP\x20Connecting...','3702149VjSELE','4uEiOvZ','Disconnected','Saving...','What\x20is\x20API\x20Key?','8180fAhDIB','MCP\x20Connection\x20Failed','Connected','3626063EjXSJo','Connection\x20Failed','MCP:\x20Session\x20ID\x20Occupied','Click\x20to\x20connect\x20MCP','Copy\x20the\x20JSON\x20configuration\x20below','620136kJdDNI','MCP\x20Client\x20Configuration','Configuration\x20Parameters:','Save\x20Configuration','MCP:\x20Max\x20Retries\x20Exceeded','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Retrying...','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Click\x20to\x20configure\x20MCP','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Enable\x20Authentication','1050747yCVrPK','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','exports','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','2682kVOAIo','MCP:\x20Network\x20Error','1096rcwgAy','MCP\x20Unknown\x20Status','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP:\x20Unauthorized','6EUUJle'];_0x4da4=function(){return _0x43ca99;};return _0x4da4();}const e={'mcpStatus':{'disconnected':_0x298fa1(0x131),'connecting':_0x298fa1(0x13d),'connected':'MCP\x20Connected','failed':_0x298fa1(0x144),'retrying':_0x298fa1(0x152),'unknown':_0x298fa1(0x129),'unauthorized':_0x298fa1(0x12b),'sessionOccupied':_0x298fa1(0x148),'networkError':_0x298fa1(0x127),'maxRetriesExceeded':_0x298fa1(0x14f),'clickToConnect':_0x298fa1(0x149),'clickToConfigure':_0x298fa1(0x154)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x298fa1(0x136),'apiKey':_0x298fa1(0x130),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x298fa1(0x158),'enableAuth':_0x298fa1(0x156),'enableAuthHint':_0x298fa1(0x151),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x298fa1(0x14c),'configInstructions':_0x298fa1(0x155),'configStepTitle':_0x298fa1(0x135),'configStep1':_0x298fa1(0x14a),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x298fa1(0x138),'sessionId':_0x298fa1(0x132),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x298fa1(0x12e),'configParameters':_0x298fa1(0x14d),'maxRetries':'Max\x20Retries','save':_0x298fa1(0x14e),'saving':_0x298fa1(0x141),'note1':_0x298fa1(0x153),'note2':_0x298fa1(0x12a),'configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x298fa1(0x142),'description':_0x298fa1(0x125),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x298fa1(0x134),'apiKeyTooShort':_0x298fa1(0x139),'invalidConfig':_0x298fa1(0x137),'invalidApiKey':_0x298fa1(0x13b)},'connectionStatus':{'disconnected':_0x298fa1(0x140),'connecting':_0x298fa1(0x12f),'connected':_0x298fa1(0x145),'failed':_0x298fa1(0x147),'retrying':_0x298fa1(0x12d)},'connectionError':{'unauthorized':_0x298fa1(0x133),'sessionOccupied':_0x298fa1(0x150),'networkError':_0x298fa1(0x124),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module[_0x298fa1(0x123)]=n;
|
package/lib/cjs/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x4af4(_0x5de637,_0x5522c0){const _0x2e30fd=_0x2e30();return _0x4af4=function(_0x4af4e2,_0x4af2d4){_0x4af4e2=_0x4af4e2-0x1c8;let _0x8b2f98=_0x2e30fd[_0x4af4e2];return _0x8b2f98;},_0x4af4(_0x5de637,_0x5522c0);}const _0x297cce=_0x4af4;(function(_0x330f31,_0x529349){const _0x2774ed=_0x4af4,_0x545614=_0x330f31();while(!![]){try{const _0x476773=parseInt(_0x2774ed(0x1da))/0x1+parseInt(_0x2774ed(0x1f9))/0x2+-parseInt(_0x2774ed(0x1e9))/0x3*(-parseInt(_0x2774ed(0x1c9))/0x4)+parseInt(_0x2774ed(0x1cc))/0x5*(-parseInt(_0x2774ed(0x1f6))/0x6)+-parseInt(_0x2774ed(0x1ef))/0x7*(parseInt(_0x2774ed(0x1ca))/0x8)+parseInt(_0x2774ed(0x1c8))/0x9*(parseInt(_0x2774ed(0x1e0))/0xa)+-parseInt(_0x2774ed(0x1ee))/0xb*(-parseInt(_0x2774ed(0x1f3))/0xc);if(_0x476773===_0x529349)break;else _0x545614['push'](_0x545614['shift']());}catch(_0x4de34c){_0x545614['push'](_0x545614['shift']());}}}(_0x2e30,0xf411c));function _0x2e30(){const _0x1bc0dd=['Max\x20Retries','Click\x20to\x20configure\x20MCP','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Connected','API\x20key\x20is\x20required','136579KhKoQT','Invalid\x20configuration','MCP:\x20Unauthorized','MCP\x20Configuration','MCP\x20Connected','Session\x20ID','10RBWOEb','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Configuration\x20saved\x20successfully','Saving...','Copy\x20the\x20JSON\x20configuration\x20below','Disconnected','Univer\x20AI\x20Console','Get\x20your\x20API\x20key\x20in\x20seconds','Connecting...','246867CinkBU','exports','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','API\x20Key','10681bkOjqH','1601453coHuUD','MCP\x20Unknown\x20Status','What\x20is\x20API\x20Key?','MCP:\x20Session\x20ID\x20Occupied','14052iKmfgx','Connection\x20Failed','Save\x20Configuration','165180xnWVVL','API\x20key\x20with\x20Bearer\x20prefix.','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','842130GANywy','MCP\x20Retrying...','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','9772443DtiLeW','24ipcpzw','16jcfpsA','Configuration\x20Steps:','330ELkGGI','MCP\x20Client\x20Configuration','MCP:\x20Network\x20Error','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Failed\x20to\x20save\x20configuration','Click\x20to\x20connect\x20MCP','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets'];_0x2e30=function(){return _0x1bc0dd;};return _0x2e30();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x297cce(0x1de),'failed':'MCP\x20Connection\x20Failed','retrying':_0x297cce(0x1fa),'unknown':_0x297cce(0x1f0),'unauthorized':_0x297cce(0x1dc),'sessionOccupied':_0x297cce(0x1f2),'networkError':_0x297cce(0x1ce),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x297cce(0x1d1),'clickToConfigure':_0x297cce(0x1d5)},'mcpConfig':{'title':_0x297cce(0x1dd),'description':_0x297cce(0x1d3),'apiKey':_0x297cce(0x1ed),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x297cce(0x1d7),'enableAuth':'Enable\x20Authentication','enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x297cce(0x1cd),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x297cce(0x1cb),'configStep1':_0x297cce(0x1e4),'configStep2':_0x297cce(0x1fb),'configStep3':_0x297cce(0x1d2),'sessionId':_0x297cce(0x1df),'sessionIdDescription':_0x297cce(0x1eb),'authorizationDescription':_0x297cce(0x1f7),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x297cce(0x1d4),'save':_0x297cce(0x1f5),'saving':_0x297cce(0x1e3),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x297cce(0x1e2),'configError':_0x297cce(0x1d0),'apiApplyInfo':{'title':_0x297cce(0x1f1),'description':_0x297cce(0x1ec),'univerAiLabel':_0x297cce(0x1e6),'getStarted':_0x297cce(0x1e7)},'validation':{'apiKeyRequired':_0x297cce(0x1d9),'apiKeyTooShort':_0x297cce(0x1f8),'invalidConfig':_0x297cce(0x1db),'invalidApiKey':_0x297cce(0x1cf)},'connectionStatus':{'disconnected':_0x297cce(0x1e5),'connecting':_0x297cce(0x1e8),'connected':_0x297cce(0x1d8),'failed':_0x297cce(0x1f4),'retrying':'Retrying...'},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x297cce(0x1e1),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x297cce(0x1d6)}}},n=e;module[_0x297cce(0x1ea)]=n;
|
package/lib/cjs/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x1fbddb=_0xf90a;function _0xf90a(_0x58a8a9,_0x29592f){const _0x3c4f55=_0x3c4f();return _0xf90a=function(_0xf90abf,_0x4d4078){_0xf90abf=_0xf90abf-0x18b;let _0x397863=_0x3c4f55[_0xf90abf];return _0x397863;},_0xf90a(_0x58a8a9,_0x29592f);}(function(_0x3ee62a,_0x1efbf2){const _0x50c5f9=_0xf90a,_0x4ee26c=_0x3ee62a();while(!![]){try{const _0x4f9bac=-parseInt(_0x50c5f9(0x1b3))/0x1+parseInt(_0x50c5f9(0x18e))/0x2+parseInt(_0x50c5f9(0x198))/0x3*(parseInt(_0x50c5f9(0x1a5))/0x4)+-parseInt(_0x50c5f9(0x1a6))/0x5*(parseInt(_0x50c5f9(0x193))/0x6)+-parseInt(_0x50c5f9(0x18c))/0x7+-parseInt(_0x50c5f9(0x18f))/0x8+parseInt(_0x50c5f9(0x19f))/0x9;if(_0x4f9bac===_0x1efbf2)break;else _0x4ee26c['push'](_0x4ee26c['shift']());}catch(_0xdabf0a){_0x4ee26c['push'](_0x4ee26c['shift']());}}}(_0x3c4f,0x451e4));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x1fbddb(0x1a9),'connected':_0x1fbddb(0x1a3),'failed':_0x1fbddb(0x1b2),'retrying':'MCP\x20Retrying...','unknown':_0x1fbddb(0x1b7),'unauthorized':_0x1fbddb(0x1bb),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x1fbddb(0x1b4),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x1fbddb(0x1aa)},'mcpConfig':{'title':_0x1fbddb(0x19d),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x1fbddb(0x1b6),'apiKeyPlaceholder':_0x1fbddb(0x192),'apiKeyHint':_0x1fbddb(0x1a7),'enableAuth':_0x1fbddb(0x1b1),'enableAuthHint':_0x1fbddb(0x19b),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x1fbddb(0x1af),'configInstructions':_0x1fbddb(0x1ac),'configStepTitle':_0x1fbddb(0x19e),'configStep1':_0x1fbddb(0x190),'configStep2':_0x1fbddb(0x191),'configStep3':_0x1fbddb(0x1a1),'sessionId':_0x1fbddb(0x1ae),'sessionIdDescription':_0x1fbddb(0x18d),'authorizationDescription':_0x1fbddb(0x1a4),'configParameters':_0x1fbddb(0x194),'maxRetries':'Max\x20Retries','save':_0x1fbddb(0x1ab),'saving':_0x1fbddb(0x1b0),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x1fbddb(0x1a0),'configSaved':_0x1fbddb(0x1a2),'configError':_0x1fbddb(0x197),'apiApplyInfo':{'title':_0x1fbddb(0x1ad),'description':_0x1fbddb(0x199),'univerAiLabel':_0x1fbddb(0x1b8),'getStarted':_0x1fbddb(0x195)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x1fbddb(0x1ba),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x1fbddb(0x196)},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':_0x1fbddb(0x18b),'failed':_0x1fbddb(0x19a),'retrying':_0x1fbddb(0x1b9)},'connectionError':{'unauthorized':_0x1fbddb(0x1a8),'sessionOccupied':_0x1fbddb(0x1b5),'networkError':_0x1fbddb(0x19c),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module['exports']=n;function _0x3c4f(){const _0x4a6a85=['Configuration\x20Steps:','1985184LctbPG','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Configuration\x20saved\x20successfully','MCP\x20Connected','API\x20key\x20with\x20Bearer\x20prefix.','60rSORGM','11265xVIAJo','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Connecting...','Click\x20to\x20configure\x20MCP','Save\x20Configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','What\x20is\x20API\x20Key?','Session\x20ID','MCP\x20Client\x20Configuration','Saving...','Enable\x20Authentication','MCP\x20Connection\x20Failed','122586JWNslC','MCP:\x20Network\x20Error','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','API\x20Key','MCP\x20Unknown\x20Status','Univer\x20AI\x20Console','Retrying...','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP:\x20Unauthorized','Connected','741153HRllhg','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','881206SkGiDG','2667352vEPeHJ','Copy\x20the\x20JSON\x20configuration\x20below','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Enter\x20your\x20API\x20key','984AOnQUX','Configuration\x20Parameters:','Get\x20your\x20API\x20key\x20in\x20seconds','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Failed\x20to\x20save\x20configuration','110661WbsjRn','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Connection\x20Failed','Enable\x20authentication\x20for\x20secure\x20connections','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Configuration'];_0x3c4f=function(){return _0x4a6a85;};return _0x3c4f();}
|