@univerjs-pro/mcp-ui 0.15.0-insiders.20260108-47c73e3 → 0.15.0-insiders.20260108-7b9120d
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 _0x461598=_0x3989;(function(_0x41d5cf,_0x30b933){const _0x4e66c4=_0x3989,_0x183af5=_0x41d5cf();while(!![]){try{const _0x35a86b=-parseInt(_0x4e66c4(0x208))/0x1*(parseInt(_0x4e66c4(0x262))/0x2)+-parseInt(_0x4e66c4(0x1a2))/0x3*(-parseInt(_0x4e66c4(0x194))/0x4)+parseInt(_0x4e66c4(0x287))/0x5*(parseInt(_0x4e66c4(0x216))/0x6)+-parseInt(_0x4e66c4(0x264))/0x7+parseInt(_0x4e66c4(0x2bf))/0x8*(-parseInt(_0x4e66c4(0x1d4))/0x9)+-parseInt(_0x4e66c4(0x24f))/0xa*(-parseInt(_0x4e66c4(0x248))/0xb)+-parseInt(_0x4e66c4(0x1c1))/0xc*(-parseInt(_0x4e66c4(0x20f))/0xd);if(_0x35a86b===_0x30b933)break;else _0x183af5['push'](_0x183af5['shift']());}catch(_0x2e52ab){_0x183af5['push'](_0x183af5['shift']());}}}(_0x28ef,0x9a1a1));var ae=Object[_0x461598(0x29e)],le=(_0x333e8c,_0x31534a,_0x284f75)=>_0x31534a in _0x333e8c?ae(_0x333e8c,_0x31534a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x284f75}):_0x333e8c[_0x31534a]=_0x284f75,I=(_0x2c8eda,_0x25bb3a,_0x2c8cba)=>le(_0x2c8eda,typeof _0x25bb3a!=_0x461598(0x2ba)?_0x25bb3a+'':_0x25bb3a,_0x2c8cba);Object[_0x461598(0x29e)](exports,Symbol[_0x461598(0x1db)],{'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:_0x328b0b,..._0x37eaa8}){const _0x115972=_0x461598,{icon:_0x54443c,id:_0x5ca06b,className:_0xf36623,extend:_0x1650c0,..._0x58f270}=_0x37eaa8,_0x2710ae=('univerjs-icon\x20univerjs-icon-'+_0x5ca06b+'\x20'+(_0xf36623||''))['trim'](),_0x455772=d[_0x115972(0x2db)]('_'+de());return G(_0x54443c,''+_0x5ca06b,{'defIds':_0x54443c[_0x115972(0x1a5)],'idSuffix':_0x455772[_0x115972(0x1eb)]},{'ref':_0x328b0b,'className':_0x2710ae,..._0x58f270},_0x1650c0);}function G(_0x1a4dcb,_0x24ff00,_0x304e8a,_0x66c83b,_0x3a6dca){const _0x57d17f=_0x461598;return d[_0x57d17f(0x25c)](_0x1a4dcb['tag'],{'key':_0x24ff00,...ue(_0x1a4dcb,_0x304e8a,_0x3a6dca),..._0x66c83b},(ve(_0x1a4dcb,_0x304e8a)['children']||[])['map']((_0x4fd125,_0x263fed)=>G(_0x4fd125,_0x24ff00+'-'+_0x1a4dcb['tag']+'-'+_0x263fed,_0x304e8a,void 0x0,_0x3a6dca)));}function ue(_0x5b9ffd,_0x2058aa,_0x38a582){const _0x4da664=_0x461598,_0x73b847={..._0x5b9ffd[_0x4da664(0x2dd)]};_0x38a582!=null&&_0x38a582[_0x4da664(0x179)]&&_0x73b847[_0x4da664(0x288)]===_0x4da664(0x179)&&(_0x73b847[_0x4da664(0x288)]=_0x38a582[_0x4da664(0x179)]),_0x5b9ffd[_0x4da664(0x2bc)]===_0x4da664(0x2a5)&&_0x73b847['id']&&(_0x73b847['id']=_0x73b847['id']+_0x2058aa['idSuffix']),Object[_0x4da664(0x16e)](_0x73b847)[_0x4da664(0x271)](([_0xa58c3c,_0x53bb03])=>{const _0x206e6b=_0x4da664;_0xa58c3c===_0x206e6b(0x2a5)&&typeof _0x53bb03=='string'&&(_0x73b847[_0xa58c3c]=_0x53bb03[_0x206e6b(0x1d6)](/url\(#(.*)\)/,'url(#$1'+_0x2058aa['idSuffix']+')'));});const {defIds:_0x26a592}=_0x2058aa;return!_0x26a592||_0x26a592[_0x4da664(0x242)]===0x0||(_0x5b9ffd['tag']==='use'&&_0x73b847[_0x4da664(0x1d8)]&&(_0x73b847[_0x4da664(0x1d8)]=_0x73b847[_0x4da664(0x1d8)]+_0x2058aa['idSuffix']),Object[_0x4da664(0x16e)](_0x73b847)[_0x4da664(0x271)](([_0x24d857,_0x189c4f])=>{const _0x392e1e=_0x4da664;typeof _0x189c4f==_0x392e1e(0x1e7)&&(_0x73b847[_0x24d857]=_0x189c4f[_0x392e1e(0x1d6)](/url\(#(.*)\)/,_0x392e1e(0x22c)+_0x2058aa[_0x392e1e(0x268)]+')'));})),_0x73b847;}function ve(_0x795e64,_0x36eb45){const _0x54bd5a=_0x461598;var _0x34e4f0;const {defIds:_0x2ed507}=_0x36eb45;return!_0x2ed507||_0x2ed507['length']===0x0?_0x795e64:_0x795e64[_0x54bd5a(0x2bc)]===_0x54bd5a(0x2b6)&&((_0x34e4f0=_0x795e64[_0x54bd5a(0x210)])!=null&&_0x34e4f0[_0x54bd5a(0x242)])?{..._0x795e64,'children':_0x795e64['children'][_0x54bd5a(0x285)](_0x524f12=>typeof _0x524f12[_0x54bd5a(0x2dd)]['id']==_0x54bd5a(0x1e7)&&_0x2ed507&&_0x2ed507[_0x54bd5a(0x2aa)](_0x524f12['attrs']['id'])?{..._0x524f12,'attrs':{..._0x524f12['attrs'],'id':_0x524f12[_0x54bd5a(0x2dd)]['id']+_0x36eb45['idSuffix']}}:_0x524f12)}:_0x795e64;}function de(){const _0x1ace78=_0x461598;return Math[_0x1ace78(0x1bc)]()[_0x1ace78(0x21b)](0x24)['substring'](0x2,0x8);}_[_0x461598(0x2c9)]=_0x461598(0x251);function _0x28ef(){const _0x377bed=['has','Enable\x20authentication\x20for\x20secure\x20connections','76105tXRTyg','已连接','white','MCP\x20Connection\x20Failed','MAX_RETRIES_EXCEEDED','univer-font-medium','merge','4914494GepUAT','children','_menuManagerService','clipPath','mcpConfig.title','Error','subscribeConfigValue$','2656812kNVWMX','MCPConnectionError','DependentOn','_blank','权限验证失败,请检查您的\x20API\x20密钥','toString','univer-space-y-4','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','MCP\x20Retrying...','univer.ai','SESSION_ID_OCCUPIED','ICommandService','mcpStatus.retrying','trim','UNAUTHORIZED','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','forwardRef','Connection\x20Failed','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','mcpConfig.validation.apiKeyTooShort','url(#$1','Configuration\x20Notes:','label','univer-bg-gray-500','OffLineIcon','_initConfigSync','disposeWithMe','http','on-line-icon_clip0_910_349','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','MCP\x20配置','CheckMarkIcon','复制以下\x20JSON\x20配置','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','univer-text-red-500','close','1em','CloseIcon','配置更改将立即生效','MCP\x20Configuration','length','MCP\x20客户端配置','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','error','mcpConfig.sessionIdDescription','点击配置\x20MCP','22lFOnsp','_mcpConnectionController','mcpConfig.configParameters','配置参数:','mcpConfig.apiApplyInfo.description','mcpConfig.validation.invalidApiKey','univer-text-sm\x20univer-text-gray-500','1997070PtMxBp','IMenuManagerService','UniverIcon','Button','connectionStatus$','mcpConfig.connectionStatus.retrying','subscribe','MCP:\x20超出最大重试次数','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','univer-text-white','noopener\x20noreferrer','showConfigPanel','API\x20key\x20is\x20required','createElement','_configService','univer-flex\x20univer-items-start\x20univer-gap-2','Disposable','Success','FAILED','16nQfQcS','univer-flex\x20univer-flex-wrap\x20univer-gap-2','6485094ivnlFU','_config','_handleConfigSave','您的\x20API\x20密钥将在此浏览器中本地存储','idSuffix','univer-space-y-5','getCurrentConfig','pre','mcpConfig.connectionError.maxRetriesExceeded','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','univer-text-xs\x20univer-text-gray-500','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','mcpConfig.authorizationDescription','forEach','button','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','MCPConfigPanel','ILocalStorageService','NETWORK_ERROR','https://console.univer.plus','<SESSION_ID>','Max\x20Retries','mcpConfig.connectionError.networkError','_mcpCoreConfig$','mcp-ui.command.openConfigPanel','Authorization:','Copy\x20the\x20JSON\x20configuration\x20below','univer-text-xs\x20univer-text-gray-600','off-line-icon','univer-flex\x20univer-items-center\x20univer-gap-3','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','ISocketService','Connecting...','map','connectionError$','5aAdOOD','fill','http://www.w3.org/2000/svg','Failed\x20to\x20save\x20configuration','带有\x20Bearer\x20前缀的\x20API\x20密钥。','点击连接\x20MCP','配置无效','MCP:\x20Session\x20ID\x20Occupied','mcpStatus.networkError','_registerComponent','0\x200\x2016\x2016','onStarting','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','_commandService','_injector','mcpConfig.configStep2','_initAutoConnect','univer-size-2\x20univer-rounded-full','mcpConfig.apiApplyInfo.getStarted','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','mcpConfig.connectionStatus.connecting','stringify','show','defineProperty','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','univer-flex\x20univer-items-center','_config$','univer-space-y-2','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','mask','MCP\x20Unknown\x20Status','保存中...','Configuration\x20Parameters:','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','includes','COMMAND','_messageService','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','help-icon','几秒钟内获取您的\x20API\x20密钥','https://mcp.univer.ai/mcp/?univer_session_id=','pluginName','MCP:\x20未授权','evenodd','DISCONNECTED','mcpStatus.clickToConfigure','defs','API\x20密钥','MCP\x20Disconnected','mcpConfig.save','symbol','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','tag','jsxs','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','3436144jKfBkE','_loadStoredApiKey','isValid','mcp.apiKey','mcpConfig.configSaved','IConfigService','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','MessageType','什么是\x20API\x20密钥?','重连中...','displayName','mcpConfig.connectionInfo','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','_localeService','Bearer\x20','MCPConnectionUIController','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','MenuItemType','jsx','next','univer-flex\x20univer-items-center\x20univer-gap-2','Inject','mergeMenu','univer-text-gray-400','mcpConfig.connectionError.sessionOccupied','univer-space-y-3','_connectionController','MCP\x20重连中...','useRef','未连接','attrs','Save\x20Configuration','setConfig','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','Get\x20your\x20API\x20key\x20in\x20seconds','mcpStatus.disconnected','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Connected','RibbonStartGroup','univer.plus','sessionId$','none','HelpIcon','Click\x20to\x20configure\x20MCP','mcpConfig.description','保存配置','RETRYING','M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','mcpConfig.connectionError.unauthorized','API\x20key\x20with\x20Bearer\x20prefix.','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','entries','MCPConfigUIController','mcpConfig.note1','apiKey','M0\x200H16V16H0z','div','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','round','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','url(#off-line-icon_clip0_910_343)','enUS','colorChannel1','API\x20密钥长度至少需要\x2010\x20位','mcpStatus.sessionOccupied','mcpStatus.connecting','svg','enableAutoConnect','BuiltInUIPart','IMessageService','网络连接错误,请检查您的网络连接','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','配置步骤:','univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','Session\x20ID','mcpStatus.connected','useCallback','univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','mcpConfig.configError','您的\x20API\x20密钥安全存储在本地存储中','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','mcpConfig.apiApplyInfo.title','on-line-icon','univer-bg-blue-500','useState','IUIPartsService','2478684vJEtmw','showDeveloperTools','OpenMCPConfigPanelCommand','clsx','_apiKey$','Enable\x20Authentication','配置保存成功','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','Saving...','get','open','off-line-icon_clip0_910_343','_initializeMenus','univer-flex\x20univer-gap-3','3veWNMZ','univer-min-w-0\x20univer-flex-1','univer-flex\x20univer-items-start\x20univer-gap-3','defIds','连接失败','Configuration\x20saved\x20successfully','getOwnPropertyDescriptor','启用身份验证以获得安全连接','MCP\x20Connecting...','mcpStatus.clickToConnect','CONNECTED','启用身份验证','MCPConnectionController','getItem','UniverMCPPlugin','univer-shrink-0\x20univer-text-red-500','Injector','span','errorMessage','_initializeCommands','__setCustomHeaders','Invalid\x20configuration','useDependency','MCPConnectionStatus','MCP:\x20网络错误','MCP:\x20Unauthorized','random','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','mcpStatus.maxRetriesExceeded','_loading$','MCP\x20连接失败','36eEpkRZ','currentColor','BehaviorSubject','MCP\x20Client\x20Configuration','connectInjector','registerComponent','MCP_UI_PLUGIN','\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','将以下配置添加到您的\x20MCP\x20客户端设置中:','Disconnected','mcpConfig.apiKeyHint','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','_localStorageService','连接中...','univer-bg-red-500','IDialogService','mcpConfig.configStepTitle','OTHERS','url(#on-line-icon_clip0_910_349)','9HtyqRg','\x20-\x20','replace','MCP:\x20会话\x20ID\x20已被占用','xlink:href','_uiPartsService','univer-text-sm\x20univer-font-medium','toStringTag','CONNECTING','_initStatusComponent','_handleConfigure','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','mcpConfig.apiKey','MCPUIMenuController','setItem','mcpConfig.validation.invalidConfig','API\x20密钥无效,请检查密钥是否正确','_logService','<API_KEY>','string','mcpStatus.unknown','MCP_PLUGIN_CONFIG_KEY','value','current','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','NONE','useObservable','LocaleService','assign','mcpConfig.configStep3','_createConfigPanelComponent','Connected','mcpServerUrl','_dialogService','showStatus','mcpConfig.saving','univer-bg-green-500','配置保存失败','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','MCP\x20已断开','text','removeItem','Univer\x20AI\x20Console','UniverMCPUIPlugin','mcpConfig.configInstructions','zhCN','path','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','getConfig','MCP:\x20Max\x20Retries\x20Exceeded'];_0x28ef=function(){return _0x377bed;};return _0x28ef();}const Ce={'tag':_0x461598(0x17d),'attrs':{'xmlns':_0x461598(0x289),'fill':_0x461598(0x2e8),'viewBox':'0\x200\x2016\x2016','width':'1em','height':'1em'},'children':[{'tag':_0x461598(0x202),'attrs':{'fill':_0x461598(0x1c2),'d':_0x461598(0x2ee),'fillRule':_0x461598(0x2b3),'clipRule':'evenodd'}}]},H=d[_0x461598(0x228)](function(_0x3d2437,_0x2ea391){const _0x1dcace=_0x461598;return d[_0x1dcace(0x25c)](_,Object[_0x1dcace(0x1f0)]({},_0x3d2437,{'id':'check-mark-icon','ref':_0x2ea391,'icon':Ce}));});H[_0x461598(0x2c9)]=_0x461598(0x237);const ge={'tag':_0x461598(0x17d),'attrs':{'xmlns':_0x461598(0x289),'fill':_0x461598(0x2e8),'viewBox':_0x461598(0x291),'width':_0x461598(0x23e),'height':_0x461598(0x23e)},'children':[{'tag':'path','attrs':{'fill':_0x461598(0x1c2),'d':_0x461598(0x2bb)}}]},B=d[_0x461598(0x228)](function(_0x3622d8,_0xd722){const _0x19b131=_0x461598;return d[_0x19b131(0x25c)](_,Object[_0x19b131(0x1f0)]({},_0x3622d8,{'id':'close-icon','ref':_0xd722,'icon':ge}));});B[_0x461598(0x2c9)]=_0x461598(0x23f);const fe={'tag':_0x461598(0x17d),'attrs':{'xmlns':_0x461598(0x289),'fill':_0x461598(0x2e8),'viewBox':_0x461598(0x291),'width':_0x461598(0x23e),'height':_0x461598(0x23e)},'children':[{'tag':_0x461598(0x202),'attrs':{'fill':_0x461598(0x1c2),'d':_0x461598(0x1ec)}},{'tag':_0x461598(0x202),'attrs':{'fill':_0x461598(0x1c2),'d':_0x461598(0x22a)}},{'tag':_0x461598(0x202),'attrs':{'fill':_0x461598(0x1c2),'d':_0x461598(0x19b),'fillRule':_0x461598(0x2b3),'clipRule':_0x461598(0x2b3)}}]},F=d[_0x461598(0x228)](function(_0x4178eb,_0xbfe8e2){const _0x5f3746=_0x461598;return d[_0x5f3746(0x25c)](_,Object['assign']({},_0x4178eb,{'id':_0x5f3746(0x2ae),'ref':_0xbfe8e2,'icon':fe}));});F[_0x461598(0x2c9)]=_0x461598(0x2e9);const pe={'tag':_0x461598(0x17d),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x461598(0x291),'width':_0x461598(0x23e),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x461598(0x177)},'children':[{'tag':'path','attrs':{'stroke':_0x461598(0x1c2),'d':_0x461598(0x29a),'strokeLinecap':_0x461598(0x175),'strokeLinejoin':_0x461598(0x175),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x461598(0x212),'attrs':{'id':_0x461598(0x19f)},'children':[{'tag':_0x461598(0x202),'attrs':{'fill':'white','d':_0x461598(0x172)}}]}]}],'defIds':[_0x461598(0x19f)]},Y=d[_0x461598(0x228)](function(_0x3fed76,_0x5dc156){const _0x1142dd=_0x461598;return d[_0x1142dd(0x25c)](_,Object['assign']({},_0x3fed76,{'id':_0x1142dd(0x280),'ref':_0x5dc156,'icon':pe}));});Y[_0x461598(0x2c9)]=_0x461598(0x230);const he={'tag':_0x461598(0x17d),'attrs':{'xmlns':_0x461598(0x289),'fill':_0x461598(0x2e8),'viewBox':'0\x200\x2017\x2016','width':_0x461598(0x23e),'height':_0x461598(0x23e)},'children':[{'tag':'g','attrs':{'clipPath':_0x461598(0x1d3)},'children':[{'tag':_0x461598(0x202),'attrs':{'stroke':_0x461598(0x1c2),'d':_0x461598(0x2c5),'strokeLinecap':_0x461598(0x175),'strokeLinejoin':_0x461598(0x175),'strokeWidth':1.2}}]},{'tag':_0x461598(0x2b6),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x461598(0x234)},'children':[{'tag':_0x461598(0x202),'attrs':{'fill':_0x461598(0x20a),'d':_0x461598(0x172),'transform':'translate(.97)'}}]}]}],'defIds':[_0x461598(0x234)]},q=d[_0x461598(0x228)](function(_0x4f7a29,_0x6ba065){const _0x504947=_0x461598;return d[_0x504947(0x25c)](_,Object['assign']({},_0x4f7a29,{'id':_0x504947(0x190),'ref':_0x6ba065,'icon':he}));});q[_0x461598(0x2c9)]='OnLineIcon';function V(_0x363f91){const _0x2a6954=_0x461598;var _0x54424f,_0xd05d4c;const {mcpCoreConfig:_0x33cb01,onSave:_0x3a10d2,loading:_0xe6400f=!0x1,config:_0x219e0f,connectionStatus$:_0x3bf50e,connectionError$:_0x3fa92f,currentApiKey$:_0x3b9b77,currentSessionId$:_0x7cfbb1}=_0x363f91,_0x23b393=v[_0x2a6954(0x1b8)](u['LocaleService']),_0xa670bc=v[_0x2a6954(0x1ee)](_0x3bf50e,s[_0x2a6954(0x1b9)]['DISCONNECTED']),_0x11c691=v[_0x2a6954(0x1ee)](_0x3fa92f,s[_0x2a6954(0x217)]['NONE']),_0x5c71c9=v['useObservable'](_0x7cfbb1,''),_0x5f428f=v['useObservable'](_0x3b9b77,''),[_0x45cac7,_0x113570]=d[_0x2a6954(0x192)](_0x5f428f||''),_0x2781c1=!0x0,_0x347e1c=_0x219e0f[_0x2a6954(0x195)]&&_0x33cb01[_0x2a6954(0x1f4)]&&(_0x33cb01[_0x2a6954(0x1f4)][_0x2a6954(0x2aa)](_0x2a6954(0x2e6))||_0x33cb01[_0x2a6954(0x1f4)][_0x2a6954(0x2aa)](_0x2a6954(0x220))),_0x50b7a4=(_0x54424f=_0x33cb01[_0x2a6954(0x1f4)])==null?void 0x0:_0x54424f[_0x2a6954(0x2aa)](_0x2a6954(0x2e6)),_0x203afb=(_0xd05d4c=_0x33cb01[_0x2a6954(0x1f4)])==null?void 0x0:_0xd05d4c[_0x2a6954(0x2aa)](_0x2a6954(0x220)),_0x3995c8=_0x50b7a4?_0x2a6954(0x277):'https://console.univer.ai',_0x59bd80=_0x219e0f[_0x2a6954(0x195)]&&(_0x50b7a4||_0x203afb),[_0x26db99,_0x2f8d38]=d[_0x2a6954(0x192)](!_0x45cac7['trim']()),_0x5d7d9b=(_0x2bf0b9,_0x4fee0c)=>{const _0x434b48=_0x2a6954;if(_0x4fee0c===s[_0x434b48(0x217)][_0x434b48(0x225)])return _0x434b48(0x235);switch(_0x2bf0b9){case s[_0x434b48(0x1b9)][_0x434b48(0x1ac)]:return _0x434b48(0x18e);case s[_0x434b48(0x1b9)][_0x434b48(0x1dc)]:case s[_0x434b48(0x1b9)][_0x434b48(0x2ed)]:return _0x434b48(0x18b);case s[_0x434b48(0x1b9)][_0x434b48(0x261)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x48bbb2=(_0x2f9695,_0x58d9f4)=>{const _0x4925a8=_0x2a6954;if(_0x58d9f4===s[_0x4925a8(0x217)]['UNAUTHORIZED'])return _0x4925a8(0x1cf);switch(_0x2f9695){case s[_0x4925a8(0x1b9)][_0x4925a8(0x1ac)]:return _0x4925a8(0x1f8);case s[_0x4925a8(0x1b9)][_0x4925a8(0x1dc)]:case s[_0x4925a8(0x1b9)]['RETRYING']:return _0x4925a8(0x191);case s[_0x4925a8(0x1b9)][_0x4925a8(0x261)]:return _0x4925a8(0x1cf);default:return _0x4925a8(0x22f);}},_0x453106=_0x29ef69=>{const _0xe5df3b=_0x2a6954;switch(_0x29ef69){case s[_0xe5df3b(0x1b9)]['CONNECTED']:return _0x23b393['t']('mcpConfig.connectionStatus.connected');case s[_0xe5df3b(0x1b9)][_0xe5df3b(0x1dc)]:return _0x23b393['t'](_0xe5df3b(0x29b));case s[_0xe5df3b(0x1b9)][_0xe5df3b(0x261)]:return _0x23b393['t']('mcpConfig.connectionStatus.failed');case s[_0xe5df3b(0x1b9)][_0xe5df3b(0x2ed)]:return _0x23b393['t'](_0xe5df3b(0x254));default:return _0x23b393['t']('mcpConfig.connectionStatus.disconnected');}},_0xca8ad3=_0x5b4a0a=>{const _0x299e1d=_0x2a6954;switch(_0x5b4a0a){case s[_0x299e1d(0x217)][_0x299e1d(0x225)]:return _0x23b393['t'](_0x299e1d(0x2ef));case s[_0x299e1d(0x217)][_0x299e1d(0x221)]:return _0x23b393['t'](_0x299e1d(0x2d7));case s[_0x299e1d(0x217)][_0x299e1d(0x276)]:return _0x23b393['t'](_0x299e1d(0x27a));case s['MCPConnectionError'][_0x299e1d(0x20c)]:return _0x23b393['t'](_0x299e1d(0x26c));default:return'';}},_0xb7f3a6=d['useCallback'](()=>{const _0x4a835d=_0x2a6954,_0xb6d332={..._0x33cb01,'apiKey':_0x45cac7[_0x4a835d(0x224)](),'enableAuth':_0x2781c1};_0x3a10d2(_0xb6d332);},[_0x33cb01,_0x45cac7,_0x2781c1,_0x3a10d2]),_0x246d13=_0x45cac7[_0x2a6954(0x224)]()['length']>0x0;return i[_0x2a6954(0x2bd)](_0x2a6954(0x173),{'className':_0x2a6954(0x2a4),'children':[i['jsx'](_0x2a6954(0x173),{'className':_0x2a6954(0x2a3),'children':i[_0x2a6954(0x2bd)](_0x2a6954(0x173),{'className':_0x2a6954(0x281),'children':[i['jsx'](_0x2a6954(0x173),{'className':_0x2a6954(0x185),'children':i['jsx'](_0x2a6954(0x1b3),{'className':_0x2a6954(0x258),'children':'⚙'})}),i['jsx']('div',{'children':i[_0x2a6954(0x2d1)]('p',{'className':_0x2a6954(0x24e),'children':_0x23b393['t'](_0x2a6954(0x2eb))})})]})}),i[_0x2a6954(0x2bd)](_0x2a6954(0x173),{'className':_0x2a6954(0x23b),'children':[i[_0x2a6954(0x2d1)](_0x2a6954(0x173),{'className':f[_0x2a6954(0x197)]('univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2',_0x5d7d9b(_0xa670bc,_0x11c691)),'children':i[_0x2a6954(0x2bd)](_0x2a6954(0x173),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x2a6954(0x2d1)](_0x2a6954(0x173),{'className':f[_0x2a6954(0x197)](_0x2a6954(0x298),_0x48bbb2(_0xa670bc,_0x11c691))}),i['jsx']('span',{'className':_0x2a6954(0x1da),'children':_0x453106(_0xa670bc)})]})}),_0x11c691!==s['MCPConnectionError']['NONE']&&(_0xa670bc===s[_0x2a6954(0x1b9)][_0x2a6954(0x261)]||_0x11c691===s[_0x2a6954(0x217)][_0x2a6954(0x225)])&&i[_0x2a6954(0x2d1)](_0x2a6954(0x173),{'className':_0x2a6954(0x1df),'children':i[_0x2a6954(0x2bd)](_0x2a6954(0x173),{'className':_0x2a6954(0x25e),'children':[i[_0x2a6954(0x2d1)](_0x2a6954(0x1b3),{'className':_0x2a6954(0x1b1),'children':'⚠️'}),i[_0x2a6954(0x2d1)]('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0xca8ad3(_0x11c691)})]})})]}),i[_0x2a6954(0x2d1)](_0x2a6954(0x173),{'className':_0x2a6954(0x21e),'children':i[_0x2a6954(0x2bd)](_0x2a6954(0x173),{'className':_0x2a6954(0x269),'children':[i[_0x2a6954(0x2bd)](_0x2a6954(0x173),{'className':_0x2a6954(0x2a2),'children':[i[_0x2a6954(0x2bd)](_0x2a6954(0x22e),{'className':_0x2a6954(0x23a),'children':[i[_0x2a6954(0x2d1)](_0x2a6954(0x1b3),{'children':'🔑'}),'\x20',_0x23b393['t'](_0x2a6954(0x1e0)),i[_0x2a6954(0x2d1)](_0x2a6954(0x1b3),{'className':_0x2a6954(0x23c),'children':'*'}),_0x347e1c&&i['jsx']('a',{'className':_0x2a6954(0x184),'title':_0x23b393['t'](_0x2a6954(0x18f)),'role':_0x2a6954(0x272),'onClick':()=>_0x2f8d38(!0x0),'children':i['jsx'](F,{})})]}),i[_0x2a6954(0x2d1)](f['Input'],{'type':_0x2a6954(0x1fc),'placeholder':_0x23b393['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x45cac7,'disabled':_0xe6400f,'autoComplete':'off','onChange':_0x113570}),i[_0x2a6954(0x2d1)]('p',{'className':_0x2a6954(0x26e),'children':_0x23b393['t'](_0x2a6954(0x1cb))})]}),_0x347e1c&&_0x26db99&&i['jsxs'](_0x2a6954(0x173),{'className':_0x2a6954(0x2a9),'children':[i['jsx']('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':_0x2a6954(0x272),'onClick':()=>_0x2f8d38(!0x1),'children':i['jsx'](B,{'className':'univer-size-4'})}),i[_0x2a6954(0x2bd)](_0x2a6954(0x173),{'className':_0x2a6954(0x273),'children':[i[_0x2a6954(0x2d1)](_0x2a6954(0x173),{'className':_0x2a6954(0x239),'children':i[_0x2a6954(0x2d1)]('span',{'className':'univer-text-blue-600','children':'🚀'})}),i[_0x2a6954(0x2bd)]('div',{'className':'univer-flex-1','children':[i[_0x2a6954(0x2d1)]('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x23b393['t']('mcpConfig.apiApplyInfo.title')}),i[_0x2a6954(0x2d1)]('p',{'className':_0x2a6954(0x2be),'children':_0x23b393['t'](_0x2a6954(0x24c))}),i['jsx']('div',{'className':_0x2a6954(0x263),'children':_0x59bd80&&i['jsxs']('a',{'className':_0x2a6954(0x18a),'href':_0x3995c8,'target':_0x2a6954(0x219),'rel':_0x2a6954(0x259),'children':[i[_0x2a6954(0x2d1)](_0x2a6954(0x1b3),{'children':'🤖'}),_0x23b393['t']('mcpConfig.apiApplyInfo.univerAiLabel'),i[_0x2a6954(0x2d1)]('span',{'className':_0x2a6954(0x2d6),'children':'↗'})]})}),i[_0x2a6954(0x2bd)](_0x2a6954(0x173),{'className':_0x2a6954(0x1cc),'children':['✨','\x20',_0x23b393['t'](_0x2a6954(0x299))]})]})]})]}),_0x219e0f[_0x2a6954(0x195)]&&i[_0x2a6954(0x2bd)](_0x2a6954(0x173),{'className':_0x2a6954(0x203),'children':[i[_0x2a6954(0x2bd)]('h4',{'className':_0x2a6954(0x176),'children':[i[_0x2a6954(0x2d1)](_0x2a6954(0x1b3),{'children':'🔗'}),'\x20',_0x23b393['t'](_0x2a6954(0x2ca))]}),i['jsxs'](_0x2a6954(0x173),{'className':_0x2a6954(0x21c),'children':[i[_0x2a6954(0x2bd)](_0x2a6954(0x173),{'className':_0x2a6954(0x2d8),'children':[i[_0x2a6954(0x2d1)]('p',{'className':_0x2a6954(0x27f),'children':_0x23b393['t'](_0x2a6954(0x200))}),i['jsxs'](_0x2a6954(0x173),{'className':_0x2a6954(0x2a2),'children':[i[_0x2a6954(0x2d1)]('div',{'className':_0x2a6954(0x16c),'children':_0x23b393['t'](_0x2a6954(0x1d1))}),i[_0x2a6954(0x2bd)](_0x2a6954(0x173),{'className':_0x2a6954(0x26f),'children':[i[_0x2a6954(0x2bd)](_0x2a6954(0x173),{'className':_0x2a6954(0x2d3),'children':[i[_0x2a6954(0x2d1)](_0x2a6954(0x1b3),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'1'}),_0x23b393['t']('mcpConfig.configStep1')]}),i[_0x2a6954(0x2bd)](_0x2a6954(0x173),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x2a6954(0x2d1)]('span',{'className':_0x2a6954(0x2cf),'children':'2'}),_0x23b393['t'](_0x2a6954(0x296))]}),i[_0x2a6954(0x2bd)](_0x2a6954(0x173),{'className':_0x2a6954(0x2d3),'children':[i[_0x2a6954(0x2d1)](_0x2a6954(0x1b3),{'className':_0x2a6954(0x2cf),'children':'3'}),_0x23b393['t'](_0x2a6954(0x1f1))]})]})]})]}),i[_0x2a6954(0x2bd)](_0x2a6954(0x173),{'className':_0x2a6954(0x2a2),'children':[i[_0x2a6954(0x2d1)](_0x2a6954(0x173),{'className':_0x2a6954(0x16c),'children':_0x2a6954(0x241)}),i['jsx'](_0x2a6954(0x173),{'className':_0x2a6954(0x2e0),'children':i[_0x2a6954(0x2d1)](_0x2a6954(0x26b),{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':JSON[_0x2a6954(0x29c)]({'mcpServers':{'univer':{'url':_0x2a6954(0x2b0)+(_0x5c71c9||_0x2a6954(0x278)),'type':_0x2a6954(0x233),'headers':{'Authorization':_0x2a6954(0x2cd)+(_0x45cac7||_0x2a6954(0x1e6))}}}},null,0x2)})})]}),i[_0x2a6954(0x2bd)](_0x2a6954(0x173),{'className':'univer-space-y-3','children':[i['jsx'](_0x2a6954(0x173),{'className':_0x2a6954(0x16c),'children':_0x23b393['t'](_0x2a6954(0x24a))}),i[_0x2a6954(0x2bd)](_0x2a6954(0x173),{'className':_0x2a6954(0x2a2),'children':[i[_0x2a6954(0x2bd)](_0x2a6954(0x173),{'className':_0x2a6954(0x1a4),'children':[i['jsx']('div',{'className':_0x2a6954(0x16d)}),i[_0x2a6954(0x2bd)]('div',{'className':_0x2a6954(0x1a3),'children':[i[_0x2a6954(0x2d1)]('div',{'className':_0x2a6954(0x26d),'children':'univer_session_id:'}),i[_0x2a6954(0x2d1)](_0x2a6954(0x173),{'className':_0x2a6954(0x26e),'children':_0x23b393['t'](_0x2a6954(0x246))})]})]}),i[_0x2a6954(0x2bd)](_0x2a6954(0x173),{'className':_0x2a6954(0x1a4),'children':[i['jsx']('div',{'className':_0x2a6954(0x16d)}),i['jsxs'](_0x2a6954(0x173),{'className':_0x2a6954(0x1a3),'children':[i['jsx']('div',{'className':_0x2a6954(0x26d),'children':_0x2a6954(0x27d)}),i[_0x2a6954(0x2d1)](_0x2a6954(0x173),{'className':_0x2a6954(0x26e),'children':_0x23b393['t'](_0x2a6954(0x270))})]})]})]})]})]})]}),i[_0x2a6954(0x2d1)](f[_0x2a6954(0x252)],{'onClick':_0xb7f3a6,'disabled':!_0x246d13||_0xe6400f,'className':_0x2a6954(0x1bd),'children':_0xe6400f?i[_0x2a6954(0x2bd)]('span',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x2a6954(0x2d1)]('span',{'children':'⟲'}),_0x23b393['t'](_0x2a6954(0x1f7))]}):i['jsxs'](_0x2a6954(0x1b3),{'className':_0x2a6954(0x2d3),'children':[i['jsx'](H,{}),_0x23b393['t'](_0x2a6954(0x2b9))]})}),i[_0x2a6954(0x2d1)](_0x2a6954(0x173),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':i[_0x2a6954(0x2bd)](_0x2a6954(0x173),{'className':_0x2a6954(0x1a1),'children':[i['jsx'](_0x2a6954(0x1b3),{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),i[_0x2a6954(0x2bd)](_0x2a6954(0x173),{'className':_0x2a6954(0x1fa),'children':[i[_0x2a6954(0x2d1)](_0x2a6954(0x173),{'className':_0x2a6954(0x20d),'children':_0x2a6954(0x22d)}),i['jsxs'](_0x2a6954(0x173),{'children':['•',_0x23b393['t'](_0x2a6954(0x170))]}),i[_0x2a6954(0x2bd)]('div',{'children':['•',_0x23b393['t']('mcpConfig.note2')]})]})]})})]})})]});}const P='mcp-ui.config',L={'showDeveloperTools':!0x1,'showStatus':!0x0};var me=Object[_0x461598(0x1a8)],xe=(_0x46cfce,_0x24ae9b,_0x85ea1b,_0x6e16f2)=>{for(var _0x4eebde=_0x6e16f2>0x1?void 0x0:_0x6e16f2?me(_0x24ae9b,_0x85ea1b):_0x24ae9b,_0x441908=_0x46cfce['length']-0x1,_0x369f09;_0x441908>=0x0;_0x441908--)(_0x369f09=_0x46cfce[_0x441908])&&(_0x4eebde=_0x369f09(_0x4eebde)||_0x4eebde);return _0x4eebde;},g=(_0x4212de,_0x5ae091)=>(_0x5050be,_0x3262d4)=>_0x5ae091(_0x5050be,_0x3262d4,_0x4212de);const O=_0x461598(0x2c2),D='mcp-config-dialog';exports[_0x461598(0x16f)]=class extends u[_0x461598(0x25f)]{constructor(_0x7a1aca,_0x195ae3,_0x1aec1b,_0x2b0009,_0x258734,_0x55887d,_0xdee800,_0x182ace,_0x2479e4,_0x23b8a9){const _0x32b4ae=_0x461598;super(),I(this,_0x32b4ae(0x1bf),new M[(_0x32b4ae(0x1c3))](!0x1)),I(this,'_mcpCoreConfig$',new M[(_0x32b4ae(0x1c3))]({})),I(this,_0x32b4ae(0x2a1),new M['BehaviorSubject']({})),I(this,'_apiKey$',new M[(_0x32b4ae(0x1c3))]('')),I(this,_0x32b4ae(0x266),async _0x177386=>{const _0x17b1c1=_0x32b4ae;var _0x32f352,_0x281df8;this['_loading$'][_0x17b1c1(0x2d2)](!0x0);try{const _0x49dfc9=await this['_validateConfig'](_0x177386);if(!_0x49dfc9['isValid']){this[_0x17b1c1(0x2ac)][_0x17b1c1(0x29d)]({'type':f['MessageType'][_0x17b1c1(0x214)],'content':_0x49dfc9[_0x17b1c1(0x1b4)]||this[_0x17b1c1(0x2cc)]['t'](_0x17b1c1(0x1e3))});return;}_0x177386[_0x17b1c1(0x171)]?await this['_localStorageService'][_0x17b1c1(0x1e2)](O,_0x177386['apiKey'][_0x17b1c1(0x224)]()):await this[_0x17b1c1(0x1cd)][_0x17b1c1(0x1fd)](O),this[_0x17b1c1(0x198)][_0x17b1c1(0x2d2)](((_0x32f352=_0x177386[_0x17b1c1(0x171)])==null?void 0x0:_0x32f352['trim']())||''),this['_mcpConnectionController'][_0x17b1c1(0x1b6)]({'Authorization':'Bearer\x20'+((_0x281df8=_0x177386['apiKey'])==null?void 0x0:_0x281df8[_0x17b1c1(0x224)]())}),this[_0x17b1c1(0x2ac)][_0x17b1c1(0x29d)]({'type':f[_0x17b1c1(0x2c6)][_0x17b1c1(0x260)],'content':this[_0x17b1c1(0x2cc)]['t'](_0x17b1c1(0x2c3))}),setTimeout(()=>{const _0x58d305=_0x17b1c1;this['_dialogService'][_0x58d305(0x23d)](D);},0x320);}catch(_0x5b32dd){this[_0x17b1c1(0x1e5)][_0x17b1c1(0x245)](_0x17b1c1(0x2cb),_0x5b32dd),this[_0x17b1c1(0x2ac)][_0x17b1c1(0x29d)]({'type':f[_0x17b1c1(0x2c6)][_0x17b1c1(0x214)],'content':this['_localeService']['t'](_0x17b1c1(0x18c))});}finally{this['_loading$'][_0x17b1c1(0x2d2)](!0x1);}}),(this[_0x32b4ae(0x295)]=_0x7a1aca,this['_uiPartsService']=_0x195ae3,this[_0x32b4ae(0x25d)]=_0x1aec1b,this['_localStorageService']=_0x2b0009,this[_0x32b4ae(0x1f5)]=_0x258734,this[_0x32b4ae(0x2ac)]=_0x55887d,this['_componentManager']=_0xdee800,this[_0x32b4ae(0x2cc)]=_0x182ace,this[_0x32b4ae(0x1e5)]=_0x2479e4,this[_0x32b4ae(0x249)]=_0x23b8a9,this['_initConfigSync'](),this[_0x32b4ae(0x2c0)](),this[_0x32b4ae(0x290)]());}[_0x461598(0x25a)](){const _0xdc2d1=_0x461598,_0x45a9f9=this['_configService']['getConfig'](P);_0x45a9f9!=null&&_0x45a9f9[_0xdc2d1(0x195)]&&this[_0xdc2d1(0x1f5)][_0xdc2d1(0x19e)]({'id':D,'title':{'title':this[_0xdc2d1(0x2cc)]['t'](_0xdc2d1(0x213))},'children':{'label':_0xdc2d1(0x274)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x38a8f3=_0xdc2d1;this[_0x38a8f3(0x1f5)][_0x38a8f3(0x23d)](D);}});}[_0x461598(0x26a)](){const _0x174724=_0x461598;return this[_0x174724(0x27b)]['value'];}['_registerComponent'](){const _0x191af2=_0x461598;this[_0x191af2(0x232)](this['_componentManager']['register'](_0x191af2(0x274),this['_createConfigPanelComponent']()));}[_0x461598(0x1f2)](){const _0xfbad15=_0x461598;return v[_0xfbad15(0x1c5)](()=>{const _0x5a79c8=_0xfbad15;var _0xfe093b,_0x20542b,_0x1e0557;return i[_0x5a79c8(0x2d1)](V,{'config':this[_0x5a79c8(0x2a1)][_0x5a79c8(0x1ea)],'mcpCoreConfig':this[_0x5a79c8(0x27b)][_0x5a79c8(0x1ea)],'currentApiKey$':this[_0x5a79c8(0x198)],'onSave':this[_0x5a79c8(0x266)],'loading':this[_0x5a79c8(0x1bf)]['value'],'connectionStatus$':(_0xfe093b=this[_0x5a79c8(0x249)])==null?void 0x0:_0xfe093b[_0x5a79c8(0x253)],'connectionError$':(_0x20542b=this[_0x5a79c8(0x249)])==null?void 0x0:_0x20542b[_0x5a79c8(0x286)],'currentSessionId$':(_0x1e0557=this[_0x5a79c8(0x249)])==null?void 0x0:_0x1e0557[_0x5a79c8(0x2e7)]});},this[_0xfbad15(0x295)]);}[_0x461598(0x231)](){const _0x26fd5a=_0x461598;this[_0x26fd5a(0x232)](this[_0x26fd5a(0x25d)]['subscribeConfigValue$'](s[_0x26fd5a(0x1e9)])[_0x26fd5a(0x255)](_0x13d3f1=>{const _0x5666c6=_0x26fd5a;this[_0x5666c6(0x27b)][_0x5666c6(0x2d2)](_0x13d3f1||{});}));const _0x17a9ba=this['_configService'][_0x26fd5a(0x204)](s['MCP_PLUGIN_CONFIG_KEY']);this['_mcpCoreConfig$'][_0x26fd5a(0x2d2)](_0x17a9ba||{}),this[_0x26fd5a(0x232)](this[_0x26fd5a(0x25d)][_0x26fd5a(0x215)](P)['subscribe'](_0x19de4d=>{const _0x57124e=_0x26fd5a;this['_config$'][_0x57124e(0x2d2)](_0x19de4d||{});}));const _0x3a3dd4=this[_0x26fd5a(0x25d)][_0x26fd5a(0x204)](P);this['_config$'][_0x26fd5a(0x2d2)](_0x3a3dd4||{});}async['_loadStoredApiKey'](){const _0xdee0a1=_0x461598,_0x4cea3c=this[_0xdee0a1(0x25d)]['getConfig'](P);if(!(_0x4cea3c!=null&&_0x4cea3c['showDeveloperTools']))return;const _0xa1ba0e=await this['_localStorageService'][_0xdee0a1(0x1af)](O);_0xa1ba0e&&(this[_0xdee0a1(0x249)][_0xdee0a1(0x1b6)]({'Authorization':_0xdee0a1(0x2cd)+_0xa1ba0e}),this[_0xdee0a1(0x198)][_0xdee0a1(0x2d2)](_0xa1ba0e));}async['_validateConfig'](_0x30f359){const _0x544be1=_0x461598;if(!_0x30f359[_0x544be1(0x171)]||_0x30f359['apiKey'][_0x544be1(0x224)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this[_0x544be1(0x2cc)]['t']('mcpConfig.validation.apiKeyRequired')};if(_0x30f359[_0x544be1(0x171)][_0x544be1(0x224)]()[_0x544be1(0x242)]<0xa)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x544be1(0x22b))};try{const _0x9389f=await this['_injector'][_0x544be1(0x19d)](s[_0x544be1(0x1ae)])['validateApiKey'](_0x30f359['apiKey'][_0x544be1(0x224)]());return _0x9389f[_0x544be1(0x2c1)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x9389f[_0x544be1(0x245)]||this[_0x544be1(0x2cc)]['t'](_0x544be1(0x24d))};}catch(_0x1d47c7){return console['warn']('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0x1d47c7),{'isValid':!0x0};}}},exports['MCPConfigUIController']=xe([g(0x0,u[_0x461598(0x2d4)](u[_0x461598(0x1b2)])),g(0x1,v[_0x461598(0x193)]),g(0x2,u['IConfigService']),g(0x3,u[_0x461598(0x275)]),g(0x4,v[_0x461598(0x1d0)]),g(0x5,v[_0x461598(0x180)]),g(0x6,u[_0x461598(0x2d4)](v['ComponentManager'])),g(0x7,u[_0x461598(0x2d4)](u[_0x461598(0x1ef)])),g(0x8,u['ILogService']),g(0x9,u[_0x461598(0x2d4)](s[_0x461598(0x1ae)]))],exports['MCPConfigUIController']);const b={'id':_0x461598(0x27c),'type':u['CommandType'][_0x461598(0x2ab)],'handler':async(_0x37f01c,_0x11bd8d)=>(_0x37f01c['get'](exports[_0x461598(0x16f)])[_0x461598(0x25a)](),!0x0)};function Z(_0x475f56,_0x96f049){const _0x247013=_0x461598;switch(_0x475f56){case s['MCPConnectionStatus'][_0x247013(0x2b4)]:return _0x247013(0x2e2);case s[_0x247013(0x1b9)][_0x247013(0x1dc)]:return _0x247013(0x17c);case s[_0x247013(0x1b9)][_0x247013(0x1ac)]:return _0x247013(0x188);case s[_0x247013(0x1b9)][_0x247013(0x261)]:switch(_0x96f049){case s[_0x247013(0x217)][_0x247013(0x225)]:return'mcpStatus.unauthorized';case s[_0x247013(0x217)]['SESSION_ID_OCCUPIED']:return _0x247013(0x17b);case s['MCPConnectionError']['NETWORK_ERROR']:return _0x247013(0x28f);case s[_0x247013(0x217)][_0x247013(0x20c)]:return _0x247013(0x1be);default:return'mcpStatus.failed';}case s['MCPConnectionStatus'][_0x247013(0x2ed)]:return _0x247013(0x223);default:return _0x247013(0x1e8);}}function Se(_0x266239,_0x91c042,_0x3d7472,_0x5ae8a4=!0x0){const _0x12ab7c=_0x461598,_0x34302a=Z(_0x266239,_0x91c042),_0x2971fd=_0x3d7472['t'](_0x34302a);return _0x5ae8a4?_0x266239===s[_0x12ab7c(0x1b9)][_0x12ab7c(0x2b4)]&&_0x91c042===s[_0x12ab7c(0x217)][_0x12ab7c(0x225)]?_0x2971fd+_0x12ab7c(0x1d5)+_0x3d7472['t'](_0x12ab7c(0x2b5)):_0x266239===s['MCPConnectionStatus'][_0x12ab7c(0x1ac)]?''+_0x2971fd:_0x266239===s[_0x12ab7c(0x1b9)]['DISCONNECTED']||_0x266239===s[_0x12ab7c(0x1b9)][_0x12ab7c(0x261)]?_0x2971fd+'\x20-\x20'+_0x3d7472['t'](_0x12ab7c(0x1ab)):_0x2971fd:_0x2971fd;}function Pe(_0x16e4a5){const _0x4cc663=_0x461598;switch(_0x16e4a5){case s[_0x4cc663(0x1b9)][_0x4cc663(0x1ac)]:return'univer-text-green-500';case s[_0x4cc663(0x1b9)]['CONNECTING']:case s[_0x4cc663(0x1b9)][_0x4cc663(0x2ed)]:return'univer-text-yellow-500';case s[_0x4cc663(0x1b9)][_0x4cc663(0x261)]:case s[_0x4cc663(0x1b9)][_0x4cc663(0x2b4)]:return _0x4cc663(0x23c);default:return'univer-text-gray-500';}}function W(_0x360fd1){const _0x229d55=_0x461598,{status$:_0x33e76f,error$:_0xe077b6,onConfigure:_0x33845b,showClickable:_0xa4de6e=!0x0}=_0x360fd1,_0x24b6d0=v[_0x229d55(0x1ee)](_0x33e76f,s[_0x229d55(0x1b9)][_0x229d55(0x2b4)]),_0x56581c=v[_0x229d55(0x1ee)](_0xe077b6,s[_0x229d55(0x217)][_0x229d55(0x1ed)]),_0x32bebb=v[_0x229d55(0x1b8)](u[_0x229d55(0x1ef)]),_0x8aa770=_0x24b6d0===s[_0x229d55(0x1b9)][_0x229d55(0x1ac)];_0x24b6d0===s[_0x229d55(0x1b9)][_0x229d55(0x1dc)]||s[_0x229d55(0x1b9)][_0x229d55(0x2ed)];const _0x50e9a8=_0x32bebb['t'](Z(_0x24b6d0,_0x56581c)),_0x521c16=Se(_0x24b6d0,_0x56581c,_0x32bebb,_0xa4de6e),_0x23f1f0=Pe(_0x24b6d0),_0x1fcdd9=_0x8aa770?i[_0x229d55(0x2d1)](q,{}):i[_0x229d55(0x2d1)](Y,{}),_0x44f8b5=d[_0x229d55(0x189)](()=>{_0xa4de6e&&_0x33845b&&_0x33845b();},[_0xa4de6e,_0x33845b]);function _0x3ca32b(){const _0x41d10d=_0x229d55;return i[_0x41d10d(0x2bd)](_0x41d10d(0x173),{'className':f[_0x41d10d(0x197)](_0x41d10d(0x2a0),_0xa4de6e&&_0x33845b&&_0x41d10d(0x1c8)),'role':_0x41d10d(0x272),'onClick':_0xa4de6e&&_0x33845b?_0x44f8b5:void 0x0,'children':[i[_0x41d10d(0x2d1)](_0x41d10d(0x173),{'className':f[_0x41d10d(0x197)]('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x23f1f0),'children':_0x1fcdd9}),i['jsx']('div',{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x50e9a8})]});}return i[_0x229d55(0x2d1)](f['Tooltip'],{'title':_0x521c16,'placement':'bottom','children':_0x3ca32b()});}var Ie=Object['getOwnPropertyDescriptor'],_e=(_0x29d7dc,_0x15af1d,_0x5ae569,_0x2db977)=>{const _0x351d12=_0x461598;for(var _0x21c811=_0x2db977>0x1?void 0x0:_0x2db977?Ie(_0x15af1d,_0x5ae569):_0x15af1d,_0x364174=_0x29d7dc[_0x351d12(0x242)]-0x1,_0x21082d;_0x364174>=0x0;_0x364174--)(_0x21082d=_0x29d7dc[_0x364174])&&(_0x21c811=_0x21082d(_0x21c811)||_0x21c811);return _0x21c811;},N=(_0x4a5ea5,_0x39b1d6)=>(_0x529291,_0x2aedd5)=>_0x39b1d6(_0x529291,_0x2aedd5,_0x4a5ea5);exports[_0x461598(0x2ce)]=class extends u[_0x461598(0x25f)]{constructor(_0x9306f3,_0x4ab78f,_0x3a1b27,_0x115c18){const _0x2055f6=_0x461598;super(),this[_0x2055f6(0x295)]=_0x9306f3,this[_0x2055f6(0x2d9)]=_0x4ab78f,this[_0x2055f6(0x1d9)]=_0x3a1b27,this[_0x2055f6(0x25d)]=_0x115c18,this[_0x2055f6(0x297)](),this[_0x2055f6(0x1dd)]();}['_initAutoConnect'](){const _0x5b66fb=_0x461598,_0x53dcda=this['_configService'][_0x5b66fb(0x204)](P);_0x53dcda!=null&&_0x53dcda[_0x5b66fb(0x195)]&&(this[_0x5b66fb(0x2d9)][_0x5b66fb(0x17e)]=!0x1);}[_0x461598(0x1dd)](){const _0x16866d=_0x461598,_0x2d5fd3=this[_0x16866d(0x25d)][_0x16866d(0x204)](P);(_0x2d5fd3==null?void 0x0:_0x2d5fd3[_0x16866d(0x1f6)])!==!0x1&&this[_0x16866d(0x232)](this[_0x16866d(0x1d9)][_0x16866d(0x1c6)](v[_0x16866d(0x17f)]['HEADER_MENU'],()=>{const _0x1db54d=_0x16866d;var _0x3a1b44;return v[_0x1db54d(0x1c5)](ye({'status$':this[_0x1db54d(0x2d9)][_0x1db54d(0x253)],'error$':this[_0x1db54d(0x2d9)][_0x1db54d(0x286)],'onConfigure':()=>this[_0x1db54d(0x1de)](),'showClickable':(_0x3a1b44=_0x2d5fd3==null?void 0x0:_0x2d5fd3['showDeveloperTools'])!=null?_0x3a1b44:!0x1}),this[_0x1db54d(0x295)]);}));}[_0x461598(0x1de)](){const _0x2a1430=_0x461598;this[_0x2a1430(0x295)][_0x2a1430(0x19d)](exports[_0x2a1430(0x16f)])['showConfigPanel']();}},exports[_0x461598(0x2ce)]=_e([N(0x0,u[_0x461598(0x2d4)](u[_0x461598(0x1b2)])),N(0x1,u[_0x461598(0x2d4)](s['MCPConnectionController'])),N(0x2,v['IUIPartsService']),N(0x3,u[_0x461598(0x2c4)])],exports['MCPConnectionUIController']);function _0x3989(_0x2b2b16,_0x24b82a){_0x2b2b16=_0x2b2b16-0x16b;const _0x28eff8=_0x28ef();let _0x3989ef=_0x28eff8[_0x2b2b16];return _0x3989ef;}function ye(_0x35f725){const {status$:_0x2842bb,error$:_0x5b9043,onConfigure:_0x44755f,showClickable:_0x6e6f8e}=_0x35f725;return function(){const _0xf70063=_0x3989;return i[_0xf70063(0x2d1)](W,{'status$':_0x2842bb,'error$':_0x5b9043,'onConfigure':_0x44755f,'showClickable':_0x6e6f8e});};}function Me(_0x522cd6){const _0x4232a0=_0x461598;return{'id':b['id'],'type':v[_0x4232a0(0x2d0)]['BUTTON'],'icon':'MenuIcon','title':'mcpConfig.title','tooltip':_0x4232a0(0x213)};}const Ne={[v[_0x461598(0x2e5)][_0x461598(0x1d2)]]:{[b['id']]:{'order':0xa,'menuItemFactory':Me}}};var be=Object['getOwnPropertyDescriptor'],je=(_0x3002ca,_0x337681,_0x132520,_0x13ee00)=>{const _0x31bb07=_0x461598;for(var _0x38c9e0=_0x13ee00>0x1?void 0x0:_0x13ee00?be(_0x337681,_0x132520):_0x337681,_0x52ff2a=_0x3002ca[_0x31bb07(0x242)]-0x1,_0x3ca001;_0x52ff2a>=0x0;_0x52ff2a--)(_0x3ca001=_0x3002ca[_0x52ff2a])&&(_0x38c9e0=_0x3ca001(_0x38c9e0)||_0x38c9e0);return _0x38c9e0;},z=(_0x2cb403,_0x41fe5d)=>(_0x3a021d,_0x25d1ff)=>_0x41fe5d(_0x3a021d,_0x25d1ff,_0x2cb403);exports[_0x461598(0x1e1)]=class extends u[_0x461598(0x25f)]{constructor(_0x441151,_0x156d54){const _0x361bfa=_0x461598;super(),this[_0x361bfa(0x294)]=_0x441151,this[_0x361bfa(0x211)]=_0x156d54,this[_0x361bfa(0x1b5)](),this[_0x361bfa(0x1a0)]();}[_0x461598(0x1b5)](){const _0x2ef310=_0x461598;[b][_0x2ef310(0x271)](_0x5e6b16=>{this['disposeWithMe'](this['_commandService']['registerCommand'](_0x5e6b16));});}[_0x461598(0x1a0)](){const _0x3a21bb=_0x461598;this[_0x3a21bb(0x211)][_0x3a21bb(0x2d5)](Ne);}},exports['MCPUIMenuController']=je([z(0x0,u[_0x461598(0x222)]),z(0x1,v[_0x461598(0x250)])],exports[_0x461598(0x1e1)]);const Ee={'mcpStatus':{'disconnected':_0x461598(0x2b8),'connecting':_0x461598(0x1aa),'connected':_0x461598(0x2e4),'failed':_0x461598(0x20b),'retrying':_0x461598(0x21f),'unknown':_0x461598(0x2a6),'unauthorized':_0x461598(0x1bb),'sessionOccupied':_0x461598(0x28e),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x461598(0x205),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x461598(0x2ea)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x461598(0x244),'apiKey':'API\x20Key','apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x461598(0x199),'enableAuthHint':_0x461598(0x207),'connectionInfo':_0x461598(0x1c4),'mcpClientConfig':_0x461598(0x1c4),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':_0x461598(0x27e),'configStep2':_0x461598(0x21d),'configStep3':_0x461598(0x29f),'sessionId':_0x461598(0x187),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x461598(0x16b),'configParameters':_0x461598(0x2a8),'maxRetries':_0x461598(0x279),'save':_0x461598(0x2de),'saving':_0x461598(0x19c),'note1':_0x461598(0x293),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x461598(0x1a7),'configError':_0x461598(0x28a),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x461598(0x2ad),'univerAiLabel':_0x461598(0x1fe),'getStarted':_0x461598(0x2e1)},'validation':{'apiKeyRequired':_0x461598(0x25b),'apiKeyTooShort':_0x461598(0x174),'invalidConfig':_0x461598(0x1b7),'invalidApiKey':_0x461598(0x227)},'connectionStatus':{'disconnected':_0x461598(0x1ca),'connecting':_0x461598(0x284),'connected':_0x461598(0x1f3),'failed':_0x461598(0x229),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x461598(0x257),'sessionOccupied':_0x461598(0x282),'networkError':_0x461598(0x2e3),'maxRetriesExceeded':_0x461598(0x226)}}},we={'mcpStatus':{'disconnected':_0x461598(0x1fb),'connecting':'MCP\x20连接中...','connected':'MCP\x20已连接','failed':_0x461598(0x1c0),'retrying':_0x461598(0x2da),'unknown':'MCP\x20状态未知','unauthorized':_0x461598(0x2b2),'sessionOccupied':_0x461598(0x1d7),'networkError':_0x461598(0x1ba),'maxRetriesExceeded':_0x461598(0x256),'clickToConnect':_0x461598(0x28c),'clickToConfigure':_0x461598(0x247)},'mcpConfig':{'title':_0x461598(0x236),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x461598(0x2b7),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x461598(0x267),'enableAuth':_0x461598(0x1ad),'enableAuthHint':_0x461598(0x1a9),'connectionInfo':_0x461598(0x243),'mcpClientConfig':_0x461598(0x243),'configInstructions':_0x461598(0x1c9),'configStepTitle':_0x461598(0x183),'configStep1':_0x461598(0x238),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':'会话ID','sessionIdDescription':_0x461598(0x182),'authorizationDescription':_0x461598(0x28b),'configParameters':_0x461598(0x24b),'maxRetries':'最大重试次数','save':_0x461598(0x2ec),'saving':_0x461598(0x2a7),'note1':_0x461598(0x240),'note2':_0x461598(0x18d),'configSaved':_0x461598(0x19a),'configError':_0x461598(0x1f9),'apiApplyInfo':{'title':_0x461598(0x2c7),'description':_0x461598(0x186),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0x461598(0x2af)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x461598(0x17a),'invalidConfig':_0x461598(0x28d),'invalidApiKey':_0x461598(0x1e4)},'connectionStatus':{'disconnected':_0x461598(0x2dc),'connecting':_0x461598(0x1ce),'connected':_0x461598(0x209),'failed':_0x461598(0x1a6),'retrying':_0x461598(0x2c8)},'connectionError':{'unauthorized':_0x461598(0x21a),'sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':_0x461598(0x181),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var Ae=Object[_0x461598(0x29e)],Oe=Object[_0x461598(0x1a8)],De=(_0x22abbe,_0x30be6a,_0x151bbf)=>_0x30be6a in _0x22abbe?Ae(_0x22abbe,_0x30be6a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x151bbf}):_0x22abbe[_0x30be6a]=_0x151bbf,Ue=(_0x92b3f8,_0x51476e,_0x4fd9c7,_0x4419cd)=>{const _0x350058=_0x461598;for(var _0x26fd8d=_0x4419cd>0x1?void 0x0:_0x4419cd?Oe(_0x51476e,_0x4fd9c7):_0x51476e,_0x1eb9f4=_0x92b3f8[_0x350058(0x242)]-0x1,_0x3e2d49;_0x1eb9f4>=0x0;_0x1eb9f4--)(_0x3e2d49=_0x92b3f8[_0x1eb9f4])&&(_0x26fd8d=_0x3e2d49(_0x26fd8d)||_0x26fd8d);return _0x26fd8d;},y=(_0x42361,_0x506a52)=>(_0x27acca,_0x155c57)=>_0x506a52(_0x27acca,_0x155c57,_0x42361),$e=(_0x553db9,_0x5c5497,_0x10c459)=>De(_0x553db9,_0x5c5497+'',_0x10c459);exports[_0x461598(0x1ff)]=class extends u['Plugin']{constructor(_0x232ab9=L,_0x158259,_0x1f8747,_0x34038e,_0x339258,_0xbd5846){const _0x41f758=_0x461598;super(),this['_config']=_0x232ab9,this[_0x41f758(0x295)]=_0x158259,this[_0x41f758(0x25d)]=_0x1f8747,this['_uiPartsService']=_0x34038e,this['_localStorageService']=_0x339258,this[_0x41f758(0x2cc)]=_0xbd5846;const {..._0x33c65d}=u[_0x41f758(0x20e)]({},L,this[_0x41f758(0x265)]);this[_0x41f758(0x25d)][_0x41f758(0x2df)](P,_0x33c65d);}async[_0x461598(0x292)](){const _0x5037a6=_0x461598,_0x547b05=[[exports['MCPConnectionUIController']],[exports[_0x5037a6(0x16f)]],[exports[_0x5037a6(0x1e1)]]];this[_0x5037a6(0x295)][_0x5037a6(0x206)](A['ISocketService'])||_0x547b05['push']([A[_0x5037a6(0x283)],{'useClass':A['WebSocketService']}]),_0x547b05[_0x5037a6(0x271)](_0x2f62e6=>this[_0x5037a6(0x295)]['add'](_0x2f62e6)),this[_0x5037a6(0x295)]['get'](exports['MCPConnectionUIController']),this['_injector'][_0x5037a6(0x19d)](exports[_0x5037a6(0x16f)]),this[_0x5037a6(0x295)][_0x5037a6(0x19d)](exports[_0x5037a6(0x1e1)]);}},$e(exports[_0x461598(0x1ff)],_0x461598(0x2b1),_0x461598(0x1c7)),exports[_0x461598(0x1ff)]=Ue([u[_0x461598(0x218)](s[_0x461598(0x1b0)]),y(0x1,u['Inject'](u[_0x461598(0x1b2)])),y(0x2,u[_0x461598(0x2c4)]),y(0x3,v['IUIPartsService']),y(0x4,u[_0x461598(0x275)]),y(0x5,u[_0x461598(0x2d4)](u['LocaleService']))],exports['UniverMCPUIPlugin']),exports[_0x461598(0x274)]=V,exports['MCPStatusDisplay']=W,exports[_0x461598(0x196)]=b,exports[_0x461598(0x178)]=Ee,exports[_0x461598(0x201)]=we;
|
|
1
|
+
'use strict';const _0x5018dd=_0x5145;(function(_0x5ce210,_0x40b15a){const _0xc2ad8b=_0x5145,_0x446565=_0x5ce210();while(!![]){try{const _0x3002cf=parseInt(_0xc2ad8b(0x277))/0x1+parseInt(_0xc2ad8b(0x2be))/0x2*(-parseInt(_0xc2ad8b(0x2cf))/0x3)+-parseInt(_0xc2ad8b(0x281))/0x4+parseInt(_0xc2ad8b(0x29f))/0x5+parseInt(_0xc2ad8b(0x339))/0x6*(parseInt(_0xc2ad8b(0x217))/0x7)+parseInt(_0xc2ad8b(0x29d))/0x8*(-parseInt(_0xc2ad8b(0x24f))/0x9)+parseInt(_0xc2ad8b(0x302))/0xa*(parseInt(_0xc2ad8b(0x28a))/0xb);if(_0x3002cf===_0x40b15a)break;else _0x446565['push'](_0x446565['shift']());}catch(_0x35afcb){_0x446565['push'](_0x446565['shift']());}}}(_0x3417,0x3c938));function _0x3417(){const _0x2655d7=['connectionStatus$','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','jsx','DISCONNECTED','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configuration\x20saved\x20successfully','on-line-icon_clip0_910_349','show','HelpIcon','attrs','mcpStatus.connected','_initConfigSync','_registerComponent','mcpConfig.connectionError.unauthorized','getOwnPropertyDescriptor','mcpConfig.configInstructions','_loadStoredApiKey','请输入您的\x20API\x20密钥','MCP\x20客户端配置','权限验证失败,请检查您的\x20API\x20密钥','MCP\x20状态未知','ILogService','OTHERS','add','未连接','\x20-\x20','1030BlRNBo','mcpConfig.apiApplyInfo.description','mcpConfig.description','mcpConfig.connectionError.networkError','_initializeMenus','random','_componentManager','配置保存失败','value','mcpConfig.validation.apiKeyTooShort','getItem','Failed\x20to\x20save\x20configuration','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','Tooltip','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','close','toString','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','保存中...','OffLineIcon','Retrying...','1em','MCP\x20连接失败','启用身份验证以获得安全连接','displayName','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','univer-shrink-0\x20univer-text-blue-500','mcpConfig.apiKey','univer-flex\x20univer-items-center\x20univer-gap-2','BehaviorSubject','univer-flex\x20univer-gap-3','_uiPartsService','univer-min-w-0\x20univer-flex-1','xlink:href','Configuration\x20Steps:','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','_logService','useRef','mcpStatus.maxRetriesExceeded','NETWORK_ERROR','mcpConfig.connectionStatus.retrying','mcpConfig.save','__setCustomHeaders','DependentOn','_messageService','_validateConfig','复制以下\x20JSON\x20配置','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','url(#$1','jsxs','MAX_RETRIES_EXCEEDED','toStringTag','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children','defs','404778ZFXWRJ','next','getConfig','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','button','univer-space-y-3','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_PLUGIN_CONFIG_KEY','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Enable\x20Authentication','_handleConfigure','SESSION_ID_OCCUPIED','Univer\x20AI\x20Console','setItem','entries','\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','MCPConfigPanel','配置\x20MCP\x20使用\x20AI\x20操作电子表格','LocaleService','mcpConfig.apiKeyHint','MCPStatusDisplay','open','forEach','removeItem','Configuration\x20Parameters:','MCPConfigUIController','univer-font-medium','univer-text-xs\x20univer-text-gray-600','univer-text-sm\x20univer-text-gray-500','MCP\x20已断开','mcpConfig.configSaved','pluginName','CONNECTED','OnLineIcon','mcpConfig.validation.invalidConfig','mcpStatus.unauthorized','merge','MCP\x20Retrying...','div','MCP:\x20超出最大重试次数','Injector','mcpConfig.validation.apiKeyRequired','none','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','什么是\x20API\x20密钥?','MCP:\x20会话\x20ID\x20已被占用','univer-flex-1','symbol','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','univer-space-y-5','MCP\x20Disconnected','Connecting...','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','Get\x20your\x20API\x20key\x20in\x20seconds','mcpConfig.apiApplyInfo.getStarted','off-line-icon_clip0_910_343','zhCN','Max\x20Retries','showConfigPanel','_config$','mcpConfig.connectionError.sessionOccupied','MCP\x20Connection\x20Failed','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer-flex\x20univer-items-center','M0\x200H16V16H0z','mcpConfig.configParameters','mcpConfig.connectionInfo','showDeveloperTools','univer-shrink-0\x20univer-text-red-500','univer-flex\x20univer-items-start\x20univer-gap-3','0\x200\x2016\x2016','span','UNAUTHORIZED','Error','MCP\x20Connecting...','_mcpCoreConfig$','_config','<SESSION_ID>','mcpStatus.clickToConnect','mcpStatus.sessionOccupied','disposeWithMe','evenodd','string','useCallback','连接失败','点击连接\x20MCP','mcpServerUrl','_commandService','MCPConnectionError','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','isValid','validateApiKey','http://www.w3.org/2000/svg','_initAutoConnect','API\x20密钥不能为空','univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','_localeService','HEADER_MENU','28kGUtnx','_createConfigPanelComponent','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','网络连接错误,请检查您的网络连接','ISocketService','univer-text-gray-500','IConfigService','配置步骤:','_menuManagerService','最大重试次数','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','Configuration\x20Notes:','Save\x20Configuration','CloseIcon','_injector','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','_handleConfigSave','univer-bg-red-500','setConfig','univer.ai','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','UniverMCPUIPlugin','univer-space-y-2','MCP:\x20网络错误','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','univer.plus','MCP\x20Configuration','Input','map','Connection\x20Failed','IDialogService','_localStorageService','_initializeCommands','mcpConfig.apiApplyInfo.title','_apiKey$','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','CONNECTING','univer-space-y-4','Button','mcpConfig.note2','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','check-mark-icon','会话\x20ID\x20已被占用,请稍后再试','您的\x20API\x20密钥安全存储在本地存储中','length','path','mcpConfig.connectionStatus.connected','univer-bg-green-500','univer-size-2\x20univer-rounded-full','mcpConfig.title','Univer\x20AI\x20控制台','univer-flex\x20univer-items-center\x20univer-gap-3','MCP:\x20Unauthorized','univer-size-4','univer-text-xs\x20univer-text-gray-500','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','1157067GluNMw','mcpConfig.note1','registerCommand','subscribeConfigValue$','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','includes','MessageType','mcp-ui.command.openConfigPanel','RETRYING','enUS','warn','univer-text-blue-600','apiKey','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','current','MCP_UI_PLUGIN','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','replace','mcp-ui.config','https://mcp.univer.ai/mcp/?univer_session_id=','mcpConfig.configStep1','mcpStatus.clickToConfigure','close-icon','mask','mcpConfig.connectionStatus.failed','MCP:\x20Network\x20Error','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','sessionId$','round','useDependency','showStatus','mergeMenu','currentColor','white','保存配置','MCPConnectionUIController','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','_configService','clipPath','86418fFpeoU','MCP\x20Client\x20Configuration','mcpStatus.retrying','useObservable','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','COMMAND','push','idSuffix','MCP\x20连接中...','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','580596CrEgJb','connectInjector','NONE','pre','colorChannel1','_initStatusComponent','配置保存成功','<API_KEY>','stringify','14597QoywcS','mcpConfig.apiKeyPlaceholder','MCP\x20重连中...','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','MCP\x20已连接','univer-mr-2\x20univer-flex\x20univer-text-xl','label','mcpConfig.connectionStatus.connecting','配置更改将立即生效','connectionError$','ILocalStorageService','Click\x20to\x20connect\x20MCP','Disposable','subscribe','MCPConnectionStatus','mcpConfig.sessionIdDescription','help-icon','CheckMarkIcon','onStarting','8xvPPMs','_loading$','2340250OMkbXm','超出最大重试次数,请稍后再试','get','register','Copy\x20the\x20JSON\x20configuration\x20below','enableAutoConnect','univer-flex\x20univer-items-start\x20univer-gap-2','重连中...','univer-bg-gray-500','univer_session_id:','tag','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20配置','Bearer\x20','MCPConnectionController','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','MCPUIMenuController','univer-text-yellow-500','mcpStatus.disconnected','noopener\x20noreferrer','mcpConfig.authorizationDescription','createElement','svg','trim','mcpStatus.networkError','assign','has','UniverIcon','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_connectionController','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','878338pdmWCk','OpenMCPConfigPanelCommand','API\x20key\x20with\x20Bearer\x20prefix.','mcpConfig.configStepTitle','将配置添加到您的\x20MCP\x20客户端设置文件中','IUIPartsService','Inject','Enable\x20authentication\x20for\x20secure\x20connections','defineProperty','FAILED','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','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','Saving...','http','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','带有\x20Bearer\x20前缀的\x20API\x20密钥。','text','3Soqcpn','Success','defIds','mcpConfig.connectionError.maxRetriesExceeded','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','mcpConfig.apiApplyInfo.univerAiLabel','univer-text-red-500','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','clsx','您的\x20API\x20密钥将在此浏览器中本地存储','fill','forwardRef','Authorization:','已连接','_mcpConnectionController','0\x200\x2017\x2016','API\x20密钥','_dialogService','会话ID','univer-bg-blue-500','error','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','WebSocketService','url(#off-line-icon_clip0_910_343)','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration'];_0x3417=function(){return _0x2655d7;};return _0x3417();}var ae=Object[_0x5018dd(0x2c6)],le=(_0x2c416b,_0x5ef6cb,_0x53eb26)=>_0x5ef6cb in _0x2c416b?ae(_0x2c416b,_0x5ef6cb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x53eb26}):_0x2c416b[_0x5ef6cb]=_0x53eb26,I=(_0x1d07f8,_0xb421ba,_0x425e1e)=>le(_0x1d07f8,typeof _0xb421ba!=_0x5018dd(0x368)?_0xb421ba+'':_0xb421ba,_0x425e1e);Object[_0x5018dd(0x2c6)](exports,Symbol[_0x5018dd(0x335)],{'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:_0x21e141,..._0x5c0825}){const _0x1ac204=_0x5018dd,{icon:_0x4317d8,id:_0x27389c,className:_0x2b8d11,extend:_0x5d8962,..._0x423c7d}=_0x5c0825,_0x11219f=('univerjs-icon\x20univerjs-icon-'+_0x27389c+'\x20'+(_0x2b8d11||''))[_0x1ac204(0x2b6)](),_0x4542ec=d[_0x1ac204(0x327)]('_'+de());return G(_0x4317d8,''+_0x27389c,{'defIds':_0x4317d8[_0x1ac204(0x2d1)],'idSuffix':_0x4542ec[_0x1ac204(0x25e)]},{'ref':_0x21e141,'className':_0x11219f,..._0x423c7d},_0x5d8962);}function G(_0x268ef0,_0x5102fc,_0xe67b90,_0x3f9616,_0x45c9f2){const _0x713662=_0x5018dd;return d['createElement'](_0x268ef0['tag'],{'key':_0x5102fc,...ue(_0x268ef0,_0xe67b90,_0x45c9f2),..._0x3f9616},(ve(_0x268ef0,_0xe67b90)[_0x713662(0x337)]||[])[_0x713662(0x233)]((_0x35619d,_0x33b493)=>G(_0x35619d,_0x5102fc+'-'+_0x268ef0[_0x713662(0x2a9)]+'-'+_0x33b493,_0xe67b90,void 0x0,_0x45c9f2)));}function ue(_0x5f3f31,_0x49fb7e,_0x1a3f4f){const _0x8a46c2=_0x5018dd,_0x1beea3={..._0x5f3f31['attrs']};_0x1a3f4f!=null&&_0x1a3f4f[_0x8a46c2(0x285)]&&_0x1beea3[_0x8a46c2(0x2d9)]===_0x8a46c2(0x285)&&(_0x1beea3['fill']=_0x1a3f4f['colorChannel1']),_0x5f3f31[_0x8a46c2(0x2a9)]===_0x8a46c2(0x267)&&_0x1beea3['id']&&(_0x1beea3['id']=_0x1beea3['id']+_0x49fb7e['idSuffix']),Object['entries'](_0x1beea3)[_0x8a46c2(0x34f)](([_0x1f9c9c,_0x18a553])=>{const _0x4746ff=_0x8a46c2;_0x1f9c9c===_0x4746ff(0x267)&&typeof _0x18a553=='string'&&(_0x1beea3[_0x1f9c9c]=_0x18a553[_0x4746ff(0x261)](/url\(#(.*)\)/,_0x4746ff(0x332)+_0x49fb7e[_0x4746ff(0x27e)]+')'));});const {defIds:_0x2d7c27}=_0x49fb7e;return!_0x2d7c27||_0x2d7c27[_0x8a46c2(0x243)]===0x0||(_0x5f3f31[_0x8a46c2(0x2a9)]==='use'&&_0x1beea3[_0x8a46c2(0x323)]&&(_0x1beea3[_0x8a46c2(0x323)]=_0x1beea3['xlink:href']+_0x49fb7e[_0x8a46c2(0x27e)]),Object[_0x8a46c2(0x347)](_0x1beea3)['forEach'](([_0x237b67,_0x6ba4eb])=>{const _0x3c2c4f=_0x8a46c2;typeof _0x6ba4eb==_0x3c2c4f(0x207)&&(_0x1beea3[_0x237b67]=_0x6ba4eb[_0x3c2c4f(0x261)](/url\(#(.*)\)/,'url(#$1'+_0x49fb7e[_0x3c2c4f(0x27e)]+')'));})),_0x1beea3;}function ve(_0x5222ee,_0x4dd0bb){const _0x413429=_0x5018dd;var _0x3b2df3;const {defIds:_0xdc7d14}=_0x4dd0bb;return!_0xdc7d14||_0xdc7d14[_0x413429(0x243)]===0x0?_0x5222ee:_0x5222ee[_0x413429(0x2a9)]===_0x413429(0x338)&&((_0x3b2df3=_0x5222ee[_0x413429(0x337)])!=null&&_0x3b2df3[_0x413429(0x243)])?{..._0x5222ee,'children':_0x5222ee['children'][_0x413429(0x233)](_0x5f165f=>typeof _0x5f165f[_0x413429(0x2f1)]['id']==_0x413429(0x207)&&_0xdc7d14&&_0xdc7d14['includes'](_0x5f165f[_0x413429(0x2f1)]['id'])?{..._0x5f165f,'attrs':{..._0x5f165f[_0x413429(0x2f1)],'id':_0x5f165f[_0x413429(0x2f1)]['id']+_0x4dd0bb['idSuffix']}}:_0x5f165f)}:_0x5222ee;}function de(){const _0x31ee18=_0x5018dd;return Math[_0x31ee18(0x307)]()[_0x31ee18(0x312)](0x24)['substring'](0x2,0x8);}_['displayName']=_0x5018dd(0x2ba);const Ce={'tag':_0x5018dd(0x2b5),'attrs':{'xmlns':_0x5018dd(0x211),'fill':_0x5018dd(0x363),'viewBox':_0x5018dd(0x1fb),'width':'1em','height':_0x5018dd(0x317)},'children':[{'tag':'path','attrs':{'fill':_0x5018dd(0x270),'d':_0x5018dd(0x31b),'fillRule':_0x5018dd(0x206),'clipRule':_0x5018dd(0x206)}}]},H=d[_0x5018dd(0x2da)](function(_0x267575,_0x5de3fb){const _0x43245b=_0x5018dd;return d['createElement'](_,Object[_0x43245b(0x2b8)]({},_0x267575,{'id':_0x43245b(0x240),'ref':_0x5de3fb,'icon':Ce}));});H[_0x5018dd(0x31a)]=_0x5018dd(0x29b);const ge={'tag':_0x5018dd(0x2b5),'attrs':{'xmlns':_0x5018dd(0x211),'fill':_0x5018dd(0x363),'viewBox':_0x5018dd(0x1fb),'width':_0x5018dd(0x317),'height':_0x5018dd(0x317)},'children':[{'tag':_0x5018dd(0x244),'attrs':{'fill':_0x5018dd(0x270),'d':_0x5018dd(0x2c9)}}]},B=d[_0x5018dd(0x2da)](function(_0x9859ad,_0xfa59de){const _0x277005=_0x5018dd;return d[_0x277005(0x2b4)](_,Object[_0x277005(0x2b8)]({},_0x9859ad,{'id':_0x277005(0x266),'ref':_0xfa59de,'icon':ge}));});B['displayName']=_0x5018dd(0x224);const fe={'tag':_0x5018dd(0x2b5),'attrs':{'xmlns':_0x5018dd(0x211),'fill':_0x5018dd(0x363),'viewBox':_0x5018dd(0x1fb),'width':'1em','height':_0x5018dd(0x317)},'children':[{'tag':_0x5018dd(0x244),'attrs':{'fill':_0x5018dd(0x270),'d':_0x5018dd(0x280)}},{'tag':_0x5018dd(0x244),'attrs':{'fill':_0x5018dd(0x270),'d':_0x5018dd(0x33f)}},{'tag':'path','attrs':{'fill':_0x5018dd(0x270),'d':_0x5018dd(0x2ae),'fillRule':_0x5018dd(0x206),'clipRule':_0x5018dd(0x206)}}]},F=d[_0x5018dd(0x2da)](function(_0x2d8e71,_0x59bb1a){const _0x3e0614=_0x5018dd;return d['createElement'](_,Object['assign']({},_0x2d8e71,{'id':_0x3e0614(0x29a),'ref':_0x59bb1a,'icon':fe}));});F[_0x5018dd(0x31a)]=_0x5018dd(0x2f0);const pe={'tag':_0x5018dd(0x2b5),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x5018dd(0x363),'viewBox':'0\x200\x2016\x2016','width':_0x5018dd(0x317),'height':_0x5018dd(0x317)},'children':[{'tag':'g','attrs':{'clipPath':_0x5018dd(0x2e6)},'children':[{'tag':_0x5018dd(0x244),'attrs':{'stroke':_0x5018dd(0x270),'d':_0x5018dd(0x33c),'strokeLinecap':'round','strokeLinejoin':_0x5018dd(0x26c),'strokeWidth':1.2}}]},{'tag':_0x5018dd(0x338),'attrs':{},'children':[{'tag':_0x5018dd(0x276),'attrs':{'id':_0x5018dd(0x1ec)},'children':[{'tag':_0x5018dd(0x244),'attrs':{'fill':'white','d':_0x5018dd(0x1f5)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},Y=d['forwardRef'](function(_0xdcda79,_0x2fbd6e){const _0x4def69=_0x5018dd;return d[_0x4def69(0x2b4)](_,Object[_0x4def69(0x2b8)]({},_0xdcda79,{'id':'off-line-icon','ref':_0x2fbd6e,'icon':pe}));});Y[_0x5018dd(0x31a)]=_0x5018dd(0x315);const he={'tag':_0x5018dd(0x2b5),'attrs':{'xmlns':_0x5018dd(0x211),'fill':'none','viewBox':_0x5018dd(0x2de),'width':_0x5018dd(0x317),'height':_0x5018dd(0x317)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x5018dd(0x244),'attrs':{'stroke':_0x5018dd(0x270),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x5018dd(0x26c),'strokeLinejoin':_0x5018dd(0x26c),'strokeWidth':1.2}}]},{'tag':_0x5018dd(0x338),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x5018dd(0x2ee)},'children':[{'tag':_0x5018dd(0x244),'attrs':{'fill':_0x5018dd(0x271),'d':_0x5018dd(0x1f5),'transform':'translate(.97)'}}]}]}],'defIds':[_0x5018dd(0x2ee)]},q=d[_0x5018dd(0x2da)](function(_0xf0c9e4,_0x505c88){return d['createElement'](_,Object['assign']({},_0xf0c9e4,{'id':'on-line-icon','ref':_0x505c88,'icon':he}));});function _0x5145(_0x45de49,_0x4965ce){_0x45de49=_0x45de49-0x1e9;const _0x341717=_0x3417();let _0x51456a=_0x341717[_0x45de49];return _0x51456a;}q[_0x5018dd(0x31a)]=_0x5018dd(0x35a);function V(_0x14b7ad){const _0x5d345f=_0x5018dd;var _0x1efcd6,_0x404d9c;const {mcpCoreConfig:_0xf52697,onSave:_0x57d673,loading:_0x3a3bb7=!0x1,config:_0x6c7868,connectionStatus$:_0x37231f,connectionError$:_0xb77f84,currentApiKey$:_0x1ef7a5,currentSessionId$:_0x1e771c}=_0x14b7ad,_0xb5b6c3=v[_0x5d345f(0x26d)](u[_0x5d345f(0x34b)]),_0x5449ee=v[_0x5d345f(0x27a)](_0x37231f,s[_0x5d345f(0x298)][_0x5d345f(0x2eb)]),_0xd41898=v[_0x5d345f(0x27a)](_0xb77f84,s[_0x5d345f(0x20d)][_0x5d345f(0x283)]),_0x3d76d2=v['useObservable'](_0x1e771c,''),_0x1eec31=v[_0x5d345f(0x27a)](_0x1ef7a5,''),[_0x50212c,_0x385b99]=d['useState'](_0x1eec31||''),_0xa6ef2=!0x0,_0x52ff4c=_0x6c7868[_0x5d345f(0x1f8)]&&_0xf52697[_0x5d345f(0x20b)]&&(_0xf52697[_0x5d345f(0x20b)]['includes'](_0x5d345f(0x230))||_0xf52697[_0x5d345f(0x20b)][_0x5d345f(0x254)](_0x5d345f(0x22a))),_0x41dc0f=(_0x1efcd6=_0xf52697[_0x5d345f(0x20b)])==null?void 0x0:_0x1efcd6['includes'](_0x5d345f(0x230)),_0x45e620=(_0x404d9c=_0xf52697['mcpServerUrl'])==null?void 0x0:_0x404d9c[_0x5d345f(0x254)](_0x5d345f(0x22a)),_0x5143c8=_0x41dc0f?'https://console.univer.plus':'https://console.univer.ai',_0x1f99ee=_0x6c7868[_0x5d345f(0x1f8)]&&(_0x41dc0f||_0x45e620),[_0x18c208,_0x362421]=d['useState'](!_0x50212c['trim']()),_0x27eb74=(_0x1f7d00,_0x5b0899)=>{const _0x12fa01=_0x5d345f;if(_0x5b0899===s[_0x12fa01(0x20d)][_0x12fa01(0x1fd)])return _0x12fa01(0x221);switch(_0x1f7d00){case s['MCPConnectionStatus'][_0x12fa01(0x359)]:return _0x12fa01(0x2cc);case s['MCPConnectionStatus'][_0x12fa01(0x23b)]:case s[_0x12fa01(0x298)]['RETRYING']:return _0x12fa01(0x23a);case s['MCPConnectionStatus']['FAILED']:return _0x12fa01(0x221);default:return _0x12fa01(0x331);}},_0xb9168=(_0x2580a6,_0x4d59a5)=>{const _0x217c49=_0x5d345f;if(_0x4d59a5===s[_0x217c49(0x20d)][_0x217c49(0x1fd)])return _0x217c49(0x228);switch(_0x2580a6){case s[_0x217c49(0x298)][_0x217c49(0x359)]:return _0x217c49(0x246);case s[_0x217c49(0x298)][_0x217c49(0x23b)]:case s[_0x217c49(0x298)][_0x217c49(0x257)]:return _0x217c49(0x2e2);case s[_0x217c49(0x298)][_0x217c49(0x2c7)]:return _0x217c49(0x228);default:return _0x217c49(0x2a7);}},_0x6e2d18=_0x2acad7=>{const _0x55d47c=_0x5d345f;switch(_0x2acad7){case s[_0x55d47c(0x298)][_0x55d47c(0x359)]:return _0xb5b6c3['t'](_0x55d47c(0x245));case s['MCPConnectionStatus'][_0x55d47c(0x23b)]:return _0xb5b6c3['t'](_0x55d47c(0x291));case s['MCPConnectionStatus'][_0x55d47c(0x2c7)]:return _0xb5b6c3['t'](_0x55d47c(0x268));case s[_0x55d47c(0x298)][_0x55d47c(0x257)]:return _0xb5b6c3['t'](_0x55d47c(0x32a));default:return _0xb5b6c3['t']('mcpConfig.connectionStatus.disconnected');}},_0x2334ff=_0x1ad737=>{const _0x20a5be=_0x5d345f;switch(_0x1ad737){case s[_0x20a5be(0x20d)][_0x20a5be(0x1fd)]:return _0xb5b6c3['t'](_0x20a5be(0x2f5));case s[_0x20a5be(0x20d)][_0x20a5be(0x344)]:return _0xb5b6c3['t'](_0x20a5be(0x1f1));case s['MCPConnectionError'][_0x20a5be(0x329)]:return _0xb5b6c3['t'](_0x20a5be(0x305));case s[_0x20a5be(0x20d)]['MAX_RETRIES_EXCEEDED']:return _0xb5b6c3['t'](_0x20a5be(0x2d2));default:return'';}},_0x5cb8f9=d[_0x5d345f(0x208)](()=>{const _0x41df98={..._0xf52697,'apiKey':_0x50212c['trim'](),'enableAuth':_0xa6ef2};_0x57d673(_0x41df98);},[_0xf52697,_0x50212c,_0xa6ef2,_0x57d673]),_0x283f23=_0x50212c[_0x5d345f(0x2b6)]()['length']>0x0;return i['jsxs'](_0x5d345f(0x35f),{'className':_0x5d345f(0x325),'children':[i['jsx'](_0x5d345f(0x35f),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':i[_0x5d345f(0x333)]('div',{'className':_0x5d345f(0x24a),'children':[i[_0x5d345f(0x2ea)](_0x5d345f(0x35f),{'className':_0x5d345f(0x28d),'children':i[_0x5d345f(0x2ea)](_0x5d345f(0x1fc),{'className':'univer-text-white','children':'⚙'})}),i['jsx'](_0x5d345f(0x35f),{'children':i[_0x5d345f(0x2ea)]('p',{'className':_0x5d345f(0x355),'children':_0xb5b6c3['t'](_0x5d345f(0x304))})})]})}),i['jsxs'](_0x5d345f(0x35f),{'className':_0x5d345f(0x30e),'children':[i[_0x5d345f(0x2ea)](_0x5d345f(0x35f),{'className':f[_0x5d345f(0x2d7)](_0x5d345f(0x2e4),_0x27eb74(_0x5449ee,_0xd41898)),'children':i['jsxs'](_0x5d345f(0x35f),{'className':_0x5d345f(0x31e),'children':[i[_0x5d345f(0x2ea)]('div',{'className':f[_0x5d345f(0x2d7)](_0x5d345f(0x247),_0xb9168(_0x5449ee,_0xd41898))}),i[_0x5d345f(0x2ea)](_0x5d345f(0x1fc),{'className':'univer-text-sm\x20univer-font-medium','children':_0x6e2d18(_0x5449ee)})]})}),_0xd41898!==s['MCPConnectionError'][_0x5d345f(0x283)]&&(_0x5449ee===s[_0x5d345f(0x298)]['FAILED']||_0xd41898===s['MCPConnectionError'][_0x5d345f(0x1fd)])&&i[_0x5d345f(0x2ea)]('div',{'className':_0x5d345f(0x25c),'children':i[_0x5d345f(0x333)](_0x5d345f(0x35f),{'className':_0x5d345f(0x2a5),'children':[i[_0x5d345f(0x2ea)](_0x5d345f(0x1fc),{'className':_0x5d345f(0x1f9),'children':'⚠️'}),i['jsx']('p',{'className':_0x5d345f(0x22b),'children':_0x2334ff(_0xd41898)})]})})]}),i['jsx'](_0x5d345f(0x35f),{'className':_0x5d345f(0x2bd),'children':i['jsxs'](_0x5d345f(0x35f),{'className':_0x5d345f(0x36a),'children':[i[_0x5d345f(0x333)]('div',{'className':_0x5d345f(0x22d),'children':[i['jsxs'](_0x5d345f(0x290),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[i[_0x5d345f(0x2ea)](_0x5d345f(0x1fc),{'children':'🔑'}),'\x20',_0xb5b6c3['t'](_0x5d345f(0x31d)),i[_0x5d345f(0x2ea)](_0x5d345f(0x1fc),{'className':'univer-text-red-500','children':'*'}),_0x52ff4c&&i['jsx']('a',{'className':_0x5d345f(0x24e),'title':_0xb5b6c3['t'](_0x5d345f(0x238)),'role':_0x5d345f(0x33d),'onClick':()=>_0x362421(!0x0),'children':i['jsx'](F,{})})]}),i[_0x5d345f(0x2ea)](f[_0x5d345f(0x232)],{'type':_0x5d345f(0x2ce),'placeholder':_0xb5b6c3['t'](_0x5d345f(0x28b)),'value':_0x50212c,'disabled':_0x3a3bb7,'autoComplete':'off','onChange':_0x385b99}),i[_0x5d345f(0x2ea)]('p',{'className':_0x5d345f(0x24d),'children':_0xb5b6c3['t'](_0x5d345f(0x34c))})]}),_0x52ff4c&&_0x18c208&&i[_0x5d345f(0x333)](_0x5d345f(0x35f),{'className':_0x5d345f(0x226),'children':[i['jsx']('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':_0x5d345f(0x33d),'onClick':()=>_0x362421(!0x1),'children':i[_0x5d345f(0x2ea)](B,{'className':_0x5d345f(0x24c)})}),i['jsxs']('div',{'className':_0x5d345f(0x2c8),'children':[i[_0x5d345f(0x2ea)](_0x5d345f(0x35f),{'className':_0x5d345f(0x20e),'children':i[_0x5d345f(0x2ea)](_0x5d345f(0x1fc),{'className':_0x5d345f(0x25a),'children':'🚀'})}),i['jsxs']('div',{'className':_0x5d345f(0x367),'children':[i['jsx']('h4',{'className':_0x5d345f(0x1f3),'children':_0xb5b6c3['t'](_0x5d345f(0x238))}),i[_0x5d345f(0x2ea)]('p',{'className':_0x5d345f(0x260),'children':_0xb5b6c3['t'](_0x5d345f(0x303))}),i[_0x5d345f(0x2ea)]('div',{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x1f99ee&&i[_0x5d345f(0x333)]('a',{'className':_0x5d345f(0x310),'href':_0x5143c8,'target':'_blank','rel':_0x5d345f(0x2b2),'children':[i[_0x5d345f(0x2ea)](_0x5d345f(0x1fc),{'children':'🤖'}),_0xb5b6c3['t'](_0x5d345f(0x2d4)),i[_0x5d345f(0x2ea)](_0x5d345f(0x1fc),{'className':'univer-text-gray-400','children':'↗'})]})}),i[_0x5d345f(0x333)](_0x5d345f(0x35f),{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0xb5b6c3['t'](_0x5d345f(0x1eb))]})]})]})]}),_0x6c7868[_0x5d345f(0x1f8)]&&i[_0x5d345f(0x333)](_0x5d345f(0x35f),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[i['jsxs']('h4',{'className':_0x5d345f(0x26a),'children':[i['jsx'](_0x5d345f(0x1fc),{'children':'🔗'}),'\x20',_0xb5b6c3['t'](_0x5d345f(0x1f7))]}),i[_0x5d345f(0x333)]('div',{'className':_0x5d345f(0x23c),'children':[i['jsxs'](_0x5d345f(0x35f),{'className':'univer-space-y-3','children':[i[_0x5d345f(0x2ea)]('p',{'className':_0x5d345f(0x354),'children':_0xb5b6c3['t'](_0x5d345f(0x2f7))}),i[_0x5d345f(0x333)](_0x5d345f(0x35f),{'className':'univer-space-y-2','children':[i[_0x5d345f(0x2ea)](_0x5d345f(0x35f),{'className':_0x5d345f(0x336),'children':_0xb5b6c3['t'](_0x5d345f(0x2c1))}),i[_0x5d345f(0x333)](_0x5d345f(0x35f),{'className':_0x5d345f(0x369),'children':[i[_0x5d345f(0x333)](_0x5d345f(0x35f),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x5d345f(0x2ea)](_0x5d345f(0x1fc),{'className':_0x5d345f(0x22f),'children':'1'}),_0xb5b6c3['t'](_0x5d345f(0x264))]}),i[_0x5d345f(0x333)](_0x5d345f(0x35f),{'className':_0x5d345f(0x31e),'children':[i[_0x5d345f(0x2ea)](_0x5d345f(0x1fc),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'2'}),_0xb5b6c3['t']('mcpConfig.configStep2')]}),i[_0x5d345f(0x333)](_0x5d345f(0x35f),{'className':_0x5d345f(0x31e),'children':[i[_0x5d345f(0x2ea)](_0x5d345f(0x1fc),{'className':_0x5d345f(0x22f),'children':'3'}),_0xb5b6c3['t']('mcpConfig.configStep3')]})]})]})]}),i['jsxs']('div',{'className':_0x5d345f(0x22d),'children':[i[_0x5d345f(0x2ea)](_0x5d345f(0x35f),{'className':_0x5d345f(0x336),'children':_0x5d345f(0x231)}),i['jsx']('div',{'className':_0x5d345f(0x313),'children':i[_0x5d345f(0x2ea)](_0x5d345f(0x284),{'className':_0x5d345f(0x219),'children':JSON[_0x5d345f(0x289)]({'mcpServers':{'univer':{'url':_0x5d345f(0x263)+(_0x3d76d2||_0x5d345f(0x202)),'type':_0x5d345f(0x2cb),'headers':{'Authorization':_0x5d345f(0x2ac)+(_0x50212c||_0x5d345f(0x288))}}}},null,0x2)})})]}),i[_0x5d345f(0x333)](_0x5d345f(0x35f),{'className':_0x5d345f(0x33e),'children':[i[_0x5d345f(0x2ea)]('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0xb5b6c3['t'](_0x5d345f(0x1f6))}),i[_0x5d345f(0x333)]('div',{'className':_0x5d345f(0x22d),'children':[i['jsxs'](_0x5d345f(0x35f),{'className':_0x5d345f(0x1fa),'children':[i[_0x5d345f(0x2ea)](_0x5d345f(0x35f),{'className':_0x5d345f(0x274)}),i[_0x5d345f(0x333)](_0x5d345f(0x35f),{'className':_0x5d345f(0x322),'children':[i['jsx'](_0x5d345f(0x35f),{'className':_0x5d345f(0x2d6),'children':_0x5d345f(0x2a8)}),i['jsx']('div',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0xb5b6c3['t'](_0x5d345f(0x299))})]})]}),i['jsxs'](_0x5d345f(0x35f),{'className':_0x5d345f(0x1fa),'children':[i[_0x5d345f(0x2ea)](_0x5d345f(0x35f),{'className':_0x5d345f(0x274)}),i[_0x5d345f(0x333)](_0x5d345f(0x35f),{'className':'univer-min-w-0\x20univer-flex-1','children':[i['jsx'](_0x5d345f(0x35f),{'className':_0x5d345f(0x2d6),'children':_0x5d345f(0x2db)}),i[_0x5d345f(0x2ea)]('div',{'className':_0x5d345f(0x24d),'children':_0xb5b6c3['t'](_0x5d345f(0x2b3))})]})]})]})]})]})]}),i[_0x5d345f(0x2ea)](f[_0x5d345f(0x23d)],{'onClick':_0x5cb8f9,'disabled':!_0x283f23||_0x3a3bb7,'className':_0x5d345f(0x214),'children':_0x3a3bb7?i[_0x5d345f(0x333)](_0x5d345f(0x1fc),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x5d345f(0x2ea)](_0x5d345f(0x1fc),{'children':'⟲'}),_0xb5b6c3['t']('mcpConfig.saving')]}):i[_0x5d345f(0x333)]('span',{'className':_0x5d345f(0x31e),'children':[i[_0x5d345f(0x2ea)](H,{}),_0xb5b6c3['t'](_0x5d345f(0x32b))]})}),i[_0x5d345f(0x2ea)]('div',{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':i['jsxs'](_0x5d345f(0x35f),{'className':_0x5d345f(0x320),'children':[i[_0x5d345f(0x2ea)]('span',{'className':_0x5d345f(0x31c),'children':'💡'}),i['jsxs']('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[i[_0x5d345f(0x2ea)](_0x5d345f(0x35f),{'className':_0x5d345f(0x353),'children':_0x5d345f(0x222)}),i[_0x5d345f(0x333)](_0x5d345f(0x35f),{'children':['•',_0xb5b6c3['t'](_0x5d345f(0x250))]}),i[_0x5d345f(0x333)]('div',{'children':['•',_0xb5b6c3['t'](_0x5d345f(0x23e))]})]})]})})]})})]});}const P=_0x5018dd(0x262),L={'showDeveloperTools':!0x1,'showStatus':!0x0};var me=Object[_0x5018dd(0x2f6)],xe=(_0x159fe2,_0x163be4,_0x24b9e4,_0x444573)=>{const _0x62eeec=_0x5018dd;for(var _0x46f468=_0x444573>0x1?void 0x0:_0x444573?me(_0x163be4,_0x24b9e4):_0x163be4,_0x2cdda6=_0x159fe2[_0x62eeec(0x243)]-0x1,_0x286810;_0x2cdda6>=0x0;_0x2cdda6--)(_0x286810=_0x159fe2[_0x2cdda6])&&(_0x46f468=_0x286810(_0x46f468)||_0x46f468);return _0x46f468;},g=(_0x3381c2,_0x45f074)=>(_0x41ea94,_0x4b6e00)=>_0x45f074(_0x41ea94,_0x4b6e00,_0x3381c2);const O='mcp.apiKey',D='mcp-config-dialog';exports[_0x5018dd(0x352)]=class extends u['Disposable']{constructor(_0x2029bc,_0x44494e,_0x1a5532,_0x993f5b,_0x4a97ff,_0x9669f2,_0x2c3de7,_0x209152,_0x393522,_0x24fb3a){const _0x1055dd=_0x5018dd;super(),I(this,_0x1055dd(0x29e),new M['BehaviorSubject'](!0x1)),I(this,'_mcpCoreConfig$',new M['BehaviorSubject']({})),I(this,_0x1055dd(0x1f0),new M['BehaviorSubject']({})),I(this,_0x1055dd(0x239),new M[(_0x1055dd(0x31f))]('')),I(this,_0x1055dd(0x227),async _0x2bdd8b=>{const _0x5742c2=_0x1055dd;var _0x5e3a,_0x44f6b9;this[_0x5742c2(0x29e)][_0x5742c2(0x33a)](!0x0);try{const _0x550498=await this[_0x5742c2(0x32f)](_0x2bdd8b);if(!_0x550498[_0x5742c2(0x20f)]){this['_messageService']['show']({'type':f['MessageType']['Error'],'content':_0x550498['errorMessage']||this[_0x5742c2(0x215)]['t'](_0x5742c2(0x35b))});return;}_0x2bdd8b[_0x5742c2(0x25b)]?await this[_0x5742c2(0x236)][_0x5742c2(0x346)](O,_0x2bdd8b[_0x5742c2(0x25b)][_0x5742c2(0x2b6)]()):await this[_0x5742c2(0x236)][_0x5742c2(0x350)](O),this['_apiKey$'][_0x5742c2(0x33a)](((_0x5e3a=_0x2bdd8b['apiKey'])==null?void 0x0:_0x5e3a[_0x5742c2(0x2b6)]())||''),this[_0x5742c2(0x2dd)][_0x5742c2(0x32c)]({'Authorization':_0x5742c2(0x2ac)+((_0x44f6b9=_0x2bdd8b[_0x5742c2(0x25b)])==null?void 0x0:_0x44f6b9[_0x5742c2(0x2b6)]())}),this[_0x5742c2(0x32e)]['show']({'type':f[_0x5742c2(0x255)][_0x5742c2(0x2d0)],'content':this[_0x5742c2(0x215)]['t'](_0x5742c2(0x357))}),setTimeout(()=>{const _0x790b55=_0x5742c2;this[_0x790b55(0x2e0)][_0x790b55(0x311)](D);},0x320);}catch(_0x360255){this[_0x5742c2(0x326)][_0x5742c2(0x2e3)](_0x5742c2(0x27b),_0x360255),this['_messageService'][_0x5742c2(0x2ef)]({'type':f[_0x5742c2(0x255)][_0x5742c2(0x1fe)],'content':this[_0x5742c2(0x215)]['t']('mcpConfig.configError')});}finally{this['_loading$'][_0x5742c2(0x33a)](!0x1);}}),(this[_0x1055dd(0x225)]=_0x2029bc,this[_0x1055dd(0x321)]=_0x44494e,this[_0x1055dd(0x275)]=_0x1a5532,this[_0x1055dd(0x236)]=_0x993f5b,this[_0x1055dd(0x2e0)]=_0x4a97ff,this[_0x1055dd(0x32e)]=_0x9669f2,this[_0x1055dd(0x308)]=_0x2c3de7,this[_0x1055dd(0x215)]=_0x209152,this[_0x1055dd(0x326)]=_0x393522,this[_0x1055dd(0x2dd)]=_0x24fb3a,this['_initConfigSync'](),this[_0x1055dd(0x2f8)](),this[_0x1055dd(0x2f4)]());}['showConfigPanel'](){const _0x544ee1=_0x5018dd,_0xea2043=this[_0x544ee1(0x275)]['getConfig'](P);_0xea2043!=null&&_0xea2043[_0x544ee1(0x1f8)]&&this[_0x544ee1(0x2e0)][_0x544ee1(0x34e)]({'id':D,'title':{'title':this['_localeService']['t']('mcpConfig.title')},'children':{'label':_0x544ee1(0x349)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x40ba88=_0x544ee1;this[_0x40ba88(0x2e0)]['close'](D);}});}['getCurrentConfig'](){const _0x5600c9=_0x5018dd;return this[_0x5600c9(0x200)][_0x5600c9(0x30a)];}[_0x5018dd(0x2f4)](){const _0x80b2d3=_0x5018dd;this[_0x80b2d3(0x205)](this[_0x80b2d3(0x308)][_0x80b2d3(0x2a2)](_0x80b2d3(0x349),this[_0x80b2d3(0x218)]()));}[_0x5018dd(0x218)](){const _0x4667bb=_0x5018dd;return v[_0x4667bb(0x282)](()=>{const _0x29dbbd=_0x4667bb;var _0x1b7a1a,_0x1282b9,_0x150460;return i[_0x29dbbd(0x2ea)](V,{'config':this['_config$'][_0x29dbbd(0x30a)],'mcpCoreConfig':this[_0x29dbbd(0x200)]['value'],'currentApiKey$':this[_0x29dbbd(0x239)],'onSave':this[_0x29dbbd(0x227)],'loading':this['_loading$'][_0x29dbbd(0x30a)],'connectionStatus$':(_0x1b7a1a=this[_0x29dbbd(0x2dd)])==null?void 0x0:_0x1b7a1a[_0x29dbbd(0x2e8)],'connectionError$':(_0x1282b9=this[_0x29dbbd(0x2dd)])==null?void 0x0:_0x1282b9[_0x29dbbd(0x293)],'currentSessionId$':(_0x150460=this['_mcpConnectionController'])==null?void 0x0:_0x150460[_0x29dbbd(0x26b)]});},this[_0x4667bb(0x225)]);}[_0x5018dd(0x2f3)](){const _0x2fe33e=_0x5018dd;this[_0x2fe33e(0x205)](this[_0x2fe33e(0x275)][_0x2fe33e(0x252)](s['MCP_PLUGIN_CONFIG_KEY'])[_0x2fe33e(0x297)](_0x66e4f2=>{const _0x3c0596=_0x2fe33e;this['_mcpCoreConfig$'][_0x3c0596(0x33a)](_0x66e4f2||{});}));const _0x3eaf98=this[_0x2fe33e(0x275)][_0x2fe33e(0x33b)](s[_0x2fe33e(0x340)]);this[_0x2fe33e(0x200)][_0x2fe33e(0x33a)](_0x3eaf98||{}),this[_0x2fe33e(0x205)](this[_0x2fe33e(0x275)]['subscribeConfigValue$'](P)[_0x2fe33e(0x297)](_0x57eef2=>{const _0x29fcf1=_0x2fe33e;this[_0x29fcf1(0x1f0)][_0x29fcf1(0x33a)](_0x57eef2||{});}));const _0x29a237=this['_configService']['getConfig'](P);this['_config$']['next'](_0x29a237||{});}async[_0x5018dd(0x2f8)](){const _0x22c320=_0x5018dd,_0x58db79=this['_configService'][_0x22c320(0x33b)](P);if(!(_0x58db79!=null&&_0x58db79[_0x22c320(0x1f8)]))return;const _0x508f1b=await this[_0x22c320(0x236)][_0x22c320(0x30c)](O);_0x508f1b&&(this[_0x22c320(0x2dd)][_0x22c320(0x32c)]({'Authorization':'Bearer\x20'+_0x508f1b}),this[_0x22c320(0x239)]['next'](_0x508f1b));}async['_validateConfig'](_0x5625c9){const _0x16a83a=_0x5018dd;if(!_0x5625c9[_0x16a83a(0x25b)]||_0x5625c9[_0x16a83a(0x25b)][_0x16a83a(0x2b6)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this[_0x16a83a(0x215)]['t'](_0x16a83a(0x362))};if(_0x5625c9['apiKey']['trim']()[_0x16a83a(0x243)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x16a83a(0x215)]['t'](_0x16a83a(0x30b))};try{const _0x49f4b1=await this['_injector'][_0x16a83a(0x2a1)](s[_0x16a83a(0x2ad)])[_0x16a83a(0x210)](_0x5625c9[_0x16a83a(0x25b)][_0x16a83a(0x2b6)]());return _0x49f4b1[_0x16a83a(0x20f)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x49f4b1[_0x16a83a(0x2e3)]||this['_localeService']['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x1ab74a){return console[_0x16a83a(0x259)](_0x16a83a(0x1e9),_0x1ab74a),{'isValid':!0x0};}}},exports[_0x5018dd(0x352)]=xe([g(0x0,u[_0x5018dd(0x2c4)](u[_0x5018dd(0x361)])),g(0x1,v[_0x5018dd(0x2c3)]),g(0x2,u[_0x5018dd(0x21d)]),g(0x3,u[_0x5018dd(0x294)]),g(0x4,v[_0x5018dd(0x235)]),g(0x5,v['IMessageService']),g(0x6,u[_0x5018dd(0x2c4)](v['ComponentManager'])),g(0x7,u[_0x5018dd(0x2c4)](u[_0x5018dd(0x34b)])),g(0x8,u[_0x5018dd(0x2fd)]),g(0x9,u['Inject'](s[_0x5018dd(0x2ad)]))],exports[_0x5018dd(0x352)]);const b={'id':_0x5018dd(0x256),'type':u['CommandType'][_0x5018dd(0x27c)],'handler':async(_0x4d67cd,_0x492ae8)=>(_0x4d67cd['get'](exports[_0x5018dd(0x352)])['showConfigPanel'](),!0x0)};function Z(_0x572b0a,_0x4e0bc3){const _0xb67cd=_0x5018dd;switch(_0x572b0a){case s[_0xb67cd(0x298)][_0xb67cd(0x2eb)]:return _0xb67cd(0x2b1);case s['MCPConnectionStatus'][_0xb67cd(0x23b)]:return'mcpStatus.connecting';case s[_0xb67cd(0x298)][_0xb67cd(0x359)]:return _0xb67cd(0x2f2);case s[_0xb67cd(0x298)][_0xb67cd(0x2c7)]:switch(_0x4e0bc3){case s[_0xb67cd(0x20d)]['UNAUTHORIZED']:return _0xb67cd(0x35c);case s[_0xb67cd(0x20d)][_0xb67cd(0x344)]:return _0xb67cd(0x204);case s[_0xb67cd(0x20d)][_0xb67cd(0x329)]:return _0xb67cd(0x2b7);case s[_0xb67cd(0x20d)][_0xb67cd(0x334)]:return _0xb67cd(0x328);default:return'mcpStatus.failed';}case s[_0xb67cd(0x298)][_0xb67cd(0x257)]:return _0xb67cd(0x279);default:return'mcpStatus.unknown';}}function Se(_0x1aa55c,_0x27ac8f,_0x4b3e97,_0x268a15=!0x0){const _0x1b61dd=_0x5018dd,_0x44880d=Z(_0x1aa55c,_0x27ac8f),_0x49f760=_0x4b3e97['t'](_0x44880d);return _0x268a15?_0x1aa55c===s[_0x1b61dd(0x298)][_0x1b61dd(0x2eb)]&&_0x27ac8f===s[_0x1b61dd(0x20d)][_0x1b61dd(0x1fd)]?_0x49f760+_0x1b61dd(0x301)+_0x4b3e97['t'](_0x1b61dd(0x265)):_0x1aa55c===s[_0x1b61dd(0x298)]['CONNECTED']?''+_0x49f760:_0x1aa55c===s[_0x1b61dd(0x298)]['DISCONNECTED']||_0x1aa55c===s[_0x1b61dd(0x298)][_0x1b61dd(0x2c7)]?_0x49f760+_0x1b61dd(0x301)+_0x4b3e97['t'](_0x1b61dd(0x203)):_0x49f760:_0x49f760;}function Pe(_0x422e5b){const _0x21a37a=_0x5018dd;switch(_0x422e5b){case s[_0x21a37a(0x298)][_0x21a37a(0x359)]:return'univer-text-green-500';case s['MCPConnectionStatus'][_0x21a37a(0x23b)]:case s[_0x21a37a(0x298)][_0x21a37a(0x257)]:return _0x21a37a(0x2b0);case s[_0x21a37a(0x298)]['FAILED']:case s[_0x21a37a(0x298)]['DISCONNECTED']:return _0x21a37a(0x2d5);default:return _0x21a37a(0x21c);}}function W(_0x4dc5f6){const _0x225ddb=_0x5018dd,{status$:_0x36fa68,error$:_0x9954c9,onConfigure:_0x28c567,showClickable:_0x56b35a=!0x0}=_0x4dc5f6,_0x28d074=v[_0x225ddb(0x27a)](_0x36fa68,s[_0x225ddb(0x298)][_0x225ddb(0x2eb)]),_0x9520e=v[_0x225ddb(0x27a)](_0x9954c9,s['MCPConnectionError'][_0x225ddb(0x283)]),_0x57fd84=v['useDependency'](u['LocaleService']),_0x27c6f=_0x28d074===s[_0x225ddb(0x298)]['CONNECTED'];_0x28d074===s['MCPConnectionStatus'][_0x225ddb(0x23b)]||s[_0x225ddb(0x298)][_0x225ddb(0x257)];const _0x3229a1=_0x57fd84['t'](Z(_0x28d074,_0x9520e)),_0x1b3d71=Se(_0x28d074,_0x9520e,_0x57fd84,_0x56b35a),_0x42436e=Pe(_0x28d074),_0x50a711=_0x27c6f?i[_0x225ddb(0x2ea)](q,{}):i['jsx'](Y,{}),_0x23f27f=d['useCallback'](()=>{_0x56b35a&&_0x28c567&&_0x28c567();},[_0x56b35a,_0x28c567]);function _0xf4208e(){const _0x3184d7=_0x225ddb;return i[_0x3184d7(0x333)]('div',{'className':f[_0x3184d7(0x2d7)](_0x3184d7(0x1f4),_0x56b35a&&_0x28c567&&_0x3184d7(0x348)),'role':_0x3184d7(0x33d),'onClick':_0x56b35a&&_0x28c567?_0x23f27f:void 0x0,'children':[i[_0x3184d7(0x2ea)](_0x3184d7(0x35f),{'className':f[_0x3184d7(0x2d7)](_0x3184d7(0x28f),_0x42436e),'children':_0x50a711}),i['jsx'](_0x3184d7(0x35f),{'className':_0x3184d7(0x2bb),'children':_0x3229a1})]});}return i[_0x225ddb(0x2ea)](f[_0x225ddb(0x30f)],{'title':_0x1b3d71,'placement':'bottom','children':_0xf4208e()});}var Ie=Object[_0x5018dd(0x2f6)],_e=(_0x5036ea,_0x2a46cf,_0x334260,_0x263432)=>{const _0x35da67=_0x5018dd;for(var _0x3ef0f8=_0x263432>0x1?void 0x0:_0x263432?Ie(_0x2a46cf,_0x334260):_0x2a46cf,_0x16fb32=_0x5036ea[_0x35da67(0x243)]-0x1,_0x6077f;_0x16fb32>=0x0;_0x16fb32--)(_0x6077f=_0x5036ea[_0x16fb32])&&(_0x3ef0f8=_0x6077f(_0x3ef0f8)||_0x3ef0f8);return _0x3ef0f8;},N=(_0x1da390,_0x4d0c22)=>(_0x1ad835,_0x51aac3)=>_0x4d0c22(_0x1ad835,_0x51aac3,_0x1da390);exports[_0x5018dd(0x273)]=class extends u[_0x5018dd(0x296)]{constructor(_0x43cdbf,_0x1d459a,_0x3f7739,_0x527444){const _0xcdf1dc=_0x5018dd;super(),this[_0xcdf1dc(0x225)]=_0x43cdbf,this[_0xcdf1dc(0x2bc)]=_0x1d459a,this[_0xcdf1dc(0x321)]=_0x3f7739,this[_0xcdf1dc(0x275)]=_0x527444,this[_0xcdf1dc(0x212)](),this[_0xcdf1dc(0x286)]();}['_initAutoConnect'](){const _0x328709=_0x5018dd,_0x5e7c2d=this[_0x328709(0x275)]['getConfig'](P);_0x5e7c2d!=null&&_0x5e7c2d['showDeveloperTools']&&(this['_connectionController'][_0x328709(0x2a4)]=!0x1);}[_0x5018dd(0x286)](){const _0x569b52=_0x5018dd,_0x2f77c8=this[_0x569b52(0x275)]['getConfig'](P);(_0x2f77c8==null?void 0x0:_0x2f77c8[_0x569b52(0x26e)])!==!0x1&&this[_0x569b52(0x205)](this[_0x569b52(0x321)]['registerComponent'](v['BuiltInUIPart'][_0x569b52(0x216)],()=>{const _0x5e52ca=_0x569b52;var _0x3b838d;return v[_0x5e52ca(0x282)](ye({'status$':this[_0x5e52ca(0x2bc)][_0x5e52ca(0x2e8)],'error$':this['_connectionController'][_0x5e52ca(0x293)],'onConfigure':()=>this[_0x5e52ca(0x343)](),'showClickable':(_0x3b838d=_0x2f77c8==null?void 0x0:_0x2f77c8[_0x5e52ca(0x1f8)])!=null?_0x3b838d:!0x1}),this['_injector']);}));}['_handleConfigure'](){const _0x53848f=_0x5018dd;this['_injector'][_0x53848f(0x2a1)](exports['MCPConfigUIController'])[_0x53848f(0x1ef)]();}},exports[_0x5018dd(0x273)]=_e([N(0x0,u[_0x5018dd(0x2c4)](u[_0x5018dd(0x361)])),N(0x1,u[_0x5018dd(0x2c4)](s['MCPConnectionController'])),N(0x2,v[_0x5018dd(0x2c3)]),N(0x3,u[_0x5018dd(0x21d)])],exports[_0x5018dd(0x273)]);function ye(_0x3d5855){const {status$:_0x37b692,error$:_0x2a940e,onConfigure:_0x1048a3,showClickable:_0xe8c315}=_0x3d5855;return function(){const _0x345878=_0x5145;return i[_0x345878(0x2ea)](W,{'status$':_0x37b692,'error$':_0x2a940e,'onConfigure':_0x1048a3,'showClickable':_0xe8c315});};}function Me(_0x2070d2){const _0xcf4e05=_0x5018dd;return{'id':b['id'],'type':v['MenuItemType']['BUTTON'],'icon':'MenuIcon','title':'mcpConfig.title','tooltip':_0xcf4e05(0x248)};}const Ne={[v['RibbonStartGroup'][_0x5018dd(0x2fe)]]:{[b['id']]:{'order':0xa,'menuItemFactory':Me}}};var be=Object['getOwnPropertyDescriptor'],je=(_0xedc2df,_0x5738c3,_0x4c4d66,_0x348813)=>{const _0x3d70d3=_0x5018dd;for(var _0x2bfbf5=_0x348813>0x1?void 0x0:_0x348813?be(_0x5738c3,_0x4c4d66):_0x5738c3,_0x52a0c6=_0xedc2df[_0x3d70d3(0x243)]-0x1,_0x326c64;_0x52a0c6>=0x0;_0x52a0c6--)(_0x326c64=_0xedc2df[_0x52a0c6])&&(_0x2bfbf5=_0x326c64(_0x2bfbf5)||_0x2bfbf5);return _0x2bfbf5;},z=(_0x5cc10a,_0x1aa9e4)=>(_0x35c66f,_0x9a96d9)=>_0x1aa9e4(_0x35c66f,_0x9a96d9,_0x5cc10a);exports['MCPUIMenuController']=class extends u[_0x5018dd(0x296)]{constructor(_0x937377,_0x5a2fdb){const _0x31c39c=_0x5018dd;super(),this[_0x31c39c(0x20c)]=_0x937377,this[_0x31c39c(0x21f)]=_0x5a2fdb,this['_initializeCommands'](),this['_initializeMenus']();}[_0x5018dd(0x237)](){const _0xfc3a50=_0x5018dd;[b][_0xfc3a50(0x34f)](_0xbd4083=>{const _0x46cdd9=_0xfc3a50;this['disposeWithMe'](this['_commandService'][_0x46cdd9(0x251)](_0xbd4083));});}[_0x5018dd(0x306)](){const _0x4f50eb=_0x5018dd;this['_menuManagerService'][_0x4f50eb(0x26f)](Ne);}},exports['MCPUIMenuController']=je([z(0x0,u['ICommandService']),z(0x1,v['IMenuManagerService'])],exports[_0x5018dd(0x2af)]);const Ee={'mcpStatus':{'disconnected':_0x5018dd(0x36b),'connecting':_0x5018dd(0x1ff),'connected':'MCP\x20Connected','failed':_0x5018dd(0x1f2),'retrying':_0x5018dd(0x35e),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x5018dd(0x24b),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x5018dd(0x269),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x5018dd(0x295),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x5018dd(0x231),'description':_0x5018dd(0x253),'apiKey':'API\x20Key','apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x5018dd(0x342),'enableAuthHint':_0x5018dd(0x2c5),'connectionInfo':_0x5018dd(0x278),'mcpClientConfig':_0x5018dd(0x278),'configInstructions':_0x5018dd(0x23f),'configStepTitle':_0x5018dd(0x324),'configStep1':_0x5018dd(0x2a3),'configStep2':_0x5018dd(0x25d),'configStep3':_0x5018dd(0x2e7),'sessionId':'Session\x20ID','sessionIdDescription':_0x5018dd(0x2ec),'authorizationDescription':_0x5018dd(0x2c0),'configParameters':_0x5018dd(0x351),'maxRetries':_0x5018dd(0x1ee),'save':_0x5018dd(0x223),'saving':_0x5018dd(0x2ca),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x5018dd(0x2ed),'configError':_0x5018dd(0x30d),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x5018dd(0x364),'univerAiLabel':_0x5018dd(0x345),'getStarted':_0x5018dd(0x1ea)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x5018dd(0x2d3),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x5018dd(0x2aa)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x5018dd(0x36c),'connected':'Connected','failed':_0x5018dd(0x234),'retrying':_0x5018dd(0x316)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x5018dd(0x341)}}},we={'mcpStatus':{'disconnected':_0x5018dd(0x356),'connecting':_0x5018dd(0x27f),'connected':_0x5018dd(0x28e),'failed':_0x5018dd(0x318),'retrying':_0x5018dd(0x28c),'unknown':_0x5018dd(0x2fc),'unauthorized':'MCP:\x20未授权','sessionOccupied':_0x5018dd(0x366),'networkError':_0x5018dd(0x22e),'maxRetriesExceeded':_0x5018dd(0x360),'clickToConnect':_0x5018dd(0x20a),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x5018dd(0x2ab),'description':_0x5018dd(0x34a),'apiKey':_0x5018dd(0x2df),'apiKeyPlaceholder':_0x5018dd(0x2f9),'apiKeyHint':_0x5018dd(0x2d8),'enableAuth':'启用身份验证','enableAuthHint':_0x5018dd(0x319),'connectionInfo':_0x5018dd(0x2fa),'mcpClientConfig':_0x5018dd(0x2fa),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x5018dd(0x21e),'configStep1':_0x5018dd(0x330),'configStep2':_0x5018dd(0x2c2),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':_0x5018dd(0x2e1),'sessionIdDescription':_0x5018dd(0x2e9),'authorizationDescription':_0x5018dd(0x2cd),'configParameters':'配置参数:','maxRetries':_0x5018dd(0x220),'save':_0x5018dd(0x272),'saving':_0x5018dd(0x314),'note1':_0x5018dd(0x292),'note2':_0x5018dd(0x242),'configSaved':_0x5018dd(0x287),'configError':_0x5018dd(0x309),'apiApplyInfo':{'title':_0x5018dd(0x365),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0x5018dd(0x249),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x5018dd(0x213),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':'配置无效','invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0x5018dd(0x300),'connecting':'连接中...','connected':_0x5018dd(0x2dc),'failed':_0x5018dd(0x209),'retrying':_0x5018dd(0x2a6)},'connectionError':{'unauthorized':_0x5018dd(0x2fb),'sessionOccupied':_0x5018dd(0x241),'networkError':_0x5018dd(0x21a),'maxRetriesExceeded':_0x5018dd(0x2a0)}}};var Ae=Object[_0x5018dd(0x2c6)],Oe=Object['getOwnPropertyDescriptor'],De=(_0x4e967e,_0x358d40,_0x56aa71)=>_0x358d40 in _0x4e967e?Ae(_0x4e967e,_0x358d40,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x56aa71}):_0x4e967e[_0x358d40]=_0x56aa71,Ue=(_0x254dac,_0x5cdfaa,_0x557901,_0x249988)=>{for(var _0x227f77=_0x249988>0x1?void 0x0:_0x249988?Oe(_0x5cdfaa,_0x557901):_0x5cdfaa,_0x3eee31=_0x254dac['length']-0x1,_0x3f33dd;_0x3eee31>=0x0;_0x3eee31--)(_0x3f33dd=_0x254dac[_0x3eee31])&&(_0x227f77=_0x3f33dd(_0x227f77)||_0x227f77);return _0x227f77;},y=(_0x182b42,_0x4e8c67)=>(_0x598228,_0x5d2fee)=>_0x4e8c67(_0x598228,_0x5d2fee,_0x182b42),$e=(_0x52577b,_0xc955b7,_0x4ecd6a)=>De(_0x52577b,_0xc955b7+'',_0x4ecd6a);exports[_0x5018dd(0x22c)]=class extends u['Plugin']{constructor(_0xd8f0b1=L,_0x2a9ca1,_0x5a8c1c,_0x2f3992,_0x492251,_0x40b15e){const _0x135f06=_0x5018dd;super(),this[_0x135f06(0x201)]=_0xd8f0b1,this[_0x135f06(0x225)]=_0x2a9ca1,this['_configService']=_0x5a8c1c,this['_uiPartsService']=_0x2f3992,this['_localStorageService']=_0x492251,this[_0x135f06(0x215)]=_0x40b15e;const {..._0x18d61f}=u[_0x135f06(0x35d)]({},L,this[_0x135f06(0x201)]);this[_0x135f06(0x275)][_0x135f06(0x229)](P,_0x18d61f);}async[_0x5018dd(0x29c)](){const _0x20a5cc=_0x5018dd,_0x3b5e23=[[exports['MCPConnectionUIController']],[exports['MCPConfigUIController']],[exports[_0x20a5cc(0x2af)]]];this[_0x20a5cc(0x225)][_0x20a5cc(0x2b9)](A[_0x20a5cc(0x21b)])||_0x3b5e23[_0x20a5cc(0x27d)]([A[_0x20a5cc(0x21b)],{'useClass':A[_0x20a5cc(0x2e5)]}]),_0x3b5e23[_0x20a5cc(0x34f)](_0x13a9e8=>this['_injector'][_0x20a5cc(0x2ff)](_0x13a9e8)),this[_0x20a5cc(0x225)][_0x20a5cc(0x2a1)](exports[_0x20a5cc(0x273)]),this[_0x20a5cc(0x225)][_0x20a5cc(0x2a1)](exports[_0x20a5cc(0x352)]),this['_injector'][_0x20a5cc(0x2a1)](exports[_0x20a5cc(0x2af)]);}},$e(exports[_0x5018dd(0x22c)],_0x5018dd(0x358),_0x5018dd(0x25f)),exports[_0x5018dd(0x22c)]=Ue([u[_0x5018dd(0x32d)](s['UniverMCPPlugin']),y(0x1,u[_0x5018dd(0x2c4)](u[_0x5018dd(0x361)])),y(0x2,u[_0x5018dd(0x21d)]),y(0x3,v['IUIPartsService']),y(0x4,u[_0x5018dd(0x294)]),y(0x5,u['Inject'](u[_0x5018dd(0x34b)]))],exports[_0x5018dd(0x22c)]),exports[_0x5018dd(0x349)]=V,exports[_0x5018dd(0x34d)]=W,exports[_0x5018dd(0x2bf)]=b,exports[_0x5018dd(0x258)]=Ee,exports[_0x5018dd(0x1ed)]=we;
|
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const _0x21036d=_0x285b;function _0x3f56(){const _0x34e013=['20321076NwVAiz','API\x20key\x20is\x20required','433574uyJoVd','Failed\x20to\x20save\x20configuration','Univer\x20AI\x20Console','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Disconnected','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP:\x20Max\x20Retries\x20Exceeded','Saving...','61055yGoNwj','MCP\x20Unknown\x20Status','Disconnected','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Configuration\x20Parameters:','Max\x20Retries','MCP:\x20Network\x20Error','56gHCfGt','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','11qaKNcL','MCP\x20Configuration','API\x20key\x20with\x20Bearer\x20prefix.','7zDXLnS','Click\x20to\x20configure\x20MCP','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP\x20Connecting...','Click\x20to\x20connect\x20MCP','Save\x20Configuration','MCP\x20Client\x20Configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','1659384fTdHjC','10gCMZcq','2944424gbBDhp','Get\x20your\x20API\x20key\x20in\x20seconds','Configuration\x20Steps:','1hUJfwJ','exports','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','What\x20is\x20API\x20Key?','MCP\x20Retrying...','1245558IoeWPT','MCP:\x20Unauthorized','Enable\x20Authentication','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Copy\x20the\x20JSON\x20configuration\x20below','Connected','MCP\x20Connection\x20Failed','Invalid\x20configuration','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Configuration\x20saved\x20successfully','MCP\x20Connected','3321639ZCpKPC'];_0x3f56=function(){return _0x34e013;};return _0x3f56();}(function(_0x3551ae,_0x240e6f){const _0x179726=_0x285b,_0x36be27=_0x3551ae();while(!![]){try{const _0x2c4acc=parseInt(_0x179726(0xdd))/0x1*(-parseInt(_0x179726(0xf0))/0x2)+-parseInt(_0x179726(0xe2))/0x3+-parseInt(_0x179726(0xcb))/0x4*(-parseInt(_0x179726(0xf8))/0x5)+parseInt(_0x179726(0xd8))/0x6*(-parseInt(_0x179726(0xd0))/0x7)+-parseInt(_0x179726(0xda))/0x8+parseInt(_0x179726(0xed))/0x9*(-parseInt(_0x179726(0xd9))/0xa)+parseInt(_0x179726(0xcd))/0xb*(parseInt(_0x179726(0xee))/0xc);if(_0x2c4acc===_0x240e6f)break;else _0x36be27['push'](_0x36be27['shift']());}catch(_0x3f358b){_0x36be27['push'](_0x36be27['shift']());}}}(_0x3f56,0x3565c));const e={'mcpStatus':{'disconnected':_0x21036d(0xf4),'connecting':_0x21036d(0xd3),'connected':_0x21036d(0xec),'failed':_0x21036d(0xe8),'retrying':_0x21036d(0xe1),'unknown':_0x21036d(0xf9),'unauthorized':_0x21036d(0xe3),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x21036d(0xca),'maxRetriesExceeded':_0x21036d(0xf6),'clickToConnect':_0x21036d(0xd4),'clickToConfigure':_0x21036d(0xd1)},'mcpConfig':{'title':_0x21036d(0xce),'description':_0x21036d(0xcc),'apiKey':'API\x20Key','apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x21036d(0xf5),'enableAuth':_0x21036d(0xe4),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x21036d(0xd6),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x21036d(0xdc),'configStep1':_0x21036d(0xe6),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x21036d(0xea),'sessionId':'Session\x20ID','sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x21036d(0xcf),'configParameters':_0x21036d(0xc8),'maxRetries':_0x21036d(0xc9),'save':_0x21036d(0xd5),'saving':_0x21036d(0xf7),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x21036d(0xf3),'configSaved':_0x21036d(0xeb),'configError':_0x21036d(0xf1),'apiApplyInfo':{'title':_0x21036d(0xe0),'description':_0x21036d(0xd2),'univerAiLabel':_0x21036d(0xf2),'getStarted':_0x21036d(0xdb)},'validation':{'apiKeyRequired':_0x21036d(0xef),'apiKeyTooShort':_0x21036d(0xd7),'invalidConfig':_0x21036d(0xe9),'invalidApiKey':_0x21036d(0xdf)},'connectionStatus':{'disconnected':_0x21036d(0xfa),'connecting':'Connecting...','connected':_0x21036d(0xe7),'failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x21036d(0xe5),'maxRetriesExceeded':_0x21036d(0xfb)}}},n=e;function _0x285b(_0x1b41a5,_0x25094b){_0x1b41a5=_0x1b41a5-0xc8;const _0x3f5609=_0x3f56();let _0x285b88=_0x3f5609[_0x1b41a5];return _0x285b88;}module[_0x21036d(0xde)]=n;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x3cf54d=_0x4ec5;(function(_0x50f9ae,_0x50c997){const _0x5a2dd6=_0x4ec5,_0x235ca2=_0x50f9ae();while(!![]){try{const _0x10a837=-parseInt(_0x5a2dd6(0x11f))/0x1+-parseInt(_0x5a2dd6(0x139))/0x2*(-parseInt(_0x5a2dd6(0x146))/0x3)+-parseInt(_0x5a2dd6(0x137))/0x4+parseInt(_0x5a2dd6(0x12b))/0x5+-parseInt(_0x5a2dd6(0x13d))/0x6*(parseInt(_0x5a2dd6(0x123))/0x7)+parseInt(_0x5a2dd6(0x124))/0x8*(parseInt(_0x5a2dd6(0x14d))/0x9)+parseInt(_0x5a2dd6(0x14a))/0xa*(parseInt(_0x5a2dd6(0x13a))/0xb);if(_0x10a837===_0x50c997)break;else _0x235ca2['push'](_0x235ca2['shift']());}catch(_0x44c8a9){_0x235ca2['push'](_0x235ca2['shift']());}}}(_0x4698,0x64ade));function _0x4ec5(_0x11fd64,_0x3b59a5){_0x11fd64=_0x11fd64-0x11f;const _0x4698f6=_0x4698();let _0x4ec57e=_0x4698f6[_0x11fd64];return _0x4ec57e;}const e={'mcpStatus':{'disconnected':_0x3cf54d(0x140),'connecting':'MCP\x20Connecting...','connected':_0x3cf54d(0x126),'failed':_0x3cf54d(0x122),'retrying':_0x3cf54d(0x133),'unknown':_0x3cf54d(0x13c),'unauthorized':_0x3cf54d(0x13e),'sessionOccupied':_0x3cf54d(0x129),'networkError':_0x3cf54d(0x12c),'maxRetriesExceeded':_0x3cf54d(0x136),'clickToConnect':_0x3cf54d(0x151),'clickToConfigure':_0x3cf54d(0x121)},'mcpConfig':{'title':_0x3cf54d(0x13b),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x3cf54d(0x12d),'apiKeyPlaceholder':_0x3cf54d(0x14b),'apiKeyHint':_0x3cf54d(0x145),'enableAuth':_0x3cf54d(0x147),'enableAuthHint':_0x3cf54d(0x13f),'connectionInfo':_0x3cf54d(0x12a),'mcpClientConfig':_0x3cf54d(0x12a),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x3cf54d(0x134),'configStep1':_0x3cf54d(0x144),'configStep2':_0x3cf54d(0x138),'configStep3':_0x3cf54d(0x120),'sessionId':_0x3cf54d(0x132),'sessionIdDescription':_0x3cf54d(0x14e),'authorizationDescription':_0x3cf54d(0x14f),'configParameters':_0x3cf54d(0x12e),'maxRetries':_0x3cf54d(0x127),'save':_0x3cf54d(0x142),'saving':'Saving...','note1':_0x3cf54d(0x149),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x3cf54d(0x130),'description':_0x3cf54d(0x131),'univerAiLabel':_0x3cf54d(0x125),'getStarted':_0x3cf54d(0x152)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x3cf54d(0x135),'invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x3cf54d(0x14c),'connecting':'Connecting...','connected':_0x3cf54d(0x141),'failed':'Connection\x20Failed','retrying':_0x3cf54d(0x128)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x3cf54d(0x143),'networkError':_0x3cf54d(0x148),'maxRetriesExceeded':_0x3cf54d(0x12f)}}};function _0x4698(){const _0xc569e3=['Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','2337ZZhJxw','Enable\x20Authentication','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','104150ACiLoB','Enter\x20your\x20API\x20key','Disconnected','801XpZlcq','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','API\x20key\x20with\x20Bearer\x20prefix.','exports','Click\x20to\x20connect\x20MCP','Get\x20your\x20API\x20key\x20in\x20seconds','491372UkBJAN','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Click\x20to\x20configure\x20MCP','MCP\x20Connection\x20Failed','7FSROWR','22784nkdzQy','Univer\x20AI\x20Console','MCP\x20Connected','Max\x20Retries','Retrying...','MCP:\x20Session\x20ID\x20Occupied','MCP\x20Client\x20Configuration','652500OMhlmA','MCP:\x20Network\x20Error','API\x20Key','Configuration\x20Parameters:','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','What\x20is\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.','Session\x20ID','MCP\x20Retrying...','Configuration\x20Steps:','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP:\x20Max\x20Retries\x20Exceeded','2702588SOWodL','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','74oxVWKX','1375TFIVOu','MCP\x20Configuration','MCP\x20Unknown\x20Status','811614YjRWoO','MCP:\x20Unauthorized','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Disconnected','Connected','Save\x20Configuration','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Copy\x20the\x20JSON\x20configuration\x20below'];_0x4698=function(){return _0xc569e3;};return _0x4698();}module[_0x3cf54d(0x150)]=e;
|
package/lib/cjs/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0xae2b(_0x453242,_0x3a1059){_0x453242=_0x453242-0x1b5;const _0x52f6a2=_0x52f6();let _0xae2bf0=_0x52f6a2[_0x453242];return _0xae2bf0;}const _0xe4633e=_0xae2b;(function(_0x3836f8,_0x35ea52){const _0xbff55a=_0xae2b,_0x20af45=_0x3836f8();while(!![]){try{const _0x2c6a33=parseInt(_0xbff55a(0x1cb))/0x1*(parseInt(_0xbff55a(0x1c0))/0x2)+parseInt(_0xbff55a(0x1b5))/0x3*(-parseInt(_0xbff55a(0x1b7))/0x4)+parseInt(_0xbff55a(0x1c6))/0x5*(-parseInt(_0xbff55a(0x1b8))/0x6)+parseInt(_0xbff55a(0x1d7))/0x7+-parseInt(_0xbff55a(0x1c7))/0x8+-parseInt(_0xbff55a(0x1bc))/0x9+parseInt(_0xbff55a(0x1de))/0xa;if(_0x2c6a33===_0x35ea52)break;else _0x20af45['push'](_0x20af45['shift']());}catch(_0x5f4699){_0x20af45['push'](_0x20af45['shift']());}}}(_0x52f6,0x2db39));const e={'mcpStatus':{'disconnected':_0xe4633e(0x1bf),'connecting':_0xe4633e(0x1b9),'connected':_0xe4633e(0x1b6),'failed':_0xe4633e(0x1cd),'retrying':'MCP\x20Retrying...','unknown':_0xe4633e(0x1ba),'unauthorized':_0xe4633e(0x1ca),'sessionOccupied':_0xe4633e(0x1ce),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0xe4633e(0x1df),'clickToConnect':_0xe4633e(0x1c1),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0xe4633e(0x1c4),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0xe4633e(0x1dc),'apiKeyPlaceholder':_0xe4633e(0x1e1),'apiKeyHint':_0xe4633e(0x1cc),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0xe4633e(0x1da),'connectionInfo':_0xe4633e(0x1d3),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0xe4633e(0x1e0),'sessionId':_0xe4633e(0x1d6),'sessionIdDescription':_0xe4633e(0x1d9),'authorizationDescription':_0xe4633e(0x1dd),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':'Saving...','note1':_0xe4633e(0x1bd),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0xe4633e(0x1c8),'configError':_0xe4633e(0x1c5),'apiApplyInfo':{'title':_0xe4633e(0x1c9),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0xe4633e(0x1d8)},'validation':{'apiKeyRequired':_0xe4633e(0x1db),'apiKeyTooShort':_0xe4633e(0x1c2),'invalidConfig':_0xe4633e(0x1d5),'invalidApiKey':_0xe4633e(0x1d0)},'connectionStatus':{'disconnected':_0xe4633e(0x1d1),'connecting':_0xe4633e(0x1c3),'connected':_0xe4633e(0x1d2),'failed':'Connection\x20Failed','retrying':_0xe4633e(0x1bb)},'connectionError':{'unauthorized':_0xe4633e(0x1d4),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0xe4633e(0x1cf),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module[_0xe4633e(0x1be)]=n;function _0x52f6(){const _0x1d83a0=['MCP:\x20Unauthorized','135itORXY','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Connection\x20Failed','MCP:\x20Session\x20ID\x20Occupied','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Disconnected','Connected','MCP\x20Client\x20Configuration','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Invalid\x20configuration','Session\x20ID','411754vOHwxw','Get\x20your\x20API\x20key\x20in\x20seconds','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Enable\x20authentication\x20for\x20secure\x20connections','API\x20key\x20is\x20required','API\x20Key','API\x20key\x20with\x20Bearer\x20prefix.','8205100HnULPb','MCP:\x20Max\x20Retries\x20Exceeded','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Enter\x20your\x20API\x20key','4707XIfGUG','MCP\x20Connected','180nDEVir','18yyCFtT','MCP\x20Connecting...','MCP\x20Unknown\x20Status','Retrying...','1714374CNpfMs','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','exports','MCP\x20Disconnected','1030yICpkP','Click\x20to\x20connect\x20MCP','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Connecting...','MCP\x20Configuration','Failed\x20to\x20save\x20configuration','295985KPMQAd','2583856NuMriS','Configuration\x20saved\x20successfully','What\x20is\x20API\x20Key?'];_0x52f6=function(){return _0x1d83a0;};return _0x52f6();}
|
package/lib/cjs/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x43f8a5=_0x58bb;function _0x58bb(_0x8f8ef6,_0x45260d){_0x8f8ef6=_0x8f8ef6-0xdd;const _0x254037=_0x2540();let _0x58bb7f=_0x254037[_0x8f8ef6];return _0x58bb7f;}function _0x2540(){const _0xa942ae=['MCP:\x20Session\x20ID\x20Occupied','365aByMop','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','3213152ZqUAwF','Retrying...','Connecting...','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','10HFgkDx','2jqQnPV','Get\x20your\x20API\x20key\x20in\x20seconds','exports','5717089sUaucK','MCP:\x20Network\x20Error','MCP\x20Unknown\x20Status','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Connection\x20Failed','Configuration\x20Parameters:','MCP\x20Client\x20Configuration','503324SySOXN','API\x20Key','Univer\x20AI\x20Console','Click\x20to\x20configure\x20MCP','3504796CgXQjN','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Click\x20to\x20connect\x20MCP','MCP\x20Retrying...','What\x20is\x20API\x20Key?','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Max\x20Retries','Disconnected','Invalid\x20configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','4109295JoJonN','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Failed\x20to\x20save\x20configuration','Configuration\x20saved\x20successfully','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Saving...','Enter\x20your\x20API\x20key','Connected','9182767Sdbsbs','API\x20key\x20with\x20Bearer\x20prefix.','85038ZDxrXY','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Connection\x20Failed','Enable\x20authentication\x20for\x20secure\x20connections','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP:\x20Unauthorized','18wDYZoa','MCP\x20Connecting...','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long'];_0x2540=function(){return _0xa942ae;};return _0x2540();}(function(_0x398a69,_0x1e7172){const _0x2fd8bc=_0x58bb,_0x5d502c=_0x398a69();while(!![]){try{const _0x2bc0e2=-parseInt(_0x2fd8bc(0x102))/0x1*(-parseInt(_0x2fd8bc(0xf8))/0x2)+parseInt(_0x2fd8bc(0x110))/0x3+-parseInt(_0x2fd8bc(0x106))/0x4+-parseInt(_0x2fd8bc(0xf1))/0x5*(parseInt(_0x2fd8bc(0xe4))/0x6)+parseInt(_0x2fd8bc(0xfb))/0x7+parseInt(_0x2fd8bc(0xf3))/0x8*(parseInt(_0x2fd8bc(0xed))/0x9)+parseInt(_0x2fd8bc(0xf7))/0xa*(-parseInt(_0x2fd8bc(0xe2))/0xb);if(_0x2bc0e2===_0x1e7172)break;else _0x5d502c['push'](_0x5d502c['shift']());}catch(_0x5c8002){_0x5d502c['push'](_0x5d502c['shift']());}}}(_0x2540,0xb67d7));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x43f8a5(0xee),'connected':'MCP\x20Connected','failed':_0x43f8a5(0xe9),'retrying':_0x43f8a5(0x109),'unknown':_0x43f8a5(0xfd),'unauthorized':_0x43f8a5(0xec),'sessionOccupied':_0x43f8a5(0xf0),'networkError':_0x43f8a5(0xfc),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x43f8a5(0x108),'clickToConfigure':_0x43f8a5(0x105)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x43f8a5(0xde),'apiKey':_0x43f8a5(0x103),'apiKeyPlaceholder':_0x43f8a5(0xe0),'apiKeyHint':_0x43f8a5(0x10f),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x43f8a5(0xea),'connectionInfo':_0x43f8a5(0x101),'mcpClientConfig':_0x43f8a5(0x101),'configInstructions':_0x43f8a5(0xf2),'configStepTitle':'Configuration\x20Steps:','configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x43f8a5(0x107),'configStep3':_0x43f8a5(0xe8),'sessionId':'Session\x20ID','sessionIdDescription':_0x43f8a5(0xfe),'authorizationDescription':_0x43f8a5(0xe3),'configParameters':_0x43f8a5(0x100),'maxRetries':_0x43f8a5(0x10c),'save':'Save\x20Configuration','saving':_0x43f8a5(0xdf),'note1':_0x43f8a5(0xe6),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x43f8a5(0xdd),'configError':_0x43f8a5(0x112),'apiApplyInfo':{'title':_0x43f8a5(0x10a),'description':_0x43f8a5(0xeb),'univerAiLabel':_0x43f8a5(0x104),'getStarted':_0x43f8a5(0xf9)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x43f8a5(0xef),'invalidConfig':_0x43f8a5(0x10e),'invalidApiKey':_0x43f8a5(0xe5)},'connectionStatus':{'disconnected':_0x43f8a5(0x10d),'connecting':_0x43f8a5(0xf5),'connected':_0x43f8a5(0xe1),'failed':_0x43f8a5(0xff),'retrying':_0x43f8a5(0xf4)},'connectionError':{'unauthorized':_0x43f8a5(0x10b),'sessionOccupied':_0x43f8a5(0xf6),'networkError':_0x43f8a5(0x111),'maxRetriesExceeded':_0x43f8a5(0xe7)}}},n=e;module[_0x43f8a5(0xfa)]=n;
|
package/lib/cjs/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const _0x391e9c=_0x18b3;function _0xf8ac(){const _0x584963=['Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Configuration\x20saved\x20successfully','Connecting...','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','12552FcKHyl','API\x20key\x20is\x20required','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Disconnected','MCP\x20Unknown\x20Status','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','API\x20key\x20with\x20Bearer\x20prefix.','Saving...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','364LHbSNo','exports','Univer\x20AI\x20Console','1716880zQjWFY','8bLTwjh','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Invalid\x20configuration','MCP:\x20Unauthorized','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP:\x20Session\x20ID\x20Occupied','Click\x20to\x20connect\x20MCP','Configuration\x20Steps:','Session\x20ID','MCP\x20Configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Copy\x20the\x20JSON\x20configuration\x20below','1662648pBZGpE','What\x20is\x20API\x20Key?','Failed\x20to\x20save\x20configuration','27doooiW','253620qJPPKe','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Connection\x20Failed','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Connected','MCP\x20Connecting...','7178500EyPulh','MCP\x20Client\x20Configuration','7836065ULsYLZ','MCP\x20Disconnected','Click\x20to\x20configure\x20MCP','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Connected','6479802xFcceh','Enable\x20authentication\x20for\x20secure\x20connections','Configuration\x20Parameters:'];_0xf8ac=function(){return _0x584963;};return _0xf8ac();}function _0x18b3(_0x19ce01,_0x35d3a8){_0x19ce01=_0x19ce01-0x15a;const _0xf8acbc=_0xf8ac();let _0x18b365=_0xf8acbc[_0x19ce01];return _0x18b365;}(function(_0xb6757,_0xf11a6c){const _0x2607c9=_0x18b3,_0xf70085=_0xb6757();while(!![]){try{const _0x499e39=-parseInt(_0x2607c9(0x185))/0x1+parseInt(_0x2607c9(0x189))/0x2+parseInt(_0x2607c9(0x16b))/0x3*(parseInt(_0x2607c9(0x174))/0x4)+parseInt(_0x2607c9(0x15e))/0x5+-parseInt(_0x2607c9(0x164))/0x6+parseInt(_0x2607c9(0x15c))/0x7*(parseInt(_0x2607c9(0x178))/0x8)+-parseInt(_0x2607c9(0x188))/0x9*(-parseInt(_0x2607c9(0x177))/0xa);if(_0x499e39===_0xf11a6c)break;else _0xf70085['push'](_0xf70085['shift']());}catch(_0x5337e0){_0xf70085['push'](_0xf70085['shift']());}}}(_0xf8ac,0xd510c));const e={'mcpStatus':{'disconnected':_0x391e9c(0x15f),'connecting':_0x391e9c(0x15b),'connected':_0x391e9c(0x163),'failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':_0x391e9c(0x16f),'unauthorized':_0x391e9c(0x17b),'sessionOccupied':_0x391e9c(0x17d),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x391e9c(0x162),'clickToConnect':_0x391e9c(0x17e),'clickToConfigure':_0x391e9c(0x160)},'mcpConfig':{'title':_0x391e9c(0x181),'description':_0x391e9c(0x161),'apiKey':'API\x20Key','apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x391e9c(0x17c),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x391e9c(0x165),'connectionInfo':_0x391e9c(0x15d),'mcpClientConfig':_0x391e9c(0x15d),'configInstructions':_0x391e9c(0x18c),'configStepTitle':_0x391e9c(0x17f),'configStep1':_0x391e9c(0x184),'configStep2':_0x391e9c(0x167),'configStep3':_0x391e9c(0x16d),'sessionId':_0x391e9c(0x180),'sessionIdDescription':_0x391e9c(0x179),'authorizationDescription':_0x391e9c(0x171),'configParameters':_0x391e9c(0x166),'maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x391e9c(0x172),'note1':_0x391e9c(0x182),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x391e9c(0x168),'configError':_0x391e9c(0x187),'apiApplyInfo':{'title':_0x391e9c(0x186),'description':_0x391e9c(0x16a),'univerAiLabel':_0x391e9c(0x176),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x391e9c(0x16c),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x391e9c(0x17a),'invalidApiKey':_0x391e9c(0x170)},'connectionStatus':{'disconnected':_0x391e9c(0x16e),'connecting':_0x391e9c(0x169),'connected':_0x391e9c(0x15a),'failed':_0x391e9c(0x18b),'retrying':'Retrying...'},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x391e9c(0x183),'networkError':_0x391e9c(0x173),'maxRetriesExceeded':_0x391e9c(0x18a)}}},n=e;module[_0x391e9c(0x175)]=n;
|
package/lib/cjs/locale/ja-JP.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x507425=_0x1a52;function _0x1a52(_0x5dbf37,_0x3d2d72){_0x5dbf37=_0x5dbf37-0x16f;const _0x4a2040=_0x4a20();let _0x1a5262=_0x4a2040[_0x5dbf37];return _0x1a5262;}(function(_0x2d9be2,_0x51f671){const _0xf915b6=_0x1a52,_0x307e17=_0x2d9be2();while(!![]){try{const _0xa5cdba=-parseInt(_0xf915b6(0x197))/0x1+parseInt(_0xf915b6(0x196))/0x2+-parseInt(_0xf915b6(0x187))/0x3+parseInt(_0xf915b6(0x193))/0x4*(-parseInt(_0xf915b6(0x195))/0x5)+parseInt(_0xf915b6(0x16f))/0x6*(-parseInt(_0xf915b6(0x18c))/0x7)+parseInt(_0xf915b6(0x182))/0x8+parseInt(_0xf915b6(0x181))/0x9;if(_0xa5cdba===_0x51f671)break;else _0x307e17['push'](_0x307e17['shift']());}catch(_0x32cf16){_0x307e17['push'](_0x307e17['shift']());}}}(_0x4a20,0x6f0d5));const e={'mcpStatus':{'disconnected':'MCP\x20未接続','connecting':'MCP\x20接続中...','connected':'MCP\x20接続済み','failed':_0x507425(0x191),'retrying':'MCP\x20再試行中...','unknown':'MCP\x20不明な状態','unauthorized':_0x507425(0x199),'sessionOccupied':_0x507425(0x186),'networkError':'MCP:\x20ネットワークエラー','maxRetriesExceeded':'MCP:\x20最大再試行回数を超過','clickToConnect':_0x507425(0x17b),'clickToConfigure':_0x507425(0x17f)},'mcpConfig':{'title':_0x507425(0x190),'description':_0x507425(0x189),'apiKey':'APIキー','apiKeyPlaceholder':_0x507425(0x184),'apiKeyHint':'APIキーはこのブラウザのローカルに保存されます','enableAuth':'認証を有効にする','enableAuthHint':'セキュアな接続のために認証を有効にする','connectionInfo':_0x507425(0x18e),'mcpClientConfig':_0x507425(0x18e),'configInstructions':'MCPクライアントの設定に次の設定を追加してください:','configStepTitle':_0x507425(0x170),'configStep1':_0x507425(0x18a),'configStep2':_0x507425(0x177),'configStep3':_0x507425(0x18b),'sessionId':'セッションID','sessionIdDescription':_0x507425(0x172),'authorizationDescription':_0x507425(0x176),'configParameters':_0x507425(0x178),'maxRetries':'最大再試行回数','save':'設定を保存','saving':_0x507425(0x179),'note1':_0x507425(0x17e),'note2':'APIキーはローカルストレージに安全に保存されます','configSaved':_0x507425(0x17a),'configError':'設定の保存に失敗しました','apiApplyInfo':{'title':_0x507425(0x19a),'description':_0x507425(0x180),'univerAiLabel':_0x507425(0x17d),'getStarted':_0x507425(0x188)},'validation':{'apiKeyRequired':_0x507425(0x175),'apiKeyTooShort':'APIキーは10文字以上である必要があります','invalidConfig':_0x507425(0x198),'invalidApiKey':_0x507425(0x173)},'connectionStatus':{'disconnected':_0x507425(0x171),'connecting':_0x507425(0x17c),'connected':_0x507425(0x194),'failed':_0x507425(0x18f),'retrying':_0x507425(0x174)},'connectionError':{'unauthorized':_0x507425(0x192),'sessionOccupied':'セッションIDが現在使用中です。後でもう一度お試しください','networkError':_0x507425(0x18d),'maxRetriesExceeded':_0x507425(0x185)}}};module[_0x507425(0x183)]=e;function _0x4a20(){const _0x2a836b=['MCP\x20接続失敗','認証に失敗しました。APIキーを確認してください','1180XjAtoi','接続済み','10655cHgKwu','1033996pwGJIh','295339hJSPCt','無効な設定','MCP:\x20認証されていません','APIキーとは?','2800086cICykO','設定手順:','未接続','一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','無効なAPIキーです。キーが正しいか確認してください','再試行中...','APIキーは必須です','Bearerプレフィックス付きのAPIキー。','MCPクライアントの設定ファイルに設定を追加','設定パラメータ:','保存中...','設定が正常に保存されました','クリックしてMCPに接続','接続中...','Univer\x20AIコンソール','設定の変更は直ちに有効になります','クリックしてMCPを設定','APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','13626621ffnOvN','2269448JQKkiC','exports','APIキーを入力してください','最大再試行回数を超過しました。後でもう一度お試しください','MCP:\x20セッションIDが使用中','1407642DTPcfR','数秒でAPIキーを取得','MCPを設定してAIでスプレッドシートを操作','以下のJSON設定をコピー','MCPクライアントを再起動して設定を適用','7Savfjj','ネットワーク接続エラー。インターネット接続を確認してください','MCPクライアント設定','接続失敗','MCP設定'];_0x4a20=function(){return _0x2a836b;};return _0x4a20();}
|