@univerjs-pro/mcp-ui 0.19.0 → 0.21.0

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.
Files changed (53) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/cjs/locale/ca-ES.js +1 -1
  3. package/lib/cjs/locale/en-US.js +1 -1
  4. package/lib/cjs/locale/es-ES.js +1 -1
  5. package/lib/cjs/locale/fa-IR.js +1 -1
  6. package/lib/cjs/locale/fr-FR.js +1 -1
  7. package/lib/cjs/locale/ja-JP.js +1 -1
  8. package/lib/cjs/locale/ko-KR.js +1 -1
  9. package/lib/cjs/locale/ru-RU.js +1 -1
  10. package/lib/cjs/locale/sk-SK.js +1 -1
  11. package/lib/cjs/locale/vi-VN.js +1 -1
  12. package/lib/cjs/locale/zh-CN.js +1 -1
  13. package/lib/cjs/locale/zh-TW.js +1 -1
  14. package/lib/es/index.js +1 -1
  15. package/lib/es/locale/ca-ES.js +1 -1
  16. package/lib/es/locale/en-US.js +1 -1
  17. package/lib/es/locale/es-ES.js +1 -1
  18. package/lib/es/locale/fa-IR.js +1 -1
  19. package/lib/es/locale/fr-FR.js +1 -1
  20. package/lib/es/locale/ja-JP.js +1 -1
  21. package/lib/es/locale/ko-KR.js +1 -1
  22. package/lib/es/locale/ru-RU.js +1 -1
  23. package/lib/es/locale/sk-SK.js +1 -1
  24. package/lib/es/locale/vi-VN.js +1 -1
  25. package/lib/es/locale/zh-CN.js +1 -1
  26. package/lib/es/locale/zh-TW.js +1 -1
  27. package/lib/index.js +1 -1
  28. package/lib/locale/ca-ES.js +1 -1
  29. package/lib/locale/en-US.js +1 -1
  30. package/lib/locale/es-ES.js +1 -1
  31. package/lib/locale/fa-IR.js +1 -1
  32. package/lib/locale/fr-FR.js +1 -1
  33. package/lib/locale/ja-JP.js +1 -1
  34. package/lib/locale/ko-KR.js +1 -1
  35. package/lib/locale/ru-RU.js +1 -1
  36. package/lib/locale/sk-SK.js +1 -1
  37. package/lib/locale/vi-VN.js +1 -1
  38. package/lib/locale/zh-CN.js +1 -1
  39. package/lib/locale/zh-TW.js +1 -1
  40. package/lib/umd/index.js +1 -1
  41. package/lib/umd/locale/ca-ES.js +1 -1
  42. package/lib/umd/locale/en-US.js +1 -1
  43. package/lib/umd/locale/es-ES.js +1 -1
  44. package/lib/umd/locale/fa-IR.js +1 -1
  45. package/lib/umd/locale/fr-FR.js +1 -1
  46. package/lib/umd/locale/ja-JP.js +1 -1
  47. package/lib/umd/locale/ko-KR.js +1 -1
  48. package/lib/umd/locale/ru-RU.js +1 -1
  49. package/lib/umd/locale/sk-SK.js +1 -1
  50. package/lib/umd/locale/vi-VN.js +1 -1
  51. package/lib/umd/locale/zh-CN.js +1 -1
  52. package/lib/umd/locale/zh-TW.js +1 -1
  53. package/package.json +7 -7
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x3eccf6=_0x6f34;(function(_0x3d9143,_0x1c5cba){const _0x4a28cb=_0x6f34,_0x40c0f6=_0x3d9143();while(!![]){try{const _0x4c2f6d=parseInt(_0x4a28cb(0x290))/0x1+parseInt(_0x4a28cb(0x26d))/0x2+parseInt(_0x4a28cb(0x214))/0x3+parseInt(_0x4a28cb(0x2a5))/0x4*(-parseInt(_0x4a28cb(0x265))/0x5)+-parseInt(_0x4a28cb(0x1a9))/0x6+parseInt(_0x4a28cb(0x1cb))/0x7+-parseInt(_0x4a28cb(0x268))/0x8;if(_0x4c2f6d===_0x1c5cba)break;else _0x40c0f6['push'](_0x40c0f6['shift']());}catch(_0x3c9471){_0x40c0f6['push'](_0x40c0f6['shift']());}}}(_0x35dc,0x7d66e),Object[_0x3eccf6(0x190)](exports,Symbol[_0x3eccf6(0x1f4)],{'value':_0x3eccf6(0x1ab)}));let e=require(`@univerjs/core`),t=require(`@univerjs-pro/mcp`),n=require(`@univerjs/design`),r=require(`@univerjs/ui`),i=require(`rxjs`),a=require(`@univerjs/icons`),o=require(`react`),s=require(`react/jsx-runtime`),c=require(`@univerjs/network`);function _0x35dc(){const _0x4a017e=['重启您的\x20MCP\x20客户端以使配置生效','MCPConfigUIController','mcp.apiKey','1694526QoXklS','0.19.0','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','API\x20密钥无效,请检查密钥是否正确','mcpConfig.configParameters','WebSocketService','get','univer-space-y-5','Enable\x20Authentication','保存配置','什么是\x20API\x20密钥?','您的\x20API\x20密钥安全存储在本地存储中','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','zhCN','mcpConfig.connectionError.maxRetriesExceeded','CONNECTING','disposeWithMe','_componentManager','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','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','mcpConfig.configSaved','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','RETRYING','MCP\x20Client\x20Configuration','useCallback','univer-size-4','https://console.univer.ai','mcpConfig.configStepTitle','useObservable','What\x20is\x20API\x20Key?','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','iterator','univer-flex\x20univer-items-start\x20univer-gap-3','_initializeCommands','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','Configuration\x20saved\x20successfully','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','Configuration\x20Parameters:','univer-shrink-0\x20univer-text-blue-500','univer-flex\x20univer-items-center','univer-text-white','validateApiKey','div','FAILED','https://console.univer.plus','decorate','univer-flex\x20univer-flex-wrap\x20univer-gap-2','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','Plugin','<SESSION_ID>','mcpStatus.maxRetriesExceeded','未连接','mcpConfig.description','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','超出最大重试次数,请稍后再试','text','bottom','mcpConfig.sessionIdDescription','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','_initializeMenus','LocaleService','Enter\x20your\x20API\x20key','ILogService','has','onStarting','mcpStatus.connecting','_messageService','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','_config','_config$','Copy\x20the\x20JSON\x20configuration\x20below','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-space-y-4','mcpConfig.connectionStatus.connecting','Disconnected','showConfigPanel','MCP\x20配置','string','_createConfigPanelComponent','UniverMCPUIPlugin','5wYTOXT','_uiPartsService','univer.ai','13032bhcFLe','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','Error','mcpConfig.title','object','1346660PjNqDQ','value','connectionStatus$','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','mcpConfig.connectionStatus.retrying','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','univer-flex-1','Injector','BUTTON','next','SESSION_ID_OCCUPIED','isValid','COMMAND','IConfigService','_localeService','MCP\x20客户端配置','default','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','_connectionController','trim','mcpConfig.authorizationDescription','连接失败','MCPConfigPanel','univer-flex\x20univer-items-center\x20univer-gap-3','apiKey','mcpConfig.apiKeyHint','univer-font-medium','setConfig','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','Max\x20Retries','packageName','univer-bg-blue-500','配置保存失败','univer-text-red-500','最大重试次数','346364zLEBoT','register','connectInjector','mcpConfig.validation.invalidApiKey','span','univer.plus','NONE','mcpConfig.configError','mcpConfig.configStep2','Button','配置无效','Success','\x20-\x20','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','_commandService','mcpConfig.configInstructions','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','API\x20密钥不能为空','MCP\x20已断开','MCPConnectionUIController','点击连接\x20MCP','1986764alRxXO','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','mcpConfig.validation.invalidConfig','ILocalStorageService','jsx','function','OpenMCPConfigPanelCommand','subscribeConfigValue$','CloseIcon','配置更改将立即生效','getItem','univer-text-green-500','mcpConfig.connectionStatus.connected','univer-text-sm\x20univer-text-gray-500','IUIPartsService','mcpServerUrl','univer-min-w-0\x20univer-flex-1','Enable\x20authentication\x20for\x20secure\x20connections','HEADER_MENU','univer-text-gray-400','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','_logService','MCP\x20Connected','MCP:\x20未授权','Click\x20to\x20configure\x20MCP','button','mcpConfig.note2','mcpConfig.connectionError.unauthorized','univer-flex\x20univer-items-start\x20univer-gap-2','UNAUTHORIZED','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','mcpConfig.apiApplyInfo.getStarted','mcpConfig.connectionInfo','_handleConfigure','网络连接错误,请检查您的网络连接','MCP:\x20会话\x20ID\x20已被占用','univer-bg-red-500','mcpConfig.connectionError.sessionOccupied','_registerComponent','Tooltip','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','配置保存成功','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','enUS','API\x20key\x20with\x20Bearer\x20prefix.','Inject','MCP:\x20网络错误','复制以下\x20JSON\x20配置','mcp-ui.command.openConfigPanel','showStatus','_dialogService','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Configuration','MCP\x20已连接','setItem','version','连接中...','MenuIcon','已连接','univer-flex\x20univer-items-center\x20univer-gap-2','MCPConnectionError','mcpConfig.validation.apiKeyTooShort','errorMessage','MCP:\x20Network\x20Error','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','mergeMenu','<API_KEY>','UniverMCPPlugin','noopener\x20noreferrer','BuiltInUIPart','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','_initStatusComponent','MCP_PLUGIN_CONFIG_KEY','MCP:\x20Max\x20Retries\x20Exceeded','会话\x20ID\x20已被占用,请稍后再试','mcpConfig.connectionStatus.failed','启用身份验证以获得安全连接','OTHERS','defineProperty','mcpConfig.note1','NETWORK_ERROR','MCP\x20Unknown\x20Status','MCP\x20连接中...','mcpConfig.configStep3','merge','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','API\x20密钥长度至少需要\x2010\x20位','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','API\x20密钥','MCP\x20状态未知','mcpStatus.clickToConfigure','includes','MessageType','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','useDependency','ICommandService','Bearer\x20','Retrying...','配置参数:','clsx','label','mcpStatus.networkError','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','5411952BpUqPR','_configService','Module','mcpStatus.retrying','univer-space-y-2','Failed\x20to\x20save\x20configuration','MCPConnectionController','MAX_RETRIES_EXCEEDED','univer-text-xs\x20univer-text-gray-500','ISocketService','mcpConfig.save','API\x20Key','pre','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','带有\x20Bearer\x20前缀的\x20API\x20密钥。','MCP\x20Connecting...','show','connectionError$','subscribe','配置步骤:','HelpIcon','warn','__setCustomHeaders','请输入您的\x20API\x20密钥','Disposable','保存中...','_injector','CONNECTED','_validateConfig','_blank','Invalid\x20configuration','mcpStatus.sessionOccupied','univer-space-y-3','showDeveloperTools','2305954WJKXmH','将以下配置添加到您的\x20MCP\x20客户端设置中:','Authorization:','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','Session\x20ID','mcp-ui.config','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','mcpConfig.apiKeyPlaceholder','_loading$','mcpStatus.unknown','配置\x20MCP\x20使用\x20AI\x20操作电子表格','mcpConfig.apiKey','mcpConfig.configStep1','DependentOn','_initAutoConnect','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','_mcpCoreConfig$','mcpConfig.apiApplyInfo.title','MCP:\x20超出最大重试次数','MenuItemType','mcpConfig.saving','mcpStatus.failed','MCPConnectionStatus','_loadStoredApiKey','univer-text-yellow-500','CheckMarkIcon','_localStorageService','add','mcpConfig.connectionStatus.disconnected','BehaviorSubject','prototype','Connecting...','MCP\x20连接失败','univer-text-xs\x20univer-text-gray-600','symbol','OnLineIcon','mcpConfig.apiApplyInfo.description','http','close','mcpStatus.unauthorized','toStringTag','_mcpConnectionController','_menuManagerService','univer_session_id:','length','error','mcpStatus.disconnected','jsxs','getConfig','Configuration\x20Notes:','useState','univer-text-sm\x20univer-font-medium','重连中...','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','Input','API\x20key\x20is\x20required','_handleConfigSave','removeItem','mcpConfig.connectionError.networkError','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','点击配置\x20MCP','RibbonStartGroup','off','_initConfigSync','_apiKey$','enableAutoConnect','getOwnPropertyDescriptor','DISCONNECTED','权限验证失败,请检查您的\x20API\x20密钥'];_0x35dc=function(){return _0x4a017e;};return _0x35dc();}function l(_0x4655af){const _0x3eb18b=_0x3eccf6;var _0x5910e0,_0x78909e;let {mcpCoreConfig:_0x5d566d,onSave:_0x4d8ffe,loading:_0x474337=!0x1,config:_0x2637ce,connectionStatus$:_0x57500e,connectionError$:_0x1ca9bc,currentApiKey$:_0x3bd242,currentSessionId$:_0x4352c1}=_0x4655af,_0x4ac9aa=(0x0,r[_0x3eb18b(0x1a0)])(e[_0x3eb18b(0x251)]),_0x40aba6=(0x0,r[_0x3eb18b(0x231)])(_0x57500e,t[_0x3eb18b(0x1e2)][_0x3eb18b(0x20f)]),_0x2931ed=(0x0,r[_0x3eb18b(0x231)])(_0x1ca9bc,t[_0x3eb18b(0x17d)]['NONE']),_0x49689d=(0x0,r[_0x3eb18b(0x231)])(_0x4352c1,''),[_0x3bbe40,_0x5851b7]=(0x0,o[_0x3eb18b(0x1fe)])((0x0,r[_0x3eb18b(0x231)])(_0x3bd242,'')||''),_0x1ae6c1=_0x2637ce[_0x3eb18b(0x1ca)]&&_0x5d566d[_0x3eb18b(0x2b4)]&&(_0x5d566d[_0x3eb18b(0x2b4)][_0x3eb18b(0x19d)](_0x3eb18b(0x295))||_0x5d566d['mcpServerUrl']['includes'](_0x3eb18b(0x267))),_0x417fba=(_0x5910e0=_0x5d566d[_0x3eb18b(0x2b4)])==null?void 0x0:_0x5910e0[_0x3eb18b(0x19d)]('univer.plus'),_0x4e549f=(_0x78909e=_0x5d566d[_0x3eb18b(0x2b4)])==null?void 0x0:_0x78909e[_0x3eb18b(0x19d)]('univer.ai'),_0x417a93=_0x417fba?_0x3eb18b(0x241):_0x3eb18b(0x22f),_0x5efdab=_0x2637ce[_0x3eb18b(0x1ca)]&&(_0x417fba||_0x4e549f),[_0x2325e0,_0xa99540]=(0x0,o['useState'])(!_0x3bbe40['trim']()),_0x45b5c3=(_0x4306c5,_0x497a80)=>{const _0x377341=_0x3eb18b;if(_0x497a80===t['MCPConnectionError'][_0x377341(0x2c2)])return _0x377341(0x1da);switch(_0x4306c5){case t[_0x377341(0x1e2)][_0x377341(0x1c4)]:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case t[_0x377341(0x1e2)][_0x377341(0x224)]:case t[_0x377341(0x1e2)][_0x377341(0x22b)]:return _0x377341(0x24f);case t['MCPConnectionStatus'][_0x377341(0x240)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return _0x377341(0x270);}},_0x4f7c85=(_0x216b10,_0x26cdbe)=>{const _0x1f6bb5=_0x3eb18b;if(_0x26cdbe===t[_0x1f6bb5(0x17d)][_0x1f6bb5(0x2c2)])return _0x1f6bb5(0x2c9);switch(_0x216b10){case t[_0x1f6bb5(0x1e2)]['CONNECTED']:return'univer-bg-green-500';case t[_0x1f6bb5(0x1e2)][_0x1f6bb5(0x224)]:case t[_0x1f6bb5(0x1e2)][_0x1f6bb5(0x22b)]:return _0x1f6bb5(0x28c);case t[_0x1f6bb5(0x1e2)][_0x1f6bb5(0x240)]:return'univer-bg-red-500';default:return'univer-bg-gray-500';}},_0x1ccc2a=_0x3e4b4a=>{const _0x42ae1c=_0x3eb18b;switch(_0x3e4b4a){case t[_0x42ae1c(0x1e2)][_0x42ae1c(0x1c4)]:return _0x4ac9aa['t'](_0x42ae1c(0x2b1));case t['MCPConnectionStatus'][_0x42ae1c(0x224)]:return _0x4ac9aa['t'](_0x42ae1c(0x25e));case t[_0x42ae1c(0x1e2)][_0x42ae1c(0x240)]:return _0x4ac9aa['t'](_0x42ae1c(0x18d));case t[_0x42ae1c(0x1e2)][_0x42ae1c(0x22b)]:return _0x4ac9aa['t'](_0x42ae1c(0x271));default:return _0x4ac9aa['t'](_0x42ae1c(0x1e8));}},_0x52cf3c=_0x116997=>{const _0x21937e=_0x3eb18b;switch(_0x116997){case t[_0x21937e(0x17d)][_0x21937e(0x2c2)]:return _0x4ac9aa['t'](_0x21937e(0x2c0));case t[_0x21937e(0x17d)]['SESSION_ID_OCCUPIED']:return _0x4ac9aa['t'](_0x21937e(0x2ca));case t[_0x21937e(0x17d)][_0x21937e(0x192)]:return _0x4ac9aa['t'](_0x21937e(0x206));case t[_0x21937e(0x17d)]['MAX_RETRIES_EXCEEDED']:return _0x4ac9aa['t'](_0x21937e(0x223));default:return'';}},_0x4f8778=(0x0,o[_0x3eb18b(0x22d)])(()=>{const _0x363c12=_0x3eb18b;_0x4d8ffe({..._0x5d566d,'apiKey':_0x3bbe40[_0x363c12(0x280)](),'enableAuth':!0x0});},[_0x5d566d,_0x3bbe40,!0x0,_0x4d8ffe]),_0x58569b=_0x3bbe40['trim']()[_0x3eb18b(0x1f8)]>0x0;return(0x0,s[_0x3eb18b(0x1fb)])(_0x3eb18b(0x23f),{'className':_0x3eb18b(0x269),'children':[(0x0,s[_0x3eb18b(0x2a9)])(_0x3eb18b(0x23f),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':(0x0,s[_0x3eb18b(0x1fb)])(_0x3eb18b(0x23f),{'className':_0x3eb18b(0x284),'children':[(0x0,s[_0x3eb18b(0x2a9)])('div',{'className':_0x3eb18b(0x197),'children':(0x0,s[_0x3eb18b(0x2a9)])(_0x3eb18b(0x294),{'className':_0x3eb18b(0x23d),'children':'⚙'})}),(0x0,s[_0x3eb18b(0x2a9)])(_0x3eb18b(0x23f),{'children':(0x0,s[_0x3eb18b(0x2a9)])('p',{'className':_0x3eb18b(0x2b2),'children':_0x4ac9aa['t'](_0x3eb18b(0x249))})})]})}),(0x0,s[_0x3eb18b(0x1fb)])(_0x3eb18b(0x23f),{'className':_0x3eb18b(0x29d),'children':[(0x0,s[_0x3eb18b(0x2a9)])('div',{'className':(0x0,n[_0x3eb18b(0x1a5)])(_0x3eb18b(0x27e),_0x45b5c3(_0x40aba6,_0x2931ed)),'children':(0x0,s['jsxs'])(_0x3eb18b(0x23f),{'className':_0x3eb18b(0x17c),'children':[(0x0,s[_0x3eb18b(0x2a9)])(_0x3eb18b(0x23f),{'className':(0x0,n[_0x3eb18b(0x1a5)])('univer-size-2\x20univer-rounded-full',_0x4f7c85(_0x40aba6,_0x2931ed))}),(0x0,s[_0x3eb18b(0x2a9)])(_0x3eb18b(0x294),{'className':_0x3eb18b(0x1ff),'children':_0x1ccc2a(_0x40aba6)})]})}),_0x2931ed!==t['MCPConnectionError'][_0x3eb18b(0x296)]&&(_0x40aba6===t['MCPConnectionStatus'][_0x3eb18b(0x240)]||_0x2931ed===t[_0x3eb18b(0x17d)][_0x3eb18b(0x2c2)])&&(0x0,s[_0x3eb18b(0x2a9)])(_0x3eb18b(0x23f),{'className':_0x3eb18b(0x182),'children':(0x0,s['jsxs'])(_0x3eb18b(0x23f),{'className':_0x3eb18b(0x2c1),'children':[(0x0,s['jsx'])(_0x3eb18b(0x294),{'className':'univer-shrink-0\x20univer-text-red-500','children':'⚠️'}),(0x0,s[_0x3eb18b(0x2a9)])('p',{'className':_0x3eb18b(0x237),'children':_0x52cf3c(_0x2931ed)})]})})]}),(0x0,s[_0x3eb18b(0x2a9)])('div',{'className':_0x3eb18b(0x1d1),'children':(0x0,s[_0x3eb18b(0x1fb)])(_0x3eb18b(0x23f),{'className':_0x3eb18b(0x21c),'children':[(0x0,s[_0x3eb18b(0x1fb)])(_0x3eb18b(0x23f),{'className':_0x3eb18b(0x1ad),'children':[(0x0,s[_0x3eb18b(0x1fb)])(_0x3eb18b(0x1a6),{'className':_0x3eb18b(0x207),'children':[(0x0,s[_0x3eb18b(0x2a9)])(_0x3eb18b(0x294),{'children':'🔑'}),'\x20',_0x4ac9aa['t'](_0x3eb18b(0x1d6)),(0x0,s['jsx'])(_0x3eb18b(0x294),{'className':'univer-text-red-500','children':'*'}),_0x1ae6c1&&(0x0,s['jsx'])('a',{'className':_0x3eb18b(0x25c),'title':_0x4ac9aa['t'](_0x3eb18b(0x1dd)),'role':_0x3eb18b(0x2be),'onClick':()=>_0xa99540(!0x0),'children':(0x0,s[_0x3eb18b(0x2a9)])(a[_0x3eb18b(0x1bd)],{})})]}),(0x0,s['jsx'])(n[_0x3eb18b(0x202)],{'type':_0x3eb18b(0x24c),'placeholder':_0x4ac9aa['t'](_0x3eb18b(0x1d2)),'value':_0x3bbe40,'disabled':_0x474337,'autoComplete':_0x3eb18b(0x20a),'onChange':_0x5851b7}),(0x0,s[_0x3eb18b(0x2a9)])('p',{'className':_0x3eb18b(0x1b1),'children':_0x4ac9aa['t'](_0x3eb18b(0x286))})]}),_0x1ae6c1&&_0x2325e0&&(0x0,s['jsxs'])('div',{'className':_0x3eb18b(0x227),'children':[(0x0,s[_0x3eb18b(0x2a9)])('a',{'className':_0x3eb18b(0x188),'role':'button','onClick':()=>_0xa99540(!0x1),'children':(0x0,s[_0x3eb18b(0x2a9)])(a[_0x3eb18b(0x2ad)],{'className':_0x3eb18b(0x22e)})}),(0x0,s[_0x3eb18b(0x1fb)])(_0x3eb18b(0x23f),{'className':_0x3eb18b(0x244),'children':[(0x0,s[_0x3eb18b(0x2a9)])(_0x3eb18b(0x23f),{'className':'univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':(0x0,s[_0x3eb18b(0x2a9)])(_0x3eb18b(0x294),{'className':'univer-text-blue-600','children':'🚀'})}),(0x0,s['jsxs'])(_0x3eb18b(0x23f),{'className':_0x3eb18b(0x273),'children':[(0x0,s[_0x3eb18b(0x2a9)])('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x4ac9aa['t'](_0x3eb18b(0x1dd))}),(0x0,s[_0x3eb18b(0x2a9)])('p',{'className':_0x3eb18b(0x22a),'children':_0x4ac9aa['t'](_0x3eb18b(0x1f0))}),(0x0,s[_0x3eb18b(0x2a9)])(_0x3eb18b(0x23f),{'className':_0x3eb18b(0x243),'children':_0x5efdab&&(0x0,s[_0x3eb18b(0x1fb)])('a',{'className':_0x3eb18b(0x289),'href':_0x417a93,'target':_0x3eb18b(0x1c6),'rel':_0x3eb18b(0x186),'children':[(0x0,s[_0x3eb18b(0x2a9)])('span',{'children':'🤖'}),_0x4ac9aa['t']('mcpConfig.apiApplyInfo.univerAiLabel'),(0x0,s[_0x3eb18b(0x2a9)])(_0x3eb18b(0x294),{'className':_0x3eb18b(0x2b8),'children':'↗'})]})}),(0x0,s[_0x3eb18b(0x1fb)])('div',{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x4ac9aa['t'](_0x3eb18b(0x2c4))]})]})]})]}),_0x2637ce[_0x3eb18b(0x1ca)]&&(0x0,s['jsxs'])('div',{'className':_0x3eb18b(0x221),'children':[(0x0,s['jsxs'])('h4',{'className':_0x3eb18b(0x1a8),'children':[(0x0,s['jsx'])(_0x3eb18b(0x294),{'children':'🔗'}),'\x20',_0x4ac9aa['t'](_0x3eb18b(0x2c5))]}),(0x0,s[_0x3eb18b(0x1fb)])('div',{'className':_0x3eb18b(0x25d),'children':[(0x0,s[_0x3eb18b(0x1fb)])(_0x3eb18b(0x23f),{'className':_0x3eb18b(0x1c9),'children':[(0x0,s[_0x3eb18b(0x2a9)])('p',{'className':_0x3eb18b(0x1ed),'children':_0x4ac9aa['t'](_0x3eb18b(0x29f))}),(0x0,s['jsxs'])(_0x3eb18b(0x23f),{'className':_0x3eb18b(0x1ad),'children':[(0x0,s['jsx'])(_0x3eb18b(0x23f),{'className':_0x3eb18b(0x1ce),'children':_0x4ac9aa['t'](_0x3eb18b(0x230))}),(0x0,s[_0x3eb18b(0x1fb)])(_0x3eb18b(0x23f),{'className':_0x3eb18b(0x201),'children':[(0x0,s[_0x3eb18b(0x1fb)])(_0x3eb18b(0x23f),{'className':_0x3eb18b(0x17c),'children':[(0x0,s[_0x3eb18b(0x2a9)])(_0x3eb18b(0x294),{'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':'1'}),_0x4ac9aa['t'](_0x3eb18b(0x1d7))]}),(0x0,s[_0x3eb18b(0x1fb)])(_0x3eb18b(0x23f),{'className':_0x3eb18b(0x17c),'children':[(0x0,s['jsx'])(_0x3eb18b(0x294),{'className':_0x3eb18b(0x2b9),'children':'2'}),_0x4ac9aa['t'](_0x3eb18b(0x298))]}),(0x0,s[_0x3eb18b(0x1fb)])('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[(0x0,s[_0x3eb18b(0x2a9)])(_0x3eb18b(0x294),{'className':_0x3eb18b(0x2b9),'children':'3'}),_0x4ac9aa['t'](_0x3eb18b(0x195))]})]})]})]}),(0x0,s[_0x3eb18b(0x1fb)])(_0x3eb18b(0x23f),{'className':'univer-space-y-2','children':[(0x0,s[_0x3eb18b(0x2a9)])('div',{'className':_0x3eb18b(0x1ce),'children':_0x3eb18b(0x175)}),(0x0,s[_0x3eb18b(0x2a9)])(_0x3eb18b(0x23f),{'className':_0x3eb18b(0x1b6),'children':(0x0,s[_0x3eb18b(0x2a9)])(_0x3eb18b(0x1b5),{'className':_0x3eb18b(0x216),'children':JSON['stringify']({'mcpServers':{'univer':{'url':'https://mcp.univer.ai/mcp/?univer_session_id='+(_0x49689d||_0x3eb18b(0x246)),'type':_0x3eb18b(0x1f1),'headers':{'Authorization':_0x3eb18b(0x1a2)+(_0x3bbe40||_0x3eb18b(0x184))}}}},null,0x2)})})]}),(0x0,s[_0x3eb18b(0x1fb)])(_0x3eb18b(0x23f),{'className':_0x3eb18b(0x1c9),'children':[(0x0,s['jsx'])('div',{'className':_0x3eb18b(0x1ce),'children':_0x4ac9aa['t'](_0x3eb18b(0x219))}),(0x0,s['jsxs'])('div',{'className':'univer-space-y-2','children':[(0x0,s[_0x3eb18b(0x1fb)])('div',{'className':_0x3eb18b(0x235),'children':[(0x0,s['jsx'])(_0x3eb18b(0x23f),{'className':_0x3eb18b(0x239)}),(0x0,s['jsxs'])(_0x3eb18b(0x23f),{'className':_0x3eb18b(0x2b5),'children':[(0x0,s['jsx'])('div',{'className':_0x3eb18b(0x2a0),'children':_0x3eb18b(0x1f7)}),(0x0,s[_0x3eb18b(0x2a9)])(_0x3eb18b(0x23f),{'className':_0x3eb18b(0x1b1),'children':_0x4ac9aa['t'](_0x3eb18b(0x24e))})]})]}),(0x0,s[_0x3eb18b(0x1fb)])('div',{'className':_0x3eb18b(0x235),'children':[(0x0,s['jsx'])('div',{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),(0x0,s[_0x3eb18b(0x1fb)])(_0x3eb18b(0x23f),{'className':_0x3eb18b(0x2b5),'children':[(0x0,s['jsx'])('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x3eb18b(0x1cd)}),(0x0,s[_0x3eb18b(0x2a9)])(_0x3eb18b(0x23f),{'className':_0x3eb18b(0x1b1),'children':_0x4ac9aa['t'](_0x3eb18b(0x281))})]})]})]})]})]})]}),(0x0,s[_0x3eb18b(0x2a9)])(n[_0x3eb18b(0x299)],{'onClick':_0x4f8778,'disabled':!_0x58569b||_0x474337,'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':_0x474337?(0x0,s['jsxs'])('span',{'className':_0x3eb18b(0x17c),'children':[(0x0,s[_0x3eb18b(0x2a9)])(_0x3eb18b(0x294),{'children':'⟲'}),_0x4ac9aa['t'](_0x3eb18b(0x1e0))]}):(0x0,s[_0x3eb18b(0x1fb)])(_0x3eb18b(0x294),{'className':_0x3eb18b(0x17c),'children':[(0x0,s[_0x3eb18b(0x2a9)])(a[_0x3eb18b(0x1e5)],{}),_0x4ac9aa['t'](_0x3eb18b(0x1b3))]})}),(0x0,s[_0x3eb18b(0x2a9)])('div',{'className':_0x3eb18b(0x181),'children':(0x0,s['jsxs'])(_0x3eb18b(0x23f),{'className':'univer-flex\x20univer-gap-3','children':[(0x0,s['jsx'])(_0x3eb18b(0x294),{'className':_0x3eb18b(0x23b),'children':'💡'}),(0x0,s[_0x3eb18b(0x1fb)])(_0x3eb18b(0x23f),{'className':_0x3eb18b(0x16b),'children':[(0x0,s['jsx'])(_0x3eb18b(0x23f),{'className':_0x3eb18b(0x287),'children':_0x3eb18b(0x1fd)}),(0x0,s[_0x3eb18b(0x1fb)])(_0x3eb18b(0x23f),{'children':['•',_0x4ac9aa['t'](_0x3eb18b(0x191))]}),(0x0,s[_0x3eb18b(0x1fb)])(_0x3eb18b(0x23f),{'children':['•',_0x4ac9aa['t'](_0x3eb18b(0x2bf))]})]})]})})]})})]});}const u=_0x3eccf6(0x1d0);Symbol(u);const d={'showDeveloperTools':!0x1,'showStatus':!0x0};function f(_0x43d154){'@babel/helpers - typeof';const _0x48f2d5=_0x3eccf6;return f=typeof Symbol=='function'&&typeof Symbol[_0x48f2d5(0x234)]==_0x48f2d5(0x1ee)?function(_0x52156d){return typeof _0x52156d;}:function(_0x24dae2){const _0x5b3589=_0x48f2d5;return _0x24dae2&&typeof Symbol==_0x5b3589(0x2aa)&&_0x24dae2['constructor']===Symbol&&_0x24dae2!==Symbol[_0x5b3589(0x1ea)]?_0x5b3589(0x1ee):typeof _0x24dae2;},f(_0x43d154);}function p(_0x194ad3,_0x59f25f){const _0x5b4159=_0x3eccf6;if(f(_0x194ad3)!='object'||!_0x194ad3)return _0x194ad3;var _0x3a9307=_0x194ad3[Symbol['toPrimitive']];if(_0x3a9307!==void 0x0){var _0x24ecb9=_0x3a9307['call'](_0x194ad3,_0x59f25f||_0x5b4159(0x27d));if(f(_0x24ecb9)!=_0x5b4159(0x26c))return _0x24ecb9;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x59f25f==='string'?String:Number)(_0x194ad3);}function m(_0x450a4e){const _0x4faf5d=_0x3eccf6;var _0x2919f5=p(_0x450a4e,_0x4faf5d(0x262));return f(_0x2919f5)==_0x4faf5d(0x1ee)?_0x2919f5:_0x2919f5+'';}function h(_0x32702a,_0x2d1c47,_0x27a222){const _0x1538a0=_0x3eccf6;return(_0x2d1c47=m(_0x2d1c47))in _0x32702a?Object[_0x1538a0(0x190)](_0x32702a,_0x2d1c47,{'value':_0x27a222,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x32702a[_0x2d1c47]=_0x27a222,_0x32702a;}function g(_0x530001,_0x38a8a4){return function(_0xe672a8,_0x1e1734){_0x38a8a4(_0xe672a8,_0x1e1734,_0x530001);};}function _(_0x370b5a,_0x722ae,_0xf09c4,_0x4e81b9){const _0x38b2=_0x3eccf6;var _0xcb07f3=arguments[_0x38b2(0x1f8)],_0x5c0bfd=_0xcb07f3<0x3?_0x722ae:_0x4e81b9===null?_0x4e81b9=Object[_0x38b2(0x20e)](_0x722ae,_0xf09c4):_0x4e81b9,_0x4b50de;if(typeof Reflect==_0x38b2(0x26c)&&typeof Reflect[_0x38b2(0x242)]=='function')_0x5c0bfd=Reflect[_0x38b2(0x242)](_0x370b5a,_0x722ae,_0xf09c4,_0x4e81b9);else{for(var _0x5010e4=_0x370b5a[_0x38b2(0x1f8)]-0x1;_0x5010e4>=0x0;_0x5010e4--)(_0x4b50de=_0x370b5a[_0x5010e4])&&(_0x5c0bfd=(_0xcb07f3<0x3?_0x4b50de(_0x5c0bfd):_0xcb07f3>0x3?_0x4b50de(_0x722ae,_0xf09c4,_0x5c0bfd):_0x4b50de(_0x722ae,_0xf09c4))||_0x5c0bfd);}return _0xcb07f3>0x3&&_0x5c0bfd&&Object[_0x38b2(0x190)](_0x722ae,_0xf09c4,_0x5c0bfd),_0x5c0bfd;}const v=_0x3eccf6(0x213),y='mcp-config-dialog';function _0x6f34(_0x3a34fb,_0x197001){_0x3a34fb=_0x3a34fb-0x168;const _0x35dc34=_0x35dc();let _0x6f34c1=_0x35dc34[_0x3a34fb];return _0x6f34c1;}let b=class extends e[_0x3eccf6(0x1c1)]{constructor(_0x17e0fe,_0x5148c1,_0xda9540,_0xc549c5,_0x5345f4,_0x9bb7f8,_0x5b4b9b,_0x417763,_0x5d598c,_0x44b8f5){const _0x49145e=_0x3eccf6;super(),this['_injector']=_0x17e0fe,this[_0x49145e(0x266)]=_0x5148c1,this[_0x49145e(0x1aa)]=_0xda9540,this[_0x49145e(0x1e6)]=_0xc549c5,this['_dialogService']=_0x5345f4,this[_0x49145e(0x257)]=_0x9bb7f8,this['_componentManager']=_0x5b4b9b,this[_0x49145e(0x27b)]=_0x417763,this[_0x49145e(0x2ba)]=_0x5d598c,this[_0x49145e(0x1f5)]=_0x44b8f5,h(this,'_loading$',new i[(_0x49145e(0x1e9))](!0x1)),h(this,_0x49145e(0x1dc),new i[(_0x49145e(0x1e9))]({})),h(this,'_config$',new i[(_0x49145e(0x1e9))]({})),h(this,_0x49145e(0x20c),new i['BehaviorSubject']('')),h(this,'_handleConfigSave',async _0x13c5f3=>{const _0x1a66e9=_0x49145e;this['_loading$'][_0x1a66e9(0x276)](!0x0);try{var _0x59d045,_0x3e84d7;let _0x55d82c=await this['_validateConfig'](_0x13c5f3);if(!_0x55d82c[_0x1a66e9(0x278)]){this[_0x1a66e9(0x257)]['show']({'type':n[_0x1a66e9(0x19e)][_0x1a66e9(0x26a)],'content':_0x55d82c[_0x1a66e9(0x17f)]||this[_0x1a66e9(0x27b)]['t'](_0x1a66e9(0x2a7))});return;}_0x13c5f3[_0x1a66e9(0x285)]?await this[_0x1a66e9(0x1e6)][_0x1a66e9(0x177)](v,_0x13c5f3['apiKey'][_0x1a66e9(0x280)]()):await this[_0x1a66e9(0x1e6)][_0x1a66e9(0x205)](v),this[_0x1a66e9(0x20c)]['next'](((_0x59d045=_0x13c5f3['apiKey'])==null?void 0x0:_0x59d045[_0x1a66e9(0x280)]())||''),this['_mcpConnectionController']['__setCustomHeaders']({'Authorization':'Bearer\x20'+((_0x3e84d7=_0x13c5f3[_0x1a66e9(0x285)])==null?void 0x0:_0x3e84d7[_0x1a66e9(0x280)]())}),this[_0x1a66e9(0x257)]['show']({'type':n[_0x1a66e9(0x19e)][_0x1a66e9(0x29b)],'content':this[_0x1a66e9(0x27b)]['t'](_0x1a66e9(0x229))}),setTimeout(()=>{const _0x418f19=_0x1a66e9;this[_0x418f19(0x173)][_0x418f19(0x1f2)](y);},0x320);}catch(_0x20e02c){this[_0x1a66e9(0x2ba)][_0x1a66e9(0x1f9)](_0x1a66e9(0x2a6),_0x20e02c),this[_0x1a66e9(0x257)][_0x1a66e9(0x1b9)]({'type':n[_0x1a66e9(0x19e)][_0x1a66e9(0x26a)],'content':this[_0x1a66e9(0x27b)]['t'](_0x1a66e9(0x297))});}finally{this[_0x1a66e9(0x1d3)][_0x1a66e9(0x276)](!0x1);}}),this[_0x49145e(0x20b)](),this[_0x49145e(0x1e3)](),this[_0x49145e(0x2cb)]();}[_0x3eccf6(0x260)](){const _0x4e7f3b=_0x3eccf6;let _0x3ffd6c=this[_0x4e7f3b(0x1aa)]['getConfig'](u);_0x3ffd6c!=null&&_0x3ffd6c['showDeveloperTools']&&this[_0x4e7f3b(0x173)]['open']({'id':y,'title':{'title':this[_0x4e7f3b(0x27b)]['t']('mcpConfig.title')},'children':{'label':_0x4e7f3b(0x283)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x5b2042=_0x4e7f3b;this[_0x5b2042(0x173)][_0x5b2042(0x1f2)](y);}});}['getCurrentConfig'](){const _0x3ce3da=_0x3eccf6;return this[_0x3ce3da(0x1dc)][_0x3ce3da(0x26e)];}[_0x3eccf6(0x2cb)](){const _0x57813c=_0x3eccf6;this[_0x57813c(0x225)](this[_0x57813c(0x226)][_0x57813c(0x291)](_0x57813c(0x283),this[_0x57813c(0x263)]()));}[_0x3eccf6(0x263)](){const _0x3809d8=_0x3eccf6;return(0x0,r[_0x3809d8(0x292)])(()=>{const _0x402099=_0x3809d8;var _0x1993c9,_0x2f6dcb,_0x25f914;return(0x0,s[_0x402099(0x2a9)])(l,{'config':this['_config$'][_0x402099(0x26e)],'mcpCoreConfig':this[_0x402099(0x1dc)][_0x402099(0x26e)],'currentApiKey$':this['_apiKey$'],'onSave':this[_0x402099(0x204)],'loading':this[_0x402099(0x1d3)]['value'],'connectionStatus$':(_0x1993c9=this[_0x402099(0x1f5)])==null?void 0x0:_0x1993c9[_0x402099(0x26f)],'connectionError$':(_0x2f6dcb=this[_0x402099(0x1f5)])==null?void 0x0:_0x2f6dcb[_0x402099(0x1ba)],'currentSessionId$':(_0x25f914=this['_mcpConnectionController'])==null?void 0x0:_0x25f914['sessionId$']});},this[_0x3809d8(0x1c3)]);}[_0x3eccf6(0x20b)](){const _0x5eb87b=_0x3eccf6;this[_0x5eb87b(0x225)](this[_0x5eb87b(0x1aa)][_0x5eb87b(0x2ac)](t[_0x5eb87b(0x18a)])[_0x5eb87b(0x1bb)](_0x1ebd6a=>{this['_mcpCoreConfig$']['next'](_0x1ebd6a||{});}));let _0x1c2465=this['_configService']['getConfig'](t[_0x5eb87b(0x18a)]);this['_mcpCoreConfig$']['next'](_0x1c2465||{}),this[_0x5eb87b(0x225)](this[_0x5eb87b(0x1aa)]['subscribeConfigValue$'](u)[_0x5eb87b(0x1bb)](_0x345e6d=>{const _0x1ec2a4=_0x5eb87b;this[_0x1ec2a4(0x25a)][_0x1ec2a4(0x276)](_0x345e6d||{});}));let _0x21ebd4=this['_configService'][_0x5eb87b(0x1fc)](u);this[_0x5eb87b(0x25a)][_0x5eb87b(0x276)](_0x21ebd4||{});}async[_0x3eccf6(0x1e3)](){const _0x10ae38=_0x3eccf6;let _0x559433=this[_0x10ae38(0x1aa)][_0x10ae38(0x1fc)](u);if(!(_0x559433!=null&&_0x559433['showDeveloperTools']))return;let _0x5867bb=await this[_0x10ae38(0x1e6)][_0x10ae38(0x2af)](v);_0x5867bb&&(this['_mcpConnectionController'][_0x10ae38(0x1bf)]({'Authorization':_0x10ae38(0x1a2)+_0x5867bb}),this['_apiKey$'][_0x10ae38(0x276)](_0x5867bb));}async[_0x3eccf6(0x1c5)](_0x4785a8){const _0xd5841e=_0x3eccf6;if(!_0x4785a8[_0xd5841e(0x285)]||_0x4785a8[_0xd5841e(0x285)][_0xd5841e(0x280)]()[_0xd5841e(0x1f8)]===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t']('mcpConfig.validation.apiKeyRequired')};if(_0x4785a8[_0xd5841e(0x285)][_0xd5841e(0x280)]()[_0xd5841e(0x1f8)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0xd5841e(0x27b)]['t'](_0xd5841e(0x17e))};try{let _0x404a4f=await this[_0xd5841e(0x1c3)]['get'](t['MCPConnectionController'])[_0xd5841e(0x23e)](_0x4785a8[_0xd5841e(0x285)]['trim']());return _0x404a4f['isValid']?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x404a4f[_0xd5841e(0x1f9)]||this[_0xd5841e(0x27b)]['t'](_0xd5841e(0x293))};}catch(_0x58d8b3){return console[_0xd5841e(0x1be)]('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0x58d8b3),{'isValid':!0x0};}}};b=_([g(0x0,(0x0,e[_0x3eccf6(0x16e)])(e['Injector'])),g(0x1,r[_0x3eccf6(0x2b3)]),g(0x2,e[_0x3eccf6(0x27a)]),g(0x3,e[_0x3eccf6(0x2a8)]),g(0x4,r['IDialogService']),g(0x5,r['IMessageService']),g(0x6,(0x0,e['Inject'])(r['ComponentManager'])),g(0x7,(0x0,e[_0x3eccf6(0x16e)])(e['LocaleService'])),g(0x8,e[_0x3eccf6(0x253)]),g(0x9,(0x0,e[_0x3eccf6(0x16e)])(t[_0x3eccf6(0x1af)]))],b);const x={'id':_0x3eccf6(0x171),'type':e['CommandType'][_0x3eccf6(0x279)],'handler':async(_0x4fea65,_0x34171a)=>(_0x4fea65[_0x3eccf6(0x21b)](b)[_0x3eccf6(0x260)](),!0x0)};function S(_0xe6fde4,_0x13ae53){const _0x1b3eb4=_0x3eccf6;switch(_0xe6fde4){case t['MCPConnectionStatus'][_0x1b3eb4(0x20f)]:return _0x1b3eb4(0x1fa);case t[_0x1b3eb4(0x1e2)][_0x1b3eb4(0x224)]:return _0x1b3eb4(0x256);case t[_0x1b3eb4(0x1e2)][_0x1b3eb4(0x1c4)]:return'mcpStatus.connected';case t[_0x1b3eb4(0x1e2)][_0x1b3eb4(0x240)]:switch(_0x13ae53){case t[_0x1b3eb4(0x17d)][_0x1b3eb4(0x2c2)]:return _0x1b3eb4(0x1f3);case t[_0x1b3eb4(0x17d)][_0x1b3eb4(0x277)]:return _0x1b3eb4(0x1c8);case t['MCPConnectionError'][_0x1b3eb4(0x192)]:return _0x1b3eb4(0x1a7);case t['MCPConnectionError'][_0x1b3eb4(0x1b0)]:return _0x1b3eb4(0x247);default:return _0x1b3eb4(0x1e1);}case t[_0x1b3eb4(0x1e2)][_0x1b3eb4(0x22b)]:return _0x1b3eb4(0x1ac);default:return _0x1b3eb4(0x1d4);}}function C(_0x19dece,_0x67c98a,_0x330ac2,_0x3cfd45=!0x0){const _0x156a0f=_0x3eccf6;let _0x42e384=S(_0x19dece,_0x67c98a),_0x197494=_0x330ac2['t'](_0x42e384);return _0x3cfd45?_0x19dece===t[_0x156a0f(0x1e2)][_0x156a0f(0x20f)]&&_0x67c98a===t[_0x156a0f(0x17d)][_0x156a0f(0x2c2)]?_0x197494+_0x156a0f(0x29c)+_0x330ac2['t'](_0x156a0f(0x19c)):_0x19dece===t[_0x156a0f(0x1e2)][_0x156a0f(0x1c4)]?''+_0x197494:_0x19dece===t['MCPConnectionStatus'][_0x156a0f(0x20f)]||_0x19dece===t['MCPConnectionStatus'][_0x156a0f(0x240)]?_0x197494+_0x156a0f(0x29c)+_0x330ac2['t']('mcpStatus.clickToConnect'):_0x197494:_0x197494;}function w(_0x5665c9){const _0x15629a=_0x3eccf6;switch(_0x5665c9){case t[_0x15629a(0x1e2)][_0x15629a(0x1c4)]:return _0x15629a(0x2b0);case t[_0x15629a(0x1e2)]['CONNECTING']:case t[_0x15629a(0x1e2)][_0x15629a(0x22b)]:return _0x15629a(0x1e4);case t['MCPConnectionStatus'][_0x15629a(0x240)]:case t[_0x15629a(0x1e2)][_0x15629a(0x20f)]:return _0x15629a(0x28e);default:return'univer-text-gray-500';}}function T(_0x569e46){const _0x4cd89d=_0x3eccf6;let {status$:_0x1c927c,error$:_0x1c0bea,onConfigure:_0x30716e,showClickable:_0x3b41ca=!0x0}=_0x569e46,_0x485bcb=(0x0,r[_0x4cd89d(0x231)])(_0x1c927c,t['MCPConnectionStatus'][_0x4cd89d(0x20f)]),_0x178379=(0x0,r['useObservable'])(_0x1c0bea,t[_0x4cd89d(0x17d)][_0x4cd89d(0x296)]),_0x1cae16=(0x0,r[_0x4cd89d(0x1a0)])(e[_0x4cd89d(0x251)]),_0x1f7180=_0x485bcb===t[_0x4cd89d(0x1e2)][_0x4cd89d(0x1c4)];_0x485bcb===t[_0x4cd89d(0x1e2)][_0x4cd89d(0x224)]||t[_0x4cd89d(0x1e2)][_0x4cd89d(0x22b)];let _0x39fcf1=_0x1cae16['t'](S(_0x485bcb,_0x178379)),_0x2b44d6=C(_0x485bcb,_0x178379,_0x1cae16,_0x3b41ca),_0x105260=w(_0x485bcb),_0x1f5d4a=_0x1f7180?(0x0,s['jsx'])(a[_0x4cd89d(0x1ef)],{}):(0x0,s['jsx'])(a['OffLineIcon'],{}),_0x3b7ec6=(0x0,o[_0x4cd89d(0x22d)])(()=>{_0x3b41ca&&_0x30716e&&_0x30716e();},[_0x3b41ca,_0x30716e]);function _0x23b421(){const _0x11fb2d=_0x4cd89d;return(0x0,s['jsxs'])(_0x11fb2d(0x23f),{'className':(0x0,n[_0x11fb2d(0x1a5)])(_0x11fb2d(0x23c),_0x3b41ca&&_0x30716e&&'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'),'role':_0x11fb2d(0x2be),'onClick':_0x3b41ca&&_0x30716e?_0x3b7ec6:void 0x0,'children':[(0x0,s[_0x11fb2d(0x2a9)])(_0x11fb2d(0x23f),{'className':(0x0,n['clsx'])('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x105260),'children':_0x1f5d4a}),(0x0,s[_0x11fb2d(0x2a9)])(_0x11fb2d(0x23f),{'className':_0x11fb2d(0x24a),'children':_0x39fcf1})]});}return(0x0,s[_0x4cd89d(0x2a9)])(n[_0x4cd89d(0x168)],{'title':_0x2b44d6,'placement':_0x4cd89d(0x24d),'children':_0x23b421()});}let E=class extends e[_0x3eccf6(0x1c1)]{constructor(_0x481c20,_0x345c98,_0x1fca0e,_0xf39fb3){const _0xb67fa2=_0x3eccf6;super(),this[_0xb67fa2(0x1c3)]=_0x481c20,this['_connectionController']=_0x345c98,this[_0xb67fa2(0x266)]=_0x1fca0e,this[_0xb67fa2(0x1aa)]=_0xf39fb3,this['_initAutoConnect'](),this[_0xb67fa2(0x189)]();}[_0x3eccf6(0x1d9)](){const _0x3d2cf3=_0x3eccf6;let _0x3c7283=this[_0x3d2cf3(0x1aa)]['getConfig'](u);_0x3c7283!=null&&_0x3c7283['showDeveloperTools']&&(this[_0x3d2cf3(0x27f)][_0x3d2cf3(0x20d)]=!0x1);}[_0x3eccf6(0x189)](){const _0x2f881b=_0x3eccf6;let _0x4ccf82=this['_configService'][_0x2f881b(0x1fc)](u);(_0x4ccf82==null?void 0x0:_0x4ccf82[_0x2f881b(0x172)])!==!0x1&&this[_0x2f881b(0x225)](this['_uiPartsService']['registerComponent'](r[_0x2f881b(0x187)][_0x2f881b(0x2b7)],()=>{const _0x3567dc=_0x2f881b;var _0x88c89c;return(0x0,r['connectInjector'])(D({'status$':this[_0x3567dc(0x27f)][_0x3567dc(0x26f)],'error$':this[_0x3567dc(0x27f)]['connectionError$'],'onConfigure':()=>this[_0x3567dc(0x2c6)](),'showClickable':(_0x88c89c=_0x4ccf82==null?void 0x0:_0x4ccf82[_0x3567dc(0x1ca)])==null?!0x1:_0x88c89c}),this[_0x3567dc(0x1c3)]);}));}[_0x3eccf6(0x2c6)](){const _0x1ab5db=_0x3eccf6;this[_0x1ab5db(0x1c3)][_0x1ab5db(0x21b)](b)[_0x1ab5db(0x260)]();}};E=_([g(0x0,(0x0,e['Inject'])(e[_0x3eccf6(0x274)])),g(0x1,(0x0,e['Inject'])(t[_0x3eccf6(0x1af)])),g(0x2,r[_0x3eccf6(0x2b3)]),g(0x3,e['IConfigService'])],E);function D(_0x4905b8){let {status$:_0x3cff0a,error$:_0x3a5c9a,onConfigure:_0x463acc,showClickable:_0x2d3e5b}=_0x4905b8;return function(){const _0x496e7d=_0x6f34;return(0x0,s[_0x496e7d(0x2a9)])(T,{'status$':_0x3cff0a,'error$':_0x3a5c9a,'onConfigure':_0x463acc,'showClickable':_0x2d3e5b});};}function O(_0x345923){const _0x4344d3=_0x3eccf6;return{'id':x['id'],'type':r[_0x4344d3(0x1df)][_0x4344d3(0x275)],'icon':_0x4344d3(0x17a),'title':'mcpConfig.title','tooltip':_0x4344d3(0x26b)};}const k={[r[_0x3eccf6(0x209)][_0x3eccf6(0x18f)]]:{[x['id']]:{'order':0xa,'menuItemFactory':O}}};let A=class extends e[_0x3eccf6(0x1c1)]{constructor(_0xf9481f,_0x1b8103){const _0x982c55=_0x3eccf6;super(),this[_0x982c55(0x29e)]=_0xf9481f,this[_0x982c55(0x1f6)]=_0x1b8103,this['_initializeCommands'](),this[_0x982c55(0x250)]();}[_0x3eccf6(0x236)](){[x]['forEach'](_0xc38e6f=>{const _0x2a56fa=_0x6f34;this[_0x2a56fa(0x225)](this[_0x2a56fa(0x29e)]['registerCommand'](_0xc38e6f));});}[_0x3eccf6(0x250)](){const _0xc9594b=_0x3eccf6;this[_0xc9594b(0x1f6)][_0xc9594b(0x183)](k);}};A=_([g(0x0,e[_0x3eccf6(0x1a1)]),g(0x1,r['IMenuManagerService'])],A);const j={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x3eccf6(0x1b8),'connected':_0x3eccf6(0x2bb),'failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':_0x3eccf6(0x193),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x3eccf6(0x180),'maxRetriesExceeded':_0x3eccf6(0x18b),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x3eccf6(0x2bd)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x3eccf6(0x19f),'apiKey':_0x3eccf6(0x1b4),'apiKeyPlaceholder':_0x3eccf6(0x252),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x3eccf6(0x21d),'enableAuthHint':_0x3eccf6(0x2b6),'connectionInfo':_0x3eccf6(0x22c),'mcpClientConfig':_0x3eccf6(0x22c),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':_0x3eccf6(0x25b),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x3eccf6(0x174),'sessionId':_0x3eccf6(0x1cf),'sessionIdDescription':_0x3eccf6(0x217),'authorizationDescription':_0x3eccf6(0x16d),'configParameters':_0x3eccf6(0x23a),'maxRetries':_0x3eccf6(0x28a),'save':'Save\x20Configuration','saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x3eccf6(0x233),'configSaved':_0x3eccf6(0x238),'configError':_0x3eccf6(0x1ae),'apiApplyInfo':{'title':_0x3eccf6(0x232),'description':_0x3eccf6(0x258),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x3eccf6(0x203),'apiKeyTooShort':_0x3eccf6(0x228),'invalidConfig':_0x3eccf6(0x1c7),'invalidApiKey':_0x3eccf6(0x272)},'connectionStatus':{'disconnected':_0x3eccf6(0x25f),'connecting':_0x3eccf6(0x1eb),'connected':'Connected','failed':'Connection\x20Failed','retrying':_0x3eccf6(0x1a3)},'connectionError':{'unauthorized':_0x3eccf6(0x1db),'sessionOccupied':_0x3eccf6(0x2c3),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x3eccf6(0x169)}}},M={'mcpStatus':{'disconnected':_0x3eccf6(0x2a2),'connecting':_0x3eccf6(0x194),'connected':_0x3eccf6(0x176),'failed':_0x3eccf6(0x1ec),'retrying':'MCP\x20重连中...','unknown':_0x3eccf6(0x19b),'unauthorized':_0x3eccf6(0x2bc),'sessionOccupied':_0x3eccf6(0x2c8),'networkError':_0x3eccf6(0x16f),'maxRetriesExceeded':_0x3eccf6(0x1de),'clickToConnect':_0x3eccf6(0x2a4),'clickToConfigure':_0x3eccf6(0x208)},'mcpConfig':{'title':_0x3eccf6(0x261),'description':_0x3eccf6(0x1d5),'apiKey':_0x3eccf6(0x19a),'apiKeyPlaceholder':_0x3eccf6(0x1c0),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':'启用身份验证','enableAuthHint':_0x3eccf6(0x18e),'connectionInfo':_0x3eccf6(0x27c),'mcpClientConfig':_0x3eccf6(0x27c),'configInstructions':_0x3eccf6(0x1cc),'configStepTitle':_0x3eccf6(0x1bc),'configStep1':_0x3eccf6(0x170),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x3eccf6(0x211),'sessionId':'会话ID','sessionIdDescription':_0x3eccf6(0x199),'authorizationDescription':_0x3eccf6(0x1b7),'configParameters':_0x3eccf6(0x1a4),'maxRetries':_0x3eccf6(0x28f),'save':_0x3eccf6(0x21e),'saving':_0x3eccf6(0x1c2),'note1':_0x3eccf6(0x2ae),'note2':_0x3eccf6(0x220),'configSaved':_0x3eccf6(0x16a),'configError':_0x3eccf6(0x28d),'apiApplyInfo':{'title':_0x3eccf6(0x21f),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':'Univer\x20AI\x20控制台','getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x3eccf6(0x2a1),'apiKeyTooShort':_0x3eccf6(0x198),'invalidConfig':_0x3eccf6(0x29a),'invalidApiKey':_0x3eccf6(0x218)},'connectionStatus':{'disconnected':_0x3eccf6(0x248),'connecting':_0x3eccf6(0x179),'connected':_0x3eccf6(0x17b),'failed':_0x3eccf6(0x282),'retrying':_0x3eccf6(0x200)},'connectionError':{'unauthorized':_0x3eccf6(0x210),'sessionOccupied':_0x3eccf6(0x18c),'networkError':_0x3eccf6(0x2c7),'maxRetriesExceeded':_0x3eccf6(0x24b)}}};var N='@univerjs-pro/mcp-ui',P=_0x3eccf6(0x215);let F=class extends e[_0x3eccf6(0x245)]{constructor(_0x16798b=d,_0x15fcf6,_0x3008f2,_0x3810af,_0x1a3fae,_0x2399f5){const _0xe6766d=_0x3eccf6;super(),this[_0xe6766d(0x259)]=_0x16798b,this[_0xe6766d(0x1c3)]=_0x15fcf6,this[_0xe6766d(0x1aa)]=_0x3008f2,this[_0xe6766d(0x266)]=_0x3810af,this[_0xe6766d(0x1e6)]=_0x1a3fae,this[_0xe6766d(0x27b)]=_0x2399f5;let {..._0x27fcc5}=(0x0,e[_0xe6766d(0x196)])({},d,this[_0xe6766d(0x259)]);this[_0xe6766d(0x1aa)][_0xe6766d(0x288)](u,_0x27fcc5);}async[_0x3eccf6(0x255)](){const _0x4d4b18=_0x3eccf6;let _0xff06f7=[[E],[b],[A]];this[_0x4d4b18(0x1c3)][_0x4d4b18(0x254)](c[_0x4d4b18(0x1b2)])||_0xff06f7['push']([c['ISocketService'],{'useClass':c[_0x4d4b18(0x21a)]}]),_0xff06f7['forEach'](_0x1a9741=>this[_0x4d4b18(0x1c3)][_0x4d4b18(0x1e7)](_0x1a9741)),this['_injector'][_0x4d4b18(0x21b)](E),this[_0x4d4b18(0x1c3)][_0x4d4b18(0x21b)](b),this[_0x4d4b18(0x1c3)][_0x4d4b18(0x21b)](A);}};h(F,'pluginName','MCP_UI_PLUGIN'),h(F,_0x3eccf6(0x28b),N),h(F,_0x3eccf6(0x178),P),F=_([(0x0,e[_0x3eccf6(0x1d8)])(t[_0x3eccf6(0x185)]),g(0x1,(0x0,e['Inject'])(e['Injector'])),g(0x2,e['IConfigService']),g(0x3,r[_0x3eccf6(0x2b3)]),g(0x4,e[_0x3eccf6(0x2a8)]),g(0x5,(0x0,e[_0x3eccf6(0x16e)])(e[_0x3eccf6(0x251)]))],F),exports[_0x3eccf6(0x283)]=l,Object[_0x3eccf6(0x190)](exports,_0x3eccf6(0x212),{'enumerable':!0x0,'get':function(){return b;}}),Object['defineProperty'](exports,_0x3eccf6(0x2a3),{'enumerable':!0x0,'get':function(){return E;}}),exports['MCPStatusDisplay']=T,Object[_0x3eccf6(0x190)](exports,'MCPUIMenuController',{'enumerable':!0x0,'get':function(){return A;}}),exports[_0x3eccf6(0x2ab)]=x,Object['defineProperty'](exports,_0x3eccf6(0x264),{'enumerable':!0x0,'get':function(){return F;}}),exports[_0x3eccf6(0x16c)]=j,exports[_0x3eccf6(0x222)]=M;
1
+ const _0x370a48=_0x8260;(function(_0x50ae81,_0x54327f){const _0x2fa4ed=_0x8260,_0x36c5ec=_0x50ae81();while(!![]){try{const _0x49faa8=-parseInt(_0x2fa4ed(0x20f))/0x1+-parseInt(_0x2fa4ed(0x241))/0x2*(-parseInt(_0x2fa4ed(0x251))/0x3)+-parseInt(_0x2fa4ed(0x27c))/0x4*(parseInt(_0x2fa4ed(0x307))/0x5)+-parseInt(_0x2fa4ed(0x302))/0x6*(parseInt(_0x2fa4ed(0x2cc))/0x7)+-parseInt(_0x2fa4ed(0x30b))/0x8+-parseInt(_0x2fa4ed(0x278))/0x9*(-parseInt(_0x2fa4ed(0x31f))/0xa)+parseInt(_0x2fa4ed(0x2bf))/0xb;if(_0x49faa8===_0x54327f)break;else _0x36c5ec['push'](_0x36c5ec['shift']());}catch(_0xd7e001){_0x36c5ec['push'](_0x36c5ec['shift']());}}}(_0x2d59,0x85dfd),Object['defineProperty'](exports,Symbol[_0x370a48(0x209)],{'value':_0x370a48(0x2a3)}));let _univerjs_core=require('@univerjs/core'),_univerjs_pro_mcp=require('@univerjs-pro/mcp'),_univerjs_design=require('@univerjs/design'),_univerjs_ui=require('@univerjs/ui'),rxjs=require('rxjs'),_univerjs_icons=require('@univerjs/icons'),react=require('react'),react_jsx_runtime=require('react/jsx-runtime'),_univerjs_network=require('@univerjs/network');function MCPConfigPanel(_0x207af3){const _0x46f832=_0x370a48;var _0x449e41,_0x2a6567;const {mcpCoreConfig:_0x1713d2,onSave:_0x5a93e5,loading:loading=![],config:_0x3facc8,connectionStatus$:_0x54d540,connectionError$:_0x642dab,currentApiKey$:_0x51a886,currentSessionId$:_0x5c3aa4}=_0x207af3,_0x4a0362=(0x0,_univerjs_ui[_0x46f832(0x255)])(_univerjs_core[_0x46f832(0x28c)]),_0x49964d=(0x0,_univerjs_ui[_0x46f832(0x282)])(_0x54d540,_univerjs_pro_mcp['MCPConnectionStatus'][_0x46f832(0x308)]),_0x1ac951=(0x0,_univerjs_ui[_0x46f832(0x282)])(_0x642dab,_univerjs_pro_mcp[_0x46f832(0x300)][_0x46f832(0x208)]),_0x1d4004=(0x0,_univerjs_ui[_0x46f832(0x282)])(_0x5c3aa4,''),[_0x20c3f7,_0x50bc33]=(0x0,react[_0x46f832(0x22c)])((0x0,_univerjs_ui['useObservable'])(_0x51a886,'')||''),_0x55f64b=!![],_0x323ee0=_0x3facc8[_0x46f832(0x344)]&&_0x1713d2[_0x46f832(0x211)]&&(_0x1713d2[_0x46f832(0x211)][_0x46f832(0x292)](_0x46f832(0x26c))||_0x1713d2[_0x46f832(0x211)][_0x46f832(0x292)](_0x46f832(0x249))),_0x5ef8f2=(_0x449e41=_0x1713d2['mcpServerUrl'])===null||_0x449e41===void 0x0?void 0x0:_0x449e41['includes']('univer.plus'),_0x2fe8b8=(_0x2a6567=_0x1713d2[_0x46f832(0x211)])===null||_0x2a6567===void 0x0?void 0x0:_0x2a6567['includes']('univer.ai'),_0x15e03b=_0x5ef8f2?_0x46f832(0x319):'https://console.univer.ai',_0x49ade8=_0x3facc8[_0x46f832(0x344)]&&(_0x5ef8f2||_0x2fe8b8),[_0x273614,_0x2f35be]=(0x0,react[_0x46f832(0x22c)])(!_0x20c3f7['trim']()),_0x56f908=(_0x2cf82f,_0x1ae5bb)=>{const _0x3bd652=_0x46f832;if(_0x1ae5bb===_univerjs_pro_mcp['MCPConnectionError'][_0x3bd652(0x23c)])return _0x3bd652(0x210);switch(_0x2cf82f){case _univerjs_pro_mcp[_0x3bd652(0x276)][_0x3bd652(0x2af)]:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case _univerjs_pro_mcp[_0x3bd652(0x276)][_0x3bd652(0x23b)]:case _univerjs_pro_mcp[_0x3bd652(0x276)][_0x3bd652(0x336)]:return _0x3bd652(0x2b4);case _univerjs_pro_mcp[_0x3bd652(0x276)][_0x3bd652(0x2ad)]:return _0x3bd652(0x210);default:return _0x3bd652(0x2dd);}},_0x2985c8=(_0x458aed,_0x255b0a)=>{const _0x4fc756=_0x46f832;if(_0x255b0a===_univerjs_pro_mcp['MCPConnectionError']['UNAUTHORIZED'])return _0x4fc756(0x262);switch(_0x458aed){case _univerjs_pro_mcp[_0x4fc756(0x276)][_0x4fc756(0x2af)]:return _0x4fc756(0x29f);case _univerjs_pro_mcp['MCPConnectionStatus'][_0x4fc756(0x23b)]:case _univerjs_pro_mcp[_0x4fc756(0x276)]['RETRYING']:return _0x4fc756(0x271);case _univerjs_pro_mcp[_0x4fc756(0x276)][_0x4fc756(0x2ad)]:return _0x4fc756(0x262);default:return _0x4fc756(0x21f);}},_0x248e9=_0x3cffaf=>{const _0x4c0e2d=_0x46f832;switch(_0x3cffaf){case _univerjs_pro_mcp[_0x4c0e2d(0x276)][_0x4c0e2d(0x2af)]:return _0x4a0362['t']('mcpConfig.connectionStatus.connected');case _univerjs_pro_mcp[_0x4c0e2d(0x276)][_0x4c0e2d(0x23b)]:return _0x4a0362['t'](_0x4c0e2d(0x2ef));case _univerjs_pro_mcp[_0x4c0e2d(0x276)]['FAILED']:return _0x4a0362['t'](_0x4c0e2d(0x264));case _univerjs_pro_mcp['MCPConnectionStatus'][_0x4c0e2d(0x336)]:return _0x4a0362['t'](_0x4c0e2d(0x216));default:return _0x4a0362['t']('mcpConfig.connectionStatus.disconnected');}},_0x4cd1f6=_0xe5c498=>{const _0x4deb6b=_0x46f832;switch(_0xe5c498){case _univerjs_pro_mcp[_0x4deb6b(0x300)][_0x4deb6b(0x23c)]:return _0x4a0362['t']('mcpConfig.connectionError.unauthorized');case _univerjs_pro_mcp[_0x4deb6b(0x300)][_0x4deb6b(0x346)]:return _0x4a0362['t']('mcpConfig.connectionError.sessionOccupied');case _univerjs_pro_mcp['MCPConnectionError'][_0x4deb6b(0x31e)]:return _0x4a0362['t']('mcpConfig.connectionError.networkError');case _univerjs_pro_mcp[_0x4deb6b(0x300)][_0x4deb6b(0x27b)]:return _0x4a0362['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x439faf=(0x0,react[_0x46f832(0x2cd)])(()=>{const _0x434a8b=_0x46f832;_0x5a93e5({..._0x1713d2,'apiKey':_0x20c3f7[_0x434a8b(0x222)](),'enableAuth':_0x55f64b});},[_0x1713d2,_0x20c3f7,_0x55f64b,_0x5a93e5]),_0x1832f5=_0x20c3f7['trim']()[_0x46f832(0x32b)]>0x0;return(0x0,react_jsx_runtime[_0x46f832(0x212)])(_0x46f832(0x23d),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[(0x0,react_jsx_runtime['jsx'])('div',{'className':_0x46f832(0x334),'children':(0x0,react_jsx_runtime['jsxs'])('div',{'className':_0x46f832(0x289),'children':[(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x23d),{'className':_0x46f832(0x311),'children':(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x29b),{'className':'univer-text-white','children':'⚙'})}),(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x23d),{'children':(0x0,react_jsx_runtime[_0x46f832(0x33e)])('p',{'className':_0x46f832(0x316),'children':_0x4a0362['t'](_0x46f832(0x288))})})]})}),(0x0,react_jsx_runtime[_0x46f832(0x212)])(_0x46f832(0x23d),{'className':_0x46f832(0x243),'children':[(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x23d),{'className':(0x0,_univerjs_design[_0x46f832(0x2bc)])(_0x46f832(0x1fe),_0x56f908(_0x49964d,_0x1ac951)),'children':(0x0,react_jsx_runtime[_0x46f832(0x212)])(_0x46f832(0x23d),{'className':_0x46f832(0x2a6),'children':[(0x0,react_jsx_runtime['jsx'])('div',{'className':(0x0,_univerjs_design[_0x46f832(0x2bc)])(_0x46f832(0x2a7),_0x2985c8(_0x49964d,_0x1ac951))}),(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x29b),{'className':_0x46f832(0x296),'children':_0x248e9(_0x49964d)})]})}),_0x1ac951!==_univerjs_pro_mcp[_0x46f832(0x300)][_0x46f832(0x208)]&&(_0x49964d===_univerjs_pro_mcp[_0x46f832(0x276)]['FAILED']||_0x1ac951===_univerjs_pro_mcp[_0x46f832(0x300)][_0x46f832(0x23c)])&&(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x23d),{'className':_0x46f832(0x234),'children':(0x0,react_jsx_runtime[_0x46f832(0x212)])(_0x46f832(0x23d),{'className':_0x46f832(0x228),'children':[(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x29b),{'className':'univer-shrink-0\x20univer-text-red-500','children':'⚠️'}),(0x0,react_jsx_runtime['jsx'])('p',{'className':_0x46f832(0x26b),'children':_0x4cd1f6(_0x1ac951)})]})})]}),(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x23d),{'className':_0x46f832(0x2f5),'children':(0x0,react_jsx_runtime[_0x46f832(0x212)])(_0x46f832(0x23d),{'className':_0x46f832(0x2a5),'children':[(0x0,react_jsx_runtime[_0x46f832(0x212)])(_0x46f832(0x23d),{'className':_0x46f832(0x220),'children':[(0x0,react_jsx_runtime['jsxs'])(_0x46f832(0x21c),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x29b),{'children':'🔑'}),'\x20',_0x4a0362['t'](_0x46f832(0x242)),(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x29b),{'className':_0x46f832(0x291),'children':'*'}),_0x323ee0&&(0x0,react_jsx_runtime['jsx'])('a',{'className':_0x46f832(0x229),'title':_0x4a0362['t'](_0x46f832(0x225)),'role':_0x46f832(0x2d9),'onClick':()=>_0x2f35be(!![]),'children':(0x0,react_jsx_runtime['jsx'])(_univerjs_icons['HelpIcon'],{})})]}),(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x46f832(0x2e1)],{'type':_0x46f832(0x31c),'placeholder':_0x4a0362['t'](_0x46f832(0x2b3)),'value':_0x20c3f7,'disabled':loading,'autoComplete':_0x46f832(0x21e),'onChange':_0x50bc33}),(0x0,react_jsx_runtime['jsx'])('p',{'className':_0x46f832(0x223),'children':_0x4a0362['t'](_0x46f832(0x25e))})]}),_0x323ee0&&_0x273614&&(0x0,react_jsx_runtime[_0x46f832(0x212)])(_0x46f832(0x23d),{'className':'univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','children':[(0x0,react_jsx_runtime['jsx'])('a',{'className':_0x46f832(0x2ac),'role':_0x46f832(0x2d9),'onClick':()=>_0x2f35be(![]),'children':(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_univerjs_icons[_0x46f832(0x348)],{'className':_0x46f832(0x24d)})}),(0x0,react_jsx_runtime[_0x46f832(0x212)])(_0x46f832(0x23d),{'className':_0x46f832(0x256),'children':[(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x23d),{'className':_0x46f832(0x244),'children':(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x29b),{'className':_0x46f832(0x325),'children':'🚀'})}),(0x0,react_jsx_runtime[_0x46f832(0x212)])('div',{'className':_0x46f832(0x261),'children':[(0x0,react_jsx_runtime['jsx'])('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x4a0362['t'](_0x46f832(0x225))}),(0x0,react_jsx_runtime[_0x46f832(0x33e)])('p',{'className':_0x46f832(0x34b),'children':_0x4a0362['t']('mcpConfig.apiApplyInfo.description')}),(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x23d),{'className':_0x46f832(0x290),'children':_0x49ade8&&(0x0,react_jsx_runtime[_0x46f832(0x212)])('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':_0x15e03b,'target':_0x46f832(0x32a),'rel':'noopener\x20noreferrer','children':[(0x0,react_jsx_runtime[_0x46f832(0x33e)])('span',{'children':'🤖'}),_0x4a0362['t'](_0x46f832(0x293)),(0x0,react_jsx_runtime['jsx'])(_0x46f832(0x29b),{'className':_0x46f832(0x32c),'children':'↗'})]})}),(0x0,react_jsx_runtime[_0x46f832(0x212)])(_0x46f832(0x23d),{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x4a0362['t'](_0x46f832(0x22b))]})]})]})]}),_0x3facc8[_0x46f832(0x344)]&&(0x0,react_jsx_runtime[_0x46f832(0x212)])(_0x46f832(0x23d),{'className':_0x46f832(0x1fd),'children':[(0x0,react_jsx_runtime[_0x46f832(0x212)])('h4',{'className':_0x46f832(0x310),'children':[(0x0,react_jsx_runtime['jsx'])(_0x46f832(0x29b),{'children':'🔗'}),'\x20',_0x4a0362['t'](_0x46f832(0x24a))]}),(0x0,react_jsx_runtime['jsxs'])(_0x46f832(0x23d),{'className':_0x46f832(0x317),'children':[(0x0,react_jsx_runtime[_0x46f832(0x212)])(_0x46f832(0x23d),{'className':'univer-space-y-3','children':[(0x0,react_jsx_runtime[_0x46f832(0x33e)])('p',{'className':_0x46f832(0x2c5),'children':_0x4a0362['t'](_0x46f832(0x2c1))}),(0x0,react_jsx_runtime[_0x46f832(0x212)])(_0x46f832(0x23d),{'className':_0x46f832(0x220),'children':[(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x23d),{'className':_0x46f832(0x30f),'children':_0x4a0362['t'](_0x46f832(0x1f2))}),(0x0,react_jsx_runtime[_0x46f832(0x212)])(_0x46f832(0x23d),{'className':_0x46f832(0x20b),'children':[(0x0,react_jsx_runtime['jsxs'])('div',{'className':_0x46f832(0x2a6),'children':[(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x29b),{'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':'1'}),_0x4a0362['t'](_0x46f832(0x2eb))]}),(0x0,react_jsx_runtime['jsxs'])('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[(0x0,react_jsx_runtime[_0x46f832(0x33e)])('span',{'className':_0x46f832(0x324),'children':'2'}),_0x4a0362['t'](_0x46f832(0x2fc))]}),(0x0,react_jsx_runtime['jsxs'])(_0x46f832(0x23d),{'className':_0x46f832(0x2a6),'children':[(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x29b),{'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'}),_0x4a0362['t'](_0x46f832(0x32d))]})]})]})]}),(0x0,react_jsx_runtime[_0x46f832(0x212)])(_0x46f832(0x23d),{'className':'univer-space-y-2','children':[(0x0,react_jsx_runtime[_0x46f832(0x33e)])('div',{'className':_0x46f832(0x30f),'children':'MCP\x20Configuration'}),(0x0,react_jsx_runtime[_0x46f832(0x33e)])('div',{'className':_0x46f832(0x23e),'children':(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x207),{'className':_0x46f832(0x2f3),'children':JSON[_0x46f832(0x2ce)]({'mcpServers':{'univer':{'url':'https://mcp.univer.ai/mcp/?univer_session_id='+(_0x1d4004||_0x46f832(0x342)),'type':_0x46f832(0x341),'headers':{'Authorization':_0x46f832(0x215)+(_0x20c3f7||_0x46f832(0x2ba))}}}},null,0x2)})})]}),(0x0,react_jsx_runtime['jsxs'])(_0x46f832(0x23d),{'className':_0x46f832(0x2d0),'children':[(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x23d),{'className':_0x46f832(0x30f),'children':_0x4a0362['t'](_0x46f832(0x345))}),(0x0,react_jsx_runtime[_0x46f832(0x212)])(_0x46f832(0x23d),{'className':_0x46f832(0x220),'children':[(0x0,react_jsx_runtime[_0x46f832(0x212)])(_0x46f832(0x23d),{'className':_0x46f832(0x2ec),'children':[(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x23d),{'className':_0x46f832(0x245)}),(0x0,react_jsx_runtime[_0x46f832(0x212)])('div',{'className':'univer-min-w-0\x20univer-flex-1','children':[(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x23d),{'className':_0x46f832(0x1ed),'children':_0x46f832(0x2e2)}),(0x0,react_jsx_runtime['jsx'])(_0x46f832(0x23d),{'className':_0x46f832(0x223),'children':_0x4a0362['t'](_0x46f832(0x33f))})]})]}),(0x0,react_jsx_runtime[_0x46f832(0x212)])(_0x46f832(0x23d),{'className':_0x46f832(0x2ec),'children':[(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x23d),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),(0x0,react_jsx_runtime[_0x46f832(0x212)])(_0x46f832(0x23d),{'className':_0x46f832(0x265),'children':[(0x0,react_jsx_runtime[_0x46f832(0x33e)])('div',{'className':_0x46f832(0x1ed),'children':_0x46f832(0x295)}),(0x0,react_jsx_runtime['jsx'])(_0x46f832(0x23d),{'className':_0x46f832(0x223),'children':_0x4a0362['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x46f832(0x298)],{'onClick':_0x439faf,'disabled':!_0x1832f5||loading,'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':loading?(0x0,react_jsx_runtime['jsxs'])(_0x46f832(0x29b),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x29b),{'children':'⟲'}),_0x4a0362['t']('mcpConfig.saving')]}):(0x0,react_jsx_runtime[_0x46f832(0x212)])(_0x46f832(0x29b),{'className':_0x46f832(0x2a6),'children':[(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_univerjs_icons[_0x46f832(0x2c2)],{}),_0x4a0362['t'](_0x46f832(0x343))]})}),(0x0,react_jsx_runtime['jsx'])('div',{'className':_0x46f832(0x2b6),'children':(0x0,react_jsx_runtime['jsxs'])(_0x46f832(0x23d),{'className':_0x46f832(0x22d),'children':[(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x29b),{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),(0x0,react_jsx_runtime[_0x46f832(0x212)])('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[(0x0,react_jsx_runtime['jsx'])('div',{'className':_0x46f832(0x1f1),'children':_0x46f832(0x283)}),(0x0,react_jsx_runtime['jsxs'])(_0x46f832(0x23d),{'children':['•',_0x4a0362['t'](_0x46f832(0x2e9))]}),(0x0,react_jsx_runtime['jsxs'])('div',{'children':['•',_0x4a0362['t'](_0x46f832(0x309))]})]})]})})]})})]});}const MCP_UI_PLUGIN_CONFIG_KEY=_0x370a48(0x263),configSymbol=Symbol(MCP_UI_PLUGIN_CONFIG_KEY),defaultPluginConfig={'showDeveloperTools':![],'showStatus':!![]};function _typeof(_0x17baf2){'@babel/helpers - typeof';const _0x5c330a=_0x370a48;return _typeof=_0x5c330a(0x304)==typeof Symbol&&'symbol'==typeof Symbol['iterator']?function(_0x1f2bbc){return typeof _0x1f2bbc;}:function(_0x515b79){const _0x2163dc=_0x5c330a;return _0x515b79&&_0x2163dc(0x304)==typeof Symbol&&_0x515b79[_0x2163dc(0x2d3)]===Symbol&&_0x515b79!==Symbol['prototype']?'symbol':typeof _0x515b79;},_typeof(_0x17baf2);}function toPrimitive(_0x29daaf,_0x277441){const _0x26081a=_0x370a48;if('object'!=_typeof(_0x29daaf)||!_0x29daaf)return _0x29daaf;var _0x47108e=_0x29daaf[Symbol[_0x26081a(0x27f)]];if(void 0x0!==_0x47108e){var _0x5aa63a=_0x47108e['call'](_0x29daaf,_0x277441||_0x26081a(0x201));if(_0x26081a(0x2cb)!=_typeof(_0x5aa63a))return _0x5aa63a;throw new TypeError(_0x26081a(0x31b));}return(_0x26081a(0x2a8)===_0x277441?String:Number)(_0x29daaf);}function toPropertyKey(_0x3489f9){const _0x33b617=_0x370a48;var _0x221a01=toPrimitive(_0x3489f9,_0x33b617(0x2a8));return _0x33b617(0x301)==_typeof(_0x221a01)?_0x221a01:_0x221a01+'';}function _0x8260(_0x594d59,_0x31cb4e){_0x594d59=_0x594d59-0x1ec;const _0x2d59b0=_0x2d59();let _0x8260e0=_0x2d59b0[_0x594d59];return _0x8260e0;}function _defineProperty(_0x3a4035,_0x18604b,_0x5aad3b){return(_0x18604b=toPropertyKey(_0x18604b))in _0x3a4035?Object['defineProperty'](_0x3a4035,_0x18604b,{'value':_0x5aad3b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3a4035[_0x18604b]=_0x5aad3b,_0x3a4035;}function __decorateParam(_0x16cc39,_0x468631){return function(_0x34ca30,_0x5680e2){_0x468631(_0x34ca30,_0x5680e2,_0x16cc39);};}function __decorate(_0x2476ac,_0x3a2595,_0x2afb47,_0x518f50){const _0x2ab298=_0x370a48;var _0x579a35=arguments[_0x2ab298(0x32b)],_0x47c99e=_0x579a35<0x3?_0x3a2595:_0x518f50===null?_0x518f50=Object[_0x2ab298(0x328)](_0x3a2595,_0x2afb47):_0x518f50,_0x39441e;if(typeof Reflect==='object'&&typeof Reflect[_0x2ab298(0x2a2)]===_0x2ab298(0x304))_0x47c99e=Reflect[_0x2ab298(0x2a2)](_0x2476ac,_0x3a2595,_0x2afb47,_0x518f50);else{for(var _0x8cd1da=_0x2476ac[_0x2ab298(0x32b)]-0x1;_0x8cd1da>=0x0;_0x8cd1da--)if(_0x39441e=_0x2476ac[_0x8cd1da])_0x47c99e=(_0x579a35<0x3?_0x39441e(_0x47c99e):_0x579a35>0x3?_0x39441e(_0x3a2595,_0x2afb47,_0x47c99e):_0x39441e(_0x3a2595,_0x2afb47))||_0x47c99e;}return _0x579a35>0x3&&_0x47c99e&&Object[_0x2ab298(0x238)](_0x3a2595,_0x2afb47,_0x47c99e),_0x47c99e;}const MCP_API_KEY_STORAGE_KEY=_0x370a48(0x268),MCP_CONFIG_DIALOG_ID=_0x370a48(0x280);let MCPConfigUIController=class MCPConfigUIController extends _univerjs_core['Disposable']{constructor(_0x34c558,_0x276e45,_0x23eeb3,_0x4fe8bc,_0x4e1bc1,_0x24d2a2,_0x5ae92b,_0x4a842b,_0x17901b,_0x4012da){const _0x265bd7=_0x370a48;super(),this['_injector']=_0x34c558,this['_uiPartsService']=_0x276e45,this[_0x265bd7(0x266)]=_0x23eeb3,this[_0x265bd7(0x30d)]=_0x4fe8bc,this[_0x265bd7(0x27e)]=_0x4e1bc1,this[_0x265bd7(0x2d2)]=_0x24d2a2,this['_componentManager']=_0x5ae92b,this[_0x265bd7(0x24e)]=_0x4a842b,this[_0x265bd7(0x2fa)]=_0x17901b,this[_0x265bd7(0x312)]=_0x4012da,_defineProperty(this,_0x265bd7(0x284),new rxjs[(_0x265bd7(0x2c3))](![])),_defineProperty(this,'_mcpCoreConfig$',new rxjs[(_0x265bd7(0x2c3))]({})),_defineProperty(this,_0x265bd7(0x29c),new rxjs['BehaviorSubject']({})),_defineProperty(this,_0x265bd7(0x200),new rxjs['BehaviorSubject']('')),_defineProperty(this,_0x265bd7(0x318),async _0x2982c3=>{const _0x2cad80=_0x265bd7;this[_0x2cad80(0x284)][_0x2cad80(0x2f6)](!![]);try{var _0x186ec0,_0xeb0cfe;const _0x3cfed7=await this[_0x2cad80(0x2de)](_0x2982c3);if(!_0x3cfed7[_0x2cad80(0x321)]){this[_0x2cad80(0x2d2)][_0x2cad80(0x257)]({'type':_univerjs_design[_0x2cad80(0x1fa)][_0x2cad80(0x2db)],'content':_0x3cfed7[_0x2cad80(0x1f4)]||this[_0x2cad80(0x24e)]['t']('mcpConfig.validation.invalidConfig')});return;}if(_0x2982c3[_0x2cad80(0x204)])await this[_0x2cad80(0x30d)]['setItem'](MCP_API_KEY_STORAGE_KEY,_0x2982c3[_0x2cad80(0x204)][_0x2cad80(0x222)]());else await this[_0x2cad80(0x30d)]['removeItem'](MCP_API_KEY_STORAGE_KEY);this[_0x2cad80(0x200)][_0x2cad80(0x2f6)](((_0x186ec0=_0x2982c3[_0x2cad80(0x204)])===null||_0x186ec0===void 0x0?void 0x0:_0x186ec0[_0x2cad80(0x222)]())||''),this['_mcpConnectionController'][_0x2cad80(0x2cf)]({'Authorization':_0x2cad80(0x215)+((_0xeb0cfe=_0x2982c3[_0x2cad80(0x204)])===null||_0xeb0cfe===void 0x0?void 0x0:_0xeb0cfe['trim']())}),this[_0x2cad80(0x2d2)][_0x2cad80(0x257)]({'type':_univerjs_design[_0x2cad80(0x1fa)][_0x2cad80(0x2ed)],'content':this[_0x2cad80(0x24e)]['t']('mcpConfig.configSaved')}),setTimeout(()=>{const _0x36e55f=_0x2cad80;this[_0x36e55f(0x27e)][_0x36e55f(0x287)](MCP_CONFIG_DIALOG_ID);},0x320);}catch(_0x192d3c){this['_logService'][_0x2cad80(0x331)](_0x2cad80(0x2ea),_0x192d3c),this[_0x2cad80(0x2d2)][_0x2cad80(0x257)]({'type':_univerjs_design[_0x2cad80(0x1fa)][_0x2cad80(0x2db)],'content':this[_0x2cad80(0x24e)]['t'](_0x2cad80(0x2fe))});}finally{this[_0x2cad80(0x284)][_0x2cad80(0x2f6)](![]);}}),this[_0x265bd7(0x279)](),this[_0x265bd7(0x273)](),this['_registerComponent']();}[_0x370a48(0x2a0)](){const _0x368367=_0x370a48,_0x20102b=this[_0x368367(0x266)][_0x368367(0x34c)](MCP_UI_PLUGIN_CONFIG_KEY);if(_0x20102b===null||_0x20102b===void 0x0?void 0x0:_0x20102b['showDeveloperTools'])this['_dialogService'][_0x368367(0x2a9)]({'id':MCP_CONFIG_DIALOG_ID,'title':{'title':this[_0x368367(0x24e)]['t'](_0x368367(0x335))},'children':{'label':_0x368367(0x2d1)},'width':0x244,'draggable':!![],'destroyOnClose':!![],'onClose':()=>{const _0x203ef6=_0x368367;this[_0x203ef6(0x27e)]['close'](MCP_CONFIG_DIALOG_ID);}});}[_0x370a48(0x349)](){const _0x595bfa=_0x370a48;return this[_0x595bfa(0x21b)][_0x595bfa(0x299)];}['_registerComponent'](){const _0x4d13f9=_0x370a48;this[_0x4d13f9(0x269)](this['_componentManager'][_0x4d13f9(0x30e)](_0x4d13f9(0x2d1),this[_0x4d13f9(0x2a4)]()));}['_createConfigPanelComponent'](){const _0x150b40=_0x370a48;return(0x0,_univerjs_ui[_0x150b40(0x2d5)])(()=>{const _0x2f2674=_0x150b40;var _0x562689,_0x3a01dd,_0x58d808;return(0x0,react_jsx_runtime[_0x2f2674(0x33e)])(MCPConfigPanel,{'config':this[_0x2f2674(0x29c)]['value'],'mcpCoreConfig':this[_0x2f2674(0x21b)][_0x2f2674(0x299)],'currentApiKey$':this[_0x2f2674(0x200)],'onSave':this[_0x2f2674(0x318)],'loading':this['_loading$'][_0x2f2674(0x299)],'connectionStatus$':(_0x562689=this[_0x2f2674(0x312)])===null||_0x562689===void 0x0?void 0x0:_0x562689[_0x2f2674(0x227)],'connectionError$':(_0x3a01dd=this['_mcpConnectionController'])===null||_0x3a01dd===void 0x0?void 0x0:_0x3a01dd[_0x2f2674(0x2ca)],'currentSessionId$':(_0x58d808=this[_0x2f2674(0x312)])===null||_0x58d808===void 0x0?void 0x0:_0x58d808[_0x2f2674(0x272)]});},this['_injector']);}[_0x370a48(0x279)](){const _0x1af531=_0x370a48;this[_0x1af531(0x269)](this['_configService'][_0x1af531(0x20a)](_univerjs_pro_mcp[_0x1af531(0x2f1)])[_0x1af531(0x235)](_0x5c8c0f=>{const _0x5b5600=_0x1af531;this[_0x5b5600(0x21b)][_0x5b5600(0x2f6)](_0x5c8c0f||{});}));const _0x318b46=this[_0x1af531(0x266)][_0x1af531(0x34c)](_univerjs_pro_mcp['MCP_PLUGIN_CONFIG_KEY']);this[_0x1af531(0x21b)][_0x1af531(0x2f6)](_0x318b46||{}),this[_0x1af531(0x269)](this[_0x1af531(0x266)][_0x1af531(0x20a)](MCP_UI_PLUGIN_CONFIG_KEY)[_0x1af531(0x235)](_0x23e7f2=>{const _0x730c19=_0x1af531;this[_0x730c19(0x29c)][_0x730c19(0x2f6)](_0x23e7f2||{});}));const _0x16fad6=this[_0x1af531(0x266)][_0x1af531(0x34c)](MCP_UI_PLUGIN_CONFIG_KEY);this['_config$'][_0x1af531(0x2f6)](_0x16fad6||{});}async['_loadStoredApiKey'](){const _0x4096dd=_0x370a48,_0x13f11b=this[_0x4096dd(0x266)][_0x4096dd(0x34c)](MCP_UI_PLUGIN_CONFIG_KEY);if(!(_0x13f11b===null||_0x13f11b===void 0x0?void 0x0:_0x13f11b[_0x4096dd(0x344)]))return;const _0x4dee95=await this['_localStorageService'][_0x4096dd(0x24b)](MCP_API_KEY_STORAGE_KEY);_0x4dee95&&(this['_mcpConnectionController']['__setCustomHeaders']({'Authorization':'Bearer\x20'+_0x4dee95}),this[_0x4096dd(0x200)][_0x4096dd(0x2f6)](_0x4dee95));}async[_0x370a48(0x2de)](_0x179cca){const _0x148970=_0x370a48;if(!_0x179cca['apiKey']||_0x179cca[_0x148970(0x204)][_0x148970(0x222)]()[_0x148970(0x32b)]===0x0)return{'isValid':![],'errorMessage':this[_0x148970(0x24e)]['t'](_0x148970(0x347))};if(_0x179cca[_0x148970(0x204)]['trim']()[_0x148970(0x32b)]<0xa)return{'isValid':![],'errorMessage':this['_localeService']['t'](_0x148970(0x2b2))};try{const _0x187ec9=await this[_0x148970(0x2da)][_0x148970(0x1f9)](_univerjs_pro_mcp[_0x148970(0x2dc)])['validateApiKey'](_0x179cca[_0x148970(0x204)][_0x148970(0x222)]());if(!_0x187ec9[_0x148970(0x321)])return{'isValid':![],'errorMessage':_0x187ec9[_0x148970(0x331)]||this['_localeService']['t'](_0x148970(0x22e))};return{'isValid':!![]};}catch(_0x2f9b77){return console[_0x148970(0x320)](_0x148970(0x275),_0x2f9b77),{'isValid':!![]};}}};MCPConfigUIController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0x370a48(0x2c4)])(_univerjs_core[_0x370a48(0x1f3)])),__decorateParam(0x1,_univerjs_ui['IUIPartsService']),__decorateParam(0x2,_univerjs_core[_0x370a48(0x202)]),__decorateParam(0x3,_univerjs_core[_0x370a48(0x2b5)]),__decorateParam(0x4,_univerjs_ui[_0x370a48(0x315)]),__decorateParam(0x5,_univerjs_ui[_0x370a48(0x203)]),__decorateParam(0x6,(0x0,_univerjs_core['Inject'])(_univerjs_ui[_0x370a48(0x2b8)])),__decorateParam(0x7,(0x0,_univerjs_core['Inject'])(_univerjs_core['LocaleService'])),__decorateParam(0x8,_univerjs_core[_0x370a48(0x27d)]),__decorateParam(0x9,(0x0,_univerjs_core[_0x370a48(0x2c4)])(_univerjs_pro_mcp[_0x370a48(0x2dc)]))],MCPConfigUIController);const OpenMCPConfigPanelCommand={'id':_0x370a48(0x327),'type':_univerjs_core[_0x370a48(0x270)][_0x370a48(0x219)],'handler':async(_0x438b31,_0x1085a8)=>{const _0x13d003=_0x370a48;return _0x438b31[_0x13d003(0x1f9)](MCPConfigUIController)['showConfigPanel'](),!![];}};function mapStatusToI18NKey(_0x4b3b65,_0x1c7a66){const _0x45cf2e=_0x370a48;switch(_0x4b3b65){case _univerjs_pro_mcp['MCPConnectionStatus'][_0x45cf2e(0x308)]:return _0x45cf2e(0x2b0);case _univerjs_pro_mcp[_0x45cf2e(0x276)]['CONNECTING']:return _0x45cf2e(0x24c);case _univerjs_pro_mcp[_0x45cf2e(0x276)][_0x45cf2e(0x2af)]:return _0x45cf2e(0x28d);case _univerjs_pro_mcp[_0x45cf2e(0x276)]['FAILED']:switch(_0x1c7a66){case _univerjs_pro_mcp[_0x45cf2e(0x300)][_0x45cf2e(0x23c)]:return'mcpStatus.unauthorized';case _univerjs_pro_mcp[_0x45cf2e(0x300)][_0x45cf2e(0x346)]:return _0x45cf2e(0x21d);case _univerjs_pro_mcp[_0x45cf2e(0x300)][_0x45cf2e(0x31e)]:return _0x45cf2e(0x29a);case _univerjs_pro_mcp['MCPConnectionError']['MAX_RETRIES_EXCEEDED']:return'mcpStatus.maxRetriesExceeded';default:return _0x45cf2e(0x2e6);}case _univerjs_pro_mcp[_0x45cf2e(0x276)][_0x45cf2e(0x336)]:return _0x45cf2e(0x26a);default:return _0x45cf2e(0x1fc);}}function getTooltipText(_0x1c0ed4,_0x3e4b80,_0xc5916d,_0x2d7656=!![]){const _0x506b6d=_0x370a48,_0x56b858=mapStatusToI18NKey(_0x1c0ed4,_0x3e4b80),_0x471a1a=_0xc5916d['t'](_0x56b858);if(!_0x2d7656)return _0x471a1a;if(_0x1c0ed4===_univerjs_pro_mcp[_0x506b6d(0x276)][_0x506b6d(0x308)]&&_0x3e4b80===_univerjs_pro_mcp[_0x506b6d(0x300)][_0x506b6d(0x23c)])return _0x471a1a+'\x20-\x20'+_0xc5916d['t']('mcpStatus.clickToConfigure');else{if(_0x1c0ed4===_univerjs_pro_mcp[_0x506b6d(0x276)][_0x506b6d(0x2af)])return''+_0x471a1a;else{if(_0x1c0ed4===_univerjs_pro_mcp[_0x506b6d(0x276)][_0x506b6d(0x308)]||_0x1c0ed4===_univerjs_pro_mcp[_0x506b6d(0x276)][_0x506b6d(0x2ad)])return _0x471a1a+_0x506b6d(0x329)+_0xc5916d['t'](_0x506b6d(0x297));}}return _0x471a1a;}function getStatusColor(_0x107196){const _0x4ef18e=_0x370a48;switch(_0x107196){case _univerjs_pro_mcp[_0x4ef18e(0x276)][_0x4ef18e(0x2af)]:return'univer-text-green-500';case _univerjs_pro_mcp[_0x4ef18e(0x276)]['CONNECTING']:case _univerjs_pro_mcp[_0x4ef18e(0x276)][_0x4ef18e(0x336)]:return _0x4ef18e(0x2e0);case _univerjs_pro_mcp[_0x4ef18e(0x276)][_0x4ef18e(0x2ad)]:case _univerjs_pro_mcp[_0x4ef18e(0x276)][_0x4ef18e(0x308)]:return _0x4ef18e(0x291);default:return'univer-text-gray-500';}}function MCPStatusDisplay(_0x185fbf){const _0x843b7b=_0x370a48,{status$:_0x37992f,error$:_0x202d2e,onConfigure:_0x30f592,showClickable:showClickable=!![]}=_0x185fbf,_0x576350=(0x0,_univerjs_ui['useObservable'])(_0x37992f,_univerjs_pro_mcp['MCPConnectionStatus'][_0x843b7b(0x308)]),_0x51d787=(0x0,_univerjs_ui[_0x843b7b(0x282)])(_0x202d2e,_univerjs_pro_mcp[_0x843b7b(0x300)][_0x843b7b(0x208)]),_0x162702=(0x0,_univerjs_ui['useDependency'])(_univerjs_core[_0x843b7b(0x28c)]),_0x506379=_0x576350===_univerjs_pro_mcp['MCPConnectionStatus']['CONNECTED'];_0x576350===_univerjs_pro_mcp[_0x843b7b(0x276)][_0x843b7b(0x23b)]||_univerjs_pro_mcp[_0x843b7b(0x276)][_0x843b7b(0x336)];const _0x3eee1a=_0x162702['t'](mapStatusToI18NKey(_0x576350,_0x51d787)),_0xcda869=getTooltipText(_0x576350,_0x51d787,_0x162702,showClickable),_0x5f26f5=getStatusColor(_0x576350),_0x2fcb30=_0x506379?(0x0,react_jsx_runtime[_0x843b7b(0x33e)])(_univerjs_icons['OnLineIcon'],{}):(0x0,react_jsx_runtime[_0x843b7b(0x33e)])(_univerjs_icons[_0x843b7b(0x26f)],{}),_0x5793c7=(0x0,react[_0x843b7b(0x2cd)])(()=>{if(showClickable&&_0x30f592)_0x30f592();},[showClickable,_0x30f592]);function _0x328b9f(){const _0x2e5ef1=_0x843b7b;return(0x0,react_jsx_runtime[_0x2e5ef1(0x212)])(_0x2e5ef1(0x23d),{'className':(0x0,_univerjs_design[_0x2e5ef1(0x2bc)])(_0x2e5ef1(0x2be),showClickable&&_0x30f592&&_0x2e5ef1(0x2f0)),'role':_0x2e5ef1(0x2d9),'onClick':showClickable&&_0x30f592?_0x5793c7:void 0x0,'children':[(0x0,react_jsx_runtime[_0x2e5ef1(0x33e)])(_0x2e5ef1(0x23d),{'className':(0x0,_univerjs_design['clsx'])(_0x2e5ef1(0x2c8),_0x5f26f5),'children':_0x2fcb30}),(0x0,react_jsx_runtime[_0x2e5ef1(0x33e)])(_0x2e5ef1(0x23d),{'className':_0x2e5ef1(0x31a),'children':_0x3eee1a})]});}return(0x0,react_jsx_runtime[_0x843b7b(0x33e)])(_univerjs_design['Tooltip'],{'title':_0xcda869,'placement':_0x843b7b(0x2df),'children':_0x328b9f()});}let MCPConnectionUIController=class MCPConnectionUIController extends _univerjs_core[_0x370a48(0x23a)]{constructor(_0x2b3520,_0x209b93,_0x3c1c37,_0x151412){const _0x10c241=_0x370a48;super(),this['_injector']=_0x2b3520,this[_0x10c241(0x246)]=_0x209b93,this[_0x10c241(0x33d)]=_0x3c1c37,this['_configService']=_0x151412,this[_0x10c241(0x2fd)](),this[_0x10c241(0x2f2)]();}['_initAutoConnect'](){const _0x48403d=_0x370a48,_0x3d7090=this[_0x48403d(0x266)]['getConfig'](MCP_UI_PLUGIN_CONFIG_KEY);if(_0x3d7090===null||_0x3d7090===void 0x0?void 0x0:_0x3d7090['showDeveloperTools'])this[_0x48403d(0x246)][_0x48403d(0x230)]=![];}[_0x370a48(0x2f2)](){const _0x335b84=_0x370a48,_0x34c3ba=this[_0x335b84(0x266)]['getConfig'](MCP_UI_PLUGIN_CONFIG_KEY);if((_0x34c3ba===null||_0x34c3ba===void 0x0?void 0x0:_0x34c3ba['showStatus'])!==![])this[_0x335b84(0x269)](this[_0x335b84(0x33d)][_0x335b84(0x2c9)](_univerjs_ui[_0x335b84(0x2b9)]['HEADER_MENU'],()=>{const _0x1aafe1=_0x335b84;var _0x108fce;return(0x0,_univerjs_ui['connectInjector'])(passProps({'status$':this[_0x1aafe1(0x246)][_0x1aafe1(0x227)],'error$':this['_connectionController'][_0x1aafe1(0x2ca)],'onConfigure':()=>this[_0x1aafe1(0x30a)](),'showClickable':(_0x108fce=_0x34c3ba===null||_0x34c3ba===void 0x0?void 0x0:_0x34c3ba[_0x1aafe1(0x344)])!==null&&_0x108fce!==void 0x0?_0x108fce:![]}),this[_0x1aafe1(0x2da)]);}));}[_0x370a48(0x30a)](){const _0x1c4b13=_0x370a48;this[_0x1c4b13(0x2da)][_0x1c4b13(0x1f9)](MCPConfigUIController)[_0x1c4b13(0x2a0)]();}};MCPConnectionUIController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0x370a48(0x2c4)])(_univerjs_core['Injector'])),__decorateParam(0x1,(0x0,_univerjs_core[_0x370a48(0x2c4)])(_univerjs_pro_mcp[_0x370a48(0x2dc)])),__decorateParam(0x2,_univerjs_ui['IUIPartsService']),__decorateParam(0x3,_univerjs_core[_0x370a48(0x202)])],MCPConnectionUIController);function _0x2d59(){const _0x596032=['Enable\x20Authentication','defineProperty','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Disposable','CONNECTING','UNAUTHORIZED','div','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','权限验证失败,请检查您的\x20API\x20密钥','什么是\x20API\x20密钥?','724orBOEN','mcpConfig.apiKey','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','_connectionController','保存配置','MCP\x20客户端配置','univer.ai','mcpConfig.connectionInfo','getItem','mcpStatus.connecting','univer-size-4','_localeService','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','8823ccaCWj','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP:\x20未授权','MCP\x20Client\x20Configuration','useDependency','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','show','MCP\x20Retrying...','onStarting','配置\x20MCP\x20使用\x20AI\x20操作电子表格','带有\x20Bearer\x20前缀的\x20API\x20密钥。','Click\x20to\x20connect\x20MCP','连接中...','mcpConfig.apiKeyHint','UniverMCPUIPlugin','MCP\x20重连中...','univer-flex-1','univer-bg-red-500','mcp-ui.config','mcpConfig.connectionStatus.failed','univer-min-w-0\x20univer-flex-1','_configService','has','mcp.apiKey','disposeWithMe','mcpStatus.retrying','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','univer.plus','UniverMCPPlugin','Enter\x20your\x20API\x20key','OffLineIcon','CommandType','univer-bg-blue-500','sessionId$','_loadStoredApiKey','MCP:\x20Session\x20ID\x20Occupied','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','MCPConnectionStatus','Univer\x20AI\x20控制台','9KWDJAt','_initConfigSync','_menuManagerService','MAX_RETRIES_EXCEEDED','45740Bqjdxj','ILogService','_dialogService','toPrimitive','mcp-config-dialog','OTHERS','useObservable','Configuration\x20Notes:','_loading$','重连中...','API\x20密钥','close','mcpConfig.description','univer-flex\x20univer-items-center\x20univer-gap-3','会话ID','version','LocaleService','mcpStatus.connected','几秒钟内获取您的\x20API\x20密钥','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','univer-flex\x20univer-flex-wrap\x20univer-gap-2','univer-text-red-500','includes','mcpConfig.apiApplyInfo.univerAiLabel','MCPConnectionUIController','Authorization:','univer-text-sm\x20univer-font-medium','mcpStatus.clickToConnect','Button','value','mcpStatus.networkError','span','_config$','Save\x20Configuration','_commandService','univer-bg-green-500','showConfigPanel','MCP\x20Connection\x20Failed','decorate','Module','_createConfigPanelComponent','univer-space-y-5','univer-flex\x20univer-items-center\x20univer-gap-2','univer-size-2\x20univer-rounded-full','string','open','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP:\x20超出最大重试次数','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','FAILED','会话\x20ID\x20已被占用,请稍后再试','CONNECTED','mcpStatus.disconnected','0.21.0','mcpConfig.validation.apiKeyTooShort','mcpConfig.apiKeyPlaceholder','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','ILocalStorageService','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','MCP_UI_PLUGIN','ComponentManager','BuiltInUIPart','<API_KEY>','add','clsx','pluginName','univer-flex\x20univer-items-center','8412844VJwZRO','您的\x20API\x20密钥安全存储在本地存储中','mcpConfig.configInstructions','CheckMarkIcon','BehaviorSubject','Inject','univer-text-xs\x20univer-text-gray-600','OpenMCPConfigPanelCommand','Session\x20ID','univer-mr-2\x20univer-flex\x20univer-text-xl','registerComponent','connectionError$','object','329BlwatE','useCallback','stringify','__setCustomHeaders','univer-space-y-3','MCPConfigPanel','_messageService','constructor','重启您的\x20MCP\x20客户端以使配置生效','connectInjector','MCP\x20Connected','点击配置\x20MCP','MenuIcon','button','_injector','Error','MCPConnectionController','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','_validateConfig','bottom','univer-text-yellow-500','Input','univer_session_id:','merge','MCP\x20连接失败','MCP\x20Unknown\x20Status','mcpStatus.failed','Copy\x20the\x20JSON\x20configuration\x20below','ISocketService','mcpConfig.note1','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','mcpConfig.configStep1','univer-flex\x20univer-items-start\x20univer-gap-3','Success','MenuItemType','mcpConfig.connectionStatus.connecting','\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','MCP_PLUGIN_CONFIG_KEY','_initStatusComponent','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','next','配置更改将立即生效','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','packageName','_logService','MCP\x20Disconnected','mcpConfig.configStep2','_initAutoConnect','mcpConfig.configError','配置参数:','MCPConnectionError','symbol','56766elkNgU','已连接','function','IMenuManagerService','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','125XWnzCM','DISCONNECTED','mcpConfig.note2','_handleConfigure','5616032iQcSRb','网络连接错误,请检查您的网络连接','_localStorageService','register','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','_mcpConnectionController','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','Plugin','IDialogService','univer-text-sm\x20univer-text-gray-500','univer-space-y-4','_handleConfigSave','https://console.univer.plus','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','text','MCP:\x20会话\x20ID\x20已被占用','NETWORK_ERROR','10371170tVpobY','warn','isValid','您的\x20API\x20密钥将在此浏览器中本地存储','MCPStatusDisplay','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','univer-text-blue-600','registerCommand','mcp-ui.command.openConfigPanel','getOwnPropertyDescriptor','\x20-\x20','_blank','length','univer-text-gray-400','mcpConfig.configStep3','启用身份验证','复制以下\x20JSON\x20配置','forEach','error','_initializeMenus','Configuration\x20Parameters:','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','mcpConfig.title','RETRYING','What\x20is\x20API\x20Key?','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Univer\x20AI\x20Console','MCP\x20Configuration','点击连接\x20MCP','API\x20密钥无效,请检查密钥是否正确','_uiPartsService','jsx','mcpConfig.sessionIdDescription','启用身份验证以获得安全连接','http','<SESSION_ID>','mcpConfig.save','showDeveloperTools','mcpConfig.configParameters','SESSION_ID_OCCUPIED','mcpConfig.validation.apiKeyRequired','CloseIcon','getCurrentConfig','MCPUIMenuController','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','getConfig','_config','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','请输入您的\x20API\x20密钥','_initializeCommands','将以下配置添加到您的\x20MCP\x20客户端设置中:','univer-font-medium','mcpConfig.configStepTitle','Injector','errorMessage','保存中...','DependentOn','Click\x20to\x20configure\x20MCP','Connected','get','MessageType','API\x20密钥不能为空','mcpStatus.unknown','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','Configuration\x20Steps:','_apiKey$','default','IConfigService','IMessageService','apiKey','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20已断开','pre','NONE','toStringTag','subscribeConfigValue$','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','配置无效','API\x20key\x20is\x20required','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','885668NPlvcH','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','mcpServerUrl','jsxs','API\x20key\x20with\x20Bearer\x20prefix.','MCP:\x20网络错误','Bearer\x20','mcpConfig.connectionStatus.retrying','MCP\x20配置','API\x20密钥长度至少需要\x2010\x20位','COMMAND','@univerjs-pro/mcp-ui','_mcpCoreConfig$','label','mcpStatus.sessionOccupied','off','univer-bg-gray-500','univer-space-y-2','enUS','trim','univer-text-xs\x20univer-text-gray-500','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','mcpConfig.apiApplyInfo.title','Max\x20Retries','connectionStatus$','univer-flex\x20univer-items-start\x20univer-gap-2','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','Retrying...','mcpConfig.apiApplyInfo.getStarted','useState','univer-flex\x20univer-gap-3','mcpConfig.validation.invalidApiKey','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','enableAutoConnect','超出最大重试次数,请稍后再试','MCP:\x20Unauthorized','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','subscribe','Invalid\x20configuration'];_0x2d59=function(){return _0x596032;};return _0x2d59();}function passProps(_0x1cdb01){const {status$:_0x99a0ff,error$:_0x308af7,onConfigure:_0x27631e,showClickable:_0x96e842}=_0x1cdb01;return function _0xf4deee(){const _0x305f86=_0x8260;return(0x0,react_jsx_runtime[_0x305f86(0x33e)])(MCPStatusDisplay,{'status$':_0x99a0ff,'error$':_0x308af7,'onConfigure':_0x27631e,'showClickable':_0x96e842});};}function MCPConfigMenuItemFactory(_0x56296c){const _0x525394=_0x370a48;return{'id':OpenMCPConfigPanelCommand['id'],'type':_univerjs_ui[_0x525394(0x2ee)]['BUTTON'],'icon':_0x525394(0x2d8),'title':_0x525394(0x335),'tooltip':_0x525394(0x335)};}const menuSchema={[_univerjs_ui['RibbonStartGroup'][_0x370a48(0x281)]]:{[OpenMCPConfigPanelCommand['id']]:{'order':0xa,'menuItemFactory':MCPConfigMenuItemFactory}}};let MCPUIMenuController=class MCPUIMenuController extends _univerjs_core[_0x370a48(0x23a)]{constructor(_0xeceeb5,_0x2853eb){const _0xc9fff8=_0x370a48;super(),this[_0xc9fff8(0x29e)]=_0xeceeb5,this[_0xc9fff8(0x27a)]=_0x2853eb,this[_0xc9fff8(0x1ef)](),this[_0xc9fff8(0x332)]();}[_0x370a48(0x1ef)](){const _0x105298=_0x370a48;[OpenMCPConfigPanelCommand][_0x105298(0x330)](_0x5d2dd6=>{const _0x2f1263=_0x105298;this[_0x2f1263(0x269)](this[_0x2f1263(0x29e)][_0x2f1263(0x326)](_0x5d2dd6));});}[_0x370a48(0x332)](){const _0x432167=_0x370a48;this[_0x432167(0x27a)]['mergeMenu'](menuSchema);}};MCPUIMenuController=__decorate([__decorateParam(0x0,_univerjs_core['ICommandService']),__decorateParam(0x1,_univerjs_ui[_0x370a48(0x305)])],MCPUIMenuController);const locale={'mcpStatus':{'disconnected':_0x370a48(0x2fb),'connecting':'MCP\x20Connecting...','connected':_0x370a48(0x2d6),'failed':_0x370a48(0x2a1),'retrying':_0x370a48(0x258),'unknown':_0x370a48(0x2e5),'unauthorized':_0x370a48(0x232),'sessionOccupied':_0x370a48(0x274),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x370a48(0x205),'clickToConnect':_0x370a48(0x25c),'clickToConfigure':_0x370a48(0x1f7)},'mcpConfig':{'title':_0x370a48(0x33a),'description':_0x370a48(0x306),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x370a48(0x26e),'apiKeyHint':_0x370a48(0x224),'enableAuth':_0x370a48(0x237),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x370a48(0x254),'configInstructions':_0x370a48(0x252),'configStepTitle':_0x370a48(0x1ff),'configStep1':_0x370a48(0x2e7),'configStep2':_0x370a48(0x2f4),'configStep3':_0x370a48(0x28f),'sessionId':_0x370a48(0x2c7),'sessionIdDescription':_0x370a48(0x233),'authorizationDescription':_0x370a48(0x213),'configParameters':_0x370a48(0x333),'maxRetries':_0x370a48(0x226),'save':_0x370a48(0x29d),'saving':'Saving...','note1':_0x370a48(0x2f8),'note2':_0x370a48(0x22f),'configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x370a48(0x337),'description':_0x370a48(0x20e),'univerAiLabel':_0x370a48(0x339),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x370a48(0x20d),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x370a48(0x236),'invalidApiKey':_0x370a48(0x2aa)},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':_0x370a48(0x1f8),'failed':'Connection\x20Failed','retrying':_0x370a48(0x22a)},'connectionError':{'unauthorized':_0x370a48(0x250),'sessionOccupied':_0x370a48(0x239),'networkError':_0x370a48(0x24f),'maxRetriesExceeded':_0x370a48(0x338)}}},locale$1={'mcpStatus':{'disconnected':_0x370a48(0x206),'connecting':'MCP\x20连接中...','connected':'MCP\x20已连接','failed':_0x370a48(0x2e4),'retrying':_0x370a48(0x260),'unknown':'MCP\x20状态未知','unauthorized':_0x370a48(0x253),'sessionOccupied':_0x370a48(0x31d),'networkError':_0x370a48(0x214),'maxRetriesExceeded':_0x370a48(0x2ab),'clickToConnect':_0x370a48(0x33b),'clickToConfigure':_0x370a48(0x2d7)},'mcpConfig':{'title':_0x370a48(0x217),'description':_0x370a48(0x25a),'apiKey':_0x370a48(0x286),'apiKeyPlaceholder':_0x370a48(0x1ee),'apiKeyHint':_0x370a48(0x322),'enableAuth':_0x370a48(0x32e),'enableAuthHint':_0x370a48(0x340),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x370a48(0x248),'configInstructions':_0x370a48(0x1f0),'configStepTitle':'配置步骤:','configStep1':_0x370a48(0x32f),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x370a48(0x2d4),'sessionId':_0x370a48(0x28a),'sessionIdDescription':_0x370a48(0x313),'authorizationDescription':_0x370a48(0x25b),'configParameters':_0x370a48(0x2ff),'maxRetries':'最大重试次数','save':_0x370a48(0x247),'saving':_0x370a48(0x1f5),'note1':_0x370a48(0x2f7),'note2':_0x370a48(0x2c0),'configSaved':'配置保存成功','configError':'配置保存失败','apiApplyInfo':{'title':_0x370a48(0x240),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0x370a48(0x277),'getStarted':_0x370a48(0x28e)},'validation':{'apiKeyRequired':_0x370a48(0x1fb),'apiKeyTooShort':_0x370a48(0x218),'invalidConfig':_0x370a48(0x20c),'invalidApiKey':_0x370a48(0x33c)},'connectionStatus':{'disconnected':'未连接','connecting':_0x370a48(0x25d),'connected':_0x370a48(0x303),'failed':'连接失败','retrying':_0x370a48(0x285)},'connectionError':{'unauthorized':_0x370a48(0x23f),'sessionOccupied':_0x370a48(0x2ae),'networkError':_0x370a48(0x30c),'maxRetriesExceeded':_0x370a48(0x231)}}};var name=_0x370a48(0x21a),version=_0x370a48(0x2b1);let UniverMCPUIPlugin=class UniverMCPUIPlugin extends _univerjs_core[_0x370a48(0x314)]{constructor(_0x4bdc66=defaultPluginConfig,_0xdccb18,_0x4e9798,_0x2ce9ea,_0x5ce173,_0xf2862e){const _0x2dcfc5=_0x370a48;super(),this['_config']=_0x4bdc66,this['_injector']=_0xdccb18,this[_0x2dcfc5(0x266)]=_0x4e9798,this[_0x2dcfc5(0x33d)]=_0x2ce9ea,this[_0x2dcfc5(0x30d)]=_0x5ce173,this[_0x2dcfc5(0x24e)]=_0xf2862e;const {..._0x4e889f}=(0x0,_univerjs_core[_0x2dcfc5(0x2e3)])({},defaultPluginConfig,this[_0x2dcfc5(0x1ec)]);this[_0x2dcfc5(0x266)]['setConfig'](MCP_UI_PLUGIN_CONFIG_KEY,_0x4e889f);}async[_0x370a48(0x259)](){const _0x219164=_0x370a48,_0x419bd4=[[MCPConnectionUIController],[MCPConfigUIController],[MCPUIMenuController]];if(!this['_injector'][_0x219164(0x267)](_univerjs_network['ISocketService']))_0x419bd4['push']([_univerjs_network[_0x219164(0x2e8)],{'useClass':_univerjs_network['WebSocketService']}]);_0x419bd4[_0x219164(0x330)](_0x1fc9d8=>this[_0x219164(0x2da)][_0x219164(0x2bb)](_0x1fc9d8)),this[_0x219164(0x2da)][_0x219164(0x1f9)](MCPConnectionUIController),this[_0x219164(0x2da)][_0x219164(0x1f9)](MCPConfigUIController),this['_injector'][_0x219164(0x1f9)](MCPUIMenuController);}};_defineProperty(UniverMCPUIPlugin,_0x370a48(0x2bd),_0x370a48(0x2b7)),_defineProperty(UniverMCPUIPlugin,_0x370a48(0x2f9),name),_defineProperty(UniverMCPUIPlugin,_0x370a48(0x28b),version),UniverMCPUIPlugin=__decorate([(0x0,_univerjs_core[_0x370a48(0x1f6)])(_univerjs_pro_mcp[_0x370a48(0x26d)]),__decorateParam(0x1,(0x0,_univerjs_core[_0x370a48(0x2c4)])(_univerjs_core[_0x370a48(0x1f3)])),__decorateParam(0x2,_univerjs_core[_0x370a48(0x202)]),__decorateParam(0x3,_univerjs_ui['IUIPartsService']),__decorateParam(0x4,_univerjs_core[_0x370a48(0x2b5)]),__decorateParam(0x5,(0x0,_univerjs_core['Inject'])(_univerjs_core[_0x370a48(0x28c)]))],UniverMCPUIPlugin),exports['MCPConfigPanel']=MCPConfigPanel,Object[_0x370a48(0x238)](exports,'MCPConfigUIController',{'enumerable':!![],'get':function(){return MCPConfigUIController;}}),Object['defineProperty'](exports,_0x370a48(0x294),{'enumerable':!![],'get':function(){return MCPConnectionUIController;}}),exports[_0x370a48(0x323)]=MCPStatusDisplay,Object[_0x370a48(0x238)](exports,_0x370a48(0x34a),{'enumerable':!![],'get':function(){return MCPUIMenuController;}}),exports[_0x370a48(0x2c6)]=OpenMCPConfigPanelCommand,Object['defineProperty'](exports,_0x370a48(0x25f),{'enumerable':!![],'get':function(){return UniverMCPUIPlugin;}}),exports[_0x370a48(0x221)]=locale,exports['zhCN']=locale$1;
@@ -1 +1 @@
1
- function _0x28a4(_0x186881,_0x47b5eb){_0x186881=_0x186881-0x79;const _0x38304d=_0x3830();let _0x28a437=_0x38304d[_0x186881];return _0x28a437;}const _0x5993d2=_0x28a4;(function(_0x33a6c1,_0xf6e4fb){const _0x3a75a4=_0x28a4,_0x35556e=_0x33a6c1();while(!![]){try{const _0x557fb8=-parseInt(_0x3a75a4(0x7b))/0x1+parseInt(_0x3a75a4(0x97))/0x2*(-parseInt(_0x3a75a4(0x85))/0x3)+-parseInt(_0x3a75a4(0x9e))/0x4*(-parseInt(_0x3a75a4(0x89))/0x5)+parseInt(_0x3a75a4(0xa6))/0x6+parseInt(_0x3a75a4(0xa0))/0x7*(parseInt(_0x3a75a4(0xa1))/0x8)+-parseInt(_0x3a75a4(0xac))/0x9*(parseInt(_0x3a75a4(0x8b))/0xa)+parseInt(_0x3a75a4(0x93))/0xb;if(_0x557fb8===_0xf6e4fb)break;else _0x35556e['push'](_0x35556e['shift']());}catch(_0x1dd39d){_0x35556e['push'](_0x35556e['shift']());}}}(_0x3830,0xb664a));function _0x3830(){const _0x2d17a7=['Configuration\x20Parameters:','Configuration\x20saved\x20successfully','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Connection\x20Failed','Saving...','Enter\x20your\x20API\x20key','417YLvmDg','Disconnected','Connecting...','Copy\x20the\x20JSON\x20configuration\x20below','10NhOIZi','MCP\x20Unknown\x20Status','97220WktTUv','What\x20is\x20API\x20Key?','Retrying...','API\x20Key','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Connected','Configuration\x20Steps:','Univer\x20AI\x20Console','16208104geGSNd','MCP\x20Retrying...','Session\x20ID','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','14578NRwVrQ','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','API\x20key\x20with\x20Bearer\x20prefix.','Connection\x20Failed','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP:\x20Session\x20ID\x20Occupied','Get\x20your\x20API\x20key\x20in\x20seconds','2845916hkDjIN','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','8754242wWvGqC','8ZNkevo','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Save\x20Configuration','MCP:\x20Unauthorized','Click\x20to\x20configure\x20MCP','71100bpadxk','Enable\x20Authentication','Invalid\x20configuration','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','981GiwSMl','MCP\x20Disconnected','API\x20key\x20is\x20required','1338927hrJnkM','Max\x20Retries','MCP:\x20Network\x20Error','Click\x20to\x20connect\x20MCP'];_0x3830=function(){return _0x2d17a7;};return _0x3830();}const e={'mcpStatus':{'disconnected':_0x5993d2(0x79),'connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':_0x5993d2(0x82),'retrying':_0x5993d2(0x94),'unknown':_0x5993d2(0x8a),'unauthorized':_0x5993d2(0xa4),'sessionOccupied':_0x5993d2(0x9c),'networkError':_0x5993d2(0x7d),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x5993d2(0x7e),'clickToConfigure':_0x5993d2(0xa5)},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x5993d2(0x8e),'apiKeyPlaceholder':_0x5993d2(0x84),'apiKeyHint':_0x5993d2(0xab),'enableAuth':_0x5993d2(0xa7),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x5993d2(0x91),'configStep1':_0x5993d2(0x88),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x5993d2(0xa2),'sessionId':_0x5993d2(0x95),'sessionIdDescription':_0x5993d2(0x9b),'authorizationDescription':_0x5993d2(0x99),'configParameters':_0x5993d2(0x7f),'maxRetries':_0x5993d2(0x7c),'save':_0x5993d2(0xa3),'saving':_0x5993d2(0x83),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x5993d2(0x9f),'configSaved':_0x5993d2(0x80),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x5993d2(0x8c),'description':_0x5993d2(0x8f),'univerAiLabel':_0x5993d2(0x92),'getStarted':_0x5993d2(0x9d)},'validation':{'apiKeyRequired':_0x5993d2(0x7a),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x5993d2(0xa8),'invalidApiKey':_0x5993d2(0x96)},'connectionStatus':{'disconnected':_0x5993d2(0x86),'connecting':_0x5993d2(0x87),'connected':_0x5993d2(0x90),'failed':_0x5993d2(0x9a),'retrying':_0x5993d2(0x8d)},'connectionError':{'unauthorized':_0x5993d2(0x98),'sessionOccupied':_0x5993d2(0xaa),'networkError':_0x5993d2(0xa9),'maxRetriesExceeded':_0x5993d2(0x81)}}};module['exports']=e;
1
+ function _0x5eb6(_0x265be6,_0x1aee47){_0x265be6=_0x265be6-0x7f;const _0x3fad6a=_0x3fad();let _0x5eb629=_0x3fad6a[_0x265be6];return _0x5eb629;}const _0x270aa1=_0x5eb6;(function(_0x219b5c,_0x54c6ee){const _0x4c4dac=_0x5eb6,_0x513953=_0x219b5c();while(!![]){try{const _0x20e898=parseInt(_0x4c4dac(0x86))/0x1*(-parseInt(_0x4c4dac(0x9a))/0x2)+parseInt(_0x4c4dac(0x7f))/0x3*(-parseInt(_0x4c4dac(0xad))/0x4)+parseInt(_0x4c4dac(0xa3))/0x5*(parseInt(_0x4c4dac(0x96))/0x6)+-parseInt(_0x4c4dac(0xae))/0x7+-parseInt(_0x4c4dac(0x87))/0x8+parseInt(_0x4c4dac(0x8b))/0x9*(parseInt(_0x4c4dac(0xa6))/0xa)+parseInt(_0x4c4dac(0x83))/0xb;if(_0x20e898===_0x54c6ee)break;else _0x513953['push'](_0x513953['shift']());}catch(_0x465e81){_0x513953['push'](_0x513953['shift']());}}}(_0x3fad,0x83344));const locale$1={'mcpStatus':{'disconnected':_0x270aa1(0xa0),'connecting':_0x270aa1(0x93),'connected':'MCP\x20Connected','failed':_0x270aa1(0x90),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x270aa1(0xa8),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x270aa1(0x9f),'maxRetriesExceeded':_0x270aa1(0x85),'clickToConnect':_0x270aa1(0x84),'clickToConfigure':_0x270aa1(0x8d)},'mcpConfig':{'title':_0x270aa1(0xab),'description':_0x270aa1(0x91),'apiKey':_0x270aa1(0xa7),'apiKeyPlaceholder':_0x270aa1(0xac),'apiKeyHint':_0x270aa1(0x95),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x270aa1(0x89),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x270aa1(0xa2),'configStepTitle':_0x270aa1(0x8f),'configStep1':_0x270aa1(0xaa),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x270aa1(0x9e),'sessionIdDescription':_0x270aa1(0xb2),'authorizationDescription':_0x270aa1(0x94),'configParameters':_0x270aa1(0xa9),'maxRetries':_0x270aa1(0x88),'save':_0x270aa1(0x98),'saving':_0x270aa1(0x9b),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x270aa1(0xa1),'configSaved':_0x270aa1(0x8c),'configError':_0x270aa1(0xa5),'apiApplyInfo':{'title':_0x270aa1(0x8e),'description':_0x270aa1(0x92),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x270aa1(0x82)},'validation':{'apiKeyRequired':_0x270aa1(0x81),'apiKeyTooShort':_0x270aa1(0x8a),'invalidConfig':_0x270aa1(0x9c),'invalidApiKey':_0x270aa1(0x80)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x270aa1(0xb0),'connected':_0x270aa1(0x99),'failed':_0x270aa1(0xb1),'retrying':_0x270aa1(0xaf)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x270aa1(0x9d),'maxRetriesExceeded':_0x270aa1(0x97)}}},locale=locale$1;function _0x3fad(){const _0x2a98cf=['Get\x20your\x20API\x20key\x20in\x20seconds','6098070cVAJKI','Click\x20to\x20connect\x20MCP','MCP:\x20Max\x20Retries\x20Exceeded','1RKWRQA','964472afOslC','Max\x20Retries','Enable\x20authentication\x20for\x20secure\x20connections','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','45zHHATY','Configuration\x20saved\x20successfully','Click\x20to\x20configure\x20MCP','What\x20is\x20API\x20Key?','Configuration\x20Steps:','MCP\x20Connection\x20Failed','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','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\x20Connecting...','API\x20key\x20with\x20Bearer\x20prefix.','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','237684DbtYCQ','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Save\x20Configuration','Connected','1024294xBodRz','Saving...','Invalid\x20configuration','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Session\x20ID','MCP:\x20Network\x20Error','MCP\x20Disconnected','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','135SZfbCL','exports','Failed\x20to\x20save\x20configuration','217130dyWDCH','API\x20Key','MCP:\x20Unauthorized','Configuration\x20Parameters:','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Configuration','Enter\x20your\x20API\x20key','8WcebIO','3920245wjujZj','Retrying...','Connecting...','Connection\x20Failed','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','3540fLCanv','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','API\x20key\x20is\x20required'];_0x3fad=function(){return _0x2a98cf;};return _0x3fad();}module[_0x270aa1(0xa4)]=locale;
@@ -1 +1 @@
1
- const _0x589761=_0x3957;(function(_0x1693d1,_0x3a3d46){const _0x2493c7=_0x3957,_0x7457c2=_0x1693d1();while(!![]){try{const _0x5e5e8e=parseInt(_0x2493c7(0x135))/0x1*(parseInt(_0x2493c7(0x138))/0x2)+parseInt(_0x2493c7(0x153))/0x3+parseInt(_0x2493c7(0x150))/0x4*(-parseInt(_0x2493c7(0x151))/0x5)+parseInt(_0x2493c7(0x13b))/0x6+parseInt(_0x2493c7(0x152))/0x7+-parseInt(_0x2493c7(0x145))/0x8*(-parseInt(_0x2493c7(0x15f))/0x9)+-parseInt(_0x2493c7(0x161))/0xa;if(_0x5e5e8e===_0x3a3d46)break;else _0x7457c2['push'](_0x7457c2['shift']());}catch(_0x3cb766){_0x7457c2['push'](_0x7457c2['shift']());}}}(_0xe7cb,0x1df45));const e={'mcpStatus':{'disconnected':_0x589761(0x159),'connecting':'MCP\x20Connecting...','connected':_0x589761(0x15d),'failed':_0x589761(0x155),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x589761(0x13f),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x589761(0x148),'clickToConnect':_0x589761(0x146),'clickToConfigure':_0x589761(0x149)},'mcpConfig':{'title':_0x589761(0x141),'description':_0x589761(0x162),'apiKey':_0x589761(0x14e),'apiKeyPlaceholder':_0x589761(0x15b),'apiKeyHint':_0x589761(0x143),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x589761(0x163),'connectionInfo':_0x589761(0x14f),'mcpClientConfig':_0x589761(0x14f),'configInstructions':_0x589761(0x14a),'configStepTitle':_0x589761(0x15a),'configStep1':_0x589761(0x140),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x589761(0x158),'sessionId':_0x589761(0x15c),'sessionIdDescription':_0x589761(0x139),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':_0x589761(0x14d),'saving':'Saving...','note1':_0x589761(0x157),'note2':_0x589761(0x13d),'configSaved':_0x589761(0x160),'configError':_0x589761(0x13a),'apiApplyInfo':{'title':_0x589761(0x13c),'description':_0x589761(0x154),'univerAiLabel':_0x589761(0x142),'getStarted':_0x589761(0x15e)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x589761(0x147),'connecting':_0x589761(0x14b),'connected':_0x589761(0x144),'failed':_0x589761(0x13e),'retrying':_0x589761(0x14c)},'connectionError':{'unauthorized':_0x589761(0x156),'sessionOccupied':_0x589761(0x137),'networkError':_0x589761(0x136),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}};module[_0x589761(0x134)]=e;function _0x3957(_0x458e52,_0x2872ff){_0x458e52=_0x458e52-0x134;const _0xe7cb06=_0xe7cb();let _0x3957f9=_0xe7cb06[_0x458e52];return _0x3957f9;}function _0xe7cb(){const _0x140faa=['Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','6jccHxg','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Failed\x20to\x20save\x20configuration','737988uXaqYa','What\x20is\x20API\x20Key?','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Connection\x20Failed','MCP:\x20Unauthorized','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Configuration','Univer\x20AI\x20Console','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Connected','1336BtPzRr','Click\x20to\x20connect\x20MCP','Disconnected','MCP:\x20Max\x20Retries\x20Exceeded','Click\x20to\x20configure\x20MCP','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Connecting...','Retrying...','Save\x20Configuration','API\x20Key','MCP\x20Client\x20Configuration','44feiyMO','25505hXhZgS','1190511hdwKgl','497700ceGUnx','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP\x20Connection\x20Failed','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Disconnected','Configuration\x20Steps:','Enter\x20your\x20API\x20key','Session\x20ID','MCP\x20Connected','Get\x20your\x20API\x20key\x20in\x20seconds','351LVhNvx','Configuration\x20saved\x20successfully','4118070EUXwIE','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Enable\x20authentication\x20for\x20secure\x20connections','exports','41709NkcvZl'];_0xe7cb=function(){return _0x140faa;};return _0xe7cb();}
1
+ const _0x230de0=_0x3cf3;function _0x2768(){const _0x1bcb04=['Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','44637GODdno','exports','Disconnected','212oAzuwZ','Click\x20to\x20configure\x20MCP','Save\x20Configuration','541224KOoUKN','1479410HOvKmQ','Enable\x20Authentication','API\x20key\x20is\x20required','Enter\x20your\x20API\x20key','API\x20key\x20with\x20Bearer\x20prefix.','API\x20Key','8988588ycPjMQ','What\x20is\x20API\x20Key?','12910324KQNCTl','Configuration\x20saved\x20successfully','MCP\x20Client\x20Configuration','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP:\x20Session\x20ID\x20Occupied','MCP:\x20Network\x20Error','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Connected','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Connecting...','MCP\x20Disconnected','MCP:\x20Unauthorized','Univer\x20AI\x20Console','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:\x20Max\x20Retries\x20Exceeded','6162715FImCLG','27ftycRz','2761128eYxzLM','Failed\x20to\x20save\x20configuration','Saving...','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Max\x20Retries','MCP\x20Retrying...','Connecting...','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Invalid\x20configuration','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Unknown\x20Status','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Connection\x20Failed','Session\x20ID'];_0x2768=function(){return _0x1bcb04;};return _0x2768();}(function(_0x46a174,_0xf4e4f9){const _0x2c5de1=_0x3cf3,_0x28abbc=_0x46a174();while(!![]){try{const _0x4c7262=parseInt(_0x2c5de1(0xca))/0x1+-parseInt(_0x2c5de1(0xcb))/0x2+-parseInt(_0x2c5de1(0xc4))/0x3*(parseInt(_0x2c5de1(0xc7))/0x4)+parseInt(_0x2c5de1(0xe3))/0x5+parseInt(_0x2c5de1(0xd1))/0x6+-parseInt(_0x2c5de1(0xd3))/0x7+-parseInt(_0x2c5de1(0xb4))/0x8*(-parseInt(_0x2c5de1(0xe4))/0x9);if(_0x4c7262===_0xf4e4f9)break;else _0x28abbc['push'](_0x28abbc['shift']());}catch(_0x436e50){_0x28abbc['push'](_0x28abbc['shift']());}}}(_0x2768,0xe4308));function _0x3cf3(_0x2c98e8,_0x45450e){_0x2c98e8=_0x2c98e8-0xb4;const _0x27689e=_0x2768();let _0x3cf380=_0x27689e[_0x2c98e8];return _0x3cf380;}const locale={'mcpStatus':{'disconnected':_0x230de0(0xde),'connecting':_0x230de0(0xdd),'connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':_0x230de0(0xb9),'unknown':_0x230de0(0xbf),'unauthorized':_0x230de0(0xdf),'sessionOccupied':_0x230de0(0xd7),'networkError':_0x230de0(0xd8),'maxRetriesExceeded':_0x230de0(0xe2),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x230de0(0xc8)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x230de0(0xbb),'apiKey':_0x230de0(0xd0),'apiKeyPlaceholder':_0x230de0(0xce),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x230de0(0xcc),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x230de0(0xd5),'mcpClientConfig':_0x230de0(0xd5),'configInstructions':_0x230de0(0xda),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x230de0(0xbe),'configStep2':_0x230de0(0xc3),'configStep3':_0x230de0(0xc0),'sessionId':_0x230de0(0xc2),'sessionIdDescription':_0x230de0(0xd6),'authorizationDescription':_0x230de0(0xcf),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x230de0(0xb8),'save':_0x230de0(0xc9),'saving':_0x230de0(0xb6),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x230de0(0xd4),'configError':_0x230de0(0xb5),'apiApplyInfo':{'title':_0x230de0(0xd2),'description':_0x230de0(0xe1),'univerAiLabel':_0x230de0(0xe0),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x230de0(0xcd),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x230de0(0xbd),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x230de0(0xc6),'connecting':_0x230de0(0xba),'connected':_0x230de0(0xdb),'failed':_0x230de0(0xc1),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x230de0(0xdc),'sessionOccupied':_0x230de0(0xb7),'networkError':_0x230de0(0xbc),'maxRetriesExceeded':_0x230de0(0xd9)}}};module[_0x230de0(0xc5)]=locale;
@@ -1 +1 @@
1
- const _0x59f420=_0x484b;(function(_0x150599,_0x1021ec){const _0xe953cf=_0x484b,_0xc9494f=_0x150599();while(!![]){try{const _0x277003=-parseInt(_0xe953cf(0xd4))/0x1*(parseInt(_0xe953cf(0xf3))/0x2)+-parseInt(_0xe953cf(0xf5))/0x3+parseInt(_0xe953cf(0xe3))/0x4*(-parseInt(_0xe953cf(0xec))/0x5)+-parseInt(_0xe953cf(0xfc))/0x6*(-parseInt(_0xe953cf(0xf4))/0x7)+-parseInt(_0xe953cf(0xdd))/0x8*(parseInt(_0xe953cf(0xd6))/0x9)+-parseInt(_0xe953cf(0xdc))/0xa+parseInt(_0xe953cf(0xcf))/0xb;if(_0x277003===_0x1021ec)break;else _0xc9494f['push'](_0xc9494f['shift']());}catch(_0x20feda){_0xc9494f['push'](_0xc9494f['shift']());}}}(_0x2d32,0x6ecc0));const e={'mcpStatus':{'disconnected':_0x59f420(0xf8),'connecting':_0x59f420(0xfd),'connected':_0x59f420(0xd9),'failed':_0x59f420(0xe9),'retrying':_0x59f420(0x100),'unknown':_0x59f420(0xd3),'unauthorized':_0x59f420(0xea),'sessionOccupied':_0x59f420(0xfb),'networkError':_0x59f420(0xef),'maxRetriesExceeded':_0x59f420(0xde),'clickToConnect':_0x59f420(0xfa),'clickToConfigure':_0x59f420(0xd7)},'mcpConfig':{'title':_0x59f420(0xee),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x59f420(0xcd),'enableAuth':_0x59f420(0xf0),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x59f420(0xff),'configInstructions':_0x59f420(0xd2),'configStepTitle':_0x59f420(0xdf),'configStep1':_0x59f420(0xd0),'configStep2':_0x59f420(0xcb),'configStep3':_0x59f420(0xce),'sessionId':_0x59f420(0xd5),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x59f420(0xf2),'configParameters':_0x59f420(0xe1),'maxRetries':_0x59f420(0xcc),'save':_0x59f420(0xe7),'saving':_0x59f420(0xf1),'note1':_0x59f420(0xe2),'note2':_0x59f420(0xe6),'configSaved':_0x59f420(0xe0),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x59f420(0xd1),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x59f420(0xe8)},'validation':{'apiKeyRequired':_0x59f420(0xf6),'apiKeyTooShort':_0x59f420(0xfe),'invalidConfig':_0x59f420(0xda),'invalidApiKey':_0x59f420(0xe5)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x59f420(0xd8),'connected':'Connected','failed':_0x59f420(0xed),'retrying':_0x59f420(0xf9)},'connectionError':{'unauthorized':_0x59f420(0xdb),'sessionOccupied':_0x59f420(0xe4),'networkError':_0x59f420(0xeb),'maxRetriesExceeded':_0x59f420(0xf7)}}};function _0x2d32(){const _0x378d89=['Copy\x20the\x20JSON\x20configuration\x20below','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Unknown\x20Status','5109fCkfHQ','Session\x20ID','468meNXHS','Click\x20to\x20configure\x20MCP','Connecting...','MCP\x20Connected','Invalid\x20configuration','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','7110280pBXkRO','37600cshATh','MCP:\x20Max\x20Retries\x20Exceeded','Configuration\x20Steps:','Configuration\x20saved\x20successfully','Configuration\x20Parameters:','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','2036JqSitd','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Save\x20Configuration','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Connection\x20Failed','MCP:\x20Unauthorized','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','740LuCVaj','Connection\x20Failed','MCP\x20Configuration','MCP:\x20Network\x20Error','Enable\x20Authentication','Saving...','API\x20key\x20with\x20Bearer\x20prefix.','82mhEFak','203dQMrdn','1427778XBQKWR','API\x20key\x20is\x20required','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Disconnected','Retrying...','Click\x20to\x20connect\x20MCP','MCP:\x20Session\x20ID\x20Occupied','87294GWposL','MCP\x20Connecting...','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Client\x20Configuration','MCP\x20Retrying...','exports','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Max\x20Retries','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','19228638jgPmTS'];_0x2d32=function(){return _0x378d89;};return _0x2d32();}function _0x484b(_0x18c2c8,_0x475640){_0x18c2c8=_0x18c2c8-0xca;const _0x2d3284=_0x2d32();let _0x484b5c=_0x2d3284[_0x18c2c8];return _0x484b5c;}module[_0x59f420(0xca)]=e;
1
+ const _0x17761d=_0x5f22;(function(_0x291a7a,_0x574c48){const _0xf8861b=_0x5f22,_0x4f4bf1=_0x291a7a();while(!![]){try{const _0x3ec8f8=-parseInt(_0xf8861b(0x17b))/0x1*(parseInt(_0xf8861b(0x18a))/0x2)+parseInt(_0xf8861b(0x194))/0x3*(parseInt(_0xf8861b(0x181))/0x4)+-parseInt(_0xf8861b(0x1b1))/0x5+parseInt(_0xf8861b(0x179))/0x6*(parseInt(_0xf8861b(0x19a))/0x7)+parseInt(_0xf8861b(0x1ae))/0x8+parseInt(_0xf8861b(0x1a3))/0x9*(parseInt(_0xf8861b(0x1ad))/0xa)+-parseInt(_0xf8861b(0x17c))/0xb;if(_0x3ec8f8===_0x574c48)break;else _0x4f4bf1['push'](_0x4f4bf1['shift']());}catch(_0x3272a6){_0x4f4bf1['push'](_0x4f4bf1['shift']());}}}(_0x4a01,0x5cb02));const locale$1={'mcpStatus':{'disconnected':_0x17761d(0x17f),'connecting':_0x17761d(0x182),'connected':_0x17761d(0x189),'failed':_0x17761d(0x1a7),'retrying':_0x17761d(0x185),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x17761d(0x196),'sessionOccupied':_0x17761d(0x187),'networkError':_0x17761d(0x178),'maxRetriesExceeded':_0x17761d(0x195),'clickToConnect':_0x17761d(0x19f),'clickToConfigure':_0x17761d(0x191)},'mcpConfig':{'title':_0x17761d(0x184),'description':_0x17761d(0x1a0),'apiKey':_0x17761d(0x1ab),'apiKeyPlaceholder':_0x17761d(0x19d),'apiKeyHint':_0x17761d(0x1b0),'enableAuth':_0x17761d(0x19c),'enableAuthHint':_0x17761d(0x1a9),'connectionInfo':_0x17761d(0x17d),'mcpClientConfig':_0x17761d(0x17d),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x17761d(0x17a),'configStep1':_0x17761d(0x1a8),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x17761d(0x1a6),'sessionIdDescription':_0x17761d(0x1a2),'authorizationDescription':_0x17761d(0x17e),'configParameters':_0x17761d(0x1af),'maxRetries':_0x17761d(0x192),'save':_0x17761d(0x18c),'saving':_0x17761d(0x197),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x17761d(0x18d),'configSaved':_0x17761d(0x183),'configError':_0x17761d(0x18e),'apiApplyInfo':{'title':_0x17761d(0x188),'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':_0x17761d(0x186),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x17761d(0x199),'apiKeyTooShort':_0x17761d(0x1a5),'invalidConfig':_0x17761d(0x18b),'invalidApiKey':_0x17761d(0x190)},'connectionStatus':{'disconnected':_0x17761d(0x18f),'connecting':_0x17761d(0x198),'connected':_0x17761d(0x19b),'failed':_0x17761d(0x1a1),'retrying':_0x17761d(0x19e)},'connectionError':{'unauthorized':_0x17761d(0x1ac),'sessionOccupied':_0x17761d(0x193),'networkError':_0x17761d(0x1a4),'maxRetriesExceeded':_0x17761d(0x180)}}},locale=locale$1;module[_0x17761d(0x1aa)]=locale;function _0x5f22(_0x35a307,_0x2c1a0a){_0x35a307=_0x35a307-0x178;const _0x4a015f=_0x4a01();let _0x5f22bd=_0x4a015f[_0x35a307];return _0x5f22bd;}function _0x4a01(){const _0x2db590=['Univer\x20AI\x20Console','MCP:\x20Session\x20ID\x20Occupied','What\x20is\x20API\x20Key?','MCP\x20Connected','82552MwFdWA','Invalid\x20configuration','Save\x20Configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Failed\x20to\x20save\x20configuration','Disconnected','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Click\x20to\x20configure\x20MCP','Max\x20Retries','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','49359cJFhLj','MCP:\x20Max\x20Retries\x20Exceeded','MCP:\x20Unauthorized','Saving...','Connecting...','API\x20key\x20is\x20required','27895NrsOHQ','Connected','Enable\x20Authentication','Enter\x20your\x20API\x20key','Retrying...','Click\x20to\x20connect\x20MCP','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Connection\x20Failed','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','4085604QbKzdd','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Session\x20ID','MCP\x20Connection\x20Failed','Copy\x20the\x20JSON\x20configuration\x20below','Enable\x20authentication\x20for\x20secure\x20connections','exports','API\x20Key','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','10mOSgph','770816fsZVLg','Configuration\x20Parameters:','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','304880sMmZQO','MCP:\x20Network\x20Error','1110cizfhZ','Configuration\x20Steps:','1grFxRb','15558312qLVAoM','MCP\x20Client\x20Configuration','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Disconnected','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','148MERtaW','MCP\x20Connecting...','Configuration\x20saved\x20successfully','MCP\x20Configuration','MCP\x20Retrying...'];_0x4a01=function(){return _0x2db590;};return _0x4a01();}
@@ -1 +1 @@
1
- const _0x30791f=_0x17cf;(function(_0x2d3b53,_0x45aa74){const _0x558f7a=_0x17cf,_0x3258ca=_0x2d3b53();while(!![]){try{const _0x4f79c0=parseInt(_0x558f7a(0x1e2))/0x1+-parseInt(_0x558f7a(0x1d6))/0x2*(parseInt(_0x558f7a(0x1ee))/0x3)+parseInt(_0x558f7a(0x1f2))/0x4+parseInt(_0x558f7a(0x1ed))/0x5+-parseInt(_0x558f7a(0x1e7))/0x6*(-parseInt(_0x558f7a(0x1c5))/0x7)+-parseInt(_0x558f7a(0x1cf))/0x8+-parseInt(_0x558f7a(0x1e1))/0x9*(parseInt(_0x558f7a(0x1d1))/0xa);if(_0x4f79c0===_0x45aa74)break;else _0x3258ca['push'](_0x3258ca['shift']());}catch(_0x245491){_0x3258ca['push'](_0x3258ca['shift']());}}}(_0x2fbc,0x97512));function _0x2fbc(){const _0x55bd10=['Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Configuration','Session\x20ID','Click\x20to\x20connect\x20MCP','What\x20is\x20API\x20Key?','Max\x20Retries','Invalid\x20configuration','6244236YaaSBk','1104700PwITYb','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','API\x20key\x20is\x20required','MCP\x20Connection\x20Failed','Configuration\x20saved\x20successfully','4170BNWcby','Copy\x20the\x20JSON\x20configuration\x20below','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Unknown\x20Status','MCP\x20Client\x20Configuration','Enter\x20your\x20API\x20key','6011460mOvHex','1313031eeqgvm','Saving...','Save\x20Configuration','Get\x20your\x20API\x20key\x20in\x20seconds','4295220FbAFkO','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Retrying...','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP:\x20Network\x20Error','7623etbqca','Enable\x20Authentication','Click\x20to\x20configure\x20MCP','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Failed\x20to\x20save\x20configuration','MCP\x20Disconnected','Connected','exports','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','7990152JwbZtb','Configuration\x20Parameters:','30dhHyyT','API\x20key\x20with\x20Bearer\x20prefix.','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Connection\x20Failed','Univer\x20AI\x20Console','2JqDRii','Configuration\x20Steps:'];_0x2fbc=function(){return _0x55bd10;};return _0x2fbc();}function _0x17cf(_0x346034,_0x525124){_0x346034=_0x346034-0x1c5;const _0x2fbc10=_0x2fbc();let _0x17cf2a=_0x2fbc10[_0x346034];return _0x17cf2a;}const e={'mcpStatus':{'disconnected':_0x30791f(0x1cb),'connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':_0x30791f(0x1e5),'retrying':'MCP\x20Retrying...','unknown':_0x30791f(0x1ea),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x30791f(0x1f6),'maxRetriesExceeded':_0x30791f(0x1e9),'clickToConnect':_0x30791f(0x1dd),'clickToConfigure':_0x30791f(0x1c7)},'mcpConfig':{'title':_0x30791f(0x1db),'description':_0x30791f(0x1d8),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x30791f(0x1ec),'apiKeyHint':_0x30791f(0x1da),'enableAuth':_0x30791f(0x1c6),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x30791f(0x1eb),'mcpClientConfig':_0x30791f(0x1eb),'configInstructions':_0x30791f(0x1c8),'configStepTitle':_0x30791f(0x1d7),'configStep1':_0x30791f(0x1e8),'configStep2':_0x30791f(0x1d9),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x30791f(0x1dc),'sessionIdDescription':_0x30791f(0x1f5),'authorizationDescription':_0x30791f(0x1d2),'configParameters':_0x30791f(0x1d0),'maxRetries':_0x30791f(0x1df),'save':_0x30791f(0x1f0),'saving':_0x30791f(0x1ef),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x30791f(0x1e3),'configSaved':_0x30791f(0x1e6),'configError':_0x30791f(0x1ca),'apiApplyInfo':{'title':_0x30791f(0x1de),'description':_0x30791f(0x1f3),'univerAiLabel':_0x30791f(0x1d5),'getStarted':_0x30791f(0x1f1)},'validation':{'apiKeyRequired':_0x30791f(0x1e4),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x30791f(0x1e0),'invalidApiKey':_0x30791f(0x1d3)},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':_0x30791f(0x1cc),'failed':_0x30791f(0x1d4),'retrying':_0x30791f(0x1f4)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x30791f(0x1c9),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x30791f(0x1ce)}}};module[_0x30791f(0x1cd)]=e;
1
+ function _0x3da8(){const _0x328a1a=['Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP:\x20Unauthorized','What\x20is\x20API\x20Key?','Max\x20Retries','807493oZhxaA','API\x20key\x20is\x20required','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Connecting...','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Disconnected','Save\x20Configuration','413XiaTIc','API\x20key\x20with\x20Bearer\x20prefix.','Connected','MCP\x20Connection\x20Failed','Session\x20ID','13730BObaKi','API\x20Key','139002eHzmmo','247053MVjRIF','MCP:\x20Max\x20Retries\x20Exceeded','225326hUuxhQ','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Saving...','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','4LqKLri','MCP:\x20Session\x20ID\x20Occupied','Failed\x20to\x20save\x20configuration','MCP:\x20Network\x20Error','Configuration\x20Parameters:','Configuration\x20Steps:','Connection\x20Failed','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Unknown\x20Status','MCP\x20Connecting...','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Get\x20your\x20API\x20key\x20in\x20seconds','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Client\x20Configuration','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Enable\x20Authentication','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','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\x20Retrying...','MCP\x20Configuration','Invalid\x20configuration','MCP\x20Connected','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Retrying...','4873090CaRSHt','14778jqcbqf','11860224jbZlGO','Click\x20to\x20connect\x20MCP'];_0x3da8=function(){return _0x328a1a;};return _0x3da8();}const _0x50402e=_0x3419;(function(_0x230406,_0x39a08b){const _0x3189d7=_0x3419,_0x1fb3b5=_0x230406();while(!![]){try{const _0x5dc8f2=-parseInt(_0x3189d7(0x1c0))/0x1+parseInt(_0x3189d7(0x1d1))/0x2+-parseInt(_0x3189d7(0x1cf))/0x3*(-parseInt(_0x3189d7(0x1d6))/0x4)+-parseInt(_0x3189d7(0x1b8))/0x5+-parseInt(_0x3189d7(0x1ce))/0x6*(parseInt(_0x3189d7(0x1c7))/0x7)+parseInt(_0x3189d7(0x1ba))/0x8+-parseInt(_0x3189d7(0x1b9))/0x9*(-parseInt(_0x3189d7(0x1cc))/0xa);if(_0x5dc8f2===_0x39a08b)break;else _0x1fb3b5['push'](_0x1fb3b5['shift']());}catch(_0xbd9399){_0x1fb3b5['push'](_0x1fb3b5['shift']());}}}(_0x3da8,0xbf2c4));const locale$1={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x50402e(0x1df),'connected':_0x50402e(0x1b5),'failed':_0x50402e(0x1ca),'retrying':_0x50402e(0x1e8),'unknown':_0x50402e(0x1de),'unauthorized':_0x50402e(0x1bd),'sessionOccupied':_0x50402e(0x1d7),'networkError':_0x50402e(0x1d9),'maxRetriesExceeded':_0x50402e(0x1d0),'clickToConnect':_0x50402e(0x1bb),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x50402e(0x1b3),'description':_0x50402e(0x1e0),'apiKey':_0x50402e(0x1cd),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x50402e(0x1e5),'enableAuthHint':_0x50402e(0x1dd),'connectionInfo':_0x50402e(0x1e3),'mcpClientConfig':_0x50402e(0x1e3),'configInstructions':_0x50402e(0x1d2),'configStepTitle':_0x50402e(0x1db),'configStep1':_0x50402e(0x1e2),'configStep2':_0x50402e(0x1d5),'configStep3':_0x50402e(0x1e4),'sessionId':_0x50402e(0x1cb),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x50402e(0x1c8),'configParameters':_0x50402e(0x1da),'maxRetries':_0x50402e(0x1bf),'save':_0x50402e(0x1c6),'saving':_0x50402e(0x1d4),'note1':_0x50402e(0x1e6),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x50402e(0x1d8),'apiApplyInfo':{'title':_0x50402e(0x1be),'description':_0x50402e(0x1e7),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x50402e(0x1e1)},'validation':{'apiKeyRequired':_0x50402e(0x1c1),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x50402e(0x1b4),'invalidApiKey':_0x50402e(0x1b6)},'connectionStatus':{'disconnected':_0x50402e(0x1c5),'connecting':_0x50402e(0x1c3),'connected':_0x50402e(0x1c9),'failed':_0x50402e(0x1dc),'retrying':_0x50402e(0x1b7)},'connectionError':{'unauthorized':_0x50402e(0x1bc),'sessionOccupied':_0x50402e(0x1c2),'networkError':_0x50402e(0x1d3),'maxRetriesExceeded':_0x50402e(0x1c4)}}},locale=locale$1;function _0x3419(_0x2fec8d,_0x1187fe){_0x2fec8d=_0x2fec8d-0x1b3;const _0x3da89e=_0x3da8();let _0x341904=_0x3da89e[_0x2fec8d];return _0x341904;}module['exports']=locale;
@@ -1 +1 @@
1
- function _0x28b5(_0x3c4ced,_0x338014){_0x3c4ced=_0x3c4ced-0xf1;const _0x22d258=_0x22d2();let _0x28b561=_0x22d258[_0x3c4ced];return _0x28b561;}const _0x55cc17=_0x28b5;(function(_0x4d0862,_0xa3caf6){const _0x64254f=_0x28b5,_0x5a6bd9=_0x4d0862();while(!![]){try{const _0xc80889=parseInt(_0x64254f(0x119))/0x1*(-parseInt(_0x64254f(0xf1))/0x2)+-parseInt(_0x64254f(0xf6))/0x3+-parseInt(_0x64254f(0x11c))/0x4*(-parseInt(_0x64254f(0x10a))/0x5)+parseInt(_0x64254f(0x11f))/0x6+parseInt(_0x64254f(0x112))/0x7*(-parseInt(_0x64254f(0x10f))/0x8)+-parseInt(_0x64254f(0x118))/0x9*(parseInt(_0x64254f(0x101))/0xa)+parseInt(_0x64254f(0x115))/0xb*(parseInt(_0x64254f(0x10c))/0xc);if(_0xc80889===_0xa3caf6)break;else _0x5a6bd9['push'](_0x5a6bd9['shift']());}catch(_0x1bacd4){_0x5a6bd9['push'](_0x5a6bd9['shift']());}}}(_0x22d2,0xb051c));function _0x22d2(){const _0x4933b8=['Max\x20Retries','MCP:\x20Session\x20ID\x20Occupied','Configuration\x20saved\x20successfully','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Connected','9440SLGjch','MCP\x20Disconnected','72180HvsipZ','Invalid\x20configuration','MCP\x20Unknown\x20Status','72fzXAPa','API\x20key\x20with\x20Bearer\x20prefix.','Retrying...','14623XBSaaU','Univer\x20AI\x20Console','API\x20Key','4422kwksxU','MCP:\x20Unauthorized','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','1296783YwEdxR','1CYGKQE','exports','Configuration\x20Steps:','1888wCYKqn','Click\x20to\x20connect\x20MCP','What\x20is\x20API\x20Key?','157440JfIxLx','MCP\x20Connected','Saving...','Enter\x20your\x20API\x20key','MCP\x20Connecting...','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','439748QqQpVh','Enable\x20Authentication','Copy\x20the\x20JSON\x20configuration\x20below','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','API\x20key\x20is\x20required','2800971iSAxDH','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Session\x20ID','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Click\x20to\x20configure\x20MCP','MCP\x20Client\x20Configuration','Connecting...','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP:\x20Network\x20Error','MCP\x20Retrying...','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','100CSWCVQ','Disconnected'];_0x22d2=function(){return _0x4933b8;};return _0x22d2();}const e={'mcpStatus':{'disconnected':_0x55cc17(0x10b),'connecting':_0x55cc17(0x123),'connected':_0x55cc17(0x120),'failed':'MCP\x20Connection\x20Failed','retrying':_0x55cc17(0xff),'unknown':_0x55cc17(0x10e),'unauthorized':_0x55cc17(0x116),'sessionOccupied':_0x55cc17(0x104),'networkError':_0x55cc17(0xfe),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x55cc17(0x11d),'clickToConfigure':_0x55cc17(0xfa)},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x55cc17(0x114),'apiKeyPlaceholder':_0x55cc17(0x122),'apiKeyHint':_0x55cc17(0xf9),'enableAuth':_0x55cc17(0xf2),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x55cc17(0xfb),'mcpClientConfig':_0x55cc17(0xfb),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x55cc17(0x11b),'configStep1':_0x55cc17(0xf3),'configStep2':_0x55cc17(0x108),'configStep3':_0x55cc17(0xfd),'sessionId':_0x55cc17(0xf8),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x55cc17(0x110),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x55cc17(0x103),'save':'Save\x20Configuration','saving':_0x55cc17(0x121),'note1':_0x55cc17(0xf7),'note2':_0x55cc17(0x117),'configSaved':_0x55cc17(0x105),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x55cc17(0x11e),'description':_0x55cc17(0x124),'univerAiLabel':_0x55cc17(0x113),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x55cc17(0xf5),'apiKeyTooShort':_0x55cc17(0x107),'invalidConfig':_0x55cc17(0x10d),'invalidApiKey':_0x55cc17(0x100)},'connectionStatus':{'disconnected':_0x55cc17(0x102),'connecting':_0x55cc17(0xfc),'connected':_0x55cc17(0x109),'failed':'Connection\x20Failed','retrying':_0x55cc17(0x111)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x55cc17(0x106),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x55cc17(0xf4)}}};module[_0x55cc17(0x11a)]=e;
1
+ function _0x390d(_0x33ed0d,_0x438c9d){_0x33ed0d=_0x33ed0d-0x187;const _0x41ba57=_0x41ba();let _0x390d85=_0x41ba57[_0x33ed0d];return _0x390d85;}function _0x41ba(){const _0x4be5c6=['MCP\x20Connecting...','Connection\x20Failed','22604tETfaq','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Session\x20ID','MCP\x20Connected','Enable\x20Authentication','4741RbgrAL','MCP:\x20Unauthorized','API\x20key\x20with\x20Bearer\x20prefix.','What\x20is\x20API\x20Key?','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','exports','MCP:\x20Session\x20ID\x20Occupied','Invalid\x20configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP:\x20Max\x20Retries\x20Exceeded','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Configuration\x20Steps:','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Connection\x20Failed','17768bzygCa','Saving...','845TUUitf','3006200wFUcyN','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Copy\x20the\x20JSON\x20configuration\x20below','9YiOTOY','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Enable\x20authentication\x20for\x20secure\x20connections','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Connected','Click\x20to\x20configure\x20MCP','1543710FFjjMQ','Failed\x20to\x20save\x20configuration','MCP\x20Configuration','Retrying...','Save\x20Configuration','MCP\x20Unknown\x20Status','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Client\x20Configuration','Connecting...','7tHIXui','208069lrTdzZ','Click\x20to\x20connect\x20MCP','Univer\x20AI\x20Console','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','23376UetGuB','MCP:\x20Network\x20Error','Max\x20Retries','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Get\x20your\x20API\x20key\x20in\x20seconds','6831730KURynI','Configuration\x20Parameters:','321UklMQY','MCP\x20Disconnected'];_0x41ba=function(){return _0x4be5c6;};return _0x41ba();}const _0x59eeb0=_0x390d;(function(_0x2806c8,_0x2be32b){const _0x330112=_0x390d,_0x37ef52=_0x2806c8();while(!![]){try{const _0x4ac519=-parseInt(_0x330112(0x1b6))/0x1+parseInt(_0x330112(0x1a0))/0x2*(parseInt(_0x330112(0x189))/0x3)+parseInt(_0x330112(0x18d))/0x4*(-parseInt(_0x330112(0x1a2))/0x5)+-parseInt(_0x330112(0x1ac))/0x6*(-parseInt(_0x330112(0x1b5))/0x7)+parseInt(_0x330112(0x1a3))/0x8+-parseInt(_0x330112(0x1a6))/0x9*(parseInt(_0x330112(0x187))/0xa)+parseInt(_0x330112(0x192))/0xb*(parseInt(_0x330112(0x1ba))/0xc);if(_0x4ac519===_0x2be32b)break;else _0x37ef52['push'](_0x37ef52['shift']());}catch(_0x45f782){_0x37ef52['push'](_0x37ef52['shift']());}}}(_0x41ba,0x8cdcf));const locale$1={'mcpStatus':{'disconnected':_0x59eeb0(0x18a),'connecting':_0x59eeb0(0x18b),'connected':_0x59eeb0(0x190),'failed':_0x59eeb0(0x19f),'retrying':'MCP\x20Retrying...','unknown':_0x59eeb0(0x1b1),'unauthorized':_0x59eeb0(0x193),'sessionOccupied':_0x59eeb0(0x198),'networkError':_0x59eeb0(0x1bb),'maxRetriesExceeded':_0x59eeb0(0x19b),'clickToConnect':_0x59eeb0(0x1b7),'clickToConfigure':_0x59eeb0(0x1ab)},'mcpConfig':{'title':_0x59eeb0(0x1ae),'description':_0x59eeb0(0x1b9),'apiKey':'API\x20Key','apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x59eeb0(0x196),'enableAuth':_0x59eeb0(0x191),'enableAuthHint':_0x59eeb0(0x1a8),'connectionInfo':_0x59eeb0(0x1b3),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x59eeb0(0x19a),'configStepTitle':_0x59eeb0(0x19d),'configStep1':_0x59eeb0(0x1a5),'configStep2':_0x59eeb0(0x1a9),'configStep3':_0x59eeb0(0x1a4),'sessionId':_0x59eeb0(0x18f),'sessionIdDescription':_0x59eeb0(0x1bd),'authorizationDescription':_0x59eeb0(0x194),'configParameters':_0x59eeb0(0x188),'maxRetries':_0x59eeb0(0x1bc),'save':_0x59eeb0(0x1b0),'saving':_0x59eeb0(0x1a1),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x59eeb0(0x1bf),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x59eeb0(0x1ad),'apiApplyInfo':{'title':_0x59eeb0(0x195),'description':_0x59eeb0(0x1be),'univerAiLabel':_0x59eeb0(0x1b8),'getStarted':_0x59eeb0(0x1c0)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x59eeb0(0x199),'invalidApiKey':_0x59eeb0(0x18e)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x59eeb0(0x1b4),'connected':_0x59eeb0(0x1aa),'failed':_0x59eeb0(0x18c),'retrying':_0x59eeb0(0x1af)},'connectionError':{'unauthorized':_0x59eeb0(0x19e),'sessionOccupied':_0x59eeb0(0x1a7),'networkError':_0x59eeb0(0x1b2),'maxRetriesExceeded':_0x59eeb0(0x19c)}}},locale=locale$1;module[_0x59eeb0(0x197)]=locale;
@@ -1 +1 @@
1
- const _0x1daa31=_0x1aa7;(function(_0x3bc970,_0x1fd42a){const _0x1d12ec=_0x1aa7,_0x23ff99=_0x3bc970();while(!![]){try{const _0x9fc049=parseInt(_0x1d12ec(0x129))/0x1+-parseInt(_0x1d12ec(0x118))/0x2+parseInt(_0x1d12ec(0x115))/0x3*(-parseInt(_0x1d12ec(0x124))/0x4)+-parseInt(_0x1d12ec(0x113))/0x5+-parseInt(_0x1d12ec(0x141))/0x6*(parseInt(_0x1d12ec(0x116))/0x7)+-parseInt(_0x1d12ec(0x128))/0x8*(parseInt(_0x1d12ec(0x119))/0x9)+-parseInt(_0x1d12ec(0x122))/0xa*(-parseInt(_0x1d12ec(0x13b))/0xb);if(_0x9fc049===_0x1fd42a)break;else _0x23ff99['push'](_0x23ff99['shift']());}catch(_0x4330a5){_0x23ff99['push'](_0x23ff99['shift']());}}}(_0x5e59,0x590b3));function _0x5e59(){const _0x47e18e=['49vbQTkk','APIキー','99406IBZxSB','9MjYKbk','Univer\x20AIコンソール','APIキーを入力してください','MCP\x20再試行中...','MCP:\x20セッションIDが使用中','最大再試行回数を超過しました。後でもう一度お試しください','exports','MCP\x20接続済み','設定の変更は直ちに有効になります','10APieWm','MCPクライアント設定','372BCjJGj','MCPクライアントの設定ファイルに設定を追加','設定を保存','認証を有効にする','3841128mLZPwb','431515RqEOzN','MCP:\x20認証されていません','セッションIDが現在使用中です。後でもう一度お試しください','APIキーとは?','ネットワーク接続エラー。インターネット接続を確認してください','一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','未接続','Bearerプレフィックス付きのAPIキー。','接続失敗','数秒でAPIキーを取得','APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','接続中...','APIキーは10文字以上である必要があります','APIキーは必須です','MCPクライアントを再起動して設定を適用','セッションID','接続済み','クリックしてMCPを設定','10923011LiSLvX','無効な設定','設定パラメータ:','MCP\x20未接続','クリックしてMCPに接続','MCPを設定してAIでスプレッドシートを操作','100962WIxRoM','設定の保存に失敗しました','無効なAPIキーです。キーが正しいか確認してください','認証に失敗しました。APIキーを確認してください','MCP設定','1359115gpnqKT','セキュアな接続のために認証を有効にする','4527vpadWZ'];_0x5e59=function(){return _0x47e18e;};return _0x5e59();}const e={'mcpStatus':{'disconnected':_0x1daa31(0x13e),'connecting':'MCP\x20接続中...','connected':_0x1daa31(0x120),'failed':'MCP\x20接続失敗','retrying':_0x1daa31(0x11c),'unknown':'MCP\x20不明な状態','unauthorized':_0x1daa31(0x12a),'sessionOccupied':_0x1daa31(0x11d),'networkError':'MCP:\x20ネットワークエラー','maxRetriesExceeded':'MCP:\x20最大再試行回数を超過','clickToConnect':_0x1daa31(0x13f),'clickToConfigure':_0x1daa31(0x13a)},'mcpConfig':{'title':_0x1daa31(0x112),'description':_0x1daa31(0x140),'apiKey':_0x1daa31(0x117),'apiKeyPlaceholder':_0x1daa31(0x11b),'apiKeyHint':'APIキーはこのブラウザのローカルに保存されます','enableAuth':_0x1daa31(0x127),'enableAuthHint':_0x1daa31(0x114),'connectionInfo':_0x1daa31(0x123),'mcpClientConfig':'MCPクライアント設定','configInstructions':'MCPクライアントの設定に次の設定を追加してください:','configStepTitle':'設定手順:','configStep1':'以下のJSON設定をコピー','configStep2':_0x1daa31(0x125),'configStep3':_0x1daa31(0x137),'sessionId':_0x1daa31(0x138),'sessionIdDescription':_0x1daa31(0x12e),'authorizationDescription':_0x1daa31(0x130),'configParameters':_0x1daa31(0x13d),'maxRetries':'最大再試行回数','save':_0x1daa31(0x126),'saving':'保存中...','note1':_0x1daa31(0x121),'note2':'APIキーはローカルストレージに安全に保存されます','configSaved':'設定が正常に保存されました','configError':_0x1daa31(0x10f),'apiApplyInfo':{'title':_0x1daa31(0x12c),'description':_0x1daa31(0x133),'univerAiLabel':_0x1daa31(0x11a),'getStarted':_0x1daa31(0x132)},'validation':{'apiKeyRequired':_0x1daa31(0x136),'apiKeyTooShort':_0x1daa31(0x135),'invalidConfig':_0x1daa31(0x13c),'invalidApiKey':_0x1daa31(0x110)},'connectionStatus':{'disconnected':_0x1daa31(0x12f),'connecting':_0x1daa31(0x134),'connected':_0x1daa31(0x139),'failed':_0x1daa31(0x131),'retrying':'再試行中...'},'connectionError':{'unauthorized':_0x1daa31(0x111),'sessionOccupied':_0x1daa31(0x12b),'networkError':_0x1daa31(0x12d),'maxRetriesExceeded':_0x1daa31(0x11e)}}};function _0x1aa7(_0x36e571,_0x5c0662){_0x36e571=_0x36e571-0x10f;const _0x5e5947=_0x5e59();let _0x1aa723=_0x5e5947[_0x36e571];return _0x1aa723;}module[_0x1daa31(0x11f)]=e;
1
+ function _0x3d08(){const _0x5c16cb=['認証を有効にする','APIキーとは?','ネットワーク接続エラー。インターネット接続を確認してください','APIキーは必須です','接続失敗','接続済み','MCP:\x20認証されていません','クリックしてMCPに接続','2075KpvmYP','8XxdZyN','セッションID','数秒でAPIキーを取得','無効な設定','exports','108nPDAac','MCP設定','76BRjrov','MCP\x20不明な状態','MCPクライアントを再起動して設定を適用','MCP\x20未接続','最大再試行回数を超過しました。後でもう一度お試しください','未接続','APIキーは10文字以上である必要があります','10107QIKGgu','MCP\x20接続中...','クリックしてMCPを設定','MCP\x20接続済み','Bearerプレフィックス付きのAPIキー。','5380Eazpen','APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','Univer\x20AIコンソール','再試行中...','MCP:\x20ネットワークエラー','セッションIDが現在使用中です。後でもう一度お試しください','MCPを設定してAIでスプレッドシートを操作','3098431uNbgps','以下のJSON設定をコピー','認証に失敗しました。APIキーを確認してください','770172QJMNFh','643442gjqMll','APIキーはローカルストレージに安全に保存されます','設定を保存','3228czhDWx','119271JAFMZa','一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','保存中...','無効なAPIキーです。キーが正しいか確認してください','497541KxTuIZ'];_0x3d08=function(){return _0x5c16cb;};return _0x3d08();}function _0x5382(_0x2ece62,_0xc6ecdb){_0x2ece62=_0x2ece62-0x172;const _0x3d087d=_0x3d08();let _0x5382f9=_0x3d087d[_0x2ece62];return _0x5382f9;}const _0x40943f=_0x5382;(function(_0x2eaf62,_0x12dd42){const _0x5b694e=_0x5382,_0x535784=_0x2eaf62();while(!![]){try{const _0x6c635a=-parseInt(_0x5b694e(0x184))/0x1+-parseInt(_0x5b694e(0x185))/0x2+parseInt(_0x5b694e(0x189))/0x3*(parseInt(_0x5b694e(0x19e))/0x4)+parseInt(_0x5b694e(0x196))/0x5*(parseInt(_0x5b694e(0x188))/0x6)+-parseInt(_0x5b694e(0x181))/0x7*(parseInt(_0x5b694e(0x197))/0x8)+-parseInt(_0x5b694e(0x175))/0x9*(-parseInt(_0x5b694e(0x17a))/0xa)+parseInt(_0x5b694e(0x18d))/0xb*(parseInt(_0x5b694e(0x19c))/0xc);if(_0x6c635a===_0x12dd42)break;else _0x535784['push'](_0x535784['shift']());}catch(_0x4d0619){_0x535784['push'](_0x535784['shift']());}}}(_0x3d08,0x6f2d4));const locale={'mcpStatus':{'disconnected':_0x40943f(0x1a1),'connecting':_0x40943f(0x176),'connected':_0x40943f(0x178),'failed':'MCP\x20接続失敗','retrying':'MCP\x20再試行中...','unknown':_0x40943f(0x19f),'unauthorized':_0x40943f(0x194),'sessionOccupied':'MCP:\x20セッションIDが使用中','networkError':_0x40943f(0x17e),'maxRetriesExceeded':'MCP:\x20最大再試行回数を超過','clickToConnect':_0x40943f(0x195),'clickToConfigure':_0x40943f(0x177)},'mcpConfig':{'title':_0x40943f(0x19d),'description':_0x40943f(0x180),'apiKey':'APIキー','apiKeyPlaceholder':'APIキーを入力してください','apiKeyHint':'APIキーはこのブラウザのローカルに保存されます','enableAuth':_0x40943f(0x18e),'enableAuthHint':'セキュアな接続のために認証を有効にする','connectionInfo':'MCPクライアント設定','mcpClientConfig':'MCPクライアント設定','configInstructions':'MCPクライアントの設定に次の設定を追加してください:','configStepTitle':'設定手順:','configStep1':_0x40943f(0x182),'configStep2':'MCPクライアントの設定ファイルに設定を追加','configStep3':_0x40943f(0x1a0),'sessionId':_0x40943f(0x198),'sessionIdDescription':_0x40943f(0x18a),'authorizationDescription':_0x40943f(0x179),'configParameters':'設定パラメータ:','maxRetries':'最大再試行回数','save':_0x40943f(0x187),'saving':_0x40943f(0x18b),'note1':'設定の変更は直ちに有効になります','note2':_0x40943f(0x186),'configSaved':'設定が正常に保存されました','configError':'設定の保存に失敗しました','apiApplyInfo':{'title':_0x40943f(0x18f),'description':_0x40943f(0x17b),'univerAiLabel':_0x40943f(0x17c),'getStarted':_0x40943f(0x199)},'validation':{'apiKeyRequired':_0x40943f(0x191),'apiKeyTooShort':_0x40943f(0x174),'invalidConfig':_0x40943f(0x19a),'invalidApiKey':_0x40943f(0x18c)},'connectionStatus':{'disconnected':_0x40943f(0x173),'connecting':'接続中...','connected':_0x40943f(0x193),'failed':_0x40943f(0x192),'retrying':_0x40943f(0x17d)},'connectionError':{'unauthorized':_0x40943f(0x183),'sessionOccupied':_0x40943f(0x17f),'networkError':_0x40943f(0x190),'maxRetriesExceeded':_0x40943f(0x172)}}};module[_0x40943f(0x19b)]=locale;
@@ -1 +1 @@
1
- const _0x520fab=_0x5c50;function _0x5c50(_0x5e93b7,_0x1fd85b){_0x5e93b7=_0x5e93b7-0xf0;const _0x14ff87=_0x14ff();let _0x5c5085=_0x14ff87[_0x5e93b7];return _0x5c5085;}(function(_0x337340,_0x46f733){const _0x12c289=_0x5c50,_0x2bec66=_0x337340();while(!![]){try{const _0x1aaaf2=-parseInt(_0x12c289(0x109))/0x1*(parseInt(_0x12c289(0xfb))/0x2)+parseInt(_0x12c289(0xf0))/0x3*(parseInt(_0x12c289(0x11c))/0x4)+-parseInt(_0x12c289(0xfd))/0x5+-parseInt(_0x12c289(0x106))/0x6+-parseInt(_0x12c289(0x104))/0x7+parseInt(_0x12c289(0x11d))/0x8+parseInt(_0x12c289(0x103))/0x9*(parseInt(_0x12c289(0xff))/0xa);if(_0x1aaaf2===_0x46f733)break;else _0x2bec66['push'](_0x2bec66['shift']());}catch(_0x26c612){_0x2bec66['push'](_0x2bec66['shift']());}}}(_0x14ff,0x2600d));const e={'mcpStatus':{'disconnected':_0x520fab(0x117),'connecting':_0x520fab(0x121),'connected':_0x520fab(0x10f),'failed':_0x520fab(0x110),'retrying':'MCP\x20재시도\x20중...','unknown':_0x520fab(0x102),'unauthorized':_0x520fab(0xf3),'sessionOccupied':_0x520fab(0x10b),'networkError':_0x520fab(0x112),'maxRetriesExceeded':_0x520fab(0xf4),'clickToConnect':'클릭하여\x20MCP\x20연결','clickToConfigure':_0x520fab(0x10d)},'mcpConfig':{'title':_0x520fab(0xfc),'description':_0x520fab(0xf6),'apiKey':_0x520fab(0x118),'apiKeyPlaceholder':_0x520fab(0x108),'apiKeyHint':'API\x20키는\x20이\x20브라우저의\x20로컬에\x20저장됩니다','enableAuth':_0x520fab(0x114),'enableAuthHint':_0x520fab(0x111),'connectionInfo':'MCP\x20클라이언트\x20설정','mcpClientConfig':_0x520fab(0x10e),'configInstructions':'MCP\x20클라이언트\x20설정에\x20다음\x20구성을\x20추가하세요:','configStepTitle':_0x520fab(0x119),'configStep1':'아래\x20JSON\x20설정\x20복사','configStep2':_0x520fab(0x105),'configStep3':_0x520fab(0x115),'sessionId':_0x520fab(0xfa),'sessionIdDescription':_0x520fab(0x113),'authorizationDescription':_0x520fab(0xf8),'configParameters':'설정\x20매개변수:','maxRetries':_0x520fab(0x11e),'save':'설정\x20저장','saving':'저장\x20중...','note1':_0x520fab(0x120),'note2':_0x520fab(0x11b),'configSaved':_0x520fab(0xfe),'configError':_0x520fab(0x101),'apiApplyInfo':{'title':'API\x20키란\x20무엇인가요?','description':'API\x20키는\x20Univer\x20MCP\x20서버에\x20연결하여\x20AI로\x20스프레드시트를\x20조작할\x20수\x20있게\x20해줍니다.\x20콘솔에서\x20API\x20키를\x20발급받아\x20시작하세요.','univerAiLabel':'Univer\x20AI\x20콘솔','getStarted':_0x520fab(0xf1)},'validation':{'apiKeyRequired':_0x520fab(0xf9),'apiKeyTooShort':_0x520fab(0x11a),'invalidConfig':_0x520fab(0xf2),'invalidApiKey':_0x520fab(0x100)},'connectionStatus':{'disconnected':_0x520fab(0x107),'connecting':'연결\x20중...','connected':_0x520fab(0xf7),'failed':_0x520fab(0x10c),'retrying':_0x520fab(0x11f)},'connectionError':{'unauthorized':_0x520fab(0x10a),'sessionOccupied':'세션\x20ID가\x20현재\x20사용\x20중입니다.\x20나중에\x20다시\x20시도하세요','networkError':'네트워크\x20연결\x20오류.\x20인터넷\x20연결을\x20확인하세요','maxRetriesExceeded':_0x520fab(0x116)}}};module[_0x520fab(0xf5)]=e;function _0x14ff(){const _0x1c8841=['설정\x20저장\x20실패','MCP\x20알\x20수\x20없는\x20상태','2014686hquExI','28658uCFcKF','MCP\x20클라이언트\x20설정\x20파일에\x20구성\x20추가','1656462nilMOF','연결\x20끊김','API\x20키를\x20입력하세요','1FvrHWl','인증\x20실패.\x20API\x20키를\x20확인하세요','MCP:\x20세션\x20ID\x20사용\x20중','연결\x20실패','클릭하여\x20MCP\x20설정','MCP\x20클라이언트\x20설정','MCP\x20연결됨','MCP\x20연결\x20실패','보안\x20연결을\x20위해\x20인증\x20활성화','MCP:\x20네트워크\x20오류','고유\x20세션\x20식별자입니다.\x20여러\x20Univer\x20인스턴스가\x20열려\x20있는\x20경우,\x20연결\x20충돌을\x20방지하기\x20위해\x20각\x20인스턴스는\x20서로\x20다른\x20session_id를\x20사용해야\x20합니다.','인증\x20활성화','MCP\x20클라이언트를\x20다시\x20시작하여\x20설정\x20적용','최대\x20재시도\x20횟수를\x20초과했습니다.\x20나중에\x20다시\x20시도하세요','MCP\x20연결\x20끊김','API\x20키','설정\x20단계:','API\x20키는\x2010자\x20이상이어야\x20합니다','API\x20키는\x20로컬\x20스토리지에\x20안전하게\x20저장됩니다','2672JGPNPO','1563216wbzrGq','최대\x20재시도\x20횟수','재시도\x20중...','설정\x20변경\x20사항은\x20즉시\x20적용됩니다','MCP\x20연결\x20중...','1299lUJLDN','몇\x20초\x20만에\x20API\x20키\x20발급받기','유효하지\x20않은\x20설정','MCP:\x20인증되지\x20않음','MCP:\x20최대\x20재시도\x20횟수\x20초과','exports','AI를\x20사용하여\x20스프레드시트를\x20조작하도록\x20MCP\x20설정','연결됨','Bearer\x20접두사가\x20있는\x20API\x20키.','API\x20키는\x20필수입니다','세션\x20ID','209318YyBIqv','MCP\x20설정','840045uZyccb','설정이\x20성공적으로\x20저장되었습니다','10PCMVsL','유효하지\x20않은\x20API\x20키입니다.\x20키가\x20올바른지\x20확인하세요'];_0x14ff=function(){return _0x1c8841;};return _0x14ff();}
1
+ function _0xd141(_0x3119a5,_0x242ae7){_0x3119a5=_0x3119a5-0x140;const _0xab3876=_0xab38();let _0xd141c6=_0xab3876[_0x3119a5];return _0xd141c6;}const _0x479fbe=_0xd141;(function(_0x29f29a,_0x3540ff){const _0x144746=_0xd141,_0x243e0c=_0x29f29a();while(!![]){try{const _0x4fa05b=parseInt(_0x144746(0x160))/0x1*(parseInt(_0x144746(0x141))/0x2)+-parseInt(_0x144746(0x155))/0x3*(parseInt(_0x144746(0x16f))/0x4)+-parseInt(_0x144746(0x16a))/0x5*(-parseInt(_0x144746(0x16d))/0x6)+-parseInt(_0x144746(0x14d))/0x7*(parseInt(_0x144746(0x149))/0x8)+parseInt(_0x144746(0x162))/0x9+-parseInt(_0x144746(0x169))/0xa+parseInt(_0x144746(0x16e))/0xb*(parseInt(_0x144746(0x161))/0xc);if(_0x4fa05b===_0x3540ff)break;else _0x243e0c['push'](_0x243e0c['shift']());}catch(_0x4f2fad){_0x243e0c['push'](_0x243e0c['shift']());}}}(_0xab38,0xc2082));function _0xab38(){const _0x2782e6=['12YfGTou','6973533AzYoNe','연결\x20실패','설정\x20변경\x20사항은\x20즉시\x20적용됩니다','MCP\x20클라이언트\x20설정\x20파일에\x20구성\x20추가','Bearer\x20접두사가\x20있는\x20API\x20키.','API\x20키를\x20입력하세요','MCP:\x20인증되지\x20않음','1293070nMMrVa','5ZxYoVO','인증\x20활성화','연결\x20중...','8659014FBIXHE','8469109beiQWU','20FIOOpM','MCP\x20연결\x20실패','인증\x20실패.\x20API\x20키를\x20확인하세요','클릭하여\x20MCP\x20설정','세션\x20ID가\x20현재\x20사용\x20중입니다.\x20나중에\x20다시\x20시도하세요','1411162CNCUbZ','보안\x20연결을\x20위해\x20인증\x20활성화','설정\x20저장\x20실패','MCP\x20클라이언트\x20설정에\x20다음\x20구성을\x20추가하세요:','재시도\x20중...','MCP\x20연결됨','설정\x20단계:','연결됨','992YbLWFU','Univer\x20AI\x20콘솔','AI를\x20사용하여\x20스프레드시트를\x20조작하도록\x20MCP\x20설정','MCP\x20설정','79555nPJwGA','MCP\x20재시도\x20중...','연결\x20끊김','MCP\x20클라이언트를\x20다시\x20시작하여\x20설정\x20적용','최대\x20재시도\x20횟수','아래\x20JSON\x20설정\x20복사','세션\x20ID','MCP:\x20최대\x20재시도\x20횟수\x20초과','816111vwfSvV','MCP\x20클라이언트\x20설정','MCP:\x20세션\x20ID\x20사용\x20중','설정\x20매개변수:','API\x20키는\x20로컬\x20스토리지에\x20안전하게\x20저장됩니다','설정\x20저장','exports','고유\x20세션\x20식별자입니다.\x20여러\x20Univer\x20인스턴스가\x20열려\x20있는\x20경우,\x20연결\x20충돌을\x20방지하기\x20위해\x20각\x20인스턴스는\x20서로\x20다른\x20session_id를\x20사용해야\x20합니다.','클릭하여\x20MCP\x20연결','최대\x20재시도\x20횟수를\x20초과했습니다.\x20나중에\x20다시\x20시도하세요','MCP:\x20네트워크\x20오류','1jauCFr'];_0xab38=function(){return _0x2782e6;};return _0xab38();}const locale={'mcpStatus':{'disconnected':'MCP\x20연결\x20끊김','connecting':'MCP\x20연결\x20중...','connected':_0x479fbe(0x146),'failed':_0x479fbe(0x170),'retrying':_0x479fbe(0x14e),'unknown':'MCP\x20알\x20수\x20없는\x20상태','unauthorized':_0x479fbe(0x168),'sessionOccupied':_0x479fbe(0x157),'networkError':_0x479fbe(0x15f),'maxRetriesExceeded':_0x479fbe(0x154),'clickToConnect':_0x479fbe(0x15d),'clickToConfigure':_0x479fbe(0x172)},'mcpConfig':{'title':_0x479fbe(0x14c),'description':_0x479fbe(0x14b),'apiKey':'API\x20','apiKeyPlaceholder':_0x479fbe(0x167),'apiKeyHint':'API\x20키는\x20이\x20브라우저의\x20로컬에\x20저장됩니다','enableAuth':_0x479fbe(0x16b),'enableAuthHint':_0x479fbe(0x142),'connectionInfo':_0x479fbe(0x156),'mcpClientConfig':'MCP\x20클라이언트\x20설정','configInstructions':_0x479fbe(0x144),'configStepTitle':_0x479fbe(0x147),'configStep1':_0x479fbe(0x152),'configStep2':_0x479fbe(0x165),'configStep3':_0x479fbe(0x150),'sessionId':_0x479fbe(0x153),'sessionIdDescription':_0x479fbe(0x15c),'authorizationDescription':_0x479fbe(0x166),'configParameters':_0x479fbe(0x158),'maxRetries':_0x479fbe(0x151),'save':_0x479fbe(0x15a),'saving':'저장\x20중...','note1':_0x479fbe(0x164),'note2':_0x479fbe(0x159),'configSaved':'설정이\x20성공적으로\x20저장되었습니다','configError':_0x479fbe(0x143),'apiApplyInfo':{'title':'API\x20키란\x20무엇인가요?','description':'API\x20키는\x20Univer\x20MCP\x20서버에\x20연결하여\x20AI로\x20스프레드시트를\x20조작할\x20수\x20있게\x20해줍니다.\x20콘솔에서\x20API\x20키를\x20발급받아\x20시작하세요.','univerAiLabel':_0x479fbe(0x14a),'getStarted':'몇\x20초\x20만에\x20API\x20키\x20발급받기'},'validation':{'apiKeyRequired':'API\x20키는\x20필수입니다','apiKeyTooShort':'API\x20키는\x2010자\x20이상이어야\x20합니다','invalidConfig':'유효하지\x20않은\x20설정','invalidApiKey':'유효하지\x20않은\x20API\x20키입니다.\x20키가\x20올바른지\x20확인하세요'},'connectionStatus':{'disconnected':_0x479fbe(0x14f),'connecting':_0x479fbe(0x16c),'connected':_0x479fbe(0x148),'failed':_0x479fbe(0x163),'retrying':_0x479fbe(0x145)},'connectionError':{'unauthorized':_0x479fbe(0x171),'sessionOccupied':_0x479fbe(0x140),'networkError':'네트워크\x20연결\x20오류.\x20인터넷\x20연결을\x20확인하세요','maxRetriesExceeded':_0x479fbe(0x15e)}}};module[_0x479fbe(0x15b)]=locale;