@univerjs-pro/mcp-ui 0.10.11-nightly.202510220308 → 0.10.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +7 -7
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var _0x473d95=_0x4a34;(function(_0x107689,_0x4c9617){var _0x500f6a=_0x4a34,_0x5cc58d=_0x107689();while(!![]){try{var _0x1aa6b5=-parseInt(_0x500f6a(0x359))/0x1*(-parseInt(_0x500f6a(0x34e))/0x2)+parseInt(_0x500f6a(0x24f))/0x3+-parseInt(_0x500f6a(0x2aa))/0x4+-parseInt(_0x500f6a(0x32a))/0x5+parseInt(_0x500f6a(0x28e))/0x6*(-parseInt(_0x500f6a(0x2e3))/0x7)+parseInt(_0x500f6a(0x200))/0x8+parseInt(_0x500f6a(0x26e))/0x9;if(_0x1aa6b5===_0x4c9617)break;else _0x5cc58d['push'](_0x5cc58d['shift']());}catch(_0x54a866){_0x5cc58d['push'](_0x5cc58d['shift']());}}}(_0x4d8e,0x25fc6));var ue=Object[_0x473d95(0x1f4)],le=(_0x375262,_0xfe19d,_0x2dc146)=>_0xfe19d in _0x375262?ue(_0x375262,_0xfe19d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2dc146}):_0x375262[_0xfe19d]=_0x2dc146,I=(_0x2c43f4,_0x3e7ba6,_0x52c6b9)=>le(_0x2c43f4,typeof _0x3e7ba6!=_0x473d95(0x327)?_0x3e7ba6+'':_0x3e7ba6,_0x52c6b9);Object[_0x473d95(0x1f4)](exports,Symbol[_0x473d95(0x303)],{'value':_0x473d95(0x211)});const l=require('@univerjs/core'),t=require('react/jsx-runtime'),s=require('@univerjs-pro/mcp'),S=require('@univerjs/design'),v=require('@univerjs/ui'),N=require('rxjs'),d=require('react'),A=require('@univerjs/network');var g=function(){var _0x44a2e6=_0x473d95;return g=Object[_0x44a2e6(0x34a)]||function(_0x295768){var _0x306e5d=_0x44a2e6;for(var _0x5a2f76,_0x132db3=0x1,_0x5d6548=arguments['length'];_0x132db3<_0x5d6548;_0x132db3++){_0x5a2f76=arguments[_0x132db3];for(var _0x42bd02 in _0x5a2f76)Object[_0x306e5d(0x23c)][_0x306e5d(0x248)][_0x306e5d(0x33f)](_0x5a2f76,_0x42bd02)&&(_0x295768[_0x42bd02]=_0x5a2f76[_0x42bd02]);}return _0x295768;},g[_0x44a2e6(0x2ca)](this,arguments);},ve=function(_0x503124,_0x4c5ecf){var _0x4d7259=_0x473d95,_0x18f13d={};for(var _0x49b8fa in _0x503124)Object[_0x4d7259(0x23c)][_0x4d7259(0x248)]['call'](_0x503124,_0x49b8fa)&&_0x4c5ecf[_0x4d7259(0x289)](_0x49b8fa)<0x0&&(_0x18f13d[_0x49b8fa]=_0x503124[_0x49b8fa]);if(_0x503124!=null&&typeof Object[_0x4d7259(0x234)]==_0x4d7259(0x2a6)){for(var _0x459d99=0x0,_0x49b8fa=Object[_0x4d7259(0x234)](_0x503124);_0x459d99<_0x49b8fa[_0x4d7259(0x213)];_0x459d99++)_0x4c5ecf[_0x4d7259(0x289)](_0x49b8fa[_0x459d99])<0x0&&Object[_0x4d7259(0x23c)][_0x4d7259(0x2cf)][_0x4d7259(0x33f)](_0x503124,_0x49b8fa[_0x459d99])&&(_0x18f13d[_0x49b8fa[_0x459d99]]=_0x503124[_0x49b8fa[_0x459d99]]);}return _0x18f13d;},_=d[_0x473d95(0x2ac)](function(_0x3e9ac0,_0x1f5f34){var _0x5c7932=_0x473d95,_0x52d284=_0x3e9ac0['icon'],_0x296c4b=_0x3e9ac0['id'],_0x4e7cc1=_0x3e9ac0[_0x5c7932(0x295)],_0x55a842=_0x3e9ac0[_0x5c7932(0x21b)],_0x3fe816=ve(_0x3e9ac0,[_0x5c7932(0x36e),'id',_0x5c7932(0x295),_0x5c7932(0x21b)]),_0x4a65ed=_0x5c7932(0x329)[_0x5c7932(0x31a)](_0x296c4b,'\x20')['concat'](_0x4e7cc1||'')[_0x5c7932(0x1f9)](),_0x371054=d[_0x5c7932(0x367)]('_'[_0x5c7932(0x31a)](ge()));return H(_0x52d284,''[_0x5c7932(0x31a)](_0x296c4b),{'defIds':_0x52d284[_0x5c7932(0x236)],'idSuffix':_0x371054[_0x5c7932(0x22e)]},g({'ref':_0x1f5f34,'className':_0x4a65ed},_0x3fe816),_0x55a842);});function H(_0x349385,_0x52cdce,_0x9a09e5,_0x1cfeb1,_0x289023){var _0x36bd37=_0x473d95;return d[_0x36bd37(0x374)](_0x349385[_0x36bd37(0x293)],g(g({'key':_0x52cdce},de(_0x349385,_0x9a09e5,_0x289023)),_0x1cfeb1),(Ce(_0x349385,_0x9a09e5)['children']||[])[_0x36bd37(0x35c)](function(_0x92a98b,_0x57c228){var _0x3b9433=_0x36bd37;return H(_0x92a98b,''[_0x3b9433(0x31a)](_0x52cdce,'-')[_0x3b9433(0x31a)](_0x349385[_0x3b9433(0x293)],'-')[_0x3b9433(0x31a)](_0x57c228),_0x9a09e5,void 0x0,_0x289023);}));}function de(_0x3a4bb6,_0x1a4ef1,_0x5d7639){var _0x29de01=_0x473d95,_0x53de3a=g({},_0x3a4bb6[_0x29de01(0x337)]);_0x5d7639!=null&&_0x5d7639[_0x29de01(0x2c9)]&&_0x53de3a[_0x29de01(0x2ab)]==='colorChannel1'&&(_0x53de3a[_0x29de01(0x2ab)]=_0x5d7639[_0x29de01(0x2c9)]),_0x3a4bb6[_0x29de01(0x293)]===_0x29de01(0x205)&&_0x53de3a['id']&&(_0x53de3a['id']=_0x53de3a['id']+_0x1a4ef1[_0x29de01(0x222)]),Object[_0x29de01(0x2fe)](_0x53de3a)[_0x29de01(0x30a)](function(_0x2f0e08){var _0x2d1230=_0x29de01,_0x145f0d=_0x2f0e08[0x0],_0x30797b=_0x2f0e08[0x1];_0x145f0d===_0x2d1230(0x205)&&typeof _0x30797b==_0x2d1230(0x252)&&(_0x53de3a[_0x145f0d]=_0x30797b[_0x2d1230(0x2fd)](/url\(#(.*)\)/,_0x2d1230(0x21a)[_0x2d1230(0x31a)](_0x1a4ef1[_0x2d1230(0x222)],')')));});var _0x5db201=_0x1a4ef1[_0x29de01(0x236)];return!_0x5db201||_0x5db201[_0x29de01(0x213)]===0x0||(_0x3a4bb6[_0x29de01(0x293)]==='use'&&_0x53de3a[_0x29de01(0x2a2)]&&(_0x53de3a['xlink:href']=_0x53de3a[_0x29de01(0x2a2)]+_0x1a4ef1[_0x29de01(0x222)]),Object[_0x29de01(0x2fe)](_0x53de3a)[_0x29de01(0x30a)](function(_0x5b8f04){var _0x52e5a2=_0x29de01,_0x447b1a=_0x5b8f04[0x0],_0x5c2195=_0x5b8f04[0x1];typeof _0x5c2195==_0x52e5a2(0x252)&&(_0x53de3a[_0x447b1a]=_0x5c2195['replace'](/url\(#(.*)\)/,_0x52e5a2(0x21a)[_0x52e5a2(0x31a)](_0x1a4ef1[_0x52e5a2(0x222)],')')));})),_0x53de3a;}function _0x4d8e(){var _0x5982cd=['show','配置更改将立即生效','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','jsx','trim','_logService','API\x20Key','mcpConfig.configInstructions','Configuration\x20saved\x20successfully','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','将以下配置添加到您的\x20MCP\x20客户端设置中:','933344rQnKyq','_commandService','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','MCP\x20配置','getOwnPropertyDescriptor','mask','children','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','API\x20密钥','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','pre','univer-flex-shrink-0\x20univer-text-red-500','Enable\x20authentication\x20for\x20secure\x20connections','pluginName','value','univer-flex\x20univer-items-start\x20univer-gap-3','enUS','Module','Connecting...','length','M0\x200H16V16H0z','mcpConfig.validation.apiKeyTooShort','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','sessionId$','MCP\x20已连接','ILocalStorageService','url(#$1','extend','div','M5.21243\x205.62036L11.8791\x2012.287','UniverIcon','ICommandService','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-h-6\x20univer-w-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','_localeService','idSuffix','close-small-single','getCurrentConfig','univer-text-gray-400','MCP\x20连接失败','IUIPartsService','Input','什么是\x20API\x20密钥?','_initConfigSync','LocaleService','MCP_UI_PLUGIN','mcpConfig.connectionError.sessionOccupied','current','mcpConfig.apiApplyInfo.getStarted','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','_createConfigPanelComponent','M5.21243\x2012.287L11.8791\x205.62036','mcpConfig.apiApplyInfo.description','getOwnPropertySymbols','Get\x20your\x20API\x20key\x20in\x20seconds','defIds','Session\x20ID','univer-flex\x20univer-flex-wrap\x20univer-gap-2','univer-text-red-500','_validateConfig','Bearer\x20','prototype','_loading$','MAX_RETRIES_EXCEEDED','off','Connected','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','mcpStatus.clickToConfigure','保存中...','univer-bg-blue-500','check-mark-icon','mcpStatus.failed','SESSION_ID_OCCUPIED','hasOwnProperty','MCP:\x20Unauthorized','univer_session_id:','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','MCP\x20Connection\x20Failed','MCP:\x20Network\x20Error','univer-flex\x20univer-items-center','552993WVJWoK','useState','MCP\x20Disconnected','string','FAILED','会话\x20ID\x20已被占用,请稍后再试','noopener\x20noreferrer','mcpStatus.retrying','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','zhCN','evenodd','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Connecting...','isValid','UniverMCPPlugin','mcpStatus.sessionOccupied','未连接','mcpStatus.unauthorized','NONE','displayName','MCPConnectionUIController','API\x20密钥不能为空','复制以下\x20JSON\x20配置','_initializeMenus','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密钥','mcpServerUrl','useCallback','Invalid\x20configuration','univer-mr-2\x20univer-flex\x20univer-text-xl','MenuIcon','3799953ZbLuzY','mcpConfig.configStep1','DISCONNECTED','univer-flex\x20univer-h-4\x20univer-w-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-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','BuiltInUIPart','mcpConfig.save','RETRYING','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','toString','_blank','Disposable','univer-min-w-0\x20univer-flex-1','mcpConfig.configStep2','MCP\x20Retrying...','Inject','off-line-icon','mcpConfig.apiKeyHint','univer.plus','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','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','BUTTON','defs','Failed\x20to\x20save\x20configuration','MCP:\x20未授权','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Success','indexOf','univer-text-green-500','registerCommand','subscribeConfigValue$','ILogService','2850ncyaKC','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','Click\x20to\x20connect\x20MCP','open','round','tag','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','className','mcpConfig.configSaved','MCPConnectionError','text','重启您的\x20MCP\x20客户端以使配置生效','MCP\x20客户端配置','http://www.w3.org/2000/svg','保存配置','mcpConfig.saving','mcp-ui.config','onStarting','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','univer-flex\x20univer-items-center\x20univer-gap-2','xlink:href','clsx','mcpConfig.apiKeyPlaceholder','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','function','connectionStatus$','Injector','MCP_PLUGIN_CONFIG_KEY','1110396fsNlWB','fill','forwardRef','MCP:\x20会话\x20ID\x20已被占用','univer-flex\x20univer-h-10\x20univer-w-10\x20univer-flex-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','univer-space-y-2','Button','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','registerComponent','mcpConfig.sessionIdDescription','substring','点击配置\x20MCP','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','MessageType','_menuManagerService','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','none','Max\x20Retries','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','MCPStatusDisplay','重连中...','univer-space-y-4','配置无效','mcpStatus.unknown','univer-font-medium','配置保存成功','IMessageService','RibbonStartGroup','warn','colorChannel1','apply','showDeveloperTools','UNAUTHORIZED','BehaviorSubject','Retrying...','propertyIsEnumerable','_config','_configService','Configuration\x20Steps:','apiKey','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x0a}','translate(.97)','_loadStoredApiKey','univer-text-xs\x20univer-text-gray-600','0\x200\x2016\x2016','mcpStatus.networkError','CONNECTING','您的\x20API\x20密钥将在此浏览器中本地存储','currentColor','_localStorageService','MCP:\x20Max\x20Retries\x20Exceeded','_injector','_uiPartsService','MenuItemType','3577QpnKlR','_initStatusComponent','MCP\x20Client\x20Configuration','includes','_connectionController','DependentOn','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','1em','setItem','COMMAND','univer-text-gray-500','ComponentManager','mcpConfig.title','useDependency','mcpStatus.maxRetriesExceeded','Authorization:','random','mcpConfig.apiApplyInfo.univerAiLabel','MCPConnectionController','jsxs','mcpStatus.disconnected','mcpConfig.configParameters','mcp-config-dialog','mcpConfig.connectionStatus.disconnected','配置保存失败','mcpConfig.connectionError.maxRetriesExceeded','replace','entries','univer-flex\x20univer-items-center\x20univer-gap-3','url(#on-line-icon_clip0_910_349)','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','网络连接错误,请检查您的网络连接','toStringTag','span','get','Univer\x20AI\x20Console','连接失败','Enter\x20your\x20API\x20key','MCPConnectionStatus','forEach','add','mcpConfig.connectionStatus.failed','mcpStatus.connecting','mcpConfig.connectionInfo','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','超出最大重试次数,请稍后再试','OTHERS','connectInjector','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','next','Error','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','showConfigPanel','MCPConfigUIController','Copy\x20the\x20JSON\x20configuration\x20below','concat','disposeWithMe','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','几秒钟内获取您的\x20API\x20密钥','error','已连接','Univer\x20AI\x20控制台','mcpConfig.connectionStatus.retrying','univer-flex\x20univer-items-start\x20univer-gap-2','启用身份验证以获得安全连接','配置步骤:','_initAutoConnect','API\x20密钥无效,请检查密钥是否正确','symbol','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-h-2\x20univer-w-2\x20univer-rounded-full\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','univerjs-icon\x20univerjs-icon-','1221115tTYSxT','univer-space-y-3','mcpStatus.connected','svg','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','\x22,\x0a\x20\x20\x20\x20\x20\x20\x22type\x22:\x20\x22http\x22,\x0a\x20\x20\x20\x20\x20\x20\x22headers\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22Authorization\x22:\x20\x22Bearer\x20','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','mcp.apiKey','MCP\x20已断开','API\x20key\x20with\x20Bearer\x20prefix.','_mcpConnectionController','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','white','attrs','connectionError$','MCPUIMenuController','clipPath','MCP\x20状态未知','univer-bg-red-500','_handleConfigSave','_apiKey$','call','ISocketService','权限验证失败,请检查您的\x20API\x20密钥','javascript:void(0)','off-line-icon_clip0_910_343','path','\x20-\x20','启用身份验证','_registerComponent','mcp-ui.command.openConfigPanel','_mcpCoreConfig$','assign','<API_KEY>','CommandType','mcpConfig.apiApplyInfo.title','382otexOC','getConfig','IConfigService','MCP\x20Connected','Close','univer-text-xs\x20univer-text-gray-500','register','Disconnected','univer-text-sm\x20univer-text-gray-500','useObservable','univer-flex-shrink-0\x20univer-text-blue-500','1031OhTFWG','_dialogService','mcpConfig.note1','map','MCP\x20重连中...','Saving...','close','MCPConfigPanel','UniverMCPUIPlugin','会话ID','validateApiKey','push','mcpConfig.authorizationDescription','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','useRef','CONNECTED','univer.ai','mcpConfig.apiKey','_config$','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','showStatus','icon','将配置添加到您的\x20MCP\x20客户端设置文件中','mcpConfig.configStep3','MCP:\x20网络错误','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','_componentManager','createElement','merge','配置\x20MCP\x20使用\x20AI\x20操作电子表格','has','_messageService','univer-text-yellow-500','removeItem','subscribe','MCP\x20Configuration','defineProperty'];_0x4d8e=function(){return _0x5982cd;};return _0x4d8e();}function Ce(_0x1dfd5c,_0x43afdf){var _0x3b89d8=_0x473d95,_0x55c887,_0x5439bc=_0x43afdf[_0x3b89d8(0x236)];return!_0x5439bc||_0x5439bc[_0x3b89d8(0x213)]===0x0?_0x1dfd5c:_0x1dfd5c['tag']==='defs'&&(!((_0x55c887=_0x1dfd5c['children'])===null||_0x55c887===void 0x0)&&_0x55c887[_0x3b89d8(0x213)])?g(g({},_0x1dfd5c),{'children':_0x1dfd5c[_0x3b89d8(0x206)]['map'](function(_0x119652){var _0x3c829c=_0x3b89d8;return typeof _0x119652[_0x3c829c(0x337)]['id']=='string'&&_0x5439bc&&_0x5439bc[_0x3c829c(0x2e6)](_0x119652[_0x3c829c(0x337)]['id'])?g(g({},_0x119652),{'attrs':g(g({},_0x119652['attrs']),{'id':_0x119652[_0x3c829c(0x337)]['id']+_0x43afdf[_0x3c829c(0x222)]})}):_0x119652;})}):_0x1dfd5c;}function ge(){var _0x262d19=_0x473d95;return Math[_0x262d19(0x2f3)]()[_0x262d19(0x277)](0x24)[_0x262d19(0x2b5)](0x2,0x8);}_[_0x473d95(0x262)]=_0x473d95(0x21e);var fe={'tag':_0x473d95(0x32d),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x473d95(0x2d9),'width':_0x473d95(0x2ea),'height':_0x473d95(0x2ea)},'children':[{'tag':_0x473d95(0x344),'attrs':{'fill':_0x473d95(0x2dd),'d':_0x473d95(0x282),'fillRule':_0x473d95(0x259),'clipRule':_0x473d95(0x259)}}]},B=d[_0x473d95(0x2ac)](function(_0x218590,_0x5b50c5){var _0x293d98=_0x473d95;return d['createElement'](_,Object[_0x293d98(0x34a)]({},_0x218590,{'id':_0x293d98(0x245),'ref':_0x5b50c5,'icon':fe}));});B[_0x473d95(0x262)]='CheckMarkIcon';var pe={'tag':_0x473d95(0x32d),'attrs':{'xmlns':_0x473d95(0x29b),'fill':_0x473d95(0x2bb),'viewBox':'0\x200\x2017\x2017','width':_0x473d95(0x2ea),'height':'1em'},'children':[{'tag':'path','attrs':{'stroke':_0x473d95(0x2dd),'d':_0x473d95(0x21d),'strokeLinecap':_0x473d95(0x292),'strokeLinejoin':_0x473d95(0x292),'strokeWidth':1.33}},{'tag':'path','attrs':{'stroke':_0x473d95(0x2dd),'d':_0x473d95(0x232),'strokeLinecap':_0x473d95(0x292),'strokeLinejoin':_0x473d95(0x292),'strokeWidth':1.33}}]},F=d[_0x473d95(0x2ac)](function(_0x12511a,_0x5cc73b){var _0x216de4=_0x473d95;return d['createElement'](_,Object[_0x216de4(0x34a)]({},_0x12511a,{'id':_0x216de4(0x223),'ref':_0x5cc73b,'icon':pe}));});F[_0x473d95(0x262)]='CloseSmallSingle';var he={'tag':_0x473d95(0x32d),'attrs':{'xmlns':_0x473d95(0x29b),'fill':_0x473d95(0x2bb),'viewBox':_0x473d95(0x2d9),'width':'1em','height':'1em'},'children':[{'tag':_0x473d95(0x344),'attrs':{'fill':_0x473d95(0x2dd),'d':_0x473d95(0x2b7)}},{'tag':'path','attrs':{'fill':_0x473d95(0x2dd),'d':'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'}},{'tag':_0x473d95(0x344),'attrs':{'fill':_0x473d95(0x2dd),'d':_0x473d95(0x366),'fillRule':_0x473d95(0x259),'clipRule':_0x473d95(0x259)}}]},Y=d['forwardRef'](function(_0x3ff9bc,_0xa5c236){var _0x538973=_0x473d95;return d[_0x538973(0x374)](_,Object[_0x538973(0x34a)]({},_0x3ff9bc,{'id':'help-single','ref':_0xa5c236,'icon':he}));});Y['displayName']='HelpSingle';var me={'tag':_0x473d95(0x32d),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x473d95(0x2bb),'viewBox':_0x473d95(0x2d9),'width':'1em','height':_0x473d95(0x2ea)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x473d95(0x344),'attrs':{'stroke':_0x473d95(0x2dd),'d':_0x473d95(0x28f),'strokeLinecap':_0x473d95(0x292),'strokeLinejoin':_0x473d95(0x292),'strokeWidth':1.2}}]},{'tag':_0x473d95(0x284),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x473d95(0x343)},'children':[{'tag':'path','attrs':{'fill':_0x473d95(0x336),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x473d95(0x343)]},q=d[_0x473d95(0x2ac)](function(_0x27a9bb,_0x510cf2){var _0x402f55=_0x473d95;return d[_0x402f55(0x374)](_,Object['assign']({},_0x27a9bb,{'id':_0x402f55(0x27e),'ref':_0x510cf2,'icon':me}));});function _0x4a34(_0x45087e,_0x146215){var _0x4d8e3d=_0x4d8e();return _0x4a34=function(_0x4a34ce,_0x3567e7){_0x4a34ce=_0x4a34ce-0x1ed;var _0x167293=_0x4d8e3d[_0x4a34ce];return _0x167293;},_0x4a34(_0x45087e,_0x146215);}q[_0x473d95(0x262)]='OffLineIcon';var xe={'tag':_0x473d95(0x32d),'attrs':{'xmlns':_0x473d95(0x29b),'fill':_0x473d95(0x2bb),'viewBox':'0\x200\x2017\x2016','width':_0x473d95(0x2ea),'height':_0x473d95(0x2ea)},'children':[{'tag':'g','attrs':{'clipPath':_0x473d95(0x300)},'children':[{'tag':_0x473d95(0x344),'attrs':{'stroke':_0x473d95(0x2dd),'d':_0x473d95(0x1fe),'strokeLinecap':_0x473d95(0x292),'strokeLinejoin':_0x473d95(0x292),'strokeWidth':1.2}}]},{'tag':_0x473d95(0x284),'attrs':{},'children':[{'tag':_0x473d95(0x33a),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x473d95(0x344),'attrs':{'fill':_0x473d95(0x336),'d':_0x473d95(0x214),'transform':_0x473d95(0x2d6)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},V=d[_0x473d95(0x2ac)](function(_0x18c308,_0x3941ba){var _0x568e88=_0x473d95;return d[_0x568e88(0x374)](_,Object[_0x568e88(0x34a)]({},_0x18c308,{'id':'on-line-icon','ref':_0x3941ba,'icon':xe}));});V[_0x473d95(0x262)]='OnLineIcon';function W(_0x557ca1){var _0x47ac6e=_0x473d95,_0xd794fb,_0xc5e74b;const {mcpCoreConfig:_0x4f4a0a,onSave:_0x53d079,loading:_0x1d56a3=!0x1,config:_0x155628,connectionStatus$:_0x34dda1,connectionError$:_0x16a036,currentApiKey$:_0x126421,currentSessionId$:_0x43d7a1}=_0x557ca1,_0x2b430=v[_0x47ac6e(0x2f0)](l[_0x47ac6e(0x22b)]),_0x194123=v[_0x47ac6e(0x357)](_0x34dda1,s[_0x47ac6e(0x309)][_0x47ac6e(0x270)]),_0xd943ce=v[_0x47ac6e(0x357)](_0x16a036,s['MCPConnectionError'][_0x47ac6e(0x261)]),_0x4e73eb=v[_0x47ac6e(0x357)](_0x43d7a1,''),_0x11dd7b=v[_0x47ac6e(0x357)](_0x126421,''),[_0xfa0805,_0x1374da]=d[_0x47ac6e(0x250)](_0x11dd7b||''),_0xa81421=!0x0,_0x13ca77=_0x155628[_0x47ac6e(0x2cb)]&&_0x4f4a0a['mcpServerUrl']&&(_0x4f4a0a[_0x47ac6e(0x269)][_0x47ac6e(0x2e6)](_0x47ac6e(0x280))||_0x4f4a0a[_0x47ac6e(0x269)][_0x47ac6e(0x2e6)](_0x47ac6e(0x369))),_0x370eea=(_0xd794fb=_0x4f4a0a[_0x47ac6e(0x269)])==null?void 0x0:_0xd794fb[_0x47ac6e(0x2e6)]('univer.plus'),_0x1fb456=(_0xc5e74b=_0x4f4a0a['mcpServerUrl'])==null?void 0x0:_0xc5e74b['includes'](_0x47ac6e(0x369)),_0x3bef90=_0x370eea?'https://console.univer.plus':'https://console.univer.ai',_0x260c8b=_0x155628[_0x47ac6e(0x2cb)]&&(_0x370eea||_0x1fb456),[_0x497357,_0x362fca]=d[_0x47ac6e(0x250)](!_0xfa0805[_0x47ac6e(0x1f9)]()),_0x580da0=(_0x26fa00,_0x542af2)=>{var _0x2e4f71=_0x47ac6e;if(_0x542af2===s[_0x2e4f71(0x297)][_0x2e4f71(0x2cc)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x26fa00){case s[_0x2e4f71(0x309)][_0x2e4f71(0x368)]:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case s[_0x2e4f71(0x309)][_0x2e4f71(0x2db)]:case s['MCPConnectionStatus'][_0x2e4f71(0x275)]:return _0x2e4f71(0x2d4);case s[_0x2e4f71(0x309)][_0x2e4f71(0x253)]:return _0x2e4f71(0x257);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x369705=(_0x3de4cb,_0x306331)=>{var _0x5b676a=_0x47ac6e;if(_0x306331===s['MCPConnectionError'][_0x5b676a(0x2cc)])return _0x5b676a(0x33c);switch(_0x3de4cb){case s[_0x5b676a(0x309)][_0x5b676a(0x368)]:return'univer-bg-green-500';case s['MCPConnectionStatus']['CONNECTING']:case s[_0x5b676a(0x309)][_0x5b676a(0x275)]:return _0x5b676a(0x244);case s[_0x5b676a(0x309)][_0x5b676a(0x253)]:return'univer-bg-red-500';default:return'univer-bg-gray-500';}},_0x29e04c=_0x1fe4cf=>{var _0x5b2c80=_0x47ac6e;switch(_0x1fe4cf){case s['MCPConnectionStatus'][_0x5b2c80(0x368)]:return _0x2b430['t']('mcpConfig.connectionStatus.connected');case s[_0x5b2c80(0x309)][_0x5b2c80(0x2db)]:return _0x2b430['t']('mcpConfig.connectionStatus.connecting');case s['MCPConnectionStatus'][_0x5b2c80(0x253)]:return _0x2b430['t'](_0x5b2c80(0x30c));case s['MCPConnectionStatus'][_0x5b2c80(0x275)]:return _0x2b430['t'](_0x5b2c80(0x321));default:return _0x2b430['t'](_0x5b2c80(0x2fa));}},_0x14083b=_0x326da1=>{var _0x442fad=_0x47ac6e;switch(_0x326da1){case s[_0x442fad(0x297)][_0x442fad(0x2cc)]:return _0x2b430['t']('mcpConfig.connectionError.unauthorized');case s[_0x442fad(0x297)][_0x442fad(0x247)]:return _0x2b430['t'](_0x442fad(0x22d));case s[_0x442fad(0x297)]['NETWORK_ERROR']:return _0x2b430['t']('mcpConfig.connectionError.networkError');case s[_0x442fad(0x297)][_0x442fad(0x23e)]:return _0x2b430['t'](_0x442fad(0x2fc));default:return'';}},_0xa3c963=d[_0x47ac6e(0x26a)](()=>{var _0x56e55e=_0x47ac6e;const _0x10fcb4={..._0x4f4a0a,'apiKey':_0xfa0805[_0x56e55e(0x1f9)](),'enableAuth':_0xa81421};_0x53d079(_0x10fcb4);},[_0x4f4a0a,_0xfa0805,_0xa81421,_0x53d079]),_0x3bf4f2=_0xfa0805[_0x47ac6e(0x1f9)]()[_0x47ac6e(0x213)]>0x0;return t[_0x47ac6e(0x2f6)]('div',{'className':_0x47ac6e(0x294),'children':[t[_0x47ac6e(0x1f8)](_0x47ac6e(0x21c),{'className':_0x47ac6e(0x2be),'children':t[_0x47ac6e(0x2f6)]('div',{'className':_0x47ac6e(0x2ff),'children':[t[_0x47ac6e(0x1f8)]('div',{'className':'univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','children':t[_0x47ac6e(0x1f8)]('span',{'className':'univer-text-white','children':'⚙'})}),t[_0x47ac6e(0x1f8)](_0x47ac6e(0x21c),{'children':t[_0x47ac6e(0x1f8)]('p',{'className':_0x47ac6e(0x356),'children':_0x2b430['t']('mcpConfig.description')})})]})}),t[_0x47ac6e(0x2f6)](_0x47ac6e(0x21c),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[t['jsx'](_0x47ac6e(0x21c),{'className':_0x47ac6e(0x301)+_0x580da0(_0x194123,_0xd943ce)+_0x47ac6e(0x372),'children':t[_0x47ac6e(0x2f6)](_0x47ac6e(0x21c),{'className':_0x47ac6e(0x2a1),'children':[t['jsx'](_0x47ac6e(0x21c),{'className':_0x47ac6e(0x328)+_0x369705(_0x194123,_0xd943ce)+_0x47ac6e(0x30f)}),t[_0x47ac6e(0x1f8)](_0x47ac6e(0x304),{'className':'univer-text-sm\x20univer-font-medium','children':_0x29e04c(_0x194123)})]})}),_0xd943ce!==s[_0x47ac6e(0x297)][_0x47ac6e(0x261)]&&(_0x194123===s[_0x47ac6e(0x309)]['FAILED']||_0xd943ce===s[_0x47ac6e(0x297)][_0x47ac6e(0x2cc)])&&t[_0x47ac6e(0x1f8)](_0x47ac6e(0x21c),{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':t[_0x47ac6e(0x2f6)](_0x47ac6e(0x21c),{'className':_0x47ac6e(0x322),'children':[t[_0x47ac6e(0x1f8)]('span',{'className':_0x47ac6e(0x20b),'children':'⚠️'}),t['jsx']('p',{'className':_0x47ac6e(0x2bd),'children':_0x14083b(_0xd943ce)})]})})]}),t[_0x47ac6e(0x1f8)](_0x47ac6e(0x21c),{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':t[_0x47ac6e(0x2f6)](_0x47ac6e(0x21c),{'className':'univer-space-y-5','children':[t[_0x47ac6e(0x2f6)](_0x47ac6e(0x21c),{'className':_0x47ac6e(0x2b0),'children':[t['jsxs']('label',{'className':_0x47ac6e(0x2a5),'children':[t[_0x47ac6e(0x1f8)](_0x47ac6e(0x304),{'children':'🔑'}),'\x20',_0x2b430['t'](_0x47ac6e(0x36a)),t[_0x47ac6e(0x1f8)](_0x47ac6e(0x304),{'className':_0x47ac6e(0x239),'children':'*'}),_0x13ca77&&t[_0x47ac6e(0x1f8)]('a',{'href':_0x47ac6e(0x342),'onClick':()=>_0x362fca(!0x0),'className':'univer-ml-1\x20univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','title':_0x2b430['t'](_0x47ac6e(0x34d)),'children':t[_0x47ac6e(0x1f8)](Y,{})})]}),t[_0x47ac6e(0x1f8)](S[_0x47ac6e(0x228)],{'type':_0x47ac6e(0x298),'placeholder':_0x2b430['t'](_0x47ac6e(0x2a4)),'value':_0xfa0805,'onChange':_0x1374da,'disabled':_0x1d56a3,'autoComplete':_0x47ac6e(0x23f)}),t[_0x47ac6e(0x1f8)]('p',{'className':_0x47ac6e(0x353),'children':_0x2b430['t'](_0x47ac6e(0x27f))})]}),_0x13ca77&&_0x497357&&t[_0x47ac6e(0x2f6)](_0x47ac6e(0x21c),{'className':_0x47ac6e(0x2a0),'children':[t[_0x47ac6e(0x1f8)]('a',{'href':_0x47ac6e(0x342),'onClick':()=>_0x362fca(!0x1),'className':_0x47ac6e(0x220),'title':_0x47ac6e(0x352),'children':t[_0x47ac6e(0x1f8)](F,{})}),t[_0x47ac6e(0x2f6)]('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[t['jsx'](_0x47ac6e(0x21c),{'className':_0x47ac6e(0x2ae),'children':t['jsx']('span',{'className':'univer-text-blue-600','children':'🚀'})}),t[_0x47ac6e(0x2f6)](_0x47ac6e(0x21c),{'className':'univer-flex-1','children':[t['jsx']('h4',{'className':_0x47ac6e(0x316),'children':_0x2b430['t'](_0x47ac6e(0x34d))}),t[_0x47ac6e(0x1f8)]('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x2b430['t'](_0x47ac6e(0x233))}),t[_0x47ac6e(0x1f8)]('div',{'className':_0x47ac6e(0x238),'children':_0x260c8b&&t[_0x47ac6e(0x2f6)]('a',{'href':_0x3bef90,'target':_0x47ac6e(0x278),'rel':_0x47ac6e(0x255),'className':_0x47ac6e(0x1f7),'children':[t[_0x47ac6e(0x1f8)](_0x47ac6e(0x304),{'children':'🤖'}),_0x2b430['t'](_0x47ac6e(0x2f4)),t[_0x47ac6e(0x1f8)](_0x47ac6e(0x304),{'className':_0x47ac6e(0x225),'children':'↗'})]})}),t['jsxs']('div',{'className':_0x47ac6e(0x2af),'children':['✨','\x20',_0x2b430['t'](_0x47ac6e(0x22f))]})]})]})]}),_0x155628[_0x47ac6e(0x2cb)]&&t['jsxs'](_0x47ac6e(0x21c),{'className':_0x47ac6e(0x2e9),'children':[t[_0x47ac6e(0x2f6)]('h4',{'className':_0x47ac6e(0x202),'children':[t['jsx'](_0x47ac6e(0x304),{'children':'🔗'}),'\x20',_0x2b430['t'](_0x47ac6e(0x30e))]}),t[_0x47ac6e(0x2f6)](_0x47ac6e(0x21c),{'className':_0x47ac6e(0x2c1),'children':[t['jsxs'](_0x47ac6e(0x21c),{'className':_0x47ac6e(0x32b),'children':[t[_0x47ac6e(0x1f8)]('p',{'className':_0x47ac6e(0x2d8),'children':_0x2b430['t'](_0x47ac6e(0x1fc))}),t[_0x47ac6e(0x2f6)]('div',{'className':_0x47ac6e(0x2b0),'children':[t[_0x47ac6e(0x1f8)](_0x47ac6e(0x21c),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x2b430['t']('mcpConfig.configStepTitle')}),t[_0x47ac6e(0x2f6)](_0x47ac6e(0x21c),{'className':_0x47ac6e(0x313),'children':[t[_0x47ac6e(0x2f6)](_0x47ac6e(0x21c),{'className':_0x47ac6e(0x2a1),'children':[t[_0x47ac6e(0x1f8)]('span',{'className':'univer-flex\x20univer-h-4\x20univer-w-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'}),_0x2b430['t'](_0x47ac6e(0x26f))]}),t[_0x47ac6e(0x2f6)](_0x47ac6e(0x21c),{'className':_0x47ac6e(0x2a1),'children':[t[_0x47ac6e(0x1f8)](_0x47ac6e(0x304),{'className':'univer-flex\x20univer-h-4\x20univer-w-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'}),_0x2b430['t'](_0x47ac6e(0x27b))]}),t[_0x47ac6e(0x2f6)]('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[t[_0x47ac6e(0x1f8)](_0x47ac6e(0x304),{'className':_0x47ac6e(0x271),'children':'3'}),_0x2b430['t'](_0x47ac6e(0x370))]})]})]})]}),t[_0x47ac6e(0x2f6)](_0x47ac6e(0x21c),{'className':_0x47ac6e(0x2b0),'children':[t[_0x47ac6e(0x1f8)](_0x47ac6e(0x21c),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x47ac6e(0x1f3)}),t['jsx']('div',{'className':_0x47ac6e(0x2ba),'children':t[_0x47ac6e(0x1f8)](_0x47ac6e(0x20a),{'className':_0x47ac6e(0x209),'children':'{\x0a\x20\x20\x22mcpServers\x22:\x20{\x0a\x20\x20\x20\x20\x22univer\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x22url\x22:\x20\x22https://mcp.univer.ai/mcp/?univer_session_id='+_0x4e73eb+_0x47ac6e(0x32f)+(_0xfa0805||_0x47ac6e(0x34b))+_0x47ac6e(0x2d5)})})]}),t[_0x47ac6e(0x2f6)](_0x47ac6e(0x21c),{'className':'univer-space-y-3','children':[t[_0x47ac6e(0x1f8)](_0x47ac6e(0x21c),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x2b430['t'](_0x47ac6e(0x2f8))}),t[_0x47ac6e(0x2f6)](_0x47ac6e(0x21c),{'className':_0x47ac6e(0x2b0),'children':[t[_0x47ac6e(0x2f6)](_0x47ac6e(0x21c),{'className':_0x47ac6e(0x20f),'children':[t['jsx'](_0x47ac6e(0x21c),{'className':_0x47ac6e(0x330)}),t[_0x47ac6e(0x2f6)]('div',{'className':'univer-min-w-0\x20univer-flex-1','children':[t[_0x47ac6e(0x1f8)](_0x47ac6e(0x21c),{'className':_0x47ac6e(0x31c),'children':_0x47ac6e(0x24a)}),t['jsx'](_0x47ac6e(0x21c),{'className':_0x47ac6e(0x353),'children':_0x2b430['t'](_0x47ac6e(0x2b4))})]})]}),t['jsxs']('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[t[_0x47ac6e(0x1f8)](_0x47ac6e(0x21c),{'className':_0x47ac6e(0x330)}),t[_0x47ac6e(0x2f6)](_0x47ac6e(0x21c),{'className':_0x47ac6e(0x27a),'children':[t[_0x47ac6e(0x1f8)]('div',{'className':_0x47ac6e(0x31c),'children':_0x47ac6e(0x2f2)}),t[_0x47ac6e(0x1f8)](_0x47ac6e(0x21c),{'className':_0x47ac6e(0x353),'children':_0x2b430['t'](_0x47ac6e(0x365))})]})]})]})]})]})]}),t[_0x47ac6e(0x1f8)](S[_0x47ac6e(0x2b1)],{'onClick':_0xa3c963,'disabled':!_0x3bf4f2||_0x1d56a3,'className':_0x47ac6e(0x272),'children':_0x1d56a3?t[_0x47ac6e(0x2f6)]('span',{'className':_0x47ac6e(0x2a1),'children':[t[_0x47ac6e(0x1f8)](_0x47ac6e(0x304),{'children':'⟲'}),_0x2b430['t'](_0x47ac6e(0x29d))]}):t[_0x47ac6e(0x2f6)](_0x47ac6e(0x304),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[t[_0x47ac6e(0x1f8)](B,{}),_0x2b430['t'](_0x47ac6e(0x274))]})}),t[_0x47ac6e(0x1f8)]('div',{'className':_0x47ac6e(0x207),'children':t['jsxs']('div',{'className':'univer-flex\x20univer-gap-3','children':[t['jsx'](_0x47ac6e(0x304),{'className':_0x47ac6e(0x358),'children':'💡'}),t['jsxs'](_0x47ac6e(0x21c),{'className':_0x47ac6e(0x281),'children':[t['jsx'](_0x47ac6e(0x21c),{'className':_0x47ac6e(0x2c4),'children':'Configuration\x20Notes:'}),t[_0x47ac6e(0x2f6)](_0x47ac6e(0x21c),{'children':['•',_0x2b430['t'](_0x47ac6e(0x35b))]}),t[_0x47ac6e(0x2f6)](_0x47ac6e(0x21c),{'children':['•',_0x2b430['t']('mcpConfig.note2')]})]})]})})]})})]});}const y=_0x473d95(0x29e),G={'showDeveloperTools':!0x1,'showStatus':!0x0};var Se=Object[_0x473d95(0x204)],Pe=(_0x32d817,_0x2e1b4e,_0x23fa96,_0x76599d)=>{var _0x26f15f=_0x473d95;for(var _0x14609b=_0x76599d>0x1?void 0x0:_0x76599d?Se(_0x2e1b4e,_0x23fa96):_0x2e1b4e,_0x2b1284=_0x32d817[_0x26f15f(0x213)]-0x1,_0x55b371;_0x2b1284>=0x0;_0x2b1284--)(_0x55b371=_0x32d817[_0x2b1284])&&(_0x14609b=_0x55b371(_0x14609b)||_0x14609b);return _0x14609b;},f=(_0x14639b,_0x2a2289)=>(_0x3abb9e,_0x1585a1)=>_0x2a2289(_0x3abb9e,_0x1585a1,_0x14639b);const D=_0x473d95(0x331),k=_0x473d95(0x2f9);exports[_0x473d95(0x318)]=class extends l[_0x473d95(0x279)]{constructor(_0x509ce6,_0x3f1ddf,_0x46140f,_0x526c54,_0x3e221b,_0x480b6c,_0x3c80a5,_0x55d345,_0x3ed435,_0x28d97f){var _0xb0d246=_0x473d95;super(),I(this,_0xb0d246(0x23d),new N[(_0xb0d246(0x2cd))](!0x1)),I(this,_0xb0d246(0x349),new N[(_0xb0d246(0x2cd))]({})),I(this,_0xb0d246(0x36b),new N[(_0xb0d246(0x2cd))]({})),I(this,_0xb0d246(0x33e),new N[(_0xb0d246(0x2cd))]('')),I(this,_0xb0d246(0x33d),async _0x36abb0=>{var _0x1fc0ef=_0xb0d246,_0x5d91d0,_0x41a53c;this['_loading$'][_0x1fc0ef(0x314)](!0x0);try{const _0xd5739a=await this[_0x1fc0ef(0x23a)](_0x36abb0);if(!_0xd5739a[_0x1fc0ef(0x25c)]){this[_0x1fc0ef(0x1ef)][_0x1fc0ef(0x1f5)]({'type':S[_0x1fc0ef(0x2b8)]['Error'],'content':_0xd5739a['errorMessage']||this[_0x1fc0ef(0x221)]['t']('mcpConfig.validation.invalidConfig')});return;}_0x36abb0['apiKey']?await this[_0x1fc0ef(0x2de)][_0x1fc0ef(0x2eb)](D,_0x36abb0[_0x1fc0ef(0x2d3)][_0x1fc0ef(0x1f9)]()):await this[_0x1fc0ef(0x2de)][_0x1fc0ef(0x1f1)](D),this[_0x1fc0ef(0x33e)][_0x1fc0ef(0x314)](((_0x5d91d0=_0x36abb0[_0x1fc0ef(0x2d3)])==null?void 0x0:_0x5d91d0[_0x1fc0ef(0x1f9)]())||''),this['_mcpConnectionController']['__setCustomHeaders']({'Authorization':'Bearer\x20'+((_0x41a53c=_0x36abb0[_0x1fc0ef(0x2d3)])==null?void 0x0:_0x41a53c[_0x1fc0ef(0x1f9)]())}),this['_messageService'][_0x1fc0ef(0x1f5)]({'type':S['MessageType'][_0x1fc0ef(0x288)],'content':this[_0x1fc0ef(0x221)]['t'](_0x1fc0ef(0x296))}),setTimeout(()=>{var _0x2166a3=_0x1fc0ef;this[_0x2166a3(0x35a)][_0x2166a3(0x35f)](k);},0x320);}catch(_0x45be63){this[_0x1fc0ef(0x1fa)][_0x1fc0ef(0x31e)]('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x45be63),this[_0x1fc0ef(0x1ef)][_0x1fc0ef(0x1f5)]({'type':S[_0x1fc0ef(0x2b8)][_0x1fc0ef(0x315)],'content':this[_0x1fc0ef(0x221)]['t']('mcpConfig.configError')});}finally{this[_0x1fc0ef(0x23d)][_0x1fc0ef(0x314)](!0x1);}}),(this['_injector']=_0x509ce6,this[_0xb0d246(0x2e1)]=_0x3f1ddf,this[_0xb0d246(0x2d1)]=_0x46140f,this[_0xb0d246(0x2de)]=_0x526c54,this[_0xb0d246(0x35a)]=_0x3e221b,this['_messageService']=_0x480b6c,this['_componentManager']=_0x3c80a5,this[_0xb0d246(0x221)]=_0x55d345,this[_0xb0d246(0x1fa)]=_0x3ed435,this[_0xb0d246(0x334)]=_0x28d97f,this[_0xb0d246(0x22a)](),this[_0xb0d246(0x2d7)](),this[_0xb0d246(0x347)]());}[_0x473d95(0x317)](){var _0x143a42=_0x473d95;const _0x1372ee=this['_configService']['getConfig'](y);_0x1372ee!=null&&_0x1372ee[_0x143a42(0x2cb)]&&this['_dialogService'][_0x143a42(0x291)]({'id':k,'title':{'title':this[_0x143a42(0x221)]['t'](_0x143a42(0x2ef))},'children':{'label':_0x143a42(0x360)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0x18b4c8=_0x143a42;this[_0x18b4c8(0x35a)][_0x18b4c8(0x35f)](k);}});}[_0x473d95(0x224)](){var _0x9f67c=_0x473d95;return this[_0x9f67c(0x349)][_0x9f67c(0x20e)];}[_0x473d95(0x347)](){var _0x56fbf2=_0x473d95;this['disposeWithMe'](this[_0x56fbf2(0x373)][_0x56fbf2(0x354)](_0x56fbf2(0x360),this[_0x56fbf2(0x231)]()));}[_0x473d95(0x231)](){var _0x422bb7=_0x473d95;return v[_0x422bb7(0x312)](()=>{var _0x3ee59c=_0x422bb7,_0x40e474,_0x3178e1,_0x2e23c1;return t[_0x3ee59c(0x1f8)](W,{'config':this[_0x3ee59c(0x36b)]['value'],'mcpCoreConfig':this[_0x3ee59c(0x349)][_0x3ee59c(0x20e)],'currentApiKey$':this[_0x3ee59c(0x33e)],'onSave':this[_0x3ee59c(0x33d)],'loading':this['_loading$']['value'],'connectionStatus$':(_0x40e474=this[_0x3ee59c(0x334)])==null?void 0x0:_0x40e474['connectionStatus$'],'connectionError$':(_0x3178e1=this[_0x3ee59c(0x334)])==null?void 0x0:_0x3178e1[_0x3ee59c(0x338)],'currentSessionId$':(_0x2e23c1=this[_0x3ee59c(0x334)])==null?void 0x0:_0x2e23c1[_0x3ee59c(0x217)]});},this[_0x422bb7(0x2e0)]);}['_initConfigSync'](){var _0x1d0b25=_0x473d95;this[_0x1d0b25(0x31b)](this[_0x1d0b25(0x2d1)][_0x1d0b25(0x28c)](s[_0x1d0b25(0x2a9)])[_0x1d0b25(0x1f2)](_0x10578f=>{this['_mcpCoreConfig$']['next'](_0x10578f||{});}));const _0x1fccb1=this[_0x1d0b25(0x2d1)][_0x1d0b25(0x34f)](s[_0x1d0b25(0x2a9)]);this[_0x1d0b25(0x349)][_0x1d0b25(0x314)](_0x1fccb1||{}),this[_0x1d0b25(0x31b)](this[_0x1d0b25(0x2d1)]['subscribeConfigValue$'](y)['subscribe'](_0x325aa5=>{var _0x37c920=_0x1d0b25;this[_0x37c920(0x36b)]['next'](_0x325aa5||{});}));const _0x46b3da=this['_configService'][_0x1d0b25(0x34f)](y);this[_0x1d0b25(0x36b)][_0x1d0b25(0x314)](_0x46b3da||{});}async['_loadStoredApiKey'](){var _0x52c098=_0x473d95;const _0x2c7742=this[_0x52c098(0x2d1)][_0x52c098(0x34f)](y);if(!(_0x2c7742!=null&&_0x2c7742['showDeveloperTools']))return;const _0x267220=await this['_localStorageService']['getItem'](D);_0x267220&&(this[_0x52c098(0x334)]['__setCustomHeaders']({'Authorization':_0x52c098(0x23b)+_0x267220}),this['_apiKey$']['next'](_0x267220));}async[_0x473d95(0x23a)](_0xeb3772){var _0x4a3fd8=_0x473d95;if(!_0xeb3772[_0x4a3fd8(0x2d3)]||_0xeb3772[_0x4a3fd8(0x2d3)][_0x4a3fd8(0x1f9)]()[_0x4a3fd8(0x213)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x4a3fd8(0x221)]['t']('mcpConfig.validation.apiKeyRequired')};if(_0xeb3772[_0x4a3fd8(0x2d3)]['trim']()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0x4a3fd8(0x221)]['t'](_0x4a3fd8(0x215))};try{const _0x2b96fc=await this[_0x4a3fd8(0x2e0)][_0x4a3fd8(0x305)](s[_0x4a3fd8(0x2f5)])[_0x4a3fd8(0x363)](_0xeb3772[_0x4a3fd8(0x2d3)][_0x4a3fd8(0x1f9)]());return _0x2b96fc['isValid']?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x2b96fc[_0x4a3fd8(0x31e)]||this[_0x4a3fd8(0x221)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x49edfa){return console[_0x4a3fd8(0x2c8)]('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0x49edfa),{'isValid':!0x0};}}},exports[_0x473d95(0x318)]=Pe([f(0x0,l[_0x473d95(0x27d)](l['Injector'])),f(0x1,v[_0x473d95(0x227)]),f(0x2,l['IConfigService']),f(0x3,l[_0x473d95(0x219)]),f(0x4,v['IDialogService']),f(0x5,v[_0x473d95(0x2c6)]),f(0x6,l[_0x473d95(0x27d)](v[_0x473d95(0x2ee)])),f(0x7,l['Inject'](l[_0x473d95(0x22b)])),f(0x8,l[_0x473d95(0x28d)]),f(0x9,l[_0x473d95(0x27d)](s['MCPConnectionController']))],exports[_0x473d95(0x318)]);const j={'id':_0x473d95(0x348),'type':l[_0x473d95(0x34c)][_0x473d95(0x2ec)],'handler':async(_0x25fcb6,_0x1d77f3)=>(_0x25fcb6[_0x473d95(0x305)](exports[_0x473d95(0x318)])[_0x473d95(0x317)](),!0x0)};function Z(_0x538959,_0x1e316c){var _0xda1ad5=_0x473d95;switch(_0x538959){case s['MCPConnectionStatus'][_0xda1ad5(0x270)]:return _0xda1ad5(0x2f7);case s['MCPConnectionStatus'][_0xda1ad5(0x2db)]:return _0xda1ad5(0x30d);case s['MCPConnectionStatus'][_0xda1ad5(0x368)]:return _0xda1ad5(0x32c);case s['MCPConnectionStatus'][_0xda1ad5(0x253)]:switch(_0x1e316c){case s[_0xda1ad5(0x297)][_0xda1ad5(0x2cc)]:return _0xda1ad5(0x260);case s[_0xda1ad5(0x297)][_0xda1ad5(0x247)]:return _0xda1ad5(0x25e);case s[_0xda1ad5(0x297)]['NETWORK_ERROR']:return _0xda1ad5(0x2da);case s['MCPConnectionError'][_0xda1ad5(0x23e)]:return _0xda1ad5(0x2f1);default:return _0xda1ad5(0x246);}case s[_0xda1ad5(0x309)][_0xda1ad5(0x275)]:return _0xda1ad5(0x256);default:return _0xda1ad5(0x2c3);}}function ye(_0x1c0cdf,_0x115691,_0x2d01d5,_0x23ae61=!0x0){var _0x52fcc1=_0x473d95;const _0x2d5ce9=Z(_0x1c0cdf,_0x115691),_0x2055e1=_0x2d01d5['t'](_0x2d5ce9);return _0x23ae61?_0x1c0cdf===s['MCPConnectionStatus'][_0x52fcc1(0x270)]&&_0x115691===s[_0x52fcc1(0x297)][_0x52fcc1(0x2cc)]?_0x2055e1+'\x20-\x20'+_0x2d01d5['t'](_0x52fcc1(0x242)):_0x1c0cdf===s['MCPConnectionStatus'][_0x52fcc1(0x368)]?''+_0x2055e1:_0x1c0cdf===s['MCPConnectionStatus'][_0x52fcc1(0x270)]||_0x1c0cdf===s[_0x52fcc1(0x309)][_0x52fcc1(0x253)]?_0x2055e1+_0x52fcc1(0x345)+_0x2d01d5['t']('mcpStatus.clickToConnect'):_0x2055e1:_0x2055e1;}function Ie(_0x3154c9){var _0x4d8003=_0x473d95;switch(_0x3154c9){case s[_0x4d8003(0x309)][_0x4d8003(0x368)]:return _0x4d8003(0x28a);case s['MCPConnectionStatus'][_0x4d8003(0x2db)]:case s[_0x4d8003(0x309)][_0x4d8003(0x275)]:return _0x4d8003(0x1f0);case s[_0x4d8003(0x309)][_0x4d8003(0x253)]:case s['MCPConnectionStatus'][_0x4d8003(0x270)]:return _0x4d8003(0x239);default:return _0x4d8003(0x2ed);}}function X(_0x135e89){var _0xc84f82=_0x473d95;const {status$:_0x164400,error$:_0x23ed23,onConfigure:_0x45fbe6,showClickable:_0x567e1a=!0x0}=_0x135e89,_0x4363f8=v['useObservable'](_0x164400,s['MCPConnectionStatus'][_0xc84f82(0x270)]),_0x38e426=v[_0xc84f82(0x357)](_0x23ed23,s[_0xc84f82(0x297)][_0xc84f82(0x261)]),_0x47453c=v['useDependency'](l[_0xc84f82(0x22b)]),_0x1a6511=_0x4363f8===s[_0xc84f82(0x309)][_0xc84f82(0x368)];_0x4363f8===s[_0xc84f82(0x309)][_0xc84f82(0x2db)]||s['MCPConnectionStatus']['RETRYING'];const _0x40303d=_0x47453c['t'](Z(_0x4363f8,_0x38e426)),_0x12bd98=ye(_0x4363f8,_0x38e426,_0x47453c,_0x567e1a),_0x590e00=Ie(_0x4363f8),_0x3ae570=_0x1a6511?t[_0xc84f82(0x1f8)](V,{}):t[_0xc84f82(0x1f8)](q,{}),_0x366423=d[_0xc84f82(0x26a)](()=>{_0x567e1a&&_0x45fbe6&&_0x45fbe6();},[_0x567e1a,_0x45fbe6]);function _0x594b96(){var _0x53f36b=_0xc84f82;return t['jsxs'](_0x53f36b(0x21c),{'className':S[_0x53f36b(0x2a3)](_0x53f36b(0x24e),_0x567e1a&&_0x45fbe6&&_0x53f36b(0x24b)),'onClick':_0x567e1a&&_0x45fbe6?_0x366423:void 0x0,'children':[t['jsx'](_0x53f36b(0x21c),{'className':S[_0x53f36b(0x2a3)](_0x53f36b(0x26c),_0x590e00),'children':_0x3ae570}),t[_0x53f36b(0x1f8)](_0x53f36b(0x21c),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x40303d})]});}return t[_0xc84f82(0x1f8)](S['Tooltip'],{'title':_0x12bd98,'placement':'bottom','children':_0x594b96()});}var _e=Object[_0x473d95(0x204)],Me=(_0x8dcc98,_0xac2f31,_0x110398,_0x2738a0)=>{var _0xd3800a=_0x473d95;for(var _0x5b026c=_0x2738a0>0x1?void 0x0:_0x2738a0?_e(_0xac2f31,_0x110398):_0xac2f31,_0x4d343b=_0x8dcc98[_0xd3800a(0x213)]-0x1,_0x408d21;_0x4d343b>=0x0;_0x4d343b--)(_0x408d21=_0x8dcc98[_0x4d343b])&&(_0x5b026c=_0x408d21(_0x5b026c)||_0x5b026c);return _0x5b026c;},b=(_0x57c59e,_0x44df0a)=>(_0x250b9a,_0x4a763c)=>_0x44df0a(_0x250b9a,_0x4a763c,_0x57c59e);exports[_0x473d95(0x263)]=class extends l[_0x473d95(0x279)]{constructor(_0x5afa38,_0x1af7d6,_0x232c42,_0x5f0a70){var _0x16911e=_0x473d95;super(),this[_0x16911e(0x2e0)]=_0x5afa38,this[_0x16911e(0x2e7)]=_0x1af7d6,this[_0x16911e(0x2e1)]=_0x232c42,this[_0x16911e(0x2d1)]=_0x5f0a70,this[_0x16911e(0x325)](),this[_0x16911e(0x2e4)]();}['_initAutoConnect'](){var _0x1f0273=_0x473d95;const _0x31f6fe=this['_configService'][_0x1f0273(0x34f)](y);_0x31f6fe!=null&&_0x31f6fe[_0x1f0273(0x2cb)]&&(this[_0x1f0273(0x2e7)]['enableAutoConnect']=!0x1);}[_0x473d95(0x2e4)](){var _0x34d5f5=_0x473d95;const _0x89c3fe=this['_configService'][_0x34d5f5(0x34f)](y);(_0x89c3fe==null?void 0x0:_0x89c3fe[_0x34d5f5(0x36d)])!==!0x1&&this[_0x34d5f5(0x31b)](this[_0x34d5f5(0x2e1)][_0x34d5f5(0x2b3)](v[_0x34d5f5(0x273)]['HEADER_MENU'],()=>{var _0x56e7d5=_0x34d5f5,_0x140e63;return v[_0x56e7d5(0x312)](Ne({'status$':this[_0x56e7d5(0x2e7)][_0x56e7d5(0x2a7)],'error$':this[_0x56e7d5(0x2e7)][_0x56e7d5(0x338)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x140e63=_0x89c3fe==null?void 0x0:_0x89c3fe[_0x56e7d5(0x2cb)])!=null?_0x140e63:!0x1}),this[_0x56e7d5(0x2e0)]);}));}['_handleConfigure'](){var _0x31f4d1=_0x473d95;this[_0x31f4d1(0x2e0)]['get'](exports[_0x31f4d1(0x318)])[_0x31f4d1(0x317)]();}},exports[_0x473d95(0x263)]=Me([b(0x0,l[_0x473d95(0x27d)](l[_0x473d95(0x2a8)])),b(0x1,l[_0x473d95(0x27d)](s[_0x473d95(0x2f5)])),b(0x2,v[_0x473d95(0x227)]),b(0x3,l[_0x473d95(0x350)])],exports[_0x473d95(0x263)]);function Ne(_0x285f96){const {status$:_0x1e6937,error$:_0x397be6,onConfigure:_0x2c1927,showClickable:_0x575565}=_0x285f96;return function(){var _0x122b4a=_0x4a34;return t[_0x122b4a(0x1f8)](X,{'status$':_0x1e6937,'error$':_0x397be6,'onConfigure':_0x2c1927,'showClickable':_0x575565});};}function be(_0x45c3a1){var _0x34883e=_0x473d95;return{'id':j['id'],'type':v[_0x34883e(0x2e2)][_0x34883e(0x283)],'icon':_0x34883e(0x26d),'title':'mcpConfig.title','tooltip':_0x34883e(0x2ef)};}const je={[v[_0x473d95(0x2c7)][_0x473d95(0x311)]]:{[j['id']]:{'order':0xa,'menuItemFactory':be}}};var Ee=Object[_0x473d95(0x204)],we=(_0x58bd8d,_0x1318ed,_0xafcf5d,_0x19167d)=>{var _0x2cca62=_0x473d95;for(var _0x314b01=_0x19167d>0x1?void 0x0:_0x19167d?Ee(_0x1318ed,_0xafcf5d):_0x1318ed,_0x6dc1f9=_0x58bd8d[_0x2cca62(0x213)]-0x1,_0xab2820;_0x6dc1f9>=0x0;_0x6dc1f9--)(_0xab2820=_0x58bd8d[_0x6dc1f9])&&(_0x314b01=_0xab2820(_0x314b01)||_0x314b01);return _0x314b01;},z=(_0x2167cc,_0x242598)=>(_0x58a09a,_0x429ec3)=>_0x242598(_0x58a09a,_0x429ec3,_0x2167cc);exports[_0x473d95(0x339)]=class extends l[_0x473d95(0x279)]{constructor(_0x2fe9f9,_0x5c6070){var _0x5a607d=_0x473d95;super(),this[_0x5a607d(0x201)]=_0x2fe9f9,this[_0x5a607d(0x2b9)]=_0x5c6070,this['_initializeCommands'](),this[_0x5a607d(0x266)]();}['_initializeCommands'](){var _0x1a29d0=_0x473d95;[j][_0x1a29d0(0x30a)](_0xeaf1a5=>{var _0x3111e9=_0x1a29d0;this[_0x3111e9(0x31b)](this[_0x3111e9(0x201)][_0x3111e9(0x28b)](_0xeaf1a5));});}['_initializeMenus'](){this['_menuManagerService']['mergeMenu'](je);}},exports['MCPUIMenuController']=we([z(0x0,l[_0x473d95(0x21f)]),z(0x1,v['IMenuManagerService'])],exports[_0x473d95(0x339)]);const Oe={'mcpStatus':{'disconnected':_0x473d95(0x251),'connecting':_0x473d95(0x25b),'connected':_0x473d95(0x351),'failed':_0x473d95(0x24c),'retrying':_0x473d95(0x27c),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x473d95(0x249),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x473d95(0x24d),'maxRetriesExceeded':_0x473d95(0x2df),'clickToConnect':_0x473d95(0x290),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x473d95(0x1f3),'description':_0x473d95(0x230),'apiKey':_0x473d95(0x1fb),'apiKeyPlaceholder':_0x473d95(0x308),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x473d95(0x20c),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x473d95(0x2e5),'configInstructions':_0x473d95(0x25a),'configStepTitle':_0x473d95(0x2d2),'configStep1':_0x473d95(0x319),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x473d95(0x2b2),'sessionId':_0x473d95(0x237),'sessionIdDescription':_0x473d95(0x335),'authorizationDescription':_0x473d95(0x333),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x473d95(0x2bc),'save':'Save\x20Configuration','saving':_0x473d95(0x35e),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x473d95(0x36c),'configSaved':_0x473d95(0x1fd),'configError':_0x473d95(0x285),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x473d95(0x267),'univerAiLabel':_0x473d95(0x306),'getStarted':_0x473d95(0x235)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x473d95(0x26b),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x473d95(0x355),'connecting':_0x473d95(0x212),'connected':_0x473d95(0x240),'failed':'Connection\x20Failed','retrying':_0x473d95(0x2ce)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x473d95(0x216),'networkError':_0x473d95(0x287),'maxRetriesExceeded':_0x473d95(0x241)}}},Ae={'mcpStatus':{'disconnected':_0x473d95(0x332),'connecting':'MCP\x20连接中...','connected':_0x473d95(0x218),'failed':_0x473d95(0x226),'retrying':_0x473d95(0x35d),'unknown':_0x473d95(0x33b),'unauthorized':_0x473d95(0x286),'sessionOccupied':_0x473d95(0x2ad),'networkError':_0x473d95(0x371),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x473d95(0x2b6)},'mcpConfig':{'title':_0x473d95(0x203),'description':_0x473d95(0x1ed),'apiKey':_0x473d95(0x208),'apiKeyPlaceholder':_0x473d95(0x268),'apiKeyHint':_0x473d95(0x2dc),'enableAuth':_0x473d95(0x346),'enableAuthHint':_0x473d95(0x323),'connectionInfo':_0x473d95(0x29a),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':_0x473d95(0x1ff),'configStepTitle':_0x473d95(0x324),'configStep1':_0x473d95(0x265),'configStep2':_0x473d95(0x36f),'configStep3':_0x473d95(0x299),'sessionId':_0x473d95(0x362),'sessionIdDescription':_0x473d95(0x276),'authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':'配置参数:','maxRetries':'最大重试次数','save':_0x473d95(0x29c),'saving':_0x473d95(0x243),'note1':_0x473d95(0x1f6),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x473d95(0x2c5),'configError':_0x473d95(0x2fb),'apiApplyInfo':{'title':_0x473d95(0x229),'description':_0x473d95(0x32e),'univerAiLabel':_0x473d95(0x320),'getStarted':_0x473d95(0x31d)},'validation':{'apiKeyRequired':_0x473d95(0x264),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x473d95(0x2c2),'invalidApiKey':_0x473d95(0x326)},'connectionStatus':{'disconnected':_0x473d95(0x25f),'connecting':'连接中...','connected':_0x473d95(0x31f),'failed':_0x473d95(0x307),'retrying':_0x473d95(0x2c0)},'connectionError':{'unauthorized':_0x473d95(0x341),'sessionOccupied':_0x473d95(0x254),'networkError':_0x473d95(0x302),'maxRetriesExceeded':_0x473d95(0x310)}}};var De=Object[_0x473d95(0x1f4)],ke=Object[_0x473d95(0x204)],Ue=(_0x2d0fbe,_0x17ffb6,_0x18236b)=>_0x17ffb6 in _0x2d0fbe?De(_0x2d0fbe,_0x17ffb6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x18236b}):_0x2d0fbe[_0x17ffb6]=_0x18236b,Te=(_0x4fb0ab,_0xf6e9e7,_0x35986c,_0xf7710d)=>{var _0x1c462f=_0x473d95;for(var _0x416584=_0xf7710d>0x1?void 0x0:_0xf7710d?ke(_0xf6e9e7,_0x35986c):_0xf6e9e7,_0x2ca583=_0x4fb0ab[_0x1c462f(0x213)]-0x1,_0x5f1959;_0x2ca583>=0x0;_0x2ca583--)(_0x5f1959=_0x4fb0ab[_0x2ca583])&&(_0x416584=_0x5f1959(_0x416584)||_0x416584);return _0x416584;},M=(_0x57704e,_0x29ee64)=>(_0x10986e,_0x4763e3)=>_0x29ee64(_0x10986e,_0x4763e3,_0x57704e),$e=(_0x4596a4,_0xa7890c,_0x50ccb0)=>Ue(_0x4596a4,_0xa7890c+'',_0x50ccb0);exports[_0x473d95(0x361)]=class extends l['Plugin']{constructor(_0x1a7c0d=G,_0x4839af,_0x22f655,_0xa4369a,_0x96626d,_0x5309ef){var _0xbe6747=_0x473d95;super(),this[_0xbe6747(0x2d0)]=_0x1a7c0d,this[_0xbe6747(0x2e0)]=_0x4839af,this[_0xbe6747(0x2d1)]=_0x22f655,this[_0xbe6747(0x2e1)]=_0xa4369a,this[_0xbe6747(0x2de)]=_0x96626d,this[_0xbe6747(0x221)]=_0x5309ef;const {..._0x3205da}=l[_0xbe6747(0x375)]({},G,this[_0xbe6747(0x2d0)]);this[_0xbe6747(0x2d1)]['setConfig'](y,_0x3205da);}async[_0x473d95(0x29f)](){var _0x23b637=_0x473d95;const _0x2e57d0=[[exports[_0x23b637(0x263)]],[exports[_0x23b637(0x318)]],[exports['MCPUIMenuController']]];this[_0x23b637(0x2e0)][_0x23b637(0x1ee)](A[_0x23b637(0x340)])||_0x2e57d0[_0x23b637(0x364)]([A[_0x23b637(0x340)],{'useClass':A['WebSocketService']}]),_0x2e57d0['forEach'](_0x57a0ff=>this[_0x23b637(0x2e0)][_0x23b637(0x30b)](_0x57a0ff)),this['_injector'][_0x23b637(0x305)](exports[_0x23b637(0x263)]),this['_injector'][_0x23b637(0x305)](exports['MCPConfigUIController']),this[_0x23b637(0x2e0)][_0x23b637(0x305)](exports[_0x23b637(0x339)]);}},$e(exports[_0x473d95(0x361)],_0x473d95(0x20d),_0x473d95(0x22c)),exports[_0x473d95(0x361)]=Te([l[_0x473d95(0x2e8)](s[_0x473d95(0x25d)]),M(0x1,l[_0x473d95(0x27d)](l[_0x473d95(0x2a8)])),M(0x2,l[_0x473d95(0x350)]),M(0x3,v[_0x473d95(0x227)]),M(0x4,l[_0x473d95(0x219)]),M(0x5,l[_0x473d95(0x27d)](l[_0x473d95(0x22b)]))],exports['UniverMCPUIPlugin']),exports[_0x473d95(0x360)]=W,exports[_0x473d95(0x2bf)]=X,exports['OpenMCPConfigPanelCommand']=j,exports[_0x473d95(0x210)]=Oe,exports[_0x473d95(0x258)]=Ae;
|
|
1
|
+
'use strict';var _0x23351a=_0x46a5;(function(_0x2d1436,_0x2d6508){var _0x23520d=_0x46a5,_0x4b23c1=_0x2d1436();while(!![]){try{var _0x39b13f=-parseInt(_0x23520d(0x25e))/0x1+-parseInt(_0x23520d(0x256))/0x2+-parseInt(_0x23520d(0x20b))/0x3*(-parseInt(_0x23520d(0x169))/0x4)+-parseInt(_0x23520d(0x281))/0x5+-parseInt(_0x23520d(0x2bf))/0x6*(-parseInt(_0x23520d(0x1aa))/0x7)+-parseInt(_0x23520d(0x179))/0x8*(-parseInt(_0x23520d(0x1a3))/0x9)+parseInt(_0x23520d(0x21a))/0xa;if(_0x39b13f===_0x2d6508)break;else _0x4b23c1['push'](_0x4b23c1['shift']());}catch(_0x53d75f){_0x4b23c1['push'](_0x4b23c1['shift']());}}}(_0x18d2,0x26125));var ue=Object[_0x23351a(0x283)],le=(_0x3bd62f,_0x15e8d4,_0x4000c3)=>_0x15e8d4 in _0x3bd62f?ue(_0x3bd62f,_0x15e8d4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4000c3}):_0x3bd62f[_0x15e8d4]=_0x4000c3,I=(_0x4b99b5,_0x795eb7,_0x52953a)=>le(_0x4b99b5,typeof _0x795eb7!=_0x23351a(0x2b4)?_0x795eb7+'':_0x795eb7,_0x52953a);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x23351a(0x241)});const l=require('@univerjs/core'),t=require('react/jsx-runtime'),s=require('@univerjs-pro/mcp'),S=require('@univerjs/design'),v=require('@univerjs/ui'),N=require('rxjs'),d=require('react'),A=require('@univerjs/network');var g=function(){var _0x274e26=_0x23351a;return g=Object[_0x274e26(0x13e)]||function(_0x1ffc79){var _0x197283=_0x274e26;for(var _0x54fe21,_0x54594f=0x1,_0x1cd09a=arguments[_0x197283(0x2ac)];_0x54594f<_0x1cd09a;_0x54594f++){_0x54fe21=arguments[_0x54594f];for(var _0x3a2213 in _0x54fe21)Object[_0x197283(0x28e)][_0x197283(0x152)][_0x197283(0x1f2)](_0x54fe21,_0x3a2213)&&(_0x1ffc79[_0x3a2213]=_0x54fe21[_0x3a2213]);}return _0x1ffc79;},g[_0x274e26(0x230)](this,arguments);},ve=function(_0x1952d7,_0x1632c3){var _0xbd131f=_0x23351a,_0xe77db7={};for(var _0x12bf67 in _0x1952d7)Object[_0xbd131f(0x28e)][_0xbd131f(0x152)][_0xbd131f(0x1f2)](_0x1952d7,_0x12bf67)&&_0x1632c3['indexOf'](_0x12bf67)<0x0&&(_0xe77db7[_0x12bf67]=_0x1952d7[_0x12bf67]);if(_0x1952d7!=null&&typeof Object[_0xbd131f(0x12a)]==_0xbd131f(0x237)){for(var _0x951715=0x0,_0x12bf67=Object[_0xbd131f(0x12a)](_0x1952d7);_0x951715<_0x12bf67[_0xbd131f(0x2ac)];_0x951715++)_0x1632c3[_0xbd131f(0x224)](_0x12bf67[_0x951715])<0x0&&Object[_0xbd131f(0x28e)][_0xbd131f(0x22b)]['call'](_0x1952d7,_0x12bf67[_0x951715])&&(_0xe77db7[_0x12bf67[_0x951715]]=_0x1952d7[_0x12bf67[_0x951715]]);}return _0xe77db7;},_=d[_0x23351a(0x264)](function(_0x351a77,_0x7aae08){var _0x342490=_0x23351a,_0x5e36ea=_0x351a77[_0x342490(0x26a)],_0x8e764b=_0x351a77['id'],_0x37b1d2=_0x351a77[_0x342490(0x29e)],_0x5a2253=_0x351a77[_0x342490(0x13b)],_0x4e5838=ve(_0x351a77,['icon','id',_0x342490(0x29e),_0x342490(0x13b)]),_0xfbc18e=_0x342490(0x170)[_0x342490(0x14e)](_0x8e764b,'\x20')['concat'](_0x37b1d2||'')[_0x342490(0x260)](),_0x24b15c=d[_0x342490(0x299)]('_'[_0x342490(0x14e)](ge()));return H(_0x5e36ea,''[_0x342490(0x14e)](_0x8e764b),{'defIds':_0x5e36ea['defIds'],'idSuffix':_0x24b15c[_0x342490(0x1f7)]},g({'ref':_0x7aae08,'className':_0xfbc18e},_0x4e5838),_0x5a2253);});function _0x46a5(_0x55bc33,_0x5a2158){var _0x18d239=_0x18d2();return _0x46a5=function(_0x46a5f1,_0x200014){_0x46a5f1=_0x46a5f1-0x125;var _0x4ec297=_0x18d239[_0x46a5f1];return _0x4ec297;},_0x46a5(_0x55bc33,_0x5a2158);}function H(_0x4cb57b,_0xfc515f,_0x1a3caa,_0x1c1048,_0x5c67b4){var _0x11c7cc=_0x23351a;return d[_0x11c7cc(0x24b)](_0x4cb57b[_0x11c7cc(0x289)],g(g({'key':_0xfc515f},de(_0x4cb57b,_0x1a3caa,_0x5c67b4)),_0x1c1048),(Ce(_0x4cb57b,_0x1a3caa)[_0x11c7cc(0x275)]||[])[_0x11c7cc(0x16c)](function(_0x2098df,_0x49bc84){var _0x1cb0fe=_0x11c7cc;return H(_0x2098df,''[_0x1cb0fe(0x14e)](_0xfc515f,'-')[_0x1cb0fe(0x14e)](_0x4cb57b[_0x1cb0fe(0x289)],'-')[_0x1cb0fe(0x14e)](_0x49bc84),_0x1a3caa,void 0x0,_0x5c67b4);}));}function de(_0x72dc74,_0x5056c,_0xf7cffc){var _0x441bd6=_0x23351a,_0x43d0a7=g({},_0x72dc74['attrs']);_0xf7cffc!=null&&_0xf7cffc[_0x441bd6(0x250)]&&_0x43d0a7[_0x441bd6(0x1e1)]==='colorChannel1'&&(_0x43d0a7[_0x441bd6(0x1e1)]=_0xf7cffc[_0x441bd6(0x250)]),_0x72dc74[_0x441bd6(0x289)]===_0x441bd6(0x153)&&_0x43d0a7['id']&&(_0x43d0a7['id']=_0x43d0a7['id']+_0x5056c[_0x441bd6(0x192)]),Object[_0x441bd6(0x128)](_0x43d0a7)[_0x441bd6(0x2b7)](function(_0x24a521){var _0x48f1ce=_0x441bd6,_0x14b64d=_0x24a521[0x0],_0x106d9c=_0x24a521[0x1];_0x14b64d===_0x48f1ce(0x153)&&typeof _0x106d9c==_0x48f1ce(0x23d)&&(_0x43d0a7[_0x14b64d]=_0x106d9c[_0x48f1ce(0x2a1)](/url\(#(.*)\)/,_0x48f1ce(0x26f)['concat'](_0x5056c[_0x48f1ce(0x192)],')')));});var _0xc0f2b7=_0x5056c[_0x441bd6(0x225)];return!_0xc0f2b7||_0xc0f2b7[_0x441bd6(0x2ac)]===0x0||(_0x72dc74[_0x441bd6(0x289)]===_0x441bd6(0x1c6)&&_0x43d0a7[_0x441bd6(0x157)]&&(_0x43d0a7[_0x441bd6(0x157)]=_0x43d0a7[_0x441bd6(0x157)]+_0x5056c['idSuffix']),Object['entries'](_0x43d0a7)['forEach'](function(_0x2feec8){var _0x449b41=_0x441bd6,_0xee6030=_0x2feec8[0x0],_0x48f117=_0x2feec8[0x1];typeof _0x48f117==_0x449b41(0x23d)&&(_0x43d0a7[_0xee6030]=_0x48f117[_0x449b41(0x2a1)](/url\(#(.*)\)/,_0x449b41(0x26f)[_0x449b41(0x14e)](_0x5056c[_0x449b41(0x192)],')')));})),_0x43d0a7;}function Ce(_0x23b96a,_0x111224){var _0x29fb55=_0x23351a,_0x870f58,_0x2b66a4=_0x111224[_0x29fb55(0x225)];return!_0x2b66a4||_0x2b66a4['length']===0x0?_0x23b96a:_0x23b96a[_0x29fb55(0x289)]==='defs'&&(!((_0x870f58=_0x23b96a['children'])===null||_0x870f58===void 0x0)&&_0x870f58[_0x29fb55(0x2ac)])?g(g({},_0x23b96a),{'children':_0x23b96a[_0x29fb55(0x275)]['map'](function(_0x44fb8b){var _0x11b2ef=_0x29fb55;return typeof _0x44fb8b['attrs']['id']==_0x11b2ef(0x23d)&&_0x2b66a4&&_0x2b66a4[_0x11b2ef(0x1bb)](_0x44fb8b[_0x11b2ef(0x17d)]['id'])?g(g({},_0x44fb8b),{'attrs':g(g({},_0x44fb8b['attrs']),{'id':_0x44fb8b['attrs']['id']+_0x111224[_0x11b2ef(0x192)]})}):_0x44fb8b;})}):_0x23b96a;}function ge(){var _0x12bb88=_0x23351a;return Math[_0x12bb88(0x148)]()[_0x12bb88(0x295)](0x24)[_0x12bb88(0x2c7)](0x2,0x8);}function _0x18d2(){var _0xaa9375=['_handleConfigure','univer-flex\x20univer-items-start\x20univer-gap-2','MCPConnectionController','univer-flex\x20univer-flex-wrap\x20univer-gap-2','网络连接错误,请检查您的网络连接','string','IMessageService','API\x20密钥无效,请检查密钥是否正确','currentColor','Module','M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z','Univer\x20AI\x20控制台','mcpConfig.validation.apiKeyRequired','Copy\x20the\x20JSON\x20configuration\x20below','mcpConfig.configStep3','univer-text-xs\x20univer-text-gray-500','CONNECTING','showConfigPanel','mcpConfig.note2','createElement','mcpConfig.validation.invalidConfig','isValid','mcpConfig.apiApplyInfo.univerAiLabel','Configuration\x20Steps:','colorChannel1','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','open','mcpConfig.configError','您的\x20API\x20密钥将在此浏览器中本地存储','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','482226nrSurU','setItem','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','0\x200\x2017\x2017','on-line-icon','univer-bg-gray-500','MCP\x20状态未知','_registerComponent','212081gdrtIl','点击配置\x20MCP','trim','onStarting','OpenMCPConfigPanelCommand','mcpConfig.note1','forwardRef','MCP:\x20会话\x20ID\x20已被占用','MCP\x20重连中...','mcpConfig.sessionIdDescription','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','NETWORK_ERROR','icon','_mcpCoreConfig$','启用身份验证以获得安全连接','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','mcpConfig.configInstructions','url(#$1','useState','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','mcp.apiKey','next','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','children','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','MCP\x20已断开','univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','配置\x20MCP\x20使用\x20AI\x20操作电子表格','univer-min-w-0\x20univer-flex-1','showStatus','配置参数:','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','mcpStatus.unknown','LocaleService','您的\x20API\x20密钥安全存储在本地存储中','488565HvGlud','会话\x20ID\x20已被占用,请稍后再试','defineProperty','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','MCP\x20Client\x20Configuration','_componentManager','register','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','tag','<API_KEY>','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-h-6\x20univer-w-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','univer-text-xs\x20univer-text-gray-600','mcpConfig.apiKeyPlaceholder','prototype','mcpConfig.connectionStatus.connected','RibbonStartGroup','merge','useObservable','help-single','mcpConfig.configParameters','toString','MenuItemType','IDialogService','OTHERS','useRef','showDeveloperTools','连接失败','univer-text-yellow-500','IUIPartsService','className','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','DISCONNECTED','replace','ComponentManager','Plugin','Get\x20your\x20API\x20key\x20in\x20seconds','defs','setConfig','close','getConfig','MCP:\x20超出最大重试次数','mcp-config-dialog','MCPConnectionStatus','length','mcpConfig.apiApplyInfo.title','UniverMCPUIPlugin','UniverIcon','_handleConfigSave','_initStatusComponent','univer-flex\x20univer-h-10\x20univer-w-10\x20univer-flex-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','univer-space-y-3','symbol','off-line-icon','Button','forEach','mcpStatus.connected','evenodd','connectInjector','API\x20key\x20with\x20Bearer\x20prefix.','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','registerCommand','MessageType','6tDxkqs','off','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','disposeWithMe','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','_loading$','mcpConfig.validation.invalidApiKey','mcpStatus.clickToConnect','substring','univer-flex\x20univer-items-center','_dialogService','url(#off-line-icon_clip0_910_343)','mcpConfig.configStep2','entries','MCP:\x20Session\x20ID\x20Occupied','getOwnPropertySymbols','_localeService','UniverMCPPlugin','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','_blank','MCPConfigPanel','Bearer\x20','mcpServerUrl','_commandService','Failed\x20to\x20save\x20configuration','_injector','HelpSingle','IConfigService','univer-space-y-5','check-mark-icon','_loadStoredApiKey','MCP\x20Unknown\x20Status','extend','超出最大重试次数,请稍后再试','mcpConfig.apiApplyInfo.getStarted','assign','mcpConfig.connectionError.maxRetriesExceeded','配置保存失败','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','svg','MCP:\x20Network\x20Error','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','_mcpConnectionController','MCPConnectionError','on-line-icon_clip0_910_349','random','enUS','Inject','会话ID','_createConfigPanelComponent','ICommandService','concat','show','Enable\x20authentication\x20for\x20secure\x20connections','MAX_RETRIES_EXCEEDED','hasOwnProperty','mask','mcpConfig.connectionStatus.retrying','mcpConfig.connectionStatus.failed','mcpStatus.failed','xlink:href','MCP\x20客户端配置','MCP_PLUGIN_CONFIG_KEY','connectionStatus$','Tooltip','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','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','_logService','univer-text-sm\x20univer-text-gray-500','text','univer-flex-shrink-0\x20univer-text-blue-500','BuiltInUIPart','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','保存配置','Invalid\x20configuration','MCP\x20Disconnected','mcpConfig.validation.apiKeyTooShort','translate(.97)','492sFOfpd','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','map','mcp-ui.command.openConfigPanel','mcpStatus.maxRetriesExceeded','_config$','univerjs-icon\x20univerjs-icon-','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','MCPStatusDisplay','ISocketService','M5.21243\x2012.287L11.8791\x205.62036','sessionId$','1em','MCP\x20Configuration','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','1783376SFeoqn','Save\x20Configuration','jsxs','已连接','attrs','配置更改将立即生效','API\x20密钥不能为空','MCP:\x20Max\x20Retries\x20Exceeded','\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','white','MCP\x20Connection\x20Failed','univer-ml-1\x20univer-flex\x20univer-h-4\x20univer-w-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','MenuIcon','IMenuManagerService','round','_initializeCommands','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','将配置添加到您的\x20MCP\x20客户端设置文件中','bottom','WebSocketService','Input','useCallback','univer-text-sm\x20univer-font-medium','Max\x20Retries','MCPConfigUIController','idSuffix','univer-flex\x20univer-items-center\x20univer-gap-2','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','mcpConfig.connectionInfo','API\x20key\x20is\x20required','clipPath','mcpConfig.configStep1','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','FAILED','Connection\x20Failed','apiKey','什么是\x20API\x20密钥?','univer.plus','pluginName','univer_session_id:','配置步骤:','span','9BdDrjo','univer-text-white','\x22,\x0a\x20\x20\x20\x20\x20\x20\x22type\x22:\x20\x22http\x22,\x0a\x20\x20\x20\x20\x20\x20\x22headers\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22Authorization\x22:\x20\x22Bearer\x20','_config','mcpConfig.authorizationDescription','Click\x20to\x20connect\x20MCP','removeItem','1688771SjJfIy','_apiKey$','OnLineIcon','HEADER_MENU','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','连接中...','Click\x20to\x20configure\x20MCP','mcpConfig.configSaved','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','Disposable','get','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univer-flex-1','_uiPartsService','MCPConnectionUIController','div','javascript:void(0)','includes','重启您的\x20MCP\x20客户端以使配置生效','mcpConfig.apiKeyHint','\x20-\x20','univer-text-gray-500','useDependency','MCP\x20配置','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','connectionError$','univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','mcpStatus.clickToConfigure','use','SESSION_ID_OCCUPIED','API\x20Key','M0\x200H16V16H0z','univer-font-medium','Configuration\x20saved\x20successfully','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','CloseSmallSingle','error','univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','http://www.w3.org/2000/svg','_validateConfig','univer.ai','Injector','mcpConfig.title','univer-bg-red-500','_connectionController','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-h-2\x20univer-w-2\x20univer-rounded-full\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Enable\x20Authentication','MCPUIMenuController','getOwnPropertyDescriptor','ILocalStorageService','__setCustomHeaders','_messageService','label','Session\x20ID','close-small-single','fill','请输入您的\x20API\x20密钥','带有\x20Bearer\x20前缀的\x20API\x20密钥。','mcpConfig.configStepTitle','_localStorageService','getCurrentConfig','getItem','CheckMarkIcon','API\x20密钥长度至少需要\x2010\x20位','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','MCP\x20Connected','COMMAND','noopener\x20noreferrer','启用身份验证','未连接','权限验证失败,请检查您的\x20API\x20密钥','call','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','value','mcpStatus.sessionOccupied','current','将以下配置添加到您的\x20MCP\x20客户端设置中:','CONNECTED','OffLineIcon','配置无效','none','Authorization:','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','复制以下\x20JSON\x20配置','mcpConfig.description','errorMessage','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','univer-space-y-2','pre','_menuManagerService','registerComponent','Enter\x20your\x20API\x20key','重连中...','Close','1425djtEST','Saving...','DependentOn','displayName','mcpConfig.save','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x0a}','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','NONE','MCP:\x20未授权','Retrying...','add','push','_initAutoConnect','subscribeConfigValue$','1842480btdvwu','univer-flex\x20univer-items-start\x20univer-gap-3','{\x0a\x20\x20\x22mcpServers\x22:\x20{\x0a\x20\x20\x20\x20\x22univer\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x22url\x22:\x20\x22https://mcp.univer.ai/mcp/?univer_session_id=','BehaviorSubject','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','https://console.univer.ai','subscribe','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','What\x20is\x20API\x20Key?','indexOf','defIds','0\x200\x2016\x2016','univer-text-red-500','MCP\x20连接失败','0\x200\x2017\x2016','off-line-icon_clip0_910_343','propertyIsEnumerable','univer-text-blue-600','UNAUTHORIZED','path','RETRYING','apply','validateApiKey','jsx','MCP:\x20网络错误','univer-flex\x20univer-gap-3','clsx','_configService','function'];_0x18d2=function(){return _0xaa9375;};return _0x18d2();}_[_0x23351a(0x20e)]=_0x23351a(0x2af);var fe={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x23351a(0x1fc),'viewBox':_0x23351a(0x226),'width':'1em','height':_0x23351a(0x176)},'children':[{'tag':_0x23351a(0x22e),'attrs':{'fill':_0x23351a(0x240),'d':'M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','fillRule':_0x23351a(0x2b9),'clipRule':_0x23351a(0x2b9)}}]},B=d[_0x23351a(0x264)](function(_0x8becd9,_0x30d42d){var _0x5db23c=_0x23351a;return d[_0x5db23c(0x24b)](_,Object['assign']({},_0x8becd9,{'id':_0x5db23c(0x138),'ref':_0x30d42d,'icon':fe}));});B[_0x23351a(0x20e)]=_0x23351a(0x1e8);var pe={'tag':_0x23351a(0x142),'attrs':{'xmlns':_0x23351a(0x1d0),'fill':_0x23351a(0x1fc),'viewBox':_0x23351a(0x259),'width':'1em','height':_0x23351a(0x176)},'children':[{'tag':_0x23351a(0x22e),'attrs':{'stroke':'currentColor','d':'M5.21243\x205.62036L11.8791\x2012.287','strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.33}},{'tag':_0x23351a(0x22e),'attrs':{'stroke':_0x23351a(0x240),'d':_0x23351a(0x174),'strokeLinecap':_0x23351a(0x187),'strokeLinejoin':_0x23351a(0x187),'strokeWidth':1.33}}]},F=d[_0x23351a(0x264)](function(_0x57ecaf,_0x3ccfce){var _0x1662f8=_0x23351a;return d[_0x1662f8(0x24b)](_,Object[_0x1662f8(0x13e)]({},_0x57ecaf,{'id':_0x1662f8(0x1e0),'ref':_0x3ccfce,'icon':pe}));});F[_0x23351a(0x20e)]=_0x23351a(0x1cd);var he={'tag':_0x23351a(0x142),'attrs':{'xmlns':_0x23351a(0x1d0),'fill':'none','viewBox':_0x23351a(0x226),'width':'1em','height':_0x23351a(0x176)},'children':[{'tag':_0x23351a(0x22e),'attrs':{'fill':_0x23351a(0x240),'d':'M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z'}},{'tag':_0x23351a(0x22e),'attrs':{'fill':_0x23351a(0x240),'d':_0x23351a(0x242)}},{'tag':_0x23351a(0x22e),'attrs':{'fill':'currentColor','d':'M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','fillRule':_0x23351a(0x2b9),'clipRule':'evenodd'}}]},Y=d[_0x23351a(0x264)](function(_0xc6a65d,_0x920379){var _0x23ca75=_0x23351a;return d['createElement'](_,Object[_0x23ca75(0x13e)]({},_0xc6a65d,{'id':_0x23ca75(0x293),'ref':_0x920379,'icon':he}));});Y[_0x23351a(0x20e)]=_0x23351a(0x135);var me={'tag':_0x23351a(0x142),'attrs':{'xmlns':_0x23351a(0x1d0),'fill':_0x23351a(0x1fc),'viewBox':'0\x200\x2016\x2016','width':_0x23351a(0x176),'height':_0x23351a(0x176)},'children':[{'tag':'g','attrs':{'clipPath':_0x23351a(0x126)},'children':[{'tag':_0x23351a(0x22e),'attrs':{'stroke':'currentColor','d':_0x23351a(0x171),'strokeLinecap':_0x23351a(0x187),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x23351a(0x2a5),'attrs':{},'children':[{'tag':_0x23351a(0x197),'attrs':{'id':_0x23351a(0x22a)},'children':[{'tag':_0x23351a(0x22e),'attrs':{'fill':_0x23351a(0x182),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-icon_clip0_910_343']},q=d[_0x23351a(0x264)](function(_0x22bae2,_0x375532){var _0x16b3a6=_0x23351a;return d[_0x16b3a6(0x24b)](_,Object[_0x16b3a6(0x13e)]({},_0x22bae2,{'id':_0x16b3a6(0x2b5),'ref':_0x375532,'icon':me}));});q[_0x23351a(0x20e)]=_0x23351a(0x1fa);var xe={'tag':_0x23351a(0x142),'attrs':{'xmlns':_0x23351a(0x1d0),'fill':_0x23351a(0x1fc),'viewBox':_0x23351a(0x229),'width':_0x23351a(0x176),'height':_0x23351a(0x176)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x23351a(0x22e),'attrs':{'stroke':'currentColor','d':_0x23351a(0x203),'strokeLinecap':'round','strokeLinejoin':_0x23351a(0x187),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x23351a(0x22e),'attrs':{'fill':'white','d':_0x23351a(0x1c9),'transform':_0x23351a(0x168)}}]}]}],'defIds':[_0x23351a(0x147)]},V=d[_0x23351a(0x264)](function(_0x3cc6c6,_0x1b8d25){var _0x302443=_0x23351a;return d['createElement'](_,Object[_0x302443(0x13e)]({},_0x3cc6c6,{'id':_0x302443(0x25a),'ref':_0x1b8d25,'icon':xe}));});V[_0x23351a(0x20e)]=_0x23351a(0x1ac);function W(_0x1482f6){var _0x5e02ef=_0x23351a,_0x4c5327,_0x1f1d41;const {mcpCoreConfig:_0x14157a,onSave:_0x2a79b7,loading:_0x69855=!0x1,config:_0x400ce8,connectionStatus$:_0x3ee9b6,connectionError$:_0x48040c,currentApiKey$:_0x1e2195,currentSessionId$:_0xc0f968}=_0x1482f6,_0x2dd5ad=v[_0x5e02ef(0x1c0)](l[_0x5e02ef(0x27f)]),_0x40a4e2=v[_0x5e02ef(0x292)](_0x3ee9b6,s[_0x5e02ef(0x2ab)]['DISCONNECTED']),_0x577b6b=v[_0x5e02ef(0x292)](_0x48040c,s[_0x5e02ef(0x146)][_0x5e02ef(0x213)]),_0x56f88b=v[_0x5e02ef(0x292)](_0xc0f968,''),_0x45c199=v[_0x5e02ef(0x292)](_0x1e2195,''),[_0x314934,_0x6a6a7e]=d[_0x5e02ef(0x270)](_0x45c199||''),_0x4b2138=!0x0,_0x58d72c=_0x400ce8['showDeveloperTools']&&_0x14157a[_0x5e02ef(0x131)]&&(_0x14157a[_0x5e02ef(0x131)][_0x5e02ef(0x1bb)](_0x5e02ef(0x19e))||_0x14157a[_0x5e02ef(0x131)][_0x5e02ef(0x1bb)](_0x5e02ef(0x1d2))),_0x304c6f=(_0x4c5327=_0x14157a[_0x5e02ef(0x131)])==null?void 0x0:_0x4c5327[_0x5e02ef(0x1bb)](_0x5e02ef(0x19e)),_0x95a21b=(_0x1f1d41=_0x14157a[_0x5e02ef(0x131)])==null?void 0x0:_0x1f1d41[_0x5e02ef(0x1bb)](_0x5e02ef(0x1d2)),_0x37c6a1=_0x304c6f?'https://console.univer.plus':_0x5e02ef(0x220),_0x2df14e=_0x400ce8[_0x5e02ef(0x29a)]&&(_0x304c6f||_0x95a21b),[_0x46a929,_0x1781d1]=d['useState'](!_0x314934[_0x5e02ef(0x260)]()),_0x16f4bb=(_0x5875cc,_0x285e3b)=>{var _0x6b776a=_0x5e02ef;if(_0x285e3b===s[_0x6b776a(0x146)][_0x6b776a(0x22d)])return _0x6b776a(0x2c3);switch(_0x5875cc){case s['MCPConnectionStatus'][_0x6b776a(0x1f9)]:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case s[_0x6b776a(0x2ab)][_0x6b776a(0x248)]:case s[_0x6b776a(0x2ab)]['RETRYING']:return _0x6b776a(0x274);case s['MCPConnectionStatus'][_0x6b776a(0x19a)]:return _0x6b776a(0x2c3);default:return _0x6b776a(0x141);}},_0x59ee22=(_0x1a1243,_0x4bf939)=>{var _0x5c006d=_0x5e02ef;if(_0x4bf939===s[_0x5c006d(0x146)][_0x5c006d(0x22d)])return _0x5c006d(0x1d5);switch(_0x1a1243){case s[_0x5c006d(0x2ab)][_0x5c006d(0x1f9)]:return'univer-bg-green-500';case s[_0x5c006d(0x2ab)][_0x5c006d(0x248)]:case s[_0x5c006d(0x2ab)][_0x5c006d(0x22f)]:return'univer-bg-blue-500';case s[_0x5c006d(0x2ab)][_0x5c006d(0x19a)]:return _0x5c006d(0x1d5);default:return _0x5c006d(0x25b);}},_0x358e76=_0x35f391=>{var _0x3154a8=_0x5e02ef;switch(_0x35f391){case s[_0x3154a8(0x2ab)][_0x3154a8(0x1f9)]:return _0x2dd5ad['t'](_0x3154a8(0x28f));case s[_0x3154a8(0x2ab)][_0x3154a8(0x248)]:return _0x2dd5ad['t']('mcpConfig.connectionStatus.connecting');case s[_0x3154a8(0x2ab)][_0x3154a8(0x19a)]:return _0x2dd5ad['t'](_0x3154a8(0x155));case s[_0x3154a8(0x2ab)][_0x3154a8(0x22f)]:return _0x2dd5ad['t'](_0x3154a8(0x154));default:return _0x2dd5ad['t']('mcpConfig.connectionStatus.disconnected');}},_0x223fb1=_0x2f9e24=>{var _0x2192c5=_0x5e02ef;switch(_0x2f9e24){case s['MCPConnectionError'][_0x2192c5(0x22d)]:return _0x2dd5ad['t']('mcpConfig.connectionError.unauthorized');case s['MCPConnectionError'][_0x2192c5(0x1c7)]:return _0x2dd5ad['t']('mcpConfig.connectionError.sessionOccupied');case s['MCPConnectionError'][_0x2192c5(0x269)]:return _0x2dd5ad['t']('mcpConfig.connectionError.networkError');case s[_0x2192c5(0x146)][_0x2192c5(0x151)]:return _0x2dd5ad['t'](_0x2192c5(0x13f));default:return'';}},_0x327d0a=d['useCallback'](()=>{var _0x35aba7=_0x5e02ef;const _0x31d4e8={..._0x14157a,'apiKey':_0x314934[_0x35aba7(0x260)](),'enableAuth':_0x4b2138};_0x2a79b7(_0x31d4e8);},[_0x14157a,_0x314934,_0x4b2138,_0x2a79b7]),_0x275d80=_0x314934[_0x5e02ef(0x260)]()[_0x5e02ef(0x2ac)]>0x0;return t[_0x5e02ef(0x17b)](_0x5e02ef(0x1b9),{'className':_0x5e02ef(0x12d),'children':[t[_0x5e02ef(0x232)]('div',{'className':_0x5e02ef(0x1ea),'children':t[_0x5e02ef(0x17b)](_0x5e02ef(0x1b9),{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[t[_0x5e02ef(0x232)](_0x5e02ef(0x1b9),{'className':_0x5e02ef(0x1c4),'children':t[_0x5e02ef(0x232)](_0x5e02ef(0x1a2),{'className':_0x5e02ef(0x1a4),'children':'⚙'})}),t['jsx'](_0x5e02ef(0x1b9),{'children':t[_0x5e02ef(0x232)]('p',{'className':_0x5e02ef(0x15f),'children':_0x2dd5ad['t'](_0x5e02ef(0x201))})})]})}),t[_0x5e02ef(0x17b)](_0x5e02ef(0x1b9),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[t[_0x5e02ef(0x232)]('div',{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x16f4bb(_0x40a4e2,_0x577b6b)+_0x5e02ef(0x1cc),'children':t[_0x5e02ef(0x17b)](_0x5e02ef(0x1b9),{'className':_0x5e02ef(0x193),'children':[t[_0x5e02ef(0x232)](_0x5e02ef(0x1b9),{'className':_0x5e02ef(0x1d7)+_0x59ee22(_0x40a4e2,_0x577b6b)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'}),t[_0x5e02ef(0x232)](_0x5e02ef(0x1a2),{'className':_0x5e02ef(0x18f),'children':_0x358e76(_0x40a4e2)})]})}),_0x577b6b!==s['MCPConnectionError'][_0x5e02ef(0x213)]&&(_0x40a4e2===s[_0x5e02ef(0x2ab)][_0x5e02ef(0x19a)]||_0x577b6b===s[_0x5e02ef(0x146)][_0x5e02ef(0x22d)])&&t['jsx'](_0x5e02ef(0x1b9),{'className':_0x5e02ef(0x27d),'children':t['jsxs'](_0x5e02ef(0x1b9),{'className':_0x5e02ef(0x239),'children':[t[_0x5e02ef(0x232)](_0x5e02ef(0x1a2),{'className':'univer-flex-shrink-0\x20univer-text-red-500','children':'⚠️'}),t['jsx']('p',{'className':_0x5e02ef(0x199),'children':_0x223fb1(_0x577b6b)})]})})]}),t[_0x5e02ef(0x232)](_0x5e02ef(0x1b9),{'className':_0x5e02ef(0x15c),'children':t[_0x5e02ef(0x17b)](_0x5e02ef(0x1b9),{'className':_0x5e02ef(0x137),'children':[t[_0x5e02ef(0x17b)]('div',{'className':'univer-space-y-2','children':[t[_0x5e02ef(0x17b)](_0x5e02ef(0x1de),{'className':_0x5e02ef(0x258),'children':[t[_0x5e02ef(0x232)](_0x5e02ef(0x1a2),{'children':'🔑'}),'\x20',_0x2dd5ad['t']('mcpConfig.apiKey'),t['jsx'](_0x5e02ef(0x1a2),{'className':'univer-text-red-500','children':'*'}),_0x58d72c&&t[_0x5e02ef(0x232)]('a',{'href':_0x5e02ef(0x1ba),'onClick':()=>_0x1781d1(!0x0),'className':_0x5e02ef(0x184),'title':_0x2dd5ad['t'](_0x5e02ef(0x2ad)),'children':t[_0x5e02ef(0x232)](Y,{})})]}),t[_0x5e02ef(0x232)](S[_0x5e02ef(0x18d)],{'type':_0x5e02ef(0x160),'placeholder':_0x2dd5ad['t'](_0x5e02ef(0x28d)),'value':_0x314934,'onChange':_0x6a6a7e,'disabled':_0x69855,'autoComplete':_0x5e02ef(0x2c0)}),t['jsx']('p',{'className':_0x5e02ef(0x247),'children':_0x2dd5ad['t'](_0x5e02ef(0x1bd))})]}),_0x58d72c&&_0x46a929&&t['jsxs'](_0x5e02ef(0x1b9),{'className':_0x5e02ef(0x15d),'children':[t[_0x5e02ef(0x232)]('a',{'href':'javascript:void(0)','onClick':()=>_0x1781d1(!0x1),'className':_0x5e02ef(0x28b),'title':_0x5e02ef(0x20a),'children':t['jsx'](F,{})}),t[_0x5e02ef(0x17b)](_0x5e02ef(0x1b9),{'className':_0x5e02ef(0x1fe),'children':[t['jsx'](_0x5e02ef(0x1b9),{'className':_0x5e02ef(0x2b2),'children':t['jsx'](_0x5e02ef(0x1a2),{'className':_0x5e02ef(0x22c),'children':'🚀'})}),t[_0x5e02ef(0x17b)](_0x5e02ef(0x1b9),{'className':_0x5e02ef(0x1b6),'children':[t['jsx']('h4',{'className':_0x5e02ef(0x271),'children':_0x2dd5ad['t'](_0x5e02ef(0x2ad))}),t[_0x5e02ef(0x232)]('p',{'className':_0x5e02ef(0x163),'children':_0x2dd5ad['t']('mcpConfig.apiApplyInfo.description')}),t[_0x5e02ef(0x232)](_0x5e02ef(0x1b9),{'className':_0x5e02ef(0x23b),'children':_0x2df14e&&t[_0x5e02ef(0x17b)]('a',{'href':_0x37c6a1,'target':_0x5e02ef(0x12e),'rel':_0x5e02ef(0x1ee),'className':_0x5e02ef(0x1cf),'children':[t[_0x5e02ef(0x232)](_0x5e02ef(0x1a2),{'children':'🤖'}),_0x2dd5ad['t'](_0x5e02ef(0x24e)),t[_0x5e02ef(0x232)](_0x5e02ef(0x1a2),{'className':'univer-text-gray-400','children':'↗'})]})}),t[_0x5e02ef(0x17b)](_0x5e02ef(0x1b9),{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x2dd5ad['t'](_0x5e02ef(0x13d))]})]})]})]}),_0x400ce8[_0x5e02ef(0x29a)]&&t[_0x5e02ef(0x17b)](_0x5e02ef(0x1b9),{'className':_0x5e02ef(0x284),'children':[t[_0x5e02ef(0x17b)]('h4',{'className':_0x5e02ef(0x1ff),'children':[t[_0x5e02ef(0x232)](_0x5e02ef(0x1a2),{'children':'🔗'}),'\x20',_0x2dd5ad['t'](_0x5e02ef(0x195))]}),t['jsxs'](_0x5e02ef(0x1b9),{'className':'univer-space-y-4','children':[t[_0x5e02ef(0x17b)]('div',{'className':_0x5e02ef(0x2b3),'children':[t[_0x5e02ef(0x232)]('p',{'className':_0x5e02ef(0x28c),'children':_0x2dd5ad['t'](_0x5e02ef(0x26e))}),t[_0x5e02ef(0x17b)](_0x5e02ef(0x1b9),{'className':_0x5e02ef(0x204),'children':[t['jsx'](_0x5e02ef(0x1b9),{'className':_0x5e02ef(0x1eb),'children':_0x2dd5ad['t'](_0x5e02ef(0x1e4))}),t[_0x5e02ef(0x17b)](_0x5e02ef(0x1b9),{'className':_0x5e02ef(0x288),'children':[t[_0x5e02ef(0x17b)]('div',{'className':_0x5e02ef(0x193),'children':[t[_0x5e02ef(0x232)](_0x5e02ef(0x1a2),{'className':_0x5e02ef(0x278),'children':'1'}),_0x2dd5ad['t'](_0x5e02ef(0x198))]}),t[_0x5e02ef(0x17b)](_0x5e02ef(0x1b9),{'className':_0x5e02ef(0x193),'children':[t[_0x5e02ef(0x232)]('span',{'className':_0x5e02ef(0x278),'children':'2'}),_0x2dd5ad['t'](_0x5e02ef(0x127))]}),t[_0x5e02ef(0x17b)](_0x5e02ef(0x1b9),{'className':_0x5e02ef(0x193),'children':[t[_0x5e02ef(0x232)]('span',{'className':'univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'3'}),_0x2dd5ad['t'](_0x5e02ef(0x246))]})]})]})]}),t[_0x5e02ef(0x17b)](_0x5e02ef(0x1b9),{'className':_0x5e02ef(0x204),'children':[t['jsx']('div',{'className':_0x5e02ef(0x1eb),'children':_0x5e02ef(0x177)}),t[_0x5e02ef(0x232)](_0x5e02ef(0x1b9),{'className':_0x5e02ef(0x276),'children':t[_0x5e02ef(0x232)](_0x5e02ef(0x205),{'className':_0x5e02ef(0x16b),'children':_0x5e02ef(0x21c)+_0x56f88b+_0x5e02ef(0x1a5)+(_0x314934||_0x5e02ef(0x28a))+_0x5e02ef(0x211)})})]}),t[_0x5e02ef(0x17b)](_0x5e02ef(0x1b9),{'className':'univer-space-y-3','children':[t[_0x5e02ef(0x232)](_0x5e02ef(0x1b9),{'className':_0x5e02ef(0x1eb),'children':_0x2dd5ad['t'](_0x5e02ef(0x294))}),t[_0x5e02ef(0x17b)](_0x5e02ef(0x1b9),{'className':_0x5e02ef(0x204),'children':[t['jsxs'](_0x5e02ef(0x1b9),{'className':_0x5e02ef(0x21b),'children':[t[_0x5e02ef(0x232)](_0x5e02ef(0x1b9),{'className':'univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),t[_0x5e02ef(0x17b)](_0x5e02ef(0x1b9),{'className':_0x5e02ef(0x27a),'children':[t[_0x5e02ef(0x232)](_0x5e02ef(0x1b9),{'className':_0x5e02ef(0x29f),'children':_0x5e02ef(0x1a0)}),t[_0x5e02ef(0x232)](_0x5e02ef(0x1b9),{'className':_0x5e02ef(0x247),'children':_0x2dd5ad['t'](_0x5e02ef(0x267))})]})]}),t[_0x5e02ef(0x17b)](_0x5e02ef(0x1b9),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[t[_0x5e02ef(0x232)](_0x5e02ef(0x1b9),{'className':_0x5e02ef(0x268)}),t[_0x5e02ef(0x17b)](_0x5e02ef(0x1b9),{'className':'univer-min-w-0\x20univer-flex-1','children':[t[_0x5e02ef(0x232)](_0x5e02ef(0x1b9),{'className':_0x5e02ef(0x29f),'children':_0x5e02ef(0x1fd)}),t['jsx'](_0x5e02ef(0x1b9),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x2dd5ad['t'](_0x5e02ef(0x1a7))})]})]})]})]})]})]}),t[_0x5e02ef(0x232)](S[_0x5e02ef(0x2b6)],{'onClick':_0x327d0a,'disabled':!_0x275d80||_0x69855,'className':'univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','children':_0x69855?t[_0x5e02ef(0x17b)](_0x5e02ef(0x1a2),{'className':_0x5e02ef(0x193),'children':[t[_0x5e02ef(0x232)](_0x5e02ef(0x1a2),{'children':'⟲'}),_0x2dd5ad['t']('mcpConfig.saving')]}):t[_0x5e02ef(0x17b)]('span',{'className':_0x5e02ef(0x193),'children':[t[_0x5e02ef(0x232)](B,{}),_0x2dd5ad['t'](_0x5e02ef(0x20f))]})}),t[_0x5e02ef(0x232)](_0x5e02ef(0x1b9),{'className':_0x5e02ef(0x178),'children':t['jsxs']('div',{'className':_0x5e02ef(0x234),'children':[t[_0x5e02ef(0x232)]('span',{'className':_0x5e02ef(0x161),'children':'💡'}),t[_0x5e02ef(0x17b)](_0x5e02ef(0x1b9),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[t[_0x5e02ef(0x232)](_0x5e02ef(0x1b9),{'className':_0x5e02ef(0x1ca),'children':'Configuration\x20Notes:'}),t[_0x5e02ef(0x17b)](_0x5e02ef(0x1b9),{'children':['•',_0x2dd5ad['t'](_0x5e02ef(0x263))]}),t[_0x5e02ef(0x17b)](_0x5e02ef(0x1b9),{'children':['•',_0x2dd5ad['t'](_0x5e02ef(0x24a))]})]})]})})]})})]});}const y='mcp-ui.config',G={'showDeveloperTools':!0x1,'showStatus':!0x0};var Se=Object[_0x23351a(0x1da)],Pe=(_0x1c9310,_0x44e9d3,_0x3a425f,_0x3351bd)=>{var _0x2be4a7=_0x23351a;for(var _0x28212c=_0x3351bd>0x1?void 0x0:_0x3351bd?Se(_0x44e9d3,_0x3a425f):_0x44e9d3,_0x454cf4=_0x1c9310[_0x2be4a7(0x2ac)]-0x1,_0x5a72ac;_0x454cf4>=0x0;_0x454cf4--)(_0x5a72ac=_0x1c9310[_0x454cf4])&&(_0x28212c=_0x5a72ac(_0x28212c)||_0x28212c);return _0x28212c;},f=(_0x30ee7e,_0x240614)=>(_0x4f996b,_0x4de302)=>_0x240614(_0x4f996b,_0x4de302,_0x30ee7e);const D=_0x23351a(0x272),k=_0x23351a(0x2aa);exports[_0x23351a(0x191)]=class extends l[_0x23351a(0x1b3)]{constructor(_0x3418b7,_0x310bfd,_0x1cf548,_0x4fb8d1,_0x4c3e4d,_0x4914fd,_0x29bb59,_0x4b046f,_0x11d903,_0x439aea){var _0x1be768=_0x23351a;super(),I(this,_0x1be768(0x2c4),new N[(_0x1be768(0x21d))](!0x1)),I(this,_0x1be768(0x26b),new N['BehaviorSubject']({})),I(this,_0x1be768(0x16f),new N[(_0x1be768(0x21d))]({})),I(this,'_apiKey$',new N[(_0x1be768(0x21d))]('')),I(this,'_handleConfigSave',async _0x3ecc46=>{var _0x23bb1e=_0x1be768,_0x2595b5,_0x42ee47;this[_0x23bb1e(0x2c4)][_0x23bb1e(0x273)](!0x0);try{const _0x4f57fe=await this[_0x23bb1e(0x1d1)](_0x3ecc46);if(!_0x4f57fe[_0x23bb1e(0x24d)]){this[_0x23bb1e(0x1dd)][_0x23bb1e(0x14f)]({'type':S[_0x23bb1e(0x2be)]['Error'],'content':_0x4f57fe[_0x23bb1e(0x202)]||this['_localeService']['t'](_0x23bb1e(0x24c))});return;}_0x3ecc46[_0x23bb1e(0x19c)]?await this[_0x23bb1e(0x1e5)][_0x23bb1e(0x257)](D,_0x3ecc46['apiKey'][_0x23bb1e(0x260)]()):await this['_localStorageService'][_0x23bb1e(0x1a9)](D),this[_0x23bb1e(0x1ab)][_0x23bb1e(0x273)](((_0x2595b5=_0x3ecc46['apiKey'])==null?void 0x0:_0x2595b5[_0x23bb1e(0x260)]())||''),this[_0x23bb1e(0x145)][_0x23bb1e(0x1dc)]({'Authorization':_0x23bb1e(0x130)+((_0x42ee47=_0x3ecc46[_0x23bb1e(0x19c)])==null?void 0x0:_0x42ee47[_0x23bb1e(0x260)]())}),this[_0x23bb1e(0x1dd)][_0x23bb1e(0x14f)]({'type':S[_0x23bb1e(0x2be)]['Success'],'content':this['_localeService']['t'](_0x23bb1e(0x1b1))}),setTimeout(()=>{var _0x263c00=_0x23bb1e;this[_0x263c00(0x125)]['close'](k);},0x320);}catch(_0x451fd2){this[_0x23bb1e(0x15e)][_0x23bb1e(0x1ce)](_0x23bb1e(0x144),_0x451fd2),this[_0x23bb1e(0x1dd)]['show']({'type':S[_0x23bb1e(0x2be)]['Error'],'content':this[_0x23bb1e(0x12b)]['t'](_0x23bb1e(0x253))});}finally{this[_0x23bb1e(0x2c4)][_0x23bb1e(0x273)](!0x1);}}),(this[_0x1be768(0x134)]=_0x3418b7,this['_uiPartsService']=_0x310bfd,this[_0x1be768(0x236)]=_0x1cf548,this[_0x1be768(0x1e5)]=_0x4fb8d1,this[_0x1be768(0x125)]=_0x4c3e4d,this[_0x1be768(0x1dd)]=_0x4914fd,this[_0x1be768(0x286)]=_0x29bb59,this[_0x1be768(0x12b)]=_0x4b046f,this[_0x1be768(0x15e)]=_0x11d903,this[_0x1be768(0x145)]=_0x439aea,this['_initConfigSync'](),this[_0x1be768(0x139)](),this[_0x1be768(0x25d)]());}[_0x23351a(0x249)](){var _0x4d9d78=_0x23351a;const _0x12fe7f=this[_0x4d9d78(0x236)][_0x4d9d78(0x2a8)](y);_0x12fe7f!=null&&_0x12fe7f[_0x4d9d78(0x29a)]&&this[_0x4d9d78(0x125)][_0x4d9d78(0x252)]({'id':k,'title':{'title':this[_0x4d9d78(0x12b)]['t'](_0x4d9d78(0x1d4))},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0x54e948=_0x4d9d78;this['_dialogService'][_0x54e948(0x2a7)](k);}});}[_0x23351a(0x1e6)](){var _0x21ac75=_0x23351a;return this[_0x21ac75(0x26b)][_0x21ac75(0x1f5)];}['_registerComponent'](){var _0x1ac3a9=_0x23351a;this['disposeWithMe'](this[_0x1ac3a9(0x286)][_0x1ac3a9(0x287)]('MCPConfigPanel',this[_0x1ac3a9(0x14c)]()));}[_0x23351a(0x14c)](){var _0x44f773=_0x23351a;return v['connectInjector'](()=>{var _0x1c8e1b=_0x46a5,_0x75d402,_0x5c4e83,_0x3f761e;return t[_0x1c8e1b(0x232)](W,{'config':this[_0x1c8e1b(0x16f)][_0x1c8e1b(0x1f5)],'mcpCoreConfig':this[_0x1c8e1b(0x26b)][_0x1c8e1b(0x1f5)],'currentApiKey$':this[_0x1c8e1b(0x1ab)],'onSave':this[_0x1c8e1b(0x2b0)],'loading':this['_loading$'][_0x1c8e1b(0x1f5)],'connectionStatus$':(_0x75d402=this[_0x1c8e1b(0x145)])==null?void 0x0:_0x75d402['connectionStatus$'],'connectionError$':(_0x5c4e83=this[_0x1c8e1b(0x145)])==null?void 0x0:_0x5c4e83[_0x1c8e1b(0x1c3)],'currentSessionId$':(_0x3f761e=this[_0x1c8e1b(0x145)])==null?void 0x0:_0x3f761e[_0x1c8e1b(0x175)]});},this[_0x44f773(0x134)]);}['_initConfigSync'](){var _0x4d334b=_0x23351a;this['disposeWithMe'](this[_0x4d334b(0x236)][_0x4d334b(0x219)](s[_0x4d334b(0x159)])['subscribe'](_0x29e6e6=>{var _0x34b5fa=_0x4d334b;this[_0x34b5fa(0x26b)][_0x34b5fa(0x273)](_0x29e6e6||{});}));const _0x2c4cd9=this[_0x4d334b(0x236)][_0x4d334b(0x2a8)](s[_0x4d334b(0x159)]);this[_0x4d334b(0x26b)][_0x4d334b(0x273)](_0x2c4cd9||{}),this[_0x4d334b(0x2c2)](this['_configService'][_0x4d334b(0x219)](y)[_0x4d334b(0x221)](_0x5e7fa4=>{var _0x5502b0=_0x4d334b;this[_0x5502b0(0x16f)][_0x5502b0(0x273)](_0x5e7fa4||{});}));const _0x1a0d40=this['_configService'][_0x4d334b(0x2a8)](y);this['_config$'][_0x4d334b(0x273)](_0x1a0d40||{});}async[_0x23351a(0x139)](){var _0x4711e=_0x23351a;const _0x2fe585=this[_0x4711e(0x236)][_0x4711e(0x2a8)](y);if(!(_0x2fe585!=null&&_0x2fe585[_0x4711e(0x29a)]))return;const _0x283cf0=await this[_0x4711e(0x1e5)][_0x4711e(0x1e7)](D);_0x283cf0&&(this[_0x4711e(0x145)]['__setCustomHeaders']({'Authorization':'Bearer\x20'+_0x283cf0}),this[_0x4711e(0x1ab)][_0x4711e(0x273)](_0x283cf0));}async[_0x23351a(0x1d1)](_0x1329a7){var _0x18345c=_0x23351a;if(!_0x1329a7[_0x18345c(0x19c)]||_0x1329a7['apiKey'][_0x18345c(0x260)]()[_0x18345c(0x2ac)]===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x18345c(0x244))};if(_0x1329a7[_0x18345c(0x19c)][_0x18345c(0x260)]()[_0x18345c(0x2ac)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x18345c(0x12b)]['t'](_0x18345c(0x167))};try{const _0x469e30=await this[_0x18345c(0x134)][_0x18345c(0x1b4)](s[_0x18345c(0x23a)])[_0x18345c(0x231)](_0x1329a7[_0x18345c(0x19c)][_0x18345c(0x260)]());return _0x469e30[_0x18345c(0x24d)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x469e30['error']||this[_0x18345c(0x12b)]['t'](_0x18345c(0x2c5))};}catch(_0x42ef5d){return console['warn'](_0x18345c(0x16a),_0x42ef5d),{'isValid':!0x0};}}},exports[_0x23351a(0x191)]=Pe([f(0x0,l[_0x23351a(0x14a)](l['Injector'])),f(0x1,v['IUIPartsService']),f(0x2,l[_0x23351a(0x136)]),f(0x3,l[_0x23351a(0x1db)]),f(0x4,v[_0x23351a(0x297)]),f(0x5,v[_0x23351a(0x23e)]),f(0x6,l[_0x23351a(0x14a)](v[_0x23351a(0x2a2)])),f(0x7,l['Inject'](l[_0x23351a(0x27f)])),f(0x8,l['ILogService']),f(0x9,l[_0x23351a(0x14a)](s[_0x23351a(0x23a)]))],exports[_0x23351a(0x191)]);const j={'id':_0x23351a(0x16d),'type':l['CommandType'][_0x23351a(0x1ed)],'handler':async(_0x195c21,_0x3df639)=>(_0x195c21[_0x23351a(0x1b4)](exports[_0x23351a(0x191)])[_0x23351a(0x249)](),!0x0)};function Z(_0x1e7526,_0x185a62){var _0x16e883=_0x23351a;switch(_0x1e7526){case s[_0x16e883(0x2ab)]['DISCONNECTED']:return'mcpStatus.disconnected';case s[_0x16e883(0x2ab)]['CONNECTING']:return'mcpStatus.connecting';case s[_0x16e883(0x2ab)][_0x16e883(0x1f9)]:return _0x16e883(0x2b8);case s['MCPConnectionStatus'][_0x16e883(0x19a)]:switch(_0x185a62){case s[_0x16e883(0x146)][_0x16e883(0x22d)]:return'mcpStatus.unauthorized';case s[_0x16e883(0x146)]['SESSION_ID_OCCUPIED']:return _0x16e883(0x1f6);case s[_0x16e883(0x146)][_0x16e883(0x269)]:return'mcpStatus.networkError';case s['MCPConnectionError'][_0x16e883(0x151)]:return _0x16e883(0x16e);default:return _0x16e883(0x156);}case s['MCPConnectionStatus']['RETRYING']:return'mcpStatus.retrying';default:return _0x16e883(0x27e);}}function ye(_0x26e14e,_0x4909af,_0x51d396,_0x4538e3=!0x0){var _0x3c15b0=_0x23351a;const _0x3fc60d=Z(_0x26e14e,_0x4909af),_0xbaf26f=_0x51d396['t'](_0x3fc60d);return _0x4538e3?_0x26e14e===s[_0x3c15b0(0x2ab)][_0x3c15b0(0x2a0)]&&_0x4909af===s[_0x3c15b0(0x146)][_0x3c15b0(0x22d)]?_0xbaf26f+'\x20-\x20'+_0x51d396['t'](_0x3c15b0(0x1c5)):_0x26e14e===s['MCPConnectionStatus'][_0x3c15b0(0x1f9)]?''+_0xbaf26f:_0x26e14e===s[_0x3c15b0(0x2ab)]['DISCONNECTED']||_0x26e14e===s[_0x3c15b0(0x2ab)][_0x3c15b0(0x19a)]?_0xbaf26f+_0x3c15b0(0x1be)+_0x51d396['t'](_0x3c15b0(0x2c6)):_0xbaf26f:_0xbaf26f;}function Ie(_0x11ab2e){var _0x2f1492=_0x23351a;switch(_0x11ab2e){case s['MCPConnectionStatus']['CONNECTED']:return'univer-text-green-500';case s[_0x2f1492(0x2ab)][_0x2f1492(0x248)]:case s[_0x2f1492(0x2ab)]['RETRYING']:return _0x2f1492(0x29c);case s[_0x2f1492(0x2ab)]['FAILED']:case s[_0x2f1492(0x2ab)][_0x2f1492(0x2a0)]:return _0x2f1492(0x227);default:return _0x2f1492(0x1bf);}}function X(_0x4be990){var _0x1be3c1=_0x23351a;const {status$:_0x1b29f9,error$:_0x2da78e,onConfigure:_0x20c02e,showClickable:_0x347fdd=!0x0}=_0x4be990,_0x256e9d=v['useObservable'](_0x1b29f9,s['MCPConnectionStatus'][_0x1be3c1(0x2a0)]),_0x2c53f2=v['useObservable'](_0x2da78e,s[_0x1be3c1(0x146)]['NONE']),_0x4f7604=v[_0x1be3c1(0x1c0)](l[_0x1be3c1(0x27f)]),_0x428b1a=_0x256e9d===s[_0x1be3c1(0x2ab)][_0x1be3c1(0x1f9)];_0x256e9d===s[_0x1be3c1(0x2ab)][_0x1be3c1(0x248)]||s[_0x1be3c1(0x2ab)][_0x1be3c1(0x22f)];const _0x1c297d=_0x4f7604['t'](Z(_0x256e9d,_0x2c53f2)),_0x420ccd=ye(_0x256e9d,_0x2c53f2,_0x4f7604,_0x347fdd),_0x7f5b30=Ie(_0x256e9d),_0x84a36f=_0x428b1a?t['jsx'](V,{}):t[_0x1be3c1(0x232)](q,{}),_0x425715=d[_0x1be3c1(0x18e)](()=>{_0x347fdd&&_0x20c02e&&_0x20c02e();},[_0x347fdd,_0x20c02e]);function _0x167689(){var _0x21f653=_0x1be3c1;return t[_0x21f653(0x17b)](_0x21f653(0x1b9),{'className':S[_0x21f653(0x235)](_0x21f653(0x2c8),_0x347fdd&&_0x20c02e&&_0x21f653(0x181)),'onClick':_0x347fdd&&_0x20c02e?_0x425715:void 0x0,'children':[t['jsx'](_0x21f653(0x1b9),{'className':S[_0x21f653(0x235)]('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x7f5b30),'children':_0x84a36f}),t['jsx']('div',{'className':_0x21f653(0x194),'children':_0x1c297d})]});}return t[_0x1be3c1(0x232)](S[_0x1be3c1(0x15b)],{'title':_0x420ccd,'placement':_0x1be3c1(0x18b),'children':_0x167689()});}var _e=Object[_0x23351a(0x1da)],Me=(_0x509d59,_0x1e4b3c,_0x44ac53,_0x4d4063)=>{var _0x582bc2=_0x23351a;for(var _0x56ca08=_0x4d4063>0x1?void 0x0:_0x4d4063?_e(_0x1e4b3c,_0x44ac53):_0x1e4b3c,_0xd673f9=_0x509d59[_0x582bc2(0x2ac)]-0x1,_0x4d05a1;_0xd673f9>=0x0;_0xd673f9--)(_0x4d05a1=_0x509d59[_0xd673f9])&&(_0x56ca08=_0x4d05a1(_0x56ca08)||_0x56ca08);return _0x56ca08;},b=(_0x2c7d16,_0x19a0d3)=>(_0xf9cd2e,_0x1afece)=>_0x19a0d3(_0xf9cd2e,_0x1afece,_0x2c7d16);exports['MCPConnectionUIController']=class extends l['Disposable']{constructor(_0x4560b3,_0x2d6b81,_0x5ee61b,_0x12be63){var _0x3ed438=_0x23351a;super(),this[_0x3ed438(0x134)]=_0x4560b3,this[_0x3ed438(0x1d6)]=_0x2d6b81,this[_0x3ed438(0x1b7)]=_0x5ee61b,this[_0x3ed438(0x236)]=_0x12be63,this[_0x3ed438(0x218)](),this[_0x3ed438(0x2b1)]();}[_0x23351a(0x218)](){var _0x15b95e=_0x23351a;const _0x20d0f3=this[_0x15b95e(0x236)][_0x15b95e(0x2a8)](y);_0x20d0f3!=null&&_0x20d0f3[_0x15b95e(0x29a)]&&(this[_0x15b95e(0x1d6)]['enableAutoConnect']=!0x1);}[_0x23351a(0x2b1)](){var _0xd1c8b7=_0x23351a;const _0x2e430a=this[_0xd1c8b7(0x236)][_0xd1c8b7(0x2a8)](y);(_0x2e430a==null?void 0x0:_0x2e430a[_0xd1c8b7(0x27b)])!==!0x1&&this[_0xd1c8b7(0x2c2)](this[_0xd1c8b7(0x1b7)][_0xd1c8b7(0x207)](v[_0xd1c8b7(0x162)][_0xd1c8b7(0x1ad)],()=>{var _0x1846ff=_0xd1c8b7,_0x43d391;return v[_0x1846ff(0x2ba)](Ne({'status$':this[_0x1846ff(0x1d6)][_0x1846ff(0x15a)],'error$':this['_connectionController'][_0x1846ff(0x1c3)],'onConfigure':()=>this[_0x1846ff(0x238)](),'showClickable':(_0x43d391=_0x2e430a==null?void 0x0:_0x2e430a['showDeveloperTools'])!=null?_0x43d391:!0x1}),this[_0x1846ff(0x134)]);}));}['_handleConfigure'](){var _0x4e7c6e=_0x23351a;this[_0x4e7c6e(0x134)][_0x4e7c6e(0x1b4)](exports[_0x4e7c6e(0x191)])[_0x4e7c6e(0x249)]();}},exports['MCPConnectionUIController']=Me([b(0x0,l[_0x23351a(0x14a)](l[_0x23351a(0x1d3)])),b(0x1,l[_0x23351a(0x14a)](s['MCPConnectionController'])),b(0x2,v[_0x23351a(0x29d)]),b(0x3,l[_0x23351a(0x136)])],exports['MCPConnectionUIController']);function Ne(_0x37f193){const {status$:_0x26b8ea,error$:_0x1f08b9,onConfigure:_0x2f6b4f,showClickable:_0x220927}=_0x37f193;return function(){var _0x3f607b=_0x46a5;return t[_0x3f607b(0x232)](X,{'status$':_0x26b8ea,'error$':_0x1f08b9,'onConfigure':_0x2f6b4f,'showClickable':_0x220927});};}function be(_0x414093){var _0x4cd3c7=_0x23351a;return{'id':j['id'],'type':v[_0x4cd3c7(0x296)]['BUTTON'],'icon':_0x4cd3c7(0x185),'title':_0x4cd3c7(0x1d4),'tooltip':_0x4cd3c7(0x1d4)};}const je={[v[_0x23351a(0x290)][_0x23351a(0x298)]]:{[j['id']]:{'order':0xa,'menuItemFactory':be}}};var Ee=Object[_0x23351a(0x1da)],we=(_0x5a8503,_0x4d6f7a,_0x57590e,_0x4eaf29)=>{var _0x45afb0=_0x23351a;for(var _0x4f37ca=_0x4eaf29>0x1?void 0x0:_0x4eaf29?Ee(_0x4d6f7a,_0x57590e):_0x4d6f7a,_0x558c83=_0x5a8503[_0x45afb0(0x2ac)]-0x1,_0x132ec4;_0x558c83>=0x0;_0x558c83--)(_0x132ec4=_0x5a8503[_0x558c83])&&(_0x4f37ca=_0x132ec4(_0x4f37ca)||_0x4f37ca);return _0x4f37ca;},z=(_0x2bc516,_0x1ce7ad)=>(_0x251b64,_0x5f00b1)=>_0x1ce7ad(_0x251b64,_0x5f00b1,_0x2bc516);exports[_0x23351a(0x1d9)]=class extends l['Disposable']{constructor(_0x7c0aab,_0x12f7b0){var _0x2f2feb=_0x23351a;super(),this[_0x2f2feb(0x132)]=_0x7c0aab,this[_0x2f2feb(0x206)]=_0x12f7b0,this[_0x2f2feb(0x188)](),this['_initializeMenus']();}[_0x23351a(0x188)](){var _0x127881=_0x23351a;[j][_0x127881(0x2b7)](_0x5706fa=>{var _0x53b63d=_0x127881;this[_0x53b63d(0x2c2)](this[_0x53b63d(0x132)][_0x53b63d(0x2bd)](_0x5706fa));});}['_initializeMenus'](){this['_menuManagerService']['mergeMenu'](je);}},exports[_0x23351a(0x1d9)]=we([z(0x0,l[_0x23351a(0x14d)]),z(0x1,v[_0x23351a(0x186)])],exports[_0x23351a(0x1d9)]);const Oe={'mcpStatus':{'disconnected':_0x23351a(0x166),'connecting':'MCP\x20Connecting...','connected':_0x23351a(0x1ec),'failed':_0x23351a(0x183),'retrying':'MCP\x20Retrying...','unknown':_0x23351a(0x13a),'unauthorized':_0x23351a(0x1f4),'sessionOccupied':_0x23351a(0x129),'networkError':_0x23351a(0x143),'maxRetriesExceeded':_0x23351a(0x180),'clickToConnect':_0x23351a(0x1a8),'clickToConfigure':_0x23351a(0x1b0)},'mcpConfig':{'title':_0x23351a(0x177),'description':_0x23351a(0x1ae),'apiKey':_0x23351a(0x1c8),'apiKeyPlaceholder':_0x23351a(0x208),'apiKeyHint':_0x23351a(0x21f),'enableAuth':_0x23351a(0x1d8),'enableAuthHint':_0x23351a(0x150),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x23351a(0x285),'configInstructions':_0x23351a(0x255),'configStepTitle':_0x23351a(0x24f),'configStep1':_0x23351a(0x245),'configStep2':_0x23351a(0x2bc),'configStep3':_0x23351a(0x210),'sessionId':_0x23351a(0x1df),'sessionIdDescription':_0x23351a(0x189),'authorizationDescription':_0x23351a(0x2bb),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x23351a(0x190),'save':_0x23351a(0x17a),'saving':_0x23351a(0x20c),'note1':_0x23351a(0x251),'note2':_0x23351a(0x222),'configSaved':_0x23351a(0x1cb),'configError':_0x23351a(0x133),'apiApplyInfo':{'title':_0x23351a(0x223),'description':_0x23351a(0x1f3),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x23351a(0x2a4)},'validation':{'apiKeyRequired':_0x23351a(0x196),'apiKeyTooShort':_0x23351a(0x21e),'invalidConfig':_0x23351a(0x165),'invalidApiKey':_0x23351a(0x212)},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':'Connected','failed':_0x23351a(0x19b),'retrying':_0x23351a(0x215)},'connectionError':{'unauthorized':_0x23351a(0x1c2),'sessionOccupied':_0x23351a(0x2c1),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x23351a(0x26d)}}},Ae={'mcpStatus':{'disconnected':_0x23351a(0x277),'connecting':'MCP\x20连接中...','connected':'MCP\x20已连接','failed':_0x23351a(0x228),'retrying':_0x23351a(0x266),'unknown':_0x23351a(0x25c),'unauthorized':_0x23351a(0x214),'sessionOccupied':_0x23351a(0x265),'networkError':_0x23351a(0x233),'maxRetriesExceeded':_0x23351a(0x2a9),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x23351a(0x25f)},'mcpConfig':{'title':_0x23351a(0x1c1),'description':_0x23351a(0x279),'apiKey':'API\x20密钥','apiKeyPlaceholder':_0x23351a(0x1e2),'apiKeyHint':_0x23351a(0x254),'enableAuth':_0x23351a(0x1ef),'enableAuthHint':_0x23351a(0x26c),'connectionInfo':_0x23351a(0x158),'mcpClientConfig':_0x23351a(0x158),'configInstructions':_0x23351a(0x1f8),'configStepTitle':_0x23351a(0x1a1),'configStep1':_0x23351a(0x200),'configStep2':_0x23351a(0x18a),'configStep3':_0x23351a(0x1bc),'sessionId':_0x23351a(0x14b),'sessionIdDescription':_0x23351a(0x1b2),'authorizationDescription':_0x23351a(0x1e3),'configParameters':_0x23351a(0x27c),'maxRetries':'最大重试次数','save':_0x23351a(0x164),'saving':'保存中...','note1':_0x23351a(0x17e),'note2':_0x23351a(0x280),'configSaved':'配置保存成功','configError':_0x23351a(0x140),'apiApplyInfo':{'title':_0x23351a(0x19d),'description':_0x23351a(0x1b5),'univerAiLabel':_0x23351a(0x243),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x23351a(0x17f),'apiKeyTooShort':_0x23351a(0x1e9),'invalidConfig':_0x23351a(0x1fb),'invalidApiKey':_0x23351a(0x23f)},'connectionStatus':{'disconnected':_0x23351a(0x1f0),'connecting':_0x23351a(0x1af),'connected':_0x23351a(0x17c),'failed':_0x23351a(0x29b),'retrying':_0x23351a(0x209)},'connectionError':{'unauthorized':_0x23351a(0x1f1),'sessionOccupied':_0x23351a(0x282),'networkError':_0x23351a(0x23c),'maxRetriesExceeded':_0x23351a(0x13c)}}};var De=Object[_0x23351a(0x283)],ke=Object[_0x23351a(0x1da)],Ue=(_0x2a372b,_0x2883d7,_0x406458)=>_0x2883d7 in _0x2a372b?De(_0x2a372b,_0x2883d7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x406458}):_0x2a372b[_0x2883d7]=_0x406458,Te=(_0x35b284,_0x1ceb9a,_0x588227,_0xa2b263)=>{var _0x26cb3a=_0x23351a;for(var _0x2acc72=_0xa2b263>0x1?void 0x0:_0xa2b263?ke(_0x1ceb9a,_0x588227):_0x1ceb9a,_0x567817=_0x35b284[_0x26cb3a(0x2ac)]-0x1,_0x34d5a4;_0x567817>=0x0;_0x567817--)(_0x34d5a4=_0x35b284[_0x567817])&&(_0x2acc72=_0x34d5a4(_0x2acc72)||_0x2acc72);return _0x2acc72;},M=(_0x52caf9,_0x269c36)=>(_0x5bfe61,_0x56a479)=>_0x269c36(_0x5bfe61,_0x56a479,_0x52caf9),$e=(_0x4f0a71,_0x2a39c4,_0x397b6d)=>Ue(_0x4f0a71,_0x2a39c4+'',_0x397b6d);exports[_0x23351a(0x2ae)]=class extends l[_0x23351a(0x2a3)]{constructor(_0x5e4ea9=G,_0x1af9db,_0x5ab28a,_0x7e396,_0x146801,_0x4ef3f4){var _0x32861d=_0x23351a;super(),this[_0x32861d(0x1a6)]=_0x5e4ea9,this[_0x32861d(0x134)]=_0x1af9db,this['_configService']=_0x5ab28a,this[_0x32861d(0x1b7)]=_0x7e396,this[_0x32861d(0x1e5)]=_0x146801,this[_0x32861d(0x12b)]=_0x4ef3f4;const {..._0x494259}=l[_0x32861d(0x291)]({},G,this['_config']);this[_0x32861d(0x236)][_0x32861d(0x2a6)](y,_0x494259);}async[_0x23351a(0x261)](){var _0x3f0b64=_0x23351a;const _0x10618f=[[exports[_0x3f0b64(0x1b8)]],[exports['MCPConfigUIController']],[exports[_0x3f0b64(0x1d9)]]];this[_0x3f0b64(0x134)]['has'](A[_0x3f0b64(0x173)])||_0x10618f[_0x3f0b64(0x217)]([A[_0x3f0b64(0x173)],{'useClass':A[_0x3f0b64(0x18c)]}]),_0x10618f[_0x3f0b64(0x2b7)](_0x5adff9=>this[_0x3f0b64(0x134)][_0x3f0b64(0x216)](_0x5adff9)),this['_injector'][_0x3f0b64(0x1b4)](exports[_0x3f0b64(0x1b8)]),this[_0x3f0b64(0x134)]['get'](exports[_0x3f0b64(0x191)]),this['_injector'][_0x3f0b64(0x1b4)](exports[_0x3f0b64(0x1d9)]);}},$e(exports[_0x23351a(0x2ae)],_0x23351a(0x19f),'MCP_UI_PLUGIN'),exports[_0x23351a(0x2ae)]=Te([l[_0x23351a(0x20d)](s[_0x23351a(0x12c)]),M(0x1,l[_0x23351a(0x14a)](l[_0x23351a(0x1d3)])),M(0x2,l['IConfigService']),M(0x3,v[_0x23351a(0x29d)]),M(0x4,l[_0x23351a(0x1db)]),M(0x5,l['Inject'](l[_0x23351a(0x27f)]))],exports['UniverMCPUIPlugin']),exports[_0x23351a(0x12f)]=W,exports[_0x23351a(0x172)]=X,exports[_0x23351a(0x262)]=j,exports[_0x23351a(0x149)]=Oe,exports['zhCN']=Ae;
|
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x12a0d7=_0x2cd3;(function(_0x1bc937,_0x316ae3){const _0x37b0e1=_0x2cd3,_0x4bb044=_0x1bc937();while(!![]){try{const _0x122cc0=-parseInt(_0x37b0e1(0x11d))/0x1+-parseInt(_0x37b0e1(0x120))/0x2+parseInt(_0x37b0e1(0x127))/0x3*(-parseInt(_0x37b0e1(0x136))/0x4)+-parseInt(_0x37b0e1(0x124))/0x5*(parseInt(_0x37b0e1(0x126))/0x6)+-parseInt(_0x37b0e1(0x116))/0x7*(-parseInt(_0x37b0e1(0x109))/0x8)+-parseInt(_0x37b0e1(0x12e))/0x9*(parseInt(_0x37b0e1(0x119))/0xa)+parseInt(_0x37b0e1(0x130))/0xb;if(_0x122cc0===_0x316ae3)break;else _0x4bb044['push'](_0x4bb044['shift']());}catch(_0x1f3710){_0x4bb044['push'](_0x4bb044['shift']());}}}(_0x357f,0xd9ecf));function _0x357f(){const _0x37abe3=['Max\x20Retries','27ZNfibX','Failed\x20to\x20save\x20configuration','34913417ohFZLK','exports','MCP\x20Disconnected','Saving...','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Connected','84jOFHqy','Configuration\x20Parameters:','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','388328bYszFA','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','API\x20key\x20is\x20required','Get\x20your\x20API\x20key\x20in\x20seconds','MCP:\x20Unauthorized','Connecting...','Enable\x20authentication\x20for\x20secure\x20connections','Session\x20ID','Connection\x20Failed','Univer\x20AI\x20Console','MCP\x20Connecting...','Retrying...','MCP:\x20Network\x20Error','217ZhUeoV','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','API\x20Key','4102580HTdtlD','MCP\x20Connection\x20Failed','MCP\x20Retrying...','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','1668586jGiHvX','Save\x20Configuration','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','144076yASvTx','Copy\x20the\x20JSON\x20configuration\x20below','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Unknown\x20Status','5605pcXCbK','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','2238ApZPKN','56652FdSLKM','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Configuration\x20saved\x20successfully','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\x20Client\x20Configuration'];_0x357f=function(){return _0x37abe3;};return _0x357f();}function _0x2cd3(_0x3e65a9,_0x2eb2e3){const _0x357fad=_0x357f();return _0x2cd3=function(_0x2cd3a6,_0x53b827){_0x2cd3a6=_0x2cd3a6-0x107;let _0x2723b1=_0x357fad[_0x2cd3a6];return _0x2723b1;},_0x2cd3(_0x3e65a9,_0x2eb2e3);}const e={'mcpStatus':{'disconnected':_0x12a0d7(0x132),'connecting':_0x12a0d7(0x113),'connected':_0x12a0d7(0x135),'failed':_0x12a0d7(0x11a),'retrying':_0x12a0d7(0x11b),'unknown':_0x12a0d7(0x123),'unauthorized':_0x12a0d7(0x10d),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x12a0d7(0x115),'maxRetriesExceeded':_0x12a0d7(0x122),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x12a0d7(0x117),'apiKey':_0x12a0d7(0x118),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x12a0d7(0x10a),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x12a0d7(0x10f),'connectionInfo':_0x12a0d7(0x12c),'mcpClientConfig':_0x12a0d7(0x12c),'configInstructions':_0x12a0d7(0x125),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x12a0d7(0x121),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x12a0d7(0x110),'sessionIdDescription':_0x12a0d7(0x11c),'authorizationDescription':_0x12a0d7(0x134),'configParameters':_0x12a0d7(0x107),'maxRetries':_0x12a0d7(0x12d),'save':_0x12a0d7(0x11e),'saving':_0x12a0d7(0x133),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x12a0d7(0x12a),'configError':_0x12a0d7(0x12f),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x12a0d7(0x12b),'univerAiLabel':_0x12a0d7(0x112),'getStarted':_0x12a0d7(0x10c)},'validation':{'apiKeyRequired':_0x12a0d7(0x10b),'apiKeyTooShort':_0x12a0d7(0x129),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x12a0d7(0x11f)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x12a0d7(0x10e),'connected':'Connected','failed':_0x12a0d7(0x111),'retrying':_0x12a0d7(0x114)},'connectionError':{'unauthorized':_0x12a0d7(0x108),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x12a0d7(0x128),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module[_0x12a0d7(0x131)]=n;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const _0x252710=_0x12df;function _0x12df(_0x3570d4,_0x5d6bb0){const _0x457111=_0x4571();return _0x12df=function(_0x12df81,_0x5331e3){_0x12df81=_0x12df81-0x75;let _0x22c088=_0x457111[_0x12df81];return _0x22c088;},_0x12df(_0x3570d4,_0x5d6bb0);}(function(_0x5908d6,_0x497c07){const _0x32b435=_0x12df,_0x40adee=_0x5908d6();while(!![]){try{const _0x599bb6=-parseInt(_0x32b435(0x8a))/0x1*(-parseInt(_0x32b435(0x8d))/0x2)+-parseInt(_0x32b435(0x8b))/0x3+-parseInt(_0x32b435(0x98))/0x4+parseInt(_0x32b435(0x83))/0x5+parseInt(_0x32b435(0x7b))/0x6+-parseInt(_0x32b435(0x90))/0x7*(-parseInt(_0x32b435(0x88))/0x8)+-parseInt(_0x32b435(0x97))/0x9;if(_0x599bb6===_0x497c07)break;else _0x40adee['push'](_0x40adee['shift']());}catch(_0x72ff03){_0x40adee['push'](_0x40adee['shift']());}}}(_0x4571,0xf214f));function _0x4571(){const _0x50c729=['Connecting...','MCP\x20Retrying...','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.','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Enable\x20Authentication','Connection\x20Failed','API\x20Key','Retrying...','9269604enZTPY','Failed\x20to\x20save\x20configuration','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Enter\x20your\x20API\x20key','MCP\x20Connection\x20Failed','Saving...','Click\x20to\x20connect\x20MCP','MCP:\x20Network\x20Error','847360bMfsqb','MCP:\x20Max\x20Retries\x20Exceeded','API\x20key\x20with\x20Bearer\x20prefix.','Session\x20ID','MCP\x20Configuration','74528iFGzLd','Copy\x20the\x20JSON\x20configuration\x20below','1KlLJlj','4418652IkRiuD','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','3886054bnbnqW','What\x20is\x20API\x20Key?','MCP:\x20Unauthorized','546DVbipI','Disconnected','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','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-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','API\x20key\x20is\x20required','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','1674333OnoqdO','6934372sgdEve','Save\x20Configuration','MCP\x20Connected','Configuration\x20Parameters:','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Click\x20to\x20configure\x20MCP','Enable\x20authentication\x20for\x20secure\x20connections','Configuration\x20changes\x20will\x20take\x20effect\x20immediately'];_0x4571=function(){return _0x50c729;};return _0x4571();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x252710(0x9a),'failed':_0x252710(0x7f),'retrying':_0x252710(0xa2),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x252710(0x8f),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x252710(0x82),'maxRetriesExceeded':_0x252710(0x84),'clickToConnect':_0x252710(0x81),'clickToConfigure':_0x252710(0x9e)},'mcpConfig':{'title':_0x252710(0x87),'description':_0x252710(0x96),'apiKey':_0x252710(0x79),'apiKeyPlaceholder':_0x252710(0x7e),'apiKeyHint':_0x252710(0x92),'enableAuth':_0x252710(0x77),'enableAuthHint':_0x252710(0x9f),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x252710(0x8c),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x252710(0x89),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x252710(0x9d),'sessionId':_0x252710(0x86),'sessionIdDescription':_0x252710(0x75),'authorizationDescription':_0x252710(0x85),'configParameters':_0x252710(0x9b),'maxRetries':'Max\x20Retries','save':_0x252710(0x99),'saving':_0x252710(0x80),'note1':_0x252710(0xa0),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x252710(0x7c),'apiApplyInfo':{'title':_0x252710(0x8e),'description':_0x252710(0x93),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x252710(0xa3)},'validation':{'apiKeyRequired':_0x252710(0x95),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x252710(0x9c)},'connectionStatus':{'disconnected':_0x252710(0x91),'connecting':_0x252710(0xa1),'connected':'Connected','failed':_0x252710(0x78),'retrying':_0x252710(0x7a)},'connectionError':{'unauthorized':_0x252710(0x7d),'sessionOccupied':_0x252710(0x94),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x252710(0x76)}}};module['exports']=e;
|
package/lib/cjs/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x42f0(){const _0x991082=['Configuration\x20Steps:','512EsYFMN','Copy\x20the\x20JSON\x20configuration\x20below','Configuration\x20Parameters:','MCP:\x20Network\x20Error','MCP\x20Unknown\x20Status','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','10SrgINQ','1285556ZqJMDJ','509766aJEFFK','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Enable\x20Authentication','Click\x20to\x20configure\x20MCP','Disconnected','Saving...','MCP\x20Disconnected','55153ptVuxq','Save\x20Configuration','MCP\x20Retrying...','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','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\x20changes\x20will\x20take\x20effect\x20immediately','20846520sSeXTi','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','3GmxczC','MCP\x20Connection\x20Failed','Connecting...','MCP\x20Connecting...','MCP\x20Configuration','MCP:\x20Max\x20Retries\x20Exceeded','6975551UVYhVa','16480ppjLtB','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Max\x20Retries','Retrying...','15gVxQsm','Invalid\x20configuration','4698252qJEPjN','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','40hVeMEg','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','exports','Enter\x20your\x20API\x20key','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Failed\x20to\x20save\x20configuration','Click\x20to\x20connect\x20MCP','What\x20is\x20API\x20Key?','Session\x20ID','MCP\x20Connected','Univer\x20AI\x20Console'];_0x42f0=function(){return _0x991082;};return _0x42f0();}const _0x5b4b25=_0x5394;(function(_0x202d6b,_0x4c03b4){const _0x9f77d0=_0x5394,_0x794baa=_0x202d6b();while(!![]){try{const _0x4dfab2=parseInt(_0x9f77d0(0x1f2))/0x1*(parseInt(_0x9f77d0(0x1fb))/0x2)+-parseInt(_0x9f77d0(0x1eb))/0x3*(parseInt(_0x9f77d0(0x1da))/0x4)+parseInt(_0x9f77d0(0x1f6))/0x5*(parseInt(_0x9f77d0(0x1db))/0x6)+parseInt(_0x9f77d0(0x1e2))/0x7*(-parseInt(_0x9f77d0(0x1d3))/0x8)+-parseInt(_0x9f77d0(0x1f8))/0x9*(parseInt(_0x9f77d0(0x1d9))/0xa)+-parseInt(_0x9f77d0(0x1f1))/0xb+parseInt(_0x9f77d0(0x1e9))/0xc;if(_0x4dfab2===_0x4c03b4)break;else _0x794baa['push'](_0x794baa['shift']());}catch(_0x1d6c69){_0x794baa['push'](_0x794baa['shift']());}}}(_0x42f0,0x52fa7));function _0x5394(_0x3ada74,_0x5a1693){const _0x42f001=_0x42f0();return _0x5394=function(_0x539443,_0x34e415){_0x539443=_0x539443-0x1c8;let _0x2645bf=_0x42f001[_0x539443];return _0x2645bf;},_0x5394(_0x3ada74,_0x5a1693);}const e={'mcpStatus':{'disconnected':_0x5b4b25(0x1e1),'connecting':_0x5b4b25(0x1ee),'connected':_0x5b4b25(0x1d0),'failed':_0x5b4b25(0x1ec),'retrying':_0x5b4b25(0x1e4),'unknown':_0x5b4b25(0x1d7),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x5b4b25(0x1d6),'maxRetriesExceeded':_0x5b4b25(0x1f0),'clickToConnect':_0x5b4b25(0x1cd),'clickToConfigure':_0x5b4b25(0x1de)},'mcpConfig':{'title':_0x5b4b25(0x1ef),'description':_0x5b4b25(0x1d8),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x5b4b25(0x1ca),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x5b4b25(0x1dd),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x5b4b25(0x1fa),'configStepTitle':_0x5b4b25(0x1d2),'configStep1':_0x5b4b25(0x1d4),'configStep2':_0x5b4b25(0x1ea),'configStep3':_0x5b4b25(0x1f3),'sessionId':_0x5b4b25(0x1cf),'sessionIdDescription':_0x5b4b25(0x1e6),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x5b4b25(0x1d5),'maxRetries':_0x5b4b25(0x1f4),'save':_0x5b4b25(0x1e3),'saving':_0x5b4b25(0x1e0),'note1':_0x5b4b25(0x1e8),'note2':_0x5b4b25(0x1f9),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x5b4b25(0x1cc),'apiApplyInfo':{'title':_0x5b4b25(0x1ce),'description':_0x5b4b25(0x1e5),'univerAiLabel':_0x5b4b25(0x1d1),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x5b4b25(0x1f7),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x5b4b25(0x1df),'connecting':_0x5b4b25(0x1ed),'connected':'Connected','failed':_0x5b4b25(0x1e7),'retrying':_0x5b4b25(0x1f5)},'connectionError':{'unauthorized':_0x5b4b25(0x1dc),'sessionOccupied':_0x5b4b25(0x1cb),'networkError':_0x5b4b25(0x1c8),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module[_0x5b4b25(0x1c9)]=n;
|
package/lib/cjs/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const _0x5a07fb=_0xc7a4;(function(_0x3fcaa6,_0x1e7d92){const _0x45f38f=_0xc7a4,_0x24e6ec=_0x3fcaa6();while(!![]){try{const _0x81977a=parseInt(_0x45f38f(0xcc))/0x1+-parseInt(_0x45f38f(0xd6))/0x2*(-parseInt(_0x45f38f(0xdd))/0x3)+-parseInt(_0x45f38f(0xe6))/0x4*(-parseInt(_0x45f38f(0xda))/0x5)+parseInt(_0x45f38f(0xd5))/0x6*(-parseInt(_0x45f38f(0xee))/0x7)+parseInt(_0x45f38f(0xe2))/0x8+parseInt(_0x45f38f(0xc8))/0x9+-parseInt(_0x45f38f(0xd0))/0xa;if(_0x81977a===_0x1e7d92)break;else _0x24e6ec['push'](_0x24e6ec['shift']());}catch(_0x2b21e9){_0x24e6ec['push'](_0x24e6ec['shift']());}}}(_0x10e7,0x90985));function _0xc7a4(_0x10e66d,_0x1fa68c){const _0x10e70e=_0x10e7();return _0xc7a4=function(_0xc7a4a1,_0x19917c){_0xc7a4a1=_0xc7a4a1-0xc3;let _0xe7aea0=_0x10e70e[_0xc7a4a1];return _0xe7aea0;},_0xc7a4(_0x10e66d,_0x1fa68c);}function _0x10e7(){const _0x3a81ae=['114678PLEbkE','Configuration\x20saved\x20successfully','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Copy\x20the\x20JSON\x20configuration\x20below','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','4809960BXuRmJ','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','API\x20Key','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','774692wrNpUl','Failed\x20to\x20save\x20configuration','MCP:\x20Session\x20ID\x20Occupied','MCP\x20Disconnected','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','API\x20key\x20is\x20required','MCP\x20Connection\x20Failed','Connected','1845711wDTYpc','MCP\x20Connected','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Disconnected','MCP\x20Configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Retrying...','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Unknown\x20Status','MCP\x20Client\x20Configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Session\x20ID','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','What\x20is\x20API\x20Key?','MCP:\x20Max\x20Retries\x20Exceeded','1208214bRYcwG','Connection\x20Failed','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Univer\x20AI\x20Console','1016052SjlfBu','Connecting...','API\x20key\x20with\x20Bearer\x20prefix.','Click\x20to\x20configure\x20MCP','15479940wSxMxg','MCP\x20Retrying...','MCP:\x20Network\x20Error','Max\x20Retries','MCP\x20Connecting...','6WlxjHA','24BubygW','Saving...','Configuration\x20Parameters:','Invalid\x20configuration','5yjjvat','Save\x20Configuration','Click\x20to\x20connect\x20MCP'];_0x10e7=function(){return _0x3a81ae;};return _0x10e7();}const e={'mcpStatus':{'disconnected':_0x5a07fb(0xe9),'connecting':_0x5a07fb(0xd4),'connected':_0x5a07fb(0xef),'failed':_0x5a07fb(0xec),'retrying':_0x5a07fb(0xd1),'unknown':_0x5a07fb(0xf7),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x5a07fb(0xe8),'networkError':_0x5a07fb(0xd2),'maxRetriesExceeded':_0x5a07fb(0xc7),'clickToConnect':_0x5a07fb(0xdc),'clickToConfigure':_0x5a07fb(0xcf)},'mcpConfig':{'title':_0x5a07fb(0xf2),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x5a07fb(0xe4),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x5a07fb(0xf6),'enableAuth':'Enable\x20Authentication','enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x5a07fb(0xf8),'mcpClientConfig':_0x5a07fb(0xf8),'configInstructions':_0x5a07fb(0xc3),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x5a07fb(0xe0),'configStep2':_0x5a07fb(0xca),'configStep3':_0x5a07fb(0xf5),'sessionId':_0x5a07fb(0xc4),'sessionIdDescription':_0x5a07fb(0xe1),'authorizationDescription':_0x5a07fb(0xce),'configParameters':_0x5a07fb(0xd8),'maxRetries':_0x5a07fb(0xd3),'save':_0x5a07fb(0xdb),'saving':_0x5a07fb(0xd7),'note1':_0x5a07fb(0xc5),'note2':_0x5a07fb(0xf3),'configSaved':_0x5a07fb(0xde),'configError':_0x5a07fb(0xe7),'apiApplyInfo':{'title':_0x5a07fb(0xc6),'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':_0x5a07fb(0xcb),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x5a07fb(0xeb),'apiKeyTooShort':_0x5a07fb(0xe3),'invalidConfig':_0x5a07fb(0xd9),'invalidApiKey':_0x5a07fb(0xdf)},'connectionStatus':{'disconnected':_0x5a07fb(0xf1),'connecting':_0x5a07fb(0xcd),'connected':_0x5a07fb(0xed),'failed':_0x5a07fb(0xc9),'retrying':_0x5a07fb(0xf4)},'connectionError':{'unauthorized':_0x5a07fb(0xf0),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x5a07fb(0xea),'maxRetriesExceeded':_0x5a07fb(0xe5)}}},n=e;module['exports']=n;
|
package/lib/cjs/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x5a44d6=_0x3fa8;function _0x3fa8(_0x9da1ec,_0x3e76c1){const _0x9634b7=_0x9634();return _0x3fa8=function(_0x3fa840,_0x471758){_0x3fa840=_0x3fa840-0x7f;let _0x2dedf9=_0x9634b7[_0x3fa840];return _0x2dedf9;},_0x3fa8(_0x9da1ec,_0x3e76c1);}function _0x9634(){const _0x3afc82=['Connection\x20Failed','2470vVmBvA','Retrying...','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Failed\x20to\x20save\x20configuration','64xRnYwc','15864ZqmgcJ','27PHfJoW','MCP\x20Configuration','Click\x20to\x20connect\x20MCP','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Connection\x20Failed','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Copy\x20the\x20JSON\x20configuration\x20below','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','API\x20key\x20with\x20Bearer\x20prefix.','1141220llOZmP','API\x20key\x20is\x20required','MCP:\x20Session\x20ID\x20Occupied','8UfqGAJ','345656CHSNhI','Enable\x20authentication\x20for\x20secure\x20connections','MCP:\x20Unauthorized','Saving...','MCP:\x20Network\x20Error','588jjUzLy','Session\x20ID','Enable\x20Authentication','2139835juLrBO','exports','API\x20Key','Connecting...','MCP\x20Retrying...','Click\x20to\x20configure\x20MCP','29646sTkCNW','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Configuration\x20Steps:','MCP:\x20Max\x20Retries\x20Exceeded','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Max\x20Retries','4387BiCVPk','Get\x20your\x20API\x20key\x20in\x20seconds','678660kOQAnT','Disconnected','MCP\x20Client\x20Configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Enter\x20your\x20API\x20key','11TRrzsV'];_0x9634=function(){return _0x3afc82;};return _0x9634();}(function(_0x5633bd,_0xdcf2b5){const _0x5a96f1=_0x3fa8,_0x157357=_0x5633bd();while(!![]){try{const _0x244c53=-parseInt(_0x5a96f1(0x8c))/0x1*(-parseInt(_0x5a96f1(0x99))/0x2)+parseInt(_0x5a96f1(0x8e))/0x3*(parseInt(_0x5a96f1(0xa8))/0x4)+-parseInt(_0x5a96f1(0xb1))/0x5+parseInt(_0x5a96f1(0x82))/0x6*(parseInt(_0x5a96f1(0xae))/0x7)+-parseInt(_0x5a96f1(0xa9))/0x8*(parseInt(_0x5a96f1(0x9b))/0x9)+parseInt(_0x5a96f1(0xa5))/0xa*(parseInt(_0x5a96f1(0x93))/0xb)+-parseInt(_0x5a96f1(0x9a))/0xc*(parseInt(_0x5a96f1(0x95))/0xd);if(_0x244c53===_0xdcf2b5)break;else _0x157357['push'](_0x157357['shift']());}catch(_0x33f16e){_0x157357['push'](_0x157357['shift']());}}}(_0x9634,0x4c786));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':_0x5a44d6(0x9f),'retrying':_0x5a44d6(0x80),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x5a44d6(0xab),'sessionOccupied':_0x5a44d6(0xa7),'networkError':_0x5a44d6(0xad),'maxRetriesExceeded':_0x5a44d6(0x89),'clickToConnect':_0x5a44d6(0x9d),'clickToConfigure':_0x5a44d6(0x81)},'mcpConfig':{'title':_0x5a44d6(0x9c),'description':_0x5a44d6(0x91),'apiKey':_0x5a44d6(0xb3),'apiKeyPlaceholder':_0x5a44d6(0x92),'apiKeyHint':_0x5a44d6(0x9e),'enableAuth':_0x5a44d6(0xb0),'enableAuthHint':_0x5a44d6(0xaa),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x5a44d6(0x90),'configInstructions':_0x5a44d6(0xa0),'configStepTitle':_0x5a44d6(0x88),'configStep1':_0x5a44d6(0xa2),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x5a44d6(0xaf),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x5a44d6(0xa4),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x5a44d6(0x8b),'save':'Save\x20Configuration','saving':_0x5a44d6(0xac),'note1':_0x5a44d6(0xa3),'note2':_0x5a44d6(0xa1),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x5a44d6(0x98),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x5a44d6(0x8a),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x5a44d6(0x8d)},'validation':{'apiKeyRequired':_0x5a44d6(0xa6),'apiKeyTooShort':_0x5a44d6(0x85),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x5a44d6(0x83)},'connectionStatus':{'disconnected':_0x5a44d6(0x8f),'connecting':_0x5a44d6(0x7f),'connected':'Connected','failed':_0x5a44d6(0x94),'retrying':_0x5a44d6(0x96)},'connectionError':{'unauthorized':_0x5a44d6(0x87),'sessionOccupied':_0x5a44d6(0x97),'networkError':_0x5a44d6(0x84),'maxRetriesExceeded':_0x5a44d6(0x86)}}},n=e;module[_0x5a44d6(0xb2)]=n;
|