@univerjs-pro/mcp-ui 0.10.7-nightly.202509130618 → 0.10.7-nightly.202509130703
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 _0x878abf=_0x2a3e;function _0x2a3e(_0x290ebe,_0x5dcd77){var _0x17e577=_0x17e5();return _0x2a3e=function(_0x2a3ed6,_0x56c0c6){_0x2a3ed6=_0x2a3ed6-0x16b;var _0x1fba53=_0x17e577[_0x2a3ed6];return _0x1fba53;},_0x2a3e(_0x290ebe,_0x5dcd77);}(function(_0x330f20,_0x4400af){var _0x9c4142=_0x2a3e,_0x3d8ac5=_0x330f20();while(!![]){try{var _0x1b926a=parseInt(_0x9c4142(0x2c9))/0x1*(-parseInt(_0x9c4142(0x23e))/0x2)+-parseInt(_0x9c4142(0x1dc))/0x3+parseInt(_0x9c4142(0x1cf))/0x4+-parseInt(_0x9c4142(0x19f))/0x5+-parseInt(_0x9c4142(0x259))/0x6+parseInt(_0x9c4142(0x245))/0x7*(-parseInt(_0x9c4142(0x1bb))/0x8)+parseInt(_0x9c4142(0x2bd))/0x9;if(_0x1b926a===_0x4400af)break;else _0x3d8ac5['push'](_0x3d8ac5['shift']());}catch(_0x5c6d70){_0x3d8ac5['push'](_0x3d8ac5['shift']());}}}(_0x17e5,0x8d3ac));var Ee=Object[_0x878abf(0x1ff)],we=(_0x3c48d7,_0x373a7d,_0x3aa229)=>_0x373a7d in _0x3c48d7?Ee(_0x3c48d7,_0x373a7d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3aa229}):_0x3c48d7[_0x373a7d]=_0x3aa229,x=(_0x236f99,_0x13f728,_0x81a4f2)=>we(_0x236f99,typeof _0x13f728!='symbol'?_0x13f728+'':_0x13f728,_0x81a4f2);import{LocaleService as _0x2cafca,Inject as _0x4b1aad,Injector as _0x1e0df8,IConfigService as _0x2f7b03,ILocalStorageService as _0x26dd62,ILogService as _0x43456b,Disposable as _0x48cdac,CommandType as _0x2a3463,ICommandService as _0x2eadf3,DependentOn as _0x38b54d,Plugin as _0x327c70,merge as _0x16c97e}from'@univerjs/core';import{jsxs as _0x217c68,jsx as _0x1c1f24}from'react/jsx-runtime';import{MCPConnectionStatus as _0x570910,MCPConnectionError as _0x1b66ad,MCPConnectionController as _0x31c2e0,MCP_PLUGIN_CONFIG_KEY as _0x155ae7,UniverMCPPlugin as _0x4814df}from'@univerjs-pro/mcp';import{Input as _0x3f8b70,Button as _0x55d059,MessageType as _0x59b0fd,Tooltip as _0x4b795e,clsx as _0xfa00fe}from'@univerjs/design';import{useDependency as _0x35481b,useObservable as _0xd038f,IUIPartsService as _0x4875db,IDialogService as _0x56eea7,IMessageService as _0x4e3373,ComponentManager as _0x45c9fe,connectInjector as _0x396a3d,BuiltInUIPart as _0x4b2d19,MenuItemType as _0x28d5f3,RibbonStartGroup as _0x448127,IMenuManagerService as _0x34d96d}from'@univerjs/ui';import{BehaviorSubject as _0x1c8fe0}from'rxjs';import{forwardRef as _0xbb4059,useRef as _0x1dbee9,createElement as _0x2cc0bb,useState as _0x30df44,useCallback as _0x15cf96}from'react';import{ISocketService as _0x579005,WebSocketService as _0x4077b7}from'@univerjs/network';var g=function(){var _0x1df917=_0x878abf;return g=Object['assign']||function(_0x1320fd){var _0x255901=_0x2a3e;for(var _0x559130,_0x3d2e0e=0x1,_0x516e1b=arguments[_0x255901(0x25a)];_0x3d2e0e<_0x516e1b;_0x3d2e0e++){_0x559130=arguments[_0x3d2e0e];for(var _0x12f7c7 in _0x559130)Object['prototype'][_0x255901(0x270)]['call'](_0x559130,_0x12f7c7)&&(_0x1320fd[_0x12f7c7]=_0x559130[_0x12f7c7]);}return _0x1320fd;},g[_0x1df917(0x292)](this,arguments);},We=function(_0x2ddc12,_0x47358c){var _0xa19511=_0x878abf,_0x2654bd={};for(var _0x28b9d7 in _0x2ddc12)Object[_0xa19511(0x2a8)][_0xa19511(0x270)][_0xa19511(0x2ce)](_0x2ddc12,_0x28b9d7)&&_0x47358c[_0xa19511(0x211)](_0x28b9d7)<0x0&&(_0x2654bd[_0x28b9d7]=_0x2ddc12[_0x28b9d7]);if(_0x2ddc12!=null&&typeof Object['getOwnPropertySymbols']==_0xa19511(0x20e)){for(var _0x19e2d8=0x0,_0x28b9d7=Object[_0xa19511(0x247)](_0x2ddc12);_0x19e2d8<_0x28b9d7['length'];_0x19e2d8++)_0x47358c[_0xa19511(0x211)](_0x28b9d7[_0x19e2d8])<0x0&&Object['prototype'][_0xa19511(0x2d4)][_0xa19511(0x2ce)](_0x2ddc12,_0x28b9d7[_0x19e2d8])&&(_0x2654bd[_0x28b9d7[_0x19e2d8]]=_0x2ddc12[_0x28b9d7[_0x19e2d8]]);}return _0x2654bd;},b=_0xbb4059(function(_0x4586a2,_0xd963ca){var _0x580472=_0x878abf,_0x2b4477=_0x4586a2['icon'],_0x109def=_0x4586a2['id'],_0x20f67a=_0x4586a2['className'],_0x4138f4=_0x4586a2[_0x580472(0x28e)],_0x1b868b=We(_0x4586a2,[_0x580472(0x224),'id',_0x580472(0x261),_0x580472(0x28e)]),_0x4ffbf9=_0x580472(0x1fc)[_0x580472(0x1d6)](_0x109def,'\x20')[_0x580472(0x1d6)](_0x20f67a||'')[_0x580472(0x1f4)](),_0x5e2335=_0x1dbee9('_'[_0x580472(0x1d6)](Xe()));return le(_0x2b4477,''[_0x580472(0x1d6)](_0x109def),{'defIds':_0x2b4477[_0x580472(0x2c4)],'idSuffix':_0x5e2335[_0x580472(0x185)]},g({'ref':_0xd963ca,'className':_0x4ffbf9},_0x1b868b),_0x4138f4);});function le(_0x2ada73,_0x46e72f,_0x259fb8,_0xe10afa,_0x53b394){var _0x2118ea=_0x878abf;return _0x2cc0bb(_0x2ada73[_0x2118ea(0x291)],g(g({'key':_0x46e72f},qe(_0x2ada73,_0x259fb8,_0x53b394)),_0xe10afa),(Ze(_0x2ada73,_0x259fb8)[_0x2118ea(0x295)]||[])['map'](function(_0x12b78c,_0xdb1a66){var _0x5f13b9=_0x2118ea;return le(_0x12b78c,''[_0x5f13b9(0x1d6)](_0x46e72f,'-')[_0x5f13b9(0x1d6)](_0x2ada73[_0x5f13b9(0x291)],'-')[_0x5f13b9(0x1d6)](_0xdb1a66),_0x259fb8,void 0x0,_0x53b394);}));}function qe(_0x2822e5,_0x47b5c0,_0x4e7911){var _0x2e8eab=_0x878abf,_0x27abd5=g({},_0x2822e5[_0x2e8eab(0x27f)]);_0x4e7911!=null&&_0x4e7911[_0x2e8eab(0x257)]&&_0x27abd5[_0x2e8eab(0x22f)]==='colorChannel1'&&(_0x27abd5[_0x2e8eab(0x22f)]=_0x4e7911[_0x2e8eab(0x257)]),_0x2822e5['tag']===_0x2e8eab(0x251)&&_0x27abd5['id']&&(_0x27abd5['id']=_0x27abd5['id']+_0x47b5c0[_0x2e8eab(0x1ea)]),Object[_0x2e8eab(0x27b)](_0x27abd5)['forEach'](function(_0x36c13c){var _0xc710a8=_0x2e8eab,_0x4a7177=_0x36c13c[0x0],_0x5afe10=_0x36c13c[0x1];_0x4a7177==='mask'&&typeof _0x5afe10=='string'&&(_0x27abd5[_0x4a7177]=_0x5afe10[_0xc710a8(0x2b3)](/url\(#(.*)\)/,'url(#$1'[_0xc710a8(0x1d6)](_0x47b5c0['idSuffix'],')')));});var _0x7e1afc=_0x47b5c0['defIds'];return!_0x7e1afc||_0x7e1afc[_0x2e8eab(0x25a)]===0x0||(_0x2822e5[_0x2e8eab(0x291)]===_0x2e8eab(0x252)&&_0x27abd5[_0x2e8eab(0x210)]&&(_0x27abd5[_0x2e8eab(0x210)]=_0x27abd5[_0x2e8eab(0x210)]+_0x47b5c0['idSuffix']),Object[_0x2e8eab(0x27b)](_0x27abd5)[_0x2e8eab(0x25e)](function(_0x43266b){var _0x3c6edb=_0x2e8eab,_0x2f59c2=_0x43266b[0x0],_0x83baa7=_0x43266b[0x1];typeof _0x83baa7==_0x3c6edb(0x2cd)&&(_0x27abd5[_0x2f59c2]=_0x83baa7[_0x3c6edb(0x2b3)](/url\(#(.*)\)/,_0x3c6edb(0x1bd)[_0x3c6edb(0x1d6)](_0x47b5c0[_0x3c6edb(0x1ea)],')')));})),_0x27abd5;}function Ze(_0x3da078,_0x349296){var _0xcc13af=_0x878abf,_0x28da1f,_0x22ee18=_0x349296['defIds'];return!_0x22ee18||_0x22ee18[_0xcc13af(0x25a)]===0x0?_0x3da078:_0x3da078['tag']===_0xcc13af(0x258)&&(!((_0x28da1f=_0x3da078[_0xcc13af(0x295)])===null||_0x28da1f===void 0x0)&&_0x28da1f[_0xcc13af(0x25a)])?g(g({},_0x3da078),{'children':_0x3da078[_0xcc13af(0x295)][_0xcc13af(0x24b)](function(_0x543383){var _0x3b5632=_0xcc13af;return typeof _0x543383[_0x3b5632(0x27f)]['id']==_0x3b5632(0x2cd)&&_0x22ee18&&_0x22ee18[_0x3b5632(0x1fa)](_0x543383['attrs']['id'])?g(g({},_0x543383),{'attrs':g(g({},_0x543383[_0x3b5632(0x27f)]),{'id':_0x543383[_0x3b5632(0x27f)]['id']+_0x349296[_0x3b5632(0x1ea)]})}):_0x543383;})}):_0x3da078;}function Xe(){var _0x4908e2=_0x878abf;return Math[_0x4908e2(0x26d)]()[_0x4908e2(0x22e)](0x24)['substring'](0x2,0x8);}b[_0x878abf(0x2a0)]='UniverIcon';var Je={'tag':_0x878abf(0x26b),'attrs':{'xmlns':_0x878abf(0x2c6),'fill':'none','viewBox':_0x878abf(0x22a),'width':'1em','height':_0x878abf(0x279)},'children':[{'tag':_0x878abf(0x170),'attrs':{'fill':_0x878abf(0x238),'d':_0x878abf(0x2bb),'fillRule':_0x878abf(0x278),'clipRule':_0x878abf(0x278)}}]},ue=_0xbb4059(function(_0x277214,_0x371dd8){return _0x2cc0bb(b,Object['assign']({},_0x277214,{'id':'check-mark-icon','ref':_0x371dd8,'icon':Je}));});ue['displayName']='CheckMarkIcon';var Qe={'tag':_0x878abf(0x26b),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x878abf(0x1a2),'viewBox':'0\x200\x2017\x2017','width':_0x878abf(0x279),'height':'1em'},'children':[{'tag':_0x878abf(0x170),'attrs':{'stroke':_0x878abf(0x238),'d':_0x878abf(0x21b),'strokeLinecap':'round','strokeLinejoin':_0x878abf(0x249),'strokeWidth':1.33}},{'tag':_0x878abf(0x170),'attrs':{'stroke':_0x878abf(0x238),'d':_0x878abf(0x2b2),'strokeLinecap':_0x878abf(0x249),'strokeLinejoin':_0x878abf(0x249),'strokeWidth':1.33}}]},ve=_0xbb4059(function(_0x3c57cf,_0xc00de8){var _0x3dc9a6=_0x878abf;return _0x2cc0bb(b,Object['assign']({},_0x3c57cf,{'id':_0x3dc9a6(0x24e),'ref':_0xc00de8,'icon':Qe}));});ve[_0x878abf(0x2a0)]=_0x878abf(0x16f);var en={'tag':_0x878abf(0x26b),'attrs':{'xmlns':_0x878abf(0x2c6),'fill':_0x878abf(0x1a2),'viewBox':_0x878abf(0x22a),'width':_0x878abf(0x279),'height':_0x878abf(0x279)},'children':[{'tag':_0x878abf(0x170),'attrs':{'fill':_0x878abf(0x238),'d':_0x878abf(0x24c)}},{'tag':'path','attrs':{'fill':_0x878abf(0x238),'d':'M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z'}},{'tag':_0x878abf(0x170),'attrs':{'fill':_0x878abf(0x238),'d':_0x878abf(0x296),'fillRule':_0x878abf(0x278),'clipRule':_0x878abf(0x278)}}]},de=_0xbb4059(function(_0xe72b23,_0x11cf1e){var _0x4435d9=_0x878abf;return _0x2cc0bb(b,Object['assign']({},_0xe72b23,{'id':_0x4435d9(0x237),'ref':_0x11cf1e,'icon':en}));});de[_0x878abf(0x2a0)]=_0x878abf(0x1b8);var nn={'tag':_0x878abf(0x26b),'attrs':{'xmlns':_0x878abf(0x2c6),'fill':_0x878abf(0x1a2),'viewBox':_0x878abf(0x22a),'width':_0x878abf(0x279),'height':_0x878abf(0x279)},'children':[{'tag':'g','attrs':{'clipPath':_0x878abf(0x19e)},'children':[{'tag':_0x878abf(0x170),'attrs':{'stroke':_0x878abf(0x238),'d':'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','strokeLinecap':_0x878abf(0x249),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x878abf(0x258),'attrs':{},'children':[{'tag':_0x878abf(0x179),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x878abf(0x170),'attrs':{'fill':'white','d':_0x878abf(0x195)}}]}]}],'defIds':[_0x878abf(0x2d0)]},ge=_0xbb4059(function(_0x17efca,_0x367b80){var _0xbffb0b=_0x878abf;return _0x2cc0bb(b,Object[_0xbffb0b(0x18f)]({},_0x17efca,{'id':_0xbffb0b(0x1ba),'ref':_0x367b80,'icon':nn}));});ge[_0x878abf(0x2a0)]=_0x878abf(0x2d3);var rn={'tag':_0x878abf(0x26b),'attrs':{'xmlns':_0x878abf(0x2c6),'fill':_0x878abf(0x1a2),'viewBox':_0x878abf(0x1d0),'width':_0x878abf(0x279),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x878abf(0x20d)},'children':[{'tag':'path','attrs':{'stroke':_0x878abf(0x238),'d':_0x878abf(0x214),'strokeLinecap':_0x878abf(0x249),'strokeLinejoin':_0x878abf(0x249),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x878abf(0x260)},'children':[{'tag':_0x878abf(0x170),'attrs':{'fill':'white','d':_0x878abf(0x195),'transform':_0x878abf(0x274)}}]}]}],'defIds':[_0x878abf(0x260)]},fe=_0xbb4059(function(_0x1f1acb,_0x19c02f){var _0x3d258c=_0x878abf;return _0x2cc0bb(b,Object[_0x3d258c(0x18f)]({},_0x1f1acb,{'id':_0x3d258c(0x244),'ref':_0x19c02f,'icon':rn}));});fe[_0x878abf(0x2a0)]=_0x878abf(0x231);function tn(_0x2faafc){var _0x5ecbf9=_0x878abf,_0x55642c,_0x1574b3;const {mcpCoreConfig:_0x143e40,onSave:_0x51f782,loading:_0x289c07=!0x1,config:_0x58c057,connectionStatus$:_0x19f78d,connectionError$:_0x1c2ae3,currentApiKey$:_0x3a57a7,currentSessionId$:_0x59cb13}=_0x2faafc,_0x2392e1=_0x35481b(_0x2cafca),_0x2a1b09=_0xd038f(_0x19f78d,_0x570910[_0x5ecbf9(0x23b)]),_0x23852e=_0xd038f(_0x1c2ae3,_0x1b66ad['NONE']),_0x3e4fbb=_0xd038f(_0x59cb13,''),_0x262bb1=_0xd038f(_0x3a57a7,''),[_0x3cf245,_0x1c5476]=_0x30df44(_0x262bb1||''),_0x228e27=!0x0,_0x408def=_0x58c057[_0x5ecbf9(0x208)]&&_0x143e40[_0x5ecbf9(0x174)]&&(_0x143e40['mcpServerUrl'][_0x5ecbf9(0x1fa)](_0x5ecbf9(0x22c))||_0x143e40[_0x5ecbf9(0x174)][_0x5ecbf9(0x1fa)]('univer.ai')),_0x3e7046=(_0x55642c=_0x143e40[_0x5ecbf9(0x174)])==null?void 0x0:_0x55642c[_0x5ecbf9(0x1fa)](_0x5ecbf9(0x22c)),_0x4d4c30=(_0x1574b3=_0x143e40[_0x5ecbf9(0x174)])==null?void 0x0:_0x1574b3[_0x5ecbf9(0x1fa)](_0x5ecbf9(0x29d)),_0x306a89=_0x3e7046?_0x5ecbf9(0x2ab):_0x5ecbf9(0x1e0),_0x148538=_0x58c057['showDeveloperTools']&&(_0x3e7046||_0x4d4c30),[_0x3acf1c,_0x52736e]=_0x30df44(!_0x3cf245['trim']()),_0x4d1f03=(_0x572d20,_0x1c9d5e)=>{var _0x2618ee=_0x5ecbf9;if(_0x1c9d5e===_0x1b66ad[_0x2618ee(0x255)])return _0x2618ee(0x1a0);switch(_0x572d20){case _0x570910['CONNECTED']:return _0x2618ee(0x177);case _0x570910[_0x2618ee(0x215)]:case _0x570910['RETRYING']:return _0x2618ee(0x21e);case _0x570910[_0x2618ee(0x1c7)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return _0x2618ee(0x1fe);}},_0x13e9c3=(_0x1076e7,_0xdf8bfe)=>{var _0xcd1467=_0x5ecbf9;if(_0xdf8bfe===_0x1b66ad[_0xcd1467(0x255)])return _0xcd1467(0x1e3);switch(_0x1076e7){case _0x570910[_0xcd1467(0x189)]:return _0xcd1467(0x27e);case _0x570910[_0xcd1467(0x215)]:case _0x570910[_0xcd1467(0x2bf)]:return _0xcd1467(0x1b7);case _0x570910['FAILED']:return'univer-bg-red-500';default:return'univer-bg-gray-500';}},_0x5032e1=_0xc3417c=>{var _0xa7f2a0=_0x5ecbf9;switch(_0xc3417c){case _0x570910[_0xa7f2a0(0x189)]:return _0x2392e1['t']('mcpConfig.connectionStatus.connected');case _0x570910[_0xa7f2a0(0x215)]:return _0x2392e1['t']('mcpConfig.connectionStatus.connecting');case _0x570910[_0xa7f2a0(0x1c7)]:return _0x2392e1['t'](_0xa7f2a0(0x192));case _0x570910['RETRYING']:return _0x2392e1['t'](_0xa7f2a0(0x284));default:return _0x2392e1['t'](_0xa7f2a0(0x1c1));}},_0x3507d8=_0x4386a1=>{var _0xbd45a8=_0x5ecbf9;switch(_0x4386a1){case _0x1b66ad['INVALID_API_KEY']:return _0x2392e1['t']('mcpConfig.connectionError.invalidApiKey');case _0x1b66ad[_0xbd45a8(0x234)]:return _0x2392e1['t'](_0xbd45a8(0x1d4));case _0x1b66ad[_0xbd45a8(0x265)]:return _0x2392e1['t'](_0xbd45a8(0x243));case _0x1b66ad[_0xbd45a8(0x26e)]:return _0x2392e1['t'](_0xbd45a8(0x229));default:return'';}},_0x3c721d=_0x15cf96(()=>{var _0x3030bf=_0x5ecbf9;const _0x30ef9c={..._0x143e40,'apiKey':_0x3cf245[_0x3030bf(0x1f4)](),'enableAuth':_0x228e27};_0x51f782(_0x30ef9c);},[_0x143e40,_0x3cf245,_0x228e27,_0x51f782]),_0x270dd4=_0x3cf245[_0x5ecbf9(0x1f4)]()['length']>0x0;return _0x217c68('div',{'className':_0x5ecbf9(0x2ca),'children':[_0x1c1f24(_0x5ecbf9(0x1f7),{'className':_0x5ecbf9(0x194),'children':_0x217c68(_0x5ecbf9(0x1f7),{'className':_0x5ecbf9(0x256),'children':[_0x1c1f24(_0x5ecbf9(0x1f7),{'className':_0x5ecbf9(0x2b4),'children':_0x1c1f24('span',{'className':_0x5ecbf9(0x1e2),'children':'⚙'})}),_0x1c1f24('div',{'children':_0x1c1f24('p',{'className':_0x5ecbf9(0x226),'children':_0x2392e1['t'](_0x5ecbf9(0x2a1))})})]})}),_0x217c68(_0x5ecbf9(0x1f7),{'className':_0x5ecbf9(0x22b),'children':[_0x1c1f24('div',{'className':_0x5ecbf9(0x246)+_0x4d1f03(_0x2a1b09,_0x23852e)+_0x5ecbf9(0x2b6),'children':_0x217c68(_0x5ecbf9(0x1f7),{'className':_0x5ecbf9(0x29c),'children':[_0x1c1f24('div',{'className':_0x5ecbf9(0x240)+_0x13e9c3(_0x2a1b09,_0x23852e)+_0x5ecbf9(0x1de)}),_0x1c1f24('span',{'className':_0x5ecbf9(0x1c8),'children':_0x5032e1(_0x2a1b09)})]})}),_0x23852e!==_0x1b66ad[_0x5ecbf9(0x2d2)]&&(_0x2a1b09===_0x570910[_0x5ecbf9(0x1c7)]||_0x23852e===_0x1b66ad['INVALID_API_KEY'])&&_0x1c1f24('div',{'className':_0x5ecbf9(0x1d1),'children':_0x217c68(_0x5ecbf9(0x1f7),{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[_0x1c1f24(_0x5ecbf9(0x248),{'className':_0x5ecbf9(0x225),'children':'⚠️'}),_0x1c1f24('p',{'className':_0x5ecbf9(0x1d7),'children':_0x3507d8(_0x23852e)})]})})]}),_0x1c1f24(_0x5ecbf9(0x1f7),{'className':_0x5ecbf9(0x2ba),'children':_0x217c68('div',{'className':_0x5ecbf9(0x24a),'children':[_0x217c68(_0x5ecbf9(0x1f7),{'className':'univer-space-y-2','children':[_0x217c68(_0x5ecbf9(0x1b4),{'className':_0x5ecbf9(0x1fb),'children':[_0x1c1f24(_0x5ecbf9(0x248),{'children':'🔑'}),'\x20',_0x2392e1['t'](_0x5ecbf9(0x219)),_0x1c1f24(_0x5ecbf9(0x248),{'className':_0x5ecbf9(0x175),'children':'*'}),_0x408def&&_0x1c1f24('a',{'href':_0x5ecbf9(0x217),'onClick':()=>_0x52736e(!0x0),'className':_0x5ecbf9(0x2c2),'title':_0x2392e1['t'](_0x5ecbf9(0x288)),'children':_0x1c1f24(de,{})})]}),_0x1c1f24(_0x3f8b70,{'type':_0x5ecbf9(0x254),'placeholder':_0x2392e1['t'](_0x5ecbf9(0x1cc)),'value':_0x3cf245,'onChange':_0x1c5476,'disabled':_0x289c07,'autoComplete':'off'}),_0x1c1f24('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x2392e1['t'](_0x5ecbf9(0x223))})]}),_0x408def&&_0x3acf1c&&_0x217c68(_0x5ecbf9(0x1f7),{'className':_0x5ecbf9(0x1aa),'children':[_0x1c1f24('a',{'href':_0x5ecbf9(0x217),'onClick':()=>_0x52736e(!0x1),'className':_0x5ecbf9(0x1ab),'title':_0x5ecbf9(0x20a),'children':_0x1c1f24(ve,{})}),_0x217c68('div',{'className':_0x5ecbf9(0x26a),'children':[_0x1c1f24(_0x5ecbf9(0x1f7),{'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':_0x1c1f24(_0x5ecbf9(0x248),{'className':_0x5ecbf9(0x200),'children':'🚀'})}),_0x217c68(_0x5ecbf9(0x1f7),{'className':_0x5ecbf9(0x228),'children':[_0x1c1f24('h4',{'className':_0x5ecbf9(0x218),'children':_0x2392e1['t'](_0x5ecbf9(0x288))}),_0x1c1f24('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x2392e1['t'](_0x5ecbf9(0x235))}),_0x1c1f24(_0x5ecbf9(0x1f7),{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x148538&&_0x217c68('a',{'href':_0x306a89,'target':_0x5ecbf9(0x18e),'rel':'noopener\x20noreferrer','className':_0x5ecbf9(0x1ec),'children':[_0x1c1f24(_0x5ecbf9(0x248),{'children':'🤖'}),_0x2392e1['t'](_0x5ecbf9(0x216)),_0x1c1f24(_0x5ecbf9(0x248),{'className':_0x5ecbf9(0x29e),'children':'↗'})]})}),_0x217c68(_0x5ecbf9(0x1f7),{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x2392e1['t'](_0x5ecbf9(0x1b0))]})]})]})]}),_0x58c057['showDeveloperTools']&&_0x217c68(_0x5ecbf9(0x1f7),{'className':_0x5ecbf9(0x21f),'children':[_0x217c68('h4',{'className':_0x5ecbf9(0x239),'children':[_0x1c1f24(_0x5ecbf9(0x248),{'children':'🔗'}),'\x20',_0x2392e1['t'](_0x5ecbf9(0x1ae))]}),_0x217c68(_0x5ecbf9(0x1f7),{'className':_0x5ecbf9(0x1eb),'children':[_0x217c68(_0x5ecbf9(0x1f7),{'className':'univer-space-y-3','children':[_0x1c1f24('p',{'className':_0x5ecbf9(0x1f8),'children':_0x2392e1['t'](_0x5ecbf9(0x263))}),_0x217c68(_0x5ecbf9(0x1f7),{'className':_0x5ecbf9(0x28f),'children':[_0x1c1f24(_0x5ecbf9(0x1f7),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x2392e1['t'](_0x5ecbf9(0x2aa))}),_0x217c68(_0x5ecbf9(0x1f7),{'className':_0x5ecbf9(0x1ac),'children':[_0x217c68(_0x5ecbf9(0x1f7),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x1c1f24('span',{'className':'univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'1'}),_0x2392e1['t']('mcpConfig.configStep1')]}),_0x217c68(_0x5ecbf9(0x1f7),{'className':_0x5ecbf9(0x29c),'children':[_0x1c1f24(_0x5ecbf9(0x248),{'className':_0x5ecbf9(0x2b8),'children':'2'}),_0x2392e1['t'](_0x5ecbf9(0x1ca))]}),_0x217c68(_0x5ecbf9(0x1f7),{'className':_0x5ecbf9(0x29c),'children':[_0x1c1f24(_0x5ecbf9(0x248),{'className':_0x5ecbf9(0x2b8),'children':'3'}),_0x2392e1['t']('mcpConfig.configStep3')]})]})]})]}),_0x217c68(_0x5ecbf9(0x1f7),{'className':'univer-space-y-2','children':[_0x1c1f24('div',{'className':_0x5ecbf9(0x20c),'children':_0x5ecbf9(0x1b3)}),_0x1c1f24(_0x5ecbf9(0x1f7),{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':_0x1c1f24(_0x5ecbf9(0x1c6),{'className':_0x5ecbf9(0x21a),'children':_0x5ecbf9(0x282)+_0x3e4fbb+'\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'+(_0x3cf245||_0x5ecbf9(0x285))+_0x5ecbf9(0x276)})})]}),_0x217c68(_0x5ecbf9(0x1f7),{'className':_0x5ecbf9(0x1e7),'children':[_0x1c1f24(_0x5ecbf9(0x1f7),{'className':_0x5ecbf9(0x20c),'children':_0x2392e1['t'](_0x5ecbf9(0x2a3))}),_0x217c68(_0x5ecbf9(0x1f7),{'className':_0x5ecbf9(0x28f),'children':[_0x217c68(_0x5ecbf9(0x1f7),{'className':_0x5ecbf9(0x186),'children':[_0x1c1f24(_0x5ecbf9(0x1f7),{'className':'univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x217c68(_0x5ecbf9(0x1f7),{'className':_0x5ecbf9(0x24f),'children':[_0x1c1f24(_0x5ecbf9(0x1f7),{'className':_0x5ecbf9(0x283),'children':_0x5ecbf9(0x18b)}),_0x1c1f24(_0x5ecbf9(0x1f7),{'className':_0x5ecbf9(0x2b9),'children':_0x2392e1['t'](_0x5ecbf9(0x2a2))})]})]}),_0x217c68(_0x5ecbf9(0x1f7),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x1c1f24(_0x5ecbf9(0x1f7),{'className':_0x5ecbf9(0x222)}),_0x217c68(_0x5ecbf9(0x1f7),{'className':_0x5ecbf9(0x24f),'children':[_0x1c1f24(_0x5ecbf9(0x1f7),{'className':_0x5ecbf9(0x283),'children':_0x5ecbf9(0x1d3)}),_0x1c1f24('div',{'className':_0x5ecbf9(0x2b9),'children':_0x2392e1['t'](_0x5ecbf9(0x2ae))})]})]})]})]})]})]}),_0x1c1f24(_0x55d059,{'onClick':_0x3c721d,'disabled':!_0x270dd4||_0x289c07,'className':_0x5ecbf9(0x1a4),'children':_0x289c07?_0x217c68(_0x5ecbf9(0x248),{'className':_0x5ecbf9(0x29c),'children':[_0x1c1f24(_0x5ecbf9(0x248),{'children':'⟲'}),_0x2392e1['t'](_0x5ecbf9(0x299))]}):_0x217c68(_0x5ecbf9(0x248),{'className':_0x5ecbf9(0x29c),'children':[_0x1c1f24(ue,{}),_0x2392e1['t']('mcpConfig.save')]})}),_0x1c1f24(_0x5ecbf9(0x1f7),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':_0x217c68('div',{'className':_0x5ecbf9(0x1b5),'children':[_0x1c1f24(_0x5ecbf9(0x248),{'className':_0x5ecbf9(0x1cb),'children':'💡'}),_0x217c68('div',{'className':_0x5ecbf9(0x267),'children':[_0x1c1f24('div',{'className':_0x5ecbf9(0x191),'children':_0x5ecbf9(0x183)}),_0x217c68(_0x5ecbf9(0x1f7),{'children':['•',_0x2392e1['t'](_0x5ecbf9(0x187))]}),_0x217c68(_0x5ecbf9(0x1f7),{'children':['•',_0x2392e1['t'](_0x5ecbf9(0x2a6))]})]})]})})]})})]});}const L=_0x878abf(0x2bc),ie={'showDeveloperTools':!0x1};var on=Object[_0x878abf(0x22d)],sn=(_0x4c81e5,_0x4072f1,_0x1410aa,_0x1fdd2d)=>{var _0x3ade9c=_0x878abf;for(var _0x3e07a3=_0x1fdd2d>0x1?void 0x0:_0x1fdd2d?on(_0x4072f1,_0x1410aa):_0x4072f1,_0xcb352c=_0x4c81e5[_0x3ade9c(0x25a)]-0x1,_0x3c9f0d;_0xcb352c>=0x0;_0xcb352c--)(_0x3c9f0d=_0x4c81e5[_0xcb352c])&&(_0x3e07a3=_0x3c9f0d(_0x3e07a3)||_0x3e07a3);return _0x3e07a3;},f=(_0x5d4039,_0x490641)=>(_0x45cb95,_0x4df4f5)=>_0x490641(_0x45cb95,_0x4df4f5,_0x5d4039);const T=_0x878abf(0x1d5),R=_0x878abf(0x28b);let I=class extends _0x48cdac{constructor(_0x3dc8fb,_0x784aa0,_0x5b2cfe,_0x3894e0,_0x150724,_0x26c3f5,_0xeb6161,_0x4286e8,_0x46a48d,_0x178e55){var _0x5f0508=_0x878abf;super(),x(this,_0x5f0508(0x173),new _0x1c8fe0(!0x1)),x(this,'_mcpCoreConfig$',new _0x1c8fe0({})),x(this,_0x5f0508(0x253),new _0x1c8fe0({})),x(this,_0x5f0508(0x17f),new _0x1c8fe0('')),x(this,_0x5f0508(0x26f),async _0x513cb3=>{var _0x5742a9=_0x5f0508,_0x21cf18,_0x349358;this['_loading$'][_0x5742a9(0x1be)](!0x0);try{const _0x496b9d=await this[_0x5742a9(0x232)](_0x513cb3);if(!_0x496b9d[_0x5742a9(0x266)]){this[_0x5742a9(0x280)][_0x5742a9(0x2ac)]({'type':_0x59b0fd['Error'],'content':_0x496b9d[_0x5742a9(0x181)]||this[_0x5742a9(0x1d2)]['t'](_0x5742a9(0x287))});return;}_0x513cb3[_0x5742a9(0x25b)]?await this[_0x5742a9(0x269)][_0x5742a9(0x18a)](T,_0x513cb3['apiKey']['trim']()):await this[_0x5742a9(0x269)][_0x5742a9(0x1c4)](T),this[_0x5742a9(0x17f)]['next'](((_0x21cf18=_0x513cb3[_0x5742a9(0x25b)])==null?void 0x0:_0x21cf18['trim']())||''),this[_0x5742a9(0x230)][_0x5742a9(0x193)]({'Authorization':'Bearer\x20'+((_0x349358=_0x513cb3['apiKey'])==null?void 0x0:_0x349358[_0x5742a9(0x1f4)]())}),this['_messageService'][_0x5742a9(0x2ac)]({'type':_0x59b0fd[_0x5742a9(0x271)],'content':this[_0x5742a9(0x1d2)]['t']('mcpConfig.configSaved')}),setTimeout(()=>{var _0x20a05c=_0x5742a9;this[_0x20a05c(0x1fd)][_0x20a05c(0x1f1)](R);},0x320);}catch(_0x27362d){this[_0x5742a9(0x1ef)][_0x5742a9(0x286)](_0x5742a9(0x28a),_0x27362d),this['_messageService'][_0x5742a9(0x2ac)]({'type':_0x59b0fd[_0x5742a9(0x262)],'content':this[_0x5742a9(0x1d2)]['t']('mcpConfig.configError')});}finally{this[_0x5742a9(0x173)]['next'](!0x1);}}),(this[_0x5f0508(0x1ce)]=_0x3dc8fb,this[_0x5f0508(0x16e)]=_0x784aa0,this[_0x5f0508(0x29b)]=_0x5b2cfe,this[_0x5f0508(0x269)]=_0x3894e0,this['_dialogService']=_0x150724,this[_0x5f0508(0x280)]=_0x26c3f5,this[_0x5f0508(0x290)]=_0xeb6161,this['_localeService']=_0x4286e8,this[_0x5f0508(0x1ef)]=_0x46a48d,this[_0x5f0508(0x230)]=_0x178e55,this[_0x5f0508(0x19a)](),this[_0x5f0508(0x26c)](),this[_0x5f0508(0x16b)]());}[_0x878abf(0x2c5)](){var _0x1988d4=_0x878abf;this[_0x1988d4(0x1fd)][_0x1988d4(0x1f6)]({'id':R,'title':{'title':this[_0x1988d4(0x1d2)]['t'](_0x1988d4(0x17d))},'children':{'label':_0x1988d4(0x2b1)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0x49316f=_0x1988d4;this[_0x49316f(0x1fd)][_0x49316f(0x1f1)](R);}});}['getCurrentConfig'](){var _0x2b02d3=_0x878abf;return this[_0x2b02d3(0x264)][_0x2b02d3(0x1d9)];}[_0x878abf(0x16b)](){var _0x29e511=_0x878abf;this[_0x29e511(0x297)](this['_componentManager'][_0x29e511(0x213)](_0x29e511(0x2b1),this['_createConfigPanelComponent']()));}['_createConfigPanelComponent'](){return _0x396a3d(()=>{var _0x27e06f=_0x2a3e,_0x49924e,_0x1cb984,_0x1c3464;return _0x1c1f24(tn,{'config':this[_0x27e06f(0x253)][_0x27e06f(0x1d9)],'mcpCoreConfig':this[_0x27e06f(0x264)][_0x27e06f(0x1d9)],'currentApiKey$':this[_0x27e06f(0x17f)],'onSave':this[_0x27e06f(0x26f)],'loading':this[_0x27e06f(0x173)][_0x27e06f(0x1d9)],'connectionStatus$':(_0x49924e=this[_0x27e06f(0x230)])==null?void 0x0:_0x49924e[_0x27e06f(0x241)],'connectionError$':(_0x1cb984=this[_0x27e06f(0x230)])==null?void 0x0:_0x1cb984[_0x27e06f(0x24d)],'currentSessionId$':(_0x1c3464=this[_0x27e06f(0x230)])==null?void 0x0:_0x1c3464[_0x27e06f(0x205)]});},this['_injector']);}[_0x878abf(0x19a)](){var _0x9b5c6a=_0x878abf;this[_0x9b5c6a(0x297)](this['_configService'][_0x9b5c6a(0x176)](_0x155ae7)[_0x9b5c6a(0x242)](_0x2a330f=>{var _0x309a03=_0x9b5c6a;this[_0x309a03(0x264)][_0x309a03(0x1be)](_0x2a330f||{});}));const _0x381b06=this[_0x9b5c6a(0x29b)][_0x9b5c6a(0x29f)](_0x155ae7);this[_0x9b5c6a(0x264)]['next'](_0x381b06||{}),this[_0x9b5c6a(0x297)](this[_0x9b5c6a(0x29b)]['subscribeConfigValue$'](L)[_0x9b5c6a(0x242)](_0x858f70=>{var _0x255f6e=_0x9b5c6a;this['_config$'][_0x255f6e(0x1be)](_0x858f70||{});}));const _0x29bd7f=this[_0x9b5c6a(0x29b)][_0x9b5c6a(0x29f)](L);this['_config$'][_0x9b5c6a(0x1be)](_0x29bd7f||{});}async['_loadStoredApiKey'](){var _0x1b4ab0=_0x878abf;const _0x400076=await this['_localStorageService']['getItem'](T);_0x400076&&(this[_0x1b4ab0(0x230)][_0x1b4ab0(0x193)]({'Authorization':'Bearer\x20'+_0x400076}),this[_0x1b4ab0(0x17f)][_0x1b4ab0(0x1be)](_0x400076));}async[_0x878abf(0x232)](_0x8559a1){var _0x11f7ac=_0x878abf;if(!_0x8559a1['apiKey']||_0x8559a1[_0x11f7ac(0x25b)][_0x11f7ac(0x1f4)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this[_0x11f7ac(0x1d2)]['t'](_0x11f7ac(0x27a))};if(_0x8559a1[_0x11f7ac(0x25b)]['trim']()[_0x11f7ac(0x25a)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x11f7ac(0x1d2)]['t'](_0x11f7ac(0x1f9))};try{const _0x14035c=await this[_0x11f7ac(0x1ce)][_0x11f7ac(0x1cd)](_0x31c2e0)[_0x11f7ac(0x16d)](_0x8559a1[_0x11f7ac(0x25b)][_0x11f7ac(0x1f4)]());return _0x14035c[_0x11f7ac(0x266)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x14035c['error']||this['_localeService']['t'](_0x11f7ac(0x1e8))};}catch(_0x2fb086){return console[_0x11f7ac(0x19c)](_0x11f7ac(0x272),_0x2fb086),{'isValid':!0x0};}}};I=sn([f(0x0,_0x4b1aad(_0x1e0df8)),f(0x1,_0x4875db),f(0x2,_0x2f7b03),f(0x3,_0x26dd62),f(0x4,_0x56eea7),f(0x5,_0x4e3373),f(0x6,_0x4b1aad(_0x45c9fe)),f(0x7,_0x4b1aad(_0x2cafca)),f(0x8,_0x43456b),f(0x9,_0x4b1aad(_0x31c2e0))],I);const B={'id':'mcp-ui.command.openConfigPanel','type':_0x2a3463[_0x878abf(0x17e)],'handler':async(_0x2c9880,_0x57e616)=>(_0x2c9880[_0x878abf(0x1cd)](I)[_0x878abf(0x2c5)](),!0x0)};function pe(_0x4b0258,_0x22cffc){var _0x244e9d=_0x878abf;switch(_0x4b0258){case _0x570910[_0x244e9d(0x23b)]:return'mcpStatus.disconnected';case _0x570910['CONNECTING']:return'mcpStatus.connecting';case _0x570910[_0x244e9d(0x189)]:return _0x244e9d(0x23d);case _0x570910[_0x244e9d(0x1c7)]:switch(_0x22cffc){case _0x1b66ad[_0x244e9d(0x255)]:return'mcpStatus.invalidApiKey';case _0x1b66ad[_0x244e9d(0x234)]:return'mcpStatus.sessionOccupied';case _0x1b66ad[_0x244e9d(0x265)]:return'mcpStatus.networkError';case _0x1b66ad[_0x244e9d(0x26e)]:return _0x244e9d(0x20b);default:return _0x244e9d(0x19d);}case _0x570910[_0x244e9d(0x2bf)]:return'mcpStatus.retrying';default:return'mcpStatus.unknown';}}function cn(_0x4821f8,_0x208157,_0x24de94){var _0x2b6b48=_0x878abf;const _0x443758=pe(_0x4821f8,_0x208157),_0x17a01a=_0x24de94['t'](_0x443758);return _0x4821f8===_0x570910[_0x2b6b48(0x23b)]&&_0x208157===_0x1b66ad['INVALID_API_KEY']?_0x17a01a+_0x2b6b48(0x199)+_0x24de94['t'](_0x2b6b48(0x2cf)):_0x4821f8===_0x570910[_0x2b6b48(0x189)]?''+_0x17a01a:_0x4821f8===_0x570910[_0x2b6b48(0x23b)]||_0x4821f8===_0x570910[_0x2b6b48(0x1c7)]?_0x17a01a+_0x2b6b48(0x199)+_0x24de94['t']('mcpStatus.clickToConnect'):_0x17a01a;}function an(_0x4943d2){var _0x5168f3=_0x878abf;switch(_0x4943d2){case _0x570910[_0x5168f3(0x189)]:return _0x5168f3(0x1f3);case _0x570910[_0x5168f3(0x215)]:case _0x570910[_0x5168f3(0x2bf)]:return _0x5168f3(0x273);case _0x570910[_0x5168f3(0x1c7)]:case _0x570910[_0x5168f3(0x23b)]:return _0x5168f3(0x175);default:return'univer-text-gray-500';}}function ln(_0x2e63af){var _0x4ee408=_0x878abf;const {status$:_0x1cd591,error$:_0x10cb1b,onConfigure:_0x36768e}=_0x2e63af,_0x5d0f6b=_0xd038f(_0x1cd591,_0x570910[_0x4ee408(0x23b)]),_0x11805a=_0xd038f(_0x10cb1b,_0x1b66ad['NONE']),_0x467841=_0x35481b(_0x2cafca),_0x5cc843=_0x5d0f6b===_0x570910[_0x4ee408(0x189)],_0x481641=_0x5d0f6b===_0x570910[_0x4ee408(0x215)]||_0x5d0f6b===_0x570910[_0x4ee408(0x2bf)],_0x23aa99=_0x467841['t'](pe(_0x5d0f6b,_0x11805a)),_0x24d5a0=cn(_0x5d0f6b,_0x11805a,_0x467841),_0x56b1af=an(_0x5d0f6b),_0x2a90fa=_0x5cc843?_0x1c1f24(fe,{}):_0x1c1f24(ge,{}),_0x20b5ca=_0x15cf96(()=>{_0x36768e&&_0x36768e();},[_0x5cc843,_0x481641,_0x36768e]);function _0xfa6a08(){var _0x48f424=_0x4ee408;return _0x217c68(_0x48f424(0x1f7),{'className':_0xfa00fe(_0x48f424(0x1af),_0x36768e&&_0x48f424(0x29a)),'onClick':_0x36768e?_0x20b5ca:void 0x0,'children':[_0x1c1f24(_0x48f424(0x1f7),{'className':_0xfa00fe(_0x48f424(0x206),_0x56b1af),'children':_0x2a90fa}),_0x1c1f24(_0x48f424(0x1f7),{'className':_0x48f424(0x190),'children':_0x23aa99})]});}return _0x1c1f24(_0x4b795e,{'title':_0x24d5a0,'placement':_0x4ee408(0x2c1),'children':_0xfa6a08()});}var un=Object['getOwnPropertyDescriptor'],vn=(_0x5cf4a0,_0x4cc8f2,_0x42af5a,_0x39a77a)=>{for(var _0x168258=_0x39a77a>0x1?void 0x0:_0x39a77a?un(_0x4cc8f2,_0x42af5a):_0x4cc8f2,_0x5e9f01=_0x5cf4a0['length']-0x1,_0x4e90ac;_0x5e9f01>=0x0;_0x5e9f01--)(_0x4e90ac=_0x5cf4a0[_0x5e9f01])&&(_0x168258=_0x4e90ac(_0x168258)||_0x168258);return _0x168258;},j=(_0x5d2aa2,_0x3ef17c)=>(_0x360923,_0x5e58d5)=>_0x3ef17c(_0x360923,_0x5e58d5,_0x5d2aa2);let A=class extends _0x48cdac{constructor(_0x3aea58,_0x35c20b,_0x1b0184){var _0x2ca179=_0x878abf;super(),this['_injector']=_0x3aea58,this[_0x2ca179(0x25c)]=_0x35c20b,this[_0x2ca179(0x16e)]=_0x1b0184,this[_0x2ca179(0x25c)]['enableAutoConnect']=!0x1,this[_0x2ca179(0x182)]();}[_0x878abf(0x182)](){var _0x38d2f9=_0x878abf;this['disposeWithMe'](this[_0x38d2f9(0x16e)][_0x38d2f9(0x1a7)](_0x4b2d19[_0x38d2f9(0x2a7)],()=>_0x396a3d(dn({'status$':this[_0x38d2f9(0x25c)]['connectionStatus$'],'error$':this[_0x38d2f9(0x25c)][_0x38d2f9(0x24d)],'onConfigure':()=>this[_0x38d2f9(0x2b0)]()}),this[_0x38d2f9(0x1ce)])));}[_0x878abf(0x2b0)](){var _0x1d2cd3=_0x878abf;this[_0x1d2cd3(0x1ce)][_0x1d2cd3(0x1cd)](I)[_0x1d2cd3(0x2c5)]();}};A=vn([j(0x0,_0x4b1aad(_0x1e0df8)),j(0x1,_0x4b1aad(_0x31c2e0)),j(0x2,_0x4875db)],A);function _0x17e5(){var _0xb8ecee=['Click\x20to\x20connect\x20MCP','forEach','pluginName','on-line-icon_clip0_910_349','className','Error','mcpConfig.configInstructions','_mcpCoreConfig$','NETWORK_ERROR','isValid','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','配置参数:','_localStorageService','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','svg','_loadStoredApiKey','random','MAX_RETRIES_EXCEEDED','_handleConfigSave','hasOwnProperty','Success','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','univer-text-yellow-500','translate(.97)','MCP\x20Connected','\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x0a}','MCP:\x20网络错误','evenodd','1em','mcpConfig.validation.apiKeyRequired','entries','Invalid\x20configuration','Univer\x20AI\x20Console','univer-bg-green-500','attrs','_messageService','MCP:\x20会话被占用','{\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=','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','mcpConfig.connectionStatus.retrying','<API_KEY>','error','mcpConfig.validation.invalidConfig','mcpConfig.apiApplyInfo.title','MCP:\x20Network\x20Error','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','mcp-config-dialog','带有\x20Bearer\x20前缀的\x20API\x20密钥。','配置无效','extend','univer-space-y-2','_componentManager','tag','apply','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Retrying...','children','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','disposeWithMe','Failed\x20to\x20save\x20configuration','mcpConfig.saving','hover:univer-opacity-80','_configService','univer-flex\x20univer-items-center\x20univer-gap-2','univer.ai','univer-text-gray-400','getConfig','displayName','mcpConfig.description','mcpConfig.sessionIdDescription','mcpConfig.configParameters','会话ID','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','mcpConfig.note2','HEADER_MENU','prototype','需要\x20API\x20密钥才能连接','mcpConfig.configStepTitle','https://console.univer.plus','show','Copy\x20the\x20JSON\x20configuration\x20below','mcpConfig.authorizationDescription','点击连接\x20MCP','_handleConfigure','MCPConfigPanel','M5.21243\x2012.287L11.8791\x205.62036','replace','univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','保存中...','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','连接中...','univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','univer-text-xs\x20univer-text-gray-500','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','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','mcp-ui.config','33024393NUTAmE','API\x20Key','RETRYING','MCP:\x20超出最大重试次数','bottom','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','Configuration\x20saved\x20successfully','defIds','showConfigPanel','http://www.w3.org/2000/svg','_initializeCommands','启用身份验证以获得安全连接','252857JWmWUp','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','Disconnected','Univer\x20AI\x20控制台','string','call','mcpStatus.clickToConfigure','off-line-icon_clip0_910_343','Enable\x20authentication\x20for\x20secure\x20connections','NONE','OffLineIcon','propertyIsEnumerable','_registerComponent','MCP\x20连接失败','validateApiKey','_uiPartsService','CloseSmallSingle','path','registerCommand','将配置添加到您的\x20MCP\x20客户端设置文件中','_loading$','mcpServerUrl','univer-text-red-500','subscribeConfigValue$','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','MCP\x20客户端配置','clipPath','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Client\x20Configuration','会话当前被占用,请稍后再试','mcpConfig.title','COMMAND','_apiKey$','MCP\x20已断开','errorMessage','_initStatusComponent','Configuration\x20Notes:','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','current','univer-flex\x20univer-items-start\x20univer-gap-3','mcpConfig.note1','配置更改将立即生效','CONNECTED','setItem','univer_session_id:','重连中...','已连接','_blank','assign','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','univer-font-medium','mcpConfig.connectionStatus.failed','__setCustomHeaders','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','M0\x200H16V16H0z','您的\x20API\x20密钥将在此浏览器中本地存储','几秒钟内获取您的\x20API\x20密钥','网络连接错误,请检查您的网络连接','\x20-\x20','_initConfigSync','onStarting','warn','mcpStatus.failed','url(#off-line-icon_clip0_910_343)','35830ZfwYrc','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','setConfig','none','Enter\x20your\x20API\x20key','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','启用身份验证','Retrying...','registerComponent','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','MCP\x20Connecting...','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-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-h-6\x20univer-w-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','MCP\x20状态未知','mcpConfig.connectionInfo','univer-flex\x20univer-cursor-pointer\x20univer-items-center','mcpConfig.apiApplyInfo.getStarted','_menuManagerService','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Configuration','label','univer-flex\x20univer-gap-3','MCP\x20已连接','univer-bg-blue-500','HelpSingle','MCP\x20重连中...','off-line-icon','7169312odMQmb','最大重试次数','url(#$1','next','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','API\x20密钥无效,请检查密钥是否正确','mcpConfig.connectionStatus.disconnected','Connected','Configuration\x20Steps:','removeItem','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','pre','FAILED','univer-text-sm\x20univer-font-medium','点击配置\x20MCP','mcpConfig.configStep2','univer-flex-shrink-0\x20univer-text-blue-500','mcpConfig.apiKeyPlaceholder','get','_injector','1061272xDwOWk','0\x200\x2017\x2016','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','_localeService','Authorization:','mcpConfig.connectionError.sessionOccupied','mcp.apiKey','concat','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','API\x20密钥无效,请检查您的密钥后重试','value','API\x20密钥长度至少需要\x2010\x20位','保存配置','2872119obRdJz','MCP\x20Unknown\x20Status','\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','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','https://console.univer.ai','_config','univer-text-white','univer-bg-red-500','MCP\x20配置','配置\x20MCP\x20使用\x20AI\x20操作电子表格','重启您的\x20MCP\x20客户端以使配置生效','univer-space-y-3','mcpConfig.validation.invalidApiKey','Click\x20to\x20configure\x20MCP','idSuffix','univer-space-y-4','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','配置保存成功','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','_logService','API\x20key\x20is\x20required','close','复制以下\x20JSON\x20配置','univer-text-green-500','trim','Enable\x20Authentication','open','div','univer-text-xs\x20univer-text-gray-600','mcpConfig.validation.apiKeyTooShort','includes','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','univerjs-icon\x20univerjs-icon-','_dialogService','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','defineProperty','univer-text-blue-600','API\x20密钥不能为空','MCP\x20Disconnected','What\x20is\x20API\x20Key?','_initializeMenus','sessionId$','univer-mr-2\x20univer-flex\x20univer-text-xl','MCP:\x20API\x20Key\x20Missing','showDeveloperTools','请输入您的\x20API\x20密钥','Close','mcpStatus.maxRetriesExceeded','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','url(#on-line-icon_clip0_910_349)','function','_commandService','xlink:href','indexOf','配置保存失败','register','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','CONNECTING','mcpConfig.apiApplyInfo.univerAiLabel','javascript:void(0)','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','mcpConfig.apiKey','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','M5.21243\x205.62036L11.8791\x2012.287','MCP:\x20Max\x20Retries\x20Exceeded','mergeMenu','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','将以下配置添加到您的\x20MCP\x20客户端设置中:','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','mcpConfig.apiKeyHint','icon','univer-flex-shrink-0\x20univer-text-red-500','univer-text-sm\x20univer-text-gray-500','Max\x20Retries','univer-flex-1','mcpConfig.connectionError.maxRetriesExceeded','0\x200\x2016\x2016','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','univer.plus','getOwnPropertyDescriptor','toString','fill','_mcpConnectionController','OnLineIcon','_validateConfig','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','SESSION_ID_OCCUPIED','mcpConfig.apiApplyInfo.description','Saving...','help-single','currentColor','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','MCP\x20连接中...','DISCONNECTED','Connecting...','mcpStatus.connected','8xWieEL','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','\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','connectionStatus$','subscribe','mcpConfig.connectionError.networkError','on-line-icon','7bTvigu','\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','getOwnPropertySymbols','span','round','univer-space-y-5','map','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','connectionError$','close-small-single','univer-min-w-0\x20univer-flex-1','push','mask','use','_config$','text','INVALID_API_KEY','univer-flex\x20univer-items-center\x20univer-gap-3','colorChannel1','defs','2904528gZFcmM','length','apiKey','_connectionController'];_0x17e5=function(){return _0xb8ecee;};return _0x17e5();}function dn(_0x3ce9e9){const {status$:_0x2d46e0,error$:_0x60f645,onConfigure:_0xad6e82}=_0x3ce9e9;return function(){return _0x1c1f24(ln,{'status$':_0x2d46e0,'error$':_0x60f645,'onConfigure':_0xad6e82});};}function gn(_0x24cb2d){var _0x2ba42c=_0x878abf;return{'id':B['id'],'type':_0x28d5f3['BUTTON'],'icon':'MenuIcon','title':_0x2ba42c(0x17d),'tooltip':'mcpConfig.title'};}const fn={[_0x448127['OTHERS']]:{[B['id']]:{'order':0xa,'menuItemFactory':gn}}};var pn=Object[_0x878abf(0x22d)],mn=(_0x1fe2bb,_0x116f4a,_0x3885ab,_0x360812)=>{var _0x35aa5d=_0x878abf;for(var _0xb5f6ad=_0x360812>0x1?void 0x0:_0x360812?pn(_0x116f4a,_0x3885ab):_0x116f4a,_0x259496=_0x1fe2bb[_0x35aa5d(0x25a)]-0x1,_0x334345;_0x259496>=0x0;_0x259496--)(_0x334345=_0x1fe2bb[_0x259496])&&(_0xb5f6ad=_0x334345(_0xb5f6ad)||_0xb5f6ad);return _0xb5f6ad;},re=(_0x2f3571,_0x5a187c)=>(_0x2a482e,_0x3788d0)=>_0x5a187c(_0x2a482e,_0x3788d0,_0x2f3571);let M=class extends _0x48cdac{constructor(_0x2587b1,_0x1c9c96){var _0x305cc7=_0x878abf;super(),this[_0x305cc7(0x20f)]=_0x2587b1,this[_0x305cc7(0x1b1)]=_0x1c9c96,this[_0x305cc7(0x2c7)](),this[_0x305cc7(0x204)]();}[_0x878abf(0x2c7)](){var _0x3d003d=_0x878abf;[B][_0x3d003d(0x25e)](_0x33e194=>{var _0x4bf45d=_0x3d003d;this[_0x4bf45d(0x297)](this[_0x4bf45d(0x20f)][_0x4bf45d(0x171)](_0x33e194));});}[_0x878abf(0x204)](){var _0x111031=_0x878abf;this[_0x111031(0x1b1)][_0x111031(0x21d)](fn);}};M=mn([re(0x0,_0x2eadf3),re(0x1,_0x34d96d)],M);const On={'mcpStatus':{'disconnected':_0x878abf(0x202),'connecting':_0x878abf(0x1a9),'connected':_0x878abf(0x275),'failed':'MCP\x20Connection\x20Failed','retrying':_0x878abf(0x294),'unknown':_0x878abf(0x1dd),'missingApiKey':_0x878abf(0x207),'invalidApiKey':'MCP:\x20Invalid\x20API\x20Key','sessionOccupied':'MCP:\x20Session\x20Occupied','networkError':_0x878abf(0x289),'maxRetriesExceeded':_0x878abf(0x21c),'clickToConnect':_0x878abf(0x25d),'clickToConfigure':_0x878abf(0x1e9)},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x878abf(0x2be),'apiKeyPlaceholder':_0x878abf(0x1a3),'apiKeyHint':_0x878abf(0x23f),'enableAuth':_0x878abf(0x1f5),'enableAuthHint':_0x878abf(0x2d1),'connectionInfo':_0x878abf(0x17b),'mcpClientConfig':_0x878abf(0x17b),'configInstructions':_0x878abf(0x293),'configStepTitle':_0x878abf(0x1c3),'configStep1':_0x878abf(0x2ad),'configStep2':_0x878abf(0x220),'configStep3':_0x878abf(0x1c5),'sessionId':'Session\x20ID','sessionIdDescription':_0x878abf(0x233),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':_0x878abf(0x227),'save':'Save\x20Configuration','saving':_0x878abf(0x236),'note1':_0x878abf(0x1df),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x878abf(0x2c3),'configError':_0x878abf(0x298),'apiApplyInfo':{'title':_0x878abf(0x203),'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':_0x878abf(0x27d),'getStarted':_0x878abf(0x17a)},'validation':{'apiKeyRequired':_0x878abf(0x1f0),'apiKeyTooShort':_0x878abf(0x1b2),'invalidConfig':_0x878abf(0x27c),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x878abf(0x2cb),'connecting':_0x878abf(0x23c),'connected':_0x878abf(0x1c2),'failed':'Connection\x20Failed','retrying':_0x878abf(0x1a6)},'connectionError':{'missingApiKey':'API\x20key\x20is\x20required\x20to\x20connect','invalidApiKey':'Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','sessionOccupied':_0x878abf(0x1bf),'networkError':_0x878abf(0x1ee),'maxRetriesExceeded':_0x878abf(0x184)}}},kn={'mcpStatus':{'disconnected':_0x878abf(0x180),'connecting':_0x878abf(0x23a),'connected':_0x878abf(0x1b6),'failed':_0x878abf(0x16c),'retrying':_0x878abf(0x1b9),'unknown':_0x878abf(0x1ad),'missingApiKey':'MCP:\x20缺少\x20API\x20密钥','invalidApiKey':'MCP:\x20无效的\x20API\x20密钥','sessionOccupied':_0x878abf(0x281),'networkError':_0x878abf(0x277),'maxRetriesExceeded':_0x878abf(0x2c0),'clickToConnect':_0x878abf(0x2af),'clickToConfigure':_0x878abf(0x1c9)},'mcpConfig':{'title':_0x878abf(0x1e4),'description':_0x878abf(0x1e5),'apiKey':'API\x20密钥','apiKeyPlaceholder':_0x878abf(0x209),'apiKeyHint':_0x878abf(0x196),'enableAuth':_0x878abf(0x1a5),'enableAuthHint':_0x878abf(0x2c8),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x878abf(0x178),'configInstructions':_0x878abf(0x221),'configStepTitle':'配置步骤:','configStep1':_0x878abf(0x1f2),'configStep2':_0x878abf(0x172),'configStep3':_0x878abf(0x1e6),'sessionId':_0x878abf(0x2a4),'sessionIdDescription':_0x878abf(0x2a5),'authorizationDescription':_0x878abf(0x28c),'configParameters':_0x878abf(0x268),'maxRetries':_0x878abf(0x1bc),'save':_0x878abf(0x1db),'saving':_0x878abf(0x2b5),'note1':_0x878abf(0x188),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x878abf(0x1ed),'configError':_0x878abf(0x212),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x878abf(0x1a8),'univerAiLabel':_0x878abf(0x2cc),'getStarted':_0x878abf(0x197)},'validation':{'apiKeyRequired':_0x878abf(0x201),'apiKeyTooShort':_0x878abf(0x1da),'invalidConfig':_0x878abf(0x28d),'invalidApiKey':_0x878abf(0x1c0)},'connectionStatus':{'disconnected':'未连接','connecting':_0x878abf(0x2b7),'connected':_0x878abf(0x18d),'failed':'连接失败','retrying':_0x878abf(0x18c)},'connectionError':{'missingApiKey':_0x878abf(0x2a9),'invalidApiKey':_0x878abf(0x1d8),'sessionOccupied':_0x878abf(0x17c),'networkError':_0x878abf(0x198),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var hn=Object['defineProperty'],Cn=Object['getOwnPropertyDescriptor'],yn=(_0x4492ef,_0x1c8577,_0x25754b)=>_0x1c8577 in _0x4492ef?hn(_0x4492ef,_0x1c8577,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x25754b}):_0x4492ef[_0x1c8577]=_0x25754b,_n=(_0x5e20bf,_0x2c63b0,_0x54ad43,_0x490e72)=>{for(var _0x2f1914=_0x490e72>0x1?void 0x0:_0x490e72?Cn(_0x2c63b0,_0x54ad43):_0x2c63b0,_0x20b03d=_0x5e20bf['length']-0x1,_0x298719;_0x20b03d>=0x0;_0x20b03d--)(_0x298719=_0x5e20bf[_0x20b03d])&&(_0x2f1914=_0x298719(_0x2f1914)||_0x2f1914);return _0x2f1914;},E=(_0x396045,_0x56f789)=>(_0x352955,_0x2c0527)=>_0x56f789(_0x352955,_0x2c0527,_0x396045),xn=(_0x417f6e,_0x4e46f9,_0x37e154)=>yn(_0x417f6e,_0x4e46f9+'',_0x37e154);let U=class extends _0x327c70{constructor(_0x22d514=ie,_0x67aeaf,_0x3ce164,_0xeb8462,_0x51164e,_0x41ccb9){var _0x545b50=_0x878abf;super(),this['_config']=_0x22d514,this[_0x545b50(0x1ce)]=_0x67aeaf,this['_configService']=_0x3ce164,this[_0x545b50(0x16e)]=_0xeb8462,this[_0x545b50(0x269)]=_0x51164e,this[_0x545b50(0x1d2)]=_0x41ccb9;const {..._0x3420ff}=_0x16c97e({},ie,this[_0x545b50(0x1e1)]);this[_0x545b50(0x29b)][_0x545b50(0x1a1)](L,_0x3420ff);}async[_0x878abf(0x19b)](){var _0x4d3f52=_0x878abf;const _0x1786e2=[[A],[I],[M]];this[_0x4d3f52(0x1ce)]['has'](_0x579005)||_0x1786e2[_0x4d3f52(0x250)]([_0x579005,{'useClass':_0x4077b7}]),_0x1786e2[_0x4d3f52(0x25e)](_0x2e5354=>this[_0x4d3f52(0x1ce)]['add'](_0x2e5354)),this[_0x4d3f52(0x1ce)][_0x4d3f52(0x1cd)](A),this[_0x4d3f52(0x1ce)][_0x4d3f52(0x1cd)](I),this[_0x4d3f52(0x1ce)][_0x4d3f52(0x1cd)](M);}};xn(U,_0x878abf(0x25f),'MCP_UI_PLUGIN'),U=_n([_0x38b54d(_0x4814df),E(0x1,_0x4b1aad(_0x1e0df8)),E(0x2,_0x2f7b03),E(0x3,_0x4875db),E(0x4,_0x26dd62),E(0x5,_0x4b1aad(_0x2cafca))],U);export{tn as MCPConfigPanel,I as MCPConfigUIController,A as MCPConnectionUIController,ln as MCPStatusDisplay,M as MCPUIMenuController,B as OpenMCPConfigPanelCommand,U as UniverMCPUIPlugin,On as enUS,kn as zhCN};
|
|
1
|
+
var _0x219a03=_0x3cee;(function(_0x3b00cb,_0x483d01){var _0x4b6d48=_0x3cee,_0x2137f1=_0x3b00cb();while(!![]){try{var _0x4bf52a=parseInt(_0x4b6d48(0x192))/0x1*(parseInt(_0x4b6d48(0x13f))/0x2)+-parseInt(_0x4b6d48(0x1c3))/0x3*(-parseInt(_0x4b6d48(0x21c))/0x4)+-parseInt(_0x4b6d48(0x13e))/0x5*(parseInt(_0x4b6d48(0x153))/0x6)+parseInt(_0x4b6d48(0x205))/0x7*(parseInt(_0x4b6d48(0x198))/0x8)+-parseInt(_0x4b6d48(0x19e))/0x9*(-parseInt(_0x4b6d48(0x184))/0xa)+parseInt(_0x4b6d48(0x17f))/0xb+-parseInt(_0x4b6d48(0x1e2))/0xc*(parseInt(_0x4b6d48(0x1ca))/0xd);if(_0x4bf52a===_0x483d01)break;else _0x2137f1['push'](_0x2137f1['shift']());}catch(_0x3f287e){_0x2137f1['push'](_0x2137f1['shift']());}}}(_0x56a1,0x70b00));var Ee=Object[_0x219a03(0x131)],we=(_0xb66f6a,_0x103e87,_0x2c5921)=>_0x103e87 in _0xb66f6a?Ee(_0xb66f6a,_0x103e87,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2c5921}):_0xb66f6a[_0x103e87]=_0x2c5921,x=(_0xca48e3,_0x27252f,_0x1a2895)=>we(_0xca48e3,typeof _0x27252f!=_0x219a03(0x265)?_0x27252f+'':_0x27252f,_0x1a2895);import{LocaleService as _0xc33df3,Inject as _0x42ebfc,Injector as _0x5ede34,IConfigService as _0x29ba2c,ILocalStorageService as _0x316f47,ILogService as _0x4d889b,Disposable as _0x1f0c2f,CommandType as _0x4168e3,ICommandService as _0x5da6fe,DependentOn as _0xdb2fad,Plugin as _0x856cee,merge as _0x152593}from'@univerjs/core';import{jsxs as _0xb22d85,jsx as _0x288285}from'react/jsx-runtime';function _0x3cee(_0x4fe46b,_0x48d92f){var _0x56a18a=_0x56a1();return _0x3cee=function(_0x3cee31,_0x4ee039){_0x3cee31=_0x3cee31-0x10f;var _0x5c8af8=_0x56a18a[_0x3cee31];return _0x5c8af8;},_0x3cee(_0x4fe46b,_0x48d92f);}import{MCPConnectionStatus as _0x38d350,MCPConnectionError as _0x109ccb,MCPConnectionController as _0x595033,MCP_PLUGIN_CONFIG_KEY as _0x41f305,UniverMCPPlugin as _0x3412ea}from'@univerjs-pro/mcp';import{Input as _0x35eb2b,Button as _0xf8f352,MessageType as _0x4b0dc2,Tooltip as _0x6b526f,clsx as _0xdad1b}from'@univerjs/design';import{useDependency as _0x43a656,useObservable as _0x58c5e8,IUIPartsService as _0x5a2bd3,IDialogService as _0x42dd90,IMessageService as _0x350eed,ComponentManager as _0xd402ee,connectInjector as _0x2400a6,BuiltInUIPart as _0x5be334,MenuItemType as _0x14d87f,RibbonStartGroup as _0x2d020d,IMenuManagerService as _0x3064d0}from'@univerjs/ui';import{BehaviorSubject as _0x249cb6}from'rxjs';import{forwardRef as _0x11578c,useRef as _0x3b634f,createElement as _0x1d8db8,useState as _0x2f1866,useCallback as _0x2db746}from'react';import{ISocketService as _0x140f0d,WebSocketService as _0x324d21}from'@univerjs/network';var g=function(){var _0x45ecbb=_0x219a03;return g=Object[_0x45ecbb(0x1f3)]||function(_0x526bae){var _0x45bfef=_0x45ecbb;for(var _0x3fc882,_0x32197b=0x1,_0x109742=arguments[_0x45bfef(0x23e)];_0x32197b<_0x109742;_0x32197b++){_0x3fc882=arguments[_0x32197b];for(var _0x1626da in _0x3fc882)Object[_0x45bfef(0x1d0)][_0x45bfef(0x222)]['call'](_0x3fc882,_0x1626da)&&(_0x526bae[_0x1626da]=_0x3fc882[_0x1626da]);}return _0x526bae;},g[_0x45ecbb(0x22e)](this,arguments);},We=function(_0x5d7b69,_0x44b425){var _0xb85d29=_0x219a03,_0x5bf8c1={};for(var _0x4645bc in _0x5d7b69)Object[_0xb85d29(0x1d0)][_0xb85d29(0x222)][_0xb85d29(0x22f)](_0x5d7b69,_0x4645bc)&&_0x44b425[_0xb85d29(0x1f1)](_0x4645bc)<0x0&&(_0x5bf8c1[_0x4645bc]=_0x5d7b69[_0x4645bc]);if(_0x5d7b69!=null&&typeof Object[_0xb85d29(0x144)]==_0xb85d29(0x1b9)){for(var _0x2127fb=0x0,_0x4645bc=Object['getOwnPropertySymbols'](_0x5d7b69);_0x2127fb<_0x4645bc['length'];_0x2127fb++)_0x44b425[_0xb85d29(0x1f1)](_0x4645bc[_0x2127fb])<0x0&&Object['prototype']['propertyIsEnumerable'][_0xb85d29(0x22f)](_0x5d7b69,_0x4645bc[_0x2127fb])&&(_0x5bf8c1[_0x4645bc[_0x2127fb]]=_0x5d7b69[_0x4645bc[_0x2127fb]]);}return _0x5bf8c1;},b=_0x11578c(function(_0x1511d3,_0x2817fa){var _0x2b2374=_0x219a03,_0x3615c0=_0x1511d3[_0x2b2374(0x230)],_0xafcc09=_0x1511d3['id'],_0x868e9b=_0x1511d3[_0x2b2374(0x138)],_0x5b1b5e=_0x1511d3['extend'],_0x37f581=We(_0x1511d3,[_0x2b2374(0x230),'id',_0x2b2374(0x138),'extend']),_0x1db721=_0x2b2374(0x24c)[_0x2b2374(0x1d9)](_0xafcc09,'\x20')[_0x2b2374(0x1d9)](_0x868e9b||'')[_0x2b2374(0x248)](),_0x57e64d=_0x3b634f('_'[_0x2b2374(0x1d9)](Xe()));return le(_0x3615c0,''['concat'](_0xafcc09),{'defIds':_0x3615c0['defIds'],'idSuffix':_0x57e64d['current']},g({'ref':_0x2817fa,'className':_0x1db721},_0x37f581),_0x5b1b5e);});function le(_0x481a5a,_0x150a6b,_0x307d42,_0x1cc29e,_0x18d67a){var _0x3825c7=_0x219a03;return _0x1d8db8(_0x481a5a[_0x3825c7(0x146)],g(g({'key':_0x150a6b},qe(_0x481a5a,_0x307d42,_0x18d67a)),_0x1cc29e),(Ze(_0x481a5a,_0x307d42)['children']||[])[_0x3825c7(0x134)](function(_0x561fdb,_0x32059a){var _0x40fa49=_0x3825c7;return le(_0x561fdb,''['concat'](_0x150a6b,'-')[_0x40fa49(0x1d9)](_0x481a5a[_0x40fa49(0x146)],'-')[_0x40fa49(0x1d9)](_0x32059a),_0x307d42,void 0x0,_0x18d67a);}));}function qe(_0x1ce141,_0x3f4732,_0x2f3372){var _0x4391fb=_0x219a03,_0x5afae7=g({},_0x1ce141[_0x4391fb(0x1ad)]);_0x2f3372!=null&&_0x2f3372[_0x4391fb(0x20b)]&&_0x5afae7['fill']===_0x4391fb(0x20b)&&(_0x5afae7[_0x4391fb(0x164)]=_0x2f3372[_0x4391fb(0x20b)]),_0x1ce141[_0x4391fb(0x146)]==='mask'&&_0x5afae7['id']&&(_0x5afae7['id']=_0x5afae7['id']+_0x3f4732[_0x4391fb(0x243)]),Object[_0x4391fb(0x239)](_0x5afae7)[_0x4391fb(0x257)](function(_0x201dfb){var _0x25ee45=_0x4391fb,_0x51c742=_0x201dfb[0x0],_0xaa8ed6=_0x201dfb[0x1];_0x51c742===_0x25ee45(0x19c)&&typeof _0xaa8ed6==_0x25ee45(0x1d1)&&(_0x5afae7[_0x51c742]=_0xaa8ed6[_0x25ee45(0x1e5)](/url\(#(.*)\)/,_0x25ee45(0x1d4)['concat'](_0x3f4732[_0x25ee45(0x243)],')')));});var _0x4b70c3=_0x3f4732['defIds'];return!_0x4b70c3||_0x4b70c3[_0x4391fb(0x23e)]===0x0||(_0x1ce141[_0x4391fb(0x146)]==='use'&&_0x5afae7[_0x4391fb(0x22a)]&&(_0x5afae7[_0x4391fb(0x22a)]=_0x5afae7[_0x4391fb(0x22a)]+_0x3f4732[_0x4391fb(0x243)]),Object[_0x4391fb(0x239)](_0x5afae7)[_0x4391fb(0x257)](function(_0x15ba98){var _0x5e81ab=_0x4391fb,_0x5ce99d=_0x15ba98[0x0],_0xa62253=_0x15ba98[0x1];typeof _0xa62253==_0x5e81ab(0x1d1)&&(_0x5afae7[_0x5ce99d]=_0xa62253[_0x5e81ab(0x1e5)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x3f4732[_0x5e81ab(0x243)],')')));})),_0x5afae7;}function Ze(_0x348f86,_0x2c77f0){var _0x3817d0=_0x219a03,_0x5dde1a,_0x35bfd2=_0x2c77f0['defIds'];return!_0x35bfd2||_0x35bfd2[_0x3817d0(0x23e)]===0x0?_0x348f86:_0x348f86[_0x3817d0(0x146)]===_0x3817d0(0x17a)&&(!((_0x5dde1a=_0x348f86[_0x3817d0(0x1bf)])===null||_0x5dde1a===void 0x0)&&_0x5dde1a[_0x3817d0(0x23e)])?g(g({},_0x348f86),{'children':_0x348f86['children'][_0x3817d0(0x134)](function(_0x1a186f){var _0x2a36a5=_0x3817d0;return typeof _0x1a186f[_0x2a36a5(0x1ad)]['id']==_0x2a36a5(0x1d1)&&_0x35bfd2&&_0x35bfd2[_0x2a36a5(0x1ab)](_0x1a186f[_0x2a36a5(0x1ad)]['id'])?g(g({},_0x1a186f),{'attrs':g(g({},_0x1a186f[_0x2a36a5(0x1ad)]),{'id':_0x1a186f[_0x2a36a5(0x1ad)]['id']+_0x2c77f0['idSuffix']})}):_0x1a186f;})}):_0x348f86;}function Xe(){var _0x13739a=_0x219a03;return Math['random']()[_0x13739a(0x1d3)](0x24)[_0x13739a(0x25a)](0x2,0x8);}b['displayName']='UniverIcon';var Je={'tag':'svg','attrs':{'xmlns':_0x219a03(0x229),'fill':_0x219a03(0x1a8),'viewBox':_0x219a03(0x252),'width':'1em','height':_0x219a03(0x23f)},'children':[{'tag':_0x219a03(0x13c),'attrs':{'fill':'currentColor','d':_0x219a03(0x152),'fillRule':_0x219a03(0x1da),'clipRule':_0x219a03(0x1da)}}]},ue=_0x11578c(function(_0x5c9695,_0x13bee0){return _0x1d8db8(b,Object['assign']({},_0x5c9695,{'id':'check-mark-icon','ref':_0x13bee0,'icon':Je}));});ue[_0x219a03(0x195)]=_0x219a03(0x1cf);var Qe={'tag':_0x219a03(0x188),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x219a03(0x1a8),'viewBox':_0x219a03(0x244),'width':'1em','height':'1em'},'children':[{'tag':_0x219a03(0x13c),'attrs':{'stroke':_0x219a03(0x213),'d':_0x219a03(0x206),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.33}},{'tag':_0x219a03(0x13c),'attrs':{'stroke':_0x219a03(0x213),'d':'M5.21243\x2012.287L11.8791\x205.62036','strokeLinecap':_0x219a03(0x167),'strokeLinejoin':_0x219a03(0x167),'strokeWidth':1.33}}]},ve=_0x11578c(function(_0x1876e2,_0x42619c){var _0x4fa98e=_0x219a03;return _0x1d8db8(b,Object[_0x4fa98e(0x1f3)]({},_0x1876e2,{'id':_0x4fa98e(0x1dd),'ref':_0x42619c,'icon':Qe}));});ve[_0x219a03(0x195)]=_0x219a03(0x10f);var en={'tag':'svg','attrs':{'xmlns':_0x219a03(0x229),'fill':_0x219a03(0x1a8),'viewBox':_0x219a03(0x252),'width':_0x219a03(0x23f),'height':_0x219a03(0x23f)},'children':[{'tag':_0x219a03(0x13c),'attrs':{'fill':_0x219a03(0x213),'d':_0x219a03(0x16b)}},{'tag':_0x219a03(0x13c),'attrs':{'fill':_0x219a03(0x213),'d':'M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z'}},{'tag':'path','attrs':{'fill':_0x219a03(0x213),'d':'M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','fillRule':_0x219a03(0x1da),'clipRule':_0x219a03(0x1da)}}]},de=_0x11578c(function(_0x17fa05,_0x275cf2){var _0x155cbc=_0x219a03;return _0x1d8db8(b,Object[_0x155cbc(0x1f3)]({},_0x17fa05,{'id':_0x155cbc(0x18a),'ref':_0x275cf2,'icon':en}));});de[_0x219a03(0x195)]=_0x219a03(0x132);var nn={'tag':_0x219a03(0x188),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x219a03(0x252),'width':_0x219a03(0x23f),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x219a03(0x18e)},'children':[{'tag':_0x219a03(0x13c),'attrs':{'stroke':_0x219a03(0x213),'d':'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','strokeLinecap':_0x219a03(0x167),'strokeLinejoin':_0x219a03(0x167),'strokeWidth':1.2}}]},{'tag':_0x219a03(0x17a),'attrs':{},'children':[{'tag':_0x219a03(0x145),'attrs':{'id':_0x219a03(0x1d6)},'children':[{'tag':'path','attrs':{'fill':_0x219a03(0x14b),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x219a03(0x1d6)]},ge=_0x11578c(function(_0x44e5a0,_0x901688){return _0x1d8db8(b,Object['assign']({},_0x44e5a0,{'id':'off-line-icon','ref':_0x901688,'icon':nn}));});ge['displayName']=_0x219a03(0x1e4);var rn={'tag':_0x219a03(0x188),'attrs':{'xmlns':_0x219a03(0x229),'fill':_0x219a03(0x1a8),'viewBox':_0x219a03(0x20d),'width':'1em','height':_0x219a03(0x23f)},'children':[{'tag':'g','attrs':{'clipPath':_0x219a03(0x253)},'children':[{'tag':_0x219a03(0x13c),'attrs':{'stroke':'currentColor','d':_0x219a03(0x25e),'strokeLinecap':_0x219a03(0x167),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x219a03(0x17a),'attrs':{},'children':[{'tag':_0x219a03(0x145),'attrs':{'id':_0x219a03(0x118)},'children':[{'tag':_0x219a03(0x13c),'attrs':{'fill':_0x219a03(0x14b),'d':_0x219a03(0x20a),'transform':'translate(.97)'}}]}]}],'defIds':[_0x219a03(0x118)]},fe=_0x11578c(function(_0x3d872d,_0x234080){var _0x52cd9c=_0x219a03;return _0x1d8db8(b,Object[_0x52cd9c(0x1f3)]({},_0x3d872d,{'id':_0x52cd9c(0x23d),'ref':_0x234080,'icon':rn}));});fe[_0x219a03(0x195)]=_0x219a03(0x235);function _0x56a1(){var _0x5dbb67=['CloseSmallSingle','mcpStatus.clickToConnect','validateApiKey','带有\x20Bearer\x20前缀的\x20API\x20密钥。','Max\x20Retries','getItem','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','_connectionController','mcpConfig.connectionError.sessionOccupied','on-line-icon_clip0_910_349','_componentManager','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','mcpConfig.validation.apiKeyTooShort','univer-flex-1','errorMessage','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','mcpConfig.sessionIdDescription','univer-space-y-5','span','mcpConfig.validation.invalidApiKey','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','setItem','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-gap-3','value','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','mcpConfig.note1','CONNECTED','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','mcp-config-dialog','connectionError$','univer-flex\x20univer-items-start\x20univer-gap-3','Configuration\x20Parameters:','defineProperty','HelpSingle','_localStorageService','map','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','mcpStatus.invalidApiKey','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','className','mcpStatus.clickToConfigure','\x20-\x20','配置保存失败','path','_initConfigSync','1215845TkcURy','55400oCzwoB','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','MCP_UI_PLUGIN','onStarting','Invalid\x20configuration','getOwnPropertySymbols','clipPath','tag','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','API\x20key\x20is\x20required','div','复制以下\x20JSON\x20配置','white','subscribe','showDeveloperTools','mcpConfig.apiApplyInfo.getStarted','_validateConfig','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\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','6pMlMgL','配置无效','_menuManagerService','univer-text-xs\x20univer-text-gray-500','配置\x20MCP\x20使用\x20AI\x20操作电子表格','univer-space-y-2','univer-flex\x20univer-flex-wrap\x20univer-gap-2','MCP\x20Client\x20Configuration','MCP\x20Connecting...','univer-bg-green-500','mcpServerUrl','mcpConfig.connectionError.invalidApiKey','MCP\x20客户端配置','univer-min-w-0\x20univer-flex-1','配置参数:','Enter\x20your\x20API\x20key','univer-flex\x20univer-cursor-pointer\x20univer-items-center','fill','MCP:\x20超出最大重试次数','Authorization:','round','_injector','OTHERS','_apiKey$','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','DISCONNECTED','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','mcpConfig.apiKeyHint','Configuration\x20Notes:','connectionStatus$','mcpStatus.connected','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','_initializeMenus','_uiPartsService','_config$','MCP:\x20Max\x20Retries\x20Exceeded','_dialogService','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','defs','univer-text-green-500','mcpConfig.connectionStatus.connecting','apiKey','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','1744413fTHiXB','Enable\x20authentication\x20for\x20secure\x20connections','BUTTON','mcpConfig.description','MCP:\x20会话被占用','10SqShRM','Save\x20Configuration','mcpConfig.saving','会话当前被占用,请稍后再试','svg','isValid','help-single','mcpStatus.sessionOccupied','Copy\x20the\x20JSON\x20configuration\x20below','getConfig','url(#off-line-icon_clip0_910_343)','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','univer-flex\x20univer-items-center\x20univer-gap-2','univer-text-gray-400','10gQDtAQ','请输入您的\x20API\x20密钥','mcpConfig.connectionStatus.connected','displayName','保存中...','bottom','8AUqjvr','showConfigPanel','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.ai','mask','getOwnPropertyDescriptor','5611176bCudIU','show','mcpConfig.configStep2','univer-bg-gray-500','mcpConfig.note2','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','点击配置\x20MCP','MCP\x20状态未知','MCP\x20Configuration','MCP\x20连接中...','none','_registerComponent','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','includes','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','attrs','Close','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','off','最大重试次数','Success','MCP\x20Retrying...','mcp-ui.command.openConfigPanel','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','点击连接\x20MCP','重启您的\x20MCP\x20客户端以使配置生效','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','function','Error','Connected','mcpConfig.connectionStatus.retrying','_createConfigPanelComponent','MCP\x20Unknown\x20Status','children','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','Univer\x20AI\x20控制台','Connection\x20Failed','105897WKWuEX','INVALID_API_KEY','CONNECTING','重连中...','univer_session_id:','univer-space-y-3','mcpConfig.title','403ZsCtMw','register','mcpConfig.apiKey','API\x20key\x20is\x20required\x20to\x20connect','Bearer\x20','CheckMarkIcon','prototype','string','保存配置','toString','url(#$1','Saving...','off-line-icon_clip0_910_343','mcpConfig.validation.invalidConfig','mcpStatus.unknown','concat','evenodd','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','配置保存成功','close-small-single','_commandService','text','univer-space-y-4','\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','639264izOZIi','mcpConfig.save','OffLineIcon','replace','Disconnected','has','MCP\x20已断开','univer-text-gray-500','SESSION_ID_OCCUPIED','mcpConfig.connectionError.maxRetriesExceeded','error','\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','label','close','registerComponent','indexOf','univer-text-sm\x20univer-text-gray-500','assign','getCurrentConfig','超出最大重试次数,请稍后再试','univer-text-red-500','_initStatusComponent','_loading$','FAILED','setConfig','univer-flex\x20univer-items-center\x20univer-gap-3','univer.plus','univer-text-white','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','MCP\x20重连中...','MCP:\x20无效的\x20API\x20密钥','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','_configService','mcpConfig.configSaved','4385087tIPHSm','M5.21243\x205.62036L11.8791\x2012.287','\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','您的\x20API\x20密钥将在此浏览器中本地存储','push','M0\x200H16V16H0z','colorChannel1','univer-flex-shrink-0\x20univer-text-blue-500','0\x200\x2017\x2016','removeItem','univer-text-xs\x20univer-text-gray-600','未连接','COMMAND','univer-font-medium','currentColor','Univer\x20AI\x20Console','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','_blank','mcpStatus.connecting','MCP:\x20缺少\x20API\x20密钥','univer-bg-blue-500','mcp.apiKey','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','76VGMaba','next','API\x20Key','需要\x20API\x20密钥才能连接','MCP:\x20Session\x20Occupied','API\x20密钥长度至少需要\x2010\x20位','hasOwnProperty','add','mcpConfig.connectionError.networkError','mcpConfig.configStep1','MCPConfigPanel','启用身份验证以获得安全连接','_handleConfigure','http://www.w3.org/2000/svg','xlink:href','Get\x20your\x20API\x20key\x20in\x20seconds','Click\x20to\x20configure\x20MCP','disposeWithMe','apply','call','icon','_logService','_messageService','您的\x20API\x20密钥安全存储在本地存储中','MAX_RETRIES_EXCEEDED','OnLineIcon','_initializeCommands','已连接','get','entries','javascript:void(0)','MCP:\x20Network\x20Error','_mcpCoreConfig$','on-line-icon','length','1em','mcpStatus.maxRetriesExceeded','NETWORK_ERROR','MCP:\x20API\x20Key\x20Missing','idSuffix','0\x200\x2017\x2017','mcpConfig.apiApplyInfo.title','What\x20is\x20API\x20Key?','Click\x20to\x20connect\x20MCP','trim','MCP\x20连接失败','pre','几秒钟内获取您的\x20API\x20密钥','univerjs-icon\x20univerjs-icon-','mcpConfig.configStepTitle','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Disconnected','_localeService','warn','0\x200\x2016\x2016','url(#on-line-icon_clip0_910_349)','subscribeConfigValue$','univer-flex\x20univer-items-start\x20univer-gap-2','Session\x20ID','forEach','NONE','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','substring','RETRYING','配置更改将立即生效','univer-mr-2\x20univer-flex\x20univer-text-xl','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','_loadStoredApiKey','mcpConfig.validation.apiKeyRequired','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','_mcpConnectionController','MCP\x20Connection\x20Failed','symbol','连接中...','_config','API\x20密钥','MenuIcon','Configuration\x20Steps:','MCP\x20Connected','open'];_0x56a1=function(){return _0x5dbb67;};return _0x56a1();}function tn(_0x4329c7){var _0x263507=_0x219a03,_0x334b25,_0xdf0f40;const {mcpCoreConfig:_0x1d0d5c,onSave:_0x486d16,loading:_0x3a1eae=!0x1,config:_0x258df9,connectionStatus$:_0x109b62,connectionError$:_0x306f0c,currentApiKey$:_0x1c3053,currentSessionId$:_0x136a90}=_0x4329c7,_0x10e766=_0x43a656(_0xc33df3),_0x39c68e=_0x58c5e8(_0x109b62,_0x38d350[_0x263507(0x16c)]),_0x1f3cb2=_0x58c5e8(_0x306f0c,_0x109ccb[_0x263507(0x258)]),_0x2832f3=_0x58c5e8(_0x136a90,''),_0x14b9e3=_0x58c5e8(_0x1c3053,''),[_0x277f9c,_0x13104b]=_0x2f1866(_0x14b9e3||''),_0x5ba8c7=!0x0,_0x56b99=_0x258df9[_0x263507(0x14d)]&&_0x1d0d5c[_0x263507(0x15d)]&&(_0x1d0d5c[_0x263507(0x15d)][_0x263507(0x1ab)]('univer.plus')||_0x1d0d5c[_0x263507(0x15d)][_0x263507(0x1ab)](_0x263507(0x19b))),_0x1d800d=(_0x334b25=_0x1d0d5c['mcpServerUrl'])==null?void 0x0:_0x334b25[_0x263507(0x1ab)](_0x263507(0x1fc)),_0x5a7ad0=(_0xdf0f40=_0x1d0d5c['mcpServerUrl'])==null?void 0x0:_0xdf0f40[_0x263507(0x1ab)](_0x263507(0x19b)),_0x267418=_0x1d800d?'https://console.univer.plus':'https://console.univer.ai',_0x279c72=_0x258df9['showDeveloperTools']&&(_0x1d800d||_0x5a7ad0),[_0x1c11e0,_0x33a683]=_0x2f1866(!_0x277f9c[_0x263507(0x248)]()),_0x302bde=(_0x5f1975,_0x268d7c)=>{var _0x589895=_0x263507;if(_0x268d7c===_0x109ccb[_0x589895(0x1c4)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x5f1975){case _0x38d350['CONNECTED']:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case _0x38d350[_0x589895(0x1c5)]:case _0x38d350[_0x589895(0x25b)]:return _0x589895(0x259);case _0x38d350[_0x589895(0x1f9)]:return _0x589895(0x140);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x1c4481=(_0x4c2a8c,_0x338a03)=>{var _0x45e94a=_0x263507;if(_0x338a03===_0x109ccb[_0x45e94a(0x1c4)])return'univer-bg-red-500';switch(_0x4c2a8c){case _0x38d350[_0x45e94a(0x12a)]:return _0x45e94a(0x15c);case _0x38d350[_0x45e94a(0x1c5)]:case _0x38d350[_0x45e94a(0x25b)]:return _0x45e94a(0x219);case _0x38d350[_0x45e94a(0x1f9)]:return'univer-bg-red-500';default:return _0x45e94a(0x1a1);}},_0x253655=_0x47dda8=>{var _0x2e1f5a=_0x263507;switch(_0x47dda8){case _0x38d350[_0x2e1f5a(0x12a)]:return _0x10e766['t'](_0x2e1f5a(0x194));case _0x38d350[_0x2e1f5a(0x1c5)]:return _0x10e766['t'](_0x2e1f5a(0x17c));case _0x38d350[_0x2e1f5a(0x1f9)]:return _0x10e766['t']('mcpConfig.connectionStatus.failed');case _0x38d350[_0x2e1f5a(0x25b)]:return _0x10e766['t'](_0x2e1f5a(0x1bc));default:return _0x10e766['t']('mcpConfig.connectionStatus.disconnected');}},_0x3b32b4=_0x44768f=>{var _0x5b8d3d=_0x263507;switch(_0x44768f){case _0x109ccb[_0x5b8d3d(0x1c4)]:return _0x10e766['t'](_0x5b8d3d(0x15e));case _0x109ccb[_0x5b8d3d(0x1ea)]:return _0x10e766['t'](_0x5b8d3d(0x117));case _0x109ccb[_0x5b8d3d(0x241)]:return _0x10e766['t'](_0x5b8d3d(0x224));case _0x109ccb[_0x5b8d3d(0x234)]:return _0x10e766['t'](_0x5b8d3d(0x1eb));default:return'';}},_0x458da4=_0x2db746(()=>{var _0x7af514=_0x263507;const _0x53dee0={..._0x1d0d5c,'apiKey':_0x277f9c[_0x7af514(0x248)](),'enableAuth':_0x5ba8c7};_0x486d16(_0x53dee0);},[_0x1d0d5c,_0x277f9c,_0x5ba8c7,_0x486d16]),_0x258b7a=_0x277f9c[_0x263507(0x248)]()[_0x263507(0x23e)]>0x0;return _0xb22d85(_0x263507(0x149),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[_0x288285('div',{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':_0xb22d85('div',{'className':_0x263507(0x1fb),'children':[_0x288285(_0x263507(0x149),{'className':'univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','children':_0x288285(_0x263507(0x121),{'className':_0x263507(0x1fd),'children':'⚙'})}),_0x288285('div',{'children':_0x288285('p',{'className':_0x263507(0x1f2),'children':_0x10e766['t'](_0x263507(0x182))})})]})}),_0xb22d85(_0x263507(0x149),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[_0x288285('div',{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x302bde(_0x39c68e,_0x1f3cb2)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','children':_0xb22d85(_0x263507(0x149),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x288285(_0x263507(0x149),{'className':_0x263507(0x1ed)+_0x1c4481(_0x39c68e,_0x1f3cb2)+_0x263507(0x1e1)}),_0x288285('span',{'className':'univer-text-sm\x20univer-font-medium','children':_0x253655(_0x39c68e)})]})}),_0x1f3cb2!==_0x109ccb[_0x263507(0x258)]&&(_0x39c68e===_0x38d350[_0x263507(0x1f9)]||_0x1f3cb2===_0x109ccb[_0x263507(0x1c4)])&&_0x288285(_0x263507(0x149),{'className':_0x263507(0x262),'children':_0xb22d85(_0x263507(0x149),{'className':_0x263507(0x255),'children':[_0x288285(_0x263507(0x121),{'className':'univer-flex-shrink-0\x20univer-text-red-500','children':'⚠️'}),_0x288285('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x3b32b4(_0x1f3cb2)})]})})]}),_0x288285('div',{'className':_0x263507(0x17e),'children':_0xb22d85(_0x263507(0x149),{'className':_0x263507(0x120),'children':[_0xb22d85(_0x263507(0x149),{'className':_0x263507(0x158),'children':[_0xb22d85(_0x263507(0x1ee),{'className':_0x263507(0x172),'children':[_0x288285(_0x263507(0x121),{'children':'🔑'}),'\x20',_0x10e766['t'](_0x263507(0x1cc)),_0x288285(_0x263507(0x121),{'className':'univer-text-red-500','children':'*'}),_0x56b99&&_0x288285('a',{'href':_0x263507(0x23a),'onClick':()=>_0x33a683(!0x0),'className':_0x263507(0x1b8),'title':_0x10e766['t'](_0x263507(0x245)),'children':_0x288285(de,{})})]}),_0x288285(_0x35eb2b,{'type':_0x263507(0x1df),'placeholder':_0x10e766['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x277f9c,'onChange':_0x13104b,'disabled':_0x3a1eae,'autoComplete':_0x263507(0x1b0)}),_0x288285('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x10e766['t'](_0x263507(0x16e))})]}),_0x56b99&&_0x1c11e0&&_0xb22d85(_0x263507(0x149),{'className':_0x263507(0x125),'children':[_0x288285('a',{'href':_0x263507(0x23a),'onClick':()=>_0x33a683(!0x1),'className':'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','title':_0x263507(0x1ae),'children':_0x288285(ve,{})}),_0xb22d85(_0x263507(0x149),{'className':_0x263507(0x1fe),'children':[_0x288285('div',{'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':_0x288285(_0x263507(0x121),{'className':'univer-text-blue-600','children':'🚀'})}),_0xb22d85(_0x263507(0x149),{'className':_0x263507(0x11c),'children':[_0x288285('h4',{'className':_0x263507(0x1ff),'children':_0x10e766['t']('mcpConfig.apiApplyInfo.title')}),_0x288285('p',{'className':_0x263507(0x178),'children':_0x10e766['t']('mcpConfig.apiApplyInfo.description')}),_0x288285(_0x263507(0x149),{'className':_0x263507(0x159),'children':_0x279c72&&_0xb22d85('a',{'href':_0x267418,'target':_0x263507(0x216),'rel':'noopener\x20noreferrer','className':_0x263507(0x19a),'children':[_0x288285(_0x263507(0x121),{'children':'🤖'}),_0x10e766['t']('mcpConfig.apiApplyInfo.univerAiLabel'),_0x288285('span',{'className':_0x263507(0x191),'children':'↗'})]})}),_0xb22d85(_0x263507(0x149),{'className':_0x263507(0x135),'children':['✨','\x20',_0x10e766['t'](_0x263507(0x14e))]})]})]})]}),_0x258df9[_0x263507(0x14d)]&&_0xb22d85('div',{'className':_0x263507(0x115),'children':[_0xb22d85('h4',{'className':_0x263507(0x11a),'children':[_0x288285('span',{'children':'🔗'}),'\x20',_0x10e766['t']('mcpConfig.connectionInfo')]}),_0xb22d85(_0x263507(0x149),{'className':_0x263507(0x1e0),'children':[_0xb22d85(_0x263507(0x149),{'className':'univer-space-y-3','children':[_0x288285('p',{'className':_0x263507(0x20f),'children':_0x10e766['t']('mcpConfig.configInstructions')}),_0xb22d85(_0x263507(0x149),{'className':_0x263507(0x158),'children':[_0x288285(_0x263507(0x149),{'className':_0x263507(0x128),'children':_0x10e766['t'](_0x263507(0x24d))}),_0xb22d85(_0x263507(0x149),{'className':_0x263507(0x1a3),'children':[_0xb22d85(_0x263507(0x149),{'className':_0x263507(0x190),'children':[_0x288285('span',{'className':'univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'1'}),_0x10e766['t'](_0x263507(0x225))]}),_0xb22d85(_0x263507(0x149),{'className':_0x263507(0x190),'children':[_0x288285(_0x263507(0x121),{'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'}),_0x10e766['t'](_0x263507(0x1a0))]}),_0xb22d85('div',{'className':_0x263507(0x190),'children':[_0x288285(_0x263507(0x121),{'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'}),_0x10e766['t']('mcpConfig.configStep3')]})]})]})]}),_0xb22d85('div',{'className':_0x263507(0x158),'children':[_0x288285(_0x263507(0x149),{'className':_0x263507(0x128),'children':_0x263507(0x1a6)}),_0x288285(_0x263507(0x149),{'className':_0x263507(0x179),'children':_0x288285(_0x263507(0x24a),{'className':_0x263507(0x1c0),'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='+_0x2832f3+_0x263507(0x207)+(_0x277f9c||'<API_KEY>')+'\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x0a}'})})]}),_0xb22d85(_0x263507(0x149),{'className':_0x263507(0x1c8),'children':[_0x288285('div',{'className':_0x263507(0x128),'children':_0x10e766['t']('mcpConfig.configParameters')}),_0xb22d85(_0x263507(0x149),{'className':'univer-space-y-2','children':[_0xb22d85(_0x263507(0x149),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x288285(_0x263507(0x149),{'className':_0x263507(0x150)}),_0xb22d85('div',{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x288285('div',{'className':_0x263507(0x25f),'children':_0x263507(0x1c7)}),_0x288285('div',{'className':_0x263507(0x156),'children':_0x10e766['t'](_0x263507(0x11f))})]})]}),_0xb22d85(_0x263507(0x149),{'className':_0x263507(0x12f),'children':[_0x288285(_0x263507(0x149),{'className':_0x263507(0x150)}),_0xb22d85(_0x263507(0x149),{'className':_0x263507(0x160),'children':[_0x288285(_0x263507(0x149),{'className':_0x263507(0x25f),'children':_0x263507(0x166)}),_0x288285('div',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x10e766['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),_0x288285(_0xf8f352,{'onClick':_0x458da4,'disabled':!_0x258b7a||_0x3a1eae,'className':_0x263507(0x137),'children':_0x3a1eae?_0xb22d85(_0x263507(0x121),{'className':_0x263507(0x190),'children':[_0x288285(_0x263507(0x121),{'children':'⟲'}),_0x10e766['t'](_0x263507(0x186))]}):_0xb22d85(_0x263507(0x121),{'className':_0x263507(0x190),'children':[_0x288285(ue,{}),_0x10e766['t'](_0x263507(0x1e3))]})}),_0x288285(_0x263507(0x149),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':_0xb22d85(_0x263507(0x149),{'className':_0x263507(0x126),'children':[_0x288285(_0x263507(0x121),{'className':_0x263507(0x20c),'children':'💡'}),_0xb22d85(_0x263507(0x149),{'className':_0x263507(0x1aa),'children':[_0x288285(_0x263507(0x149),{'className':_0x263507(0x212),'children':_0x263507(0x16f)}),_0xb22d85(_0x263507(0x149),{'children':['•',_0x10e766['t'](_0x263507(0x129))]}),_0xb22d85(_0x263507(0x149),{'children':['•',_0x10e766['t'](_0x263507(0x1a2))]})]})]})})]})})]});}const L='mcp-ui.config',ie={'showDeveloperTools':!0x1};var on=Object['getOwnPropertyDescriptor'],sn=(_0x229f52,_0x3632e2,_0x19c524,_0x15fd0c)=>{var _0x16ccc3=_0x219a03;for(var _0x447e2d=_0x15fd0c>0x1?void 0x0:_0x15fd0c?on(_0x3632e2,_0x19c524):_0x3632e2,_0x1f194a=_0x229f52[_0x16ccc3(0x23e)]-0x1,_0xa7b7e3;_0x1f194a>=0x0;_0x1f194a--)(_0xa7b7e3=_0x229f52[_0x1f194a])&&(_0x447e2d=_0xa7b7e3(_0x447e2d)||_0x447e2d);return _0x447e2d;},f=(_0x1c41e2,_0x194e13)=>(_0xcda950,_0x2c3d0b)=>_0x194e13(_0xcda950,_0x2c3d0b,_0x1c41e2);const T=_0x219a03(0x21a),R=_0x219a03(0x12d);let I=class extends _0x1f0c2f{constructor(_0x51151b,_0x4c71d5,_0x29eea0,_0x5736de,_0x2cbf96,_0x3b70f0,_0x1be05f,_0x550d38,_0x43e168,_0x4a3c84){var _0x13be67=_0x219a03;super(),x(this,'_loading$',new _0x249cb6(!0x1)),x(this,_0x13be67(0x23c),new _0x249cb6({})),x(this,_0x13be67(0x175),new _0x249cb6({})),x(this,_0x13be67(0x16a),new _0x249cb6('')),x(this,'_handleConfigSave',async _0x3e92af=>{var _0x2a5f40=_0x13be67,_0x1fbac0,_0x35ebf2;this['_loading$'][_0x2a5f40(0x21d)](!0x0);try{const _0xcfde55=await this[_0x2a5f40(0x14f)](_0x3e92af);if(!_0xcfde55[_0x2a5f40(0x189)]){this[_0x2a5f40(0x232)][_0x2a5f40(0x19f)]({'type':_0x4b0dc2[_0x2a5f40(0x1ba)],'content':_0xcfde55[_0x2a5f40(0x11d)]||this[_0x2a5f40(0x250)]['t'](_0x2a5f40(0x1d7))});return;}_0x3e92af[_0x2a5f40(0x17d)]?await this[_0x2a5f40(0x133)][_0x2a5f40(0x124)](T,_0x3e92af[_0x2a5f40(0x17d)][_0x2a5f40(0x248)]()):await this[_0x2a5f40(0x133)][_0x2a5f40(0x20e)](T),this['_apiKey$'][_0x2a5f40(0x21d)](((_0x1fbac0=_0x3e92af[_0x2a5f40(0x17d)])==null?void 0x0:_0x1fbac0[_0x2a5f40(0x248)]())||''),this[_0x2a5f40(0x263)]['__setCustomHeaders']({'Authorization':_0x2a5f40(0x1ce)+((_0x35ebf2=_0x3e92af['apiKey'])==null?void 0x0:_0x35ebf2[_0x2a5f40(0x248)]())}),this[_0x2a5f40(0x232)][_0x2a5f40(0x19f)]({'type':_0x4b0dc2[_0x2a5f40(0x1b2)],'content':this[_0x2a5f40(0x250)]['t'](_0x2a5f40(0x204))}),setTimeout(()=>{var _0x44ea7d=_0x2a5f40;this[_0x44ea7d(0x177)][_0x44ea7d(0x1ef)](R);},0x320);}catch(_0x12021a){this[_0x2a5f40(0x231)][_0x2a5f40(0x1ec)](_0x2a5f40(0x21b),_0x12021a),this[_0x2a5f40(0x232)][_0x2a5f40(0x19f)]({'type':_0x4b0dc2[_0x2a5f40(0x1ba)],'content':this[_0x2a5f40(0x250)]['t']('mcpConfig.configError')});}finally{this[_0x2a5f40(0x1f8)][_0x2a5f40(0x21d)](!0x1);}}),(this[_0x13be67(0x168)]=_0x51151b,this['_uiPartsService']=_0x4c71d5,this[_0x13be67(0x203)]=_0x29eea0,this['_localStorageService']=_0x5736de,this['_dialogService']=_0x2cbf96,this['_messageService']=_0x3b70f0,this['_componentManager']=_0x1be05f,this[_0x13be67(0x250)]=_0x550d38,this[_0x13be67(0x231)]=_0x43e168,this[_0x13be67(0x263)]=_0x4a3c84,this[_0x13be67(0x13d)](),this[_0x13be67(0x260)](),this[_0x13be67(0x1a9)]());}[_0x219a03(0x199)](){var _0x3f713d=_0x219a03;this[_0x3f713d(0x177)][_0x3f713d(0x26c)]({'id':R,'title':{'title':this[_0x3f713d(0x250)]['t'](_0x3f713d(0x1c9))},'children':{'label':_0x3f713d(0x226)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0x276037=_0x3f713d;this[_0x276037(0x177)][_0x276037(0x1ef)](R);}});}[_0x219a03(0x1f4)](){var _0x25d7fa=_0x219a03;return this[_0x25d7fa(0x23c)][_0x25d7fa(0x127)];}[_0x219a03(0x1a9)](){var _0x566934=_0x219a03;this[_0x566934(0x22d)](this[_0x566934(0x119)][_0x566934(0x1cb)](_0x566934(0x226),this[_0x566934(0x1bd)]()));}['_createConfigPanelComponent'](){var _0x24cd74=_0x219a03;return _0x2400a6(()=>{var _0x642b94=_0x3cee,_0x1c13db,_0x25e497,_0x3348b5;return _0x288285(tn,{'config':this['_config$']['value'],'mcpCoreConfig':this[_0x642b94(0x23c)][_0x642b94(0x127)],'currentApiKey$':this['_apiKey$'],'onSave':this['_handleConfigSave'],'loading':this[_0x642b94(0x1f8)][_0x642b94(0x127)],'connectionStatus$':(_0x1c13db=this[_0x642b94(0x263)])==null?void 0x0:_0x1c13db[_0x642b94(0x170)],'connectionError$':(_0x25e497=this[_0x642b94(0x263)])==null?void 0x0:_0x25e497['connectionError$'],'currentSessionId$':(_0x3348b5=this[_0x642b94(0x263)])==null?void 0x0:_0x3348b5['sessionId$']});},this[_0x24cd74(0x168)]);}['_initConfigSync'](){var _0x289d3e=_0x219a03;this[_0x289d3e(0x22d)](this[_0x289d3e(0x203)][_0x289d3e(0x254)](_0x41f305)[_0x289d3e(0x14c)](_0x3b8426=>{var _0x5b5866=_0x289d3e;this['_mcpCoreConfig$'][_0x5b5866(0x21d)](_0x3b8426||{});}));const _0x841626=this[_0x289d3e(0x203)][_0x289d3e(0x18d)](_0x41f305);this[_0x289d3e(0x23c)][_0x289d3e(0x21d)](_0x841626||{}),this['disposeWithMe'](this['_configService']['subscribeConfigValue$'](L)[_0x289d3e(0x14c)](_0xbb363f=>{var _0x239b1c=_0x289d3e;this[_0x239b1c(0x175)][_0x239b1c(0x21d)](_0xbb363f||{});}));const _0x4a5705=this[_0x289d3e(0x203)][_0x289d3e(0x18d)](L);this[_0x289d3e(0x175)][_0x289d3e(0x21d)](_0x4a5705||{});}async[_0x219a03(0x260)](){var _0x280060=_0x219a03;const _0x40c990=await this['_localStorageService'][_0x280060(0x114)](T);_0x40c990&&(this['_mcpConnectionController']['__setCustomHeaders']({'Authorization':_0x280060(0x1ce)+_0x40c990}),this[_0x280060(0x16a)][_0x280060(0x21d)](_0x40c990));}async['_validateConfig'](_0x1c47e9){var _0x4651d2=_0x219a03;if(!_0x1c47e9[_0x4651d2(0x17d)]||_0x1c47e9[_0x4651d2(0x17d)][_0x4651d2(0x248)]()[_0x4651d2(0x23e)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x4651d2(0x250)]['t'](_0x4651d2(0x261))};if(_0x1c47e9[_0x4651d2(0x17d)][_0x4651d2(0x248)]()[_0x4651d2(0x23e)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x4651d2(0x250)]['t'](_0x4651d2(0x11b))};try{const _0x2c63cd=await this[_0x4651d2(0x168)][_0x4651d2(0x238)](_0x595033)[_0x4651d2(0x111)](_0x1c47e9[_0x4651d2(0x17d)][_0x4651d2(0x248)]());return _0x2c63cd[_0x4651d2(0x189)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x2c63cd[_0x4651d2(0x1ec)]||this[_0x4651d2(0x250)]['t'](_0x4651d2(0x122))};}catch(_0x48efd8){return console[_0x4651d2(0x251)](_0x4651d2(0x18f),_0x48efd8),{'isValid':!0x0};}}};I=sn([f(0x0,_0x42ebfc(_0x5ede34)),f(0x1,_0x5a2bd3),f(0x2,_0x29ba2c),f(0x3,_0x316f47),f(0x4,_0x42dd90),f(0x5,_0x350eed),f(0x6,_0x42ebfc(_0xd402ee)),f(0x7,_0x42ebfc(_0xc33df3)),f(0x8,_0x4d889b),f(0x9,_0x42ebfc(_0x595033))],I);const B={'id':_0x219a03(0x1b4),'type':_0x4168e3[_0x219a03(0x211)],'handler':async(_0x492d1b,_0xe2e8fc)=>(_0x492d1b[_0x219a03(0x238)](I)[_0x219a03(0x199)](),!0x0)};function pe(_0x2e170c,_0x1870c7){var _0xf6db90=_0x219a03;switch(_0x2e170c){case _0x38d350['DISCONNECTED']:return'mcpStatus.disconnected';case _0x38d350['CONNECTING']:return _0xf6db90(0x217);case _0x38d350[_0xf6db90(0x12a)]:return _0xf6db90(0x171);case _0x38d350[_0xf6db90(0x1f9)]:switch(_0x1870c7){case _0x109ccb[_0xf6db90(0x1c4)]:return _0xf6db90(0x136);case _0x109ccb[_0xf6db90(0x1ea)]:return _0xf6db90(0x18b);case _0x109ccb[_0xf6db90(0x241)]:return'mcpStatus.networkError';case _0x109ccb[_0xf6db90(0x234)]:return _0xf6db90(0x240);default:return'mcpStatus.failed';}case _0x38d350['RETRYING']:return'mcpStatus.retrying';default:return _0xf6db90(0x1d8);}}function cn(_0x1ef045,_0x5596eb,_0x18e136){var _0x5bc731=_0x219a03;const _0x49f8af=pe(_0x1ef045,_0x5596eb),_0x88f177=_0x18e136['t'](_0x49f8af);return _0x1ef045===_0x38d350[_0x5bc731(0x16c)]&&_0x5596eb===_0x109ccb[_0x5bc731(0x1c4)]?_0x88f177+'\x20-\x20'+_0x18e136['t'](_0x5bc731(0x139)):_0x1ef045===_0x38d350[_0x5bc731(0x12a)]?''+_0x88f177:_0x1ef045===_0x38d350['DISCONNECTED']||_0x1ef045===_0x38d350[_0x5bc731(0x1f9)]?_0x88f177+_0x5bc731(0x13a)+_0x18e136['t'](_0x5bc731(0x110)):_0x88f177;}function an(_0x1f3125){var _0x2cee46=_0x219a03;switch(_0x1f3125){case _0x38d350[_0x2cee46(0x12a)]:return _0x2cee46(0x17b);case _0x38d350[_0x2cee46(0x1c5)]:case _0x38d350['RETRYING']:return'univer-text-yellow-500';case _0x38d350[_0x2cee46(0x1f9)]:case _0x38d350[_0x2cee46(0x16c)]:return _0x2cee46(0x1f6);default:return _0x2cee46(0x1e9);}}function ln(_0x1fa30f){var _0x58dc06=_0x219a03;const {status$:_0x4af226,error$:_0xe0d99e,onConfigure:_0x2104b0}=_0x1fa30f,_0x12eef4=_0x58c5e8(_0x4af226,_0x38d350[_0x58dc06(0x16c)]),_0x8005a=_0x58c5e8(_0xe0d99e,_0x109ccb[_0x58dc06(0x258)]),_0x1a77a0=_0x43a656(_0xc33df3),_0x313e10=_0x12eef4===_0x38d350[_0x58dc06(0x12a)],_0x2feea5=_0x12eef4===_0x38d350[_0x58dc06(0x1c5)]||_0x12eef4===_0x38d350[_0x58dc06(0x25b)],_0x3c5434=_0x1a77a0['t'](pe(_0x12eef4,_0x8005a)),_0x510b56=cn(_0x12eef4,_0x8005a,_0x1a77a0),_0x530fa6=an(_0x12eef4),_0x4041d7=_0x313e10?_0x288285(fe,{}):_0x288285(ge,{}),_0x2741a2=_0x2db746(()=>{_0x2104b0&&_0x2104b0();},[_0x313e10,_0x2feea5,_0x2104b0]);function _0x40d11b(){var _0x2118cf=_0x58dc06;return _0xb22d85('div',{'className':_0xdad1b(_0x2118cf(0x163),_0x2104b0&&'hover:univer-opacity-80'),'onClick':_0x2104b0?_0x2741a2:void 0x0,'children':[_0x288285(_0x2118cf(0x149),{'className':_0xdad1b(_0x2118cf(0x25d),_0x530fa6),'children':_0x4041d7}),_0x288285('div',{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x3c5434})]});}return _0x288285(_0x6b526f,{'title':_0x510b56,'placement':_0x58dc06(0x197),'children':_0x40d11b()});}var un=Object['getOwnPropertyDescriptor'],vn=(_0x216e90,_0x3b0e6c,_0x43ae22,_0x2bc3ad)=>{var _0x490a8f=_0x219a03;for(var _0x2a38cf=_0x2bc3ad>0x1?void 0x0:_0x2bc3ad?un(_0x3b0e6c,_0x43ae22):_0x3b0e6c,_0x2d3d6=_0x216e90[_0x490a8f(0x23e)]-0x1,_0x591d85;_0x2d3d6>=0x0;_0x2d3d6--)(_0x591d85=_0x216e90[_0x2d3d6])&&(_0x2a38cf=_0x591d85(_0x2a38cf)||_0x2a38cf);return _0x2a38cf;},j=(_0x3ccbb7,_0x358d22)=>(_0x3e5371,_0x539854)=>_0x358d22(_0x3e5371,_0x539854,_0x3ccbb7);let A=class extends _0x1f0c2f{constructor(_0xf7dd82,_0x520408,_0x5e196a){var _0x4168c4=_0x219a03;super(),this[_0x4168c4(0x168)]=_0xf7dd82,this[_0x4168c4(0x116)]=_0x520408,this[_0x4168c4(0x174)]=_0x5e196a,this[_0x4168c4(0x116)]['enableAutoConnect']=!0x1,this[_0x4168c4(0x1f7)]();}[_0x219a03(0x1f7)](){var _0xffdc88=_0x219a03;this[_0xffdc88(0x22d)](this[_0xffdc88(0x174)][_0xffdc88(0x1f0)](_0x5be334['HEADER_MENU'],()=>_0x2400a6(dn({'status$':this[_0xffdc88(0x116)][_0xffdc88(0x170)],'error$':this[_0xffdc88(0x116)][_0xffdc88(0x12e)],'onConfigure':()=>this[_0xffdc88(0x228)]()}),this['_injector'])));}[_0x219a03(0x228)](){var _0x375745=_0x219a03;this[_0x375745(0x168)]['get'](I)[_0x375745(0x199)]();}};A=vn([j(0x0,_0x42ebfc(_0x5ede34)),j(0x1,_0x42ebfc(_0x595033)),j(0x2,_0x5a2bd3)],A);function dn(_0x1aabd5){const {status$:_0x23844a,error$:_0x300985,onConfigure:_0x4fc8f3}=_0x1aabd5;return function(){return _0x288285(ln,{'status$':_0x23844a,'error$':_0x300985,'onConfigure':_0x4fc8f3});};}function gn(_0x4289ef){var _0x30848f=_0x219a03;return{'id':B['id'],'type':_0x14d87f[_0x30848f(0x181)],'icon':_0x30848f(0x269),'title':_0x30848f(0x1c9),'tooltip':_0x30848f(0x1c9)};}const fn={[_0x2d020d[_0x219a03(0x169)]]:{[B['id']]:{'order':0xa,'menuItemFactory':gn}}};var pn=Object[_0x219a03(0x19d)],mn=(_0xac7890,_0x29c52e,_0xfe7af6,_0x5e5abc)=>{for(var _0x43d036=_0x5e5abc>0x1?void 0x0:_0x5e5abc?pn(_0x29c52e,_0xfe7af6):_0x29c52e,_0x34d4ab=_0xac7890['length']-0x1,_0x658918;_0x34d4ab>=0x0;_0x34d4ab--)(_0x658918=_0xac7890[_0x34d4ab])&&(_0x43d036=_0x658918(_0x43d036)||_0x43d036);return _0x43d036;},re=(_0x38bbf2,_0x2ddaf1)=>(_0x2da600,_0x3bdc0b)=>_0x2ddaf1(_0x2da600,_0x3bdc0b,_0x38bbf2);let M=class extends _0x1f0c2f{constructor(_0x3a9d57,_0x339ec2){var _0xcc9d52=_0x219a03;super(),this[_0xcc9d52(0x1de)]=_0x3a9d57,this[_0xcc9d52(0x155)]=_0x339ec2,this[_0xcc9d52(0x236)](),this[_0xcc9d52(0x173)]();}[_0x219a03(0x236)](){var _0x9231cf=_0x219a03;[B][_0x9231cf(0x257)](_0x3ceb22=>{var _0x1addf9=_0x9231cf;this[_0x1addf9(0x22d)](this['_commandService']['registerCommand'](_0x3ceb22));});}['_initializeMenus'](){var _0x916449=_0x219a03;this[_0x916449(0x155)]['mergeMenu'](fn);}};M=mn([re(0x0,_0x5da6fe),re(0x1,_0x3064d0)],M);const On={'mcpStatus':{'disconnected':_0x219a03(0x24f),'connecting':_0x219a03(0x15b),'connected':_0x219a03(0x26b),'failed':_0x219a03(0x264),'retrying':_0x219a03(0x1b3),'unknown':_0x219a03(0x1be),'missingApiKey':_0x219a03(0x242),'invalidApiKey':'MCP:\x20Invalid\x20API\x20Key','sessionOccupied':_0x219a03(0x220),'networkError':_0x219a03(0x23b),'maxRetriesExceeded':_0x219a03(0x176),'clickToConnect':_0x219a03(0x247),'clickToConfigure':_0x219a03(0x22c)},'mcpConfig':{'title':_0x219a03(0x1a6),'description':_0x219a03(0x1af),'apiKey':_0x219a03(0x21e),'apiKeyPlaceholder':_0x219a03(0x162),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x219a03(0x180),'connectionInfo':_0x219a03(0x15a),'mcpClientConfig':_0x219a03(0x15a),'configInstructions':_0x219a03(0x24e),'configStepTitle':_0x219a03(0x26a),'configStep1':_0x219a03(0x18c),'configStep2':_0x219a03(0x202),'configStep3':_0x219a03(0x147),'sessionId':_0x219a03(0x256),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x219a03(0x130),'maxRetries':_0x219a03(0x113),'save':_0x219a03(0x185),'saving':_0x219a03(0x1d5),'note1':_0x219a03(0x16d),'note2':_0x219a03(0x1db),'configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x219a03(0x246),'description':_0x219a03(0x1b5),'univerAiLabel':_0x219a03(0x214),'getStarted':_0x219a03(0x22b)},'validation':{'apiKeyRequired':_0x219a03(0x148),'apiKeyTooShort':_0x219a03(0x1ac),'invalidConfig':_0x219a03(0x143),'invalidApiKey':_0x219a03(0x12c)},'connectionStatus':{'disconnected':_0x219a03(0x1e6),'connecting':'Connecting...','connected':_0x219a03(0x1bb),'failed':_0x219a03(0x1c2),'retrying':'Retrying...'},'connectionError':{'missingApiKey':_0x219a03(0x1cd),'invalidApiKey':'Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','sessionOccupied':_0x219a03(0x12b),'networkError':_0x219a03(0x11e),'maxRetriesExceeded':_0x219a03(0x215)}}},kn={'mcpStatus':{'disconnected':_0x219a03(0x1e8),'connecting':_0x219a03(0x1a7),'connected':'MCP\x20已连接','failed':_0x219a03(0x249),'retrying':_0x219a03(0x200),'unknown':_0x219a03(0x1a5),'missingApiKey':_0x219a03(0x218),'invalidApiKey':_0x219a03(0x201),'sessionOccupied':_0x219a03(0x183),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x219a03(0x165),'clickToConnect':_0x219a03(0x1b6),'clickToConfigure':_0x219a03(0x1a4)},'mcpConfig':{'title':'MCP\x20配置','description':_0x219a03(0x157),'apiKey':_0x219a03(0x268),'apiKeyPlaceholder':_0x219a03(0x193),'apiKeyHint':_0x219a03(0x208),'enableAuth':'启用身份验证','enableAuthHint':_0x219a03(0x227),'connectionInfo':_0x219a03(0x15f),'mcpClientConfig':_0x219a03(0x15f),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':'配置步骤:','configStep1':_0x219a03(0x14a),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x219a03(0x1b7),'sessionId':'会话ID','sessionIdDescription':_0x219a03(0x123),'authorizationDescription':_0x219a03(0x112),'configParameters':_0x219a03(0x161),'maxRetries':_0x219a03(0x1b1),'save':_0x219a03(0x1d2),'saving':_0x219a03(0x196),'note1':_0x219a03(0x25c),'note2':_0x219a03(0x233),'configSaved':_0x219a03(0x1dc),'configError':_0x219a03(0x13b),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x219a03(0x151),'univerAiLabel':_0x219a03(0x1c1),'getStarted':_0x219a03(0x24b)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x219a03(0x221),'invalidConfig':_0x219a03(0x154),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0x219a03(0x210),'connecting':_0x219a03(0x266),'connected':_0x219a03(0x237),'failed':'连接失败','retrying':_0x219a03(0x1c6)},'connectionError':{'missingApiKey':_0x219a03(0x21f),'invalidApiKey':'API\x20密钥无效,请检查您的密钥后重试','sessionOccupied':_0x219a03(0x187),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x219a03(0x1f5)}}};var hn=Object['defineProperty'],Cn=Object[_0x219a03(0x19d)],yn=(_0x539eb6,_0x409929,_0x448e49)=>_0x409929 in _0x539eb6?hn(_0x539eb6,_0x409929,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x448e49}):_0x539eb6[_0x409929]=_0x448e49,_n=(_0x3bc8b4,_0x498907,_0x43cda7,_0x30cbe2)=>{var _0x452381=_0x219a03;for(var _0x16436c=_0x30cbe2>0x1?void 0x0:_0x30cbe2?Cn(_0x498907,_0x43cda7):_0x498907,_0x31edf1=_0x3bc8b4[_0x452381(0x23e)]-0x1,_0x8818e1;_0x31edf1>=0x0;_0x31edf1--)(_0x8818e1=_0x3bc8b4[_0x31edf1])&&(_0x16436c=_0x8818e1(_0x16436c)||_0x16436c);return _0x16436c;},E=(_0x2b7fd2,_0x11cb67)=>(_0xa03167,_0x45e94c)=>_0x11cb67(_0xa03167,_0x45e94c,_0x2b7fd2),xn=(_0x19ce36,_0x2259a9,_0x381b77)=>yn(_0x19ce36,_0x2259a9+'',_0x381b77);let U=class extends _0x856cee{constructor(_0x2f7aa6=ie,_0x5c2575,_0x3b8431,_0x2d0f8d,_0x58f617,_0x42d3c7){var _0x54583e=_0x219a03;super(),this[_0x54583e(0x267)]=_0x2f7aa6,this['_injector']=_0x5c2575,this[_0x54583e(0x203)]=_0x3b8431,this[_0x54583e(0x174)]=_0x2d0f8d,this[_0x54583e(0x133)]=_0x58f617,this[_0x54583e(0x250)]=_0x42d3c7;const {..._0x35e02a}=_0x152593({},ie,this[_0x54583e(0x267)]);this[_0x54583e(0x203)][_0x54583e(0x1fa)](L,_0x35e02a);}async[_0x219a03(0x142)](){var _0x8a310a=_0x219a03;const _0x50b303=[[A],[I],[M]];this[_0x8a310a(0x168)][_0x8a310a(0x1e7)](_0x140f0d)||_0x50b303[_0x8a310a(0x209)]([_0x140f0d,{'useClass':_0x324d21}]),_0x50b303[_0x8a310a(0x257)](_0x89b750=>this[_0x8a310a(0x168)][_0x8a310a(0x223)](_0x89b750)),this[_0x8a310a(0x168)][_0x8a310a(0x238)](A),this['_injector'][_0x8a310a(0x238)](I),this[_0x8a310a(0x168)][_0x8a310a(0x238)](M);}};xn(U,'pluginName',_0x219a03(0x141)),U=_n([_0xdb2fad(_0x3412ea),E(0x1,_0x42ebfc(_0x5ede34)),E(0x2,_0x29ba2c),E(0x3,_0x5a2bd3),E(0x4,_0x316f47),E(0x5,_0x42ebfc(_0xc33df3))],U);export{tn as MCPConfigPanel,I as MCPConfigUIController,A as MCPConnectionUIController,ln as MCPStatusDisplay,M as MCPUIMenuController,B as OpenMCPConfigPanelCommand,U as UniverMCPUIPlugin,On as enUS,kn as zhCN};
|
package/lib/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x5f5596=_0x20d6;(function(_0x56f1c6,_0x53a11e){const _0x1b914c=_0x20d6,_0xd87319=_0x56f1c6();while(!![]){try{const _0x2f9b66=-parseInt(_0x1b914c(0x132))/0x1+-parseInt(_0x1b914c(0x13d))/0x2*(-parseInt(_0x1b914c(0x14b))/0x3)+-parseInt(_0x1b914c(0x144))/0x4*(parseInt(_0x1b914c(0x12f))/0x5)+parseInt(_0x1b914c(0x14d))/0x6*(parseInt(_0x1b914c(0x126))/0x7)+parseInt(_0x1b914c(0x149))/0x8+-parseInt(_0x1b914c(0x123))/0x9+parseInt(_0x1b914c(0x140))/0xa*(parseInt(_0x1b914c(0x12b))/0xb);if(_0x2f9b66===_0x53a11e)break;else _0xd87319['push'](_0xd87319['shift']());}catch(_0x545372){_0xd87319['push'](_0xd87319['shift']());}}}(_0x4f6c,0xaf47a));function _0x4f6c(){const _0x1f313e=['12427128ssvNhY','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','973RqSZte','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','API\x20key\x20with\x20Bearer\x20prefix.','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','11cAEArK','MCP\x20Connected','MCP:\x20Network\x20Error','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','35IzlPSg','Configuration\x20Parameters:','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','1275036GbzHni','Enter\x20your\x20API\x20key','Retrying...','API\x20Key','Configuration\x20Steps:','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Configuration','Saving...','74TdPFBx','Enable\x20Authentication','MCP:\x20Invalid\x20API\x20Key','35389560abvMTD','MCP:\x20Session\x20Occupied','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Disconnected','290460CsgOKj','Max\x20Retries','Save\x20Configuration','MCP\x20Connection\x20Failed','Connected','458584JifIrp','Connecting...','2199yaGSue','MCP\x20Disconnected','11166mRADuZ','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Connection\x20Failed','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','What\x20is\x20API\x20Key?','API\x20key\x20is\x20required','API\x20key\x20is\x20required\x20to\x20connect','MCP\x20Unknown\x20Status','MCP\x20Client\x20Configuration','Configuration\x20saved\x20successfully','Click\x20to\x20configure\x20MCP','Get\x20your\x20API\x20key\x20in\x20seconds','Enable\x20authentication\x20for\x20secure\x20connections','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Univer\x20AI\x20Console','MCP\x20Retrying...','Click\x20to\x20connect\x20MCP'];_0x4f6c=function(){return _0x1f313e;};return _0x4f6c();}const e={'mcpStatus':{'disconnected':_0x5f5596(0x14c),'connecting':'MCP\x20Connecting...','connected':_0x5f5596(0x12c),'failed':_0x5f5596(0x147),'retrying':_0x5f5596(0x15c),'unknown':_0x5f5596(0x154),'missingApiKey':'MCP:\x20API\x20Key\x20Missing','invalidApiKey':_0x5f5596(0x13f),'sessionOccupied':_0x5f5596(0x141),'networkError':_0x5f5596(0x12d),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x5f5596(0x15d),'clickToConfigure':_0x5f5596(0x157)},'mcpConfig':{'title':_0x5f5596(0x13b),'description':_0x5f5596(0x137),'apiKey':_0x5f5596(0x135),'apiKeyPlaceholder':_0x5f5596(0x133),'apiKeyHint':_0x5f5596(0x127),'enableAuth':_0x5f5596(0x13e),'enableAuthHint':_0x5f5596(0x159),'connectionInfo':_0x5f5596(0x155),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x5f5596(0x139),'configStepTitle':_0x5f5596(0x136),'configStep1':_0x5f5596(0x13a),'configStep2':_0x5f5596(0x12e),'configStep3':_0x5f5596(0x142),'sessionId':'Session\x20ID','sessionIdDescription':_0x5f5596(0x131),'authorizationDescription':_0x5f5596(0x129),'configParameters':_0x5f5596(0x130),'maxRetries':_0x5f5596(0x145),'save':_0x5f5596(0x146),'saving':_0x5f5596(0x13c),'note1':_0x5f5596(0x150),'note2':_0x5f5596(0x14e),'configSaved':_0x5f5596(0x156),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x5f5596(0x151),'description':_0x5f5596(0x15a),'univerAiLabel':_0x5f5596(0x15b),'getStarted':_0x5f5596(0x158)},'validation':{'apiKeyRequired':_0x5f5596(0x152),'apiKeyTooShort':_0x5f5596(0x124),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x5f5596(0x128)},'connectionStatus':{'disconnected':_0x5f5596(0x143),'connecting':_0x5f5596(0x14a),'connected':_0x5f5596(0x148),'failed':_0x5f5596(0x14f),'retrying':_0x5f5596(0x134)},'connectionError':{'missingApiKey':_0x5f5596(0x153),'invalidApiKey':_0x5f5596(0x138),'sessionOccupied':'Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','networkError':_0x5f5596(0x125),'maxRetriesExceeded':_0x5f5596(0x12a)}}},n=e;function _0x20d6(_0x45f6ba,_0x548f66){const _0x4f6cf6=_0x4f6c();return _0x20d6=function(_0x20d622,_0x441ac6){_0x20d622=_0x20d622-0x123;let _0x622a5=_0x4f6cf6[_0x20d622];return _0x622a5;},_0x20d6(_0x45f6ba,_0x548f66);}export{n as default};
|
package/lib/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x1daf4e=_0x34a4;(function(_0x479ea0,_0x2e936b){const _0x12e9b5=_0x34a4,_0x3ae38c=_0x479ea0();while(!![]){try{const _0x2e5e48=-parseInt(_0x12e9b5(0x123))/0x1+-parseInt(_0x12e9b5(0x13f))/0x2*(-parseInt(_0x12e9b5(0x12b))/0x3)+parseInt(_0x12e9b5(0x126))/0x4+-parseInt(_0x12e9b5(0x144))/0x5+-parseInt(_0x12e9b5(0x127))/0x6+-parseInt(_0x12e9b5(0x120))/0x7*(parseInt(_0x12e9b5(0x145))/0x8)+parseInt(_0x12e9b5(0x14e))/0x9*(parseInt(_0x12e9b5(0x136))/0xa);if(_0x2e5e48===_0x2e936b)break;else _0x3ae38c['push'](_0x3ae38c['shift']());}catch(_0x45aa5a){_0x3ae38c['push'](_0x3ae38c['shift']());}}}(_0xe567,0x8ec64));function _0xe567(){const _0x4ee40c=['Get\x20your\x20API\x20key\x20in\x20seconds','Configuration\x20saved\x20successfully','Connection\x20Failed','2172065dURDBv','72QkTnJs','MCP\x20Connected','MCP\x20Connecting...','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Failed\x20to\x20save\x20configuration','Saving...','Connecting...','MCP\x20Disconnected','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','702ndMcFk','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','Configuration\x20Parameters:','MCP:\x20Network\x20Error','94948yjFajM','Click\x20to\x20connect\x20MCP','Enter\x20your\x20API\x20key','700689ABqZEF','Enable\x20authentication\x20for\x20secure\x20connections','API\x20key\x20with\x20Bearer\x20prefix.','4451552wqmMhz','2601768zjIPHg','Session\x20ID','Enable\x20Authentication','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','216NtQwiM','Click\x20to\x20configure\x20MCP','API\x20key\x20is\x20required','API\x20key\x20is\x20required\x20to\x20connect','Connected','API\x20Key','MCP\x20Client\x20Configuration','Configuration\x20Steps:','MCP:\x20Max\x20Retries\x20Exceeded','Univer\x20AI\x20Console','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','76190pVgdkY','MCP:\x20Session\x20Occupied','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP:\x20Invalid\x20API\x20Key','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Save\x20Configuration','MCP\x20Connection\x20Failed','15790lADeDs','What\x20is\x20API\x20Key?'];_0xe567=function(){return _0x4ee40c;};return _0xe567();}const e={'mcpStatus':{'disconnected':_0x1daf4e(0x14c),'connecting':_0x1daf4e(0x147),'connected':_0x1daf4e(0x146),'failed':_0x1daf4e(0x13e),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','missingApiKey':'MCP:\x20API\x20Key\x20Missing','invalidApiKey':_0x1daf4e(0x13b),'sessionOccupied':_0x1daf4e(0x137),'networkError':_0x1daf4e(0x11f),'maxRetriesExceeded':_0x1daf4e(0x133),'clickToConnect':_0x1daf4e(0x121),'clickToConfigure':_0x1daf4e(0x12c)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x1daf4e(0x14d),'apiKey':_0x1daf4e(0x130),'apiKeyPlaceholder':_0x1daf4e(0x122),'apiKeyHint':_0x1daf4e(0x135),'enableAuth':_0x1daf4e(0x129),'enableAuthHint':_0x1daf4e(0x124),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x1daf4e(0x131),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x1daf4e(0x132),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x1daf4e(0x128),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x1daf4e(0x125),'configParameters':_0x1daf4e(0x11e),'maxRetries':'Max\x20Retries','save':_0x1daf4e(0x13d),'saving':_0x1daf4e(0x14a),'note1':_0x1daf4e(0x139),'note2':_0x1daf4e(0x13a),'configSaved':_0x1daf4e(0x142),'configError':_0x1daf4e(0x149),'apiApplyInfo':{'title':_0x1daf4e(0x140),'description':_0x1daf4e(0x148),'univerAiLabel':_0x1daf4e(0x134),'getStarted':_0x1daf4e(0x141)},'validation':{'apiKeyRequired':_0x1daf4e(0x12d),'apiKeyTooShort':_0x1daf4e(0x12a),'invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x1daf4e(0x14b),'connected':_0x1daf4e(0x12f),'failed':_0x1daf4e(0x143),'retrying':'Retrying...'},'connectionError':{'missingApiKey':_0x1daf4e(0x12e),'invalidApiKey':'Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','sessionOccupied':_0x1daf4e(0x14f),'networkError':_0x1daf4e(0x138),'maxRetriesExceeded':_0x1daf4e(0x13c)}}};function _0x34a4(_0x1dcc92,_0x3055b6){const _0xe5679c=_0xe567();return _0x34a4=function(_0x34a4fb,_0x3fce4b){_0x34a4fb=_0x34a4fb-0x11e;let _0x4823b9=_0xe5679c[_0x34a4fb];return _0x4823b9;},_0x34a4(_0x1dcc92,_0x3055b6);}export{e as default};
|
package/lib/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x4620(_0x27fc46,_0x1a2ee2){const _0xf07072=_0xf070();return _0x4620=function(_0x4620a5,_0x48747e){_0x4620a5=_0x4620a5-0xfb;let _0x384e8e=_0xf07072[_0x4620a5];return _0x384e8e;},_0x4620(_0x27fc46,_0x1a2ee2);}const _0x187989=_0x4620;(function(_0x27264a,_0x52325d){const _0x17584a=_0x4620,_0x226672=_0x27264a();while(!![]){try{const _0x31830d=-parseInt(_0x17584a(0x108))/0x1+-parseInt(_0x17584a(0x100))/0x2+parseInt(_0x17584a(0x11f))/0x3*(parseInt(_0x17584a(0x10b))/0x4)+-parseInt(_0x17584a(0x112))/0x5+parseInt(_0x17584a(0x102))/0x6+parseInt(_0x17584a(0x10c))/0x7+parseInt(_0x17584a(0x116))/0x8*(-parseInt(_0x17584a(0x119))/0x9);if(_0x31830d===_0x52325d)break;else _0x226672['push'](_0x226672['shift']());}catch(_0x294cd3){_0x226672['push'](_0x226672['shift']());}}}(_0xf070,0xaabfe));const e={'mcpStatus':{'disconnected':_0x187989(0x11e),'connecting':_0x187989(0xff),'connected':_0x187989(0x11a),'failed':_0x187989(0x120),'retrying':_0x187989(0x118),'unknown':_0x187989(0x11d),'missingApiKey':_0x187989(0x105),'invalidApiKey':_0x187989(0x11c),'sessionOccupied':_0x187989(0x10d),'networkError':_0x187989(0x125),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x187989(0x111),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x187989(0x12a),'description':_0x187989(0x126),'apiKey':_0x187989(0x121),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x187989(0x109),'enableAuth':_0x187989(0x10a),'enableAuthHint':_0x187989(0xfd),'connectionInfo':_0x187989(0x110),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x187989(0x10f),'configStepTitle':_0x187989(0x127),'configStep1':_0x187989(0x113),'configStep2':_0x187989(0x115),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','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':_0x187989(0xfc),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':_0x187989(0x117),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x187989(0x106),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x187989(0x124),'apiApplyInfo':{'title':_0x187989(0x129),'description':_0x187989(0xfe),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x187989(0x122)},'validation':{'apiKeyRequired':_0x187989(0x11b),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x187989(0x104)},'connectionStatus':{'disconnected':_0x187989(0x101),'connecting':'Connecting...','connected':_0x187989(0x128),'failed':'Connection\x20Failed','retrying':_0x187989(0xfb)},'connectionError':{'missingApiKey':_0x187989(0x107),'invalidApiKey':_0x187989(0x123),'sessionOccupied':_0x187989(0x10e),'networkError':_0x187989(0x114),'maxRetriesExceeded':_0x187989(0x103)}}},n=e;function _0xf070(){const _0xbe0992=['4647545JajLRz','MCP:\x20Session\x20Occupied','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Client\x20Configuration','Click\x20to\x20connect\x20MCP','388740yQqHQY','Copy\x20the\x20JSON\x20configuration\x20below','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','838968RBGlAB','Save\x20Configuration','MCP\x20Retrying...','9kxPAMr','MCP\x20Connected','API\x20key\x20is\x20required','MCP:\x20Invalid\x20API\x20Key','MCP\x20Unknown\x20Status','MCP\x20Disconnected','366093JOYyCE','MCP\x20Connection\x20Failed','API\x20Key','Get\x20your\x20API\x20key\x20in\x20seconds','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','Failed\x20to\x20save\x20configuration','MCP:\x20Network\x20Error','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Configuration\x20Steps:','Connected','What\x20is\x20API\x20Key?','MCP\x20Configuration','Retrying...','API\x20key\x20with\x20Bearer\x20prefix.','Enable\x20authentication\x20for\x20secure\x20connections','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP\x20Connecting...','1680364CRfBYk','Disconnected','5447124WGAIGb','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP:\x20API\x20Key\x20Missing','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','API\x20key\x20is\x20required\x20to\x20connect','459753CAOLNP','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Enable\x20Authentication','20SEGwHv'];_0xf070=function(){return _0xbe0992;};return _0xf070();}export{n as default};
|
package/lib/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x562191=_0x16c6;(function(_0x4698ca,_0x3cf507){const _0x8788f4=_0x16c6,_0x5504b0=_0x4698ca();while(!![]){try{const _0x531052=parseInt(_0x8788f4(0x208))/0x1*(-parseInt(_0x8788f4(0x1fa))/0x2)+parseInt(_0x8788f4(0x222))/0x3+-parseInt(_0x8788f4(0x214))/0x4*(parseInt(_0x8788f4(0x204))/0x5)+-parseInt(_0x8788f4(0x1fe))/0x6*(-parseInt(_0x8788f4(0x209))/0x7)+-parseInt(_0x8788f4(0x217))/0x8+-parseInt(_0x8788f4(0x205))/0x9*(parseInt(_0x8788f4(0x203))/0xa)+-parseInt(_0x8788f4(0x20f))/0xb*(-parseInt(_0x8788f4(0x21f))/0xc);if(_0x531052===_0x3cf507)break;else _0x5504b0['push'](_0x5504b0['shift']());}catch(_0x3369e6){_0x5504b0['push'](_0x5504b0['shift']());}}}(_0x5056,0x5876e));function _0x16c6(_0x55182c,_0x341264){const _0x505605=_0x5056();return _0x16c6=function(_0x16c669,_0x3e64d){_0x16c669=_0x16c669-0x1eb;let _0x2c1833=_0x505605[_0x16c669];return _0x2c1833;},_0x16c6(_0x55182c,_0x341264);}function _0x5056(){const _0x8e9650=['4PelTiD','Configuration\x20saved\x20successfully','API\x20Key','MCP\x20Connecting...','1437774jumZGC','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','MCP\x20Connected','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Client\x20Configuration','98210vbVskN','2815LmvRCy','531qchPEu','Get\x20your\x20API\x20key\x20in\x20seconds','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','350657XJftuw','7ryCzmN','MCP\x20Connection\x20Failed','Save\x20Configuration','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:\x20Invalid\x20API\x20Key','MCP:\x20API\x20Key\x20Missing','2958307izbAXq','Univer\x20AI\x20Console','Connecting...','API\x20key\x20is\x20required\x20to\x20connect','Click\x20to\x20configure\x20MCP','3176DgmruE','Retrying...','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','1383872rSSsOa','MCP\x20Configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Retrying...','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Unknown\x20Status','Session\x20ID','Enter\x20your\x20API\x20key','72iajmXn','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Invalid\x20configuration','1229574ikwLGY','Configuration\x20Parameters:','MCP:\x20Network\x20Error','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Copy\x20the\x20JSON\x20configuration\x20below','MCP:\x20Session\x20Occupied','Disconnected','Connection\x20Failed','Max\x20Retries','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Disconnected','What\x20is\x20API\x20Key?','Saving...','Click\x20to\x20connect\x20MCP','API\x20key\x20is\x20required','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets'];_0x5056=function(){return _0x8e9650;};return _0x5056();}const e={'mcpStatus':{'disconnected':_0x562191(0x1f4),'connecting':_0x562191(0x1fd),'connected':_0x562191(0x200),'failed':_0x562191(0x20a),'retrying':_0x562191(0x21a),'unknown':_0x562191(0x21c),'missingApiKey':_0x562191(0x20e),'invalidApiKey':_0x562191(0x20d),'sessionOccupied':_0x562191(0x1ef),'networkError':_0x562191(0x1eb),'maxRetriesExceeded':_0x562191(0x1f3),'clickToConnect':_0x562191(0x1f7),'clickToConfigure':_0x562191(0x213)},'mcpConfig':{'title':_0x562191(0x218),'description':_0x562191(0x1f9),'apiKey':_0x562191(0x1fc),'apiKeyPlaceholder':_0x562191(0x21e),'apiKeyHint':_0x562191(0x216),'enableAuth':'Enable\x20Authentication','enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x562191(0x202),'mcpClientConfig':_0x562191(0x202),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':_0x562191(0x1ee),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x562191(0x220),'sessionId':_0x562191(0x21d),'sessionIdDescription':_0x562191(0x21b),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x562191(0x223),'maxRetries':_0x562191(0x1f2),'save':_0x562191(0x20b),'saving':_0x562191(0x1f6),'note1':_0x562191(0x201),'note2':_0x562191(0x219),'configSaved':_0x562191(0x1fb),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x562191(0x1f5),'description':_0x562191(0x20c),'univerAiLabel':_0x562191(0x210),'getStarted':_0x562191(0x206)},'validation':{'apiKeyRequired':_0x562191(0x1f8),'apiKeyTooShort':_0x562191(0x1ec),'invalidConfig':_0x562191(0x221),'invalidApiKey':_0x562191(0x207)},'connectionStatus':{'disconnected':_0x562191(0x1f0),'connecting':_0x562191(0x211),'connected':'Connected','failed':_0x562191(0x1f1),'retrying':_0x562191(0x215)},'connectionError':{'missingApiKey':_0x562191(0x212),'invalidApiKey':'Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','sessionOccupied':_0x562191(0x1ff),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x562191(0x1ed)}}},n=e;export{n as default};
|
package/lib/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x25c1b2=_0x1315;(function(_0x5bea40,_0x14d7b2){const _0x3e4cc6=_0x1315,_0x3bc9ec=_0x5bea40();while(!![]){try{const _0x3f10f8=parseInt(_0x3e4cc6(0x1e1))/0x1*(-parseInt(_0x3e4cc6(0x1c6))/0x2)+-parseInt(_0x3e4cc6(0x1e8))/0x3+-parseInt(_0x3e4cc6(0x1fa))/0x4*(parseInt(_0x3e4cc6(0x1d4))/0x5)+parseInt(_0x3e4cc6(0x1ea))/0x6+parseInt(_0x3e4cc6(0x1c5))/0x7*(-parseInt(_0x3e4cc6(0x1cb))/0x8)+-parseInt(_0x3e4cc6(0x1dc))/0x9*(-parseInt(_0x3e4cc6(0x1d1))/0xa)+parseInt(_0x3e4cc6(0x1f4))/0xb*(parseInt(_0x3e4cc6(0x1c0))/0xc);if(_0x3f10f8===_0x14d7b2)break;else _0x3bc9ec['push'](_0x3bc9ec['shift']());}catch(_0x1b9a8c){_0x3bc9ec['push'](_0x3bc9ec['shift']());}}}(_0x2c36,0x6ea6b));function _0x2c36(){const _0x108758=['2015643dyAPeh','MCP\x20Unknown\x20Status','2188164AdJxst','MCP\x20Connection\x20Failed','MCP\x20Configuration','Disconnected','Connected','Failed\x20to\x20save\x20configuration','Configuration\x20saved\x20successfully','Univer\x20AI\x20Console','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','MCP\x20Retrying...','66ePwbHc','Click\x20to\x20configure\x20MCP','Click\x20to\x20connect\x20MCP','Connecting...','Saving...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','2070980UlUdjF','2392668BvwZLg','Max\x20Retries','MCP:\x20Session\x20Occupied','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','434pKYDHA','608440BBMQPo','Enable\x20authentication\x20for\x20secure\x20connections','Connection\x20Failed','Copy\x20the\x20JSON\x20configuration\x20below','Enable\x20Authentication','34064ITIchb','Enter\x20your\x20API\x20key','MCP\x20Connected','API\x20key\x20is\x20required','MCP\x20Client\x20Configuration','MCP:\x20Invalid\x20API\x20Key','70ijAxiC','Retrying...','MCP:\x20API\x20Key\x20Missing','5TkPbRR','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP:\x20Max\x20Retries\x20Exceeded','MCP:\x20Network\x20Error','Session\x20ID','API\x20key\x20with\x20Bearer\x20prefix.','Get\x20your\x20API\x20key\x20in\x20seconds','API\x20Key','835767yvYxSQ','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Configuration\x20Steps:','Save\x20Configuration','What\x20is\x20API\x20Key?','1vjlnqi','MCP\x20Disconnected','Configuration\x20Parameters:','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Invalid\x20configuration','MCP\x20Connecting...'];_0x2c36=function(){return _0x108758;};return _0x2c36();}const e={'mcpStatus':{'disconnected':_0x25c1b2(0x1e2),'connecting':_0x25c1b2(0x1e7),'connected':_0x25c1b2(0x1cd),'failed':_0x25c1b2(0x1eb),'retrying':_0x25c1b2(0x1f3),'unknown':_0x25c1b2(0x1e9),'missingApiKey':_0x25c1b2(0x1d3),'invalidApiKey':_0x25c1b2(0x1d0),'sessionOccupied':_0x25c1b2(0x1c2),'networkError':_0x25c1b2(0x1d7),'maxRetriesExceeded':_0x25c1b2(0x1d6),'clickToConnect':_0x25c1b2(0x1f6),'clickToConfigure':_0x25c1b2(0x1f5)},'mcpConfig':{'title':_0x25c1b2(0x1ec),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x25c1b2(0x1db),'apiKeyPlaceholder':_0x25c1b2(0x1cc),'apiKeyHint':_0x25c1b2(0x1d5),'enableAuth':_0x25c1b2(0x1ca),'enableAuthHint':_0x25c1b2(0x1c7),'connectionInfo':_0x25c1b2(0x1cf),'mcpClientConfig':_0x25c1b2(0x1cf),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x25c1b2(0x1de),'configStep1':_0x25c1b2(0x1c9),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x25c1b2(0x1dd),'sessionId':_0x25c1b2(0x1d8),'sessionIdDescription':_0x25c1b2(0x1e4),'authorizationDescription':_0x25c1b2(0x1d9),'configParameters':_0x25c1b2(0x1e3),'maxRetries':_0x25c1b2(0x1c1),'save':_0x25c1b2(0x1df),'saving':_0x25c1b2(0x1f8),'note1':_0x25c1b2(0x1e5),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x25c1b2(0x1f0),'configError':_0x25c1b2(0x1ef),'apiApplyInfo':{'title':_0x25c1b2(0x1e0),'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':_0x25c1b2(0x1f1),'getStarted':_0x25c1b2(0x1da)},'validation':{'apiKeyRequired':_0x25c1b2(0x1ce),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x25c1b2(0x1e6),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x25c1b2(0x1ed),'connecting':_0x25c1b2(0x1f7),'connected':_0x25c1b2(0x1ee),'failed':_0x25c1b2(0x1c8),'retrying':_0x25c1b2(0x1d2)},'connectionError':{'missingApiKey':'API\x20key\x20is\x20required\x20to\x20connect','invalidApiKey':_0x25c1b2(0x1f2),'sessionOccupied':_0x25c1b2(0x1c4),'networkError':_0x25c1b2(0x1f9),'maxRetriesExceeded':_0x25c1b2(0x1c3)}}},n=e;function _0x1315(_0x4b3414,_0xc902c8){const _0x2c36cd=_0x2c36();return _0x1315=function(_0x131528,_0x413a45){_0x131528=_0x131528-0x1c0;let _0x406edd=_0x2c36cd[_0x131528];return _0x406edd;},_0x1315(_0x4b3414,_0xc902c8);}export{n as default};
|