@univerjs-pro/mcp-ui 0.10.12-nightly.202510251119 → 0.10.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +7 -7
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x1656c9=_0x21c2;(function(_0x5b3c3a,_0x3219a7){const _0x1d6e94=_0x21c2,_0x5d4470=_0x5b3c3a();while(!![]){try{const _0x535501=parseInt(_0x1d6e94(0x146))/0x1+-parseInt(_0x1d6e94(0x9e))/0x2*(parseInt(_0x1d6e94(0x1f9))/0x3)+parseInt(_0x1d6e94(0x18d))/0x4+parseInt(_0x1d6e94(0x1f5))/0x5*(parseInt(_0x1d6e94(0xfe))/0x6)+parseInt(_0x1d6e94(0x147))/0x7+parseInt(_0x1d6e94(0xd2))/0x8+parseInt(_0x1d6e94(0x159))/0x9*(-parseInt(_0x1d6e94(0xd4))/0xa);if(_0x535501===_0x3219a7)break;else _0x5d4470['push'](_0x5d4470['shift']());}catch(_0x2affb5){_0x5d4470['push'](_0x5d4470['shift']());}}}(_0x506b,0xc6b60));var ae=Object[_0x1656c9(0x123)],le=(_0x3ef393,_0x20df94,_0x2580af)=>_0x20df94 in _0x3ef393?ae(_0x3ef393,_0x20df94,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2580af}):_0x3ef393[_0x20df94]=_0x2580af,I=(_0x5c5c33,_0x3a62f2,_0x5b1347)=>le(_0x5c5c33,typeof _0x3a62f2!=_0x1656c9(0x161)?_0x3a62f2+'':_0x3a62f2,_0x5b1347);Object[_0x1656c9(0x123)](exports,Symbol['toStringTag'],{'value':'Module'});const u=require('@univerjs/core'),i=require('react/jsx-runtime'),s=require('@univerjs-pro/mcp'),f=require('@univerjs/design'),v=require('@univerjs/ui'),M=require('rxjs'),d=require('react'),A=require('@univerjs/network');function _({ref:_0x392e92,..._0x2d817b}){const _0xf5bc4f=_0x1656c9,{icon:_0x1d7af6,id:_0x21f766,className:_0x30d5ef,extend:_0x36cc02,..._0x3531d4}=_0x2d817b,_0x11b5c3=('univerjs-icon\x20univerjs-icon-'+_0x21f766+'\x20'+(_0x30d5ef||''))[_0xf5bc4f(0xab)](),_0x2e357c=d[_0xf5bc4f(0x158)]('_'+de());return G(_0x1d7af6,''+_0x21f766,{'defIds':_0x1d7af6[_0xf5bc4f(0xa7)],'idSuffix':_0x2e357c[_0xf5bc4f(0xc3)]},{'ref':_0x392e92,'className':_0x11b5c3,..._0x3531d4},_0x36cc02);}function G(_0x172d7f,_0x25dcd8,_0x403634,_0x17b87f,_0x297bdc){const _0x429396=_0x1656c9;return d[_0x429396(0x173)](_0x172d7f[_0x429396(0x179)],{'key':_0x25dcd8,...ue(_0x172d7f,_0x403634,_0x297bdc),..._0x17b87f},(ve(_0x172d7f,_0x403634)[_0x429396(0x1a6)]||[])[_0x429396(0x15d)]((_0x49f49b,_0x35bb9e)=>G(_0x49f49b,_0x25dcd8+'-'+_0x172d7f[_0x429396(0x179)]+'-'+_0x35bb9e,_0x403634,void 0x0,_0x297bdc)));}function ue(_0x280199,_0x25aac4,_0x4ca048){const _0x250b01=_0x1656c9,_0x97fa14={..._0x280199[_0x250b01(0x19a)]};_0x4ca048!=null&&_0x4ca048[_0x250b01(0x1d3)]&&_0x97fa14[_0x250b01(0xe0)]===_0x250b01(0x1d3)&&(_0x97fa14[_0x250b01(0xe0)]=_0x4ca048[_0x250b01(0x1d3)]),_0x280199[_0x250b01(0x179)]==='mask'&&_0x97fa14['id']&&(_0x97fa14['id']=_0x97fa14['id']+_0x25aac4[_0x250b01(0x18e)]),Object['entries'](_0x97fa14)[_0x250b01(0x184)](([_0x3b15ff,_0x1cc562])=>{const _0x3f32a9=_0x250b01;_0x3b15ff===_0x3f32a9(0x190)&&typeof _0x1cc562==_0x3f32a9(0x10e)&&(_0x97fa14[_0x3b15ff]=_0x1cc562[_0x3f32a9(0x1a3)](/url\(#(.*)\)/,_0x3f32a9(0xd7)+_0x25aac4[_0x3f32a9(0x18e)]+')'));});const {defIds:_0x4eed7f}=_0x25aac4;return!_0x4eed7f||_0x4eed7f[_0x250b01(0x1fd)]===0x0||(_0x280199[_0x250b01(0x179)]===_0x250b01(0x1cc)&&_0x97fa14[_0x250b01(0x11a)]&&(_0x97fa14[_0x250b01(0x11a)]=_0x97fa14[_0x250b01(0x11a)]+_0x25aac4[_0x250b01(0x18e)]),Object['entries'](_0x97fa14)[_0x250b01(0x184)](([_0x35e731,_0x1a4825])=>{const _0x22f0b7=_0x250b01;typeof _0x1a4825=='string'&&(_0x97fa14[_0x35e731]=_0x1a4825[_0x22f0b7(0x1a3)](/url\(#(.*)\)/,_0x22f0b7(0xd7)+_0x25aac4[_0x22f0b7(0x18e)]+')'));})),_0x97fa14;}function ve(_0x5e1e5b,_0x125a55){const _0x1061f6=_0x1656c9;var _0x7dc280;const {defIds:_0x5b987b}=_0x125a55;return!_0x5b987b||_0x5b987b[_0x1061f6(0x1fd)]===0x0?_0x5e1e5b:_0x5e1e5b[_0x1061f6(0x179)]===_0x1061f6(0x17a)&&((_0x7dc280=_0x5e1e5b[_0x1061f6(0x1a6)])!=null&&_0x7dc280[_0x1061f6(0x1fd)])?{..._0x5e1e5b,'children':_0x5e1e5b[_0x1061f6(0x1a6)][_0x1061f6(0x15d)](_0x4066d7=>typeof _0x4066d7['attrs']['id']==_0x1061f6(0x10e)&&_0x5b987b&&_0x5b987b[_0x1061f6(0xe6)](_0x4066d7['attrs']['id'])?{..._0x4066d7,'attrs':{..._0x4066d7['attrs'],'id':_0x4066d7[_0x1061f6(0x19a)]['id']+_0x125a55[_0x1061f6(0x18e)]}}:_0x4066d7)}:_0x5e1e5b;}function de(){const _0x5d90d3=_0x1656c9;return Math[_0x5d90d3(0x1b0)]()['toString'](0x24)[_0x5d90d3(0x1bb)](0x2,0x8);}_['displayName']=_0x1656c9(0x17c);const Ce={'tag':_0x1656c9(0x1e0),'attrs':{'xmlns':_0x1656c9(0xcb),'fill':_0x1656c9(0x107),'viewBox':'0\x200\x2016\x2016','width':_0x1656c9(0x149),'height':_0x1656c9(0x149)},'children':[{'tag':_0x1656c9(0x208),'attrs':{'fill':'currentColor','d':_0x1656c9(0x201),'fillRule':_0x1656c9(0xfc),'clipRule':_0x1656c9(0xfc)}}]},H=d[_0x1656c9(0xa6)](function(_0x214f30,_0x54627d){const _0x294b94=_0x1656c9;return d['createElement'](_,Object['assign']({},_0x214f30,{'id':_0x294b94(0x1b3),'ref':_0x54627d,'icon':Ce}));});H[_0x1656c9(0x1c8)]='CheckMarkIcon';const ge={'tag':_0x1656c9(0x1e0),'attrs':{'xmlns':_0x1656c9(0xcb),'fill':'none','viewBox':_0x1656c9(0x141),'width':'1em','height':_0x1656c9(0x149)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':'M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z'}}]},B=d[_0x1656c9(0xa6)](function(_0x41ac15,_0x265a76){const _0xb8b0c8=_0x1656c9;return d[_0xb8b0c8(0x173)](_,Object['assign']({},_0x41ac15,{'id':_0xb8b0c8(0xc2),'ref':_0x265a76,'icon':ge}));});B[_0x1656c9(0x1c8)]=_0x1656c9(0x150);const fe={'tag':'svg','attrs':{'xmlns':_0x1656c9(0xcb),'fill':_0x1656c9(0x107),'viewBox':_0x1656c9(0x141),'width':_0x1656c9(0x149),'height':_0x1656c9(0x149)},'children':[{'tag':_0x1656c9(0x208),'attrs':{'fill':_0x1656c9(0x180),'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':'path','attrs':{'fill':_0x1656c9(0x180),'d':_0x1656c9(0x160)}},{'tag':'path','attrs':{'fill':_0x1656c9(0x180),'d':_0x1656c9(0xe8),'fillRule':_0x1656c9(0xfc),'clipRule':_0x1656c9(0xfc)}}]},F=d['forwardRef'](function(_0x367a8a,_0x4d1565){const _0x221f29=_0x1656c9;return d[_0x221f29(0x173)](_,Object['assign']({},_0x367a8a,{'id':_0x221f29(0x206),'ref':_0x4d1565,'icon':fe}));});F[_0x1656c9(0x1c8)]='HelpIcon';const pe={'tag':'svg','attrs':{'xmlns':_0x1656c9(0xcb),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x1656c9(0x149),'height':_0x1656c9(0x149)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':_0x1656c9(0x180),'d':_0x1656c9(0x117),'strokeLinecap':_0x1656c9(0x1f8),'strokeLinejoin':_0x1656c9(0x1f8),'strokeWidth':1.2}}]},{'tag':_0x1656c9(0x17a),'attrs':{},'children':[{'tag':_0x1656c9(0x152),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x1656c9(0x208),'attrs':{'fill':'white','d':_0x1656c9(0xad)}}]}]}],'defIds':[_0x1656c9(0x1a1)]},Y=d[_0x1656c9(0xa6)](function(_0x1cac6c,_0x15f595){const _0x3f7524=_0x1656c9;return d[_0x3f7524(0x173)](_,Object[_0x3f7524(0x9f)]({},_0x1cac6c,{'id':'off-line-icon','ref':_0x15f595,'icon':pe}));});function _0x21c2(_0x29da7f,_0x5b5207){const _0x506ba3=_0x506b();return _0x21c2=function(_0x21c223,_0x4eb4d9){_0x21c223=_0x21c223-0x8c;let _0x392666=_0x506ba3[_0x21c223];return _0x392666;},_0x21c2(_0x29da7f,_0x5b5207);}Y[_0x1656c9(0x1c8)]=_0x1656c9(0x109);const he={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':'0\x200\x2017\x2016','width':_0x1656c9(0x149),'height':_0x1656c9(0x149)},'children':[{'tag':'g','attrs':{'clipPath':_0x1656c9(0x164)},'children':[{'tag':_0x1656c9(0x208),'attrs':{'stroke':_0x1656c9(0x180),'d':_0x1656c9(0x162),'strokeLinecap':_0x1656c9(0x1f8),'strokeLinejoin':_0x1656c9(0x1f8),'strokeWidth':1.2}}]},{'tag':_0x1656c9(0x17a),'attrs':{},'children':[{'tag':_0x1656c9(0x152),'attrs':{'id':_0x1656c9(0xb0)},'children':[{'tag':'path','attrs':{'fill':'white','d':_0x1656c9(0xad),'transform':'translate(.97)'}}]}]}],'defIds':['on-line-icon_clip0_910_349']},q=d['forwardRef'](function(_0x3290d0,_0x3b92cf){const _0x44bbb7=_0x1656c9;return d[_0x44bbb7(0x173)](_,Object[_0x44bbb7(0x9f)]({},_0x3290d0,{'id':_0x44bbb7(0x170),'ref':_0x3b92cf,'icon':he}));});q[_0x1656c9(0x1c8)]=_0x1656c9(0x166);function V(_0x3a70be){const _0x3745d9=_0x1656c9;var _0x4defad,_0x40ae83;const {mcpCoreConfig:_0x290123,onSave:_0x30e310,loading:_0x47cb3e=!0x1,config:_0xbc9a17,connectionStatus$:_0x2fe4ec,connectionError$:_0x4a960a,currentApiKey$:_0x4be9a5,currentSessionId$:_0x6eb0e9}=_0x3a70be,_0x3a5443=v[_0x3745d9(0x1b7)](u[_0x3745d9(0x10a)]),_0x2ada96=v[_0x3745d9(0x115)](_0x2fe4ec,s['MCPConnectionStatus'][_0x3745d9(0x14a)]),_0x1c6781=v[_0x3745d9(0x115)](_0x4a960a,s['MCPConnectionError'][_0x3745d9(0xd0)]),_0x4ce820=v[_0x3745d9(0x115)](_0x6eb0e9,''),_0x131a14=v[_0x3745d9(0x115)](_0x4be9a5,''),[_0x3a240e,_0x12a136]=d['useState'](_0x131a14||''),_0x52e9a9=!0x0,_0x1fa19d=_0xbc9a17[_0x3745d9(0x209)]&&_0x290123[_0x3745d9(0x8f)]&&(_0x290123['mcpServerUrl']['includes'](_0x3745d9(0x1b1))||_0x290123[_0x3745d9(0x8f)][_0x3745d9(0xe6)](_0x3745d9(0x1e4))),_0x578fcf=(_0x4defad=_0x290123[_0x3745d9(0x8f)])==null?void 0x0:_0x4defad[_0x3745d9(0xe6)](_0x3745d9(0x1b1)),_0x2c7073=(_0x40ae83=_0x290123['mcpServerUrl'])==null?void 0x0:_0x40ae83[_0x3745d9(0xe6)](_0x3745d9(0x1e4)),_0x191fc0=_0x578fcf?_0x3745d9(0x1cf):_0x3745d9(0x129),_0x4e677c=_0xbc9a17['showDeveloperTools']&&(_0x578fcf||_0x2c7073),[_0x1238d6,_0x364860]=d[_0x3745d9(0x1c0)](!_0x3a240e['trim']()),_0x543903=(_0x27ad1a,_0x47888e)=>{const _0x8b7736=_0x3745d9;if(_0x47888e===s[_0x8b7736(0x111)]['UNAUTHORIZED'])return _0x8b7736(0x189);switch(_0x27ad1a){case s[_0x8b7736(0x1c1)]['CONNECTED']:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case s['MCPConnectionStatus'][_0x8b7736(0x165)]:case s['MCPConnectionStatus']['RETRYING']:return'univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200';case s['MCPConnectionStatus'][_0x8b7736(0xe5)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return _0x8b7736(0x1ea);}},_0x266658=(_0x5e28bf,_0x2c96bb)=>{const _0x5985e8=_0x3745d9;if(_0x2c96bb===s[_0x5985e8(0x111)][_0x5985e8(0x127)])return'univer-bg-red-500';switch(_0x5e28bf){case s['MCPConnectionStatus'][_0x5985e8(0x1d5)]:return _0x5985e8(0x211);case s[_0x5985e8(0x1c1)][_0x5985e8(0x165)]:case s[_0x5985e8(0x1c1)][_0x5985e8(0x174)]:return _0x5985e8(0xcc);case s[_0x5985e8(0x1c1)][_0x5985e8(0xe5)]:return _0x5985e8(0x212);default:return _0x5985e8(0xc4);}},_0x2d06a9=_0x35b01d=>{const _0x43c1e3=_0x3745d9;switch(_0x35b01d){case s[_0x43c1e3(0x1c1)]['CONNECTED']:return _0x3a5443['t'](_0x43c1e3(0x194));case s['MCPConnectionStatus'][_0x43c1e3(0x165)]:return _0x3a5443['t'](_0x43c1e3(0xf0));case s[_0x43c1e3(0x1c1)][_0x43c1e3(0xe5)]:return _0x3a5443['t'](_0x43c1e3(0xf4));case s['MCPConnectionStatus']['RETRYING']:return _0x3a5443['t'](_0x43c1e3(0xa5));default:return _0x3a5443['t'](_0x43c1e3(0x19f));}},_0xaa8a69=_0x2bb240=>{const _0x121806=_0x3745d9;switch(_0x2bb240){case s[_0x121806(0x111)][_0x121806(0x127)]:return _0x3a5443['t'](_0x121806(0x20a));case s[_0x121806(0x111)][_0x121806(0x136)]:return _0x3a5443['t'](_0x121806(0xd8));case s[_0x121806(0x111)][_0x121806(0xd6)]:return _0x3a5443['t']('mcpConfig.connectionError.networkError');case s['MCPConnectionError']['MAX_RETRIES_EXCEEDED']:return _0x3a5443['t'](_0x121806(0x11f));default:return'';}},_0x3b6bd1=d[_0x3745d9(0x9d)](()=>{const _0x1cb0cf={..._0x290123,'apiKey':_0x3a240e['trim'](),'enableAuth':_0x52e9a9};_0x30e310(_0x1cb0cf);},[_0x290123,_0x3a240e,_0x52e9a9,_0x30e310]),_0x3cc3a3=_0x3a240e[_0x3745d9(0xab)]()[_0x3745d9(0x1fd)]>0x0;return i['jsxs'](_0x3745d9(0x138),{'className':_0x3745d9(0x183),'children':[i[_0x3745d9(0x13b)](_0x3745d9(0x138),{'className':_0x3745d9(0x1a4),'children':i[_0x3745d9(0x8d)](_0x3745d9(0x138),{'className':_0x3745d9(0x12e),'children':[i['jsx'](_0x3745d9(0x138),{'className':_0x3745d9(0x15e),'children':i[_0x3745d9(0x13b)](_0x3745d9(0x100),{'className':_0x3745d9(0x14f),'children':'⚙'})}),i[_0x3745d9(0x13b)](_0x3745d9(0x138),{'children':i[_0x3745d9(0x13b)]('p',{'className':_0x3745d9(0x14d),'children':_0x3a5443['t'](_0x3745d9(0xa9))})})]})}),i[_0x3745d9(0x8d)](_0x3745d9(0x138),{'className':_0x3745d9(0x192),'children':[i[_0x3745d9(0x13b)](_0x3745d9(0x138),{'className':f['clsx'](_0x3745d9(0x105),_0x543903(_0x2ada96,_0x1c6781)),'children':i[_0x3745d9(0x8d)]('div',{'className':_0x3745d9(0x110),'children':[i[_0x3745d9(0x13b)](_0x3745d9(0x138),{'className':f[_0x3745d9(0xff)](_0x3745d9(0xd5),_0x266658(_0x2ada96,_0x1c6781))}),i[_0x3745d9(0x13b)](_0x3745d9(0x100),{'className':_0x3745d9(0xea),'children':_0x2d06a9(_0x2ada96)})]})}),_0x1c6781!==s[_0x3745d9(0x111)][_0x3745d9(0xd0)]&&(_0x2ada96===s[_0x3745d9(0x1c1)][_0x3745d9(0xe5)]||_0x1c6781===s[_0x3745d9(0x111)]['UNAUTHORIZED'])&&i[_0x3745d9(0x13b)]('div',{'className':_0x3745d9(0x13a),'children':i[_0x3745d9(0x8d)](_0x3745d9(0x138),{'className':_0x3745d9(0x154),'children':[i[_0x3745d9(0x13b)](_0x3745d9(0x100),{'className':_0x3745d9(0x1d0),'children':'⚠️'}),i[_0x3745d9(0x13b)]('p',{'className':_0x3745d9(0x1bf),'children':_0xaa8a69(_0x1c6781)})]})})]}),i[_0x3745d9(0x13b)](_0x3745d9(0x138),{'className':_0x3745d9(0x113),'children':i[_0x3745d9(0x8d)](_0x3745d9(0x138),{'className':_0x3745d9(0x96),'children':[i[_0x3745d9(0x8d)]('div',{'className':_0x3745d9(0x16e),'children':[i[_0x3745d9(0x8d)](_0x3745d9(0x130),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[i[_0x3745d9(0x13b)](_0x3745d9(0x100),{'children':'🔑'}),'\x20',_0x3a5443['t']('mcpConfig.apiKey'),i[_0x3745d9(0x13b)](_0x3745d9(0x100),{'className':_0x3745d9(0x17e),'children':'*'}),_0x1fa19d&&i[_0x3745d9(0x13b)]('a',{'className':_0x3745d9(0xe1),'title':_0x3a5443['t']('mcpConfig.apiApplyInfo.title'),'role':_0x3745d9(0xda),'onClick':()=>_0x364860(!0x0),'children':i[_0x3745d9(0x13b)](F,{})})]}),i[_0x3745d9(0x13b)](f[_0x3745d9(0x139)],{'type':'text','placeholder':_0x3a5443['t'](_0x3745d9(0x187)),'value':_0x3a240e,'disabled':_0x47cb3e,'autoComplete':_0x3745d9(0x92),'onChange':_0x12a136}),i[_0x3745d9(0x13b)]('p',{'className':_0x3745d9(0xb6),'children':_0x3a5443['t']('mcpConfig.apiKeyHint')})]}),_0x1fa19d&&_0x1238d6&&i[_0x3745d9(0x8d)](_0x3745d9(0x138),{'className':_0x3745d9(0xdb),'children':[i['jsx']('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':_0x3745d9(0xda),'onClick':()=>_0x364860(!0x1),'children':i[_0x3745d9(0x13b)](B,{'className':'univer-size-4'})}),i[_0x3745d9(0x8d)]('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[i[_0x3745d9(0x13b)]('div',{'className':_0x3745d9(0x155),'children':i[_0x3745d9(0x13b)](_0x3745d9(0x100),{'className':_0x3745d9(0xdf),'children':'🚀'})}),i['jsxs'](_0x3745d9(0x138),{'className':_0x3745d9(0x1c6),'children':[i[_0x3745d9(0x13b)]('h4',{'className':_0x3745d9(0xf9),'children':_0x3a5443['t'](_0x3745d9(0x205))}),i[_0x3745d9(0x13b)]('p',{'className':_0x3745d9(0x12d),'children':_0x3a5443['t'](_0x3745d9(0x13c))}),i['jsx'](_0x3745d9(0x138),{'className':_0x3745d9(0x18b),'children':_0x4e677c&&i[_0x3745d9(0x8d)]('a',{'className':_0x3745d9(0x16d),'href':_0x191fc0,'target':_0x3745d9(0xe7),'rel':'noopener\x20noreferrer','children':[i[_0x3745d9(0x13b)]('span',{'children':'🤖'}),_0x3a5443['t'](_0x3745d9(0x1dd)),i['jsx'](_0x3745d9(0x100),{'className':_0x3745d9(0xb9),'children':'↗'})]})}),i[_0x3745d9(0x8d)]('div',{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x3a5443['t'](_0x3745d9(0x19c))]})]})]})]}),_0xbc9a17[_0x3745d9(0x209)]&&i[_0x3745d9(0x8d)](_0x3745d9(0x138),{'className':_0x3745d9(0xdc),'children':[i[_0x3745d9(0x8d)]('h4',{'className':_0x3745d9(0x1a0),'children':[i[_0x3745d9(0x13b)](_0x3745d9(0x100),{'children':'🔗'}),'\x20',_0x3a5443['t'](_0x3745d9(0x17f))]}),i[_0x3745d9(0x8d)](_0x3745d9(0x138),{'className':_0x3745d9(0xbc),'children':[i['jsxs'](_0x3745d9(0x138),{'className':_0x3745d9(0x94),'children':[i[_0x3745d9(0x13b)]('p',{'className':_0x3745d9(0x1d8),'children':_0x3a5443['t'](_0x3745d9(0x1de))}),i[_0x3745d9(0x8d)](_0x3745d9(0x138),{'className':_0x3745d9(0x16e),'children':[i[_0x3745d9(0x13b)](_0x3745d9(0x138),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x3a5443['t'](_0x3745d9(0x134))}),i[_0x3745d9(0x8d)](_0x3745d9(0x138),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[i[_0x3745d9(0x8d)](_0x3745d9(0x138),{'className':_0x3745d9(0x110),'children':[i[_0x3745d9(0x13b)](_0x3745d9(0x100),{'className':_0x3745d9(0xbe),'children':'1'}),_0x3a5443['t'](_0x3745d9(0x91))]}),i[_0x3745d9(0x8d)]('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x3745d9(0x13b)](_0x3745d9(0x100),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'2'}),_0x3a5443['t']('mcpConfig.configStep2')]}),i[_0x3745d9(0x8d)](_0x3745d9(0x138),{'className':_0x3745d9(0x110),'children':[i[_0x3745d9(0x13b)](_0x3745d9(0x100),{'className':_0x3745d9(0xbe),'children':'3'}),_0x3a5443['t'](_0x3745d9(0xc7))]})]})]})]}),i[_0x3745d9(0x8d)]('div',{'className':_0x3745d9(0x16e),'children':[i[_0x3745d9(0x13b)](_0x3745d9(0x138),{'className':_0x3745d9(0x98),'children':_0x3745d9(0x1f3)}),i[_0x3745d9(0x13b)](_0x3745d9(0x138),{'className':_0x3745d9(0x99),'children':i[_0x3745d9(0x13b)](_0x3745d9(0x195),{'className':_0x3745d9(0x1f1),'children':JSON['stringify']({'mcpServers':{'univer':{'url':'https://mcp.univer.ai/mcp/?univer_session_id='+(_0x4ce820||_0x3745d9(0x116)),'type':'http','headers':{'Authorization':'Bearer\x20'+(_0x3a240e||_0x3745d9(0x203))}}}},null,0x2)})})]}),i[_0x3745d9(0x8d)](_0x3745d9(0x138),{'className':'univer-space-y-3','children':[i[_0x3745d9(0x13b)](_0x3745d9(0x138),{'className':_0x3745d9(0x98),'children':_0x3a5443['t']('mcpConfig.configParameters')}),i[_0x3745d9(0x8d)]('div',{'className':_0x3745d9(0x16e),'children':[i['jsxs'](_0x3745d9(0x138),{'className':_0x3745d9(0x106),'children':[i[_0x3745d9(0x13b)](_0x3745d9(0x138),{'className':_0x3745d9(0xec)}),i[_0x3745d9(0x8d)](_0x3745d9(0x138),{'className':_0x3745d9(0x193),'children':[i[_0x3745d9(0x13b)](_0x3745d9(0x138),{'className':_0x3745d9(0xeb),'children':'univer_session_id:'}),i[_0x3745d9(0x13b)](_0x3745d9(0x138),{'className':_0x3745d9(0xb6),'children':_0x3a5443['t'](_0x3745d9(0xa0))})]})]}),i[_0x3745d9(0x8d)]('div',{'className':_0x3745d9(0x106),'children':[i[_0x3745d9(0x13b)](_0x3745d9(0x138),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),i['jsxs']('div',{'className':_0x3745d9(0x193),'children':[i['jsx']('div',{'className':_0x3745d9(0xeb),'children':_0x3745d9(0x168)}),i[_0x3745d9(0x13b)](_0x3745d9(0x138),{'className':_0x3745d9(0xb6),'children':_0x3a5443['t'](_0x3745d9(0xb2))})]})]})]})]})]})]}),i[_0x3745d9(0x13b)](f[_0x3745d9(0xd3)],{'onClick':_0x3b6bd1,'disabled':!_0x3cc3a3||_0x47cb3e,'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':_0x47cb3e?i[_0x3745d9(0x8d)](_0x3745d9(0x100),{'className':_0x3745d9(0x110),'children':[i[_0x3745d9(0x13b)](_0x3745d9(0x100),{'children':'⟲'}),_0x3a5443['t'](_0x3745d9(0x1f4))]}):i['jsxs'](_0x3745d9(0x100),{'className':_0x3745d9(0x110),'children':[i[_0x3745d9(0x13b)](H,{}),_0x3a5443['t'](_0x3745d9(0xaa))]})}),i[_0x3745d9(0x13b)]('div',{'className':_0x3745d9(0x1ce),'children':i[_0x3745d9(0x8d)]('div',{'className':_0x3745d9(0x17d),'children':[i[_0x3745d9(0x13b)](_0x3745d9(0x100),{'className':_0x3745d9(0x1e9),'children':'💡'}),i[_0x3745d9(0x8d)]('div',{'className':_0x3745d9(0xc5),'children':[i[_0x3745d9(0x13b)](_0x3745d9(0x138),{'className':_0x3745d9(0x1ec),'children':_0x3745d9(0x1fe)}),i[_0x3745d9(0x8d)](_0x3745d9(0x138),{'children':['•',_0x3a5443['t']('mcpConfig.note1')]}),i[_0x3745d9(0x8d)](_0x3745d9(0x138),{'children':['•',_0x3a5443['t'](_0x3745d9(0xac))]})]})]})})]})})]});}const P=_0x1656c9(0x213),L={'showDeveloperTools':!0x1,'showStatus':!0x0};var me=Object[_0x1656c9(0x18a)],xe=(_0x14c8af,_0x12ef51,_0x4716cc,_0x1ac5e0)=>{const _0x3d299b=_0x1656c9;for(var _0x220ff8=_0x1ac5e0>0x1?void 0x0:_0x1ac5e0?me(_0x12ef51,_0x4716cc):_0x12ef51,_0x2c5b8a=_0x14c8af[_0x3d299b(0x1fd)]-0x1,_0xb5871a;_0x2c5b8a>=0x0;_0x2c5b8a--)(_0xb5871a=_0x14c8af[_0x2c5b8a])&&(_0x220ff8=_0xb5871a(_0x220ff8)||_0x220ff8);return _0x220ff8;},g=(_0x38f153,_0x32adca)=>(_0x539e14,_0x554fbb)=>_0x32adca(_0x539e14,_0x554fbb,_0x38f153);const O=_0x1656c9(0x1f6),D=_0x1656c9(0x1dc);exports['MCPConfigUIController']=class extends u[_0x1656c9(0x1fc)]{constructor(_0xe94975,_0x2c1ee0,_0x36f7b9,_0x5430d3,_0x1557c0,_0xacb60d,_0x4821db,_0x409530,_0x309fc7,_0x21f706){const _0x58d282=_0x1656c9;super(),I(this,_0x58d282(0x1f2),new M[(_0x58d282(0x188))](!0x1)),I(this,_0x58d282(0xf2),new M[(_0x58d282(0x188))]({})),I(this,_0x58d282(0x1d6),new M[(_0x58d282(0x188))]({})),I(this,'_apiKey$',new M[(_0x58d282(0x188))]('')),I(this,'_handleConfigSave',async _0x582ad8=>{const _0x1b705d=_0x58d282;var _0x2c445a,_0x11eefa;this[_0x1b705d(0x1f2)][_0x1b705d(0x177)](!0x0);try{const _0x5487d5=await this['_validateConfig'](_0x582ad8);if(!_0x5487d5['isValid']){this[_0x1b705d(0x191)][_0x1b705d(0x95)]({'type':f['MessageType'][_0x1b705d(0x163)],'content':_0x5487d5['errorMessage']||this['_localeService']['t']('mcpConfig.validation.invalidConfig')});return;}_0x582ad8[_0x1b705d(0xe3)]?await this[_0x1b705d(0x186)]['setItem'](O,_0x582ad8[_0x1b705d(0xe3)][_0x1b705d(0xab)]()):await this[_0x1b705d(0x186)]['removeItem'](O),this[_0x1b705d(0xdd)][_0x1b705d(0x177)](((_0x2c445a=_0x582ad8['apiKey'])==null?void 0x0:_0x2c445a[_0x1b705d(0xab)]())||''),this[_0x1b705d(0x10c)][_0x1b705d(0x114)]({'Authorization':_0x1b705d(0x1be)+((_0x11eefa=_0x582ad8['apiKey'])==null?void 0x0:_0x11eefa[_0x1b705d(0xab)]())}),this[_0x1b705d(0x191)][_0x1b705d(0x95)]({'type':f[_0x1b705d(0x1c7)][_0x1b705d(0x9b)],'content':this[_0x1b705d(0xc6)]['t'](_0x1b705d(0xe9))}),setTimeout(()=>{const _0x3f5bba=_0x1b705d;this[_0x3f5bba(0x1d1)]['close'](D);},0x320);}catch(_0x21d2eb){this[_0x1b705d(0x175)]['error'](_0x1b705d(0x1ae),_0x21d2eb),this[_0x1b705d(0x191)][_0x1b705d(0x95)]({'type':f[_0x1b705d(0x1c7)][_0x1b705d(0x163)],'content':this[_0x1b705d(0xc6)]['t']('mcpConfig.configError')});}finally{this[_0x1b705d(0x1f2)][_0x1b705d(0x177)](!0x1);}}),(this['_injector']=_0xe94975,this[_0x58d282(0x1c4)]=_0x2c1ee0,this['_configService']=_0x36f7b9,this['_localStorageService']=_0x5430d3,this[_0x58d282(0x1d1)]=_0x1557c0,this[_0x58d282(0x191)]=_0xacb60d,this[_0x58d282(0x151)]=_0x4821db,this[_0x58d282(0xc6)]=_0x409530,this['_logService']=_0x309fc7,this[_0x58d282(0x10c)]=_0x21f706,this[_0x58d282(0x11c)](),this[_0x58d282(0x131)](),this[_0x58d282(0x12c)]());}['showConfigPanel'](){const _0x5475ba=_0x1656c9,_0xb4e57=this['_configService'][_0x5475ba(0x214)](P);_0xb4e57!=null&&_0xb4e57[_0x5475ba(0x209)]&&this[_0x5475ba(0x1d1)][_0x5475ba(0x1c3)]({'id':D,'title':{'title':this['_localeService']['t'](_0x5475ba(0x10f))},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x38df28=_0x5475ba;this[_0x38df28(0x1d1)][_0x38df28(0x10d)](D);}});}[_0x1656c9(0x14c)](){const _0x517b6d=_0x1656c9;return this[_0x517b6d(0xf2)][_0x517b6d(0x185)];}[_0x1656c9(0x12c)](){const _0x492d53=_0x1656c9;this[_0x492d53(0xa8)](this[_0x492d53(0x151)][_0x492d53(0x12f)](_0x492d53(0xee),this[_0x492d53(0x1ee)]()));}['_createConfigPanelComponent'](){const _0x225eb5=_0x1656c9;return v[_0x225eb5(0x128)](()=>{const _0x548c2d=_0x225eb5;var _0x4ef6d0,_0x2bf923,_0xcdba26;return i[_0x548c2d(0x13b)](V,{'config':this[_0x548c2d(0x1d6)][_0x548c2d(0x185)],'mcpCoreConfig':this['_mcpCoreConfig$'][_0x548c2d(0x185)],'currentApiKey$':this[_0x548c2d(0xdd)],'onSave':this[_0x548c2d(0x102)],'loading':this[_0x548c2d(0x1f2)]['value'],'connectionStatus$':(_0x4ef6d0=this[_0x548c2d(0x10c)])==null?void 0x0:_0x4ef6d0[_0x548c2d(0xd9)],'connectionError$':(_0x2bf923=this['_mcpConnectionController'])==null?void 0x0:_0x2bf923[_0x548c2d(0x13e)],'currentSessionId$':(_0xcdba26=this[_0x548c2d(0x10c)])==null?void 0x0:_0xcdba26[_0x548c2d(0x18c)]});},this[_0x225eb5(0x20f)]);}[_0x1656c9(0x11c)](){const _0x2d6abf=_0x1656c9;this[_0x2d6abf(0xa8)](this[_0x2d6abf(0xa4)]['subscribeConfigValue$'](s[_0x2d6abf(0x20e)])['subscribe'](_0x266b9e=>{const _0x228540=_0x2d6abf;this[_0x228540(0xf2)][_0x228540(0x177)](_0x266b9e||{});}));const _0x4017c4=this[_0x2d6abf(0xa4)]['getConfig'](s[_0x2d6abf(0x20e)]);this[_0x2d6abf(0xf2)]['next'](_0x4017c4||{}),this[_0x2d6abf(0xa8)](this['_configService'][_0x2d6abf(0x118)](P)[_0x2d6abf(0x120)](_0x222022=>{const _0x3356e5=_0x2d6abf;this[_0x3356e5(0x1d6)][_0x3356e5(0x177)](_0x222022||{});}));const _0x538bd1=this['_configService'][_0x2d6abf(0x214)](P);this['_config$'][_0x2d6abf(0x177)](_0x538bd1||{});}async[_0x1656c9(0x131)](){const _0x5e3ae2=_0x1656c9,_0x54aa38=this[_0x5e3ae2(0xa4)]['getConfig'](P);if(!(_0x54aa38!=null&&_0x54aa38[_0x5e3ae2(0x209)]))return;const _0xea82ef=await this[_0x5e3ae2(0x186)]['getItem'](O);_0xea82ef&&(this['_mcpConnectionController']['__setCustomHeaders']({'Authorization':_0x5e3ae2(0x1be)+_0xea82ef}),this[_0x5e3ae2(0xdd)][_0x5e3ae2(0x177)](_0xea82ef));}async[_0x1656c9(0x1ad)](_0x44d0c0){const _0x5ba07c=_0x1656c9;if(!_0x44d0c0[_0x5ba07c(0xe3)]||_0x44d0c0['apiKey'][_0x5ba07c(0xab)]()[_0x5ba07c(0x1fd)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x5ba07c(0xc6)]['t'](_0x5ba07c(0x1b4))};if(_0x44d0c0[_0x5ba07c(0xe3)][_0x5ba07c(0xab)]()[_0x5ba07c(0x1fd)]<0xa)return{'isValid':!0x1,'errorMessage':this['_localeService']['t']('mcpConfig.validation.apiKeyTooShort')};try{const _0x583299=await this[_0x5ba07c(0x20f)][_0x5ba07c(0xc8)](s[_0x5ba07c(0x1bc)])['validateApiKey'](_0x44d0c0[_0x5ba07c(0xe3)][_0x5ba07c(0xab)]());return _0x583299[_0x5ba07c(0x19d)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x583299[_0x5ba07c(0x14b)]||this[_0x5ba07c(0xc6)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x3ba154){return console['warn'](_0x5ba07c(0x1f0),_0x3ba154),{'isValid':!0x0};}}},exports[_0x1656c9(0x1ac)]=xe([g(0x0,u['Inject'](u['Injector'])),g(0x1,v[_0x1656c9(0x176)]),g(0x2,u[_0x1656c9(0x90)]),g(0x3,u['ILocalStorageService']),g(0x4,v[_0x1656c9(0x1f7)]),g(0x5,v[_0x1656c9(0x1ed)]),g(0x6,u[_0x1656c9(0xef)](v[_0x1656c9(0xed)])),g(0x7,u[_0x1656c9(0xef)](u['LocaleService'])),g(0x8,u['ILogService']),g(0x9,u['Inject'](s[_0x1656c9(0x1bc)]))],exports[_0x1656c9(0x1ac)]);const b={'id':_0x1656c9(0x15c),'type':u[_0x1656c9(0x1b6)]['COMMAND'],'handler':async(_0x2cf093,_0x32c637)=>(_0x2cf093[_0x1656c9(0xc8)](exports[_0x1656c9(0x1ac)])[_0x1656c9(0x1fa)](),!0x0)};function Z(_0x35fc85,_0x4342c){const _0x292c69=_0x1656c9;switch(_0x35fc85){case s[_0x292c69(0x1c1)]['DISCONNECTED']:return _0x292c69(0x142);case s[_0x292c69(0x1c1)]['CONNECTING']:return _0x292c69(0x1a9);case s[_0x292c69(0x1c1)]['CONNECTED']:return'mcpStatus.connected';case s[_0x292c69(0x1c1)][_0x292c69(0xe5)]:switch(_0x4342c){case s[_0x292c69(0x111)]['UNAUTHORIZED']:return'mcpStatus.unauthorized';case s[_0x292c69(0x111)]['SESSION_ID_OCCUPIED']:return _0x292c69(0xd1);case s[_0x292c69(0x111)]['NETWORK_ERROR']:return _0x292c69(0xde);case s[_0x292c69(0x111)]['MAX_RETRIES_EXCEEDED']:return _0x292c69(0x11e);default:return _0x292c69(0x1ba);}case s[_0x292c69(0x1c1)][_0x292c69(0x174)]:return _0x292c69(0xbd);default:return _0x292c69(0x1df);}}function Se(_0x1d7684,_0x4d604f,_0x24550f,_0x278d51=!0x0){const _0x5da26e=_0x1656c9,_0x1a8406=Z(_0x1d7684,_0x4d604f),_0x3dfaa2=_0x24550f['t'](_0x1a8406);return _0x278d51?_0x1d7684===s[_0x5da26e(0x1c1)][_0x5da26e(0x14a)]&&_0x4d604f===s[_0x5da26e(0x111)][_0x5da26e(0x127)]?_0x3dfaa2+_0x5da26e(0x1da)+_0x24550f['t'](_0x5da26e(0x140)):_0x1d7684===s['MCPConnectionStatus'][_0x5da26e(0x1d5)]?''+_0x3dfaa2:_0x1d7684===s[_0x5da26e(0x1c1)][_0x5da26e(0x14a)]||_0x1d7684===s[_0x5da26e(0x1c1)][_0x5da26e(0xe5)]?_0x3dfaa2+_0x5da26e(0x1da)+_0x24550f['t'](_0x5da26e(0x1b2)):_0x3dfaa2:_0x3dfaa2;}function _0x506b(){const _0x9e956b=['_registerComponent','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','univer-flex\x20univer-items-center\x20univer-gap-3','register','label','_loadStoredApiKey','MCP\x20连接中...','配置更改将立即生效','mcpConfig.configStepTitle','Tooltip','SESSION_ID_OCCUPIED','_config','div','Input','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','jsx','mcpConfig.apiApplyInfo.description','registerCommand','connectionError$','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','mcpStatus.clickToConfigure','0\x200\x2016\x2016','mcpStatus.disconnected','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','配置保存成功','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','291066lRUmoc','5056450dcAfZw','重启您的\x20MCP\x20客户端以使配置生效','1em','DISCONNECTED','error','getCurrentConfig','univer-text-sm\x20univer-text-gray-500','Connection\x20Failed','univer-text-white','CloseIcon','_componentManager','clipPath','WebSocketService','univer-flex\x20univer-items-start\x20univer-gap-2','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','useRef','9ZvLHbC','univer-text-green-500','UniverMCPPlugin','mcp-ui.command.openConfigPanel','map','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','API\x20Key','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','symbol','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','Error','url(#on-line-icon_clip0_910_349)','CONNECTING','OnLineIcon','onStarting','Authorization:','Univer\x20AI\x20Console','Get\x20your\x20API\x20key\x20in\x20seconds','enUS','您的\x20API\x20密钥安全存储在本地存储中','univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','univer-space-y-2','API\x20密钥','on-line-icon','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Connecting...','createElement','RETRYING','_logService','IUIPartsService','next','API\x20密钥不能为空','tag','defs','将以下配置添加到您的\x20MCP\x20客户端设置中:','UniverIcon','univer-flex\x20univer-gap-3','univer-text-red-500','mcpConfig.connectionInfo','currentColor','几秒钟内获取您的\x20API\x20密钥','保存中...','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','forEach','value','_localStorageService','mcpConfig.apiKeyPlaceholder','BehaviorSubject','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','getOwnPropertyDescriptor','univer-flex\x20univer-flex-wrap\x20univer-gap-2','sessionId$','5410940CUtLaE','idSuffix','MCP\x20状态未知','mask','_messageService','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','univer-min-w-0\x20univer-flex-1','mcpConfig.connectionStatus.connected','pre','Session\x20ID','push','请输入您的\x20API\x20密钥','ILocalStorageService','attrs','MCP:\x20Session\x20ID\x20Occupied','mcpConfig.apiApplyInfo.getStarted','isValid','_connectionController','mcpConfig.connectionStatus.disconnected','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','off-line-icon_clip0_910_343','OpenMCPConfigPanelCommand','replace','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','_initStatusComponent','children','mergeMenu','Max\x20Retries','mcpStatus.connecting','univer-flex\x20univer-items-center','Enter\x20your\x20API\x20key','MCPConfigUIController','_validateConfig','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','random','univer.plus','mcpStatus.clickToConnect','check-mark-icon','mcpConfig.validation.apiKeyRequired','univer-mr-2\x20univer-flex\x20univer-text-xl','CommandType','useDependency','has','配置\x20MCP\x20使用\x20AI\x20操作电子表格','mcpStatus.failed','substring','MCPConnectionController','MCP:\x20会话\x20ID\x20已被占用','Bearer\x20','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','useState','MCPConnectionStatus','超出最大重试次数,请稍后再试','open','_uiPartsService','ICommandService','univer-flex-1','MessageType','displayName','MCP\x20重连中...','Saving...','IMenuManagerService','use','启用身份验证','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','https://console.univer.plus','univer-shrink-0\x20univer-text-red-500','_dialogService','配置保存失败','colorChannel1','Connected','CONNECTED','_config$','merge','univer-text-xs\x20univer-text-gray-600','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','\x20-\x20','pluginName','mcp-config-dialog','mcpConfig.apiApplyInfo.univerAiLabel','mcpConfig.configInstructions','mcpStatus.unknown','svg','复制以下\x20JSON\x20配置','MCP:\x20超出最大重试次数','_initAutoConnect','univer.ai','Configuration\x20Parameters:','MCP\x20Connecting...','Univer\x20AI\x20控制台','保存配置','univer-shrink-0\x20univer-text-blue-500','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','What\x20is\x20API\x20Key?','univer-font-medium','IMessageService','_createConfigPanelComponent','add','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','_loading$','MCP\x20Configuration','mcpConfig.saving','762230FLBvbM','mcp.apiKey','IDialogService','round','123qEiRnl','showConfigPanel','OTHERS','Disposable','length','Configuration\x20Notes:','_menuManagerService','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','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网络错误','<API_KEY>','最大重试次数','mcpConfig.apiApplyInfo.title','help-icon','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','path','showDeveloperTools','mcpConfig.connectionError.unauthorized','MCP\x20已断开','univer-text-gray-500','BUTTON','MCP_PLUGIN_CONFIG_KEY','_injector','setConfig','univer-bg-green-500','univer-bg-red-500','mcp-ui.config','getConfig','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','jsxs','MCP:\x20Unauthorized','mcpServerUrl','IConfigService','mcpConfig.configStep1','off','MCP:\x20Network\x20Error','univer-space-y-3','show','univer-space-y-5','DependentOn','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','MCP\x20Unknown\x20Status','Success','API\x20密钥无效,请检查密钥是否正确','useCallback','45970hidWTz','assign','mcpConfig.sessionIdDescription','Failed\x20to\x20save\x20configuration','点击连接\x20MCP','将配置添加到您的\x20MCP\x20客户端设置文件中','_configService','mcpConfig.connectionStatus.retrying','forwardRef','defIds','disposeWithMe','mcpConfig.description','mcpConfig.save','trim','mcpConfig.note2','M0\x200H16V16H0z','RibbonStartGroup','Retrying...','on-line-icon_clip0_910_349','权限验证失败,请检查您的\x20API\x20密钥','mcpConfig.authorizationDescription','连接失败','MCP\x20已连接','重连中...','univer-text-xs\x20univer-text-gray-500','启用身份验证以获得安全连接','会话ID','univer-text-gray-400','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20客户端配置','univer-space-y-4','mcpStatus.retrying','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','API\x20key\x20is\x20required','MenuItemType','MCP\x20Retrying...','close-icon','current','univer-bg-gray-500','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','_localeService','mcpConfig.configStep3','get','Disconnected','Invalid\x20configuration','http://www.w3.org/2000/svg','univer-bg-blue-500','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','BuiltInUIPart','配置无效','NONE','mcpStatus.sessionOccupied','182136hKMPsm','Button','7850590YHLAoj','univer-size-2\x20univer-rounded-full','NETWORK_ERROR','url(#$1','mcpConfig.connectionError.sessionOccupied','connectionStatus$','button','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-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','_apiKey$','mcpStatus.networkError','univer-text-blue-600','fill','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','已连接','apiKey','_handleConfigure','FAILED','includes','_blank','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','mcpConfig.configSaved','univer-text-sm\x20univer-font-medium','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','ComponentManager','MCPConfigPanel','Inject','mcpConfig.connectionStatus.connecting','bottom','_mcpCoreConfig$','showStatus','mcpConfig.connectionStatus.failed','_commandService','MCPConnectionUIController','您的\x20API\x20密钥将在此浏览器中本地存储','ISocketService','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','Injector','MCPUIMenuController','evenodd','_initializeCommands','6YeucPO','clsx','span','MCP:\x20Max\x20Retries\x20Exceeded','_handleConfigSave','MCP\x20配置','会话\x20ID\x20已被占用,请稍后再试','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','univer-flex\x20univer-items-start\x20univer-gap-3','none','_initializeMenus','OffLineIcon','LocaleService','Copy\x20the\x20JSON\x20configuration\x20below','_mcpConnectionController','close','string','mcpConfig.title','univer-flex\x20univer-items-center\x20univer-gap-2','MCPConnectionError','Plugin','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','__setCustomHeaders','useObservable','<SESSION_ID>','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','subscribeConfigValue$','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','xlink:href','未连接','_initConfigSync','UniverMCPUIPlugin','mcpStatus.maxRetriesExceeded','mcpConfig.connectionError.maxRetriesExceeded','subscribe','网络连接错误,请检查您的网络连接','univer-text-yellow-500','defineProperty','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','什么是\x20API\x20密钥?','MenuIcon','UNAUTHORIZED','connectInjector','https://console.univer.ai','API\x20密钥长度至少需要\x2010\x20位','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser'];_0x506b=function(){return _0x9e956b;};return _0x506b();}function Pe(_0x37e4e4){const _0xbf84c9=_0x1656c9;switch(_0x37e4e4){case s[_0xbf84c9(0x1c1)]['CONNECTED']:return _0xbf84c9(0x15a);case s['MCPConnectionStatus']['CONNECTING']:case s[_0xbf84c9(0x1c1)][_0xbf84c9(0x174)]:return _0xbf84c9(0x122);case s[_0xbf84c9(0x1c1)][_0xbf84c9(0xe5)]:case s[_0xbf84c9(0x1c1)]['DISCONNECTED']:return _0xbf84c9(0x17e);default:return _0xbf84c9(0x20c);}}function W(_0x3df309){const _0x47a617=_0x1656c9,{status$:_0x4f87b3,error$:_0x2fb171,onConfigure:_0x293f94,showClickable:_0xa45f01=!0x0}=_0x3df309,_0x56fc2f=v[_0x47a617(0x115)](_0x4f87b3,s['MCPConnectionStatus'][_0x47a617(0x14a)]),_0x4c3bd6=v[_0x47a617(0x115)](_0x2fb171,s['MCPConnectionError'][_0x47a617(0xd0)]),_0x5f54b8=v[_0x47a617(0x1b7)](u[_0x47a617(0x10a)]),_0x39dd73=_0x56fc2f===s[_0x47a617(0x1c1)][_0x47a617(0x1d5)];_0x56fc2f===s[_0x47a617(0x1c1)][_0x47a617(0x165)]||s[_0x47a617(0x1c1)][_0x47a617(0x174)];const _0x380aec=_0x5f54b8['t'](Z(_0x56fc2f,_0x4c3bd6)),_0x5859c8=Se(_0x56fc2f,_0x4c3bd6,_0x5f54b8,_0xa45f01),_0x415ee7=Pe(_0x56fc2f),_0x5d50b0=_0x39dd73?i['jsx'](q,{}):i[_0x47a617(0x13b)](Y,{}),_0x2ded72=d[_0x47a617(0x9d)](()=>{_0xa45f01&&_0x293f94&&_0x293f94();},[_0xa45f01,_0x293f94]);function _0x7b506e(){const _0x3459a6=_0x47a617;return i[_0x3459a6(0x8d)](_0x3459a6(0x138),{'className':f['clsx'](_0x3459a6(0x1aa),_0xa45f01&&_0x293f94&&'\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'),'role':_0x3459a6(0xda),'onClick':_0xa45f01&&_0x293f94?_0x2ded72:void 0x0,'children':[i['jsx'](_0x3459a6(0x138),{'className':f[_0x3459a6(0xff)](_0x3459a6(0x1b5),_0x415ee7),'children':_0x5d50b0}),i[_0x3459a6(0x13b)](_0x3459a6(0x138),{'className':_0x3459a6(0x119),'children':_0x380aec})]});}return i[_0x47a617(0x13b)](f[_0x47a617(0x135)],{'title':_0x5859c8,'placement':_0x47a617(0xf1),'children':_0x7b506e()});}var Ie=Object[_0x1656c9(0x18a)],_e=(_0x217a5f,_0x3557b8,_0x3c2e45,_0x16ea27)=>{const _0x1f6bfd=_0x1656c9;for(var _0x47d4dd=_0x16ea27>0x1?void 0x0:_0x16ea27?Ie(_0x3557b8,_0x3c2e45):_0x3557b8,_0x126717=_0x217a5f[_0x1f6bfd(0x1fd)]-0x1,_0x574182;_0x126717>=0x0;_0x126717--)(_0x574182=_0x217a5f[_0x126717])&&(_0x47d4dd=_0x574182(_0x47d4dd)||_0x47d4dd);return _0x47d4dd;},N=(_0x35d11a,_0x125b28)=>(_0x49fc8f,_0x5eac1e)=>_0x125b28(_0x49fc8f,_0x5eac1e,_0x35d11a);exports[_0x1656c9(0xf6)]=class extends u[_0x1656c9(0x1fc)]{constructor(_0x56245e,_0x3f1cb2,_0x11f050,_0x3bacd2){const _0x1a1701=_0x1656c9;super(),this[_0x1a1701(0x20f)]=_0x56245e,this[_0x1a1701(0x19e)]=_0x3f1cb2,this[_0x1a1701(0x1c4)]=_0x11f050,this[_0x1a1701(0xa4)]=_0x3bacd2,this[_0x1a1701(0x1e3)](),this[_0x1a1701(0x1a5)]();}[_0x1656c9(0x1e3)](){const _0x232d16=_0x1656c9,_0x125061=this[_0x232d16(0xa4)]['getConfig'](P);_0x125061!=null&&_0x125061[_0x232d16(0x209)]&&(this[_0x232d16(0x19e)]['enableAutoConnect']=!0x1);}[_0x1656c9(0x1a5)](){const _0x30440f=_0x1656c9,_0xf430e1=this['_configService'][_0x30440f(0x214)](P);(_0xf430e1==null?void 0x0:_0xf430e1[_0x30440f(0xf3)])!==!0x1&&this[_0x30440f(0xa8)](this[_0x30440f(0x1c4)]['registerComponent'](v[_0x30440f(0xce)]['HEADER_MENU'],()=>{const _0xe3f49f=_0x30440f;var _0x4de146;return v[_0xe3f49f(0x128)](ye({'status$':this['_connectionController']['connectionStatus$'],'error$':this[_0xe3f49f(0x19e)][_0xe3f49f(0x13e)],'onConfigure':()=>this[_0xe3f49f(0xe4)](),'showClickable':(_0x4de146=_0xf430e1==null?void 0x0:_0xf430e1[_0xe3f49f(0x209)])!=null?_0x4de146:!0x1}),this[_0xe3f49f(0x20f)]);}));}[_0x1656c9(0xe4)](){const _0xe100c8=_0x1656c9;this['_injector'][_0xe100c8(0xc8)](exports['MCPConfigUIController'])[_0xe100c8(0x1fa)]();}},exports[_0x1656c9(0xf6)]=_e([N(0x0,u['Inject'](u[_0x1656c9(0xfa)])),N(0x1,u[_0x1656c9(0xef)](s[_0x1656c9(0x1bc)])),N(0x2,v[_0x1656c9(0x176)]),N(0x3,u[_0x1656c9(0x90)])],exports[_0x1656c9(0xf6)]);function ye(_0x5c4bf2){const {status$:_0x407c46,error$:_0x538191,onConfigure:_0x27daa0,showClickable:_0xde634}=_0x5c4bf2;return function(){const _0x5352f9=_0x21c2;return i[_0x5352f9(0x13b)](W,{'status$':_0x407c46,'error$':_0x538191,'onConfigure':_0x27daa0,'showClickable':_0xde634});};}function Me(_0x35aa32){const _0x3c992b=_0x1656c9;return{'id':b['id'],'type':v[_0x3c992b(0xc0)][_0x3c992b(0x20d)],'icon':_0x3c992b(0x126),'title':'mcpConfig.title','tooltip':_0x3c992b(0x10f)};}const Ne={[v[_0x1656c9(0xae)][_0x1656c9(0x1fb)]]:{[b['id']]:{'order':0xa,'menuItemFactory':Me}}};var be=Object[_0x1656c9(0x18a)],je=(_0x3939a4,_0x5a90d5,_0x26d3bc,_0x9beffa)=>{for(var _0x2af5b3=_0x9beffa>0x1?void 0x0:_0x9beffa?be(_0x5a90d5,_0x26d3bc):_0x5a90d5,_0x4ec801=_0x3939a4['length']-0x1,_0x26db8f;_0x4ec801>=0x0;_0x4ec801--)(_0x26db8f=_0x3939a4[_0x4ec801])&&(_0x2af5b3=_0x26db8f(_0x2af5b3)||_0x2af5b3);return _0x2af5b3;},z=(_0x366708,_0x1cc251)=>(_0x22c27f,_0xb17530)=>_0x1cc251(_0x22c27f,_0xb17530,_0x366708);exports[_0x1656c9(0xfb)]=class extends u[_0x1656c9(0x1fc)]{constructor(_0x23360d,_0x5aaf91){const _0x242131=_0x1656c9;super(),this[_0x242131(0xf5)]=_0x23360d,this[_0x242131(0x1ff)]=_0x5aaf91,this[_0x242131(0xfd)](),this[_0x242131(0x108)]();}[_0x1656c9(0xfd)](){const _0x3104e9=_0x1656c9;[b][_0x3104e9(0x184)](_0x5d3b5c=>{const _0x52c1e5=_0x3104e9;this[_0x52c1e5(0xa8)](this[_0x52c1e5(0xf5)][_0x52c1e5(0x13d)](_0x5d3b5c));});}[_0x1656c9(0x108)](){const _0x456805=_0x1656c9;this['_menuManagerService'][_0x456805(0x1a7)](Ne);}},exports[_0x1656c9(0xfb)]=je([z(0x0,u[_0x1656c9(0x1c5)]),z(0x1,v[_0x1656c9(0x1cb)])],exports[_0x1656c9(0xfb)]);const Ee={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x1656c9(0x1e6),'connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':_0x1656c9(0xc1),'unknown':_0x1656c9(0x9a),'unauthorized':_0x1656c9(0x8e),'sessionOccupied':_0x1656c9(0x19b),'networkError':_0x1656c9(0x93),'maxRetriesExceeded':_0x1656c9(0x101),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x1656c9(0x1f3),'description':_0x1656c9(0x13f),'apiKey':_0x1656c9(0x15f),'apiKeyPlaceholder':_0x1656c9(0x1ab),'apiKeyHint':_0x1656c9(0x12b),'enableAuth':'Enable\x20Authentication','enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x1656c9(0x200),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x1656c9(0x10b),'configStep2':_0x1656c9(0xcd),'configStep3':_0x1656c9(0x207),'sessionId':_0x1656c9(0x196),'sessionIdDescription':_0x1656c9(0x1d9),'authorizationDescription':_0x1656c9(0xba),'configParameters':_0x1656c9(0x1e5),'maxRetries':_0x1656c9(0x1a8),'save':'Save\x20Configuration','saving':_0x1656c9(0x1ca),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x1656c9(0x124),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x1656c9(0xa1),'apiApplyInfo':{'title':_0x1656c9(0x1eb),'description':_0x1656c9(0x157),'univerAiLabel':_0x1656c9(0x169),'getStarted':_0x1656c9(0x16a)},'validation':{'apiKeyRequired':_0x1656c9(0xbf),'apiKeyTooShort':_0x1656c9(0x145),'invalidConfig':_0x1656c9(0xca),'invalidApiKey':_0x1656c9(0x1af)},'connectionStatus':{'disconnected':_0x1656c9(0xc9),'connecting':_0x1656c9(0x172),'connected':_0x1656c9(0x1d4),'failed':_0x1656c9(0x14e),'retrying':_0x1656c9(0xaf)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x1656c9(0x171),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x1656c9(0x8c)}}},we={'mcpStatus':{'disconnected':_0x1656c9(0x20b),'connecting':_0x1656c9(0x132),'connected':_0x1656c9(0xb4),'failed':'MCP\x20连接失败','retrying':_0x1656c9(0x1c9),'unknown':_0x1656c9(0x18f),'unauthorized':'MCP:\x20未授权','sessionOccupied':_0x1656c9(0x1bd),'networkError':_0x1656c9(0x202),'maxRetriesExceeded':_0x1656c9(0x1e2),'clickToConnect':_0x1656c9(0xa2),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x1656c9(0x103),'description':_0x1656c9(0x1b9),'apiKey':_0x1656c9(0x16f),'apiKeyPlaceholder':_0x1656c9(0x198),'apiKeyHint':_0x1656c9(0xf7),'enableAuth':_0x1656c9(0x1cd),'enableAuthHint':_0x1656c9(0xb7),'connectionInfo':_0x1656c9(0xbb),'mcpClientConfig':_0x1656c9(0xbb),'configInstructions':_0x1656c9(0x17b),'configStepTitle':'配置步骤:','configStep1':_0x1656c9(0x1e1),'configStep2':_0x1656c9(0xa3),'configStep3':_0x1656c9(0x148),'sessionId':_0x1656c9(0xb8),'sessionIdDescription':_0x1656c9(0x143),'authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':'配置参数:','maxRetries':_0x1656c9(0x204),'save':_0x1656c9(0x1e8),'saving':_0x1656c9(0x182),'note1':_0x1656c9(0x133),'note2':_0x1656c9(0x16c),'configSaved':_0x1656c9(0x144),'configError':_0x1656c9(0x1d2),'apiApplyInfo':{'title':_0x1656c9(0x125),'description':_0x1656c9(0x156),'univerAiLabel':_0x1656c9(0x1e7),'getStarted':_0x1656c9(0x181)},'validation':{'apiKeyRequired':_0x1656c9(0x178),'apiKeyTooShort':_0x1656c9(0x12a),'invalidConfig':_0x1656c9(0xcf),'invalidApiKey':_0x1656c9(0x9c)},'connectionStatus':{'disconnected':_0x1656c9(0x11b),'connecting':'连接中...','connected':_0x1656c9(0xe2),'failed':_0x1656c9(0xb3),'retrying':_0x1656c9(0xb5)},'connectionError':{'unauthorized':_0x1656c9(0xb1),'sessionOccupied':_0x1656c9(0x104),'networkError':_0x1656c9(0x121),'maxRetriesExceeded':_0x1656c9(0x1c2)}}};var Ae=Object[_0x1656c9(0x123)],Oe=Object['getOwnPropertyDescriptor'],De=(_0x537a0a,_0xf602c5,_0x288bfd)=>_0xf602c5 in _0x537a0a?Ae(_0x537a0a,_0xf602c5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x288bfd}):_0x537a0a[_0xf602c5]=_0x288bfd,Ue=(_0x17bbb5,_0x55cee6,_0x108d19,_0x72c2)=>{const _0xca2c10=_0x1656c9;for(var _0x4777cc=_0x72c2>0x1?void 0x0:_0x72c2?Oe(_0x55cee6,_0x108d19):_0x55cee6,_0x4ef2bb=_0x17bbb5[_0xca2c10(0x1fd)]-0x1,_0xf54048;_0x4ef2bb>=0x0;_0x4ef2bb--)(_0xf54048=_0x17bbb5[_0x4ef2bb])&&(_0x4777cc=_0xf54048(_0x4777cc)||_0x4777cc);return _0x4777cc;},y=(_0x1ef924,_0x1d8e0b)=>(_0x3aae37,_0x4a9a64)=>_0x1d8e0b(_0x3aae37,_0x4a9a64,_0x1ef924),$e=(_0x1faecd,_0x1c15c3,_0x51d5eb)=>De(_0x1faecd,_0x1c15c3+'',_0x51d5eb);exports[_0x1656c9(0x11d)]=class extends u[_0x1656c9(0x112)]{constructor(_0x7b4e7a=L,_0x86e99,_0xf89068,_0x1a31fa,_0x452294,_0x5d0c94){const _0x420eaf=_0x1656c9;super(),this[_0x420eaf(0x137)]=_0x7b4e7a,this[_0x420eaf(0x20f)]=_0x86e99,this[_0x420eaf(0xa4)]=_0xf89068,this['_uiPartsService']=_0x1a31fa,this[_0x420eaf(0x186)]=_0x452294,this[_0x420eaf(0xc6)]=_0x5d0c94;const {..._0x687d93}=u[_0x420eaf(0x1d7)]({},L,this['_config']);this[_0x420eaf(0xa4)][_0x420eaf(0x210)](P,_0x687d93);}async[_0x1656c9(0x167)](){const _0xf0ba71=_0x1656c9,_0x1ebab8=[[exports['MCPConnectionUIController']],[exports[_0xf0ba71(0x1ac)]],[exports['MCPUIMenuController']]];this['_injector'][_0xf0ba71(0x1b8)](A[_0xf0ba71(0xf8)])||_0x1ebab8[_0xf0ba71(0x197)]([A[_0xf0ba71(0xf8)],{'useClass':A[_0xf0ba71(0x153)]}]),_0x1ebab8[_0xf0ba71(0x184)](_0x4b5e13=>this[_0xf0ba71(0x20f)][_0xf0ba71(0x1ef)](_0x4b5e13)),this[_0xf0ba71(0x20f)][_0xf0ba71(0xc8)](exports['MCPConnectionUIController']),this[_0xf0ba71(0x20f)]['get'](exports[_0xf0ba71(0x1ac)]),this[_0xf0ba71(0x20f)]['get'](exports[_0xf0ba71(0xfb)]);}},$e(exports['UniverMCPUIPlugin'],_0x1656c9(0x1db),'MCP_UI_PLUGIN'),exports[_0x1656c9(0x11d)]=Ue([u[_0x1656c9(0x97)](s[_0x1656c9(0x15b)]),y(0x1,u[_0x1656c9(0xef)](u['Injector'])),y(0x2,u[_0x1656c9(0x90)]),y(0x3,v[_0x1656c9(0x176)]),y(0x4,u[_0x1656c9(0x199)]),y(0x5,u[_0x1656c9(0xef)](u[_0x1656c9(0x10a)]))],exports[_0x1656c9(0x11d)]),exports[_0x1656c9(0xee)]=V,exports['MCPStatusDisplay']=W,exports[_0x1656c9(0x1a2)]=b,exports[_0x1656c9(0x16b)]=Ee,exports['zhCN']=we;
|
|
1
|
+
'use strict';const _0xc66653=_0x992d;(function(_0x472cde,_0x14dd37){const _0x423b92=_0x992d,_0xad597c=_0x472cde();while(!![]){try{const _0x4fd6bb=parseInt(_0x423b92(0x1b7))/0x1*(parseInt(_0x423b92(0x1b2))/0x2)+parseInt(_0x423b92(0x1e3))/0x3*(parseInt(_0x423b92(0x170))/0x4)+parseInt(_0x423b92(0x1ab))/0x5*(-parseInt(_0x423b92(0x17b))/0x6)+-parseInt(_0x423b92(0x1b6))/0x7*(parseInt(_0x423b92(0xa6))/0x8)+parseInt(_0x423b92(0xa7))/0x9*(parseInt(_0x423b92(0x12a))/0xa)+-parseInt(_0x423b92(0x11e))/0xb+-parseInt(_0x423b92(0x1ac))/0xc;if(_0x4fd6bb===_0x14dd37)break;else _0xad597c['push'](_0xad597c['shift']());}catch(_0x2301b5){_0xad597c['push'](_0xad597c['shift']());}}}(_0x1ca6,0xa6eca));var ae=Object[_0xc66653(0xa9)],le=(_0x297144,_0x52da0e,_0x1ae23c)=>_0x52da0e in _0x297144?ae(_0x297144,_0x52da0e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1ae23c}):_0x297144[_0x52da0e]=_0x1ae23c,I=(_0xa83f4b,_0xb4838,_0x3ff788)=>le(_0xa83f4b,typeof _0xb4838!=_0xc66653(0xcc)?_0xb4838+'':_0xb4838,_0x3ff788);Object['defineProperty'](exports,Symbol[_0xc66653(0x200)],{'value':_0xc66653(0x212)});function _0x1ca6(){const _0x3f90e2=['mcpServerUrl','mcpStatus.sessionOccupied','connectInjector','BehaviorSubject','assign','COMMAND','Save\x20Configuration','What\x20is\x20API\x20Key?','ILogService','IConfigService','连接失败','您的\x20API\x20密钥将在此浏览器中本地存储','mcp-ui.config','将以下配置添加到您的\x20MCP\x20客户端设置中:','zhCN','mcpStatus.clickToConnect','_initializeMenus','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','LocaleService','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','_injector','defIds','useCallback','MCP\x20Configuration','SESSION_ID_OCCUPIED','MCP\x20Unknown\x20Status','substring','white','网络连接错误,请检查您的网络连接','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','toString','connectionError$','_connectionController','__setCustomHeaders','entries','xlink:href','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Bearer\x20','univer-text-sm\x20univer-font-medium','useDependency','UNAUTHORIZED','_commandService','showStatus','重启您的\x20MCP\x20客户端以使配置生效','Input','MenuItemType','Configuration\x20Notes:','univer.ai','mcpConfig.connectionStatus.disconnected','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','IUIPartsService','univer-bg-blue-500','HEADER_MENU','RETRYING','mcpConfig.apiKey','mcpConfig.configStep1','getItem','_initializeCommands','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','pluginName','_componentManager','Session\x20ID','mcpConfig.connectionError.networkError','_handleConfigSave','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','配置保存成功','MCP:\x20网络错误','univer-bg-green-500','mcpStatus.networkError','CONNECTING','idSuffix','9438660hswLEJ','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','权限验证失败,请检查您的\x20API\x20密钥','_localStorageService','apiKey','fill','enUS','warn','MCP\x20Disconnected','length','MCP_UI_PLUGIN','OpenMCPConfigPanelCommand','10nJlIfW','get','CONNECTED','_configService','mcpConfig.apiApplyInfo.getStarted','连接中...','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','univer.plus','什么是\x20API\x20密钥?','univer-space-y-4','_apiKey$','WebSocketService','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','几秒钟内获取您的\x20API\x20密钥','_loadStoredApiKey','mcpConfig.validation.invalidApiKey','includes','_menuManagerService','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','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-text-green-500','label','off','1em','tag','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','<SESSION_ID>','mcpConfig.title','univer-text-blue-600','_config','colorChannel1','BuiltInUIPart','Enable\x20authentication\x20for\x20secure\x20connections','mask','_handleConfigure','MCP\x20Connecting...','currentColor','API\x20key\x20with\x20Bearer\x20prefix.','text','MCPConfigPanel','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','univer-space-y-3','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','API\x20密钥不能为空','subscribeConfigValue$','Configuration\x20Steps:','univer-flex\x20univer-items-start\x20univer-gap-3','translate(.97)','has','replace','MCP:\x20未授权','mcpConfig.apiKeyHint','mcpConfig.configStepTitle','RibbonStartGroup','MCP\x20Connected','registerCommand','univer-min-w-0\x20univer-flex-1','http','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','NETWORK_ERROR','IMessageService','mcpStatus.unauthorized','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','useState','Plugin','Retrying...','Disposable','mcpConfig.connectionError.maxRetriesExceeded','16sKVDWD','univer-size-2\x20univer-rounded-full','重连中...','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','DependentOn','FAILED','_mcpCoreConfig$','Click\x20to\x20connect\x20MCP','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','点击配置\x20MCP','Get\x20your\x20API\x20key\x20in\x20seconds','6ykdhiX','svg','open','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','univer-space-y-5','MCP:\x20Network\x20Error','children','API\x20密钥无效,请检查密钥是否正确','univer-size-4','0\x200\x2017\x2016','url(#$1','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','span','配置\x20MCP\x20使用\x20AI\x20操作电子表格','registerComponent','MessageType','url(#off-line-icon_clip0_910_343)','UniverMCPUIPlugin','univer-flex\x20univer-items-center','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','mcpStatus.clickToConfigure','univer_session_id:','_localeService','_initConfigSync','trim','pre','最大重试次数','merge','Configuration\x20saved\x20successfully','getOwnPropertyDescriptor','useRef','disposeWithMe','removeItem','button','API\x20key\x20is\x20required','\x20-\x20','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','getConfig','mcpStatus.failed','Univer\x20AI\x20控制台','MCPStatusDisplay','mcpConfig.configStep3','close','MCP\x20客户端配置','mcpStatus.maxRetriesExceeded','未连接','配置无效','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','1881395dQouHP','2654976LaATHJ','_createConfigPanelComponent','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','isValid','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','59882seICgB','univer-flex\x20univer-items-start\x20univer-gap-2','_uiPartsService','next','350aoZCsf','22NfoSdd','mcpConfig.connectionStatus.connected','displayName','noopener\x20noreferrer','div','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20Unauthorized','MCP\x20重连中...','univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','univer-mr-2\x20univer-flex\x20univer-text-xl','NONE','_loading$','MCP:\x20Max\x20Retries\x20Exceeded','保存中...','MCP\x20连接中...','MCPConnectionController','_config$','mcpConfig.sessionIdDescription','将配置添加到您的\x20MCP\x20客户端设置文件中','univer-shrink-0\x20univer-text-blue-500','setConfig','_registerComponent','MCPConnectionStatus','forEach','use','_validateConfig','Button','UniverMCPPlugin','mcpConfig.description','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','on-line-icon_clip0_910_349','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','_initAutoConnect','error','配置步骤:','MCPUIMenuController','univer-flex\x20univer-gap-3','Injector','mergeMenu','value','MCP_PLUGIN_CONFIG_KEY','path','getCurrentConfig','mcp-config-dialog','633198gmZrgB','on-line-icon','map','Connection\x20Failed','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','MCP\x20配置','forwardRef','\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','attrs','setItem','createElement','mcpConfig.apiKeyPlaceholder','univer-flex\x20univer-items-center\x20univer-gap-2','MCPConnectionUIController','MAX_RETRIES_EXCEEDED','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','register','mcpConfig.validation.apiKeyTooShort','IMenuManagerService','off-line-icon_clip0_910_343','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','none','subscribe','MCPConfigUIController','https://mcp.univer.ai/mcp/?univer_session_id=','help-icon','showConfigPanel','0\x200\x2016\x2016','univer-flex\x20univer-flex-wrap\x20univer-gap-2','toStringTag','MCP:\x20超出最大重试次数','jsxs','MCP\x20连接失败','Inject','mcpConfig.configSaved','DISCONNECTED','jsx','_blank','enableAutoConnect','Click\x20to\x20configure\x20MCP','Error','mcpConfig.apiApplyInfo.title','round','MCP\x20Client\x20Configuration','ILocalStorageService','mcpConfig.connectionStatus.failed','show','Module','close-icon','useObservable','validateApiKey','API\x20Key','ISocketService','evenodd','ICommandService','Failed\x20to\x20save\x20configuration','Univer\x20AI\x20Console','showDeveloperTools','mcpStatus.unknown','_messageService','univer-flex-1','stringify','mcpStatus.retrying','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','http://www.w3.org/2000/svg','ComponentManager','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','mcp.apiKey','Disconnected','univer-text-xs\x20univer-text-gray-500','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','34288ZJjdnU','7655787RSbZNu','mcpConfig.configStep2','defineProperty','<API_KEY>','_logService','clsx','MCP\x20Connection\x20Failed','univer-space-y-2','Copy\x20the\x20JSON\x20configuration\x20below','mcpConfig.connectionError.unauthorized','mcpConfig.validation.apiKeyRequired','clipPath','https://console.univer.plus','push','MenuIcon','univer-text-gray-400','univer-text-white','_dialogService','mcpConfig.note2','string','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','UniverIcon','配置更改将立即生效','off-line-icon','univer-text-red-500','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-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','mcpConfig.note1','https://console.univer.ai','_mcpConnectionController','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','配置保存失败','errorMessage','_initStatusComponent','Connected','mcpConfig.validation.invalidConfig','defs','symbol','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','current','M0\x200H16V16H0z','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','mcpConfig.apiApplyInfo.univerAiLabel','mcpConfig.configError','univer-text-xs\x20univer-text-gray-600','MCPConnectionError'];_0x1ca6=function(){return _0x3f90e2;};return _0x1ca6();}const u=require('@univerjs/core'),i=require('react/jsx-runtime'),s=require('@univerjs-pro/mcp'),f=require('@univerjs/design'),v=require('@univerjs/ui'),M=require('rxjs'),d=require('react'),A=require('@univerjs/network');function _({ref:_0x2a2a7d,..._0x38bffc}){const _0x5bf44d=_0xc66653,{icon:_0x2b2672,id:_0x516376,className:_0x4f4172,extend:_0x4f86e0,..._0x443135}=_0x38bffc,_0x4f3da5=('univerjs-icon\x20univerjs-icon-'+_0x516376+'\x20'+(_0x4f4172||''))[_0x5bf44d(0x193)](),_0x4127a7=d[_0x5bf44d(0x199)]('_'+de());return G(_0x2b2672,''+_0x516376,{'defIds':_0x2b2672[_0x5bf44d(0xea)],'idSuffix':_0x4127a7[_0x5bf44d(0xce)]},{'ref':_0x2a2a7d,'className':_0x4f3da5,..._0x443135},_0x4f86e0);}function G(_0x9b24b5,_0x40057a,_0x319da8,_0x495552,_0x5a007f){const _0x5b63d7=_0xc66653;return d[_0x5b63d7(0x1ed)](_0x9b24b5[_0x5b63d7(0x143)],{'key':_0x40057a,...ue(_0x9b24b5,_0x319da8,_0x5a007f),..._0x495552},(ve(_0x9b24b5,_0x319da8)[_0x5b63d7(0x181)]||[])['map']((_0x5320d6,_0xe4e9b5)=>G(_0x5320d6,_0x40057a+'-'+_0x9b24b5['tag']+'-'+_0xe4e9b5,_0x319da8,void 0x0,_0x5a007f)));}function ue(_0x391d6c,_0x4b3076,_0x1c86c9){const _0x1c75e9=_0xc66653,_0x159eef={..._0x391d6c['attrs']};_0x1c86c9!=null&&_0x1c86c9[_0x1c75e9(0x149)]&&_0x159eef[_0x1c75e9(0x123)]===_0x1c75e9(0x149)&&(_0x159eef['fill']=_0x1c86c9['colorChannel1']),_0x391d6c[_0x1c75e9(0x143)]===_0x1c75e9(0x14c)&&_0x159eef['id']&&(_0x159eef['id']=_0x159eef['id']+_0x4b3076[_0x1c75e9(0x11d)]),Object[_0x1c75e9(0xf7)](_0x159eef)[_0x1c75e9(0x1ce)](([_0x2ae9fe,_0x1bb084])=>{const _0x19a3c1=_0x1c75e9;_0x2ae9fe==='mask'&&typeof _0x1bb084==_0x19a3c1(0xba)&&(_0x159eef[_0x2ae9fe]=_0x1bb084['replace'](/url\(#(.*)\)/,_0x19a3c1(0x185)+_0x4b3076[_0x19a3c1(0x11d)]+')'));});const {defIds:_0x276855}=_0x4b3076;return!_0x276855||_0x276855[_0x1c75e9(0x127)]===0x0||(_0x391d6c[_0x1c75e9(0x143)]===_0x1c75e9(0x1cf)&&_0x159eef[_0x1c75e9(0xf8)]&&(_0x159eef['xlink:href']=_0x159eef[_0x1c75e9(0xf8)]+_0x4b3076[_0x1c75e9(0x11d)]),Object[_0x1c75e9(0xf7)](_0x159eef)['forEach'](([_0x4d57c8,_0x1213ff])=>{const _0x3c3304=_0x1c75e9;typeof _0x1213ff==_0x3c3304(0xba)&&(_0x159eef[_0x4d57c8]=_0x1213ff[_0x3c3304(0x15d)](/url\(#(.*)\)/,_0x3c3304(0x185)+_0x4b3076[_0x3c3304(0x11d)]+')'));})),_0x159eef;}function ve(_0x489bec,_0x2a4193){const _0x79ba4b=_0xc66653;var _0x2d9abd;const {defIds:_0x51dac6}=_0x2a4193;return!_0x51dac6||_0x51dac6[_0x79ba4b(0x127)]===0x0?_0x489bec:_0x489bec[_0x79ba4b(0x143)]===_0x79ba4b(0xcb)&&((_0x2d9abd=_0x489bec[_0x79ba4b(0x181)])!=null&&_0x2d9abd[_0x79ba4b(0x127)])?{..._0x489bec,'children':_0x489bec[_0x79ba4b(0x181)][_0x79ba4b(0x1e5)](_0x456ae5=>typeof _0x456ae5['attrs']['id']==_0x79ba4b(0xba)&&_0x51dac6&&_0x51dac6['includes'](_0x456ae5[_0x79ba4b(0x1eb)]['id'])?{..._0x456ae5,'attrs':{..._0x456ae5[_0x79ba4b(0x1eb)],'id':_0x456ae5[_0x79ba4b(0x1eb)]['id']+_0x2a4193[_0x79ba4b(0x11d)]}}:_0x456ae5)}:_0x489bec;}function de(){const _0x399823=_0xc66653;return Math['random']()[_0x399823(0xf3)](0x24)[_0x399823(0xef)](0x2,0x8);}_['displayName']=_0xc66653(0xbc);const Ce={'tag':_0xc66653(0x17c),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0xc66653(0x1f8),'viewBox':_0xc66653(0x1fe),'width':_0xc66653(0x142),'height':_0xc66653(0x142)},'children':[{'tag':_0xc66653(0x1e0),'attrs':{'fill':_0xc66653(0x14f),'d':_0xc66653(0x178),'fillRule':_0xc66653(0x92),'clipRule':'evenodd'}}]},H=d[_0xc66653(0x1e9)](function(_0x182bfd,_0x5ec146){const _0x38e6e7=_0xc66653;return d[_0x38e6e7(0x1ed)](_,Object[_0x38e6e7(0xd9)]({},_0x182bfd,{'id':'check-mark-icon','ref':_0x5ec146,'icon':Ce}));});H[_0xc66653(0x1b9)]='CheckMarkIcon';const ge={'tag':'svg','attrs':{'xmlns':_0xc66653(0x9e),'fill':_0xc66653(0x1f8),'viewBox':_0xc66653(0x1fe),'width':_0xc66653(0x142),'height':_0xc66653(0x142)},'children':[{'tag':_0xc66653(0x1e0),'attrs':{'fill':_0xc66653(0x14f),'d':_0xc66653(0xc0)}}]},B=d['forwardRef'](function(_0xe2bbf5,_0x5376da){const _0x29ff18=_0xc66653;return d['createElement'](_,Object[_0x29ff18(0xd9)]({},_0xe2bbf5,{'id':_0x29ff18(0x213),'ref':_0x5376da,'icon':ge}));});B[_0xc66653(0x1b9)]='CloseIcon';const fe={'tag':'svg','attrs':{'xmlns':_0xc66653(0x9e),'fill':_0xc66653(0x1f8),'viewBox':_0xc66653(0x1fe),'width':_0xc66653(0x142),'height':'1em'},'children':[{'tag':_0xc66653(0x1e0),'attrs':{'fill':_0xc66653(0x14f),'d':_0xc66653(0x144)}},{'tag':_0xc66653(0x1e0),'attrs':{'fill':_0xc66653(0x14f),'d':_0xc66653(0x13e)}},{'tag':_0xc66653(0x1e0),'attrs':{'fill':_0xc66653(0x14f),'d':'M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','fillRule':_0xc66653(0x92),'clipRule':_0xc66653(0x92)}}]},F=d[_0xc66653(0x1e9)](function(_0x1f7f4a,_0x2649ef){const _0x1e1515=_0xc66653;return d[_0x1e1515(0x1ed)](_,Object[_0x1e1515(0xd9)]({},_0x1f7f4a,{'id':_0x1e1515(0x1fc),'ref':_0x2649ef,'icon':fe}));});F[_0xc66653(0x1b9)]='HelpIcon';const pe={'tag':_0xc66653(0x17c),'attrs':{'xmlns':_0xc66653(0x9e),'fill':_0xc66653(0x1f8),'viewBox':_0xc66653(0x1fe),'width':_0xc66653(0x142),'height':_0xc66653(0x142)},'children':[{'tag':'g','attrs':{'clipPath':_0xc66653(0x18b)},'children':[{'tag':_0xc66653(0x1e0),'attrs':{'stroke':_0xc66653(0x14f),'d':_0xc66653(0x1e7),'strokeLinecap':_0xc66653(0x20d),'strokeLinejoin':_0xc66653(0x20d),'strokeWidth':1.2}}]},{'tag':_0xc66653(0xcb),'attrs':{},'children':[{'tag':_0xc66653(0xb2),'attrs':{'id':_0xc66653(0x1f6)},'children':[{'tag':_0xc66653(0x1e0),'attrs':{'fill':_0xc66653(0xf0),'d':_0xc66653(0xcf)}}]}]}],'defIds':[_0xc66653(0x1f6)]},Y=d[_0xc66653(0x1e9)](function(_0x1c7427,_0xd64e10){const _0x5b3e38=_0xc66653;return d[_0x5b3e38(0x1ed)](_,Object[_0x5b3e38(0xd9)]({},_0x1c7427,{'id':_0x5b3e38(0xbe),'ref':_0xd64e10,'icon':pe}));});Y[_0xc66653(0x1b9)]='OffLineIcon';const he={'tag':_0xc66653(0x17c),'attrs':{'xmlns':_0xc66653(0x9e),'fill':'none','viewBox':_0xc66653(0x184),'width':_0xc66653(0x142),'height':_0xc66653(0x142)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0xc66653(0x1e0),'attrs':{'stroke':_0xc66653(0x14f),'d':_0xc66653(0x1ae),'strokeLinecap':_0xc66653(0x20d),'strokeLinejoin':_0xc66653(0x20d),'strokeWidth':1.2}}]},{'tag':_0xc66653(0xcb),'attrs':{},'children':[{'tag':_0xc66653(0xb2),'attrs':{'id':_0xc66653(0x1d5)},'children':[{'tag':_0xc66653(0x1e0),'attrs':{'fill':_0xc66653(0xf0),'d':_0xc66653(0xcf),'transform':_0xc66653(0x15b)}}]}]}],'defIds':[_0xc66653(0x1d5)]},q=d[_0xc66653(0x1e9)](function(_0x18f402,_0x35cc85){const _0x37aeae=_0xc66653;return d[_0x37aeae(0x1ed)](_,Object[_0x37aeae(0xd9)]({},_0x18f402,{'id':_0x37aeae(0x1e4),'ref':_0x35cc85,'icon':he}));});q[_0xc66653(0x1b9)]='OnLineIcon';function V(_0x2b0384){const _0x5272a5=_0xc66653;var _0x32198e,_0x553957;const {mcpCoreConfig:_0xb6d753,onSave:_0x2d03f0,loading:_0x131c9c=!0x1,config:_0x286fc0,connectionStatus$:_0xfdd43a,connectionError$:_0x186464,currentApiKey$:_0x28b6a7,currentSessionId$:_0x34ab1d}=_0x2b0384,_0x43c0fe=v[_0x5272a5(0xfc)](u['LocaleService']),_0x47bdb8=v['useObservable'](_0xfdd43a,s[_0x5272a5(0x1cd)]['DISCONNECTED']),_0x2d07af=v['useObservable'](_0x186464,s[_0x5272a5(0xd4)][_0x5272a5(0x1c1)]),_0x224f2f=v[_0x5272a5(0x8e)](_0x34ab1d,''),_0x29b7ee=v[_0x5272a5(0x8e)](_0x28b6a7,''),[_0xcd2443,_0x598373]=d[_0x5272a5(0x16b)](_0x29b7ee||''),_0x4c76ed=!0x0,_0xb1b638=_0x286fc0[_0x5272a5(0x96)]&&_0xb6d753[_0x5272a5(0xd5)]&&(_0xb6d753['mcpServerUrl']['includes']('univer.plus')||_0xb6d753['mcpServerUrl'][_0x5272a5(0x13b)](_0x5272a5(0x104))),_0x33d2d1=(_0x32198e=_0xb6d753[_0x5272a5(0xd5)])==null?void 0x0:_0x32198e[_0x5272a5(0x13b)](_0x5272a5(0x132)),_0x454607=(_0x553957=_0xb6d753[_0x5272a5(0xd5)])==null?void 0x0:_0x553957[_0x5272a5(0x13b)](_0x5272a5(0x104)),_0x1af1a7=_0x33d2d1?_0x5272a5(0xb3):_0x5272a5(0xc3),_0x14904d=_0x286fc0[_0x5272a5(0x96)]&&(_0x33d2d1||_0x454607),[_0xbb2314,_0x10e0dd]=d[_0x5272a5(0x16b)](!_0xcd2443['trim']()),_0x52bb00=(_0x3e0040,_0x4cb53b)=>{const _0x1d17d3=_0x5272a5;if(_0x4cb53b===s[_0x1d17d3(0xd4)][_0x1d17d3(0xfd)])return _0x1d17d3(0x130);switch(_0x3e0040){case s[_0x1d17d3(0x1cd)]['CONNECTED']:return _0x1d17d3(0x137);case s[_0x1d17d3(0x1cd)][_0x1d17d3(0x11c)]:case s[_0x1d17d3(0x1cd)][_0x1d17d3(0x10b)]:return'univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200';case s['MCPConnectionStatus'][_0x1d17d3(0x175)]:return _0x1d17d3(0x130);default:return _0x1d17d3(0xa4);}},_0x3de2ef=(_0x12b447,_0x4ad8d2)=>{const _0x1feeeb=_0x5272a5;if(_0x4ad8d2===s[_0x1feeeb(0xd4)][_0x1feeeb(0xfd)])return'univer-bg-red-500';switch(_0x12b447){case s[_0x1feeeb(0x1cd)]['CONNECTED']:return _0x1feeeb(0x11a);case s[_0x1feeeb(0x1cd)][_0x1feeeb(0x11c)]:case s[_0x1feeeb(0x1cd)]['RETRYING']:return _0x1feeeb(0x109);case s[_0x1feeeb(0x1cd)][_0x1feeeb(0x175)]:return'univer-bg-red-500';default:return'univer-bg-gray-500';}},_0x25ee3c=_0xab214e=>{const _0x2ad147=_0x5272a5;switch(_0xab214e){case s[_0x2ad147(0x1cd)][_0x2ad147(0x12c)]:return _0x43c0fe['t'](_0x2ad147(0x1b8));case s['MCPConnectionStatus'][_0x2ad147(0x11c)]:return _0x43c0fe['t']('mcpConfig.connectionStatus.connecting');case s['MCPConnectionStatus'][_0x2ad147(0x175)]:return _0x43c0fe['t'](_0x2ad147(0x210));case s[_0x2ad147(0x1cd)][_0x2ad147(0x10b)]:return _0x43c0fe['t']('mcpConfig.connectionStatus.retrying');default:return _0x43c0fe['t'](_0x2ad147(0x105));}},_0x438277=_0x4031e2=>{const _0x5dcde3=_0x5272a5;switch(_0x4031e2){case s[_0x5dcde3(0xd4)][_0x5dcde3(0xfd)]:return _0x43c0fe['t'](_0x5dcde3(0xb0));case s[_0x5dcde3(0xd4)][_0x5dcde3(0xed)]:return _0x43c0fe['t']('mcpConfig.connectionError.sessionOccupied');case s[_0x5dcde3(0xd4)]['NETWORK_ERROR']:return _0x43c0fe['t'](_0x5dcde3(0x115));case s['MCPConnectionError'][_0x5dcde3(0x1f1)]:return _0x43c0fe['t'](_0x5dcde3(0x16f));default:return'';}},_0x1a6b3d=d['useCallback'](()=>{const _0x1e04ff={..._0xb6d753,'apiKey':_0xcd2443['trim'](),'enableAuth':_0x4c76ed};_0x2d03f0(_0x1e04ff);},[_0xb6d753,_0xcd2443,_0x4c76ed,_0x2d03f0]),_0x42160a=_0xcd2443['trim']()['length']>0x0;return i[_0x5272a5(0x202)]('div',{'className':_0x5272a5(0x1aa),'children':[i['jsx'](_0x5272a5(0x1bb),{'className':_0x5272a5(0x111),'children':i['jsxs'](_0x5272a5(0x1bb),{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[i[_0x5272a5(0x207)](_0x5272a5(0x1bb),{'className':_0x5272a5(0x1af),'children':i['jsx'](_0x5272a5(0x187),{'className':_0x5272a5(0xb7),'children':'⚙'})}),i[_0x5272a5(0x207)](_0x5272a5(0x1bb),{'children':i[_0x5272a5(0x207)]('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x43c0fe['t'](_0x5272a5(0x1d3))})})]})}),i['jsxs']('div',{'className':_0x5272a5(0x16a),'children':[i['jsx'](_0x5272a5(0x1bb),{'className':f[_0x5272a5(0xac)]('univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2',_0x52bb00(_0x47bdb8,_0x2d07af)),'children':i[_0x5272a5(0x202)](_0x5272a5(0x1bb),{'className':_0x5272a5(0x1ef),'children':[i[_0x5272a5(0x207)](_0x5272a5(0x1bb),{'className':f[_0x5272a5(0xac)](_0x5272a5(0x171),_0x3de2ef(_0x47bdb8,_0x2d07af))}),i[_0x5272a5(0x207)](_0x5272a5(0x187),{'className':_0x5272a5(0xfb),'children':_0x25ee3c(_0x47bdb8)})]})}),_0x2d07af!==s[_0x5272a5(0xd4)][_0x5272a5(0x1c1)]&&(_0x47bdb8===s[_0x5272a5(0x1cd)][_0x5272a5(0x175)]||_0x2d07af===s[_0x5272a5(0xd4)]['UNAUTHORIZED'])&&i[_0x5272a5(0x207)](_0x5272a5(0x1bb),{'className':_0x5272a5(0x18e),'children':i[_0x5272a5(0x202)](_0x5272a5(0x1bb),{'className':_0x5272a5(0x1b3),'children':[i['jsx']('span',{'className':'univer-shrink-0\x20univer-text-red-500','children':'⚠️'}),i[_0x5272a5(0x207)]('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x438277(_0x2d07af)})]})})]}),i['jsx'](_0x5272a5(0x1bb),{'className':_0x5272a5(0xc1),'children':i[_0x5272a5(0x202)](_0x5272a5(0x1bb),{'className':_0x5272a5(0x17f),'children':[i[_0x5272a5(0x202)](_0x5272a5(0x1bb),{'className':_0x5272a5(0xae),'children':[i[_0x5272a5(0x202)](_0x5272a5(0x140),{'className':_0x5272a5(0x155),'children':[i['jsx'](_0x5272a5(0x187),{'children':'🔑'}),'\x20',_0x43c0fe['t'](_0x5272a5(0x10c)),i[_0x5272a5(0x207)](_0x5272a5(0x187),{'className':_0x5272a5(0xbf),'children':'*'}),_0xb1b638&&i[_0x5272a5(0x207)]('a',{'className':_0x5272a5(0x1bf),'title':_0x43c0fe['t'](_0x5272a5(0x20c)),'role':_0x5272a5(0x19c),'onClick':()=>_0x10e0dd(!0x0),'children':i[_0x5272a5(0x207)](F,{})})]}),i[_0x5272a5(0x207)](f[_0x5272a5(0x101)],{'type':_0x5272a5(0x151),'placeholder':_0x43c0fe['t'](_0x5272a5(0x1ee)),'value':_0xcd2443,'disabled':_0x131c9c,'autoComplete':_0x5272a5(0x141),'onChange':_0x598373}),i[_0x5272a5(0x207)]('p',{'className':_0x5272a5(0xa3),'children':_0x43c0fe['t'](_0x5272a5(0x15f))})]}),_0xb1b638&&_0xbb2314&&i[_0x5272a5(0x202)](_0x5272a5(0x1bb),{'className':_0x5272a5(0xe8),'children':[i[_0x5272a5(0x207)]('a',{'className':_0x5272a5(0xbb),'role':_0x5272a5(0x19c),'onClick':()=>_0x10e0dd(!0x1),'children':i[_0x5272a5(0x207)](B,{'className':_0x5272a5(0x183)})}),i[_0x5272a5(0x202)](_0x5272a5(0x1bb),{'className':_0x5272a5(0x13d),'children':[i['jsx'](_0x5272a5(0x1bb),{'className':_0x5272a5(0x131),'children':i[_0x5272a5(0x207)](_0x5272a5(0x187),{'className':_0x5272a5(0x147),'children':'🚀'})}),i[_0x5272a5(0x202)](_0x5272a5(0x1bb),{'className':_0x5272a5(0x99),'children':[i[_0x5272a5(0x207)]('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x43c0fe['t'](_0x5272a5(0x20c))}),i['jsx']('p',{'className':_0x5272a5(0xa5),'children':_0x43c0fe['t']('mcpConfig.apiApplyInfo.description')}),i['jsx'](_0x5272a5(0x1bb),{'className':_0x5272a5(0x1ff),'children':_0x14904d&&i[_0x5272a5(0x202)]('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':_0x1af1a7,'target':_0x5272a5(0x208),'rel':_0x5272a5(0x1ba),'children':[i['jsx'](_0x5272a5(0x187),{'children':'🤖'}),_0x43c0fe['t'](_0x5272a5(0xd1)),i[_0x5272a5(0x207)](_0x5272a5(0x187),{'className':_0x5272a5(0xb6),'children':'↗'})]})}),i['jsxs'](_0x5272a5(0x1bb),{'className':_0x5272a5(0xe6),'children':['✨','\x20',_0x43c0fe['t'](_0x5272a5(0x12e))]})]})]})]}),_0x286fc0[_0x5272a5(0x96)]&&i[_0x5272a5(0x202)](_0x5272a5(0x1bb),{'className':_0x5272a5(0x1f2),'children':[i[_0x5272a5(0x202)]('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[i[_0x5272a5(0x207)](_0x5272a5(0x187),{'children':'🔗'}),'\x20',_0x43c0fe['t']('mcpConfig.connectionInfo')]}),i[_0x5272a5(0x202)](_0x5272a5(0x1bb),{'className':_0x5272a5(0x134),'children':[i[_0x5272a5(0x202)]('div',{'className':_0x5272a5(0x154),'children':[i['jsx']('p',{'className':_0x5272a5(0xd3),'children':_0x43c0fe['t']('mcpConfig.configInstructions')}),i[_0x5272a5(0x202)](_0x5272a5(0x1bb),{'className':_0x5272a5(0xae),'children':[i[_0x5272a5(0x207)](_0x5272a5(0x1bb),{'className':_0x5272a5(0x153),'children':_0x43c0fe['t'](_0x5272a5(0x160))}),i[_0x5272a5(0x202)]('div',{'className':_0x5272a5(0x1d4),'children':[i[_0x5272a5(0x202)]('div',{'className':_0x5272a5(0x1ef),'children':[i['jsx'](_0x5272a5(0x187),{'className':_0x5272a5(0xc5),'children':'1'}),_0x43c0fe['t'](_0x5272a5(0x10d))]}),i['jsxs']('div',{'className':_0x5272a5(0x1ef),'children':[i[_0x5272a5(0x207)](_0x5272a5(0x187),{'className':_0x5272a5(0xc5),'children':'2'}),_0x43c0fe['t'](_0x5272a5(0xa8))]}),i['jsxs'](_0x5272a5(0x1bb),{'className':_0x5272a5(0x1ef),'children':[i[_0x5272a5(0x207)](_0x5272a5(0x187),{'className':_0x5272a5(0xc5),'children':'3'}),_0x43c0fe['t'](_0x5272a5(0x1a4))]})]})]})]}),i['jsxs'](_0x5272a5(0x1bb),{'className':_0x5272a5(0xae),'children':[i[_0x5272a5(0x207)](_0x5272a5(0x1bb),{'className':_0x5272a5(0x153),'children':_0x5272a5(0xec)}),i[_0x5272a5(0x207)](_0x5272a5(0x1bb),{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':i['jsx'](_0x5272a5(0x194),{'className':_0x5272a5(0x1d6),'children':JSON[_0x5272a5(0x9a)]({'mcpServers':{'univer':{'url':_0x5272a5(0x1fb)+(_0x224f2f||_0x5272a5(0x145)),'type':_0x5272a5(0x165),'headers':{'Authorization':_0x5272a5(0xfa)+(_0xcd2443||_0x5272a5(0xaa))}}}},null,0x2)})})]}),i[_0x5272a5(0x202)]('div',{'className':_0x5272a5(0x154),'children':[i[_0x5272a5(0x207)](_0x5272a5(0x1bb),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x43c0fe['t']('mcpConfig.configParameters')}),i[_0x5272a5(0x202)](_0x5272a5(0x1bb),{'className':_0x5272a5(0xae),'children':[i['jsxs'](_0x5272a5(0x1bb),{'className':_0x5272a5(0x15a),'children':[i[_0x5272a5(0x207)](_0x5272a5(0x1bb),{'className':_0x5272a5(0xd0)}),i[_0x5272a5(0x202)](_0x5272a5(0x1bb),{'className':_0x5272a5(0x164),'children':[i[_0x5272a5(0x207)](_0x5272a5(0x1bb),{'className':_0x5272a5(0x173),'children':_0x5272a5(0x190)}),i['jsx']('div',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x43c0fe['t'](_0x5272a5(0x1c8))})]})]}),i['jsxs'](_0x5272a5(0x1bb),{'className':_0x5272a5(0x15a),'children':[i[_0x5272a5(0x207)](_0x5272a5(0x1bb),{'className':_0x5272a5(0xd0)}),i[_0x5272a5(0x202)](_0x5272a5(0x1bb),{'className':'univer-min-w-0\x20univer-flex-1','children':[i[_0x5272a5(0x207)](_0x5272a5(0x1bb),{'className':_0x5272a5(0x173),'children':'Authorization:'}),i[_0x5272a5(0x207)](_0x5272a5(0x1bb),{'className':_0x5272a5(0xa3),'children':_0x43c0fe['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),i[_0x5272a5(0x207)](f[_0x5272a5(0x1d1)],{'onClick':_0x1a6b3d,'disabled':!_0x42160a||_0x131c9c,'className':_0x5272a5(0x19f),'children':_0x131c9c?i[_0x5272a5(0x202)]('span',{'className':_0x5272a5(0x1ef),'children':[i[_0x5272a5(0x207)](_0x5272a5(0x187),{'children':'⟲'}),_0x43c0fe['t']('mcpConfig.saving')]}):i[_0x5272a5(0x202)](_0x5272a5(0x187),{'className':_0x5272a5(0x1ef),'children':[i[_0x5272a5(0x207)](H,{}),_0x43c0fe['t']('mcpConfig.save')]})}),i[_0x5272a5(0x207)](_0x5272a5(0x1bb),{'className':_0x5272a5(0xcd),'children':i[_0x5272a5(0x202)](_0x5272a5(0x1bb),{'className':_0x5272a5(0x1db),'children':[i[_0x5272a5(0x207)](_0x5272a5(0x187),{'className':_0x5272a5(0x1ca),'children':'💡'}),i[_0x5272a5(0x202)](_0x5272a5(0x1bb),{'className':_0x5272a5(0x107),'children':[i['jsx'](_0x5272a5(0x1bb),{'className':'univer-font-medium','children':_0x5272a5(0x103)}),i[_0x5272a5(0x202)](_0x5272a5(0x1bb),{'children':['•',_0x43c0fe['t'](_0x5272a5(0xc2))]}),i['jsxs'](_0x5272a5(0x1bb),{'children':['•',_0x43c0fe['t'](_0x5272a5(0xb9))]})]})]})})]})})]});}const P=_0xc66653(0xe1),L={'showDeveloperTools':!0x1,'showStatus':!0x0};var me=Object['getOwnPropertyDescriptor'],xe=(_0x5a0680,_0x44f3cc,_0x550f62,_0x2467ae)=>{const _0x13c377=_0xc66653;for(var _0x44f653=_0x2467ae>0x1?void 0x0:_0x2467ae?me(_0x44f3cc,_0x550f62):_0x44f3cc,_0x346859=_0x5a0680[_0x13c377(0x127)]-0x1,_0x5e4666;_0x346859>=0x0;_0x346859--)(_0x5e4666=_0x5a0680[_0x346859])&&(_0x44f653=_0x5e4666(_0x44f653)||_0x44f653);return _0x44f653;},g=(_0x3a4e18,_0x57fb17)=>(_0x543f2f,_0x118b89)=>_0x57fb17(_0x543f2f,_0x118b89,_0x3a4e18);const O=_0xc66653(0xa1),D=_0xc66653(0x1e2);exports['MCPConfigUIController']=class extends u[_0xc66653(0x16e)]{constructor(_0x1fe616,_0x21a3b0,_0x4cf2ed,_0xca5da3,_0xcc355,_0x5724cd,_0x55e2bb,_0x93206c,_0xf4d57f,_0x12dcae){const _0x223299=_0xc66653;super(),I(this,_0x223299(0x1c2),new M[(_0x223299(0xd8))](!0x1)),I(this,'_mcpCoreConfig$',new M[(_0x223299(0xd8))]({})),I(this,_0x223299(0x1c7),new M[(_0x223299(0xd8))]({})),I(this,_0x223299(0x135),new M['BehaviorSubject']('')),I(this,_0x223299(0x116),async _0x54fdd8=>{const _0x547938=_0x223299;var _0x4bdd36,_0x37ea4f;this[_0x547938(0x1c2)][_0x547938(0x1b5)](!0x0);try{const _0x18d82d=await this['_validateConfig'](_0x54fdd8);if(!_0x18d82d['isValid']){this[_0x547938(0x98)][_0x547938(0x211)]({'type':f[_0x547938(0x18a)][_0x547938(0x20b)],'content':_0x18d82d[_0x547938(0xc7)]||this[_0x547938(0x191)]['t'](_0x547938(0xca))});return;}_0x54fdd8[_0x547938(0x122)]?await this['_localStorageService'][_0x547938(0x1ec)](O,_0x54fdd8[_0x547938(0x122)][_0x547938(0x193)]()):await this[_0x547938(0x121)][_0x547938(0x19b)](O),this['_apiKey$'][_0x547938(0x1b5)](((_0x4bdd36=_0x54fdd8[_0x547938(0x122)])==null?void 0x0:_0x4bdd36[_0x547938(0x193)]())||''),this[_0x547938(0xc4)][_0x547938(0xf6)]({'Authorization':_0x547938(0xfa)+((_0x37ea4f=_0x54fdd8[_0x547938(0x122)])==null?void 0x0:_0x37ea4f[_0x547938(0x193)]())}),this[_0x547938(0x98)]['show']({'type':f[_0x547938(0x18a)]['Success'],'content':this[_0x547938(0x191)]['t'](_0x547938(0x205))}),setTimeout(()=>{const _0x578119=_0x547938;this[_0x578119(0xb8)][_0x578119(0x1a5)](D);},0x320);}catch(_0x600c14){this[_0x547938(0xab)][_0x547938(0x1d8)](_0x547938(0x9c),_0x600c14),this[_0x547938(0x98)]['show']({'type':f[_0x547938(0x18a)][_0x547938(0x20b)],'content':this['_localeService']['t'](_0x547938(0xd2))});}finally{this[_0x547938(0x1c2)][_0x547938(0x1b5)](!0x1);}}),(this[_0x223299(0xe9)]=_0x1fe616,this[_0x223299(0x1b4)]=_0x21a3b0,this[_0x223299(0x12d)]=_0x4cf2ed,this[_0x223299(0x121)]=_0xca5da3,this['_dialogService']=_0xcc355,this[_0x223299(0x98)]=_0x5724cd,this[_0x223299(0x113)]=_0x55e2bb,this[_0x223299(0x191)]=_0x93206c,this[_0x223299(0xab)]=_0xf4d57f,this[_0x223299(0xc4)]=_0x12dcae,this[_0x223299(0x192)](),this[_0x223299(0x139)](),this[_0x223299(0x1cc)]());}[_0xc66653(0x1fd)](){const _0xbd57f4=_0xc66653,_0x5d1f31=this[_0xbd57f4(0x12d)][_0xbd57f4(0x1a0)](P);_0x5d1f31!=null&&_0x5d1f31[_0xbd57f4(0x96)]&&this[_0xbd57f4(0xb8)][_0xbd57f4(0x17d)]({'id':D,'title':{'title':this['_localeService']['t'](_0xbd57f4(0x146))},'children':{'label':_0xbd57f4(0x152)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x2b7a1d=_0xbd57f4;this[_0x2b7a1d(0xb8)][_0x2b7a1d(0x1a5)](D);}});}[_0xc66653(0x1e1)](){const _0x135f7e=_0xc66653;return this[_0x135f7e(0x176)]['value'];}[_0xc66653(0x1cc)](){const _0x44bf07=_0xc66653;this[_0x44bf07(0x19a)](this[_0x44bf07(0x113)][_0x44bf07(0x1f3)](_0x44bf07(0x152),this['_createConfigPanelComponent']()));}[_0xc66653(0x1ad)](){const _0x1bb8fa=_0xc66653;return v[_0x1bb8fa(0xd7)](()=>{const _0x49c2bf=_0x1bb8fa;var _0x2203db,_0x5841f2,_0x533c36;return i[_0x49c2bf(0x207)](V,{'config':this[_0x49c2bf(0x1c7)][_0x49c2bf(0x1de)],'mcpCoreConfig':this[_0x49c2bf(0x176)]['value'],'currentApiKey$':this['_apiKey$'],'onSave':this[_0x49c2bf(0x116)],'loading':this['_loading$'][_0x49c2bf(0x1de)],'connectionStatus$':(_0x2203db=this[_0x49c2bf(0xc4)])==null?void 0x0:_0x2203db['connectionStatus$'],'connectionError$':(_0x5841f2=this[_0x49c2bf(0xc4)])==null?void 0x0:_0x5841f2[_0x49c2bf(0xf4)],'currentSessionId$':(_0x533c36=this['_mcpConnectionController'])==null?void 0x0:_0x533c36['sessionId$']});},this[_0x1bb8fa(0xe9)]);}[_0xc66653(0x192)](){const _0x3335fb=_0xc66653;this[_0x3335fb(0x19a)](this[_0x3335fb(0x12d)]['subscribeConfigValue$'](s['MCP_PLUGIN_CONFIG_KEY'])[_0x3335fb(0x1f9)](_0x58265b=>{const _0x41d6ad=_0x3335fb;this[_0x41d6ad(0x176)][_0x41d6ad(0x1b5)](_0x58265b||{});}));const _0x450ec2=this[_0x3335fb(0x12d)][_0x3335fb(0x1a0)](s[_0x3335fb(0x1df)]);this[_0x3335fb(0x176)][_0x3335fb(0x1b5)](_0x450ec2||{}),this[_0x3335fb(0x19a)](this[_0x3335fb(0x12d)][_0x3335fb(0x158)](P)[_0x3335fb(0x1f9)](_0x33bec9=>{const _0x4ee3e3=_0x3335fb;this[_0x4ee3e3(0x1c7)]['next'](_0x33bec9||{});}));const _0x5b1b67=this['_configService'][_0x3335fb(0x1a0)](P);this[_0x3335fb(0x1c7)][_0x3335fb(0x1b5)](_0x5b1b67||{});}async[_0xc66653(0x139)](){const _0x5d86b4=_0xc66653,_0x23e7d0=this[_0x5d86b4(0x12d)][_0x5d86b4(0x1a0)](P);if(!(_0x23e7d0!=null&&_0x23e7d0[_0x5d86b4(0x96)]))return;const _0x404e3e=await this[_0x5d86b4(0x121)][_0x5d86b4(0x10e)](O);_0x404e3e&&(this[_0x5d86b4(0xc4)]['__setCustomHeaders']({'Authorization':_0x5d86b4(0xfa)+_0x404e3e}),this['_apiKey$']['next'](_0x404e3e));}async[_0xc66653(0x1d0)](_0x31bd96){const _0x4d914a=_0xc66653;if(!_0x31bd96['apiKey']||_0x31bd96[_0x4d914a(0x122)]['trim']()['length']===0x0)return{'isValid':!0x1,'errorMessage':this[_0x4d914a(0x191)]['t'](_0x4d914a(0xb1))};if(_0x31bd96[_0x4d914a(0x122)][_0x4d914a(0x193)]()[_0x4d914a(0x127)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x4d914a(0x191)]['t'](_0x4d914a(0x1f4))};try{const _0x20390f=await this[_0x4d914a(0xe9)][_0x4d914a(0x12b)](s[_0x4d914a(0x1c6)])[_0x4d914a(0x8f)](_0x31bd96[_0x4d914a(0x122)][_0x4d914a(0x193)]());return _0x20390f[_0x4d914a(0x1b0)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x20390f[_0x4d914a(0x1d8)]||this[_0x4d914a(0x191)]['t'](_0x4d914a(0x13a))};}catch(_0x15afc3){return console[_0x4d914a(0x125)](_0x4d914a(0x117),_0x15afc3),{'isValid':!0x0};}}},exports[_0xc66653(0x1fa)]=xe([g(0x0,u[_0xc66653(0x204)](u[_0xc66653(0x1dc)])),g(0x1,v[_0xc66653(0x108)]),g(0x2,u[_0xc66653(0xde)]),g(0x3,u[_0xc66653(0x20f)]),g(0x4,v['IDialogService']),g(0x5,v[_0xc66653(0x168)]),g(0x6,u[_0xc66653(0x204)](v[_0xc66653(0x9f)])),g(0x7,u['Inject'](u[_0xc66653(0xe7)])),g(0x8,u[_0xc66653(0xdd)]),g(0x9,u[_0xc66653(0x204)](s[_0xc66653(0x1c6)]))],exports[_0xc66653(0x1fa)]);function _0x992d(_0x421f8f,_0x47a106){const _0x1ca6ed=_0x1ca6();return _0x992d=function(_0x992d07,_0x49b91a){_0x992d07=_0x992d07-0x8e;let _0x4679e9=_0x1ca6ed[_0x992d07];return _0x4679e9;},_0x992d(_0x421f8f,_0x47a106);}const b={'id':'mcp-ui.command.openConfigPanel','type':u['CommandType'][_0xc66653(0xda)],'handler':async(_0xb2cf40,_0x95f973)=>(_0xb2cf40[_0xc66653(0x12b)](exports['MCPConfigUIController'])['showConfigPanel'](),!0x0)};function Z(_0x245014,_0x3c3430){const _0x239dff=_0xc66653;switch(_0x245014){case s['MCPConnectionStatus'][_0x239dff(0x206)]:return'mcpStatus.disconnected';case s[_0x239dff(0x1cd)]['CONNECTING']:return'mcpStatus.connecting';case s[_0x239dff(0x1cd)][_0x239dff(0x12c)]:return'mcpStatus.connected';case s[_0x239dff(0x1cd)][_0x239dff(0x175)]:switch(_0x3c3430){case s[_0x239dff(0xd4)][_0x239dff(0xfd)]:return _0x239dff(0x169);case s[_0x239dff(0xd4)][_0x239dff(0xed)]:return _0x239dff(0xd6);case s[_0x239dff(0xd4)][_0x239dff(0x167)]:return _0x239dff(0x11b);case s[_0x239dff(0xd4)][_0x239dff(0x1f1)]:return _0x239dff(0x1a7);default:return _0x239dff(0x1a1);}case s['MCPConnectionStatus'][_0x239dff(0x10b)]:return _0x239dff(0x9b);default:return _0x239dff(0x97);}}function Se(_0xf49218,_0x5cbb94,_0x24fcb6,_0x301cc1=!0x0){const _0x12656b=_0xc66653,_0x151925=Z(_0xf49218,_0x5cbb94),_0x2656a6=_0x24fcb6['t'](_0x151925);return _0x301cc1?_0xf49218===s[_0x12656b(0x1cd)][_0x12656b(0x206)]&&_0x5cbb94===s[_0x12656b(0xd4)][_0x12656b(0xfd)]?_0x2656a6+_0x12656b(0x19e)+_0x24fcb6['t'](_0x12656b(0x18f)):_0xf49218===s[_0x12656b(0x1cd)]['CONNECTED']?''+_0x2656a6:_0xf49218===s[_0x12656b(0x1cd)][_0x12656b(0x206)]||_0xf49218===s['MCPConnectionStatus']['FAILED']?_0x2656a6+_0x12656b(0x19e)+_0x24fcb6['t'](_0x12656b(0xe4)):_0x2656a6:_0x2656a6;}function Pe(_0x52752e){const _0x4b18f6=_0xc66653;switch(_0x52752e){case s[_0x4b18f6(0x1cd)][_0x4b18f6(0x12c)]:return _0x4b18f6(0x13f);case s[_0x4b18f6(0x1cd)][_0x4b18f6(0x11c)]:case s[_0x4b18f6(0x1cd)][_0x4b18f6(0x10b)]:return'univer-text-yellow-500';case s[_0x4b18f6(0x1cd)][_0x4b18f6(0x175)]:case s[_0x4b18f6(0x1cd)]['DISCONNECTED']:return _0x4b18f6(0xbf);default:return'univer-text-gray-500';}}function W(_0x3741c2){const _0x8b535=_0xc66653,{status$:_0x5cbbae,error$:_0x3cb259,onConfigure:_0x42474b,showClickable:_0x5dad63=!0x0}=_0x3741c2,_0x41a87d=v[_0x8b535(0x8e)](_0x5cbbae,s[_0x8b535(0x1cd)][_0x8b535(0x206)]),_0x28922d=v['useObservable'](_0x3cb259,s[_0x8b535(0xd4)]['NONE']),_0x19b0c8=v[_0x8b535(0xfc)](u['LocaleService']),_0x1462b8=_0x41a87d===s[_0x8b535(0x1cd)]['CONNECTED'];_0x41a87d===s[_0x8b535(0x1cd)]['CONNECTING']||s[_0x8b535(0x1cd)]['RETRYING'];const _0x362d1c=_0x19b0c8['t'](Z(_0x41a87d,_0x28922d)),_0x58b67d=Se(_0x41a87d,_0x28922d,_0x19b0c8,_0x5dad63),_0x1ab02b=Pe(_0x41a87d),_0x17e82d=_0x1462b8?i[_0x8b535(0x207)](q,{}):i[_0x8b535(0x207)](Y,{}),_0x1dfc53=d[_0x8b535(0xeb)](()=>{_0x5dad63&&_0x42474b&&_0x42474b();},[_0x5dad63,_0x42474b]);function _0x199f57(){const _0x143aa6=_0x8b535;return i[_0x143aa6(0x202)](_0x143aa6(0x1bb),{'className':f[_0x143aa6(0xac)](_0x143aa6(0x18d),_0x5dad63&&_0x42474b&&_0x143aa6(0x1ea)),'role':_0x143aa6(0x19c),'onClick':_0x5dad63&&_0x42474b?_0x1dfc53:void 0x0,'children':[i['jsx'](_0x143aa6(0x1bb),{'className':f[_0x143aa6(0xac)](_0x143aa6(0x1c0),_0x1ab02b),'children':_0x17e82d}),i['jsx']('div',{'className':_0x143aa6(0x166),'children':_0x362d1c})]});}return i[_0x8b535(0x207)](f['Tooltip'],{'title':_0x58b67d,'placement':'bottom','children':_0x199f57()});}var Ie=Object[_0xc66653(0x198)],_e=(_0x517707,_0x36395a,_0x747bfd,_0x5daa17)=>{for(var _0x200efd=_0x5daa17>0x1?void 0x0:_0x5daa17?Ie(_0x36395a,_0x747bfd):_0x36395a,_0x241084=_0x517707['length']-0x1,_0x4e8d86;_0x241084>=0x0;_0x241084--)(_0x4e8d86=_0x517707[_0x241084])&&(_0x200efd=_0x4e8d86(_0x200efd)||_0x200efd);return _0x200efd;},N=(_0x40080c,_0x102ab5)=>(_0x3da509,_0x1d34f9)=>_0x102ab5(_0x3da509,_0x1d34f9,_0x40080c);exports[_0xc66653(0x1f0)]=class extends u[_0xc66653(0x16e)]{constructor(_0xc60e5a,_0x477e4c,_0x51c5b5,_0x8703ff){const _0x281aab=_0xc66653;super(),this[_0x281aab(0xe9)]=_0xc60e5a,this[_0x281aab(0xf5)]=_0x477e4c,this[_0x281aab(0x1b4)]=_0x51c5b5,this[_0x281aab(0x12d)]=_0x8703ff,this[_0x281aab(0x1d7)](),this['_initStatusComponent']();}[_0xc66653(0x1d7)](){const _0x325dae=_0xc66653,_0x220e74=this[_0x325dae(0x12d)][_0x325dae(0x1a0)](P);_0x220e74!=null&&_0x220e74['showDeveloperTools']&&(this[_0x325dae(0xf5)][_0x325dae(0x209)]=!0x1);}[_0xc66653(0xc8)](){const _0x566e70=_0xc66653,_0x47f710=this[_0x566e70(0x12d)][_0x566e70(0x1a0)](P);(_0x47f710==null?void 0x0:_0x47f710[_0x566e70(0xff)])!==!0x1&&this['disposeWithMe'](this[_0x566e70(0x1b4)][_0x566e70(0x189)](v[_0x566e70(0x14a)][_0x566e70(0x10a)],()=>{const _0x2456ca=_0x566e70;var _0x292404;return v[_0x2456ca(0xd7)](ye({'status$':this[_0x2456ca(0xf5)]['connectionStatus$'],'error$':this['_connectionController']['connectionError$'],'onConfigure':()=>this[_0x2456ca(0x14d)](),'showClickable':(_0x292404=_0x47f710==null?void 0x0:_0x47f710['showDeveloperTools'])!=null?_0x292404:!0x1}),this['_injector']);}));}['_handleConfigure'](){const _0x409512=_0xc66653;this[_0x409512(0xe9)][_0x409512(0x12b)](exports['MCPConfigUIController'])[_0x409512(0x1fd)]();}},exports[_0xc66653(0x1f0)]=_e([N(0x0,u[_0xc66653(0x204)](u['Injector'])),N(0x1,u[_0xc66653(0x204)](s['MCPConnectionController'])),N(0x2,v[_0xc66653(0x108)]),N(0x3,u[_0xc66653(0xde)])],exports[_0xc66653(0x1f0)]);function ye(_0x28397a){const {status$:_0x327b72,error$:_0x450bd5,onConfigure:_0x29c573,showClickable:_0x16443f}=_0x28397a;return function(){return i['jsx'](W,{'status$':_0x327b72,'error$':_0x450bd5,'onConfigure':_0x29c573,'showClickable':_0x16443f});};}function Me(_0x5e77a6){const _0x5ed62a=_0xc66653;return{'id':b['id'],'type':v[_0x5ed62a(0x102)]['BUTTON'],'icon':_0x5ed62a(0xb5),'title':_0x5ed62a(0x146),'tooltip':_0x5ed62a(0x146)};}const Ne={[v[_0xc66653(0x161)]['OTHERS']]:{[b['id']]:{'order':0xa,'menuItemFactory':Me}}};var be=Object[_0xc66653(0x198)],je=(_0x20f9c5,_0x51b152,_0x42560b,_0x2665d9)=>{for(var _0xfa15af=_0x2665d9>0x1?void 0x0:_0x2665d9?be(_0x51b152,_0x42560b):_0x51b152,_0x436fe6=_0x20f9c5['length']-0x1,_0x4b19d4;_0x436fe6>=0x0;_0x436fe6--)(_0x4b19d4=_0x20f9c5[_0x436fe6])&&(_0xfa15af=_0x4b19d4(_0xfa15af)||_0xfa15af);return _0xfa15af;},z=(_0x1ab023,_0x38469f)=>(_0x59618d,_0xb175a)=>_0x38469f(_0x59618d,_0xb175a,_0x1ab023);exports[_0xc66653(0x1da)]=class extends u[_0xc66653(0x16e)]{constructor(_0x4b8dc7,_0x936f3d){const _0x15bc87=_0xc66653;super(),this['_commandService']=_0x4b8dc7,this[_0x15bc87(0x13c)]=_0x936f3d,this[_0x15bc87(0x10f)](),this[_0x15bc87(0xe5)]();}[_0xc66653(0x10f)](){[b]['forEach'](_0x5ea2fd=>{const _0x20422b=_0x992d;this[_0x20422b(0x19a)](this[_0x20422b(0xfe)][_0x20422b(0x163)](_0x5ea2fd));});}['_initializeMenus'](){const _0x2760d7=_0xc66653;this['_menuManagerService'][_0x2760d7(0x1dd)](Ne);}},exports[_0xc66653(0x1da)]=je([z(0x0,u[_0xc66653(0x93)]),z(0x1,v[_0xc66653(0x1f5)])],exports[_0xc66653(0x1da)]);const Ee={'mcpStatus':{'disconnected':_0xc66653(0x126),'connecting':_0xc66653(0x14e),'connected':_0xc66653(0x162),'failed':_0xc66653(0xad),'retrying':'MCP\x20Retrying...','unknown':_0xc66653(0xee),'unauthorized':_0xc66653(0x1bd),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0xc66653(0x180),'maxRetriesExceeded':_0xc66653(0x1c3),'clickToConnect':_0xc66653(0x177),'clickToConfigure':_0xc66653(0x20a)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0xc66653(0x1bc),'apiKey':_0xc66653(0x90),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0xc66653(0x14b),'connectionInfo':_0xc66653(0x20e),'mcpClientConfig':_0xc66653(0x20e),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0xc66653(0x159),'configStep1':_0xc66653(0xaf),'configStep2':_0xc66653(0x9d),'configStep3':_0xc66653(0x156),'sessionId':_0xc66653(0x114),'sessionIdDescription':_0xc66653(0xa0),'authorizationDescription':_0xc66653(0x150),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':_0xc66653(0xdb),'saving':'Saving...','note1':_0xc66653(0xf9),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0xc66653(0x197),'configError':_0xc66653(0x94),'apiApplyInfo':{'title':_0xc66653(0xdc),'description':_0xc66653(0x11f),'univerAiLabel':_0xc66653(0x95),'getStarted':_0xc66653(0x17a)},'validation':{'apiKeyRequired':_0xc66653(0x19d),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':_0xc66653(0x17e)},'connectionStatus':{'disconnected':_0xc66653(0xa2),'connecting':'Connecting...','connected':_0xc66653(0xc9),'failed':_0xc66653(0x1e6),'retrying':_0xc66653(0x16d)},'connectionError':{'unauthorized':_0xc66653(0xf2),'sessionOccupied':_0xc66653(0x106),'networkError':_0xc66653(0x110),'maxRetriesExceeded':_0xc66653(0x1b1)}}},we={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':_0xc66653(0x1c5),'connected':'MCP\x20已连接','failed':_0xc66653(0x203),'retrying':_0xc66653(0x1be),'unknown':'MCP\x20状态未知','unauthorized':_0xc66653(0x15e),'sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':_0xc66653(0x119),'maxRetriesExceeded':_0xc66653(0x201),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0xc66653(0x179)},'mcpConfig':{'title':_0xc66653(0x1e8),'description':_0xc66653(0x188),'apiKey':'API\x20密钥','apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0xc66653(0xe0),'enableAuth':'启用身份验证','enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0xc66653(0x1a6),'mcpClientConfig':_0xc66653(0x1a6),'configInstructions':_0xc66653(0xe2),'configStepTitle':_0xc66653(0x1d9),'configStep1':'复制以下\x20JSON\x20配置','configStep2':_0xc66653(0x1c9),'configStep3':_0xc66653(0x100),'sessionId':'会话ID','sessionIdDescription':_0xc66653(0x186),'authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':'配置参数:','maxRetries':_0xc66653(0x195),'save':'保存配置','saving':_0xc66653(0x1c4),'note1':_0xc66653(0xbd),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0xc66653(0x118),'configError':_0xc66653(0xc6),'apiApplyInfo':{'title':_0xc66653(0x133),'description':_0xc66653(0x1f7),'univerAiLabel':_0xc66653(0x1a2),'getStarted':_0xc66653(0x138)},'validation':{'apiKeyRequired':_0xc66653(0x157),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0xc66653(0x1a9),'invalidApiKey':_0xc66653(0x182)},'connectionStatus':{'disconnected':_0xc66653(0x1a8),'connecting':_0xc66653(0x12f),'connected':'已连接','failed':_0xc66653(0xdf),'retrying':_0xc66653(0x172)},'connectionError':{'unauthorized':_0xc66653(0x120),'sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':_0xc66653(0xf1),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var Ae=Object['defineProperty'],Oe=Object['getOwnPropertyDescriptor'],De=(_0x43a8b6,_0x3e80d9,_0xa99efc)=>_0x3e80d9 in _0x43a8b6?Ae(_0x43a8b6,_0x3e80d9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xa99efc}):_0x43a8b6[_0x3e80d9]=_0xa99efc,Ue=(_0x1743a8,_0xd64f70,_0x3350b0,_0x624c4c)=>{const _0xc07c6d=_0xc66653;for(var _0x3a2b5a=_0x624c4c>0x1?void 0x0:_0x624c4c?Oe(_0xd64f70,_0x3350b0):_0xd64f70,_0x182b16=_0x1743a8[_0xc07c6d(0x127)]-0x1,_0x1fb2ec;_0x182b16>=0x0;_0x182b16--)(_0x1fb2ec=_0x1743a8[_0x182b16])&&(_0x3a2b5a=_0x1fb2ec(_0x3a2b5a)||_0x3a2b5a);return _0x3a2b5a;},y=(_0xe50e8e,_0x14bf90)=>(_0x3a6b86,_0x5c51c0)=>_0x14bf90(_0x3a6b86,_0x5c51c0,_0xe50e8e),$e=(_0x5e0bae,_0xafebb2,_0x5023be)=>De(_0x5e0bae,_0xafebb2+'',_0x5023be);exports[_0xc66653(0x18c)]=class extends u[_0xc66653(0x16c)]{constructor(_0x419928=L,_0x5db66c,_0x4c957d,_0x3992f1,_0x559dc0,_0x5e3370){const _0x1a4dc8=_0xc66653;super(),this[_0x1a4dc8(0x148)]=_0x419928,this['_injector']=_0x5db66c,this[_0x1a4dc8(0x12d)]=_0x4c957d,this[_0x1a4dc8(0x1b4)]=_0x3992f1,this[_0x1a4dc8(0x121)]=_0x559dc0,this[_0x1a4dc8(0x191)]=_0x5e3370;const {..._0x3445a6}=u[_0x1a4dc8(0x196)]({},L,this['_config']);this[_0x1a4dc8(0x12d)][_0x1a4dc8(0x1cb)](P,_0x3445a6);}async['onStarting'](){const _0x338349=_0xc66653,_0x3ef55e=[[exports[_0x338349(0x1f0)]],[exports[_0x338349(0x1fa)]],[exports[_0x338349(0x1da)]]];this['_injector'][_0x338349(0x15c)](A[_0x338349(0x91)])||_0x3ef55e[_0x338349(0xb4)]([A[_0x338349(0x91)],{'useClass':A[_0x338349(0x136)]}]),_0x3ef55e['forEach'](_0x22f096=>this['_injector']['add'](_0x22f096)),this[_0x338349(0xe9)]['get'](exports['MCPConnectionUIController']),this[_0x338349(0xe9)][_0x338349(0x12b)](exports[_0x338349(0x1fa)]),this[_0x338349(0xe9)]['get'](exports['MCPUIMenuController']);}},$e(exports[_0xc66653(0x18c)],_0xc66653(0x112),_0xc66653(0x128)),exports['UniverMCPUIPlugin']=Ue([u[_0xc66653(0x174)](s[_0xc66653(0x1d2)]),y(0x1,u[_0xc66653(0x204)](u[_0xc66653(0x1dc)])),y(0x2,u[_0xc66653(0xde)]),y(0x3,v[_0xc66653(0x108)]),y(0x4,u['ILocalStorageService']),y(0x5,u['Inject'](u[_0xc66653(0xe7)]))],exports[_0xc66653(0x18c)]),exports[_0xc66653(0x152)]=V,exports[_0xc66653(0x1a3)]=W,exports[_0xc66653(0x129)]=b,exports[_0xc66653(0x124)]=Ee,exports[_0xc66653(0xe3)]=we;
|
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x550128=_0x4970;(function(_0x12c2c1,_0x4dc14f){const _0x34ae85=_0x4970,_0x57fa7f=_0x12c2c1();while(!![]){try{const _0x10b066=parseInt(_0x34ae85(0x147))/0x1*(-parseInt(_0x34ae85(0x153))/0x2)+-parseInt(_0x34ae85(0x12d))/0x3*(parseInt(_0x34ae85(0x150))/0x4)+parseInt(_0x34ae85(0x13a))/0x5+parseInt(_0x34ae85(0x143))/0x6*(-parseInt(_0x34ae85(0x14a))/0x7)+-parseInt(_0x34ae85(0x154))/0x8*(parseInt(_0x34ae85(0x14f))/0x9)+-parseInt(_0x34ae85(0x148))/0xa+parseInt(_0x34ae85(0x130))/0xb;if(_0x10b066===_0x4dc14f)break;else _0x57fa7f['push'](_0x57fa7f['shift']());}catch(_0x52287e){_0x57fa7f['push'](_0x57fa7f['shift']());}}}(_0x5612,0x9bb57));function _0x5612(){const _0x186cf9=['Configuration\x20Parameters:','Connection\x20Failed','3773585dQSQtr','MCP\x20Client\x20Configuration','MCP:\x20Session\x20ID\x20Occupied','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Enter\x20your\x20API\x20key','Invalid\x20configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP:\x20Network\x20Error','API\x20key\x20with\x20Bearer\x20prefix.','1362RYzwKL','Click\x20to\x20configure\x20MCP','MCP\x20Disconnected','Connected','6955luQrtb','12234310bVORUH','Save\x20Configuration','39179juYtoG','Disconnected','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Retrying...','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','135TptyUh','8XMEHdE','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Enable\x20Authentication','344wayZys','218024KjQzos','MCP\x20Connecting...','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Connected','exports','Get\x20your\x20API\x20key\x20in\x20seconds','Enable\x20authentication\x20for\x20secure\x20connections','878991tpuILr','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Configuration\x20saved\x20successfully','50248715JlYhqm','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Connection\x20Failed','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','API\x20key\x20is\x20required','Failed\x20to\x20save\x20configuration'];_0x5612=function(){return _0x186cf9;};return _0x5612();}function _0x4970(_0x864d5b,_0x19b3a8){const _0x5612c3=_0x5612();return _0x4970=function(_0x497019,_0x5b59f4){_0x497019=_0x497019-0x12a;let _0x2d834a=_0x5612c3[_0x497019];return _0x2d834a;},_0x4970(_0x864d5b,_0x19b3a8);}const e={'mcpStatus':{'disconnected':_0x550128(0x145),'connecting':_0x550128(0x155),'connected':_0x550128(0x157),'failed':_0x550128(0x132),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x550128(0x13c),'networkError':_0x550128(0x141),'maxRetriesExceeded':_0x550128(0x131),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x550128(0x144)},'mcpConfig':{'title':_0x550128(0x134),'description':_0x550128(0x14e),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x550128(0x13e),'apiKeyHint':_0x550128(0x12e),'enableAuth':_0x550128(0x152),'enableAuthHint':_0x550128(0x12c),'connectionInfo':_0x550128(0x13b),'mcpClientConfig':_0x550128(0x13b),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x550128(0x13d),'sessionId':'Session\x20ID','sessionIdDescription':_0x550128(0x14c),'authorizationDescription':_0x550128(0x142),'configParameters':_0x550128(0x138),'maxRetries':'Max\x20Retries','save':_0x550128(0x149),'saving':'Saving...','note1':_0x550128(0x156),'note2':_0x550128(0x140),'configSaved':_0x550128(0x12f),'configError':_0x550128(0x137),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x550128(0x12b)},'validation':{'apiKeyRequired':_0x550128(0x136),'apiKeyTooShort':_0x550128(0x135),'invalidConfig':_0x550128(0x13f),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x550128(0x14b),'connecting':'Connecting...','connected':_0x550128(0x146),'failed':_0x550128(0x139),'retrying':_0x550128(0x14d)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x550128(0x133),'networkError':_0x550128(0x151),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module[_0x550128(0x12a)]=n;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x3371(){const _0x46e506=['Configuration\x20Parameters:','Enter\x20your\x20API\x20key','MCP:\x20Session\x20ID\x20Occupied','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Connection\x20Failed','3614224UykFeJ','API\x20Key','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Connection\x20Failed','238URaCIO','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Disconnected','27HCsxwt','MCP\x20Connected','Max\x20Retries','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Unknown\x20Status','Get\x20your\x20API\x20key\x20in\x20seconds','Enable\x20authentication\x20for\x20secure\x20connections','API\x20key\x20is\x20required','MCP:\x20Max\x20Retries\x20Exceeded','35544PDBnBq','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','203584QPqNoX','What\x20is\x20API\x20Key?','Invalid\x20configuration','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Failed\x20to\x20save\x20configuration','341139rFqjjx','Click\x20to\x20connect\x20MCP','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Disconnected','MCP\x20Retrying...','Saving...','Connecting...','489192ihchNk','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Configuration','Connected','MCP:\x20Unauthorized','288529dxWVWU','MCP\x20Connecting...','Save\x20Configuration','Univer\x20AI\x20Console','2545920hnFbhb','Session\x20ID','Click\x20to\x20configure\x20MCP','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'];_0x3371=function(){return _0x46e506;};return _0x3371();}function _0x1689(_0x562444,_0x4d12a1){const _0x3371f8=_0x3371();return _0x1689=function(_0x16896c,_0x5db19e){_0x16896c=_0x16896c-0x151;let _0xdf8bca=_0x3371f8[_0x16896c];return _0xdf8bca;},_0x1689(_0x562444,_0x4d12a1);}const _0x3ea012=_0x1689;(function(_0x33c6d5,_0xa7818a){const _0x5b7854=_0x1689,_0x5af19a=_0x33c6d5();while(!![]){try{const _0x41d332=-parseInt(_0x5b7854(0x160))/0x1+-parseInt(_0x5b7854(0x15b))/0x2+parseInt(_0x5b7854(0x154))/0x3+parseInt(_0x5b7854(0x183))/0x4+-parseInt(_0x5b7854(0x164))/0x5+parseInt(_0x5b7854(0x180))/0x6*(-parseInt(_0x5b7854(0x172))/0x7)+-parseInt(_0x5b7854(0x16e))/0x8*(-parseInt(_0x5b7854(0x176))/0x9);if(_0x41d332===_0xa7818a)break;else _0x5af19a['push'](_0x5af19a['shift']());}catch(_0x183ef8){_0x5af19a['push'](_0x5af19a['shift']());}}}(_0x3371,0x436fa));const e={'mcpStatus':{'disconnected':_0x3ea012(0x175),'connecting':_0x3ea012(0x161),'connected':_0x3ea012(0x177),'failed':_0x3ea012(0x16d),'retrying':_0x3ea012(0x158),'unknown':_0x3ea012(0x17b),'unauthorized':_0x3ea012(0x15f),'sessionOccupied':_0x3ea012(0x16b),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x3ea012(0x17f),'clickToConnect':_0x3ea012(0x155),'clickToConfigure':_0x3ea012(0x166)},'mcpConfig':{'title':_0x3ea012(0x15d),'description':_0x3ea012(0x17a),'apiKey':_0x3ea012(0x16f),'apiKeyPlaceholder':_0x3ea012(0x16a),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x3ea012(0x17d),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x3ea012(0x15c),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x3ea012(0x174),'configStep2':_0x3ea012(0x152),'configStep3':_0x3ea012(0x179),'sessionId':_0x3ea012(0x165),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x3ea012(0x169),'maxRetries':_0x3ea012(0x178),'save':_0x3ea012(0x162),'saving':_0x3ea012(0x159),'note1':_0x3ea012(0x173),'note2':_0x3ea012(0x182),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x3ea012(0x153),'apiApplyInfo':{'title':_0x3ea012(0x184),'description':_0x3ea012(0x170),'univerAiLabel':_0x3ea012(0x163),'getStarted':_0x3ea012(0x17c)},'validation':{'apiKeyRequired':_0x3ea012(0x17e),'apiKeyTooShort':_0x3ea012(0x16c),'invalidConfig':_0x3ea012(0x151),'invalidApiKey':_0x3ea012(0x168)},'connectionStatus':{'disconnected':_0x3ea012(0x157),'connecting':_0x3ea012(0x15a),'connected':_0x3ea012(0x15e),'failed':_0x3ea012(0x171),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x3ea012(0x156),'sessionOccupied':_0x3ea012(0x167),'networkError':_0x3ea012(0x181),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}};module['exports']=e;
|
package/lib/cjs/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x2350bf=_0x2f40;function _0x2f40(_0x3ea535,_0x4490c0){const _0x2342b8=_0x2342();return _0x2f40=function(_0x2f40ed,_0x2ef5d3){_0x2f40ed=_0x2f40ed-0x165;let _0x4096d9=_0x2342b8[_0x2f40ed];return _0x4096d9;},_0x2f40(_0x3ea535,_0x4490c0);}(function(_0x281f35,_0x51f5d2){const _0x4b9bab=_0x2f40,_0x130e0b=_0x281f35();while(!![]){try{const _0x5469b4=parseInt(_0x4b9bab(0x198))/0x1+parseInt(_0x4b9bab(0x19a))/0x2*(-parseInt(_0x4b9bab(0x17c))/0x3)+parseInt(_0x4b9bab(0x187))/0x4*(parseInt(_0x4b9bab(0x165))/0x5)+-parseInt(_0x4b9bab(0x169))/0x6*(parseInt(_0x4b9bab(0x16f))/0x7)+parseInt(_0x4b9bab(0x199))/0x8*(parseInt(_0x4b9bab(0x179))/0x9)+parseInt(_0x4b9bab(0x176))/0xa+parseInt(_0x4b9bab(0x19b))/0xb*(-parseInt(_0x4b9bab(0x177))/0xc);if(_0x5469b4===_0x51f5d2)break;else _0x130e0b['push'](_0x130e0b['shift']());}catch(_0x3c2232){_0x130e0b['push'](_0x130e0b['shift']());}}}(_0x2342,0x7de24));function _0x2342(){const _0x43f8d1=['15LIMLMd','Session\x20ID','exports','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','408LAVNDt','Get\x20your\x20API\x20key\x20in\x20seconds','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','API\x20key\x20is\x20required','MCP:\x20Network\x20Error','MCP\x20Retrying...','89173BaqJvj','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP:\x20Max\x20Retries\x20Exceeded','Retrying...','MCP\x20Connected','Max\x20Retries','142050YMbySV','14304MMPLqM','API\x20Key','5751WOoxYH','Connection\x20Failed','Invalid\x20configuration','24pKlDye','MCP\x20Disconnected','Enable\x20Authentication','Copy\x20the\x20JSON\x20configuration\x20below','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Univer\x20AI\x20Console','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Failed\x20to\x20save\x20configuration','What\x20is\x20API\x20Key?','Connecting...','706512TBeZGH','MCP:\x20Session\x20ID\x20Occupied','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Connected','Enter\x20your\x20API\x20key','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Client\x20Configuration','Saving...','MCP\x20Configuration','Save\x20Configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Click\x20to\x20connect\x20MCP','MCP\x20Connection\x20Failed','MCP\x20Unknown\x20Status','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Enable\x20authentication\x20for\x20secure\x20connections','856154IFfLTN','10200NIRHVX','203506yMhVPl','176utCzhV'];_0x2342=function(){return _0x43f8d1;};return _0x2342();}const e={'mcpStatus':{'disconnected':_0x2350bf(0x17d),'connecting':'MCP\x20Connecting...','connected':_0x2350bf(0x174),'failed':_0x2350bf(0x194),'retrying':_0x2350bf(0x16e),'unknown':_0x2350bf(0x195),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x2350bf(0x188),'networkError':_0x2350bf(0x16d),'maxRetriesExceeded':_0x2350bf(0x172),'clickToConnect':_0x2350bf(0x193),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x2350bf(0x190),'description':_0x2350bf(0x189),'apiKey':_0x2350bf(0x178),'apiKeyPlaceholder':_0x2350bf(0x18c),'apiKeyHint':_0x2350bf(0x192),'enableAuth':_0x2350bf(0x17e),'enableAuthHint':_0x2350bf(0x197),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x2350bf(0x18e),'configInstructions':_0x2350bf(0x168),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x2350bf(0x17f),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x2350bf(0x170),'sessionId':_0x2350bf(0x166),'sessionIdDescription':_0x2350bf(0x196),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':_0x2350bf(0x175),'save':_0x2350bf(0x191),'saving':_0x2350bf(0x18f),'note1':_0x2350bf(0x182),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x2350bf(0x184),'apiApplyInfo':{'title':_0x2350bf(0x185),'description':_0x2350bf(0x183),'univerAiLabel':_0x2350bf(0x181),'getStarted':_0x2350bf(0x16a)},'validation':{'apiKeyRequired':_0x2350bf(0x16c),'apiKeyTooShort':_0x2350bf(0x171),'invalidConfig':_0x2350bf(0x17b),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x2350bf(0x186),'connected':_0x2350bf(0x18b),'failed':_0x2350bf(0x17a),'retrying':_0x2350bf(0x173)},'connectionError':{'unauthorized':_0x2350bf(0x16b),'sessionOccupied':_0x2350bf(0x18d),'networkError':_0x2350bf(0x180),'maxRetriesExceeded':_0x2350bf(0x18a)}}},n=e;module[_0x2350bf(0x167)]=n;
|
package/lib/cjs/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x5b5295=_0xaa82;function _0xaa82(_0x2f498e,_0x39a7f6){const _0x21c828=_0x21c8();return _0xaa82=function(_0xaa82b7,_0x5a9784){_0xaa82b7=_0xaa82b7-0x1e1;let _0x450d69=_0x21c828[_0xaa82b7];return _0x450d69;},_0xaa82(_0x2f498e,_0x39a7f6);}(function(_0x20106b,_0x1a4ec8){const _0x36f84a=_0xaa82,_0x1c4548=_0x20106b();while(!![]){try{const _0x252ced=-parseInt(_0x36f84a(0x210))/0x1+-parseInt(_0x36f84a(0x1fa))/0x2*(parseInt(_0x36f84a(0x200))/0x3)+-parseInt(_0x36f84a(0x1e7))/0x4*(-parseInt(_0x36f84a(0x1e4))/0x5)+-parseInt(_0x36f84a(0x207))/0x6*(parseInt(_0x36f84a(0x1fb))/0x7)+-parseInt(_0x36f84a(0x204))/0x8+parseInt(_0x36f84a(0x213))/0x9*(parseInt(_0x36f84a(0x1e3))/0xa)+parseInt(_0x36f84a(0x1f7))/0xb*(parseInt(_0x36f84a(0x201))/0xc);if(_0x252ced===_0x1a4ec8)break;else _0x1c4548['push'](_0x1c4548['shift']());}catch(_0x32cf33){_0x1c4548['push'](_0x1c4548['shift']());}}}(_0x21c8,0x8f47a));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':_0x5b5295(0x20e),'retrying':_0x5b5295(0x1ef),'unknown':_0x5b5295(0x202),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x5b5295(0x1f2),'networkError':_0x5b5295(0x1e5),'maxRetriesExceeded':_0x5b5295(0x20d),'clickToConnect':_0x5b5295(0x205),'clickToConfigure':_0x5b5295(0x1f1)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x5b5295(0x1fc),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x5b5295(0x1e9),'apiKeyHint':_0x5b5295(0x1f3),'enableAuth':_0x5b5295(0x1e6),'enableAuthHint':_0x5b5295(0x1ff),'connectionInfo':_0x5b5295(0x1fd),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x5b5295(0x208),'configStepTitle':_0x5b5295(0x1e2),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x5b5295(0x211),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x5b5295(0x1e8),'sessionIdDescription':_0x5b5295(0x212),'authorizationDescription':_0x5b5295(0x1eb),'configParameters':_0x5b5295(0x1f4),'maxRetries':_0x5b5295(0x20f),'save':_0x5b5295(0x1f9),'saving':'Saving...','note1':_0x5b5295(0x1f5),'note2':_0x5b5295(0x1ea),'configSaved':_0x5b5295(0x1ee),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x5b5295(0x1ed),'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':'Univer\x20AI\x20Console','getStarted':_0x5b5295(0x206)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x5b5295(0x20a),'invalidConfig':_0x5b5295(0x1f8),'invalidApiKey':_0x5b5295(0x20b)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x5b5295(0x203),'connected':_0x5b5295(0x1fe),'failed':_0x5b5295(0x209),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x5b5295(0x1f6),'sessionOccupied':_0x5b5295(0x20c),'networkError':_0x5b5295(0x1e1),'maxRetriesExceeded':_0x5b5295(0x1ec)}}},n=e;module[_0x5b5295(0x1f0)]=n;function _0x21c8(){const _0xd1da8c=['MCP:\x20Network\x20Error','Enable\x20Authentication','2204536hnHmht','Session\x20ID','Enter\x20your\x20API\x20key','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','API\x20key\x20with\x20Bearer\x20prefix.','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','What\x20is\x20API\x20Key?','Configuration\x20saved\x20successfully','MCP\x20Retrying...','exports','Click\x20to\x20configure\x20MCP','MCP:\x20Session\x20ID\x20Occupied','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Configuration\x20Parameters:','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','22scoPmP','Invalid\x20configuration','Save\x20Configuration','847326NAwgVu','5054ApvtGZ','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Client\x20Configuration','Connected','Enable\x20authentication\x20for\x20secure\x20connections','6GAXMrL','3986328bDnCrd','MCP\x20Unknown\x20Status','Connecting...','4761816ZSYZJV','Click\x20to\x20connect\x20MCP','Get\x20your\x20API\x20key\x20in\x20seconds','114OEmGge','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Connection\x20Failed','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Connection\x20Failed','Max\x20Retries','707653LzsroU','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','49482lLxslV','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Configuration\x20Steps:','1790QWSYqP','10lcEziE'];_0x21c8=function(){return _0xd1da8c;};return _0x21c8();}
|
package/lib/cjs/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x4054(_0x2052e3,_0x4d548e){const _0x399d4c=_0x399d();return _0x4054=function(_0x405410,_0x115f36){_0x405410=_0x405410-0x159;let _0x116cc9=_0x399d4c[_0x405410];return _0x116cc9;},_0x4054(_0x2052e3,_0x4d548e);}function _0x399d(){const _0x232782=['Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','486672bLfQuu','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Connected','MCP\x20Connection\x20Failed','39JgQpXz','MCP\x20Client\x20Configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Configuration\x20Parameters:','MCP\x20Connecting...','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Connected','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Disconnected','1237592jajoAx','364DsFeBp','MCP\x20Unknown\x20Status','10GRhvGP','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Click\x20to\x20connect\x20MCP','API\x20key\x20is\x20required','Configuration\x20saved\x20successfully','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','12340TSZwsm','MCP\x20Configuration','Connection\x20Failed','8557kTgqhj','8934PSTlhD','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Enable\x20Authentication','Enable\x20authentication\x20for\x20secure\x20connections','Retrying...','3019077SLmmkM','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','What\x20is\x20API\x20Key?','646260ZgnHim','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Retrying...','Failed\x20to\x20save\x20configuration','Click\x20to\x20configure\x20MCP','Enter\x20your\x20API\x20key','Connecting...','exports','Saving...','MCP:\x20Max\x20Retries\x20Exceeded','API\x20Key','MCP:\x20Unauthorized','Get\x20your\x20API\x20key\x20in\x20seconds','Disconnected','Max\x20Retries','MCP:\x20Network\x20Error'];_0x399d=function(){return _0x232782;};return _0x399d();}const _0x55cae5=_0x4054;(function(_0x1bea3c,_0x229891){const _0x507106=_0x4054,_0xaec7b7=_0x1bea3c();while(!![]){try{const _0x332361=parseInt(_0x507106(0x170))/0x1+-parseInt(_0x507106(0x18c))/0x2+-parseInt(_0x507106(0x15b))/0x3*(parseInt(_0x507106(0x16d))/0x4)+-parseInt(_0x507106(0x17a))/0x5+parseInt(_0x507106(0x171))/0x6*(parseInt(_0x507106(0x165))/0x7)+parseInt(_0x507106(0x164))/0x8+-parseInt(_0x507106(0x177))/0x9*(-parseInt(_0x507106(0x167))/0xa);if(_0x332361===_0x229891)break;else _0xaec7b7['push'](_0xaec7b7['shift']());}catch(_0x1cebbb){_0xaec7b7['push'](_0xaec7b7['shift']());}}}(_0x399d,0x27e74));const e={'mcpStatus':{'disconnected':_0x55cae5(0x163),'connecting':_0x55cae5(0x15f),'connected':_0x55cae5(0x159),'failed':_0x55cae5(0x15a),'retrying':_0x55cae5(0x17c),'unknown':_0x55cae5(0x166),'unauthorized':_0x55cae5(0x185),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x55cae5(0x189),'maxRetriesExceeded':_0x55cae5(0x183),'clickToConnect':_0x55cae5(0x169),'clickToConfigure':_0x55cae5(0x17e)},'mcpConfig':{'title':_0x55cae5(0x16e),'description':_0x55cae5(0x15d),'apiKey':_0x55cae5(0x184),'apiKeyPlaceholder':_0x55cae5(0x17f),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x55cae5(0x174),'enableAuthHint':_0x55cae5(0x175),'connectionInfo':_0x55cae5(0x15c),'mcpClientConfig':_0x55cae5(0x15c),'configInstructions':_0x55cae5(0x178),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x55cae5(0x18d),'configStep2':_0x55cae5(0x16c),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':_0x55cae5(0x18b),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x55cae5(0x15e),'maxRetries':_0x55cae5(0x188),'save':'Save\x20Configuration','saving':_0x55cae5(0x182),'note1':_0x55cae5(0x168),'note2':_0x55cae5(0x18a),'configSaved':_0x55cae5(0x16b),'configError':_0x55cae5(0x17d),'apiApplyInfo':{'title':_0x55cae5(0x179),'description':_0x55cae5(0x160),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x55cae5(0x186)},'validation':{'apiKeyRequired':_0x55cae5(0x16a),'apiKeyTooShort':_0x55cae5(0x172),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x55cae5(0x173)},'connectionStatus':{'disconnected':_0x55cae5(0x187),'connecting':_0x55cae5(0x180),'connected':_0x55cae5(0x161),'failed':_0x55cae5(0x16f),'retrying':_0x55cae5(0x176)},'connectionError':{'unauthorized':_0x55cae5(0x17b),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x55cae5(0x162),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module[_0x55cae5(0x181)]=n;
|
package/lib/cjs/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x7013(){const _0x5b472e=['Connected','112uXifSz','What\x20is\x20API\x20Key?','3465DaieVB','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','9826254JQuKId','Failed\x20to\x20save\x20configuration','Retrying...','Invalid\x20configuration','13832AGzBfN','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Enable\x20Authentication','Save\x20Configuration','74841WeHbcd','MCP\x20Client\x20Configuration','Connecting...','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Unknown\x20Status','2625365MGcjrc','Session\x20ID','MCP:\x20Unauthorized','Enable\x20authentication\x20for\x20secure\x20connections','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Click\x20to\x20connect\x20MCP','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','API\x20key\x20with\x20Bearer\x20prefix.','12FaNSkl','356025orQNPI','Disconnected','Max\x20Retries','Connection\x20Failed','Enter\x20your\x20API\x20key','exports','MCP\x20Connected','2927578cnGHqb','Get\x20your\x20API\x20key\x20in\x20seconds','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Univer\x20AI\x20Console','Click\x20to\x20configure\x20MCP','47659390ECDiFf','Configuration\x20Parameters:','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Configuration','Configuration\x20saved\x20successfully','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20Session\x20ID\x20Occupied'];_0x7013=function(){return _0x5b472e;};return _0x7013();}const _0x2410f9=_0x41d3;(function(_0x50ee56,_0x176735){const _0x287b20=_0x41d3,_0x49db72=_0x50ee56();while(!![]){try{const _0x258009=parseInt(_0x287b20(0xde))/0x1+parseInt(_0x287b20(0xe5))/0x2+parseInt(_0x287b20(0xcf))/0x3*(parseInt(_0x287b20(0xf3))/0x4)+-parseInt(_0x287b20(0xd4))/0x5*(-parseInt(_0x287b20(0xdd))/0x6)+-parseInt(_0x287b20(0xf5))/0x7*(-parseInt(_0x287b20(0xcb))/0x8)+parseInt(_0x287b20(0xf7))/0x9+-parseInt(_0x287b20(0xeb))/0xa;if(_0x258009===_0x176735)break;else _0x49db72['push'](_0x49db72['shift']());}catch(_0x4a7b70){_0x49db72['push'](_0x49db72['shift']());}}}(_0x7013,0xb7276));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x2410f9(0xe4),'failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':_0x2410f9(0xd3),'unauthorized':_0x2410f9(0xd6),'sessionOccupied':_0x2410f9(0xf1),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x2410f9(0xda),'clickToConfigure':_0x2410f9(0xea)},'mcpConfig':{'title':_0x2410f9(0xee),'description':_0x2410f9(0xf0),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x2410f9(0xe2),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x2410f9(0xcd),'enableAuthHint':_0x2410f9(0xd7),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x2410f9(0xd0),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':_0x2410f9(0xed),'configStep2':_0x2410f9(0xe8),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x2410f9(0xd5),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x2410f9(0xdc),'configParameters':_0x2410f9(0xec),'maxRetries':_0x2410f9(0xe0),'save':_0x2410f9(0xce),'saving':'Saving...','note1':_0x2410f9(0xd9),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x2410f9(0xef),'configError':_0x2410f9(0xc8),'apiApplyInfo':{'title':_0x2410f9(0xf4),'description':_0x2410f9(0xcc),'univerAiLabel':_0x2410f9(0xe9),'getStarted':_0x2410f9(0xe6)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x2410f9(0xdb),'invalidConfig':_0x2410f9(0xca),'invalidApiKey':_0x2410f9(0xf6)},'connectionStatus':{'disconnected':_0x2410f9(0xdf),'connecting':_0x2410f9(0xd1),'connected':_0x2410f9(0xf2),'failed':_0x2410f9(0xe1),'retrying':_0x2410f9(0xc9)},'connectionError':{'unauthorized':_0x2410f9(0xd8),'sessionOccupied':_0x2410f9(0xe7),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x2410f9(0xd2)}}},n=e;function _0x41d3(_0x2f0bb9,_0xd86c63){const _0x7013ad=_0x7013();return _0x41d3=function(_0x41d303,_0x2652e9){_0x41d303=_0x41d303-0xc8;let _0x196155=_0x7013ad[_0x41d303];return _0x196155;},_0x41d3(_0x2f0bb9,_0xd86c63);}module[_0x2410f9(0xe3)]=n;
|