@univerjs-pro/mcp-ui 0.15.2 → 0.15.3-insiders.20260131-b9b8805
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -0
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -0
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -0
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/locale/sk-SK.d.ts +3 -0
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -0
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +8 -8
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x462e9c=_0x395e;(function(_0x4a61c9,_0x5cd318){const _0x21e44c=_0x395e,_0x5e6cff=_0x4a61c9();while(!![]){try{const _0x5d19ff=parseInt(_0x21e44c(0x1c3))/0x1+parseInt(_0x21e44c(0x11e))/0x2*(parseInt(_0x21e44c(0x1be))/0x3)+-parseInt(_0x21e44c(0x10f))/0x4*(parseInt(_0x21e44c(0x1c4))/0x5)+parseInt(_0x21e44c(0x176))/0x6+parseInt(_0x21e44c(0x1c8))/0x7+-parseInt(_0x21e44c(0x116))/0x8*(-parseInt(_0x21e44c(0x165))/0x9)+parseInt(_0x21e44c(0x1a3))/0xa*(-parseInt(_0x21e44c(0x241))/0xb);if(_0x5d19ff===_0x5cd318)break;else _0x5e6cff['push'](_0x5e6cff['shift']());}catch(_0x1c578b){_0x5e6cff['push'](_0x5e6cff['shift']());}}}(_0xb7b7,0x22878));var Pe=Object[_0x462e9c(0x245)],Ee=(_0x38094f,_0x4712d6,_0x1b55d7)=>_0x4712d6 in _0x38094f?Pe(_0x38094f,_0x4712d6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1b55d7}):_0x38094f[_0x4712d6]=_0x1b55d7,x=(_0x2302e5,_0x417548,_0x729b14)=>Ee(_0x2302e5,typeof _0x417548!='symbol'?_0x417548+'':_0x417548,_0x729b14);import{LocaleService as _0x2bf7cb,Inject as _0xedcb84,Injector as _0x5e433c,IConfigService as _0x16c157,ILocalStorageService as _0x10ebb1,ILogService as _0xb83b12,Disposable as _0x5b4b88,CommandType as _0x2721e2,ICommandService as _0x4708fb,DependentOn as _0x389396,Plugin as _0xc74e50,merge as _0x21a0cf}from'@univerjs/core';import{jsxs as _0x3952cf,jsx as _0xdb17df}from'react/jsx-runtime';import{MCPConnectionStatus as _0x5b09fa,MCPConnectionError as _0x588524,MCPConnectionController as _0x3a997f,MCP_PLUGIN_CONFIG_KEY as _0x21c702,UniverMCPPlugin as _0x4f69e3}from'@univerjs-pro/mcp';import{clsx as _0x5ed689,Input as _0x1445c4,Button as _0x5e052c,MessageType as _0x36dba1,Tooltip as _0x13966a}from'@univerjs/design';import{useDependency as _0x51efe8,useObservable as _0x4f8540,IUIPartsService as _0x2566c0,IDialogService as _0x39827b,IMessageService as _0x5a880f,ComponentManager as _0xf587bd,connectInjector as _0x4a6a4b,BuiltInUIPart as _0x1dd054,MenuItemType as _0x465546,RibbonStartGroup as _0x353af6,IMenuManagerService as _0x3cd226}from'@univerjs/ui';import{BehaviorSubject as _0x234585}from'rxjs';import{useRef as _0x4f758f,createElement as _0x5c1e65,forwardRef as _0x5507ad,useState as _0x4c86b7,useCallback as _0x405876}from'react';import{ISocketService as _0x996af0,WebSocketService as _0x3064bf}from'@univerjs/network';function b({ref:_0x1fb064,..._0x5c5472}){const _0x5a8c61=_0x462e9c,{icon:_0x3eb06c,id:_0x20f172,className:_0x4a34d2,extend:_0x4df709,..._0x47c09c}=_0x5c5472,_0x1d60da=(_0x5a8c61(0x255)+_0x20f172+'\x20'+(_0x4a34d2||''))[_0x5a8c61(0x161)](),_0x24c6c7=_0x4f758f('_'+We());return ae(_0x3eb06c,''+_0x20f172,{'defIds':_0x3eb06c[_0x5a8c61(0x1bd)],'idSuffix':_0x24c6c7['current']},{'ref':_0x1fb064,'className':_0x1d60da,..._0x47c09c},_0x4df709);}function ae(_0x1b79d8,_0x107498,_0xd46377,_0x5df693,_0x971054){const _0x1a43c1=_0x462e9c;return _0x5c1e65(_0x1b79d8[_0x1a43c1(0x126)],{'key':_0x107498,...Ye(_0x1b79d8,_0xd46377,_0x971054),..._0x5df693},(Ze(_0x1b79d8,_0xd46377)[_0x1a43c1(0x120)]||[])[_0x1a43c1(0x1ef)]((_0x5d8da9,_0x3d331f)=>ae(_0x5d8da9,_0x107498+'-'+_0x1b79d8[_0x1a43c1(0x126)]+'-'+_0x3d331f,_0xd46377,void 0x0,_0x971054)));}function Ye(_0x51eba2,_0x30ee12,_0x1f84d0){const _0x50fe28=_0x462e9c,_0x31e3de={..._0x51eba2[_0x50fe28(0x139)]};_0x1f84d0!=null&&_0x1f84d0[_0x50fe28(0x124)]&&_0x31e3de['fill']==='colorChannel1'&&(_0x31e3de['fill']=_0x1f84d0['colorChannel1']),_0x51eba2['tag']===_0x50fe28(0x23b)&&_0x31e3de['id']&&(_0x31e3de['id']=_0x31e3de['id']+_0x30ee12[_0x50fe28(0x212)]),Object['entries'](_0x31e3de)[_0x50fe28(0x19b)](([_0x94d488,_0x42b54f])=>{const _0x14d583=_0x50fe28;_0x94d488===_0x14d583(0x23b)&&typeof _0x42b54f==_0x14d583(0x246)&&(_0x31e3de[_0x94d488]=_0x42b54f[_0x14d583(0x25f)](/url\(#(.*)\)/,_0x14d583(0x154)+_0x30ee12[_0x14d583(0x212)]+')'));});const {defIds:_0x1da05e}=_0x30ee12;return!_0x1da05e||_0x1da05e['length']===0x0||(_0x51eba2[_0x50fe28(0x126)]==='use'&&_0x31e3de[_0x50fe28(0x16e)]&&(_0x31e3de[_0x50fe28(0x16e)]=_0x31e3de[_0x50fe28(0x16e)]+_0x30ee12['idSuffix']),Object[_0x50fe28(0x221)](_0x31e3de)[_0x50fe28(0x19b)](([_0x419c5b,_0x137115])=>{const _0x3a729e=_0x50fe28;typeof _0x137115==_0x3a729e(0x246)&&(_0x31e3de[_0x419c5b]=_0x137115[_0x3a729e(0x25f)](/url\(#(.*)\)/,'url(#$1'+_0x30ee12[_0x3a729e(0x212)]+')'));})),_0x31e3de;}function Ze(_0x43fc76,_0x41d63d){const _0x4a96f3=_0x462e9c;var _0x18d767;const {defIds:_0x182518}=_0x41d63d;return!_0x182518||_0x182518[_0x4a96f3(0x1f6)]===0x0?_0x43fc76:_0x43fc76['tag']===_0x4a96f3(0x1d6)&&((_0x18d767=_0x43fc76[_0x4a96f3(0x120)])!=null&&_0x18d767[_0x4a96f3(0x1f6)])?{..._0x43fc76,'children':_0x43fc76['children'][_0x4a96f3(0x1ef)](_0x36f780=>typeof _0x36f780[_0x4a96f3(0x139)]['id']==_0x4a96f3(0x246)&&_0x182518&&_0x182518[_0x4a96f3(0x10d)](_0x36f780[_0x4a96f3(0x139)]['id'])?{..._0x36f780,'attrs':{..._0x36f780[_0x4a96f3(0x139)],'id':_0x36f780[_0x4a96f3(0x139)]['id']+_0x41d63d[_0x4a96f3(0x212)]}}:_0x36f780)}:_0x43fc76;}function We(){const _0x3d0cae=_0x462e9c;return Math[_0x3d0cae(0x14b)]()[_0x3d0cae(0x12f)](0x24)[_0x3d0cae(0x1ed)](0x2,0x8);}b[_0x462e9c(0x13f)]=_0x462e9c(0x186);const qe={'tag':_0x462e9c(0x1d4),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x462e9c(0x25b)},'children':[{'tag':_0x462e9c(0x12e),'attrs':{'fill':'currentColor','d':_0x462e9c(0x180),'fillRule':_0x462e9c(0x1a6),'clipRule':_0x462e9c(0x1a6)}}]},le=_0x5507ad(function(_0x1c10e8,_0x48f31d){const _0x2c7e6a=_0x462e9c;return _0x5c1e65(b,Object[_0x2c7e6a(0x1bb)]({},_0x1c10e8,{'id':_0x2c7e6a(0x20b),'ref':_0x48f31d,'icon':qe}));});le[_0x462e9c(0x13f)]=_0x462e9c(0x17d);const Xe={'tag':_0x462e9c(0x1d4),'attrs':{'xmlns':_0x462e9c(0x206),'fill':'none','viewBox':_0x462e9c(0x1ca),'width':_0x462e9c(0x25b),'height':'1em'},'children':[{'tag':_0x462e9c(0x12e),'attrs':{'fill':_0x462e9c(0x23c),'d':_0x462e9c(0x1b0)}}]},ue=_0x5507ad(function(_0x4b9dc0,_0x243f27){const _0x14c773=_0x462e9c;return _0x5c1e65(b,Object[_0x14c773(0x1bb)]({},_0x4b9dc0,{'id':_0x14c773(0x223),'ref':_0x243f27,'icon':Xe}));});ue[_0x462e9c(0x13f)]='CloseIcon';const Je={'tag':'svg','attrs':{'xmlns':_0x462e9c(0x206),'fill':_0x462e9c(0x19c),'viewBox':_0x462e9c(0x1ca),'width':_0x462e9c(0x25b),'height':_0x462e9c(0x25b)},'children':[{'tag':_0x462e9c(0x12e),'attrs':{'fill':_0x462e9c(0x23c),'d':_0x462e9c(0x25a)}},{'tag':_0x462e9c(0x12e),'attrs':{'fill':_0x462e9c(0x23c),'d':_0x462e9c(0x251)}},{'tag':'path','attrs':{'fill':_0x462e9c(0x23c),'d':_0x462e9c(0x15d),'fillRule':'evenodd','clipRule':'evenodd'}}]},ve=_0x5507ad(function(_0xc941b1,_0x9a6363){const _0x5c7839=_0x462e9c;return _0x5c1e65(b,Object['assign']({},_0xc941b1,{'id':_0x5c7839(0x262),'ref':_0x9a6363,'icon':Je}));});ve[_0x462e9c(0x13f)]=_0x462e9c(0x219);const Qe={'tag':_0x462e9c(0x1d4),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x462e9c(0x19c),'viewBox':_0x462e9c(0x1ca),'width':_0x462e9c(0x25b),'height':_0x462e9c(0x25b)},'children':[{'tag':'g','attrs':{'clipPath':_0x462e9c(0x220)},'children':[{'tag':'path','attrs':{'stroke':_0x462e9c(0x23c),'d':_0x462e9c(0x1ff),'strokeLinecap':_0x462e9c(0x1a4),'strokeLinejoin':_0x462e9c(0x1a4),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x462e9c(0x1a8),'attrs':{'id':_0x462e9c(0x1ac)},'children':[{'tag':_0x462e9c(0x12e),'attrs':{'fill':_0x462e9c(0x149),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x462e9c(0x1ac)]},de=_0x5507ad(function(_0x5460bf,_0x1b34ee){return _0x5c1e65(b,Object['assign']({},_0x5460bf,{'id':'off-line-icon','ref':_0x1b34ee,'icon':Qe}));});de['displayName']='OffLineIcon';const en={'tag':'svg','attrs':{'xmlns':_0x462e9c(0x206),'fill':_0x462e9c(0x19c),'viewBox':'0\x200\x2017\x2016','width':_0x462e9c(0x25b),'height':_0x462e9c(0x25b)},'children':[{'tag':'g','attrs':{'clipPath':_0x462e9c(0x23f)},'children':[{'tag':_0x462e9c(0x12e),'attrs':{'stroke':_0x462e9c(0x23c),'d':_0x462e9c(0x14a),'strokeLinecap':_0x462e9c(0x1a4),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x462e9c(0x1d6),'attrs':{},'children':[{'tag':_0x462e9c(0x1a8),'attrs':{'id':_0x462e9c(0x115)},'children':[{'tag':_0x462e9c(0x12e),'attrs':{'fill':'white','d':'M0\x200H16V16H0z','transform':_0x462e9c(0x197)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},ge=_0x5507ad(function(_0x2635b0,_0x1f712f){const _0x3f7c69=_0x462e9c;return _0x5c1e65(b,Object[_0x3f7c69(0x1bb)]({},_0x2635b0,{'id':_0x3f7c69(0x12b),'ref':_0x1f712f,'icon':en}));});ge[_0x462e9c(0x13f)]='OnLineIcon';function nn(_0x6d35e){const _0x5b5c19=_0x462e9c;var _0xe56730,_0x47e2b2;const {mcpCoreConfig:_0x4c5d42,onSave:_0x4f404a,loading:_0x2d07ec=!0x1,config:_0x14caf1,connectionStatus$:_0x91bb4e,connectionError$:_0x1199fd,currentApiKey$:_0x699401,currentSessionId$:_0x23d225}=_0x6d35e,_0x220bd1=_0x51efe8(_0x2bf7cb),_0x2bb685=_0x4f8540(_0x91bb4e,_0x5b09fa['DISCONNECTED']),_0x4d279c=_0x4f8540(_0x1199fd,_0x588524['NONE']),_0x16f91b=_0x4f8540(_0x23d225,''),_0x2d5801=_0x4f8540(_0x699401,''),[_0x2fb9d3,_0x1294e8]=_0x4c86b7(_0x2d5801||''),_0x52a60f=!0x0,_0x1b95c1=_0x14caf1[_0x5b5c19(0x13c)]&&_0x4c5d42['mcpServerUrl']&&(_0x4c5d42[_0x5b5c19(0x1d7)][_0x5b5c19(0x10d)](_0x5b5c19(0x1c0))||_0x4c5d42['mcpServerUrl'][_0x5b5c19(0x10d)](_0x5b5c19(0x250))),_0x2bafe7=(_0xe56730=_0x4c5d42[_0x5b5c19(0x1d7)])==null?void 0x0:_0xe56730[_0x5b5c19(0x10d)]('univer.plus'),_0x118aa0=(_0x47e2b2=_0x4c5d42[_0x5b5c19(0x1d7)])==null?void 0x0:_0x47e2b2[_0x5b5c19(0x10d)](_0x5b5c19(0x250)),_0xab311c=_0x2bafe7?_0x5b5c19(0x150):'https://console.univer.ai',_0x1ef48d=_0x14caf1[_0x5b5c19(0x13c)]&&(_0x2bafe7||_0x118aa0),[_0xda2cfc,_0x1f3b72]=_0x4c86b7(!_0x2fb9d3[_0x5b5c19(0x161)]()),_0x456689=(_0x75e272,_0x28b00f)=>{const _0x5836f1=_0x5b5c19;if(_0x28b00f===_0x588524['UNAUTHORIZED'])return _0x5836f1(0x158);switch(_0x75e272){case _0x5b09fa['CONNECTED']:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case _0x5b09fa[_0x5836f1(0x16c)]:case _0x5b09fa['RETRYING']:return'univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200';case _0x5b09fa[_0x5836f1(0x144)]:return _0x5836f1(0x158);default:return _0x5836f1(0x233);}},_0x55679a=(_0x5e373d,_0x30e470)=>{const _0x106eec=_0x5b5c19;if(_0x30e470===_0x588524[_0x106eec(0x1a1)])return _0x106eec(0x137);switch(_0x5e373d){case _0x5b09fa[_0x106eec(0x23d)]:return _0x106eec(0x25d);case _0x5b09fa[_0x106eec(0x16c)]:case _0x5b09fa[_0x106eec(0x1f5)]:return'univer-bg-blue-500';case _0x5b09fa[_0x106eec(0x144)]:return _0x106eec(0x137);default:return'univer-bg-gray-500';}},_0x298cdd=_0x3f3972=>{const _0x3140fa=_0x5b5c19;switch(_0x3f3972){case _0x5b09fa[_0x3140fa(0x23d)]:return _0x220bd1['t'](_0x3140fa(0x23e));case _0x5b09fa['CONNECTING']:return _0x220bd1['t'](_0x3140fa(0x1b1));case _0x5b09fa[_0x3140fa(0x144)]:return _0x220bd1['t'](_0x3140fa(0x20e));case _0x5b09fa[_0x3140fa(0x1f5)]:return _0x220bd1['t'](_0x3140fa(0x13d));default:return _0x220bd1['t']('mcpConfig.connectionStatus.disconnected');}},_0x41d98=_0xbeeac6=>{const _0x238b66=_0x5b5c19;switch(_0xbeeac6){case _0x588524[_0x238b66(0x1a1)]:return _0x220bd1['t'](_0x238b66(0x25c));case _0x588524['SESSION_ID_OCCUPIED']:return _0x220bd1['t'](_0x238b66(0x168));case _0x588524[_0x238b66(0x1c5)]:return _0x220bd1['t'](_0x238b66(0x23a));case _0x588524['MAX_RETRIES_EXCEEDED']:return _0x220bd1['t'](_0x238b66(0x20c));default:return'';}},_0x3a0c62=_0x405876(()=>{const _0xea63e5=_0x5b5c19,_0x5f283f={..._0x4c5d42,'apiKey':_0x2fb9d3[_0xea63e5(0x161)](),'enableAuth':_0x52a60f};_0x4f404a(_0x5f283f);},[_0x4c5d42,_0x2fb9d3,_0x52a60f,_0x4f404a]),_0x51f27c=_0x2fb9d3[_0x5b5c19(0x161)]()[_0x5b5c19(0x1f6)]>0x0;return _0x3952cf(_0x5b5c19(0x1bf),{'className':_0x5b5c19(0x1b2),'children':[_0xdb17df(_0x5b5c19(0x1bf),{'className':_0x5b5c19(0x1e8),'children':_0x3952cf(_0x5b5c19(0x1bf),{'className':_0x5b5c19(0x130),'children':[_0xdb17df('div',{'className':'univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','children':_0xdb17df(_0x5b5c19(0x16d),{'className':'univer-text-white','children':'⚙'})}),_0xdb17df('div',{'children':_0xdb17df('p',{'className':_0x5b5c19(0x254),'children':_0x220bd1['t'](_0x5b5c19(0x253))})})]})}),_0x3952cf(_0x5b5c19(0x1bf),{'className':_0x5b5c19(0x193),'children':[_0xdb17df(_0x5b5c19(0x1bf),{'className':_0x5ed689(_0x5b5c19(0x131),_0x456689(_0x2bb685,_0x4d279c)),'children':_0x3952cf(_0x5b5c19(0x1bf),{'className':_0x5b5c19(0x1ea),'children':[_0xdb17df(_0x5b5c19(0x1bf),{'className':_0x5ed689('univer-size-2\x20univer-rounded-full',_0x55679a(_0x2bb685,_0x4d279c))}),_0xdb17df('span',{'className':'univer-text-sm\x20univer-font-medium','children':_0x298cdd(_0x2bb685)})]})}),_0x4d279c!==_0x588524[_0x5b5c19(0x1d1)]&&(_0x2bb685===_0x5b09fa[_0x5b5c19(0x144)]||_0x4d279c===_0x588524[_0x5b5c19(0x1a1)])&&_0xdb17df(_0x5b5c19(0x1bf),{'className':_0x5b5c19(0x111),'children':_0x3952cf('div',{'className':_0x5b5c19(0x118),'children':[_0xdb17df('span',{'className':'univer-shrink-0\x20univer-text-red-500','children':'⚠️'}),_0xdb17df('p',{'className':_0x5b5c19(0x1cc),'children':_0x41d98(_0x4d279c)})]})})]}),_0xdb17df(_0x5b5c19(0x1bf),{'className':_0x5b5c19(0x18c),'children':_0x3952cf(_0x5b5c19(0x1bf),{'className':_0x5b5c19(0x14f),'children':[_0x3952cf(_0x5b5c19(0x1bf),{'className':_0x5b5c19(0x21c),'children':[_0x3952cf(_0x5b5c19(0x201),{'className':_0x5b5c19(0x1da),'children':[_0xdb17df('span',{'children':'🔑'}),'\x20',_0x220bd1['t'](_0x5b5c19(0x169)),_0xdb17df(_0x5b5c19(0x16d),{'className':'univer-text-red-500','children':'*'}),_0x1b95c1&&_0xdb17df('a',{'className':_0x5b5c19(0x114),'title':_0x220bd1['t'](_0x5b5c19(0x138)),'role':'button','onClick':()=>_0x1f3b72(!0x0),'children':_0xdb17df(ve,{})})]}),_0xdb17df(_0x1445c4,{'type':_0x5b5c19(0x18d),'placeholder':_0x220bd1['t'](_0x5b5c19(0x256)),'value':_0x2fb9d3,'disabled':_0x2d07ec,'autoComplete':_0x5b5c19(0x141),'onChange':_0x1294e8}),_0xdb17df('p',{'className':_0x5b5c19(0x1de),'children':_0x220bd1['t'](_0x5b5c19(0x227))})]}),_0x1b95c1&&_0xda2cfc&&_0x3952cf(_0x5b5c19(0x1bf),{'className':_0x5b5c19(0x184),'children':[_0xdb17df('a',{'className':'univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','role':_0x5b5c19(0x14e),'onClick':()=>_0x1f3b72(!0x1),'children':_0xdb17df(ue,{'className':_0x5b5c19(0x1cb)})}),_0x3952cf(_0x5b5c19(0x1bf),{'className':_0x5b5c19(0x1eb),'children':[_0xdb17df('div',{'className':_0x5b5c19(0x1d8),'children':_0xdb17df('span',{'className':_0x5b5c19(0x1ae),'children':'🚀'})}),_0x3952cf(_0x5b5c19(0x1bf),{'className':_0x5b5c19(0x231),'children':[_0xdb17df('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x220bd1['t'](_0x5b5c19(0x138))}),_0xdb17df('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x220bd1['t']('mcpConfig.apiApplyInfo.description')}),_0xdb17df(_0x5b5c19(0x1bf),{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x1ef48d&&_0x3952cf('a',{'className':_0x5b5c19(0x1b8),'href':_0xab311c,'target':_0x5b5c19(0x21f),'rel':_0x5b5c19(0x156),'children':[_0xdb17df('span',{'children':'🤖'}),_0x220bd1['t'](_0x5b5c19(0x1a5)),_0xdb17df(_0x5b5c19(0x16d),{'className':_0x5b5c19(0x15b),'children':'↗'})]})}),_0x3952cf(_0x5b5c19(0x1bf),{'className':_0x5b5c19(0x218),'children':['✨','\x20',_0x220bd1['t'](_0x5b5c19(0x17f))]})]})]})]}),_0x14caf1[_0x5b5c19(0x13c)]&&_0x3952cf('div',{'className':_0x5b5c19(0x22f),'children':[_0x3952cf('h4',{'className':_0x5b5c19(0x170),'children':[_0xdb17df(_0x5b5c19(0x16d),{'children':'🔗'}),'\x20',_0x220bd1['t'](_0x5b5c19(0x127))]}),_0x3952cf(_0x5b5c19(0x1bf),{'className':_0x5b5c19(0x132),'children':[_0x3952cf(_0x5b5c19(0x1bf),{'className':_0x5b5c19(0x157),'children':[_0xdb17df('p',{'className':_0x5b5c19(0x24d),'children':_0x220bd1['t'](_0x5b5c19(0x1d0))}),_0x3952cf(_0x5b5c19(0x1bf),{'className':_0x5b5c19(0x21c),'children':[_0xdb17df(_0x5b5c19(0x1bf),{'className':_0x5b5c19(0x1ba),'children':_0x220bd1['t'](_0x5b5c19(0x11c))}),_0x3952cf(_0x5b5c19(0x1bf),{'className':_0x5b5c19(0x162),'children':[_0x3952cf(_0x5b5c19(0x1bf),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0xdb17df(_0x5b5c19(0x16d),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'1'}),_0x220bd1['t'](_0x5b5c19(0x1af))]}),_0x3952cf(_0x5b5c19(0x1bf),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0xdb17df(_0x5b5c19(0x16d),{'className':_0x5b5c19(0x1f8),'children':'2'}),_0x220bd1['t'](_0x5b5c19(0x1b6))]}),_0x3952cf('div',{'className':_0x5b5c19(0x1ea),'children':[_0xdb17df(_0x5b5c19(0x16d),{'className':_0x5b5c19(0x1f8),'children':'3'}),_0x220bd1['t'](_0x5b5c19(0x179))]})]})]})]}),_0x3952cf(_0x5b5c19(0x1bf),{'className':_0x5b5c19(0x21c),'children':[_0xdb17df(_0x5b5c19(0x1bf),{'className':_0x5b5c19(0x1ba),'children':_0x5b5c19(0x20a)}),_0xdb17df(_0x5b5c19(0x1bf),{'className':_0x5b5c19(0x164),'children':_0xdb17df(_0x5b5c19(0x110),{'className':_0x5b5c19(0x205),'children':JSON['stringify']({'mcpServers':{'univer':{'url':_0x5b5c19(0x1bc)+(_0x16f91b||_0x5b5c19(0x16f)),'type':'http','headers':{'Authorization':_0x5b5c19(0x257)+(_0x2fb9d3||'<API_KEY>')}}}},null,0x2)})})]}),_0x3952cf(_0x5b5c19(0x1bf),{'className':_0x5b5c19(0x157),'children':[_0xdb17df(_0x5b5c19(0x1bf),{'className':_0x5b5c19(0x1ba),'children':_0x220bd1['t']('mcpConfig.configParameters')}),_0x3952cf(_0x5b5c19(0x1bf),{'className':'univer-space-y-2','children':[_0x3952cf(_0x5b5c19(0x1bf),{'className':_0x5b5c19(0x1c1),'children':[_0xdb17df(_0x5b5c19(0x1bf),{'className':_0x5b5c19(0x252)}),_0x3952cf('div',{'className':_0x5b5c19(0x19f),'children':[_0xdb17df(_0x5b5c19(0x1bf),{'className':_0x5b5c19(0x216),'children':_0x5b5c19(0x239)}),_0xdb17df(_0x5b5c19(0x1bf),{'className':_0x5b5c19(0x1de),'children':_0x220bd1['t'](_0x5b5c19(0x1d9))})]})]}),_0x3952cf(_0x5b5c19(0x1bf),{'className':_0x5b5c19(0x1c1),'children':[_0xdb17df('div',{'className':_0x5b5c19(0x252)}),_0x3952cf(_0x5b5c19(0x1bf),{'className':_0x5b5c19(0x19f),'children':[_0xdb17df(_0x5b5c19(0x1bf),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x5b5c19(0x174)}),_0xdb17df(_0x5b5c19(0x1bf),{'className':_0x5b5c19(0x1de),'children':_0x220bd1['t'](_0x5b5c19(0x18b))})]})]})]})]})]})]}),_0xdb17df(_0x5e052c,{'onClick':_0x3a0c62,'disabled':!_0x51f27c||_0x2d07ec,'className':_0x5b5c19(0x24e),'children':_0x2d07ec?_0x3952cf('span',{'className':_0x5b5c19(0x1ea),'children':[_0xdb17df(_0x5b5c19(0x16d),{'children':'⟲'}),_0x220bd1['t'](_0x5b5c19(0x175))]}):_0x3952cf(_0x5b5c19(0x16d),{'className':_0x5b5c19(0x1ea),'children':[_0xdb17df(le,{}),_0x220bd1['t'](_0x5b5c19(0x1e6))]})}),_0xdb17df(_0x5b5c19(0x1bf),{'className':_0x5b5c19(0x200),'children':_0x3952cf('div',{'className':_0x5b5c19(0x1f7),'children':[_0xdb17df(_0x5b5c19(0x16d),{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),_0x3952cf(_0x5b5c19(0x1bf),{'className':_0x5b5c19(0x1ad),'children':[_0xdb17df(_0x5b5c19(0x1bf),{'className':_0x5b5c19(0x15e),'children':'Configuration\x20Notes:'}),_0x3952cf('div',{'children':['•',_0x220bd1['t'](_0x5b5c19(0x208))]}),_0x3952cf(_0x5b5c19(0x1bf),{'children':['•',_0x220bd1['t'](_0x5b5c19(0x173))]})]})]})})]})})]});}function _0xb7b7(){const _0x2c816c=['map','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','_createConfigPanelComponent','Max\x20Retries','_initConfigSync','Retrying...','RETRYING','length','univer-flex\x20univer-gap-3','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','_config','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','您的\x20API\x20密钥安全存储在本地存储中','getOwnPropertyDescriptor','连接中...','超出最大重试次数,请稍后再试','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-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','label','MCP\x20状态未知','MCP\x20已断开','已连接','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','http://www.w3.org/2000/svg','errorMessage','mcpConfig.note1','open','MCP\x20Configuration','check-mark-icon','mcpConfig.connectionError.maxRetriesExceeded','What\x20is\x20API\x20Key?','mcpConfig.connectionStatus.failed','MCP\x20Connected','mcpStatus.disconnected','_localeService','idSuffix','univer-text-red-500','show','API\x20密钥长度至少需要\x2010\x20位','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','API\x20密钥','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','HelpIcon','_initializeCommands','mcpStatus.networkError','univer-space-y-2','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','isValid','_blank','url(#off-line-icon_clip0_910_343)','entries','univer-mr-2\x20univer-flex\x20univer-text-xl','close-icon','MCP\x20连接失败','_initAutoConnect','Enable\x20Authentication','mcpConfig.apiKeyHint','Disconnected','mcpConfig.validation.apiKeyRequired','MCP\x20已连接','_validateConfig','MCP\x20Connecting...','MCP:\x20网络错误','_injector','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','MCP\x20Retrying...','univer-flex-1','_commandService','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Univer\x20AI\x20Console','未连接','_initializeMenus','mcpConfig.validation.invalidConfig','univer_session_id:','mcpConfig.connectionError.networkError','mask','currentColor','CONNECTED','mcpConfig.connectionStatus.connected','url(#on-line-icon_clip0_910_349)','enableAutoConnect','7139VpIklC','getItem','MCP:\x20超出最大重试次数','value','defineProperty','string','pluginName','Connection\x20Failed','配置步骤:','COMMAND','带有\x20Bearer\x20前缀的\x20API\x20密钥。','Configuration\x20Parameters:','univer-text-xs\x20univer-text-gray-600','univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','API\x20Key','univer.ai','M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','mcpConfig.description','univer-text-sm\x20univer-text-gray-500','univerjs-icon\x20univerjs-icon-','mcpConfig.apiKeyPlaceholder','Bearer\x20','MCP\x20Client\x20Configuration','_loading$','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','1em','mcpConfig.connectionError.unauthorized','univer-bg-green-500','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','replace','启用身份验证','_componentManager','help-icon','Success','includes','保存配置','107452pXnBtf','pre','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','_initStatusComponent','Session\x20ID','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','on-line-icon_clip0_910_349','2608kYcQao','registerCommand','univer-flex\x20univer-items-start\x20univer-gap-2','mcpStatus.clickToConfigure','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\x20配置','mcpConfig.configStepTitle','配置无效','3156gwjUtY','会话ID','children','MCP\x20Connection\x20Failed','onStarting','subscribeConfigValue$','colorChannel1','apiKey','tag','mcpConfig.connectionInfo','setItem','mcpStatus.retrying','_loadStoredApiKey','on-line-icon','get','DISCONNECTED','path','toString','univer-flex\x20univer-items-center\x20univer-gap-3','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','univer-space-y-4','_uiPartsService','has','Get\x20your\x20API\x20key\x20in\x20seconds','什么是\x20API\x20密钥?','univer-bg-red-500','mcpConfig.apiApplyInfo.title','attrs','Copy\x20the\x20JSON\x20configuration\x20below','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','showDeveloperTools','mcpConfig.connectionStatus.retrying','mcpConfig.configError','displayName','MenuIcon','off','配置参数:','_configService','FAILED','mcpStatus.connected','_registerComponent','bottom','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','white','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','random','会话\x20ID\x20已被占用,请稍后再试','Univer\x20AI\x20控制台','button','univer-space-y-5','https://console.univer.plus','_apiKey$','_config$','mcp-ui.config','url(#$1','配置保存失败','noopener\x20noreferrer','univer-space-y-3','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','HEADER_MENU','Invalid\x20configuration','univer-text-gray-400','showConfigPanel','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','univer-font-medium','mcp.apiKey','univer-text-green-500','trim','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','_handleConfigSave','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','1683khbvkI','Configuration\x20saved\x20successfully','connectionStatus$','mcpConfig.connectionError.sessionOccupied','mcpConfig.apiKey','_logService','mcpStatus.connecting','CONNECTING','span','xlink:href','<SESSION_ID>','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','您的\x20API\x20密钥将在此浏览器中本地存储','权限验证失败,请检查您的\x20API\x20密钥','mcpConfig.note2','Authorization:','mcpConfig.saving','498942xnZjIL','MCP_UI_PLUGIN','配置保存成功','mcpConfig.configStep3','MCP:\x20Max\x20Retries\x20Exceeded','MCP:\x20Network\x20Error','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','CheckMarkIcon','Error','mcpConfig.apiApplyInfo.getStarted','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','push','Click\x20to\x20configure\x20MCP','\x20-\x20','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-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','UniverIcon','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','Connecting...','MCP\x20Disconnected','mcpStatus.clickToConnect','mcpConfig.authorizationDescription','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','text','\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','_connectionController','_localStorageService','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP:\x20会话\x20ID\x20已被占用','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','univer-flex\x20univer-items-center','Failed\x20to\x20save\x20configuration','__setCustomHeaders','translate(.97)','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','SESSION_ID_OCCUPIED','将配置添加到您的\x20MCP\x20客户端设置文件中','forEach','none','mcpConfig.title','API\x20key\x20is\x20required','univer-min-w-0\x20univer-flex-1','mcpStatus.failed','UNAUTHORIZED','error','4100Kfjeyj','round','mcpConfig.apiApplyInfo.univerAiLabel','evenodd','Enable\x20authentication\x20for\x20secure\x20connections','clipPath','getConfig','MCP\x20客户端配置','点击配置\x20MCP','off-line-icon_clip0_910_343','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','univer-text-blue-600','mcpConfig.configStep1','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','mcpConfig.connectionStatus.connecting','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','_mcpConnectionController','_handleConfigure','_dialogService','mcpConfig.configStep2','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','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','connectionError$','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','assign','https://mcp.univer.ai/mcp/?univer_session_id=','defIds','63YOesxV','div','univer.plus','univer-flex\x20univer-items-start\x20univer-gap-3','_mcpCoreConfig$','206596KvyvPB','45QMkWIG','NETWORK_ERROR','next','复制以下\x20JSON\x20配置','1858052FTmZqv','register','0\x200\x2016\x2016','univer-size-4','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','启用身份验证以获得安全连接','univer-text-yellow-500','close','mcpConfig.configInstructions','NONE','_messageService','OTHERS','svg','重启您的\x20MCP\x20客户端以使配置生效','defs','mcpServerUrl','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','mcpConfig.sessionIdDescription','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','mcpStatus.sessionOccupied','mcpStatus.maxRetriesExceeded','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','univer-text-xs\x20univer-text-gray-500','mergeMenu','mcp-config-dialog','API\x20密钥无效,请检查密钥是否正确','disposeWithMe','registerComponent','MCP\x20Unknown\x20Status','mcpConfig.configSaved','mcpConfig.save','_menuManagerService','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','univer-text-gray-500','univer-flex\x20univer-items-center\x20univer-gap-2','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','removeItem','substring','getCurrentConfig'];_0xb7b7=function(){return _0x2c816c;};return _0xb7b7();}const y=_0x462e9c(0x153),ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object['getOwnPropertyDescriptor'],tn=(_0xce883b,_0x41eaca,_0x10f7bb,_0x5952bc)=>{const _0xc6e15=_0x462e9c;for(var _0x28d77=_0x5952bc>0x1?void 0x0:_0x5952bc?rn(_0x41eaca,_0x10f7bb):_0x41eaca,_0x386a06=_0xce883b[_0xc6e15(0x1f6)]-0x1,_0xfc344d;_0x386a06>=0x0;_0x386a06--)(_0xfc344d=_0xce883b[_0x386a06])&&(_0x28d77=_0xfc344d(_0x28d77)||_0x28d77);return _0x28d77;},d=(_0x5351bb,_0xf4389b)=>(_0x1f3e3b,_0x3463d0)=>_0xf4389b(_0x1f3e3b,_0x3463d0,_0x5351bb);const U=_0x462e9c(0x15f),L=_0x462e9c(0x1e0);let I=class extends _0x5b4b88{constructor(_0x580190,_0x13d9ce,_0x9f5ff7,_0x2cd37d,_0xbca87c,_0x430271,_0x3a17fe,_0x7349ff,_0x492444,_0x237068){const _0x4c3e52=_0x462e9c;super(),x(this,_0x4c3e52(0x259),new _0x234585(!0x1)),x(this,_0x4c3e52(0x1c2),new _0x234585({})),x(this,'_config$',new _0x234585({})),x(this,_0x4c3e52(0x151),new _0x234585('')),x(this,_0x4c3e52(0x163),async _0x122dea=>{const _0x11d908=_0x4c3e52;var _0x3257a7,_0x5323d3;this[_0x11d908(0x259)][_0x11d908(0x1c6)](!0x0);try{const _0xfa5f39=await this[_0x11d908(0x22b)](_0x122dea);if(!_0xfa5f39[_0x11d908(0x21e)]){this[_0x11d908(0x1d2)][_0x11d908(0x214)]({'type':_0x36dba1[_0x11d908(0x17e)],'content':_0xfa5f39[_0x11d908(0x207)]||this[_0x11d908(0x211)]['t'](_0x11d908(0x238))});return;}_0x122dea['apiKey']?await this[_0x11d908(0x190)][_0x11d908(0x128)](U,_0x122dea[_0x11d908(0x125)][_0x11d908(0x161)]()):await this[_0x11d908(0x190)][_0x11d908(0x1ec)](U),this[_0x11d908(0x151)]['next'](((_0x3257a7=_0x122dea[_0x11d908(0x125)])==null?void 0x0:_0x3257a7[_0x11d908(0x161)]())||''),this[_0x11d908(0x1b3)][_0x11d908(0x196)]({'Authorization':'Bearer\x20'+((_0x5323d3=_0x122dea[_0x11d908(0x125)])==null?void 0x0:_0x5323d3[_0x11d908(0x161)]())}),this[_0x11d908(0x1d2)][_0x11d908(0x214)]({'type':_0x36dba1[_0x11d908(0x263)],'content':this[_0x11d908(0x211)]['t'](_0x11d908(0x1e5))}),setTimeout(()=>{const _0x1db537=_0x11d908;this['_dialogService'][_0x1db537(0x1cf)](L);},0x320);}catch(_0xcf33ef){this[_0x11d908(0x16a)][_0x11d908(0x1a2)](_0x11d908(0x21d),_0xcf33ef),this[_0x11d908(0x1d2)][_0x11d908(0x214)]({'type':_0x36dba1['Error'],'content':this[_0x11d908(0x211)]['t'](_0x11d908(0x13e))});}finally{this[_0x11d908(0x259)][_0x11d908(0x1c6)](!0x1);}}),(this[_0x4c3e52(0x22e)]=_0x580190,this[_0x4c3e52(0x133)]=_0x13d9ce,this[_0x4c3e52(0x143)]=_0x9f5ff7,this[_0x4c3e52(0x190)]=_0x2cd37d,this['_dialogService']=_0xbca87c,this['_messageService']=_0x430271,this[_0x4c3e52(0x261)]=_0x3a17fe,this['_localeService']=_0x7349ff,this[_0x4c3e52(0x16a)]=_0x492444,this[_0x4c3e52(0x1b3)]=_0x237068,this['_initConfigSync'](),this[_0x4c3e52(0x12a)](),this[_0x4c3e52(0x146)]());}[_0x462e9c(0x15c)](){const _0x19efab=_0x462e9c,_0x517c92=this['_configService'][_0x19efab(0x1a9)](y);_0x517c92!=null&&_0x517c92[_0x19efab(0x13c)]&&this[_0x19efab(0x1b5)][_0x19efab(0x209)]({'id':L,'title':{'title':this[_0x19efab(0x211)]['t'](_0x19efab(0x19d))},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x492e7d=_0x19efab;this[_0x492e7d(0x1b5)][_0x492e7d(0x1cf)](L);}});}[_0x462e9c(0x1ee)](){const _0x30b184=_0x462e9c;return this[_0x30b184(0x1c2)][_0x30b184(0x244)];}[_0x462e9c(0x146)](){const _0x3ac3fc=_0x462e9c;this[_0x3ac3fc(0x1e2)](this['_componentManager'][_0x3ac3fc(0x1c9)]('MCPConfigPanel',this[_0x3ac3fc(0x1f1)]()));}[_0x462e9c(0x1f1)](){return _0x4a6a4b(()=>{const _0xdc46cb=_0x395e;var _0x5d2f44,_0xac633d,_0x4d3dd4;return _0xdb17df(nn,{'config':this['_config$'][_0xdc46cb(0x244)],'mcpCoreConfig':this['_mcpCoreConfig$'][_0xdc46cb(0x244)],'currentApiKey$':this['_apiKey$'],'onSave':this[_0xdc46cb(0x163)],'loading':this[_0xdc46cb(0x259)][_0xdc46cb(0x244)],'connectionStatus$':(_0x5d2f44=this[_0xdc46cb(0x1b3)])==null?void 0x0:_0x5d2f44[_0xdc46cb(0x167)],'connectionError$':(_0xac633d=this[_0xdc46cb(0x1b3)])==null?void 0x0:_0xac633d[_0xdc46cb(0x1b9)],'currentSessionId$':(_0x4d3dd4=this[_0xdc46cb(0x1b3)])==null?void 0x0:_0x4d3dd4['sessionId$']});},this['_injector']);}[_0x462e9c(0x1f3)](){const _0x49ea48=_0x462e9c;this[_0x49ea48(0x1e2)](this[_0x49ea48(0x143)]['subscribeConfigValue$'](_0x21c702)['subscribe'](_0x434cee=>{const _0x37f23a=_0x49ea48;this[_0x37f23a(0x1c2)]['next'](_0x434cee||{});}));const _0x100cc5=this[_0x49ea48(0x143)][_0x49ea48(0x1a9)](_0x21c702);this['_mcpCoreConfig$']['next'](_0x100cc5||{}),this[_0x49ea48(0x1e2)](this[_0x49ea48(0x143)][_0x49ea48(0x123)](y)['subscribe'](_0x41b670=>{const _0x5b9206=_0x49ea48;this[_0x5b9206(0x152)][_0x5b9206(0x1c6)](_0x41b670||{});}));const _0x2f4e36=this[_0x49ea48(0x143)][_0x49ea48(0x1a9)](y);this[_0x49ea48(0x152)]['next'](_0x2f4e36||{});}async['_loadStoredApiKey'](){const _0x494b14=_0x462e9c,_0x24569a=this[_0x494b14(0x143)][_0x494b14(0x1a9)](y);if(!(_0x24569a!=null&&_0x24569a['showDeveloperTools']))return;const _0x1487d4=await this[_0x494b14(0x190)][_0x494b14(0x242)](U);_0x1487d4&&(this[_0x494b14(0x1b3)][_0x494b14(0x196)]({'Authorization':'Bearer\x20'+_0x1487d4}),this[_0x494b14(0x151)][_0x494b14(0x1c6)](_0x1487d4));}async[_0x462e9c(0x22b)](_0x5f2b05){const _0x2ac1df=_0x462e9c;if(!_0x5f2b05[_0x2ac1df(0x125)]||_0x5f2b05[_0x2ac1df(0x125)][_0x2ac1df(0x161)]()[_0x2ac1df(0x1f6)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x2ac1df(0x211)]['t'](_0x2ac1df(0x229))};if(_0x5f2b05[_0x2ac1df(0x125)][_0x2ac1df(0x161)]()[_0x2ac1df(0x1f6)]<0xa)return{'isValid':!0x1,'errorMessage':this['_localeService']['t']('mcpConfig.validation.apiKeyTooShort')};try{const _0xa6fc33=await this[_0x2ac1df(0x22e)][_0x2ac1df(0x12c)](_0x3a997f)['validateApiKey'](_0x5f2b05[_0x2ac1df(0x125)][_0x2ac1df(0x161)]());return _0xa6fc33[_0x2ac1df(0x21e)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0xa6fc33[_0x2ac1df(0x1a2)]||this[_0x2ac1df(0x211)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x3aa0df){return console['warn'](_0x2ac1df(0x187),_0x3aa0df),{'isValid':!0x0};}}};I=tn([d(0x0,_0xedcb84(_0x5e433c)),d(0x1,_0x2566c0),d(0x2,_0x16c157),d(0x3,_0x10ebb1),d(0x4,_0x39827b),d(0x5,_0x5a880f),d(0x6,_0xedcb84(_0xf587bd)),d(0x7,_0xedcb84(_0x2bf7cb)),d(0x8,_0xb83b12),d(0x9,_0xedcb84(_0x3a997f))],I);const V={'id':'mcp-ui.command.openConfigPanel','type':_0x2721e2[_0x462e9c(0x24a)],'handler':async(_0x53565e,_0x224f73)=>(_0x53565e[_0x462e9c(0x12c)](I)[_0x462e9c(0x15c)](),!0x0)};function pe(_0x17826b,_0x3d1db3){const _0xa5d771=_0x462e9c;switch(_0x17826b){case _0x5b09fa[_0xa5d771(0x12d)]:return _0xa5d771(0x210);case _0x5b09fa[_0xa5d771(0x16c)]:return _0xa5d771(0x16b);case _0x5b09fa[_0xa5d771(0x23d)]:return _0xa5d771(0x145);case _0x5b09fa[_0xa5d771(0x144)]:switch(_0x3d1db3){case _0x588524[_0xa5d771(0x1a1)]:return'mcpStatus.unauthorized';case _0x588524[_0xa5d771(0x199)]:return _0xa5d771(0x1db);case _0x588524[_0xa5d771(0x1c5)]:return _0xa5d771(0x21b);case _0x588524['MAX_RETRIES_EXCEEDED']:return _0xa5d771(0x1dc);default:return _0xa5d771(0x1a0);}case _0x5b09fa[_0xa5d771(0x1f5)]:return _0xa5d771(0x129);default:return'mcpStatus.unknown';}}function on(_0x519fb8,_0x706d67,_0x190673,_0x26c9e0=!0x0){const _0x3a15bd=_0x462e9c,_0x5b2307=pe(_0x519fb8,_0x706d67),_0x5b218=_0x190673['t'](_0x5b2307);return _0x26c9e0?_0x519fb8===_0x5b09fa['DISCONNECTED']&&_0x706d67===_0x588524['UNAUTHORIZED']?_0x5b218+_0x3a15bd(0x183)+_0x190673['t'](_0x3a15bd(0x119)):_0x519fb8===_0x5b09fa[_0x3a15bd(0x23d)]?''+_0x5b218:_0x519fb8===_0x5b09fa[_0x3a15bd(0x12d)]||_0x519fb8===_0x5b09fa[_0x3a15bd(0x144)]?_0x5b218+'\x20-\x20'+_0x190673['t'](_0x3a15bd(0x18a)):_0x5b218:_0x5b218;}function sn(_0x138e23){const _0x3f0595=_0x462e9c;switch(_0x138e23){case _0x5b09fa['CONNECTED']:return _0x3f0595(0x160);case _0x5b09fa[_0x3f0595(0x16c)]:case _0x5b09fa[_0x3f0595(0x1f5)]:return _0x3f0595(0x1ce);case _0x5b09fa[_0x3f0595(0x144)]:case _0x5b09fa[_0x3f0595(0x12d)]:return _0x3f0595(0x213);default:return _0x3f0595(0x1e9);}}function cn(_0x90ea5c){const _0x1475b1=_0x462e9c,{status$:_0x2123c5,error$:_0x41f9f0,onConfigure:_0x52d279,showClickable:_0xf3129b=!0x0}=_0x90ea5c,_0x4b9365=_0x4f8540(_0x2123c5,_0x5b09fa[_0x1475b1(0x12d)]),_0x350768=_0x4f8540(_0x41f9f0,_0x588524[_0x1475b1(0x1d1)]),_0x46cd01=_0x51efe8(_0x2bf7cb),_0x4eb49d=_0x4b9365===_0x5b09fa[_0x1475b1(0x23d)];_0x4b9365===_0x5b09fa[_0x1475b1(0x16c)]||_0x5b09fa[_0x1475b1(0x1f5)];const _0x97cb36=_0x46cd01['t'](pe(_0x4b9365,_0x350768)),_0x24a99b=on(_0x4b9365,_0x350768,_0x46cd01,_0xf3129b),_0x172edb=sn(_0x4b9365),_0x1b06d4=_0x4eb49d?_0xdb17df(ge,{}):_0xdb17df(de,{}),_0x2eea72=_0x405876(()=>{_0xf3129b&&_0x52d279&&_0x52d279();},[_0xf3129b,_0x52d279]);function _0x5d9ff4(){const _0x5b7150=_0x1475b1;return _0x3952cf(_0x5b7150(0x1bf),{'className':_0x5ed689(_0x5b7150(0x194),_0xf3129b&&_0x52d279&&_0x5b7150(0x18e)),'role':_0x5b7150(0x14e),'onClick':_0xf3129b&&_0x52d279?_0x2eea72:void 0x0,'children':[_0xdb17df(_0x5b7150(0x1bf),{'className':_0x5ed689(_0x5b7150(0x222),_0x172edb),'children':_0x1b06d4}),_0xdb17df(_0x5b7150(0x1bf),{'className':_0x5b7150(0x185),'children':_0x97cb36})]});}return _0xdb17df(_0x13966a,{'title':_0x24a99b,'placement':_0x1475b1(0x147),'children':_0x5d9ff4()});}var an=Object[_0x462e9c(0x1fc)],ln=(_0x1896ff,_0x57b154,_0x196396,_0x35874b)=>{for(var _0x2edecb=_0x35874b>0x1?void 0x0:_0x35874b?an(_0x57b154,_0x196396):_0x57b154,_0x1cba3f=_0x1896ff['length']-0x1,_0x205be6;_0x1cba3f>=0x0;_0x1cba3f--)(_0x205be6=_0x1896ff[_0x1cba3f])&&(_0x2edecb=_0x205be6(_0x2edecb)||_0x2edecb);return _0x2edecb;},M=(_0x5811f9,_0x56f8d6)=>(_0x4fa95c,_0x508337)=>_0x56f8d6(_0x4fa95c,_0x508337,_0x5811f9);function _0x395e(_0x5eadcb,_0x116832){_0x5eadcb=_0x5eadcb-0x10d;const _0xb7b761=_0xb7b7();let _0x395ed1=_0xb7b761[_0x5eadcb];return _0x395ed1;}let O=class extends _0x5b4b88{constructor(_0x3396d4,_0x1ded9e,_0x4b2ece,_0x5b4f37){const _0x548a85=_0x462e9c;super(),this['_injector']=_0x3396d4,this[_0x548a85(0x18f)]=_0x1ded9e,this[_0x548a85(0x133)]=_0x4b2ece,this['_configService']=_0x5b4f37,this[_0x548a85(0x225)](),this[_0x548a85(0x112)]();}[_0x462e9c(0x225)](){const _0x48d4cf=_0x462e9c,_0x28bbe9=this[_0x48d4cf(0x143)][_0x48d4cf(0x1a9)](y);_0x28bbe9!=null&&_0x28bbe9[_0x48d4cf(0x13c)]&&(this[_0x48d4cf(0x18f)][_0x48d4cf(0x240)]=!0x1);}[_0x462e9c(0x112)](){const _0x25b974=_0x462e9c,_0x47a75b=this[_0x25b974(0x143)][_0x25b974(0x1a9)](y);(_0x47a75b==null?void 0x0:_0x47a75b['showStatus'])!==!0x1&&this[_0x25b974(0x1e2)](this[_0x25b974(0x133)][_0x25b974(0x1e3)](_0x1dd054[_0x25b974(0x159)],()=>{const _0x88aa43=_0x25b974;var _0xd29415;return _0x4a6a4b(un({'status$':this[_0x88aa43(0x18f)][_0x88aa43(0x167)],'error$':this[_0x88aa43(0x18f)][_0x88aa43(0x1b9)],'onConfigure':()=>this[_0x88aa43(0x1b4)](),'showClickable':(_0xd29415=_0x47a75b==null?void 0x0:_0x47a75b['showDeveloperTools'])!=null?_0xd29415:!0x1}),this[_0x88aa43(0x22e)]);}));}[_0x462e9c(0x1b4)](){const _0x3e0ea5=_0x462e9c;this[_0x3e0ea5(0x22e)][_0x3e0ea5(0x12c)](I)[_0x3e0ea5(0x15c)]();}};O=ln([M(0x0,_0xedcb84(_0x5e433c)),M(0x1,_0xedcb84(_0x3a997f)),M(0x2,_0x2566c0),M(0x3,_0x16c157)],O);function un(_0x179260){const {status$:_0x125678,error$:_0x7711a2,onConfigure:_0x3baf21,showClickable:_0x291b2b}=_0x179260;return function(){return _0xdb17df(cn,{'status$':_0x125678,'error$':_0x7711a2,'onConfigure':_0x3baf21,'showClickable':_0x291b2b});};}function vn(_0x4f8a6b){const _0x48c7ce=_0x462e9c;return{'id':V['id'],'type':_0x465546['BUTTON'],'icon':_0x48c7ce(0x140),'title':'mcpConfig.title','tooltip':_0x48c7ce(0x19d)};}const dn={[_0x353af6[_0x462e9c(0x1d3)]]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object[_0x462e9c(0x1fc)],pn=(_0x31b062,_0x512560,_0x5f3d3b,_0x5d6c24)=>{const _0x1ea3ef=_0x462e9c;for(var _0x14d8c0=_0x5d6c24>0x1?void 0x0:_0x5d6c24?gn(_0x512560,_0x5f3d3b):_0x512560,_0x54a228=_0x31b062[_0x1ea3ef(0x1f6)]-0x1,_0x46708d;_0x54a228>=0x0;_0x54a228--)(_0x46708d=_0x31b062[_0x54a228])&&(_0x14d8c0=_0x46708d(_0x14d8c0)||_0x14d8c0);return _0x14d8c0;},re=(_0xf23ee3,_0x5e115c)=>(_0x180212,_0x52006f)=>_0x5e115c(_0x180212,_0x52006f,_0xf23ee3);let D=class extends _0x5b4b88{constructor(_0x294631,_0x2c2183){const _0x42aa6e=_0x462e9c;super(),this[_0x42aa6e(0x232)]=_0x294631,this[_0x42aa6e(0x1e7)]=_0x2c2183,this[_0x42aa6e(0x21a)](),this[_0x42aa6e(0x237)]();}['_initializeCommands'](){[V]['forEach'](_0x275d83=>{const _0x36f37f=_0x395e;this['disposeWithMe'](this[_0x36f37f(0x232)][_0x36f37f(0x117)](_0x275d83));});}[_0x462e9c(0x237)](){const _0x2cd63b=_0x462e9c;this['_menuManagerService'][_0x2cd63b(0x1df)](dn);}};D=pn([re(0x0,_0x4708fb),re(0x1,_0x3cd226)],D);const Mn={'mcpStatus':{'disconnected':_0x462e9c(0x189),'connecting':_0x462e9c(0x22c),'connected':_0x462e9c(0x20f),'failed':_0x462e9c(0x121),'retrying':_0x462e9c(0x230),'unknown':_0x462e9c(0x1e4),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x462e9c(0x17b),'maxRetriesExceeded':_0x462e9c(0x17a),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x462e9c(0x182)},'mcpConfig':{'title':_0x462e9c(0x20a),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x462e9c(0x24f),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x462e9c(0x226),'enableAuthHint':_0x462e9c(0x1a7),'connectionInfo':_0x462e9c(0x258),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':_0x462e9c(0x13a),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x462e9c(0x1fa),'sessionId':_0x462e9c(0x113),'sessionIdDescription':_0x462e9c(0x234),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x462e9c(0x24c),'maxRetries':_0x462e9c(0x1f2),'save':'Save\x20Configuration','saving':'Saving...','note1':_0x462e9c(0x191),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x462e9c(0x166),'configError':_0x462e9c(0x195),'apiApplyInfo':{'title':_0x462e9c(0x20d),'description':_0x462e9c(0x11a),'univerAiLabel':_0x462e9c(0x235),'getStarted':_0x462e9c(0x135)},'validation':{'apiKeyRequired':_0x462e9c(0x19e),'apiKeyTooShort':_0x462e9c(0x1b7),'invalidConfig':_0x462e9c(0x15a),'invalidApiKey':_0x462e9c(0x1dd)},'connectionStatus':{'disconnected':_0x462e9c(0x228),'connecting':_0x462e9c(0x188),'connected':'Connected','failed':_0x462e9c(0x248),'retrying':_0x462e9c(0x1f4)},'connectionError':{'unauthorized':_0x462e9c(0x25e),'sessionOccupied':_0x462e9c(0x17c),'networkError':_0x462e9c(0x148),'maxRetriesExceeded':_0x462e9c(0x13b)}}},An={'mcpStatus':{'disconnected':_0x462e9c(0x203),'connecting':'MCP\x20连接中...','connected':_0x462e9c(0x22a),'failed':_0x462e9c(0x224),'retrying':'MCP\x20重连中...','unknown':_0x462e9c(0x202),'unauthorized':'MCP:\x20未授权','sessionOccupied':_0x462e9c(0x192),'networkError':_0x462e9c(0x22d),'maxRetriesExceeded':_0x462e9c(0x243),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x462e9c(0x1ab)},'mcpConfig':{'title':_0x462e9c(0x11b),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x462e9c(0x217),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x462e9c(0x171),'enableAuth':_0x462e9c(0x260),'enableAuthHint':_0x462e9c(0x1cd),'connectionInfo':_0x462e9c(0x1aa),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x462e9c(0x249),'configStep1':_0x462e9c(0x1c7),'configStep2':_0x462e9c(0x19a),'configStep3':_0x462e9c(0x1d5),'sessionId':_0x462e9c(0x11f),'sessionIdDescription':_0x462e9c(0x198),'authorizationDescription':_0x462e9c(0x24b),'configParameters':_0x462e9c(0x142),'maxRetries':'最大重试次数','save':_0x462e9c(0x10e),'saving':'保存中...','note1':'配置更改将立即生效','note2':_0x462e9c(0x1fb),'configSaved':_0x462e9c(0x178),'configError':_0x462e9c(0x155),'apiApplyInfo':{'title':_0x462e9c(0x136),'description':_0x462e9c(0x1f0),'univerAiLabel':_0x462e9c(0x14d),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x462e9c(0x215),'invalidConfig':_0x462e9c(0x11d),'invalidApiKey':_0x462e9c(0x1e1)},'connectionStatus':{'disconnected':_0x462e9c(0x236),'connecting':_0x462e9c(0x1fd),'connected':_0x462e9c(0x204),'failed':'连接失败','retrying':'重连中...'},'connectionError':{'unauthorized':_0x462e9c(0x172),'sessionOccupied':_0x462e9c(0x14c),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x462e9c(0x1fe)}}};var fn=Object[_0x462e9c(0x245)],hn=Object[_0x462e9c(0x1fc)],Cn=(_0x2da5c1,_0x135637,_0xc976cc)=>_0x135637 in _0x2da5c1?fn(_0x2da5c1,_0x135637,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xc976cc}):_0x2da5c1[_0x135637]=_0xc976cc,mn=(_0x537dc5,_0x1b2b52,_0xd79488,_0x2caf52)=>{const _0x4610fe=_0x462e9c;for(var _0x2a0f60=_0x2caf52>0x1?void 0x0:_0x2caf52?hn(_0x1b2b52,_0xd79488):_0x1b2b52,_0x303323=_0x537dc5[_0x4610fe(0x1f6)]-0x1,_0x32191e;_0x303323>=0x0;_0x303323--)(_0x32191e=_0x537dc5[_0x303323])&&(_0x2a0f60=_0x32191e(_0x2a0f60)||_0x2a0f60);return _0x2a0f60;},P=(_0x3ce325,_0x458862)=>(_0x2fe15d,_0x38c4a5)=>_0x458862(_0x2fe15d,_0x38c4a5,_0x3ce325),_n=(_0x216a23,_0x20377c,_0x5118ca)=>Cn(_0x216a23,_0x20377c+'',_0x5118ca);let j=class extends _0xc74e50{constructor(_0x24dee4=ie,_0x40a8e0,_0x318a3e,_0x386a9d,_0x99ddcc,_0x1d2479){const _0x42ebe9=_0x462e9c;super(),this[_0x42ebe9(0x1f9)]=_0x24dee4,this[_0x42ebe9(0x22e)]=_0x40a8e0,this[_0x42ebe9(0x143)]=_0x318a3e,this['_uiPartsService']=_0x386a9d,this[_0x42ebe9(0x190)]=_0x99ddcc,this[_0x42ebe9(0x211)]=_0x1d2479;const {..._0x41802f}=_0x21a0cf({},ie,this[_0x42ebe9(0x1f9)]);this['_configService']['setConfig'](y,_0x41802f);}async[_0x462e9c(0x122)](){const _0x3cd23a=_0x462e9c,_0x576b14=[[O],[I],[D]];this[_0x3cd23a(0x22e)][_0x3cd23a(0x134)](_0x996af0)||_0x576b14[_0x3cd23a(0x181)]([_0x996af0,{'useClass':_0x3064bf}]),_0x576b14[_0x3cd23a(0x19b)](_0x1e101f=>this[_0x3cd23a(0x22e)]['add'](_0x1e101f)),this[_0x3cd23a(0x22e)][_0x3cd23a(0x12c)](O),this[_0x3cd23a(0x22e)][_0x3cd23a(0x12c)](I),this[_0x3cd23a(0x22e)][_0x3cd23a(0x12c)](D);}};_n(j,_0x462e9c(0x247),_0x462e9c(0x177)),j=mn([_0x389396(_0x4f69e3),P(0x1,_0xedcb84(_0x5e433c)),P(0x2,_0x16c157),P(0x3,_0x2566c0),P(0x4,_0x10ebb1),P(0x5,_0xedcb84(_0x2bf7cb))],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 _0x559f0d=_0x5edc;(function(_0x606b9c,_0x264aea){const _0x70e6b4=_0x5edc,_0xc3ffc0=_0x606b9c();while(!![]){try{const _0x50f2b3=-parseInt(_0x70e6b4(0x105))/0x1+parseInt(_0x70e6b4(0x15b))/0x2+parseInt(_0x70e6b4(0x153))/0x3*(parseInt(_0x70e6b4(0xbe))/0x4)+-parseInt(_0x70e6b4(0x1db))/0x5+parseInt(_0x70e6b4(0x101))/0x6*(-parseInt(_0x70e6b4(0x177))/0x7)+parseInt(_0x70e6b4(0x19e))/0x8*(-parseInt(_0x70e6b4(0x1ae))/0x9)+parseInt(_0x70e6b4(0x144))/0xa*(parseInt(_0x70e6b4(0x12c))/0xb);if(_0x50f2b3===_0x264aea)break;else _0xc3ffc0['push'](_0xc3ffc0['shift']());}catch(_0x9a23e3){_0xc3ffc0['push'](_0xc3ffc0['shift']());}}}(_0x14a9,0xe5c32));var Pe=Object['defineProperty'],Ee=(_0x29885b,_0x2bf4c8,_0x15b3e3)=>_0x2bf4c8 in _0x29885b?Pe(_0x29885b,_0x2bf4c8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x15b3e3}):_0x29885b[_0x2bf4c8]=_0x15b3e3,x=(_0x3b56de,_0xe6c71d,_0x1c1e3c)=>Ee(_0x3b56de,typeof _0xe6c71d!=_0x559f0d(0x11a)?_0xe6c71d+'':_0xe6c71d,_0x1c1e3c);import{LocaleService as _0x13d346,Inject as _0x592555,Injector as _0xa48931,Disposable as _0x313008,IConfigService as _0x1a3ab6,ILocalStorageService as _0x1b37b4,ILogService as _0x3a580c,CommandType as _0x47d0d7,ICommandService as _0x187c77,DependentOn as _0x451ff0,Plugin as _0x431772,merge as _0x5e5890}from'@univerjs/core';import{jsxs as _0x221335,jsx as _0x386101}from'react/jsx-runtime';function _0x14a9(){const _0x2d0187=['use','API\x20密钥无效,请检查密钥是否正确','点击连接\x20MCP','mcpConfig.configStepTitle','mcpConfig.connectionStatus.disconnected','配置无效','什么是\x20API\x20密钥?','pre','MCP:\x20会话\x20ID\x20已被占用','univer.plus','API\x20密钥不能为空','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','univer-size-4','mcpServerUrl','_initConfigSync','colorChannel1','0\x200\x2017\x2016','getOwnPropertyDescriptor','连接中...','toString','univer-shrink-0\x20univer-text-blue-500','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','_commandService','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','string','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','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','span','_handleConfigSave','next','API\x20Key','MCP\x20Connection\x20Failed','MCP\x20Connecting...','mcpStatus.sessionOccupied','mcpConfig.configInstructions','substring','保存中...','univer-flex\x20univer-items-start\x20univer-gap-2','registerCommand','univer-text-blue-600','univer-text-gray-400','close','off','univer-bg-blue-500','mcpConfig.connectionError.sessionOccupied','off-line-icon_clip0_910_343','showStatus','几秒钟内获取您的\x20API\x20密钥','UNAUTHORIZED','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','assign','21012QLtkOb','\x20-\x20','univer-flex\x20univer-flex-wrap\x20univer-gap-2','register','univer-flex\x20univer-items-center','MCP_UI_PLUGIN','CONNECTING','Univer\x20AI\x20Console','Configuration\x20Steps:','MCP\x20客户端配置','启用身份验证以获得安全连接','UniverIcon','mcpConfig.connectionError.unauthorized','currentColor','current','univer-text-xs\x20univer-text-gray-500','您的\x20API\x20密钥将在此浏览器中本地存储','NONE','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','sessionId$','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','Failed\x20to\x20save\x20configuration','connectionError$','univer-text-green-500','Authorization:','_menuManagerService','DISCONNECTED','mcpConfig.connectionStatus.failed','univer-min-w-0\x20univer-flex-1','MAX_RETRIES_EXCEEDED','_localeService','_componentManager','setItem','mcpStatus.maxRetriesExceeded','Error','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','fill','idSuffix','mcpConfig.saving','isValid','_logService','url(#on-line-icon_clip0_910_349)','COMMAND','SESSION_ID_OCCUPIED','CONNECTED','noopener\x20noreferrer','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','mcp.apiKey','_initializeCommands','removeItem','univer-space-y-4','Bearer\x20','Max\x20Retries','MCPConfigPanel','univer-flex\x20univer-items-center\x20univer-gap-2','Configuration\x20Parameters:','mcpConfig.description','<API_KEY>','MCP\x20Unknown\x20Status','mcpConfig.apiKey','mcpConfig.validation.invalidApiKey','off-line-icon','xlink:href','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','mask','_registerComponent','MCP:\x20网络错误','6fsqZqb','pluginName','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','1365244JNdjBC','OnLineIcon','mcpConfig.connectionStatus.connected','MCP:\x20未授权','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','_dialogService','复制以下\x20JSON\x20配置','M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','Save\x20Configuration','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','https://console.univer.plus','Enable\x20Authentication','univer-space-y-2','mergeMenu','tag','univer-text-sm\x20univer-font-medium','validateApiKey','mcpStatus.connected','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','MCP\x20配置','symbol','Enter\x20your\x20API\x20key','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','univer-flex\x20univer-items-center\x20univer-gap-3','_validateConfig','超出最大重试次数,请稍后再试','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','show','mcpConfig.apiApplyInfo.univerAiLabel','_localStorageService','_connectionController','带有\x20Bearer\x20前缀的\x20API\x20密钥。','apiKey','mcpConfig.apiApplyInfo.title','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','mcpStatus.networkError','配置步骤:','MCP\x20Connected','143VILYMs','网络连接错误,请检查您的网络连接','__setCustomHeaders','MCP:\x20超出最大重试次数','evenodd','MCP\x20Configuration','warn','univer-bg-gray-500','svg','Configuration\x20saved\x20successfully','univer-space-y-3','Invalid\x20configuration','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','defs','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','请输入您的\x20API\x20密钥','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','univer-text-xs\x20univer-text-gray-600','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','Univer\x20AI\x20控制台','clipPath','has','2487410bKWMoA','_initAutoConnect','MCP\x20重连中...','1em','enableAutoConnect','univer-flex\x20univer-items-start\x20univer-gap-3','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','mcpConfig.validation.invalidConfig','univer-font-medium','_messageService','NETWORK_ERROR','API\x20key\x20is\x20required','defineProperty','getConfig','univer-bg-green-500','186iipdSH','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','mcpConfig.validation.apiKeyRequired','onStarting','getCurrentConfig','univer.ai','http','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','515218TWmYUB','push','未连接','replace','error','Configuration\x20Notes:','button','registerComponent','mcpStatus.clickToConfigure','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Disconnected','_config$','API\x20key\x20with\x20Bearer\x20prefix.','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','RETRYING','OffLineIcon','HelpIcon','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','url(#$1','mcpConfig.sessionIdDescription','label','mcpConfig.connectionInfo','mcp-config-dialog','value','FAILED','univer-flex-1','_mcpConnectionController','4899034KJYFNd','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','mcpStatus.failed','mcpStatus.retrying','disposeWithMe','univer-text-red-500','none','trim','mcpConfig.apiKeyHint','univer-size-2\x20univer-rounded-full','_initializeMenus','length','MenuIcon','univer-shrink-0\x20univer-text-red-500','mcpConfig.configSaved','MCP:\x20Max\x20Retries\x20Exceeded','权限验证失败,请检查您的\x20API\x20密钥','MCP\x20状态未知','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','subscribe','on-line-icon_clip0_910_349','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','univer-bg-red-500','_mcpCoreConfig$','0\x200\x2016\x2016','https://console.univer.ai','_config','url(#off-line-icon_clip0_910_343)','help-icon','close-icon','Connected','_configService','启用身份验证','mcpConfig.configStep3','mcpConfig.configError','mcpConfig.connectionError.maxRetriesExceeded','connectionStatus$','将配置添加到您的\x20MCP\x20客户端设置文件中','MCP\x20连接失败','4871528XtwbNc','stringify','OTHERS','配置\x20MCP\x20使用\x20AI\x20操作电子表格','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','mcp-ui.command.openConfigPanel','配置更改将立即生效','_createConfigPanelComponent','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','open','Connection\x20Failed','配置保存成功','univer-text-sm\x20univer-text-gray-500','mcpConfig.apiApplyInfo.getStarted','subscribeConfigValue$','_injector','9cvsJwd','translate(.97)','_initStatusComponent','mcpConfig.connectionStatus.connecting','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','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','CheckMarkIcon','_blank','errorMessage','mcpConfig.title','displayName','forEach','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','entries','_apiKey$','check-mark-icon','最大重试次数','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','attrs','_uiPartsService','MCP\x20Client\x20Configuration','http://www.w3.org/2000/svg','mcpStatus.disconnected','mcpConfig.authorizationDescription','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Retrying...','get','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-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20已连接','round','M0\x200H16V16H0z','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','includes','_loadStoredApiKey','univer-flex\x20univer-gap-3','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','连接失败','Enable\x20authentication\x20for\x20secure\x20connections','showConfigPanel','showDeveloperTools','div','map','会话ID','1008875NLYllE','path','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','_loading$'];_0x14a9=function(){return _0x2d0187;};return _0x14a9();}import{MCPConnectionStatus as _0x397fda,MCPConnectionError as _0x52d4dc,MCPConnectionController as _0x479f93,MCP_PLUGIN_CONFIG_KEY as _0x5b9089,UniverMCPPlugin as _0x310f35}from'@univerjs-pro/mcp';import{clsx as _0x5e0e60,Input as _0x35678c,Button as _0x2f0cea,MessageType as _0x46c50f,Tooltip as _0x3638c1}from'@univerjs/design';import{useDependency as _0x26f536,useObservable as _0xa49c42,ComponentManager as _0xf4e518,connectInjector as _0x2de9ba,IUIPartsService as _0x2fd2fa,IDialogService as _0x48819c,IMessageService as _0x5aa206,BuiltInUIPart as _0x295991,MenuItemType as _0x19d45d,RibbonStartGroup as _0x2539bd,IMenuManagerService as _0x3548c9}from'@univerjs/ui';import{BehaviorSubject as _0x52de91}from'rxjs';import{useRef as _0x397171,createElement as _0x3b1187,forwardRef as _0x593de2,useState as _0x9d75e0,useCallback as _0x319000}from'react';import{ISocketService as _0x5aa8ec,WebSocketService as _0x325f73}from'@univerjs/network';function b({ref:_0x1aa627,..._0x561d6c}){const _0x110cfc=_0x559f0d,{icon:_0x135f08,id:_0x4dd816,className:_0x3278b0,extend:_0x691ec1,..._0x3e995a}=_0x561d6c,_0x12d6eb=('univerjs-icon\x20univerjs-icon-'+_0x4dd816+'\x20'+(_0x3278b0||''))[_0x110cfc(0x17e)](),_0x3d6b1d=_0x397171('_'+We());return ae(_0x135f08,''+_0x4dd816,{'defIds':_0x135f08['defIds'],'idSuffix':_0x3d6b1d[_0x110cfc(0xcc)]},{'ref':_0x1aa627,'className':_0x12d6eb,..._0x3e995a},_0x691ec1);}function ae(_0x4a489f,_0x97b012,_0x17a4aa,_0x4ccb48,_0x224c8e){const _0x363736=_0x559f0d;return _0x3b1187(_0x4a489f[_0x363736(0x114)],{'key':_0x97b012,...Ye(_0x4a489f,_0x17a4aa,_0x224c8e),..._0x4ccb48},(Ze(_0x4a489f,_0x17a4aa)['children']||[])[_0x363736(0x1d9)]((_0x3585ae,_0x4e989d)=>ae(_0x3585ae,_0x97b012+'-'+_0x4a489f[_0x363736(0x114)]+'-'+_0x4e989d,_0x17a4aa,void 0x0,_0x224c8e)));}function Ye(_0xb0c5f2,_0x4b2c66,_0x49d660){const _0x2bd774=_0x559f0d,_0x20984f={..._0xb0c5f2['attrs']};_0x49d660!=null&&_0x49d660['colorChannel1']&&_0x20984f[_0x2bd774(0xe2)]===_0x2bd774(0x1ee)&&(_0x20984f[_0x2bd774(0xe2)]=_0x49d660[_0x2bd774(0x1ee)]),_0xb0c5f2[_0x2bd774(0x114)]===_0x2bd774(0xfe)&&_0x20984f['id']&&(_0x20984f['id']=_0x20984f['id']+_0x4b2c66[_0x2bd774(0xe3)]),Object['entries'](_0x20984f)[_0x2bd774(0x1b9)](([_0x5275ba,_0x3441d0])=>{const _0x3bd2ac=_0x2bd774;_0x5275ba===_0x3bd2ac(0xfe)&&typeof _0x3441d0=='string'&&(_0x20984f[_0x5275ba]=_0x3441d0[_0x3bd2ac(0x15e)](/url\(#(.*)\)/,_0x3bd2ac(0x16e)+_0x4b2c66['idSuffix']+')'));});const {defIds:_0x38f31b}=_0x4b2c66;return!_0x38f31b||_0x38f31b[_0x2bd774(0x182)]===0x0||(_0xb0c5f2[_0x2bd774(0x114)]===_0x2bd774(0x1df)&&_0x20984f[_0x2bd774(0xfc)]&&(_0x20984f[_0x2bd774(0xfc)]=_0x20984f[_0x2bd774(0xfc)]+_0x4b2c66[_0x2bd774(0xe3)]),Object[_0x2bd774(0x1bb)](_0x20984f)[_0x2bd774(0x1b9)](([_0x5d2384,_0x373e90])=>{const _0x23db36=_0x2bd774;typeof _0x373e90==_0x23db36(0xa3)&&(_0x20984f[_0x5d2384]=_0x373e90[_0x23db36(0x15e)](/url\(#(.*)\)/,_0x23db36(0x16e)+_0x4b2c66[_0x23db36(0xe3)]+')'));})),_0x20984f;}function Ze(_0x2fe0b8,_0x412072){const _0x4f3074=_0x559f0d;var _0x1a044d;const {defIds:_0x1866f1}=_0x412072;return!_0x1866f1||_0x1866f1[_0x4f3074(0x182)]===0x0?_0x2fe0b8:_0x2fe0b8[_0x4f3074(0x114)]===_0x4f3074(0x139)&&((_0x1a044d=_0x2fe0b8['children'])!=null&&_0x1a044d[_0x4f3074(0x182)])?{..._0x2fe0b8,'children':_0x2fe0b8['children'][_0x4f3074(0x1d9)](_0x543b9d=>typeof _0x543b9d[_0x4f3074(0x1c0)]['id']=='string'&&_0x1866f1&&_0x1866f1[_0x4f3074(0x1d0)](_0x543b9d[_0x4f3074(0x1c0)]['id'])?{..._0x543b9d,'attrs':{..._0x543b9d[_0x4f3074(0x1c0)],'id':_0x543b9d[_0x4f3074(0x1c0)]['id']+_0x412072['idSuffix']}}:_0x543b9d)}:_0x2fe0b8;}function We(){const _0x20ab33=_0x559f0d;return Math['random']()[_0x20ab33(0x1f2)](0x24)[_0x20ab33(0xae)](0x2,0x8);}b[_0x559f0d(0x1b8)]=_0x559f0d(0xc9);const qe={'tag':_0x559f0d(0x134),'attrs':{'xmlns':_0x559f0d(0x1c3),'fill':_0x559f0d(0x17d),'viewBox':_0x559f0d(0x18f),'width':_0x559f0d(0x147),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x559f0d(0xcb),'d':_0x559f0d(0x10c),'fillRule':_0x559f0d(0x130),'clipRule':'evenodd'}}]},le=_0x593de2(function(_0x4b86e3,_0x282129){const _0x130d88=_0x559f0d;return _0x3b1187(b,Object[_0x130d88(0xbd)]({},_0x4b86e3,{'id':_0x130d88(0x1bd),'ref':_0x282129,'icon':qe}));});le[_0x559f0d(0x1b8)]=_0x559f0d(0x1b4);const Xe={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x559f0d(0x17d),'viewBox':_0x559f0d(0x18f),'width':_0x559f0d(0x147),'height':_0x559f0d(0x147)},'children':[{'tag':_0x559f0d(0x1dc),'attrs':{'fill':'currentColor','d':_0x559f0d(0x1ea)}}]},ue=_0x593de2(function(_0x96170e,_0x4d1008){const _0x15312e=_0x559f0d;return _0x3b1187(b,Object[_0x15312e(0xbd)]({},_0x96170e,{'id':_0x15312e(0x194),'ref':_0x4d1008,'icon':Xe}));});ue[_0x559f0d(0x1b8)]='CloseIcon';const Je={'tag':_0x559f0d(0x134),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x559f0d(0x17d),'viewBox':'0\x200\x2016\x2016','width':_0x559f0d(0x147),'height':'1em'},'children':[{'tag':_0x559f0d(0x1dc),'attrs':{'fill':_0x559f0d(0xcb),'d':'M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z'}},{'tag':_0x559f0d(0x1dc),'attrs':{'fill':_0x559f0d(0xcb),'d':_0x559f0d(0xa5)}},{'tag':_0x559f0d(0x1dc),'attrs':{'fill':_0x559f0d(0xcb),'d':'M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','fillRule':_0x559f0d(0x130),'clipRule':'evenodd'}}]},ve=_0x593de2(function(_0x2237a6,_0x33f3b1){const _0x499f5a=_0x559f0d;return _0x3b1187(b,Object[_0x499f5a(0xbd)]({},_0x2237a6,{'id':_0x499f5a(0x193),'ref':_0x33f3b1,'icon':Je}));});ve['displayName']=_0x559f0d(0x16b);const Qe={'tag':'svg','attrs':{'xmlns':_0x559f0d(0x1c3),'fill':_0x559f0d(0x17d),'viewBox':_0x559f0d(0x18f),'width':'1em','height':_0x559f0d(0x147)},'children':[{'tag':'g','attrs':{'clipPath':_0x559f0d(0x192)},'children':[{'tag':'path','attrs':{'stroke':_0x559f0d(0xcb),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x559f0d(0x1cd),'strokeLinejoin':_0x559f0d(0x1cd),'strokeWidth':1.2}}]},{'tag':_0x559f0d(0x139),'attrs':{},'children':[{'tag':_0x559f0d(0x142),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x559f0d(0x1dc),'attrs':{'fill':'white','d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x559f0d(0xb8)]},de=_0x593de2(function(_0x2a0015,_0x2c9b70){const _0x45db2d=_0x559f0d;return _0x3b1187(b,Object[_0x45db2d(0xbd)]({},_0x2a0015,{'id':_0x45db2d(0xfb),'ref':_0x2c9b70,'icon':Qe}));});de[_0x559f0d(0x1b8)]=_0x559f0d(0x16a);const en={'tag':_0x559f0d(0x134),'attrs':{'xmlns':_0x559f0d(0x1c3),'fill':_0x559f0d(0x17d),'viewBox':_0x559f0d(0x1ef),'width':'1em','height':_0x559f0d(0x147)},'children':[{'tag':'g','attrs':{'clipPath':_0x559f0d(0xe7)},'children':[{'tag':_0x559f0d(0x1dc),'attrs':{'stroke':_0x559f0d(0xcb),'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':'round','strokeLinejoin':_0x559f0d(0x1cd),'strokeWidth':1.2}}]},{'tag':_0x559f0d(0x139),'attrs':{},'children':[{'tag':_0x559f0d(0x142),'attrs':{'id':_0x559f0d(0x18b)},'children':[{'tag':'path','attrs':{'fill':'white','d':_0x559f0d(0x1ce),'transform':_0x559f0d(0x1af)}}]}]}],'defIds':[_0x559f0d(0x18b)]},ge=_0x593de2(function(_0x5cbaa7,_0x3a48ec){const _0x1a2b19=_0x559f0d;return _0x3b1187(b,Object[_0x1a2b19(0xbd)]({},_0x5cbaa7,{'id':'on-line-icon','ref':_0x3a48ec,'icon':en}));});ge[_0x559f0d(0x1b8)]=_0x559f0d(0x106);function nn(_0x9e2589){const _0x15a3bf=_0x559f0d;var _0x37c88c,_0x3dcddf;const {mcpCoreConfig:_0x109c40,onSave:_0x36bf52,loading:_0x2e363b=!0x1,config:_0x1d49f0,connectionStatus$:_0x2e310a,connectionError$:_0x2ee351,currentApiKey$:_0x1f1080,currentSessionId$:_0x2a7f33}=_0x9e2589,_0x899745=_0x26f536(_0x13d346),_0x2e6d34=_0xa49c42(_0x2e310a,_0x397fda[_0x15a3bf(0xd8)]),_0x131775=_0xa49c42(_0x2ee351,_0x52d4dc['NONE']),_0xc24966=_0xa49c42(_0x2a7f33,''),_0x11c494=_0xa49c42(_0x1f1080,''),[_0x20f085,_0x1e933e]=_0x9d75e0(_0x11c494||''),_0x3b60e3=!0x0,_0x4f7e28=_0x1d49f0[_0x15a3bf(0x1d7)]&&_0x109c40[_0x15a3bf(0x1ec)]&&(_0x109c40[_0x15a3bf(0x1ec)]['includes'](_0x15a3bf(0x1e8))||_0x109c40['mcpServerUrl'][_0x15a3bf(0x1d0)](_0x15a3bf(0x158))),_0x20114d=(_0x37c88c=_0x109c40[_0x15a3bf(0x1ec)])==null?void 0x0:_0x37c88c[_0x15a3bf(0x1d0)](_0x15a3bf(0x1e8)),_0x1c778d=(_0x3dcddf=_0x109c40[_0x15a3bf(0x1ec)])==null?void 0x0:_0x3dcddf[_0x15a3bf(0x1d0)](_0x15a3bf(0x158)),_0x4bc5f7=_0x20114d?_0x15a3bf(0x110):_0x15a3bf(0x190),_0x40a1be=_0x1d49f0[_0x15a3bf(0x1d7)]&&(_0x20114d||_0x1c778d),[_0x6e927f,_0x5f2065]=_0x9d75e0(!_0x20f085[_0x15a3bf(0x17e)]()),_0x1ac428=(_0x1971d5,_0x1beebb)=>{const _0x213fcf=_0x15a3bf;if(_0x1beebb===_0x52d4dc[_0x213fcf(0xbb)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x1971d5){case _0x397fda[_0x213fcf(0xea)]:return _0x213fcf(0x16d);case _0x397fda[_0x213fcf(0xc4)]:case _0x397fda[_0x213fcf(0x169)]:return _0x213fcf(0x138);case _0x397fda[_0x213fcf(0x174)]:return _0x213fcf(0xec);default:return _0x213fcf(0x1a2);}},_0x527b18=(_0x5728b3,_0x4362cc)=>{const _0x5cb11a=_0x15a3bf;if(_0x4362cc===_0x52d4dc['UNAUTHORIZED'])return'univer-bg-red-500';switch(_0x5728b3){case _0x397fda[_0x5cb11a(0xea)]:return _0x5cb11a(0x152);case _0x397fda[_0x5cb11a(0xc4)]:case _0x397fda[_0x5cb11a(0x169)]:return _0x5cb11a(0xb6);case _0x397fda[_0x5cb11a(0x174)]:return _0x5cb11a(0x18d);default:return _0x5cb11a(0x133);}},_0x49dd9c=_0x3e4dc3=>{const _0x28ed2a=_0x15a3bf;switch(_0x3e4dc3){case _0x397fda[_0x28ed2a(0xea)]:return _0x899745['t'](_0x28ed2a(0x107));case _0x397fda['CONNECTING']:return _0x899745['t'](_0x28ed2a(0x1b1));case _0x397fda[_0x28ed2a(0x174)]:return _0x899745['t'](_0x28ed2a(0xd9));case _0x397fda['RETRYING']:return _0x899745['t']('mcpConfig.connectionStatus.retrying');default:return _0x899745['t'](_0x28ed2a(0x1e3));}},_0x4de20d=_0x2c584f=>{const _0x12b5bb=_0x15a3bf;switch(_0x2c584f){case _0x52d4dc[_0x12b5bb(0xbb)]:return _0x899745['t'](_0x12b5bb(0xca));case _0x52d4dc[_0x12b5bb(0xe9)]:return _0x899745['t'](_0x12b5bb(0xb7));case _0x52d4dc[_0x12b5bb(0x14e)]:return _0x899745['t']('mcpConfig.connectionError.networkError');case _0x52d4dc[_0x12b5bb(0xdb)]:return _0x899745['t'](_0x12b5bb(0x19a));default:return'';}},_0x213d48=_0x319000(()=>{const _0x1fe5f8=_0x15a3bf,_0x513afe={..._0x109c40,'apiKey':_0x20f085[_0x1fe5f8(0x17e)](),'enableAuth':_0x3b60e3};_0x36bf52(_0x513afe);},[_0x109c40,_0x20f085,_0x3b60e3,_0x36bf52]),_0x53c4de=_0x20f085['trim']()[_0x15a3bf(0x182)]>0x0;return _0x221335(_0x15a3bf(0x1d8),{'className':_0x15a3bf(0x128),'children':[_0x386101(_0x15a3bf(0x1d8),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':_0x221335(_0x15a3bf(0x1d8),{'className':_0x15a3bf(0x11d),'children':[_0x386101(_0x15a3bf(0x1d8),{'className':_0x15a3bf(0x1b2),'children':_0x386101(_0x15a3bf(0xa6),{'className':'univer-text-white','children':'⚙'})}),_0x386101(_0x15a3bf(0x1d8),{'children':_0x386101('p',{'className':_0x15a3bf(0x1aa),'children':_0x899745['t'](_0x15a3bf(0xf6))})})]})}),_0x221335(_0x15a3bf(0x1d8),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[_0x386101(_0x15a3bf(0x1d8),{'className':_0x5e0e60(_0x15a3bf(0xe1),_0x1ac428(_0x2e6d34,_0x131775)),'children':_0x221335(_0x15a3bf(0x1d8),{'className':_0x15a3bf(0xf4),'children':[_0x386101(_0x15a3bf(0x1d8),{'className':_0x5e0e60(_0x15a3bf(0x180),_0x527b18(_0x2e6d34,_0x131775))}),_0x386101(_0x15a3bf(0xa6),{'className':_0x15a3bf(0x115),'children':_0x49dd9c(_0x2e6d34)})]})}),_0x131775!==_0x52d4dc[_0x15a3bf(0xcf)]&&(_0x2e6d34===_0x397fda['FAILED']||_0x131775===_0x52d4dc[_0x15a3bf(0xbb)])&&_0x386101(_0x15a3bf(0x1d8),{'className':_0x15a3bf(0x104),'children':_0x221335(_0x15a3bf(0x1d8),{'className':_0x15a3bf(0xb0),'children':[_0x386101(_0x15a3bf(0xa6),{'className':_0x15a3bf(0x184),'children':'⚠️'}),_0x386101('p',{'className':_0x15a3bf(0xbc),'children':_0x4de20d(_0x131775)})]})})]}),_0x386101(_0x15a3bf(0x1d8),{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':_0x221335(_0x15a3bf(0x1d8),{'className':'univer-space-y-5','children':[_0x221335(_0x15a3bf(0x1d8),{'className':'univer-space-y-2','children':[_0x221335(_0x15a3bf(0x170),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0x386101(_0x15a3bf(0xa6),{'children':'🔑'}),'\x20',_0x899745['t'](_0x15a3bf(0xf9)),_0x386101(_0x15a3bf(0xa6),{'className':_0x15a3bf(0x17c),'children':'*'}),_0x4f7e28&&_0x386101('a',{'className':_0x15a3bf(0x1c9),'title':_0x899745['t'](_0x15a3bf(0x127)),'role':_0x15a3bf(0x161),'onClick':()=>_0x5f2065(!0x0),'children':_0x386101(ve,{})})]}),_0x386101(_0x35678c,{'type':'text','placeholder':_0x899745['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x20f085,'disabled':_0x2e363b,'autoComplete':_0x15a3bf(0xb5),'onChange':_0x1e933e}),_0x386101('p',{'className':_0x15a3bf(0xcd),'children':_0x899745['t'](_0x15a3bf(0x17f))})]}),_0x4f7e28&&_0x6e927f&&_0x221335(_0x15a3bf(0x1d8),{'className':_0x15a3bf(0x109),'children':[_0x386101('a',{'className':_0x15a3bf(0x1b3),'role':_0x15a3bf(0x161),'onClick':()=>_0x5f2065(!0x1),'children':_0x386101(ue,{'className':_0x15a3bf(0x1eb)})}),_0x221335(_0x15a3bf(0x1d8),{'className':_0x15a3bf(0x140),'children':[_0x386101(_0x15a3bf(0x1d8),{'className':_0x15a3bf(0x189),'children':_0x386101(_0x15a3bf(0xa6),{'className':_0x15a3bf(0xb2),'children':'🚀'})}),_0x221335(_0x15a3bf(0x1d8),{'className':_0x15a3bf(0x175),'children':[_0x386101('h4',{'className':_0x15a3bf(0x1bf),'children':_0x899745['t'](_0x15a3bf(0x127))}),_0x386101('p',{'className':_0x15a3bf(0x178),'children':_0x899745['t']('mcpConfig.apiApplyInfo.description')}),_0x386101('div',{'className':_0x15a3bf(0xc0),'children':_0x40a1be&&_0x221335('a',{'className':'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','href':_0x4bc5f7,'target':_0x15a3bf(0x1b5),'rel':_0x15a3bf(0xeb),'children':[_0x386101(_0x15a3bf(0xa6),{'children':'🤖'}),_0x899745['t'](_0x15a3bf(0x122)),_0x386101(_0x15a3bf(0xa6),{'className':_0x15a3bf(0xb3),'children':'↗'})]})}),_0x221335(_0x15a3bf(0x1d8),{'className':_0x15a3bf(0x11c),'children':['✨','\x20',_0x899745['t'](_0x15a3bf(0x1ab))]})]})]})]}),_0x1d49f0[_0x15a3bf(0x1d7)]&&_0x221335(_0x15a3bf(0x1d8),{'className':_0x15a3bf(0x16c),'children':[_0x221335('h4',{'className':_0x15a3bf(0x14a),'children':[_0x386101(_0x15a3bf(0xa6),{'children':'🔗'}),'\x20',_0x899745['t'](_0x15a3bf(0x171))]}),_0x221335(_0x15a3bf(0x1d8),{'className':_0x15a3bf(0xf0),'children':[_0x221335('div',{'className':_0x15a3bf(0x136),'children':[_0x386101('p',{'className':_0x15a3bf(0x13f),'children':_0x899745['t'](_0x15a3bf(0xad))}),_0x221335(_0x15a3bf(0x1d8),{'className':'univer-space-y-2','children':[_0x386101('div',{'className':_0x15a3bf(0x168),'children':_0x899745['t'](_0x15a3bf(0x1e2))}),_0x221335(_0x15a3bf(0x1d8),{'className':_0x15a3bf(0x15a),'children':[_0x221335(_0x15a3bf(0x1d8),{'className':_0x15a3bf(0xf4),'children':[_0x386101(_0x15a3bf(0xa6),{'className':_0x15a3bf(0x13d),'children':'1'}),_0x899745['t']('mcpConfig.configStep1')]}),_0x221335(_0x15a3bf(0x1d8),{'className':_0x15a3bf(0xf4),'children':[_0x386101(_0x15a3bf(0xa6),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'2'}),_0x899745['t']('mcpConfig.configStep2')]}),_0x221335(_0x15a3bf(0x1d8),{'className':_0x15a3bf(0xf4),'children':[_0x386101('span',{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'3'}),_0x899745['t'](_0x15a3bf(0x198))]})]})]})]}),_0x221335(_0x15a3bf(0x1d8),{'className':'univer-space-y-2','children':[_0x386101(_0x15a3bf(0x1d8),{'className':_0x15a3bf(0x168),'children':'MCP\x20Configuration'}),_0x386101('div',{'className':_0x15a3bf(0xfd),'children':_0x386101(_0x15a3bf(0x1e6),{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':JSON[_0x15a3bf(0x19f)]({'mcpServers':{'univer':{'url':'https://mcp.univer.ai/mcp/?univer_session_id='+(_0xc24966||'<SESSION_ID>'),'type':_0x15a3bf(0x159),'headers':{'Authorization':_0x15a3bf(0xf1)+(_0x20f085||_0x15a3bf(0xf7))}}}},null,0x2)})})]}),_0x221335(_0x15a3bf(0x1d8),{'className':_0x15a3bf(0x136),'children':[_0x386101(_0x15a3bf(0x1d8),{'className':_0x15a3bf(0x168),'children':_0x899745['t']('mcpConfig.configParameters')}),_0x221335(_0x15a3bf(0x1d8),{'className':_0x15a3bf(0x112),'children':[_0x221335('div',{'className':_0x15a3bf(0x149),'children':[_0x386101(_0x15a3bf(0x1d8),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x221335(_0x15a3bf(0x1d8),{'className':_0x15a3bf(0xda),'children':[_0x386101(_0x15a3bf(0x1d8),{'className':_0x15a3bf(0x1dd),'children':'univer_session_id:'}),_0x386101(_0x15a3bf(0x1d8),{'className':_0x15a3bf(0xcd),'children':_0x899745['t'](_0x15a3bf(0x16f))})]})]}),_0x221335(_0x15a3bf(0x1d8),{'className':_0x15a3bf(0x149),'children':[_0x386101(_0x15a3bf(0x1d8),{'className':_0x15a3bf(0x10d)}),_0x221335('div',{'className':_0x15a3bf(0xda),'children':[_0x386101('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x15a3bf(0xd6)}),_0x386101('div',{'className':_0x15a3bf(0xcd),'children':_0x899745['t'](_0x15a3bf(0x1c5))})]})]})]})]})]})]}),_0x386101(_0x2f0cea,{'onClick':_0x213d48,'disabled':!_0x53c4de||_0x2e363b,'className':_0x15a3bf(0xd2),'children':_0x2e363b?_0x221335('span',{'className':_0x15a3bf(0xf4),'children':[_0x386101(_0x15a3bf(0xa6),{'children':'⟲'}),_0x899745['t'](_0x15a3bf(0xe4))]}):_0x221335('span',{'className':_0x15a3bf(0xf4),'children':[_0x386101(le,{}),_0x899745['t']('mcpConfig.save')]})}),_0x386101(_0x15a3bf(0x1d8),{'className':_0x15a3bf(0x10f),'children':_0x221335(_0x15a3bf(0x1d8),{'className':_0x15a3bf(0x1d2),'children':[_0x386101(_0x15a3bf(0xa6),{'className':_0x15a3bf(0x1f3),'children':'💡'}),_0x221335('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[_0x386101(_0x15a3bf(0x1d8),{'className':_0x15a3bf(0x14c),'children':_0x15a3bf(0x160)}),_0x221335(_0x15a3bf(0x1d8),{'children':['•',_0x899745['t']('mcpConfig.note1')]}),_0x221335(_0x15a3bf(0x1d8),{'children':['•',_0x899745['t']('mcpConfig.note2')]})]})]})})]})})]});}const y='mcp-ui.config',ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object[_0x559f0d(0x1f0)],tn=(_0x209fab,_0x26f38a,_0x3e5c44,_0x4a53c5)=>{const _0x16f1ec=_0x559f0d;for(var _0x126d6e=_0x4a53c5>0x1?void 0x0:_0x4a53c5?rn(_0x26f38a,_0x3e5c44):_0x26f38a,_0x37aad9=_0x209fab[_0x16f1ec(0x182)]-0x1,_0x154ce2;_0x37aad9>=0x0;_0x37aad9--)(_0x154ce2=_0x209fab[_0x37aad9])&&(_0x126d6e=_0x154ce2(_0x126d6e)||_0x126d6e);return _0x126d6e;},d=(_0x3b9c99,_0x527bae)=>(_0x46840e,_0x23b3c0)=>_0x527bae(_0x46840e,_0x23b3c0,_0x3b9c99);const U=_0x559f0d(0xed),L=_0x559f0d(0x172);let I=class extends _0x313008{constructor(_0x427f0d,_0x426035,_0x287f52,_0x5ba654,_0x677fda,_0x5cac8b,_0x34a8fd,_0xed97d0,_0x633101,_0x32219f){const _0x17d77d=_0x559f0d;super(),x(this,_0x17d77d(0x1de),new _0x52de91(!0x1)),x(this,_0x17d77d(0x18e),new _0x52de91({})),x(this,_0x17d77d(0x166),new _0x52de91({})),x(this,_0x17d77d(0x1bc),new _0x52de91('')),x(this,_0x17d77d(0xa7),async _0x253482=>{const _0x3055f8=_0x17d77d;var _0x610375,_0x391c28;this[_0x3055f8(0x1de)][_0x3055f8(0xa8)](!0x0);try{const _0x25f78c=await this[_0x3055f8(0x11e)](_0x253482);if(!_0x25f78c[_0x3055f8(0xe5)]){this[_0x3055f8(0x14d)]['show']({'type':_0x46c50f[_0x3055f8(0xe0)],'content':_0x25f78c[_0x3055f8(0x1b6)]||this[_0x3055f8(0xdc)]['t'](_0x3055f8(0x14b))});return;}_0x253482[_0x3055f8(0x126)]?await this[_0x3055f8(0x123)][_0x3055f8(0xde)](U,_0x253482[_0x3055f8(0x126)][_0x3055f8(0x17e)]()):await this[_0x3055f8(0x123)][_0x3055f8(0xef)](U),this['_apiKey$'][_0x3055f8(0xa8)](((_0x610375=_0x253482[_0x3055f8(0x126)])==null?void 0x0:_0x610375[_0x3055f8(0x17e)]())||''),this[_0x3055f8(0x176)]['__setCustomHeaders']({'Authorization':'Bearer\x20'+((_0x391c28=_0x253482['apiKey'])==null?void 0x0:_0x391c28[_0x3055f8(0x17e)]())}),this['_messageService'][_0x3055f8(0x121)]({'type':_0x46c50f['Success'],'content':this[_0x3055f8(0xdc)]['t'](_0x3055f8(0x185))}),setTimeout(()=>{this['_dialogService']['close'](L);},0x320);}catch(_0x132a4a){this[_0x3055f8(0xe6)][_0x3055f8(0x15f)](_0x3055f8(0x1d3),_0x132a4a),this[_0x3055f8(0x14d)][_0x3055f8(0x121)]({'type':_0x46c50f['Error'],'content':this[_0x3055f8(0xdc)]['t'](_0x3055f8(0x199))});}finally{this[_0x3055f8(0x1de)][_0x3055f8(0xa8)](!0x1);}}),(this['_injector']=_0x427f0d,this['_uiPartsService']=_0x426035,this[_0x17d77d(0x196)]=_0x287f52,this[_0x17d77d(0x123)]=_0x5ba654,this[_0x17d77d(0x10a)]=_0x677fda,this[_0x17d77d(0x14d)]=_0x5cac8b,this['_componentManager']=_0x34a8fd,this[_0x17d77d(0xdc)]=_0xed97d0,this[_0x17d77d(0xe6)]=_0x633101,this[_0x17d77d(0x176)]=_0x32219f,this[_0x17d77d(0x1ed)](),this[_0x17d77d(0x1d1)](),this[_0x17d77d(0xff)]());}[_0x559f0d(0x1d6)](){const _0x103c89=_0x559f0d,_0x4a049c=this[_0x103c89(0x196)][_0x103c89(0x151)](y);_0x4a049c!=null&&_0x4a049c['showDeveloperTools']&&this[_0x103c89(0x10a)][_0x103c89(0x1a7)]({'id':L,'title':{'title':this['_localeService']['t'](_0x103c89(0x1b7))},'children':{'label':_0x103c89(0xf3)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x124db2=_0x103c89;this[_0x124db2(0x10a)][_0x124db2(0xb4)](L);}});}[_0x559f0d(0x157)](){const _0x2840b9=_0x559f0d;return this[_0x2840b9(0x18e)]['value'];}[_0x559f0d(0xff)](){const _0x117119=_0x559f0d;this['disposeWithMe'](this[_0x117119(0xdd)][_0x117119(0xc1)](_0x117119(0xf3),this[_0x117119(0x1a5)]()));}['_createConfigPanelComponent'](){return _0x2de9ba(()=>{const _0x49a702=_0x5edc;var _0x293b5e,_0x5212f1,_0x3ab8e1;return _0x386101(nn,{'config':this[_0x49a702(0x166)][_0x49a702(0x173)],'mcpCoreConfig':this['_mcpCoreConfig$'][_0x49a702(0x173)],'currentApiKey$':this[_0x49a702(0x1bc)],'onSave':this[_0x49a702(0xa7)],'loading':this[_0x49a702(0x1de)][_0x49a702(0x173)],'connectionStatus$':(_0x293b5e=this[_0x49a702(0x176)])==null?void 0x0:_0x293b5e[_0x49a702(0x19b)],'connectionError$':(_0x5212f1=this['_mcpConnectionController'])==null?void 0x0:_0x5212f1['connectionError$'],'currentSessionId$':(_0x3ab8e1=this[_0x49a702(0x176)])==null?void 0x0:_0x3ab8e1[_0x49a702(0xd1)]});},this['_injector']);}[_0x559f0d(0x1ed)](){const _0x32fdbd=_0x559f0d;this[_0x32fdbd(0x17b)](this['_configService'][_0x32fdbd(0x1ac)](_0x5b9089)[_0x32fdbd(0x18a)](_0x4aac47=>{const _0x8498e6=_0x32fdbd;this[_0x8498e6(0x18e)][_0x8498e6(0xa8)](_0x4aac47||{});}));const _0x5ebe14=this['_configService'][_0x32fdbd(0x151)](_0x5b9089);this[_0x32fdbd(0x18e)][_0x32fdbd(0xa8)](_0x5ebe14||{}),this[_0x32fdbd(0x17b)](this['_configService']['subscribeConfigValue$'](y)['subscribe'](_0x5798bc=>{const _0x4419a0=_0x32fdbd;this[_0x4419a0(0x166)]['next'](_0x5798bc||{});}));const _0x4a1288=this[_0x32fdbd(0x196)][_0x32fdbd(0x151)](y);this[_0x32fdbd(0x166)][_0x32fdbd(0xa8)](_0x4a1288||{});}async['_loadStoredApiKey'](){const _0x974e9e=_0x559f0d,_0x275cb1=this['_configService']['getConfig'](y);if(!(_0x275cb1!=null&&_0x275cb1['showDeveloperTools']))return;const _0x2660f4=await this[_0x974e9e(0x123)]['getItem'](U);_0x2660f4&&(this['_mcpConnectionController'][_0x974e9e(0x12e)]({'Authorization':_0x974e9e(0xf1)+_0x2660f4}),this['_apiKey$'][_0x974e9e(0xa8)](_0x2660f4));}async['_validateConfig'](_0xfa2acc){const _0x4029db=_0x559f0d;if(!_0xfa2acc[_0x4029db(0x126)]||_0xfa2acc['apiKey']['trim']()[_0x4029db(0x182)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x4029db(0xdc)]['t'](_0x4029db(0x155))};if(_0xfa2acc[_0x4029db(0x126)][_0x4029db(0x17e)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0x4029db(0xdc)]['t']('mcpConfig.validation.apiKeyTooShort')};try{const _0x17826b=await this[_0x4029db(0x1ad)][_0x4029db(0x1c8)](_0x479f93)[_0x4029db(0x116)](_0xfa2acc[_0x4029db(0x126)]['trim']());return _0x17826b[_0x4029db(0xe5)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x17826b[_0x4029db(0x15f)]||this[_0x4029db(0xdc)]['t'](_0x4029db(0xfa))};}catch(_0x2fddfc){return console[_0x4029db(0x132)](_0x4029db(0x120),_0x2fddfc),{'isValid':!0x0};}}};I=tn([d(0x0,_0x592555(_0xa48931)),d(0x1,_0x2fd2fa),d(0x2,_0x1a3ab6),d(0x3,_0x1b37b4),d(0x4,_0x48819c),d(0x5,_0x5aa206),d(0x6,_0x592555(_0xf4e518)),d(0x7,_0x592555(_0x13d346)),d(0x8,_0x3a580c),d(0x9,_0x592555(_0x479f93))],I);const V={'id':_0x559f0d(0x1a3),'type':_0x47d0d7[_0x559f0d(0xe8)],'handler':async(_0x5cbc07,_0x3fea5f)=>(_0x5cbc07[_0x559f0d(0x1c8)](I)['showConfigPanel'](),!0x0)};function pe(_0x47375a,_0x576ff9){const _0x37102f=_0x559f0d;switch(_0x47375a){case _0x397fda['DISCONNECTED']:return _0x37102f(0x1c4);case _0x397fda['CONNECTING']:return'mcpStatus.connecting';case _0x397fda[_0x37102f(0xea)]:return _0x37102f(0x117);case _0x397fda[_0x37102f(0x174)]:switch(_0x576ff9){case _0x52d4dc[_0x37102f(0xbb)]:return'mcpStatus.unauthorized';case _0x52d4dc[_0x37102f(0xe9)]:return _0x37102f(0xac);case _0x52d4dc[_0x37102f(0x14e)]:return _0x37102f(0x129);case _0x52d4dc['MAX_RETRIES_EXCEEDED']:return _0x37102f(0xdf);default:return _0x37102f(0x179);}case _0x397fda[_0x37102f(0x169)]:return _0x37102f(0x17a);default:return'mcpStatus.unknown';}}function on(_0x1c6fff,_0x187860,_0x537bf2,_0xba42eb=!0x0){const _0xad3f91=_0x559f0d,_0xb40e7d=pe(_0x1c6fff,_0x187860),_0x9fdf41=_0x537bf2['t'](_0xb40e7d);return _0xba42eb?_0x1c6fff===_0x397fda[_0xad3f91(0xd8)]&&_0x187860===_0x52d4dc['UNAUTHORIZED']?_0x9fdf41+_0xad3f91(0xbf)+_0x537bf2['t'](_0xad3f91(0x163)):_0x1c6fff===_0x397fda[_0xad3f91(0xea)]?''+_0x9fdf41:_0x1c6fff===_0x397fda['DISCONNECTED']||_0x1c6fff===_0x397fda[_0xad3f91(0x174)]?_0x9fdf41+'\x20-\x20'+_0x537bf2['t']('mcpStatus.clickToConnect'):_0x9fdf41:_0x9fdf41;}function sn(_0x2875d5){const _0x4f2cf4=_0x559f0d;switch(_0x2875d5){case _0x397fda[_0x4f2cf4(0xea)]:return _0x4f2cf4(0xd5);case _0x397fda[_0x4f2cf4(0xc4)]:case _0x397fda[_0x4f2cf4(0x169)]:return'univer-text-yellow-500';case _0x397fda[_0x4f2cf4(0x174)]:case _0x397fda['DISCONNECTED']:return _0x4f2cf4(0x17c);default:return'univer-text-gray-500';}}function cn(_0x3d0c4f){const _0x56b100=_0x559f0d,{status$:_0x21fbff,error$:_0x16dbfc,onConfigure:_0x310a0e,showClickable:_0x13aa53=!0x0}=_0x3d0c4f,_0x5ca342=_0xa49c42(_0x21fbff,_0x397fda['DISCONNECTED']),_0x53d8ed=_0xa49c42(_0x16dbfc,_0x52d4dc['NONE']),_0x44c10b=_0x26f536(_0x13d346),_0x117819=_0x5ca342===_0x397fda[_0x56b100(0xea)];_0x5ca342===_0x397fda[_0x56b100(0xc4)]||_0x397fda['RETRYING'];const _0x42cad0=_0x44c10b['t'](pe(_0x5ca342,_0x53d8ed)),_0x51fa27=on(_0x5ca342,_0x53d8ed,_0x44c10b,_0x13aa53),_0x591806=sn(_0x5ca342),_0x9b302a=_0x117819?_0x386101(ge,{}):_0x386101(de,{}),_0x86443f=_0x319000(()=>{_0x13aa53&&_0x310a0e&&_0x310a0e();},[_0x13aa53,_0x310a0e]);function _0x498e01(){const _0xb182d2=_0x56b100;return _0x221335(_0xb182d2(0x1d8),{'className':_0x5e0e60(_0xb182d2(0xc2),_0x13aa53&&_0x310a0e&&_0xb182d2(0x118)),'role':_0xb182d2(0x161),'onClick':_0x13aa53&&_0x310a0e?_0x86443f:void 0x0,'children':[_0x386101(_0xb182d2(0x1d8),{'className':_0x5e0e60('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x591806),'children':_0x9b302a}),_0x386101(_0xb182d2(0x1d8),{'className':_0xb182d2(0x1ca),'children':_0x42cad0})]});}return _0x386101(_0x3638c1,{'title':_0x51fa27,'placement':'bottom','children':_0x498e01()});}var an=Object[_0x559f0d(0x1f0)],ln=(_0x10ee24,_0x16104c,_0x182723,_0x39e108)=>{const _0x7bf925=_0x559f0d;for(var _0x57bc3e=_0x39e108>0x1?void 0x0:_0x39e108?an(_0x16104c,_0x182723):_0x16104c,_0x33b9e6=_0x10ee24[_0x7bf925(0x182)]-0x1,_0x2cfd40;_0x33b9e6>=0x0;_0x33b9e6--)(_0x2cfd40=_0x10ee24[_0x33b9e6])&&(_0x57bc3e=_0x2cfd40(_0x57bc3e)||_0x57bc3e);return _0x57bc3e;},M=(_0x205cd8,_0x282639)=>(_0x2680e6,_0x3621f9)=>_0x282639(_0x2680e6,_0x3621f9,_0x205cd8);let O=class extends _0x313008{constructor(_0x5abc35,_0x4d8d8f,_0x2def4f,_0x24e486){const _0x4a5c22=_0x559f0d;super(),this[_0x4a5c22(0x1ad)]=_0x5abc35,this[_0x4a5c22(0x124)]=_0x4d8d8f,this[_0x4a5c22(0x1c1)]=_0x2def4f,this[_0x4a5c22(0x196)]=_0x24e486,this[_0x4a5c22(0x145)](),this[_0x4a5c22(0x1b0)]();}[_0x559f0d(0x145)](){const _0x2783d6=_0x559f0d,_0x9b8f98=this[_0x2783d6(0x196)][_0x2783d6(0x151)](y);_0x9b8f98!=null&&_0x9b8f98[_0x2783d6(0x1d7)]&&(this[_0x2783d6(0x124)][_0x2783d6(0x148)]=!0x1);}[_0x559f0d(0x1b0)](){const _0x5703c5=_0x559f0d,_0x59b91b=this['_configService'][_0x5703c5(0x151)](y);(_0x59b91b==null?void 0x0:_0x59b91b[_0x5703c5(0xb9)])!==!0x1&&this[_0x5703c5(0x17b)](this[_0x5703c5(0x1c1)][_0x5703c5(0x162)](_0x295991['HEADER_MENU'],()=>{const _0x1f41c1=_0x5703c5;var _0x32142e;return _0x2de9ba(un({'status$':this['_connectionController'][_0x1f41c1(0x19b)],'error$':this[_0x1f41c1(0x124)][_0x1f41c1(0xd4)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x32142e=_0x59b91b==null?void 0x0:_0x59b91b[_0x1f41c1(0x1d7)])!=null?_0x32142e:!0x1}),this[_0x1f41c1(0x1ad)]);}));}['_handleConfigure'](){const _0xf8c3fc=_0x559f0d;this[_0xf8c3fc(0x1ad)]['get'](I)[_0xf8c3fc(0x1d6)]();}};O=ln([M(0x0,_0x592555(_0xa48931)),M(0x1,_0x592555(_0x479f93)),M(0x2,_0x2fd2fa),M(0x3,_0x1a3ab6)],O);function un(_0x2130f6){const {status$:_0x5426ae,error$:_0xf40eee,onConfigure:_0x524a78,showClickable:_0x4a19d3}=_0x2130f6;return function(){return _0x386101(cn,{'status$':_0x5426ae,'error$':_0xf40eee,'onConfigure':_0x524a78,'showClickable':_0x4a19d3});};}function vn(_0x17cdbd){const _0x137083=_0x559f0d;return{'id':V['id'],'type':_0x19d45d['BUTTON'],'icon':_0x137083(0x183),'title':_0x137083(0x1b7),'tooltip':_0x137083(0x1b7)};}const dn={[_0x2539bd[_0x559f0d(0x1a0)]]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object[_0x559f0d(0x1f0)],pn=(_0x413910,_0x39993f,_0x262c7f,_0x10521d)=>{const _0x3f93cf=_0x559f0d;for(var _0x1442b1=_0x10521d>0x1?void 0x0:_0x10521d?gn(_0x39993f,_0x262c7f):_0x39993f,_0x412dd6=_0x413910[_0x3f93cf(0x182)]-0x1,_0x229f0;_0x412dd6>=0x0;_0x412dd6--)(_0x229f0=_0x413910[_0x412dd6])&&(_0x1442b1=_0x229f0(_0x1442b1)||_0x1442b1);return _0x1442b1;},re=(_0x298fbe,_0x2072f3)=>(_0x4fccf5,_0x55393f)=>_0x2072f3(_0x4fccf5,_0x55393f,_0x298fbe);let D=class extends _0x313008{constructor(_0x25c46,_0x4c4045){const _0x215984=_0x559f0d;super(),this[_0x215984(0xa1)]=_0x25c46,this[_0x215984(0xd7)]=_0x4c4045,this[_0x215984(0xee)](),this[_0x215984(0x181)]();}['_initializeCommands'](){[V]['forEach'](_0x535eca=>{const _0x3d5fc8=_0x5edc;this[_0x3d5fc8(0x17b)](this['_commandService'][_0x3d5fc8(0xb1)](_0x535eca));});}[_0x559f0d(0x181)](){const _0x5e2df1=_0x559f0d;this[_0x5e2df1(0xd7)][_0x5e2df1(0x113)](dn);}};D=pn([re(0x0,_0x187c77),re(0x1,_0x3548c9)],D);const Mn={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x559f0d(0xab),'connected':_0x559f0d(0x12b),'failed':_0x559f0d(0xaa),'retrying':_0x559f0d(0x1c7),'unknown':_0x559f0d(0xf8),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x559f0d(0x186),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x559f0d(0x131),'description':_0x559f0d(0x18c),'apiKey':_0x559f0d(0xa9),'apiKeyPlaceholder':_0x559f0d(0x11b),'apiKeyHint':_0x559f0d(0x103),'enableAuth':_0x559f0d(0x111),'enableAuthHint':_0x559f0d(0x1d5),'connectionInfo':_0x559f0d(0x1c2),'mcpClientConfig':_0x559f0d(0x1c2),'configInstructions':_0x559f0d(0x154),'configStepTitle':_0x559f0d(0xc6),'configStep1':_0x559f0d(0x1c6),'configStep2':_0x559f0d(0x164),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':_0x559f0d(0xa0),'authorizationDescription':_0x559f0d(0x167),'configParameters':_0x559f0d(0xf5),'maxRetries':_0x559f0d(0xf2),'save':_0x559f0d(0x10e),'saving':'Saving...','note1':_0x559f0d(0x1ba),'note2':_0x559f0d(0x1cf),'configSaved':_0x559f0d(0x135),'configError':_0x559f0d(0xd3),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x559f0d(0xa4),'univerAiLabel':_0x559f0d(0xc5),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x559f0d(0x14f),'apiKeyTooShort':_0x559f0d(0x13a),'invalidConfig':_0x559f0d(0x137),'invalidApiKey':_0x559f0d(0xa2)},'connectionStatus':{'disconnected':_0x559f0d(0x165),'connecting':'Connecting...','connected':_0x559f0d(0x195),'failed':_0x559f0d(0x1a8),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x559f0d(0x1cb),'sessionOccupied':_0x559f0d(0x1a6),'networkError':_0x559f0d(0x13b),'maxRetriesExceeded':_0x559f0d(0x13e)}}},An={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':'MCP\x20连接中...','connected':_0x559f0d(0x1cc),'failed':_0x559f0d(0x19d),'retrying':_0x559f0d(0x146),'unknown':_0x559f0d(0x188),'unauthorized':_0x559f0d(0x108),'sessionOccupied':_0x559f0d(0x1e7),'networkError':_0x559f0d(0x100),'maxRetriesExceeded':_0x559f0d(0x12f),'clickToConnect':_0x559f0d(0x1e1),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x559f0d(0x119),'description':_0x559f0d(0x1a1),'apiKey':'API\x20密钥','apiKeyPlaceholder':_0x559f0d(0x13c),'apiKeyHint':_0x559f0d(0xce),'enableAuth':_0x559f0d(0x197),'enableAuthHint':_0x559f0d(0xc8),'connectionInfo':_0x559f0d(0xc7),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x559f0d(0x12a),'configStep1':_0x559f0d(0x10b),'configStep2':_0x559f0d(0x19c),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':_0x559f0d(0x1da),'sessionIdDescription':_0x559f0d(0xd0),'authorizationDescription':_0x559f0d(0x125),'configParameters':'配置参数:','maxRetries':_0x559f0d(0x1be),'save':'保存配置','saving':_0x559f0d(0xaf),'note1':_0x559f0d(0x1a4),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x559f0d(0x1a9),'configError':'配置保存失败','apiApplyInfo':{'title':_0x559f0d(0x1e5),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0x559f0d(0x141),'getStarted':_0x559f0d(0xba)},'validation':{'apiKeyRequired':_0x559f0d(0x1e9),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x559f0d(0x1e4),'invalidApiKey':_0x559f0d(0x1e0)},'connectionStatus':{'disconnected':_0x559f0d(0x15d),'connecting':_0x559f0d(0x1f1),'connected':'已连接','failed':_0x559f0d(0x1d4),'retrying':'重连中...'},'connectionError':{'unauthorized':_0x559f0d(0x187),'sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':_0x559f0d(0x12d),'maxRetriesExceeded':_0x559f0d(0x11f)}}};var fn=Object[_0x559f0d(0x150)],hn=Object[_0x559f0d(0x1f0)],Cn=(_0x396ae1,_0x28d10d,_0x18aa0f)=>_0x28d10d in _0x396ae1?fn(_0x396ae1,_0x28d10d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x18aa0f}):_0x396ae1[_0x28d10d]=_0x18aa0f,mn=(_0x2e0a29,_0x2ff100,_0x47b3d3,_0x1cf037)=>{const _0x2299a2=_0x559f0d;for(var _0x4f2f83=_0x1cf037>0x1?void 0x0:_0x1cf037?hn(_0x2ff100,_0x47b3d3):_0x2ff100,_0x33b283=_0x2e0a29[_0x2299a2(0x182)]-0x1,_0x2e2152;_0x33b283>=0x0;_0x33b283--)(_0x2e2152=_0x2e0a29[_0x33b283])&&(_0x4f2f83=_0x2e2152(_0x4f2f83)||_0x4f2f83);return _0x4f2f83;},P=(_0x33bbf2,_0x174e30)=>(_0x3bb2df,_0x2e0673)=>_0x174e30(_0x3bb2df,_0x2e0673,_0x33bbf2),_n=(_0x40d6b9,_0x43b5b9,_0x2112b8)=>Cn(_0x40d6b9,_0x43b5b9+'',_0x2112b8);let j=class extends _0x431772{constructor(_0x541f4f=ie,_0x20ceb4,_0x71b5e2,_0x4a872f,_0x28db18,_0x1f6ac1){const _0x131f31=_0x559f0d;super(),this[_0x131f31(0x191)]=_0x541f4f,this[_0x131f31(0x1ad)]=_0x20ceb4,this[_0x131f31(0x196)]=_0x71b5e2,this[_0x131f31(0x1c1)]=_0x4a872f,this['_localStorageService']=_0x28db18,this[_0x131f31(0xdc)]=_0x1f6ac1;const {..._0x5d2f70}=_0x5e5890({},ie,this[_0x131f31(0x191)]);this[_0x131f31(0x196)]['setConfig'](y,_0x5d2f70);}async[_0x559f0d(0x156)](){const _0xe9455d=_0x559f0d,_0x2ad758=[[O],[I],[D]];this['_injector'][_0xe9455d(0x143)](_0x5aa8ec)||_0x2ad758[_0xe9455d(0x15c)]([_0x5aa8ec,{'useClass':_0x325f73}]),_0x2ad758[_0xe9455d(0x1b9)](_0x2494e4=>this[_0xe9455d(0x1ad)]['add'](_0x2494e4)),this[_0xe9455d(0x1ad)][_0xe9455d(0x1c8)](O),this[_0xe9455d(0x1ad)][_0xe9455d(0x1c8)](I),this[_0xe9455d(0x1ad)][_0xe9455d(0x1c8)](D);}};_n(j,_0x559f0d(0x102),_0x559f0d(0xc3)),j=mn([_0x451ff0(_0x310f35),P(0x1,_0x592555(_0xa48931)),P(0x2,_0x1a3ab6),P(0x3,_0x2fd2fa),P(0x4,_0x1b37b4),P(0x5,_0x592555(_0x13d346))],j);function _0x5edc(_0x212562,_0x5a8ba1){_0x212562=_0x212562-0xa0;const _0x14a9d5=_0x14a9();let _0x5edcde=_0x14a9d5[_0x212562];return _0x5edcde;}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};
|
package/lib/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x1f20(_0x155a3f,_0x93ed96){_0x155a3f=_0x155a3f-0xc5;const _0x18bc2d=_0x18bc();let _0x1f209f=_0x18bc2d[_0x155a3f];return _0x1f209f;}const _0x18ce22=_0x1f20;(function(_0x4cc47d,_0x277776){const _0x3f9008=_0x1f20,_0x61a68=_0x4cc47d();while(!![]){try{const _0x1725a1=parseInt(_0x3f9008(0xd9))/0x1*(-parseInt(_0x3f9008(0xe2))/0x2)+-parseInt(_0x3f9008(0xd0))/0x3+-parseInt(_0x3f9008(0xdc))/0x4*(-parseInt(_0x3f9008(0xcf))/0x5)+-parseInt(_0x3f9008(0xc9))/0x6*(parseInt(_0x3f9008(0xf2))/0x7)+-parseInt(_0x3f9008(0xf1))/0x8*(-parseInt(_0x3f9008(0xf3))/0x9)+-parseInt(_0x3f9008(0xe6))/0xa+parseInt(_0x3f9008(0xd1))/0xb;if(_0x1725a1===_0x277776)break;else _0x61a68['push'](_0x61a68['shift']());}catch(_0x1e85c3){_0x61a68['push'](_0x61a68['shift']());}}}(_0x18bc,0x66f32));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x18ce22(0xe8),'failed':_0x18ce22(0xd8),'retrying':_0x18ce22(0xc5),'unknown':_0x18ce22(0xca),'unauthorized':_0x18ce22(0xe9),'sessionOccupied':_0x18ce22(0xd3),'networkError':_0x18ce22(0xeb),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x18ce22(0xf0)},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x18ce22(0xce),'apiKeyPlaceholder':_0x18ce22(0xe3),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x18ce22(0xd5),'connectionInfo':_0x18ce22(0xc8),'mcpClientConfig':_0x18ce22(0xc8),'configInstructions':_0x18ce22(0xda),'configStepTitle':_0x18ce22(0xd7),'configStep1':_0x18ce22(0xc6),'configStep2':_0x18ce22(0xd2),'configStep3':_0x18ce22(0xdd),'sessionId':'Session\x20ID','sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x18ce22(0xcc),'maxRetries':_0x18ce22(0xcb),'save':_0x18ce22(0xd6),'saving':'Saving...','note1':_0x18ce22(0xde),'note2':_0x18ce22(0xdb),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x18ce22(0xec),'apiApplyInfo':{'title':_0x18ce22(0xed),'description':_0x18ce22(0xcd),'univerAiLabel':_0x18ce22(0xe1),'getStarted':_0x18ce22(0xe4)},'validation':{'apiKeyRequired':_0x18ce22(0xdf),'apiKeyTooShort':_0x18ce22(0xe7),'invalidConfig':_0x18ce22(0xee),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x18ce22(0xe0),'connecting':'Connecting...','connected':'Connected','failed':_0x18ce22(0xc7),'retrying':_0x18ce22(0xea)},'connectionError':{'unauthorized':_0x18ce22(0xe5),'sessionOccupied':_0x18ce22(0xd4),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x18ce22(0xef)}}},n=e;export{n as default};function _0x18bc(){const _0x39559b=['Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','4049810lSiazT','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Connected','MCP:\x20Unauthorized','Retrying...','MCP:\x20Network\x20Error','Failed\x20to\x20save\x20configuration','What\x20is\x20API\x20Key?','Invalid\x20configuration','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Click\x20to\x20configure\x20MCP','617536mPDlLW','7MeOqjP','81fCLVIq','MCP\x20Retrying...','Copy\x20the\x20JSON\x20configuration\x20below','Connection\x20Failed','MCP\x20Client\x20Configuration','1326522pFPmIX','MCP\x20Unknown\x20Status','Max\x20Retries','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.','API\x20Key','5lCxBah','994965iJFGvb','8098519SLbhXA','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP:\x20Session\x20ID\x20Occupied','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Enable\x20authentication\x20for\x20secure\x20connections','Save\x20Configuration','Configuration\x20Steps:','MCP\x20Connection\x20Failed','51343woYafy','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','615280kwobmA','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','API\x20key\x20is\x20required','Disconnected','Univer\x20AI\x20Console','8wKxRGP','Enter\x20your\x20API\x20key','Get\x20your\x20API\x20key\x20in\x20seconds'];_0x18bc=function(){return _0x39559b;};return _0x18bc();}
|
package/lib/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0xaa3b11=_0xf0b7;function _0x276a(){const _0x13be69=['API\x20key\x20with\x20Bearer\x20prefix.','What\x20is\x20API\x20Key?','1090686OpIeIt','Configuration\x20Steps:','MCP\x20Unknown\x20Status','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','568nexbTG','MCP\x20Configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Connection\x20Failed','Max\x20Retries','Connected','Click\x20to\x20connect\x20MCP','60158vcItOE','2723571sQOwkR','50ExBHlv','MCP\x20Connection\x20Failed','MCP\x20Disconnected','Save\x20Configuration','MCP\x20Retrying...','4083Lcjprc','MCP:\x20Unauthorized','Connecting...','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP:\x20Max\x20Retries\x20Exceeded','Configuration\x20Parameters:','MCP\x20Connecting...','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','5819050IOBDMH','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Connected','Invalid\x20configuration','Enable\x20Authentication','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Copy\x20the\x20JSON\x20configuration\x20below','Saving...','5121102mUPQHE','Failed\x20to\x20save\x20configuration','2416HcetDF','API\x20Key','MCP:\x20Network\x20Error','793740lNMDUP','Enter\x20your\x20API\x20key','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Retrying...','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Client\x20Configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later'];_0x276a=function(){return _0x13be69;};return _0x276a();}(function(_0x4d3135,_0x2312c6){const _0x12fd9b=_0xf0b7,_0x36885c=_0x4d3135();while(!![]){try{const _0x1b078c=-parseInt(_0x12fd9b(0x183))/0x1+-parseInt(_0x12fd9b(0x15b))/0x2+parseInt(_0x12fd9b(0x16d))/0x3*(parseInt(_0x12fd9b(0x180))/0x4)+parseInt(_0x12fd9b(0x175))/0x5+parseInt(_0x12fd9b(0x17e))/0x6+parseInt(_0x12fd9b(0x166))/0x7*(parseInt(_0x12fd9b(0x15f))/0x8)+-parseInt(_0x12fd9b(0x167))/0x9*(parseInt(_0x12fd9b(0x168))/0xa);if(_0x1b078c===_0x2312c6)break;else _0x36885c['push'](_0x36885c['shift']());}catch(_0x511493){_0x36885c['push'](_0x36885c['shift']());}}}(_0x276a,0x91d77));const e={'mcpStatus':{'disconnected':_0xaa3b11(0x16a),'connecting':_0xaa3b11(0x173),'connected':_0xaa3b11(0x177),'failed':_0xaa3b11(0x169),'retrying':_0xaa3b11(0x16c),'unknown':_0xaa3b11(0x15d),'unauthorized':_0xaa3b11(0x16e),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0xaa3b11(0x182),'maxRetriesExceeded':_0xaa3b11(0x171),'clickToConnect':_0xaa3b11(0x165),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0xaa3b11(0x160),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0xaa3b11(0x181),'apiKeyPlaceholder':_0xaa3b11(0x184),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0xaa3b11(0x179),'enableAuthHint':_0xaa3b11(0x176),'connectionInfo':_0xaa3b11(0x188),'mcpClientConfig':_0xaa3b11(0x188),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0xaa3b11(0x15c),'configStep1':_0xaa3b11(0x17c),'configStep2':_0xaa3b11(0x17a),'configStep3':_0xaa3b11(0x17b),'sessionId':'Session\x20ID','sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0xaa3b11(0x18c),'configParameters':_0xaa3b11(0x172),'maxRetries':_0xaa3b11(0x163),'save':_0xaa3b11(0x16b),'saving':_0xaa3b11(0x17d),'note1':_0xaa3b11(0x161),'note2':_0xaa3b11(0x170),'configSaved':'Configuration\x20saved\x20successfully','configError':_0xaa3b11(0x17f),'apiApplyInfo':{'title':_0xaa3b11(0x18d),'description':_0xaa3b11(0x18a),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0xaa3b11(0x187)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0xaa3b11(0x189),'invalidConfig':_0xaa3b11(0x178),'invalidApiKey':_0xaa3b11(0x174)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0xaa3b11(0x16f),'connected':_0xaa3b11(0x164),'failed':_0xaa3b11(0x162),'retrying':_0xaa3b11(0x186)},'connectionError':{'unauthorized':_0xaa3b11(0x15e),'sessionOccupied':_0xaa3b11(0x18b),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0xaa3b11(0x185)}}};function _0xf0b7(_0x2d1d84,_0x303345){_0x2d1d84=_0x2d1d84-0x15b;const _0x276abe=_0x276a();let _0xf0b74=_0x276abe[_0x2d1d84];return _0xf0b74;}export{e as default};
|
package/lib/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x1e80(){const _0x46a83c=['Configuration\x20saved\x20successfully','Save\x20Configuration','Copy\x20the\x20JSON\x20configuration\x20below','77LzckrW','18MwFUcC','1039317gnSscW','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Connected','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Failed\x20to\x20save\x20configuration','36OXrzwr','MCP\x20Unknown\x20Status','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Enable\x20authentication\x20for\x20secure\x20connections','Saving...','3542825aEaJrA','376752GcruKb','301067UvtMIM','API\x20key\x20is\x20required','Configuration\x20Steps:','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Session\x20ID','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Connecting...','API\x20key\x20with\x20Bearer\x20prefix.','Get\x20your\x20API\x20key\x20in\x20seconds','221704KKMHUH','284790heNeUh','58633RYbDGE','What\x20is\x20API\x20Key?','Max\x20Retries','MCP:\x20Max\x20Retries\x20Exceeded','Connecting...','MCP\x20Retrying...','4ninkuh','MCP\x20Client\x20Configuration','Configuration\x20Parameters:','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP:\x20Unauthorized','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Connection\x20Failed','54rlVhkL','Enter\x20your\x20API\x20key','MCP\x20Connected','Univer\x20AI\x20Console','153wHTvxd'];_0x1e80=function(){return _0x46a83c;};return _0x1e80();}const _0x45872e=_0x58ff;(function(_0x1dbd5e,_0x49a4a7){const _0x1e4809=_0x58ff,_0x39840f=_0x1dbd5e();while(!![]){try{const _0x1059ae=-parseInt(_0x1e4809(0x10e))/0x1*(-parseInt(_0x1e4809(0x126))/0x2)+parseInt(_0x1e4809(0x127))/0x3*(-parseInt(_0x1e4809(0x114))/0x4)+-parseInt(_0x1e4809(0x101))/0x5+parseInt(_0x1e4809(0x11d))/0x6*(parseInt(_0x1e4809(0x10c))/0x7)+-parseInt(_0x1e4809(0x102))/0x8*(-parseInt(_0x1e4809(0x121))/0x9)+-parseInt(_0x1e4809(0x10d))/0xa*(parseInt(_0x1e4809(0x125))/0xb)+parseInt(_0x1e4809(0xfc))/0xc*(parseInt(_0x1e4809(0x103))/0xd);if(_0x1059ae===_0x49a4a7)break;else _0x39840f['push'](_0x39840f['shift']());}catch(_0x10c8b5){_0x39840f['push'](_0x39840f['shift']());}}}(_0x1e80,0x689af));function _0x58ff(_0x122cee,_0x52d732){_0x122cee=_0x122cee-0xf8;const _0x1e804e=_0x1e80();let _0x58ffba=_0x1e804e[_0x122cee];return _0x58ffba;}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x45872e(0x109),'connected':_0x45872e(0x11f),'failed':'MCP\x20Connection\x20Failed','retrying':_0x45872e(0x113),'unknown':_0x45872e(0xfd),'unauthorized':_0x45872e(0x11a),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x45872e(0x111),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x45872e(0xfa),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x45872e(0x11e),'apiKeyHint':_0x45872e(0x128),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x45872e(0xff),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x45872e(0x115),'configInstructions':_0x45872e(0x117),'configStepTitle':_0x45872e(0x105),'configStep1':_0x45872e(0x124),'configStep2':_0x45872e(0xf9),'configStep3':_0x45872e(0x118),'sessionId':_0x45872e(0x107),'sessionIdDescription':_0x45872e(0x106),'authorizationDescription':_0x45872e(0x10a),'configParameters':_0x45872e(0x116),'maxRetries':_0x45872e(0x110),'save':_0x45872e(0x123),'saving':_0x45872e(0x100),'note1':_0x45872e(0x119),'note2':_0x45872e(0x129),'configSaved':_0x45872e(0x122),'configError':_0x45872e(0xfb),'apiApplyInfo':{'title':_0x45872e(0x10f),'description':_0x45872e(0xfe),'univerAiLabel':_0x45872e(0x120),'getStarted':_0x45872e(0x10b)},'validation':{'apiKeyRequired':_0x45872e(0x104),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x45872e(0x112),'connected':_0x45872e(0xf8),'failed':_0x45872e(0x11c),'retrying':'Retrying...'},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x45872e(0x11b),'networkError':_0x45872e(0x108),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;export{n as default};
|
package/lib/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x5f40f7=_0x4d5b;(function(_0x425b4d,_0x4178bc){const _0x3c24da=_0x4d5b,_0x43656c=_0x425b4d();while(!![]){try{const _0x19c16a=parseInt(_0x3c24da(0xa1))/0x1+-parseInt(_0x3c24da(0xa9))/0x2+-parseInt(_0x3c24da(0xa7))/0x3+-parseInt(_0x3c24da(0xa5))/0x4+parseInt(_0x3c24da(0xb9))/0x5*(parseInt(_0x3c24da(0xb2))/0x6)+parseInt(_0x3c24da(0xac))/0x7*(parseInt(_0x3c24da(0xb1))/0x8)+parseInt(_0x3c24da(0xc7))/0x9*(-parseInt(_0x3c24da(0xbd))/0xa);if(_0x19c16a===_0x4178bc)break;else _0x43656c['push'](_0x43656c['shift']());}catch(_0x2a3a1e){_0x43656c['push'](_0x43656c['shift']());}}}(_0x2e01,0x4f31e));function _0x2e01(){const _0xbe90ad=['Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','23652bkWTej','MCP\x20Unknown\x20Status','1231995kYxYnt','Connecting...','214522RSwtMM','Session\x20ID','Get\x20your\x20API\x20key\x20in\x20seconds','1071ZteSqz','Configuration\x20Steps:','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Configuration\x20saved\x20successfully','API\x20Key','5240gWkzGw','6IBCseR','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Save\x20Configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Enable\x20authentication\x20for\x20secure\x20connections','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','1788650FKqXZA','MCP\x20Disconnected','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Connection\x20Failed','488740IoxpXT','Enter\x20your\x20API\x20key','MCP\x20Client\x20Configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','API\x20key\x20is\x20required','API\x20key\x20with\x20Bearer\x20prefix.','Click\x20to\x20connect\x20MCP','Saving...','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Retrying...','45RjIfmA','Invalid\x20configuration','Univer\x20AI\x20Console','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Connection\x20Failed','Failed\x20to\x20save\x20configuration','Enable\x20Authentication','Retrying...','MCP:\x20Session\x20ID\x20Occupied','What\x20is\x20API\x20Key?','MCP:\x20Unauthorized','634646LYLYzf','MCP:\x20Max\x20Retries\x20Exceeded','Connected'];_0x2e01=function(){return _0xbe90ad;};return _0x2e01();}const e={'mcpStatus':{'disconnected':_0x5f40f7(0xba),'connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':_0x5f40f7(0x9a),'retrying':_0x5f40f7(0xc6),'unknown':_0x5f40f7(0xa6),'unauthorized':_0x5f40f7(0xa0),'sessionOccupied':_0x5f40f7(0x9e),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x5f40f7(0xa2),'clickToConnect':_0x5f40f7(0xc3),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x5f40f7(0xb0),'apiKeyPlaceholder':_0x5f40f7(0xbe),'apiKeyHint':_0x5f40f7(0xb7),'enableAuth':_0x5f40f7(0x9c),'enableAuthHint':_0x5f40f7(0xb6),'connectionInfo':_0x5f40f7(0xbf),'mcpClientConfig':_0x5f40f7(0xbf),'configInstructions':_0x5f40f7(0xc0),'configStepTitle':_0x5f40f7(0xad),'configStep1':_0x5f40f7(0x99),'configStep2':_0x5f40f7(0xbb),'configStep3':_0x5f40f7(0xc5),'sessionId':_0x5f40f7(0xaa),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x5f40f7(0xc2),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':_0x5f40f7(0xb4),'saving':_0x5f40f7(0xc4),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x5f40f7(0xa4),'configSaved':_0x5f40f7(0xaf),'configError':_0x5f40f7(0x9b),'apiApplyInfo':{'title':_0x5f40f7(0x9f),'description':_0x5f40f7(0xb8),'univerAiLabel':_0x5f40f7(0xc9),'getStarted':_0x5f40f7(0xab)},'validation':{'apiKeyRequired':_0x5f40f7(0xc1),'apiKeyTooShort':_0x5f40f7(0xb5),'invalidConfig':_0x5f40f7(0xc8),'invalidApiKey':_0x5f40f7(0xb3)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x5f40f7(0xa8),'connected':_0x5f40f7(0xa3),'failed':_0x5f40f7(0xbc),'retrying':_0x5f40f7(0x9d)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x5f40f7(0xae),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;function _0x4d5b(_0x2e307b,_0x170bcb){_0x2e307b=_0x2e307b-0x99;const _0x2e01ae=_0x2e01();let _0x4d5b58=_0x2e01ae[_0x2e307b];return _0x4d5b58;}export{n as default};
|
package/lib/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x13741d=_0x3b53;(function(_0x4d3e3d,_0x10afff){const _0xc5791b=_0x3b53,_0x5e457b=_0x4d3e3d();while(!![]){try{const _0x24954a=parseInt(_0xc5791b(0x10f))/0x1+parseInt(_0xc5791b(0xf0))/0x2*(-parseInt(_0xc5791b(0x10b))/0x3)+-parseInt(_0xc5791b(0x110))/0x4*(parseInt(_0xc5791b(0xed))/0x5)+-parseInt(_0xc5791b(0xf2))/0x6+-parseInt(_0xc5791b(0x111))/0x7*(parseInt(_0xc5791b(0x115))/0x8)+parseInt(_0xc5791b(0x114))/0x9*(parseInt(_0xc5791b(0xeb))/0xa)+parseInt(_0xc5791b(0xf1))/0xb;if(_0x24954a===_0x10afff)break;else _0x5e457b['push'](_0x5e457b['shift']());}catch(_0x5389c6){_0x5e457b['push'](_0x5e457b['shift']());}}}(_0x42ef,0x725df));function _0x3b53(_0x25e37c,_0x3ccbb4){_0x25e37c=_0x25e37c-0xeb;const _0x42efce=_0x42ef();let _0x3b5358=_0x42efce[_0x25e37c];return _0x3b5358;}const e={'mcpStatus':{'disconnected':_0x13741d(0x100),'connecting':_0x13741d(0x105),'connected':_0x13741d(0x112),'failed':'MCP\x20Connection\x20Failed','retrying':_0x13741d(0x104),'unknown':_0x13741d(0xf4),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x13741d(0x113),'networkError':_0x13741d(0x10c),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x13741d(0xfb),'clickToConfigure':_0x13741d(0x118)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x13741d(0x10e),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x13741d(0x11b),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x13741d(0x102),'connectionInfo':_0x13741d(0x10a),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x13741d(0x11a),'configStepTitle':_0x13741d(0xf6),'configStep1':_0x13741d(0x10d),'configStep2':_0x13741d(0x103),'configStep3':_0x13741d(0x11d),'sessionId':_0x13741d(0x106),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x13741d(0xf7),'configParameters':_0x13741d(0xf8),'maxRetries':'Max\x20Retries','save':_0x13741d(0xf3),'saving':_0x13741d(0xfa),'note1':_0x13741d(0xff),'note2':_0x13741d(0x116),'configSaved':_0x13741d(0xf9),'configError':_0x13741d(0x119),'apiApplyInfo':{'title':_0x13741d(0x107),'description':_0x13741d(0x108),'univerAiLabel':_0x13741d(0xf5),'getStarted':_0x13741d(0x11c)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x13741d(0xec),'invalidConfig':_0x13741d(0x101),'invalidApiKey':_0x13741d(0x109)},'connectionStatus':{'disconnected':_0x13741d(0xfd),'connecting':_0x13741d(0xfc),'connected':_0x13741d(0xfe),'failed':'Connection\x20Failed','retrying':_0x13741d(0xef)},'connectionError':{'unauthorized':_0x13741d(0x117),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x13741d(0xee)}}},n=e;export{n as default};function _0x42ef(){const _0x42401d=['370ZQqvJs','16418083veuawz','4174134IASgjW','Save\x20Configuration','MCP\x20Unknown\x20Status','Univer\x20AI\x20Console','Configuration\x20Steps:','API\x20key\x20with\x20Bearer\x20prefix.','Configuration\x20Parameters:','Configuration\x20saved\x20successfully','Saving...','Click\x20to\x20connect\x20MCP','Connecting...','Disconnected','Connected','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Disconnected','Invalid\x20configuration','Enable\x20authentication\x20for\x20secure\x20connections','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Retrying...','MCP\x20Connecting...','Session\x20ID','What\x20is\x20API\x20Key?','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Client\x20Configuration','13899dXiESb','MCP:\x20Network\x20Error','Copy\x20the\x20JSON\x20configuration\x20below','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','609714OsgQWl','4DoVpNd','12677USrXmf','MCP\x20Connected','MCP:\x20Session\x20ID\x20Occupied','1845JLHndZ','2584TylkDE','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Click\x20to\x20configure\x20MCP','Failed\x20to\x20save\x20configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Enter\x20your\x20API\x20key','Get\x20your\x20API\x20key\x20in\x20seconds','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','31660AKhfsY','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','725515FADmFD','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Retrying...'];_0x42ef=function(){return _0x42401d;};return _0x42ef();}
|
package/lib/locale/ja-JP.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0xc6c9(_0x38177e,_0x3407c5){_0x38177e=_0x38177e-0x1bf;const _0x171e3d=_0x171e();let _0xc6c9cc=_0x171e3d[_0x38177e];return _0xc6c9cc;}const _0x3afe91=_0xc6c9;function _0x171e(){const _0xf5a8a=['設定パラメータ:','1602LNQcMH','APIキーは10文字以上である必要があります','MCPクライアントの設定ファイルに設定を追加','MCP\x20接続失敗','MCP設定','5lBhUxv','APIキーとは?','MCP:\x20セッションIDが使用中','5109798ypxSoT','接続中...','3573880ONuLpw','76wtMqso','570188NAWlqN','クリックしてMCPを設定','2276792IYHBWj','無効な設定','接続済み','APIキーを入力してください','最大再試行回数','ネットワーク接続エラー。インターネット接続を確認してください','MCP:\x20ネットワークエラー','設定が正常に保存されました','MCP\x20再試行中...','数秒でAPIキーを取得','3CENoEf','MCP\x20接続済み','セッションID','4860AxZJBh','MCPクライアントの設定に次の設定を追加してください:','MCPクライアント設定','保存中...','APIキーは必須です','MCP\x20未接続','再試行中...','無効なAPIキーです。キーが正しいか確認してください','38072QjqDwl','MCP:\x20最大再試行回数を超過','APIキー','設定の変更は直ちに有効になります','MCP\x20不明な状態','設定手順:','認証に失敗しました。APIキーを確認してください','接続失敗','23502886oUjrER','Univer\x20AIコンソール','以下のJSON設定をコピー'];_0x171e=function(){return _0xf5a8a;};return _0x171e();}(function(_0x3f90cf,_0x5186a7){const _0x30d95d=_0xc6c9,_0x39a911=_0x3f90cf();while(!![]){try{const _0x1671cc=-parseInt(_0x30d95d(0x1ca))/0x1*(parseInt(_0x30d95d(0x1da))/0x2)+parseInt(_0x30d95d(0x1d7))/0x3*(parseInt(_0x30d95d(0x1cb))/0x4)+-parseInt(_0x30d95d(0x1c4))/0x5*(parseInt(_0x30d95d(0x1c7))/0x6)+-parseInt(_0x30d95d(0x1cd))/0x7+-parseInt(_0x30d95d(0x1e2))/0x8*(parseInt(_0x30d95d(0x1bf))/0x9)+parseInt(_0x30d95d(0x1c9))/0xa+parseInt(_0x30d95d(0x1ea))/0xb;if(_0x1671cc===_0x5186a7)break;else _0x39a911['push'](_0x39a911['shift']());}catch(_0x2d77ca){_0x39a911['push'](_0x39a911['shift']());}}}(_0x171e,0x68772));const e={'mcpStatus':{'disconnected':_0x3afe91(0x1df),'connecting':'MCP\x20接続中...','connected':_0x3afe91(0x1d8),'failed':_0x3afe91(0x1c2),'retrying':_0x3afe91(0x1d5),'unknown':_0x3afe91(0x1e6),'unauthorized':'MCP:\x20認証されていません','sessionOccupied':_0x3afe91(0x1c6),'networkError':_0x3afe91(0x1d3),'maxRetriesExceeded':_0x3afe91(0x1e3),'clickToConnect':'クリックしてMCPに接続','clickToConfigure':_0x3afe91(0x1cc)},'mcpConfig':{'title':_0x3afe91(0x1c3),'description':'MCPを設定してAIでスプレッドシートを操作','apiKey':_0x3afe91(0x1e4),'apiKeyPlaceholder':_0x3afe91(0x1d0),'apiKeyHint':'APIキーはこのブラウザのローカルに保存されます','enableAuth':'認証を有効にする','enableAuthHint':'セキュアな接続のために認証を有効にする','connectionInfo':_0x3afe91(0x1dc),'mcpClientConfig':_0x3afe91(0x1dc),'configInstructions':_0x3afe91(0x1db),'configStepTitle':_0x3afe91(0x1e7),'configStep1':_0x3afe91(0x1ec),'configStep2':_0x3afe91(0x1c1),'configStep3':'MCPクライアントを再起動して設定を適用','sessionId':_0x3afe91(0x1d9),'sessionIdDescription':'一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','authorizationDescription':'Bearerプレフィックス付きのAPIキー。','configParameters':_0x3afe91(0x1ed),'maxRetries':_0x3afe91(0x1d1),'save':'設定を保存','saving':_0x3afe91(0x1dd),'note1':_0x3afe91(0x1e5),'note2':'APIキーはローカルストレージに安全に保存されます','configSaved':_0x3afe91(0x1d4),'configError':'設定の保存に失敗しました','apiApplyInfo':{'title':_0x3afe91(0x1c5),'description':'APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','univerAiLabel':_0x3afe91(0x1eb),'getStarted':_0x3afe91(0x1d6)},'validation':{'apiKeyRequired':_0x3afe91(0x1de),'apiKeyTooShort':_0x3afe91(0x1c0),'invalidConfig':_0x3afe91(0x1ce),'invalidApiKey':_0x3afe91(0x1e1)},'connectionStatus':{'disconnected':'未接続','connecting':_0x3afe91(0x1c8),'connected':_0x3afe91(0x1cf),'failed':_0x3afe91(0x1e9),'retrying':_0x3afe91(0x1e0)},'connectionError':{'unauthorized':_0x3afe91(0x1e8),'sessionOccupied':'セッションIDが現在使用中です。後でもう一度お試しください','networkError':_0x3afe91(0x1d2),'maxRetriesExceeded':'最大再試行回数を超過しました。後でもう一度お試しください'}}};export{e as default};
|