@univerjs-pro/mcp-ui 0.10.9-experimental.20250925-61b61a0 → 0.10.9-nightly.202509260614
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 +6 -6
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x3574c5=_0x2d63;(function(_0x46b369,_0x5de46a){var _0x942939=_0x2d63,_0xab485b=_0x46b369();while(!![]){try{var _0x3dd6e3=-parseInt(_0x942939(0x1df))/0x1*(parseInt(_0x942939(0x236))/0x2)+-parseInt(_0x942939(0x18c))/0x3*(-parseInt(_0x942939(0x18d))/0x4)+parseInt(_0x942939(0x239))/0x5+-parseInt(_0x942939(0x295))/0x6+parseInt(_0x942939(0x27a))/0x7+-parseInt(_0x942939(0x233))/0x8*(parseInt(_0x942939(0x14e))/0x9)+-parseInt(_0x942939(0x1d2))/0xa;if(_0x3dd6e3===_0x5de46a)break;else _0xab485b['push'](_0xab485b['shift']());}catch(_0x453623){_0xab485b['push'](_0xab485b['shift']());}}}(_0x2387,0xb3d80));var we=Object['defineProperty'],Ee=(_0x452aae,_0xd2c75b,_0x2f6bfd)=>_0xd2c75b in _0x452aae?we(_0x452aae,_0xd2c75b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2f6bfd}):_0x452aae[_0xd2c75b]=_0x2f6bfd,S=(_0x465cf5,_0x2ca715,_0x1d0299)=>Ee(_0x465cf5,typeof _0x2ca715!='symbol'?_0x2ca715+'':_0x2ca715,_0x1d0299);import{LocaleService as _0x5e30d8,Inject as _0x5d3c90,Injector as _0x471d2e,IConfigService as _0x401ca3,ILocalStorageService as _0x21488e,ILogService as _0x4af03e,Disposable as _0x1bc153,CommandType as _0x4244a3,ICommandService as _0x341c97,DependentOn as _0x4b9302,Plugin as _0x34a5e5,merge as _0x48a548}from'@univerjs/core';import{jsxs as _0x127c76,jsx as _0x37c632}from'react/jsx-runtime';import{MCPConnectionStatus as _0x471fcb,MCPConnectionError as _0x2254ac,MCPConnectionController as _0x1dbbf6,MCP_PLUGIN_CONFIG_KEY as _0x32d439,UniverMCPPlugin as _0x5284cf}from'@univerjs-pro/mcp';import{Input as _0x4e1108,Button as _0xeb125b,MessageType as _0x486efb,Tooltip as _0x370899,clsx as _0x20c922}from'@univerjs/design';import{useDependency as _0x363bb5,useObservable as _0x244b6e,IUIPartsService as _0x13b205,IDialogService as _0x532761,IMessageService as _0x1fcb71,ComponentManager as _0x1e1131,connectInjector as _0x3e857f,BuiltInUIPart as _0x26227b,MenuItemType as _0xa892ef,RibbonStartGroup as _0x3ebdfc,IMenuManagerService as _0x58265b}from'@univerjs/ui';import{BehaviorSubject as _0x2fb825}from'rxjs';import{forwardRef as _0x51fdc9,useRef as _0x32c965,createElement as _0x598b98,useState as _0x4dcba5,useCallback as _0x4f31bd}from'react';import{ISocketService as _0xdde858,WebSocketService as _0x1f04c8}from'@univerjs/network';var f=function(){var _0x19f789=_0x2d63;return f=Object[_0x19f789(0x180)]||function(_0x49aa72){var _0x1ff626=_0x19f789;for(var _0x100168,_0x5e3bf6=0x1,_0x565697=arguments[_0x1ff626(0x171)];_0x5e3bf6<_0x565697;_0x5e3bf6++){_0x100168=arguments[_0x5e3bf6];for(var _0x52d896 in _0x100168)Object[_0x1ff626(0x1db)][_0x1ff626(0x175)][_0x1ff626(0x1a4)](_0x100168,_0x52d896)&&(_0x49aa72[_0x52d896]=_0x100168[_0x52d896]);}return _0x49aa72;},f[_0x19f789(0x208)](this,arguments);},Ye=function(_0x365a31,_0x230ade){var _0x289611=_0x2d63,_0x2ec836={};for(var _0x34c0bd in _0x365a31)Object[_0x289611(0x1db)][_0x289611(0x175)][_0x289611(0x1a4)](_0x365a31,_0x34c0bd)&&_0x230ade[_0x289611(0x298)](_0x34c0bd)<0x0&&(_0x2ec836[_0x34c0bd]=_0x365a31[_0x34c0bd]);if(_0x365a31!=null&&typeof Object[_0x289611(0x2a1)]==_0x289611(0x268)){for(var _0x5c0238=0x0,_0x34c0bd=Object[_0x289611(0x2a1)](_0x365a31);_0x5c0238<_0x34c0bd['length'];_0x5c0238++)_0x230ade[_0x289611(0x298)](_0x34c0bd[_0x5c0238])<0x0&&Object[_0x289611(0x1db)][_0x289611(0x167)][_0x289611(0x1a4)](_0x365a31,_0x34c0bd[_0x5c0238])&&(_0x2ec836[_0x34c0bd[_0x5c0238]]=_0x365a31[_0x34c0bd[_0x5c0238]]);}return _0x2ec836;},w=_0x51fdc9(function(_0x40d9f2,_0x1c2af0){var _0xb2cd97=_0x2d63,_0x47914b=_0x40d9f2[_0xb2cd97(0x286)],_0x1a7758=_0x40d9f2['id'],_0xef2549=_0x40d9f2[_0xb2cd97(0x20d)],_0x5c478a=_0x40d9f2['extend'],_0x15b371=Ye(_0x40d9f2,['icon','id',_0xb2cd97(0x20d),_0xb2cd97(0x284)]),_0x1c000e=_0xb2cd97(0x26e)[_0xb2cd97(0x23e)](_0x1a7758,'\x20')[_0xb2cd97(0x23e)](_0xef2549||'')[_0xb2cd97(0x1f1)](),_0x583e43=_0x32c965('_'[_0xb2cd97(0x23e)](Xe()));return ue(_0x47914b,''['concat'](_0x1a7758),{'defIds':_0x47914b[_0xb2cd97(0x1cd)],'idSuffix':_0x583e43[_0xb2cd97(0x1c4)]},f({'ref':_0x1c2af0,'className':_0x1c000e},_0x15b371),_0x5c478a);});function ue(_0x4cde8e,_0x5d385c,_0x43909c,_0x590c6e,_0x3e47fc){var _0x23759d=_0x2d63;return _0x598b98(_0x4cde8e[_0x23759d(0x20f)],f(f({'key':_0x5d385c},Ze(_0x4cde8e,_0x43909c,_0x3e47fc)),_0x590c6e),(qe(_0x4cde8e,_0x43909c)[_0x23759d(0x1b8)]||[])[_0x23759d(0x2af)](function(_0x4a4b67,_0x188c6f){var _0x5848f6=_0x23759d;return ue(_0x4a4b67,''[_0x5848f6(0x23e)](_0x5d385c,'-')[_0x5848f6(0x23e)](_0x4cde8e[_0x5848f6(0x20f)],'-')[_0x5848f6(0x23e)](_0x188c6f),_0x43909c,void 0x0,_0x3e47fc);}));}function Ze(_0x2e80f4,_0x3c927e,_0x147ffa){var _0x1693a3=_0x2d63,_0x1428e9=f({},_0x2e80f4[_0x1693a3(0x1bb)]);_0x147ffa!=null&&_0x147ffa[_0x1693a3(0x203)]&&_0x1428e9[_0x1693a3(0x1e7)]===_0x1693a3(0x203)&&(_0x1428e9[_0x1693a3(0x1e7)]=_0x147ffa['colorChannel1']),_0x2e80f4['tag']==='mask'&&_0x1428e9['id']&&(_0x1428e9['id']=_0x1428e9['id']+_0x3c927e[_0x1693a3(0x1fd)]),Object[_0x1693a3(0x190)](_0x1428e9)[_0x1693a3(0x280)](function(_0x45dcfd){var _0x2274a1=_0x1693a3,_0x35fd69=_0x45dcfd[0x0],_0x3dcc05=_0x45dcfd[0x1];_0x35fd69==='mask'&&typeof _0x3dcc05==_0x2274a1(0x158)&&(_0x1428e9[_0x35fd69]=_0x3dcc05[_0x2274a1(0x2ab)](/url\(#(.*)\)/,'url(#$1'[_0x2274a1(0x23e)](_0x3c927e[_0x2274a1(0x1fd)],')')));});var _0x12518c=_0x3c927e[_0x1693a3(0x1cd)];return!_0x12518c||_0x12518c[_0x1693a3(0x171)]===0x0||(_0x2e80f4[_0x1693a3(0x20f)]==='use'&&_0x1428e9[_0x1693a3(0x293)]&&(_0x1428e9['xlink:href']=_0x1428e9[_0x1693a3(0x293)]+_0x3c927e[_0x1693a3(0x1fd)]),Object[_0x1693a3(0x190)](_0x1428e9)[_0x1693a3(0x280)](function(_0x1b2c49){var _0xa76852=_0x1693a3,_0x33e744=_0x1b2c49[0x0],_0x181eb6=_0x1b2c49[0x1];typeof _0x181eb6=='string'&&(_0x1428e9[_0x33e744]=_0x181eb6[_0xa76852(0x2ab)](/url\(#(.*)\)/,_0xa76852(0x1dc)[_0xa76852(0x23e)](_0x3c927e['idSuffix'],')')));})),_0x1428e9;}function qe(_0x41ccf3,_0x557cc5){var _0x1c31b6=_0x2d63,_0x432977,_0x3973db=_0x557cc5[_0x1c31b6(0x1cd)];return!_0x3973db||_0x3973db[_0x1c31b6(0x171)]===0x0?_0x41ccf3:_0x41ccf3['tag']==='defs'&&(!((_0x432977=_0x41ccf3[_0x1c31b6(0x1b8)])===null||_0x432977===void 0x0)&&_0x432977['length'])?f(f({},_0x41ccf3),{'children':_0x41ccf3['children'][_0x1c31b6(0x2af)](function(_0xc08ad9){var _0x3c4a71=_0x1c31b6;return typeof _0xc08ad9[_0x3c4a71(0x1bb)]['id']==_0x3c4a71(0x158)&&_0x3973db&&_0x3973db[_0x3c4a71(0x176)](_0xc08ad9[_0x3c4a71(0x1bb)]['id'])?f(f({},_0xc08ad9),{'attrs':f(f({},_0xc08ad9['attrs']),{'id':_0xc08ad9['attrs']['id']+_0x557cc5[_0x3c4a71(0x1fd)]})}):_0xc08ad9;})}):_0x41ccf3;}function Xe(){var _0xe3577f=_0x2d63;return Math['random']()['toString'](0x24)[_0xe3577f(0x1b4)](0x2,0x8);}w[_0x3574c5(0x200)]=_0x3574c5(0x27b);var Je={'tag':_0x3574c5(0x17e),'attrs':{'xmlns':_0x3574c5(0x19d),'fill':_0x3574c5(0x1a9),'viewBox':_0x3574c5(0x1e8),'width':'1em','height':_0x3574c5(0x264)},'children':[{'tag':'path','attrs':{'fill':_0x3574c5(0x18e),'d':_0x3574c5(0x26a),'fillRule':_0x3574c5(0x2ac),'clipRule':_0x3574c5(0x2ac)}}]},le=_0x51fdc9(function(_0x55387c,_0x58601e){var _0x4adaae=_0x3574c5;return _0x598b98(w,Object[_0x4adaae(0x180)]({},_0x55387c,{'id':_0x4adaae(0x253),'ref':_0x58601e,'icon':Je}));});le[_0x3574c5(0x200)]=_0x3574c5(0x27e);var Qe={'tag':_0x3574c5(0x17e),'attrs':{'xmlns':_0x3574c5(0x19d),'fill':_0x3574c5(0x1a9),'viewBox':_0x3574c5(0x247),'width':_0x3574c5(0x264),'height':_0x3574c5(0x264)},'children':[{'tag':_0x3574c5(0x23a),'attrs':{'stroke':'currentColor','d':_0x3574c5(0x159),'strokeLinecap':'round','strokeLinejoin':_0x3574c5(0x292),'strokeWidth':1.33}},{'tag':_0x3574c5(0x23a),'attrs':{'stroke':'currentColor','d':'M5.21243\x2012.287L11.8791\x205.62036','strokeLinecap':_0x3574c5(0x292),'strokeLinejoin':_0x3574c5(0x292),'strokeWidth':1.33}}]},ve=_0x51fdc9(function(_0x954670,_0x4de3b8){var _0x448026=_0x3574c5;return _0x598b98(w,Object[_0x448026(0x180)]({},_0x954670,{'id':_0x448026(0x1ad),'ref':_0x4de3b8,'icon':Qe}));});ve['displayName']='CloseSmallSingle';var en={'tag':_0x3574c5(0x17e),'attrs':{'xmlns':_0x3574c5(0x19d),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x3574c5(0x264),'height':'1em'},'children':[{'tag':_0x3574c5(0x23a),'attrs':{'fill':_0x3574c5(0x18e),'d':_0x3574c5(0x1c8)}},{'tag':_0x3574c5(0x23a),'attrs':{'fill':_0x3574c5(0x18e),'d':_0x3574c5(0x191)}},{'tag':_0x3574c5(0x23a),'attrs':{'fill':_0x3574c5(0x18e),'d':_0x3574c5(0x25c),'fillRule':_0x3574c5(0x2ac),'clipRule':'evenodd'}}]},de=_0x51fdc9(function(_0xda4bd8,_0x13b6c0){var _0x371245=_0x3574c5;return _0x598b98(w,Object[_0x371245(0x180)]({},_0xda4bd8,{'id':_0x371245(0x15b),'ref':_0x13b6c0,'icon':en}));});de['displayName']=_0x3574c5(0x1fc);var nn={'tag':_0x3574c5(0x17e),'attrs':{'xmlns':_0x3574c5(0x19d),'fill':'none','viewBox':_0x3574c5(0x1e8),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x3574c5(0x260)},'children':[{'tag':_0x3574c5(0x23a),'attrs':{'stroke':_0x3574c5(0x18e),'d':_0x3574c5(0x27d),'strokeLinecap':'round','strokeLinejoin':_0x3574c5(0x292),'strokeWidth':1.2}}]},{'tag':_0x3574c5(0x210),'attrs':{},'children':[{'tag':_0x3574c5(0x1f3),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x3574c5(0x23a),'attrs':{'fill':'white','d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x3574c5(0x205)]},fe=_0x51fdc9(function(_0x2e02e0,_0x5c8cb6){var _0x481888=_0x3574c5;return _0x598b98(w,Object[_0x481888(0x180)]({},_0x2e02e0,{'id':_0x481888(0x1e9),'ref':_0x5c8cb6,'icon':nn}));});function _0x2d63(_0x4df704,_0x29f506){var _0x23872e=_0x2387();return _0x2d63=function(_0x2d63e6,_0x502769){_0x2d63e6=_0x2d63e6-0x14b;var _0x39499c=_0x23872e[_0x2d63e6];return _0x39499c;},_0x2d63(_0x4df704,_0x29f506);}fe['displayName']=_0x3574c5(0x17c);var rn={'tag':_0x3574c5(0x17e),'attrs':{'xmlns':_0x3574c5(0x19d),'fill':_0x3574c5(0x1a9),'viewBox':'0\x200\x2017\x2016','width':_0x3574c5(0x264),'height':_0x3574c5(0x264)},'children':[{'tag':'g','attrs':{'clipPath':_0x3574c5(0x1c9)},'children':[{'tag':_0x3574c5(0x23a),'attrs':{'stroke':_0x3574c5(0x18e),'d':_0x3574c5(0x285),'strokeLinecap':_0x3574c5(0x292),'strokeLinejoin':_0x3574c5(0x292),'strokeWidth':1.2}}]},{'tag':_0x3574c5(0x210),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x3574c5(0x23a),'attrs':{'fill':'white','d':_0x3574c5(0x259),'transform':_0x3574c5(0x230)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},ge=_0x51fdc9(function(_0x2c115b,_0x5b79a9){var _0x1ab1d3=_0x3574c5;return _0x598b98(w,Object['assign']({},_0x2c115b,{'id':_0x1ab1d3(0x206),'ref':_0x5b79a9,'icon':rn}));});ge[_0x3574c5(0x200)]=_0x3574c5(0x156);function tn(_0x27a475){var _0x24e862=_0x3574c5,_0x350b9c,_0x5b6236;const {mcpCoreConfig:_0xe612c5,onSave:_0x41f93c,loading:_0x5ea752=!0x1,config:_0x48ad54,connectionStatus$:_0x2cd5b7,connectionError$:_0x55f05e,currentApiKey$:_0x465a32,currentSessionId$:_0x114799}=_0x27a475,_0x3e102c=_0x363bb5(_0x5e30d8),_0x2f5ccb=_0x244b6e(_0x2cd5b7,_0x471fcb['DISCONNECTED']),_0x56c497=_0x244b6e(_0x55f05e,_0x2254ac[_0x24e862(0x16b)]),_0x26fea2=_0x244b6e(_0x114799,''),_0xb770b3=_0x244b6e(_0x465a32,''),[_0x34bef0,_0x4e9b15]=_0x4dcba5(_0xb770b3||''),_0x3b2dad=!0x0,_0x125a27=_0x48ad54[_0x24e862(0x1d8)]&&_0xe612c5['mcpServerUrl']&&(_0xe612c5[_0x24e862(0x261)][_0x24e862(0x176)]('univer.plus')||_0xe612c5[_0x24e862(0x261)][_0x24e862(0x176)](_0x24e862(0x24a))),_0x4fd4c8=(_0x350b9c=_0xe612c5[_0x24e862(0x261)])==null?void 0x0:_0x350b9c[_0x24e862(0x176)](_0x24e862(0x299)),_0x265515=(_0x5b6236=_0xe612c5[_0x24e862(0x261)])==null?void 0x0:_0x5b6236['includes'](_0x24e862(0x24a)),_0x4aa5c2=_0x4fd4c8?'https://console.univer.plus':_0x24e862(0x1f9),_0x526c77=_0x48ad54[_0x24e862(0x1d8)]&&(_0x4fd4c8||_0x265515),[_0x48691b,_0x4cd109]=_0x4dcba5(!_0x34bef0['trim']()),_0x33aff8=(_0x5f5b71,_0x17785c)=>{var _0xafaceb=_0x24e862;if(_0x17785c===_0x2254ac[_0xafaceb(0x1b3)])return _0xafaceb(0x153);switch(_0x5f5b71){case _0x471fcb[_0xafaceb(0x1d3)]:return _0xafaceb(0x29b);case _0x471fcb[_0xafaceb(0x157)]:case _0x471fcb[_0xafaceb(0x1d6)]:return _0xafaceb(0x222);case _0x471fcb[_0xafaceb(0x27c)]:return _0xafaceb(0x153);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0xab1c60=(_0x307608,_0x40fa6e)=>{var _0x264c7f=_0x24e862;if(_0x40fa6e===_0x2254ac[_0x264c7f(0x1b3)])return _0x264c7f(0x194);switch(_0x307608){case _0x471fcb[_0x264c7f(0x1d3)]:return _0x264c7f(0x1e6);case _0x471fcb['CONNECTING']:case _0x471fcb['RETRYING']:return _0x264c7f(0x29e);case _0x471fcb[_0x264c7f(0x27c)]:return _0x264c7f(0x194);default:return _0x264c7f(0x290);}},_0x1963fe=_0x791d31=>{var _0x20083c=_0x24e862;switch(_0x791d31){case _0x471fcb['CONNECTED']:return _0x3e102c['t'](_0x20083c(0x1e2));case _0x471fcb[_0x20083c(0x157)]:return _0x3e102c['t'](_0x20083c(0x15f));case _0x471fcb[_0x20083c(0x27c)]:return _0x3e102c['t'](_0x20083c(0x193));case _0x471fcb[_0x20083c(0x1d6)]:return _0x3e102c['t'](_0x20083c(0x1e1));default:return _0x3e102c['t'](_0x20083c(0x20e));}},_0x37b774=_0x9d946=>{var _0x4e9ef6=_0x24e862;switch(_0x9d946){case _0x2254ac[_0x4e9ef6(0x1b3)]:return _0x3e102c['t'](_0x4e9ef6(0x166));case _0x2254ac[_0x4e9ef6(0x1f6)]:return _0x3e102c['t'](_0x4e9ef6(0x1cb));case _0x2254ac['NETWORK_ERROR']:return _0x3e102c['t'](_0x4e9ef6(0x1aa));case _0x2254ac[_0x4e9ef6(0x2aa)]:return _0x3e102c['t'](_0x4e9ef6(0x1e5));default:return'';}},_0x32ea64=_0x4f31bd(()=>{const _0x91bdeb={..._0xe612c5,'apiKey':_0x34bef0['trim'](),'enableAuth':_0x3b2dad};_0x41f93c(_0x91bdeb);},[_0xe612c5,_0x34bef0,_0x3b2dad,_0x41f93c]),_0x490e5f=_0x34bef0[_0x24e862(0x1f1)]()[_0x24e862(0x171)]>0x0;return _0x127c76(_0x24e862(0x184),{'className':_0x24e862(0x211),'children':[_0x37c632(_0x24e862(0x184),{'className':_0x24e862(0x25a),'children':_0x127c76(_0x24e862(0x184),{'className':_0x24e862(0x16d),'children':[_0x37c632(_0x24e862(0x184),{'className':_0x24e862(0x21b),'children':_0x37c632(_0x24e862(0x212),{'className':'univer-text-white','children':'⚙'})}),_0x37c632(_0x24e862(0x184),{'children':_0x37c632('p',{'className':_0x24e862(0x24f),'children':_0x3e102c['t'](_0x24e862(0x243))})})]})}),_0x127c76(_0x24e862(0x184),{'className':_0x24e862(0x202),'children':[_0x37c632(_0x24e862(0x184),{'className':_0x24e862(0x278)+_0x33aff8(_0x2f5ccb,_0x56c497)+_0x24e862(0x279),'children':_0x127c76(_0x24e862(0x184),{'className':_0x24e862(0x276),'children':[_0x37c632(_0x24e862(0x184),{'className':_0x24e862(0x1f4)+_0xab1c60(_0x2f5ccb,_0x56c497)+_0x24e862(0x269)}),_0x37c632(_0x24e862(0x212),{'className':_0x24e862(0x245),'children':_0x1963fe(_0x2f5ccb)})]})}),_0x56c497!==_0x2254ac['NONE']&&(_0x2f5ccb===_0x471fcb[_0x24e862(0x27c)]||_0x56c497===_0x2254ac[_0x24e862(0x1b3)])&&_0x37c632(_0x24e862(0x184),{'className':_0x24e862(0x187),'children':_0x127c76(_0x24e862(0x184),{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[_0x37c632(_0x24e862(0x212),{'className':_0x24e862(0x1d9),'children':'⚠️'}),_0x37c632('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x37b774(_0x56c497)})]})})]}),_0x37c632('div',{'className':_0x24e862(0x164),'children':_0x127c76(_0x24e862(0x184),{'className':'univer-space-y-5','children':[_0x127c76(_0x24e862(0x184),{'className':_0x24e862(0x1bf),'children':[_0x127c76(_0x24e862(0x1ec),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0x37c632(_0x24e862(0x212),{'children':'🔑'}),'\x20',_0x3e102c['t']('mcpConfig.apiKey'),_0x37c632('span',{'className':'univer-text-red-500','children':'*'}),_0x125a27&&_0x37c632('a',{'href':_0x24e862(0x1c6),'onClick':()=>_0x4cd109(!0x0),'className':_0x24e862(0x21d),'title':_0x3e102c['t']('mcpConfig.apiApplyInfo.title'),'children':_0x37c632(de,{})})]}),_0x37c632(_0x4e1108,{'type':_0x24e862(0x237),'placeholder':_0x3e102c['t'](_0x24e862(0x22e)),'value':_0x34bef0,'onChange':_0x4e9b15,'disabled':_0x5ea752,'autoComplete':_0x24e862(0x2a3)}),_0x37c632('p',{'className':_0x24e862(0x152),'children':_0x3e102c['t'](_0x24e862(0x163))})]}),_0x125a27&&_0x48691b&&_0x127c76(_0x24e862(0x184),{'className':_0x24e862(0x275),'children':[_0x37c632('a',{'href':_0x24e862(0x1c6),'onClick':()=>_0x4cd109(!0x1),'className':_0x24e862(0x252),'title':_0x24e862(0x273),'children':_0x37c632(ve,{})}),_0x127c76('div',{'className':_0x24e862(0x17b),'children':[_0x37c632(_0x24e862(0x184),{'className':'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','children':_0x37c632('span',{'className':_0x24e862(0x256),'children':'🚀'})}),_0x127c76(_0x24e862(0x184),{'className':_0x24e862(0x1a5),'children':[_0x37c632('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x3e102c['t'](_0x24e862(0x1ef))}),_0x37c632('p',{'className':_0x24e862(0x1e0),'children':_0x3e102c['t'](_0x24e862(0x182))}),_0x37c632(_0x24e862(0x184),{'className':_0x24e862(0x251),'children':_0x526c77&&_0x127c76('a',{'href':_0x4aa5c2,'target':_0x24e862(0x1f0),'rel':_0x24e862(0x223),'className':_0x24e862(0x248),'children':[_0x37c632(_0x24e862(0x212),{'children':'🤖'}),_0x3e102c['t'](_0x24e862(0x2a8)),_0x37c632(_0x24e862(0x212),{'className':_0x24e862(0x2ae),'children':'↗'})]})}),_0x127c76('div',{'className':_0x24e862(0x23c),'children':['✨','\x20',_0x3e102c['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x48ad54[_0x24e862(0x1d8)]&&_0x127c76(_0x24e862(0x184),{'className':_0x24e862(0x219),'children':[_0x127c76('h4',{'className':_0x24e862(0x25b),'children':[_0x37c632('span',{'children':'🔗'}),'\x20',_0x3e102c['t']('mcpConfig.connectionInfo')]}),_0x127c76('div',{'className':'univer-space-y-4','children':[_0x127c76('div',{'className':_0x24e862(0x195),'children':[_0x37c632('p',{'className':_0x24e862(0x216),'children':_0x3e102c['t'](_0x24e862(0x235))}),_0x127c76(_0x24e862(0x184),{'className':_0x24e862(0x1bf),'children':[_0x37c632(_0x24e862(0x184),{'className':_0x24e862(0x24e),'children':_0x3e102c['t'](_0x24e862(0x1d5))}),_0x127c76(_0x24e862(0x184),{'className':_0x24e862(0x287),'children':[_0x127c76('div',{'className':_0x24e862(0x276),'children':[_0x37c632('span',{'className':_0x24e862(0x1b7),'children':'1'}),_0x3e102c['t'](_0x24e862(0x1d1))]}),_0x127c76(_0x24e862(0x184),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x37c632(_0x24e862(0x212),{'className':_0x24e862(0x1b7),'children':'2'}),_0x3e102c['t'](_0x24e862(0x288))]}),_0x127c76(_0x24e862(0x184),{'className':_0x24e862(0x276),'children':[_0x37c632(_0x24e862(0x212),{'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'}),_0x3e102c['t'](_0x24e862(0x15a))]})]})]})]}),_0x127c76(_0x24e862(0x184),{'className':_0x24e862(0x1bf),'children':[_0x37c632(_0x24e862(0x184),{'className':_0x24e862(0x24e),'children':'MCP\x20Configuration'}),_0x37c632(_0x24e862(0x184),{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':_0x37c632(_0x24e862(0x28f),{'className':_0x24e862(0x291),'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='+_0x26fea2+_0x24e862(0x2a9)+(_0x34bef0||_0x24e862(0x1ae))+_0x24e862(0x229)})})]}),_0x127c76('div',{'className':_0x24e862(0x195),'children':[_0x37c632(_0x24e862(0x184),{'className':_0x24e862(0x24e),'children':_0x3e102c['t']('mcpConfig.configParameters')}),_0x127c76(_0x24e862(0x184),{'className':_0x24e862(0x1bf),'children':[_0x127c76(_0x24e862(0x184),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x37c632(_0x24e862(0x184),{'className':_0x24e862(0x22b)}),_0x127c76(_0x24e862(0x184),{'className':_0x24e862(0x27f),'children':[_0x37c632(_0x24e862(0x184),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':'univer_session_id:'}),_0x37c632(_0x24e862(0x184),{'className':_0x24e862(0x152),'children':_0x3e102c['t'](_0x24e862(0x218))})]})]}),_0x127c76(_0x24e862(0x184),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x37c632(_0x24e862(0x184),{'className':_0x24e862(0x22b)}),_0x127c76(_0x24e862(0x184),{'className':_0x24e862(0x27f),'children':[_0x37c632(_0x24e862(0x184),{'className':_0x24e862(0x155),'children':_0x24e862(0x1a7)}),_0x37c632(_0x24e862(0x184),{'className':_0x24e862(0x152),'children':_0x3e102c['t'](_0x24e862(0x1c5))})]})]})]})]})]})]}),_0x37c632(_0xeb125b,{'onClick':_0x32ea64,'disabled':!_0x490e5f||_0x5ea752,'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':_0x5ea752?_0x127c76(_0x24e862(0x212),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x37c632(_0x24e862(0x212),{'children':'⟲'}),_0x3e102c['t'](_0x24e862(0x281))]}):_0x127c76('span',{'className':_0x24e862(0x276),'children':[_0x37c632(le,{}),_0x3e102c['t']('mcpConfig.save')]})}),_0x37c632(_0x24e862(0x184),{'className':_0x24e862(0x198),'children':_0x127c76('div',{'className':_0x24e862(0x1b5),'children':[_0x37c632(_0x24e862(0x212),{'className':_0x24e862(0x1ff),'children':'💡'}),_0x127c76(_0x24e862(0x184),{'className':_0x24e862(0x183),'children':[_0x37c632('div',{'className':_0x24e862(0x254),'children':_0x24e862(0x221)}),_0x127c76(_0x24e862(0x184),{'children':['•',_0x3e102c['t'](_0x24e862(0x1e4))]}),_0x127c76(_0x24e862(0x184),{'children':['•',_0x3e102c['t'](_0x24e862(0x294))]})]})]})})]})})]});}const x=_0x3574c5(0x22d),re={'showDeveloperTools':!0x1,'showStatus':!0x0};var on=Object[_0x3574c5(0x2a5)],sn=(_0x277b63,_0x312659,_0x1600c9,_0x5b12a4)=>{var _0x5adaf7=_0x3574c5;for(var _0x1d33a3=_0x5b12a4>0x1?void 0x0:_0x5b12a4?on(_0x312659,_0x1600c9):_0x312659,_0x4a6503=_0x277b63[_0x5adaf7(0x171)]-0x1,_0x3d6891;_0x4a6503>=0x0;_0x4a6503--)(_0x3d6891=_0x277b63[_0x4a6503])&&(_0x1d33a3=_0x3d6891(_0x1d33a3)||_0x1d33a3);return _0x1d33a3;},g=(_0x13502c,_0x3b4e4e)=>(_0x323276,_0x32d0d4)=>_0x3b4e4e(_0x323276,_0x32d0d4,_0x13502c);const j=_0x3574c5(0x25d),U=_0x3574c5(0x238);let I=class extends _0x1bc153{constructor(_0x2ee411,_0x5ba21c,_0x3248e9,_0x193b45,_0x1cf02c,_0xf52722,_0x240662,_0x48d632,_0x582829,_0xc7671a){var _0x1c3b58=_0x3574c5;super(),S(this,'_loading$',new _0x2fb825(!0x1)),S(this,_0x1c3b58(0x1eb),new _0x2fb825({})),S(this,_0x1c3b58(0x272),new _0x2fb825({})),S(this,'_apiKey$',new _0x2fb825('')),S(this,_0x1c3b58(0x1c0),async _0x3327c4=>{var _0x46756c=_0x1c3b58,_0x4a3637,_0x7a8bae;this[_0x46756c(0x19f)][_0x46756c(0x199)](!0x0);try{const _0x33434f=await this[_0x46756c(0x26f)](_0x3327c4);if(!_0x33434f[_0x46756c(0x29d)]){this[_0x46756c(0x17a)][_0x46756c(0x14c)]({'type':_0x486efb['Error'],'content':_0x33434f[_0x46756c(0x22a)]||this[_0x46756c(0x179)]['t'](_0x46756c(0x1de))});return;}_0x3327c4[_0x46756c(0x1fe)]?await this['_localStorageService']['setItem'](j,_0x3327c4[_0x46756c(0x1fe)]['trim']()):await this[_0x46756c(0x225)]['removeItem'](j),this['_apiKey$'][_0x46756c(0x199)](((_0x4a3637=_0x3327c4[_0x46756c(0x1fe)])==null?void 0x0:_0x4a3637[_0x46756c(0x1f1)]())||''),this['_mcpConnectionController'][_0x46756c(0x1be)]({'Authorization':'Bearer\x20'+((_0x7a8bae=_0x3327c4[_0x46756c(0x1fe)])==null?void 0x0:_0x7a8bae[_0x46756c(0x1f1)]())}),this['_messageService'][_0x46756c(0x14c)]({'type':_0x486efb['Success'],'content':this[_0x46756c(0x179)]['t'](_0x46756c(0x297))}),setTimeout(()=>{var _0x369e1b=_0x46756c;this[_0x369e1b(0x201)]['close'](U);},0x320);}catch(_0x126d91){this['_logService'][_0x46756c(0x28c)]('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x126d91),this['_messageService'][_0x46756c(0x14c)]({'type':_0x486efb[_0x46756c(0x255)],'content':this[_0x46756c(0x179)]['t'](_0x46756c(0x165))});}finally{this['_loading$'][_0x46756c(0x199)](!0x1);}}),(this[_0x1c3b58(0x18f)]=_0x2ee411,this[_0x1c3b58(0x172)]=_0x5ba21c,this['_configService']=_0x3248e9,this[_0x1c3b58(0x225)]=_0x193b45,this[_0x1c3b58(0x201)]=_0x1cf02c,this[_0x1c3b58(0x17a)]=_0xf52722,this['_componentManager']=_0x240662,this[_0x1c3b58(0x179)]=_0x48d632,this[_0x1c3b58(0x283)]=_0x582829,this[_0x1c3b58(0x1e3)]=_0xc7671a,this['_initConfigSync'](),this[_0x1c3b58(0x16e)](),this[_0x1c3b58(0x20c)]());}[_0x3574c5(0x21c)](){var _0x3a6e26=_0x3574c5;const _0x99f3a=this['_configService'][_0x3a6e26(0x15c)](x);_0x99f3a!=null&&_0x99f3a[_0x3a6e26(0x1d8)]&&this[_0x3a6e26(0x201)]['open']({'id':U,'title':{'title':this[_0x3a6e26(0x179)]['t'](_0x3a6e26(0x1b9))},'children':{'label':_0x3a6e26(0x1cf)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0x23ae91=_0x3a6e26;this[_0x23ae91(0x201)][_0x23ae91(0x1ee)](U);}});}['getCurrentConfig'](){var _0x2d56cb=_0x3574c5;return this[_0x2d56cb(0x1eb)][_0x2d56cb(0x289)];}[_0x3574c5(0x20c)](){var _0x382b2e=_0x3574c5;this[_0x382b2e(0x161)](this['_componentManager'][_0x382b2e(0x1bc)](_0x382b2e(0x1cf),this[_0x382b2e(0x1b6)]()));}[_0x3574c5(0x1b6)](){var _0x479c23=_0x3574c5;return _0x3e857f(()=>{var _0x2e00ed=_0x2d63,_0xb774bc,_0x458a85,_0x2e4b60;return _0x37c632(tn,{'config':this[_0x2e00ed(0x272)][_0x2e00ed(0x289)],'mcpCoreConfig':this['_mcpCoreConfig$'][_0x2e00ed(0x289)],'currentApiKey$':this[_0x2e00ed(0x174)],'onSave':this[_0x2e00ed(0x1c0)],'loading':this[_0x2e00ed(0x19f)][_0x2e00ed(0x289)],'connectionStatus$':(_0xb774bc=this[_0x2e00ed(0x1e3)])==null?void 0x0:_0xb774bc['connectionStatus$'],'connectionError$':(_0x458a85=this[_0x2e00ed(0x1e3)])==null?void 0x0:_0x458a85[_0x2e00ed(0x240)],'currentSessionId$':(_0x2e4b60=this[_0x2e00ed(0x1e3)])==null?void 0x0:_0x2e4b60[_0x2e00ed(0x17d)]});},this[_0x479c23(0x18f)]);}[_0x3574c5(0x266)](){var _0x2921ba=_0x3574c5;this['disposeWithMe'](this[_0x2921ba(0x14d)][_0x2921ba(0x23f)](_0x32d439)[_0x2921ba(0x207)](_0x1b7720=>{var _0x3cbe28=_0x2921ba;this[_0x3cbe28(0x1eb)][_0x3cbe28(0x199)](_0x1b7720||{});}));const _0x2ea23c=this[_0x2921ba(0x14d)]['getConfig'](_0x32d439);this[_0x2921ba(0x1eb)]['next'](_0x2ea23c||{}),this[_0x2921ba(0x161)](this[_0x2921ba(0x14d)][_0x2921ba(0x23f)](x)[_0x2921ba(0x207)](_0x105d9d=>{var _0x37e2be=_0x2921ba;this[_0x37e2be(0x272)][_0x37e2be(0x199)](_0x105d9d||{});}));const _0x1610ee=this['_configService'][_0x2921ba(0x15c)](x);this[_0x2921ba(0x272)][_0x2921ba(0x199)](_0x1610ee||{});}async[_0x3574c5(0x16e)](){var _0x523fa9=_0x3574c5;const _0x5d5d75=this['_configService']['getConfig'](x);if(!(_0x5d5d75!=null&&_0x5d5d75[_0x523fa9(0x1d8)]))return;const _0x560412=await this[_0x523fa9(0x225)][_0x523fa9(0x21e)](j);_0x560412&&(this[_0x523fa9(0x1e3)][_0x523fa9(0x1be)]({'Authorization':'Bearer\x20'+_0x560412}),this[_0x523fa9(0x174)][_0x523fa9(0x199)](_0x560412));}async[_0x3574c5(0x26f)](_0x555e37){var _0x4fb3b4=_0x3574c5;if(!_0x555e37[_0x4fb3b4(0x1fe)]||_0x555e37['apiKey']['trim']()[_0x4fb3b4(0x171)]===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x4fb3b4(0x1cc))};if(_0x555e37[_0x4fb3b4(0x1fe)][_0x4fb3b4(0x1f1)]()[_0x4fb3b4(0x171)]<0xa)return{'isValid':!0x1,'errorMessage':this['_localeService']['t']('mcpConfig.validation.apiKeyTooShort')};try{const _0x2a9e88=await this[_0x4fb3b4(0x18f)][_0x4fb3b4(0x244)](_0x1dbbf6)[_0x4fb3b4(0x1a6)](_0x555e37[_0x4fb3b4(0x1fe)][_0x4fb3b4(0x1f1)]());return _0x2a9e88[_0x4fb3b4(0x29d)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x2a9e88[_0x4fb3b4(0x28c)]||this['_localeService']['t'](_0x4fb3b4(0x234))};}catch(_0x339e05){return console[_0x4fb3b4(0x213)](_0x4fb3b4(0x232),_0x339e05),{'isValid':!0x0};}}};I=sn([g(0x0,_0x5d3c90(_0x471d2e)),g(0x1,_0x13b205),g(0x2,_0x401ca3),g(0x3,_0x21488e),g(0x4,_0x532761),g(0x5,_0x1fcb71),g(0x6,_0x5d3c90(_0x1e1131)),g(0x7,_0x5d3c90(_0x5e30d8)),g(0x8,_0x4af03e),g(0x9,_0x5d3c90(_0x1dbbf6))],I);const V={'id':'mcp-ui.command.openConfigPanel','type':_0x4244a3[_0x3574c5(0x1a1)],'handler':async(_0x34047d,_0x5cfd68)=>(_0x34047d[_0x3574c5(0x244)](I)[_0x3574c5(0x21c)](),!0x0)};function pe(_0x5155f1,_0x28718e){var _0x3c5edb=_0x3574c5;switch(_0x5155f1){case _0x471fcb[_0x3c5edb(0x196)]:return _0x3c5edb(0x17f);case _0x471fcb[_0x3c5edb(0x157)]:return _0x3c5edb(0x28a);case _0x471fcb[_0x3c5edb(0x1d3)]:return'mcpStatus.connected';case _0x471fcb[_0x3c5edb(0x27c)]:switch(_0x28718e){case _0x2254ac[_0x3c5edb(0x1b3)]:return _0x3c5edb(0x19b);case _0x2254ac['SESSION_ID_OCCUPIED']:return'mcpStatus.sessionOccupied';case _0x2254ac[_0x3c5edb(0x21f)]:return _0x3c5edb(0x162);case _0x2254ac[_0x3c5edb(0x2aa)]:return'mcpStatus.maxRetriesExceeded';default:return'mcpStatus.failed';}case _0x471fcb[_0x3c5edb(0x1d6)]:return _0x3c5edb(0x160);default:return _0x3c5edb(0x22f);}}function cn(_0x1de12f,_0x42a757,_0x400ed4,_0x2f3766=!0x0){var _0x29e35b=_0x3574c5;const _0x421179=pe(_0x1de12f,_0x42a757),_0x2a3959=_0x400ed4['t'](_0x421179);return _0x2f3766?_0x1de12f===_0x471fcb['DISCONNECTED']&&_0x42a757===_0x2254ac[_0x29e35b(0x1b3)]?_0x2a3959+_0x29e35b(0x242)+_0x400ed4['t'](_0x29e35b(0x23b)):_0x1de12f===_0x471fcb['CONNECTED']?''+_0x2a3959:_0x1de12f===_0x471fcb[_0x29e35b(0x196)]||_0x1de12f===_0x471fcb[_0x29e35b(0x27c)]?_0x2a3959+_0x29e35b(0x242)+_0x400ed4['t']('mcpStatus.clickToConnect'):_0x2a3959:_0x2a3959;}function an(_0x4ebd81){var _0x1a6db9=_0x3574c5;switch(_0x4ebd81){case _0x471fcb['CONNECTED']:return _0x1a6db9(0x1f8);case _0x471fcb['CONNECTING']:case _0x471fcb['RETRYING']:return _0x1a6db9(0x1a2);case _0x471fcb[_0x1a6db9(0x27c)]:case _0x471fcb['DISCONNECTED']:return'univer-text-red-500';default:return _0x1a6db9(0x188);}}function un(_0x314414){var _0x5bde06=_0x3574c5;const {status$:_0x1b8377,error$:_0xd14440,onConfigure:_0x3fb82c,showClickable:_0x4b650e=!0x0}=_0x314414,_0x3eaa89=_0x244b6e(_0x1b8377,_0x471fcb['DISCONNECTED']),_0x2c0c87=_0x244b6e(_0xd14440,_0x2254ac[_0x5bde06(0x16b)]),_0x105685=_0x363bb5(_0x5e30d8),_0x2db35a=_0x3eaa89===_0x471fcb[_0x5bde06(0x1d3)];_0x3eaa89===_0x471fcb['CONNECTING']||_0x471fcb[_0x5bde06(0x1d6)];const _0x477194=_0x105685['t'](pe(_0x3eaa89,_0x2c0c87)),_0x3d66ea=cn(_0x3eaa89,_0x2c0c87,_0x105685,_0x4b650e),_0x242df4=an(_0x3eaa89),_0xd3303e=_0x2db35a?_0x37c632(ge,{}):_0x37c632(fe,{}),_0x2caf04=_0x4f31bd(()=>{_0x4b650e&&_0x3fb82c&&_0x3fb82c();},[_0x4b650e,_0x3fb82c]);function _0x38cd44(){var _0x8197b=_0x5bde06;return _0x127c76(_0x8197b(0x184),{'className':_0x20c922(_0x8197b(0x227),_0x4b650e&&_0x3fb82c&&_0x8197b(0x215)),'onClick':_0x4b650e&&_0x3fb82c?_0x2caf04:void 0x0,'children':[_0x37c632(_0x8197b(0x184),{'className':_0x20c922('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x242df4),'children':_0xd3303e}),_0x37c632(_0x8197b(0x184),{'className':_0x8197b(0x231),'children':_0x477194})]});}return _0x37c632(_0x370899,{'title':_0x3d66ea,'placement':_0x5bde06(0x29a),'children':_0x38cd44()});}var ln=Object['getOwnPropertyDescriptor'],vn=(_0x56d1a4,_0xbfa2f7,_0x13e2cd,_0xcaf709)=>{var _0x28e24c=_0x3574c5;for(var _0x13770c=_0xcaf709>0x1?void 0x0:_0xcaf709?ln(_0xbfa2f7,_0x13e2cd):_0xbfa2f7,_0x4818c1=_0x56d1a4[_0x28e24c(0x171)]-0x1,_0x5dfb57;_0x4818c1>=0x0;_0x4818c1--)(_0x5dfb57=_0x56d1a4[_0x4818c1])&&(_0x13770c=_0x5dfb57(_0x13770c)||_0x13770c);return _0x13770c;},A=(_0x7920f4,_0x21a767)=>(_0x537e69,_0x528e79)=>_0x21a767(_0x537e69,_0x528e79,_0x7920f4);let O=class extends _0x1bc153{constructor(_0x3b83e6,_0x2c8857,_0x44914e,_0x562f05){var _0x35ad8d=_0x3574c5;super(),this[_0x35ad8d(0x18f)]=_0x3b83e6,this[_0x35ad8d(0x15d)]=_0x2c8857,this[_0x35ad8d(0x172)]=_0x44914e,this[_0x35ad8d(0x14d)]=_0x562f05,this[_0x35ad8d(0x26b)](),this[_0x35ad8d(0x1ba)]();}[_0x3574c5(0x26b)](){var _0x3e065f=_0x3574c5;const _0x568dcb=this[_0x3e065f(0x14d)][_0x3e065f(0x15c)](x);_0x568dcb!=null&&_0x568dcb[_0x3e065f(0x1d8)]&&(this[_0x3e065f(0x15d)][_0x3e065f(0x1b2)]=!0x1);}[_0x3574c5(0x1ba)](){var _0x526258=_0x3574c5;const _0xa6478d=this['_configService'][_0x526258(0x15c)](x);(_0xa6478d==null?void 0x0:_0xa6478d[_0x526258(0x18b)])!==!0x1&&this[_0x526258(0x161)](this['_uiPartsService'][_0x526258(0x1c7)](_0x26227b[_0x526258(0x271)],()=>{var _0x19ee40=_0x526258,_0x2f764f;return _0x3e857f(dn({'status$':this[_0x19ee40(0x15d)][_0x19ee40(0x185)],'error$':this[_0x19ee40(0x15d)]['connectionError$'],'onConfigure':()=>this[_0x19ee40(0x25f)](),'showClickable':(_0x2f764f=_0xa6478d==null?void 0x0:_0xa6478d[_0x19ee40(0x1d8)])!=null?_0x2f764f:!0x1}),this[_0x19ee40(0x18f)]);}));}[_0x3574c5(0x25f)](){var _0x383280=_0x3574c5;this[_0x383280(0x18f)][_0x383280(0x244)](I)['showConfigPanel']();}};O=vn([A(0x0,_0x5d3c90(_0x471d2e)),A(0x1,_0x5d3c90(_0x1dbbf6)),A(0x2,_0x13b205),A(0x3,_0x401ca3)],O);function dn(_0x3d355a){const {status$:_0x4dd8cc,error$:_0x53a2f9,onConfigure:_0x398b9d,showClickable:_0x2cd5d8}=_0x3d355a;return function(){return _0x37c632(un,{'status$':_0x4dd8cc,'error$':_0x53a2f9,'onConfigure':_0x398b9d,'showClickable':_0x2cd5d8});};}function fn(_0x3f843d){var _0x3908bf=_0x3574c5;return{'id':V['id'],'type':_0xa892ef[_0x3908bf(0x28d)],'icon':_0x3908bf(0x258),'title':_0x3908bf(0x1b9),'tooltip':'mcpConfig.title'};}const gn={[_0x3ebdfc[_0x3574c5(0x274)]]:{[V['id']]:{'order':0xa,'menuItemFactory':fn}}};var pn=Object[_0x3574c5(0x2a5)],hn=(_0x4498ed,_0x315b06,_0x4c6968,_0x5ce7c5)=>{var _0x596822=_0x3574c5;for(var _0x4d7ca7=_0x5ce7c5>0x1?void 0x0:_0x5ce7c5?pn(_0x315b06,_0x4c6968):_0x315b06,_0x12f029=_0x4498ed[_0x596822(0x171)]-0x1,_0x1078ab;_0x12f029>=0x0;_0x12f029--)(_0x1078ab=_0x4498ed[_0x12f029])&&(_0x4d7ca7=_0x1078ab(_0x4d7ca7)||_0x4d7ca7);return _0x4d7ca7;},te=(_0x27423a,_0x171646)=>(_0x10ca4a,_0x53f7c1)=>_0x171646(_0x10ca4a,_0x53f7c1,_0x27423a);let k=class extends _0x1bc153{constructor(_0x457359,_0x4ad185){var _0x724784=_0x3574c5;super(),this[_0x724784(0x282)]=_0x457359,this[_0x724784(0x214)]=_0x4ad185,this['_initializeCommands'](),this['_initializeMenus']();}[_0x3574c5(0x19a)](){var _0x2d625c=_0x3574c5;[V][_0x2d625c(0x280)](_0x465690=>{var _0x58188c=_0x2d625c;this[_0x58188c(0x161)](this[_0x58188c(0x282)]['registerCommand'](_0x465690));});}[_0x3574c5(0x16a)](){var _0x1c0e9a=_0x3574c5;this[_0x1c0e9a(0x214)][_0x1c0e9a(0x181)](gn);}};function _0x2387(){var _0x2a0a99=['\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','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','_initAutoConnect','MCP\x20Client\x20Configuration','Copy\x20the\x20JSON\x20configuration\x20below','univerjs-icon\x20univerjs-icon-','_validateConfig','配置保存失败','HEADER_MENU','_config$','Close','OTHERS','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','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','\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','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','6066137dtPWbG','UniverIcon','FAILED','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','CheckMarkIcon','univer-min-w-0\x20univer-flex-1','forEach','mcpConfig.saving','_commandService','_logService','extend','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','icon','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','mcpConfig.configStep2','value','mcpStatus.connecting','MCP\x20配置','error','BUTTON','add','pre','univer-bg-gray-500','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','round','xlink:href','mcpConfig.note2','1426128GEcNqR','Configuration\x20Steps:','mcpConfig.configSaved','indexOf','univer.plus','bottom','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','isValid','univer-bg-blue-500','启用身份验证','Disconnected','getOwnPropertySymbols','Saving...','off','MCP:\x20Max\x20Retries\x20Exceeded','getOwnPropertyDescriptor','pluginName','什么是\x20API\x20密钥?','mcpConfig.apiApplyInfo.univerAiLabel','\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','MAX_RETRIES_EXCEEDED','replace','evenodd','API\x20key\x20is\x20required','univer-text-gray-400','map','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','show','_configService','14454WkHxaB','MCP\x20客户端配置','has','MCP:\x20会话\x20ID\x20已被占用','univer-text-xs\x20univer-text-gray-500','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','MCP:\x20Session\x20ID\x20Occupied','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','OnLineIcon','CONNECTING','string','M5.21243\x205.62036L11.8791\x2012.287','mcpConfig.configStep3','help-single','getConfig','_connectionController','您的\x20API\x20密钥安全存储在本地存储中','mcpConfig.connectionStatus.connecting','mcpStatus.retrying','disposeWithMe','mcpStatus.networkError','mcpConfig.apiKeyHint','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','mcpConfig.configError','mcpConfig.connectionError.unauthorized','propertyIsEnumerable','未连接','_config','_initializeMenus','NONE','MCP\x20Connected','univer-flex\x20univer-items-center\x20univer-gap-3','_loadStoredApiKey','API\x20密钥长度至少需要\x2010\x20位','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','length','_uiPartsService','Max\x20Retries','_apiKey$','hasOwnProperty','includes','MCP\x20Configuration','push','_localeService','_messageService','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','OffLineIcon','sessionId$','svg','mcpStatus.disconnected','assign','mergeMenu','mcpConfig.apiApplyInfo.description','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','div','connectionStatus$','会话\x20ID\x20已被占用,请稍后再试','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','univer-text-gray-500','MCP\x20Connection\x20Failed','MCP\x20Unknown\x20Status','showStatus','39YYbxuy','320724xKChsB','currentColor','_injector','entries','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','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','mcpConfig.connectionStatus.failed','univer-bg-red-500','univer-space-y-3','DISCONNECTED','将以下配置添加到您的\x20MCP\x20客户端设置中:','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','next','_initializeCommands','mcpStatus.unauthorized','最大重试次数','http://www.w3.org/2000/svg','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','_loading$','配置无效','COMMAND','univer-text-yellow-500','API\x20密钥不能为空','call','univer-flex-1','validateApiKey','Authorization:','MCP\x20连接失败','none','mcpConfig.connectionError.networkError','API\x20key\x20with\x20Bearer\x20prefix.','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','close-small-single','<API_KEY>','启用身份验证以获得安全连接','配置更改将立即生效','MCP\x20Connecting...','enableAutoConnect','UNAUTHORIZED','substring','univer-flex\x20univer-gap-3','_createConfigPanelComponent','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','mcpConfig.title','_initStatusComponent','attrs','register','setConfig','__setCustomHeaders','univer-space-y-2','_handleConfigSave','Connected','MCP\x20已断开','MCP:\x20未授权','current','mcpConfig.authorizationDescription','javascript:void(0)','registerComponent','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','url(#on-line-icon_clip0_910_349)','MCP\x20状态未知','mcpConfig.connectionError.sessionOccupied','mcpConfig.validation.apiKeyRequired','defIds','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCPConfigPanel','MCP\x20已连接','mcpConfig.configStep1','7510360gOOcSs','CONNECTED','您的\x20API\x20密钥将在此浏览器中本地存储','mcpConfig.configStepTitle','RETRYING','会话ID','showDeveloperTools','univer-flex-shrink-0\x20univer-text-red-500','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','prototype','url(#$1','MCP\x20重连中...','mcpConfig.validation.invalidConfig','35668wYpCCI','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','mcpConfig.connectionStatus.retrying','mcpConfig.connectionStatus.connected','_mcpConnectionController','mcpConfig.note1','mcpConfig.connectionError.maxRetriesExceeded','univer-bg-green-500','fill','0\x200\x2016\x2016','off-line-icon','Save\x20Configuration','_mcpCoreConfig$','label','保存中...','close','mcpConfig.apiApplyInfo.title','_blank','trim','超出最大重试次数,请稍后再试','clipPath','\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','网络连接错误,请检查您的网络连接','SESSION_ID_OCCUPIED','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','univer-text-green-500','https://console.univer.ai','配置保存成功','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','HelpSingle','idSuffix','apiKey','univer-flex-shrink-0\x20univer-text-blue-500','displayName','_dialogService','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','colorChannel1','API\x20Key','off-line-icon_clip0_910_343','on-line-icon','subscribe','apply','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP:\x20Network\x20Error','Click\x20to\x20connect\x20MCP','_registerComponent','className','mcpConfig.connectionStatus.disconnected','tag','defs','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','span','warn','_menuManagerService','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','univer-text-xs\x20univer-text-gray-600','配置\x20MCP\x20使用\x20AI\x20操作电子表格','mcpConfig.sessionIdDescription','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','将配置添加到您的\x20MCP\x20客户端设置文件中','univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','showConfigPanel','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','getItem','NETWORK_ERROR','Get\x20your\x20API\x20key\x20in\x20seconds','Configuration\x20Notes:','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','noopener\x20noreferrer','API\x20密钥','_localStorageService','配置步骤:','univer-flex\x20univer-items-center','几秒钟内获取您的\x20API\x20密钥','\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x0a}','errorMessage','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','mcp-ui.config','mcpConfig.apiKeyPlaceholder','mcpStatus.unknown','translate(.97)','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','6568yqBNof','mcpConfig.validation.invalidApiKey','mcpConfig.configInstructions','18eUGuvn','text','mcp-config-dialog','7279790lznkJC','path','mcpStatus.clickToConfigure','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','复制以下\x20JSON\x20配置','concat','subscribeConfigValue$','connectionError$','What\x20is\x20API\x20Key?','\x20-\x20','mcpConfig.description','get','univer-text-sm\x20univer-font-medium','MCP\x20Retrying...','0\x200\x2017\x2017','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','Connection\x20Failed','univer.ai','Configuration\x20saved\x20successfully','Click\x20to\x20configure\x20MCP','Enable\x20Authentication','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','univer-text-sm\x20univer-text-gray-500','MCP:\x20Unauthorized','univer-flex\x20univer-flex-wrap\x20univer-gap-2','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','check-mark-icon','univer-font-medium','Error','univer-text-blue-600','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MenuIcon','M0\x200H16V16H0z','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','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','mcp.apiKey','配置参数:','_handleConfigure','url(#off-line-icon_clip0_910_343)','mcpServerUrl','MCP:\x20超出最大重试次数','MCP:\x20网络错误','1em','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','_initConfigSync','MCP_UI_PLUGIN','function'];_0x2387=function(){return _0x2a0a99;};return _0x2387();}k=hn([te(0x0,_0x341c97),te(0x1,_0x58265b)],k);const On={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x3574c5(0x1b1),'connected':_0x3574c5(0x16c),'failed':_0x3574c5(0x189),'retrying':_0x3574c5(0x246),'unknown':_0x3574c5(0x18a),'unauthorized':_0x3574c5(0x250),'sessionOccupied':_0x3574c5(0x154),'networkError':_0x3574c5(0x20a),'maxRetriesExceeded':_0x3574c5(0x2a4),'clickToConnect':_0x3574c5(0x20b),'clickToConfigure':_0x3574c5(0x24c)},'mcpConfig':{'title':_0x3574c5(0x177),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x3574c5(0x204),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x3574c5(0x209),'enableAuth':_0x3574c5(0x24d),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x3574c5(0x26c),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x3574c5(0x192),'configStepTitle':_0x3574c5(0x296),'configStep1':_0x3574c5(0x26d),'configStep2':_0x3574c5(0x19e),'configStep3':_0x3574c5(0x1ce),'sessionId':'Session\x20ID','sessionIdDescription':_0x3574c5(0x257),'authorizationDescription':_0x3574c5(0x1ab),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x3574c5(0x173),'save':_0x3574c5(0x1ea),'saving':_0x3574c5(0x2a2),'note1':_0x3574c5(0x1fb),'note2':_0x3574c5(0x170),'configSaved':_0x3574c5(0x24b),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x3574c5(0x241),'description':_0x3574c5(0x277),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x3574c5(0x220)},'validation':{'apiKeyRequired':_0x3574c5(0x2ad),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x3574c5(0x265)},'connectionStatus':{'disconnected':_0x3574c5(0x2a0),'connecting':'Connecting...','connected':_0x3574c5(0x1c1),'failed':_0x3574c5(0x249),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x3574c5(0x1f7),'sessionOccupied':_0x3574c5(0x29c),'networkError':_0x3574c5(0x1ac),'maxRetriesExceeded':_0x3574c5(0x22c)}}},kn={'mcpStatus':{'disconnected':_0x3574c5(0x1c2),'connecting':'MCP\x20连接中...','connected':_0x3574c5(0x1d0),'failed':_0x3574c5(0x1a8),'retrying':_0x3574c5(0x1dd),'unknown':_0x3574c5(0x1ca),'unauthorized':_0x3574c5(0x1c3),'sessionOccupied':_0x3574c5(0x151),'networkError':_0x3574c5(0x263),'maxRetriesExceeded':_0x3574c5(0x262),'clickToConnect':'点击连接\x20MCP','clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x3574c5(0x28b),'description':_0x3574c5(0x217),'apiKey':_0x3574c5(0x224),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x3574c5(0x1d4),'enableAuth':_0x3574c5(0x29f),'enableAuthHint':_0x3574c5(0x1af),'connectionInfo':_0x3574c5(0x14f),'mcpClientConfig':_0x3574c5(0x14f),'configInstructions':_0x3574c5(0x197),'configStepTitle':_0x3574c5(0x226),'configStep1':_0x3574c5(0x23d),'configStep2':_0x3574c5(0x21a),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':_0x3574c5(0x1d7),'sessionIdDescription':_0x3574c5(0x1da),'authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':_0x3574c5(0x25e),'maxRetries':_0x3574c5(0x19c),'save':'保存配置','saving':_0x3574c5(0x1ed),'note1':_0x3574c5(0x1b0),'note2':_0x3574c5(0x15e),'configSaved':_0x3574c5(0x1fa),'configError':_0x3574c5(0x270),'apiApplyInfo':{'title':_0x3574c5(0x2a7),'description':_0x3574c5(0x14b),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0x3574c5(0x228)},'validation':{'apiKeyRequired':_0x3574c5(0x1a3),'apiKeyTooShort':_0x3574c5(0x16f),'invalidConfig':_0x3574c5(0x1a0),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0x3574c5(0x168),'connecting':'连接中...','connected':'已连接','failed':'连接失败','retrying':'重连中...'},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x3574c5(0x186),'networkError':_0x3574c5(0x1f5),'maxRetriesExceeded':_0x3574c5(0x1f2)}}};var mn=Object['defineProperty'],Cn=Object[_0x3574c5(0x2a5)],yn=(_0x2abba2,_0x1b9b4a,_0x80e371)=>_0x1b9b4a in _0x2abba2?mn(_0x2abba2,_0x1b9b4a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x80e371}):_0x2abba2[_0x1b9b4a]=_0x80e371,_n=(_0x1f1420,_0xc1f433,_0x43bea8,_0x1b2c80)=>{for(var _0x3d6fc5=_0x1b2c80>0x1?void 0x0:_0x1b2c80?Cn(_0xc1f433,_0x43bea8):_0xc1f433,_0xdf98a0=_0x1f1420['length']-0x1,_0x44d4f1;_0xdf98a0>=0x0;_0xdf98a0--)(_0x44d4f1=_0x1f1420[_0xdf98a0])&&(_0x3d6fc5=_0x44d4f1(_0x3d6fc5)||_0x3d6fc5);return _0x3d6fc5;},E=(_0x1e2e4a,_0x53c2a5)=>(_0x5e565c,_0x3f3865)=>_0x53c2a5(_0x5e565c,_0x3f3865,_0x1e2e4a),xn=(_0x4c78eb,_0xd7412,_0x4c3b2e)=>yn(_0x4c78eb,_0xd7412+'',_0x4c3b2e);let L=class extends _0x34a5e5{constructor(_0x201053=re,_0xc831f7,_0x551c9d,_0x58aa4e,_0x66aa01,_0x475206){var _0xefebf3=_0x3574c5;super(),this[_0xefebf3(0x169)]=_0x201053,this[_0xefebf3(0x18f)]=_0xc831f7,this[_0xefebf3(0x14d)]=_0x551c9d,this[_0xefebf3(0x172)]=_0x58aa4e,this[_0xefebf3(0x225)]=_0x66aa01,this[_0xefebf3(0x179)]=_0x475206;const {..._0x1d7d2c}=_0x48a548({},re,this[_0xefebf3(0x169)]);this[_0xefebf3(0x14d)][_0xefebf3(0x1bd)](x,_0x1d7d2c);}async['onStarting'](){var _0x2654c0=_0x3574c5;const _0x548631=[[O],[I],[k]];this[_0x2654c0(0x18f)][_0x2654c0(0x150)](_0xdde858)||_0x548631[_0x2654c0(0x178)]([_0xdde858,{'useClass':_0x1f04c8}]),_0x548631[_0x2654c0(0x280)](_0x58ba43=>this['_injector'][_0x2654c0(0x28e)](_0x58ba43)),this[_0x2654c0(0x18f)][_0x2654c0(0x244)](O),this['_injector'][_0x2654c0(0x244)](I),this[_0x2654c0(0x18f)][_0x2654c0(0x244)](k);}};xn(L,_0x3574c5(0x2a6),_0x3574c5(0x267)),L=_n([_0x4b9302(_0x5284cf),E(0x1,_0x5d3c90(_0x471d2e)),E(0x2,_0x401ca3),E(0x3,_0x13b205),E(0x4,_0x21488e),E(0x5,_0x5d3c90(_0x5e30d8))],L);export{tn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,un as MCPStatusDisplay,k as MCPUIMenuController,V as OpenMCPConfigPanelCommand,L as UniverMCPUIPlugin,On as enUS,kn as zhCN};
|
|
1
|
+
var _0x5169db=_0x5e17;(function(_0x28029c,_0x1edf80){var _0x3624cf=_0x5e17,_0x30f76f=_0x28029c();while(!![]){try{var _0x291700=parseInt(_0x3624cf(0x1ac))/0x1+-parseInt(_0x3624cf(0x2b4))/0x2*(parseInt(_0x3624cf(0x28c))/0x3)+parseInt(_0x3624cf(0x2a5))/0x4*(parseInt(_0x3624cf(0x1e5))/0x5)+parseInt(_0x3624cf(0x264))/0x6+-parseInt(_0x3624cf(0x1fc))/0x7*(parseInt(_0x3624cf(0x23c))/0x8)+parseInt(_0x3624cf(0x2ee))/0x9*(-parseInt(_0x3624cf(0x289))/0xa)+parseInt(_0x3624cf(0x2db))/0xb*(parseInt(_0x3624cf(0x2d8))/0xc);if(_0x291700===_0x1edf80)break;else _0x30f76f['push'](_0x30f76f['shift']());}catch(_0x5a704d){_0x30f76f['push'](_0x30f76f['shift']());}}}(_0x23e6,0xb8601));var we=Object[_0x5169db(0x27f)],Ee=(_0x53bb6d,_0x454c8a,_0x473325)=>_0x454c8a in _0x53bb6d?we(_0x53bb6d,_0x454c8a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x473325}):_0x53bb6d[_0x454c8a]=_0x473325,S=(_0x462e81,_0x49b06a,_0x5289f3)=>Ee(_0x462e81,typeof _0x49b06a!=_0x5169db(0x1bf)?_0x49b06a+'':_0x49b06a,_0x5289f3);import{LocaleService as _0x4f4718,Inject as _0x236043,Injector as _0x582310,IConfigService as _0x3a4bae,ILocalStorageService as _0x51515e,ILogService as _0x36ee80,Disposable as _0x3dde06,CommandType as _0x42ca93,ICommandService as _0x39e99e,DependentOn as _0x37ecd6,Plugin as _0x304d6d,merge as _0x1ce813}from'@univerjs/core';import{jsxs as _0x5710b0,jsx as _0x575de2}from'react/jsx-runtime';import{MCPConnectionStatus as _0x386ed5,MCPConnectionError as _0x4e873e,MCPConnectionController as _0x27fb1b,MCP_PLUGIN_CONFIG_KEY as _0x457454,UniverMCPPlugin as _0x20d2ba}from'@univerjs-pro/mcp';import{Input as _0x430dc6,Button as _0x3b7201,MessageType as _0x2465ca,Tooltip as _0x7daf80,clsx as _0x3a7b1a}from'@univerjs/design';import{useDependency as _0x3f5854,useObservable as _0x15ca67,IUIPartsService as _0x1711f6,IDialogService as _0x499b1d,IMessageService as _0xdc7f2d,ComponentManager as _0x43e4c3,connectInjector as _0x23400d,BuiltInUIPart as _0x906c3b,MenuItemType as _0x515621,RibbonStartGroup as _0x173307,IMenuManagerService as _0x5a4a7b}from'@univerjs/ui';import{BehaviorSubject as _0x1434d3}from'rxjs';import{forwardRef as _0x4f8dfb,useRef as _0x4d3693,createElement as _0x47720d,useState as _0x5d7e5e,useCallback as _0x30b2c7}from'react';import{ISocketService as _0x4a4ff2,WebSocketService as _0x1f9c88}from'@univerjs/network';var f=function(){var _0x4a2e58=_0x5169db;return f=Object[_0x4a2e58(0x2e0)]||function(_0x2bc047){var _0x531672=_0x4a2e58;for(var _0x4d98c1,_0xc25bbe=0x1,_0x1a747a=arguments['length'];_0xc25bbe<_0x1a747a;_0xc25bbe++){_0x4d98c1=arguments[_0xc25bbe];for(var _0xd2304b in _0x4d98c1)Object[_0x531672(0x248)]['hasOwnProperty']['call'](_0x4d98c1,_0xd2304b)&&(_0x2bc047[_0xd2304b]=_0x4d98c1[_0xd2304b]);}return _0x2bc047;},f[_0x4a2e58(0x21d)](this,arguments);},Ye=function(_0x50d375,_0x12ef52){var _0x5d64e1=_0x5169db,_0x395278={};for(var _0x151344 in _0x50d375)Object[_0x5d64e1(0x248)][_0x5d64e1(0x281)][_0x5d64e1(0x20a)](_0x50d375,_0x151344)&&_0x12ef52['indexOf'](_0x151344)<0x0&&(_0x395278[_0x151344]=_0x50d375[_0x151344]);if(_0x50d375!=null&&typeof Object[_0x5d64e1(0x21f)]==_0x5d64e1(0x2d4)){for(var _0x15a023=0x0,_0x151344=Object[_0x5d64e1(0x21f)](_0x50d375);_0x15a023<_0x151344[_0x5d64e1(0x23e)];_0x15a023++)_0x12ef52[_0x5d64e1(0x1ad)](_0x151344[_0x15a023])<0x0&&Object[_0x5d64e1(0x248)]['propertyIsEnumerable'][_0x5d64e1(0x20a)](_0x50d375,_0x151344[_0x15a023])&&(_0x395278[_0x151344[_0x15a023]]=_0x50d375[_0x151344[_0x15a023]]);}return _0x395278;},w=_0x4f8dfb(function(_0x142ff7,_0x2338cd){var _0x518de0=_0x5169db,_0x32c3d8=_0x142ff7[_0x518de0(0x292)],_0x22a112=_0x142ff7['id'],_0x5bef58=_0x142ff7[_0x518de0(0x270)],_0x36d73b=_0x142ff7[_0x518de0(0x2e6)],_0x49d5fc=Ye(_0x142ff7,['icon','id',_0x518de0(0x270),_0x518de0(0x2e6)]),_0x5722dc='univerjs-icon\x20univerjs-icon-'['concat'](_0x22a112,'\x20')[_0x518de0(0x20c)](_0x5bef58||'')[_0x518de0(0x249)](),_0x13b076=_0x4d3693('_'[_0x518de0(0x20c)](Xe()));return ue(_0x32c3d8,''[_0x518de0(0x20c)](_0x22a112),{'defIds':_0x32c3d8[_0x518de0(0x229)],'idSuffix':_0x13b076[_0x518de0(0x22a)]},f({'ref':_0x2338cd,'className':_0x5722dc},_0x49d5fc),_0x36d73b);});function ue(_0x51b111,_0x448771,_0x95fbc6,_0x25df26,_0x48de69){var _0x57ad7b=_0x5169db;return _0x47720d(_0x51b111['tag'],f(f({'key':_0x448771},Ze(_0x51b111,_0x95fbc6,_0x48de69)),_0x25df26),(qe(_0x51b111,_0x95fbc6)[_0x57ad7b(0x2ec)]||[])[_0x57ad7b(0x251)](function(_0x58f912,_0x1844da){var _0x343e5b=_0x57ad7b;return ue(_0x58f912,''['concat'](_0x448771,'-')[_0x343e5b(0x20c)](_0x51b111['tag'],'-')['concat'](_0x1844da),_0x95fbc6,void 0x0,_0x48de69);}));}function Ze(_0x1afebe,_0x5b366,_0x33e2b5){var _0x1557fe=_0x5169db,_0x1285b7=f({},_0x1afebe[_0x1557fe(0x2fd)]);_0x33e2b5!=null&&_0x33e2b5[_0x1557fe(0x2b3)]&&_0x1285b7[_0x1557fe(0x28f)]===_0x1557fe(0x2b3)&&(_0x1285b7['fill']=_0x33e2b5[_0x1557fe(0x2b3)]),_0x1afebe[_0x1557fe(0x2cc)]===_0x1557fe(0x1e2)&&_0x1285b7['id']&&(_0x1285b7['id']=_0x1285b7['id']+_0x5b366[_0x1557fe(0x2bf)]),Object[_0x1557fe(0x2bb)](_0x1285b7)['forEach'](function(_0x5b047d){var _0x42665e=_0x1557fe,_0x4c04ac=_0x5b047d[0x0],_0x25229b=_0x5b047d[0x1];_0x4c04ac===_0x42665e(0x1e2)&&typeof _0x25229b==_0x42665e(0x269)&&(_0x1285b7[_0x4c04ac]=_0x25229b[_0x42665e(0x24b)](/url\(#(.*)\)/,_0x42665e(0x2ca)['concat'](_0x5b366['idSuffix'],')')));});var _0x7e2c8c=_0x5b366['defIds'];return!_0x7e2c8c||_0x7e2c8c[_0x1557fe(0x23e)]===0x0||(_0x1afebe[_0x1557fe(0x2cc)]===_0x1557fe(0x204)&&_0x1285b7[_0x1557fe(0x2cf)]&&(_0x1285b7[_0x1557fe(0x2cf)]=_0x1285b7[_0x1557fe(0x2cf)]+_0x5b366[_0x1557fe(0x2bf)]),Object[_0x1557fe(0x2bb)](_0x1285b7)['forEach'](function(_0x537559){var _0x2a965b=_0x1557fe,_0x43a491=_0x537559[0x0],_0x3e5714=_0x537559[0x1];typeof _0x3e5714=='string'&&(_0x1285b7[_0x43a491]=_0x3e5714[_0x2a965b(0x24b)](/url\(#(.*)\)/,_0x2a965b(0x2ca)[_0x2a965b(0x20c)](_0x5b366[_0x2a965b(0x2bf)],')')));})),_0x1285b7;}function qe(_0x4d137b,_0x47b910){var _0x47c494=_0x5169db,_0x44eb22,_0xc4d6cb=_0x47b910['defIds'];return!_0xc4d6cb||_0xc4d6cb[_0x47c494(0x23e)]===0x0?_0x4d137b:_0x4d137b[_0x47c494(0x2cc)]===_0x47c494(0x2b0)&&(!((_0x44eb22=_0x4d137b['children'])===null||_0x44eb22===void 0x0)&&_0x44eb22[_0x47c494(0x23e)])?f(f({},_0x4d137b),{'children':_0x4d137b[_0x47c494(0x2ec)]['map'](function(_0x450663){var _0x103320=_0x47c494;return typeof _0x450663[_0x103320(0x2fd)]['id']==_0x103320(0x269)&&_0xc4d6cb&&_0xc4d6cb[_0x103320(0x2f8)](_0x450663[_0x103320(0x2fd)]['id'])?f(f({},_0x450663),{'attrs':f(f({},_0x450663[_0x103320(0x2fd)]),{'id':_0x450663[_0x103320(0x2fd)]['id']+_0x47b910[_0x103320(0x2bf)]})}):_0x450663;})}):_0x4d137b;}function Xe(){var _0x5c1ebe=_0x5169db;return Math['random']()[_0x5c1ebe(0x26d)](0x24)[_0x5c1ebe(0x282)](0x2,0x8);}w[_0x5169db(0x1ce)]=_0x5169db(0x288);function _0x23e6(){var _0x463fe3=['DISCONNECTED','mcpConfig.connectionError.networkError','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','mcpStatus.clickToConnect','Configuration\x20saved\x20successfully','MCP\x20客户端配置','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','mcpConfig.connectionStatus.connecting','FAILED','_initStatusComponent','RETRYING','\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','113604iQuIfP','mcpConfig.note2','_apiKey$','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','mcpConfig.configInstructions','path','univer-text-gray-400','Invalid\x20configuration','on-line-icon_clip0_910_349','Enter\x20your\x20API\x20key','mcpConfig.configStep3','defs','mcpConfig.apiKeyPlaceholder','Close','colorChannel1','54zrzTWM','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','mcpConfig.apiApplyInfo.univerAiLabel','mcpStatus.retrying','M5.21243\x2012.287L11.8791\x205.62036','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','_handleConfigSave','entries','Get\x20your\x20API\x20key\x20in\x20seconds','HEADER_MENU','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','idSuffix','get','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','close-small-single','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','OTHERS','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','Disconnected','mcpConfig.connectionError.maxRetriesExceeded','mcpConfig.configStep1','error','url(#$1','mcpServerUrl','tag','UNAUTHORIZED','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','xlink:href','mcpConfig.save','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','mcp-ui.config','Click\x20to\x20connect\x20MCP','function','Connected','https://console.univer.plus','NETWORK_ERROR','12IGpdQA','removeItem','MAX_RETRIES_EXCEEDED','3842311dJbbQc','MCP\x20连接失败','0\x200\x2016\x2016','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','mcpConfig.apiKey','assign','registerCommand','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','univer-flex\x20univer-items-start\x20univer-gap-3','会话\x20ID\x20已被占用,请稍后再试','extend','_localStorageService','Enable\x20Authentication','round','_registerComponent','_config$','children','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','1141416prpFei','_config','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','Copy\x20the\x20JSON\x20configuration\x20below','univer-flex\x20univer-items-center\x20univer-gap-3','_initializeCommands','check-mark-icon','subscribe','配置保存失败','配置参数:','includes','MenuIcon','几秒钟内获取您的\x20API\x20密钥','_componentManager','univer-min-w-0\x20univer-flex-1','attrs','svg','_mcpConnectionController','mcpStatus.clickToConfigure','连接失败','配置步骤:','您的\x20API\x20密钥将在此浏览器中本地存储','univer-text-sm\x20univer-font-medium','重启您的\x20MCP\x20客户端以使配置生效','https://console.univer.ai','univer-flex-1','mcpConfig.connectionStatus.disconnected','getItem','value','840600cTtROz','indexOf','Configuration\x20Parameters:','MCP\x20Retrying...','_mcpCoreConfig$','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','mcpConfig.title','API\x20密钥不能为空','mcpConfig.apiApplyInfo.description','getConfig','mcp-config-dialog','url(#on-line-icon_clip0_910_349)','disposeWithMe','__setCustomHeaders','getOwnPropertyDescriptor','univer-space-y-2','url(#off-line-icon_clip0_910_343)','_injector','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','symbol','_dialogService','_validateConfig','_blank','_loadStoredApiKey','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','mcpConfig.configStep2','<API_KEY>','会话ID','MCP\x20重连中...','MCP:\x20Max\x20Retries\x20Exceeded','none','请输入您的\x20API\x20密钥','SESSION_ID_OCCUPIED','displayName','配置更改将立即生效','Error','white','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','univer-text-red-500','univer-bg-green-500','API\x20密钥无效,请检查密钥是否正确','MCPConfigPanel','COMMAND','subscribeConfigValue$','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','Click\x20to\x20configure\x20MCP','MCP\x20Connection\x20Failed','clipPath','点击配置\x20MCP','univer-text-xs\x20univer-text-gray-600','MCP\x20连接中...','univer-mr-2\x20univer-flex\x20univer-text-xl','M5.21243\x205.62036L11.8791\x2012.287','mask','isValid','NONE','95bknvBi','_uiPartsService','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','CheckMarkIcon','getCurrentConfig','CONNECTING','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','warn','mcpConfig.connectionError.sessionOccupied','API\x20密钥长度至少需要\x2010\x20位','mcpStatus.connecting','mcp.apiKey','MCP\x20已断开','mcpConfig.validation.apiKeyRequired','showConfigPanel','mcpStatus.failed','\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','未连接','mcpConfig.sessionIdDescription','_initializeMenus','_initAutoConnect','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','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','77sbRXTD','off-line-icon','has','connectionError$','mcpConfig.apiApplyInfo.getStarted','网络连接错误,请检查您的网络连接','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-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','use','mcpConfig.validation.invalidConfig','off-line-icon_clip0_910_343','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','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','setItem','call','权限验证失败,请检查您的\x20API\x20密钥','concat','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','点击连接\x20MCP','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','univer-text-yellow-500','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','_connectionController','univer-text-xs\x20univer-text-gray-500','close','http://www.w3.org/2000/svg','univer-text-sm\x20univer-text-gray-500','next','带有\x20Bearer\x20前缀的\x20API\x20密钥。','help-single','univer.plus','MCP:\x20Network\x20Error','_menuManagerService','apply','_commandService','getOwnPropertySymbols','univer-bg-red-500','mcp-ui.command.openConfigPanel','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','_loading$','OnLineIcon','univer-space-y-5','Configuration\x20Steps:','Authorization:','defIds','current','Max\x20Retries','启用身份验证','MCP\x20Configuration','mcpConfig.connectionStatus.failed','mcpConfig.validation.invalidApiKey','span','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','currentColor','mcpConfig.description','\x20-\x20','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','Bearer\x20','onStarting','univer-bg-blue-500','connectionStatus$','univer-flex\x20univer-items-start\x20univer-gap-2','univer-text-green-500','8168xczAFr','\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x0a}','length','MCP_UI_PLUGIN','MCP\x20Connected','univer-flex-shrink-0\x20univer-text-red-500','M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z','mcpConfig.apiApplyInfo.title','on-line-icon','Saving...','BUTTON','_handleConfigure','prototype','trim','enableAutoConnect','replace','mcpConfig.connectionStatus.connected','MCP\x20Client\x20Configuration','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','1em','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','map','mcpConfig.connectionStatus.retrying','连接中...','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','mcpConfig.validation.apiKeyTooShort','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20配置','API\x20密钥','evenodd','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','apiKey','CONNECTED','sessionId$','univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','_createConfigPanelComponent','_configService','0\x200\x2017\x2016','show','univer-space-y-3','2283594NgjZjF','univer-flex\x20univer-items-center\x20univer-gap-2','MCP:\x20未授权','univer-flex-shrink-0\x20univer-text-blue-500','javascript:void(0)','string','_initConfigSync','API\x20Key','MCP\x20Disconnected','toString','registerComponent','univer-text-white','className','showDeveloperTools','mergeMenu','配置保存成功','mcpConfig.configParameters','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','超出最大重试次数,请稍后再试','_logService','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','您的\x20API\x20密钥安全存储在本地存储中','MCP\x20状态未知','univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','Univer\x20AI\x20控制台','univer.ai','defineProperty','配置\x20MCP\x20使用\x20AI\x20操作电子表格','hasOwnProperty','substring','text','_localeService','mcpStatus.unauthorized','MCP\x20Connecting...','Retrying...','UniverIcon','10HTjHPP','univer-text-gray-500','div','135207jJnCap','MCP:\x20会话\x20ID\x20已被占用','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','fill','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','icon','MCP:\x20Session\x20ID\x20Occupied','_messageService','push','setConfig','mcpConfig.note1','pluginName'];_0x23e6=function(){return _0x463fe3;};return _0x23e6();}var Je={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x5169db(0x1cb),'viewBox':_0x5169db(0x2dd),'width':_0x5169db(0x24f),'height':_0x5169db(0x24f)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0x5169db(0x1fa),'fillRule':'evenodd','clipRule':_0x5169db(0x259)}}]},le=_0x4f8dfb(function(_0x5676c5,_0x50499a){var _0x360398=_0x5169db;return _0x47720d(w,Object['assign']({},_0x5676c5,{'id':_0x360398(0x2f4),'ref':_0x50499a,'icon':Je}));});le[_0x5169db(0x1ce)]=_0x5169db(0x1e8);var Qe={'tag':_0x5169db(0x2fe),'attrs':{'xmlns':_0x5169db(0x215),'fill':'none','viewBox':'0\x200\x2017\x2017','width':'1em','height':'1em'},'children':[{'tag':'path','attrs':{'stroke':_0x5169db(0x232),'d':_0x5169db(0x1e1),'strokeLinecap':'round','strokeLinejoin':_0x5169db(0x2e9),'strokeWidth':1.33}},{'tag':'path','attrs':{'stroke':_0x5169db(0x232),'d':_0x5169db(0x2b8),'strokeLinecap':'round','strokeLinejoin':_0x5169db(0x2e9),'strokeWidth':1.33}}]},ve=_0x4f8dfb(function(_0x15fbdb,_0x11818e){var _0xc218c2=_0x5169db;return _0x47720d(w,Object[_0xc218c2(0x2e0)]({},_0x15fbdb,{'id':_0xc218c2(0x2c2),'ref':_0x11818e,'icon':Qe}));});ve['displayName']='CloseSmallSingle';var en={'tag':'svg','attrs':{'xmlns':_0x5169db(0x215),'fill':_0x5169db(0x1cb),'viewBox':'0\x200\x2016\x2016','width':_0x5169db(0x24f),'height':_0x5169db(0x24f)},'children':[{'tag':'path','attrs':{'fill':_0x5169db(0x232),'d':_0x5169db(0x2ed)}},{'tag':_0x5169db(0x2aa),'attrs':{'fill':_0x5169db(0x232),'d':_0x5169db(0x242)}},{'tag':_0x5169db(0x2aa),'attrs':{'fill':'currentColor','d':_0x5169db(0x28e),'fillRule':_0x5169db(0x259),'clipRule':_0x5169db(0x259)}}]},de=_0x4f8dfb(function(_0x2443f9,_0x420de4){var _0x335466=_0x5169db;return _0x47720d(w,Object[_0x335466(0x2e0)]({},_0x2443f9,{'id':_0x335466(0x219),'ref':_0x420de4,'icon':en}));});de[_0x5169db(0x1ce)]='HelpSingle';var nn={'tag':_0x5169db(0x2fe),'attrs':{'xmlns':_0x5169db(0x215),'fill':_0x5169db(0x1cb),'viewBox':'0\x200\x2016\x2016','width':_0x5169db(0x24f),'height':_0x5169db(0x24f)},'children':[{'tag':'g','attrs':{'clipPath':_0x5169db(0x1bc)},'children':[{'tag':_0x5169db(0x2aa),'attrs':{'stroke':_0x5169db(0x232),'d':_0x5169db(0x1e7),'strokeLinecap':_0x5169db(0x2e9),'strokeLinejoin':_0x5169db(0x2e9),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x5169db(0x1dc),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x5169db(0x2aa),'attrs':{'fill':'white','d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x5169db(0x206)]},fe=_0x4f8dfb(function(_0x1adc2e,_0x250974){var _0x28f6d5=_0x5169db;return _0x47720d(w,Object[_0x28f6d5(0x2e0)]({},_0x1adc2e,{'id':_0x28f6d5(0x1fd),'ref':_0x250974,'icon':nn}));});fe[_0x5169db(0x1ce)]='OffLineIcon';var rn={'tag':_0x5169db(0x2fe),'attrs':{'xmlns':_0x5169db(0x215),'fill':'none','viewBox':_0x5169db(0x261),'width':_0x5169db(0x24f),'height':_0x5169db(0x24f)},'children':[{'tag':'g','attrs':{'clipPath':_0x5169db(0x1b7)},'children':[{'tag':_0x5169db(0x2aa),'attrs':{'stroke':_0x5169db(0x232),'d':_0x5169db(0x2be),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x5169db(0x1dc),'attrs':{'id':_0x5169db(0x2ad)},'children':[{'tag':_0x5169db(0x2aa),'attrs':{'fill':_0x5169db(0x1d1),'d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':['on-line-icon_clip0_910_349']},ge=_0x4f8dfb(function(_0x4e44f6,_0x525871){var _0x5cac0d=_0x5169db;return _0x47720d(w,Object[_0x5cac0d(0x2e0)]({},_0x4e44f6,{'id':_0x5cac0d(0x244),'ref':_0x525871,'icon':rn}));});ge[_0x5169db(0x1ce)]=_0x5169db(0x225);function tn(_0x2034bb){var _0x5e53c7=_0x5169db,_0x55e754,_0x2cdb05;const {mcpCoreConfig:_0x4872d6,onSave:_0x1fc41a,loading:_0xa5d1ad=!0x1,config:_0x31f1d9,connectionStatus$:_0x37da74,connectionError$:_0x2ddc6a,currentApiKey$:_0x439f7a,currentSessionId$:_0x2cbc6f}=_0x2034bb,_0x19093a=_0x3f5854(_0x4f4718),_0x380a6d=_0x15ca67(_0x37da74,_0x386ed5['DISCONNECTED']),_0x4f10ac=_0x15ca67(_0x2ddc6a,_0x4e873e[_0x5e53c7(0x1e4)]),_0x4a8b09=_0x15ca67(_0x2cbc6f,''),_0x5da30c=_0x15ca67(_0x439f7a,''),[_0x5da614,_0x163e9b]=_0x5d7e5e(_0x5da30c||''),_0x580caf=!0x0,_0x53ba76=_0x31f1d9['showDeveloperTools']&&_0x4872d6['mcpServerUrl']&&(_0x4872d6[_0x5e53c7(0x2cb)][_0x5e53c7(0x2f8)](_0x5e53c7(0x21a))||_0x4872d6['mcpServerUrl'][_0x5e53c7(0x2f8)](_0x5e53c7(0x27e))),_0x595013=(_0x55e754=_0x4872d6[_0x5e53c7(0x2cb)])==null?void 0x0:_0x55e754['includes']('univer.plus'),_0x28776c=(_0x2cdb05=_0x4872d6['mcpServerUrl'])==null?void 0x0:_0x2cdb05['includes'](_0x5e53c7(0x27e)),_0x48a33a=_0x595013?_0x5e53c7(0x2d6):_0x5e53c7(0x1a7),_0x5bc6d3=_0x31f1d9[_0x5e53c7(0x271)]&&(_0x595013||_0x28776c),[_0x233c60,_0x440314]=_0x5d7e5e(!_0x5da614[_0x5e53c7(0x249)]()),_0x82dbaa=(_0x220179,_0x5a3054)=>{var _0x1f64cc=_0x5e53c7;if(_0x5a3054===_0x4e873e['UNAUTHORIZED'])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x220179){case _0x386ed5[_0x1f64cc(0x25c)]:return _0x1f64cc(0x2b5);case _0x386ed5[_0x1f64cc(0x1ea)]:case _0x386ed5[_0x1f64cc(0x2a3)]:return _0x1f64cc(0x291);case _0x386ed5[_0x1f64cc(0x2a1)]:return _0x1f64cc(0x2d1);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x30ea24=(_0x59a506,_0x4a0853)=>{var _0x23bff9=_0x5e53c7;if(_0x4a0853===_0x4e873e[_0x23bff9(0x2cd)])return _0x23bff9(0x220);switch(_0x59a506){case _0x386ed5[_0x23bff9(0x25c)]:return _0x23bff9(0x1d4);case _0x386ed5['CONNECTING']:case _0x386ed5[_0x23bff9(0x2a3)]:return _0x23bff9(0x238);case _0x386ed5['FAILED']:return _0x23bff9(0x220);default:return'univer-bg-gray-500';}},_0x5689eb=_0x2a5368=>{var _0x4b0726=_0x5e53c7;switch(_0x2a5368){case _0x386ed5[_0x4b0726(0x25c)]:return _0x19093a['t'](_0x4b0726(0x24c));case _0x386ed5[_0x4b0726(0x1ea)]:return _0x19093a['t'](_0x4b0726(0x2a0));case _0x386ed5[_0x4b0726(0x2a1)]:return _0x19093a['t'](_0x4b0726(0x22e));case _0x386ed5[_0x4b0726(0x2a3)]:return _0x19093a['t'](_0x4b0726(0x252));default:return _0x19093a['t'](_0x4b0726(0x1a9));}},_0x3c835c=_0x359c01=>{var _0x41f159=_0x5e53c7;switch(_0x359c01){case _0x4e873e['UNAUTHORIZED']:return _0x19093a['t']('mcpConfig.connectionError.unauthorized');case _0x4e873e['SESSION_ID_OCCUPIED']:return _0x19093a['t'](_0x41f159(0x1ed));case _0x4e873e['NETWORK_ERROR']:return _0x19093a['t'](_0x41f159(0x29a));case _0x4e873e[_0x41f159(0x2da)]:return _0x19093a['t'](_0x41f159(0x2c7));default:return'';}},_0x53c8a8=_0x30b2c7(()=>{var _0x4ac83c=_0x5e53c7;const _0x18f307={..._0x4872d6,'apiKey':_0x5da614[_0x4ac83c(0x249)](),'enableAuth':_0x580caf};_0x1fc41a(_0x18f307);},[_0x4872d6,_0x5da614,_0x580caf,_0x1fc41a]),_0x580c31=_0x5da614[_0x5e53c7(0x249)]()['length']>0x0;return _0x5710b0(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x2b9),'children':[_0x575de2(_0x5e53c7(0x28b),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':_0x5710b0('div',{'className':_0x5e53c7(0x2f2),'children':[_0x575de2(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x25e),'children':_0x575de2(_0x5e53c7(0x230),{'className':_0x5e53c7(0x26f),'children':'⚙'})}),_0x575de2(_0x5e53c7(0x28b),{'children':_0x575de2('p',{'className':_0x5e53c7(0x216),'children':_0x19093a['t'](_0x5e53c7(0x233))})})]})}),_0x5710b0(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x20d),'children':[_0x575de2(_0x5e53c7(0x28b),{'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'+_0x82dbaa(_0x380a6d,_0x4f10ac)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','children':_0x5710b0(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x265),'children':[_0x575de2(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x1f5)+_0x30ea24(_0x380a6d,_0x4f10ac)+'\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'}),_0x575de2(_0x5e53c7(0x230),{'className':_0x5e53c7(0x1a5),'children':_0x5689eb(_0x380a6d)})]})}),_0x4f10ac!==_0x4e873e[_0x5e53c7(0x1e4)]&&(_0x380a6d===_0x386ed5[_0x5e53c7(0x2a1)]||_0x4f10ac===_0x4e873e[_0x5e53c7(0x2cd)])&&_0x575de2(_0x5e53c7(0x28b),{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':_0x5710b0(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x23a),'children':[_0x575de2(_0x5e53c7(0x230),{'className':_0x5e53c7(0x241),'children':'⚠️'}),_0x575de2('p',{'className':_0x5e53c7(0x1d9),'children':_0x3c835c(_0x4f10ac)})]})})]}),_0x575de2('div',{'className':_0x5e53c7(0x203),'children':_0x5710b0(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x226),'children':[_0x5710b0(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x1bb),'children':[_0x5710b0('label',{'className':_0x5e53c7(0x25a),'children':[_0x575de2(_0x5e53c7(0x230),{'children':'🔑'}),'\x20',_0x19093a['t'](_0x5e53c7(0x2df)),_0x575de2(_0x5e53c7(0x230),{'className':_0x5e53c7(0x1d3),'children':'*'}),_0x53ba76&&_0x575de2('a',{'href':'javascript:void(0)','onClick':()=>_0x440314(!0x0),'className':_0x5e53c7(0x2de),'title':_0x19093a['t'](_0x5e53c7(0x243)),'children':_0x575de2(de,{})})]}),_0x575de2(_0x430dc6,{'type':_0x5e53c7(0x283),'placeholder':_0x19093a['t'](_0x5e53c7(0x2b1)),'value':_0x5da614,'onChange':_0x163e9b,'disabled':_0xa5d1ad,'autoComplete':'off'}),_0x575de2('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x19093a['t']('mcpConfig.apiKeyHint')})]}),_0x53ba76&&_0x233c60&&_0x5710b0('div',{'className':_0x5e53c7(0x2ce),'children':[_0x575de2('a',{'href':_0x5e53c7(0x268),'onClick':()=>_0x440314(!0x1),'className':_0x5e53c7(0x207),'title':_0x5e53c7(0x2b2),'children':_0x575de2(ve,{})}),_0x5710b0(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x2a8),'children':[_0x575de2(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x2c3),'children':_0x575de2(_0x5e53c7(0x230),{'className':'univer-text-blue-600','children':'🚀'})}),_0x5710b0(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x1a8),'children':[_0x575de2('h4',{'className':_0x5e53c7(0x2f0),'children':_0x19093a['t']('mcpConfig.apiApplyInfo.title')}),_0x575de2('p',{'className':_0x5e53c7(0x2e3),'children':_0x19093a['t'](_0x5e53c7(0x1b4))}),_0x575de2(_0x5e53c7(0x28b),{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x5bc6d3&&_0x5710b0('a',{'href':_0x48a33a,'target':_0x5e53c7(0x1c2),'rel':'noopener\x20noreferrer','className':_0x5e53c7(0x27b),'children':[_0x575de2(_0x5e53c7(0x230),{'children':'🤖'}),_0x19093a['t'](_0x5e53c7(0x2b6)),_0x575de2('span',{'className':_0x5e53c7(0x2ab),'children':'↗'})]})}),_0x5710b0(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x1b1),'children':['✨','\x20',_0x19093a['t'](_0x5e53c7(0x200))]})]})]})]}),_0x31f1d9[_0x5e53c7(0x271)]&&_0x5710b0('div',{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[_0x5710b0('h4',{'className':_0x5e53c7(0x211),'children':[_0x575de2('span',{'children':'🔗'}),'\x20',_0x19093a['t']('mcpConfig.connectionInfo')]}),_0x5710b0(_0x5e53c7(0x28b),{'className':'univer-space-y-4','children':[_0x5710b0(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x263),'children':[_0x575de2('p',{'className':_0x5e53c7(0x1de),'children':_0x19093a['t'](_0x5e53c7(0x2a9))}),_0x5710b0(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x1bb),'children':[_0x575de2(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x254),'children':_0x19093a['t']('mcpConfig.configStepTitle')}),_0x5710b0(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x235),'children':[_0x5710b0(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x265),'children':[_0x575de2(_0x5e53c7(0x230),{'className':_0x5e53c7(0x202),'children':'1'}),_0x19093a['t'](_0x5e53c7(0x2c8))]}),_0x5710b0('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x575de2(_0x5e53c7(0x230),{'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'}),_0x19093a['t'](_0x5e53c7(0x1c6))]}),_0x5710b0(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x265),'children':[_0x575de2(_0x5e53c7(0x230),{'className':_0x5e53c7(0x202),'children':'3'}),_0x19093a['t'](_0x5e53c7(0x2af))]})]})]})]}),_0x5710b0('div',{'className':_0x5e53c7(0x1bb),'children':[_0x575de2(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x254),'children':_0x5e53c7(0x22d)}),_0x575de2(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x24e),'children':_0x575de2('pre',{'className':_0x5e53c7(0x29b),'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='+_0x4a8b09+_0x5e53c7(0x2a4)+(_0x5da614||_0x5e53c7(0x1c7))+_0x5e53c7(0x23d)})})]}),_0x5710b0('div',{'className':'univer-space-y-3','children':[_0x575de2('div',{'className':_0x5e53c7(0x254),'children':_0x19093a['t'](_0x5e53c7(0x274))}),_0x5710b0(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x1bb),'children':[_0x5710b0(_0x5e53c7(0x28b),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x575de2(_0x5e53c7(0x28b),{'className':'univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x5710b0('div',{'className':_0x5e53c7(0x2fc),'children':[_0x575de2(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x2c1),'children':'univer_session_id:'}),_0x575de2('div',{'className':_0x5e53c7(0x213),'children':_0x19093a['t'](_0x5e53c7(0x1f7))})]})]}),_0x5710b0(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x2e4),'children':[_0x575de2('div',{'className':_0x5e53c7(0x1c5)}),_0x5710b0(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x2fc),'children':[_0x575de2(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x2c1),'children':_0x5e53c7(0x228)}),_0x575de2(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x213),'children':_0x19093a['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),_0x575de2(_0x3b7201,{'onClick':_0x53c8a8,'disabled':!_0x580c31||_0xa5d1ad,'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':_0xa5d1ad?_0x5710b0(_0x5e53c7(0x230),{'className':_0x5e53c7(0x265),'children':[_0x575de2(_0x5e53c7(0x230),{'children':'⟲'}),_0x19093a['t']('mcpConfig.saving')]}):_0x5710b0(_0x5e53c7(0x230),{'className':_0x5e53c7(0x265),'children':[_0x575de2(le,{}),_0x19093a['t'](_0x5e53c7(0x2d0))]})}),_0x575de2('div',{'className':_0x5e53c7(0x1eb),'children':_0x5710b0('div',{'className':'univer-flex\x20univer-gap-3','children':[_0x575de2(_0x5e53c7(0x230),{'className':_0x5e53c7(0x267),'children':'💡'}),_0x5710b0(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x27c),'children':[_0x575de2(_0x5e53c7(0x28b),{'className':'univer-font-medium','children':'Configuration\x20Notes:'}),_0x5710b0(_0x5e53c7(0x28b),{'children':['•',_0x19093a['t'](_0x5e53c7(0x297))]}),_0x5710b0(_0x5e53c7(0x28b),{'children':['•',_0x19093a['t'](_0x5e53c7(0x2a6))]})]})]})})]})})]});}const x=_0x5169db(0x2d2),re={'showDeveloperTools':!0x1,'showStatus':!0x0};var on=Object[_0x5169db(0x1ba)],sn=(_0x435d58,_0x25a78c,_0x3cd284,_0x291c37)=>{var _0x48c785=_0x5169db;for(var _0x255b72=_0x291c37>0x1?void 0x0:_0x291c37?on(_0x25a78c,_0x3cd284):_0x25a78c,_0x4d01ae=_0x435d58[_0x48c785(0x23e)]-0x1,_0x5c6ee7;_0x4d01ae>=0x0;_0x4d01ae--)(_0x5c6ee7=_0x435d58[_0x4d01ae])&&(_0x255b72=_0x5c6ee7(_0x255b72)||_0x255b72);return _0x255b72;},g=(_0x3aa3be,_0x3660f7)=>(_0x1ef2d5,_0x421301)=>_0x3660f7(_0x1ef2d5,_0x421301,_0x3aa3be);const j=_0x5169db(0x1f0),U=_0x5169db(0x1b6);let I=class extends _0x3dde06{constructor(_0x59c8b7,_0x3f1158,_0x58e0a6,_0x354a3a,_0x41ef37,_0x65d30c,_0x4c82a0,_0x4c300e,_0x1e20fc,_0x636d79){var _0x40bfa3=_0x5169db;super(),S(this,_0x40bfa3(0x224),new _0x1434d3(!0x1)),S(this,_0x40bfa3(0x1b0),new _0x1434d3({})),S(this,_0x40bfa3(0x2eb),new _0x1434d3({})),S(this,_0x40bfa3(0x2a7),new _0x1434d3('')),S(this,'_handleConfigSave',async _0x43544b=>{var _0x24713f=_0x40bfa3,_0xb57237,_0x20833b;this[_0x24713f(0x224)][_0x24713f(0x217)](!0x0);try{const _0x51465a=await this[_0x24713f(0x1c1)](_0x43544b);if(!_0x51465a[_0x24713f(0x1e3)]){this[_0x24713f(0x294)][_0x24713f(0x262)]({'type':_0x2465ca['Error'],'content':_0x51465a['errorMessage']||this[_0x24713f(0x284)]['t'](_0x24713f(0x205))});return;}_0x43544b[_0x24713f(0x25b)]?await this[_0x24713f(0x2e7)][_0x24713f(0x209)](j,_0x43544b[_0x24713f(0x25b)][_0x24713f(0x249)]()):await this[_0x24713f(0x2e7)][_0x24713f(0x2d9)](j),this[_0x24713f(0x2a7)][_0x24713f(0x217)](((_0xb57237=_0x43544b[_0x24713f(0x25b)])==null?void 0x0:_0xb57237['trim']())||''),this[_0x24713f(0x2ff)][_0x24713f(0x1b9)]({'Authorization':_0x24713f(0x236)+((_0x20833b=_0x43544b[_0x24713f(0x25b)])==null?void 0x0:_0x20833b[_0x24713f(0x249)]())}),this['_messageService'][_0x24713f(0x262)]({'type':_0x2465ca['Success'],'content':this['_localeService']['t']('mcpConfig.configSaved')}),setTimeout(()=>{var _0x9ce532=_0x24713f;this[_0x9ce532(0x1c0)][_0x9ce532(0x214)](U);},0x320);}catch(_0x5514f3){this['_logService'][_0x24713f(0x2c9)]('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x5514f3),this[_0x24713f(0x294)][_0x24713f(0x262)]({'type':_0x2465ca[_0x24713f(0x1d0)],'content':this[_0x24713f(0x284)]['t']('mcpConfig.configError')});}finally{this[_0x24713f(0x224)][_0x24713f(0x217)](!0x1);}}),(this[_0x40bfa3(0x1bd)]=_0x59c8b7,this[_0x40bfa3(0x1e6)]=_0x3f1158,this[_0x40bfa3(0x260)]=_0x58e0a6,this[_0x40bfa3(0x2e7)]=_0x354a3a,this[_0x40bfa3(0x1c0)]=_0x41ef37,this[_0x40bfa3(0x294)]=_0x65d30c,this[_0x40bfa3(0x2fb)]=_0x4c82a0,this[_0x40bfa3(0x284)]=_0x4c300e,this[_0x40bfa3(0x277)]=_0x1e20fc,this['_mcpConnectionController']=_0x636d79,this['_initConfigSync'](),this[_0x40bfa3(0x1c3)](),this[_0x40bfa3(0x2ea)]());}['showConfigPanel'](){var _0x10f61a=_0x5169db;const _0x51975d=this[_0x10f61a(0x260)]['getConfig'](x);_0x51975d!=null&&_0x51975d['showDeveloperTools']&&this[_0x10f61a(0x1c0)]['open']({'id':U,'title':{'title':this[_0x10f61a(0x284)]['t']('mcpConfig.title')},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0x29ff54=_0x10f61a;this[_0x29ff54(0x1c0)]['close'](U);}});}[_0x5169db(0x1e9)](){var _0x1e541d=_0x5169db;return this[_0x1e541d(0x1b0)][_0x1e541d(0x1ab)];}[_0x5169db(0x2ea)](){var _0x50c5d8=_0x5169db;this[_0x50c5d8(0x1b8)](this[_0x50c5d8(0x2fb)]['register'](_0x50c5d8(0x1d6),this['_createConfigPanelComponent']()));}[_0x5169db(0x25f)](){var _0x53e0bf=_0x5169db;return _0x23400d(()=>{var _0x24e852=_0x5e17,_0x33dcfc,_0xafd497,_0x26a6f2;return _0x575de2(tn,{'config':this[_0x24e852(0x2eb)][_0x24e852(0x1ab)],'mcpCoreConfig':this[_0x24e852(0x1b0)][_0x24e852(0x1ab)],'currentApiKey$':this['_apiKey$'],'onSave':this[_0x24e852(0x2ba)],'loading':this[_0x24e852(0x224)][_0x24e852(0x1ab)],'connectionStatus$':(_0x33dcfc=this['_mcpConnectionController'])==null?void 0x0:_0x33dcfc[_0x24e852(0x239)],'connectionError$':(_0xafd497=this[_0x24e852(0x2ff)])==null?void 0x0:_0xafd497['connectionError$'],'currentSessionId$':(_0x26a6f2=this[_0x24e852(0x2ff)])==null?void 0x0:_0x26a6f2[_0x24e852(0x25d)]});},this[_0x53e0bf(0x1bd)]);}[_0x5169db(0x26a)](){var _0x39c895=_0x5169db;this[_0x39c895(0x1b8)](this[_0x39c895(0x260)][_0x39c895(0x1d8)](_0x457454)[_0x39c895(0x2f5)](_0x1e07fc=>{var _0x13a208=_0x39c895;this[_0x13a208(0x1b0)][_0x13a208(0x217)](_0x1e07fc||{});}));const _0xefd604=this[_0x39c895(0x260)]['getConfig'](_0x457454);this[_0x39c895(0x1b0)][_0x39c895(0x217)](_0xefd604||{}),this[_0x39c895(0x1b8)](this[_0x39c895(0x260)]['subscribeConfigValue$'](x)['subscribe'](_0x5681a0=>{var _0x507ace=_0x39c895;this[_0x507ace(0x2eb)][_0x507ace(0x217)](_0x5681a0||{});}));const _0x300936=this['_configService'][_0x39c895(0x1b5)](x);this[_0x39c895(0x2eb)]['next'](_0x300936||{});}async['_loadStoredApiKey'](){var _0x5e1aaa=_0x5169db;const _0x4360c6=this[_0x5e1aaa(0x260)][_0x5e1aaa(0x1b5)](x);if(!(_0x4360c6!=null&&_0x4360c6[_0x5e1aaa(0x271)]))return;const _0x2c1c5d=await this['_localStorageService'][_0x5e1aaa(0x1aa)](j);_0x2c1c5d&&(this['_mcpConnectionController'][_0x5e1aaa(0x1b9)]({'Authorization':_0x5e1aaa(0x236)+_0x2c1c5d}),this[_0x5e1aaa(0x2a7)]['next'](_0x2c1c5d));}async['_validateConfig'](_0x3a56a8){var _0x5d02b6=_0x5169db;if(!_0x3a56a8[_0x5d02b6(0x25b)]||_0x3a56a8[_0x5d02b6(0x25b)][_0x5d02b6(0x249)]()[_0x5d02b6(0x23e)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x5d02b6(0x284)]['t'](_0x5d02b6(0x1f2))};if(_0x3a56a8[_0x5d02b6(0x25b)][_0x5d02b6(0x249)]()[_0x5d02b6(0x23e)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x5d02b6(0x284)]['t'](_0x5d02b6(0x255))};try{const _0xe96621=await this[_0x5d02b6(0x1bd)][_0x5d02b6(0x2c0)](_0x27fb1b)['validateApiKey'](_0x3a56a8[_0x5d02b6(0x25b)][_0x5d02b6(0x249)]());return _0xe96621[_0x5d02b6(0x1e3)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0xe96621[_0x5d02b6(0x2c9)]||this[_0x5d02b6(0x284)]['t'](_0x5d02b6(0x22f))};}catch(_0x3577cf){return console[_0x5d02b6(0x1ec)](_0x5d02b6(0x1c4),_0x3577cf),{'isValid':!0x0};}}};I=sn([g(0x0,_0x236043(_0x582310)),g(0x1,_0x1711f6),g(0x2,_0x3a4bae),g(0x3,_0x51515e),g(0x4,_0x499b1d),g(0x5,_0xdc7f2d),g(0x6,_0x236043(_0x43e4c3)),g(0x7,_0x236043(_0x4f4718)),g(0x8,_0x36ee80),g(0x9,_0x236043(_0x27fb1b))],I);const V={'id':_0x5169db(0x221),'type':_0x42ca93[_0x5169db(0x1d7)],'handler':async(_0x7ce2be,_0x4904de)=>(_0x7ce2be[_0x5169db(0x2c0)](I)['showConfigPanel'](),!0x0)};function pe(_0x3adf0b,_0x51e863){var _0x5d2210=_0x5169db;switch(_0x3adf0b){case _0x386ed5[_0x5d2210(0x299)]:return'mcpStatus.disconnected';case _0x386ed5[_0x5d2210(0x1ea)]:return _0x5d2210(0x1ef);case _0x386ed5[_0x5d2210(0x25c)]:return'mcpStatus.connected';case _0x386ed5[_0x5d2210(0x2a1)]:switch(_0x51e863){case _0x4e873e[_0x5d2210(0x2cd)]:return _0x5d2210(0x285);case _0x4e873e[_0x5d2210(0x1cd)]:return'mcpStatus.sessionOccupied';case _0x4e873e[_0x5d2210(0x2d7)]:return'mcpStatus.networkError';case _0x4e873e[_0x5d2210(0x2da)]:return'mcpStatus.maxRetriesExceeded';default:return _0x5d2210(0x1f4);}case _0x386ed5[_0x5d2210(0x2a3)]:return _0x5d2210(0x2b7);default:return'mcpStatus.unknown';}}function cn(_0x5d1440,_0x46c065,_0x1245ee,_0x57f7c0=!0x0){var _0x12581e=_0x5169db;const _0x1ed301=pe(_0x5d1440,_0x46c065),_0x5c011e=_0x1245ee['t'](_0x1ed301);return _0x57f7c0?_0x5d1440===_0x386ed5[_0x12581e(0x299)]&&_0x46c065===_0x4e873e[_0x12581e(0x2cd)]?_0x5c011e+_0x12581e(0x234)+_0x1245ee['t'](_0x12581e(0x1a1)):_0x5d1440===_0x386ed5[_0x12581e(0x25c)]?''+_0x5c011e:_0x5d1440===_0x386ed5[_0x12581e(0x299)]||_0x5d1440===_0x386ed5[_0x12581e(0x2a1)]?_0x5c011e+_0x12581e(0x234)+_0x1245ee['t'](_0x12581e(0x29c)):_0x5c011e:_0x5c011e;}function an(_0x2be353){var _0x575cda=_0x5169db;switch(_0x2be353){case _0x386ed5[_0x575cda(0x25c)]:return _0x575cda(0x23b);case _0x386ed5['CONNECTING']:case _0x386ed5[_0x575cda(0x2a3)]:return _0x575cda(0x210);case _0x386ed5['FAILED']:case _0x386ed5['DISCONNECTED']:return'univer-text-red-500';default:return _0x575cda(0x28a);}}function un(_0x56e197){var _0x43cc13=_0x5169db;const {status$:_0x3330c4,error$:_0x491d84,onConfigure:_0x3d3920,showClickable:_0x43a7e7=!0x0}=_0x56e197,_0x1da5ab=_0x15ca67(_0x3330c4,_0x386ed5[_0x43cc13(0x299)]),_0x5770c3=_0x15ca67(_0x491d84,_0x4e873e[_0x43cc13(0x1e4)]),_0x554d91=_0x3f5854(_0x4f4718),_0x4596f6=_0x1da5ab===_0x386ed5[_0x43cc13(0x25c)];_0x1da5ab===_0x386ed5[_0x43cc13(0x1ea)]||_0x386ed5[_0x43cc13(0x2a3)];const _0x3b7c41=_0x554d91['t'](pe(_0x1da5ab,_0x5770c3)),_0x3a2910=cn(_0x1da5ab,_0x5770c3,_0x554d91,_0x43a7e7),_0x2ee5fa=an(_0x1da5ab),_0x53f942=_0x4596f6?_0x575de2(ge,{}):_0x575de2(fe,{}),_0x31616a=_0x30b2c7(()=>{_0x43a7e7&&_0x3d3920&&_0x3d3920();},[_0x43a7e7,_0x3d3920]);function _0x40d69d(){var _0x5db606=_0x43cc13;return _0x5710b0(_0x5db606(0x28b),{'className':_0x3a7b1a('univer-flex\x20univer-items-center',_0x43a7e7&&_0x3d3920&&'\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'),'onClick':_0x43a7e7&&_0x3d3920?_0x31616a:void 0x0,'children':[_0x575de2(_0x5db606(0x28b),{'className':_0x3a7b1a(_0x5db606(0x1e0),_0x2ee5fa),'children':_0x53f942}),_0x575de2(_0x5db606(0x28b),{'className':_0x5db606(0x29f),'children':_0x3b7c41})]});}return _0x575de2(_0x7daf80,{'title':_0x3a2910,'placement':'bottom','children':_0x40d69d()});}function _0x5e17(_0x482276,_0x23752d){var _0x23e62f=_0x23e6();return _0x5e17=function(_0x5e17ff,_0x4cf208){_0x5e17ff=_0x5e17ff-0x1a1;var _0x3458fc=_0x23e62f[_0x5e17ff];return _0x3458fc;},_0x5e17(_0x482276,_0x23752d);}var ln=Object[_0x5169db(0x1ba)],vn=(_0x2e8f00,_0x4555bc,_0x6a5504,_0x4fd7ec)=>{var _0xeef6de=_0x5169db;for(var _0x472f90=_0x4fd7ec>0x1?void 0x0:_0x4fd7ec?ln(_0x4555bc,_0x6a5504):_0x4555bc,_0x5106d4=_0x2e8f00[_0xeef6de(0x23e)]-0x1,_0x5124aa;_0x5106d4>=0x0;_0x5106d4--)(_0x5124aa=_0x2e8f00[_0x5106d4])&&(_0x472f90=_0x5124aa(_0x472f90)||_0x472f90);return _0x472f90;},A=(_0xe791b7,_0x176406)=>(_0x4233f7,_0x5ea39f)=>_0x176406(_0x4233f7,_0x5ea39f,_0xe791b7);let O=class extends _0x3dde06{constructor(_0x3af008,_0xed81a5,_0x13c1d4,_0x3f6322){var _0x238816=_0x5169db;super(),this[_0x238816(0x1bd)]=_0x3af008,this[_0x238816(0x212)]=_0xed81a5,this[_0x238816(0x1e6)]=_0x13c1d4,this[_0x238816(0x260)]=_0x3f6322,this['_initAutoConnect'](),this['_initStatusComponent']();}[_0x5169db(0x1f9)](){var _0x3f16ee=_0x5169db;const _0xf02e32=this[_0x3f16ee(0x260)][_0x3f16ee(0x1b5)](x);_0xf02e32!=null&&_0xf02e32['showDeveloperTools']&&(this['_connectionController'][_0x3f16ee(0x24a)]=!0x1);}[_0x5169db(0x2a2)](){var _0x47c5d6=_0x5169db;const _0x363124=this[_0x47c5d6(0x260)][_0x47c5d6(0x1b5)](x);(_0x363124==null?void 0x0:_0x363124['showStatus'])!==!0x1&&this['disposeWithMe'](this['_uiPartsService'][_0x47c5d6(0x26e)](_0x906c3b[_0x47c5d6(0x2bd)],()=>{var _0x58d7ba=_0x47c5d6,_0x2b5aa1;return _0x23400d(dn({'status$':this[_0x58d7ba(0x212)][_0x58d7ba(0x239)],'error$':this['_connectionController'][_0x58d7ba(0x1ff)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x2b5aa1=_0x363124==null?void 0x0:_0x363124[_0x58d7ba(0x271)])!=null?_0x2b5aa1:!0x1}),this[_0x58d7ba(0x1bd)]);}));}[_0x5169db(0x247)](){var _0x332aec=_0x5169db;this[_0x332aec(0x1bd)]['get'](I)[_0x332aec(0x1f3)]();}};O=vn([A(0x0,_0x236043(_0x582310)),A(0x1,_0x236043(_0x27fb1b)),A(0x2,_0x1711f6),A(0x3,_0x3a4bae)],O);function dn(_0x19e388){const {status$:_0x26f485,error$:_0x216c85,onConfigure:_0x319cf9,showClickable:_0x30e02a}=_0x19e388;return function(){return _0x575de2(un,{'status$':_0x26f485,'error$':_0x216c85,'onConfigure':_0x319cf9,'showClickable':_0x30e02a});};}function fn(_0x3180d4){var _0x47e93f=_0x5169db;return{'id':V['id'],'type':_0x515621[_0x47e93f(0x246)],'icon':_0x47e93f(0x2f9),'title':_0x47e93f(0x1b2),'tooltip':_0x47e93f(0x1b2)};}const gn={[_0x173307[_0x5169db(0x2c4)]]:{[V['id']]:{'order':0xa,'menuItemFactory':fn}}};var pn=Object[_0x5169db(0x1ba)],hn=(_0x32b437,_0x3ccaf8,_0x22bd04,_0xa0e8e5)=>{var _0x5c0ab8=_0x5169db;for(var _0x473660=_0xa0e8e5>0x1?void 0x0:_0xa0e8e5?pn(_0x3ccaf8,_0x22bd04):_0x3ccaf8,_0x17a91c=_0x32b437[_0x5c0ab8(0x23e)]-0x1,_0xd6520e;_0x17a91c>=0x0;_0x17a91c--)(_0xd6520e=_0x32b437[_0x17a91c])&&(_0x473660=_0xd6520e(_0x473660)||_0x473660);return _0x473660;},te=(_0x2cb64d,_0x298314)=>(_0xf9ad2a,_0x3e29a5)=>_0x298314(_0xf9ad2a,_0x3e29a5,_0x2cb64d);let k=class extends _0x3dde06{constructor(_0x1b8e64,_0x1f3498){var _0x112c97=_0x5169db;super(),this['_commandService']=_0x1b8e64,this[_0x112c97(0x21c)]=_0x1f3498,this['_initializeCommands'](),this[_0x112c97(0x1f8)]();}[_0x5169db(0x2f3)](){[V]['forEach'](_0x51fb7a=>{var _0x2b10b5=_0x5e17;this[_0x2b10b5(0x1b8)](this[_0x2b10b5(0x21e)][_0x2b10b5(0x2e1)](_0x51fb7a));});}[_0x5169db(0x1f8)](){var _0x1948e3=_0x5169db;this['_menuManagerService'][_0x1948e3(0x272)](gn);}};k=hn([te(0x0,_0x39e99e),te(0x1,_0x5a4a7b)],k);const On={'mcpStatus':{'disconnected':_0x5169db(0x26c),'connecting':_0x5169db(0x286),'connected':_0x5169db(0x240),'failed':_0x5169db(0x1db),'retrying':_0x5169db(0x1af),'unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x5169db(0x293),'networkError':_0x5169db(0x21b),'maxRetriesExceeded':_0x5169db(0x1ca),'clickToConnect':_0x5169db(0x2d3),'clickToConfigure':_0x5169db(0x1da)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x5169db(0x250),'apiKey':_0x5169db(0x26b),'apiKeyPlaceholder':_0x5169db(0x2ae),'apiKeyHint':_0x5169db(0x256),'enableAuth':_0x5169db(0x2e8),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x5169db(0x24d),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x5169db(0x20f),'configStepTitle':_0x5169db(0x227),'configStep1':_0x5169db(0x2f1),'configStep2':_0x5169db(0x223),'configStep3':_0x5169db(0x231),'sessionId':'Session\x20ID','sessionIdDescription':_0x5169db(0x290),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x5169db(0x1ae),'maxRetries':_0x5169db(0x22b),'save':'Save\x20Configuration','saving':_0x5169db(0x245),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x5169db(0x29d),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x5169db(0x2e2),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x5169db(0x2bc)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x5169db(0x222),'invalidConfig':_0x5169db(0x2ac),'invalidApiKey':_0x5169db(0x275)},'connectionStatus':{'disconnected':_0x5169db(0x2c6),'connecting':'Connecting...','connected':_0x5169db(0x2d5),'failed':'Connection\x20Failed','retrying':_0x5169db(0x287)},'connectionError':{'unauthorized':_0x5169db(0x1fb),'sessionOccupied':_0x5169db(0x1be),'networkError':_0x5169db(0x208),'maxRetriesExceeded':_0x5169db(0x1d2)}}},kn={'mcpStatus':{'disconnected':_0x5169db(0x1f1),'connecting':_0x5169db(0x1df),'connected':'MCP\x20已连接','failed':_0x5169db(0x2dc),'retrying':_0x5169db(0x1c9),'unknown':_0x5169db(0x27a),'unauthorized':_0x5169db(0x266),'sessionOccupied':_0x5169db(0x28d),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x5169db(0x20e),'clickToConfigure':_0x5169db(0x1dd)},'mcpConfig':{'title':_0x5169db(0x257),'description':_0x5169db(0x280),'apiKey':_0x5169db(0x258),'apiKeyPlaceholder':_0x5169db(0x1cc),'apiKeyHint':_0x5169db(0x1a4),'enableAuth':_0x5169db(0x22c),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x5169db(0x29e),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x5169db(0x1a3),'configStep1':'复制以下\x20JSON\x20配置','configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x5169db(0x1a6),'sessionId':_0x5169db(0x1c8),'sessionIdDescription':_0x5169db(0x278),'authorizationDescription':_0x5169db(0x218),'configParameters':_0x5169db(0x2f7),'maxRetries':'最大重试次数','save':'保存配置','saving':'保存中...','note1':_0x5169db(0x1cf),'note2':_0x5169db(0x279),'configSaved':_0x5169db(0x273),'configError':_0x5169db(0x2f6),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x5169db(0x2c5),'univerAiLabel':_0x5169db(0x27d),'getStarted':_0x5169db(0x2fa)},'validation':{'apiKeyRequired':_0x5169db(0x1b3),'apiKeyTooShort':_0x5169db(0x1ee),'invalidConfig':'配置无效','invalidApiKey':_0x5169db(0x1d5)},'connectionStatus':{'disconnected':_0x5169db(0x1f6),'connecting':_0x5169db(0x253),'connected':'已连接','failed':_0x5169db(0x1a2),'retrying':'重连中...'},'connectionError':{'unauthorized':_0x5169db(0x20b),'sessionOccupied':_0x5169db(0x2e5),'networkError':_0x5169db(0x201),'maxRetriesExceeded':_0x5169db(0x276)}}};var mn=Object[_0x5169db(0x27f)],Cn=Object[_0x5169db(0x1ba)],yn=(_0x200bd4,_0x3643d9,_0x5e7674)=>_0x3643d9 in _0x200bd4?mn(_0x200bd4,_0x3643d9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5e7674}):_0x200bd4[_0x3643d9]=_0x5e7674,_n=(_0x3aca8d,_0x2f3ec4,_0x1a0d27,_0x75ddf4)=>{var _0x190770=_0x5169db;for(var _0x38dbc7=_0x75ddf4>0x1?void 0x0:_0x75ddf4?Cn(_0x2f3ec4,_0x1a0d27):_0x2f3ec4,_0x3ce2f1=_0x3aca8d[_0x190770(0x23e)]-0x1,_0x1f9239;_0x3ce2f1>=0x0;_0x3ce2f1--)(_0x1f9239=_0x3aca8d[_0x3ce2f1])&&(_0x38dbc7=_0x1f9239(_0x38dbc7)||_0x38dbc7);return _0x38dbc7;},E=(_0x3871dd,_0x3795c5)=>(_0x5c6f3d,_0x3b5a4c)=>_0x3795c5(_0x5c6f3d,_0x3b5a4c,_0x3871dd),xn=(_0xa2d268,_0x33969b,_0x38e68f)=>yn(_0xa2d268,_0x33969b+'',_0x38e68f);let L=class extends _0x304d6d{constructor(_0x360f24=re,_0x4a9410,_0x2a4b03,_0x23739b,_0x4981bc,_0x23e69e){var _0x13d868=_0x5169db;super(),this[_0x13d868(0x2ef)]=_0x360f24,this['_injector']=_0x4a9410,this[_0x13d868(0x260)]=_0x2a4b03,this['_uiPartsService']=_0x23739b,this['_localStorageService']=_0x4981bc,this[_0x13d868(0x284)]=_0x23e69e;const {..._0x1323a2}=_0x1ce813({},re,this['_config']);this[_0x13d868(0x260)][_0x13d868(0x296)](x,_0x1323a2);}async[_0x5169db(0x237)](){var _0x2d83d0=_0x5169db;const _0x3a555a=[[O],[I],[k]];this[_0x2d83d0(0x1bd)][_0x2d83d0(0x1fe)](_0x4a4ff2)||_0x3a555a[_0x2d83d0(0x295)]([_0x4a4ff2,{'useClass':_0x1f9c88}]),_0x3a555a['forEach'](_0x32d30c=>this[_0x2d83d0(0x1bd)]['add'](_0x32d30c)),this[_0x2d83d0(0x1bd)][_0x2d83d0(0x2c0)](O),this[_0x2d83d0(0x1bd)][_0x2d83d0(0x2c0)](I),this[_0x2d83d0(0x1bd)]['get'](k);}};xn(L,_0x5169db(0x298),_0x5169db(0x23f)),L=_n([_0x37ecd6(_0x20d2ba),E(0x1,_0x236043(_0x582310)),E(0x2,_0x3a4bae),E(0x3,_0x1711f6),E(0x4,_0x51515e),E(0x5,_0x236043(_0x4f4718))],L);export{tn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,un as MCPStatusDisplay,k as MCPUIMenuController,V as OpenMCPConfigPanelCommand,L as UniverMCPUIPlugin,On as enUS,kn as zhCN};
|
package/lib/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x59d452=_0x416f;(function(_0x57bb17,_0x208462){const _0x35b350=_0x416f,_0x3eb2fa=_0x57bb17();while(!![]){try{const _0x1cb82b=-parseInt(_0x35b350(0x194))/0x1+-parseInt(_0x35b350(0x192))/0x2+parseInt(_0x35b350(0x16f))/0x3+parseInt(_0x35b350(0x17a))/0x4*(-parseInt(_0x35b350(0x17c))/0x5)+parseInt(_0x35b350(0x182))/0x6*(-parseInt(_0x35b350(0x197))/0x7)+parseInt(_0x35b350(0x18b))/0x8+parseInt(_0x35b350(0x187))/0x9*(-parseInt(_0x35b350(0x198))/0xa);if(_0x1cb82b===_0x208462)break;else _0x3eb2fa['push'](_0x3eb2fa['shift']());}catch(_0xf8a97f){_0x3eb2fa['push'](_0x3eb2fa['shift']());}}}(_0x2e24,0xe52dc));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x59d452(0x190),'connected':_0x59d452(0x183),'failed':_0x59d452(0x188),'retrying':'MCP\x20Retrying...','unknown':_0x59d452(0x184),'unauthorized':_0x59d452(0x17e),'sessionOccupied':_0x59d452(0x172),'networkError':_0x59d452(0x19d),'maxRetriesExceeded':_0x59d452(0x195),'clickToConnect':_0x59d452(0x178),'clickToConfigure':_0x59d452(0x18a)},'mcpConfig':{'title':_0x59d452(0x179),'description':_0x59d452(0x186),'apiKey':_0x59d452(0x199),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x59d452(0x196),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x59d452(0x177),'connectionInfo':_0x59d452(0x19b),'mcpClientConfig':_0x59d452(0x19b),'configInstructions':_0x59d452(0x193),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x59d452(0x191),'configStep2':_0x59d452(0x173),'configStep3':_0x59d452(0x185),'sessionId':'Session\x20ID','sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x59d452(0x17b),'configParameters':_0x59d452(0x16e),'maxRetries':_0x59d452(0x180),'save':_0x59d452(0x19c),'saving':'Saving...','note1':_0x59d452(0x175),'note2':_0x59d452(0x174),'configSaved':_0x59d452(0x17d),'configError':_0x59d452(0x181),'apiApplyInfo':{'title':_0x59d452(0x19a),'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':_0x59d452(0x170),'getStarted':_0x59d452(0x18f)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x59d452(0x189),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x59d452(0x171),'connecting':_0x59d452(0x17f),'connected':_0x59d452(0x18e),'failed':_0x59d452(0x18d),'retrying':_0x59d452(0x18c)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x59d452(0x176),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;function _0x416f(_0x4d0da5,_0x23b775){const _0x2e246b=_0x2e24();return _0x416f=function(_0x416fe1,_0x1530ef){_0x416fe1=_0x416fe1-0x16e;let _0x11c0e0=_0x2e246b[_0x416fe1];return _0x11c0e0;},_0x416f(_0x4d0da5,_0x23b775);}export{n as default};function _0x2e24(){const _0x27b332=['MCP\x20Unknown\x20Status','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','9WNTsFG','MCP\x20Connection\x20Failed','Invalid\x20configuration','Click\x20to\x20configure\x20MCP','13780248UWnPNM','Retrying...','Connection\x20Failed','Connected','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Connecting...','Copy\x20the\x20JSON\x20configuration\x20below','2085056cENSnw','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','137061CgvReb','MCP:\x20Max\x20Retries\x20Exceeded','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','7cgVsmt','11437120EjADvI','API\x20Key','What\x20is\x20API\x20Key?','MCP\x20Client\x20Configuration','Save\x20Configuration','MCP:\x20Network\x20Error','Configuration\x20Parameters:','5449227EckfPr','Univer\x20AI\x20Console','Disconnected','MCP:\x20Session\x20ID\x20Occupied','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Enable\x20authentication\x20for\x20secure\x20connections','Click\x20to\x20connect\x20MCP','MCP\x20Configuration','118412EotGnM','API\x20key\x20with\x20Bearer\x20prefix.','10tXBzjf','Configuration\x20saved\x20successfully','MCP:\x20Unauthorized','Connecting...','Max\x20Retries','Failed\x20to\x20save\x20configuration','1306302DXWYpV','MCP\x20Connected'];_0x2e24=function(){return _0x27b332;};return _0x2e24();}
|
package/lib/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x3c1442=_0x3f42;(function(_0x41462c,_0x56f80d){const _0x4be242=_0x3f42,_0x11c406=_0x41462c();while(!![]){try{const _0x3daa72=-parseInt(_0x4be242(0x150))/0x1*(parseInt(_0x4be242(0x175))/0x2)+parseInt(_0x4be242(0x160))/0x3+-parseInt(_0x4be242(0x16c))/0x4+parseInt(_0x4be242(0x15f))/0x5+parseInt(_0x4be242(0x157))/0x6+-parseInt(_0x4be242(0x17f))/0x7*(parseInt(_0x4be242(0x15e))/0x8)+parseInt(_0x4be242(0x15b))/0x9*(parseInt(_0x4be242(0x15d))/0xa);if(_0x3daa72===_0x56f80d)break;else _0x11c406['push'](_0x11c406['shift']());}catch(_0x117088){_0x11c406['push'](_0x11c406['shift']());}}}(_0x5a3e,0x654ff));function _0x5a3e(){const _0x418daf=['Enter\x20your\x20API\x20key','4RqOUbF','MCP\x20Disconnected','MCP:\x20Network\x20Error','Save\x20Configuration','Max\x20Retries','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Connection\x20Failed','Get\x20your\x20API\x20key\x20in\x20seconds','Enable\x20Authentication','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','21OBwKLF','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Connected','API\x20key\x20with\x20Bearer\x20prefix.','80713oeqgWH','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Copy\x20the\x20JSON\x20configuration\x20below','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Connecting...','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Saving...','1818354sCpDMl','Invalid\x20configuration','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP:\x20Max\x20Retries\x20Exceeded','73485UkLoAn','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','1150wUPBTv','1834776dueFoj','878470pvuPHP','990663hcwsvC','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Click\x20to\x20configure\x20MCP','Click\x20to\x20connect\x20MCP','Connecting...','Configuration\x20saved\x20successfully','MCP\x20Connected','MCP\x20Client\x20Configuration','Session\x20ID','API\x20Key','Configuration\x20Parameters:','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','1934028TjhjDD','What\x20is\x20API\x20Key?','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Configuration','MCP:\x20Unauthorized','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Disconnected','MCP\x20Unknown\x20Status'];_0x5a3e=function(){return _0x418daf;};return _0x5a3e();}function _0x3f42(_0x194a53,_0x48e6b3){const _0x5a3e89=_0x5a3e();return _0x3f42=function(_0x3f42e8,_0x2b6315){_0x3f42e8=_0x3f42e8-0x14f;let _0x1aa969=_0x5a3e89[_0x3f42e8];return _0x1aa969;},_0x3f42(_0x194a53,_0x48e6b3);}const e={'mcpStatus':{'disconnected':_0x3c1442(0x176),'connecting':_0x3c1442(0x154),'connected':_0x3c1442(0x166),'failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':_0x3c1442(0x173),'unauthorized':_0x3c1442(0x170),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x3c1442(0x177),'maxRetriesExceeded':_0x3c1442(0x15a),'clickToConnect':_0x3c1442(0x163),'clickToConfigure':_0x3c1442(0x162)},'mcpConfig':{'title':_0x3c1442(0x16f),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x3c1442(0x169),'apiKeyPlaceholder':_0x3c1442(0x174),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x3c1442(0x17d),'enableAuthHint':_0x3c1442(0x16e),'connectionInfo':_0x3c1442(0x167),'mcpClientConfig':_0x3c1442(0x167),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':_0x3c1442(0x152),'configStep2':_0x3c1442(0x15c),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x3c1442(0x168),'sessionIdDescription':_0x3c1442(0x153),'authorizationDescription':_0x3c1442(0x14f),'configParameters':_0x3c1442(0x16a),'maxRetries':_0x3c1442(0x179),'save':_0x3c1442(0x178),'saving':_0x3c1442(0x156),'note1':_0x3c1442(0x161),'note2':_0x3c1442(0x180),'configSaved':_0x3c1442(0x165),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x3c1442(0x16d),'description':_0x3c1442(0x171),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x3c1442(0x17c)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x3c1442(0x17a),'invalidConfig':_0x3c1442(0x158),'invalidApiKey':_0x3c1442(0x155)},'connectionStatus':{'disconnected':_0x3c1442(0x172),'connecting':_0x3c1442(0x164),'connected':_0x3c1442(0x181),'failed':_0x3c1442(0x17b),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x3c1442(0x16b),'sessionOccupied':_0x3c1442(0x159),'networkError':_0x3c1442(0x17e),'maxRetriesExceeded':_0x3c1442(0x151)}}};export{e as default};
|
package/lib/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x3d24ad=_0xb495;(function(_0x24cc73,_0x42e37f){const _0x8bc6c8=_0xb495,_0x201992=_0x24cc73();while(!![]){try{const _0x3bddc1=parseInt(_0x8bc6c8(0x1f7))/0x1+-parseInt(_0x8bc6c8(0x1d7))/0x2*(parseInt(_0x8bc6c8(0x1d4))/0x3)+-parseInt(_0x8bc6c8(0x1e9))/0x4+parseInt(_0x8bc6c8(0x1e8))/0x5+-parseInt(_0x8bc6c8(0x1f5))/0x6*(parseInt(_0x8bc6c8(0x1e3))/0x7)+-parseInt(_0x8bc6c8(0x1f9))/0x8+parseInt(_0x8bc6c8(0x1f0))/0x9*(parseInt(_0x8bc6c8(0x1c8))/0xa);if(_0x3bddc1===_0x42e37f)break;else _0x201992['push'](_0x201992['shift']());}catch(_0x171aea){_0x201992['push'](_0x201992['shift']());}}}(_0x1635,0xb9e73));function _0xb495(_0x3cdef8,_0x117322){const _0x163549=_0x1635();return _0xb495=function(_0xb49570,_0x588170){_0xb49570=_0xb49570-0x1c2;let _0x2e5beb=_0x163549[_0xb49570];return _0x2e5beb;},_0xb495(_0x3cdef8,_0x117322);}const e={'mcpStatus':{'disconnected':_0x3d24ad(0x1c3),'connecting':_0x3d24ad(0x1df),'connected':_0x3d24ad(0x1f2),'failed':_0x3d24ad(0x1e5),'retrying':_0x3d24ad(0x1d6),'unknown':_0x3d24ad(0x1cc),'unauthorized':_0x3d24ad(0x1de),'sessionOccupied':_0x3d24ad(0x1cb),'networkError':_0x3d24ad(0x1e6),'maxRetriesExceeded':_0x3d24ad(0x1ca),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x3d24ad(0x1da)},'mcpConfig':{'title':_0x3d24ad(0x1cd),'description':_0x3d24ad(0x1ef),'apiKey':_0x3d24ad(0x1c6),'apiKeyPlaceholder':_0x3d24ad(0x1d5),'apiKeyHint':_0x3d24ad(0x1d9),'enableAuth':_0x3d24ad(0x1e0),'enableAuthHint':_0x3d24ad(0x1ce),'connectionInfo':_0x3d24ad(0x1d8),'mcpClientConfig':_0x3d24ad(0x1d8),'configInstructions':_0x3d24ad(0x1e4),'configStepTitle':_0x3d24ad(0x1db),'configStep1':_0x3d24ad(0x1ea),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x3d24ad(0x1c9),'sessionId':_0x3d24ad(0x1c2),'sessionIdDescription':_0x3d24ad(0x1ee),'authorizationDescription':_0x3d24ad(0x1c5),'configParameters':_0x3d24ad(0x1ed),'maxRetries':_0x3d24ad(0x1c7),'save':_0x3d24ad(0x1d1),'saving':'Saving...','note1':_0x3d24ad(0x1d2),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x3d24ad(0x1eb),'apiApplyInfo':{'title':_0x3d24ad(0x1e7),'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':_0x3d24ad(0x1f6),'getStarted':_0x3d24ad(0x1d3)},'validation':{'apiKeyRequired':_0x3d24ad(0x1f1),'apiKeyTooShort':_0x3d24ad(0x1ec),'invalidConfig':_0x3d24ad(0x1f4),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x3d24ad(0x1dd),'connecting':_0x3d24ad(0x1e2),'connected':_0x3d24ad(0x1f8),'failed':_0x3d24ad(0x1dc),'retrying':_0x3d24ad(0x1c4)},'connectionError':{'unauthorized':_0x3d24ad(0x1d0),'sessionOccupied':_0x3d24ad(0x1cf),'networkError':_0x3d24ad(0x1e1),'maxRetriesExceeded':_0x3d24ad(0x1f3)}}},n=e;export{n as default};function _0x1635(){const _0x3ba482=['What\x20is\x20API\x20Key?','5880465ybbzpY','461416SOvdOd','Copy\x20the\x20JSON\x20configuration\x20below','Failed\x20to\x20save\x20configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Configuration\x20Parameters:','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','7859097EwBeZI','API\x20key\x20is\x20required','MCP\x20Connected','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Invalid\x20configuration','1605354HKgRMA','Univer\x20AI\x20Console','901070jHZTEH','Connected','3339680rcxGsF','Session\x20ID','MCP\x20Disconnected','Retrying...','API\x20key\x20with\x20Bearer\x20prefix.','API\x20Key','Max\x20Retries','10WibvIn','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP:\x20Max\x20Retries\x20Exceeded','MCP:\x20Session\x20ID\x20Occupied','MCP\x20Unknown\x20Status','MCP\x20Configuration','Enable\x20authentication\x20for\x20secure\x20connections','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Save\x20Configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Get\x20your\x20API\x20key\x20in\x20seconds','3363015mpLrMU','Enter\x20your\x20API\x20key','MCP\x20Retrying...','2fFfqef','MCP\x20Client\x20Configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Click\x20to\x20configure\x20MCP','Configuration\x20Steps:','Connection\x20Failed','Disconnected','MCP:\x20Unauthorized','MCP\x20Connecting...','Enable\x20Authentication','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Connecting...','14XbdoJF','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Connection\x20Failed','MCP:\x20Network\x20Error'];_0x1635=function(){return _0x3ba482;};return _0x1635();}
|
package/lib/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x5a7e(_0x2c874a,_0x202be5){const _0x483aff=_0x483a();return _0x5a7e=function(_0x5a7eb3,_0x4b0a73){_0x5a7eb3=_0x5a7eb3-0x96;let _0xce6a6b=_0x483aff[_0x5a7eb3];return _0xce6a6b;},_0x5a7e(_0x2c874a,_0x202be5);}const _0x406f79=_0x5a7e;(function(_0x457db1,_0x2a8c6b){const _0xf048cd=_0x5a7e,_0x340506=_0x457db1();while(!![]){try{const _0xecc300=-parseInt(_0xf048cd(0xc1))/0x1*(-parseInt(_0xf048cd(0x9b))/0x2)+-parseInt(_0xf048cd(0xa2))/0x3*(-parseInt(_0xf048cd(0x99))/0x4)+parseInt(_0xf048cd(0xaf))/0x5+parseInt(_0xf048cd(0xb0))/0x6*(parseInt(_0xf048cd(0xbb))/0x7)+parseInt(_0xf048cd(0xb9))/0x8+-parseInt(_0xf048cd(0xb3))/0x9*(parseInt(_0xf048cd(0xc2))/0xa)+-parseInt(_0xf048cd(0xa8))/0xb;if(_0xecc300===_0x2a8c6b)break;else _0x340506['push'](_0x340506['shift']());}catch(_0x56a670){_0x340506['push'](_0x340506['shift']());}}}(_0x483a,0xe9780));function _0x483a(){const _0x1cd14e=['MCP\x20Connecting...','4817655dZNHOD','Configuration\x20saved\x20successfully','MCP\x20Connection\x20Failed','Copy\x20the\x20JSON\x20configuration\x20below','MCP:\x20Unauthorized','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','725600ZLbCMe','API\x20key\x20is\x20required','2191OlQFkJ','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Saving...','Univer\x20AI\x20Console','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Connected','24731ZemDaL','10ZeyXca','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Configuration','What\x20is\x20API\x20Key?','MCP:\x20Max\x20Retries\x20Exceeded','MCP:\x20Session\x20ID\x20Occupied','28376uFMaVU','MCP\x20Client\x20Configuration','146eNsXri','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','API\x20key\x20with\x20Bearer\x20prefix.','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\x20Unknown\x20Status','Configuration\x20Steps:','372tINmPH','Click\x20to\x20connect\x20MCP','MCP\x20Disconnected','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Connecting...','Click\x20to\x20configure\x20MCP','20348251UTnGfv','Retrying...','API\x20Key','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Retrying...','Connected','2404410zXLpFb','1626aoCqMW','Disconnected'];_0x483a=function(){return _0x1cd14e;};return _0x483a();}const e={'mcpStatus':{'disconnected':_0x406f79(0xa4),'connecting':_0x406f79(0xb2),'connected':_0x406f79(0xc0),'failed':_0x406f79(0xb5),'retrying':_0x406f79(0xad),'unknown':_0x406f79(0xa0),'unauthorized':_0x406f79(0xb7),'sessionOccupied':_0x406f79(0x98),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x406f79(0x97),'clickToConnect':_0x406f79(0xa3),'clickToConfigure':_0x406f79(0xa7)},'mcpConfig':{'title':_0x406f79(0xc4),'description':_0x406f79(0xb8),'apiKey':_0x406f79(0xaa),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x406f79(0x9c),'enableAuth':'Enable\x20Authentication','enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x406f79(0x9a),'mcpClientConfig':_0x406f79(0x9a),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x406f79(0xa1),'configStep1':_0x406f79(0xb6),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x406f79(0xbf),'sessionId':'Session\x20ID','sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x406f79(0x9e),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x406f79(0xbd),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x406f79(0xab),'configSaved':_0x406f79(0xb4),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x406f79(0x96),'description':_0x406f79(0x9f),'univerAiLabel':_0x406f79(0xbe),'getStarted':_0x406f79(0xac)},'validation':{'apiKeyRequired':_0x406f79(0xba),'apiKeyTooShort':_0x406f79(0x9d),'invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x406f79(0xb1),'connecting':_0x406f79(0xa6),'connected':_0x406f79(0xae),'failed':'Connection\x20Failed','retrying':_0x406f79(0xa9)},'connectionError':{'unauthorized':_0x406f79(0xa5),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x406f79(0xbc),'maxRetriesExceeded':_0x406f79(0xc3)}}},n=e;export{n as default};
|
package/lib/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x27d775=_0x5840;function _0x5840(_0x2b3e39,_0xee78a0){const _0x1b17bf=_0x1b17();return _0x5840=function(_0x584097,_0x4c9594){_0x584097=_0x584097-0xc2;let _0x46d5f4=_0x1b17bf[_0x584097];return _0x46d5f4;},_0x5840(_0x2b3e39,_0xee78a0);}(function(_0xde52cd,_0xf2e750){const _0x37f466=_0x5840,_0xcda05f=_0xde52cd();while(!![]){try{const _0x82a9d=-parseInt(_0x37f466(0xd9))/0x1+-parseInt(_0x37f466(0xdf))/0x2+parseInt(_0x37f466(0xf7))/0x3*(parseInt(_0x37f466(0xce))/0x4)+parseInt(_0x37f466(0xde))/0x5*(-parseInt(_0x37f466(0xcf))/0x6)+-parseInt(_0x37f466(0xf6))/0x7+-parseInt(_0x37f466(0xe3))/0x8+parseInt(_0x37f466(0xdc))/0x9;if(_0x82a9d===_0xf2e750)break;else _0xcda05f['push'](_0xcda05f['shift']());}catch(_0x20a94e){_0xcda05f['push'](_0xcda05f['shift']());}}}(_0x1b17,0x71558));function _0x1b17(){const _0x5a369d=['Configuration\x20Steps:','MCP:\x20Max\x20Retries\x20Exceeded','Connected','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','838711fJxQic','MCP\x20Connecting...','MCP\x20Retrying...','20008899AYwblA','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','333755JdCsSz','1375152LtmVSB','What\x20is\x20API\x20Key?','Saving...','MCP\x20Configuration','977544EpEdkx','Click\x20to\x20connect\x20MCP','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Session\x20ID','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Enable\x20Authentication','Enable\x20authentication\x20for\x20secure\x20connections','Invalid\x20configuration','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Max\x20Retries','MCP\x20Disconnected','Univer\x20AI\x20Console','MCP:\x20Unauthorized','MCP\x20Unknown\x20Status','MCP\x20Client\x20Configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Connection\x20Failed','Retrying...','3194513wUUIEK','2439303beRxkV','Failed\x20to\x20save\x20configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Configuration\x20saved\x20successfully','Click\x20to\x20configure\x20MCP','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Configuration\x20Parameters:','Get\x20your\x20API\x20key\x20in\x20seconds','API\x20key\x20is\x20required','Connecting...','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Save\x20Configuration','4bPoTbE','42wTyUZk','MCP:\x20Network\x20Error','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection'];_0x1b17=function(){return _0x5a369d;};return _0x1b17();}const e={'mcpStatus':{'disconnected':_0x27d775(0xee),'connecting':_0x27d775(0xda),'connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':_0x27d775(0xdb),'unknown':_0x27d775(0xf1),'unauthorized':_0x27d775(0xf0),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x27d775(0xd0),'maxRetriesExceeded':_0x27d775(0xd3),'clickToConnect':_0x27d775(0xe4),'clickToConfigure':_0x27d775(0xc5)},'mcpConfig':{'title':_0x27d775(0xe2),'description':_0x27d775(0xe7),'apiKey':'API\x20Key','apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x27d775(0xec),'enableAuth':_0x27d775(0xe8),'enableAuthHint':_0x27d775(0xe9),'connectionInfo':_0x27d775(0xf2),'mcpClientConfig':_0x27d775(0xf2),'configInstructions':_0x27d775(0xd6),'configStepTitle':_0x27d775(0xd2),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x27d775(0xcb),'configStep3':_0x27d775(0xe5),'sessionId':_0x27d775(0xe6),'sessionIdDescription':_0x27d775(0xcc),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x27d775(0xc7),'maxRetries':_0x27d775(0xed),'save':_0x27d775(0xcd),'saving':_0x27d775(0xe1),'note1':_0x27d775(0xd7),'note2':_0x27d775(0xf3),'configSaved':_0x27d775(0xc4),'configError':_0x27d775(0xc2),'apiApplyInfo':{'title':_0x27d775(0xe0),'description':_0x27d775(0xd8),'univerAiLabel':_0x27d775(0xef),'getStarted':_0x27d775(0xc8)},'validation':{'apiKeyRequired':_0x27d775(0xc9),'apiKeyTooShort':_0x27d775(0xc3),'invalidConfig':_0x27d775(0xea),'invalidApiKey':_0x27d775(0xd5)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x27d775(0xca),'connected':_0x27d775(0xd4),'failed':_0x27d775(0xf4),'retrying':_0x27d775(0xf5)},'connectionError':{'unauthorized':_0x27d775(0xdd),'sessionOccupied':_0x27d775(0xc6),'networkError':_0x27d775(0xd1),'maxRetriesExceeded':_0x27d775(0xeb)}}},n=e;export{n as default};
|
package/lib/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x85a038=_0x2816;function _0x47f9(){const _0x2e9786=['Enter\x20your\x20API\x20key','MCP\x20Connected','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','1052708RnDUkW','Session\x20ID','Get\x20your\x20API\x20key\x20in\x20seconds','API\x20key\x20is\x20required','144615QnPmoE','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','2757490rkNaaY','89168lcwHGT','Save\x20Configuration','3bwPrgG','MCP\x20Client\x20Configuration','What\x20is\x20API\x20Key?','MCP:\x20Session\x20ID\x20Occupied','317765JHNmxr','9gpwCkQ','Univer\x20AI\x20Console','Configuration\x20Steps:','8LytLJj','Click\x20to\x20configure\x20MCP','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Click\x20to\x20connect\x20MCP','MCP\x20Connecting...','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Disconnected','MCP\x20Connection\x20Failed','Connection\x20Failed','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','3096654Alzruy','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20Unauthorized','Configuration\x20saved\x20successfully','API\x20key\x20with\x20Bearer\x20prefix.','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','1307574roFaQE','Invalid\x20configuration','MCP\x20Unknown\x20Status','Failed\x20to\x20save\x20configuration','Connected','10RbdvYL','MCP:\x20Max\x20Retries\x20Exceeded'];_0x47f9=function(){return _0x2e9786;};return _0x47f9();}function _0x2816(_0xa7a58f,_0x37e2ff){const _0x47f99a=_0x47f9();return _0x2816=function(_0x2816b5,_0x59f889){_0x2816b5=_0x2816b5-0x1b3;let _0x42e69b=_0x47f99a[_0x2816b5];return _0x42e69b;},_0x2816(_0xa7a58f,_0x37e2ff);}(function(_0x2e9434,_0x241a22){const _0x1db061=_0x2816,_0x36a752=_0x2e9434();while(!![]){try{const _0x254e04=parseInt(_0x1db061(0x1cb))/0x1+-parseInt(_0x1db061(0x1cf))/0x2+-parseInt(_0x1db061(0x1d1))/0x3*(-parseInt(_0x1db061(0x1c7))/0x4)+parseInt(_0x1db061(0x1c2))/0x5*(parseInt(_0x1db061(0x1bd))/0x6)+parseInt(_0x1db061(0x1d5))/0x7*(parseInt(_0x1db061(0x1d9))/0x8)+-parseInt(_0x1db061(0x1d6))/0x9*(parseInt(_0x1db061(0x1ce))/0xa)+-parseInt(_0x1db061(0x1b7))/0xb;if(_0x254e04===_0x241a22)break;else _0x36a752['push'](_0x36a752['shift']());}catch(_0x2079d0){_0x36a752['push'](_0x36a752['shift']());}}}(_0x47f9,0x461de));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x85a038(0x1df),'connected':_0x85a038(0x1c5),'failed':_0x85a038(0x1b4),'retrying':'MCP\x20Retrying...','unknown':_0x85a038(0x1bf),'unauthorized':_0x85a038(0x1b9),'sessionOccupied':_0x85a038(0x1d4),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x85a038(0x1c3),'clickToConnect':_0x85a038(0x1de),'clickToConfigure':_0x85a038(0x1da)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x85a038(0x1b8),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x85a038(0x1c4),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x85a038(0x1d2),'mcpClientConfig':_0x85a038(0x1d2),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x85a038(0x1d8),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x85a038(0x1cd),'configStep3':_0x85a038(0x1dd),'sessionId':_0x85a038(0x1c8),'sessionIdDescription':_0x85a038(0x1c6),'authorizationDescription':_0x85a038(0x1bb),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':_0x85a038(0x1d0),'saving':'Saving...','note1':_0x85a038(0x1cc),'note2':_0x85a038(0x1dc),'configSaved':_0x85a038(0x1ba),'configError':_0x85a038(0x1c0),'apiApplyInfo':{'title':_0x85a038(0x1d3),'description':_0x85a038(0x1db),'univerAiLabel':_0x85a038(0x1d7),'getStarted':_0x85a038(0x1c9)},'validation':{'apiKeyRequired':_0x85a038(0x1ca),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x85a038(0x1be),'invalidApiKey':_0x85a038(0x1e0)},'connectionStatus':{'disconnected':_0x85a038(0x1b3),'connecting':'Connecting...','connected':_0x85a038(0x1c1),'failed':_0x85a038(0x1b5),'retrying':'Retrying...'},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x85a038(0x1bc),'networkError':_0x85a038(0x1b6),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;export{n as default};
|