@univerjs-pro/mcp-ui 0.15.1 → 0.15.2
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/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/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/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/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/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +7 -7
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x5b9bc3=_0x4f4d;(function(_0x8272f8,_0x38473e){const _0x25b85e=_0x4f4d,_0x158366=_0x8272f8();while(!![]){try{const _0x29887d=-parseInt(_0x25b85e(0x1b9))/0x1+parseInt(_0x25b85e(0x277))/0x2+parseInt(_0x25b85e(0x225))/0x3*(-parseInt(_0x25b85e(0x26d))/0x4)+parseInt(_0x25b85e(0x1af))/0x5*(parseInt(_0x25b85e(0x213))/0x6)+-parseInt(_0x25b85e(0x2f6))/0x7+-parseInt(_0x25b85e(0x2d1))/0x8+parseInt(_0x25b85e(0x199))/0x9*(parseInt(_0x25b85e(0x25d))/0xa);if(_0x29887d===_0x38473e)break;else _0x158366['push'](_0x158366['shift']());}catch(_0x283197){_0x158366['push'](_0x158366['shift']());}}}(_0x2f0c,0x4efe1));var Pe=Object[_0x5b9bc3(0x2c4)],Ee=(_0x21c954,_0x2d5a2e,_0x277c65)=>_0x2d5a2e in _0x21c954?Pe(_0x21c954,_0x2d5a2e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x277c65}):_0x21c954[_0x2d5a2e]=_0x277c65,x=(_0x489c1b,_0x155b18,_0x4240f6)=>Ee(_0x489c1b,typeof _0x155b18!=_0x5b9bc3(0x21b)?_0x155b18+'':_0x155b18,_0x4240f6);import{LocaleService as _0x5acff8,Inject as _0x19a565,Injector as _0x4022b1,IConfigService as _0x8e1c04,ILocalStorageService as _0x4c2eba,ILogService as _0x221b11,Disposable as _0x38c81e,CommandType as _0x10df29,ICommandService as _0x30ffad,DependentOn as _0x617d51,Plugin as _0x2065f8,merge as _0x286fb1}from'@univerjs/core';import{jsxs as _0x2a5706,jsx as _0x19de99}from'react/jsx-runtime';import{MCPConnectionStatus as _0x365507,MCPConnectionError as _0x55c172,MCPConnectionController as _0xaa88e9,MCP_PLUGIN_CONFIG_KEY as _0x2c40d3,UniverMCPPlugin as _0x4b8cc0}from'@univerjs-pro/mcp';import{clsx as _0x270b4d,Input as _0x153bb3,Button as _0x1035d9,MessageType as _0x325300,Tooltip as _0x1e3ebe}from'@univerjs/design';import{useDependency as _0x3d96bb,useObservable as _0x24e61d,IUIPartsService as _0x32a2ba,IDialogService as _0xee33a6,IMessageService as _0x12460d,ComponentManager as _0x1f0dc9,connectInjector as _0x3c88d9,BuiltInUIPart as _0x213245,MenuItemType as _0x31cb4c,RibbonStartGroup as _0xbead22,IMenuManagerService as _0x1face2}from'@univerjs/ui';import{BehaviorSubject as _0x2a0439}from'rxjs';import{useRef as _0x20bffd,createElement as _0x273557,forwardRef as _0x4d105e,useState as _0x53b5de,useCallback as _0x40ddaf}from'react';import{ISocketService as _0x447220,WebSocketService as _0x4200bf}from'@univerjs/network';function b({ref:_0x41cff8,..._0x47a3c3}){const _0x1a383a=_0x5b9bc3,{icon:_0x516e56,id:_0x4f855c,className:_0x253f71,extend:_0x258afa,..._0x463ea2}=_0x47a3c3,_0x450090=(_0x1a383a(0x282)+_0x4f855c+'\x20'+(_0x253f71||''))['trim'](),_0x48257b=_0x20bffd('_'+We());return ae(_0x516e56,''+_0x4f855c,{'defIds':_0x516e56[_0x1a383a(0x2a9)],'idSuffix':_0x48257b['current']},{'ref':_0x41cff8,'className':_0x450090,..._0x463ea2},_0x258afa);}function ae(_0x33e1a8,_0x45454c,_0x4d24b2,_0x47251a,_0x21930d){const _0x3ba396=_0x5b9bc3;return _0x273557(_0x33e1a8['tag'],{'key':_0x45454c,...Ye(_0x33e1a8,_0x4d24b2,_0x21930d),..._0x47251a},(Ze(_0x33e1a8,_0x4d24b2)[_0x3ba396(0x1e9)]||[])[_0x3ba396(0x1ad)]((_0x5220ce,_0x8e46b2)=>ae(_0x5220ce,_0x45454c+'-'+_0x33e1a8[_0x3ba396(0x2dd)]+'-'+_0x8e46b2,_0x4d24b2,void 0x0,_0x21930d)));}function Ye(_0x25206f,_0x438873,_0x1e59a0){const _0x10bbba=_0x5b9bc3,_0x463ec6={..._0x25206f['attrs']};_0x1e59a0!=null&&_0x1e59a0[_0x10bbba(0x2c1)]&&_0x463ec6[_0x10bbba(0x1a3)]===_0x10bbba(0x2c1)&&(_0x463ec6[_0x10bbba(0x1a3)]=_0x1e59a0[_0x10bbba(0x2c1)]),_0x25206f[_0x10bbba(0x2dd)]==='mask'&&_0x463ec6['id']&&(_0x463ec6['id']=_0x463ec6['id']+_0x438873[_0x10bbba(0x2b6)]),Object[_0x10bbba(0x1f9)](_0x463ec6)['forEach'](([_0x497202,_0x5f32e9])=>{const _0xf0fea=_0x10bbba;_0x497202===_0xf0fea(0x287)&&typeof _0x5f32e9==_0xf0fea(0x1f1)&&(_0x463ec6[_0x497202]=_0x5f32e9[_0xf0fea(0x291)](/url\(#(.*)\)/,_0xf0fea(0x1c7)+_0x438873[_0xf0fea(0x2b6)]+')'));});const {defIds:_0x1ead05}=_0x438873;return!_0x1ead05||_0x1ead05['length']===0x0||(_0x25206f['tag']===_0x10bbba(0x2ee)&&_0x463ec6['xlink:href']&&(_0x463ec6[_0x10bbba(0x1fa)]=_0x463ec6[_0x10bbba(0x1fa)]+_0x438873[_0x10bbba(0x2b6)]),Object[_0x10bbba(0x1f9)](_0x463ec6)[_0x10bbba(0x2fa)](([_0x144185,_0x57b40e])=>{const _0x249aac=_0x10bbba;typeof _0x57b40e==_0x249aac(0x1f1)&&(_0x463ec6[_0x144185]=_0x57b40e[_0x249aac(0x291)](/url\(#(.*)\)/,_0x249aac(0x1c7)+_0x438873[_0x249aac(0x2b6)]+')'));})),_0x463ec6;}function Ze(_0x2a6967,_0x50066a){const _0x4ffd74=_0x5b9bc3;var _0x4c2346;const {defIds:_0x33fe7e}=_0x50066a;return!_0x33fe7e||_0x33fe7e[_0x4ffd74(0x1d6)]===0x0?_0x2a6967:_0x2a6967['tag']==='defs'&&((_0x4c2346=_0x2a6967[_0x4ffd74(0x1e9)])!=null&&_0x4c2346[_0x4ffd74(0x1d6)])?{..._0x2a6967,'children':_0x2a6967[_0x4ffd74(0x1e9)][_0x4ffd74(0x1ad)](_0x3b00e8=>typeof _0x3b00e8[_0x4ffd74(0x209)]['id']==_0x4ffd74(0x1f1)&&_0x33fe7e&&_0x33fe7e['includes'](_0x3b00e8['attrs']['id'])?{..._0x3b00e8,'attrs':{..._0x3b00e8['attrs'],'id':_0x3b00e8[_0x4ffd74(0x209)]['id']+_0x50066a[_0x4ffd74(0x2b6)]}}:_0x3b00e8)}:_0x2a6967;}function We(){const _0x3ad0cc=_0x5b9bc3;return Math[_0x3ad0cc(0x2cc)]()[_0x3ad0cc(0x1e1)](0x24)[_0x3ad0cc(0x2ce)](0x2,0x8);}b[_0x5b9bc3(0x2e9)]=_0x5b9bc3(0x27b);const qe={'tag':_0x5b9bc3(0x19b),'attrs':{'xmlns':_0x5b9bc3(0x219),'fill':'none','viewBox':_0x5b9bc3(0x267),'width':'1em','height':'1em'},'children':[{'tag':_0x5b9bc3(0x1e6),'attrs':{'fill':_0x5b9bc3(0x23b),'d':_0x5b9bc3(0x298),'fillRule':_0x5b9bc3(0x1a8),'clipRule':_0x5b9bc3(0x1a8)}}]},le=_0x4d105e(function(_0x130206,_0x426e37){const _0x61044=_0x5b9bc3;return _0x273557(b,Object[_0x61044(0x1ff)]({},_0x130206,{'id':_0x61044(0x2d5),'ref':_0x426e37,'icon':qe}));});le[_0x5b9bc3(0x2e9)]=_0x5b9bc3(0x255);const Xe={'tag':'svg','attrs':{'xmlns':_0x5b9bc3(0x219),'fill':'none','viewBox':_0x5b9bc3(0x267),'width':_0x5b9bc3(0x21a),'height':_0x5b9bc3(0x21a)},'children':[{'tag':_0x5b9bc3(0x1e6),'attrs':{'fill':'currentColor','d':_0x5b9bc3(0x1fc)}}]},ue=_0x4d105e(function(_0x2be970,_0x581e92){const _0x36544a=_0x5b9bc3;return _0x273557(b,Object[_0x36544a(0x1ff)]({},_0x2be970,{'id':_0x36544a(0x248),'ref':_0x581e92,'icon':Xe}));});ue[_0x5b9bc3(0x2e9)]='CloseIcon';const Je={'tag':_0x5b9bc3(0x19b),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x5b9bc3(0x2d3),'viewBox':_0x5b9bc3(0x267),'width':_0x5b9bc3(0x21a),'height':'1em'},'children':[{'tag':_0x5b9bc3(0x1e6),'attrs':{'fill':'currentColor','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':_0x5b9bc3(0x1e6),'attrs':{'fill':_0x5b9bc3(0x23b),'d':_0x5b9bc3(0x1d8)}},{'tag':_0x5b9bc3(0x1e6),'attrs':{'fill':_0x5b9bc3(0x23b),'d':_0x5b9bc3(0x1e5),'fillRule':_0x5b9bc3(0x1a8),'clipRule':'evenodd'}}]},ve=_0x4d105e(function(_0x5a2404,_0x2d9444){const _0x24b91b=_0x5b9bc3;return _0x273557(b,Object[_0x24b91b(0x1ff)]({},_0x5a2404,{'id':_0x24b91b(0x25c),'ref':_0x2d9444,'icon':Je}));});ve[_0x5b9bc3(0x2e9)]=_0x5b9bc3(0x1f8);const Qe={'tag':_0x5b9bc3(0x19b),'attrs':{'xmlns':_0x5b9bc3(0x219),'fill':_0x5b9bc3(0x2d3),'viewBox':_0x5b9bc3(0x267),'width':'1em','height':_0x5b9bc3(0x21a)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x5b9bc3(0x1e6),'attrs':{'stroke':_0x5b9bc3(0x23b),'d':_0x5b9bc3(0x1a0),'strokeLinecap':'round','strokeLinejoin':_0x5b9bc3(0x2f2),'strokeWidth':1.2}}]},{'tag':_0x5b9bc3(0x2e4),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x5b9bc3(0x1f6)},'children':[{'tag':'path','attrs':{'fill':'white','d':_0x5b9bc3(0x28f)}}]}]}],'defIds':[_0x5b9bc3(0x1f6)]},de=_0x4d105e(function(_0x8a60f7,_0x57a6fe){const _0x5bc235=_0x5b9bc3;return _0x273557(b,Object[_0x5bc235(0x1ff)]({},_0x8a60f7,{'id':_0x5bc235(0x229),'ref':_0x57a6fe,'icon':Qe}));});de[_0x5b9bc3(0x2e9)]=_0x5b9bc3(0x1d1);const en={'tag':_0x5b9bc3(0x19b),'attrs':{'xmlns':_0x5b9bc3(0x219),'fill':_0x5b9bc3(0x2d3),'viewBox':_0x5b9bc3(0x1ec),'width':_0x5b9bc3(0x21a),'height':_0x5b9bc3(0x21a)},'children':[{'tag':'g','attrs':{'clipPath':_0x5b9bc3(0x2d7)},'children':[{'tag':'path','attrs':{'stroke':_0x5b9bc3(0x23b),'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':_0x5b9bc3(0x2f2),'strokeLinejoin':_0x5b9bc3(0x2f2),'strokeWidth':1.2}}]},{'tag':_0x5b9bc3(0x2e4),'attrs':{},'children':[{'tag':_0x5b9bc3(0x252),'attrs':{'id':_0x5b9bc3(0x1c1)},'children':[{'tag':_0x5b9bc3(0x1e6),'attrs':{'fill':_0x5b9bc3(0x2d0),'d':'M0\x200H16V16H0z','transform':_0x5b9bc3(0x1c8)}}]}]}],'defIds':[_0x5b9bc3(0x1c1)]},ge=_0x4d105e(function(_0x305fb0,_0x534dfa){const _0x41b1e3=_0x5b9bc3;return _0x273557(b,Object[_0x41b1e3(0x1ff)]({},_0x305fb0,{'id':_0x41b1e3(0x2b3),'ref':_0x534dfa,'icon':en}));});ge[_0x5b9bc3(0x2e9)]=_0x5b9bc3(0x19f);function nn(_0xefaff3){const _0x4c25c5=_0x5b9bc3;var _0x4c2f28,_0x423e6a;const {mcpCoreConfig:_0x4efd30,onSave:_0x5ba47f,loading:_0x52ce73=!0x1,config:_0x9b14a5,connectionStatus$:_0x107a72,connectionError$:_0x4e4dd3,currentApiKey$:_0x402f21,currentSessionId$:_0x34a179}=_0xefaff3,_0x399c8e=_0x3d96bb(_0x5acff8),_0x41bcb7=_0x24e61d(_0x107a72,_0x365507[_0x4c25c5(0x26a)]),_0x34adee=_0x24e61d(_0x4e4dd3,_0x55c172['NONE']),_0x52e808=_0x24e61d(_0x34a179,''),_0x78e63a=_0x24e61d(_0x402f21,''),[_0x37a7b6,_0xcac761]=_0x53b5de(_0x78e63a||''),_0x4926d2=!0x0,_0x528df7=_0x9b14a5[_0x4c25c5(0x239)]&&_0x4efd30[_0x4c25c5(0x22b)]&&(_0x4efd30[_0x4c25c5(0x22b)][_0x4c25c5(0x29a)](_0x4c25c5(0x1e2))||_0x4efd30[_0x4c25c5(0x22b)][_0x4c25c5(0x29a)](_0x4c25c5(0x2ad))),_0x59bdc4=(_0x4c2f28=_0x4efd30[_0x4c25c5(0x22b)])==null?void 0x0:_0x4c2f28[_0x4c25c5(0x29a)](_0x4c25c5(0x1e2)),_0x28c28c=(_0x423e6a=_0x4efd30[_0x4c25c5(0x22b)])==null?void 0x0:_0x423e6a[_0x4c25c5(0x29a)](_0x4c25c5(0x2ad)),_0xd4e7f1=_0x59bdc4?_0x4c25c5(0x1c4):'https://console.univer.ai',_0x4f65bd=_0x9b14a5[_0x4c25c5(0x239)]&&(_0x59bdc4||_0x28c28c),[_0x20b935,_0x332752]=_0x53b5de(!_0x37a7b6['trim']()),_0x36cee9=(_0x341b73,_0x164797)=>{const _0x269b2d=_0x4c25c5;if(_0x164797===_0x55c172[_0x269b2d(0x2c2)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x341b73){case _0x365507[_0x269b2d(0x2cd)]:return _0x269b2d(0x2eb);case _0x365507[_0x269b2d(0x2a3)]:case _0x365507[_0x269b2d(0x22d)]:return _0x269b2d(0x2db);case _0x365507[_0x269b2d(0x2b2)]:return _0x269b2d(0x292);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x2d064a=(_0x13648b,_0x18d5b0)=>{const _0x1a36d6=_0x4c25c5;if(_0x18d5b0===_0x55c172[_0x1a36d6(0x2c2)])return _0x1a36d6(0x212);switch(_0x13648b){case _0x365507['CONNECTED']:return _0x1a36d6(0x278);case _0x365507['CONNECTING']:case _0x365507[_0x1a36d6(0x22d)]:return _0x1a36d6(0x2a8);case _0x365507[_0x1a36d6(0x2b2)]:return _0x1a36d6(0x212);default:return _0x1a36d6(0x1fd);}},_0x336707=_0x1422e9=>{const _0x31ea6a=_0x4c25c5;switch(_0x1422e9){case _0x365507[_0x31ea6a(0x2cd)]:return _0x399c8e['t'](_0x31ea6a(0x2e2));case _0x365507[_0x31ea6a(0x2a3)]:return _0x399c8e['t'](_0x31ea6a(0x1cb));case _0x365507[_0x31ea6a(0x2b2)]:return _0x399c8e['t'](_0x31ea6a(0x28c));case _0x365507[_0x31ea6a(0x22d)]:return _0x399c8e['t'](_0x31ea6a(0x20d));default:return _0x399c8e['t'](_0x31ea6a(0x2df));}},_0x53e9f6=_0x3d93b0=>{const _0x1568e=_0x4c25c5;switch(_0x3d93b0){case _0x55c172[_0x1568e(0x2c2)]:return _0x399c8e['t'](_0x1568e(0x2de));case _0x55c172[_0x1568e(0x210)]:return _0x399c8e['t'](_0x1568e(0x221));case _0x55c172[_0x1568e(0x1f0)]:return _0x399c8e['t']('mcpConfig.connectionError.networkError');case _0x55c172[_0x1568e(0x1ea)]:return _0x399c8e['t'](_0x1568e(0x1df));default:return'';}},_0x40ccab=_0x40ddaf(()=>{const _0x251548=_0x4c25c5,_0x5f3bb4={..._0x4efd30,'apiKey':_0x37a7b6[_0x251548(0x2d8)](),'enableAuth':_0x4926d2};_0x5ba47f(_0x5f3bb4);},[_0x4efd30,_0x37a7b6,_0x4926d2,_0x5ba47f]),_0x1924f1=_0x37a7b6[_0x4c25c5(0x2d8)]()[_0x4c25c5(0x1d6)]>0x0;return _0x2a5706('div',{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[_0x19de99(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x24b),'children':_0x2a5706('div',{'className':_0x4c25c5(0x1eb),'children':[_0x19de99(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x203),'children':_0x19de99(_0x4c25c5(0x1ca),{'className':'univer-text-white','children':'⚙'})}),_0x19de99(_0x4c25c5(0x1ef),{'children':_0x19de99('p',{'className':_0x4c25c5(0x19c),'children':_0x399c8e['t']('mcpConfig.description')})})]})}),_0x2a5706('div',{'className':_0x4c25c5(0x24e),'children':[_0x19de99(_0x4c25c5(0x1ef),{'className':_0x270b4d(_0x4c25c5(0x25e),_0x36cee9(_0x41bcb7,_0x34adee)),'children':_0x2a5706(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x2a7),'children':[_0x19de99(_0x4c25c5(0x1ef),{'className':_0x270b4d(_0x4c25c5(0x2a4),_0x2d064a(_0x41bcb7,_0x34adee))}),_0x19de99(_0x4c25c5(0x1ca),{'className':_0x4c25c5(0x22c),'children':_0x336707(_0x41bcb7)})]})}),_0x34adee!==_0x55c172['NONE']&&(_0x41bcb7===_0x365507[_0x4c25c5(0x2b2)]||_0x34adee===_0x55c172[_0x4c25c5(0x2c2)])&&_0x19de99('div',{'className':_0x4c25c5(0x2d9),'children':_0x2a5706('div',{'className':_0x4c25c5(0x2f1),'children':[_0x19de99(_0x4c25c5(0x1ca),{'className':_0x4c25c5(0x1cf),'children':'⚠️'}),_0x19de99('p',{'className':_0x4c25c5(0x281),'children':_0x53e9f6(_0x34adee)})]})})]}),_0x19de99('div',{'className':_0x4c25c5(0x207),'children':_0x2a5706(_0x4c25c5(0x1ef),{'className':'univer-space-y-5','children':[_0x2a5706(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x2b0),'children':[_0x2a5706(_0x4c25c5(0x22e),{'className':_0x4c25c5(0x20a),'children':[_0x19de99(_0x4c25c5(0x1ca),{'children':'🔑'}),'\x20',_0x399c8e['t'](_0x4c25c5(0x28d)),_0x19de99(_0x4c25c5(0x1ca),{'className':_0x4c25c5(0x22a),'children':'*'}),_0x528df7&&_0x19de99('a',{'className':_0x4c25c5(0x297),'title':_0x399c8e['t'](_0x4c25c5(0x251)),'role':_0x4c25c5(0x2f7),'onClick':()=>_0x332752(!0x0),'children':_0x19de99(ve,{})})]}),_0x19de99(_0x153bb3,{'type':_0x4c25c5(0x2f9),'placeholder':_0x399c8e['t'](_0x4c25c5(0x237)),'value':_0x37a7b6,'disabled':_0x52ce73,'autoComplete':_0x4c25c5(0x1a7),'onChange':_0xcac761}),_0x19de99('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x399c8e['t'](_0x4c25c5(0x1b0))})]}),_0x528df7&&_0x20b935&&_0x2a5706(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x220),'children':[_0x19de99('a',{'className':_0x4c25c5(0x253),'role':'button','onClick':()=>_0x332752(!0x1),'children':_0x19de99(ue,{'className':'univer-size-4'})}),_0x2a5706(_0x4c25c5(0x1ef),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[_0x19de99('div',{'className':_0x4c25c5(0x19a),'children':_0x19de99('span',{'className':_0x4c25c5(0x1e4),'children':'🚀'})}),_0x2a5706(_0x4c25c5(0x1ef),{'className':'univer-flex-1','children':[_0x19de99('h4',{'className':_0x4c25c5(0x24f),'children':_0x399c8e['t'](_0x4c25c5(0x251))}),_0x19de99('p',{'className':_0x4c25c5(0x238),'children':_0x399c8e['t']('mcpConfig.apiApplyInfo.description')}),_0x19de99(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x254),'children':_0x4f65bd&&_0x2a5706('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':_0xd4e7f1,'target':_0x4c25c5(0x1f5),'rel':_0x4c25c5(0x232),'children':[_0x19de99(_0x4c25c5(0x1ca),{'children':'🤖'}),_0x399c8e['t'](_0x4c25c5(0x2bd)),_0x19de99(_0x4c25c5(0x1ca),{'className':'univer-text-gray-400','children':'↗'})]})}),_0x2a5706(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x28b),'children':['✨','\x20',_0x399c8e['t'](_0x4c25c5(0x269))]})]})]})]}),_0x9b14a5[_0x4c25c5(0x239)]&&_0x2a5706(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x1dc),'children':[_0x2a5706('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[_0x19de99(_0x4c25c5(0x1ca),{'children':'🔗'}),'\x20',_0x399c8e['t'](_0x4c25c5(0x234))]}),_0x2a5706(_0x4c25c5(0x1ef),{'className':'univer-space-y-4','children':[_0x2a5706('div',{'className':_0x4c25c5(0x259),'children':[_0x19de99('p',{'className':_0x4c25c5(0x1ac),'children':_0x399c8e['t'](_0x4c25c5(0x23e))}),_0x2a5706(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x2b0),'children':[_0x19de99(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x293),'children':_0x399c8e['t'](_0x4c25c5(0x1e3))}),_0x2a5706(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x1bb),'children':[_0x2a5706(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x2a7),'children':[_0x19de99('span',{'className':_0x4c25c5(0x266),'children':'1'}),_0x399c8e['t'](_0x4c25c5(0x1b7))]}),_0x2a5706(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x2a7),'children':[_0x19de99(_0x4c25c5(0x1ca),{'className':_0x4c25c5(0x266),'children':'2'}),_0x399c8e['t'](_0x4c25c5(0x1fb))]}),_0x2a5706('div',{'className':_0x4c25c5(0x2a7),'children':[_0x19de99(_0x4c25c5(0x1ca),{'className':_0x4c25c5(0x266),'children':'3'}),_0x399c8e['t'](_0x4c25c5(0x215))]})]})]})]}),_0x2a5706(_0x4c25c5(0x1ef),{'className':'univer-space-y-2','children':[_0x19de99(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x293),'children':_0x4c25c5(0x1de)}),_0x19de99('div',{'className':_0x4c25c5(0x1dd),'children':_0x19de99(_0x4c25c5(0x2e8),{'className':_0x4c25c5(0x19e),'children':JSON[_0x4c25c5(0x249)]({'mcpServers':{'univer':{'url':_0x4c25c5(0x29d)+(_0x52e808||'<SESSION_ID>'),'type':_0x4c25c5(0x257),'headers':{'Authorization':_0x4c25c5(0x1da)+(_0x37a7b6||_0x4c25c5(0x272))}}}},null,0x2)})})]}),_0x2a5706(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x259),'children':[_0x19de99(_0x4c25c5(0x1ef),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x399c8e['t'](_0x4c25c5(0x2be))}),_0x2a5706(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x2b0),'children':[_0x2a5706(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x265),'children':[_0x19de99(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x27d)}),_0x2a5706(_0x4c25c5(0x1ef),{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x19de99('div',{'className':_0x4c25c5(0x1cd),'children':_0x4c25c5(0x295)}),_0x19de99('div',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x399c8e['t'](_0x4c25c5(0x241))})]})]}),_0x2a5706(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x265),'children':[_0x19de99(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x27d)}),_0x2a5706('div',{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x19de99(_0x4c25c5(0x1ef),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x4c25c5(0x1e8)}),_0x19de99(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x21f),'children':_0x399c8e['t'](_0x4c25c5(0x22f))})]})]})]})]})]})]}),_0x19de99(_0x1035d9,{'onClick':_0x40ccab,'disabled':!_0x1924f1||_0x52ce73,'className':'univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','children':_0x52ce73?_0x2a5706('span',{'className':_0x4c25c5(0x2a7),'children':[_0x19de99('span',{'children':'⟲'}),_0x399c8e['t'](_0x4c25c5(0x231))]}):_0x2a5706(_0x4c25c5(0x1ca),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x19de99(le,{}),_0x399c8e['t'](_0x4c25c5(0x2c0))]})}),_0x19de99(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x261),'children':_0x2a5706(_0x4c25c5(0x1ef),{'className':'univer-flex\x20univer-gap-3','children':[_0x19de99('span',{'className':_0x4c25c5(0x2f4),'children':'💡'}),_0x2a5706('div',{'className':_0x4c25c5(0x27c),'children':[_0x19de99('div',{'className':_0x4c25c5(0x23f),'children':'Configuration\x20Notes:'}),_0x2a5706(_0x4c25c5(0x1ef),{'children':['•',_0x399c8e['t']('mcpConfig.note1')]}),_0x2a5706(_0x4c25c5(0x1ef),{'children':['•',_0x399c8e['t'](_0x4c25c5(0x21c))]})]})]})})]})})]});}const y='mcp-ui.config',ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object[_0x5b9bc3(0x2a5)],tn=(_0x562841,_0x242ab1,_0x1d2536,_0x2a0c59)=>{const _0x526d77=_0x5b9bc3;for(var _0x457123=_0x2a0c59>0x1?void 0x0:_0x2a0c59?rn(_0x242ab1,_0x1d2536):_0x242ab1,_0x1bbdaf=_0x562841[_0x526d77(0x1d6)]-0x1,_0x13459a;_0x1bbdaf>=0x0;_0x1bbdaf--)(_0x13459a=_0x562841[_0x1bbdaf])&&(_0x457123=_0x13459a(_0x457123)||_0x457123);return _0x457123;},d=(_0x264b60,_0x51c69e)=>(_0x47bd07,_0x5ce301)=>_0x51c69e(_0x47bd07,_0x5ce301,_0x264b60);const U=_0x5b9bc3(0x29e),L=_0x5b9bc3(0x21d);let I=class extends _0x38c81e{constructor(_0x22f9cc,_0x30bff7,_0x170c6e,_0x570b33,_0x35e702,_0x4ad6df,_0x528ec3,_0xd57a40,_0x188a76,_0x5a6e56){const _0x3b3c86=_0x5b9bc3;super(),x(this,'_loading$',new _0x2a0439(!0x1)),x(this,'_mcpCoreConfig$',new _0x2a0439({})),x(this,_0x3b3c86(0x284),new _0x2a0439({})),x(this,_0x3b3c86(0x23c),new _0x2a0439('')),x(this,_0x3b3c86(0x1d9),async _0x594f5c=>{const _0x14d721=_0x3b3c86;var _0x1d288c,_0x4fd63c;this[_0x14d721(0x227)][_0x14d721(0x2f0)](!0x0);try{const _0x485778=await this[_0x14d721(0x222)](_0x594f5c);if(!_0x485778[_0x14d721(0x1a6)]){this['_messageService'][_0x14d721(0x200)]({'type':_0x325300[_0x14d721(0x2ed)],'content':_0x485778['errorMessage']||this[_0x14d721(0x29f)]['t'](_0x14d721(0x20c))});return;}_0x594f5c[_0x14d721(0x2c5)]?await this[_0x14d721(0x2bb)][_0x14d721(0x1e7)](U,_0x594f5c['apiKey'][_0x14d721(0x2d8)]()):await this[_0x14d721(0x2bb)]['removeItem'](U),this[_0x14d721(0x23c)]['next'](((_0x1d288c=_0x594f5c[_0x14d721(0x2c5)])==null?void 0x0:_0x1d288c[_0x14d721(0x2d8)]())||''),this['_mcpConnectionController']['__setCustomHeaders']({'Authorization':_0x14d721(0x1da)+((_0x4fd63c=_0x594f5c[_0x14d721(0x2c5)])==null?void 0x0:_0x4fd63c[_0x14d721(0x2d8)]())}),this[_0x14d721(0x228)][_0x14d721(0x200)]({'type':_0x325300[_0x14d721(0x1ae)],'content':this[_0x14d721(0x29f)]['t'](_0x14d721(0x2c7))}),setTimeout(()=>{const _0x1aa9bd=_0x14d721;this[_0x1aa9bd(0x29b)][_0x1aa9bd(0x235)](L);},0x320);}catch(_0x487580){this[_0x14d721(0x1f3)][_0x14d721(0x258)](_0x14d721(0x2d2),_0x487580),this[_0x14d721(0x228)][_0x14d721(0x200)]({'type':_0x325300[_0x14d721(0x2ed)],'content':this[_0x14d721(0x29f)]['t'](_0x14d721(0x286))});}finally{this[_0x14d721(0x227)]['next'](!0x1);}}),(this[_0x3b3c86(0x29c)]=_0x22f9cc,this['_uiPartsService']=_0x30bff7,this[_0x3b3c86(0x2ba)]=_0x170c6e,this[_0x3b3c86(0x2bb)]=_0x570b33,this[_0x3b3c86(0x29b)]=_0x35e702,this[_0x3b3c86(0x228)]=_0x4ad6df,this[_0x3b3c86(0x2d4)]=_0x528ec3,this[_0x3b3c86(0x29f)]=_0xd57a40,this[_0x3b3c86(0x1f3)]=_0x188a76,this['_mcpConnectionController']=_0x5a6e56,this[_0x3b3c86(0x2f3)](),this['_loadStoredApiKey'](),this[_0x3b3c86(0x217)]());}['showConfigPanel'](){const _0x41510e=_0x5b9bc3,_0x288a07=this[_0x41510e(0x2ba)][_0x41510e(0x1c2)](y);_0x288a07!=null&&_0x288a07[_0x41510e(0x239)]&&this[_0x41510e(0x29b)]['open']({'id':L,'title':{'title':this[_0x41510e(0x29f)]['t']('mcpConfig.title')},'children':{'label':_0x41510e(0x25f)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x1c7dc6=_0x41510e;this[_0x1c7dc6(0x29b)][_0x1c7dc6(0x235)](L);}});}[_0x5b9bc3(0x214)](){const _0x58eb21=_0x5b9bc3;return this[_0x58eb21(0x274)]['value'];}[_0x5b9bc3(0x217)](){const _0x460f48=_0x5b9bc3;this[_0x460f48(0x245)](this[_0x460f48(0x2d4)][_0x460f48(0x243)](_0x460f48(0x25f),this[_0x460f48(0x2f8)]()));}[_0x5b9bc3(0x2f8)](){const _0x5d89df=_0x5b9bc3;return _0x3c88d9(()=>{const _0x56ab03=_0x4f4d;var _0x42c4ad,_0x4fb206,_0x56eba3;return _0x19de99(nn,{'config':this[_0x56ab03(0x284)][_0x56ab03(0x208)],'mcpCoreConfig':this[_0x56ab03(0x274)][_0x56ab03(0x208)],'currentApiKey$':this[_0x56ab03(0x23c)],'onSave':this[_0x56ab03(0x1d9)],'loading':this[_0x56ab03(0x227)][_0x56ab03(0x208)],'connectionStatus$':(_0x42c4ad=this[_0x56ab03(0x1aa)])==null?void 0x0:_0x42c4ad[_0x56ab03(0x2f5)],'connectionError$':(_0x4fb206=this[_0x56ab03(0x1aa)])==null?void 0x0:_0x4fb206[_0x56ab03(0x260)],'currentSessionId$':(_0x56eba3=this[_0x56ab03(0x1aa)])==null?void 0x0:_0x56eba3['sessionId$']});},this[_0x5d89df(0x29c)]);}[_0x5b9bc3(0x2f3)](){const _0x34a5a9=_0x5b9bc3;this[_0x34a5a9(0x245)](this[_0x34a5a9(0x2ba)][_0x34a5a9(0x275)](_0x2c40d3)[_0x34a5a9(0x2aa)](_0x4c6259=>{const _0x3c1dfd=_0x34a5a9;this[_0x3c1dfd(0x274)]['next'](_0x4c6259||{});}));const _0x557221=this[_0x34a5a9(0x2ba)][_0x34a5a9(0x1c2)](_0x2c40d3);this[_0x34a5a9(0x274)][_0x34a5a9(0x2f0)](_0x557221||{}),this['disposeWithMe'](this['_configService'][_0x34a5a9(0x275)](y)[_0x34a5a9(0x2aa)](_0x48be7e=>{const _0x94724c=_0x34a5a9;this[_0x94724c(0x284)][_0x94724c(0x2f0)](_0x48be7e||{});}));const _0x36a6c1=this[_0x34a5a9(0x2ba)][_0x34a5a9(0x1c2)](y);this[_0x34a5a9(0x284)][_0x34a5a9(0x2f0)](_0x36a6c1||{});}async[_0x5b9bc3(0x290)](){const _0x4e4e26=_0x5b9bc3,_0x2844b3=this[_0x4e4e26(0x2ba)][_0x4e4e26(0x1c2)](y);if(!(_0x2844b3!=null&&_0x2844b3[_0x4e4e26(0x239)]))return;const _0x51c509=await this[_0x4e4e26(0x2bb)]['getItem'](U);_0x51c509&&(this[_0x4e4e26(0x1aa)][_0x4e4e26(0x1a5)]({'Authorization':_0x4e4e26(0x1da)+_0x51c509}),this[_0x4e4e26(0x23c)][_0x4e4e26(0x2f0)](_0x51c509));}async['_validateConfig'](_0x4e1483){const _0x58890f=_0x5b9bc3;if(!_0x4e1483[_0x58890f(0x2c5)]||_0x4e1483['apiKey'][_0x58890f(0x2d8)]()[_0x58890f(0x1d6)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x58890f(0x29f)]['t'](_0x58890f(0x2c3))};if(_0x4e1483[_0x58890f(0x2c5)][_0x58890f(0x2d8)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0x58890f(0x29f)]['t'](_0x58890f(0x1ce))};try{const _0x44657b=await this[_0x58890f(0x29c)][_0x58890f(0x2da)](_0xaa88e9)[_0x58890f(0x1a1)](_0x4e1483[_0x58890f(0x2c5)][_0x58890f(0x2d8)]());return _0x44657b[_0x58890f(0x1a6)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x44657b[_0x58890f(0x258)]||this['_localeService']['t'](_0x58890f(0x218))};}catch(_0x43da48){return console[_0x58890f(0x2ca)](_0x58890f(0x205),_0x43da48),{'isValid':!0x0};}}};I=tn([d(0x0,_0x19a565(_0x4022b1)),d(0x1,_0x32a2ba),d(0x2,_0x8e1c04),d(0x3,_0x4c2eba),d(0x4,_0xee33a6),d(0x5,_0x12460d),d(0x6,_0x19a565(_0x1f0dc9)),d(0x7,_0x19a565(_0x5acff8)),d(0x8,_0x221b11),d(0x9,_0x19a565(_0xaa88e9))],I);const V={'id':_0x5b9bc3(0x28a),'type':_0x10df29[_0x5b9bc3(0x2af)],'handler':async(_0x1f8db1,_0x2b3141)=>(_0x1f8db1['get'](I)[_0x5b9bc3(0x270)](),!0x0)};function pe(_0x30657e,_0x1bcec2){const _0x46dc6a=_0x5b9bc3;switch(_0x30657e){case _0x365507[_0x46dc6a(0x26a)]:return'mcpStatus.disconnected';case _0x365507[_0x46dc6a(0x2a3)]:return _0x46dc6a(0x1b5);case _0x365507[_0x46dc6a(0x2cd)]:return'mcpStatus.connected';case _0x365507[_0x46dc6a(0x2b2)]:switch(_0x1bcec2){case _0x55c172['UNAUTHORIZED']:return _0x46dc6a(0x1db);case _0x55c172[_0x46dc6a(0x210)]:return _0x46dc6a(0x224);case _0x55c172[_0x46dc6a(0x1f0)]:return _0x46dc6a(0x24c);case _0x55c172[_0x46dc6a(0x1ea)]:return'mcpStatus.maxRetriesExceeded';default:return'mcpStatus.failed';}case _0x365507[_0x46dc6a(0x22d)]:return _0x46dc6a(0x296);default:return _0x46dc6a(0x268);}}function on(_0x29a95c,_0x510635,_0xe4b8e5,_0x5a8310=!0x0){const _0x3802aa=_0x5b9bc3,_0x7eaa34=pe(_0x29a95c,_0x510635),_0x49da73=_0xe4b8e5['t'](_0x7eaa34);return _0x5a8310?_0x29a95c===_0x365507[_0x3802aa(0x26a)]&&_0x510635===_0x55c172[_0x3802aa(0x2c2)]?_0x49da73+'\x20-\x20'+_0xe4b8e5['t'](_0x3802aa(0x1b2)):_0x29a95c===_0x365507[_0x3802aa(0x2cd)]?''+_0x49da73:_0x29a95c===_0x365507[_0x3802aa(0x26a)]||_0x29a95c===_0x365507['FAILED']?_0x49da73+_0x3802aa(0x230)+_0xe4b8e5['t'](_0x3802aa(0x20b)):_0x49da73:_0x49da73;}function sn(_0x43744b){const _0xbc9da5=_0x5b9bc3;switch(_0x43744b){case _0x365507['CONNECTED']:return _0xbc9da5(0x256);case _0x365507[_0xbc9da5(0x2a3)]:case _0x365507[_0xbc9da5(0x22d)]:return _0xbc9da5(0x24a);case _0x365507['FAILED']:case _0x365507[_0xbc9da5(0x26a)]:return _0xbc9da5(0x22a);default:return'univer-text-gray-500';}}function cn(_0x1810e1){const _0x37c0b5=_0x5b9bc3,{status$:_0x35c261,error$:_0x46e681,onConfigure:_0x171126,showClickable:_0x15c693=!0x0}=_0x1810e1,_0x2fa22b=_0x24e61d(_0x35c261,_0x365507['DISCONNECTED']),_0x4a7924=_0x24e61d(_0x46e681,_0x55c172[_0x37c0b5(0x288)]),_0xc6d9d=_0x3d96bb(_0x5acff8),_0x4f7f78=_0x2fa22b===_0x365507['CONNECTED'];_0x2fa22b===_0x365507[_0x37c0b5(0x2a3)]||_0x365507['RETRYING'];const _0xe2085d=_0xc6d9d['t'](pe(_0x2fa22b,_0x4a7924)),_0x27b5ab=on(_0x2fa22b,_0x4a7924,_0xc6d9d,_0x15c693),_0x2a0b84=sn(_0x2fa22b),_0xbdac94=_0x4f7f78?_0x19de99(ge,{}):_0x19de99(de,{}),_0x5b6fef=_0x40ddaf(()=>{_0x15c693&&_0x171126&&_0x171126();},[_0x15c693,_0x171126]);function _0x27de7e(){const _0x2204ce=_0x37c0b5;return _0x2a5706(_0x2204ce(0x1ef),{'className':_0x270b4d('univer-flex\x20univer-items-center',_0x15c693&&_0x171126&&_0x2204ce(0x2ab)),'role':_0x2204ce(0x2f7),'onClick':_0x15c693&&_0x171126?_0x5b6fef:void 0x0,'children':[_0x19de99(_0x2204ce(0x1ef),{'className':_0x270b4d(_0x2204ce(0x2b5),_0x2a0b84),'children':_0xbdac94}),_0x19de99(_0x2204ce(0x1ef),{'className':_0x2204ce(0x25b),'children':_0xe2085d})]});}return _0x19de99(_0x1e3ebe,{'title':_0x27b5ab,'placement':'bottom','children':_0x27de7e()});}var an=Object['getOwnPropertyDescriptor'],ln=(_0x4364ee,_0x191272,_0x38759c,_0x119530)=>{const _0x27ca44=_0x5b9bc3;for(var _0x144b1c=_0x119530>0x1?void 0x0:_0x119530?an(_0x191272,_0x38759c):_0x191272,_0x22af42=_0x4364ee[_0x27ca44(0x1d6)]-0x1,_0x2114a9;_0x22af42>=0x0;_0x22af42--)(_0x2114a9=_0x4364ee[_0x22af42])&&(_0x144b1c=_0x2114a9(_0x144b1c)||_0x144b1c);return _0x144b1c;},M=(_0x5ec09f,_0x357fea)=>(_0x8fabec,_0x4cb335)=>_0x357fea(_0x8fabec,_0x4cb335,_0x5ec09f);let O=class extends _0x38c81e{constructor(_0x240d43,_0xb47f20,_0x4025ba,_0x14f523){const _0x97ff91=_0x5b9bc3;super(),this[_0x97ff91(0x29c)]=_0x240d43,this[_0x97ff91(0x1cc)]=_0xb47f20,this['_uiPartsService']=_0x4025ba,this[_0x97ff91(0x2ba)]=_0x14f523,this[_0x97ff91(0x1b6)](),this[_0x97ff91(0x2b1)]();}[_0x5b9bc3(0x1b6)](){const _0x5292a0=_0x5b9bc3,_0x35cb08=this[_0x5292a0(0x2ba)]['getConfig'](y);_0x35cb08!=null&&_0x35cb08['showDeveloperTools']&&(this[_0x5292a0(0x1cc)]['enableAutoConnect']=!0x1);}['_initStatusComponent'](){const _0x2d2522=_0x5b9bc3,_0x5a848c=this['_configService'][_0x2d2522(0x1c2)](y);(_0x5a848c==null?void 0x0:_0x5a848c[_0x2d2522(0x223)])!==!0x1&&this[_0x2d2522(0x245)](this['_uiPartsService'][_0x2d2522(0x262)](_0x213245[_0x2d2522(0x1ed)],()=>{const _0x287602=_0x2d2522;var _0x220fc2;return _0x3c88d9(un({'status$':this[_0x287602(0x1cc)][_0x287602(0x2f5)],'error$':this[_0x287602(0x1cc)]['connectionError$'],'onConfigure':()=>this[_0x287602(0x2ea)](),'showClickable':(_0x220fc2=_0x5a848c==null?void 0x0:_0x5a848c[_0x287602(0x239)])!=null?_0x220fc2:!0x1}),this['_injector']);}));}[_0x5b9bc3(0x2ea)](){const _0x2ba585=_0x5b9bc3;this[_0x2ba585(0x29c)][_0x2ba585(0x2da)](I)['showConfigPanel']();}};O=ln([M(0x0,_0x19a565(_0x4022b1)),M(0x1,_0x19a565(_0xaa88e9)),M(0x2,_0x32a2ba),M(0x3,_0x8e1c04)],O);function un(_0x42485d){const {status$:_0x12bc37,error$:_0x59f393,onConfigure:_0x1f1f97,showClickable:_0x17d7e6}=_0x42485d;return function(){return _0x19de99(cn,{'status$':_0x12bc37,'error$':_0x59f393,'onConfigure':_0x1f1f97,'showClickable':_0x17d7e6});};}function vn(_0x4a072c){const _0x3c31d2=_0x5b9bc3;return{'id':V['id'],'type':_0x31cb4c[_0x3c31d2(0x26c)],'icon':_0x3c31d2(0x2e6),'title':'mcpConfig.title','tooltip':_0x3c31d2(0x204)};}function _0x2f0c(){const _0x31d308=['mcpConfig.configSaved','pluginName','MCP\x20已断开','warn','MCP\x20重连中...','random','CONNECTED','substring','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','white','1737392elYcsm','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','none','_componentManager','check-mark-icon','Connecting...','url(#on-line-icon_clip0_910_349)','trim','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','get','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','has','tag','mcpConfig.connectionError.unauthorized','mcpConfig.connectionStatus.disconnected','API\x20密钥无效,请检查密钥是否正确','OTHERS','mcpConfig.connectionStatus.connected','Enable\x20Authentication','defs','Session\x20ID','MenuIcon','配置保存失败','pre','displayName','_handleConfigure','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','mergeMenu','Error','use','连接失败','next','univer-flex\x20univer-items-start\x20univer-gap-2','round','_initConfigSync','univer-shrink-0\x20univer-text-blue-500','connectionStatus$','1391712KfZPkL','button','_createConfigPanelComponent','text','forEach','配置更改将立即生效','17352BAyZOU','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','svg','univer-text-sm\x20univer-text-gray-500','API\x20密钥','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','OnLineIcon','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','validateApiKey','Connected','fill','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','__setCustomHeaders','isValid','off','evenodd','onStarting','_mcpConnectionController','配置参数:','univer-text-xs\x20univer-text-gray-600','map','Success','51195oFruDQ','mcpConfig.apiKeyHint','将配置添加到您的\x20MCP\x20客户端设置文件中','mcpStatus.clickToConfigure','What\x20is\x20API\x20Key?','Configuration\x20Parameters:','mcpStatus.connecting','_initAutoConnect','mcpConfig.configStep1','配置步骤:','373444BAcxgo','Copy\x20the\x20JSON\x20configuration\x20below','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','最大重试次数','几秒钟内获取您的\x20API\x20密钥','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20连接失败','MCP\x20Connection\x20Failed','on-line-icon_clip0_910_349','getConfig','将以下配置添加到您的\x20MCP\x20客户端设置中:','https://console.univer.plus','您的\x20API\x20密钥安全存储在本地存储中','_config','url(#$1','translate(.97)','MCP:\x20Network\x20Error','span','mcpConfig.connectionStatus.connecting','_connectionController','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','mcpConfig.validation.apiKeyTooShort','univer-shrink-0\x20univer-text-red-500','MCP:\x20Max\x20Retries\x20Exceeded','OffLineIcon','带有\x20Bearer\x20前缀的\x20API\x20密钥。','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','length','MCP\x20状态未知','M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z','_handleConfigSave','Bearer\x20','mcpStatus.unauthorized','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','MCP\x20Configuration','mcpConfig.connectionError.maxRetriesExceeded','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','toString','univer.plus','mcpConfig.configStepTitle','univer-text-blue-600','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','path','setItem','Authorization:','children','MAX_RETRIES_EXCEEDED','univer-flex\x20univer-items-center\x20univer-gap-3','0\x200\x2017\x2016','HEADER_MENU','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','div','NETWORK_ERROR','string','MCP\x20配置','_logService','Univer\x20AI\x20控制台','_blank','off-line-icon_clip0_910_343','_initializeMenus','HelpIcon','entries','xlink:href','mcpConfig.configStep2','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-bg-gray-500','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','assign','show','MCP\x20Disconnected','重启您的\x20MCP\x20客户端以使配置生效','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','mcpConfig.title','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','网络连接错误,请检查您的网络连接','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','value','attrs','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','mcpStatus.clickToConnect','mcpConfig.validation.invalidConfig','mcpConfig.connectionStatus.retrying','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','复制以下\x20JSON\x20配置','SESSION_ID_OCCUPIED','API\x20密钥长度至少需要\x2010\x20位','univer-bg-red-500','54zpPHPM','getCurrentConfig','mcpConfig.configStep3','_uiPartsService','_registerComponent','mcpConfig.validation.invalidApiKey','http://www.w3.org/2000/svg','1em','symbol','mcpConfig.note2','mcp-config-dialog','API\x20密钥不能为空','univer-text-xs\x20univer-text-gray-500','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','mcpConfig.connectionError.sessionOccupied','_validateConfig','showStatus','mcpStatus.sessionOccupied','153579HeTgeh','API\x20Key','_loading$','_messageService','off-line-icon','univer-text-red-500','mcpServerUrl','univer-text-sm\x20univer-font-medium','RETRYING','label','mcpConfig.authorizationDescription','\x20-\x20','mcpConfig.saving','noopener\x20noreferrer','push','mcpConfig.connectionInfo','close','Get\x20your\x20API\x20key\x20in\x20seconds','mcpConfig.apiKeyPlaceholder','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','showDeveloperTools','add','currentColor','_apiKey$','MCP\x20连接中...','mcpConfig.configInstructions','univer-font-medium','MCP\x20已连接','mcpConfig.sessionIdDescription','Saving...','register','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','disposeWithMe','MCP:\x20Unauthorized','已连接','close-icon','stringify','univer-text-yellow-500','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','mcpStatus.networkError','MCP\x20Unknown\x20Status','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','mcpConfig.apiApplyInfo.title','clipPath','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','univer-flex\x20univer-flex-wrap\x20univer-gap-2','CheckMarkIcon','univer-text-green-500','http','error','univer-space-y-3','连接中...','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','help-icon','3650jkWIzQ','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','MCPConfigPanel','connectionError$','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','registerComponent','MCP\x20Client\x20Configuration','MCP\x20Connected','univer-flex\x20univer-items-start\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','0\x200\x2016\x2016','mcpStatus.unknown','mcpConfig.apiApplyInfo.getStarted','DISCONNECTED','Invalid\x20configuration','BUTTON','20iBcvPs','重连中...','Save\x20Configuration','showConfigPanel','点击连接\x20MCP','<API_KEY>','_initializeCommands','_mcpCoreConfig$','subscribeConfigValue$','请输入您的\x20API\x20密钥','1146162GnTtsM','univer-bg-green-500','Click\x20to\x20configure\x20MCP','您的\x20API\x20密钥将在此浏览器中本地存储','UniverIcon','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','API\x20key\x20with\x20Bearer\x20prefix.','Connection\x20Failed','_menuManagerService','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','univerjs-icon\x20univerjs-icon-','MCP:\x20未授权','_config$','保存配置','mcpConfig.configError','mask','NONE','MCP:\x20网络错误','mcp-ui.command.openConfigPanel','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','mcpConfig.connectionStatus.failed','mcpConfig.apiKey','MCP:\x20超出最大重试次数','M0\x200H16V16H0z','_loadStoredApiKey','replace','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','配置保存成功','univer_session_id:','mcpStatus.retrying','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','M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','MCP\x20客户端配置','includes','_dialogService','_injector','https://mcp.univer.ai/mcp/?univer_session_id=','mcp.apiKey','_localeService','Max\x20Retries','Univer\x20AI\x20Console','setConfig','CONNECTING','univer-size-2\x20univer-rounded-full','getOwnPropertyDescriptor','Enable\x20authentication\x20for\x20secure\x20connections','univer-flex\x20univer-items-center\x20univer-gap-2','univer-bg-blue-500','defIds','subscribe','\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','Enter\x20your\x20API\x20key','univer.ai','什么是\x20API\x20密钥?','COMMAND','univer-space-y-2','_initStatusComponent','FAILED','on-line-icon','Retrying...','univer-mr-2\x20univer-flex\x20univer-text-xl','idSuffix','启用身份验证以获得安全连接','会话\x20ID\x20已被占用,请稍后再试','配置无效','_configService','_localStorageService','MCP\x20Retrying...','mcpConfig.apiApplyInfo.univerAiLabel','mcpConfig.configParameters','Click\x20to\x20connect\x20MCP','mcpConfig.save','colorChannel1','UNAUTHORIZED','mcpConfig.validation.apiKeyRequired','defineProperty','apiKey','启用身份验证'];_0x2f0c=function(){return _0x31d308;};return _0x2f0c();}const dn={[_0xbead22[_0x5b9bc3(0x2e1)]]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};function _0x4f4d(_0x276b7e,_0x257653){_0x276b7e=_0x276b7e-0x199;const _0x2f0ce7=_0x2f0c();let _0x4f4dfd=_0x2f0ce7[_0x276b7e];return _0x4f4dfd;}var gn=Object[_0x5b9bc3(0x2a5)],pn=(_0x2f11bd,_0xe21e82,_0x3ae24c,_0x2e43b6)=>{const _0x79bd16=_0x5b9bc3;for(var _0x184f3f=_0x2e43b6>0x1?void 0x0:_0x2e43b6?gn(_0xe21e82,_0x3ae24c):_0xe21e82,_0x6ebe10=_0x2f11bd[_0x79bd16(0x1d6)]-0x1,_0x4b97f2;_0x6ebe10>=0x0;_0x6ebe10--)(_0x4b97f2=_0x2f11bd[_0x6ebe10])&&(_0x184f3f=_0x4b97f2(_0x184f3f)||_0x184f3f);return _0x184f3f;},re=(_0x6ff528,_0x183fc7)=>(_0x582b02,_0x4079d7)=>_0x183fc7(_0x582b02,_0x4079d7,_0x6ff528);let D=class extends _0x38c81e{constructor(_0x27edb2,_0x12c3f1){const _0x276c4d=_0x5b9bc3;super(),this['_commandService']=_0x27edb2,this[_0x276c4d(0x280)]=_0x12c3f1,this['_initializeCommands'](),this[_0x276c4d(0x1f7)]();}[_0x5b9bc3(0x273)](){const _0x2ce317=_0x5b9bc3;[V][_0x2ce317(0x2fa)](_0x2ef7b5=>{const _0x3a4292=_0x2ce317;this[_0x3a4292(0x245)](this['_commandService']['registerCommand'](_0x2ef7b5));});}[_0x5b9bc3(0x1f7)](){const _0x25628c=_0x5b9bc3;this['_menuManagerService'][_0x25628c(0x2ec)](dn);}};D=pn([re(0x0,_0x30ffad),re(0x1,_0x1face2)],D);const Mn={'mcpStatus':{'disconnected':_0x5b9bc3(0x201),'connecting':'MCP\x20Connecting...','connected':_0x5b9bc3(0x264),'failed':_0x5b9bc3(0x1c0),'retrying':_0x5b9bc3(0x2bc),'unknown':_0x5b9bc3(0x24d),'unauthorized':_0x5b9bc3(0x246),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x5b9bc3(0x1c9),'maxRetriesExceeded':_0x5b9bc3(0x1d0),'clickToConnect':_0x5b9bc3(0x2bf),'clickToConfigure':_0x5b9bc3(0x279)},'mcpConfig':{'title':_0x5b9bc3(0x1de),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x5b9bc3(0x226),'apiKeyPlaceholder':_0x5b9bc3(0x2ac),'apiKeyHint':_0x5b9bc3(0x1be),'enableAuth':_0x5b9bc3(0x2e3),'enableAuthHint':_0x5b9bc3(0x2a6),'connectionInfo':_0x5b9bc3(0x263),'mcpClientConfig':_0x5b9bc3(0x263),'configInstructions':_0x5b9bc3(0x250),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x5b9bc3(0x1ba),'configStep2':_0x5b9bc3(0x1ee),'configStep3':_0x5b9bc3(0x1fe),'sessionId':_0x5b9bc3(0x2e5),'sessionIdDescription':_0x5b9bc3(0x20e),'authorizationDescription':_0x5b9bc3(0x27e),'configParameters':_0x5b9bc3(0x1b4),'maxRetries':_0x5b9bc3(0x2a0),'save':_0x5b9bc3(0x26f),'saving':_0x5b9bc3(0x242),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x5b9bc3(0x1a4),'configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x5b9bc3(0x1b3),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0x5b9bc3(0x2a1),'getStarted':_0x5b9bc3(0x236)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x5b9bc3(0x1e0),'invalidConfig':_0x5b9bc3(0x26b),'invalidApiKey':_0x5b9bc3(0x2cf)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x5b9bc3(0x2d6),'connected':_0x5b9bc3(0x1a2),'failed':_0x5b9bc3(0x27f),'retrying':_0x5b9bc3(0x2b4)},'connectionError':{'unauthorized':_0x5b9bc3(0x1d3),'sessionOccupied':_0x5b9bc3(0x1d5),'networkError':_0x5b9bc3(0x1d4),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},An={'mcpStatus':{'disconnected':_0x5b9bc3(0x2c9),'connecting':_0x5b9bc3(0x23d),'connected':_0x5b9bc3(0x240),'failed':_0x5b9bc3(0x1bf),'retrying':_0x5b9bc3(0x2cb),'unknown':_0x5b9bc3(0x1d7),'unauthorized':_0x5b9bc3(0x283),'sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':_0x5b9bc3(0x289),'maxRetriesExceeded':_0x5b9bc3(0x28e),'clickToConnect':_0x5b9bc3(0x271),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x5b9bc3(0x1f2),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x5b9bc3(0x19d),'apiKeyPlaceholder':_0x5b9bc3(0x276),'apiKeyHint':_0x5b9bc3(0x27a),'enableAuth':_0x5b9bc3(0x2c6),'enableAuthHint':_0x5b9bc3(0x2b7),'connectionInfo':_0x5b9bc3(0x299),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':_0x5b9bc3(0x1c3),'configStepTitle':_0x5b9bc3(0x1b8),'configStep1':_0x5b9bc3(0x20f),'configStep2':_0x5b9bc3(0x1b1),'configStep3':_0x5b9bc3(0x202),'sessionId':'会话ID','sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0x5b9bc3(0x1d2),'configParameters':_0x5b9bc3(0x1ab),'maxRetries':_0x5b9bc3(0x1bc),'save':_0x5b9bc3(0x285),'saving':'保存中...','note1':_0x5b9bc3(0x2fb),'note2':_0x5b9bc3(0x1c5),'configSaved':_0x5b9bc3(0x294),'configError':_0x5b9bc3(0x2e7),'apiApplyInfo':{'title':_0x5b9bc3(0x2ae),'description':_0x5b9bc3(0x244),'univerAiLabel':_0x5b9bc3(0x1f4),'getStarted':_0x5b9bc3(0x1bd)},'validation':{'apiKeyRequired':_0x5b9bc3(0x21e),'apiKeyTooShort':_0x5b9bc3(0x211),'invalidConfig':_0x5b9bc3(0x2b9),'invalidApiKey':_0x5b9bc3(0x2e0)},'connectionStatus':{'disconnected':'未连接','connecting':_0x5b9bc3(0x25a),'connected':_0x5b9bc3(0x247),'failed':_0x5b9bc3(0x2ef),'retrying':_0x5b9bc3(0x26e)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x5b9bc3(0x2b8),'networkError':_0x5b9bc3(0x206),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var fn=Object[_0x5b9bc3(0x2c4)],hn=Object[_0x5b9bc3(0x2a5)],Cn=(_0xfd7d6e,_0x46d87d,_0x3f772b)=>_0x46d87d in _0xfd7d6e?fn(_0xfd7d6e,_0x46d87d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3f772b}):_0xfd7d6e[_0x46d87d]=_0x3f772b,mn=(_0x1e7f80,_0x21c79a,_0x3ae33e,_0x5bcdb8)=>{const _0x19c8a0=_0x5b9bc3;for(var _0x35af17=_0x5bcdb8>0x1?void 0x0:_0x5bcdb8?hn(_0x21c79a,_0x3ae33e):_0x21c79a,_0x114675=_0x1e7f80[_0x19c8a0(0x1d6)]-0x1,_0x25fc6d;_0x114675>=0x0;_0x114675--)(_0x25fc6d=_0x1e7f80[_0x114675])&&(_0x35af17=_0x25fc6d(_0x35af17)||_0x35af17);return _0x35af17;},P=(_0x5be0b6,_0x17a30a)=>(_0x189334,_0x10e5f1)=>_0x17a30a(_0x189334,_0x10e5f1,_0x5be0b6),_n=(_0x5ebbe7,_0x1df81d,_0x4761c0)=>Cn(_0x5ebbe7,_0x1df81d+'',_0x4761c0);let j=class extends _0x2065f8{constructor(_0x109fd6=ie,_0x1ce77e,_0x4549a9,_0x2d751d,_0x3b90d6,_0x4778d8){const _0x5dd24d=_0x5b9bc3;super(),this[_0x5dd24d(0x1c6)]=_0x109fd6,this[_0x5dd24d(0x29c)]=_0x1ce77e,this[_0x5dd24d(0x2ba)]=_0x4549a9,this[_0x5dd24d(0x216)]=_0x2d751d,this[_0x5dd24d(0x2bb)]=_0x3b90d6,this[_0x5dd24d(0x29f)]=_0x4778d8;const {..._0x499055}=_0x286fb1({},ie,this[_0x5dd24d(0x1c6)]);this[_0x5dd24d(0x2ba)][_0x5dd24d(0x2a2)](y,_0x499055);}async[_0x5b9bc3(0x1a9)](){const _0x6b4880=_0x5b9bc3,_0x585730=[[O],[I],[D]];this[_0x6b4880(0x29c)][_0x6b4880(0x2dc)](_0x447220)||_0x585730[_0x6b4880(0x233)]([_0x447220,{'useClass':_0x4200bf}]),_0x585730[_0x6b4880(0x2fa)](_0x1ab5df=>this[_0x6b4880(0x29c)][_0x6b4880(0x23a)](_0x1ab5df)),this[_0x6b4880(0x29c)]['get'](O),this[_0x6b4880(0x29c)][_0x6b4880(0x2da)](I),this[_0x6b4880(0x29c)][_0x6b4880(0x2da)](D);}};_n(j,_0x5b9bc3(0x2c8),'MCP_UI_PLUGIN'),j=mn([_0x617d51(_0x4b8cc0),P(0x1,_0x19a565(_0x4022b1)),P(0x2,_0x8e1c04),P(0x3,_0x32a2ba),P(0x4,_0x4c2eba),P(0x5,_0x19a565(_0x5acff8))],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 _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};
|
package/lib/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x22e966=_0x1c8f;function _0x1c8f(_0x147126,_0x36660a){_0x147126=_0x147126-0x178;const _0x1f1a37=_0x1f1a();let _0x1c8fa4=_0x1f1a37[_0x147126];return _0x1c8fa4;}(function(_0x1fbaa5,_0x5934f2){const _0x553a71=_0x1c8f,_0x1497a5=_0x1fbaa5();while(!![]){try{const _0x327a6a=parseInt(_0x553a71(0x186))/0x1+parseInt(_0x553a71(0x17e))/0x2+parseInt(_0x553a71(0x18b))/0x3*(-parseInt(_0x553a71(0x1a4))/0x4)+parseInt(_0x553a71(0x18f))/0x5+-parseInt(_0x553a71(0x182))/0x6+-parseInt(_0x553a71(0x1a0))/0x7+-parseInt(_0x553a71(0x189))/0x8*(-parseInt(_0x553a71(0x195))/0x9);if(_0x327a6a===_0x5934f2)break;else _0x1497a5['push'](_0x1497a5['shift']());}catch(_0x2843e4){_0x1497a5['push'](_0x1497a5['shift']());}}}(_0x1f1a,0x3edc5));const e={'mcpStatus':{'disconnected':_0x22e966(0x181),'connecting':_0x22e966(0x180),'connected':_0x22e966(0x18c),'failed':_0x22e966(0x1a8),'retrying':_0x22e966(0x192),'unknown':_0x22e966(0x17c),'unauthorized':_0x22e966(0x188),'sessionOccupied':_0x22e966(0x190),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x22e966(0x193),'clickToConnect':_0x22e966(0x17a),'clickToConfigure':_0x22e966(0x196)},'mcpConfig':{'title':_0x22e966(0x185),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':_0x22e966(0x17f),'apiKeyHint':_0x22e966(0x19c),'enableAuth':_0x22e966(0x187),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x22e966(0x1a2),'configInstructions':_0x22e966(0x18e),'configStepTitle':_0x22e966(0x19e),'configStep1':_0x22e966(0x18a),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x22e966(0x198),'sessionId':_0x22e966(0x194),'sessionIdDescription':_0x22e966(0x183),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x22e966(0x184),'maxRetries':_0x22e966(0x19a),'save':_0x22e966(0x17d),'saving':_0x22e966(0x1a5),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x22e966(0x1a6),'configSaved':_0x22e966(0x1a7),'configError':_0x22e966(0x19f),'apiApplyInfo':{'title':_0x22e966(0x197),'description':_0x22e966(0x1a9),'univerAiLabel':_0x22e966(0x1a3),'getStarted':_0x22e966(0x191)},'validation':{'apiKeyRequired':_0x22e966(0x17b),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x22e966(0x18d)},'connectionStatus':{'disconnected':_0x22e966(0x178),'connecting':_0x22e966(0x19d),'connected':_0x22e966(0x19b),'failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'unauthorized':_0x22e966(0x199),'sessionOccupied':_0x22e966(0x179),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x22e966(0x1a1)}}},n=e;export{n as default};function _0x1f1a(){const _0x36e9ca=['Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Max\x20Retries','Connected','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Connecting...','Configuration\x20Steps:','Failed\x20to\x20save\x20configuration','2907863GgQtDM','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Client\x20Configuration','Univer\x20AI\x20Console','16vsamdr','Saving...','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Configuration\x20saved\x20successfully','MCP\x20Connection\x20Failed','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Disconnected','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Click\x20to\x20connect\x20MCP','API\x20key\x20is\x20required','MCP\x20Unknown\x20Status','Save\x20Configuration','454840TjaEKC','Enter\x20your\x20API\x20key','MCP\x20Connecting...','MCP\x20Disconnected','2188536ubuEvl','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configuration\x20Parameters:','MCP\x20Configuration','96973TXcsCF','Enable\x20Authentication','MCP:\x20Unauthorized','4422160CHMwKZ','Copy\x20the\x20JSON\x20configuration\x20below','14205LFxIZF','MCP\x20Connected','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','897095YAcaZG','MCP:\x20Session\x20ID\x20Occupied','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Retrying...','MCP:\x20Max\x20Retries\x20Exceeded','Session\x20ID','9IfQIXV','Click\x20to\x20configure\x20MCP','What\x20is\x20API\x20Key?'];_0x1f1a=function(){return _0x36e9ca;};return _0x1f1a();}
|
package/lib/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x3cb048=_0x7d4e;(function(_0x2ecc2d,_0x41baa9){const _0x387eec=_0x7d4e,_0x445a29=_0x2ecc2d();while(!![]){try{const _0x12d950=-parseInt(_0x387eec(0x188))/0x1*(-parseInt(_0x387eec(0x16c))/0x2)+parseInt(_0x387eec(0x17c))/0x3+-parseInt(_0x387eec(0x185))/0x4*(-parseInt(_0x387eec(0x165))/0x5)+parseInt(_0x387eec(0x163))/0x6*(-parseInt(_0x387eec(0x167))/0x7)+parseInt(_0x387eec(0x15b))/0x8*(parseInt(_0x387eec(0x187))/0x9)+parseInt(_0x387eec(0x17d))/0xa*(parseInt(_0x387eec(0x178))/0xb)+-parseInt(_0x387eec(0x182))/0xc*(parseInt(_0x387eec(0x16f))/0xd);if(_0x12d950===_0x41baa9)break;else _0x445a29['push'](_0x445a29['shift']());}catch(_0x5c69b4){_0x445a29['push'](_0x445a29['shift']());}}}(_0x3119,0xcec2e));function _0x3119(){const _0xe2baf7=['Max\x20Retries','MCP:\x20Network\x20Error','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Connection\x20Failed','Failed\x20to\x20save\x20configuration','30CwAQtz','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','15gWCDKo','Enable\x20authentication\x20for\x20secure\x20connections','1427062aBrCYC','Configuration\x20saved\x20successfully','API\x20key\x20is\x20required','Copy\x20the\x20JSON\x20configuration\x20below','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','314112dkVFbO','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Configuration','13yDvnBT','MCP:\x20Unauthorized','Enable\x20Authentication','Click\x20to\x20configure\x20MCP','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Session\x20ID','MCP:\x20Session\x20ID\x20Occupied','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','781sodPNn','API\x20Key','Retrying...','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','4844862NBsEpL','77710FiRGNx','MCP\x20Connecting...','Connection\x20Failed','MCP\x20Connected','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','33612612uAEwBT','Configuration\x20Parameters:','Disconnected','417828yLlaET','Enter\x20your\x20API\x20key','9bWBYDn','7MKThMt','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Client\x20Configuration','Saving...','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Unknown\x20Status','Connecting...','8702536RmOUHc','Configuration\x20Steps:'];_0x3119=function(){return _0xe2baf7;};return _0x3119();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x3cb048(0x17e),'connected':_0x3cb048(0x180),'failed':_0x3cb048(0x161),'retrying':'MCP\x20Retrying...','unknown':_0x3cb048(0x159),'unauthorized':_0x3cb048(0x170),'sessionOccupied':_0x3cb048(0x175),'networkError':_0x3cb048(0x15e),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x3cb048(0x172)},'mcpConfig':{'title':_0x3cb048(0x16e),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x3cb048(0x179),'apiKeyPlaceholder':_0x3cb048(0x186),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x3cb048(0x171),'enableAuthHint':_0x3cb048(0x166),'connectionInfo':_0x3cb048(0x18a),'mcpClientConfig':_0x3cb048(0x18a),'configInstructions':_0x3cb048(0x160),'configStepTitle':_0x3cb048(0x15c),'configStep1':_0x3cb048(0x16a),'configStep2':_0x3cb048(0x17b),'configStep3':_0x3cb048(0x176),'sessionId':_0x3cb048(0x174),'sessionIdDescription':_0x3cb048(0x173),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x3cb048(0x183),'maxRetries':_0x3cb048(0x15d),'save':'Save\x20Configuration','saving':_0x3cb048(0x157),'note1':_0x3cb048(0x177),'note2':_0x3cb048(0x16b),'configSaved':_0x3cb048(0x168),'configError':_0x3cb048(0x162),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x3cb048(0x164),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x3cb048(0x16d)},'validation':{'apiKeyRequired':_0x3cb048(0x169),'apiKeyTooShort':_0x3cb048(0x158),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x3cb048(0x189)},'connectionStatus':{'disconnected':_0x3cb048(0x184),'connecting':_0x3cb048(0x15a),'connected':'Connected','failed':_0x3cb048(0x17f),'retrying':_0x3cb048(0x17a)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x3cb048(0x15f),'maxRetriesExceeded':_0x3cb048(0x181)}}};function _0x7d4e(_0x1c0865,_0x318ef7){_0x1c0865=_0x1c0865-0x157;const _0x311990=_0x3119();let _0x7d4e7d=_0x311990[_0x1c0865];return _0x7d4e7d;}export{e as default};
|
package/lib/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x2af45f=_0x4b79;function _0x4b79(_0x4c45d8,_0x3f3ece){_0x4c45d8=_0x4c45d8-0x156;const _0x44d30d=_0x44d3();let _0x4b79f0=_0x44d30d[_0x4c45d8];return _0x4b79f0;}(function(_0x326230,_0x4fbd36){const _0x2ccac7=_0x4b79,_0x4f58c4=_0x326230();while(!![]){try{const _0x483292=-parseInt(_0x2ccac7(0x15c))/0x1*(parseInt(_0x2ccac7(0x182))/0x2)+-parseInt(_0x2ccac7(0x17a))/0x3*(parseInt(_0x2ccac7(0x187))/0x4)+parseInt(_0x2ccac7(0x160))/0x5*(-parseInt(_0x2ccac7(0x165))/0x6)+-parseInt(_0x2ccac7(0x174))/0x7+-parseInt(_0x2ccac7(0x17c))/0x8*(-parseInt(_0x2ccac7(0x172))/0x9)+parseInt(_0x2ccac7(0x16c))/0xa+-parseInt(_0x2ccac7(0x173))/0xb*(-parseInt(_0x2ccac7(0x169))/0xc);if(_0x483292===_0x4fbd36)break;else _0x4f58c4['push'](_0x4f58c4['shift']());}catch(_0x167b2f){_0x4f58c4['push'](_0x4f58c4['shift']());}}}(_0x44d3,0x46019));const e={'mcpStatus':{'disconnected':_0x2af45f(0x177),'connecting':_0x2af45f(0x185),'connected':_0x2af45f(0x186),'failed':_0x2af45f(0x170),'retrying':_0x2af45f(0x16e),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x2af45f(0x157),'sessionOccupied':_0x2af45f(0x18d),'networkError':_0x2af45f(0x188),'maxRetriesExceeded':_0x2af45f(0x15a),'clickToConnect':_0x2af45f(0x184),'clickToConfigure':_0x2af45f(0x17d)},'mcpConfig':{'title':_0x2af45f(0x17f),'description':_0x2af45f(0x180),'apiKey':_0x2af45f(0x171),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x2af45f(0x15b),'enableAuth':_0x2af45f(0x168),'enableAuthHint':_0x2af45f(0x15e),'connectionInfo':_0x2af45f(0x167),'mcpClientConfig':_0x2af45f(0x167),'configInstructions':_0x2af45f(0x17e),'configStepTitle':_0x2af45f(0x15d),'configStep1':_0x2af45f(0x161),'configStep2':_0x2af45f(0x16f),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x2af45f(0x176),'sessionIdDescription':_0x2af45f(0x16b),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x2af45f(0x156),'maxRetries':_0x2af45f(0x18c),'save':_0x2af45f(0x164),'saving':_0x2af45f(0x179),'note1':_0x2af45f(0x163),'note2':_0x2af45f(0x181),'configSaved':_0x2af45f(0x178),'configError':_0x2af45f(0x183),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x2af45f(0x16a),'univerAiLabel':_0x2af45f(0x16d),'getStarted':_0x2af45f(0x15f)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x2af45f(0x189),'invalidConfig':_0x2af45f(0x18a),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x2af45f(0x158),'connecting':'Connecting...','connected':_0x2af45f(0x166),'failed':_0x2af45f(0x175),'retrying':_0x2af45f(0x162)},'connectionError':{'unauthorized':_0x2af45f(0x18b),'sessionOccupied':_0x2af45f(0x159),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x2af45f(0x17b)}}},n=e;export{n as default};function _0x44d3(){const _0x430573=['Save\x20Configuration','27444guvaiq','Connected','MCP\x20Client\x20Configuration','Enable\x20Authentication','24396VcRZjO','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','5334980kUsnwF','Univer\x20AI\x20Console','MCP\x20Retrying...','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Connection\x20Failed','API\x20Key','178290JmYJKB','3278aNqAmT','781228icYZOp','Connection\x20Failed','Session\x20ID','MCP\x20Disconnected','Configuration\x20saved\x20successfully','Saving...','892176eEpOOL','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','80rbFsXq','Click\x20to\x20configure\x20MCP','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','166qxaFYa','Failed\x20to\x20save\x20configuration','Click\x20to\x20connect\x20MCP','MCP\x20Connecting...','MCP\x20Connected','4lYDvZR','MCP:\x20Network\x20Error','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Invalid\x20configuration','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Max\x20Retries','MCP:\x20Session\x20ID\x20Occupied','Configuration\x20Parameters:','MCP:\x20Unauthorized','Disconnected','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP:\x20Max\x20Retries\x20Exceeded','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','3047MLpSeX','Configuration\x20Steps:','Enable\x20authentication\x20for\x20secure\x20connections','Get\x20your\x20API\x20key\x20in\x20seconds','425nyRYDu','Copy\x20the\x20JSON\x20configuration\x20below','Retrying...','Configuration\x20changes\x20will\x20take\x20effect\x20immediately'];_0x44d3=function(){return _0x430573;};return _0x44d3();}
|
package/lib/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x5a16d0=_0x1f3b;(function(_0x4d91cd,_0x5a1b89){const _0x831008=_0x1f3b,_0x195b78=_0x4d91cd();while(!![]){try{const _0x40a60d=parseInt(_0x831008(0xaa))/0x1*(-parseInt(_0x831008(0xb6))/0x2)+parseInt(_0x831008(0xaf))/0x3*(parseInt(_0x831008(0xd0))/0x4)+-parseInt(_0x831008(0xc3))/0x5*(-parseInt(_0x831008(0xb9))/0x6)+-parseInt(_0x831008(0xb5))/0x7*(parseInt(_0x831008(0xd6))/0x8)+parseInt(_0x831008(0xd1))/0x9+parseInt(_0x831008(0xcb))/0xa+-parseInt(_0x831008(0xc6))/0xb;if(_0x40a60d===_0x5a1b89)break;else _0x195b78['push'](_0x195b78['shift']());}catch(_0x26dd01){_0x195b78['push'](_0x195b78['shift']());}}}(_0x2488,0xf0e36));const e={'mcpStatus':{'disconnected':_0x5a16d0(0xcf),'connecting':_0x5a16d0(0xa8),'connected':_0x5a16d0(0xce),'failed':_0x5a16d0(0xa9),'retrying':_0x5a16d0(0xbd),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x5a16d0(0xd4),'sessionOccupied':_0x5a16d0(0xca),'networkError':_0x5a16d0(0xb0),'maxRetriesExceeded':_0x5a16d0(0xb1),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x5a16d0(0xc4),'description':_0x5a16d0(0xd9),'apiKey':_0x5a16d0(0xa7),'apiKeyPlaceholder':_0x5a16d0(0xd2),'apiKeyHint':_0x5a16d0(0xd3),'enableAuth':_0x5a16d0(0xad),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x5a16d0(0xb4),'mcpClientConfig':_0x5a16d0(0xb4),'configInstructions':_0x5a16d0(0xb2),'configStepTitle':_0x5a16d0(0xc5),'configStep1':_0x5a16d0(0xba),'configStep2':_0x5a16d0(0xbb),'configStep3':_0x5a16d0(0xbe),'sessionId':_0x5a16d0(0xab),'sessionIdDescription':_0x5a16d0(0xb8),'authorizationDescription':_0x5a16d0(0xc7),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x5a16d0(0xac),'save':_0x5a16d0(0xbc),'saving':'Saving...','note1':_0x5a16d0(0xc2),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x5a16d0(0xb3),'configError':_0x5a16d0(0xc9),'apiApplyInfo':{'title':_0x5a16d0(0xbf),'description':_0x5a16d0(0xda),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x5a16d0(0xd5)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x5a16d0(0xb7),'invalidConfig':_0x5a16d0(0xae),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x5a16d0(0xc1),'connecting':'Connecting...','connected':_0x5a16d0(0xc8),'failed':_0x5a16d0(0xd7),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x5a16d0(0xcd),'sessionOccupied':_0x5a16d0(0xcc),'networkError':_0x5a16d0(0xd8),'maxRetriesExceeded':_0x5a16d0(0xc0)}}},n=e;function _0x1f3b(_0x348dbf,_0x54ab5d){_0x348dbf=_0x348dbf-0xa7;const _0x24882d=_0x2488();let _0x1f3b62=_0x24882d[_0x348dbf];return _0x1f3b62;}function _0x2488(){const _0x2ece68=['MCP\x20Configuration','Configuration\x20Steps:','635624PokmkM','API\x20key\x20with\x20Bearer\x20prefix.','Connected','Failed\x20to\x20save\x20configuration','MCP:\x20Session\x20ID\x20Occupied','1413140VcRgtv','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Connected','MCP\x20Disconnected','4dUWvmf','8769942ZFqKAW','Enter\x20your\x20API\x20key','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP:\x20Unauthorized','Get\x20your\x20API\x20key\x20in\x20seconds','248yYnKxp','Connection\x20Failed','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','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','MCP\x20Connecting...','MCP\x20Connection\x20Failed','25fnrhCZ','Session\x20ID','Max\x20Retries','Enable\x20Authentication','Invalid\x20configuration','1976757nTCndR','MCP:\x20Network\x20Error','MCP:\x20Max\x20Retries\x20Exceeded','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Configuration\x20saved\x20successfully','MCP\x20Client\x20Configuration','261737cRUhiA','23574OCAUYi','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','4341522CTaFgO','Copy\x20the\x20JSON\x20configuration\x20below','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Save\x20Configuration','MCP\x20Retrying...','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','What\x20is\x20API\x20Key?','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Disconnected','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','5FsLebr'];_0x2488=function(){return _0x2ece68;};return _0x2488();}export{n as default};
|
package/lib/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x1628(_0x439796,_0x3bd7f9){_0x439796=_0x439796-0x97;const _0x1c1f72=_0x1c1f();let _0x162858=_0x1c1f72[_0x439796];return _0x162858;}const _0x8d494=_0x1628;(function(_0x30f9a5,_0x28638c){const _0x1c1317=_0x1628,_0x510fc4=_0x30f9a5();while(!![]){try{const _0x4c10a6=parseInt(_0x1c1317(0xbd))/0x1*(-parseInt(_0x1c1317(0xb6))/0x2)+-parseInt(_0x1c1317(0xac))/0x3+parseInt(_0x1c1317(0xa3))/0x4*(parseInt(_0x1c1317(0xb4))/0x5)+parseInt(_0x1c1317(0xa7))/0x6*(-parseInt(_0x1c1317(0xaf))/0x7)+parseInt(_0x1c1317(0xa0))/0x8+parseInt(_0x1c1317(0x9b))/0x9*(parseInt(_0x1c1317(0x9d))/0xa)+-parseInt(_0x1c1317(0xb1))/0xb*(parseInt(_0x1c1317(0xbf))/0xc);if(_0x4c10a6===_0x28638c)break;else _0x510fc4['push'](_0x510fc4['shift']());}catch(_0x22ba6f){_0x510fc4['push'](_0x510fc4['shift']());}}}(_0x1c1f,0x7ef8a));function _0x1c1f(){const _0x5a653d=['5szEQcb','MCP\x20Connected','134030sWyrIr','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','API\x20key\x20is\x20required','MCP:\x20Unauthorized','Enter\x20your\x20API\x20key','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','2yIKOij','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','120nhNfNR','Connection\x20Failed','MCP\x20Retrying...','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Client\x20Configuration','Copy\x20the\x20JSON\x20configuration\x20below','Connecting...','What\x20is\x20API\x20Key?','MCP:\x20Network\x20Error','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','Connected','Configuration\x20Parameters:','18uMawTn','Session\x20ID','3782360DEROry','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Max\x20Retries','6096904LqEmNW','Click\x20to\x20configure\x20MCP','MCP\x20Configuration','2418796VHSVTf','API\x20key\x20with\x20Bearer\x20prefix.','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','API\x20Key','6gcCaOm','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP:\x20Max\x20Retries\x20Exceeded','Disconnected','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','2990217uNAhjW','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Enable\x20authentication\x20for\x20secure\x20connections','3252417DdCuTi','MCP\x20Connection\x20Failed','8591JTOZme','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Click\x20to\x20connect\x20MCP'];_0x1c1f=function(){return _0x5a653d;};return _0x1c1f();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x8d494(0xb5),'failed':_0x8d494(0xb0),'retrying':_0x8d494(0xc1),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x8d494(0xb9),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x8d494(0xc7),'maxRetriesExceeded':_0x8d494(0xa9),'clickToConnect':_0x8d494(0xb3),'clickToConfigure':_0x8d494(0xa1)},'mcpConfig':{'title':_0x8d494(0xa2),'description':_0x8d494(0xbe),'apiKey':_0x8d494(0xa6),'apiKeyPlaceholder':_0x8d494(0xba),'apiKeyHint':_0x8d494(0xc2),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x8d494(0xae),'connectionInfo':_0x8d494(0xc3),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x8d494(0xbc),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x8d494(0xc4),'configStep2':_0x8d494(0xa8),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x8d494(0x9c),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x8d494(0xa4),'configParameters':_0x8d494(0x9a),'maxRetries':_0x8d494(0x9f),'save':'Save\x20Configuration','saving':'Saving...','note1':_0x8d494(0xb2),'note2':_0x8d494(0xb7),'configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x8d494(0xc6),'description':_0x8d494(0x97),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x8d494(0xb8),'apiKeyTooShort':_0x8d494(0x9e),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x8d494(0xa5)},'connectionStatus':{'disconnected':_0x8d494(0xaa),'connecting':_0x8d494(0xc5),'connected':_0x8d494(0x99),'failed':_0x8d494(0xc0),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x8d494(0xab),'sessionOccupied':_0x8d494(0x98),'networkError':_0x8d494(0xad),'maxRetriesExceeded':_0x8d494(0xbb)}}},n=e;export{n as default};
|
package/lib/locale/ja-JP.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x447d95=_0x8864;(function(_0xf0cfa1,_0x1eba3e){const _0x140ffe=_0x8864,_0x41aacb=_0xf0cfa1();while(!![]){try{const _0x5ef563=parseInt(_0x140ffe(0x1c3))/0x1+parseInt(_0x140ffe(0x1c9))/0x2*(-parseInt(_0x140ffe(0x1cb))/0x3)+parseInt(_0x140ffe(0x1d1))/0x4+-parseInt(_0x140ffe(0x1cf))/0x5*(parseInt(_0x140ffe(0x1d7))/0x6)+-parseInt(_0x140ffe(0x1da))/0x7*(-parseInt(_0x140ffe(0x1c5))/0x8)+-parseInt(_0x140ffe(0x1ec))/0x9*(-parseInt(_0x140ffe(0x1ef))/0xa)+-parseInt(_0x140ffe(0x1f5))/0xb;if(_0x5ef563===_0x1eba3e)break;else _0x41aacb['push'](_0x41aacb['shift']());}catch(_0x312053){_0x41aacb['push'](_0x41aacb['shift']());}}}(_0x3f11,0xab2a0));function _0x8864(_0x3c95b1,_0x4df073){_0x3c95b1=_0x3c95b1-0x1c3;const _0x3f1197=_0x3f11();let _0x88643a=_0x3f1197[_0x3c95b1];return _0x88643a;}function _0x3f11(){const _0x9c2659=['MCPクライアントの設定ファイルに設定を追加','MCP\x20接続失敗','認証に失敗しました。APIキーを確認してください','223054jGxzaj','クリックしてMCPに接続','288OSVckB','MCPを設定してAIでスプレッドシートを操作','ネットワーク接続エラー。インターネット接続を確認してください','MCP:\x20ネットワークエラー','2bQiBPk','APIキーはローカルストレージに安全に保存されます','3749964TofIDF','APIキーを入力してください','接続失敗','設定が正常に保存されました','210LuToJB','再試行中...','5515908pnQeKW','Univer\x20AIコンソール','MCP:\x20最大再試行回数を超過','APIキーは10文字以上である必要があります','設定を保存','設定手順:','17538OjQbxr','MCP\x20接続済み','MCPクライアントの設定に次の設定を追加してください:','3507rLXdDv','MCP\x20不明な状態','最大再試行回数','接続済み','MCPクライアントを再起動して設定を適用','設定パラメータ:','Bearerプレフィックス付きのAPIキー。','セッションIDが現在使用中です。後でもう一度お試しください','MCP\x20未接続','MCP設定','MCP:\x20セッションIDが使用中','認証を有効にする','APIキーは必須です','未接続','セッションID','APIキー','MCP\x20接続中...','MCPクライアント設定','6769647YdEvhM','保存中...','無効な設定','10sOrtBG','設定の変更は直ちに有効になります','設定の保存に失敗しました','セキュアな接続のために認証を有効にする','APIキーはこのブラウザのローカルに保存されます','以下のJSON設定をコピー','3282488rkrsKR'];_0x3f11=function(){return _0x9c2659;};return _0x3f11();}const e={'mcpStatus':{'disconnected':_0x447d95(0x1e2),'connecting':_0x447d95(0x1ea),'connected':_0x447d95(0x1d8),'failed':_0x447d95(0x1f7),'retrying':'MCP\x20再試行中...','unknown':_0x447d95(0x1db),'unauthorized':'MCP:\x20認証されていません','sessionOccupied':_0x447d95(0x1e4),'networkError':_0x447d95(0x1c8),'maxRetriesExceeded':_0x447d95(0x1d3),'clickToConnect':_0x447d95(0x1c4),'clickToConfigure':'クリックしてMCPを設定'},'mcpConfig':{'title':_0x447d95(0x1e3),'description':_0x447d95(0x1c6),'apiKey':_0x447d95(0x1e9),'apiKeyPlaceholder':_0x447d95(0x1cc),'apiKeyHint':_0x447d95(0x1f3),'enableAuth':_0x447d95(0x1e5),'enableAuthHint':_0x447d95(0x1f2),'connectionInfo':_0x447d95(0x1eb),'mcpClientConfig':_0x447d95(0x1eb),'configInstructions':_0x447d95(0x1d9),'configStepTitle':_0x447d95(0x1d6),'configStep1':_0x447d95(0x1f4),'configStep2':_0x447d95(0x1f6),'configStep3':_0x447d95(0x1de),'sessionId':_0x447d95(0x1e8),'sessionIdDescription':'一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','authorizationDescription':_0x447d95(0x1e0),'configParameters':_0x447d95(0x1df),'maxRetries':_0x447d95(0x1dc),'save':_0x447d95(0x1d5),'saving':_0x447d95(0x1ed),'note1':_0x447d95(0x1f0),'note2':_0x447d95(0x1ca),'configSaved':_0x447d95(0x1ce),'configError':_0x447d95(0x1f1),'apiApplyInfo':{'title':'APIキーとは?','description':'APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','univerAiLabel':_0x447d95(0x1d2),'getStarted':'数秒でAPIキーを取得'},'validation':{'apiKeyRequired':_0x447d95(0x1e6),'apiKeyTooShort':_0x447d95(0x1d4),'invalidConfig':_0x447d95(0x1ee),'invalidApiKey':'無効なAPIキーです。キーが正しいか確認してください'},'connectionStatus':{'disconnected':_0x447d95(0x1e7),'connecting':'接続中...','connected':_0x447d95(0x1dd),'failed':_0x447d95(0x1cd),'retrying':_0x447d95(0x1d0)},'connectionError':{'unauthorized':_0x447d95(0x1f8),'sessionOccupied':_0x447d95(0x1e1),'networkError':_0x447d95(0x1c7),'maxRetriesExceeded':'最大再試行回数を超過しました。後でもう一度お試しください'}}};export{e as default};
|