@univerjs-pro/mcp-ui 0.15.0-insiders.20251227-453e4ff → 0.15.0-insiders.20260106-79b11f9

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.
Files changed (49) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/cjs/locale/ca-ES.js +1 -1
  3. package/lib/cjs/locale/en-US.js +1 -1
  4. package/lib/cjs/locale/es-ES.js +1 -1
  5. package/lib/cjs/locale/fa-IR.js +1 -1
  6. package/lib/cjs/locale/fr-FR.js +1 -1
  7. package/lib/cjs/locale/ja-JP.js +1 -1
  8. package/lib/cjs/locale/ko-KR.js +1 -1
  9. package/lib/cjs/locale/ru-RU.js +1 -1
  10. package/lib/cjs/locale/vi-VN.js +1 -1
  11. package/lib/cjs/locale/zh-CN.js +1 -1
  12. package/lib/cjs/locale/zh-TW.js +1 -1
  13. package/lib/es/index.js +1 -1
  14. package/lib/es/locale/ca-ES.js +1 -1
  15. package/lib/es/locale/en-US.js +1 -1
  16. package/lib/es/locale/es-ES.js +1 -1
  17. package/lib/es/locale/fa-IR.js +1 -1
  18. package/lib/es/locale/fr-FR.js +1 -1
  19. package/lib/es/locale/ja-JP.js +1 -1
  20. package/lib/es/locale/ko-KR.js +1 -1
  21. package/lib/es/locale/ru-RU.js +1 -1
  22. package/lib/es/locale/vi-VN.js +1 -1
  23. package/lib/es/locale/zh-CN.js +1 -1
  24. package/lib/es/locale/zh-TW.js +1 -1
  25. package/lib/index.js +1 -1
  26. package/lib/locale/ca-ES.js +1 -1
  27. package/lib/locale/en-US.js +1 -1
  28. package/lib/locale/es-ES.js +1 -1
  29. package/lib/locale/fa-IR.js +1 -1
  30. package/lib/locale/fr-FR.js +1 -1
  31. package/lib/locale/ja-JP.js +1 -1
  32. package/lib/locale/ko-KR.js +1 -1
  33. package/lib/locale/ru-RU.js +1 -1
  34. package/lib/locale/vi-VN.js +1 -1
  35. package/lib/locale/zh-CN.js +1 -1
  36. package/lib/locale/zh-TW.js +1 -1
  37. package/lib/umd/index.js +1 -1
  38. package/lib/umd/locale/ca-ES.js +1 -1
  39. package/lib/umd/locale/en-US.js +1 -1
  40. package/lib/umd/locale/es-ES.js +1 -1
  41. package/lib/umd/locale/fa-IR.js +1 -1
  42. package/lib/umd/locale/fr-FR.js +1 -1
  43. package/lib/umd/locale/ja-JP.js +1 -1
  44. package/lib/umd/locale/ko-KR.js +1 -1
  45. package/lib/umd/locale/ru-RU.js +1 -1
  46. package/lib/umd/locale/vi-VN.js +1 -1
  47. package/lib/umd/locale/zh-CN.js +1 -1
  48. package/lib/umd/locale/zh-TW.js +1 -1
  49. package/package.json +8 -8
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x27a183=_0x9a99;(function(_0xeaabaf,_0x3c9758){const _0x220e78=_0x9a99,_0x4655aa=_0xeaabaf();while(!![]){try{const _0x4b6903=-parseInt(_0x220e78(0x338))/0x1+parseInt(_0x220e78(0x1ec))/0x2+parseInt(_0x220e78(0x1f6))/0x3*(parseInt(_0x220e78(0x2f7))/0x4)+parseInt(_0x220e78(0x2ff))/0x5+parseInt(_0x220e78(0x324))/0x6*(parseInt(_0x220e78(0x325))/0x7)+parseInt(_0x220e78(0x2b5))/0x8+-parseInt(_0x220e78(0x326))/0x9*(parseInt(_0x220e78(0x275))/0xa);if(_0x4b6903===_0x3c9758)break;else _0x4655aa['push'](_0x4655aa['shift']());}catch(_0x6f1ad1){_0x4655aa['push'](_0x4655aa['shift']());}}}(_0x5c23,0x4a404));var Pe=Object[_0x27a183(0x226)],Ee=(_0x166c40,_0x3bff2d,_0xcaf4b7)=>_0x3bff2d in _0x166c40?Pe(_0x166c40,_0x3bff2d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xcaf4b7}):_0x166c40[_0x3bff2d]=_0xcaf4b7,x=(_0x426228,_0x53226e,_0x119dff)=>Ee(_0x426228,typeof _0x53226e!=_0x27a183(0x2b9)?_0x53226e+'':_0x53226e,_0x119dff);import{LocaleService as _0x12a90e,Inject as _0x2bfdb1,Injector as _0x10c17c,IConfigService as _0x59461e,ILocalStorageService as _0x4bff31,ILogService as _0x303276,Disposable as _0x458cd8,CommandType as _0x272bec,ICommandService as _0x1d47d8,DependentOn as _0x10f3fc,Plugin as _0x52a552,merge as _0x504871}from'@univerjs/core';import{jsxs as _0x5df6e5,jsx as _0xdd9af1}from'react/jsx-runtime';import{MCPConnectionStatus as _0x5a64c1,MCPConnectionError as _0x5a2515,MCPConnectionController as _0x48ed4e,MCP_PLUGIN_CONFIG_KEY as _0x10ae38,UniverMCPPlugin as _0x436e98}from'@univerjs-pro/mcp';import{clsx as _0x4d43d9,Input as _0x2b6ceb,Button as _0x1b360e,MessageType as _0x52d49b,Tooltip as _0x5b4aac}from'@univerjs/design';import{useDependency as _0x54afd4,useObservable as _0x373941,IUIPartsService as _0x5ed0f7,IDialogService as _0x10e687,IMessageService as _0x1e57ef,ComponentManager as _0x1d82f5,connectInjector as _0x45d08a,BuiltInUIPart as _0x5cbc9f,MenuItemType as _0x1cd5b4,RibbonStartGroup as _0x1c89c8,IMenuManagerService as _0xef4c1e}from'@univerjs/ui';import{BehaviorSubject as _0x3dbe3d}from'rxjs';import{useRef as _0x9cdfcc,createElement as _0x5a0c31,forwardRef as _0x6194bc,useState as _0x39c8d3,useCallback as _0x2b4e47}from'react';import{ISocketService as _0x5dee8f,WebSocketService as _0x50b3b2}from'@univerjs/network';function b({ref:_0x420aa8,..._0x4dfc20}){const _0x522a4f=_0x27a183,{icon:_0x1d5507,id:_0x2bcfcd,className:_0x533917,extend:_0x58a0b3,..._0x670b09}=_0x4dfc20,_0x1510dc=(_0x522a4f(0x32d)+_0x2bcfcd+'\x20'+(_0x533917||''))[_0x522a4f(0x207)](),_0x3abff2=_0x9cdfcc('_'+We());return ae(_0x1d5507,''+_0x2bcfcd,{'defIds':_0x1d5507[_0x522a4f(0x230)],'idSuffix':_0x3abff2[_0x522a4f(0x284)]},{'ref':_0x420aa8,'className':_0x1510dc,..._0x670b09},_0x58a0b3);}function ae(_0x15373e,_0x415b80,_0x24597c,_0x1fdeb7,_0x107ea3){const _0xd94a77=_0x27a183;return _0x5a0c31(_0x15373e[_0xd94a77(0x21e)],{'key':_0x415b80,...Ye(_0x15373e,_0x24597c,_0x107ea3),..._0x1fdeb7},(Ze(_0x15373e,_0x24597c)[_0xd94a77(0x32f)]||[])[_0xd94a77(0x319)]((_0x3aa176,_0x44889a)=>ae(_0x3aa176,_0x415b80+'-'+_0x15373e[_0xd94a77(0x21e)]+'-'+_0x44889a,_0x24597c,void 0x0,_0x107ea3)));}function Ye(_0x2cbfcb,_0x176c20,_0x135b9b){const _0x3c7554=_0x27a183,_0x329dab={..._0x2cbfcb['attrs']};_0x135b9b!=null&&_0x135b9b[_0x3c7554(0x31b)]&&_0x329dab[_0x3c7554(0x27a)]==='colorChannel1'&&(_0x329dab[_0x3c7554(0x27a)]=_0x135b9b['colorChannel1']),_0x2cbfcb[_0x3c7554(0x21e)]==='mask'&&_0x329dab['id']&&(_0x329dab['id']=_0x329dab['id']+_0x176c20[_0x3c7554(0x2a0)]),Object['entries'](_0x329dab)[_0x3c7554(0x1f8)](([_0x94a497,_0x3e8f28])=>{const _0x46f06a=_0x3c7554;_0x94a497===_0x46f06a(0x2b3)&&typeof _0x3e8f28==_0x46f06a(0x220)&&(_0x329dab[_0x94a497]=_0x3e8f28[_0x46f06a(0x2e5)](/url\(#(.*)\)/,_0x46f06a(0x32c)+_0x176c20['idSuffix']+')'));});const {defIds:_0x3300ee}=_0x176c20;return!_0x3300ee||_0x3300ee[_0x3c7554(0x299)]===0x0||(_0x2cbfcb[_0x3c7554(0x21e)]===_0x3c7554(0x2bc)&&_0x329dab[_0x3c7554(0x303)]&&(_0x329dab[_0x3c7554(0x303)]=_0x329dab['xlink:href']+_0x176c20[_0x3c7554(0x2a0)]),Object[_0x3c7554(0x320)](_0x329dab)[_0x3c7554(0x1f8)](([_0x229c21,_0x9a8cd6])=>{const _0x566b94=_0x3c7554;typeof _0x9a8cd6==_0x566b94(0x220)&&(_0x329dab[_0x229c21]=_0x9a8cd6[_0x566b94(0x2e5)](/url\(#(.*)\)/,_0x566b94(0x32c)+_0x176c20['idSuffix']+')'));})),_0x329dab;}function Ze(_0x12709c,_0x284484){const _0x204d38=_0x27a183;var _0x1e3ce3;const {defIds:_0x38d33b}=_0x284484;return!_0x38d33b||_0x38d33b['length']===0x0?_0x12709c:_0x12709c[_0x204d38(0x21e)]===_0x204d38(0x2dd)&&((_0x1e3ce3=_0x12709c['children'])!=null&&_0x1e3ce3['length'])?{..._0x12709c,'children':_0x12709c['children'][_0x204d38(0x319)](_0x5cf373=>typeof _0x5cf373[_0x204d38(0x25b)]['id']==_0x204d38(0x220)&&_0x38d33b&&_0x38d33b['includes'](_0x5cf373[_0x204d38(0x25b)]['id'])?{..._0x5cf373,'attrs':{..._0x5cf373[_0x204d38(0x25b)],'id':_0x5cf373['attrs']['id']+_0x284484['idSuffix']}}:_0x5cf373)}:_0x12709c;}function We(){const _0x372605=_0x27a183;return Math['random']()[_0x372605(0x281)](0x24)['substring'](0x2,0x8);}b[_0x27a183(0x24c)]=_0x27a183(0x332);const qe={'tag':_0x27a183(0x244),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x27a183(0x327),'viewBox':_0x27a183(0x205),'width':'1em','height':_0x27a183(0x242)},'children':[{'tag':_0x27a183(0x295),'attrs':{'fill':_0x27a183(0x2b6),'d':'M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','fillRule':'evenodd','clipRule':_0x27a183(0x334)}}]},le=_0x6194bc(function(_0x3a04f4,_0x378396){const _0x58e0e8=_0x27a183;return _0x5a0c31(b,Object[_0x58e0e8(0x1fb)]({},_0x3a04f4,{'id':_0x58e0e8(0x2c7),'ref':_0x378396,'icon':qe}));});le['displayName']=_0x27a183(0x258);const Xe={'tag':_0x27a183(0x244),'attrs':{'xmlns':_0x27a183(0x27c),'fill':_0x27a183(0x327),'viewBox':_0x27a183(0x205),'width':_0x27a183(0x242),'height':_0x27a183(0x242)},'children':[{'tag':_0x27a183(0x295),'attrs':{'fill':_0x27a183(0x2b6),'d':'M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z'}}]},ue=_0x6194bc(function(_0x3b9c76,_0x13271f){const _0x3f562d=_0x27a183;return _0x5a0c31(b,Object[_0x3f562d(0x1fb)]({},_0x3b9c76,{'id':_0x3f562d(0x2cd),'ref':_0x13271f,'icon':Xe}));});ue[_0x27a183(0x24c)]='CloseIcon';const Je={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x27a183(0x327),'viewBox':_0x27a183(0x205),'width':_0x27a183(0x242),'height':'1em'},'children':[{'tag':_0x27a183(0x295),'attrs':{'fill':'currentColor','d':_0x27a183(0x268)}},{'tag':_0x27a183(0x295),'attrs':{'fill':'currentColor','d':_0x27a183(0x20a)}},{'tag':_0x27a183(0x295),'attrs':{'fill':'currentColor','d':_0x27a183(0x2c0),'fillRule':_0x27a183(0x334),'clipRule':_0x27a183(0x334)}}]},ve=_0x6194bc(function(_0x1e2c82,_0x1ad425){const _0x43d01c=_0x27a183;return _0x5a0c31(b,Object['assign']({},_0x1e2c82,{'id':_0x43d01c(0x26d),'ref':_0x1ad425,'icon':Je}));});ve['displayName']=_0x27a183(0x2de);const Qe={'tag':_0x27a183(0x244),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x27a183(0x327),'viewBox':_0x27a183(0x205),'width':_0x27a183(0x242),'height':_0x27a183(0x242)},'children':[{'tag':'g','attrs':{'clipPath':_0x27a183(0x2af)},'children':[{'tag':_0x27a183(0x295),'attrs':{'stroke':_0x27a183(0x2b6),'d':_0x27a183(0x266),'strokeLinecap':_0x27a183(0x2e1),'strokeLinejoin':_0x27a183(0x2e1),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x27a183(0x2fb),'attrs':{'id':_0x27a183(0x23d)},'children':[{'tag':_0x27a183(0x295),'attrs':{'fill':'white','d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x27a183(0x23d)]},de=_0x6194bc(function(_0x218406,_0x1fcf22){const _0x73826f=_0x27a183;return _0x5a0c31(b,Object[_0x73826f(0x1fb)]({},_0x218406,{'id':_0x73826f(0x29b),'ref':_0x1fcf22,'icon':Qe}));});de['displayName']=_0x27a183(0x2bb);function _0x9a99(_0x4914fb,_0xe7107){_0x4914fb=_0x4914fb-0x1ea;const _0x5c23a7=_0x5c23();let _0x9a995=_0x5c23a7[_0x4914fb];return _0x9a995;}const en={'tag':'svg','attrs':{'xmlns':_0x27a183(0x27c),'fill':'none','viewBox':_0x27a183(0x30c),'width':_0x27a183(0x242),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x27a183(0x21b)},'children':[{'tag':_0x27a183(0x295),'attrs':{'stroke':_0x27a183(0x2b6),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x27a183(0x2e1),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x27a183(0x2fb),'attrs':{'id':_0x27a183(0x329)},'children':[{'tag':'path','attrs':{'fill':_0x27a183(0x2da),'d':'M0\x200H16V16H0z','transform':_0x27a183(0x246)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},ge=_0x6194bc(function(_0xbf3561,_0x246839){const _0x556bbf=_0x27a183;return _0x5a0c31(b,Object[_0x556bbf(0x1fb)]({},_0xbf3561,{'id':_0x556bbf(0x2c9),'ref':_0x246839,'icon':en}));});ge[_0x27a183(0x24c)]=_0x27a183(0x1ed);function nn(_0x13036a){const _0x5c97db=_0x27a183;var _0x4bd727,_0x421dbf;const {mcpCoreConfig:_0x3ae59e,onSave:_0x3798ed,loading:_0x44b8d4=!0x1,config:_0x4f35c5,connectionStatus$:_0x507492,connectionError$:_0x59a3f3,currentApiKey$:_0x10bbeb,currentSessionId$:_0x2b3bbf}=_0x13036a,_0xa7530b=_0x54afd4(_0x12a90e),_0x2ed689=_0x373941(_0x507492,_0x5a64c1[_0x5c97db(0x308)]),_0x3a1512=_0x373941(_0x59a3f3,_0x5a2515[_0x5c97db(0x31d)]),_0x5a7423=_0x373941(_0x2b3bbf,''),_0xa31251=_0x373941(_0x10bbeb,''),[_0xf93b75,_0x247720]=_0x39c8d3(_0xa31251||''),_0x13c68b=!0x0,_0x4d7acd=_0x4f35c5[_0x5c97db(0x2cc)]&&_0x3ae59e[_0x5c97db(0x304)]&&(_0x3ae59e[_0x5c97db(0x304)]['includes'](_0x5c97db(0x2a3))||_0x3ae59e[_0x5c97db(0x304)][_0x5c97db(0x27b)]('univer.ai')),_0x2e10f3=(_0x4bd727=_0x3ae59e[_0x5c97db(0x304)])==null?void 0x0:_0x4bd727['includes'](_0x5c97db(0x2a3)),_0xf7f7a3=(_0x421dbf=_0x3ae59e[_0x5c97db(0x304)])==null?void 0x0:_0x421dbf['includes'](_0x5c97db(0x228)),_0x253e7d=_0x2e10f3?'https://console.univer.plus':_0x5c97db(0x27f),_0x38e371=_0x4f35c5[_0x5c97db(0x2cc)]&&(_0x2e10f3||_0xf7f7a3),[_0x138750,_0x8f4359]=_0x39c8d3(!_0xf93b75[_0x5c97db(0x207)]()),_0x495af6=(_0x1c5a90,_0x196576)=>{const _0x434004=_0x5c97db;if(_0x196576===_0x5a2515[_0x434004(0x31f)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x1c5a90){case _0x5a64c1[_0x434004(0x1fc)]:return _0x434004(0x213);case _0x5a64c1[_0x434004(0x2cf)]:case _0x5a64c1[_0x434004(0x26b)]:return _0x434004(0x265);case _0x5a64c1[_0x434004(0x2fa)]:return _0x434004(0x236);default:return _0x434004(0x2c6);}},_0x24a3f7=(_0x1ef7f5,_0x274db3)=>{const _0x2104b0=_0x5c97db;if(_0x274db3===_0x5a2515['UNAUTHORIZED'])return _0x2104b0(0x21c);switch(_0x1ef7f5){case _0x5a64c1['CONNECTED']:return _0x2104b0(0x2eb);case _0x5a64c1[_0x2104b0(0x2cf)]:case _0x5a64c1[_0x2104b0(0x26b)]:return _0x2104b0(0x2a6);case _0x5a64c1[_0x2104b0(0x2fa)]:return _0x2104b0(0x21c);default:return _0x2104b0(0x204);}},_0x333586=_0x18282d=>{const _0x27e9f7=_0x5c97db;switch(_0x18282d){case _0x5a64c1[_0x27e9f7(0x1fc)]:return _0xa7530b['t']('mcpConfig.connectionStatus.connected');case _0x5a64c1[_0x27e9f7(0x2cf)]:return _0xa7530b['t'](_0x27e9f7(0x331));case _0x5a64c1[_0x27e9f7(0x2fa)]:return _0xa7530b['t']('mcpConfig.connectionStatus.failed');case _0x5a64c1[_0x27e9f7(0x26b)]:return _0xa7530b['t'](_0x27e9f7(0x318));default:return _0xa7530b['t'](_0x27e9f7(0x253));}},_0x1a8716=_0x321311=>{const _0x298334=_0x5c97db;switch(_0x321311){case _0x5a2515[_0x298334(0x31f)]:return _0xa7530b['t'](_0x298334(0x1eb));case _0x5a2515['SESSION_ID_OCCUPIED']:return _0xa7530b['t'](_0x298334(0x28c));case _0x5a2515[_0x298334(0x23b)]:return _0xa7530b['t']('mcpConfig.connectionError.networkError');case _0x5a2515['MAX_RETRIES_EXCEEDED']:return _0xa7530b['t'](_0x298334(0x2e4));default:return'';}},_0x21aaa8=_0x2b4e47(()=>{const _0x3a6ba8=_0x5c97db,_0x5f3e7e={..._0x3ae59e,'apiKey':_0xf93b75[_0x3a6ba8(0x207)](),'enableAuth':_0x13c68b};_0x3798ed(_0x5f3e7e);},[_0x3ae59e,_0xf93b75,_0x13c68b,_0x3798ed]),_0x13cc4f=_0xf93b75[_0x5c97db(0x207)]()[_0x5c97db(0x299)]>0x0;return _0x5df6e5(_0x5c97db(0x28b),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[_0xdd9af1(_0x5c97db(0x28b),{'className':_0x5c97db(0x240),'children':_0x5df6e5(_0x5c97db(0x28b),{'className':_0x5c97db(0x2cb),'children':[_0xdd9af1(_0x5c97db(0x28b),{'className':_0x5c97db(0x280),'children':_0xdd9af1(_0x5c97db(0x2f3),{'className':_0x5c97db(0x29c),'children':'⚙'})}),_0xdd9af1(_0x5c97db(0x28b),{'children':_0xdd9af1('p',{'className':_0x5c97db(0x2ae),'children':_0xa7530b['t'](_0x5c97db(0x250))})})]})}),_0x5df6e5(_0x5c97db(0x28b),{'className':_0x5c97db(0x32e),'children':[_0xdd9af1(_0x5c97db(0x28b),{'className':_0x4d43d9(_0x5c97db(0x2ce),_0x495af6(_0x2ed689,_0x3a1512)),'children':_0x5df6e5(_0x5c97db(0x28b),{'className':_0x5c97db(0x22b),'children':[_0xdd9af1('div',{'className':_0x4d43d9('univer-size-2\x20univer-rounded-full',_0x24a3f7(_0x2ed689,_0x3a1512))}),_0xdd9af1(_0x5c97db(0x2f3),{'className':_0x5c97db(0x30f),'children':_0x333586(_0x2ed689)})]})}),_0x3a1512!==_0x5a2515['NONE']&&(_0x2ed689===_0x5a64c1[_0x5c97db(0x2fa)]||_0x3a1512===_0x5a2515[_0x5c97db(0x31f)])&&_0xdd9af1(_0x5c97db(0x28b),{'className':_0x5c97db(0x2ad),'children':_0x5df6e5('div',{'className':_0x5c97db(0x2b1),'children':[_0xdd9af1(_0x5c97db(0x2f3),{'className':'univer-shrink-0\x20univer-text-red-500','children':'⚠️'}),_0xdd9af1('p',{'className':_0x5c97db(0x2d8),'children':_0x1a8716(_0x3a1512)})]})})]}),_0xdd9af1(_0x5c97db(0x28b),{'className':_0x5c97db(0x208),'children':_0x5df6e5(_0x5c97db(0x28b),{'className':_0x5c97db(0x25c),'children':[_0x5df6e5('div',{'className':_0x5c97db(0x2a2),'children':[_0x5df6e5('label',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0xdd9af1(_0x5c97db(0x2f3),{'children':'🔑'}),'\x20',_0xa7530b['t'](_0x5c97db(0x30b)),_0xdd9af1(_0x5c97db(0x2f3),{'className':_0x5c97db(0x201),'children':'*'}),_0x4d7acd&&_0xdd9af1('a',{'className':_0x5c97db(0x203),'title':_0xa7530b['t'](_0x5c97db(0x219)),'role':_0x5c97db(0x2c8),'onClick':()=>_0x8f4359(!0x0),'children':_0xdd9af1(ve,{})})]}),_0xdd9af1(_0x2b6ceb,{'type':_0x5c97db(0x2d2),'placeholder':_0xa7530b['t'](_0x5c97db(0x29f)),'value':_0xf93b75,'disabled':_0x44b8d4,'autoComplete':_0x5c97db(0x23f),'onChange':_0x247720}),_0xdd9af1('p',{'className':_0x5c97db(0x28f),'children':_0xa7530b['t'](_0x5c97db(0x296))})]}),_0x4d7acd&&_0x138750&&_0x5df6e5(_0x5c97db(0x28b),{'className':_0x5c97db(0x27d),'children':[_0xdd9af1('a',{'className':_0x5c97db(0x232),'role':_0x5c97db(0x2c8),'onClick':()=>_0x8f4359(!0x1),'children':_0xdd9af1(ue,{'className':'univer-size-4'})}),_0x5df6e5(_0x5c97db(0x28b),{'className':_0x5c97db(0x294),'children':[_0xdd9af1('div',{'className':_0x5c97db(0x322),'children':_0xdd9af1(_0x5c97db(0x2f3),{'className':_0x5c97db(0x2e2),'children':'🚀'})}),_0x5df6e5(_0x5c97db(0x28b),{'className':_0x5c97db(0x2ee),'children':[_0xdd9af1('h4',{'className':_0x5c97db(0x301),'children':_0xa7530b['t']('mcpConfig.apiApplyInfo.title')}),_0xdd9af1('p',{'className':_0x5c97db(0x1f2),'children':_0xa7530b['t'](_0x5c97db(0x2f8))}),_0xdd9af1(_0x5c97db(0x28b),{'className':_0x5c97db(0x33f),'children':_0x38e371&&_0x5df6e5('a',{'className':_0x5c97db(0x2f4),'href':_0x253e7d,'target':_0x5c97db(0x245),'rel':_0x5c97db(0x237),'children':[_0xdd9af1(_0x5c97db(0x2f3),{'children':'🤖'}),_0xa7530b['t']('mcpConfig.apiApplyInfo.univerAiLabel'),_0xdd9af1(_0x5c97db(0x2f3),{'className':_0x5c97db(0x333),'children':'↗'})]})}),_0x5df6e5('div',{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0xa7530b['t'](_0x5c97db(0x2d0))]})]})]})]}),_0x4f35c5[_0x5c97db(0x2cc)]&&_0x5df6e5('div',{'className':_0x5c97db(0x305),'children':[_0x5df6e5('h4',{'className':_0x5c97db(0x288),'children':[_0xdd9af1(_0x5c97db(0x2f3),{'children':'🔗'}),'\x20',_0xa7530b['t'](_0x5c97db(0x2ea))]}),_0x5df6e5(_0x5c97db(0x28b),{'className':_0x5c97db(0x2be),'children':[_0x5df6e5(_0x5c97db(0x28b),{'className':_0x5c97db(0x224),'children':[_0xdd9af1('p',{'className':_0x5c97db(0x33e),'children':_0xa7530b['t']('mcpConfig.configInstructions')}),_0x5df6e5(_0x5c97db(0x28b),{'className':_0x5c97db(0x2a2),'children':[_0xdd9af1('div',{'className':_0x5c97db(0x30e),'children':_0xa7530b['t']('mcpConfig.configStepTitle')}),_0x5df6e5(_0x5c97db(0x28b),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[_0x5df6e5(_0x5c97db(0x28b),{'className':_0x5c97db(0x22b),'children':[_0xdd9af1(_0x5c97db(0x2f3),{'className':_0x5c97db(0x287),'children':'1'}),_0xa7530b['t']('mcpConfig.configStep1')]}),_0x5df6e5(_0x5c97db(0x28b),{'className':_0x5c97db(0x22b),'children':[_0xdd9af1(_0x5c97db(0x2f3),{'className':_0x5c97db(0x287),'children':'2'}),_0xa7530b['t'](_0x5c97db(0x1fd))]}),_0x5df6e5(_0x5c97db(0x28b),{'className':_0x5c97db(0x22b),'children':[_0xdd9af1('span',{'className':_0x5c97db(0x287),'children':'3'}),_0xa7530b['t'](_0x5c97db(0x212))]})]})]})]}),_0x5df6e5(_0x5c97db(0x28b),{'className':'univer-space-y-2','children':[_0xdd9af1(_0x5c97db(0x28b),{'className':_0x5c97db(0x30e),'children':_0x5c97db(0x22a)}),_0xdd9af1(_0x5c97db(0x28b),{'className':_0x5c97db(0x2c4),'children':_0xdd9af1(_0x5c97db(0x1f3),{'className':_0x5c97db(0x241),'children':JSON['stringify']({'mcpServers':{'univer':{'url':_0x5c97db(0x282)+(_0x5a7423||_0x5c97db(0x337)),'type':'http','headers':{'Authorization':_0x5c97db(0x2d5)+(_0xf93b75||_0x5c97db(0x26a))}}}},null,0x2)})})]}),_0x5df6e5(_0x5c97db(0x28b),{'className':_0x5c97db(0x224),'children':[_0xdd9af1('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0xa7530b['t'](_0x5c97db(0x200))}),_0x5df6e5('div',{'className':_0x5c97db(0x2a2),'children':[_0x5df6e5('div',{'className':_0x5c97db(0x26f),'children':[_0xdd9af1(_0x5c97db(0x28b),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x5df6e5(_0x5c97db(0x28b),{'className':'univer-min-w-0\x20univer-flex-1','children':[_0xdd9af1(_0x5c97db(0x28b),{'className':_0x5c97db(0x1f0),'children':_0x5c97db(0x317)}),_0xdd9af1('div',{'className':_0x5c97db(0x28f),'children':_0xa7530b['t'](_0x5c97db(0x286))})]})]}),_0x5df6e5('div',{'className':_0x5c97db(0x26f),'children':[_0xdd9af1(_0x5c97db(0x28b),{'className':_0x5c97db(0x259)}),_0x5df6e5(_0x5c97db(0x28b),{'className':_0x5c97db(0x315),'children':[_0xdd9af1(_0x5c97db(0x28b),{'className':_0x5c97db(0x1f0),'children':'Authorization:'}),_0xdd9af1('div',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0xa7530b['t'](_0x5c97db(0x261))})]})]})]})]})]})]}),_0xdd9af1(_0x1b360e,{'onClick':_0x21aaa8,'disabled':!_0x13cc4f||_0x44b8d4,'className':_0x5c97db(0x31a),'children':_0x44b8d4?_0x5df6e5(_0x5c97db(0x2f3),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0xdd9af1(_0x5c97db(0x2f3),{'children':'⟲'}),_0xa7530b['t']('mcpConfig.saving')]}):_0x5df6e5('span',{'className':_0x5c97db(0x22b),'children':[_0xdd9af1(le,{}),_0xa7530b['t'](_0x5c97db(0x2d7))]})}),_0xdd9af1(_0x5c97db(0x28b),{'className':_0x5c97db(0x336),'children':_0x5df6e5('div',{'className':_0x5c97db(0x33b),'children':[_0xdd9af1('span',{'className':_0x5c97db(0x28d),'children':'💡'}),_0x5df6e5(_0x5c97db(0x28b),{'className':_0x5c97db(0x289),'children':[_0xdd9af1(_0x5c97db(0x28b),{'className':_0x5c97db(0x254),'children':'Configuration\x20Notes:'}),_0x5df6e5(_0x5c97db(0x28b),{'children':['•',_0xa7530b['t'](_0x5c97db(0x2a9))]}),_0x5df6e5(_0x5c97db(0x28b),{'children':['•',_0xa7530b['t'](_0x5c97db(0x264))]})]})]})})]})})]});}const y=_0x27a183(0x291),ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object['getOwnPropertyDescriptor'],tn=(_0x2f7220,_0x40e0a3,_0x47d8bc,_0x56a56b)=>{const _0x2c7a6c=_0x27a183;for(var _0x2480dd=_0x56a56b>0x1?void 0x0:_0x56a56b?rn(_0x40e0a3,_0x47d8bc):_0x40e0a3,_0x199452=_0x2f7220[_0x2c7a6c(0x299)]-0x1,_0x26d68a;_0x199452>=0x0;_0x199452--)(_0x26d68a=_0x2f7220[_0x199452])&&(_0x2480dd=_0x26d68a(_0x2480dd)||_0x2480dd);return _0x2480dd;},d=(_0x4b26d4,_0x474f67)=>(_0x53c5cb,_0x31acc2)=>_0x474f67(_0x53c5cb,_0x31acc2,_0x4b26d4);const U=_0x27a183(0x273),L=_0x27a183(0x23a);let I=class extends _0x458cd8{constructor(_0x3d70d0,_0x3fbfc3,_0x4ccda8,_0x2a8b28,_0x55fef6,_0x15dce5,_0x4eeef1,_0x5e4209,_0xf266d8,_0x32757e){const _0x3d5722=_0x27a183;super(),x(this,_0x3d5722(0x2ef),new _0x3dbe3d(!0x1)),x(this,_0x3d5722(0x33c),new _0x3dbe3d({})),x(this,_0x3d5722(0x313),new _0x3dbe3d({})),x(this,_0x3d5722(0x2d6),new _0x3dbe3d('')),x(this,'_handleConfigSave',async _0x4a5f0f=>{const _0x3e1e46=_0x3d5722;var _0x3613e0,_0x4cf0e0;this[_0x3e1e46(0x2ef)][_0x3e1e46(0x2a8)](!0x0);try{const _0x34f795=await this[_0x3e1e46(0x257)](_0x4a5f0f);if(!_0x34f795[_0x3e1e46(0x292)]){this['_messageService'][_0x3e1e46(0x297)]({'type':_0x52d49b['Error'],'content':_0x34f795[_0x3e1e46(0x316)]||this[_0x3e1e46(0x262)]['t'](_0x3e1e46(0x2c2))});return;}_0x4a5f0f[_0x3e1e46(0x1ee)]?await this[_0x3e1e46(0x243)][_0x3e1e46(0x206)](U,_0x4a5f0f[_0x3e1e46(0x1ee)][_0x3e1e46(0x207)]()):await this[_0x3e1e46(0x243)]['removeItem'](U),this[_0x3e1e46(0x2d6)][_0x3e1e46(0x2a8)](((_0x3613e0=_0x4a5f0f[_0x3e1e46(0x1ee)])==null?void 0x0:_0x3613e0[_0x3e1e46(0x207)]())||''),this['_mcpConnectionController']['__setCustomHeaders']({'Authorization':'Bearer\x20'+((_0x4cf0e0=_0x4a5f0f['apiKey'])==null?void 0x0:_0x4cf0e0['trim']())}),this['_messageService']['show']({'type':_0x52d49b['Success'],'content':this[_0x3e1e46(0x262)]['t'](_0x3e1e46(0x290))}),setTimeout(()=>{this['_dialogService']['close'](L);},0x320);}catch(_0x349120){this[_0x3e1e46(0x2e3)][_0x3e1e46(0x279)](_0x3e1e46(0x341),_0x349120),this[_0x3e1e46(0x2a5)][_0x3e1e46(0x297)]({'type':_0x52d49b['Error'],'content':this[_0x3e1e46(0x262)]['t'](_0x3e1e46(0x2f6))});}finally{this[_0x3e1e46(0x2ef)][_0x3e1e46(0x2a8)](!0x1);}}),(this[_0x3d5722(0x2e8)]=_0x3d70d0,this[_0x3d5722(0x335)]=_0x3fbfc3,this[_0x3d5722(0x23c)]=_0x4ccda8,this[_0x3d5722(0x243)]=_0x2a8b28,this[_0x3d5722(0x255)]=_0x55fef6,this['_messageService']=_0x15dce5,this['_componentManager']=_0x4eeef1,this[_0x3d5722(0x262)]=_0x5e4209,this[_0x3d5722(0x2e3)]=_0xf266d8,this[_0x3d5722(0x2f9)]=_0x32757e,this[_0x3d5722(0x314)](),this['_loadStoredApiKey'](),this['_registerComponent']());}[_0x27a183(0x248)](){const _0x36b9a5=_0x27a183,_0x233b77=this['_configService'][_0x36b9a5(0x2d1)](y);_0x233b77!=null&&_0x233b77['showDeveloperTools']&&this[_0x36b9a5(0x255)]['open']({'id':L,'title':{'title':this[_0x36b9a5(0x262)]['t'](_0x36b9a5(0x223))},'children':{'label':_0x36b9a5(0x269)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x270366=_0x36b9a5;this[_0x270366(0x255)]['close'](L);}});}[_0x27a183(0x2b2)](){const _0x5a4d86=_0x27a183;return this[_0x5a4d86(0x33c)][_0x5a4d86(0x29a)];}[_0x27a183(0x29d)](){const _0x57a378=_0x27a183;this['disposeWithMe'](this['_componentManager']['register']('MCPConfigPanel',this[_0x57a378(0x20b)]()));}[_0x27a183(0x20b)](){const _0xcf31e3=_0x27a183;return _0x45d08a(()=>{const _0x329e85=_0x9a99;var _0x263a6b,_0x274fbb,_0x44f24e;return _0xdd9af1(nn,{'config':this[_0x329e85(0x313)][_0x329e85(0x29a)],'mcpCoreConfig':this[_0x329e85(0x33c)][_0x329e85(0x29a)],'currentApiKey$':this[_0x329e85(0x2d6)],'onSave':this['_handleConfigSave'],'loading':this['_loading$'][_0x329e85(0x29a)],'connectionStatus$':(_0x263a6b=this[_0x329e85(0x2f9)])==null?void 0x0:_0x263a6b['connectionStatus$'],'connectionError$':(_0x274fbb=this['_mcpConnectionController'])==null?void 0x0:_0x274fbb[_0x329e85(0x2a4)],'currentSessionId$':(_0x44f24e=this[_0x329e85(0x2f9)])==null?void 0x0:_0x44f24e['sessionId$']});},this[_0xcf31e3(0x2e8)]);}[_0x27a183(0x314)](){const _0x2b2a1f=_0x27a183;this[_0x2b2a1f(0x298)](this[_0x2b2a1f(0x23c)]['subscribeConfigValue$'](_0x10ae38)['subscribe'](_0x253a8f=>{const _0x434505=_0x2b2a1f;this[_0x434505(0x33c)][_0x434505(0x2a8)](_0x253a8f||{});}));const _0x308240=this[_0x2b2a1f(0x23c)][_0x2b2a1f(0x2d1)](_0x10ae38);this[_0x2b2a1f(0x33c)]['next'](_0x308240||{}),this['disposeWithMe'](this[_0x2b2a1f(0x23c)][_0x2b2a1f(0x2d9)](y)[_0x2b2a1f(0x2e7)](_0x34af36=>{this['_config$']['next'](_0x34af36||{});}));const _0x1ad9b2=this['_configService'][_0x2b2a1f(0x2d1)](y);this[_0x2b2a1f(0x313)][_0x2b2a1f(0x2a8)](_0x1ad9b2||{});}async['_loadStoredApiKey'](){const _0x5264d0=_0x27a183,_0x5ef9f2=this[_0x5264d0(0x23c)][_0x5264d0(0x2d1)](y);if(!(_0x5ef9f2!=null&&_0x5ef9f2[_0x5264d0(0x2cc)]))return;const _0x19f816=await this[_0x5264d0(0x243)][_0x5264d0(0x251)](U);_0x19f816&&(this[_0x5264d0(0x2f9)]['__setCustomHeaders']({'Authorization':_0x5264d0(0x2d5)+_0x19f816}),this[_0x5264d0(0x2d6)][_0x5264d0(0x2a8)](_0x19f816));}async['_validateConfig'](_0x49b73d){const _0x1bfff8=_0x27a183;if(!_0x49b73d[_0x1bfff8(0x1ee)]||_0x49b73d[_0x1bfff8(0x1ee)]['trim']()[_0x1bfff8(0x299)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x1bfff8(0x262)]['t'](_0x1bfff8(0x2f2))};if(_0x49b73d['apiKey'][_0x1bfff8(0x207)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0x1bfff8(0x262)]['t'](_0x1bfff8(0x2f1))};try{const _0x47ed19=await this[_0x1bfff8(0x2e8)]['get'](_0x48ed4e)[_0x1bfff8(0x25e)](_0x49b73d[_0x1bfff8(0x1ee)][_0x1bfff8(0x207)]());return _0x47ed19[_0x1bfff8(0x292)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x47ed19[_0x1bfff8(0x279)]||this[_0x1bfff8(0x262)]['t'](_0x1bfff8(0x31e))};}catch(_0x6646eb){return console[_0x1bfff8(0x252)](_0x1bfff8(0x235),_0x6646eb),{'isValid':!0x0};}}};I=tn([d(0x0,_0x2bfdb1(_0x10c17c)),d(0x1,_0x5ed0f7),d(0x2,_0x59461e),d(0x3,_0x4bff31),d(0x4,_0x10e687),d(0x5,_0x1e57ef),d(0x6,_0x2bfdb1(_0x1d82f5)),d(0x7,_0x2bfdb1(_0x12a90e)),d(0x8,_0x303276),d(0x9,_0x2bfdb1(_0x48ed4e))],I);const V={'id':_0x27a183(0x307),'type':_0x272bec[_0x27a183(0x2e0)],'handler':async(_0x330144,_0x16f29d)=>(_0x330144[_0x27a183(0x2fc)](I)[_0x27a183(0x248)](),!0x0)};function pe(_0x4639c2,_0x535600){const _0xdbfc32=_0x27a183;switch(_0x4639c2){case _0x5a64c1[_0xdbfc32(0x308)]:return _0xdbfc32(0x1f5);case _0x5a64c1[_0xdbfc32(0x2cf)]:return _0xdbfc32(0x210);case _0x5a64c1[_0xdbfc32(0x1fc)]:return _0xdbfc32(0x21a);case _0x5a64c1[_0xdbfc32(0x2fa)]:switch(_0x535600){case _0x5a2515[_0xdbfc32(0x31f)]:return _0xdbfc32(0x217);case _0x5a2515[_0xdbfc32(0x33a)]:return _0xdbfc32(0x24f);case _0x5a2515[_0xdbfc32(0x23b)]:return _0xdbfc32(0x20e);case _0x5a2515[_0xdbfc32(0x2a7)]:return _0xdbfc32(0x21f);default:return _0xdbfc32(0x309);}case _0x5a64c1[_0xdbfc32(0x26b)]:return _0xdbfc32(0x2c1);default:return'mcpStatus.unknown';}}function on(_0x3be312,_0x26cfc2,_0x27a638,_0x42534e=!0x0){const _0x1f0d20=_0x27a183,_0x3d30d7=pe(_0x3be312,_0x26cfc2),_0x33a087=_0x27a638['t'](_0x3d30d7);return _0x42534e?_0x3be312===_0x5a64c1[_0x1f0d20(0x308)]&&_0x26cfc2===_0x5a2515[_0x1f0d20(0x31f)]?_0x33a087+_0x1f0d20(0x1ea)+_0x27a638['t'](_0x1f0d20(0x2c3)):_0x3be312===_0x5a64c1[_0x1f0d20(0x1fc)]?''+_0x33a087:_0x3be312===_0x5a64c1['DISCONNECTED']||_0x3be312===_0x5a64c1[_0x1f0d20(0x2fa)]?_0x33a087+'\x20-\x20'+_0x27a638['t'](_0x1f0d20(0x2ac)):_0x33a087:_0x33a087;}function sn(_0x34b21a){const _0x4490f7=_0x27a183;switch(_0x34b21a){case _0x5a64c1[_0x4490f7(0x1fc)]:return _0x4490f7(0x276);case _0x5a64c1[_0x4490f7(0x2cf)]:case _0x5a64c1[_0x4490f7(0x26b)]:return _0x4490f7(0x260);case _0x5a64c1['FAILED']:case _0x5a64c1[_0x4490f7(0x308)]:return _0x4490f7(0x201);default:return _0x4490f7(0x283);}}function cn(_0x42126a){const _0x1734ca=_0x27a183,{status$:_0x323f8c,error$:_0xad8aca,onConfigure:_0x3be698,showClickable:_0x436314=!0x0}=_0x42126a,_0x2119d3=_0x373941(_0x323f8c,_0x5a64c1['DISCONNECTED']),_0x26c7bc=_0x373941(_0xad8aca,_0x5a2515['NONE']),_0x34a704=_0x54afd4(_0x12a90e),_0x16a557=_0x2119d3===_0x5a64c1[_0x1734ca(0x1fc)];_0x2119d3===_0x5a64c1['CONNECTING']||_0x5a64c1[_0x1734ca(0x26b)];const _0x406e8f=_0x34a704['t'](pe(_0x2119d3,_0x26c7bc)),_0xc16d74=on(_0x2119d3,_0x26c7bc,_0x34a704,_0x436314),_0x33b9d3=sn(_0x2119d3),_0x5b664d=_0x16a557?_0xdd9af1(ge,{}):_0xdd9af1(de,{}),_0xf09846=_0x2b4e47(()=>{_0x436314&&_0x3be698&&_0x3be698();},[_0x436314,_0x3be698]);function _0x218114(){const _0x50d9e1=_0x1734ca;return _0x5df6e5(_0x50d9e1(0x28b),{'className':_0x4d43d9(_0x50d9e1(0x2e9),_0x436314&&_0x3be698&&_0x50d9e1(0x221)),'role':_0x50d9e1(0x2c8),'onClick':_0x436314&&_0x3be698?_0xf09846:void 0x0,'children':[_0xdd9af1(_0x50d9e1(0x28b),{'className':_0x4d43d9(_0x50d9e1(0x270),_0x33b9d3),'children':_0x5b664d}),_0xdd9af1(_0x50d9e1(0x28b),{'className':_0x50d9e1(0x216),'children':_0x406e8f})]});}return _0xdd9af1(_0x5b4aac,{'title':_0xc16d74,'placement':_0x1734ca(0x26c),'children':_0x218114()});}var an=Object['getOwnPropertyDescriptor'],ln=(_0x4d29e9,_0x5ae13e,_0x3555ec,_0x4d7ef6)=>{const _0x16516c=_0x27a183;for(var _0x463ff4=_0x4d7ef6>0x1?void 0x0:_0x4d7ef6?an(_0x5ae13e,_0x3555ec):_0x5ae13e,_0x248a1a=_0x4d29e9[_0x16516c(0x299)]-0x1,_0x5c49a3;_0x248a1a>=0x0;_0x248a1a--)(_0x5c49a3=_0x4d29e9[_0x248a1a])&&(_0x463ff4=_0x5c49a3(_0x463ff4)||_0x463ff4);return _0x463ff4;},M=(_0x41d537,_0x30bb45)=>(_0x4a741b,_0x53fb47)=>_0x30bb45(_0x4a741b,_0x53fb47,_0x41d537);let O=class extends _0x458cd8{constructor(_0x429a92,_0x90e41d,_0x4c4720,_0x1bb544){const _0x120789=_0x27a183;super(),this[_0x120789(0x2e8)]=_0x429a92,this[_0x120789(0x1f9)]=_0x90e41d,this[_0x120789(0x335)]=_0x4c4720,this[_0x120789(0x23c)]=_0x1bb544,this[_0x120789(0x263)](),this[_0x120789(0x2f5)]();}[_0x27a183(0x263)](){const _0x15c6ff=_0x27a183,_0x39be0f=this[_0x15c6ff(0x23c)][_0x15c6ff(0x2d1)](y);_0x39be0f!=null&&_0x39be0f['showDeveloperTools']&&(this[_0x15c6ff(0x1f9)][_0x15c6ff(0x28a)]=!0x1);}[_0x27a183(0x2f5)](){const _0x287d10=_0x27a183,_0x2a32e0=this['_configService']['getConfig'](y);(_0x2a32e0==null?void 0x0:_0x2a32e0['showStatus'])!==!0x1&&this[_0x287d10(0x298)](this[_0x287d10(0x335)][_0x287d10(0x233)](_0x5cbc9f['HEADER_MENU'],()=>{const _0x23ddaa=_0x287d10;var _0x56e129;return _0x45d08a(un({'status$':this['_connectionController'][_0x23ddaa(0x2b8)],'error$':this[_0x23ddaa(0x1f9)][_0x23ddaa(0x2a4)],'onConfigure':()=>this[_0x23ddaa(0x302)](),'showClickable':(_0x56e129=_0x2a32e0==null?void 0x0:_0x2a32e0[_0x23ddaa(0x2cc)])!=null?_0x56e129:!0x1}),this[_0x23ddaa(0x2e8)]);}));}[_0x27a183(0x302)](){this['_injector']['get'](I)['showConfigPanel']();}};O=ln([M(0x0,_0x2bfdb1(_0x10c17c)),M(0x1,_0x2bfdb1(_0x48ed4e)),M(0x2,_0x5ed0f7),M(0x3,_0x59461e)],O);function un(_0x383373){const {status$:_0x5d2858,error$:_0x43c0d8,onConfigure:_0x225157,showClickable:_0x974c7}=_0x383373;return function(){return _0xdd9af1(cn,{'status$':_0x5d2858,'error$':_0x43c0d8,'onConfigure':_0x225157,'showClickable':_0x974c7});};}function vn(_0x2bdf3a){const _0x16db56=_0x27a183;return{'id':V['id'],'type':_0x1cd5b4[_0x16db56(0x271)],'icon':_0x16db56(0x25d),'title':_0x16db56(0x223),'tooltip':_0x16db56(0x223)};}const dn={[_0x1c89c8[_0x27a183(0x227)]]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object['getOwnPropertyDescriptor'],pn=(_0x37872c,_0x2501ea,_0x2ebec7,_0x318387)=>{const _0x4f3a9f=_0x27a183;for(var _0x1ec133=_0x318387>0x1?void 0x0:_0x318387?gn(_0x2501ea,_0x2ebec7):_0x2501ea,_0x9f13a5=_0x37872c[_0x4f3a9f(0x299)]-0x1,_0x572323;_0x9f13a5>=0x0;_0x9f13a5--)(_0x572323=_0x37872c[_0x9f13a5])&&(_0x1ec133=_0x572323(_0x1ec133)||_0x1ec133);return _0x1ec133;},re=(_0x11e1db,_0x2c04c2)=>(_0x2deaab,_0x3bc6a3)=>_0x2c04c2(_0x2deaab,_0x3bc6a3,_0x11e1db);let D=class extends _0x458cd8{constructor(_0x4ab08f,_0x3ced1b){const _0x13a0f2=_0x27a183;super(),this[_0x13a0f2(0x22d)]=_0x4ab08f,this['_menuManagerService']=_0x3ced1b,this[_0x13a0f2(0x2ec)](),this[_0x13a0f2(0x2dc)]();}['_initializeCommands'](){const _0x6aa328=_0x27a183;[V][_0x6aa328(0x1f8)](_0x32e5e6=>{const _0x21cd34=_0x6aa328;this[_0x21cd34(0x298)](this[_0x21cd34(0x22d)]['registerCommand'](_0x32e5e6));});}[_0x27a183(0x2dc)](){const _0x20ae56=_0x27a183;this[_0x20ae56(0x311)][_0x20ae56(0x24d)](dn);}};D=pn([re(0x0,_0x1d47d8),re(0x1,_0xef4c1e)],D);function _0x5c23(){const _0x213108=['noopener\x20noreferrer','API\x20密钥无效,请检查密钥是否正确','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','mcp-config-dialog','NETWORK_ERROR','_configService','off-line-icon_clip0_910_343','MCP:\x20超出最大重试次数','off','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','1em','_localStorageService','svg','_blank','translate(.97)','push','showConfigPanel','配置保存成功','您的\x20API\x20密钥安全存储在本地存储中','setConfig','displayName','mergeMenu','启用身份验证','mcpStatus.sessionOccupied','mcpConfig.description','getItem','warn','mcpConfig.connectionStatus.disconnected','univer-font-medium','_dialogService','Configuration\x20Steps:','_validateConfig','CheckMarkIcon','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','attrs','univer-space-y-5','MenuIcon','validateApiKey','MCP\x20Client\x20Configuration','univer-text-yellow-500','mcpConfig.authorizationDescription','_localeService','_initAutoConnect','mcpConfig.note2','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','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','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','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','MCPConfigPanel','<API_KEY>','RETRYING','bottom','help-icon','MCP:\x20未授权','univer-flex\x20univer-items-start\x20univer-gap-3','univer-mr-2\x20univer-flex\x20univer-text-xl','BUTTON','将以下配置添加到您的\x20MCP\x20客户端设置中:','mcp.apiKey','What\x20is\x20API\x20Key?','10ksgIMC','univer-text-green-500','配置无效','连接中...','error','fill','includes','http://www.w3.org/2000/svg','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','onStarting','https://console.univer.ai','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','toString','https://mcp.univer.ai/mcp/?univer_session_id=','univer-text-gray-500','current','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','mcpConfig.sessionIdDescription','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','enableAutoConnect','div','mcpConfig.connectionError.sessionOccupied','univer-shrink-0\x20univer-text-blue-500','MCP\x20Connecting...','univer-text-xs\x20univer-text-gray-500','mcpConfig.configSaved','mcp-ui.config','isValid','会话\x20ID\x20已被占用,请稍后再试','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','path','mcpConfig.apiKeyHint','show','disposeWithMe','length','value','off-line-icon','univer-text-white','_registerComponent','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','mcpConfig.apiKeyPlaceholder','idSuffix','_config','univer-space-y-2','univer.plus','connectionError$','_messageService','univer-bg-blue-500','MAX_RETRIES_EXCEEDED','next','mcpConfig.note1','MCP\x20Disconnected','MCP\x20状态未知','mcpStatus.clickToConnect','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','univer-text-sm\x20univer-text-gray-500','url(#off-line-icon_clip0_910_343)','MCP\x20连接失败','univer-flex\x20univer-items-start\x20univer-gap-2','getCurrentConfig','mask','网络连接错误,请检查您的网络连接','2694624EkGVsW','currentColor','MCP:\x20Unauthorized','connectionStatus$','symbol','重启您的\x20MCP\x20客户端以使配置生效','OffLineIcon','use','配置\x20MCP\x20使用\x20AI\x20操作电子表格','univer-space-y-4','Saving...','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','mcpStatus.retrying','mcpConfig.validation.invalidConfig','mcpStatus.clickToConfigure','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','API\x20密钥不能为空','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','check-mark-icon','button','on-line-icon','Connected','univer-flex\x20univer-items-center\x20univer-gap-3','showDeveloperTools','close-icon','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','CONNECTING','mcpConfig.apiApplyInfo.getStarted','getConfig','text','pluginName','已连接','Bearer\x20','_apiKey$','mcpConfig.save','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','subscribeConfigValue$','white','MCP\x20Retrying...','_initializeMenus','defs','HelpIcon','Enter\x20your\x20API\x20key','COMMAND','round','univer-text-blue-600','_logService','mcpConfig.connectionError.maxRetriesExceeded','replace','权限验证失败,请检查您的\x20API\x20密钥','subscribe','_injector','univer-flex\x20univer-items-center','mcpConfig.connectionInfo','univer-bg-green-500','_initializeCommands','配置参数:','univer-flex-1','_loading$','MCP\x20已连接','mcpConfig.validation.apiKeyTooShort','mcpConfig.validation.apiKeyRequired','span','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','_initStatusComponent','mcpConfig.configError','98428nznZCf','mcpConfig.apiApplyInfo.description','_mcpConnectionController','FAILED','clipPath','get','MCP\x20Connection\x20Failed','MCP:\x20Network\x20Error','914225PCPvyg','API\x20key\x20is\x20required','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','_handleConfigure','xlink:href','mcpServerUrl','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','保存配置','mcp-ui.command.openConfigPanel','DISCONNECTED','mcpStatus.failed','复制以下\x20JSON\x20配置','mcpConfig.apiKey','0\x200\x2017\x2016','最大重试次数','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','univer-text-sm\x20univer-font-medium','配置更改将立即生效','_menuManagerService','Session\x20ID','_config$','_initConfigSync','univer-min-w-0\x20univer-flex-1','errorMessage','univer_session_id:','mcpConfig.connectionStatus.retrying','map','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','colorChannel1','Retrying...','NONE','mcpConfig.validation.invalidApiKey','UNAUTHORIZED','entries','Connecting...','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','has','309510gRRRgO','7AMVaUQ','9068229BOfsfQ','none','几秒钟内获取您的\x20API\x20密钥','on-line-icon_clip0_910_349','MCP:\x20Session\x20ID\x20Occupied','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','url(#$1','univerjs-icon\x20univerjs-icon-','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children','点击连接\x20MCP','mcpConfig.connectionStatus.connecting','UniverIcon','univer-text-gray-400','evenodd','_uiPartsService','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','<SESSION_ID>','5208OoYwQv','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','SESSION_ID_OCCUPIED','univer-flex\x20univer-gap-3','_mcpCoreConfig$','保存中...','univer-text-xs\x20univer-text-gray-600','univer-flex\x20univer-flex-wrap\x20univer-gap-2','Failed\x20to\x20save\x20configuration','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','\x20-\x20','mcpConfig.connectionError.unauthorized','1146828ylGNVx','OnLineIcon','apiKey','MCP\x20已断开','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','pre','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','mcpStatus.disconnected','21RSYXpm','MCP\x20Connected','forEach','_connectionController','超出最大重试次数,请稍后再试','assign','CONNECTED','mcpConfig.configStep2','Click\x20to\x20configure\x20MCP','MCP\x20客户端配置','mcpConfig.configParameters','univer-text-red-500','API\x20Key','univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','univer-bg-gray-500','0\x200\x2016\x2016','setItem','trim','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','API\x20key\x20with\x20Bearer\x20prefix.','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','_createConfigPanelComponent','API\x20密钥','Save\x20Configuration','mcpStatus.networkError','Connection\x20Failed','mcpStatus.connecting','将配置添加到您的\x20MCP\x20客户端设置文件中','mcpConfig.configStep3','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','MCP\x20Unknown\x20Status','Disconnected','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','mcpStatus.unauthorized','Copy\x20the\x20JSON\x20configuration\x20below','mcpConfig.apiApplyInfo.title','mcpStatus.connected','url(#on-line-icon_clip0_910_349)','univer-bg-red-500','配置步骤:','tag','mcpStatus.maxRetriesExceeded','string','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','mcpConfig.title','univer-space-y-3','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','defineProperty','OTHERS','univer.ai','连接失败','MCP\x20Configuration','univer-flex\x20univer-items-center\x20univer-gap-2','Get\x20your\x20API\x20key\x20in\x20seconds','_commandService','add','启用身份验证以获得安全连接','defIds','MCP:\x20Max\x20Retries\x20Exceeded','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','registerComponent','请输入您的\x20API\x20密钥','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200'];_0x5c23=function(){return _0x213108;};return _0x5c23();}const Mn={'mcpStatus':{'disconnected':_0x27a183(0x2aa),'connecting':_0x27a183(0x28e),'connected':_0x27a183(0x1f7),'failed':_0x27a183(0x2fd),'retrying':_0x27a183(0x2db),'unknown':_0x27a183(0x214),'unauthorized':_0x27a183(0x2b7),'sessionOccupied':_0x27a183(0x32a),'networkError':_0x27a183(0x2fe),'maxRetriesExceeded':_0x27a183(0x231),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x27a183(0x1fe)},'mcpConfig':{'title':_0x27a183(0x22a),'description':_0x27a183(0x25a),'apiKey':_0x27a183(0x202),'apiKeyPlaceholder':_0x27a183(0x2df),'apiKeyHint':_0x27a183(0x1f1),'enableAuth':'Enable\x20Authentication','enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x27a183(0x25f),'mcpClientConfig':_0x27a183(0x25f),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x27a183(0x256),'configStep1':_0x27a183(0x218),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x27a183(0x32b),'sessionId':_0x27a183(0x312),'sessionIdDescription':_0x27a183(0x29e),'authorizationDescription':_0x27a183(0x209),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':_0x27a183(0x20d),'saving':_0x27a183(0x2bf),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x27a183(0x225),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x27a183(0x340),'apiApplyInfo':{'title':_0x27a183(0x274),'description':_0x27a183(0x285),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x27a183(0x22c)},'validation':{'apiKeyRequired':_0x27a183(0x300),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x27a183(0x1f4)},'connectionStatus':{'disconnected':_0x27a183(0x215),'connecting':_0x27a183(0x321),'connected':_0x27a183(0x2ca),'failed':_0x27a183(0x20f),'retrying':_0x27a183(0x31c)},'connectionError':{'unauthorized':_0x27a183(0x267),'sessionOccupied':_0x27a183(0x222),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},An={'mcpStatus':{'disconnected':_0x27a183(0x1ef),'connecting':'MCP\x20连接中...','connected':_0x27a183(0x2f0),'failed':_0x27a183(0x2b0),'retrying':'MCP\x20重连中...','unknown':_0x27a183(0x2ab),'unauthorized':_0x27a183(0x26e),'sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x27a183(0x23e),'clickToConnect':_0x27a183(0x330),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':'MCP\x20配置','description':_0x27a183(0x2bd),'apiKey':_0x27a183(0x20c),'apiKeyPlaceholder':_0x27a183(0x234),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':_0x27a183(0x24e),'enableAuthHint':_0x27a183(0x22f),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x27a183(0x1ff),'configInstructions':_0x27a183(0x272),'configStepTitle':_0x27a183(0x21d),'configStep1':_0x27a183(0x30a),'configStep2':_0x27a183(0x211),'configStep3':_0x27a183(0x2ba),'sessionId':'会话ID','sessionIdDescription':_0x27a183(0x239),'authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':_0x27a183(0x2ed),'maxRetries':_0x27a183(0x30d),'save':_0x27a183(0x306),'saving':_0x27a183(0x33d),'note1':_0x27a183(0x310),'note2':_0x27a183(0x24a),'configSaved':_0x27a183(0x249),'configError':'配置保存失败','apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x27a183(0x339),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0x27a183(0x328)},'validation':{'apiKeyRequired':_0x27a183(0x2c5),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x27a183(0x277),'invalidApiKey':_0x27a183(0x238)},'connectionStatus':{'disconnected':'未连接','connecting':_0x27a183(0x278),'connected':_0x27a183(0x2d4),'failed':_0x27a183(0x229),'retrying':'重连中...'},'connectionError':{'unauthorized':_0x27a183(0x2e6),'sessionOccupied':_0x27a183(0x293),'networkError':_0x27a183(0x2b4),'maxRetriesExceeded':_0x27a183(0x1fa)}}};var fn=Object[_0x27a183(0x226)],hn=Object['getOwnPropertyDescriptor'],Cn=(_0x263f61,_0x114468,_0xe47ccb)=>_0x114468 in _0x263f61?fn(_0x263f61,_0x114468,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xe47ccb}):_0x263f61[_0x114468]=_0xe47ccb,mn=(_0x1676e2,_0x472d4e,_0x40bf1f,_0x4e126b)=>{const _0x5dc3cb=_0x27a183;for(var _0x2e6ad7=_0x4e126b>0x1?void 0x0:_0x4e126b?hn(_0x472d4e,_0x40bf1f):_0x472d4e,_0x4714c8=_0x1676e2[_0x5dc3cb(0x299)]-0x1,_0x3922b7;_0x4714c8>=0x0;_0x4714c8--)(_0x3922b7=_0x1676e2[_0x4714c8])&&(_0x2e6ad7=_0x3922b7(_0x2e6ad7)||_0x2e6ad7);return _0x2e6ad7;},P=(_0x8784ec,_0x1d51f9)=>(_0x3bded6,_0xdfead7)=>_0x1d51f9(_0x3bded6,_0xdfead7,_0x8784ec),_n=(_0x1986bd,_0x2ef1b6,_0x5b7e50)=>Cn(_0x1986bd,_0x2ef1b6+'',_0x5b7e50);let j=class extends _0x52a552{constructor(_0x45af90=ie,_0x307de7,_0x202989,_0x4f97bb,_0xf3fb5d,_0x2478d6){const _0x1d9889=_0x27a183;super(),this['_config']=_0x45af90,this['_injector']=_0x307de7,this['_configService']=_0x202989,this[_0x1d9889(0x335)]=_0x4f97bb,this[_0x1d9889(0x243)]=_0xf3fb5d,this[_0x1d9889(0x262)]=_0x2478d6;const {..._0x5bc143}=_0x504871({},ie,this[_0x1d9889(0x2a1)]);this[_0x1d9889(0x23c)][_0x1d9889(0x24b)](y,_0x5bc143);}async[_0x27a183(0x27e)](){const _0x207542=_0x27a183,_0x41c304=[[O],[I],[D]];this[_0x207542(0x2e8)][_0x207542(0x323)](_0x5dee8f)||_0x41c304[_0x207542(0x247)]([_0x5dee8f,{'useClass':_0x50b3b2}]),_0x41c304[_0x207542(0x1f8)](_0x1b4c81=>this['_injector'][_0x207542(0x22e)](_0x1b4c81)),this[_0x207542(0x2e8)][_0x207542(0x2fc)](O),this[_0x207542(0x2e8)][_0x207542(0x2fc)](I),this[_0x207542(0x2e8)][_0x207542(0x2fc)](D);}};_n(j,_0x27a183(0x2d3),'MCP_UI_PLUGIN'),j=mn([_0x10f3fc(_0x436e98),P(0x1,_0x2bfdb1(_0x10c17c)),P(0x2,_0x59461e),P(0x3,_0x5ed0f7),P(0x4,_0x4bff31),P(0x5,_0x2bfdb1(_0x12a90e))],j);export{nn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,cn as MCPStatusDisplay,D as MCPUIMenuController,V as OpenMCPConfigPanelCommand,j as UniverMCPUIPlugin,Mn as enUS,An as zhCN};
1
+ const _0x52beea=_0x4bc7;(function(_0x57801b,_0x32dca0){const _0x45ee08=_0x4bc7,_0x5c10a7=_0x57801b();while(!![]){try{const _0x3e98de=parseInt(_0x45ee08(0x10e))/0x1+-parseInt(_0x45ee08(0x169))/0x2*(-parseInt(_0x45ee08(0x225))/0x3)+-parseInt(_0x45ee08(0x188))/0x4*(parseInt(_0x45ee08(0x18c))/0x5)+parseInt(_0x45ee08(0x14d))/0x6*(-parseInt(_0x45ee08(0x186))/0x7)+-parseInt(_0x45ee08(0x19f))/0x8+-parseInt(_0x45ee08(0x1bc))/0x9+parseInt(_0x45ee08(0xe5))/0xa;if(_0x3e98de===_0x32dca0)break;else _0x5c10a7['push'](_0x5c10a7['shift']());}catch(_0x346f6e){_0x5c10a7['push'](_0x5c10a7['shift']());}}}(_0x2b62,0xc2ade));var Pe=Object[_0x52beea(0x1d2)],Ee=(_0x53f0d,_0x5c667d,_0x2173d9)=>_0x5c667d in _0x53f0d?Pe(_0x53f0d,_0x5c667d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2173d9}):_0x53f0d[_0x5c667d]=_0x2173d9,x=(_0x1685c7,_0x48795e,_0x1d0f0c)=>Ee(_0x1685c7,typeof _0x48795e!='symbol'?_0x48795e+'':_0x48795e,_0x1d0f0c);import{LocaleService as _0x4660e9,Inject as _0x29a1d8,Injector as _0x187cea,IConfigService as _0x40db95,ILocalStorageService as _0x16eced,ILogService as _0x563a9d,Disposable as _0x38577c,CommandType as _0x339557,ICommandService as _0x895dd2,DependentOn as _0x540bc7,Plugin as _0x18ec46,merge as _0x1ee8f3}from'@univerjs/core';import{jsxs as _0x432ecd,jsx as _0x218dbb}from'react/jsx-runtime';import{MCPConnectionStatus as _0x525523,MCPConnectionError as _0x1ec999,MCPConnectionController as _0x126c1f,MCP_PLUGIN_CONFIG_KEY as _0x12cd2b,UniverMCPPlugin as _0x338329}from'@univerjs-pro/mcp';import{clsx as _0x153397,Input as _0x59c14c,Button as _0x11809c,MessageType as _0xe3cf0d,Tooltip as _0x237b8c}from'@univerjs/design';import{useDependency as _0x483d97,useObservable as _0x33d643,IUIPartsService as _0x43aba7,IDialogService as _0x303dbb,IMessageService as _0x5e1631,ComponentManager as _0x451eef,connectInjector as _0x219cc,BuiltInUIPart as _0x54ec66,MenuItemType as _0x1b403e,RibbonStartGroup as _0xd42103,IMenuManagerService as _0x4fb975}from'@univerjs/ui';import{BehaviorSubject as _0x626c29}from'rxjs';import{useRef as _0x5879fd,createElement as _0xab6305,forwardRef as _0x24c130,useState as _0x201c9f,useCallback as _0x1d4bf0}from'react';import{ISocketService as _0xb0f037,WebSocketService as _0x3d985e}from'@univerjs/network';function b({ref:_0x2cb91f,..._0x2ea00a}){const _0x981fa3=_0x52beea,{icon:_0x1a13e8,id:_0x5edc98,className:_0x5cbd0e,extend:_0x2da022,..._0x36c80e}=_0x2ea00a,_0x4ec987=(_0x981fa3(0x123)+_0x5edc98+'\x20'+(_0x5cbd0e||''))['trim'](),_0x2fbfe4=_0x5879fd('_'+We());return ae(_0x1a13e8,''+_0x5edc98,{'defIds':_0x1a13e8[_0x981fa3(0xef)],'idSuffix':_0x2fbfe4['current']},{'ref':_0x2cb91f,'className':_0x4ec987,..._0x36c80e},_0x2da022);}function ae(_0x42f11d,_0x148f15,_0x4aed36,_0x2dce44,_0x411c07){const _0x3efd68=_0x52beea;return _0xab6305(_0x42f11d[_0x3efd68(0x1b3)],{'key':_0x148f15,...Ye(_0x42f11d,_0x4aed36,_0x411c07),..._0x2dce44},(Ze(_0x42f11d,_0x4aed36)[_0x3efd68(0x1b2)]||[])[_0x3efd68(0x236)]((_0x412e7f,_0x5e70c3)=>ae(_0x412e7f,_0x148f15+'-'+_0x42f11d[_0x3efd68(0x1b3)]+'-'+_0x5e70c3,_0x4aed36,void 0x0,_0x411c07)));}function Ye(_0x2f2439,_0x22e400,_0x30a0c5){const _0x27d173=_0x52beea,_0x4009d7={..._0x2f2439[_0x27d173(0x217)]};_0x30a0c5!=null&&_0x30a0c5[_0x27d173(0x11b)]&&_0x4009d7[_0x27d173(0x101)]==='colorChannel1'&&(_0x4009d7[_0x27d173(0x101)]=_0x30a0c5[_0x27d173(0x11b)]),_0x2f2439[_0x27d173(0x1b3)]===_0x27d173(0x243)&&_0x4009d7['id']&&(_0x4009d7['id']=_0x4009d7['id']+_0x22e400['idSuffix']),Object[_0x27d173(0x104)](_0x4009d7)['forEach'](([_0x34526a,_0x1b49cc])=>{const _0x199337=_0x27d173;_0x34526a==='mask'&&typeof _0x1b49cc=='string'&&(_0x4009d7[_0x34526a]=_0x1b49cc[_0x199337(0x1d9)](/url\(#(.*)\)/,_0x199337(0x197)+_0x22e400[_0x199337(0xfa)]+')'));});const {defIds:_0x357a10}=_0x22e400;return!_0x357a10||_0x357a10[_0x27d173(0x1cf)]===0x0||(_0x2f2439['tag']==='use'&&_0x4009d7[_0x27d173(0x127)]&&(_0x4009d7['xlink:href']=_0x4009d7[_0x27d173(0x127)]+_0x22e400[_0x27d173(0xfa)]),Object['entries'](_0x4009d7)[_0x27d173(0x11f)](([_0x412c46,_0x2fb648])=>{const _0x47580b=_0x27d173;typeof _0x2fb648==_0x47580b(0xe6)&&(_0x4009d7[_0x412c46]=_0x2fb648[_0x47580b(0x1d9)](/url\(#(.*)\)/,_0x47580b(0x197)+_0x22e400[_0x47580b(0xfa)]+')'));})),_0x4009d7;}function Ze(_0x44afd0,_0x16ae53){const _0x23952a=_0x52beea;var _0x324508;const {defIds:_0xea0d67}=_0x16ae53;return!_0xea0d67||_0xea0d67['length']===0x0?_0x44afd0:_0x44afd0[_0x23952a(0x1b3)]===_0x23952a(0x10b)&&((_0x324508=_0x44afd0[_0x23952a(0x1b2)])!=null&&_0x324508[_0x23952a(0x1cf)])?{..._0x44afd0,'children':_0x44afd0[_0x23952a(0x1b2)]['map'](_0x537ba7=>typeof _0x537ba7[_0x23952a(0x217)]['id']=='string'&&_0xea0d67&&_0xea0d67[_0x23952a(0x12c)](_0x537ba7[_0x23952a(0x217)]['id'])?{..._0x537ba7,'attrs':{..._0x537ba7[_0x23952a(0x217)],'id':_0x537ba7[_0x23952a(0x217)]['id']+_0x16ae53[_0x23952a(0xfa)]}}:_0x537ba7)}:_0x44afd0;}function _0x2b62(){const _0x2f8dab=['MCP\x20连接失败','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','_initializeCommands','stringify','API\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','OTHERS','_connectionController','MCP:\x20Unauthorized','_initializeMenus','Configuration\x20Notes:','mcpConfig.apiKeyPlaceholder','0\x200\x2017\x2016','show','off-line-icon_clip0_910_343','MCP\x20状态未知','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','univer-text-gray-400','_apiKey$','isValid','attrs','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Connected','_uiPartsService','div','将配置添加到您的\x20MCP\x20客户端设置文件中','univer-bg-green-500','mcpConfig.apiApplyInfo.univerAiLabel','Enable\x20authentication\x20for\x20secure\x20connections','mcpConfig.validation.apiKeyTooShort','OnLineIcon','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','button','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','4456191cbgEhi','_validateConfig','DISCONNECTED','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','MCP:\x20网络错误','univer-text-sm\x20univer-text-gray-500','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.plus','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-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','error','配置参数:','Enable\x20Authentication','mcp-config-dialog','none','pluginName','API\x20密钥长度至少需要\x2010\x20位','map','univer-bg-blue-500','NONE','Enter\x20your\x20API\x20key','RETRYING','Save\x20Configuration','apiKey','univer-shrink-0\x20univer-text-red-500','已连接','_localeService','Configuration\x20Steps:','超出最大重试次数,请稍后再试','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','mask','19481840prfWxr','string','将以下配置添加到您的\x20MCP\x20客户端设置中:','M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z','trim','path','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','CheckMarkIcon','univer-text-sm\x20univer-font-medium','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','defIds','权限验证失败,请检查您的\x20API\x20密钥','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','会话\x20ID\x20已被占用,请稍后再试','toString','_menuManagerService','mcpConfig.configParameters','get','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','univer.ai','idSuffix','https://console.univer.plus','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','univer-flex\x20univer-items-center\x20univer-gap-3','mcpStatus.maxRetriesExceeded','mcpConfig.save','fill','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','pre','entries','HelpIcon','_localStorageService','random','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20客户端配置','white','defs','MCP\x20Connection\x20Failed','univer-flex\x20univer-items-start\x20univer-gap-2','1391315JPaaeA','univer-text-red-500','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','几秒钟内获取您的\x20API\x20密钥','mcp-ui.config','round','MCP:\x20超出最大重试次数','mcpStatus.disconnected','MCP:\x20会话\x20ID\x20已被占用','http://www.w3.org/2000/svg','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','API\x20密钥无效,请检查密钥是否正确','url(#off-line-icon_clip0_910_343)','colorChannel1','univer-flex-1','_logService','univer-flex\x20univer-items-start\x20univer-gap-3','forEach','Click\x20to\x20configure\x20MCP','Configuration\x20saved\x20successfully','_componentManager','univerjs-icon\x20univerjs-icon-','mcpConfig.connectionStatus.failed','mcpStatus.clickToConnect','启用身份验证','xlink:href','MCP:\x20未授权','value','mcpConfig.connectionError.maxRetriesExceeded','register','includes','网络连接错误,请检查您的网络连接','Session\x20ID','validateApiKey','mcpConfig.connectionError.unauthorized','mcpConfig.connectionStatus.connecting','点击配置\x20MCP','getConfig','univer-text-green-500','MCP_UI_PLUGIN','Error','mcpConfig.note2','univer-text-xs\x20univer-text-gray-500','重连中...','mcp-ui.command.openConfigPanel','help-icon','mcpConfig.apiKey','_handleConfigure','_initConfigSync','univer-flex\x20univer-gap-3','mcpStatus.networkError','currentColor','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','MCP\x20Retrying...','_configService','univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','_blank','enableAutoConnect','check-mark-icon','univer-text-blue-600','open','NETWORK_ERROR','保存中...','18678hsbWsE','mcpConfig.apiKeyHint','univer-space-y-3','span','Invalid\x20configuration','Get\x20your\x20API\x20key\x20in\x20seconds','univer-size-4','univer-space-y-4','subscribeConfigValue$','SESSION_ID_OCCUPIED','connectionError$','removeItem','univer-space-y-2','mcpStatus.unauthorized','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','mcpConfig.connectionInfo','mcpConfig.apiApplyInfo.title','_injector','_mcpCoreConfig$','Disconnected','_config','text','Copy\x20the\x20JSON\x20configuration\x20below','_initStatusComponent','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','mcpConfig.apiApplyInfo.description','配置保存成功','2YKHetN','getItem','配置更改将立即生效','重启您的\x20MCP\x20客户端以使配置生效','\x20-\x20','close','univer-size-2\x20univer-rounded-full','FAILED','_config$','svg','univer-flex\x20univer-items-center\x20univer-gap-2','mcpStatus.connected','mcpStatus.connecting','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','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','带有\x20Bearer\x20前缀的\x20API\x20密钥。','mcpConfig.configStepTitle','API\x20密钥','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Bearer\x20','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','MCP\x20已断开','off','点击连接\x20MCP','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','CONNECTING','showStatus','3199YrUmHC','mcpConfig.configStep2','916RSxKLp','univer-text-xs\x20univer-text-gray-600','Saving...','subscribe','1675vscwjO','MenuIcon','连接失败','univer-text-white','registerComponent','Max\x20Retries','UNAUTHORIZED','MCP\x20连接中...','mcpConfig.note1','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','mcpConfig.description','url(#$1','mcpServerUrl','next','API\x20key\x20with\x20Bearer\x20prefix.','_createConfigPanelComponent','MCP\x20Client\x20Configuration','connectionStatus$','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','8177192cIfHpR','_loading$','assign','univer-font-medium','https://mcp.univer.ai/mcp/?univer_session_id=','_messageService','CONNECTED','mcpConfig.validation.invalidConfig','<API_KEY>','MAX_RETRIES_EXCEEDED','mcpStatus.unknown','disposeWithMe','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','1em','mcpConfig.configSaved','sessionId$','mcpConfig.saving','最大重试次数','_loadStoredApiKey','children','tag','mcpStatus.failed','bottom','mcpConfig.connectionStatus.disconnected','univer-space-y-5','mcpConfig.connectionError.networkError','会话ID','您的\x20API\x20密钥安全存储在本地存储中','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','13553865rZDNIb','label','MCP:\x20Network\x20Error','mcpConfig.connectionError.sessionOccupied','errorMessage','mcpConfig.configStep1','registerCommand','请输入您的\x20API\x20密钥','off-line-icon','mcpConfig.title','<SESSION_ID>','启用身份验证以获得安全连接','MCP:\x20Max\x20Retries\x20Exceeded','setItem','univer-shrink-0\x20univer-text-blue-500','univer-min-w-0\x20univer-flex-1','setConfig','mcpConfig.configError','getCurrentConfig','length','Connection\x20Failed','Retrying...','defineProperty','mcpConfig.validation.invalidApiKey','Click\x20to\x20connect\x20MCP','配置无效','getOwnPropertyDescriptor','Univer\x20AI\x20控制台','clipPath','replace','add','onStarting','_mcpConnectionController','0\x200\x2016\x2016','MCPConfigPanel','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','什么是\x20API\x20密钥?','warn','MCP\x20重连中...','M0\x200H16V16H0z','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','https://console.univer.ai','push','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','evenodd','showDeveloperTools','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','_dialogService','_initAutoConnect','displayName','_registerComponent','mergeMenu','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','CloseIcon','noopener\x20noreferrer','Univer\x20AI\x20Console','univer-mr-2\x20univer-flex\x20univer-text-xl','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','_handleConfigSave','translate(.97)','HEADER_MENU','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','复制以下\x20JSON\x20配置','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','COMMAND','has','未连接'];_0x2b62=function(){return _0x2f8dab;};return _0x2b62();}function We(){const _0x308292=_0x52beea;return Math[_0x308292(0x107)]()[_0x308292(0xf4)](0x24)['substring'](0x2,0x8);}b[_0x52beea(0x1f0)]='UniverIcon';const qe={'tag':_0x52beea(0x172),'attrs':{'xmlns':_0x52beea(0x117),'fill':_0x52beea(0x233),'viewBox':'0\x200\x2016\x2016','width':_0x52beea(0x1ac),'height':_0x52beea(0x1ac)},'children':[{'tag':'path','attrs':{'fill':_0x52beea(0x141),'d':_0x52beea(0xfd),'fillRule':_0x52beea(0x1eb),'clipRule':_0x52beea(0x1eb)}}]},le=_0x24c130(function(_0x2fbb06,_0x2a20c0){const _0x29dea2=_0x52beea;return _0xab6305(b,Object[_0x29dea2(0x1a1)]({},_0x2fbb06,{'id':_0x29dea2(0x148),'ref':_0x2a20c0,'icon':qe}));});le[_0x52beea(0x1f0)]=_0x52beea(0xec);const Xe={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x52beea(0x233),'viewBox':_0x52beea(0x1dd),'width':_0x52beea(0x1ac),'height':_0x52beea(0x1ac)},'children':[{'tag':_0x52beea(0xea),'attrs':{'fill':_0x52beea(0x141),'d':'M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z'}}]},ue=_0x24c130(function(_0x19b703,_0x96115a){const _0x2ea03a=_0x52beea;return _0xab6305(b,Object[_0x2ea03a(0x1a1)]({},_0x19b703,{'id':'close-icon','ref':_0x96115a,'icon':Xe}));});ue[_0x52beea(0x1f0)]=_0x52beea(0x1f4);const Je={'tag':_0x52beea(0x172),'attrs':{'xmlns':_0x52beea(0x117),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x52beea(0x1ac),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x52beea(0x141),'d':_0x52beea(0xe8)}},{'tag':_0x52beea(0xea),'attrs':{'fill':'currentColor','d':_0x52beea(0x204)}},{'tag':_0x52beea(0xea),'attrs':{'fill':'currentColor','d':_0x52beea(0x1ed),'fillRule':_0x52beea(0x1eb),'clipRule':_0x52beea(0x1eb)}}]},ve=_0x24c130(function(_0x23f015,_0x177848){const _0x1e271c=_0x52beea;return _0xab6305(b,Object['assign']({},_0x23f015,{'id':_0x1e271c(0x13b),'ref':_0x177848,'icon':Je}));});ve[_0x52beea(0x1f0)]=_0x52beea(0x105);const Qe={'tag':_0x52beea(0x172),'attrs':{'xmlns':_0x52beea(0x117),'fill':_0x52beea(0x233),'viewBox':_0x52beea(0x1dd),'width':_0x52beea(0x1ac),'height':_0x52beea(0x1ac)},'children':[{'tag':'g','attrs':{'clipPath':_0x52beea(0x11a)},'children':[{'tag':_0x52beea(0xea),'attrs':{'stroke':'currentColor','d':_0x52beea(0x177),'strokeLinecap':_0x52beea(0x113),'strokeLinejoin':_0x52beea(0x113),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x52beea(0x1d8),'attrs':{'id':_0x52beea(0x211)},'children':[{'tag':_0x52beea(0xea),'attrs':{'fill':_0x52beea(0x10a),'d':_0x52beea(0x1e3)}}]}]}],'defIds':[_0x52beea(0x211)]},de=_0x24c130(function(_0x1b125c,_0x2c2800){const _0x5c158f=_0x52beea;return _0xab6305(b,Object['assign']({},_0x1b125c,{'id':_0x5c158f(0x1c4),'ref':_0x2c2800,'icon':Qe}));});de['displayName']='OffLineIcon';const en={'tag':_0x52beea(0x172),'attrs':{'xmlns':_0x52beea(0x117),'fill':_0x52beea(0x233),'viewBox':_0x52beea(0x20f),'width':'1em','height':_0x52beea(0x1ac)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x52beea(0xea),'attrs':{'stroke':'currentColor','d':_0x52beea(0x176),'strokeLinecap':_0x52beea(0x113),'strokeLinejoin':_0x52beea(0x113),'strokeWidth':1.2}}]},{'tag':_0x52beea(0x10b),'attrs':{},'children':[{'tag':_0x52beea(0x1d8),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x52beea(0xea),'attrs':{'fill':_0x52beea(0x10a),'d':_0x52beea(0x1e3),'transform':_0x52beea(0x1fa)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},ge=_0x24c130(function(_0x26c2dc,_0x596556){const _0x2a527e=_0x52beea;return _0xab6305(b,Object[_0x2a527e(0x1a1)]({},_0x26c2dc,{'id':'on-line-icon','ref':_0x596556,'icon':en}));});ge['displayName']=_0x52beea(0x221);function nn(_0x353f67){const _0x2a923a=_0x52beea;var _0xcd6f1e,_0x3819f0;const {mcpCoreConfig:_0x32853f,onSave:_0x3aca09,loading:_0x11630a=!0x1,config:_0x65dc1f,connectionStatus$:_0x12e139,connectionError$:_0x50d15a,currentApiKey$:_0x25034c,currentSessionId$:_0x112b8d}=_0x353f67,_0x48967d=_0x483d97(_0x4660e9),_0x1ee98b=_0x33d643(_0x12e139,_0x525523[_0x2a923a(0x227)]),_0x33df0c=_0x33d643(_0x50d15a,_0x1ec999[_0x2a923a(0x238)]),_0x23dce1=_0x33d643(_0x112b8d,''),_0x40b539=_0x33d643(_0x25034c,''),[_0x2d595d,_0x46c6c8]=_0x201c9f(_0x40b539||''),_0x4f8059=!0x0,_0x38457b=_0x65dc1f[_0x2a923a(0x1ec)]&&_0x32853f['mcpServerUrl']&&(_0x32853f[_0x2a923a(0x198)][_0x2a923a(0x12c)](_0x2a923a(0x22c))||_0x32853f['mcpServerUrl'][_0x2a923a(0x12c)](_0x2a923a(0xf9))),_0x47b7ee=(_0xcd6f1e=_0x32853f['mcpServerUrl'])==null?void 0x0:_0xcd6f1e[_0x2a923a(0x12c)](_0x2a923a(0x22c)),_0x31bc53=(_0x3819f0=_0x32853f[_0x2a923a(0x198)])==null?void 0x0:_0x3819f0[_0x2a923a(0x12c)]('univer.ai'),_0x5e5d80=_0x47b7ee?_0x2a923a(0xfb):_0x2a923a(0x1e5),_0x4b5909=_0x65dc1f['showDeveloperTools']&&(_0x47b7ee||_0x31bc53),[_0x52ed13,_0x26dffd]=_0x201c9f(!_0x2d595d[_0x2a923a(0xe9)]()),_0x4aba25=(_0x557c81,_0x48ab1b)=>{const _0x2a7cb3=_0x2a923a;if(_0x48ab1b===_0x1ec999[_0x2a7cb3(0x192)])return _0x2a7cb3(0x1ea);switch(_0x557c81){case _0x525523['CONNECTED']:return _0x2a7cb3(0xf2);case _0x525523[_0x2a7cb3(0x184)]:case _0x525523[_0x2a7cb3(0x23a)]:return _0x2a7cb3(0x224);case _0x525523[_0x2a7cb3(0x170)]:return _0x2a7cb3(0x1ea);default:return _0x2a7cb3(0x15b);}},_0x3c3f26=(_0x7a5a3d,_0x63665c)=>{const _0x51e464=_0x2a923a;if(_0x63665c===_0x1ec999[_0x51e464(0x192)])return'univer-bg-red-500';switch(_0x7a5a3d){case _0x525523[_0x51e464(0x1a5)]:return _0x51e464(0x21d);case _0x525523[_0x51e464(0x184)]:case _0x525523[_0x51e464(0x23a)]:return _0x51e464(0x237);case _0x525523['FAILED']:return'univer-bg-red-500';default:return'univer-bg-gray-500';}},_0x24ba1=_0x17651c=>{const _0x3994b1=_0x2a923a;switch(_0x17651c){case _0x525523['CONNECTED']:return _0x48967d['t']('mcpConfig.connectionStatus.connected');case _0x525523[_0x3994b1(0x184)]:return _0x48967d['t'](_0x3994b1(0x131));case _0x525523[_0x3994b1(0x170)]:return _0x48967d['t'](_0x3994b1(0x124));case _0x525523[_0x3994b1(0x23a)]:return _0x48967d['t']('mcpConfig.connectionStatus.retrying');default:return _0x48967d['t'](_0x3994b1(0x1b6));}},_0x2d18e7=_0x4c8b67=>{const _0x2b36c7=_0x2a923a;switch(_0x4c8b67){case _0x1ec999['UNAUTHORIZED']:return _0x48967d['t'](_0x2b36c7(0x130));case _0x1ec999[_0x2b36c7(0x156)]:return _0x48967d['t'](_0x2b36c7(0x1bf));case _0x1ec999[_0x2b36c7(0x14b)]:return _0x48967d['t'](_0x2b36c7(0x1b8));case _0x1ec999['MAX_RETRIES_EXCEEDED']:return _0x48967d['t'](_0x2b36c7(0x12a));default:return'';}},_0x5582a0=_0x1d4bf0(()=>{const _0xfb7e0d={..._0x32853f,'apiKey':_0x2d595d['trim'](),'enableAuth':_0x4f8059};_0x3aca09(_0xfb7e0d);},[_0x32853f,_0x2d595d,_0x4f8059,_0x3aca09]),_0x51d7be=_0x2d595d[_0x2a923a(0xe9)]()[_0x2a923a(0x1cf)]>0x0;return _0x432ecd(_0x2a923a(0x21b),{'className':_0x2a923a(0x213),'children':[_0x218dbb(_0x2a923a(0x21b),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':_0x432ecd('div',{'className':_0x2a923a(0xfe),'children':[_0x218dbb('div',{'className':_0x2a923a(0x222),'children':_0x218dbb(_0x2a923a(0x150),{'className':_0x2a923a(0x18f),'children':'⚙'})}),_0x218dbb(_0x2a923a(0x21b),{'children':_0x218dbb('p',{'className':_0x2a923a(0x22a),'children':_0x48967d['t'](_0x2a923a(0x196))})})]})}),_0x432ecd(_0x2a923a(0x21b),{'className':_0x2a923a(0x102),'children':[_0x218dbb(_0x2a923a(0x21b),{'className':_0x153397('univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2',_0x4aba25(_0x1ee98b,_0x33df0c)),'children':_0x432ecd('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x218dbb(_0x2a923a(0x21b),{'className':_0x153397(_0x2a923a(0x16f),_0x3c3f26(_0x1ee98b,_0x33df0c))}),_0x218dbb(_0x2a923a(0x150),{'className':_0x2a923a(0xed),'children':_0x24ba1(_0x1ee98b)})]})}),_0x33df0c!==_0x1ec999['NONE']&&(_0x1ee98b===_0x525523[_0x2a923a(0x170)]||_0x33df0c===_0x1ec999[_0x2a923a(0x192)])&&_0x218dbb(_0x2a923a(0x21b),{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':_0x432ecd(_0x2a923a(0x21b),{'className':_0x2a923a(0x10d),'children':[_0x218dbb('span',{'className':_0x2a923a(0x23d),'children':'⚠️'}),_0x218dbb('p',{'className':_0x2a923a(0xeb),'children':_0x2d18e7(_0x33df0c)})]})})]}),_0x218dbb('div',{'className':_0x2a923a(0x17f),'children':_0x432ecd(_0x2a923a(0x21b),{'className':_0x2a923a(0x1b7),'children':[_0x432ecd(_0x2a923a(0x21b),{'className':_0x2a923a(0x159),'children':[_0x432ecd(_0x2a923a(0x1bd),{'className':_0x2a923a(0x179),'children':[_0x218dbb(_0x2a923a(0x150),{'children':'🔑'}),'\x20',_0x48967d['t'](_0x2a923a(0x13c)),_0x218dbb(_0x2a923a(0x150),{'className':_0x2a923a(0x10f),'children':'*'}),_0x38457b&&_0x218dbb('a',{'className':_0x2a923a(0x145),'title':_0x48967d['t']('mcpConfig.apiApplyInfo.title'),'role':'button','onClick':()=>_0x26dffd(!0x0),'children':_0x218dbb(ve,{})})]}),_0x218dbb(_0x59c14c,{'type':_0x2a923a(0x162),'placeholder':_0x48967d['t'](_0x2a923a(0x20e)),'value':_0x2d595d,'disabled':_0x11630a,'autoComplete':_0x2a923a(0x181),'onChange':_0x46c6c8}),_0x218dbb('p',{'className':_0x2a923a(0x138),'children':_0x48967d['t'](_0x2a923a(0x14e))})]}),_0x38457b&&_0x52ed13&&_0x432ecd(_0x2a923a(0x21b),{'className':_0x2a923a(0x22d),'children':[_0x218dbb('a',{'className':_0x2a923a(0x22e),'role':_0x2a923a(0x223),'onClick':()=>_0x26dffd(!0x1),'children':_0x218dbb(ue,{'className':_0x2a923a(0x153)})}),_0x432ecd(_0x2a923a(0x21b),{'className':_0x2a923a(0x1fd),'children':[_0x218dbb(_0x2a923a(0x21b),{'className':_0x2a923a(0x242),'children':_0x218dbb(_0x2a923a(0x150),{'className':_0x2a923a(0x149),'children':'🚀'})}),_0x432ecd('div',{'className':_0x2a923a(0x11c),'children':[_0x218dbb('h4',{'className':_0x2a923a(0x1df),'children':_0x48967d['t'](_0x2a923a(0x15d))}),_0x218dbb('p',{'className':_0x2a923a(0x178),'children':_0x48967d['t'](_0x2a923a(0x167))}),_0x218dbb(_0x2a923a(0x21b),{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x4b5909&&_0x432ecd('a',{'className':_0x2a923a(0x22b),'href':_0x5e5d80,'target':_0x2a923a(0x146),'rel':_0x2a923a(0x1f5),'children':[_0x218dbb(_0x2a923a(0x150),{'children':'🤖'}),_0x48967d['t'](_0x2a923a(0x21e)),_0x218dbb(_0x2a923a(0x150),{'className':_0x2a923a(0x214),'children':'↗'})]})}),_0x432ecd('div',{'className':_0x2a923a(0x1fc),'children':['✨','\x20',_0x48967d['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x65dc1f['showDeveloperTools']&&_0x432ecd('div',{'className':_0x2a923a(0x142),'children':[_0x432ecd('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[_0x218dbb(_0x2a923a(0x150),{'children':'🔗'}),'\x20',_0x48967d['t'](_0x2a923a(0x15c))]}),_0x432ecd(_0x2a923a(0x21b),{'className':_0x2a923a(0x154),'children':[_0x432ecd('div',{'className':'univer-space-y-3','children':[_0x218dbb('p',{'className':_0x2a923a(0x189),'children':_0x48967d['t']('mcpConfig.configInstructions')}),_0x432ecd(_0x2a923a(0x21b),{'className':_0x2a923a(0x159),'children':[_0x218dbb(_0x2a923a(0x21b),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x48967d['t'](_0x2a923a(0x17b))}),_0x432ecd(_0x2a923a(0x21b),{'className':_0x2a923a(0x1e7),'children':[_0x432ecd(_0x2a923a(0x21b),{'className':_0x2a923a(0x173),'children':[_0x218dbb(_0x2a923a(0x150),{'className':_0x2a923a(0xee),'children':'1'}),_0x48967d['t'](_0x2a923a(0x1c1))]}),_0x432ecd(_0x2a923a(0x21b),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x218dbb(_0x2a923a(0x150),{'className':_0x2a923a(0xee),'children':'2'}),_0x48967d['t'](_0x2a923a(0x187))]}),_0x432ecd('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x218dbb('span',{'className':_0x2a923a(0xee),'children':'3'}),_0x48967d['t']('mcpConfig.configStep3')]})]})]})]}),_0x432ecd('div',{'className':'univer-space-y-2','children':[_0x218dbb(_0x2a923a(0x21b),{'className':_0x2a923a(0x195),'children':'MCP\x20Configuration'}),_0x218dbb(_0x2a923a(0x21b),{'className':_0x2a923a(0x1e8),'children':_0x218dbb(_0x2a923a(0x103),{'className':_0x2a923a(0x1e4),'children':JSON[_0x2a923a(0x206)]({'mcpServers':{'univer':{'url':_0x2a923a(0x1a3)+(_0x23dce1||_0x2a923a(0x1c6)),'type':'http','headers':{'Authorization':_0x2a923a(0x17e)+(_0x2d595d||_0x2a923a(0x1a7))}}}},null,0x2)})})]}),_0x432ecd(_0x2a923a(0x21b),{'className':_0x2a923a(0x14f),'children':[_0x218dbb(_0x2a923a(0x21b),{'className':_0x2a923a(0x195),'children':_0x48967d['t'](_0x2a923a(0xf6))}),_0x432ecd(_0x2a923a(0x21b),{'className':'univer-space-y-2','children':[_0x432ecd(_0x2a923a(0x21b),{'className':_0x2a923a(0x11e),'children':[_0x218dbb(_0x2a923a(0x21b),{'className':_0x2a923a(0x1f3)}),_0x432ecd(_0x2a923a(0x21b),{'className':_0x2a923a(0x1cb),'children':[_0x218dbb(_0x2a923a(0x21b),{'className':_0x2a923a(0xfc),'children':'univer_session_id:'}),_0x218dbb(_0x2a923a(0x21b),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x48967d['t']('mcpConfig.sessionIdDescription')})]})]}),_0x432ecd(_0x2a923a(0x21b),{'className':_0x2a923a(0x11e),'children':[_0x218dbb('div',{'className':_0x2a923a(0x1f3)}),_0x432ecd(_0x2a923a(0x21b),{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x218dbb('div',{'className':_0x2a923a(0xfc),'children':'Authorization:'}),_0x218dbb(_0x2a923a(0x21b),{'className':_0x2a923a(0x138),'children':_0x48967d['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),_0x218dbb(_0x11809c,{'onClick':_0x5582a0,'disabled':!_0x51d7be||_0x11630a,'className':_0x2a923a(0x208),'children':_0x11630a?_0x432ecd('span',{'className':_0x2a923a(0x173),'children':[_0x218dbb(_0x2a923a(0x150),{'children':'⟲'}),_0x48967d['t'](_0x2a923a(0x1af))]}):_0x432ecd('span',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x218dbb(le,{}),_0x48967d['t'](_0x2a923a(0x100))]})}),_0x218dbb(_0x2a923a(0x21b),{'className':_0x2a923a(0x19e),'children':_0x432ecd('div',{'className':_0x2a923a(0x13f),'children':[_0x218dbb(_0x2a923a(0x150),{'className':_0x2a923a(0x1ca),'children':'💡'}),_0x432ecd(_0x2a923a(0x21b),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[_0x218dbb(_0x2a923a(0x21b),{'className':_0x2a923a(0x1a2),'children':_0x2a923a(0x20d)}),_0x432ecd(_0x2a923a(0x21b),{'children':['•',_0x48967d['t'](_0x2a923a(0x194))]}),_0x432ecd(_0x2a923a(0x21b),{'children':['•',_0x48967d['t'](_0x2a923a(0x137))]})]})]})})]})})]});}const y=_0x52beea(0x112),ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object[_0x52beea(0x1d6)],tn=(_0x528c8a,_0x2c1fa2,_0x15a340,_0x5bff6a)=>{const _0x242b45=_0x52beea;for(var _0x2eba77=_0x5bff6a>0x1?void 0x0:_0x5bff6a?rn(_0x2c1fa2,_0x15a340):_0x2c1fa2,_0x331516=_0x528c8a[_0x242b45(0x1cf)]-0x1,_0x127dc7;_0x331516>=0x0;_0x331516--)(_0x127dc7=_0x528c8a[_0x331516])&&(_0x2eba77=_0x127dc7(_0x2eba77)||_0x2eba77);return _0x2eba77;},d=(_0x4c6340,_0x42ba47)=>(_0x1d3d3e,_0x121b5d)=>_0x42ba47(_0x1d3d3e,_0x121b5d,_0x4c6340);const U='mcp.apiKey',L=_0x52beea(0x232);let I=class extends _0x38577c{constructor(_0x55a39e,_0x2b9d48,_0x4f20a2,_0x1c8d0d,_0xb142c0,_0x45d56c,_0x3ab6f2,_0x3af60c,_0x14f840,_0x4e3603){const _0x4feb4f=_0x52beea;super(),x(this,_0x4feb4f(0x1a0),new _0x626c29(!0x1)),x(this,_0x4feb4f(0x15f),new _0x626c29({})),x(this,_0x4feb4f(0x171),new _0x626c29({})),x(this,_0x4feb4f(0x215),new _0x626c29('')),x(this,_0x4feb4f(0x1f9),async _0x299ddb=>{const _0x18b684=_0x4feb4f;var _0x49219c,_0x187216;this['_loading$']['next'](!0x0);try{const _0x1e6c0e=await this[_0x18b684(0x226)](_0x299ddb);if(!_0x1e6c0e[_0x18b684(0x216)]){this[_0x18b684(0x1a4)][_0x18b684(0x210)]({'type':_0xe3cf0d[_0x18b684(0x136)],'content':_0x1e6c0e[_0x18b684(0x1c0)]||this['_localeService']['t'](_0x18b684(0x1a6))});return;}_0x299ddb[_0x18b684(0x23c)]?await this[_0x18b684(0x106)][_0x18b684(0x1c9)](U,_0x299ddb[_0x18b684(0x23c)][_0x18b684(0xe9)]()):await this['_localStorageService'][_0x18b684(0x158)](U),this[_0x18b684(0x215)][_0x18b684(0x199)](((_0x49219c=_0x299ddb[_0x18b684(0x23c)])==null?void 0x0:_0x49219c['trim']())||''),this[_0x18b684(0x1dc)]['__setCustomHeaders']({'Authorization':_0x18b684(0x17e)+((_0x187216=_0x299ddb['apiKey'])==null?void 0x0:_0x187216['trim']())}),this[_0x18b684(0x1a4)][_0x18b684(0x210)]({'type':_0xe3cf0d['Success'],'content':this[_0x18b684(0x23f)]['t'](_0x18b684(0x1ad))}),setTimeout(()=>{const _0xe5bec2=_0x18b684;this[_0xe5bec2(0x1ee)][_0xe5bec2(0x16e)](L);},0x320);}catch(_0x3d5f0b){this['_logService'][_0x18b684(0x22f)](_0x18b684(0x228),_0x3d5f0b),this[_0x18b684(0x1a4)][_0x18b684(0x210)]({'type':_0xe3cf0d[_0x18b684(0x136)],'content':this[_0x18b684(0x23f)]['t'](_0x18b684(0x1cd))});}finally{this[_0x18b684(0x1a0)]['next'](!0x1);}}),(this[_0x4feb4f(0x15e)]=_0x55a39e,this['_uiPartsService']=_0x2b9d48,this[_0x4feb4f(0x144)]=_0x4f20a2,this[_0x4feb4f(0x106)]=_0x1c8d0d,this['_dialogService']=_0xb142c0,this[_0x4feb4f(0x1a4)]=_0x45d56c,this[_0x4feb4f(0x122)]=_0x3ab6f2,this['_localeService']=_0x3af60c,this[_0x4feb4f(0x11d)]=_0x14f840,this[_0x4feb4f(0x1dc)]=_0x4e3603,this[_0x4feb4f(0x13e)](),this['_loadStoredApiKey'](),this[_0x4feb4f(0x1f1)]());}['showConfigPanel'](){const _0x3c496f=_0x52beea,_0x209ae7=this[_0x3c496f(0x144)][_0x3c496f(0x133)](y);_0x209ae7!=null&&_0x209ae7[_0x3c496f(0x1ec)]&&this[_0x3c496f(0x1ee)][_0x3c496f(0x14a)]({'id':L,'title':{'title':this['_localeService']['t'](_0x3c496f(0x1c5))},'children':{'label':_0x3c496f(0x1de)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x1290cf=_0x3c496f;this[_0x1290cf(0x1ee)][_0x1290cf(0x16e)](L);}});}[_0x52beea(0x1ce)](){const _0x23fdeb=_0x52beea;return this['_mcpCoreConfig$'][_0x23fdeb(0x129)];}[_0x52beea(0x1f1)](){const _0x355a54=_0x52beea;this['disposeWithMe'](this['_componentManager'][_0x355a54(0x12b)](_0x355a54(0x1de),this[_0x355a54(0x19b)]()));}['_createConfigPanelComponent'](){const _0x5ead3b=_0x52beea;return _0x219cc(()=>{const _0x482e4c=_0x4bc7;var _0x46cc3f,_0x7727b3,_0x427d7e;return _0x218dbb(nn,{'config':this[_0x482e4c(0x171)][_0x482e4c(0x129)],'mcpCoreConfig':this[_0x482e4c(0x15f)][_0x482e4c(0x129)],'currentApiKey$':this[_0x482e4c(0x215)],'onSave':this['_handleConfigSave'],'loading':this[_0x482e4c(0x1a0)][_0x482e4c(0x129)],'connectionStatus$':(_0x46cc3f=this['_mcpConnectionController'])==null?void 0x0:_0x46cc3f[_0x482e4c(0x19d)],'connectionError$':(_0x7727b3=this[_0x482e4c(0x1dc)])==null?void 0x0:_0x7727b3['connectionError$'],'currentSessionId$':(_0x427d7e=this[_0x482e4c(0x1dc)])==null?void 0x0:_0x427d7e[_0x482e4c(0x1ae)]});},this[_0x5ead3b(0x15e)]);}[_0x52beea(0x13e)](){const _0x38f964=_0x52beea;this[_0x38f964(0x1aa)](this[_0x38f964(0x144)][_0x38f964(0x155)](_0x12cd2b)['subscribe'](_0x3624ec=>{const _0x13e423=_0x38f964;this[_0x13e423(0x15f)]['next'](_0x3624ec||{});}));const _0x2a6a23=this['_configService'][_0x38f964(0x133)](_0x12cd2b);this[_0x38f964(0x15f)][_0x38f964(0x199)](_0x2a6a23||{}),this[_0x38f964(0x1aa)](this['_configService'][_0x38f964(0x155)](y)[_0x38f964(0x18b)](_0x2baa41=>{const _0x1c2d9b=_0x38f964;this[_0x1c2d9b(0x171)][_0x1c2d9b(0x199)](_0x2baa41||{});}));const _0xf9ca48=this[_0x38f964(0x144)][_0x38f964(0x133)](y);this['_config$'][_0x38f964(0x199)](_0xf9ca48||{});}async[_0x52beea(0x1b1)](){const _0x5494c7=_0x52beea,_0x36b3e1=this['_configService'][_0x5494c7(0x133)](y);if(!(_0x36b3e1!=null&&_0x36b3e1['showDeveloperTools']))return;const _0x31e5af=await this[_0x5494c7(0x106)][_0x5494c7(0x16a)](U);_0x31e5af&&(this[_0x5494c7(0x1dc)]['__setCustomHeaders']({'Authorization':_0x5494c7(0x17e)+_0x31e5af}),this[_0x5494c7(0x215)][_0x5494c7(0x199)](_0x31e5af));}async[_0x52beea(0x226)](_0x56bc02){const _0x1eb938=_0x52beea;if(!_0x56bc02[_0x1eb938(0x23c)]||_0x56bc02['apiKey'][_0x1eb938(0xe9)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t']('mcpConfig.validation.apiKeyRequired')};if(_0x56bc02['apiKey']['trim']()[_0x1eb938(0x1cf)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x1eb938(0x23f)]['t'](_0x1eb938(0x220))};try{const _0x3eb05d=await this['_injector'][_0x1eb938(0xf7)](_0x126c1f)[_0x1eb938(0x12f)](_0x56bc02[_0x1eb938(0x23c)][_0x1eb938(0xe9)]());return _0x3eb05d[_0x1eb938(0x216)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x3eb05d['error']||this['_localeService']['t'](_0x1eb938(0x1d3))};}catch(_0x45b230){return console[_0x1eb938(0x1e1)]('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0x45b230),{'isValid':!0x0};}}};I=tn([d(0x0,_0x29a1d8(_0x187cea)),d(0x1,_0x43aba7),d(0x2,_0x40db95),d(0x3,_0x16eced),d(0x4,_0x303dbb),d(0x5,_0x5e1631),d(0x6,_0x29a1d8(_0x451eef)),d(0x7,_0x29a1d8(_0x4660e9)),d(0x8,_0x563a9d),d(0x9,_0x29a1d8(_0x126c1f))],I);const V={'id':_0x52beea(0x13a),'type':_0x339557[_0x52beea(0x200)],'handler':async(_0xcc3346,_0x49dcb9)=>(_0xcc3346[_0x52beea(0xf7)](I)['showConfigPanel'](),!0x0)};function pe(_0x47f9e6,_0xb95255){const _0x4e082b=_0x52beea;switch(_0x47f9e6){case _0x525523[_0x4e082b(0x227)]:return _0x4e082b(0x115);case _0x525523[_0x4e082b(0x184)]:return _0x4e082b(0x175);case _0x525523[_0x4e082b(0x1a5)]:return _0x4e082b(0x174);case _0x525523[_0x4e082b(0x170)]:switch(_0xb95255){case _0x1ec999[_0x4e082b(0x192)]:return _0x4e082b(0x15a);case _0x1ec999[_0x4e082b(0x156)]:return'mcpStatus.sessionOccupied';case _0x1ec999[_0x4e082b(0x14b)]:return _0x4e082b(0x140);case _0x1ec999[_0x4e082b(0x1a8)]:return _0x4e082b(0xff);default:return _0x4e082b(0x1b4);}case _0x525523[_0x4e082b(0x23a)]:return'mcpStatus.retrying';default:return _0x4e082b(0x1a9);}}function on(_0x296450,_0x3f705e,_0x60a18e,_0xb3fdbc=!0x0){const _0x36e161=_0x52beea,_0x4d4a0=pe(_0x296450,_0x3f705e),_0x919942=_0x60a18e['t'](_0x4d4a0);return _0xb3fdbc?_0x296450===_0x525523[_0x36e161(0x227)]&&_0x3f705e===_0x1ec999['UNAUTHORIZED']?_0x919942+_0x36e161(0x16d)+_0x60a18e['t']('mcpStatus.clickToConfigure'):_0x296450===_0x525523['CONNECTED']?''+_0x919942:_0x296450===_0x525523[_0x36e161(0x227)]||_0x296450===_0x525523[_0x36e161(0x170)]?_0x919942+_0x36e161(0x16d)+_0x60a18e['t'](_0x36e161(0x125)):_0x919942:_0x919942;}function sn(_0xa35555){const _0x58cbbf=_0x52beea;switch(_0xa35555){case _0x525523[_0x58cbbf(0x1a5)]:return _0x58cbbf(0x134);case _0x525523['CONNECTING']:case _0x525523[_0x58cbbf(0x23a)]:return'univer-text-yellow-500';case _0x525523[_0x58cbbf(0x170)]:case _0x525523[_0x58cbbf(0x227)]:return _0x58cbbf(0x10f);default:return'univer-text-gray-500';}}function cn(_0x574e84){const _0x2f79e2=_0x52beea,{status$:_0x53c187,error$:_0xefde9f,onConfigure:_0x3fd1e6,showClickable:_0x491c71=!0x0}=_0x574e84,_0x9bcd3f=_0x33d643(_0x53c187,_0x525523[_0x2f79e2(0x227)]),_0x3daa41=_0x33d643(_0xefde9f,_0x1ec999[_0x2f79e2(0x238)]),_0x580b38=_0x483d97(_0x4660e9),_0x10cde8=_0x9bcd3f===_0x525523['CONNECTED'];_0x9bcd3f===_0x525523[_0x2f79e2(0x184)]||_0x525523[_0x2f79e2(0x23a)];const _0xeb3d12=_0x580b38['t'](pe(_0x9bcd3f,_0x3daa41)),_0x4ed0ff=on(_0x9bcd3f,_0x3daa41,_0x580b38,_0x491c71),_0x444c70=sn(_0x9bcd3f),_0x43d55d=_0x10cde8?_0x218dbb(ge,{}):_0x218dbb(de,{}),_0x201f2b=_0x1d4bf0(()=>{_0x491c71&&_0x3fd1e6&&_0x3fd1e6();},[_0x491c71,_0x3fd1e6]);function _0x447696(){const _0x41b2f1=_0x2f79e2;return _0x432ecd(_0x41b2f1(0x21b),{'className':_0x153397('univer-flex\x20univer-items-center',_0x491c71&&_0x3fd1e6&&_0x41b2f1(0x1f8)),'role':_0x41b2f1(0x223),'onClick':_0x491c71&&_0x3fd1e6?_0x201f2b:void 0x0,'children':[_0x218dbb(_0x41b2f1(0x21b),{'className':_0x153397(_0x41b2f1(0x1f7),_0x444c70),'children':_0x43d55d}),_0x218dbb(_0x41b2f1(0x21b),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0xeb3d12})]});}return _0x218dbb(_0x237b8c,{'title':_0x4ed0ff,'placement':_0x2f79e2(0x1b5),'children':_0x447696()});}var an=Object[_0x52beea(0x1d6)],ln=(_0x8a2d0a,_0x2ce4a4,_0x205d7c,_0x48af7e)=>{const _0x171056=_0x52beea;for(var _0x374f8c=_0x48af7e>0x1?void 0x0:_0x48af7e?an(_0x2ce4a4,_0x205d7c):_0x2ce4a4,_0x257bd1=_0x8a2d0a[_0x171056(0x1cf)]-0x1,_0x193503;_0x257bd1>=0x0;_0x257bd1--)(_0x193503=_0x8a2d0a[_0x257bd1])&&(_0x374f8c=_0x193503(_0x374f8c)||_0x374f8c);return _0x374f8c;},M=(_0x23643e,_0x4fadf3)=>(_0x1d8ef5,_0xfdb915)=>_0x4fadf3(_0x1d8ef5,_0xfdb915,_0x23643e);let O=class extends _0x38577c{constructor(_0x469cff,_0x33a6aa,_0x286d61,_0x16cb28){const _0x171503=_0x52beea;super(),this[_0x171503(0x15e)]=_0x469cff,this[_0x171503(0x20a)]=_0x33a6aa,this[_0x171503(0x21a)]=_0x286d61,this['_configService']=_0x16cb28,this['_initAutoConnect'](),this[_0x171503(0x164)]();}[_0x52beea(0x1ef)](){const _0x11b9a7=_0x52beea,_0xc6a991=this[_0x11b9a7(0x144)][_0x11b9a7(0x133)](y);_0xc6a991!=null&&_0xc6a991[_0x11b9a7(0x1ec)]&&(this[_0x11b9a7(0x20a)][_0x11b9a7(0x147)]=!0x1);}['_initStatusComponent'](){const _0xe7dcdd=_0x52beea,_0x279ff8=this[_0xe7dcdd(0x144)][_0xe7dcdd(0x133)](y);(_0x279ff8==null?void 0x0:_0x279ff8[_0xe7dcdd(0x185)])!==!0x1&&this[_0xe7dcdd(0x1aa)](this[_0xe7dcdd(0x21a)][_0xe7dcdd(0x190)](_0x54ec66[_0xe7dcdd(0x1fb)],()=>{const _0x301586=_0xe7dcdd;var _0x416ca7;return _0x219cc(un({'status$':this[_0x301586(0x20a)][_0x301586(0x19d)],'error$':this[_0x301586(0x20a)][_0x301586(0x157)],'onConfigure':()=>this[_0x301586(0x13d)](),'showClickable':(_0x416ca7=_0x279ff8==null?void 0x0:_0x279ff8[_0x301586(0x1ec)])!=null?_0x416ca7:!0x1}),this[_0x301586(0x15e)]);}));}[_0x52beea(0x13d)](){const _0x36e38c=_0x52beea;this[_0x36e38c(0x15e)][_0x36e38c(0xf7)](I)['showConfigPanel']();}};O=ln([M(0x0,_0x29a1d8(_0x187cea)),M(0x1,_0x29a1d8(_0x126c1f)),M(0x2,_0x43aba7),M(0x3,_0x40db95)],O);function un(_0x7a4881){const {status$:_0x1fb23e,error$:_0x5063c8,onConfigure:_0x4fef4e,showClickable:_0x2bec55}=_0x7a4881;return function(){return _0x218dbb(cn,{'status$':_0x1fb23e,'error$':_0x5063c8,'onConfigure':_0x4fef4e,'showClickable':_0x2bec55});};}function vn(_0x2d662b){const _0x11f881=_0x52beea;return{'id':V['id'],'type':_0x1b403e['BUTTON'],'icon':_0x11f881(0x18d),'title':'mcpConfig.title','tooltip':'mcpConfig.title'};}const dn={[_0xd42103[_0x52beea(0x209)]]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object['getOwnPropertyDescriptor'],pn=(_0x3354e8,_0x499717,_0x2cba93,_0x2be8b5)=>{const _0x518b84=_0x52beea;for(var _0x356f5c=_0x2be8b5>0x1?void 0x0:_0x2be8b5?gn(_0x499717,_0x2cba93):_0x499717,_0x468538=_0x3354e8[_0x518b84(0x1cf)]-0x1,_0x2decd7;_0x468538>=0x0;_0x468538--)(_0x2decd7=_0x3354e8[_0x468538])&&(_0x356f5c=_0x2decd7(_0x356f5c)||_0x356f5c);return _0x356f5c;},re=(_0x5d6369,_0x59bf42)=>(_0x5540b6,_0x4c7011)=>_0x59bf42(_0x5540b6,_0x4c7011,_0x5d6369);let D=class extends _0x38577c{constructor(_0x1e335f,_0x5d79a7){const _0x33b526=_0x52beea;super(),this['_commandService']=_0x1e335f,this[_0x33b526(0xf5)]=_0x5d79a7,this['_initializeCommands'](),this[_0x33b526(0x20c)]();}[_0x52beea(0x205)](){const _0x4b0584=_0x52beea;[V][_0x4b0584(0x11f)](_0x3f255a=>{const _0x14d783=_0x4b0584;this[_0x14d783(0x1aa)](this['_commandService'][_0x14d783(0x1c2)](_0x3f255a));});}[_0x52beea(0x20c)](){const _0x1e249f=_0x52beea;this[_0x1e249f(0xf5)][_0x1e249f(0x1f2)](dn);}};function _0x4bc7(_0x5f2916,_0x169f69){_0x5f2916=_0x5f2916-0xe5;const _0x2b62b8=_0x2b62();let _0x4bc787=_0x2b62b8[_0x5f2916];return _0x4bc787;}D=pn([re(0x0,_0x895dd2),re(0x1,_0x4fb975)],D);const Mn={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':_0x52beea(0x10c),'retrying':_0x52beea(0x143),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x52beea(0x20b),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x52beea(0x1be),'maxRetriesExceeded':_0x52beea(0x1c8),'clickToConnect':_0x52beea(0x1d4),'clickToConfigure':_0x52beea(0x120)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x52beea(0xf8),'apiKey':_0x52beea(0x207),'apiKeyPlaceholder':_0x52beea(0x239),'apiKeyHint':_0x52beea(0x1bb),'enableAuth':_0x52beea(0x231),'enableAuthHint':_0x52beea(0x21f),'connectionInfo':_0x52beea(0x19c),'mcpClientConfig':_0x52beea(0x19c),'configInstructions':_0x52beea(0xf1),'configStepTitle':_0x52beea(0x240),'configStep1':_0x52beea(0x163),'configStep2':_0x52beea(0x183),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x52beea(0x12e),'sessionIdDescription':_0x52beea(0x1e9),'authorizationDescription':_0x52beea(0x19a),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x52beea(0x191),'save':_0x52beea(0x23b),'saving':_0x52beea(0x18a),'note1':_0x52beea(0x165),'note2':_0x52beea(0x108),'configSaved':_0x52beea(0x121),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x52beea(0x166),'univerAiLabel':_0x52beea(0x1f6),'getStarted':_0x52beea(0x152)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x52beea(0x151),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x52beea(0x160),'connecting':'Connecting...','connected':_0x52beea(0x219),'failed':_0x52beea(0x1d0),'retrying':_0x52beea(0x1d1)},'connectionError':{'unauthorized':_0x52beea(0x1ff),'sessionOccupied':_0x52beea(0x17d),'networkError':_0x52beea(0x218),'maxRetriesExceeded':_0x52beea(0x1ab)}}},An={'mcpStatus':{'disconnected':_0x52beea(0x180),'connecting':_0x52beea(0x193),'connected':'MCP\x20已连接','failed':_0x52beea(0x203),'retrying':_0x52beea(0x1e2),'unknown':_0x52beea(0x212),'unauthorized':_0x52beea(0x128),'sessionOccupied':_0x52beea(0x116),'networkError':_0x52beea(0x229),'maxRetriesExceeded':_0x52beea(0x114),'clickToConnect':_0x52beea(0x182),'clickToConfigure':_0x52beea(0x132)},'mcpConfig':{'title':'MCP\x20配置','description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x52beea(0x17c),'apiKeyPlaceholder':_0x52beea(0x1c3),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':_0x52beea(0x126),'enableAuthHint':_0x52beea(0x1c7),'connectionInfo':_0x52beea(0x109),'mcpClientConfig':_0x52beea(0x109),'configInstructions':_0x52beea(0xe7),'configStepTitle':'配置步骤:','configStep1':_0x52beea(0x1fe),'configStep2':_0x52beea(0x21c),'configStep3':_0x52beea(0x16c),'sessionId':_0x52beea(0x1b9),'sessionIdDescription':_0x52beea(0x110),'authorizationDescription':_0x52beea(0x17a),'configParameters':_0x52beea(0x230),'maxRetries':_0x52beea(0x1b0),'save':'保存配置','saving':_0x52beea(0x14c),'note1':_0x52beea(0x16b),'note2':_0x52beea(0x1ba),'configSaved':_0x52beea(0x168),'configError':'配置保存失败','apiApplyInfo':{'title':_0x52beea(0x1e0),'description':_0x52beea(0x118),'univerAiLabel':_0x52beea(0x1d7),'getStarted':_0x52beea(0x111)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x52beea(0x235),'invalidConfig':_0x52beea(0x1d5),'invalidApiKey':_0x52beea(0x119)},'connectionStatus':{'disconnected':_0x52beea(0x202),'connecting':'连接中...','connected':_0x52beea(0x23e),'failed':_0x52beea(0x18e),'retrying':_0x52beea(0x139)},'connectionError':{'unauthorized':_0x52beea(0xf0),'sessionOccupied':_0x52beea(0xf3),'networkError':_0x52beea(0x12d),'maxRetriesExceeded':_0x52beea(0x241)}}};var fn=Object[_0x52beea(0x1d2)],hn=Object['getOwnPropertyDescriptor'],Cn=(_0x4daf94,_0x1b27d5,_0x2ca581)=>_0x1b27d5 in _0x4daf94?fn(_0x4daf94,_0x1b27d5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2ca581}):_0x4daf94[_0x1b27d5]=_0x2ca581,mn=(_0x545607,_0x21718e,_0x48adb3,_0x5b5ad8)=>{for(var _0x1230c0=_0x5b5ad8>0x1?void 0x0:_0x5b5ad8?hn(_0x21718e,_0x48adb3):_0x21718e,_0x1279c2=_0x545607['length']-0x1,_0x9834a1;_0x1279c2>=0x0;_0x1279c2--)(_0x9834a1=_0x545607[_0x1279c2])&&(_0x1230c0=_0x9834a1(_0x1230c0)||_0x1230c0);return _0x1230c0;},P=(_0x3a59ee,_0x4e808f)=>(_0x17bf97,_0x43ec4b)=>_0x4e808f(_0x17bf97,_0x43ec4b,_0x3a59ee),_n=(_0x3657a8,_0x1d43df,_0x1e43d1)=>Cn(_0x3657a8,_0x1d43df+'',_0x1e43d1);let j=class extends _0x18ec46{constructor(_0x2a7035=ie,_0x59c145,_0x4661e8,_0xaca924,_0x37eed9,_0x298c63){const _0x4f8f9c=_0x52beea;super(),this[_0x4f8f9c(0x161)]=_0x2a7035,this['_injector']=_0x59c145,this[_0x4f8f9c(0x144)]=_0x4661e8,this[_0x4f8f9c(0x21a)]=_0xaca924,this[_0x4f8f9c(0x106)]=_0x37eed9,this['_localeService']=_0x298c63;const {..._0x46cca1}=_0x1ee8f3({},ie,this[_0x4f8f9c(0x161)]);this[_0x4f8f9c(0x144)][_0x4f8f9c(0x1cc)](y,_0x46cca1);}async[_0x52beea(0x1db)](){const _0x57a430=_0x52beea,_0x18edbc=[[O],[I],[D]];this['_injector'][_0x57a430(0x201)](_0xb0f037)||_0x18edbc[_0x57a430(0x1e6)]([_0xb0f037,{'useClass':_0x3d985e}]),_0x18edbc[_0x57a430(0x11f)](_0x193332=>this['_injector'][_0x57a430(0x1da)](_0x193332)),this[_0x57a430(0x15e)][_0x57a430(0xf7)](O),this[_0x57a430(0x15e)][_0x57a430(0xf7)](I),this[_0x57a430(0x15e)][_0x57a430(0xf7)](D);}};_n(j,_0x52beea(0x234),_0x52beea(0x135)),j=mn([_0x540bc7(_0x338329),P(0x1,_0x29a1d8(_0x187cea)),P(0x2,_0x40db95),P(0x3,_0x43aba7),P(0x4,_0x16eced),P(0x5,_0x29a1d8(_0x4660e9))],j);export{nn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,cn as MCPStatusDisplay,D as MCPUIMenuController,V as OpenMCPConfigPanelCommand,j as UniverMCPUIPlugin,Mn as enUS,An as zhCN};
@@ -1 +1 @@
1
- function _0x58f6(){const _0x232cc9=['Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP:\x20Max\x20Retries\x20Exceeded','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','1012908wupHCC','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Enable\x20authentication\x20for\x20secure\x20connections','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Unknown\x20Status','4Hnwcus','Get\x20your\x20API\x20key\x20in\x20seconds','Enable\x20Authentication','Connecting...','MCP:\x20Unauthorized','MCP\x20Connected','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.','Copy\x20the\x20JSON\x20configuration\x20below','Invalid\x20configuration','MCP\x20Configuration','223700pHqjBF','MCP:\x20Session\x20ID\x20Occupied','161dygDdy','API\x20Key','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Disconnected','MCP\x20Connection\x20Failed','Configuration\x20Steps:','What\x20is\x20API\x20Key?','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','API\x20key\x20is\x20required','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','1987204oIDcIP','Failed\x20to\x20save\x20configuration','Session\x20ID','141424EeoOdk','MCP:\x20Network\x20Error','Click\x20to\x20connect\x20MCP','2074221gQrUnG','Disconnected','700107YyGYlL','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','3118210yjgKDb','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Saving...','MCP\x20Client\x20Configuration','Max\x20Retries'];_0x58f6=function(){return _0x232cc9;};return _0x58f6();}const _0x579a11=_0x54ba;(function(_0x23dd32,_0x3ae802){const _0x5a5ae2=_0x54ba,_0x1a0992=_0x23dd32();while(!![]){try{const _0x4f4036=parseInt(_0x5a5ae2(0x1d3))/0x1*(parseInt(_0x5a5ae2(0x1f9))/0x2)+-parseInt(_0x5a5ae2(0x1e7))/0x3+-parseInt(_0x5a5ae2(0x1df))/0x4+parseInt(_0x5a5ae2(0x1e9))/0x5+parseInt(_0x5a5ae2(0x1f1))/0x6+-parseInt(_0x5a5ae2(0x1d5))/0x7*(parseInt(_0x5a5ae2(0x1e2))/0x8)+parseInt(_0x5a5ae2(0x1e5))/0x9;if(_0x4f4036===_0x3ae802)break;else _0x1a0992['push'](_0x1a0992['shift']());}catch(_0x4f5fe0){_0x1a0992['push'](_0x1a0992['shift']());}}}(_0x58f6,0x516fd));function _0x54ba(_0x4af229,_0x5dd9b9){_0x4af229=_0x4af229-0x1cb;const _0x58f62e=_0x58f6();let _0x54ba8a=_0x58f62e[_0x4af229];return _0x54ba8a;}const e={'mcpStatus':{'disconnected':_0x579a11(0x1d8),'connecting':'MCP\x20Connecting...','connected':_0x579a11(0x1cd),'failed':_0x579a11(0x1d9),'retrying':'MCP\x20Retrying...','unknown':_0x579a11(0x1f8),'unauthorized':_0x579a11(0x1cc),'sessionOccupied':_0x579a11(0x1d4),'networkError':_0x579a11(0x1e3),'maxRetriesExceeded':_0x579a11(0x1ef),'clickToConnect':_0x579a11(0x1e4),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x579a11(0x1d2),'description':_0x579a11(0x1f7),'apiKey':_0x579a11(0x1d6),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x579a11(0x1de),'enableAuth':_0x579a11(0x1fb),'enableAuthHint':_0x579a11(0x1f5),'connectionInfo':_0x579a11(0x1ec),'mcpClientConfig':_0x579a11(0x1ec),'configInstructions':_0x579a11(0x1f4),'configStepTitle':_0x579a11(0x1da),'configStep1':_0x579a11(0x1d0),'configStep2':_0x579a11(0x1ee),'configStep3':_0x579a11(0x1e8),'sessionId':_0x579a11(0x1e1),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x579a11(0x1d7),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x579a11(0x1ed),'save':_0x579a11(0x1ce),'saving':_0x579a11(0x1eb),'note1':_0x579a11(0x1dc),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x579a11(0x1e0),'apiApplyInfo':{'title':_0x579a11(0x1db),'description':_0x579a11(0x1cf),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x579a11(0x1fa)},'validation':{'apiKeyRequired':_0x579a11(0x1dd),'apiKeyTooShort':_0x579a11(0x1ea),'invalidConfig':_0x579a11(0x1d1),'invalidApiKey':_0x579a11(0x1f6)},'connectionStatus':{'disconnected':_0x579a11(0x1e6),'connecting':_0x579a11(0x1cb),'connected':'Connected','failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'unauthorized':_0x579a11(0x1f2),'sessionOccupied':_0x579a11(0x1f0),'networkError':_0x579a11(0x1f3),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;export{n as default};
1
+ function _0x3886(){const _0x4504c0=['Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Click\x20to\x20configure\x20MCP','MCP\x20Connection\x20Failed','Invalid\x20configuration','What\x20is\x20API\x20Key?','Enable\x20Authentication','Configuration\x20Steps:','214556ohZndU','Connected','MCP:\x20Max\x20Retries\x20Exceeded','2IKXUHE','Connecting...','MCP\x20Retrying...','Enter\x20your\x20API\x20key','899120gRNAhw','Max\x20Retries','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Configuration','2098235dxzTqe','5381752Lonbrd','MCP:\x20Unauthorized','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Failed\x20to\x20save\x20configuration','Configuration\x20saved\x20successfully','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','702684ufxUqc','API\x20key\x20with\x20Bearer\x20prefix.','Enable\x20authentication\x20for\x20secure\x20connections','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','4621652ktMumC','Copy\x20the\x20JSON\x20configuration\x20below','Disconnected','Session\x20ID','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Click\x20to\x20connect\x20MCP','MCP\x20Disconnected','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','2339751KYXMAH','MCP\x20Client\x20Configuration','Saving...','MCP\x20Connected','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Univer\x20AI\x20Console'];_0x3886=function(){return _0x4504c0;};return _0x3886();}const _0x348b67=_0x5c15;(function(_0x438b0d,_0x5e4893){const _0x38b66a=_0x5c15,_0x6ea2f8=_0x438b0d();while(!![]){try{const _0x58af65=parseInt(_0x38b66a(0x1cc))/0x1+-parseInt(_0x38b66a(0x1c8))/0x2*(parseInt(_0x38b66a(0x1e3))/0x3)+parseInt(_0x38b66a(0x1c5))/0x4+parseInt(_0x38b66a(0x1d0))/0x5+-parseInt(_0x38b66a(0x1d7))/0x6+parseInt(_0x38b66a(0x1db))/0x7+-parseInt(_0x38b66a(0x1d1))/0x8;if(_0x58af65===_0x5e4893)break;else _0x6ea2f8['push'](_0x6ea2f8['shift']());}catch(_0x460ee8){_0x6ea2f8['push'](_0x6ea2f8['shift']());}}}(_0x3886,0x7102c));function _0x5c15(_0x58e258,_0x131deb){_0x58e258=_0x58e258-0x1bd;const _0x38860c=_0x3886();let _0x5c15be=_0x38860c[_0x58e258];return _0x5c15be;}const e={'mcpStatus':{'disconnected':_0x348b67(0x1e1),'connecting':'MCP\x20Connecting...','connected':_0x348b67(0x1e6),'failed':_0x348b67(0x1c0),'retrying':_0x348b67(0x1ca),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x348b67(0x1d2),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x348b67(0x1c7),'clickToConnect':_0x348b67(0x1e0),'clickToConfigure':_0x348b67(0x1bf)},'mcpConfig':{'title':_0x348b67(0x1cf),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':_0x348b67(0x1cb),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x348b67(0x1c3),'enableAuthHint':_0x348b67(0x1d9),'connectionInfo':_0x348b67(0x1e4),'mcpClientConfig':_0x348b67(0x1e4),'configInstructions':_0x348b67(0x1bd),'configStepTitle':_0x348b67(0x1c4),'configStep1':_0x348b67(0x1dc),'configStep2':_0x348b67(0x1da),'configStep3':_0x348b67(0x1d6),'sessionId':_0x348b67(0x1de),'sessionIdDescription':_0x348b67(0x1df),'authorizationDescription':_0x348b67(0x1d8),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x348b67(0x1cd),'save':'Save\x20Configuration','saving':_0x348b67(0x1e5),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x348b67(0x1d5),'configError':_0x348b67(0x1d4),'apiApplyInfo':{'title':_0x348b67(0x1c2),'description':_0x348b67(0x1be),'univerAiLabel':_0x348b67(0x1e8),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x348b67(0x1ce),'invalidConfig':_0x348b67(0x1c1),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x348b67(0x1dd),'connecting':_0x348b67(0x1c9),'connected':_0x348b67(0x1c6),'failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x348b67(0x1e2),'networkError':_0x348b67(0x1e7),'maxRetriesExceeded':_0x348b67(0x1d3)}}},n=e;export{n as default};
@@ -1 +1 @@
1
- const _0x10618e=_0x5d57;function _0xb99a(){const _0x1b44ed=['API\x20Key','11280290RxeWBe','Enable\x20Authentication','Retrying...','1838670unbygL','MCP:\x20Unauthorized','MCP\x20Connection\x20Failed','Connection\x20Failed','API\x20key\x20with\x20Bearer\x20prefix.','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Connecting...','MCP\x20Unknown\x20Status','MCP\x20Connecting...','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','What\x20is\x20API\x20Key?','2279562nJVcIt','10CMxClS','2EyqRRj','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Configuration\x20Parameters:','Configuration\x20saved\x20successfully','MCP\x20Retrying...','Failed\x20to\x20save\x20configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Saving...','Univer\x20AI\x20Console','MCP\x20Disconnected','8568536MCsNnb','9FneJno','MCP\x20Client\x20Configuration','MCP:\x20Session\x20ID\x20Occupied','2547188yIBqKJ','MCP:\x20Max\x20Retries\x20Exceeded','Configuration\x20Steps:','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Click\x20to\x20configure\x20MCP','Session\x20ID','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Invalid\x20configuration','Connected','2184724MpFRzN','1158048ZQMRwa','Enter\x20your\x20API\x20key','Get\x20your\x20API\x20key\x20in\x20seconds','Enable\x20authentication\x20for\x20secure\x20connections','MCP:\x20Network\x20Error','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Max\x20Retries'];_0xb99a=function(){return _0x1b44ed;};return _0xb99a();}(function(_0x2fe981,_0x37173f){const _0x8c77ea=_0x5d57,_0x3febeb=_0x2fe981();while(!![]){try{const _0xab5e90=-parseInt(_0x8c77ea(0x140))/0x1+parseInt(_0x8c77ea(0x158))/0x2*(parseInt(_0x8c77ea(0x156))/0x3)+-parseInt(_0x8c77ea(0x13f))/0x4*(parseInt(_0x8c77ea(0x157))/0x5)+parseInt(_0x8c77ea(0x14b))/0x6+-parseInt(_0x8c77ea(0x136))/0x7+parseInt(_0x8c77ea(0x132))/0x8+parseInt(_0x8c77ea(0x133))/0x9*(parseInt(_0x8c77ea(0x148))/0xa);if(_0xab5e90===_0x37173f)break;else _0x3febeb['push'](_0x3febeb['shift']());}catch(_0x27d4dc){_0x3febeb['push'](_0x3febeb['shift']());}}}(_0xb99a,0x9ef5d));const e={'mcpStatus':{'disconnected':_0x10618e(0x131),'connecting':_0x10618e(0x153),'connected':'MCP\x20Connected','failed':_0x10618e(0x14d),'retrying':_0x10618e(0x12c),'unknown':_0x10618e(0x152),'unauthorized':_0x10618e(0x14c),'sessionOccupied':_0x10618e(0x135),'networkError':_0x10618e(0x144),'maxRetriesExceeded':_0x10618e(0x137),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x10618e(0x13a)},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x10618e(0x147),'apiKeyPlaceholder':_0x10618e(0x141),'apiKeyHint':_0x10618e(0x154),'enableAuth':_0x10618e(0x149),'enableAuthHint':_0x10618e(0x143),'connectionInfo':_0x10618e(0x134),'mcpClientConfig':_0x10618e(0x134),'configInstructions':_0x10618e(0x12e),'configStepTitle':_0x10618e(0x138),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x10618e(0x150),'sessionId':_0x10618e(0x13b),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x10618e(0x14f),'configParameters':_0x10618e(0x12a),'maxRetries':_0x10618e(0x146),'save':'Save\x20Configuration','saving':_0x10618e(0x12f),'note1':_0x10618e(0x13c),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x10618e(0x12b),'configError':_0x10618e(0x12d),'apiApplyInfo':{'title':_0x10618e(0x155),'description':_0x10618e(0x139),'univerAiLabel':_0x10618e(0x130),'getStarted':_0x10618e(0x142)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x10618e(0x145),'invalidConfig':_0x10618e(0x13d),'invalidApiKey':_0x10618e(0x129)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x10618e(0x151),'connected':_0x10618e(0x13e),'failed':_0x10618e(0x14e),'retrying':_0x10618e(0x14a)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x10618e(0x159),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}};function _0x5d57(_0x20968b,_0x31dfe5){_0x20968b=_0x20968b-0x129;const _0xb99a7b=_0xb99a();let _0x5d5794=_0xb99a7b[_0x20968b];return _0x5d5794;}export{e as default};
1
+ const _0x28d87e=_0x4180;(function(_0x5ef827,_0x105850){const _0x20ac5a=_0x4180,_0x2da038=_0x5ef827();while(!![]){try{const _0x541709=parseInt(_0x20ac5a(0xe8))/0x1*(parseInt(_0x20ac5a(0xeb))/0x2)+parseInt(_0x20ac5a(0xfa))/0x3*(-parseInt(_0x20ac5a(0xe1))/0x4)+parseInt(_0x20ac5a(0x107))/0x5*(parseInt(_0x20ac5a(0x102))/0x6)+parseInt(_0x20ac5a(0xfe))/0x7+parseInt(_0x20ac5a(0xf2))/0x8+-parseInt(_0x20ac5a(0xde))/0x9+-parseInt(_0x20ac5a(0xe9))/0xa;if(_0x541709===_0x105850)break;else _0x2da038['push'](_0x2da038['shift']());}catch(_0x581a76){_0x2da038['push'](_0x2da038['shift']());}}}(_0x3648,0xa27ca));const e={'mcpStatus':{'disconnected':_0x28d87e(0x101),'connecting':_0x28d87e(0xf4),'connected':'MCP\x20Connected','failed':_0x28d87e(0x105),'retrying':_0x28d87e(0xfb),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x28d87e(0xdd),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x28d87e(0xf0),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x28d87e(0x103),'clickToConfigure':_0x28d87e(0xdf)},'mcpConfig':{'title':_0x28d87e(0xfc),'description':_0x28d87e(0x10a),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x28d87e(0xec),'apiKeyHint':_0x28d87e(0xf9),'enableAuth':_0x28d87e(0xf3),'enableAuthHint':_0x28d87e(0xee),'connectionInfo':_0x28d87e(0xe6),'mcpClientConfig':_0x28d87e(0xe6),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':_0x28d87e(0x100),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x28d87e(0xea),'sessionId':_0x28d87e(0xe0),'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':_0x28d87e(0xf8),'maxRetries':_0x28d87e(0x106),'save':_0x28d87e(0xf6),'saving':_0x28d87e(0xff),'note1':_0x28d87e(0xe4),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x28d87e(0xf7),'configError':_0x28d87e(0xed),'apiApplyInfo':{'title':_0x28d87e(0x104),'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':_0x28d87e(0xe7),'getStarted':_0x28d87e(0xf1)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x28d87e(0xe3)},'connectionStatus':{'disconnected':_0x28d87e(0xe2),'connecting':_0x28d87e(0xfd),'connected':_0x28d87e(0xf5),'failed':_0x28d87e(0x108),'retrying':_0x28d87e(0xe5)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x28d87e(0x109),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x28d87e(0xef)}}};function _0x4180(_0x528196,_0x312222){_0x528196=_0x528196-0xdd;const _0x364808=_0x3648();let _0x4180bc=_0x364808[_0x528196];return _0x4180bc;}function _0x3648(){const _0xdec430=['Connected','Save\x20Configuration','Configuration\x20saved\x20successfully','Configuration\x20Parameters:','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','125043nZqGeg','MCP\x20Retrying...','MCP\x20Configuration','Connecting...','9258816itNdES','Saving...','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Disconnected','1533966VpMNbw','Click\x20to\x20connect\x20MCP','What\x20is\x20API\x20Key?','MCP\x20Connection\x20Failed','Max\x20Retries','5qLWKoK','Connection\x20Failed','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20Unauthorized','6557877tONkBm','Click\x20to\x20configure\x20MCP','Session\x20ID','72McaANF','Disconnected','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Retrying...','MCP\x20Client\x20Configuration','Univer\x20AI\x20Console','1egwcWA','2894230QITFJv','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','892148rayKgx','Enter\x20your\x20API\x20key','Failed\x20to\x20save\x20configuration','Enable\x20authentication\x20for\x20secure\x20connections','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP:\x20Network\x20Error','Get\x20your\x20API\x20key\x20in\x20seconds','3275656yACdQT','Enable\x20Authentication','MCP\x20Connecting...'];_0x3648=function(){return _0xdec430;};return _0x3648();}export{e as default};
@@ -1 +1 @@
1
- const _0x2d1a8c=_0x65b1;function _0x65b1(_0x13f5e6,_0x1c8f53){_0x13f5e6=_0x13f5e6-0x76;const _0x2bea1d=_0x2bea();let _0x65b16b=_0x2bea1d[_0x13f5e6];return _0x65b16b;}function _0x2bea(){const _0x2eb376=['MCP\x20Unknown\x20Status','1360086zfTZzQ','MCP:\x20Unauthorized','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP:\x20Max\x20Retries\x20Exceeded','Session\x20ID','Click\x20to\x20connect\x20MCP','Configuration\x20saved\x20successfully','3323916cZXFVh','Retrying...','MCP\x20Connected','79492pAuHsc','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','What\x20is\x20API\x20Key?','75402NsXqrV','Connected','Configuration\x20Steps:','Enter\x20your\x20API\x20key','MCP:\x20Network\x20Error','MCP\x20Disconnected','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Client\x20Configuration','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Enable\x20Authentication','Invalid\x20configuration','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Saving...','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','169318OMBwSr','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Copy\x20the\x20JSON\x20configuration\x20below','22085070iisGwm','15Uyxfkv','1472ycDerY','MCP\x20Connection\x20Failed','API\x20Key','2NublMq','10228750eLKHHo','MCP\x20Connecting...','Max\x20Retries','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','API\x20key\x20is\x20required','Disconnected','Failed\x20to\x20save\x20configuration'];_0x2bea=function(){return _0x2eb376;};return _0x2bea();}(function(_0x134658,_0x671e54){const _0x1c4cff=_0x65b1,_0x49c14a=_0x134658();while(!![]){try{const _0x37b131=parseInt(_0x1c4cff(0x78))/0x1*(-parseInt(_0x1c4cff(0x80))/0x2)+-parseInt(_0x1c4cff(0x89))/0x3+-parseInt(_0x1c4cff(0x93))/0x4*(-parseInt(_0x1c4cff(0x7c))/0x5)+parseInt(_0x1c4cff(0x90))/0x6+parseInt(_0x1c4cff(0x81))/0x7+-parseInt(_0x1c4cff(0x7d))/0x8*(-parseInt(_0x1c4cff(0x98))/0x9)+-parseInt(_0x1c4cff(0x7b))/0xa;if(_0x37b131===_0x671e54)break;else _0x49c14a['push'](_0x49c14a['shift']());}catch(_0x6a5cad){_0x49c14a['push'](_0x49c14a['shift']());}}}(_0x2bea,0xbfb44));const e={'mcpStatus':{'disconnected':_0x2d1a8c(0x9d),'connecting':_0x2d1a8c(0x82),'connected':_0x2d1a8c(0x92),'failed':_0x2d1a8c(0x7e),'retrying':'MCP\x20Retrying...','unknown':_0x2d1a8c(0x88),'unauthorized':_0x2d1a8c(0x8a),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x2d1a8c(0x9c),'maxRetriesExceeded':_0x2d1a8c(0x8c),'clickToConnect':_0x2d1a8c(0x8e),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x2d1a8c(0xa5),'description':_0x2d1a8c(0x84),'apiKey':_0x2d1a8c(0x7f),'apiKeyPlaceholder':_0x2d1a8c(0x9b),'apiKeyHint':_0x2d1a8c(0x95),'enableAuth':_0x2d1a8c(0xa2),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x2d1a8c(0xa0),'mcpClientConfig':_0x2d1a8c(0xa0),'configInstructions':_0x2d1a8c(0xa6),'configStepTitle':_0x2d1a8c(0x9a),'configStep1':_0x2d1a8c(0x7a),'configStep2':_0x2d1a8c(0x9e),'configStep3':_0x2d1a8c(0x9f),'sessionId':_0x2d1a8c(0x8d),'sessionIdDescription':_0x2d1a8c(0x96),'authorizationDescription':_0x2d1a8c(0xa4),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x2d1a8c(0x83),'save':'Save\x20Configuration','saving':_0x2d1a8c(0x76),'note1':_0x2d1a8c(0x8b),'note2':_0x2d1a8c(0x94),'configSaved':_0x2d1a8c(0x8f),'configError':_0x2d1a8c(0x87),'apiApplyInfo':{'title':_0x2d1a8c(0x97),'description':_0x2d1a8c(0x77),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x2d1a8c(0x85),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x2d1a8c(0xa3),'invalidApiKey':_0x2d1a8c(0x79)},'connectionStatus':{'disconnected':_0x2d1a8c(0x86),'connecting':'Connecting...','connected':_0x2d1a8c(0x99),'failed':'Connection\x20Failed','retrying':_0x2d1a8c(0x91)},'connectionError':{'unauthorized':_0x2d1a8c(0xa1),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x2d1a8c(0xa7),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;export{n as default};
1
+ function _0x4c61(_0x2adfa9,_0x2d5ecc){_0x2adfa9=_0x2adfa9-0x1e9;const _0x5d8f36=_0x5d8f();let _0x4c611e=_0x5d8f36[_0x2adfa9];return _0x4c611e;}const _0x523364=_0x4c61;(function(_0x33f699,_0x555ba3){const _0x3dd7a6=_0x4c61,_0x45c12b=_0x33f699();while(!![]){try{const _0x132308=parseInt(_0x3dd7a6(0x205))/0x1*(parseInt(_0x3dd7a6(0x1fb))/0x2)+-parseInt(_0x3dd7a6(0x1e9))/0x3*(parseInt(_0x3dd7a6(0x203))/0x4)+parseInt(_0x3dd7a6(0x20b))/0x5+-parseInt(_0x3dd7a6(0x200))/0x6+-parseInt(_0x3dd7a6(0x1f2))/0x7*(-parseInt(_0x3dd7a6(0x1fc))/0x8)+-parseInt(_0x3dd7a6(0x218))/0x9*(-parseInt(_0x3dd7a6(0x1fa))/0xa)+-parseInt(_0x3dd7a6(0x210))/0xb*(parseInt(_0x3dd7a6(0x1f6))/0xc);if(_0x132308===_0x555ba3)break;else _0x45c12b['push'](_0x45c12b['shift']());}catch(_0x427b12){_0x45c12b['push'](_0x45c12b['shift']());}}}(_0x5d8f,0x2d669));function _0x5d8f(){const _0x3d3d1f=['MCP\x20Unknown\x20Status','Copy\x20the\x20JSON\x20configuration\x20below','MCP:\x20Unauthorized','1698528KkBPKk','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Connection\x20Failed','8OUrAFy','API\x20key\x20is\x20required','90832YVNbke','Disconnected','Retrying...','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP\x20Disconnected','MCP:\x20Max\x20Retries\x20Exceeded','1624215kofAKR','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Enable\x20Authentication','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Max\x20Retries','22RnAyiz','Connected','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','API\x20key\x20with\x20Bearer\x20prefix.','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Univer\x20AI\x20Console','Configuration\x20Steps:','MCP\x20Client\x20Configuration','202284oUcpnI','MCP\x20Connection\x20Failed','Enter\x20your\x20API\x20key','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','87477NbvcGb','MCP\x20Retrying...','Invalid\x20configuration','MCP:\x20Session\x20ID\x20Occupied','Session\x20ID','Click\x20to\x20configure\x20MCP','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP:\x20Network\x20Error','Get\x20your\x20API\x20key\x20in\x20seconds','22729ljEPIt','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','What\x20is\x20API\x20Key?','1917924xuwPSf','Configuration\x20saved\x20successfully','Click\x20to\x20connect\x20MCP','MCP\x20Connected','10OcYyQH','8nUQdSv','336OQKWQz'];_0x5d8f=function(){return _0x3d3d1f;};return _0x5d8f();}const e={'mcpStatus':{'disconnected':_0x523364(0x209),'connecting':'MCP\x20Connecting...','connected':_0x523364(0x1f9),'failed':_0x523364(0x219),'retrying':_0x523364(0x1ea),'unknown':_0x523364(0x1fd),'unauthorized':_0x523364(0x1ff),'sessionOccupied':_0x523364(0x1ec),'networkError':_0x523364(0x1f0),'maxRetriesExceeded':_0x523364(0x20a),'clickToConnect':_0x523364(0x1f8),'clickToConfigure':_0x523364(0x1ee)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x523364(0x21b),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x523364(0x21a),'apiKeyHint':_0x523364(0x212),'enableAuth':_0x523364(0x20d),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x523364(0x217),'mcpClientConfig':_0x523364(0x217),'configInstructions':_0x523364(0x20c),'configStepTitle':_0x523364(0x216),'configStep1':_0x523364(0x1fe),'configStep2':_0x523364(0x214),'configStep3':_0x523364(0x1ef),'sessionId':_0x523364(0x1ed),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x523364(0x213),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x523364(0x20f),'save':'Save\x20Configuration','saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x523364(0x1f7),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x523364(0x1f5),'description':_0x523364(0x208),'univerAiLabel':_0x523364(0x215),'getStarted':_0x523364(0x1f1)},'validation':{'apiKeyRequired':_0x523364(0x204),'apiKeyTooShort':_0x523364(0x201),'invalidConfig':_0x523364(0x1eb),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x523364(0x206),'connecting':'Connecting...','connected':_0x523364(0x211),'failed':_0x523364(0x202),'retrying':_0x523364(0x207)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x523364(0x20e),'networkError':_0x523364(0x1f3),'maxRetriesExceeded':_0x523364(0x1f4)}}},n=e;export{n as default};
@@ -1 +1 @@
1
- const _0x55fa2a=_0x6116;(function(_0x5a3742,_0x5ce473){const _0x21820b=_0x6116,_0x51685a=_0x5a3742();while(!![]){try{const _0x937c8e=-parseInt(_0x21820b(0xac))/0x1+-parseInt(_0x21820b(0xa2))/0x2+parseInt(_0x21820b(0xb8))/0x3+parseInt(_0x21820b(0x8f))/0x4*(-parseInt(_0x21820b(0x89))/0x5)+-parseInt(_0x21820b(0x98))/0x6+-parseInt(_0x21820b(0xad))/0x7+parseInt(_0x21820b(0x90))/0x8;if(_0x937c8e===_0x5ce473)break;else _0x51685a['push'](_0x51685a['shift']());}catch(_0x51e27d){_0x51685a['push'](_0x51685a['shift']());}}}(_0x3ba9,0x954ae));function _0x6116(_0x533442,_0x3dbd6c){_0x533442=_0x533442-0x89;const _0x3ba9c0=_0x3ba9();let _0x611656=_0x3ba9c0[_0x533442];return _0x611656;}const e={'mcpStatus':{'disconnected':_0x55fa2a(0xb7),'connecting':_0x55fa2a(0xb5),'connected':_0x55fa2a(0xaf),'failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':_0x55fa2a(0x95),'unauthorized':_0x55fa2a(0x9d),'sessionOccupied':_0x55fa2a(0x9c),'networkError':_0x55fa2a(0xbb),'maxRetriesExceeded':_0x55fa2a(0x96),'clickToConnect':_0x55fa2a(0x9e),'clickToConfigure':_0x55fa2a(0xa9)},'mcpConfig':{'title':_0x55fa2a(0xb6),'description':_0x55fa2a(0xa3),'apiKey':_0x55fa2a(0x9a),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x55fa2a(0xa8),'enableAuth':_0x55fa2a(0x91),'enableAuthHint':_0x55fa2a(0xa6),'connectionInfo':_0x55fa2a(0x8e),'mcpClientConfig':_0x55fa2a(0x8e),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x55fa2a(0xb9),'configStep1':_0x55fa2a(0x8a),'configStep2':_0x55fa2a(0xab),'configStep3':_0x55fa2a(0xb4),'sessionId':_0x55fa2a(0x92),'sessionIdDescription':_0x55fa2a(0xa5),'authorizationDescription':_0x55fa2a(0x94),'configParameters':_0x55fa2a(0xb0),'maxRetries':_0x55fa2a(0xa1),'save':'Save\x20Configuration','saving':_0x55fa2a(0x99),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x55fa2a(0x8b),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x55fa2a(0x97),'apiApplyInfo':{'title':_0x55fa2a(0xaa),'description':_0x55fa2a(0xb1),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x55fa2a(0xb2)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x55fa2a(0xa7),'invalidConfig':_0x55fa2a(0x9f),'invalidApiKey':_0x55fa2a(0x8d)},'connectionStatus':{'disconnected':_0x55fa2a(0x9b),'connecting':_0x55fa2a(0xae),'connected':_0x55fa2a(0x93),'failed':_0x55fa2a(0xa4),'retrying':_0x55fa2a(0x8c)},'connectionError':{'unauthorized':_0x55fa2a(0xa0),'sessionOccupied':_0x55fa2a(0xb3),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x55fa2a(0xba)}}},n=e;function _0x3ba9(){const _0x35ff53=['MCP\x20Client\x20Configuration','1763084SOerzD','21751888PwmJAp','Enable\x20Authentication','Session\x20ID','Connected','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Unknown\x20Status','MCP:\x20Max\x20Retries\x20Exceeded','Failed\x20to\x20save\x20configuration','1470174mnoHgU','Saving...','API\x20Key','Disconnected','MCP:\x20Session\x20ID\x20Occupied','MCP:\x20Unauthorized','Click\x20to\x20connect\x20MCP','Invalid\x20configuration','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Max\x20Retries','2151666gPPcMw','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Connection\x20Failed','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Enable\x20authentication\x20for\x20secure\x20connections','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Click\x20to\x20configure\x20MCP','What\x20is\x20API\x20Key?','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','185017eJqgVk','5116279EGzenD','Connecting...','MCP\x20Connected','Configuration\x20Parameters:','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Get\x20your\x20API\x20key\x20in\x20seconds','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Connecting...','MCP\x20Configuration','MCP\x20Disconnected','1710189gkCpjO','Configuration\x20Steps:','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP:\x20Network\x20Error','5qaSlHu','Copy\x20the\x20JSON\x20configuration\x20below','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Retrying...','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'];_0x3ba9=function(){return _0x35ff53;};return _0x3ba9();}export{n as default};
1
+ const _0x1c95b3=_0x588f;function _0x31a3(){const _0x40124a=['3VjdFBs','9841224OPvHrt','MCP\x20Retrying...','API\x20Key','Connection\x20Failed','3169268tmMYvv','Saving...','Enable\x20authentication\x20for\x20secure\x20connections','Enter\x20your\x20API\x20key','Get\x20your\x20API\x20key\x20in\x20seconds','What\x20is\x20API\x20Key?','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Configuration\x20saved\x20successfully','Configuration\x20Parameters:','MCP\x20Configuration','994KwGMXm','7134694Eicqej','6TPMYsz','622GnFxan','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','33FkYFkd','Click\x20to\x20configure\x20MCP','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP:\x20Network\x20Error','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','420610quKqiK','MCP\x20Connection\x20Failed','16029yMBvtD','Max\x20Retries','Configuration\x20Steps:','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Session\x20ID','Failed\x20to\x20save\x20configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Retrying...','MCP\x20Connecting...','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Copy\x20the\x20JSON\x20configuration\x20below','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Save\x20Configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Unknown\x20Status','3215270uchzVI','1672TAPDWY','API\x20key\x20with\x20Bearer\x20prefix.','Enable\x20Authentication','API\x20key\x20is\x20required','MCP:\x20Unauthorized','Invalid\x20configuration','Univer\x20AI\x20Console'];_0x31a3=function(){return _0x40124a;};return _0x31a3();}function _0x588f(_0x70f241,_0x49a19c){_0x70f241=_0x70f241-0x1df;const _0x31a362=_0x31a3();let _0x588f8a=_0x31a362[_0x70f241];return _0x588f8a;}(function(_0x1fa9a1,_0xd9feac){const _0x214a5c=_0x588f,_0x4f2348=_0x1fa9a1();while(!![]){try{const _0x1ee223=-parseInt(_0x214a5c(0x1e5))/0x1*(-parseInt(_0x214a5c(0x1e8))/0x2)+-parseInt(_0x214a5c(0x209))/0x3*(-parseInt(_0x214a5c(0x20e))/0x4)+-parseInt(_0x214a5c(0x1ef))/0x5*(parseInt(_0x214a5c(0x1e7))/0x6)+-parseInt(_0x214a5c(0x1e6))/0x7+-parseInt(_0x214a5c(0x202))/0x8*(-parseInt(_0x214a5c(0x1f1))/0x9)+-parseInt(_0x214a5c(0x201))/0xa*(-parseInt(_0x214a5c(0x1ea))/0xb)+-parseInt(_0x214a5c(0x20a))/0xc;if(_0x1ee223===_0xd9feac)break;else _0x4f2348['push'](_0x4f2348['shift']());}catch(_0xd61e2b){_0x4f2348['push'](_0x4f2348['shift']());}}}(_0x31a3,0x7daeb));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x1c95b3(0x1fa),'connected':'MCP\x20Connected','failed':_0x1c95b3(0x1f0),'retrying':_0x1c95b3(0x20b),'unknown':_0x1c95b3(0x200),'unauthorized':_0x1c95b3(0x206),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x1c95b3(0x1ed),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x1c95b3(0x1eb)},'mcpConfig':{'title':_0x1c95b3(0x1e4),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x1c95b3(0x20c),'apiKeyPlaceholder':_0x1c95b3(0x211),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x1c95b3(0x204),'enableAuthHint':_0x1c95b3(0x210),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x1c95b3(0x1ff),'configStepTitle':_0x1c95b3(0x1f3),'configStep1':_0x1c95b3(0x1fc),'configStep2':_0x1c95b3(0x1f4),'configStep3':_0x1c95b3(0x1f5),'sessionId':_0x1c95b3(0x1f6),'sessionIdDescription':_0x1c95b3(0x1fd),'authorizationDescription':_0x1c95b3(0x203),'configParameters':_0x1c95b3(0x1e3),'maxRetries':_0x1c95b3(0x1f2),'save':_0x1c95b3(0x1fe),'saving':_0x1c95b3(0x20f),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x1c95b3(0x1fb),'configSaved':_0x1c95b3(0x1e2),'configError':_0x1c95b3(0x1f7),'apiApplyInfo':{'title':_0x1c95b3(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':_0x1c95b3(0x208),'getStarted':_0x1c95b3(0x1df)},'validation':{'apiKeyRequired':_0x1c95b3(0x205),'apiKeyTooShort':_0x1c95b3(0x1f8),'invalidConfig':_0x1c95b3(0x207),'invalidApiKey':_0x1c95b3(0x1ec)},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':'Connected','failed':_0x1c95b3(0x20d),'retrying':_0x1c95b3(0x1f9)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x1c95b3(0x1e1),'networkError':_0x1c95b3(0x1e9),'maxRetriesExceeded':_0x1c95b3(0x1ee)}}},n=e;export{n as default};
@@ -1 +1 @@
1
- const _0xf2a301=_0x2f0b;(function(_0x4d6b3d,_0x209552){const _0x4b0d97=_0x2f0b,_0x19130b=_0x4d6b3d();while(!![]){try{const _0x3b6770=parseInt(_0x4b0d97(0xfe))/0x1*(parseInt(_0x4b0d97(0x117))/0x2)+-parseInt(_0x4b0d97(0x109))/0x3*(parseInt(_0x4b0d97(0x118))/0x4)+-parseInt(_0x4b0d97(0xfb))/0x5*(-parseInt(_0x4b0d97(0x110))/0x6)+-parseInt(_0x4b0d97(0x11c))/0x7*(-parseInt(_0x4b0d97(0x123))/0x8)+parseInt(_0x4b0d97(0x100))/0x9+-parseInt(_0x4b0d97(0x112))/0xa+-parseInt(_0x4b0d97(0x126))/0xb;if(_0x3b6770===_0x209552)break;else _0x19130b['push'](_0x19130b['shift']());}catch(_0x1f9a9a){_0x19130b['push'](_0x19130b['shift']());}}}(_0xc09c,0xb1992));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0xf2a301(0x105),'connected':_0xf2a301(0x10b),'failed':'MCP\x20Connection\x20Failed','retrying':_0xf2a301(0x108),'unknown':_0xf2a301(0x114),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0xf2a301(0xfd),'clickToConnect':_0xf2a301(0x120),'clickToConfigure':_0xf2a301(0x122)},'mcpConfig':{'title':_0xf2a301(0x10c),'description':_0xf2a301(0xff),'apiKey':_0xf2a301(0x107),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0xf2a301(0x111),'enableAuthHint':_0xf2a301(0x124),'connectionInfo':_0xf2a301(0x11d),'mcpClientConfig':_0xf2a301(0x11d),'configInstructions':_0xf2a301(0x106),'configStepTitle':_0xf2a301(0x125),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0xf2a301(0x10a),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0xf2a301(0x102),'sessionIdDescription':_0xf2a301(0x10f),'authorizationDescription':_0xf2a301(0x104),'configParameters':_0xf2a301(0xfc),'maxRetries':_0xf2a301(0x116),'save':_0xf2a301(0xf9),'saving':_0xf2a301(0xfa),'note1':_0xf2a301(0x11f),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','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':_0xf2a301(0x121),'getStarted':_0xf2a301(0x115)},'validation':{'apiKeyRequired':_0xf2a301(0x10e),'apiKeyTooShort':_0xf2a301(0x119),'invalidConfig':_0xf2a301(0x10d),'invalidApiKey':_0xf2a301(0x11a)},'connectionStatus':{'disconnected':_0xf2a301(0x103),'connecting':'Connecting...','connected':'Connected','failed':_0xf2a301(0x11e),'retrying':_0xf2a301(0x101)},'connectionError':{'unauthorized':_0xf2a301(0x113),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0xf2a301(0x127),'maxRetriesExceeded':_0xf2a301(0x11b)}}},n=e;function _0x2f0b(_0x263f85,_0xa463a6){_0x263f85=_0x263f85-0xf9;const _0xc09cb0=_0xc09c();let _0x2f0b32=_0xc09cb0[_0x263f85];return _0x2f0b32;}function _0xc09c(){const _0x5647fc=['Univer\x20AI\x20Console','Click\x20to\x20configure\x20MCP','41808xGpPWl','Enable\x20authentication\x20for\x20secure\x20connections','Configuration\x20Steps:','23228975BufXlZ','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Save\x20Configuration','Saving...','10TAZHiF','Configuration\x20Parameters:','MCP:\x20Max\x20Retries\x20Exceeded','3138zkELem','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','8870976wsnTjc','Retrying...','Session\x20ID','Disconnected','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Connecting...','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','API\x20Key','MCP\x20Retrying...','30MWeBHf','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Connected','MCP\x20Configuration','Invalid\x20configuration','API\x20key\x20is\x20required','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','2742132TUUPKA','Enable\x20Authentication','1314430idUCDk','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Unknown\x20Status','Get\x20your\x20API\x20key\x20in\x20seconds','Max\x20Retries','282FSXnzo','101900UXVRtq','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','1183AWSGGt','MCP\x20Client\x20Configuration','Connection\x20Failed','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Click\x20to\x20connect\x20MCP'];_0xc09c=function(){return _0x5647fc;};return _0xc09c();}export{n as default};
1
+ const _0x158492=_0x47b6;(function(_0x22ea24,_0x47b932){const _0x2042b4=_0x47b6,_0x2e2e15=_0x22ea24();while(!![]){try{const _0x128248=-parseInt(_0x2042b4(0xba))/0x1+parseInt(_0x2042b4(0xb8))/0x2*(-parseInt(_0x2042b4(0xa2))/0x3)+parseInt(_0x2042b4(0xb6))/0x4*(parseInt(_0x2042b4(0xa6))/0x5)+-parseInt(_0x2042b4(0xad))/0x6+-parseInt(_0x2042b4(0xc1))/0x7*(-parseInt(_0x2042b4(0xbb))/0x8)+-parseInt(_0x2042b4(0xb5))/0x9+parseInt(_0x2042b4(0xb9))/0xa;if(_0x128248===_0x47b932)break;else _0x2e2e15['push'](_0x2e2e15['shift']());}catch(_0x173fed){_0x2e2e15['push'](_0x2e2e15['shift']());}}}(_0x30de,0xa8946));const e={'mcpStatus':{'disconnected':_0x158492(0xb1),'connecting':_0x158492(0xaa),'connected':'MCP\x20Connected','failed':_0x158492(0xc3),'retrying':_0x158492(0xc0),'unknown':_0x158492(0xb3),'unauthorized':_0x158492(0xc2),'sessionOccupied':_0x158492(0x99),'networkError':_0x158492(0xa0),'maxRetriesExceeded':_0x158492(0xa5),'clickToConnect':_0x158492(0xc7),'clickToConfigure':_0x158492(0xbc)},'mcpConfig':{'title':_0x158492(0x9d),'description':_0x158492(0x9a),'apiKey':_0x158492(0xbf),'apiKeyPlaceholder':_0x158492(0x9c),'apiKeyHint':_0x158492(0xab),'enableAuth':_0x158492(0x98),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x158492(0x9f),'mcpClientConfig':_0x158492(0x9f),'configInstructions':_0x158492(0x9e),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x158492(0xca),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x158492(0xa1),'sessionId':_0x158492(0xc5),'sessionIdDescription':_0x158492(0x9b),'authorizationDescription':_0x158492(0xc4),'configParameters':_0x158492(0xc9),'maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x158492(0xbd),'note1':_0x158492(0xa9),'note2':_0x158492(0xa3),'configSaved':_0x158492(0xac),'configError':_0x158492(0xb4),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x158492(0xc8),'univerAiLabel':_0x158492(0xa7),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x158492(0xa8),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x158492(0xa4),'invalidApiKey':_0x158492(0xbe)},'connectionStatus':{'disconnected':_0x158492(0xc6),'connecting':_0x158492(0xae),'connected':_0x158492(0xb0),'failed':_0x158492(0xaf),'retrying':_0x158492(0xb2)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x158492(0xb7),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x158492(0x97)}}},n=e;function _0x47b6(_0x10b9f5,_0x237b1a){_0x10b9f5=_0x10b9f5-0x97;const _0x30dedf=_0x30de();let _0x47b6c0=_0x30dedf[_0x10b9f5];return _0x47b6c0;}export{n as default};function _0x30de(){const _0x24a0d7=['MCP\x20Connection\x20Failed','API\x20key\x20with\x20Bearer\x20prefix.','Session\x20ID','Disconnected','Click\x20to\x20connect\x20MCP','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Configuration\x20Parameters:','Copy\x20the\x20JSON\x20configuration\x20below','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Enable\x20Authentication','MCP:\x20Session\x20ID\x20Occupied','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Enter\x20your\x20API\x20key','MCP\x20Configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Client\x20Configuration','MCP:\x20Network\x20Error','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','76389wRtYjQ','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Invalid\x20configuration','MCP:\x20Max\x20Retries\x20Exceeded','5PNkdzw','Univer\x20AI\x20Console','API\x20key\x20is\x20required','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Connecting...','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Configuration\x20saved\x20successfully','4253172MIyvjp','Connecting...','Connection\x20Failed','Connected','MCP\x20Disconnected','Retrying...','MCP\x20Unknown\x20Status','Failed\x20to\x20save\x20configuration','3420486msFptY','4886588GuSUFT','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','98VimsIS','24853900ewvKRS','720483eRgwXp','8oyNOkd','Click\x20to\x20configure\x20MCP','Saving...','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','API\x20Key','MCP\x20Retrying...','283857QUbiFB','MCP:\x20Unauthorized'];_0x30de=function(){return _0x24a0d7;};return _0x30de();}
@@ -1 +1 @@
1
- function _0x4dcd(){const _0x48740a=['一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','MCP\x20接続済み','以下のJSON設定をコピー','MCPを設定してAIでスプレッドシートを操作','設定を保存','MCP\x20不明な状態','クリックしてMCPに接続','4470FntYVw','MCPクライアントを再起動して設定を適用','Univer\x20AIコンソール','再試行中...','認証に失敗しました。APIキーを確認してください','MCP\x20接続失敗','1968800liFBLr','MCP:\x20セッションIDが使用中','クリックしてMCPを設定','171760MtkWuX','ネットワーク接続エラー。インターネット接続を確認してください','MCPクライアント設定','設定パラメータ:','APIキーを入力してください','APIキーは10文字以上である必要があります','APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','接続済み','APIキーとは?','510293oXHoXb','設定が正常に保存されました','認証を有効にする','無効な設定','333awzyCB','30joKYli','80376VlgfRg','接続中...','設定の変更は直ちに有効になります','APIキーはこのブラウザのローカルに保存されます','保存中...','MCP\x20再試行中...','170sercFk','セッションIDが現在使用中です。後でもう一度お試しください','最大再試行回数を超過しました。後でもう一度お試しください','セキュアな接続のために認証を有効にする','APIキーはローカルストレージに安全に保存されます','183payQzH','MCP:\x20最大再試行回数を超過','84359SBjHGB','195287wfTUky','APIキーは必須です','APIキー','未接続','MCP設定','MCP\x20未接続','最大再試行回数','MCPクライアントの設定ファイルに設定を追加'];_0x4dcd=function(){return _0x48740a;};return _0x4dcd();}function _0x2cfa(_0x230412,_0x1a9e03){_0x230412=_0x230412-0x190;const _0x4dcd22=_0x4dcd();let _0x2cfad5=_0x4dcd22[_0x230412];return _0x2cfad5;}const _0x2d75dc=_0x2cfa;(function(_0x567887,_0x521678){const _0x3a6058=_0x2cfa,_0x17229d=_0x567887();while(!![]){try{const _0x579b0e=-parseInt(_0x3a6058(0x1b8))/0x1+parseInt(_0x3a6058(0x192))/0x2*(-parseInt(_0x3a6058(0x1b5))/0x3)+parseInt(_0x3a6058(0x198))/0x4+-parseInt(_0x3a6058(0x19b))/0x5+-parseInt(_0x3a6058(0x1a9))/0x6*(parseInt(_0x3a6058(0x1a4))/0x7)+-parseInt(_0x3a6058(0x1aa))/0x8*(-parseInt(_0x3a6058(0x1a8))/0x9)+parseInt(_0x3a6058(0x1b0))/0xa*(parseInt(_0x3a6058(0x1b7))/0xb);if(_0x579b0e===_0x521678)break;else _0x17229d['push'](_0x17229d['shift']());}catch(_0x5246d4){_0x17229d['push'](_0x17229d['shift']());}}}(_0x4dcd,0x406a3));const e={'mcpStatus':{'disconnected':_0x2d75dc(0x1bd),'connecting':'MCP\x20接続中...','connected':_0x2d75dc(0x1c1),'failed':_0x2d75dc(0x197),'retrying':_0x2d75dc(0x1af),'unknown':_0x2d75dc(0x190),'unauthorized':'MCP:\x20認証されていません','sessionOccupied':_0x2d75dc(0x199),'networkError':'MCP:\x20ネットワークエラー','maxRetriesExceeded':_0x2d75dc(0x1b6),'clickToConnect':_0x2d75dc(0x191),'clickToConfigure':_0x2d75dc(0x19a)},'mcpConfig':{'title':_0x2d75dc(0x1bc),'description':_0x2d75dc(0x1c3),'apiKey':_0x2d75dc(0x1ba),'apiKeyPlaceholder':_0x2d75dc(0x19f),'apiKeyHint':_0x2d75dc(0x1ad),'enableAuth':_0x2d75dc(0x1a6),'enableAuthHint':_0x2d75dc(0x1b3),'connectionInfo':'MCPクライアント設定','mcpClientConfig':_0x2d75dc(0x19d),'configInstructions':'MCPクライアントの設定に次の設定を追加してください:','configStepTitle':'設定手順:','configStep1':_0x2d75dc(0x1c2),'configStep2':_0x2d75dc(0x1bf),'configStep3':_0x2d75dc(0x193),'sessionId':'セッションID','sessionIdDescription':_0x2d75dc(0x1c0),'authorizationDescription':'Bearerプレフィックス付きのAPIキー。','configParameters':_0x2d75dc(0x19e),'maxRetries':_0x2d75dc(0x1be),'save':_0x2d75dc(0x1c4),'saving':_0x2d75dc(0x1ae),'note1':_0x2d75dc(0x1ac),'note2':_0x2d75dc(0x1b4),'configSaved':_0x2d75dc(0x1a5),'configError':'設定の保存に失敗しました','apiApplyInfo':{'title':_0x2d75dc(0x1a3),'description':_0x2d75dc(0x1a1),'univerAiLabel':_0x2d75dc(0x194),'getStarted':'数秒でAPIキーを取得'},'validation':{'apiKeyRequired':_0x2d75dc(0x1b9),'apiKeyTooShort':_0x2d75dc(0x1a0),'invalidConfig':_0x2d75dc(0x1a7),'invalidApiKey':'無効なAPIキーです。キーが正しいか確認してください'},'connectionStatus':{'disconnected':_0x2d75dc(0x1bb),'connecting':_0x2d75dc(0x1ab),'connected':_0x2d75dc(0x1a2),'failed':'接続失敗','retrying':_0x2d75dc(0x195)},'connectionError':{'unauthorized':_0x2d75dc(0x196),'sessionOccupied':_0x2d75dc(0x1b1),'networkError':_0x2d75dc(0x19c),'maxRetriesExceeded':_0x2d75dc(0x1b2)}}};export{e as default};
1
+ const _0x1b2484=_0x2c8d;(function(_0x3fa6eb,_0x5b8037){const _0x3657f3=_0x2c8d,_0x413aa5=_0x3fa6eb();while(!![]){try{const _0x514d19=-parseInt(_0x3657f3(0xb1))/0x1*(parseInt(_0x3657f3(0xc1))/0x2)+parseInt(_0x3657f3(0x9b))/0x3+parseInt(_0x3657f3(0xab))/0x4+-parseInt(_0x3657f3(0x9f))/0x5*(parseInt(_0x3657f3(0xb0))/0x6)+-parseInt(_0x3657f3(0xaa))/0x7+-parseInt(_0x3657f3(0xa1))/0x8*(-parseInt(_0x3657f3(0xb5))/0x9)+parseInt(_0x3657f3(0xa7))/0xa*(-parseInt(_0x3657f3(0x9d))/0xb);if(_0x514d19===_0x5b8037)break;else _0x413aa5['push'](_0x413aa5['shift']());}catch(_0x238263){_0x413aa5['push'](_0x413aa5['shift']());}}}(_0x1f5c,0x72080));function _0x1f5c(){const _0x4632e6=['530382ZMqwsl','一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','ネットワーク接続エラー。インターネット接続を確認してください','9SoiNjf','MCP\x20未接続','MCPを設定してAIでスプレッドシートを操作','未接続','接続済み','Univer\x20AIコンソール','APIキーは10文字以上である必要があります','MCP\x20不明な状態','セッションIDが現在使用中です。後でもう一度お試しください','接続中...','MCP:\x20セッションIDが使用中','Bearerプレフィックス付きのAPIキー。','2DRKfqz','APIキーは必須です','MCP\x20再試行中...','MCPクライアント設定','セキュアな接続のために認証を有効にする','MCPクライアントの設定ファイルに設定を追加','MCP:\x20最大再試行回数を超過','MCP\x20接続中...','設定パラメータ:','設定が正常に保存されました','789915yBTCnJ','APIキーはこのブラウザのローカルに保存されます','73887zxXcKi','接続失敗','5tXPwsb','認証に失敗しました。APIキーを確認してください','2308344VVtFUJ','最大再試行回数','無効な設定','MCP設定','APIキーはローカルストレージに安全に保存されます','APIキーを入力してください','350Yxjizk','数秒でAPIキーを取得','設定の保存に失敗しました','767942HUqbYG','3293392KjWDrr','MCPクライアントを再起動して設定を適用','以下のJSON設定をコピー','保存中...','APIキーとは?','197646oipTFU'];_0x1f5c=function(){return _0x4632e6;};return _0x1f5c();}function _0x2c8d(_0x3c710e,_0x1d5226){_0x3c710e=_0x3c710e-0x94;const _0x1f5c53=_0x1f5c();let _0x2c8dda=_0x1f5c53[_0x3c710e];return _0x2c8dda;}const e={'mcpStatus':{'disconnected':_0x1b2484(0xb6),'connecting':_0x1b2484(0x98),'connected':'MCP\x20接続済み','failed':'MCP\x20接続失敗','retrying':_0x1b2484(0xc3),'unknown':_0x1b2484(0xbc),'unauthorized':'MCP:\x20認証されていません','sessionOccupied':_0x1b2484(0xbf),'networkError':'MCP:\x20ネットワークエラー','maxRetriesExceeded':_0x1b2484(0x97),'clickToConnect':'クリックしてMCPに接続','clickToConfigure':'クリックしてMCPを設定'},'mcpConfig':{'title':_0x1b2484(0xa4),'description':_0x1b2484(0xb7),'apiKey':'APIキー','apiKeyPlaceholder':_0x1b2484(0xa6),'apiKeyHint':_0x1b2484(0x9c),'enableAuth':'認証を有効にする','enableAuthHint':_0x1b2484(0x95),'connectionInfo':_0x1b2484(0x94),'mcpClientConfig':'MCPクライアント設定','configInstructions':'MCPクライアントの設定に次の設定を追加してください:','configStepTitle':'設定手順:','configStep1':_0x1b2484(0xad),'configStep2':_0x1b2484(0x96),'configStep3':_0x1b2484(0xac),'sessionId':'セッションID','sessionIdDescription':_0x1b2484(0xb2),'authorizationDescription':_0x1b2484(0xc0),'configParameters':_0x1b2484(0x99),'maxRetries':_0x1b2484(0xa2),'save':'設定を保存','saving':_0x1b2484(0xae),'note1':'設定の変更は直ちに有効になります','note2':_0x1b2484(0xa5),'configSaved':_0x1b2484(0x9a),'configError':_0x1b2484(0xa9),'apiApplyInfo':{'title':_0x1b2484(0xaf),'description':_0x1b2484(0xb3),'univerAiLabel':_0x1b2484(0xba),'getStarted':_0x1b2484(0xa8)},'validation':{'apiKeyRequired':_0x1b2484(0xc2),'apiKeyTooShort':_0x1b2484(0xbb),'invalidConfig':_0x1b2484(0xa3),'invalidApiKey':'無効なAPIキーです。キーが正しいか確認してください'},'connectionStatus':{'disconnected':_0x1b2484(0xb8),'connecting':_0x1b2484(0xbe),'connected':_0x1b2484(0xb9),'failed':_0x1b2484(0x9e),'retrying':'再試行中...'},'connectionError':{'unauthorized':_0x1b2484(0xa0),'sessionOccupied':_0x1b2484(0xbd),'networkError':_0x1b2484(0xb4),'maxRetriesExceeded':'最大再試行回数を超過しました。後でもう一度お試しください'}}};export{e as default};