@univerjs-pro/mcp-ui 0.12.4-experimental.20251210-29c379a → 0.12.4-insiders.20251211-c28f914
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +6 -6
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x4a7901=_0x1db2;(function(_0x248fb9,_0x37c64b){const _0x9d4cdb=_0x1db2,_0x82e12b=_0x248fb9();while(!![]){try{const _0x982bad=parseInt(_0x9d4cdb(0x1b6))/0x1+parseInt(_0x9d4cdb(0x18f))/0x2*(-parseInt(_0x9d4cdb(0xbf))/0x3)+-parseInt(_0x9d4cdb(0x16e))/0x4+-parseInt(_0x9d4cdb(0x160))/0x5*(parseInt(_0x9d4cdb(0x157))/0x6)+-parseInt(_0x9d4cdb(0x155))/0x7*(-parseInt(_0x9d4cdb(0xd9))/0x8)+-parseInt(_0x9d4cdb(0x11d))/0x9*(-parseInt(_0x9d4cdb(0xf2))/0xa)+parseInt(_0x9d4cdb(0xaa))/0xb*(parseInt(_0x9d4cdb(0x1ed))/0xc);if(_0x982bad===_0x37c64b)break;else _0x82e12b['push'](_0x82e12b['shift']());}catch(_0x13bb7c){_0x82e12b['push'](_0x82e12b['shift']());}}}(_0x1538,0xc9dad));var ae=Object['defineProperty'],le=(_0x11f7a4,_0x5efe04,_0x380a0e)=>_0x5efe04 in _0x11f7a4?ae(_0x11f7a4,_0x5efe04,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x380a0e}):_0x11f7a4[_0x5efe04]=_0x380a0e,I=(_0x2a2c6a,_0x3b9f6c,_0x7e0c6)=>le(_0x2a2c6a,typeof _0x3b9f6c!=_0x4a7901(0x19b)?_0x3b9f6c+'':_0x3b9f6c,_0x7e0c6);Object[_0x4a7901(0x163)](exports,Symbol[_0x4a7901(0x185)],{'value':_0x4a7901(0x12a)});const u=require('@univerjs/core'),i=require('react/jsx-runtime'),s=require('@univerjs-pro/mcp'),f=require('@univerjs/design'),v=require('@univerjs/ui'),M=require('rxjs'),d=require('react'),A=require('@univerjs/network');function _({ref:_0x1e3465,..._0x3669e0}){const _0xdd5475=_0x4a7901,{icon:_0x5a6cb2,id:_0x35279a,className:_0x21842b,extend:_0x171f04,..._0x10fcb5}=_0x3669e0,_0x4cfde5=(_0xdd5475(0x1da)+_0x35279a+'\x20'+(_0x21842b||''))['trim'](),_0x54ea32=d[_0xdd5475(0xd0)]('_'+de());return G(_0x5a6cb2,''+_0x35279a,{'defIds':_0x5a6cb2[_0xdd5475(0x193)],'idSuffix':_0x54ea32[_0xdd5475(0x1e4)]},{'ref':_0x1e3465,'className':_0x4cfde5,..._0x10fcb5},_0x171f04);}function G(_0x116159,_0x7813d5,_0x11ccaf,_0xb7ce64,_0x27c47e){const _0x22df35=_0x4a7901;return d[_0x22df35(0x1a1)](_0x116159[_0x22df35(0x1e3)],{'key':_0x7813d5,...ue(_0x116159,_0x11ccaf,_0x27c47e),..._0xb7ce64},(ve(_0x116159,_0x11ccaf)[_0x22df35(0x1b9)]||[])['map']((_0x360f95,_0x22cfee)=>G(_0x360f95,_0x7813d5+'-'+_0x116159[_0x22df35(0x1e3)]+'-'+_0x22cfee,_0x11ccaf,void 0x0,_0x27c47e)));}function ue(_0x5682b3,_0x2c51c6,_0x511753){const _0x42deac=_0x4a7901,_0x20da40={..._0x5682b3['attrs']};_0x511753!=null&&_0x511753[_0x42deac(0x191)]&&_0x20da40[_0x42deac(0xea)]===_0x42deac(0x191)&&(_0x20da40[_0x42deac(0xea)]=_0x511753[_0x42deac(0x191)]),_0x5682b3[_0x42deac(0x1e3)]===_0x42deac(0xe4)&&_0x20da40['id']&&(_0x20da40['id']=_0x20da40['id']+_0x2c51c6[_0x42deac(0x1e7)]),Object[_0x42deac(0x20d)](_0x20da40)[_0x42deac(0x1fe)](([_0x5d93cc,_0x466791])=>{const _0x1ce926=_0x42deac;_0x5d93cc===_0x1ce926(0xe4)&&typeof _0x466791==_0x1ce926(0xc7)&&(_0x20da40[_0x5d93cc]=_0x466791[_0x1ce926(0x12e)](/url\(#(.*)\)/,'url(#$1'+_0x2c51c6['idSuffix']+')'));});const {defIds:_0x51bb68}=_0x2c51c6;return!_0x51bb68||_0x51bb68[_0x42deac(0x1ca)]===0x0||(_0x5682b3['tag']===_0x42deac(0x178)&&_0x20da40[_0x42deac(0x16c)]&&(_0x20da40[_0x42deac(0x16c)]=_0x20da40[_0x42deac(0x16c)]+_0x2c51c6[_0x42deac(0x1e7)]),Object[_0x42deac(0x20d)](_0x20da40)[_0x42deac(0x1fe)](([_0x190ef3,_0x4e3b82])=>{const _0x93d9cf=_0x42deac;typeof _0x4e3b82==_0x93d9cf(0xc7)&&(_0x20da40[_0x190ef3]=_0x4e3b82['replace'](/url\(#(.*)\)/,_0x93d9cf(0x112)+_0x2c51c6[_0x93d9cf(0x1e7)]+')'));})),_0x20da40;}function ve(_0x58a064,_0x26b8d5){const _0x230fb8=_0x4a7901;var _0x2884f0;const {defIds:_0x54bfe6}=_0x26b8d5;return!_0x54bfe6||_0x54bfe6[_0x230fb8(0x1ca)]===0x0?_0x58a064:_0x58a064['tag']==='defs'&&((_0x2884f0=_0x58a064[_0x230fb8(0x1b9)])!=null&&_0x2884f0[_0x230fb8(0x1ca)])?{..._0x58a064,'children':_0x58a064[_0x230fb8(0x1b9)][_0x230fb8(0x1af)](_0x2af046=>typeof _0x2af046[_0x230fb8(0x15e)]['id']=='string'&&_0x54bfe6&&_0x54bfe6[_0x230fb8(0x1bd)](_0x2af046['attrs']['id'])?{..._0x2af046,'attrs':{..._0x2af046[_0x230fb8(0x15e)],'id':_0x2af046['attrs']['id']+_0x26b8d5['idSuffix']}}:_0x2af046)}:_0x58a064;}function de(){const _0x264650=_0x4a7901;return Math['random']()['toString'](0x24)[_0x264650(0x99)](0x2,0x8);}_['displayName']=_0x4a7901(0x172);const Ce={'tag':'svg','attrs':{'xmlns':_0x4a7901(0x14a),'fill':_0x4a7901(0x1dc),'viewBox':_0x4a7901(0x1fa),'width':_0x4a7901(0x145),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0x4a7901(0x1b3),'fillRule':_0x4a7901(0x8b),'clipRule':'evenodd'}}]},H=d['forwardRef'](function(_0x1429f0,_0x5d7211){const _0x2489ef=_0x4a7901;return d['createElement'](_,Object[_0x2489ef(0x1be)]({},_0x1429f0,{'id':_0x2489ef(0x194),'ref':_0x5d7211,'icon':Ce}));});H['displayName']=_0x4a7901(0x1f2);function _0x1538(){const _0x3eb0a1=['MCP\x20Connecting...','toStringTag','subscribe','clsx','_initializeCommands','_dialogService','_initializeMenus','path','univer-space-y-5','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','univer-space-y-2','2OHPzxj','univer-bg-gray-500','colorChannel1','univer-text-gray-500','defIds','check-mark-icon','bottom','MCP\x20Disconnected','white','error','univer-shrink-0\x20univer-text-red-500','Disconnected','symbol','univer_session_id:','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-text-xs\x20univer-text-gray-500','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','_localStorageService','createElement','getItem','_menuManagerService','MCP:\x20Session\x20ID\x20Occupied','Max\x20Retries','点击连接\x20MCP','mcpConfig.connectionError.sessionOccupied','trim','mcpConfig.configError','mcpConfig.title','mcpConfig.configSaved','Enable\x20Authentication','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','registerCommand','map','univer-bg-blue-500','text','getOwnPropertyDescriptor','M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','connectInjector','useObservable','1079339MScrEu','univer-flex\x20univer-items-center','MCPConfigUIController','children','validateApiKey','jsxs','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','includes','assign','_handleConfigure','enableAutoConnect','getCurrentConfig','next','getConfig','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','MCPConnectionStatus','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','MCP\x20重连中...','配置参数:','mcpConfig.apiKeyPlaceholder','length','MCP:\x20Unauthorized','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','FAILED','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','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','MenuIcon','MCP\x20配置','span','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','RETRYING','连接中...','mcpConfig.connectionStatus.retrying','mergeMenu','_configService','IMenuManagerService','univerjs-icon\x20univerjs-icon-','univer-size-2\x20univer-rounded-full','none','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','BehaviorSubject','_blank','M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z','mcp-ui.config','几秒钟内获取您的\x20API\x20密钥','tag','current','请输入您的\x20API\x20密钥','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','idSuffix','NETWORK_ERROR','round','Inject','LocaleService','mcpConfig.apiApplyInfo.univerAiLabel','23916gQEDTI','会话ID','CONNECTED','HEADER_MENU','warn','CheckMarkIcon','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','mcpConfig.connectionStatus.disconnected','clipPath','_createConfigPanelComponent','__setCustomHeaders','Enter\x20your\x20API\x20key','button','0\x200\x2016\x2016','label','Configuration\x20Steps:','univer-text-xs\x20univer-text-gray-500','forEach','将以下配置添加到您的\x20MCP\x20客户端设置中:','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','mcpConfig.connectionStatus.connecting','https://mcp.univer.ai/mcp/?univer_session_id=','MCP\x20Unknown\x20Status','MCP\x20客户端配置','useState','merge','mcpConfig.apiKey','off-line-icon','MCPConnectionError','showDeveloperTools','_registerComponent','Univer\x20AI\x20控制台','entries','mcpConfig.connectionInfo','univer-flex\x20univer-items-start\x20univer-gap-3','defs','Authorization:','connectionError$','UniverMCPPlugin','COMMAND','evenodd','\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','_mcpCoreConfig$','mcpStatus.connecting','Configuration\x20Notes:','univer-text-blue-600','mcpConfig.configStep1','mcpConfig.authorizationDescription','mcpConfig.validation.apiKeyRequired','has','SESSION_ID_OCCUPIED','jsx','IDialogService','univer-text-sm\x20univer-text-gray-500','substring','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','_loadStoredApiKey','_config','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','removeItem','setConfig','_initStatusComponent','value','univer-space-y-4','_connectionController','Button','univer-bg-red-500','https://console.univer.ai','_injector','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','mcpConfig.connectionStatus.failed','7095zGikxC','OpenMCPConfigPanelCommand','MCP\x20已连接','Connected','\x20-\x20','网络连接错误,请检查您的网络连接','_componentManager','_initAutoConnect','mcpConfig.validation.apiKeyTooShort','Configuration\x20Parameters:','zhCN','displayName','Plugin','_apiKey$','配置\x20MCP\x20使用\x20AI\x20操作电子表格','MCPConnectionController','univer-min-w-0\x20univer-flex-1','已连接','保存中...','svg','Connection\x20Failed','4464105cmNtrn','配置保存失败','errorMessage','<SESSION_ID>','MCP\x20连接中...','您的\x20API\x20密钥将在此浏览器中本地存储','IUIPartsService','translate(.97)','string','API\x20密钥','mcpStatus.networkError','mcpConfig.connectionError.networkError','保存配置','subscribeConfigValue$','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','OTHERS','disposeWithMe','useRef','mcpConfig.connectionError.maxRetriesExceeded','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','API\x20key\x20is\x20required','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','show','mcpStatus.unauthorized','registerComponent','HelpIcon','16XAkXKH','mcpConfig.apiKeyHint','MCP:\x20Network\x20Error','url(#on-line-icon_clip0_910_349)','What\x20is\x20API\x20Key?','MCP\x20状态未知','mcpStatus.maxRetriesExceeded','currentColor','M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z','register','mcp.apiKey','mask','apiKey','Injector','Invalid\x20configuration','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','https://console.univer.plus','fill','Univer\x20AI\x20Console','mcpConfig.connectionError.unauthorized','setItem','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','_messageService','mcpConfig.configStep2','MenuItemType','13557290UHZlUk','<API_KEY>','最大重试次数','API\x20key\x20with\x20Bearer\x20prefix.','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','close','univer-flex\x20univer-flex-wrap\x20univer-gap-2','mcpStatus.connected','权限验证失败,请检查您的\x20API\x20密钥','MCP:\x20会话\x20ID\x20已被占用','univer-mr-2\x20univer-flex\x20univer-text-xl','MCP\x20Retrying...','OnLineIcon','on-line-icon_clip0_910_349','univer.ai','MCP:\x20超出最大重试次数','mcpStatus.disconnected','BuiltInUIPart','_mcpConnectionController','mcpConfig.configInstructions','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','ILogService','univer-text-yellow-500','_validateConfig','IMessageService','univer-flex\x20univer-gap-3','Retrying...','OffLineIcon','mcpServerUrl','useDependency','off-line-icon_clip0_910_343','_logService','url(#$1','get','重启您的\x20MCP\x20客户端以使配置生效','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','MCP_PLUGIN_CONFIG_KEY','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','启用身份验证','MCP\x20Connected','univer-flex\x20univer-items-center\x20univer-gap-2','_localeService','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','9NonyyI','push','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','WebSocketService','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','ISocketService','UniverMCPUIPlugin','mcp-ui.command.openConfigPanel','MessageType','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP:\x20未授权','ComponentManager','Bearer\x20','Module','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','_config$','MCPUIMenuController','replace','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','univer-space-y-3','_uiPartsService','MCP\x20Client\x20Configuration','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','配置无效','Error','复制以下\x20JSON\x20配置','Connecting...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','配置更改将立即生效','MCP\x20Configuration','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','_handleConfigSave','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Enable\x20authentication\x20for\x20secure\x20connections','univer.plus','connectionStatus$','mcpConfig.apiApplyInfo.getStarted','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','API\x20密钥不能为空','1em','Disposable','CONNECTING','配置步骤:','help-icon','http://www.w3.org/2000/svg','API\x20密钥无效,请检查密钥是否正确','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','mcpConfig.apiApplyInfo.title','mcpConfig.configStep3','点击配置\x20MCP','MCP:\x20Max\x20Retries\x20Exceeded','Get\x20your\x20API\x20key\x20in\x20seconds','mcpConfig.description','univer-text-green-500','MCP_UI_PLUGIN','4540221xrAMAq','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','4806NyQaNR','DependentOn','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','univer-text-white','什么是\x20API\x20密钥?','API\x20Key','MCPStatusDisplay','attrs','MCP:\x20网络错误','6765aMBwRS','MCPConfigPanel','mcpConfig.sessionIdDescription','defineProperty','MCP\x20Connection\x20Failed','_commandService','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','IConfigService','带有\x20Bearer\x20前缀的\x20API\x20密钥。','pre','M0\x200H16V16H0z','Failed\x20to\x20save\x20configuration','xlink:href','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','6476696oPOLgP','forwardRef','isValid','_loading$','UniverIcon','on-line-icon','_initConfigSync','univer-flex-1','UNAUTHORIZED','NONE','use','DISCONNECTED','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','div','MCP\x20已断开','MCPConnectionUIController','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','univer-text-red-500','showConfigPanel','enUS','mcpStatus.clickToConfigure','useCallback'];_0x1538=function(){return _0x3eb0a1;};return _0x1538();}const ge={'tag':'svg','attrs':{'xmlns':_0x4a7901(0x14a),'fill':_0x4a7901(0x1dc),'viewBox':'0\x200\x2016\x2016','width':_0x4a7901(0x145),'height':'1em'},'children':[{'tag':_0x4a7901(0x18b),'attrs':{'fill':_0x4a7901(0xe0),'d':_0x4a7901(0xe1)}}]},B=d[_0x4a7901(0x16f)](function(_0x5812e7,_0x2eefa9){const _0x29dcf6=_0x4a7901;return d[_0x29dcf6(0x1a1)](_,Object[_0x29dcf6(0x1be)]({},_0x5812e7,{'id':'close-icon','ref':_0x2eefa9,'icon':ge}));});B[_0x4a7901(0xb5)]='CloseIcon';const fe={'tag':_0x4a7901(0xbd),'attrs':{'xmlns':_0x4a7901(0x14a),'fill':_0x4a7901(0x1dc),'viewBox':_0x4a7901(0x1fa),'width':_0x4a7901(0x145),'height':_0x4a7901(0x145)},'children':[{'tag':_0x4a7901(0x18b),'attrs':{'fill':'currentColor','d':'M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z'}},{'tag':_0x4a7901(0x18b),'attrs':{'fill':_0x4a7901(0xe0),'d':_0x4a7901(0x1e0)}},{'tag':'path','attrs':{'fill':_0x4a7901(0xe0),'d':'M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','fillRule':_0x4a7901(0x8b),'clipRule':_0x4a7901(0x8b)}}]},F=d['forwardRef'](function(_0x2a4125,_0x331f53){const _0x240e93=_0x4a7901;return d[_0x240e93(0x1a1)](_,Object[_0x240e93(0x1be)]({},_0x2a4125,{'id':_0x240e93(0x149),'ref':_0x331f53,'icon':fe}));});F['displayName']=_0x4a7901(0xd8);const pe={'tag':_0x4a7901(0xbd),'attrs':{'xmlns':_0x4a7901(0x14a),'fill':_0x4a7901(0x1dc),'viewBox':_0x4a7901(0x1fa),'width':_0x4a7901(0x145),'height':_0x4a7901(0x145)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x4a7901(0x18b),'attrs':{'stroke':_0x4a7901(0xe0),'d':_0x4a7901(0x9a),'strokeLinecap':_0x4a7901(0x1e9),'strokeLinejoin':_0x4a7901(0x1e9),'strokeWidth':1.2}}]},{'tag':_0x4a7901(0x210),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x4a7901(0x110)},'children':[{'tag':'path','attrs':{'fill':_0x4a7901(0x197),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x4a7901(0x110)]},Y=d['forwardRef'](function(_0x3c9df8,_0x562ce0){const _0x22e8e8=_0x4a7901;return d[_0x22e8e8(0x1a1)](_,Object['assign']({},_0x3c9df8,{'id':_0x22e8e8(0x208),'ref':_0x562ce0,'icon':pe}));});Y[_0x4a7901(0xb5)]=_0x4a7901(0x10d);function _0x1db2(_0x551bd0,_0x3e0dd3){_0x551bd0=_0x551bd0-0x89;const _0x15388e=_0x1538();let _0x1db224=_0x15388e[_0x551bd0];return _0x1db224;}const he={'tag':'svg','attrs':{'xmlns':_0x4a7901(0x14a),'fill':'none','viewBox':'0\x200\x2017\x2016','width':_0x4a7901(0x145),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x4a7901(0xdc)},'children':[{'tag':_0x4a7901(0x18b),'attrs':{'stroke':_0x4a7901(0xe0),'d':_0x4a7901(0x115),'strokeLinecap':_0x4a7901(0x1e9),'strokeLinejoin':_0x4a7901(0x1e9),'strokeWidth':1.2}}]},{'tag':_0x4a7901(0x210),'attrs':{},'children':[{'tag':_0x4a7901(0x1f5),'attrs':{'id':_0x4a7901(0xff)},'children':[{'tag':_0x4a7901(0x18b),'attrs':{'fill':_0x4a7901(0x197),'d':_0x4a7901(0x16a),'transform':_0x4a7901(0xc6)}}]}]}],'defIds':[_0x4a7901(0xff)]},q=d[_0x4a7901(0x16f)](function(_0x4ec108,_0x4896d1){const _0x1a155f=_0x4a7901;return d[_0x1a155f(0x1a1)](_,Object[_0x1a155f(0x1be)]({},_0x4ec108,{'id':_0x1a155f(0x173),'ref':_0x4896d1,'icon':he}));});q[_0x4a7901(0xb5)]=_0x4a7901(0xfe);function V(_0x4264f3){const _0x36ee4f=_0x4a7901;var _0x3001ed,_0x3ca678;const {mcpCoreConfig:_0x87d96a,onSave:_0x687c86,loading:_0x3c11f7=!0x1,config:_0x435be5,connectionStatus$:_0xf120b7,connectionError$:_0x556d08,currentApiKey$:_0x2b5817,currentSessionId$:_0xabec22}=_0x4264f3,_0x218ca4=v[_0x36ee4f(0x10f)](u[_0x36ee4f(0x1eb)]),_0x44082e=v[_0x36ee4f(0x1b5)](_0xf120b7,s[_0x36ee4f(0x1c5)][_0x36ee4f(0x179)]),_0x51dfdd=v['useObservable'](_0x556d08,s['MCPConnectionError'][_0x36ee4f(0x177)]),_0x483475=v[_0x36ee4f(0x1b5)](_0xabec22,''),_0x4a4b73=v[_0x36ee4f(0x1b5)](_0x2b5817,''),[_0x5d03a5,_0x359dc3]=d[_0x36ee4f(0x205)](_0x4a4b73||''),_0x3cee4a=!0x0,_0x64f020=_0x435be5[_0x36ee4f(0x20a)]&&_0x87d96a[_0x36ee4f(0x10e)]&&(_0x87d96a[_0x36ee4f(0x10e)][_0x36ee4f(0x1bd)](_0x36ee4f(0x140))||_0x87d96a[_0x36ee4f(0x10e)]['includes'](_0x36ee4f(0x100))),_0x464c75=(_0x3001ed=_0x87d96a[_0x36ee4f(0x10e)])==null?void 0x0:_0x3001ed[_0x36ee4f(0x1bd)](_0x36ee4f(0x140)),_0x4ef88c=(_0x3ca678=_0x87d96a[_0x36ee4f(0x10e)])==null?void 0x0:_0x3ca678[_0x36ee4f(0x1bd)](_0x36ee4f(0x100)),_0x639e22=_0x464c75?_0x36ee4f(0xe9):_0x36ee4f(0xa6),_0x5247ee=_0x435be5[_0x36ee4f(0x20a)]&&(_0x464c75||_0x4ef88c),[_0x72cf9e,_0x50f1f1]=d['useState'](!_0x5d03a5['trim']()),_0x2c119d=(_0x589dd5,_0x517950)=>{const _0x249957=_0x36ee4f;if(_0x517950===s['MCPConnectionError'][_0x249957(0x176)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x589dd5){case s[_0x249957(0x1c5)][_0x249957(0x1ef)]:return _0x249957(0xe8);case s[_0x249957(0x1c5)][_0x249957(0x147)]:case s[_0x249957(0x1c5)][_0x249957(0x1d4)]:return _0x249957(0x159);case s['MCPConnectionStatus'][_0x249957(0x1cd)]:return _0x249957(0x11c);default:return _0x249957(0xee);}},_0x646254=(_0x55afbe,_0x206121)=>{const _0x257e46=_0x36ee4f;if(_0x206121===s['MCPConnectionError']['UNAUTHORIZED'])return _0x257e46(0xa5);switch(_0x55afbe){case s[_0x257e46(0x1c5)]['CONNECTED']:return'univer-bg-green-500';case s[_0x257e46(0x1c5)][_0x257e46(0x147)]:case s[_0x257e46(0x1c5)][_0x257e46(0x1d4)]:return _0x257e46(0x1b0);case s['MCPConnectionStatus'][_0x257e46(0x1cd)]:return'univer-bg-red-500';default:return _0x257e46(0x190);}},_0x5cff50=_0x133f6c=>{const _0x3aa4bb=_0x36ee4f;switch(_0x133f6c){case s[_0x3aa4bb(0x1c5)][_0x3aa4bb(0x1ef)]:return _0x218ca4['t']('mcpConfig.connectionStatus.connected');case s['MCPConnectionStatus'][_0x3aa4bb(0x147)]:return _0x218ca4['t'](_0x3aa4bb(0x201));case s['MCPConnectionStatus'][_0x3aa4bb(0x1cd)]:return _0x218ca4['t'](_0x3aa4bb(0xa9));case s['MCPConnectionStatus']['RETRYING']:return _0x218ca4['t'](_0x3aa4bb(0x1d6));default:return _0x218ca4['t'](_0x3aa4bb(0x1f4));}},_0x3f50ac=_0x30f396=>{const _0x4f75bb=_0x36ee4f;switch(_0x30f396){case s[_0x4f75bb(0x209)]['UNAUTHORIZED']:return _0x218ca4['t'](_0x4f75bb(0xec));case s[_0x4f75bb(0x209)][_0x4f75bb(0x95)]:return _0x218ca4['t'](_0x4f75bb(0x1a7));case s[_0x4f75bb(0x209)][_0x4f75bb(0x1e8)]:return _0x218ca4['t'](_0x4f75bb(0xca));case s[_0x4f75bb(0x209)]['MAX_RETRIES_EXCEEDED']:return _0x218ca4['t'](_0x4f75bb(0xd1));default:return'';}},_0x311ee1=d['useCallback'](()=>{const _0x3b5152=_0x36ee4f,_0x4993b8={..._0x87d96a,'apiKey':_0x5d03a5[_0x3b5152(0x1a8)](),'enableAuth':_0x3cee4a};_0x687c86(_0x4993b8);},[_0x87d96a,_0x5d03a5,_0x3cee4a,_0x687c86]),_0x52eb36=_0x5d03a5[_0x36ee4f(0x1a8)]()[_0x36ee4f(0x1ca)]>0x0;return i[_0x36ee4f(0x1bb)](_0x36ee4f(0x17b),{'className':_0x36ee4f(0x12f),'children':[i[_0x36ee4f(0x96)](_0x36ee4f(0x17b),{'className':_0x36ee4f(0x1ad),'children':i['jsxs'](_0x36ee4f(0x17b),{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[i[_0x36ee4f(0x96)]('div',{'className':_0x36ee4f(0x18d),'children':i[_0x36ee4f(0x96)](_0x36ee4f(0x1d2),{'className':_0x36ee4f(0x15a),'children':'⚙'})}),i[_0x36ee4f(0x96)](_0x36ee4f(0x17b),{'children':i['jsx']('p',{'className':_0x36ee4f(0x98),'children':_0x218ca4['t'](_0x36ee4f(0x152))})})]})}),i[_0x36ee4f(0x1bb)](_0x36ee4f(0x17b),{'className':_0x36ee4f(0x1d3),'children':[i[_0x36ee4f(0x96)](_0x36ee4f(0x17b),{'className':f[_0x36ee4f(0x187)](_0x36ee4f(0x16d),_0x2c119d(_0x44082e,_0x51dfdd)),'children':i[_0x36ee4f(0x1bb)](_0x36ee4f(0x17b),{'className':_0x36ee4f(0x11a),'children':[i[_0x36ee4f(0x96)](_0x36ee4f(0x17b),{'className':f[_0x36ee4f(0x187)](_0x36ee4f(0x1db),_0x646254(_0x44082e,_0x51dfdd))}),i[_0x36ee4f(0x96)]('span',{'className':'univer-text-sm\x20univer-font-medium','children':_0x5cff50(_0x44082e)})]})}),_0x51dfdd!==s[_0x36ee4f(0x209)]['NONE']&&(_0x44082e===s[_0x36ee4f(0x1c5)][_0x36ee4f(0x1cd)]||_0x51dfdd===s[_0x36ee4f(0x209)][_0x36ee4f(0x176)])&&i['jsx'](_0x36ee4f(0x17b),{'className':_0x36ee4f(0xcd),'children':i[_0x36ee4f(0x1bb)](_0x36ee4f(0x17b),{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[i[_0x36ee4f(0x96)](_0x36ee4f(0x1d2),{'className':_0x36ee4f(0x199),'children':'⚠️'}),i[_0x36ee4f(0x96)]('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x3f50ac(_0x51dfdd)})]})})]}),i['jsx'](_0x36ee4f(0x17b),{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':i[_0x36ee4f(0x1bb)](_0x36ee4f(0x17b),{'className':_0x36ee4f(0x18c),'children':[i[_0x36ee4f(0x1bb)](_0x36ee4f(0x17b),{'className':'univer-space-y-2','children':[i[_0x36ee4f(0x1bb)](_0x36ee4f(0x1fb),{'className':_0x36ee4f(0x12b),'children':[i[_0x36ee4f(0x96)](_0x36ee4f(0x1d2),{'children':'🔑'}),'\x20',_0x218ca4['t'](_0x36ee4f(0x207)),i[_0x36ee4f(0x96)](_0x36ee4f(0x1d2),{'className':'univer-text-red-500','children':'*'}),_0x64f020&&i[_0x36ee4f(0x96)]('a',{'className':_0x36ee4f(0x106),'title':_0x218ca4['t']('mcpConfig.apiApplyInfo.title'),'role':_0x36ee4f(0x1f9),'onClick':()=>_0x50f1f1(!0x0),'children':i[_0x36ee4f(0x96)](F,{})})]}),i[_0x36ee4f(0x96)](f['Input'],{'type':_0x36ee4f(0x1b1),'placeholder':_0x218ca4['t'](_0x36ee4f(0x1c9)),'value':_0x5d03a5,'disabled':_0x3c11f7,'autoComplete':'off','onChange':_0x359dc3}),i[_0x36ee4f(0x96)]('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x218ca4['t'](_0x36ee4f(0xda))})]}),_0x64f020&&_0x72cf9e&&i[_0x36ee4f(0x1bb)](_0x36ee4f(0x17b),{'className':_0x36ee4f(0x1cc),'children':[i[_0x36ee4f(0x96)]('a',{'className':'univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','role':_0x36ee4f(0x1f9),'onClick':()=>_0x50f1f1(!0x1),'children':i[_0x36ee4f(0x96)](B,{'className':'univer-size-4'})}),i['jsxs']('div',{'className':_0x36ee4f(0x1c6),'children':[i[_0x36ee4f(0x96)](_0x36ee4f(0x17b),{'className':'univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':i[_0x36ee4f(0x96)](_0x36ee4f(0x1d2),{'className':_0x36ee4f(0x90),'children':'🚀'})}),i[_0x36ee4f(0x1bb)]('div',{'className':_0x36ee4f(0x175),'children':[i[_0x36ee4f(0x96)]('h4',{'className':_0x36ee4f(0x133),'children':_0x218ca4['t'](_0x36ee4f(0x14d))}),i['jsx']('p',{'className':_0x36ee4f(0x200),'children':_0x218ca4['t']('mcpConfig.apiApplyInfo.description')}),i[_0x36ee4f(0x96)](_0x36ee4f(0x17b),{'className':_0x36ee4f(0xf8),'children':_0x5247ee&&i[_0x36ee4f(0x1bb)]('a',{'className':_0x36ee4f(0xd4),'href':_0x639e22,'target':_0x36ee4f(0x1df),'rel':'noopener\x20noreferrer','children':[i[_0x36ee4f(0x96)](_0x36ee4f(0x1d2),{'children':'🤖'}),_0x218ca4['t'](_0x36ee4f(0x1ec)),i[_0x36ee4f(0x96)](_0x36ee4f(0x1d2),{'className':'univer-text-gray-400','children':'↗'})]})}),i['jsxs'](_0x36ee4f(0x17b),{'className':_0x36ee4f(0x19e),'children':['✨','\x20',_0x218ca4['t'](_0x36ee4f(0x142))]})]})]})]}),_0x435be5[_0x36ee4f(0x20a)]&&i[_0x36ee4f(0x1bb)](_0x36ee4f(0x17b),{'className':_0x36ee4f(0x11f),'children':[i[_0x36ee4f(0x1bb)]('h4',{'className':_0x36ee4f(0x19f),'children':[i[_0x36ee4f(0x96)]('span',{'children':'🔗'}),'\x20',_0x218ca4['t'](_0x36ee4f(0x20e))]}),i['jsxs'](_0x36ee4f(0x17b),{'className':_0x36ee4f(0xa2),'children':[i[_0x36ee4f(0x1bb)]('div',{'className':_0x36ee4f(0x130),'children':[i[_0x36ee4f(0x96)]('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x218ca4['t'](_0x36ee4f(0x105))}),i[_0x36ee4f(0x1bb)]('div',{'className':'univer-space-y-2','children':[i[_0x36ee4f(0x96)]('div',{'className':_0x36ee4f(0x1f3),'children':_0x218ca4['t']('mcpConfig.configStepTitle')}),i[_0x36ee4f(0x1bb)]('div',{'className':_0x36ee4f(0x143),'children':[i['jsxs'](_0x36ee4f(0x17b),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x36ee4f(0x96)](_0x36ee4f(0x1d2),{'className':_0x36ee4f(0x1cf),'children':'1'}),_0x218ca4['t'](_0x36ee4f(0x91))]}),i['jsxs'](_0x36ee4f(0x17b),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x36ee4f(0x96)]('span',{'className':_0x36ee4f(0x1cf),'children':'2'}),_0x218ca4['t'](_0x36ee4f(0xf0))]}),i[_0x36ee4f(0x1bb)](_0x36ee4f(0x17b),{'className':_0x36ee4f(0x11a),'children':[i[_0x36ee4f(0x96)](_0x36ee4f(0x1d2),{'className':_0x36ee4f(0x1cf),'children':'3'}),_0x218ca4['t'](_0x36ee4f(0x14e))]})]})]})]}),i['jsxs'](_0x36ee4f(0x17b),{'className':_0x36ee4f(0x18e),'children':[i['jsx'](_0x36ee4f(0x17b),{'className':_0x36ee4f(0x1f3),'children':_0x36ee4f(0x13a)}),i[_0x36ee4f(0x96)](_0x36ee4f(0x17b),{'className':_0x36ee4f(0x1c4),'children':i[_0x36ee4f(0x96)](_0x36ee4f(0x169),{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':JSON['stringify']({'mcpServers':{'univer':{'url':_0x36ee4f(0x202)+(_0x483475||_0x36ee4f(0xc2)),'type':'http','headers':{'Authorization':_0x36ee4f(0x129)+(_0x5d03a5||_0x36ee4f(0xf3))}}}},null,0x2)})})]}),i['jsxs'](_0x36ee4f(0x17b),{'className':_0x36ee4f(0x130),'children':[i[_0x36ee4f(0x96)](_0x36ee4f(0x17b),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x218ca4['t']('mcpConfig.configParameters')}),i[_0x36ee4f(0x1bb)]('div',{'className':_0x36ee4f(0x18e),'children':[i[_0x36ee4f(0x1bb)](_0x36ee4f(0x17b),{'className':_0x36ee4f(0x20f),'children':[i[_0x36ee4f(0x96)](_0x36ee4f(0x17b),{'className':_0x36ee4f(0x9d)}),i[_0x36ee4f(0x1bb)]('div',{'className':_0x36ee4f(0xba),'children':[i[_0x36ee4f(0x96)](_0x36ee4f(0x17b),{'className':_0x36ee4f(0xf6),'children':_0x36ee4f(0x19c)}),i[_0x36ee4f(0x96)](_0x36ee4f(0x17b),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x218ca4['t'](_0x36ee4f(0x162))})]})]}),i[_0x36ee4f(0x1bb)](_0x36ee4f(0x17b),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[i[_0x36ee4f(0x96)](_0x36ee4f(0x17b),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),i[_0x36ee4f(0x1bb)](_0x36ee4f(0x17b),{'className':_0x36ee4f(0xba),'children':[i[_0x36ee4f(0x96)]('div',{'className':_0x36ee4f(0xf6),'children':_0x36ee4f(0x211)}),i[_0x36ee4f(0x96)]('div',{'className':_0x36ee4f(0x1fd),'children':_0x218ca4['t'](_0x36ee4f(0x92))})]})]})]})]})]})]}),i[_0x36ee4f(0x96)](f[_0x36ee4f(0xa4)],{'onClick':_0x311ee1,'disabled':!_0x52eb36||_0x3c11f7,'className':_0x36ee4f(0x1bc),'children':_0x3c11f7?i[_0x36ee4f(0x1bb)](_0x36ee4f(0x1d2),{'className':_0x36ee4f(0x11a),'children':[i['jsx'](_0x36ee4f(0x1d2),{'children':'⟲'}),_0x218ca4['t']('mcpConfig.saving')]}):i[_0x36ee4f(0x1bb)]('span',{'className':_0x36ee4f(0x11a),'children':[i[_0x36ee4f(0x96)](H,{}),_0x218ca4['t']('mcpConfig.save')]})}),i['jsx']('div',{'className':_0x36ee4f(0x14c),'children':i[_0x36ee4f(0x1bb)](_0x36ee4f(0x17b),{'className':_0x36ee4f(0x10b),'children':[i[_0x36ee4f(0x96)](_0x36ee4f(0x1d2),{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),i[_0x36ee4f(0x1bb)]('div',{'className':_0x36ee4f(0x121),'children':[i[_0x36ee4f(0x96)](_0x36ee4f(0x17b),{'className':'univer-font-medium','children':_0x36ee4f(0x8f)}),i[_0x36ee4f(0x1bb)]('div',{'children':['•',_0x218ca4['t']('mcpConfig.note1')]}),i[_0x36ee4f(0x1bb)]('div',{'children':['•',_0x218ca4['t']('mcpConfig.note2')]})]})]})})]})})]});}const P=_0x4a7901(0x1e1),L={'showDeveloperTools':!0x1,'showStatus':!0x0};var me=Object[_0x4a7901(0x1b2)],xe=(_0x4f932d,_0x13c25d,_0x33d490,_0x16dbf7)=>{for(var _0x158902=_0x16dbf7>0x1?void 0x0:_0x16dbf7?me(_0x13c25d,_0x33d490):_0x13c25d,_0x30012a=_0x4f932d['length']-0x1,_0x3d97ad;_0x30012a>=0x0;_0x30012a--)(_0x3d97ad=_0x4f932d[_0x30012a])&&(_0x158902=_0x3d97ad(_0x158902)||_0x158902);return _0x158902;},g=(_0x376bf9,_0x4a682d)=>(_0x513367,_0x2cf2d7)=>_0x4a682d(_0x513367,_0x2cf2d7,_0x376bf9);const O=_0x4a7901(0xe3),D='mcp-config-dialog';exports['MCPConfigUIController']=class extends u[_0x4a7901(0x146)]{constructor(_0x1faabe,_0x59d768,_0x5a9311,_0x269978,_0x30ce34,_0x5e1474,_0x4f3214,_0x1ce4c4,_0x2fd8ad,_0x23420c){const _0x77ceb3=_0x4a7901;super(),I(this,_0x77ceb3(0x171),new M['BehaviorSubject'](!0x1)),I(this,_0x77ceb3(0x8d),new M[(_0x77ceb3(0x1de))]({})),I(this,_0x77ceb3(0x12c),new M[(_0x77ceb3(0x1de))]({})),I(this,_0x77ceb3(0xb7),new M[(_0x77ceb3(0x1de))]('')),I(this,_0x77ceb3(0x13d),async _0x4db533=>{const _0x431659=_0x77ceb3;var _0x1fcc00,_0x10a8c4;this['_loading$']['next'](!0x0);try{const _0x57576c=await this[_0x431659(0x109)](_0x4db533);if(!_0x57576c[_0x431659(0x170)]){this[_0x431659(0xef)][_0x431659(0xd5)]({'type':f[_0x431659(0x125)][_0x431659(0x135)],'content':_0x57576c[_0x431659(0xc1)]||this[_0x431659(0x11b)]['t']('mcpConfig.validation.invalidConfig')});return;}_0x4db533[_0x431659(0xe5)]?await this[_0x431659(0x1a0)][_0x431659(0xed)](O,_0x4db533['apiKey'][_0x431659(0x1a8)]()):await this[_0x431659(0x1a0)][_0x431659(0x9e)](O),this[_0x431659(0xb7)]['next'](((_0x1fcc00=_0x4db533[_0x431659(0xe5)])==null?void 0x0:_0x1fcc00['trim']())||''),this[_0x431659(0x104)][_0x431659(0x1f7)]({'Authorization':'Bearer\x20'+((_0x10a8c4=_0x4db533['apiKey'])==null?void 0x0:_0x10a8c4['trim']())}),this[_0x431659(0xef)][_0x431659(0xd5)]({'type':f[_0x431659(0x125)]['Success'],'content':this['_localeService']['t'](_0x431659(0x1ab))}),setTimeout(()=>{const _0x498787=_0x431659;this[_0x498787(0x189)][_0x498787(0xf7)](D);},0x320);}catch(_0xc09fbb){this[_0x431659(0x111)][_0x431659(0x198)](_0x431659(0x156),_0xc09fbb),this[_0x431659(0xef)]['show']({'type':f['MessageType'][_0x431659(0x135)],'content':this[_0x431659(0x11b)]['t'](_0x431659(0x1a9))});}finally{this['_loading$'][_0x431659(0x1c2)](!0x1);}}),(this[_0x77ceb3(0xa7)]=_0x1faabe,this[_0x77ceb3(0x131)]=_0x59d768,this[_0x77ceb3(0x1d8)]=_0x5a9311,this[_0x77ceb3(0x1a0)]=_0x269978,this[_0x77ceb3(0x189)]=_0x30ce34,this[_0x77ceb3(0xef)]=_0x5e1474,this[_0x77ceb3(0xb0)]=_0x4f3214,this[_0x77ceb3(0x11b)]=_0x1ce4c4,this[_0x77ceb3(0x111)]=_0x2fd8ad,this[_0x77ceb3(0x104)]=_0x23420c,this[_0x77ceb3(0x174)](),this[_0x77ceb3(0x9b)](),this[_0x77ceb3(0x20b)]());}['showConfigPanel'](){const _0x237179=_0x4a7901,_0x10d725=this[_0x237179(0x1d8)][_0x237179(0x1c3)](P);_0x10d725!=null&&_0x10d725[_0x237179(0x20a)]&&this[_0x237179(0x189)]['open']({'id':D,'title':{'title':this[_0x237179(0x11b)]['t'](_0x237179(0x1aa))},'children':{'label':_0x237179(0x161)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x2104f2=_0x237179;this[_0x2104f2(0x189)]['close'](D);}});}[_0x4a7901(0x1c1)](){const _0x3b4d43=_0x4a7901;return this[_0x3b4d43(0x8d)][_0x3b4d43(0xa1)];}[_0x4a7901(0x20b)](){const _0x5724e1=_0x4a7901;this['disposeWithMe'](this[_0x5724e1(0xb0)][_0x5724e1(0xe2)](_0x5724e1(0x161),this[_0x5724e1(0x1f6)]()));}[_0x4a7901(0x1f6)](){const _0x10a9c4=_0x4a7901;return v[_0x10a9c4(0x1b4)](()=>{const _0x413c1d=_0x10a9c4;var _0x49e527,_0x5a482d,_0x560e8e;return i[_0x413c1d(0x96)](V,{'config':this[_0x413c1d(0x12c)]['value'],'mcpCoreConfig':this[_0x413c1d(0x8d)][_0x413c1d(0xa1)],'currentApiKey$':this[_0x413c1d(0xb7)],'onSave':this[_0x413c1d(0x13d)],'loading':this[_0x413c1d(0x171)][_0x413c1d(0xa1)],'connectionStatus$':(_0x49e527=this[_0x413c1d(0x104)])==null?void 0x0:_0x49e527['connectionStatus$'],'connectionError$':(_0x5a482d=this['_mcpConnectionController'])==null?void 0x0:_0x5a482d[_0x413c1d(0x212)],'currentSessionId$':(_0x560e8e=this[_0x413c1d(0x104)])==null?void 0x0:_0x560e8e['sessionId$']});},this[_0x10a9c4(0xa7)]);}[_0x4a7901(0x174)](){const _0x48f1dd=_0x4a7901;this[_0x48f1dd(0xcf)](this[_0x48f1dd(0x1d8)]['subscribeConfigValue$'](s[_0x48f1dd(0x116)])[_0x48f1dd(0x186)](_0x4a534f=>{const _0x51e061=_0x48f1dd;this[_0x51e061(0x8d)][_0x51e061(0x1c2)](_0x4a534f||{});}));const _0x383838=this['_configService'][_0x48f1dd(0x1c3)](s[_0x48f1dd(0x116)]);this[_0x48f1dd(0x8d)]['next'](_0x383838||{}),this[_0x48f1dd(0xcf)](this[_0x48f1dd(0x1d8)][_0x48f1dd(0xcc)](P)[_0x48f1dd(0x186)](_0x14f3cd=>{const _0x51cd53=_0x48f1dd;this[_0x51cd53(0x12c)][_0x51cd53(0x1c2)](_0x14f3cd||{});}));const _0x52837b=this[_0x48f1dd(0x1d8)]['getConfig'](P);this[_0x48f1dd(0x12c)][_0x48f1dd(0x1c2)](_0x52837b||{});}async[_0x4a7901(0x9b)](){const _0x13272f=_0x4a7901,_0x2cd2b7=this[_0x13272f(0x1d8)]['getConfig'](P);if(!(_0x2cd2b7!=null&&_0x2cd2b7[_0x13272f(0x20a)]))return;const _0x593cc7=await this[_0x13272f(0x1a0)][_0x13272f(0x1a2)](O);_0x593cc7&&(this[_0x13272f(0x104)][_0x13272f(0x1f7)]({'Authorization':_0x13272f(0x129)+_0x593cc7}),this[_0x13272f(0xb7)][_0x13272f(0x1c2)](_0x593cc7));}async[_0x4a7901(0x109)](_0x3c7830){const _0x1b9009=_0x4a7901;if(!_0x3c7830[_0x1b9009(0xe5)]||_0x3c7830['apiKey'][_0x1b9009(0x1a8)]()[_0x1b9009(0x1ca)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x1b9009(0x11b)]['t'](_0x1b9009(0x93))};if(_0x3c7830[_0x1b9009(0xe5)][_0x1b9009(0x1a8)]()[_0x1b9009(0x1ca)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x1b9009(0x11b)]['t'](_0x1b9009(0xb2))};try{const _0xa10f84=await this[_0x1b9009(0xa7)][_0x1b9009(0x113)](s[_0x1b9009(0xb9)])[_0x1b9009(0x1ba)](_0x3c7830[_0x1b9009(0xe5)][_0x1b9009(0x1a8)]());return _0xa10f84[_0x1b9009(0x170)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0xa10f84[_0x1b9009(0x198)]||this[_0x1b9009(0x11b)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x4514fa){return console[_0x1b9009(0x1f1)](_0x1b9009(0xd2),_0x4514fa),{'isValid':!0x0};}}},exports[_0x4a7901(0x1b8)]=xe([g(0x0,u[_0x4a7901(0x1ea)](u['Injector'])),g(0x1,v['IUIPartsService']),g(0x2,u[_0x4a7901(0x167)]),g(0x3,u['ILocalStorageService']),g(0x4,v[_0x4a7901(0x97)]),g(0x5,v[_0x4a7901(0x10a)]),g(0x6,u[_0x4a7901(0x1ea)](v[_0x4a7901(0x128)])),g(0x7,u[_0x4a7901(0x1ea)](u[_0x4a7901(0x1eb)])),g(0x8,u[_0x4a7901(0x107)]),g(0x9,u[_0x4a7901(0x1ea)](s[_0x4a7901(0xb9)]))],exports[_0x4a7901(0x1b8)]);const b={'id':_0x4a7901(0x124),'type':u['CommandType'][_0x4a7901(0x8a)],'handler':async(_0xafa3d3,_0x20a7b3)=>(_0xafa3d3[_0x4a7901(0x113)](exports[_0x4a7901(0x1b8)])[_0x4a7901(0x180)](),!0x0)};function Z(_0x4b5379,_0x357702){const _0x40a48e=_0x4a7901;switch(_0x4b5379){case s[_0x40a48e(0x1c5)][_0x40a48e(0x179)]:return _0x40a48e(0x102);case s['MCPConnectionStatus'][_0x40a48e(0x147)]:return _0x40a48e(0x8e);case s[_0x40a48e(0x1c5)]['CONNECTED']:return _0x40a48e(0xf9);case s[_0x40a48e(0x1c5)]['FAILED']:switch(_0x357702){case s[_0x40a48e(0x209)][_0x40a48e(0x176)]:return _0x40a48e(0xd6);case s[_0x40a48e(0x209)][_0x40a48e(0x95)]:return'mcpStatus.sessionOccupied';case s[_0x40a48e(0x209)][_0x40a48e(0x1e8)]:return _0x40a48e(0xc9);case s[_0x40a48e(0x209)]['MAX_RETRIES_EXCEEDED']:return _0x40a48e(0xdf);default:return'mcpStatus.failed';}case s['MCPConnectionStatus'][_0x40a48e(0x1d4)]:return'mcpStatus.retrying';default:return'mcpStatus.unknown';}}function Se(_0x10d76e,_0x45649d,_0x279496,_0x4e238f=!0x0){const _0x31b672=_0x4a7901,_0x414d3e=Z(_0x10d76e,_0x45649d),_0x539921=_0x279496['t'](_0x414d3e);return _0x4e238f?_0x10d76e===s[_0x31b672(0x1c5)][_0x31b672(0x179)]&&_0x45649d===s[_0x31b672(0x209)][_0x31b672(0x176)]?_0x539921+'\x20-\x20'+_0x279496['t'](_0x31b672(0x182)):_0x10d76e===s[_0x31b672(0x1c5)][_0x31b672(0x1ef)]?''+_0x539921:_0x10d76e===s['MCPConnectionStatus']['DISCONNECTED']||_0x10d76e===s['MCPConnectionStatus'][_0x31b672(0x1cd)]?_0x539921+_0x31b672(0xae)+_0x279496['t']('mcpStatus.clickToConnect'):_0x539921:_0x539921;}function Pe(_0x1bbc34){const _0x2d6f26=_0x4a7901;switch(_0x1bbc34){case s[_0x2d6f26(0x1c5)][_0x2d6f26(0x1ef)]:return _0x2d6f26(0x153);case s[_0x2d6f26(0x1c5)]['CONNECTING']:case s[_0x2d6f26(0x1c5)]['RETRYING']:return _0x2d6f26(0x108);case s[_0x2d6f26(0x1c5)][_0x2d6f26(0x1cd)]:case s[_0x2d6f26(0x1c5)]['DISCONNECTED']:return _0x2d6f26(0x17f);default:return _0x2d6f26(0x192);}}function W(_0x12823f){const _0x2b7f66=_0x4a7901,{status$:_0x26a92d,error$:_0x5334a1,onConfigure:_0x7c5dd9,showClickable:_0xe43f29=!0x0}=_0x12823f,_0x1153ee=v[_0x2b7f66(0x1b5)](_0x26a92d,s[_0x2b7f66(0x1c5)][_0x2b7f66(0x179)]),_0x5e0210=v[_0x2b7f66(0x1b5)](_0x5334a1,s[_0x2b7f66(0x209)]['NONE']),_0x287ca7=v[_0x2b7f66(0x10f)](u[_0x2b7f66(0x1eb)]),_0x4335ee=_0x1153ee===s['MCPConnectionStatus'][_0x2b7f66(0x1ef)];_0x1153ee===s[_0x2b7f66(0x1c5)][_0x2b7f66(0x147)]||s[_0x2b7f66(0x1c5)][_0x2b7f66(0x1d4)];const _0x1aa6f6=_0x287ca7['t'](Z(_0x1153ee,_0x5e0210)),_0x12db61=Se(_0x1153ee,_0x5e0210,_0x287ca7,_0xe43f29),_0x127b96=Pe(_0x1153ee),_0x5be154=_0x4335ee?i[_0x2b7f66(0x96)](q,{}):i[_0x2b7f66(0x96)](Y,{}),_0x4193a8=d[_0x2b7f66(0x183)](()=>{_0xe43f29&&_0x7c5dd9&&_0x7c5dd9();},[_0xe43f29,_0x7c5dd9]);function _0xa33806(){const _0x363da1=_0x2b7f66;return i[_0x363da1(0x1bb)]('div',{'className':f[_0x363da1(0x187)](_0x363da1(0x1b7),_0xe43f29&&_0x7c5dd9&&_0x363da1(0x8c)),'role':_0x363da1(0x1f9),'onClick':_0xe43f29&&_0x7c5dd9?_0x4193a8:void 0x0,'children':[i[_0x363da1(0x96)](_0x363da1(0x17b),{'className':f[_0x363da1(0x187)](_0x363da1(0xfc),_0x127b96),'children':_0x5be154}),i[_0x363da1(0x96)](_0x363da1(0x17b),{'className':_0x363da1(0x117),'children':_0x1aa6f6})]});}return i['jsx'](f['Tooltip'],{'title':_0x12db61,'placement':_0x2b7f66(0x195),'children':_0xa33806()});}var Ie=Object[_0x4a7901(0x1b2)],_e=(_0x51bf1b,_0x2a07fb,_0x490955,_0x5b75e9)=>{const _0x434013=_0x4a7901;for(var _0x3fd045=_0x5b75e9>0x1?void 0x0:_0x5b75e9?Ie(_0x2a07fb,_0x490955):_0x2a07fb,_0x11b3fa=_0x51bf1b[_0x434013(0x1ca)]-0x1,_0x298722;_0x11b3fa>=0x0;_0x11b3fa--)(_0x298722=_0x51bf1b[_0x11b3fa])&&(_0x3fd045=_0x298722(_0x3fd045)||_0x3fd045);return _0x3fd045;},N=(_0x5c6e52,_0x140166)=>(_0x14d682,_0x19f876)=>_0x140166(_0x14d682,_0x19f876,_0x5c6e52);exports[_0x4a7901(0x17d)]=class extends u[_0x4a7901(0x146)]{constructor(_0x61cbf3,_0x1731e5,_0x58848a,_0x48650e){const _0x1cc85c=_0x4a7901;super(),this['_injector']=_0x61cbf3,this[_0x1cc85c(0xa3)]=_0x1731e5,this[_0x1cc85c(0x131)]=_0x58848a,this['_configService']=_0x48650e,this['_initAutoConnect'](),this[_0x1cc85c(0xa0)]();}[_0x4a7901(0xb1)](){const _0x2f7461=_0x4a7901,_0x5c3afa=this['_configService'][_0x2f7461(0x1c3)](P);_0x5c3afa!=null&&_0x5c3afa['showDeveloperTools']&&(this[_0x2f7461(0xa3)][_0x2f7461(0x1c0)]=!0x1);}[_0x4a7901(0xa0)](){const _0xba862=_0x4a7901,_0x46ca87=this['_configService'][_0xba862(0x1c3)](P);(_0x46ca87==null?void 0x0:_0x46ca87['showStatus'])!==!0x1&&this['disposeWithMe'](this[_0xba862(0x131)][_0xba862(0xd7)](v[_0xba862(0x103)][_0xba862(0x1f0)],()=>{const _0x423b5c=_0xba862;var _0x23cec3;return v['connectInjector'](ye({'status$':this['_connectionController'][_0x423b5c(0x141)],'error$':this[_0x423b5c(0xa3)][_0x423b5c(0x212)],'onConfigure':()=>this[_0x423b5c(0x1bf)](),'showClickable':(_0x23cec3=_0x46ca87==null?void 0x0:_0x46ca87[_0x423b5c(0x20a)])!=null?_0x23cec3:!0x1}),this[_0x423b5c(0xa7)]);}));}[_0x4a7901(0x1bf)](){const _0x14c021=_0x4a7901;this[_0x14c021(0xa7)][_0x14c021(0x113)](exports[_0x14c021(0x1b8)])[_0x14c021(0x180)]();}},exports['MCPConnectionUIController']=_e([N(0x0,u[_0x4a7901(0x1ea)](u[_0x4a7901(0xe6)])),N(0x1,u[_0x4a7901(0x1ea)](s['MCPConnectionController'])),N(0x2,v[_0x4a7901(0xc5)]),N(0x3,u[_0x4a7901(0x167)])],exports['MCPConnectionUIController']);function ye(_0x2d3a91){const {status$:_0x1a44b5,error$:_0xdf0856,onConfigure:_0x38611a,showClickable:_0x616105}=_0x2d3a91;return function(){const _0x2ad900=_0x1db2;return i[_0x2ad900(0x96)](W,{'status$':_0x1a44b5,'error$':_0xdf0856,'onConfigure':_0x38611a,'showClickable':_0x616105});};}function Me(_0x5d12c4){const _0x51fe47=_0x4a7901;return{'id':b['id'],'type':v[_0x51fe47(0xf1)]['BUTTON'],'icon':_0x51fe47(0x1d0),'title':_0x51fe47(0x1aa),'tooltip':_0x51fe47(0x1aa)};}const Ne={[v['RibbonStartGroup'][_0x4a7901(0xce)]]:{[b['id']]:{'order':0xa,'menuItemFactory':Me}}};var be=Object[_0x4a7901(0x1b2)],je=(_0x53206b,_0x5f2ecf,_0x36d55e,_0x4223f4)=>{const _0x320c7a=_0x4a7901;for(var _0x10b20e=_0x4223f4>0x1?void 0x0:_0x4223f4?be(_0x5f2ecf,_0x36d55e):_0x5f2ecf,_0x50972a=_0x53206b[_0x320c7a(0x1ca)]-0x1,_0x1df6dd;_0x50972a>=0x0;_0x50972a--)(_0x1df6dd=_0x53206b[_0x50972a])&&(_0x10b20e=_0x1df6dd(_0x10b20e)||_0x10b20e);return _0x10b20e;},z=(_0xe250ec,_0x3d6cbb)=>(_0x34ef3c,_0x193cd0)=>_0x3d6cbb(_0x34ef3c,_0x193cd0,_0xe250ec);exports[_0x4a7901(0x12d)]=class extends u[_0x4a7901(0x146)]{constructor(_0x245a93,_0x57c768){const _0x2219fc=_0x4a7901;super(),this[_0x2219fc(0x165)]=_0x245a93,this[_0x2219fc(0x1a3)]=_0x57c768,this[_0x2219fc(0x188)](),this['_initializeMenus']();}[_0x4a7901(0x188)](){const _0x58a2cf=_0x4a7901;[b][_0x58a2cf(0x1fe)](_0x4611ba=>{const _0x295d22=_0x58a2cf;this[_0x295d22(0xcf)](this[_0x295d22(0x165)][_0x295d22(0x1ae)](_0x4611ba));});}[_0x4a7901(0x18a)](){const _0x26552b=_0x4a7901;this[_0x26552b(0x1a3)][_0x26552b(0x1d7)](Ne);}},exports[_0x4a7901(0x12d)]=je([z(0x0,u['ICommandService']),z(0x1,v[_0x4a7901(0x1d9)])],exports['MCPUIMenuController']);const Ee={'mcpStatus':{'disconnected':_0x4a7901(0x196),'connecting':_0x4a7901(0x184),'connected':_0x4a7901(0x119),'failed':_0x4a7901(0x164),'retrying':_0x4a7901(0xfd),'unknown':_0x4a7901(0x203),'unauthorized':_0x4a7901(0x1cb),'sessionOccupied':_0x4a7901(0x1a4),'networkError':_0x4a7901(0xdb),'maxRetriesExceeded':_0x4a7901(0x150),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x4a7901(0x13a),'description':_0x4a7901(0x1e6),'apiKey':_0x4a7901(0x15c),'apiKeyPlaceholder':_0x4a7901(0x1f8),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x4a7901(0x1ac),'enableAuthHint':_0x4a7901(0x13f),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x4a7901(0x132),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x4a7901(0x1fc),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x4a7901(0x1dd),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':_0x4a7901(0x19d),'authorizationDescription':_0x4a7901(0xf5),'configParameters':_0x4a7901(0xb3),'maxRetries':_0x4a7901(0x1a5),'save':'Save\x20Configuration','saving':'Saving...','note1':_0x4a7901(0x1ce),'note2':_0x4a7901(0xa8),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x4a7901(0x16b),'apiApplyInfo':{'title':_0x4a7901(0xdd),'description':_0x4a7901(0x166),'univerAiLabel':_0x4a7901(0xeb),'getStarted':_0x4a7901(0x151)},'validation':{'apiKeyRequired':_0x4a7901(0xd3),'apiKeyTooShort':_0x4a7901(0x13e),'invalidConfig':_0x4a7901(0xe7),'invalidApiKey':_0x4a7901(0x17a)},'connectionStatus':{'disconnected':_0x4a7901(0x19a),'connecting':_0x4a7901(0x137),'connected':_0x4a7901(0xad),'failed':_0x4a7901(0xbe),'retrying':_0x4a7901(0x10c)},'connectionError':{'unauthorized':_0x4a7901(0x126),'sessionOccupied':_0x4a7901(0x17e),'networkError':_0x4a7901(0x138),'maxRetriesExceeded':_0x4a7901(0x13b)}}},we={'mcpStatus':{'disconnected':_0x4a7901(0x17c),'connecting':_0x4a7901(0xc3),'connected':_0x4a7901(0xac),'failed':'MCP\x20连接失败','retrying':_0x4a7901(0x1c7),'unknown':_0x4a7901(0xde),'unauthorized':_0x4a7901(0x127),'sessionOccupied':_0x4a7901(0xfb),'networkError':_0x4a7901(0x15f),'maxRetriesExceeded':_0x4a7901(0x101),'clickToConnect':_0x4a7901(0x1a6),'clickToConfigure':_0x4a7901(0x14f)},'mcpConfig':{'title':_0x4a7901(0x1d1),'description':_0x4a7901(0xb8),'apiKey':_0x4a7901(0xc8),'apiKeyPlaceholder':_0x4a7901(0x1e5),'apiKeyHint':_0x4a7901(0xc4),'enableAuth':_0x4a7901(0x118),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x4a7901(0x204),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':_0x4a7901(0x1ff),'configStepTitle':_0x4a7901(0x148),'configStep1':_0x4a7901(0x136),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x4a7901(0x114),'sessionId':_0x4a7901(0x1ee),'sessionIdDescription':_0x4a7901(0x13c),'authorizationDescription':_0x4a7901(0x168),'configParameters':_0x4a7901(0x1c8),'maxRetries':_0x4a7901(0xf4),'save':_0x4a7901(0xcb),'saving':_0x4a7901(0xbc),'note1':_0x4a7901(0x139),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':'配置保存成功','configError':_0x4a7901(0xc0),'apiApplyInfo':{'title':_0x4a7901(0x15b),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0x4a7901(0x20c),'getStarted':_0x4a7901(0x1e2)},'validation':{'apiKeyRequired':_0x4a7901(0x144),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x4a7901(0x134),'invalidApiKey':_0x4a7901(0x14b)},'connectionStatus':{'disconnected':'未连接','connecting':_0x4a7901(0x1d5),'connected':_0x4a7901(0xbb),'failed':'连接失败','retrying':'重连中...'},'connectionError':{'unauthorized':_0x4a7901(0xfa),'sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':_0x4a7901(0xaf),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var Ae=Object[_0x4a7901(0x163)],Oe=Object[_0x4a7901(0x1b2)],De=(_0x5784dc,_0x272ccb,_0x36237d)=>_0x272ccb in _0x5784dc?Ae(_0x5784dc,_0x272ccb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x36237d}):_0x5784dc[_0x272ccb]=_0x36237d,Ue=(_0x29d1b4,_0x4d5d71,_0x32eaba,_0x8c5169)=>{for(var _0x5eb0ab=_0x8c5169>0x1?void 0x0:_0x8c5169?Oe(_0x4d5d71,_0x32eaba):_0x4d5d71,_0x1d7662=_0x29d1b4['length']-0x1,_0x5c026a;_0x1d7662>=0x0;_0x1d7662--)(_0x5c026a=_0x29d1b4[_0x1d7662])&&(_0x5eb0ab=_0x5c026a(_0x5eb0ab)||_0x5eb0ab);return _0x5eb0ab;},y=(_0xc1e954,_0x5c0bdf)=>(_0x483961,_0x15e293)=>_0x5c0bdf(_0x483961,_0x15e293,_0xc1e954),$e=(_0x53e681,_0x2ad4d8,_0x73a57a)=>De(_0x53e681,_0x2ad4d8+'',_0x73a57a);exports['UniverMCPUIPlugin']=class extends u[_0x4a7901(0xb6)]{constructor(_0x4662cc=L,_0xcd6b81,_0x377f76,_0x6d46b,_0x543a46,_0x335218){const _0xae8546=_0x4a7901;super(),this[_0xae8546(0x9c)]=_0x4662cc,this[_0xae8546(0xa7)]=_0xcd6b81,this[_0xae8546(0x1d8)]=_0x377f76,this[_0xae8546(0x131)]=_0x6d46b,this[_0xae8546(0x1a0)]=_0x543a46,this[_0xae8546(0x11b)]=_0x335218;const {..._0x4521c4}=u[_0xae8546(0x206)]({},L,this['_config']);this[_0xae8546(0x1d8)][_0xae8546(0x9f)](P,_0x4521c4);}async['onStarting'](){const _0x1e9290=_0x4a7901,_0x551eee=[[exports[_0x1e9290(0x17d)]],[exports[_0x1e9290(0x1b8)]],[exports[_0x1e9290(0x12d)]]];this[_0x1e9290(0xa7)][_0x1e9290(0x94)](A[_0x1e9290(0x122)])||_0x551eee[_0x1e9290(0x11e)]([A[_0x1e9290(0x122)],{'useClass':A[_0x1e9290(0x120)]}]),_0x551eee[_0x1e9290(0x1fe)](_0x4c124e=>this[_0x1e9290(0xa7)]['add'](_0x4c124e)),this[_0x1e9290(0xa7)]['get'](exports[_0x1e9290(0x17d)]),this[_0x1e9290(0xa7)][_0x1e9290(0x113)](exports['MCPConfigUIController']),this[_0x1e9290(0xa7)][_0x1e9290(0x113)](exports[_0x1e9290(0x12d)]);}},$e(exports['UniverMCPUIPlugin'],'pluginName',_0x4a7901(0x154)),exports['UniverMCPUIPlugin']=Ue([u[_0x4a7901(0x158)](s[_0x4a7901(0x89)]),y(0x1,u[_0x4a7901(0x1ea)](u[_0x4a7901(0xe6)])),y(0x2,u[_0x4a7901(0x167)]),y(0x3,v['IUIPartsService']),y(0x4,u['ILocalStorageService']),y(0x5,u[_0x4a7901(0x1ea)](u[_0x4a7901(0x1eb)]))],exports[_0x4a7901(0x123)]),exports[_0x4a7901(0x161)]=V,exports[_0x4a7901(0x15d)]=W,exports[_0x4a7901(0xab)]=b,exports[_0x4a7901(0x181)]=Ee,exports[_0x4a7901(0xb4)]=we;
|
|
1
|
+
'use strict';const _0x227188=_0x4c59;(function(_0x1f611c,_0x28849f){const _0x3cf004=_0x4c59,_0x2977ca=_0x1f611c();while(!![]){try{const _0x1b969b=-parseInt(_0x3cf004(0x1e4))/0x1*(-parseInt(_0x3cf004(0x175))/0x2)+-parseInt(_0x3cf004(0x1f6))/0x3+parseInt(_0x3cf004(0xfc))/0x4*(-parseInt(_0x3cf004(0x11e))/0x5)+parseInt(_0x3cf004(0xff))/0x6+parseInt(_0x3cf004(0x9d))/0x7*(parseInt(_0x3cf004(0x178))/0x8)+parseInt(_0x3cf004(0xc1))/0x9+-parseInt(_0x3cf004(0xf3))/0xa;if(_0x1b969b===_0x28849f)break;else _0x2977ca['push'](_0x2977ca['shift']());}catch(_0x3cbfd2){_0x2977ca['push'](_0x2977ca['shift']());}}}(_0x6cea,0xee051));var ae=Object[_0x227188(0x188)],le=(_0x15c30c,_0x1e2373,_0xea14c6)=>_0x1e2373 in _0x15c30c?ae(_0x15c30c,_0x1e2373,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xea14c6}):_0x15c30c[_0x1e2373]=_0xea14c6,I=(_0x4dbffe,_0x5bac23,_0x5a84eb)=>le(_0x4dbffe,typeof _0x5bac23!=_0x227188(0xe2)?_0x5bac23+'':_0x5bac23,_0x5a84eb);Object[_0x227188(0x188)](exports,Symbol[_0x227188(0x1cb)],{'value':'Module'});const u=require('@univerjs/core'),i=require('react/jsx-runtime'),s=require('@univerjs-pro/mcp'),f=require('@univerjs/design'),v=require('@univerjs/ui'),M=require('rxjs'),d=require('react'),A=require('@univerjs/network');function _({ref:_0x5dff80,..._0xc4669e}){const _0x5df8c0=_0x227188,{icon:_0x3365a4,id:_0x506c19,className:_0x42036e,extend:_0x395e6b,..._0x5b942e}=_0xc4669e,_0x4aa8fc=(_0x5df8c0(0x13d)+_0x506c19+'\x20'+(_0x42036e||''))[_0x5df8c0(0x146)](),_0x2c917a=d[_0x5df8c0(0xc2)]('_'+de());return G(_0x3365a4,''+_0x506c19,{'defIds':_0x3365a4[_0x5df8c0(0xf5)],'idSuffix':_0x2c917a[_0x5df8c0(0x1bd)]},{'ref':_0x5dff80,'className':_0x4aa8fc,..._0x5b942e},_0x395e6b);}function G(_0x51e265,_0x312e61,_0x1c1478,_0x4c545c,_0x2b10e0){const _0x518496=_0x227188;return d[_0x518496(0x141)](_0x51e265[_0x518496(0xaa)],{'key':_0x312e61,...ue(_0x51e265,_0x1c1478,_0x2b10e0),..._0x4c545c},(ve(_0x51e265,_0x1c1478)[_0x518496(0xe3)]||[])[_0x518496(0x1ce)]((_0x442adb,_0x17da6c)=>G(_0x442adb,_0x312e61+'-'+_0x51e265[_0x518496(0xaa)]+'-'+_0x17da6c,_0x1c1478,void 0x0,_0x2b10e0)));}function ue(_0x30a096,_0x46e571,_0x230a1b){const _0x480f69=_0x227188,_0x11198b={..._0x30a096['attrs']};_0x230a1b!=null&&_0x230a1b[_0x480f69(0x1cf)]&&_0x11198b[_0x480f69(0x9c)]==='colorChannel1'&&(_0x11198b[_0x480f69(0x9c)]=_0x230a1b[_0x480f69(0x1cf)]),_0x30a096[_0x480f69(0xaa)]===_0x480f69(0x130)&&_0x11198b['id']&&(_0x11198b['id']=_0x11198b['id']+_0x46e571[_0x480f69(0xae)]),Object[_0x480f69(0x12e)](_0x11198b)['forEach'](([_0x2b5b54,_0x51d578])=>{const _0x3470bd=_0x480f69;_0x2b5b54===_0x3470bd(0x130)&&typeof _0x51d578==_0x3470bd(0x119)&&(_0x11198b[_0x2b5b54]=_0x51d578[_0x3470bd(0xeb)](/url\(#(.*)\)/,_0x3470bd(0x137)+_0x46e571[_0x3470bd(0xae)]+')'));});const {defIds:_0x36a028}=_0x46e571;return!_0x36a028||_0x36a028[_0x480f69(0x1a5)]===0x0||(_0x30a096[_0x480f69(0xaa)]===_0x480f69(0x12a)&&_0x11198b[_0x480f69(0x7b)]&&(_0x11198b['xlink:href']=_0x11198b[_0x480f69(0x7b)]+_0x46e571['idSuffix']),Object[_0x480f69(0x12e)](_0x11198b)['forEach'](([_0x1b952e,_0xfdf270])=>{const _0x30035a=_0x480f69;typeof _0xfdf270==_0x30035a(0x119)&&(_0x11198b[_0x1b952e]=_0xfdf270['replace'](/url\(#(.*)\)/,_0x30035a(0x137)+_0x46e571[_0x30035a(0xae)]+')'));})),_0x11198b;}function ve(_0x3c16a4,_0x478587){const _0xb6075e=_0x227188;var _0x1d6e83;const {defIds:_0x4405d3}=_0x478587;return!_0x4405d3||_0x4405d3[_0xb6075e(0x1a5)]===0x0?_0x3c16a4:_0x3c16a4[_0xb6075e(0xaa)]===_0xb6075e(0x1be)&&((_0x1d6e83=_0x3c16a4[_0xb6075e(0xe3)])!=null&&_0x1d6e83[_0xb6075e(0x1a5)])?{..._0x3c16a4,'children':_0x3c16a4[_0xb6075e(0xe3)][_0xb6075e(0x1ce)](_0x1ad684=>typeof _0x1ad684[_0xb6075e(0x1b6)]['id']==_0xb6075e(0x119)&&_0x4405d3&&_0x4405d3[_0xb6075e(0xf9)](_0x1ad684[_0xb6075e(0x1b6)]['id'])?{..._0x1ad684,'attrs':{..._0x1ad684[_0xb6075e(0x1b6)],'id':_0x1ad684[_0xb6075e(0x1b6)]['id']+_0x478587[_0xb6075e(0xae)]}}:_0x1ad684)}:_0x3c16a4;}function _0x4c59(_0x102ff6,_0x554abd){_0x102ff6=_0x102ff6-0x7a;const _0x6ceabc=_0x6cea();let _0x4c5963=_0x6ceabc[_0x102ff6];return _0x4c5963;}function de(){const _0xe38086=_0x227188;return Math[_0xe38086(0x11a)]()[_0xe38086(0x92)](0x24)[_0xe38086(0x17a)](0x2,0x8);}_[_0x227188(0x135)]='UniverIcon';const Ce={'tag':_0x227188(0x112),'attrs':{'xmlns':_0x227188(0x19d),'fill':_0x227188(0x18e),'viewBox':_0x227188(0x13e),'width':'1em','height':_0x227188(0x107)},'children':[{'tag':'path','attrs':{'fill':_0x227188(0x1a6),'d':_0x227188(0x196),'fillRule':'evenodd','clipRule':_0x227188(0x1f3)}}]},H=d['forwardRef'](function(_0x5bf3e6,_0x25b610){const _0x394767=_0x227188;return d[_0x394767(0x141)](_,Object[_0x394767(0x156)]({},_0x5bf3e6,{'id':_0x394767(0xd5),'ref':_0x25b610,'icon':Ce}));});H[_0x227188(0x135)]=_0x227188(0x193);function _0x6cea(){const _0x21cf7d=['label','CONNECTED','univer-flex\x20univer-items-center\x20univer-gap-3','Injector','registerCommand','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','MCPUIMenuController','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','univer-min-w-0\x20univer-flex-1','mcpConfig.validation.apiKeyTooShort','MenuItemType','disposeWithMe','translate(.97)','univer-bg-red-500','IConfigService','toString','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','getConfig','M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z','_commandService','mcpConfig.title','将配置添加到您的\x20MCP\x20客户端设置文件中','Univer\x20AI\x20Console','mcpConfig.configStep2','_componentManager','fill','7630PxqPDh','MCP\x20已连接','on-line-icon','M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z','M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z','_menuManagerService','showDeveloperTools','useDependency','_messageService','_initConfigSync','最大重试次数','_createConfigPanelComponent','mcpConfig.configStep3','tag','close-icon','getItem','请输入您的\x20API\x20密钥','idSuffix','_localeService','Univer\x20AI\x20控制台','mcpConfig.configParameters','https://console.univer.plus','RETRYING','权限验证失败,请检查您的\x20API\x20密钥','univer-space-y-3','add','mcpStatus.connecting','OTHERS','API\x20key\x20is\x20required','errorMessage','mcpStatus.retrying','mcpConfig.apiKey','round','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','connectionError$','MCPStatusDisplay','16162542BrnCpd','useRef','Inject','on-line-icon_clip0_910_349','mcpConfig.apiKeyPlaceholder','_validateConfig','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','mcpConfig.sessionIdDescription','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','网络连接错误,请检查您的网络连接','MCPConfigUIController','M0\x200H16V16H0z','NETWORK_ERROR','mcpConfig.connectionError.maxRetriesExceeded','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univer.ai','What\x20is\x20API\x20Key?','几秒钟内获取您的\x20API\x20密钥','mcpConfig.note1','check-mark-icon','univer-flex\x20univer-items-center','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','\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','_initAutoConnect','_initializeMenus','HEADER_MENU','HelpIcon','univer-flex\x20univer-flex-wrap\x20univer-gap-2','MCP\x20连接中...','mcp.apiKey','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','useCallback','symbol','children','stringify','MessageType','DependentOn','_uiPartsService','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','Error','重连中...','replace','univer-text-xs\x20univer-text-gray-500','next','Disposable','IUIPartsService','jsxs','univer-text-sm\x20univer-font-medium','API\x20密钥不能为空','48532390LFtXLJ','Get\x20your\x20API\x20key\x20in\x20seconds','defIds','BehaviorSubject','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','includes','ComponentManager','off-line-icon','32jqPDWD','复制以下\x20JSON\x20配置','mcpConfig.validation.invalidConfig','10781004EigbXl','MCPConnectionStatus','getOwnPropertyDescriptor','mcpConfig.apiKeyHint','MCP\x20Disconnected','div','setConfig','UniverMCPUIPlugin','1em','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','API\x20密钥无效,请检查密钥是否正确','_injector','ISocketService','univer-text-yellow-500','jsx','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','error','button','mcpConfig.connectionStatus.disconnected','svg','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','_mcpConnectionController','CloseIcon','mcpConfig.connectionStatus.connected','off-line-icon_clip0_910_343','0\x200\x2017\x2016','string','random','_initStatusComponent','path','help-icon','159130YAiXfo','univer-flex-1','_registerComponent','MCP:\x20Max\x20Retries\x20Exceeded','span','univer-flex\x20univer-items-start\x20univer-gap-3','univer-text-xs\x20univer-text-gray-600','MCP_PLUGIN_CONFIG_KEY','mcpConfig.save','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','showConfigPanel','API\x20Key','use','Configuration\x20Steps:','MCP\x20Retrying...','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','entries','UNAUTHORIZED','mask','bottom','NONE','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','ILocalStorageService','displayName','UniverMCPPlugin','url(#$1','LocaleService','univer-size-2\x20univer-rounded-full','univer-mr-2\x20univer-flex\x20univer-text-xl','MenuIcon','IMessageService','univerjs-icon\x20univerjs-icon-','0\x200\x2016\x2016','BuiltInUIPart','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','createElement','_dialogService','univer-bg-green-500','Enable\x20Authentication','会话ID','trim','连接中...','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','setItem','univer-flex\x20univer-items-start\x20univer-gap-2','univer-space-y-5','什么是\x20API\x20密钥?','univer-bg-gray-500','MCP\x20Unknown\x20Status','您的\x20API\x20密钥安全存储在本地存储中','ILogService','univer-text-sm\x20univer-text-gray-500','RibbonStartGroup','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','show','_config','assign','Invalid\x20configuration','univer-bg-blue-500','forwardRef','_handleConfigure','mcpConfig.configSaved','Bearer\x20','_localStorageService','OnLineIcon','warn','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','MCPConnectionError','重启您的\x20MCP\x20客户端以使配置生效','univer-space-y-4','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','url(#off-line-icon_clip0_910_343)','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','IDialogService','Retrying...','forEach','MCP\x20状态未知','MCP\x20Connecting...','mcpStatus.failed','带有\x20Bearer\x20前缀的\x20API\x20密钥。','onStarting','showStatus','mcpStatus.disconnected','配置无效','_mcpCoreConfig$','MCP\x20连接失败','CONNECTING','14ebOuar','connectInjector','isValid','12688jlSXMT','mcpConfig.validation.invalidApiKey','substring','has','BUTTON','Failed\x20to\x20save\x20configuration','mcpConfig.apiApplyInfo.univerAiLabel','useObservable','__setCustomHeaders','mcpServerUrl','MCP\x20Client\x20Configuration','MCPConfigPanel','ICommandService','_configService','http','merge','defineProperty','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','_handleConfigSave','超出最大重试次数,请稍后再试','<API_KEY>','url(#on-line-icon_clip0_910_349)','none','mcpConfig.apiApplyInfo.title','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','配置更改将立即生效','连接失败','CheckMarkIcon','enUS','subscribeConfigValue$','M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','text','mcpStatus.unknown','univer-flex\x20univer-gap-3','useState','univer-text-green-500','validateApiKey','http://www.w3.org/2000/svg','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','univer-text-white','MCP\x20客户端配置','mcpConfig.authorizationDescription','MCP\x20Configuration','https://mcp.univer.ai/mcp/?univer_session_id=','get','length','currentColor','FAILED','pre','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','enableAutoConnect','_loadStoredApiKey','COMMAND','mcpStatus.unauthorized','SESSION_ID_OCCUPIED','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','mcpStatus.clickToConfigure','API\x20密钥长度至少需要\x2010\x20位','mcpStatus.connected','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','配置\x20MCP\x20使用\x20AI\x20操作电子表格','attrs','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','removeItem','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','保存配置','current','defs','mcpConfig.apiApplyInfo.description','_blank','subscribe','保存中...','\x20-\x20','value','Saving...','MCPConnectionUIController','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','univer-flex\x20univer-items-center\x20univer-gap-2','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','toStringTag','univer.plus','MCP:\x20Unauthorized','map','colorChannel1','MAX_RETRIES_EXCEEDED','univer-text-gray-500','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','_logService','https://console.univer.ai','mcpConfig.connectionStatus.connecting','mcpConfig.connectionStatus.failed','OpenMCPConfigPanelCommand','mcpConfig.configStep1','Configuration\x20Parameters:','clsx','close','MCP:\x20Session\x20ID\x20Occupied','clipPath','_apiKey$','API\x20key\x20with\x20Bearer\x20prefix.','_loading$','mcpConfig.apiApplyInfo.getStarted','您的\x20API\x20密钥将在此浏览器中本地存储','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','160942irJqqu','配置步骤:','配置保存失败','mcpStatus.networkError','registerComponent','apiKey','mcp-config-dialog','mcpStatus.maxRetriesExceeded','IMenuManagerService','mcpConfig.connectionInfo','点击配置\x20MCP','univer-text-gray-400','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','Enter\x20your\x20API\x20key','_config$','evenodd','MCP\x20已断开','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','1095690CHNyxQ','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','univer-space-y-2','MCP:\x20超出最大重试次数','_connectionController','未连接','noopener\x20noreferrer','Connecting...','Click\x20to\x20configure\x20MCP','white','启用身份验证','mcpConfig.connectionError.networkError','xlink:href','DISCONNECTED','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP:\x20会话\x20ID\x20已被占用','mcpConfig.connectionStatus.retrying','MCP\x20Connection\x20Failed','off'];_0x6cea=function(){return _0x21cf7d;};return _0x6cea();}const ge={'tag':_0x227188(0x112),'attrs':{'xmlns':_0x227188(0x19d),'fill':_0x227188(0x18e),'viewBox':_0x227188(0x13e),'width':_0x227188(0x107),'height':_0x227188(0x107)},'children':[{'tag':_0x227188(0x11c),'attrs':{'fill':'currentColor','d':_0x227188(0xa0)}}]},B=d[_0x227188(0x159)](function(_0x5d5f98,_0x156f9d){const _0x3eb4f2=_0x227188;return d[_0x3eb4f2(0x141)](_,Object[_0x3eb4f2(0x156)]({},_0x5d5f98,{'id':_0x3eb4f2(0xab),'ref':_0x156f9d,'icon':ge}));});B[_0x227188(0x135)]=_0x227188(0x115);const fe={'tag':_0x227188(0x112),'attrs':{'xmlns':_0x227188(0x19d),'fill':_0x227188(0x18e),'viewBox':_0x227188(0x13e),'width':'1em','height':'1em'},'children':[{'tag':_0x227188(0x11c),'attrs':{'fill':_0x227188(0x1a6),'d':_0x227188(0x95)}},{'tag':_0x227188(0x11c),'attrs':{'fill':_0x227188(0x1a6),'d':_0x227188(0xa1)}},{'tag':_0x227188(0x11c),'attrs':{'fill':_0x227188(0x1a6),'d':'M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','fillRule':_0x227188(0x1f3),'clipRule':_0x227188(0x1f3)}}]},F=d[_0x227188(0x159)](function(_0x86f786,_0xe2077f){const _0x490e0e=_0x227188;return d[_0x490e0e(0x141)](_,Object['assign']({},_0x86f786,{'id':_0x490e0e(0x11d),'ref':_0xe2077f,'icon':fe}));});F[_0x227188(0x135)]=_0x227188(0xdc);const pe={'tag':_0x227188(0x112),'attrs':{'xmlns':_0x227188(0x19d),'fill':_0x227188(0x18e),'viewBox':_0x227188(0x13e),'width':_0x227188(0x107),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x227188(0x165)},'children':[{'tag':_0x227188(0x11c),'attrs':{'stroke':'currentColor','d':_0x227188(0x1c8),'strokeLinecap':_0x227188(0xbd),'strokeLinejoin':_0x227188(0xbd),'strokeWidth':1.2}}]},{'tag':_0x227188(0x1be),'attrs':{},'children':[{'tag':_0x227188(0x1dd),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x227188(0x11c),'attrs':{'fill':_0x227188(0x200),'d':_0x227188(0xcc)}}]}]}],'defIds':[_0x227188(0x117)]},Y=d[_0x227188(0x159)](function(_0x10f843,_0x4e9a8a){const _0x29d821=_0x227188;return d[_0x29d821(0x141)](_,Object['assign']({},_0x10f843,{'id':_0x29d821(0xfb),'ref':_0x4e9a8a,'icon':pe}));});Y[_0x227188(0x135)]='OffLineIcon';const he={'tag':_0x227188(0x112),'attrs':{'xmlns':_0x227188(0x19d),'fill':_0x227188(0x18e),'viewBox':_0x227188(0x118),'width':_0x227188(0x107),'height':_0x227188(0x107)},'children':[{'tag':'g','attrs':{'clipPath':_0x227188(0x18d)},'children':[{'tag':_0x227188(0x11c),'attrs':{'stroke':'currentColor','d':_0x227188(0x160),'strokeLinecap':'round','strokeLinejoin':_0x227188(0xbd),'strokeWidth':1.2}}]},{'tag':_0x227188(0x1be),'attrs':{},'children':[{'tag':_0x227188(0x1dd),'attrs':{'id':_0x227188(0xc4)},'children':[{'tag':'path','attrs':{'fill':'white','d':_0x227188(0xcc),'transform':_0x227188(0x8f)}}]}]}],'defIds':[_0x227188(0xc4)]},q=d['forwardRef'](function(_0x47d790,_0xc25df8){const _0x4cb522=_0x227188;return d['createElement'](_,Object[_0x4cb522(0x156)]({},_0x47d790,{'id':_0x4cb522(0x9f),'ref':_0xc25df8,'icon':he}));});q[_0x227188(0x135)]=_0x227188(0x15e);function V(_0x2aa59d){const _0x43fc67=_0x227188;var _0x320648,_0x223465;const {mcpCoreConfig:_0x1f3bd2,onSave:_0x5c4cd8,loading:_0x38d06d=!0x1,config:_0x243694,connectionStatus$:_0x579075,connectionError$:_0x12a06f,currentApiKey$:_0x509714,currentSessionId$:_0x161478}=_0x2aa59d,_0x9f633=v['useDependency'](u[_0x43fc67(0x138)]),_0x589631=v['useObservable'](_0x579075,s[_0x43fc67(0x100)][_0x43fc67(0x7c)]),_0x50ba7b=v[_0x43fc67(0x17f)](_0x12a06f,s[_0x43fc67(0x161)]['NONE']),_0x4bf7fa=v[_0x43fc67(0x17f)](_0x161478,''),_0x20b724=v[_0x43fc67(0x17f)](_0x509714,''),[_0x41a515,_0x17edd7]=d['useState'](_0x20b724||''),_0x363957=!0x0,_0x3b1d51=_0x243694[_0x43fc67(0xa3)]&&_0x1f3bd2[_0x43fc67(0x181)]&&(_0x1f3bd2[_0x43fc67(0x181)][_0x43fc67(0xf9)](_0x43fc67(0x1cc))||_0x1f3bd2[_0x43fc67(0x181)][_0x43fc67(0xf9)](_0x43fc67(0xd1))),_0x26c3b7=(_0x320648=_0x1f3bd2[_0x43fc67(0x181)])==null?void 0x0:_0x320648[_0x43fc67(0xf9)](_0x43fc67(0x1cc)),_0xa8b29=(_0x223465=_0x1f3bd2[_0x43fc67(0x181)])==null?void 0x0:_0x223465[_0x43fc67(0xf9)](_0x43fc67(0xd1)),_0x3ce755=_0x26c3b7?_0x43fc67(0xb2):_0x43fc67(0x1d4),_0x1bb2ab=_0x243694[_0x43fc67(0xa3)]&&(_0x26c3b7||_0xa8b29),[_0x5dfe24,_0x500870]=d[_0x43fc67(0x19a)](!_0x41a515[_0x43fc67(0x146)]()),_0x44f440=(_0x3d3e4c,_0x56b039)=>{const _0x214ba5=_0x43fc67;if(_0x56b039===s['MCPConnectionError'][_0x214ba5(0x12f)])return _0x214ba5(0x153);switch(_0x3d3e4c){case s[_0x214ba5(0x100)][_0x214ba5(0x84)]:return _0x214ba5(0x1a9);case s[_0x214ba5(0x100)][_0x214ba5(0x174)]:case s[_0x214ba5(0x100)][_0x214ba5(0xb3)]:return _0x214ba5(0x189);case s[_0x214ba5(0x100)]['FAILED']:return _0x214ba5(0x153);default:return _0x214ba5(0x1f7);}},_0x51d3d3=(_0x33fca0,_0x2429df)=>{const _0x3ef89f=_0x43fc67;if(_0x2429df===s[_0x3ef89f(0x161)][_0x3ef89f(0x12f)])return _0x3ef89f(0x90);switch(_0x33fca0){case s[_0x3ef89f(0x100)][_0x3ef89f(0x84)]:return _0x3ef89f(0x143);case s[_0x3ef89f(0x100)][_0x3ef89f(0x174)]:case s['MCPConnectionStatus'][_0x3ef89f(0xb3)]:return _0x3ef89f(0x158);case s[_0x3ef89f(0x100)][_0x3ef89f(0x1a7)]:return _0x3ef89f(0x90);default:return _0x3ef89f(0x14d);}},_0x43b197=_0x5e91d3=>{const _0x48641b=_0x43fc67;switch(_0x5e91d3){case s[_0x48641b(0x100)][_0x48641b(0x84)]:return _0x9f633['t'](_0x48641b(0x116));case s[_0x48641b(0x100)][_0x48641b(0x174)]:return _0x9f633['t'](_0x48641b(0x1d5));case s[_0x48641b(0x100)][_0x48641b(0x1a7)]:return _0x9f633['t'](_0x48641b(0x1d6));case s[_0x48641b(0x100)][_0x48641b(0xb3)]:return _0x9f633['t'](_0x48641b(0x80));default:return _0x9f633['t'](_0x48641b(0x111));}},_0x47103d=_0x1c49b3=>{const _0x330a28=_0x43fc67;switch(_0x1c49b3){case s['MCPConnectionError']['UNAUTHORIZED']:return _0x9f633['t']('mcpConfig.connectionError.unauthorized');case s[_0x330a28(0x161)][_0x330a28(0x1ae)]:return _0x9f633['t']('mcpConfig.connectionError.sessionOccupied');case s[_0x330a28(0x161)][_0x330a28(0xcd)]:return _0x9f633['t'](_0x330a28(0x7a));case s[_0x330a28(0x161)][_0x330a28(0x1d0)]:return _0x9f633['t'](_0x330a28(0xce));default:return'';}},_0xd99846=d[_0x43fc67(0xe1)](()=>{const _0x10f24a=_0x43fc67,_0x40ccd7={..._0x1f3bd2,'apiKey':_0x41a515[_0x10f24a(0x146)](),'enableAuth':_0x363957};_0x5c4cd8(_0x40ccd7);},[_0x1f3bd2,_0x41a515,_0x363957,_0x5c4cd8]),_0x34d118=_0x41a515[_0x43fc67(0x146)]()[_0x43fc67(0x1a5)]>0x0;return i[_0x43fc67(0xf0)](_0x43fc67(0x104),{'className':_0x43fc67(0x108),'children':[i[_0x43fc67(0x10d)](_0x43fc67(0x104),{'className':_0x43fc67(0x1b8),'children':i[_0x43fc67(0xf0)]('div',{'className':_0x43fc67(0x85),'children':[i[_0x43fc67(0x10d)](_0x43fc67(0x104),{'className':_0x43fc67(0x1e3),'children':i[_0x43fc67(0x10d)](_0x43fc67(0x122),{'className':_0x43fc67(0x19f),'children':'⚙'})}),i['jsx'](_0x43fc67(0x104),{'children':i[_0x43fc67(0x10d)]('p',{'className':_0x43fc67(0x151),'children':_0x9f633['t']('mcpConfig.description')})})]})}),i[_0x43fc67(0xf0)](_0x43fc67(0x104),{'className':_0x43fc67(0x1c7),'children':[i[_0x43fc67(0x10d)]('div',{'className':f[_0x43fc67(0x1da)](_0x43fc67(0x1b7),_0x44f440(_0x589631,_0x50ba7b)),'children':i[_0x43fc67(0xf0)](_0x43fc67(0x104),{'className':_0x43fc67(0x1c9),'children':[i['jsx'](_0x43fc67(0x104),{'className':f['clsx'](_0x43fc67(0x139),_0x51d3d3(_0x589631,_0x50ba7b))}),i[_0x43fc67(0x10d)](_0x43fc67(0x122),{'className':_0x43fc67(0xf1),'children':_0x43b197(_0x589631)})]})}),_0x50ba7b!==s[_0x43fc67(0x161)][_0x43fc67(0x132)]&&(_0x589631===s[_0x43fc67(0x100)][_0x43fc67(0x1a7)]||_0x50ba7b===s[_0x43fc67(0x161)]['UNAUTHORIZED'])&&i[_0x43fc67(0x10d)]('div',{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':i['jsxs'](_0x43fc67(0x104),{'className':_0x43fc67(0x14a),'children':[i['jsx']('span',{'className':'univer-shrink-0\x20univer-text-red-500','children':'⚠️'}),i[_0x43fc67(0x10d)]('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x47103d(_0x50ba7b)})]})})]}),i['jsx'](_0x43fc67(0x104),{'className':_0x43fc67(0xc9),'children':i[_0x43fc67(0xf0)](_0x43fc67(0x104),{'className':_0x43fc67(0x14b),'children':[i[_0x43fc67(0xf0)](_0x43fc67(0x104),{'className':_0x43fc67(0x1f9),'children':[i[_0x43fc67(0xf0)](_0x43fc67(0x83),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[i[_0x43fc67(0x10d)](_0x43fc67(0x122),{'children':'🔑'}),'\x20',_0x9f633['t'](_0x43fc67(0xbc)),i[_0x43fc67(0x10d)](_0x43fc67(0x122),{'className':'univer-text-red-500','children':'*'}),_0x3b1d51&&i[_0x43fc67(0x10d)]('a',{'className':_0x43fc67(0x88),'title':_0x9f633['t'](_0x43fc67(0x18f)),'role':_0x43fc67(0x110),'onClick':()=>_0x500870(!0x0),'children':i[_0x43fc67(0x10d)](F,{})})]}),i['jsx'](f['Input'],{'type':_0x43fc67(0x197),'placeholder':_0x9f633['t'](_0x43fc67(0xc5)),'value':_0x41a515,'disabled':_0x38d06d,'autoComplete':_0x43fc67(0x82),'onChange':_0x17edd7}),i[_0x43fc67(0x10d)]('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x9f633['t'](_0x43fc67(0x102))})]}),_0x3b1d51&&_0x5dfe24&&i[_0x43fc67(0xf0)](_0x43fc67(0x104),{'className':_0x43fc67(0x10e),'children':[i[_0x43fc67(0x10d)]('a',{'className':_0x43fc67(0x1b3),'role':'button','onClick':()=>_0x500870(!0x1),'children':i[_0x43fc67(0x10d)](B,{'className':'univer-size-4'})}),i['jsxs'](_0x43fc67(0x104),{'className':_0x43fc67(0x19e),'children':[i[_0x43fc67(0x10d)](_0x43fc67(0x104),{'className':_0x43fc67(0x1f8),'children':i[_0x43fc67(0x10d)](_0x43fc67(0x122),{'className':'univer-text-blue-600','children':'🚀'})}),i[_0x43fc67(0xf0)](_0x43fc67(0x104),{'className':_0x43fc67(0x11f),'children':[i[_0x43fc67(0x10d)]('h4',{'className':_0x43fc67(0xf8),'children':_0x9f633['t']('mcpConfig.apiApplyInfo.title')}),i[_0x43fc67(0x10d)]('p',{'className':_0x43fc67(0xd7),'children':_0x9f633['t'](_0x43fc67(0x1bf))}),i[_0x43fc67(0x10d)](_0x43fc67(0x104),{'className':_0x43fc67(0xdd),'children':_0x1bb2ab&&i[_0x43fc67(0xf0)]('a',{'className':_0x43fc67(0x12d),'href':_0x3ce755,'target':_0x43fc67(0x1c0),'rel':_0x43fc67(0x1fd),'children':[i[_0x43fc67(0x10d)]('span',{'children':'🤖'}),_0x9f633['t'](_0x43fc67(0x17e)),i['jsx'](_0x43fc67(0x122),{'className':_0x43fc67(0x1ef),'children':'↗'})]})}),i['jsxs']('div',{'className':_0x43fc67(0x1d2),'children':['✨','\x20',_0x9f633['t'](_0x43fc67(0x1e1))]})]})]})]}),_0x243694[_0x43fc67(0xa3)]&&i[_0x43fc67(0xf0)]('div',{'className':_0x43fc67(0x1b4),'children':[i[_0x43fc67(0xf0)]('h4',{'className':_0x43fc67(0x140),'children':[i[_0x43fc67(0x10d)](_0x43fc67(0x122),{'children':'🔗'}),'\x20',_0x9f633['t'](_0x43fc67(0x1ed))]}),i[_0x43fc67(0xf0)]('div',{'className':_0x43fc67(0x163),'children':[i[_0x43fc67(0xf0)](_0x43fc67(0x104),{'className':_0x43fc67(0xb5),'children':[i[_0x43fc67(0x10d)]('p',{'className':_0x43fc67(0x124),'children':_0x9f633['t']('mcpConfig.configInstructions')}),i[_0x43fc67(0xf0)](_0x43fc67(0x104),{'className':_0x43fc67(0x1f9),'children':[i[_0x43fc67(0x10d)](_0x43fc67(0x104),{'className':_0x43fc67(0xcf),'children':_0x9f633['t']('mcpConfig.configStepTitle')}),i[_0x43fc67(0xf0)](_0x43fc67(0x104),{'className':_0x43fc67(0xe8),'children':[i[_0x43fc67(0xf0)](_0x43fc67(0x104),{'className':_0x43fc67(0x1c9),'children':[i[_0x43fc67(0x10d)](_0x43fc67(0x122),{'className':_0x43fc67(0x166),'children':'1'}),_0x9f633['t'](_0x43fc67(0x1d8))]}),i[_0x43fc67(0xf0)](_0x43fc67(0x104),{'className':_0x43fc67(0x1c9),'children':[i[_0x43fc67(0x10d)](_0x43fc67(0x122),{'className':_0x43fc67(0x166),'children':'2'}),_0x9f633['t'](_0x43fc67(0x9a))]}),i[_0x43fc67(0xf0)]('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x43fc67(0x10d)](_0x43fc67(0x122),{'className':_0x43fc67(0x166),'children':'3'}),_0x9f633['t'](_0x43fc67(0xa9))]})]})]})]}),i['jsxs']('div',{'className':_0x43fc67(0x1f9),'children':[i[_0x43fc67(0x10d)](_0x43fc67(0x104),{'className':_0x43fc67(0xcf),'children':_0x43fc67(0x1a2)}),i[_0x43fc67(0x10d)](_0x43fc67(0x104),{'className':_0x43fc67(0x1f0),'children':i[_0x43fc67(0x10d)](_0x43fc67(0x1a8),{'className':_0x43fc67(0x148),'children':JSON[_0x43fc67(0xe4)]({'mcpServers':{'univer':{'url':_0x43fc67(0x1a3)+(_0x4bf7fa||'<SESSION_ID>'),'type':_0x43fc67(0x186),'headers':{'Authorization':_0x43fc67(0x15c)+(_0x41a515||_0x43fc67(0x18c))}}}},null,0x2)})})]}),i[_0x43fc67(0xf0)]('div',{'className':_0x43fc67(0xb5),'children':[i[_0x43fc67(0x10d)](_0x43fc67(0x104),{'className':_0x43fc67(0xcf),'children':_0x9f633['t'](_0x43fc67(0xb1))}),i[_0x43fc67(0xf0)]('div',{'className':_0x43fc67(0x1f9),'children':[i['jsxs'](_0x43fc67(0x104),{'className':_0x43fc67(0x123),'children':[i[_0x43fc67(0x10d)](_0x43fc67(0x104),{'className':_0x43fc67(0xf7)}),i[_0x43fc67(0xf0)](_0x43fc67(0x104),{'className':_0x43fc67(0x8b),'children':[i['jsx'](_0x43fc67(0x104),{'className':_0x43fc67(0x93),'children':'univer_session_id:'}),i[_0x43fc67(0x10d)](_0x43fc67(0x104),{'className':_0x43fc67(0xec),'children':_0x9f633['t'](_0x43fc67(0xc8))})]})]}),i['jsxs'](_0x43fc67(0x104),{'className':_0x43fc67(0x123),'children':[i['jsx'](_0x43fc67(0x104),{'className':_0x43fc67(0xf7)}),i['jsxs'](_0x43fc67(0x104),{'className':_0x43fc67(0x8b),'children':[i['jsx'](_0x43fc67(0x104),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':'Authorization:'}),i[_0x43fc67(0x10d)](_0x43fc67(0x104),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x9f633['t'](_0x43fc67(0x1a1))})]})]})]})]})]})]}),i[_0x43fc67(0x10d)](f['Button'],{'onClick':_0xd99846,'disabled':!_0x34d118||_0x38d06d,'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':_0x38d06d?i[_0x43fc67(0xf0)]('span',{'className':_0x43fc67(0x1c9),'children':[i['jsx']('span',{'children':'⟲'}),_0x9f633['t']('mcpConfig.saving')]}):i[_0x43fc67(0xf0)](_0x43fc67(0x122),{'className':_0x43fc67(0x1c9),'children':[i[_0x43fc67(0x10d)](H,{}),_0x9f633['t'](_0x43fc67(0x126))]})}),i[_0x43fc67(0x10d)](_0x43fc67(0x104),{'className':_0x43fc67(0x113),'children':i[_0x43fc67(0xf0)]('div',{'className':_0x43fc67(0x199),'children':[i[_0x43fc67(0x10d)]('span',{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),i[_0x43fc67(0xf0)](_0x43fc67(0x104),{'className':_0x43fc67(0xbe),'children':[i[_0x43fc67(0x10d)](_0x43fc67(0x104),{'className':'univer-font-medium','children':'Configuration\x20Notes:'}),i['jsxs'](_0x43fc67(0x104),{'children':['•',_0x9f633['t'](_0x43fc67(0xd4))]}),i['jsxs']('div',{'children':['•',_0x9f633['t']('mcpConfig.note2')]})]})]})})]})})]});}const P='mcp-ui.config',L={'showDeveloperTools':!0x1,'showStatus':!0x0};var me=Object[_0x227188(0x101)],xe=(_0x336acb,_0x3ebfb3,_0x3da4c3,_0x244a49)=>{const _0x6b6d00=_0x227188;for(var _0x473c29=_0x244a49>0x1?void 0x0:_0x244a49?me(_0x3ebfb3,_0x3da4c3):_0x3ebfb3,_0x3c37c5=_0x336acb[_0x6b6d00(0x1a5)]-0x1,_0x564a2d;_0x3c37c5>=0x0;_0x3c37c5--)(_0x564a2d=_0x336acb[_0x3c37c5])&&(_0x473c29=_0x564a2d(_0x473c29)||_0x473c29);return _0x473c29;},g=(_0x364c6a,_0x321f0f)=>(_0x3529d7,_0x4fb727)=>_0x321f0f(_0x3529d7,_0x4fb727,_0x364c6a);const O=_0x227188(0xdf),D=_0x227188(0x1ea);exports[_0x227188(0xcb)]=class extends u[_0x227188(0xee)]{constructor(_0x5e0ad3,_0x121287,_0xdf598e,_0x1b45b8,_0x2ba507,_0x21b79a,_0x379f84,_0x460e1a,_0x1aa722,_0x20e0d9){const _0x506f10=_0x227188;super(),I(this,_0x506f10(0x1e0),new M['BehaviorSubject'](!0x1)),I(this,_0x506f10(0x172),new M[(_0x506f10(0xf6))]({})),I(this,_0x506f10(0x1f2),new M[(_0x506f10(0xf6))]({})),I(this,_0x506f10(0x1de),new M[(_0x506f10(0xf6))]('')),I(this,_0x506f10(0x18a),async _0x1cd2e7=>{const _0x29999c=_0x506f10;var _0x51f0db,_0x3ad1bf;this[_0x29999c(0x1e0)][_0x29999c(0xed)](!0x0);try{const _0x4184c4=await this[_0x29999c(0xc6)](_0x1cd2e7);if(!_0x4184c4[_0x29999c(0x177)]){this[_0x29999c(0xa5)][_0x29999c(0x154)]({'type':f['MessageType'][_0x29999c(0xe9)],'content':_0x4184c4[_0x29999c(0xba)]||this[_0x29999c(0xaf)]['t'](_0x29999c(0xfe))});return;}_0x1cd2e7[_0x29999c(0x1e9)]?await this[_0x29999c(0x15d)][_0x29999c(0x149)](O,_0x1cd2e7[_0x29999c(0x1e9)][_0x29999c(0x146)]()):await this['_localStorageService'][_0x29999c(0x1b9)](O),this[_0x29999c(0x1de)][_0x29999c(0xed)](((_0x51f0db=_0x1cd2e7[_0x29999c(0x1e9)])==null?void 0x0:_0x51f0db[_0x29999c(0x146)]())||''),this[_0x29999c(0x114)][_0x29999c(0x180)]({'Authorization':_0x29999c(0x15c)+((_0x3ad1bf=_0x1cd2e7['apiKey'])==null?void 0x0:_0x3ad1bf[_0x29999c(0x146)]())}),this[_0x29999c(0xa5)][_0x29999c(0x154)]({'type':f[_0x29999c(0xe5)]['Success'],'content':this['_localeService']['t'](_0x29999c(0x15b))}),setTimeout(()=>{const _0x245b82=_0x29999c;this[_0x245b82(0x142)][_0x245b82(0x1db)](D);},0x320);}catch(_0x5c3b32){this[_0x29999c(0x1d3)][_0x29999c(0x10f)](_0x29999c(0x164),_0x5c3b32),this[_0x29999c(0xa5)][_0x29999c(0x154)]({'type':f[_0x29999c(0xe5)][_0x29999c(0xe9)],'content':this['_localeService']['t']('mcpConfig.configError')});}finally{this[_0x29999c(0x1e0)][_0x29999c(0xed)](!0x1);}}),(this[_0x506f10(0x10a)]=_0x5e0ad3,this['_uiPartsService']=_0x121287,this['_configService']=_0xdf598e,this[_0x506f10(0x15d)]=_0x1b45b8,this['_dialogService']=_0x2ba507,this['_messageService']=_0x21b79a,this[_0x506f10(0x9b)]=_0x379f84,this[_0x506f10(0xaf)]=_0x460e1a,this[_0x506f10(0x1d3)]=_0x1aa722,this['_mcpConnectionController']=_0x20e0d9,this[_0x506f10(0xa6)](),this[_0x506f10(0x1ab)](),this[_0x506f10(0x120)]());}[_0x227188(0x128)](){const _0x567290=_0x227188,_0x77ae78=this['_configService']['getConfig'](P);_0x77ae78!=null&&_0x77ae78[_0x567290(0xa3)]&&this[_0x567290(0x142)]['open']({'id':D,'title':{'title':this[_0x567290(0xaf)]['t'](_0x567290(0x97))},'children':{'label':_0x567290(0x183)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x33bec4=_0x567290;this['_dialogService'][_0x33bec4(0x1db)](D);}});}['getCurrentConfig'](){const _0x5fd802=_0x227188;return this[_0x5fd802(0x172)][_0x5fd802(0x1c4)];}[_0x227188(0x120)](){const _0x41412f=_0x227188;this[_0x41412f(0x8e)](this[_0x41412f(0x9b)]['register'](_0x41412f(0x183),this[_0x41412f(0xa8)]()));}[_0x227188(0xa8)](){const _0x29c4dc=_0x227188;return v[_0x29c4dc(0x176)](()=>{const _0x17b84f=_0x29c4dc;var _0x1502e5,_0x288454,_0x365c5d;return i['jsx'](V,{'config':this[_0x17b84f(0x1f2)][_0x17b84f(0x1c4)],'mcpCoreConfig':this['_mcpCoreConfig$'][_0x17b84f(0x1c4)],'currentApiKey$':this[_0x17b84f(0x1de)],'onSave':this[_0x17b84f(0x18a)],'loading':this['_loading$'][_0x17b84f(0x1c4)],'connectionStatus$':(_0x1502e5=this[_0x17b84f(0x114)])==null?void 0x0:_0x1502e5['connectionStatus$'],'connectionError$':(_0x288454=this[_0x17b84f(0x114)])==null?void 0x0:_0x288454[_0x17b84f(0xbf)],'currentSessionId$':(_0x365c5d=this['_mcpConnectionController'])==null?void 0x0:_0x365c5d['sessionId$']});},this['_injector']);}[_0x227188(0xa6)](){const _0xb531f9=_0x227188;this['disposeWithMe'](this[_0xb531f9(0x185)]['subscribeConfigValue$'](s[_0xb531f9(0x125)])[_0xb531f9(0x1c1)](_0x3d7039=>{const _0x11a916=_0xb531f9;this[_0x11a916(0x172)]['next'](_0x3d7039||{});}));const _0x49d585=this[_0xb531f9(0x185)][_0xb531f9(0x94)](s[_0xb531f9(0x125)]);this['_mcpCoreConfig$'][_0xb531f9(0xed)](_0x49d585||{}),this[_0xb531f9(0x8e)](this[_0xb531f9(0x185)][_0xb531f9(0x195)](P)[_0xb531f9(0x1c1)](_0x445117=>{this['_config$']['next'](_0x445117||{});}));const _0x5a6a90=this[_0xb531f9(0x185)][_0xb531f9(0x94)](P);this[_0xb531f9(0x1f2)][_0xb531f9(0xed)](_0x5a6a90||{});}async[_0x227188(0x1ab)](){const _0x397068=_0x227188,_0x29e91e=this[_0x397068(0x185)][_0x397068(0x94)](P);if(!(_0x29e91e!=null&&_0x29e91e[_0x397068(0xa3)]))return;const _0x4297c2=await this[_0x397068(0x15d)][_0x397068(0xac)](O);_0x4297c2&&(this[_0x397068(0x114)][_0x397068(0x180)]({'Authorization':_0x397068(0x15c)+_0x4297c2}),this[_0x397068(0x1de)][_0x397068(0xed)](_0x4297c2));}async['_validateConfig'](_0x117e02){const _0x14dac8=_0x227188;if(!_0x117e02[_0x14dac8(0x1e9)]||_0x117e02[_0x14dac8(0x1e9)]['trim']()[_0x14dac8(0x1a5)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x14dac8(0xaf)]['t']('mcpConfig.validation.apiKeyRequired')};if(_0x117e02[_0x14dac8(0x1e9)][_0x14dac8(0x146)]()[_0x14dac8(0x1a5)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x14dac8(0xaf)]['t'](_0x14dac8(0x8c))};try{const _0x550289=await this[_0x14dac8(0x10a)][_0x14dac8(0x1a4)](s['MCPConnectionController'])[_0x14dac8(0x19c)](_0x117e02[_0x14dac8(0x1e9)][_0x14dac8(0x146)]());return _0x550289[_0x14dac8(0x177)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x550289['error']||this[_0x14dac8(0xaf)]['t'](_0x14dac8(0x179))};}catch(_0x42927f){return console[_0x14dac8(0x15f)](_0x14dac8(0x133),_0x42927f),{'isValid':!0x0};}}},exports[_0x227188(0xcb)]=xe([g(0x0,u[_0x227188(0xc3)](u[_0x227188(0x86)])),g(0x1,v[_0x227188(0xef)]),g(0x2,u[_0x227188(0x91)]),g(0x3,u[_0x227188(0x134)]),g(0x4,v[_0x227188(0x167)]),g(0x5,v[_0x227188(0x13c)]),g(0x6,u[_0x227188(0xc3)](v[_0x227188(0xfa)])),g(0x7,u[_0x227188(0xc3)](u[_0x227188(0x138)])),g(0x8,u[_0x227188(0x150)]),g(0x9,u[_0x227188(0xc3)](s['MCPConnectionController']))],exports['MCPConfigUIController']);const b={'id':'mcp-ui.command.openConfigPanel','type':u['CommandType'][_0x227188(0x1ac)],'handler':async(_0x45ec67,_0x29a07d)=>(_0x45ec67[_0x227188(0x1a4)](exports[_0x227188(0xcb)])[_0x227188(0x128)](),!0x0)};function Z(_0x47f6bd,_0x30b8d3){const _0x190138=_0x227188;switch(_0x47f6bd){case s['MCPConnectionStatus'][_0x190138(0x7c)]:return _0x190138(0x170);case s[_0x190138(0x100)][_0x190138(0x174)]:return _0x190138(0xb7);case s[_0x190138(0x100)][_0x190138(0x84)]:return _0x190138(0x1b2);case s[_0x190138(0x100)][_0x190138(0x1a7)]:switch(_0x30b8d3){case s['MCPConnectionError'][_0x190138(0x12f)]:return _0x190138(0x1ad);case s[_0x190138(0x161)][_0x190138(0x1ae)]:return'mcpStatus.sessionOccupied';case s[_0x190138(0x161)][_0x190138(0xcd)]:return _0x190138(0x1e7);case s[_0x190138(0x161)][_0x190138(0x1d0)]:return _0x190138(0x1eb);default:return _0x190138(0x16c);}case s[_0x190138(0x100)][_0x190138(0xb3)]:return _0x190138(0xbb);default:return _0x190138(0x198);}}function Se(_0x1ce73a,_0x163b39,_0x14d619,_0x2fcf0a=!0x0){const _0x54e52e=_0x227188,_0x2ab28c=Z(_0x1ce73a,_0x163b39),_0x5b206f=_0x14d619['t'](_0x2ab28c);return _0x2fcf0a?_0x1ce73a===s[_0x54e52e(0x100)]['DISCONNECTED']&&_0x163b39===s[_0x54e52e(0x161)][_0x54e52e(0x12f)]?_0x5b206f+_0x54e52e(0x1c3)+_0x14d619['t'](_0x54e52e(0x1b0)):_0x1ce73a===s['MCPConnectionStatus'][_0x54e52e(0x84)]?''+_0x5b206f:_0x1ce73a===s[_0x54e52e(0x100)]['DISCONNECTED']||_0x1ce73a===s[_0x54e52e(0x100)][_0x54e52e(0x1a7)]?_0x5b206f+_0x54e52e(0x1c3)+_0x14d619['t']('mcpStatus.clickToConnect'):_0x5b206f:_0x5b206f;}function Pe(_0xfd9ab3){const _0x24e953=_0x227188;switch(_0xfd9ab3){case s[_0x24e953(0x100)][_0x24e953(0x84)]:return _0x24e953(0x19b);case s[_0x24e953(0x100)][_0x24e953(0x174)]:case s[_0x24e953(0x100)][_0x24e953(0xb3)]:return _0x24e953(0x10c);case s[_0x24e953(0x100)][_0x24e953(0x1a7)]:case s[_0x24e953(0x100)][_0x24e953(0x7c)]:return'univer-text-red-500';default:return _0x24e953(0x1d1);}}function W(_0x4de58a){const _0x22ec63=_0x227188,{status$:_0x548e8a,error$:_0x24d123,onConfigure:_0x59a3ef,showClickable:_0x10dadf=!0x0}=_0x4de58a,_0xbacae5=v['useObservable'](_0x548e8a,s['MCPConnectionStatus'][_0x22ec63(0x7c)]),_0x1d9352=v[_0x22ec63(0x17f)](_0x24d123,s[_0x22ec63(0x161)][_0x22ec63(0x132)]),_0xfe1f36=v[_0x22ec63(0xa4)](u[_0x22ec63(0x138)]),_0x151bfa=_0xbacae5===s[_0x22ec63(0x100)][_0x22ec63(0x84)];_0xbacae5===s[_0x22ec63(0x100)][_0x22ec63(0x174)]||s['MCPConnectionStatus'][_0x22ec63(0xb3)];const _0x51df71=_0xfe1f36['t'](Z(_0xbacae5,_0x1d9352)),_0x3800bb=Se(_0xbacae5,_0x1d9352,_0xfe1f36,_0x10dadf),_0x2af884=Pe(_0xbacae5),_0x550ae6=_0x151bfa?i[_0x22ec63(0x10d)](q,{}):i[_0x22ec63(0x10d)](Y,{}),_0x76ec34=d[_0x22ec63(0xe1)](()=>{_0x10dadf&&_0x59a3ef&&_0x59a3ef();},[_0x10dadf,_0x59a3ef]);function _0x5753b0(){const _0x28a2c6=_0x22ec63;return i[_0x28a2c6(0xf0)]('div',{'className':f[_0x28a2c6(0x1da)](_0x28a2c6(0xd6),_0x10dadf&&_0x59a3ef&&_0x28a2c6(0xd8)),'role':_0x28a2c6(0x110),'onClick':_0x10dadf&&_0x59a3ef?_0x76ec34:void 0x0,'children':[i['jsx'](_0x28a2c6(0x104),{'className':f[_0x28a2c6(0x1da)](_0x28a2c6(0x13a),_0x2af884),'children':_0x550ae6}),i[_0x28a2c6(0x10d)](_0x28a2c6(0x104),{'className':_0x28a2c6(0xe0),'children':_0x51df71})]});}return i[_0x22ec63(0x10d)](f['Tooltip'],{'title':_0x3800bb,'placement':_0x22ec63(0x131),'children':_0x5753b0()});}var Ie=Object[_0x227188(0x101)],_e=(_0x597a46,_0x331b2c,_0x2176b8,_0x38634e)=>{const _0x2cd8a5=_0x227188;for(var _0x3ad508=_0x38634e>0x1?void 0x0:_0x38634e?Ie(_0x331b2c,_0x2176b8):_0x331b2c,_0x47ef66=_0x597a46[_0x2cd8a5(0x1a5)]-0x1,_0x1b2950;_0x47ef66>=0x0;_0x47ef66--)(_0x1b2950=_0x597a46[_0x47ef66])&&(_0x3ad508=_0x1b2950(_0x3ad508)||_0x3ad508);return _0x3ad508;},N=(_0x414529,_0x361b06)=>(_0x599025,_0x45daff)=>_0x361b06(_0x599025,_0x45daff,_0x414529);exports[_0x227188(0x1c6)]=class extends u[_0x227188(0xee)]{constructor(_0x4b8cc3,_0x16bfab,_0x4d37d3,_0x2a2be4){const _0xe8fb14=_0x227188;super(),this[_0xe8fb14(0x10a)]=_0x4b8cc3,this['_connectionController']=_0x16bfab,this['_uiPartsService']=_0x4d37d3,this[_0xe8fb14(0x185)]=_0x2a2be4,this[_0xe8fb14(0xd9)](),this[_0xe8fb14(0x11b)]();}[_0x227188(0xd9)](){const _0x459cca=_0x227188,_0x3b6322=this[_0x459cca(0x185)][_0x459cca(0x94)](P);_0x3b6322!=null&&_0x3b6322[_0x459cca(0xa3)]&&(this[_0x459cca(0x1fb)][_0x459cca(0x1aa)]=!0x1);}[_0x227188(0x11b)](){const _0x416991=_0x227188,_0x5e5682=this[_0x416991(0x185)]['getConfig'](P);(_0x5e5682==null?void 0x0:_0x5e5682[_0x416991(0x16f)])!==!0x1&&this[_0x416991(0x8e)](this[_0x416991(0xe7)][_0x416991(0x1e8)](v[_0x416991(0x13f)][_0x416991(0xdb)],()=>{const _0x526375=_0x416991;var _0xfea4bb;return v[_0x526375(0x176)](ye({'status$':this[_0x526375(0x1fb)]['connectionStatus$'],'error$':this[_0x526375(0x1fb)][_0x526375(0xbf)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0xfea4bb=_0x5e5682==null?void 0x0:_0x5e5682[_0x526375(0xa3)])!=null?_0xfea4bb:!0x1}),this[_0x526375(0x10a)]);}));}[_0x227188(0x15a)](){const _0x140f25=_0x227188;this[_0x140f25(0x10a)][_0x140f25(0x1a4)](exports[_0x140f25(0xcb)])[_0x140f25(0x128)]();}},exports[_0x227188(0x1c6)]=_e([N(0x0,u[_0x227188(0xc3)](u[_0x227188(0x86)])),N(0x1,u['Inject'](s['MCPConnectionController'])),N(0x2,v[_0x227188(0xef)]),N(0x3,u[_0x227188(0x91)])],exports['MCPConnectionUIController']);function ye(_0x435cfc){const {status$:_0x1af811,error$:_0x3b40c6,onConfigure:_0x112823,showClickable:_0x648104}=_0x435cfc;return function(){const _0x49d051=_0x4c59;return i[_0x49d051(0x10d)](W,{'status$':_0x1af811,'error$':_0x3b40c6,'onConfigure':_0x112823,'showClickable':_0x648104});};}function Me(_0x27c785){const _0x4cd665=_0x227188;return{'id':b['id'],'type':v[_0x4cd665(0x8d)][_0x4cd665(0x17c)],'icon':_0x4cd665(0x13b),'title':_0x4cd665(0x97),'tooltip':_0x4cd665(0x97)};}const Ne={[v[_0x227188(0x152)][_0x227188(0xb8)]]:{[b['id']]:{'order':0xa,'menuItemFactory':Me}}};var be=Object[_0x227188(0x101)],je=(_0x2505e9,_0x525526,_0xbc42c2,_0x4d7b1a)=>{const _0x2f665c=_0x227188;for(var _0x403045=_0x4d7b1a>0x1?void 0x0:_0x4d7b1a?be(_0x525526,_0xbc42c2):_0x525526,_0x16a916=_0x2505e9[_0x2f665c(0x1a5)]-0x1,_0x3f0167;_0x16a916>=0x0;_0x16a916--)(_0x3f0167=_0x2505e9[_0x16a916])&&(_0x403045=_0x3f0167(_0x403045)||_0x403045);return _0x403045;},z=(_0x216274,_0x2c5376)=>(_0x7aacd3,_0x3b7bba)=>_0x2c5376(_0x7aacd3,_0x3b7bba,_0x216274);exports[_0x227188(0x89)]=class extends u['Disposable']{constructor(_0x69c793,_0x5a8281){const _0xfaa638=_0x227188;super(),this['_commandService']=_0x69c793,this[_0xfaa638(0xa2)]=_0x5a8281,this['_initializeCommands'](),this['_initializeMenus']();}['_initializeCommands'](){const _0x24e19a=_0x227188;[b][_0x24e19a(0x169)](_0x4d5bff=>{const _0x7990f6=_0x24e19a;this[_0x7990f6(0x8e)](this[_0x7990f6(0x96)][_0x7990f6(0x87)](_0x4d5bff));});}[_0x227188(0xda)](){const _0x535e93=_0x227188;this[_0x535e93(0xa2)]['mergeMenu'](Ne);}},exports['MCPUIMenuController']=je([z(0x0,u[_0x227188(0x184)]),z(0x1,v[_0x227188(0x1ec)])],exports[_0x227188(0x89)]);const Ee={'mcpStatus':{'disconnected':_0x227188(0x103),'connecting':_0x227188(0x16b),'connected':'MCP\x20Connected','failed':_0x227188(0x81),'retrying':_0x227188(0x12c),'unknown':_0x227188(0x14e),'unauthorized':_0x227188(0x1cd),'sessionOccupied':_0x227188(0x1dc),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x227188(0x121),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x227188(0x1ff)},'mcpConfig':{'title':_0x227188(0x1a2),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x227188(0x129),'apiKeyPlaceholder':_0x227188(0x1f1),'apiKeyHint':_0x227188(0x1f5),'enableAuth':_0x227188(0x144),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x227188(0x182),'mcpClientConfig':_0x227188(0x182),'configInstructions':_0x227188(0x8a),'configStepTitle':_0x227188(0x12b),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x227188(0x1ba),'sessionId':'Session\x20ID','sessionIdDescription':_0x227188(0x1ca),'authorizationDescription':_0x227188(0x1df),'configParameters':_0x227188(0x1d9),'maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x227188(0x1c5),'note1':_0x227188(0x190),'note2':_0x227188(0x7e),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x227188(0x17d),'apiApplyInfo':{'title':_0x227188(0xd2),'description':_0x227188(0xd0),'univerAiLabel':_0x227188(0x99),'getStarted':_0x227188(0xf4)},'validation':{'apiKeyRequired':_0x227188(0xb9),'apiKeyTooShort':_0x227188(0xc7),'invalidConfig':_0x227188(0x157),'invalidApiKey':_0x227188(0x1bb)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x227188(0x1fe),'connected':'Connected','failed':'Connection\x20Failed','retrying':_0x227188(0x168)},'connectionError':{'unauthorized':_0x227188(0x1af),'sessionOccupied':_0x227188(0x7d),'networkError':_0x227188(0x127),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},we={'mcpStatus':{'disconnected':_0x227188(0x1f4),'connecting':_0x227188(0xde),'connected':_0x227188(0x9e),'failed':_0x227188(0x173),'retrying':'MCP\x20重连中...','unknown':_0x227188(0x16a),'unauthorized':'MCP:\x20未授权','sessionOccupied':_0x227188(0x7f),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x227188(0x1fa),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x227188(0x1ee)},'mcpConfig':{'title':'MCP\x20配置','description':_0x227188(0x1b5),'apiKey':'API\x20密钥','apiKeyPlaceholder':_0x227188(0xad),'apiKeyHint':_0x227188(0x1e2),'enableAuth':_0x227188(0x201),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x227188(0x1a0),'mcpClientConfig':_0x227188(0x1a0),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x227188(0x1e5),'configStep1':_0x227188(0xfd),'configStep2':_0x227188(0x98),'configStep3':_0x227188(0x162),'sessionId':_0x227188(0x145),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0x227188(0x16d),'configParameters':'配置参数:','maxRetries':_0x227188(0xa7),'save':_0x227188(0x1bc),'saving':_0x227188(0x1c2),'note1':_0x227188(0x191),'note2':_0x227188(0x14f),'configSaved':'配置保存成功','configError':_0x227188(0x1e6),'apiApplyInfo':{'title':_0x227188(0x14c),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0x227188(0xb0),'getStarted':_0x227188(0xd3)},'validation':{'apiKeyRequired':_0x227188(0xf2),'apiKeyTooShort':_0x227188(0x1b1),'invalidConfig':_0x227188(0x171),'invalidApiKey':_0x227188(0x109)},'connectionStatus':{'disconnected':_0x227188(0x1fc),'connecting':_0x227188(0x147),'connected':'已连接','failed':_0x227188(0x192),'retrying':_0x227188(0xea)},'connectionError':{'unauthorized':_0x227188(0xb4),'sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':_0x227188(0xca),'maxRetriesExceeded':_0x227188(0x18b)}}};var Ae=Object[_0x227188(0x188)],Oe=Object[_0x227188(0x101)],De=(_0x22594c,_0x5c795b,_0x1cfd93)=>_0x5c795b in _0x22594c?Ae(_0x22594c,_0x5c795b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1cfd93}):_0x22594c[_0x5c795b]=_0x1cfd93,Ue=(_0x58fe6b,_0xde7585,_0x1ddf9f,_0x2da0ab)=>{for(var _0x3f9183=_0x2da0ab>0x1?void 0x0:_0x2da0ab?Oe(_0xde7585,_0x1ddf9f):_0xde7585,_0x185eca=_0x58fe6b['length']-0x1,_0x34fef4;_0x185eca>=0x0;_0x185eca--)(_0x34fef4=_0x58fe6b[_0x185eca])&&(_0x3f9183=_0x34fef4(_0x3f9183)||_0x3f9183);return _0x3f9183;},y=(_0x1753de,_0x1ad2da)=>(_0x26bf69,_0x51e8bf)=>_0x1ad2da(_0x26bf69,_0x51e8bf,_0x1753de),$e=(_0x4ac1de,_0x13beda,_0x1328a6)=>De(_0x4ac1de,_0x13beda+'',_0x1328a6);exports['UniverMCPUIPlugin']=class extends u['Plugin']{constructor(_0x4ab6e9=L,_0x2b9d66,_0x4abc92,_0x40c1e8,_0x390e55,_0x234d0a){const _0x6b91ec=_0x227188;super(),this[_0x6b91ec(0x155)]=_0x4ab6e9,this[_0x6b91ec(0x10a)]=_0x2b9d66,this['_configService']=_0x4abc92,this['_uiPartsService']=_0x40c1e8,this[_0x6b91ec(0x15d)]=_0x390e55,this[_0x6b91ec(0xaf)]=_0x234d0a;const {..._0x57550f}=u[_0x6b91ec(0x187)]({},L,this['_config']);this[_0x6b91ec(0x185)][_0x6b91ec(0x105)](P,_0x57550f);}async[_0x227188(0x16e)](){const _0x44b662=_0x227188,_0x233b9a=[[exports[_0x44b662(0x1c6)]],[exports['MCPConfigUIController']],[exports[_0x44b662(0x89)]]];this['_injector'][_0x44b662(0x17b)](A[_0x44b662(0x10b)])||_0x233b9a['push']([A[_0x44b662(0x10b)],{'useClass':A['WebSocketService']}]),_0x233b9a[_0x44b662(0x169)](_0x5e36d3=>this['_injector'][_0x44b662(0xb6)](_0x5e36d3)),this['_injector'][_0x44b662(0x1a4)](exports['MCPConnectionUIController']),this['_injector']['get'](exports[_0x44b662(0xcb)]),this[_0x44b662(0x10a)]['get'](exports[_0x44b662(0x89)]);}},$e(exports[_0x227188(0x106)],'pluginName','MCP_UI_PLUGIN'),exports[_0x227188(0x106)]=Ue([u[_0x227188(0xe6)](s[_0x227188(0x136)]),y(0x1,u[_0x227188(0xc3)](u[_0x227188(0x86)])),y(0x2,u[_0x227188(0x91)]),y(0x3,v['IUIPartsService']),y(0x4,u[_0x227188(0x134)]),y(0x5,u[_0x227188(0xc3)](u[_0x227188(0x138)]))],exports['UniverMCPUIPlugin']),exports[_0x227188(0x183)]=V,exports[_0x227188(0xc0)]=W,exports[_0x227188(0x1d7)]=b,exports[_0x227188(0x194)]=Ee,exports['zhCN']=we;
|
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x5b44af=_0x4e01;function _0x4e01(_0x5003c7,_0x260f72){_0x5003c7=_0x5003c7-0x11c;const _0x101820=_0x1018();let _0x4e012f=_0x101820[_0x5003c7];return _0x4e012f;}(function(_0x39daa9,_0x1a5d9f){const _0x16d9ca=_0x4e01,_0x1481ba=_0x39daa9();while(!![]){try{const _0x3821bc=parseInt(_0x16d9ca(0x141))/0x1+parseInt(_0x16d9ca(0x12d))/0x2+parseInt(_0x16d9ca(0x124))/0x3*(-parseInt(_0x16d9ca(0x143))/0x4)+-parseInt(_0x16d9ca(0x132))/0x5+-parseInt(_0x16d9ca(0x149))/0x6+-parseInt(_0x16d9ca(0x121))/0x7+parseInt(_0x16d9ca(0x145))/0x8*(parseInt(_0x16d9ca(0x147))/0x9);if(_0x3821bc===_0x1a5d9f)break;else _0x1481ba['push'](_0x1481ba['shift']());}catch(_0x3dfb84){_0x1481ba['push'](_0x1481ba['shift']());}}}(_0x1018,0x4dc51));function _0x1018(){const _0x1725b2=['Session\x20ID','Click\x20to\x20configure\x20MCP','Get\x20your\x20API\x20key\x20in\x20seconds','Saving...','MCP\x20Retrying...','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Connected','1251430wfbnIB','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Connecting...','MCP\x20Unknown\x20Status','Enter\x20your\x20API\x20key','1611840aNImYP','MCP\x20Client\x20Configuration','MCP:\x20Network\x20Error','MCP\x20Connection\x20Failed','What\x20is\x20API\x20Key?','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Configuration\x20Parameters:','Click\x20to\x20connect\x20MCP','Disconnected','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Failed\x20to\x20save\x20configuration','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Enable\x20authentication\x20for\x20secure\x20connections','301820SMrTzO','API\x20Key','3292JxTBos','Configuration\x20saved\x20successfully','20416UJGShG','MCP:\x20Session\x20ID\x20Occupied','2061PwzGEp','MCP:\x20Unauthorized','2617926FagTXD','Configuration\x20Steps:','Retrying...','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Connection\x20Failed','MCP\x20Disconnected','283444OUIDPI','Invalid\x20configuration','MCP\x20Configuration','1437MEqxfa','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser'];_0x1018=function(){return _0x1725b2;};return _0x1018();}const e={'mcpStatus':{'disconnected':_0x5b44af(0x120),'connecting':_0x5b44af(0x12f),'connected':'MCP\x20Connected','failed':_0x5b44af(0x135),'retrying':_0x5b44af(0x12a),'unknown':_0x5b44af(0x130),'unauthorized':_0x5b44af(0x148),'sessionOccupied':_0x5b44af(0x146),'networkError':_0x5b44af(0x134),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x5b44af(0x139),'clickToConfigure':_0x5b44af(0x127)},'mcpConfig':{'title':_0x5b44af(0x123),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x5b44af(0x142),'apiKeyPlaceholder':_0x5b44af(0x131),'apiKeyHint':_0x5b44af(0x125),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x5b44af(0x140),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x5b44af(0x133),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x5b44af(0x11c),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x5b44af(0x12b),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x5b44af(0x126),'sessionIdDescription':_0x5b44af(0x13c),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x5b44af(0x138),'maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x5b44af(0x129),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x5b44af(0x13b),'configSaved':_0x5b44af(0x144),'configError':_0x5b44af(0x13e),'apiApplyInfo':{'title':_0x5b44af(0x136),'description':_0x5b44af(0x11e),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x5b44af(0x128)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x5b44af(0x122),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x5b44af(0x13a),'connecting':'Connecting...','connected':_0x5b44af(0x12c),'failed':_0x5b44af(0x11f),'retrying':_0x5b44af(0x11d)},'connectionError':{'unauthorized':_0x5b44af(0x12e),'sessionOccupied':_0x5b44af(0x13d),'networkError':_0x5b44af(0x13f),'maxRetriesExceeded':_0x5b44af(0x137)}}},n=e;module['exports']=n;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x19b13f=_0x4695;function _0x4695(_0x26d689,_0x3493d7){_0x26d689=_0x26d689-0xa5;const _0x3b17b3=_0x3b17();let _0x4695fe=_0x3b17b3[_0x26d689];return _0x4695fe;}function _0x3b17(){const _0x53b2e7=['API\x20key\x20is\x20required','MCP\x20Connected','MCP:\x20Unauthorized','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','3689048HnSqsR','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Click\x20to\x20connect\x20MCP','Saving...','Enable\x20Authentication','448566dWTIyP','5721390OlLtoo','MCP\x20Disconnected','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Configuration\x20saved\x20successfully','MCP\x20Client\x20Configuration','Get\x20your\x20API\x20key\x20in\x20seconds','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','91AjDbwm','API\x20key\x20with\x20Bearer\x20prefix.','Univer\x20AI\x20Console','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','API\x20Key','Invalid\x20configuration','Connection\x20Failed','Save\x20Configuration','MCP\x20Retrying...','Configuration\x20Steps:','190870kBlSzJ','MCP:\x20Max\x20Retries\x20Exceeded','Copy\x20the\x20JSON\x20configuration\x20below','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP:\x20Network\x20Error','MCP\x20Connecting...','exports','Connected','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','What\x20is\x20API\x20Key?','2qWtGvv','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Connecting...','24441990QHmZym','Disconnected','9ZSZtAH','MCP\x20Unknown\x20Status','Configuration\x20Parameters:','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','8566512hijNuw','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Failed\x20to\x20save\x20configuration','1773168AqzABe','Retrying...','Max\x20Retries','MCP:\x20Session\x20ID\x20Occupied','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser'];_0x3b17=function(){return _0x53b2e7;};return _0x3b17();}(function(_0x410b6b,_0x131015){const _0x196611=_0x4695,_0x5eda91=_0x410b6b();while(!![]){try{const _0x1f4c30=-parseInt(_0x196611(0xd3))/0x1*(parseInt(_0x196611(0xc8))/0x2)+parseInt(_0x196611(0xa8))/0x3+parseInt(_0x196611(0xb1))/0x4+-parseInt(_0x196611(0xb7))/0x5+-parseInt(_0x196611(0xb6))/0x6*(parseInt(_0x196611(0xbe))/0x7)+-parseInt(_0x196611(0xa5))/0x8+parseInt(_0x196611(0xd9))/0x9*(parseInt(_0x196611(0xd7))/0xa);if(_0x1f4c30===_0x131015)break;else _0x5eda91['push'](_0x5eda91['shift']());}catch(_0x3bece4){_0x5eda91['push'](_0x5eda91['shift']());}}}(_0x3b17,0x8d84e));const e={'mcpStatus':{'disconnected':_0x19b13f(0xb8),'connecting':_0x19b13f(0xcd),'connected':_0x19b13f(0xae),'failed':'MCP\x20Connection\x20Failed','retrying':_0x19b13f(0xc6),'unknown':_0x19b13f(0xda),'unauthorized':_0x19b13f(0xaf),'sessionOccupied':_0x19b13f(0xab),'networkError':_0x19b13f(0xcc),'maxRetriesExceeded':_0x19b13f(0xc9),'clickToConnect':_0x19b13f(0xb3),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x19b13f(0xa6),'apiKey':_0x19b13f(0xc2),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x19b13f(0xac),'enableAuth':_0x19b13f(0xb5),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x19b13f(0xbb),'mcpClientConfig':_0x19b13f(0xbb),'configInstructions':_0x19b13f(0xd4),'configStepTitle':_0x19b13f(0xc7),'configStep1':_0x19b13f(0xca),'configStep2':_0x19b13f(0xd1),'configStep3':_0x19b13f(0xd0),'sessionId':'Session\x20ID','sessionIdDescription':_0x19b13f(0xc1),'authorizationDescription':_0x19b13f(0xbf),'configParameters':_0x19b13f(0xdb),'maxRetries':_0x19b13f(0xaa),'save':_0x19b13f(0xc5),'saving':_0x19b13f(0xb4),'note1':_0x19b13f(0xb2),'note2':_0x19b13f(0xb0),'configSaved':_0x19b13f(0xba),'configError':_0x19b13f(0xa7),'apiApplyInfo':{'title':_0x19b13f(0xd2),'description':_0x19b13f(0xd5),'univerAiLabel':_0x19b13f(0xc0),'getStarted':_0x19b13f(0xbc)},'validation':{'apiKeyRequired':_0x19b13f(0xad),'apiKeyTooShort':_0x19b13f(0xdc),'invalidConfig':_0x19b13f(0xc3),'invalidApiKey':_0x19b13f(0xcb)},'connectionStatus':{'disconnected':_0x19b13f(0xd8),'connecting':_0x19b13f(0xd6),'connected':_0x19b13f(0xcf),'failed':_0x19b13f(0xc4),'retrying':_0x19b13f(0xa9)},'connectionError':{'unauthorized':_0x19b13f(0xb9),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x19b13f(0xbd),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}};module[_0x19b13f(0xce)]=e;
|
package/lib/cjs/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x2168f5=_0x370d;(function(_0x31a86c,_0x4ebcd9){const _0x1aad08=_0x370d,_0x448b02=_0x31a86c();while(!![]){try{const _0x4e4cbc=-parseInt(_0x1aad08(0x141))/0x1*(-parseInt(_0x1aad08(0x144))/0x2)+parseInt(_0x1aad08(0x123))/0x3+-parseInt(_0x1aad08(0x122))/0x4*(parseInt(_0x1aad08(0x135))/0x5)+-parseInt(_0x1aad08(0x124))/0x6*(-parseInt(_0x1aad08(0x127))/0x7)+-parseInt(_0x1aad08(0x12f))/0x8*(parseInt(_0x1aad08(0x13a))/0x9)+-parseInt(_0x1aad08(0x145))/0xa+parseInt(_0x1aad08(0x11c))/0xb;if(_0x4e4cbc===_0x4ebcd9)break;else _0x448b02['push'](_0x448b02['shift']());}catch(_0x5a0a62){_0x448b02['push'](_0x448b02['shift']());}}}(_0x1df9,0x99d4a));function _0x370d(_0x2555de,_0x1a28a7){_0x2555de=_0x2555de-0x11a;const _0x1df925=_0x1df9();let _0x370d1f=_0x1df925[_0x2555de];return _0x370d1f;}const e={'mcpStatus':{'disconnected':_0x2168f5(0x132),'connecting':'MCP\x20Connecting...','connected':_0x2168f5(0x11a),'failed':_0x2168f5(0x121),'retrying':_0x2168f5(0x136),'unknown':_0x2168f5(0x11f),'unauthorized':_0x2168f5(0x140),'sessionOccupied':_0x2168f5(0x138),'networkError':_0x2168f5(0x147),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x2168f5(0x14c),'clickToConfigure':_0x2168f5(0x131)},'mcpConfig':{'title':_0x2168f5(0x120),'description':_0x2168f5(0x137),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x2168f5(0x12b),'apiKeyHint':_0x2168f5(0x14a),'enableAuth':_0x2168f5(0x148),'enableAuthHint':_0x2168f5(0x14b),'connectionInfo':_0x2168f5(0x130),'mcpClientConfig':_0x2168f5(0x130),'configInstructions':_0x2168f5(0x14d),'configStepTitle':_0x2168f5(0x125),'configStep1':_0x2168f5(0x149),'configStep2':_0x2168f5(0x133),'configStep3':_0x2168f5(0x11b),'sessionId':_0x2168f5(0x128),'sessionIdDescription':_0x2168f5(0x143),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x2168f5(0x129),'maxRetries':_0x2168f5(0x12e),'save':_0x2168f5(0x13c),'saving':_0x2168f5(0x139),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x2168f5(0x13b),'configSaved':_0x2168f5(0x12a),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x2168f5(0x14e),'description':_0x2168f5(0x12c),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x2168f5(0x146),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x2168f5(0x11d),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x2168f5(0x126),'connecting':_0x2168f5(0x142),'connected':_0x2168f5(0x12d),'failed':_0x2168f5(0x11e),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x2168f5(0x13f),'sessionOccupied':_0x2168f5(0x13e),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x2168f5(0x134)}}},n=e;module[_0x2168f5(0x13d)]=n;function _0x1df9(){const _0x5494cb=['MCP\x20Retrying...','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20Session\x20ID\x20Occupied','Saving...','10252386qRTkqo','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Save\x20Configuration','exports','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP:\x20Unauthorized','525377DOlzMQ','Connecting...','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','4WBVpUW','10765460gdlkyD','API\x20key\x20is\x20required','MCP:\x20Network\x20Error','Enable\x20Authentication','Copy\x20the\x20JSON\x20configuration\x20below','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Enable\x20authentication\x20for\x20secure\x20connections','Click\x20to\x20connect\x20MCP','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','What\x20is\x20API\x20Key?','MCP\x20Connected','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','18101072OESllN','Invalid\x20configuration','Connection\x20Failed','MCP\x20Unknown\x20Status','MCP\x20Configuration','MCP\x20Connection\x20Failed','8YcROFb','436998cuAxIL','7728FiLCTj','Configuration\x20Steps:','Disconnected','3150IrtYnW','Session\x20ID','Configuration\x20Parameters:','Configuration\x20saved\x20successfully','Enter\x20your\x20API\x20key','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Connected','Max\x20Retries','8RWogHD','MCP\x20Client\x20Configuration','Click\x20to\x20configure\x20MCP','MCP\x20Disconnected','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','1439455YiLFAb'];_0x1df9=function(){return _0x5494cb;};return _0x1df9();}
|
package/lib/cjs/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x239c(_0x3ba0c3,_0x4cde4a){_0x3ba0c3=_0x3ba0c3-0xdf;const _0xaa7f1d=_0xaa7f();let _0x239c48=_0xaa7f1d[_0x3ba0c3];return _0x239c48;}const _0x1d23c4=_0x239c;(function(_0x20cd98,_0x17b98d){const _0x5b2a8f=_0x239c,_0x3bc4fb=_0x20cd98();while(!![]){try{const _0x129ae2=parseInt(_0x5b2a8f(0xe1))/0x1+-parseInt(_0x5b2a8f(0x103))/0x2+-parseInt(_0x5b2a8f(0xea))/0x3+-parseInt(_0x5b2a8f(0x101))/0x4+parseInt(_0x5b2a8f(0x109))/0x5*(-parseInt(_0x5b2a8f(0xe4))/0x6)+parseInt(_0x5b2a8f(0x106))/0x7+parseInt(_0x5b2a8f(0x10d))/0x8*(parseInt(_0x5b2a8f(0xee))/0x9);if(_0x129ae2===_0x17b98d)break;else _0x3bc4fb['push'](_0x3bc4fb['shift']());}catch(_0x20668c){_0x3bc4fb['push'](_0x3bc4fb['shift']());}}}(_0xaa7f,0x66d72));function _0xaa7f(){const _0x59feb9=['Configuration\x20Parameters:','API\x20key\x20is\x20required','Save\x20Configuration','Connection\x20Failed','Enable\x20authentication\x20for\x20secure\x20connections','2047362wOkMxZ','MCP\x20Connection\x20Failed','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Retrying...','13779RYbkbn','MCP\x20Retrying...','MCP\x20Disconnected','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Disconnected','Click\x20to\x20configure\x20MCP','Get\x20your\x20API\x20key\x20in\x20seconds','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Connecting...','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Enable\x20Authentication','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','API\x20Key','Copy\x20the\x20JSON\x20configuration\x20below','Failed\x20to\x20save\x20configuration','Invalid\x20configuration','Configuration\x20saved\x20successfully','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','1138080epQSoE','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','1062664opYKJB','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','2076116IwpLLJ','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP:\x20Session\x20ID\x20Occupied','112110WznAxn','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','What\x20is\x20API\x20Key?','MCP:\x20Max\x20Retries\x20Exceeded','8144DrifLA','MCP\x20Unknown\x20Status','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Connecting...','Click\x20to\x20connect\x20MCP','Configuration\x20Steps:','Saving...','Connected','MCP\x20Connected','804320fpRDXt','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','198smWQEA'];_0xaa7f=function(){return _0x59feb9;};return _0xaa7f();}const e={'mcpStatus':{'disconnected':_0x1d23c4(0xf0),'connecting':_0x1d23c4(0x110),'connected':_0x1d23c4(0xe0),'failed':_0x1d23c4(0xeb),'retrying':_0x1d23c4(0xef),'unknown':_0x1d23c4(0x10e),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x1d23c4(0x108),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x1d23c4(0x10c),'clickToConnect':_0x1d23c4(0x111),'clickToConfigure':_0x1d23c4(0xf3)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x1d23c4(0xe3),'apiKey':_0x1d23c4(0xfa),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x1d23c4(0x105),'enableAuth':_0x1d23c4(0xf8),'enableAuthHint':_0x1d23c4(0xe9),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x1d23c4(0x102),'configStepTitle':_0x1d23c4(0x112),'configStep1':_0x1d23c4(0xfb),'configStep2':_0x1d23c4(0xf9),'configStep3':_0x1d23c4(0xf5),'sessionId':'Session\x20ID','sessionIdDescription':_0x1d23c4(0xf1),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x1d23c4(0xe5),'maxRetries':'Max\x20Retries','save':_0x1d23c4(0xe7),'saving':_0x1d23c4(0x113),'note1':_0x1d23c4(0x100),'note2':_0x1d23c4(0xff),'configSaved':_0x1d23c4(0xfe),'configError':_0x1d23c4(0xfc),'apiApplyInfo':{'title':_0x1d23c4(0x10b),'description':_0x1d23c4(0x104),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x1d23c4(0xf4)},'validation':{'apiKeyRequired':_0x1d23c4(0xe6),'apiKeyTooShort':_0x1d23c4(0xf7),'invalidConfig':_0x1d23c4(0xfd),'invalidApiKey':_0x1d23c4(0x107)},'connectionStatus':{'disconnected':_0x1d23c4(0xf2),'connecting':_0x1d23c4(0xf6),'connected':_0x1d23c4(0xdf),'failed':_0x1d23c4(0xe8),'retrying':_0x1d23c4(0xed)},'connectionError':{'unauthorized':_0x1d23c4(0x10a),'sessionOccupied':_0x1d23c4(0x10f),'networkError':_0x1d23c4(0xec),'maxRetriesExceeded':_0x1d23c4(0xe2)}}},n=e;module['exports']=n;
|
package/lib/cjs/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x15c1(){const _0x386dbe=['Connecting...','Session\x20ID','Enable\x20Authentication','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Univer\x20AI\x20Console','Failed\x20to\x20save\x20configuration','1500618ctxZxG','API\x20key\x20with\x20Bearer\x20prefix.','Configuration\x20Steps:','Disconnected','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','34124lXirfr','7EFLFff','628EkDwdE','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Disconnected','310pDFref','Get\x20your\x20API\x20key\x20in\x20seconds','21639101PxQYhx','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP:\x20Unauthorized','MCP\x20Connecting...','MCP\x20Client\x20Configuration','7854512OHZGgm','Retrying...','3129BDKZnF','MCP\x20Connection\x20Failed','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','297657szWWXj','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','13470ewwGAN','Connection\x20Failed','MCP:\x20Network\x20Error','Invalid\x20configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Configuration\x20saved\x20successfully','MCP\x20Unknown\x20Status','exports','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Configuration','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP:\x20Max\x20Retries\x20Exceeded','2710qiShyn','Enable\x20authentication\x20for\x20secure\x20connections'];_0x15c1=function(){return _0x386dbe;};return _0x15c1();}const _0x1500db=_0x1322;function _0x1322(_0x15be1d,_0x112a89){_0x15be1d=_0x15be1d-0x1b9;const _0x15c16e=_0x15c1();let _0x132236=_0x15c16e[_0x15be1d];return _0x132236;}(function(_0xc841b1,_0x14a6af){const _0xf81f54=_0x1322,_0x49406f=_0xc841b1();while(!![]){try{const _0x5ec409=parseInt(_0xf81f54(0x1c7))/0x1+parseInt(_0xf81f54(0x1e8))/0x2*(parseInt(_0xf81f54(0x1d5))/0x3)+parseInt(_0xf81f54(0x1c9))/0x4*(-parseInt(_0xf81f54(0x1da))/0x5)+-parseInt(_0xf81f54(0x1c0))/0x6+-parseInt(_0xf81f54(0x1c8))/0x7*(-parseInt(_0xf81f54(0x1d3))/0x8)+parseInt(_0xf81f54(0x1d8))/0x9*(parseInt(_0xf81f54(0x1cc))/0xa)+-parseInt(_0xf81f54(0x1ce))/0xb;if(_0x5ec409===_0x14a6af)break;else _0x49406f['push'](_0x49406f['shift']());}catch(_0x2671f8){_0x49406f['push'](_0x49406f['shift']());}}}(_0x15c1,0xc6c86));const e={'mcpStatus':{'disconnected':_0x1500db(0x1cb),'connecting':_0x1500db(0x1d1),'connected':'MCP\x20Connected','failed':_0x1500db(0x1d6),'retrying':'MCP\x20Retrying...','unknown':_0x1500db(0x1e1),'unauthorized':_0x1500db(0x1d0),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x1500db(0x1dc),'maxRetriesExceeded':_0x1500db(0x1e7),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x1500db(0x1e5),'description':_0x1500db(0x1bd),'apiKey':'API\x20Key','apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x1500db(0x1de),'enableAuth':_0x1500db(0x1bc),'enableAuthHint':_0x1500db(0x1b9),'connectionInfo':_0x1500db(0x1d2),'mcpClientConfig':_0x1500db(0x1d2),'configInstructions':_0x1500db(0x1c5),'configStepTitle':_0x1500db(0x1c2),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x1500db(0x1e4),'configStep3':_0x1500db(0x1e6),'sessionId':_0x1500db(0x1bb),'sessionIdDescription':_0x1500db(0x1e3),'authorizationDescription':_0x1500db(0x1c1),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':'Saving...','note1':_0x1500db(0x1d9),'note2':_0x1500db(0x1c4),'configSaved':_0x1500db(0x1e0),'configError':_0x1500db(0x1bf),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x1500db(0x1d7),'univerAiLabel':_0x1500db(0x1be),'getStarted':_0x1500db(0x1cd)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x1500db(0x1c6),'invalidConfig':_0x1500db(0x1dd),'invalidApiKey':_0x1500db(0x1df)},'connectionStatus':{'disconnected':_0x1500db(0x1c3),'connecting':_0x1500db(0x1ba),'connected':'Connected','failed':_0x1500db(0x1db),'retrying':_0x1500db(0x1d4)},'connectionError':{'unauthorized':_0x1500db(0x1ca),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x1500db(0x1cf),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module[_0x1500db(0x1e2)]=n;
|
package/lib/cjs/locale/ja-JP.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x45a5c2=_0x1dfa;(function(_0x44d6d3,_0x42f746){const _0x2b37ca=_0x1dfa,_0x3025e3=_0x44d6d3();while(!![]){try{const _0x4835ce=parseInt(_0x2b37ca(0x15b))/0x1+-parseInt(_0x2b37ca(0x140))/0x2*(parseInt(_0x2b37ca(0x155))/0x3)+-parseInt(_0x2b37ca(0x151))/0x4*(parseInt(_0x2b37ca(0x143))/0x5)+-parseInt(_0x2b37ca(0x13f))/0x6+-parseInt(_0x2b37ca(0x161))/0x7+-parseInt(_0x2b37ca(0x156))/0x8*(parseInt(_0x2b37ca(0x13b))/0x9)+parseInt(_0x2b37ca(0x15a))/0xa;if(_0x4835ce===_0x42f746)break;else _0x3025e3['push'](_0x3025e3['shift']());}catch(_0x59c629){_0x3025e3['push'](_0x3025e3['shift']());}}}(_0x2522,0xbcfef));function _0x2522(){const _0x5a2cd3=['MCP\x20接続済み','3197484yXpIWz','2125166nBNijU','保存中...','MCP:\x20最大再試行回数を超過','5miXKIB','認証に失敗しました。APIキーを確認してください','数秒でAPIキーを取得','クリックしてMCPに接続','MCPを設定してAIでスプレッドシートを操作','APIキーはローカルストレージに安全に保存されます','接続済み','MCP:\x20セッションIDが使用中','MCP設定','セッションID','クリックしてMCPを設定','MCPクライアントの設定ファイルに設定を追加','設定パラメータ:','MCPクライアント設定','5439352DyYfMt','接続失敗','再試行中...','設定の保存に失敗しました','3yNfsOe','536xdbPcA','一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','MCP:\x20ネットワークエラー','認証を有効にする','46826420ifyQYa','987614GQetVW','接続中...','APIキーとは?','exports','無効なAPIキーです。キーが正しいか確認してください','MCP\x20接続中...','10182494PHzbmp','MCPクライアントの設定に次の設定を追加してください:','以下のJSON設定をコピー','APIキーは10文字以上である必要があります','APIキーを入力してください','MCPクライアントを再起動して設定を適用','設定の変更は直ちに有効になります','無効な設定','セキュアな接続のために認証を有効にする','APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','APIキーは必須です','MCP\x20接続失敗','65304SJloza','MCP:\x20認証されていません','ネットワーク接続エラー。インターネット接続を確認してください'];_0x2522=function(){return _0x5a2cd3;};return _0x2522();}const e={'mcpStatus':{'disconnected':'MCP\x20未接続','connecting':_0x45a5c2(0x160),'connected':_0x45a5c2(0x13e),'failed':_0x45a5c2(0x13a),'retrying':'MCP\x20再試行中...','unknown':'MCP\x20不明な状態','unauthorized':_0x45a5c2(0x13c),'sessionOccupied':_0x45a5c2(0x14a),'networkError':_0x45a5c2(0x158),'maxRetriesExceeded':_0x45a5c2(0x142),'clickToConnect':_0x45a5c2(0x146),'clickToConfigure':_0x45a5c2(0x14d)},'mcpConfig':{'title':_0x45a5c2(0x14b),'description':_0x45a5c2(0x147),'apiKey':'APIキー','apiKeyPlaceholder':_0x45a5c2(0x165),'apiKeyHint':'APIキーはこのブラウザのローカルに保存されます','enableAuth':_0x45a5c2(0x159),'enableAuthHint':_0x45a5c2(0x137),'connectionInfo':_0x45a5c2(0x150),'mcpClientConfig':_0x45a5c2(0x150),'configInstructions':_0x45a5c2(0x162),'configStepTitle':'設定手順:','configStep1':_0x45a5c2(0x163),'configStep2':_0x45a5c2(0x14e),'configStep3':_0x45a5c2(0x166),'sessionId':_0x45a5c2(0x14c),'sessionIdDescription':_0x45a5c2(0x157),'authorizationDescription':'Bearerプレフィックス付きのAPIキー。','configParameters':_0x45a5c2(0x14f),'maxRetries':'最大再試行回数','save':'設定を保存','saving':_0x45a5c2(0x141),'note1':_0x45a5c2(0x167),'note2':_0x45a5c2(0x148),'configSaved':'設定が正常に保存されました','configError':_0x45a5c2(0x154),'apiApplyInfo':{'title':_0x45a5c2(0x15d),'description':_0x45a5c2(0x138),'univerAiLabel':'Univer\x20AIコンソール','getStarted':_0x45a5c2(0x145)},'validation':{'apiKeyRequired':_0x45a5c2(0x139),'apiKeyTooShort':_0x45a5c2(0x164),'invalidConfig':_0x45a5c2(0x136),'invalidApiKey':_0x45a5c2(0x15f)},'connectionStatus':{'disconnected':'未接続','connecting':_0x45a5c2(0x15c),'connected':_0x45a5c2(0x149),'failed':_0x45a5c2(0x152),'retrying':_0x45a5c2(0x153)},'connectionError':{'unauthorized':_0x45a5c2(0x144),'sessionOccupied':'セッションIDが現在使用中です。後でもう一度お試しください','networkError':_0x45a5c2(0x13d),'maxRetriesExceeded':'最大再試行回数を超過しました。後でもう一度お試しください'}}};function _0x1dfa(_0x57f5fc,_0x3bd95f){_0x57f5fc=_0x57f5fc-0x136;const _0x252252=_0x2522();let _0x1dfa5c=_0x252252[_0x57f5fc];return _0x1dfa5c;}module[_0x45a5c2(0x15e)]=e;
|