@univerjs-pro/mcp-ui 0.12.1 → 0.12.2-experimental.20251129-0fa20cd
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/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 +9 -9
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x5f019c=_0x6b3c;(function(_0x316eec,_0x850f4a){const _0x236b2a=_0x6b3c,_0x399394=_0x316eec();while(!![]){try{const _0x2be710=-parseInt(_0x236b2a(0x171))/0x1*(parseInt(_0x236b2a(0x19c))/0x2)+-parseInt(_0x236b2a(0x191))/0x3+-parseInt(_0x236b2a(0x106))/0x4+-parseInt(_0x236b2a(0x1d9))/0x5*(parseInt(_0x236b2a(0x200))/0x6)+-parseInt(_0x236b2a(0x10e))/0x7+parseInt(_0x236b2a(0x172))/0x8+parseInt(_0x236b2a(0x1f8))/0x9*(parseInt(_0x236b2a(0x129))/0xa);if(_0x2be710===_0x850f4a)break;else _0x399394['push'](_0x399394['shift']());}catch(_0x3b1966){_0x399394['push'](_0x399394['shift']());}}}(_0x297a,0xd8ce7));function _0x6b3c(_0x30b0e7,_0x209229){const _0x297a34=_0x297a();return _0x6b3c=function(_0x6b3c22,_0x58ec84){_0x6b3c22=_0x6b3c22-0xae;let _0x55c54d=_0x297a34[_0x6b3c22];return _0x55c54d;},_0x6b3c(_0x30b0e7,_0x209229);}var Pe=Object[_0x5f019c(0xd0)],Ee=(_0x47a8e3,_0x105a0d,_0x2a729d)=>_0x105a0d in _0x47a8e3?Pe(_0x47a8e3,_0x105a0d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2a729d}):_0x47a8e3[_0x105a0d]=_0x2a729d,x=(_0x1a17d5,_0x51eeb2,_0x5af4d4)=>Ee(_0x1a17d5,typeof _0x51eeb2!=_0x5f019c(0x117)?_0x51eeb2+'':_0x51eeb2,_0x5af4d4);import{LocaleService as _0x50797d,Inject as _0x4cd141,Injector as _0x18fe7e,IConfigService as _0x33daa9,ILocalStorageService as _0x2b2756,ILogService as _0x316a8d,Disposable as _0xc7b5a,CommandType as _0x3a3b52,ICommandService as _0x3df414,DependentOn as _0x315164,Plugin as _0x286071,merge as _0x3d6d7c}from'@univerjs/core';import{jsxs as _0x1531e0,jsx as _0x1b935a}from'react/jsx-runtime';import{MCPConnectionStatus as _0x4f068b,MCPConnectionError as _0x5c2471,MCPConnectionController as _0x334a18,MCP_PLUGIN_CONFIG_KEY as _0x230f62,UniverMCPPlugin as _0x30ad4f}from'@univerjs-pro/mcp';import{clsx as _0x3f147d,Input as _0x5a0704,Button as _0x5d7281,MessageType as _0x7f0117,Tooltip as _0xfcef24}from'@univerjs/design';import{useDependency as _0x279bfc,useObservable as _0x275d33,IUIPartsService as _0x17ef3b,IDialogService as _0x8fcc48,IMessageService as _0x262fe0,ComponentManager as _0x507ecf,connectInjector as _0x5d84b6,BuiltInUIPart as _0x4b853b,MenuItemType as _0x553dde,RibbonStartGroup as _0x58e065,IMenuManagerService as _0x123cf1}from'@univerjs/ui';import{BehaviorSubject as _0x39757b}from'rxjs';import{useRef as _0x9e8766,createElement as _0x423eba,forwardRef as _0x5875ac,useState as _0x152b9c,useCallback as _0x5c82ba}from'react';import{ISocketService as _0x985069,WebSocketService as _0x42b82e}from'@univerjs/network';function b({ref:_0x5d4836,..._0xc7767d}){const _0x3ed517=_0x5f019c,{icon:_0x17b252,id:_0x41e9e1,className:_0x4bc967,extend:_0x5cc9ac,..._0xa56b78}=_0xc7767d,_0x22c814=('univerjs-icon\x20univerjs-icon-'+_0x41e9e1+'\x20'+(_0x4bc967||''))['trim'](),_0x514d3b=_0x9e8766('_'+We());return ae(_0x17b252,''+_0x41e9e1,{'defIds':_0x17b252['defIds'],'idSuffix':_0x514d3b[_0x3ed517(0xf4)]},{'ref':_0x5d4836,'className':_0x22c814,..._0xa56b78},_0x5cc9ac);}function _0x297a(){const _0x41e12a=['univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','带有\x20Bearer\x20前缀的\x20API\x20密钥。','mcpConfig.apiApplyInfo.univerAiLabel','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','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','defineProperty','univer-text-xs\x20univer-text-gray-600','pluginName','配置参数:','_componentManager','https://console.univer.plus','_injector','RETRYING','_initConfigSync','Enter\x20your\x20API\x20key','off','Enable\x20authentication\x20for\x20secure\x20connections','open','next','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','_createConfigPanelComponent','连接中...','errorMessage','entries','round','_logService','url(#$1','mcp.apiKey','univer-text-xs\x20univer-text-gray-500','off-line-icon','Configuration\x20saved\x20successfully','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','mcpConfig.connectionError.unauthorized','Connection\x20Failed','defs','getItem','权限验证失败,请检查您的\x20API\x20密钥','univer-size-2\x20univer-rounded-full','UniverIcon','mcpConfig.configStepTitle','current','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','未连接','_validateConfig','get','has','mcpConfig.connectionStatus.connected','_localStorageService','push','idSuffix','_connectionController','_handleConfigSave','mcpConfig.connectionStatus.failed','点击配置\x20MCP','trim','univer-space-y-3','replace','mcpConfig.note2','4048632GlgdBu','validateApiKey','mcpConfig.apiKeyHint','\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','API\x20Key','Click\x20to\x20configure\x20MCP','_dialogService','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','4623339kYNmUg','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','univer-space-y-5','mcpStatus.unauthorized','您的\x20API\x20密钥安全存储在本地存储中','fill','error','mcpConfig.configStep1','_uiPartsService','symbol','_mcpCoreConfig$','CONNECTED','connectionError$','NETWORK_ERROR','label','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','univer-flex\x20univer-items-start\x20univer-gap-3','_apiKey$','mcpStatus.maxRetriesExceeded','includes','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Error','registerCommand','close-icon','HelpIcon','API\x20密钥长度至少需要\x2010\x20位','HEADER_MENU','200JKOfMq','配置步骤:','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','mcpConfig.validation.invalidConfig','MCP\x20状态未知','mcpServerUrl','MCP:\x20Network\x20Error','mcpConfig.validation.apiKeyRequired','BUTTON','将配置添加到您的\x20MCP\x20客户端设置文件中','_initAutoConnect','univer.plus','CloseIcon','path','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','mcpConfig.configStep2','mcpConfig.note1','displayName','保存配置','univer-size-4','univer-flex\x20univer-items-center\x20univer-gap-2','attrs','mcpStatus.disconnected','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','off-line-icon_clip0_910_343','div','Enable\x20Authentication','univer-text-gray-400','https://console.univer.ai','mcpConfig.connectionInfo','超出最大重试次数,请稍后再试','请输入您的\x20API\x20密钥','mcpConfig.validation.invalidApiKey','clipPath','重连中...','mcpConfig.connectionError.networkError','disposeWithMe','启用身份验证','mcpStatus.connecting','close','mask','isValid','button','pre','_initializeMenus','univer-text-yellow-500','white','MCP\x20Configuration','univer-bg-gray-500','univer-space-y-2','Saving...','_mcpConnectionController','mcpConfig.description','currentColor','univer-bg-red-500','mcpConfig.configSaved','mcpConfig.apiKey','univer-flex\x20univer-items-start\x20univer-gap-2','substring','Retrying...','univer-font-medium','MCPConfigPanel','_config$','mcpConfig.configInstructions','mcpConfig.configStep3','_blank','showStatus','Success','univer-text-sm\x20univer-text-gray-500','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','FAILED','MCP\x20客户端配置','21621aWFicR','14135648cSZkfE','_loading$','getOwnPropertyDescriptor','showConfigPanel','tag','SESSION_ID_OCCUPIED','univer-flex\x20univer-gap-3','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','setItem','mcpConfig.apiKeyPlaceholder','配置\x20MCP\x20使用\x20AI\x20操作电子表格','value','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','mcpConfig.apiApplyInfo.title','_loadStoredApiKey','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','random','MCP\x20连接失败','\x20-\x20','mcpStatus.failed','Copy\x20the\x20JSON\x20configuration\x20below','help-icon','showDeveloperTools','colorChannel1','Session\x20ID','apiKey','string','0\x200\x2016\x2016','mcpConfig.configParameters','Bearer\x20','5054625kOxuTl','add','evenodd','mcpStatus.connected','mcpConfig.connectionError.sessionOccupied','mcpStatus.sessionOccupied','subscribe','univer-text-gray-500','_initStatusComponent','Click\x20to\x20connect\x20MCP','show','8QtjMbE','OnLineIcon','univer-flex\x20univer-items-center','配置无效','sessionId$','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','Invalid\x20configuration','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20连接中...','mcp-ui.config','Connecting...','univer.ai','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','univer-text-white','mcpConfig.configError','noopener\x20noreferrer','<API_KEY>','_menuManagerService','warn','MCP\x20Client\x20Configuration','<SESSION_ID>','MCP:\x20超出最大重试次数','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','mcpStatus.retrying','API\x20密钥无效,请检查密钥是否正确','svg','toString','assign','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univer-flex\x20univer-items-center\x20univer-gap-3','Get\x20your\x20API\x20key\x20in\x20seconds','univer-shrink-0\x20univer-text-red-500','Connected','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','MCP\x20Connection\x20Failed','MCP\x20Disconnected','将以下配置添加到您的\x20MCP\x20客户端设置中:','univer-mr-2\x20univer-flex\x20univer-text-xl','univer-flex-1','_commandService','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','mcpStatus.clickToConnect','univer-text-red-500','重启您的\x20MCP\x20客户端以使配置生效','_messageService','xlink:href','enableAutoConnect','connectionStatus$','DISCONNECTED','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','Univer\x20AI\x20控制台','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','mcpConfig.apiApplyInfo.getStarted','on-line-icon','_localeService','CheckMarkIcon','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','5jvnueW','Authorization:','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','univer-bg-blue-500','Univer\x20AI\x20Console','UNAUTHORIZED','children','translate(.97)','mcpConfig.apiApplyInfo.description','MenuIcon','M0\x200H16V16H0z','mcpStatus.unknown','MCP_UI_PLUGIN','MAX_RETRIES_EXCEEDED','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','none','url(#on-line-icon_clip0_910_349)','mcpConfig.save','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','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','连接失败','span','mcpConfig.title','最大重试次数','配置保存成功','Configuration\x20Steps:','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','MCP:\x20Unauthorized','mcp-config-dialog','1156671AVaHJp','M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','univer-shrink-0\x20univer-text-blue-500','use','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','getConfig','https://mcp.univer.ai/mcp/?univer_session_id=','OTHERS','31818NjkZqO','启用身份验证以获得安全连接','mcpConfig.validation.apiKeyTooShort','mcpStatus.networkError','forEach','check-mark-icon','mcpConfig.authorizationDescription','MCP\x20Retrying...','MCP\x20配置','保存中...','API\x20密钥','text','map','CONNECTING','univer-min-w-0\x20univer-flex-1','__setCustomHeaders','univer-flex\x20univer-flex-wrap\x20univer-gap-2','MCP\x20已断开','Configuration\x20Notes:','url(#off-line-icon_clip0_910_343)','http://www.w3.org/2000/svg','univer_session_id:','length','_configService','1em','mcpConfig.saving','on-line-icon_clip0_910_349','NONE','removeItem'];_0x297a=function(){return _0x41e12a;};return _0x297a();}function ae(_0x571139,_0x464d8c,_0x14f9eb,_0x35b292,_0x38851a){const _0x502fce=_0x5f019c;return _0x423eba(_0x571139['tag'],{'key':_0x464d8c,...Ye(_0x571139,_0x14f9eb,_0x38851a),..._0x35b292},(Ze(_0x571139,_0x14f9eb)['children']||[])[_0x502fce(0xb9)]((_0x337600,_0x240eb2)=>ae(_0x337600,_0x464d8c+'-'+_0x571139[_0x502fce(0x176)]+'-'+_0x240eb2,_0x14f9eb,void 0x0,_0x38851a)));}function Ye(_0xcde3eb,_0x135c9d,_0x5b4cbd){const _0x13ab7f=_0x5f019c,_0x20505f={..._0xcde3eb[_0x13ab7f(0x13e)]};_0x5b4cbd!=null&&_0x5b4cbd[_0x13ab7f(0x18a)]&&_0x20505f[_0x13ab7f(0x113)]==='colorChannel1'&&(_0x20505f[_0x13ab7f(0x113)]=_0x5b4cbd[_0x13ab7f(0x18a)]),_0xcde3eb['tag']===_0x13ab7f(0x151)&&_0x20505f['id']&&(_0x20505f['id']=_0x20505f['id']+_0x135c9d[_0x13ab7f(0xfd)]),Object[_0x13ab7f(0xe2)](_0x20505f)[_0x13ab7f(0xb1)](([_0x1006ed,_0x2b46eb])=>{const _0x5521b1=_0x13ab7f;_0x1006ed===_0x5521b1(0x151)&&typeof _0x2b46eb=='string'&&(_0x20505f[_0x1006ed]=_0x2b46eb[_0x5521b1(0x104)](/url\(#(.*)\)/,_0x5521b1(0xe5)+_0x135c9d[_0x5521b1(0xfd)]+')'));});const {defIds:_0x56e804}=_0x135c9d;return!_0x56e804||_0x56e804[_0x13ab7f(0xc3)]===0x0||(_0xcde3eb[_0x13ab7f(0x176)]===_0x13ab7f(0x1fb)&&_0x20505f[_0x13ab7f(0x1cc)]&&(_0x20505f[_0x13ab7f(0x1cc)]=_0x20505f[_0x13ab7f(0x1cc)]+_0x135c9d[_0x13ab7f(0xfd)]),Object[_0x13ab7f(0xe2)](_0x20505f)[_0x13ab7f(0xb1)](([_0x3424c6,_0x38f9de])=>{const _0x505340=_0x13ab7f;typeof _0x38f9de=='string'&&(_0x20505f[_0x3424c6]=_0x38f9de[_0x505340(0x104)](/url\(#(.*)\)/,_0x505340(0xe5)+_0x135c9d[_0x505340(0xfd)]+')'));})),_0x20505f;}function Ze(_0x49f285,_0x4b5750){const _0x229034=_0x5f019c;var _0x4eab08;const {defIds:_0x3b5a7e}=_0x4b5750;return!_0x3b5a7e||_0x3b5a7e[_0x229034(0xc3)]===0x0?_0x49f285:_0x49f285[_0x229034(0x176)]===_0x229034(0xee)&&((_0x4eab08=_0x49f285[_0x229034(0x1df)])!=null&&_0x4eab08[_0x229034(0xc3)])?{..._0x49f285,'children':_0x49f285[_0x229034(0x1df)]['map'](_0x8fafd8=>typeof _0x8fafd8[_0x229034(0x13e)]['id']==_0x229034(0x18d)&&_0x3b5a7e&&_0x3b5a7e[_0x229034(0x121)](_0x8fafd8[_0x229034(0x13e)]['id'])?{..._0x8fafd8,'attrs':{..._0x8fafd8[_0x229034(0x13e)],'id':_0x8fafd8[_0x229034(0x13e)]['id']+_0x4b5750[_0x229034(0xfd)]}}:_0x8fafd8)}:_0x49f285;}function We(){const _0x5ce0dd=_0x5f019c;return Math[_0x5ce0dd(0x183)]()[_0x5ce0dd(0x1b8)](0x24)[_0x5ce0dd(0x163)](0x2,0x8);}b['displayName']=_0x5f019c(0xf2);const qe={'tag':_0x5f019c(0x1b7),'attrs':{'xmlns':_0x5f019c(0xc1),'fill':_0x5f019c(0x1e9),'viewBox':_0x5f019c(0x18e),'width':_0x5f019c(0xc5),'height':_0x5f019c(0xc5)},'children':[{'tag':'path','attrs':{'fill':_0x5f019c(0x15e),'d':_0x5f019c(0x1ee),'fillRule':_0x5f019c(0x193),'clipRule':'evenodd'}}]},le=_0x5875ac(function(_0x3890bd,_0x33a899){const _0x565261=_0x5f019c;return _0x423eba(b,Object['assign']({},_0x3890bd,{'id':_0x565261(0xb2),'ref':_0x33a899,'icon':qe}));});le[_0x5f019c(0x13a)]=_0x5f019c(0x1d6);const Xe={'tag':_0x5f019c(0x1b7),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x5f019c(0x1e9),'viewBox':_0x5f019c(0x18e),'width':_0x5f019c(0xc5),'height':'1em'},'children':[{'tag':_0x5f019c(0x136),'attrs':{'fill':_0x5f019c(0x15e),'d':_0x5f019c(0x10d)}}]},ue=_0x5875ac(function(_0x22aa33,_0x4132c8){const _0x18ead9=_0x5f019c;return _0x423eba(b,Object['assign']({},_0x22aa33,{'id':_0x18ead9(0x125),'ref':_0x4132c8,'icon':Xe}));});ue[_0x5f019c(0x13a)]=_0x5f019c(0x135);const Je={'tag':_0x5f019c(0x1b7),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x5f019c(0x1e9),'viewBox':_0x5f019c(0x18e),'width':_0x5f019c(0xc5),'height':_0x5f019c(0xc5)},'children':[{'tag':_0x5f019c(0x136),'attrs':{'fill':'currentColor','d':_0x5f019c(0x182)}},{'tag':_0x5f019c(0x136),'attrs':{'fill':_0x5f019c(0x15e),'d':_0x5f019c(0x10f)}},{'tag':_0x5f019c(0x136),'attrs':{'fill':_0x5f019c(0x15e),'d':_0x5f019c(0x1f9),'fillRule':_0x5f019c(0x193),'clipRule':_0x5f019c(0x193)}}]},ve=_0x5875ac(function(_0x190b97,_0x345d66){const _0x2d5717=_0x5f019c;return _0x423eba(b,Object[_0x2d5717(0x1b9)]({},_0x190b97,{'id':_0x2d5717(0x188),'ref':_0x345d66,'icon':Je}));});ve[_0x5f019c(0x13a)]=_0x5f019c(0x126);const Qe={'tag':_0x5f019c(0x1b7),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x5f019c(0xc5),'height':_0x5f019c(0xc5)},'children':[{'tag':'g','attrs':{'clipPath':_0x5f019c(0xc0)},'children':[{'tag':_0x5f019c(0x136),'attrs':{'stroke':_0x5f019c(0x15e),'d':_0x5f019c(0x11d),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x5f019c(0x14a),'attrs':{'id':_0x5f019c(0x141)},'children':[{'tag':_0x5f019c(0x136),'attrs':{'fill':_0x5f019c(0x157),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x5f019c(0x141)]},de=_0x5875ac(function(_0x355bfe,_0x3f7349){const _0x29d99e=_0x5f019c;return _0x423eba(b,Object[_0x29d99e(0x1b9)]({},_0x355bfe,{'id':_0x29d99e(0xe8),'ref':_0x3f7349,'icon':Qe}));});de[_0x5f019c(0x13a)]='OffLineIcon';const en={'tag':_0x5f019c(0x1b7),'attrs':{'xmlns':_0x5f019c(0xc1),'fill':_0x5f019c(0x1e9),'viewBox':'0\x200\x2017\x2016','width':'1em','height':_0x5f019c(0xc5)},'children':[{'tag':'g','attrs':{'clipPath':_0x5f019c(0x1ea)},'children':[{'tag':_0x5f019c(0x136),'attrs':{'stroke':_0x5f019c(0x15e),'d':_0x5f019c(0x1b4),'strokeLinecap':_0x5f019c(0xe3),'strokeLinejoin':_0x5f019c(0xe3),'strokeWidth':1.2}}]},{'tag':_0x5f019c(0xee),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x5f019c(0xc7)},'children':[{'tag':'path','attrs':{'fill':_0x5f019c(0x157),'d':_0x5f019c(0x1e3),'transform':_0x5f019c(0x1e0)}}]}]}],'defIds':[_0x5f019c(0xc7)]},ge=_0x5875ac(function(_0x1cb480,_0x3af4a1){const _0x3786f8=_0x5f019c;return _0x423eba(b,Object['assign']({},_0x1cb480,{'id':_0x3786f8(0x1d4),'ref':_0x3af4a1,'icon':en}));});ge['displayName']=_0x5f019c(0x19d);function nn(_0x33ac13){const _0x3630f2=_0x5f019c;var _0x5433b1,_0x1258c5;const {mcpCoreConfig:_0x154691,onSave:_0x103dee,loading:_0x4a8bee=!0x1,config:_0x4a4abf,connectionStatus$:_0x28cb0b,connectionError$:_0x2e8bcb,currentApiKey$:_0x3d0e0c,currentSessionId$:_0x2eb8f1}=_0x33ac13,_0x3e6e9c=_0x279bfc(_0x50797d),_0x371d37=_0x275d33(_0x28cb0b,_0x4f068b['DISCONNECTED']),_0x1cb307=_0x275d33(_0x2e8bcb,_0x5c2471[_0x3630f2(0xc8)]),_0x12a0b7=_0x275d33(_0x2eb8f1,''),_0x19f7a4=_0x275d33(_0x3d0e0c,''),[_0x15b9e0,_0x6a1912]=_0x152b9c(_0x19f7a4||''),_0x5800aa=!0x0,_0x31acc1=_0x4a4abf['showDeveloperTools']&&_0x154691[_0x3630f2(0x12e)]&&(_0x154691[_0x3630f2(0x12e)]['includes'](_0x3630f2(0x134))||_0x154691[_0x3630f2(0x12e)][_0x3630f2(0x121)]('univer.ai')),_0x4a176c=(_0x5433b1=_0x154691[_0x3630f2(0x12e)])==null?void 0x0:_0x5433b1['includes'](_0x3630f2(0x134)),_0x356811=(_0x1258c5=_0x154691['mcpServerUrl'])==null?void 0x0:_0x1258c5['includes'](_0x3630f2(0x1a9)),_0x14f519=_0x4a176c?_0x3630f2(0xd5):_0x3630f2(0x145),_0x38db21=_0x4a4abf[_0x3630f2(0x189)]&&(_0x4a176c||_0x356811),[_0x289281,_0x5afcbd]=_0x152b9c(!_0x15b9e0[_0x3630f2(0x102)]()),_0x5d013a=(_0x3b9ab6,_0x270356)=>{const _0x5def4f=_0x3630f2;if(_0x270356===_0x5c2471[_0x5def4f(0x1de)])return _0x5def4f(0x17a);switch(_0x3b9ab6){case _0x4f068b['CONNECTED']:return _0x5def4f(0x17f);case _0x4f068b[_0x5def4f(0xba)]:case _0x4f068b['RETRYING']:return _0x5def4f(0x1c6);case _0x4f068b[_0x5def4f(0x16f)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return _0x5def4f(0x1fc);}},_0x1bd475=(_0x12b5b4,_0x7ec387)=>{const _0xac7960=_0x3630f2;if(_0x7ec387===_0x5c2471[_0xac7960(0x1de)])return _0xac7960(0x15f);switch(_0x12b5b4){case _0x4f068b[_0xac7960(0x119)]:return'univer-bg-green-500';case _0x4f068b[_0xac7960(0xba)]:case _0x4f068b[_0xac7960(0xd7)]:return _0xac7960(0x1dc);case _0x4f068b[_0xac7960(0x16f)]:return _0xac7960(0x15f);default:return _0xac7960(0x159);}},_0x2274f4=_0x1b5bdf=>{const _0x152138=_0x3630f2;switch(_0x1b5bdf){case _0x4f068b[_0x152138(0x119)]:return _0x3e6e9c['t'](_0x152138(0xfa));case _0x4f068b[_0x152138(0xba)]:return _0x3e6e9c['t']('mcpConfig.connectionStatus.connecting');case _0x4f068b[_0x152138(0x16f)]:return _0x3e6e9c['t'](_0x152138(0x100));case _0x4f068b[_0x152138(0xd7)]:return _0x3e6e9c['t']('mcpConfig.connectionStatus.retrying');default:return _0x3e6e9c['t']('mcpConfig.connectionStatus.disconnected');}},_0x409918=_0x39152f=>{const _0x24b0fd=_0x3630f2;switch(_0x39152f){case _0x5c2471[_0x24b0fd(0x1de)]:return _0x3e6e9c['t'](_0x24b0fd(0xec));case _0x5c2471['SESSION_ID_OCCUPIED']:return _0x3e6e9c['t'](_0x24b0fd(0x195));case _0x5c2471[_0x24b0fd(0x11b)]:return _0x3e6e9c['t'](_0x24b0fd(0x14c));case _0x5c2471[_0x24b0fd(0x1e6)]:return _0x3e6e9c['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x158026=_0x5c82ba(()=>{const _0x17a5f6=_0x3630f2,_0x17e9d9={..._0x154691,'apiKey':_0x15b9e0[_0x17a5f6(0x102)](),'enableAuth':_0x5800aa};_0x103dee(_0x17e9d9);},[_0x154691,_0x15b9e0,_0x5800aa,_0x103dee]),_0x20277d=_0x15b9e0['trim']()[_0x3630f2(0xc3)]>0x0;return _0x1531e0(_0x3630f2(0x142),{'className':_0x3630f2(0x1bf),'children':[_0x1b935a(_0x3630f2(0x142),{'className':_0x3630f2(0xca),'children':_0x1531e0(_0x3630f2(0x142),{'className':_0x3630f2(0x1bb),'children':[_0x1b935a(_0x3630f2(0x142),{'className':_0x3630f2(0xeb),'children':_0x1b935a('span',{'className':_0x3630f2(0x1ab),'children':'⚙'})}),_0x1b935a(_0x3630f2(0x142),{'children':_0x1b935a('p',{'className':_0x3630f2(0x16d),'children':_0x3e6e9c['t'](_0x3630f2(0x15d))})})]})}),_0x1531e0('div',{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[_0x1b935a(_0x3630f2(0x142),{'className':_0x3f147d('univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2',_0x5d013a(_0x371d37,_0x1cb307)),'children':_0x1531e0(_0x3630f2(0x142),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x1b935a(_0x3630f2(0x142),{'className':_0x3f147d(_0x3630f2(0xf1),_0x1bd475(_0x371d37,_0x1cb307))}),_0x1b935a(_0x3630f2(0x1f0),{'className':'univer-text-sm\x20univer-font-medium','children':_0x2274f4(_0x371d37)})]})}),_0x1cb307!==_0x5c2471['NONE']&&(_0x371d37===_0x4f068b[_0x3630f2(0x16f)]||_0x1cb307===_0x5c2471[_0x3630f2(0x1de)])&&_0x1b935a('div',{'className':_0x3630f2(0x1f5),'children':_0x1531e0(_0x3630f2(0x142),{'className':_0x3630f2(0x162),'children':[_0x1b935a(_0x3630f2(0x1f0),{'className':_0x3630f2(0x1bd),'children':'⚠️'}),_0x1b935a('p',{'className':_0x3630f2(0x137),'children':_0x409918(_0x1cb307)})]})})]}),_0x1b935a(_0x3630f2(0x142),{'className':_0x3630f2(0x1ec),'children':_0x1531e0(_0x3630f2(0x142),{'className':_0x3630f2(0x110),'children':[_0x1531e0('div',{'className':_0x3630f2(0x15a),'children':[_0x1531e0(_0x3630f2(0x11c),{'className':_0x3630f2(0x1a2),'children':[_0x1b935a('span',{'children':'🔑'}),'\x20',_0x3e6e9c['t'](_0x3630f2(0x161)),_0x1b935a(_0x3630f2(0x1f0),{'className':_0x3630f2(0x1c9),'children':'*'}),_0x31acc1&&_0x1b935a('a',{'className':'univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','title':_0x3e6e9c['t']('mcpConfig.apiApplyInfo.title'),'role':'button','onClick':()=>_0x5afcbd(!0x0),'children':_0x1b935a(ve,{})})]}),_0x1b935a(_0x5a0704,{'type':_0x3630f2(0xb8),'placeholder':_0x3e6e9c['t'](_0x3630f2(0x17c)),'value':_0x15b9e0,'disabled':_0x4a8bee,'autoComplete':_0x3630f2(0xda),'onChange':_0x6a1912}),_0x1b935a('p',{'className':_0x3630f2(0xe7),'children':_0x3e6e9c['t'](_0x3630f2(0x108))})]}),_0x31acc1&&_0x289281&&_0x1531e0(_0x3630f2(0x142),{'className':_0x3630f2(0xf5),'children':[_0x1b935a('a',{'className':_0x3630f2(0x1d7),'role':'button','onClick':()=>_0x5afcbd(!0x1),'children':_0x1b935a(ue,{'className':_0x3630f2(0x13c)})}),_0x1531e0(_0x3630f2(0x142),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[_0x1b935a(_0x3630f2(0x142),{'className':_0x3630f2(0x1e7),'children':_0x1b935a(_0x3630f2(0x1f0),{'className':'univer-text-blue-600','children':'🚀'})}),_0x1531e0(_0x3630f2(0x142),{'className':_0x3630f2(0x1c4),'children':[_0x1b935a('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x3e6e9c['t'](_0x3630f2(0x180))}),_0x1b935a('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x3e6e9c['t'](_0x3630f2(0x1e1))}),_0x1b935a(_0x3630f2(0x142),{'className':_0x3630f2(0xbd),'children':_0x38db21&&_0x1531e0('a',{'className':'univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','href':_0x14f519,'target':_0x3630f2(0x16a),'rel':_0x3630f2(0x1ad),'children':[_0x1b935a(_0x3630f2(0x1f0),{'children':'🤖'}),_0x3e6e9c['t'](_0x3630f2(0xcc)),_0x1b935a(_0x3630f2(0x1f0),{'className':_0x3630f2(0x144),'children':'↗'})]})}),_0x1531e0('div',{'className':_0x3630f2(0x1a3),'children':['✨','\x20',_0x3e6e9c['t'](_0x3630f2(0x1d3))]})]})]})]}),_0x4a4abf['showDeveloperTools']&&_0x1531e0(_0x3630f2(0x142),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[_0x1531e0('h4',{'className':_0x3630f2(0x12b),'children':[_0x1b935a(_0x3630f2(0x1f0),{'children':'🔗'}),'\x20',_0x3e6e9c['t'](_0x3630f2(0x146))]}),_0x1531e0(_0x3630f2(0x142),{'className':'univer-space-y-4','children':[_0x1531e0('div',{'className':_0x3630f2(0x103),'children':[_0x1b935a('p',{'className':_0x3630f2(0xd1),'children':_0x3e6e9c['t'](_0x3630f2(0x168))}),_0x1531e0(_0x3630f2(0x142),{'className':'univer-space-y-2','children':[_0x1b935a(_0x3630f2(0x142),{'className':_0x3630f2(0x1d0),'children':_0x3e6e9c['t'](_0x3630f2(0xf3))}),_0x1531e0(_0x3630f2(0x142),{'className':_0x3630f2(0x1aa),'children':[_0x1531e0(_0x3630f2(0x142),{'className':_0x3630f2(0x13d),'children':[_0x1b935a(_0x3630f2(0x1f0),{'className':_0x3630f2(0xcd),'children':'1'}),_0x3e6e9c['t'](_0x3630f2(0x115))]}),_0x1531e0(_0x3630f2(0x142),{'className':_0x3630f2(0x13d),'children':[_0x1b935a(_0x3630f2(0x1f0),{'className':_0x3630f2(0xcd),'children':'2'}),_0x3e6e9c['t'](_0x3630f2(0x138))]}),_0x1531e0('div',{'className':_0x3630f2(0x13d),'children':[_0x1b935a(_0x3630f2(0x1f0),{'className':_0x3630f2(0xcd),'children':'3'}),_0x3e6e9c['t'](_0x3630f2(0x169))]})]})]})]}),_0x1531e0('div',{'className':'univer-space-y-2','children':[_0x1b935a('div',{'className':_0x3630f2(0x1d0),'children':_0x3630f2(0x158)}),_0x1b935a(_0x3630f2(0x142),{'className':_0x3630f2(0xea),'children':_0x1b935a(_0x3630f2(0x154),{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':JSON['stringify']({'mcpServers':{'univer':{'url':_0x3630f2(0x1fe)+(_0x12a0b7||_0x3630f2(0x1b2)),'type':'http','headers':{'Authorization':'Bearer\x20'+(_0x15b9e0||_0x3630f2(0x1ae))}}}},null,0x2)})})]}),_0x1531e0('div',{'className':_0x3630f2(0x103),'children':[_0x1b935a(_0x3630f2(0x142),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x3e6e9c['t'](_0x3630f2(0x18f))}),_0x1531e0(_0x3630f2(0x142),{'className':_0x3630f2(0x15a),'children':[_0x1531e0(_0x3630f2(0x142),{'className':_0x3630f2(0x11e),'children':[_0x1b935a(_0x3630f2(0x142),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x1531e0(_0x3630f2(0x142),{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x1b935a('div',{'className':_0x3630f2(0xde),'children':_0x3630f2(0xc2)}),_0x1b935a(_0x3630f2(0x142),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x3e6e9c['t']('mcpConfig.sessionIdDescription')})]})]}),_0x1531e0(_0x3630f2(0x142),{'className':_0x3630f2(0x11e),'children':[_0x1b935a(_0x3630f2(0x142),{'className':_0x3630f2(0x1c7)}),_0x1531e0(_0x3630f2(0x142),{'className':_0x3630f2(0xbb),'children':[_0x1b935a(_0x3630f2(0x142),{'className':_0x3630f2(0xde),'children':_0x3630f2(0x1da)}),_0x1b935a('div',{'className':_0x3630f2(0xe7),'children':_0x3e6e9c['t'](_0x3630f2(0xb3))})]})]})]})]})]})]}),_0x1b935a(_0x5d7281,{'onClick':_0x158026,'disabled':!_0x20277d||_0x4a8bee,'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':_0x4a8bee?_0x1531e0('span',{'className':_0x3630f2(0x13d),'children':[_0x1b935a(_0x3630f2(0x1f0),{'children':'⟲'}),_0x3e6e9c['t'](_0x3630f2(0xc6))]}):_0x1531e0(_0x3630f2(0x1f0),{'className':_0x3630f2(0x13d),'children':[_0x1b935a(le,{}),_0x3e6e9c['t'](_0x3630f2(0x1eb))]})}),_0x1b935a('div',{'className':_0x3630f2(0x16e),'children':_0x1531e0(_0x3630f2(0x142),{'className':_0x3630f2(0x178),'children':[_0x1b935a('span',{'className':_0x3630f2(0x1fa),'children':'💡'}),_0x1531e0(_0x3630f2(0x142),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[_0x1b935a(_0x3630f2(0x142),{'className':_0x3630f2(0x165),'children':_0x3630f2(0xbf)}),_0x1531e0(_0x3630f2(0x142),{'children':['•',_0x3e6e9c['t'](_0x3630f2(0x139))]}),_0x1531e0(_0x3630f2(0x142),{'children':['•',_0x3e6e9c['t'](_0x3630f2(0x105))]})]})]})})]})})]});}const y=_0x5f019c(0x1a7),ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object[_0x5f019c(0x174)],tn=(_0x3fa174,_0x3afcf0,_0x233f36,_0x34f8ba)=>{const _0x489c26=_0x5f019c;for(var _0x348432=_0x34f8ba>0x1?void 0x0:_0x34f8ba?rn(_0x3afcf0,_0x233f36):_0x3afcf0,_0x593435=_0x3fa174[_0x489c26(0xc3)]-0x1,_0x18d379;_0x593435>=0x0;_0x593435--)(_0x18d379=_0x3fa174[_0x593435])&&(_0x348432=_0x18d379(_0x348432)||_0x348432);return _0x348432;},d=(_0x4f07ae,_0x461a86)=>(_0x35909c,_0x49770e)=>_0x461a86(_0x35909c,_0x49770e,_0x4f07ae);const U=_0x5f019c(0xe6),L=_0x5f019c(0x1f7);let I=class extends _0xc7b5a{constructor(_0x42f883,_0x60ab42,_0x432ce8,_0x139ac5,_0x300560,_0x429a5a,_0x44ae03,_0x40902a,_0x16a2c7,_0x5a690c){const _0x15a239=_0x5f019c;super(),x(this,_0x15a239(0x173),new _0x39757b(!0x1)),x(this,_0x15a239(0x118),new _0x39757b({})),x(this,_0x15a239(0x167),new _0x39757b({})),x(this,'_apiKey$',new _0x39757b('')),x(this,_0x15a239(0xff),async _0x447250=>{const _0x58084a=_0x15a239;var _0x2d276e,_0x2b0f49;this[_0x58084a(0x173)][_0x58084a(0xdd)](!0x0);try{const _0x3cd28c=await this[_0x58084a(0xf7)](_0x447250);if(!_0x3cd28c[_0x58084a(0x152)]){this[_0x58084a(0x1cb)]['show']({'type':_0x7f0117[_0x58084a(0x123)],'content':_0x3cd28c[_0x58084a(0xe1)]||this[_0x58084a(0x1d5)]['t'](_0x58084a(0x12c))});return;}_0x447250['apiKey']?await this['_localStorageService'][_0x58084a(0x17b)](U,_0x447250['apiKey'][_0x58084a(0x102)]()):await this['_localStorageService'][_0x58084a(0xc9)](U),this[_0x58084a(0x11f)]['next'](((_0x2d276e=_0x447250['apiKey'])==null?void 0x0:_0x2d276e[_0x58084a(0x102)]())||''),this[_0x58084a(0x15c)][_0x58084a(0xbc)]({'Authorization':_0x58084a(0x190)+((_0x2b0f49=_0x447250[_0x58084a(0x18c)])==null?void 0x0:_0x2b0f49[_0x58084a(0x102)]())}),this[_0x58084a(0x1cb)][_0x58084a(0x19b)]({'type':_0x7f0117[_0x58084a(0x16c)],'content':this[_0x58084a(0x1d5)]['t'](_0x58084a(0x160))}),setTimeout(()=>{const _0x2b512d=_0x58084a;this[_0x2b512d(0x10c)][_0x2b512d(0x150)](L);},0x320);}catch(_0x42bee9){this[_0x58084a(0xe4)][_0x58084a(0x114)](_0x58084a(0x1a1),_0x42bee9),this['_messageService'][_0x58084a(0x19b)]({'type':_0x7f0117['Error'],'content':this[_0x58084a(0x1d5)]['t'](_0x58084a(0x1ac))});}finally{this[_0x58084a(0x173)]['next'](!0x1);}}),(this[_0x15a239(0xd6)]=_0x42f883,this[_0x15a239(0x116)]=_0x60ab42,this[_0x15a239(0xc4)]=_0x432ce8,this[_0x15a239(0xfb)]=_0x139ac5,this[_0x15a239(0x10c)]=_0x300560,this['_messageService']=_0x429a5a,this[_0x15a239(0xd4)]=_0x44ae03,this[_0x15a239(0x1d5)]=_0x40902a,this[_0x15a239(0xe4)]=_0x16a2c7,this['_mcpConnectionController']=_0x5a690c,this['_initConfigSync'](),this[_0x15a239(0x181)](),this['_registerComponent']());}[_0x5f019c(0x175)](){const _0x4f3069=_0x5f019c,_0x3c2b7f=this[_0x4f3069(0xc4)][_0x4f3069(0x1fd)](y);_0x3c2b7f!=null&&_0x3c2b7f[_0x4f3069(0x189)]&&this[_0x4f3069(0x10c)][_0x4f3069(0xdc)]({'id':L,'title':{'title':this[_0x4f3069(0x1d5)]['t'](_0x4f3069(0x1f1))},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0xcdce0b=_0x4f3069;this[_0xcdce0b(0x10c)][_0xcdce0b(0x150)](L);}});}['getCurrentConfig'](){const _0x429449=_0x5f019c;return this[_0x429449(0x118)][_0x429449(0x17e)];}['_registerComponent'](){const _0x1dac24=_0x5f019c;this['disposeWithMe'](this[_0x1dac24(0xd4)]['register'](_0x1dac24(0x166),this[_0x1dac24(0xdf)]()));}[_0x5f019c(0xdf)](){const _0x49e19c=_0x5f019c;return _0x5d84b6(()=>{const _0x41af57=_0x6b3c;var _0x24b694,_0x417c4b,_0x102256;return _0x1b935a(nn,{'config':this[_0x41af57(0x167)]['value'],'mcpCoreConfig':this[_0x41af57(0x118)][_0x41af57(0x17e)],'currentApiKey$':this['_apiKey$'],'onSave':this[_0x41af57(0xff)],'loading':this[_0x41af57(0x173)][_0x41af57(0x17e)],'connectionStatus$':(_0x24b694=this[_0x41af57(0x15c)])==null?void 0x0:_0x24b694[_0x41af57(0x1ce)],'connectionError$':(_0x417c4b=this[_0x41af57(0x15c)])==null?void 0x0:_0x417c4b['connectionError$'],'currentSessionId$':(_0x102256=this[_0x41af57(0x15c)])==null?void 0x0:_0x102256[_0x41af57(0x1a0)]});},this[_0x49e19c(0xd6)]);}[_0x5f019c(0xd8)](){const _0x2519ce=_0x5f019c;this[_0x2519ce(0x14d)](this[_0x2519ce(0xc4)]['subscribeConfigValue$'](_0x230f62)[_0x2519ce(0x197)](_0x308d3d=>{const _0x28abc4=_0x2519ce;this[_0x28abc4(0x118)][_0x28abc4(0xdd)](_0x308d3d||{});}));const _0x48dcd1=this['_configService'][_0x2519ce(0x1fd)](_0x230f62);this[_0x2519ce(0x118)]['next'](_0x48dcd1||{}),this['disposeWithMe'](this[_0x2519ce(0xc4)]['subscribeConfigValue$'](y)[_0x2519ce(0x197)](_0x5ba119=>{const _0x1cc10a=_0x2519ce;this[_0x1cc10a(0x167)][_0x1cc10a(0xdd)](_0x5ba119||{});}));const _0x4eaf2f=this['_configService'][_0x2519ce(0x1fd)](y);this[_0x2519ce(0x167)][_0x2519ce(0xdd)](_0x4eaf2f||{});}async[_0x5f019c(0x181)](){const _0x2cd940=_0x5f019c,_0x4fb3a2=this[_0x2cd940(0xc4)][_0x2cd940(0x1fd)](y);if(!(_0x4fb3a2!=null&&_0x4fb3a2[_0x2cd940(0x189)]))return;const _0x58552c=await this[_0x2cd940(0xfb)][_0x2cd940(0xef)](U);_0x58552c&&(this[_0x2cd940(0x15c)][_0x2cd940(0xbc)]({'Authorization':'Bearer\x20'+_0x58552c}),this['_apiKey$'][_0x2cd940(0xdd)](_0x58552c));}async[_0x5f019c(0xf7)](_0x368473){const _0x34a047=_0x5f019c;if(!_0x368473['apiKey']||_0x368473[_0x34a047(0x18c)][_0x34a047(0x102)]()[_0x34a047(0xc3)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x34a047(0x1d5)]['t'](_0x34a047(0x130))};if(_0x368473['apiKey'][_0x34a047(0x102)]()[_0x34a047(0xc3)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x34a047(0x1d5)]['t'](_0x34a047(0xaf))};try{const _0x4a125c=await this['_injector'][_0x34a047(0xf8)](_0x334a18)[_0x34a047(0x107)](_0x368473[_0x34a047(0x18c)][_0x34a047(0x102)]());return _0x4a125c[_0x34a047(0x152)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x4a125c[_0x34a047(0x114)]||this[_0x34a047(0x1d5)]['t'](_0x34a047(0x149))};}catch(_0x2305fa){return console[_0x34a047(0x1b0)](_0x34a047(0x1db),_0x2305fa),{'isValid':!0x0};}}};I=tn([d(0x0,_0x4cd141(_0x18fe7e)),d(0x1,_0x17ef3b),d(0x2,_0x33daa9),d(0x3,_0x2b2756),d(0x4,_0x8fcc48),d(0x5,_0x262fe0),d(0x6,_0x4cd141(_0x507ecf)),d(0x7,_0x4cd141(_0x50797d)),d(0x8,_0x316a8d),d(0x9,_0x4cd141(_0x334a18))],I);const V={'id':'mcp-ui.command.openConfigPanel','type':_0x3a3b52['COMMAND'],'handler':async(_0x4b579a,_0x45c739)=>(_0x4b579a[_0x5f019c(0xf8)](I)[_0x5f019c(0x175)](),!0x0)};function pe(_0x3e1b80,_0x4e522c){const _0x5366ef=_0x5f019c;switch(_0x3e1b80){case _0x4f068b[_0x5366ef(0x1cf)]:return _0x5366ef(0x13f);case _0x4f068b['CONNECTING']:return _0x5366ef(0x14f);case _0x4f068b[_0x5366ef(0x119)]:return _0x5366ef(0x194);case _0x4f068b['FAILED']:switch(_0x4e522c){case _0x5c2471[_0x5366ef(0x1de)]:return _0x5366ef(0x111);case _0x5c2471[_0x5366ef(0x177)]:return _0x5366ef(0x196);case _0x5c2471['NETWORK_ERROR']:return _0x5366ef(0xb0);case _0x5c2471[_0x5366ef(0x1e6)]:return _0x5366ef(0x120);default:return _0x5366ef(0x186);}case _0x4f068b[_0x5366ef(0xd7)]:return _0x5366ef(0x1b5);default:return _0x5366ef(0x1e4);}}function on(_0x46a1d6,_0x3dfda2,_0x5468b9,_0x4a09b5=!0x0){const _0x3e0697=_0x5f019c,_0x13952d=pe(_0x46a1d6,_0x3dfda2),_0x3a7e34=_0x5468b9['t'](_0x13952d);return _0x4a09b5?_0x46a1d6===_0x4f068b['DISCONNECTED']&&_0x3dfda2===_0x5c2471[_0x3e0697(0x1de)]?_0x3a7e34+_0x3e0697(0x185)+_0x5468b9['t']('mcpStatus.clickToConfigure'):_0x46a1d6===_0x4f068b[_0x3e0697(0x119)]?''+_0x3a7e34:_0x46a1d6===_0x4f068b[_0x3e0697(0x1cf)]||_0x46a1d6===_0x4f068b[_0x3e0697(0x16f)]?_0x3a7e34+_0x3e0697(0x185)+_0x5468b9['t'](_0x3e0697(0x1c8)):_0x3a7e34:_0x3a7e34;}function sn(_0x52c72c){const _0x33d960=_0x5f019c;switch(_0x52c72c){case _0x4f068b['CONNECTED']:return'univer-text-green-500';case _0x4f068b[_0x33d960(0xba)]:case _0x4f068b[_0x33d960(0xd7)]:return _0x33d960(0x156);case _0x4f068b[_0x33d960(0x16f)]:case _0x4f068b[_0x33d960(0x1cf)]:return'univer-text-red-500';default:return _0x33d960(0x198);}}function cn(_0x123fd1){const _0x38a5d5=_0x5f019c,{status$:_0x669c53,error$:_0x4508f5,onConfigure:_0x5a134b,showClickable:_0x258c4a=!0x0}=_0x123fd1,_0x1db3ac=_0x275d33(_0x669c53,_0x4f068b[_0x38a5d5(0x1cf)]),_0x441cde=_0x275d33(_0x4508f5,_0x5c2471['NONE']),_0x3050b8=_0x279bfc(_0x50797d),_0x138a23=_0x1db3ac===_0x4f068b[_0x38a5d5(0x119)];_0x1db3ac===_0x4f068b[_0x38a5d5(0xba)]||_0x4f068b[_0x38a5d5(0xd7)];const _0x3fd286=_0x3050b8['t'](pe(_0x1db3ac,_0x441cde)),_0x30f939=on(_0x1db3ac,_0x441cde,_0x3050b8,_0x258c4a),_0x21b5d8=sn(_0x1db3ac),_0x35f11b=_0x138a23?_0x1b935a(ge,{}):_0x1b935a(de,{}),_0x317bf3=_0x5c82ba(()=>{_0x258c4a&&_0x5a134b&&_0x5a134b();},[_0x258c4a,_0x5a134b]);function _0x5aa77a(){const _0x1f330f=_0x38a5d5;return _0x1531e0(_0x1f330f(0x142),{'className':_0x3f147d(_0x1f330f(0x19e),_0x258c4a&&_0x5a134b&&_0x1f330f(0x109)),'role':_0x1f330f(0x153),'onClick':_0x258c4a&&_0x5a134b?_0x317bf3:void 0x0,'children':[_0x1b935a(_0x1f330f(0x142),{'className':_0x3f147d(_0x1f330f(0x1c3),_0x21b5d8),'children':_0x35f11b}),_0x1b935a(_0x1f330f(0x142),{'className':_0x1f330f(0x1d8),'children':_0x3fd286})]});}return _0x1b935a(_0xfcef24,{'title':_0x30f939,'placement':'bottom','children':_0x5aa77a()});}var an=Object[_0x5f019c(0x174)],ln=(_0x3f791a,_0x156c09,_0x4af2a1,_0x153095)=>{const _0x593773=_0x5f019c;for(var _0x424ff0=_0x153095>0x1?void 0x0:_0x153095?an(_0x156c09,_0x4af2a1):_0x156c09,_0x4d0a2e=_0x3f791a[_0x593773(0xc3)]-0x1,_0x47c42d;_0x4d0a2e>=0x0;_0x4d0a2e--)(_0x47c42d=_0x3f791a[_0x4d0a2e])&&(_0x424ff0=_0x47c42d(_0x424ff0)||_0x424ff0);return _0x424ff0;},M=(_0x3151cb,_0x4b09ac)=>(_0x1c3394,_0x154c0f)=>_0x4b09ac(_0x1c3394,_0x154c0f,_0x3151cb);let O=class extends _0xc7b5a{constructor(_0x39f363,_0x192650,_0x42aa45,_0x16e2b3){const _0x3ae215=_0x5f019c;super(),this['_injector']=_0x39f363,this['_connectionController']=_0x192650,this[_0x3ae215(0x116)]=_0x42aa45,this['_configService']=_0x16e2b3,this[_0x3ae215(0x133)](),this[_0x3ae215(0x199)]();}[_0x5f019c(0x133)](){const _0x2f3316=_0x5f019c,_0x107b5d=this['_configService'][_0x2f3316(0x1fd)](y);_0x107b5d!=null&&_0x107b5d[_0x2f3316(0x189)]&&(this[_0x2f3316(0xfe)][_0x2f3316(0x1cd)]=!0x1);}['_initStatusComponent'](){const _0x1a31a3=_0x5f019c,_0x569d26=this[_0x1a31a3(0xc4)]['getConfig'](y);(_0x569d26==null?void 0x0:_0x569d26[_0x1a31a3(0x16b)])!==!0x1&&this['disposeWithMe'](this[_0x1a31a3(0x116)]['registerComponent'](_0x4b853b[_0x1a31a3(0x128)],()=>{const _0x281de1=_0x1a31a3;var _0x46091b;return _0x5d84b6(un({'status$':this[_0x281de1(0xfe)][_0x281de1(0x1ce)],'error$':this[_0x281de1(0xfe)][_0x281de1(0x11a)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x46091b=_0x569d26==null?void 0x0:_0x569d26[_0x281de1(0x189)])!=null?_0x46091b:!0x1}),this[_0x281de1(0xd6)]);}));}['_handleConfigure'](){const _0x2132bf=_0x5f019c;this[_0x2132bf(0xd6)]['get'](I)['showConfigPanel']();}};O=ln([M(0x0,_0x4cd141(_0x18fe7e)),M(0x1,_0x4cd141(_0x334a18)),M(0x2,_0x17ef3b),M(0x3,_0x33daa9)],O);function un(_0x37c3c7){const {status$:_0x583d34,error$:_0x7da799,onConfigure:_0x424bf0,showClickable:_0x2d5bfb}=_0x37c3c7;return function(){return _0x1b935a(cn,{'status$':_0x583d34,'error$':_0x7da799,'onConfigure':_0x424bf0,'showClickable':_0x2d5bfb});};}function vn(_0x210f69){const _0x5cb580=_0x5f019c;return{'id':V['id'],'type':_0x553dde[_0x5cb580(0x131)],'icon':_0x5cb580(0x1e2),'title':_0x5cb580(0x1f1),'tooltip':_0x5cb580(0x1f1)};}const dn={[_0x58e065[_0x5f019c(0x1ff)]]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object[_0x5f019c(0x174)],pn=(_0x1ec733,_0x59f109,_0x190e79,_0x57ff1f)=>{const _0x1c5125=_0x5f019c;for(var _0xeefd31=_0x57ff1f>0x1?void 0x0:_0x57ff1f?gn(_0x59f109,_0x190e79):_0x59f109,_0x37f56c=_0x1ec733[_0x1c5125(0xc3)]-0x1,_0x3fc106;_0x37f56c>=0x0;_0x37f56c--)(_0x3fc106=_0x1ec733[_0x37f56c])&&(_0xeefd31=_0x3fc106(_0xeefd31)||_0xeefd31);return _0xeefd31;},re=(_0x19c325,_0x14d568)=>(_0x2e774f,_0x344641)=>_0x14d568(_0x2e774f,_0x344641,_0x19c325);let D=class extends _0xc7b5a{constructor(_0x124c85,_0x503a0c){const _0x417f8f=_0x5f019c;super(),this[_0x417f8f(0x1c5)]=_0x124c85,this['_menuManagerService']=_0x503a0c,this['_initializeCommands'](),this[_0x417f8f(0x155)]();}['_initializeCommands'](){const _0x5978c3=_0x5f019c;[V][_0x5978c3(0xb1)](_0xb0f07a=>{const _0x477513=_0x5978c3;this['disposeWithMe'](this[_0x477513(0x1c5)][_0x477513(0x124)](_0xb0f07a));});}[_0x5f019c(0x155)](){const _0x2f3ee2=_0x5f019c;this[_0x2f3ee2(0x1af)]['mergeMenu'](dn);}};D=pn([re(0x0,_0x3df414),re(0x1,_0x123cf1)],D);const Mn={'mcpStatus':{'disconnected':_0x5f019c(0x1c1),'connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':_0x5f019c(0x1c0),'retrying':_0x5f019c(0xb4),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x5f019c(0x1f6),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x5f019c(0x12f),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x5f019c(0x19a),'clickToConfigure':_0x5f019c(0x10b)},'mcpConfig':{'title':_0x5f019c(0x158),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x5f019c(0x10a),'apiKeyPlaceholder':_0x5f019c(0xd9),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x5f019c(0x143),'enableAuthHint':_0x5f019c(0xdb),'connectionInfo':_0x5f019c(0x1b1),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x5f019c(0x1f4),'configStep1':_0x5f019c(0x187),'configStep2':_0x5f019c(0xce),'configStep3':_0x5f019c(0x1a5),'sessionId':_0x5f019c(0x18b),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x5f019c(0x15b),'note1':_0x5f019c(0x179),'note2':_0x5f019c(0xcf),'configSaved':_0x5f019c(0xe9),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x5f019c(0x1ba),'univerAiLabel':_0x5f019c(0x1dd),'getStarted':_0x5f019c(0x1bc)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x5f019c(0x1a4),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x5f019c(0x1a8),'connected':_0x5f019c(0x1be),'failed':_0x5f019c(0xed),'retrying':_0x5f019c(0x164)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x5f019c(0x140),'networkError':_0x5f019c(0x122),'maxRetriesExceeded':_0x5f019c(0x1d2)}}},An={'mcpStatus':{'disconnected':_0x5f019c(0xbe),'connecting':_0x5f019c(0x1a6),'connected':'MCP\x20已连接','failed':_0x5f019c(0x184),'retrying':'MCP\x20重连中...','unknown':_0x5f019c(0x12d),'unauthorized':'MCP:\x20未授权','sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x5f019c(0x1b3),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x5f019c(0x101)},'mcpConfig':{'title':_0x5f019c(0xb5),'description':_0x5f019c(0x17d),'apiKey':_0x5f019c(0xb7),'apiKeyPlaceholder':_0x5f019c(0x148),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':_0x5f019c(0x14e),'enableAuthHint':_0x5f019c(0xae),'connectionInfo':_0x5f019c(0x170),'mcpClientConfig':_0x5f019c(0x170),'configInstructions':_0x5f019c(0x1c2),'configStepTitle':_0x5f019c(0x12a),'configStep1':'复制以下\x20JSON\x20配置','configStep2':_0x5f019c(0x132),'configStep3':_0x5f019c(0x1ca),'sessionId':'会话ID','sessionIdDescription':_0x5f019c(0x1e8),'authorizationDescription':_0x5f019c(0xcb),'configParameters':_0x5f019c(0xd3),'maxRetries':_0x5f019c(0x1f2),'save':_0x5f019c(0x13b),'saving':_0x5f019c(0xb6),'note1':'配置更改将立即生效','note2':_0x5f019c(0x112),'configSaved':_0x5f019c(0x1f3),'configError':'配置保存失败','apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x5f019c(0x1ed),'univerAiLabel':_0x5f019c(0x1d1),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x5f019c(0x127),'invalidConfig':_0x5f019c(0x19f),'invalidApiKey':_0x5f019c(0x1b6)},'connectionStatus':{'disconnected':_0x5f019c(0xf6),'connecting':_0x5f019c(0xe0),'connected':'已连接','failed':_0x5f019c(0x1ef),'retrying':_0x5f019c(0x14b)},'connectionError':{'unauthorized':_0x5f019c(0xf0),'sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x5f019c(0x147)}}};var fn=Object[_0x5f019c(0xd0)],hn=Object[_0x5f019c(0x174)],Cn=(_0x2e1262,_0xd2c7eb,_0x326125)=>_0xd2c7eb in _0x2e1262?fn(_0x2e1262,_0xd2c7eb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x326125}):_0x2e1262[_0xd2c7eb]=_0x326125,mn=(_0x332425,_0x381954,_0x17f390,_0x7f478a)=>{for(var _0x45a72e=_0x7f478a>0x1?void 0x0:_0x7f478a?hn(_0x381954,_0x17f390):_0x381954,_0x494feb=_0x332425['length']-0x1,_0x507237;_0x494feb>=0x0;_0x494feb--)(_0x507237=_0x332425[_0x494feb])&&(_0x45a72e=_0x507237(_0x45a72e)||_0x45a72e);return _0x45a72e;},P=(_0x5e23f0,_0x14e854)=>(_0x2134e0,_0x483e95)=>_0x14e854(_0x2134e0,_0x483e95,_0x5e23f0),_n=(_0x3e20e9,_0x403ba5,_0x4e3c14)=>Cn(_0x3e20e9,_0x403ba5+'',_0x4e3c14);let j=class extends _0x286071{constructor(_0xc79697=ie,_0x2012e8,_0x58371a,_0x98ae61,_0x93620b,_0x4b30a8){const _0x79c2db=_0x5f019c;super(),this['_config']=_0xc79697,this['_injector']=_0x2012e8,this['_configService']=_0x58371a,this[_0x79c2db(0x116)]=_0x98ae61,this[_0x79c2db(0xfb)]=_0x93620b,this[_0x79c2db(0x1d5)]=_0x4b30a8;const {..._0x328217}=_0x3d6d7c({},ie,this['_config']);this[_0x79c2db(0xc4)]['setConfig'](y,_0x328217);}async['onStarting'](){const _0x4e51eb=_0x5f019c,_0x3bb12=[[O],[I],[D]];this[_0x4e51eb(0xd6)][_0x4e51eb(0xf9)](_0x985069)||_0x3bb12[_0x4e51eb(0xfc)]([_0x985069,{'useClass':_0x42b82e}]),_0x3bb12[_0x4e51eb(0xb1)](_0x1f73c7=>this[_0x4e51eb(0xd6)][_0x4e51eb(0x192)](_0x1f73c7)),this['_injector']['get'](O),this[_0x4e51eb(0xd6)][_0x4e51eb(0xf8)](I),this[_0x4e51eb(0xd6)][_0x4e51eb(0xf8)](D);}};_n(j,_0x5f019c(0xd2),_0x5f019c(0x1e5)),j=mn([_0x315164(_0x30ad4f),P(0x1,_0x4cd141(_0x18fe7e)),P(0x2,_0x33daa9),P(0x3,_0x17ef3b),P(0x4,_0x2b2756),P(0x5,_0x4cd141(_0x50797d))],j);export{nn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,cn as MCPStatusDisplay,D as MCPUIMenuController,V as OpenMCPConfigPanelCommand,j as UniverMCPUIPlugin,Mn as enUS,An as zhCN};
|
|
1
|
+
const _0x69509c=_0x31b6;(function(_0x5e4f2a,_0x1ffd3c){const _0xd6fd11=_0x31b6,_0x2f3253=_0x5e4f2a();while(!![]){try{const _0x5cc186=-parseInt(_0xd6fd11(0x244))/0x1+-parseInt(_0xd6fd11(0x217))/0x2+parseInt(_0xd6fd11(0x14e))/0x3*(-parseInt(_0xd6fd11(0x134))/0x4)+-parseInt(_0xd6fd11(0x237))/0x5+-parseInt(_0xd6fd11(0x22e))/0x6+-parseInt(_0xd6fd11(0x10b))/0x7*(-parseInt(_0xd6fd11(0x111))/0x8)+parseInt(_0xd6fd11(0x204))/0x9;if(_0x5cc186===_0x1ffd3c)break;else _0x2f3253['push'](_0x2f3253['shift']());}catch(_0x12a7c4){_0x2f3253['push'](_0x2f3253['shift']());}}}(_0x1819,0x853da));var Pe=Object[_0x69509c(0x1ae)],Ee=(_0x18080a,_0x387401,_0x413bb6)=>_0x387401 in _0x18080a?Pe(_0x18080a,_0x387401,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x413bb6}):_0x18080a[_0x387401]=_0x413bb6,x=(_0x27ffc3,_0x11e26e,_0x96d161)=>Ee(_0x27ffc3,typeof _0x11e26e!=_0x69509c(0xed)?_0x11e26e+'':_0x11e26e,_0x96d161);function _0x1819(){const _0x25835c=['univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','0\x200\x2016\x2016','_loadStoredApiKey','_connectionController','Configuration\x20Steps:','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','map','mcpConfig.apiKeyPlaceholder','push','MCP\x20已连接','MCP:\x20未授权','mcpConfig.apiKey','univer-space-y-2','evenodd','mcpStatus.failed','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','_validateConfig','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','API\x20密钥长度至少需要\x2010\x20位','xlink:href','mcpConfig.apiApplyInfo.getStarted','univerjs-icon\x20univerjs-icon-','会话\x20ID\x20已被占用,请稍后再试','MCP:\x20Max\x20Retries\x20Exceeded','_configService','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','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','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','univer-space-y-3','_mcpConnectionController','保存中...','会话ID','showDeveloperTools','DISCONNECTED','M0\x200H16V16H0z','Connecting...','Click\x20to\x20configure\x20MCP','_uiPartsService','mcpConfig.title','register','https://mcp.univer.ai/mcp/?univer_session_id=','subscribeConfigValue$','COMMAND','mcpConfig.connectionError.networkError','_createConfigPanelComponent','API\x20key\x20with\x20Bearer\x20prefix.','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','CONNECTING','pluginName','path','defineProperty','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','https://console.univer.ai','displayName','Configuration\x20Parameters:','mcpServerUrl','CONNECTED','pre','error','Saving...','MCP\x20Unknown\x20Status','_localStorageService','substring','MCP\x20Retrying...','current','HEADER_MENU','OTHERS','Enable\x20authentication\x20for\x20secure\x20connections','univer-bg-red-500','mcpConfig.validation.apiKeyRequired','MCP:\x20Unauthorized','mcpStatus.maxRetriesExceeded','您的\x20API\x20密钥将在此浏览器中本地存储','apiKey','assign','univer-bg-green-500','__setCustomHeaders','CloseIcon','univer-text-xs\x20univer-text-gray-600','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','重启您的\x20MCP\x20客户端以使配置生效','_mcpCoreConfig$','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP:\x20Network\x20Error','univer-bg-gray-500','未连接','value','mcpConfig.validation.invalidConfig','_initializeMenus','SESSION_ID_OCCUPIED','close','_initStatusComponent','div','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','defs','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-text-white','mcp.apiKey','What\x20is\x20API\x20Key?','Univer\x20AI\x20Console','on-line-icon','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','0\x200\x2017\x2016','mcp-ui.command.openConfigPanel','将以下配置添加到您的\x20MCP\x20客户端设置中:','_messageService','MCP\x20客户端配置','配置\x20MCP\x20使用\x20AI\x20操作电子表格','_logService','univer-text-red-500','Max\x20Retries','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','length','API\x20key\x20is\x20required','MCP\x20Client\x20Configuration','mcpConfig.connectionError.sessionOccupied','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','white','BUTTON','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','NONE','MCP:\x20超出最大重试次数','attrs','Invalid\x20configuration','use','已连接','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','fill','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','MCP\x20连接失败','univer-size-4','超出最大重试次数,请稍后再试','mcpConfig.saving','entries','univer-text-sm\x20univer-text-gray-500','41234499ifCaOi','mcpStatus.unknown','univer.ai','启用身份验证以获得安全连接','Connection\x20Failed','FAILED','MCP:\x20网络错误','mcpConfig.configStepTitle','onStarting','API\x20密钥','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','mcpStatus.clickToConfigure','MCP\x20连接中...','Configuration\x20saved\x20successfully','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','_handleConfigSave','API\x20密钥不能为空','UNAUTHORIZED','1885464uDTTKc','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer-flex\x20univer-items-center\x20univer-gap-2','next','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','off','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','MCP:\x20Session\x20ID\x20Occupied','setConfig','_apiKey$','_initAutoConnect','mcpConfig.connectionError.maxRetriesExceeded','MAX_RETRIES_EXCEEDED','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','show','_commandService','复制以下\x20JSON\x20配置','mcpConfig.connectionInfo','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','has','text','add','_componentManager','6500088ODFteo','noopener\x20noreferrer','_config','includes','点击配置\x20MCP','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','Session\x20ID','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','univer-space-y-4','5193555SENcUL','http://www.w3.org/2000/svg','none','mcpConfig.configSaved','mcpConfig.apiApplyInfo.univerAiLabel','showStatus','_registerComponent','_initializeCommands','mcpConfig.apiKeyHint','mcpConfig.sessionIdDescription','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','mcpConfig.note1','Success','694559BgpqHD','errorMessage','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','span','mcpConfig.save','svg','mcpConfig.apiApplyInfo.title','stringify','API\x20密钥无效,请检查密钥是否正确','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20配置','getOwnPropertyDescriptor','Authorization:','mcpStatus.connecting','RETRYING','mcpConfig.validation.apiKeyTooShort','symbol','Save\x20Configuration','MCP\x20已断开','url(#$1','重连中...','round','univer-min-w-0\x20univer-flex-1','网络连接错误,请检查您的网络连接','univer-font-medium','translate(.97)','配置保存成功','API\x20Key','button','connectionStatus$','isValid','univer-text-gray-400','mcpConfig.configStep2','mcpStatus.sessionOccupied','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','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','disposeWithMe','mcpConfig.apiApplyInfo.description','univer-shrink-0\x20univer-text-red-500','validateApiKey','_localeService','_blank','tag','getItem','MCP\x20Configuration','Bearer\x20','328489GrjJfB','连接失败','mcpStatus.retrying','univer-size-2\x20univer-rounded-full','mcpConfig.configStep3','Click\x20to\x20connect\x20MCP','64BArXEu','连接中...','<SESSION_ID>','mcpConfig.connectionStatus.connecting','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','random','get','mcpConfig.configError','配置保存失败','mcpConfig.connectionStatus.disconnected','univer-flex\x20univer-items-start\x20univer-gap-3','toString','string','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','sessionId$','MCP:\x20会话\x20ID\x20已被占用','NETWORK_ERROR','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','mcpConfig.connectionStatus.retrying','univer-mr-2\x20univer-flex\x20univer-text-xl','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP_UI_PLUGIN','close-icon','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','enableAutoConnect','MCPConfigPanel','\x20-\x20','mcpConfig.description','getConfig','help-icon','mcpStatus.unauthorized','1em','clipPath','forEach','subscribe','172PKRGqV','colorChannel1','OffLineIcon','setItem','mcpStatus.disconnected','_dialogService','Enable\x20Authentication','univer-flex\x20univer-flex-wrap\x20univer-gap-2','Failed\x20to\x20save\x20configuration','Univer\x20AI\x20控制台','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','Enter\x20your\x20API\x20key','mcpConfig.configParameters','univer-text-gray-500','univer-text-sm\x20univer-font-medium','off-line-icon_clip0_910_343','registerComponent','mask','trim','idSuffix','\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-space-y-5','univer-text-xs\x20univer-text-gray-500','MCP\x20Connected','OnLineIcon','univer-shrink-0\x20univer-text-blue-500','45483HgOCYY','_loading$','defIds','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','mcpConfig.configStep1','_initConfigSync','univer_session_id:','mcpStatus.networkError','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','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','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','_config$','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','univer-flex\x20univer-gap-3','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','UniverIcon','bottom','Disconnected','univer-flex\x20univer-items-start\x20univer-gap-2','replace','_handleConfigure','univer-text-blue-600','Copy\x20the\x20JSON\x20configuration\x20below','getCurrentConfig','保存配置','children','mcpConfig.configInstructions','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','_injector','mergeMenu','univer.plus','权限验证失败,请检查您的\x20API\x20密钥','showConfigPanel','mcpConfig.connectionStatus.failed','配置更改将立即生效','warn','currentColor','on-line-icon_clip0_910_349','mcpConfig.note2','univer-bg-blue-500','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','什么是\x20API\x20密钥?','connectionError$','Error','MCP\x20Connection\x20Failed','Get\x20your\x20API\x20key\x20in\x20seconds'];_0x1819=function(){return _0x25835c;};return _0x1819();}import{LocaleService as _0x74fd5c,Inject as _0x498260,Injector as _0x2824b0,IConfigService as _0x2115ff,ILocalStorageService as _0x1d32ad,ILogService as _0x312a1b,Disposable as _0x129f6f,CommandType as _0x28d3dc,ICommandService as _0x2f567e,DependentOn as _0x1bb110,Plugin as _0x1da912,merge as _0x5c7826}from'@univerjs/core';import{jsxs as _0xcbf5f2,jsx as _0x55d31f}from'react/jsx-runtime';import{MCPConnectionStatus as _0x145f07,MCPConnectionError as _0x4b334c,MCPConnectionController as _0x25fab3,MCP_PLUGIN_CONFIG_KEY as _0x48df26,UniverMCPPlugin as _0x97faec}from'@univerjs-pro/mcp';import{clsx as _0x1a08e9,Input as _0x28996b,Button as _0x177137,MessageType as _0x48dc0b,Tooltip as _0x19b6e8}from'@univerjs/design';import{useDependency as _0x45df94,useObservable as _0x346ffb,IUIPartsService as _0x4922e4,IDialogService as _0x20a5e1,IMessageService as _0x859540,ComponentManager as _0x98ea68,connectInjector as _0x3557b0,BuiltInUIPart as _0x3b5cdc,MenuItemType as _0xb75b57,RibbonStartGroup as _0x157488,IMenuManagerService as _0x58faa0}from'@univerjs/ui';import{BehaviorSubject as _0x2567e3}from'rxjs';import{useRef as _0x56c435,createElement as _0x5008bd,forwardRef as _0x1d7f67,useState as _0x1aa844,useCallback as _0x34973c}from'react';import{ISocketService as _0x519a30,WebSocketService as _0x2a611e}from'@univerjs/network';function b({ref:_0x1f3bf2,..._0x52d5ac}){const _0x1cd7a6=_0x69509c,{icon:_0x3d1812,id:_0xf59ff,className:_0x54701f,extend:_0x378b18,..._0x1aeda3}=_0x52d5ac,_0x3013c7=(_0x1cd7a6(0x191)+_0xf59ff+'\x20'+(_0x54701f||''))[_0x1cd7a6(0x146)](),_0x10a83a=_0x56c435('_'+We());return ae(_0x3d1812,''+_0xf59ff,{'defIds':_0x3d1812[_0x1cd7a6(0x150)],'idSuffix':_0x10a83a[_0x1cd7a6(0x1bc)]},{'ref':_0x1f3bf2,'className':_0x3013c7,..._0x1aeda3},_0x378b18);}function ae(_0x43d705,_0x3afbe0,_0x22c8a5,_0x121ff8,_0x17d663){const _0x3d9613=_0x69509c;return _0x5008bd(_0x43d705[_0x3d9613(0x107)],{'key':_0x3afbe0,...Ye(_0x43d705,_0x22c8a5,_0x17d663),..._0x121ff8},(Ze(_0x43d705,_0x22c8a5)[_0x3d9613(0x167)]||[])[_0x3d9613(0x182)]((_0x5af5dd,_0x28303e)=>ae(_0x5af5dd,_0x3afbe0+'-'+_0x43d705[_0x3d9613(0x107)]+'-'+_0x28303e,_0x22c8a5,void 0x0,_0x17d663)));}function Ye(_0x5bce3e,_0x44578c,_0x565822){const _0x1c4d1f=_0x69509c,_0x34c3e0={..._0x5bce3e[_0x1c4d1f(0x1f6)]};_0x565822!=null&&_0x565822['colorChannel1']&&_0x34c3e0[_0x1c4d1f(0x1fb)]==='colorChannel1'&&(_0x34c3e0['fill']=_0x565822[_0x1c4d1f(0x135)]),_0x5bce3e['tag']===_0x1c4d1f(0x145)&&_0x34c3e0['id']&&(_0x34c3e0['id']=_0x34c3e0['id']+_0x44578c['idSuffix']),Object[_0x1c4d1f(0x202)](_0x34c3e0)[_0x1c4d1f(0x132)](([_0x1891aa,_0x683a4a])=>{const _0x20f40f=_0x1c4d1f;_0x1891aa===_0x20f40f(0x145)&&typeof _0x683a4a==_0x20f40f(0x11d)&&(_0x34c3e0[_0x1891aa]=_0x683a4a[_0x20f40f(0x161)](/url\(#(.*)\)/,_0x20f40f(0xf0)+_0x44578c[_0x20f40f(0x147)]+')'));});const {defIds:_0x190804}=_0x44578c;return!_0x190804||_0x190804['length']===0x0||(_0x5bce3e[_0x1c4d1f(0x107)]===_0x1c4d1f(0x1f8)&&_0x34c3e0[_0x1c4d1f(0x18f)]&&(_0x34c3e0['xlink:href']=_0x34c3e0[_0x1c4d1f(0x18f)]+_0x44578c[_0x1c4d1f(0x147)]),Object[_0x1c4d1f(0x202)](_0x34c3e0)[_0x1c4d1f(0x132)](([_0x117af5,_0x42def3])=>{const _0x4dc97b=_0x1c4d1f;typeof _0x42def3==_0x4dc97b(0x11d)&&(_0x34c3e0[_0x117af5]=_0x42def3['replace'](/url\(#(.*)\)/,_0x4dc97b(0xf0)+_0x44578c[_0x4dc97b(0x147)]+')'));})),_0x34c3e0;}function Ze(_0x261b95,_0x223fb7){const _0x301faa=_0x69509c;var _0x4bdc39;const {defIds:_0x313954}=_0x223fb7;return!_0x313954||_0x313954[_0x301faa(0x1ec)]===0x0?_0x261b95:_0x261b95['tag']===_0x301faa(0x1da)&&((_0x4bdc39=_0x261b95[_0x301faa(0x167)])!=null&&_0x4bdc39[_0x301faa(0x1ec)])?{..._0x261b95,'children':_0x261b95['children'][_0x301faa(0x182)](_0x108458=>typeof _0x108458[_0x301faa(0x1f6)]['id']==_0x301faa(0x11d)&&_0x313954&&_0x313954['includes'](_0x108458['attrs']['id'])?{..._0x108458,'attrs':{..._0x108458['attrs'],'id':_0x108458[_0x301faa(0x1f6)]['id']+_0x223fb7['idSuffix']}}:_0x108458)}:_0x261b95;}function We(){const _0x2a05a2=_0x69509c;return Math[_0x2a05a2(0x116)]()[_0x2a05a2(0x11c)](0x24)[_0x2a05a2(0x1ba)](0x2,0x8);}b[_0x69509c(0x1b1)]=_0x69509c(0x15d);const qe={'tag':_0x69509c(0x249),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x69509c(0x239),'viewBox':_0x69509c(0x17d),'width':_0x69509c(0x130),'height':'1em'},'children':[{'tag':_0x69509c(0x1ad),'attrs':{'fill':_0x69509c(0x172),'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':'evenodd','clipRule':'evenodd'}}]},le=_0x1d7f67(function(_0x463d7a,_0x9a08fe){const _0x95dce6=_0x69509c;return _0x5008bd(b,Object[_0x95dce6(0x1c6)]({},_0x463d7a,{'id':'check-mark-icon','ref':_0x9a08fe,'icon':qe}));});le['displayName']='CheckMarkIcon';const Xe={'tag':_0x69509c(0x249),'attrs':{'xmlns':_0x69509c(0x238),'fill':_0x69509c(0x239),'viewBox':'0\x200\x2016\x2016','width':_0x69509c(0x130),'height':_0x69509c(0x130)},'children':[{'tag':_0x69509c(0x1ad),'attrs':{'fill':'currentColor','d':_0x69509c(0x18b)}}]},ue=_0x1d7f67(function(_0x264ec8,_0x3a022e){const _0x415e34=_0x69509c;return _0x5008bd(b,Object['assign']({},_0x264ec8,{'id':_0x415e34(0x127),'ref':_0x3a022e,'icon':Xe}));});ue['displayName']=_0x69509c(0x1c9);const Je={'tag':_0x69509c(0x249),'attrs':{'xmlns':_0x69509c(0x238),'fill':_0x69509c(0x239),'viewBox':'0\x200\x2016\x2016','width':_0x69509c(0x130),'height':_0x69509c(0x130)},'children':[{'tag':_0x69509c(0x1ad),'attrs':{'fill':'currentColor','d':_0x69509c(0x224)}},{'tag':_0x69509c(0x1ad),'attrs':{'fill':_0x69509c(0x172),'d':_0x69509c(0x1eb)}},{'tag':_0x69509c(0x1ad),'attrs':{'fill':_0x69509c(0x172),'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':_0x69509c(0x189),'clipRule':_0x69509c(0x189)}}]},ve=_0x1d7f67(function(_0x100ba9,_0x41a123){const _0x2d3ecc=_0x69509c;return _0x5008bd(b,Object[_0x2d3ecc(0x1c6)]({},_0x100ba9,{'id':_0x2d3ecc(0x12e),'ref':_0x41a123,'icon':Je}));});ve[_0x69509c(0x1b1)]='HelpIcon';const Qe={'tag':_0x69509c(0x249),'attrs':{'xmlns':_0x69509c(0x238),'fill':'none','viewBox':_0x69509c(0x17d),'width':_0x69509c(0x130),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x69509c(0x1ad),'attrs':{'stroke':_0x69509c(0x172),'d':_0x69509c(0x157),'strokeLinecap':_0x69509c(0xf2),'strokeLinejoin':_0x69509c(0xf2),'strokeWidth':1.2}}]},{'tag':_0x69509c(0x1da),'attrs':{},'children':[{'tag':_0x69509c(0x131),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x69509c(0x1ad),'attrs':{'fill':_0x69509c(0x1f1),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x69509c(0x143)]},de=_0x1d7f67(function(_0x12caec,_0x4bd4b4){const _0x36621f=_0x69509c;return _0x5008bd(b,Object[_0x36621f(0x1c6)]({},_0x12caec,{'id':'off-line-icon','ref':_0x4bd4b4,'icon':Qe}));});de[_0x69509c(0x1b1)]=_0x69509c(0x136);const en={'tag':_0x69509c(0x249),'attrs':{'xmlns':_0x69509c(0x238),'fill':_0x69509c(0x239),'viewBox':_0x69509c(0x1e2),'width':_0x69509c(0x130),'height':_0x69509c(0x130)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':'path','attrs':{'stroke':_0x69509c(0x172),'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':_0x69509c(0xf2),'strokeLinejoin':_0x69509c(0xf2),'strokeWidth':1.2}}]},{'tag':_0x69509c(0x1da),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x69509c(0x173)},'children':[{'tag':_0x69509c(0x1ad),'attrs':{'fill':_0x69509c(0x1f1),'d':_0x69509c(0x19e),'transform':_0x69509c(0xf6)}}]}]}],'defIds':[_0x69509c(0x173)]},ge=_0x1d7f67(function(_0x5236da,_0x537638){const _0x32651a=_0x69509c;return _0x5008bd(b,Object[_0x32651a(0x1c6)]({},_0x5236da,{'id':_0x32651a(0x1e0),'ref':_0x537638,'icon':en}));});ge[_0x69509c(0x1b1)]=_0x69509c(0x14c);function nn(_0x28ed0b){const _0x42e760=_0x69509c;var _0x3754b9,_0x4f3b19;const {mcpCoreConfig:_0x25afca,onSave:_0x5cf7ad,loading:_0x514827=!0x1,config:_0x40a088,connectionStatus$:_0x511ae6,connectionError$:_0xdd76b3,currentApiKey$:_0x2f76d3,currentSessionId$:_0x4721ab}=_0x28ed0b,_0x1a23f3=_0x45df94(_0x74fd5c),_0x306123=_0x346ffb(_0x511ae6,_0x145f07['DISCONNECTED']),_0x38b4dd=_0x346ffb(_0xdd76b3,_0x4b334c[_0x42e760(0x1f4)]),_0x23079a=_0x346ffb(_0x4721ab,''),_0x1a81f5=_0x346ffb(_0x2f76d3,''),[_0x433c4e,_0x4ff14e]=_0x1aa844(_0x1a81f5||''),_0x34daec=!0x0,_0x5a5a07=_0x40a088['showDeveloperTools']&&_0x25afca['mcpServerUrl']&&(_0x25afca[_0x42e760(0x1b3)][_0x42e760(0x231)]('univer.plus')||_0x25afca[_0x42e760(0x1b3)]['includes'](_0x42e760(0x206))),_0x1b1f62=(_0x3754b9=_0x25afca[_0x42e760(0x1b3)])==null?void 0x0:_0x3754b9['includes'](_0x42e760(0x16c)),_0x5720fa=(_0x4f3b19=_0x25afca[_0x42e760(0x1b3)])==null?void 0x0:_0x4f3b19[_0x42e760(0x231)]('univer.ai'),_0x113c76=_0x1b1f62?'https://console.univer.plus':_0x42e760(0x1b0),_0x258543=_0x40a088[_0x42e760(0x19c)]&&(_0x1b1f62||_0x5720fa),[_0x3807fe,_0x2a81d9]=_0x1aa844(!_0x433c4e[_0x42e760(0x146)]()),_0x2d66d1=(_0x277d83,_0x36baba)=>{const _0xfb4083=_0x42e760;if(_0x36baba===_0x4b334c['UNAUTHORIZED'])return _0xfb4083(0x18d);switch(_0x277d83){case _0x145f07[_0xfb4083(0x1b4)]:return _0xfb4083(0x169);case _0x145f07[_0xfb4083(0x1ab)]:case _0x145f07[_0xfb4083(0xeb)]:return'univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200';case _0x145f07[_0xfb4083(0x209)]:return _0xfb4083(0x18d);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x1a661e=(_0x40f9fd,_0x441fae)=>{const _0x2c4edf=_0x42e760;if(_0x441fae===_0x4b334c[_0x2c4edf(0x216)])return _0x2c4edf(0x1c0);switch(_0x40f9fd){case _0x145f07[_0x2c4edf(0x1b4)]:return _0x2c4edf(0x1c7);case _0x145f07[_0x2c4edf(0x1ab)]:case _0x145f07[_0x2c4edf(0xeb)]:return _0x2c4edf(0x175);case _0x145f07[_0x2c4edf(0x209)]:return'univer-bg-red-500';default:return _0x2c4edf(0x1d0);}},_0x2c6476=_0x2cf942=>{const _0x5ac30e=_0x42e760;switch(_0x2cf942){case _0x145f07[_0x5ac30e(0x1b4)]:return _0x1a23f3['t']('mcpConfig.connectionStatus.connected');case _0x145f07['CONNECTING']:return _0x1a23f3['t'](_0x5ac30e(0x114));case _0x145f07[_0x5ac30e(0x209)]:return _0x1a23f3['t'](_0x5ac30e(0x16f));case _0x145f07['RETRYING']:return _0x1a23f3['t'](_0x5ac30e(0x123));default:return _0x1a23f3['t'](_0x5ac30e(0x11a));}},_0xa0750=_0x45410b=>{const _0x5f090a=_0x42e760;switch(_0x45410b){case _0x4b334c[_0x5f090a(0x216)]:return _0x1a23f3['t']('mcpConfig.connectionError.unauthorized');case _0x4b334c[_0x5f090a(0x1d5)]:return _0x1a23f3['t'](_0x5f090a(0x1ef));case _0x4b334c[_0x5f090a(0x121)]:return _0x1a23f3['t'](_0x5f090a(0x1a7));case _0x4b334c[_0x5f090a(0x223)]:return _0x1a23f3['t'](_0x5f090a(0x222));default:return'';}},_0x389c5e=_0x34973c(()=>{const _0x4e89b5=_0x42e760,_0x32e082={..._0x25afca,'apiKey':_0x433c4e[_0x4e89b5(0x146)](),'enableAuth':_0x34daec};_0x5cf7ad(_0x32e082);},[_0x25afca,_0x433c4e,_0x34daec,_0x5cf7ad]),_0x334d8e=_0x433c4e[_0x42e760(0x146)]()[_0x42e760(0x1ec)]>0x0;return _0xcbf5f2('div',{'className':_0x42e760(0x1f0),'children':[_0x55d31f(_0x42e760(0x1d8),{'className':_0x42e760(0x1e1),'children':_0xcbf5f2(_0x42e760(0x1d8),{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[_0x55d31f(_0x42e760(0x1d8),{'className':_0x42e760(0x246),'children':_0x55d31f(_0x42e760(0x247),{'className':_0x42e760(0x1dc),'children':'⚙'})}),_0x55d31f(_0x42e760(0x1d8),{'children':_0x55d31f('p',{'className':_0x42e760(0x203),'children':_0x1a23f3['t'](_0x42e760(0x12c))})})]})}),_0xcbf5f2(_0x42e760(0x1d8),{'className':_0x42e760(0x15a),'children':[_0x55d31f(_0x42e760(0x1d8),{'className':_0x1a08e9('univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2',_0x2d66d1(_0x306123,_0x38b4dd)),'children':_0xcbf5f2('div',{'className':_0x42e760(0x219),'children':[_0x55d31f(_0x42e760(0x1d8),{'className':_0x1a08e9(_0x42e760(0x10e),_0x1a661e(_0x306123,_0x38b4dd))}),_0x55d31f(_0x42e760(0x247),{'className':_0x42e760(0x142),'children':_0x2c6476(_0x306123)})]})}),_0x38b4dd!==_0x4b334c[_0x42e760(0x1f4)]&&(_0x306123===_0x145f07[_0x42e760(0x209)]||_0x38b4dd===_0x4b334c[_0x42e760(0x216)])&&_0x55d31f(_0x42e760(0x1d8),{'className':_0x42e760(0x212),'children':_0xcbf5f2(_0x42e760(0x1d8),{'className':_0x42e760(0x160),'children':[_0x55d31f('span',{'className':_0x42e760(0x103),'children':'⚠️'}),_0x55d31f('p',{'className':_0x42e760(0x156),'children':_0xa0750(_0x38b4dd)})]})})]}),_0x55d31f(_0x42e760(0x1d8),{'className':_0x42e760(0x233),'children':_0xcbf5f2(_0x42e760(0x1d8),{'className':_0x42e760(0x149),'children':[_0xcbf5f2('div',{'className':'univer-space-y-2','children':[_0xcbf5f2('label',{'className':_0x42e760(0x1cb),'children':[_0x55d31f('span',{'children':'🔑'}),'\x20',_0x1a23f3['t'](_0x42e760(0x187)),_0x55d31f('span',{'className':_0x42e760(0x1e9),'children':'*'}),_0x5a5a07&&_0x55d31f('a',{'className':_0x42e760(0x1db),'title':_0x1a23f3['t'](_0x42e760(0x24a)),'role':_0x42e760(0xf9),'onClick':()=>_0x2a81d9(!0x0),'children':_0x55d31f(ve,{})})]}),_0x55d31f(_0x28996b,{'type':_0x42e760(0x22b),'placeholder':_0x1a23f3['t'](_0x42e760(0x183)),'value':_0x433c4e,'disabled':_0x514827,'autoComplete':_0x42e760(0x21c),'onChange':_0x4ff14e}),_0x55d31f('p',{'className':_0x42e760(0x14a),'children':_0x1a23f3['t'](_0x42e760(0x23f))})]}),_0x5a5a07&&_0x3807fe&&_0xcbf5f2(_0x42e760(0x1d8),{'className':_0x42e760(0x181),'children':[_0x55d31f('a',{'className':_0x42e760(0x196),'role':_0x42e760(0xf9),'onClick':()=>_0x2a81d9(!0x1),'children':_0x55d31f(ue,{'className':_0x42e760(0x1ff)})}),_0xcbf5f2(_0x42e760(0x1d8),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[_0x55d31f(_0x42e760(0x1d8),{'className':'univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':_0x55d31f('span',{'className':_0x42e760(0x163),'children':'🚀'})}),_0xcbf5f2('div',{'className':'univer-flex-1','children':[_0x55d31f('h4',{'className':_0x42e760(0x176),'children':_0x1a23f3['t'](_0x42e760(0x24a))}),_0x55d31f('p',{'className':_0x42e760(0x17c),'children':_0x1a23f3['t'](_0x42e760(0x102))}),_0x55d31f(_0x42e760(0x1d8),{'className':_0x42e760(0x13b),'children':_0x258543&&_0xcbf5f2('a',{'className':_0x42e760(0x100),'href':_0x113c76,'target':_0x42e760(0x106),'rel':_0x42e760(0x22f),'children':[_0x55d31f(_0x42e760(0x247),{'children':'🤖'}),_0x1a23f3['t'](_0x42e760(0x23b)),_0x55d31f(_0x42e760(0x247),{'className':_0x42e760(0xfc),'children':'↗'})]})}),_0xcbf5f2(_0x42e760(0x1d8),{'className':_0x42e760(0x20e),'children':['✨','\x20',_0x1a23f3['t'](_0x42e760(0x190))]})]})]})]}),_0x40a088[_0x42e760(0x19c)]&&_0xcbf5f2(_0x42e760(0x1d8),{'className':_0x42e760(0x11e),'children':[_0xcbf5f2('h4',{'className':_0x42e760(0x218),'children':[_0x55d31f(_0x42e760(0x247),{'children':'🔗'}),'\x20',_0x1a23f3['t'](_0x42e760(0x228))]}),_0xcbf5f2(_0x42e760(0x1d8),{'className':_0x42e760(0x236),'children':[_0xcbf5f2(_0x42e760(0x1d8),{'className':_0x42e760(0x198),'children':[_0x55d31f('p',{'className':_0x42e760(0x1ca),'children':_0x1a23f3['t'](_0x42e760(0x168))}),_0xcbf5f2(_0x42e760(0x1d8),{'className':'univer-space-y-2','children':[_0x55d31f(_0x42e760(0x1d8),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x1a23f3['t'](_0x42e760(0x20b))}),_0xcbf5f2(_0x42e760(0x1d8),{'className':_0x42e760(0x229),'children':[_0xcbf5f2(_0x42e760(0x1d8),{'className':_0x42e760(0x219),'children':[_0x55d31f('span',{'className':_0x42e760(0x21b),'children':'1'}),_0x1a23f3['t'](_0x42e760(0x152))]}),_0xcbf5f2(_0x42e760(0x1d8),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x55d31f(_0x42e760(0x247),{'className':_0x42e760(0x21b),'children':'2'}),_0x1a23f3['t'](_0x42e760(0xfd))]}),_0xcbf5f2('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x55d31f(_0x42e760(0x247),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'3'}),_0x1a23f3['t'](_0x42e760(0x10f))]})]})]})]}),_0xcbf5f2(_0x42e760(0x1d8),{'className':_0x42e760(0x188),'children':[_0x55d31f(_0x42e760(0x1d8),{'className':_0x42e760(0x15c),'children':_0x42e760(0x109)}),_0x55d31f(_0x42e760(0x1d8),{'className':_0x42e760(0x1fd),'children':_0x55d31f(_0x42e760(0x1b5),{'className':_0x42e760(0x235),'children':JSON[_0x42e760(0x24b)]({'mcpServers':{'univer':{'url':_0x42e760(0x1a4)+(_0x23079a||_0x42e760(0x113)),'type':'http','headers':{'Authorization':_0x42e760(0x10a)+(_0x433c4e||'<API_KEY>')}}}},null,0x2)})})]}),_0xcbf5f2(_0x42e760(0x1d8),{'className':_0x42e760(0x198),'children':[_0x55d31f(_0x42e760(0x1d8),{'className':_0x42e760(0x15c),'children':_0x1a23f3['t'](_0x42e760(0x140))}),_0xcbf5f2('div',{'className':_0x42e760(0x188),'children':[_0xcbf5f2(_0x42e760(0x1d8),{'className':_0x42e760(0x11b),'children':[_0x55d31f(_0x42e760(0x1d8),{'className':_0x42e760(0x21d)}),_0xcbf5f2(_0x42e760(0x1d8),{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x55d31f(_0x42e760(0x1d8),{'className':_0x42e760(0x195),'children':_0x42e760(0x154)}),_0x55d31f(_0x42e760(0x1d8),{'className':_0x42e760(0x14a),'children':_0x1a23f3['t'](_0x42e760(0x240))})]})]}),_0xcbf5f2(_0x42e760(0x1d8),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x55d31f(_0x42e760(0x1d8),{'className':_0x42e760(0x21d)}),_0xcbf5f2(_0x42e760(0x1d8),{'className':_0x42e760(0xf3),'children':[_0x55d31f(_0x42e760(0x1d8),{'className':_0x42e760(0x195),'children':_0x42e760(0xe9)}),_0x55d31f(_0x42e760(0x1d8),{'className':_0x42e760(0x14a),'children':_0x1a23f3['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),_0x55d31f(_0x177137,{'onClick':_0x389c5e,'disabled':!_0x334d8e||_0x514827,'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':_0x514827?_0xcbf5f2(_0x42e760(0x247),{'className':_0x42e760(0x219),'children':[_0x55d31f(_0x42e760(0x247),{'children':'⟲'}),_0x1a23f3['t'](_0x42e760(0x201))]}):_0xcbf5f2('span',{'className':_0x42e760(0x219),'children':[_0x55d31f(le,{}),_0x1a23f3['t'](_0x42e760(0x248))]})}),_0x55d31f(_0x42e760(0x1d8),{'className':_0x42e760(0x158),'children':_0xcbf5f2(_0x42e760(0x1d8),{'className':_0x42e760(0x15b),'children':[_0x55d31f(_0x42e760(0x247),{'className':_0x42e760(0x14d),'children':'💡'}),_0xcbf5f2(_0x42e760(0x1d8),{'className':_0x42e760(0x128),'children':[_0x55d31f('div',{'className':_0x42e760(0xf5),'children':'Configuration\x20Notes:'}),_0xcbf5f2('div',{'children':['•',_0x1a23f3['t'](_0x42e760(0x242))]}),_0xcbf5f2('div',{'children':['•',_0x1a23f3['t'](_0x42e760(0x174))]})]})]})})]})})]});}const y='mcp-ui.config',ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object['getOwnPropertyDescriptor'],tn=(_0x389304,_0x5e58cc,_0x294c19,_0x314006)=>{const _0x4318c8=_0x69509c;for(var _0x5576d9=_0x314006>0x1?void 0x0:_0x314006?rn(_0x5e58cc,_0x294c19):_0x5e58cc,_0x36a060=_0x389304[_0x4318c8(0x1ec)]-0x1,_0x46df0a;_0x36a060>=0x0;_0x36a060--)(_0x46df0a=_0x389304[_0x36a060])&&(_0x5576d9=_0x46df0a(_0x5576d9)||_0x5576d9);return _0x5576d9;},d=(_0x406617,_0x44196d)=>(_0x309a09,_0x8ac17c)=>_0x44196d(_0x309a09,_0x8ac17c,_0x406617);const U=_0x69509c(0x1dd),L='mcp-config-dialog';let I=class extends _0x129f6f{constructor(_0x49de5a,_0x1d89ba,_0x1545e3,_0x183d61,_0x266180,_0x100c18,_0x43b5dd,_0x35851a,_0x3db628,_0xb8c1a9){const _0x166539=_0x69509c;super(),x(this,_0x166539(0x14f),new _0x2567e3(!0x1)),x(this,'_mcpCoreConfig$',new _0x2567e3({})),x(this,'_config$',new _0x2567e3({})),x(this,_0x166539(0x220),new _0x2567e3('')),x(this,_0x166539(0x214),async _0x4e99a9=>{const _0x454880=_0x166539;var _0x32e730,_0x4311bd;this['_loading$']['next'](!0x0);try{const _0x13bcd6=await this[_0x454880(0x18c)](_0x4e99a9);if(!_0x13bcd6[_0x454880(0xfb)]){this[_0x454880(0x1e5)][_0x454880(0x225)]({'type':_0x48dc0b[_0x454880(0x179)],'content':_0x13bcd6[_0x454880(0x245)]||this[_0x454880(0x105)]['t'](_0x454880(0x1d3))});return;}_0x4e99a9['apiKey']?await this[_0x454880(0x1b9)][_0x454880(0x137)](U,_0x4e99a9[_0x454880(0x1c5)]['trim']()):await this[_0x454880(0x1b9)]['removeItem'](U),this[_0x454880(0x220)]['next'](((_0x32e730=_0x4e99a9[_0x454880(0x1c5)])==null?void 0x0:_0x32e730[_0x454880(0x146)]())||''),this['_mcpConnectionController'][_0x454880(0x1c8)]({'Authorization':_0x454880(0x10a)+((_0x4311bd=_0x4e99a9[_0x454880(0x1c5)])==null?void 0x0:_0x4311bd['trim']())}),this[_0x454880(0x1e5)][_0x454880(0x225)]({'type':_0x48dc0b[_0x454880(0x243)],'content':this[_0x454880(0x105)]['t'](_0x454880(0x23a))}),setTimeout(()=>{const _0x33ea8c=_0x454880;this['_dialogService'][_0x33ea8c(0x1d6)](L);},0x320);}catch(_0x196844){this[_0x454880(0x1e8)][_0x454880(0x1b6)](_0x454880(0x1f3),_0x196844),this[_0x454880(0x1e5)][_0x454880(0x225)]({'type':_0x48dc0b[_0x454880(0x179)],'content':this[_0x454880(0x105)]['t'](_0x454880(0x118))});}finally{this[_0x454880(0x14f)][_0x454880(0x21a)](!0x1);}}),(this[_0x166539(0x16a)]=_0x49de5a,this[_0x166539(0x1a1)]=_0x1d89ba,this[_0x166539(0x194)]=_0x1545e3,this[_0x166539(0x1b9)]=_0x183d61,this[_0x166539(0x139)]=_0x266180,this['_messageService']=_0x100c18,this[_0x166539(0x22d)]=_0x43b5dd,this[_0x166539(0x105)]=_0x35851a,this[_0x166539(0x1e8)]=_0x3db628,this['_mcpConnectionController']=_0xb8c1a9,this['_initConfigSync'](),this[_0x166539(0x17e)](),this[_0x166539(0x23d)]());}[_0x69509c(0x16e)](){const _0x78da22=_0x69509c,_0xb4b8a=this['_configService']['getConfig'](y);_0xb4b8a!=null&&_0xb4b8a[_0x78da22(0x19c)]&&this[_0x78da22(0x139)]['open']({'id':L,'title':{'title':this[_0x78da22(0x105)]['t']('mcpConfig.title')},'children':{'label':_0x78da22(0x12a)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x5a8897=_0x78da22;this[_0x5a8897(0x139)][_0x5a8897(0x1d6)](L);}});}[_0x69509c(0x165)](){const _0x235f82=_0x69509c;return this[_0x235f82(0x1cd)]['value'];}[_0x69509c(0x23d)](){const _0x673e0f=_0x69509c;this[_0x673e0f(0x101)](this['_componentManager'][_0x673e0f(0x1a3)](_0x673e0f(0x12a),this[_0x673e0f(0x1a8)]()));}[_0x69509c(0x1a8)](){const _0xf80210=_0x69509c;return _0x3557b0(()=>{const _0x46422e=_0x31b6;var _0x168e0c,_0x103e21,_0x317f89;return _0x55d31f(nn,{'config':this[_0x46422e(0x159)][_0x46422e(0x1d2)],'mcpCoreConfig':this[_0x46422e(0x1cd)][_0x46422e(0x1d2)],'currentApiKey$':this[_0x46422e(0x220)],'onSave':this['_handleConfigSave'],'loading':this[_0x46422e(0x14f)][_0x46422e(0x1d2)],'connectionStatus$':(_0x168e0c=this[_0x46422e(0x199)])==null?void 0x0:_0x168e0c['connectionStatus$'],'connectionError$':(_0x103e21=this[_0x46422e(0x199)])==null?void 0x0:_0x103e21[_0x46422e(0x178)],'currentSessionId$':(_0x317f89=this[_0x46422e(0x199)])==null?void 0x0:_0x317f89[_0x46422e(0x11f)]});},this[_0xf80210(0x16a)]);}[_0x69509c(0x153)](){const _0x208723=_0x69509c;this[_0x208723(0x101)](this['_configService'][_0x208723(0x1a5)](_0x48df26)[_0x208723(0x133)](_0x134b26=>{const _0x1c912c=_0x208723;this[_0x1c912c(0x1cd)][_0x1c912c(0x21a)](_0x134b26||{});}));const _0x150dab=this['_configService'][_0x208723(0x12d)](_0x48df26);this[_0x208723(0x1cd)][_0x208723(0x21a)](_0x150dab||{}),this[_0x208723(0x101)](this[_0x208723(0x194)][_0x208723(0x1a5)](y)[_0x208723(0x133)](_0x2b1bc5=>{const _0x2d8b4b=_0x208723;this[_0x2d8b4b(0x159)][_0x2d8b4b(0x21a)](_0x2b1bc5||{});}));const _0x183e2f=this['_configService'][_0x208723(0x12d)](y);this[_0x208723(0x159)]['next'](_0x183e2f||{});}async[_0x69509c(0x17e)](){const _0x3ca0d8=_0x69509c,_0x25b1e4=this['_configService'][_0x3ca0d8(0x12d)](y);if(!(_0x25b1e4!=null&&_0x25b1e4[_0x3ca0d8(0x19c)]))return;const _0x3ffc99=await this[_0x3ca0d8(0x1b9)][_0x3ca0d8(0x108)](U);_0x3ffc99&&(this[_0x3ca0d8(0x199)][_0x3ca0d8(0x1c8)]({'Authorization':'Bearer\x20'+_0x3ffc99}),this[_0x3ca0d8(0x220)]['next'](_0x3ffc99));}async['_validateConfig'](_0x4517b5){const _0x3dd74f=_0x69509c;if(!_0x4517b5[_0x3dd74f(0x1c5)]||_0x4517b5['apiKey']['trim']()[_0x3dd74f(0x1ec)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x3dd74f(0x105)]['t'](_0x3dd74f(0x1c1))};if(_0x4517b5[_0x3dd74f(0x1c5)][_0x3dd74f(0x146)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0x3dd74f(0x105)]['t'](_0x3dd74f(0xec))};try{const _0x1f5551=await this[_0x3dd74f(0x16a)][_0x3dd74f(0x117)](_0x25fab3)[_0x3dd74f(0x104)](_0x4517b5[_0x3dd74f(0x1c5)][_0x3dd74f(0x146)]());return _0x1f5551[_0x3dd74f(0xfb)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x1f5551['error']||this[_0x3dd74f(0x105)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x65e29c){return console[_0x3dd74f(0x171)](_0x3dd74f(0x13e),_0x65e29c),{'isValid':!0x0};}}};I=tn([d(0x0,_0x498260(_0x2824b0)),d(0x1,_0x4922e4),d(0x2,_0x2115ff),d(0x3,_0x1d32ad),d(0x4,_0x20a5e1),d(0x5,_0x859540),d(0x6,_0x498260(_0x98ea68)),d(0x7,_0x498260(_0x74fd5c)),d(0x8,_0x312a1b),d(0x9,_0x498260(_0x25fab3))],I);const V={'id':_0x69509c(0x1e3),'type':_0x28d3dc[_0x69509c(0x1a6)],'handler':async(_0x9a1dff,_0x34deac)=>(_0x9a1dff[_0x69509c(0x117)](I)[_0x69509c(0x16e)](),!0x0)};function pe(_0x3681f3,_0x267889){const _0x2976b3=_0x69509c;switch(_0x3681f3){case _0x145f07[_0x2976b3(0x19d)]:return _0x2976b3(0x138);case _0x145f07[_0x2976b3(0x1ab)]:return _0x2976b3(0xea);case _0x145f07[_0x2976b3(0x1b4)]:return'mcpStatus.connected';case _0x145f07[_0x2976b3(0x209)]:switch(_0x267889){case _0x4b334c[_0x2976b3(0x216)]:return _0x2976b3(0x12f);case _0x4b334c['SESSION_ID_OCCUPIED']:return _0x2976b3(0xfe);case _0x4b334c[_0x2976b3(0x121)]:return _0x2976b3(0x155);case _0x4b334c[_0x2976b3(0x223)]:return _0x2976b3(0x1c3);default:return _0x2976b3(0x18a);}case _0x145f07[_0x2976b3(0xeb)]:return _0x2976b3(0x10d);default:return _0x2976b3(0x205);}}function on(_0x512683,_0xf03f52,_0x333838,_0x4fe3b2=!0x0){const _0x13702f=_0x69509c,_0x1106e9=pe(_0x512683,_0xf03f52),_0x27037b=_0x333838['t'](_0x1106e9);return _0x4fe3b2?_0x512683===_0x145f07[_0x13702f(0x19d)]&&_0xf03f52===_0x4b334c[_0x13702f(0x216)]?_0x27037b+_0x13702f(0x12b)+_0x333838['t'](_0x13702f(0x20f)):_0x512683===_0x145f07[_0x13702f(0x1b4)]?''+_0x27037b:_0x512683===_0x145f07[_0x13702f(0x19d)]||_0x512683===_0x145f07[_0x13702f(0x209)]?_0x27037b+'\x20-\x20'+_0x333838['t']('mcpStatus.clickToConnect'):_0x27037b:_0x27037b;}function sn(_0x235480){const _0x45b157=_0x69509c;switch(_0x235480){case _0x145f07[_0x45b157(0x1b4)]:return'univer-text-green-500';case _0x145f07['CONNECTING']:case _0x145f07[_0x45b157(0xeb)]:return'univer-text-yellow-500';case _0x145f07[_0x45b157(0x209)]:case _0x145f07['DISCONNECTED']:return _0x45b157(0x1e9);default:return _0x45b157(0x141);}}function cn(_0x4c4eae){const _0x101ecc=_0x69509c,{status$:_0xdb4032,error$:_0x1e9d01,onConfigure:_0x2cf96a,showClickable:_0x26dd5f=!0x0}=_0x4c4eae,_0x49eda5=_0x346ffb(_0xdb4032,_0x145f07[_0x101ecc(0x19d)]),_0x3a1fdb=_0x346ffb(_0x1e9d01,_0x4b334c[_0x101ecc(0x1f4)]),_0x220e4f=_0x45df94(_0x74fd5c),_0x4849ef=_0x49eda5===_0x145f07[_0x101ecc(0x1b4)];_0x49eda5===_0x145f07[_0x101ecc(0x1ab)]||_0x145f07[_0x101ecc(0xeb)];const _0x30d1f6=_0x220e4f['t'](pe(_0x49eda5,_0x3a1fdb)),_0x1f201d=on(_0x49eda5,_0x3a1fdb,_0x220e4f,_0x26dd5f),_0xd57cc1=sn(_0x49eda5),_0x3279a8=_0x4849ef?_0x55d31f(ge,{}):_0x55d31f(de,{}),_0x15e6c5=_0x34973c(()=>{_0x26dd5f&&_0x2cf96a&&_0x2cf96a();},[_0x26dd5f,_0x2cf96a]);function _0x419142(){const _0x4f01aa=_0x101ecc;return _0xcbf5f2(_0x4f01aa(0x1d8),{'className':_0x1a08e9('univer-flex\x20univer-items-center',_0x26dd5f&&_0x2cf96a&&_0x4f01aa(0x148)),'role':_0x4f01aa(0xf9),'onClick':_0x26dd5f&&_0x2cf96a?_0x15e6c5:void 0x0,'children':[_0x55d31f(_0x4f01aa(0x1d8),{'className':_0x1a08e9(_0x4f01aa(0x124),_0xd57cc1),'children':_0x3279a8}),_0x55d31f(_0x4f01aa(0x1d8),{'className':_0x4f01aa(0x1fc),'children':_0x30d1f6})]});}return _0x55d31f(_0x19b6e8,{'title':_0x1f201d,'placement':_0x101ecc(0x15e),'children':_0x419142()});}var an=Object[_0x69509c(0xe8)],ln=(_0x4c8cde,_0x2e3b98,_0x27c948,_0xcdce54)=>{for(var _0x4e2ff8=_0xcdce54>0x1?void 0x0:_0xcdce54?an(_0x2e3b98,_0x27c948):_0x2e3b98,_0x255722=_0x4c8cde['length']-0x1,_0xce870a;_0x255722>=0x0;_0x255722--)(_0xce870a=_0x4c8cde[_0x255722])&&(_0x4e2ff8=_0xce870a(_0x4e2ff8)||_0x4e2ff8);return _0x4e2ff8;},M=(_0x27b011,_0x4d3c2b)=>(_0x3159ac,_0x5e0938)=>_0x4d3c2b(_0x3159ac,_0x5e0938,_0x27b011);let O=class extends _0x129f6f{constructor(_0x110664,_0x572186,_0x128585,_0x5e33be){const _0x596b9b=_0x69509c;super(),this[_0x596b9b(0x16a)]=_0x110664,this['_connectionController']=_0x572186,this['_uiPartsService']=_0x128585,this[_0x596b9b(0x194)]=_0x5e33be,this[_0x596b9b(0x221)](),this['_initStatusComponent']();}[_0x69509c(0x221)](){const _0x39b79e=_0x69509c,_0x2d1eb4=this['_configService'][_0x39b79e(0x12d)](y);_0x2d1eb4!=null&&_0x2d1eb4[_0x39b79e(0x19c)]&&(this['_connectionController'][_0x39b79e(0x129)]=!0x1);}[_0x69509c(0x1d7)](){const _0xe57275=_0x69509c,_0x57dc5c=this[_0xe57275(0x194)][_0xe57275(0x12d)](y);(_0x57dc5c==null?void 0x0:_0x57dc5c[_0xe57275(0x23c)])!==!0x1&&this['disposeWithMe'](this[_0xe57275(0x1a1)][_0xe57275(0x144)](_0x3b5cdc[_0xe57275(0x1bd)],()=>{const _0x43b3d5=_0xe57275;var _0x2b2f14;return _0x3557b0(un({'status$':this[_0x43b3d5(0x17f)][_0x43b3d5(0xfa)],'error$':this['_connectionController'][_0x43b3d5(0x178)],'onConfigure':()=>this[_0x43b3d5(0x162)](),'showClickable':(_0x2b2f14=_0x57dc5c==null?void 0x0:_0x57dc5c['showDeveloperTools'])!=null?_0x2b2f14:!0x1}),this[_0x43b3d5(0x16a)]);}));}[_0x69509c(0x162)](){const _0xb37504=_0x69509c;this['_injector'][_0xb37504(0x117)](I)['showConfigPanel']();}};O=ln([M(0x0,_0x498260(_0x2824b0)),M(0x1,_0x498260(_0x25fab3)),M(0x2,_0x4922e4),M(0x3,_0x2115ff)],O);function un(_0x37c401){const {status$:_0x54d8d3,error$:_0x10c86d,onConfigure:_0x17015c,showClickable:_0x2e6216}=_0x37c401;return function(){return _0x55d31f(cn,{'status$':_0x54d8d3,'error$':_0x10c86d,'onConfigure':_0x17015c,'showClickable':_0x2e6216});};}function vn(_0x18dddc){const _0x5e981b=_0x69509c;return{'id':V['id'],'type':_0xb75b57[_0x5e981b(0x1f2)],'icon':'MenuIcon','title':_0x5e981b(0x1a2),'tooltip':_0x5e981b(0x1a2)};}const dn={[_0x157488[_0x69509c(0x1be)]]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object[_0x69509c(0xe8)],pn=(_0x38f8e2,_0x11f2de,_0x2f7ecb,_0x40e2cd)=>{for(var _0x2e1928=_0x40e2cd>0x1?void 0x0:_0x40e2cd?gn(_0x11f2de,_0x2f7ecb):_0x11f2de,_0x14d0fb=_0x38f8e2['length']-0x1,_0x3c1a93;_0x14d0fb>=0x0;_0x14d0fb--)(_0x3c1a93=_0x38f8e2[_0x14d0fb])&&(_0x2e1928=_0x3c1a93(_0x2e1928)||_0x2e1928);return _0x2e1928;},re=(_0x321c1b,_0x243247)=>(_0x1e59a6,_0x53ca0d)=>_0x243247(_0x1e59a6,_0x53ca0d,_0x321c1b);let D=class extends _0x129f6f{constructor(_0x22642c,_0x34e7ad){const _0x52a166=_0x69509c;super(),this['_commandService']=_0x22642c,this['_menuManagerService']=_0x34e7ad,this[_0x52a166(0x23e)](),this[_0x52a166(0x1d4)]();}[_0x69509c(0x23e)](){[V]['forEach'](_0xd4e0d1=>{const _0x5339b1=_0x31b6;this[_0x5339b1(0x101)](this[_0x5339b1(0x226)]['registerCommand'](_0xd4e0d1));});}[_0x69509c(0x1d4)](){const _0x4404a3=_0x69509c;this['_menuManagerService'][_0x4404a3(0x16b)](dn);}};D=pn([re(0x0,_0x2f567e),re(0x1,_0x58faa0)],D);function _0x31b6(_0x17189b,_0x58417e){const _0x1819d6=_0x1819();return _0x31b6=function(_0x31b610,_0x1bdfff){_0x31b610=_0x31b610-0xe6;let _0x3346de=_0x1819d6[_0x31b610];return _0x3346de;},_0x31b6(_0x17189b,_0x58417e);}const Mn={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x69509c(0x14b),'failed':_0x69509c(0x17a),'retrying':_0x69509c(0x1bb),'unknown':_0x69509c(0x1b8),'unauthorized':_0x69509c(0x1c2),'sessionOccupied':_0x69509c(0x21e),'networkError':_0x69509c(0x1cf),'maxRetriesExceeded':_0x69509c(0x193),'clickToConnect':_0x69509c(0x110),'clickToConfigure':_0x69509c(0x1a0)},'mcpConfig':{'title':_0x69509c(0x109),'description':_0x69509c(0x1d9),'apiKey':_0x69509c(0xf8),'apiKeyPlaceholder':_0x69509c(0x13f),'apiKeyHint':_0x69509c(0x241),'enableAuth':_0x69509c(0x13a),'enableAuthHint':_0x69509c(0x1bf),'connectionInfo':_0x69509c(0x1ee),'mcpClientConfig':_0x69509c(0x1ee),'configInstructions':_0x69509c(0x122),'configStepTitle':_0x69509c(0x180),'configStep1':_0x69509c(0x164),'configStep2':_0x69509c(0x125),'configStep3':_0x69509c(0x1af),'sessionId':_0x69509c(0x234),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x69509c(0x1a9),'configParameters':_0x69509c(0x1b2),'maxRetries':_0x69509c(0x1ea),'save':_0x69509c(0xee),'saving':_0x69509c(0x1b7),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x69509c(0x1aa),'configSaved':_0x69509c(0x211),'configError':_0x69509c(0x13c),'apiApplyInfo':{'title':_0x69509c(0x1de),'description':_0x69509c(0x1fa),'univerAiLabel':_0x69509c(0x1df),'getStarted':_0x69509c(0x17b)},'validation':{'apiKeyRequired':_0x69509c(0x1ed),'apiKeyTooShort':_0x69509c(0x197),'invalidConfig':_0x69509c(0x1f7),'invalidApiKey':_0x69509c(0x1ce)},'connectionStatus':{'disconnected':_0x69509c(0x15f),'connecting':_0x69509c(0x19f),'connected':'Connected','failed':_0x69509c(0x208),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x69509c(0x115),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x69509c(0x151),'maxRetriesExceeded':_0x69509c(0xe6)}}},An={'mcpStatus':{'disconnected':_0x69509c(0xef),'connecting':_0x69509c(0x210),'connected':_0x69509c(0x185),'failed':_0x69509c(0x1fe),'retrying':'MCP\x20重连中...','unknown':'MCP\x20状态未知','unauthorized':_0x69509c(0x186),'sessionOccupied':_0x69509c(0x120),'networkError':_0x69509c(0x20a),'maxRetriesExceeded':_0x69509c(0x1f5),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x69509c(0x232)},'mcpConfig':{'title':_0x69509c(0xe7),'description':_0x69509c(0x1e7),'apiKey':_0x69509c(0x20d),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x69509c(0x1c4),'enableAuth':'启用身份验证','enableAuthHint':_0x69509c(0x207),'connectionInfo':_0x69509c(0x1e6),'mcpClientConfig':_0x69509c(0x1e6),'configInstructions':_0x69509c(0x1e4),'configStepTitle':'配置步骤:','configStep1':_0x69509c(0x227),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x69509c(0x1cc),'sessionId':_0x69509c(0x19b),'sessionIdDescription':_0x69509c(0xff),'authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':'配置参数:','maxRetries':'最大重试次数','save':_0x69509c(0x166),'saving':_0x69509c(0x19a),'note1':_0x69509c(0x170),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x69509c(0xf7),'configError':_0x69509c(0x119),'apiApplyInfo':{'title':_0x69509c(0x177),'description':_0x69509c(0x213),'univerAiLabel':_0x69509c(0x13d),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x69509c(0x215),'apiKeyTooShort':_0x69509c(0x18e),'invalidConfig':'配置无效','invalidApiKey':_0x69509c(0x24c)},'connectionStatus':{'disconnected':_0x69509c(0x1d1),'connecting':_0x69509c(0x112),'connected':_0x69509c(0x1f9),'failed':_0x69509c(0x10c),'retrying':_0x69509c(0xf1)},'connectionError':{'unauthorized':_0x69509c(0x16d),'sessionOccupied':_0x69509c(0x192),'networkError':_0x69509c(0xf4),'maxRetriesExceeded':_0x69509c(0x200)}}};var fn=Object[_0x69509c(0x1ae)],hn=Object[_0x69509c(0xe8)],Cn=(_0x54d11b,_0x33c172,_0x2ea874)=>_0x33c172 in _0x54d11b?fn(_0x54d11b,_0x33c172,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2ea874}):_0x54d11b[_0x33c172]=_0x2ea874,mn=(_0x55cef8,_0x31bd2b,_0x187fd7,_0x4fe62c)=>{const _0x214468=_0x69509c;for(var _0x500690=_0x4fe62c>0x1?void 0x0:_0x4fe62c?hn(_0x31bd2b,_0x187fd7):_0x31bd2b,_0x1766f6=_0x55cef8[_0x214468(0x1ec)]-0x1,_0x181873;_0x1766f6>=0x0;_0x1766f6--)(_0x181873=_0x55cef8[_0x1766f6])&&(_0x500690=_0x181873(_0x500690)||_0x500690);return _0x500690;},P=(_0x1d8857,_0x2c7f21)=>(_0x114aa6,_0x5163ca)=>_0x2c7f21(_0x114aa6,_0x5163ca,_0x1d8857),_n=(_0x546613,_0x5c32d3,_0x518f4f)=>Cn(_0x546613,_0x5c32d3+'',_0x518f4f);let j=class extends _0x1da912{constructor(_0x3a6cc7=ie,_0x5caf93,_0x470c8d,_0x1ba3b7,_0x1e216f,_0x66f5d6){const _0x2dc933=_0x69509c;super(),this[_0x2dc933(0x230)]=_0x3a6cc7,this[_0x2dc933(0x16a)]=_0x5caf93,this[_0x2dc933(0x194)]=_0x470c8d,this[_0x2dc933(0x1a1)]=_0x1ba3b7,this['_localStorageService']=_0x1e216f,this[_0x2dc933(0x105)]=_0x66f5d6;const {..._0xa3aa49}=_0x5c7826({},ie,this['_config']);this[_0x2dc933(0x194)][_0x2dc933(0x21f)](y,_0xa3aa49);}async[_0x69509c(0x20c)](){const _0x3c9b09=_0x69509c,_0x576233=[[O],[I],[D]];this['_injector'][_0x3c9b09(0x22a)](_0x519a30)||_0x576233[_0x3c9b09(0x184)]([_0x519a30,{'useClass':_0x2a611e}]),_0x576233[_0x3c9b09(0x132)](_0x4bc37b=>this[_0x3c9b09(0x16a)][_0x3c9b09(0x22c)](_0x4bc37b)),this[_0x3c9b09(0x16a)][_0x3c9b09(0x117)](O),this[_0x3c9b09(0x16a)][_0x3c9b09(0x117)](I),this[_0x3c9b09(0x16a)]['get'](D);}};_n(j,_0x69509c(0x1ac),_0x69509c(0x126)),j=mn([_0x1bb110(_0x97faec),P(0x1,_0x498260(_0x2824b0)),P(0x2,_0x2115ff),P(0x3,_0x4922e4),P(0x4,_0x1d32ad),P(0x5,_0x498260(_0x74fd5c))],j);export{nn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,cn as MCPStatusDisplay,D as MCPUIMenuController,V as OpenMCPConfigPanelCommand,j as UniverMCPUIPlugin,Mn as enUS,An as zhCN};
|
package/lib/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x35ab(_0x4806da,_0x10ac01){const _0x25df67=_0x25df();return _0x35ab=function(_0x35ab2b,_0x412623){_0x35ab2b=_0x35ab2b-0xf1;let _0x4e933d=_0x25df67[_0x35ab2b];return _0x4e933d;},_0x35ab(_0x4806da,_0x10ac01);}const _0x43e8d6=_0x35ab;(function(_0x210056,_0x8721d4){const _0x150721=_0x35ab,_0x1bd2c0=_0x210056();while(!![]){try{const _0x179528=-parseInt(_0x150721(0x11a))/0x1*(parseInt(_0x150721(0xfb))/0x2)+-parseInt(_0x150721(0xf4))/0x3+-parseInt(_0x150721(0x10f))/0x4+-parseInt(_0x150721(0xf2))/0x5+parseInt(_0x150721(0x10a))/0x6+-parseInt(_0x150721(0x11c))/0x7*(-parseInt(_0x150721(0x109))/0x8)+parseInt(_0x150721(0xfa))/0x9;if(_0x179528===_0x8721d4)break;else _0x1bd2c0['push'](_0x1bd2c0['shift']());}catch(_0x41e4b6){_0x1bd2c0['push'](_0x1bd2c0['shift']());}}}(_0x25df,0x33f3c));const e={'mcpStatus':{'disconnected':_0x43e8d6(0x100),'connecting':_0x43e8d6(0x115),'connected':_0x43e8d6(0xf3),'failed':'MCP\x20Connection\x20Failed','retrying':_0x43e8d6(0xf1),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x43e8d6(0x106),'sessionOccupied':_0x43e8d6(0x10e),'networkError':_0x43e8d6(0x101),'maxRetriesExceeded':_0x43e8d6(0x10c),'clickToConnect':_0x43e8d6(0xf6),'clickToConfigure':_0x43e8d6(0x108)},'mcpConfig':{'title':_0x43e8d6(0xf8),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x43e8d6(0x10b),'apiKeyPlaceholder':_0x43e8d6(0x104),'apiKeyHint':_0x43e8d6(0x103),'enableAuth':'Enable\x20Authentication','enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x43e8d6(0x119),'configInstructions':_0x43e8d6(0x114),'configStepTitle':_0x43e8d6(0xf9),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x43e8d6(0x116),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x43e8d6(0x11b),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x43e8d6(0xfc),'configParameters':_0x43e8d6(0x111),'maxRetries':_0x43e8d6(0x112),'save':'Save\x20Configuration','saving':_0x43e8d6(0xff),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x43e8d6(0x107),'apiApplyInfo':{'title':_0x43e8d6(0xf7),'description':_0x43e8d6(0xfe),'univerAiLabel':_0x43e8d6(0x10d),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x43e8d6(0x102),'apiKeyTooShort':_0x43e8d6(0x11d),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x43e8d6(0x118)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x43e8d6(0x105),'connected':_0x43e8d6(0x110),'failed':_0x43e8d6(0x117),'retrying':'Retrying...'},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x43e8d6(0x113),'networkError':_0x43e8d6(0xfd),'maxRetriesExceeded':_0x43e8d6(0xf5)}}},n=e;export{n as default};function _0x25df(){const _0x492029=['Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Connection\x20Failed','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Client\x20Configuration','10ghhBMH','Session\x20ID','17619SvBGuA','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Retrying...','608935rQsTOv','MCP\x20Connected','674523WAlsOQ','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Click\x20to\x20connect\x20MCP','What\x20is\x20API\x20Key?','MCP\x20Configuration','Configuration\x20Steps:','2422215huBWxm','21572BpshmE','API\x20key\x20with\x20Bearer\x20prefix.','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.','Saving...','MCP\x20Disconnected','MCP:\x20Network\x20Error','API\x20key\x20is\x20required','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Enter\x20your\x20API\x20key','Connecting...','MCP:\x20Unauthorized','Failed\x20to\x20save\x20configuration','Click\x20to\x20configure\x20MCP','696toAjbw','2468676aPyiVa','API\x20Key','MCP:\x20Max\x20Retries\x20Exceeded','Univer\x20AI\x20Console','MCP:\x20Session\x20ID\x20Occupied','929104adujRO','Connected','Configuration\x20Parameters:','Max\x20Retries','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Connecting...'];_0x25df=function(){return _0x492029;};return _0x25df();}
|
package/lib/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x4b520a=_0x3b61;(function(_0x2336b3,_0x4ae8e1){const _0x2dabb0=_0x3b61,_0x9df993=_0x2336b3();while(!![]){try{const _0x41f6d2=-parseInt(_0x2dabb0(0xa9))/0x1+-parseInt(_0x2dabb0(0xc2))/0x2*(parseInt(_0x2dabb0(0xcb))/0x3)+-parseInt(_0x2dabb0(0xcd))/0x4*(-parseInt(_0x2dabb0(0xc9))/0x5)+parseInt(_0x2dabb0(0xbf))/0x6*(-parseInt(_0x2dabb0(0xc4))/0x7)+-parseInt(_0x2dabb0(0xb4))/0x8+parseInt(_0x2dabb0(0xaa))/0x9+parseInt(_0x2dabb0(0xc0))/0xa;if(_0x41f6d2===_0x4ae8e1)break;else _0x9df993['push'](_0x9df993['shift']());}catch(_0x31c705){_0x9df993['push'](_0x9df993['shift']());}}}(_0x3cbe,0x6fcdb));const e={'mcpStatus':{'disconnected':_0x4b520a(0xa2),'connecting':'MCP\x20Connecting...','connected':_0x4b520a(0xb2),'failed':_0x4b520a(0xae),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x4b520a(0xc5),'networkError':_0x4b520a(0xa4),'maxRetriesExceeded':_0x4b520a(0xbb),'clickToConnect':_0x4b520a(0xbe),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x4b520a(0xa8),'description':_0x4b520a(0xbd),'apiKey':_0x4b520a(0xc8),'apiKeyPlaceholder':_0x4b520a(0xac),'apiKeyHint':_0x4b520a(0xb3),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x4b520a(0xc1),'connectionInfo':_0x4b520a(0xb9),'mcpClientConfig':_0x4b520a(0xb9),'configInstructions':_0x4b520a(0xb8),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x4b520a(0xb1),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x4b520a(0xa7),'sessionId':_0x4b520a(0xb7),'sessionIdDescription':_0x4b520a(0xa5),'authorizationDescription':_0x4b520a(0xca),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x4b520a(0xad),'save':_0x4b520a(0xb5),'saving':'Saving...','note1':_0x4b520a(0xaf),'note2':_0x4b520a(0xba),'configSaved':_0x4b520a(0xa6),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x4b520a(0xb6),'description':_0x4b520a(0xcc),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x4b520a(0xbc)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x4b520a(0xc7),'invalidConfig':_0x4b520a(0xab),'invalidApiKey':_0x4b520a(0xb0)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x4b520a(0xc3),'connected':'Connected','failed':_0x4b520a(0xa3),'retrying':'Retrying...'},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x4b520a(0xc6),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}};function _0x3b61(_0x1f1c63,_0x33463b){const _0x3cbe01=_0x3cbe();return _0x3b61=function(_0x3b6164,_0x5b802f){_0x3b6164=_0x3b6164-0xa2;let _0x21f6f8=_0x3cbe01[_0x3b6164];return _0x21f6f8;},_0x3b61(_0x1f1c63,_0x33463b);}function _0x3cbe(){const _0xa5ba2c=['What\x20is\x20API\x20Key?','Session\x20ID','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Client\x20Configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP:\x20Max\x20Retries\x20Exceeded','Get\x20your\x20API\x20key\x20in\x20seconds','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Click\x20to\x20connect\x20MCP','8058rQZELA','9209220cecNAL','Enable\x20authentication\x20for\x20secure\x20connections','218uIywYD','Connecting...','3661wpEhOe','MCP:\x20Session\x20ID\x20Occupied','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','API\x20Key','5COBlqe','API\x20key\x20with\x20Bearer\x20prefix.','2343TZgsDd','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','1704232XVKAas','MCP\x20Disconnected','Connection\x20Failed','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.','Configuration\x20saved\x20successfully','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Configuration','331059VgMBZp','5269491ueRMAI','Invalid\x20configuration','Enter\x20your\x20API\x20key','Max\x20Retries','MCP\x20Connection\x20Failed','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Connected','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','2847640bhmAjl','Save\x20Configuration'];_0x3cbe=function(){return _0xa5ba2c;};return _0x3cbe();}export{e as default};
|
package/lib/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x4ca4(){const _0xafa914=['API\x20Key','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Failed\x20to\x20save\x20configuration','1266109zkwwOe','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Configuration\x20Steps:','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Enable\x20Authentication','1002624ZnKlRB','Get\x20your\x20API\x20key\x20in\x20seconds','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP:\x20Max\x20Retries\x20Exceeded','Configuration\x20Parameters:','270486VBQVFy','305755YevXYQ','MCP\x20Connecting...','5421745lzveow','MCP:\x20Unauthorized','Disconnected','Invalid\x20configuration','MCP\x20Configuration','MCP\x20Client\x20Configuration','What\x20is\x20API\x20Key?','8dDnXwL','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','8PpGmzo','11121813ShzQhe','Click\x20to\x20connect\x20MCP','Connected','Copy\x20the\x20JSON\x20configuration\x20below','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Disconnected','Save\x20Configuration','MCP\x20Unknown\x20Status','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Saving...','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Configuration\x20saved\x20successfully','Connecting...','607233yRKDTC','Retrying...','Connection\x20Failed','Session\x20ID','MCP\x20Connected','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Connection\x20Failed','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP:\x20Session\x20ID\x20Occupied','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20Network\x20Error','Enter\x20your\x20API\x20key','API\x20key\x20is\x20required'];_0x4ca4=function(){return _0xafa914;};return _0x4ca4();}const _0x26df86=_0x36f9;function _0x36f9(_0x124976,_0x341892){const _0x4ca426=_0x4ca4();return _0x36f9=function(_0x36f905,_0x26270a){_0x36f905=_0x36f905-0x162;let _0x502104=_0x4ca426[_0x36f905];return _0x502104;},_0x36f9(_0x124976,_0x341892);}(function(_0x1ec122,_0x55ce2e){const _0x5ca767=_0x36f9,_0x13af2c=_0x1ec122();while(!![]){try{const _0x15ceea=-parseInt(_0x5ca767(0x173))/0x1+parseInt(_0x5ca767(0x17d))/0x2+parseInt(_0x5ca767(0x163))/0x3+parseInt(_0x5ca767(0x189))/0x4*(-parseInt(_0x5ca767(0x17e))/0x5)+-parseInt(_0x5ca767(0x178))/0x6+parseInt(_0x5ca767(0x180))/0x7*(parseInt(_0x5ca767(0x187))/0x8)+parseInt(_0x5ca767(0x18a))/0x9;if(_0x15ceea===_0x55ce2e)break;else _0x13af2c['push'](_0x13af2c['shift']());}catch(_0x1871d3){_0x13af2c['push'](_0x13af2c['shift']());}}}(_0x4ca4,0xc176f));const e={'mcpStatus':{'disconnected':_0x26df86(0x18f),'connecting':_0x26df86(0x17f),'connected':_0x26df86(0x167),'failed':_0x26df86(0x169),'retrying':'MCP\x20Retrying...','unknown':_0x26df86(0x191),'unauthorized':_0x26df86(0x181),'sessionOccupied':_0x26df86(0x16b),'networkError':_0x26df86(0x16d),'maxRetriesExceeded':_0x26df86(0x17b),'clickToConnect':_0x26df86(0x18b),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x26df86(0x184),'description':_0x26df86(0x16c),'apiKey':_0x26df86(0x170),'apiKeyPlaceholder':_0x26df86(0x16e),'apiKeyHint':_0x26df86(0x18e),'enableAuth':_0x26df86(0x177),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x26df86(0x185),'configInstructions':_0x26df86(0x174),'configStepTitle':_0x26df86(0x175),'configStep1':_0x26df86(0x18d),'configStep2':_0x26df86(0x17a),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x26df86(0x166),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x26df86(0x168),'configParameters':_0x26df86(0x17c),'maxRetries':'Max\x20Retries','save':_0x26df86(0x190),'saving':_0x26df86(0x193),'note1':_0x26df86(0x176),'note2':_0x26df86(0x194),'configSaved':_0x26df86(0x195),'configError':_0x26df86(0x172),'apiApplyInfo':{'title':_0x26df86(0x186),'description':_0x26df86(0x16a),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x26df86(0x179)},'validation':{'apiKeyRequired':_0x26df86(0x16f),'apiKeyTooShort':_0x26df86(0x171),'invalidConfig':_0x26df86(0x183),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x26df86(0x182),'connecting':_0x26df86(0x162),'connected':_0x26df86(0x18c),'failed':_0x26df86(0x165),'retrying':_0x26df86(0x164)},'connectionError':{'unauthorized':_0x26df86(0x192),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x26df86(0x188),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;export{n as default};
|
package/lib/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x33a9ac=_0x1b2b;function _0x1b2b(_0x505bdd,_0x17bee9){const _0x42d9d1=_0x42d9();return _0x1b2b=function(_0x1b2b96,_0x1db06a){_0x1b2b96=_0x1b2b96-0x1e3;let _0x2988d4=_0x42d9d1[_0x1b2b96];return _0x2988d4;},_0x1b2b(_0x505bdd,_0x17bee9);}function _0x42d9(){const _0x4ce491=['Enter\x20your\x20API\x20key','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20Max\x20Retries\x20Exceeded','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Configuration\x20saved\x20successfully','Click\x20to\x20configure\x20MCP','3exzauz','Connected','MCP:\x20Network\x20Error','Saving...','Connection\x20Failed','Copy\x20the\x20JSON\x20configuration\x20below','Connecting...','MCP\x20Retrying...','MCP\x20Connecting...','MCP\x20Unknown\x20Status','Session\x20ID','Univer\x20AI\x20Console','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Save\x20Configuration','1252msmUML','328698DTthJi','Invalid\x20configuration','API\x20key\x20is\x20required','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Click\x20to\x20connect\x20MCP','API\x20key\x20with\x20Bearer\x20prefix.','What\x20is\x20API\x20Key?','Configuration\x20Parameters:','MCP\x20Connected','Disconnected','6400CrVweK','MCP\x20Configuration','2507316tbrFKb','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Failed\x20to\x20save\x20configuration','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','12144PrSfFH','1251GzkyJG','MCP:\x20Session\x20ID\x20Occupied','MCP\x20Client\x20Configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','677698GFvXEe','384114mVTrZp','8722250fhhmmP','MCP:\x20Unauthorized','Enable\x20Authentication','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later'];_0x42d9=function(){return _0x4ce491;};return _0x42d9();}(function(_0x566ccf,_0x36d555){const _0x2d4b94=_0x1b2b,_0x3654f7=_0x566ccf();while(!![]){try{const _0x32f85=-parseInt(_0x2d4b94(0x1ed))/0x1+parseInt(_0x2d4b94(0x204))/0x2*(parseInt(_0x2d4b94(0x210))/0x3)+parseInt(_0x2d4b94(0x1ec))/0x4*(-parseInt(_0x2d4b94(0x1f7))/0x5)+-parseInt(_0x2d4b94(0x205))/0x6+-parseInt(_0x2d4b94(0x1f9))/0x7+parseInt(_0x2d4b94(0x1fd))/0x8*(parseInt(_0x2d4b94(0x1fe))/0x9)+parseInt(_0x2d4b94(0x206))/0xa;if(_0x32f85===_0x36d555)break;else _0x3654f7['push'](_0x3654f7['shift']());}catch(_0xbe952d){_0x3654f7['push'](_0x3654f7['shift']());}}}(_0x42d9,0x420c3));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x33a9ac(0x1e6),'connected':_0x33a9ac(0x1f5),'failed':'MCP\x20Connection\x20Failed','retrying':_0x33a9ac(0x1e5),'unknown':_0x33a9ac(0x1e7),'unauthorized':_0x33a9ac(0x207),'sessionOccupied':_0x33a9ac(0x1ff),'networkError':_0x33a9ac(0x212),'maxRetriesExceeded':_0x33a9ac(0x20c),'clickToConnect':_0x33a9ac(0x1f1),'clickToConfigure':_0x33a9ac(0x20f)},'mcpConfig':{'title':_0x33a9ac(0x1f8),'description':_0x33a9ac(0x20b),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x33a9ac(0x20a),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x33a9ac(0x208),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x33a9ac(0x200),'mcpClientConfig':_0x33a9ac(0x200),'configInstructions':_0x33a9ac(0x1fa),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x33a9ac(0x1e3),'configStep2':_0x33a9ac(0x1f0),'configStep3':_0x33a9ac(0x202),'sessionId':_0x33a9ac(0x1e8),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x33a9ac(0x1f2),'configParameters':_0x33a9ac(0x1f4),'maxRetries':'Max\x20Retries','save':_0x33a9ac(0x1eb),'saving':_0x33a9ac(0x213),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x33a9ac(0x201),'configSaved':_0x33a9ac(0x20e),'configError':_0x33a9ac(0x1fb),'apiApplyInfo':{'title':_0x33a9ac(0x1f3),'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':_0x33a9ac(0x1e9),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x33a9ac(0x1ef),'apiKeyTooShort':_0x33a9ac(0x203),'invalidConfig':_0x33a9ac(0x1ee),'invalidApiKey':_0x33a9ac(0x1fc)},'connectionStatus':{'disconnected':_0x33a9ac(0x1f6),'connecting':_0x33a9ac(0x1e4),'connected':_0x33a9ac(0x211),'failed':_0x33a9ac(0x214),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x33a9ac(0x20d),'sessionOccupied':_0x33a9ac(0x209),'networkError':_0x33a9ac(0x1ea),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;export{n as default};
|
package/lib/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x542b(_0x263058,_0x5ce05d){const _0x1bdf13=_0x1bdf();return _0x542b=function(_0x542bcd,_0x502639){_0x542bcd=_0x542bcd-0x1be;let _0x5c31fb=_0x1bdf13[_0x542bcd];return _0x5c31fb;},_0x542b(_0x263058,_0x5ce05d);}function _0x1bdf(){const _0xd34d32=['MCP:\x20Network\x20Error','100vjWzsa','Session\x20ID','Connecting...','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Retrying...','Copy\x20the\x20JSON\x20configuration\x20below','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Configuration','237040eYCtLP','Enter\x20your\x20API\x20key','Max\x20Retries','MCP:\x20Unauthorized','2994642eiaMSE','MCP\x20Client\x20Configuration','Get\x20your\x20API\x20key\x20in\x20seconds','What\x20is\x20API\x20Key?','Invalid\x20configuration','Enable\x20Authentication','14rHypdc','Configuration\x20Steps:','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Failed\x20to\x20save\x20configuration','MCP\x20Disconnected','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','1567044BXgdwi','625478NmDylF','Disconnected','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Click\x20to\x20connect\x20MCP','2988350hvXdmV','Retrying...','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Configuration\x20saved\x20successfully','Enable\x20authentication\x20for\x20secure\x20connections','Configuration\x20Parameters:','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','10148192YZyynf','MCP\x20Unknown\x20Status','API\x20key\x20is\x20required','Univer\x20AI\x20Console','API\x20Key','MCP\x20Connection\x20Failed','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','2632545kfBrxa','MCP:\x20Max\x20Retries\x20Exceeded','Click\x20to\x20configure\x20MCP'];_0x1bdf=function(){return _0xd34d32;};return _0x1bdf();}const _0x312113=_0x542b;(function(_0x3d0ea4,_0x4b0824){const _0x1b9913=_0x542b,_0x35eda2=_0x3d0ea4();while(!![]){try{const _0x4cadfe=parseInt(_0x1b9913(0x1c5))/0x1+-parseInt(_0x1b9913(0x1c9))/0x2+parseInt(_0x1b9913(0x1c4))/0x3+-parseInt(_0x1b9913(0x1e5))/0x4*(-parseInt(_0x1b9913(0x1dc))/0x5)+parseInt(_0x1b9913(0x1e9))/0x6*(-parseInt(_0x1b9913(0x1ef))/0x7)+parseInt(_0x1b9913(0x1d1))/0x8+-parseInt(_0x1b9913(0x1d8))/0x9;if(_0x4cadfe===_0x4b0824)break;else _0x35eda2['push'](_0x35eda2['shift']());}catch(_0x5e6918){_0x35eda2['push'](_0x35eda2['shift']());}}}(_0x1bdf,0xc7610));const e={'mcpStatus':{'disconnected':_0x312113(0x1c1),'connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':_0x312113(0x1d6),'retrying':_0x312113(0x1e1),'unknown':_0x312113(0x1d2),'unauthorized':_0x312113(0x1e8),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x312113(0x1db),'maxRetriesExceeded':_0x312113(0x1d9),'clickToConnect':_0x312113(0x1c8),'clickToConfigure':_0x312113(0x1da)},'mcpConfig':{'title':_0x312113(0x1e4),'description':_0x312113(0x1d7),'apiKey':_0x312113(0x1d5),'apiKeyPlaceholder':_0x312113(0x1e6),'apiKeyHint':_0x312113(0x1cf),'enableAuth':_0x312113(0x1ee),'enableAuthHint':_0x312113(0x1cd),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x312113(0x1ea),'configInstructions':_0x312113(0x1c2),'configStepTitle':_0x312113(0x1be),'configStep1':_0x312113(0x1e2),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x312113(0x1d0),'sessionId':_0x312113(0x1dd),'sessionIdDescription':_0x312113(0x1e3),'authorizationDescription':_0x312113(0x1e0),'configParameters':_0x312113(0x1ce),'maxRetries':_0x312113(0x1e7),'save':'Save\x20Configuration','saving':'Saving...','note1':_0x312113(0x1df),'note2':_0x312113(0x1c7),'configSaved':_0x312113(0x1cc),'configError':_0x312113(0x1c0),'apiApplyInfo':{'title':_0x312113(0x1ec),'description':_0x312113(0x1cb),'univerAiLabel':_0x312113(0x1d4),'getStarted':_0x312113(0x1eb)},'validation':{'apiKeyRequired':_0x312113(0x1d3),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x312113(0x1ed),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x312113(0x1c6),'connecting':_0x312113(0x1de),'connected':'Connected','failed':'Connection\x20Failed','retrying':_0x312113(0x1ca)},'connectionError':{'unauthorized':_0x312113(0x1bf),'sessionOccupied':_0x312113(0x1c3),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;export{n as default};
|
package/lib/locale/ja-JP.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x528795=_0x2e18;(function(_0x2bc49f,_0x58acdf){const _0x21af63=_0x2e18,_0x35581b=_0x2bc49f();while(!![]){try{const _0x10f5c4=-parseInt(_0x21af63(0x1ba))/0x1*(parseInt(_0x21af63(0x1b9))/0x2)+-parseInt(_0x21af63(0x1ac))/0x3*(parseInt(_0x21af63(0x1a1))/0x4)+parseInt(_0x21af63(0x1a2))/0x5*(-parseInt(_0x21af63(0x1c8))/0x6)+-parseInt(_0x21af63(0x1be))/0x7*(-parseInt(_0x21af63(0x1aa))/0x8)+-parseInt(_0x21af63(0x1c7))/0x9+-parseInt(_0x21af63(0x1cc))/0xa+parseInt(_0x21af63(0x1a8))/0xb;if(_0x10f5c4===_0x58acdf)break;else _0x35581b['push'](_0x35581b['shift']());}catch(_0x51cce8){_0x35581b['push'](_0x35581b['shift']());}}}(_0x58ea,0xdefb8));function _0x2e18(_0x138af6,_0x1eb94b){const _0x58ea1f=_0x58ea();return _0x2e18=function(_0x2e18f2,_0xa0a25){_0x2e18f2=_0x2e18f2-0x19e;let _0xbbf597=_0x58ea1f[_0x2e18f2];return _0xbbf597;},_0x2e18(_0x138af6,_0x1eb94b);}const e={'mcpStatus':{'disconnected':_0x528795(0x1a6),'connecting':_0x528795(0x1d1),'connected':_0x528795(0x1af),'failed':'MCP\x20接続失敗','retrying':_0x528795(0x1b1),'unknown':_0x528795(0x1bb),'unauthorized':_0x528795(0x1a0),'sessionOccupied':_0x528795(0x1b5),'networkError':_0x528795(0x1bc),'maxRetriesExceeded':'MCP:\x20最大再試行回数を超過','clickToConnect':'クリックしてMCPに接続','clickToConfigure':_0x528795(0x1a3)},'mcpConfig':{'title':_0x528795(0x1bf),'description':_0x528795(0x1c3),'apiKey':_0x528795(0x1c5),'apiKeyPlaceholder':_0x528795(0x1b7),'apiKeyHint':_0x528795(0x1c4),'enableAuth':'認証を有効にする','enableAuthHint':_0x528795(0x1cf),'connectionInfo':_0x528795(0x1a9),'mcpClientConfig':_0x528795(0x1a9),'configInstructions':_0x528795(0x1c9),'configStepTitle':_0x528795(0x1d0),'configStep1':_0x528795(0x1ad),'configStep2':_0x528795(0x1c0),'configStep3':_0x528795(0x19e),'sessionId':_0x528795(0x1a7),'sessionIdDescription':_0x528795(0x1ab),'authorizationDescription':_0x528795(0x1c1),'configParameters':_0x528795(0x1b8),'maxRetries':_0x528795(0x1bd),'save':'設定を保存','saving':'保存中...','note1':_0x528795(0x1cb),'note2':_0x528795(0x1cd),'configSaved':_0x528795(0x1c6),'configError':_0x528795(0x1b4),'apiApplyInfo':{'title':_0x528795(0x1a4),'description':'APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','univerAiLabel':_0x528795(0x1b2),'getStarted':_0x528795(0x1ce)},'validation':{'apiKeyRequired':_0x528795(0x1b6),'apiKeyTooShort':_0x528795(0x1a5),'invalidConfig':'無効な設定','invalidApiKey':_0x528795(0x19f)},'connectionStatus':{'disconnected':_0x528795(0x1ae),'connecting':'接続中...','connected':_0x528795(0x1c2),'failed':'接続失敗','retrying':'再試行中...'},'connectionError':{'unauthorized':_0x528795(0x1b0),'sessionOccupied':'セッションIDが現在使用中です。後でもう一度お試しください','networkError':_0x528795(0x1ca),'maxRetriesExceeded':_0x528795(0x1b3)}}};function _0x58ea(){const _0x115bf5=['Univer\x20AIコンソール','最大再試行回数を超過しました。後でもう一度お試しください','設定の保存に失敗しました','MCP:\x20セッションIDが使用中','APIキーは必須です','APIキーを入力してください','設定パラメータ:','204VjAKvC','14054mrwgkK','MCP\x20不明な状態','MCP:\x20ネットワークエラー','最大再試行回数','3264835bAwZcY','MCP設定','MCPクライアントの設定ファイルに設定を追加','Bearerプレフィックス付きのAPIキー。','接続済み','MCPを設定してAIでスプレッドシートを操作','APIキーはこのブラウザのローカルに保存されます','APIキー','設定が正常に保存されました','1154736EscMwf','250914fBGXIs','MCPクライアントの設定に次の設定を追加してください:','ネットワーク接続エラー。インターネット接続を確認してください','設定の変更は直ちに有効になります','11471200KlkXZW','APIキーはローカルストレージに安全に保存されます','数秒でAPIキーを取得','セキュアな接続のために認証を有効にする','設定手順:','MCP\x20接続中...','MCPクライアントを再起動して設定を適用','無効なAPIキーです。キーが正しいか確認してください','MCP:\x20認証されていません','1054180Akniax','5tKWtQc','クリックしてMCPを設定','APIキーとは?','APIキーは10文字以上である必要があります','MCP\x20未接続','セッションID','40972492DADcZC','MCPクライアント設定','8stNnpG','一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','6GAnmKb','以下のJSON設定をコピー','未接続','MCP\x20接続済み','認証に失敗しました。APIキーを確認してください','MCP\x20再試行中...'];_0x58ea=function(){return _0x115bf5;};return _0x58ea();}export{e as default};
|