@univerjs-pro/mcp-ui 0.15.2-insiders.20260122-b1556b1 → 0.15.2-insiders.20260124-12fc7f0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +6 -6
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x3a1329=_0xa6a6;(function(_0x1d73b0,_0x22b8b3){const _0x1b519a=_0xa6a6,_0x4490f4=_0x1d73b0();while(!![]){try{const _0x2dbfc1=-parseInt(_0x1b519a(0x2d6))/0x1+-parseInt(_0x1b519a(0x2ee))/0x2*(parseInt(_0x1b519a(0x209))/0x3)+parseInt(_0x1b519a(0x324))/0x4*(parseInt(_0x1b519a(0x350))/0x5)+parseInt(_0x1b519a(0x30f))/0x6*(parseInt(_0x1b519a(0x20c))/0x7)+parseInt(_0x1b519a(0x2c4))/0x8*(-parseInt(_0x1b519a(0x347))/0x9)+parseInt(_0x1b519a(0x2a9))/0xa*(-parseInt(_0x1b519a(0x31a))/0xb)+parseInt(_0x1b519a(0x300))/0xc;if(_0x2dbfc1===_0x22b8b3)break;else _0x4490f4['push'](_0x4490f4['shift']());}catch(_0x5a5801){_0x4490f4['push'](_0x4490f4['shift']());}}}(_0x11fe,0x816cd));var ae=Object[_0x3a1329(0x25a)],le=(_0x318f6e,_0x2a114f,_0x484b24)=>_0x2a114f in _0x318f6e?ae(_0x318f6e,_0x2a114f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x484b24}):_0x318f6e[_0x2a114f]=_0x484b24,I=(_0x133af6,_0x331e00,_0x346476)=>le(_0x133af6,typeof _0x331e00!='symbol'?_0x331e00+'':_0x331e00,_0x346476);Object['defineProperty'](exports,Symbol[_0x3a1329(0x1dc)],{'value':_0x3a1329(0x303)});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:_0x30dd26,..._0x3deedc}){const _0x422ea7=_0x3a1329,{icon:_0xc90677,id:_0x412b4a,className:_0x58fe4d,extend:_0x2f0c09,..._0x5d9c97}=_0x3deedc,_0x1c543e=(_0x422ea7(0x1e8)+_0x412b4a+'\x20'+(_0x58fe4d||''))[_0x422ea7(0x317)](),_0x191297=d[_0x422ea7(0x2b9)]('_'+de());return G(_0xc90677,''+_0x412b4a,{'defIds':_0xc90677['defIds'],'idSuffix':_0x191297[_0x422ea7(0x364)]},{'ref':_0x30dd26,'className':_0x1c543e,..._0x5d9c97},_0x2f0c09);}function G(_0x1de0fc,_0x37d5b0,_0x395d55,_0x450d89,_0x298847){const _0xe3bded=_0x3a1329;return d['createElement'](_0x1de0fc[_0xe3bded(0x32f)],{'key':_0x37d5b0,...ue(_0x1de0fc,_0x395d55,_0x298847),..._0x450d89},(ve(_0x1de0fc,_0x395d55)[_0xe3bded(0x21a)]||[])[_0xe3bded(0x255)]((_0x2bdf29,_0x387451)=>G(_0x2bdf29,_0x37d5b0+'-'+_0x1de0fc['tag']+'-'+_0x387451,_0x395d55,void 0x0,_0x298847)));}function ue(_0x4da47b,_0x59ae3a,_0x363136){const _0x448d4e=_0x3a1329,_0x8901f7={..._0x4da47b[_0x448d4e(0x342)]};_0x363136!=null&&_0x363136[_0x448d4e(0x211)]&&_0x8901f7[_0x448d4e(0x2bb)]==='colorChannel1'&&(_0x8901f7[_0x448d4e(0x2bb)]=_0x363136[_0x448d4e(0x211)]),_0x4da47b['tag']===_0x448d4e(0x2f8)&&_0x8901f7['id']&&(_0x8901f7['id']=_0x8901f7['id']+_0x59ae3a[_0x448d4e(0x26d)]),Object['entries'](_0x8901f7)[_0x448d4e(0x20a)](([_0xf9ea7f,_0x3ad280])=>{const _0x3ae38a=_0x448d4e;_0xf9ea7f==='mask'&&typeof _0x3ad280==_0x3ae38a(0x223)&&(_0x8901f7[_0xf9ea7f]=_0x3ad280[_0x3ae38a(0x35c)](/url\(#(.*)\)/,_0x3ae38a(0x24e)+_0x59ae3a[_0x3ae38a(0x26d)]+')'));});const {defIds:_0x43b10c}=_0x59ae3a;return!_0x43b10c||_0x43b10c['length']===0x0||(_0x4da47b[_0x448d4e(0x32f)]===_0x448d4e(0x2db)&&_0x8901f7['xlink:href']&&(_0x8901f7[_0x448d4e(0x1f6)]=_0x8901f7[_0x448d4e(0x1f6)]+_0x59ae3a[_0x448d4e(0x26d)]),Object['entries'](_0x8901f7)[_0x448d4e(0x20a)](([_0x4d9346,_0x48e5ae])=>{const _0x4c8ca2=_0x448d4e;typeof _0x48e5ae==_0x4c8ca2(0x223)&&(_0x8901f7[_0x4d9346]=_0x48e5ae[_0x4c8ca2(0x35c)](/url\(#(.*)\)/,_0x4c8ca2(0x24e)+_0x59ae3a[_0x4c8ca2(0x26d)]+')'));})),_0x8901f7;}function ve(_0x12276f,_0x1f7a83){const _0x49dfc4=_0x3a1329;var _0x21aae9;const {defIds:_0x1e0fa7}=_0x1f7a83;return!_0x1e0fa7||_0x1e0fa7[_0x49dfc4(0x337)]===0x0?_0x12276f:_0x12276f[_0x49dfc4(0x32f)]===_0x49dfc4(0x2c9)&&((_0x21aae9=_0x12276f[_0x49dfc4(0x21a)])!=null&&_0x21aae9[_0x49dfc4(0x337)])?{..._0x12276f,'children':_0x12276f[_0x49dfc4(0x21a)][_0x49dfc4(0x255)](_0x54a0b4=>typeof _0x54a0b4[_0x49dfc4(0x342)]['id']==_0x49dfc4(0x223)&&_0x1e0fa7&&_0x1e0fa7[_0x49dfc4(0x21e)](_0x54a0b4[_0x49dfc4(0x342)]['id'])?{..._0x54a0b4,'attrs':{..._0x54a0b4[_0x49dfc4(0x342)],'id':_0x54a0b4[_0x49dfc4(0x342)]['id']+_0x1f7a83[_0x49dfc4(0x26d)]}}:_0x54a0b4)}:_0x12276f;}function de(){const _0x4e7f3c=_0x3a1329;return Math[_0x4e7f3c(0x1ed)]()[_0x4e7f3c(0x22f)](0x24)[_0x4e7f3c(0x262)](0x2,0x8);}_[_0x3a1329(0x305)]=_0x3a1329(0x1fc);const Ce={'tag':_0x3a1329(0x2eb),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x3a1329(0x2b2),'viewBox':'0\x200\x2016\x2016','width':_0x3a1329(0x31c),'height':'1em'},'children':[{'tag':_0x3a1329(0x2ad),'attrs':{'fill':'currentColor','d':_0x3a1329(0x279),'fillRule':_0x3a1329(0x1ff),'clipRule':_0x3a1329(0x1ff)}}]},H=d[_0x3a1329(0x284)](function(_0xe3cd20,_0x2e2863){const _0x12965e=_0x3a1329;return d['createElement'](_,Object[_0x12965e(0x2cf)]({},_0xe3cd20,{'id':_0x12965e(0x258),'ref':_0x2e2863,'icon':Ce}));});H[_0x3a1329(0x305)]=_0x3a1329(0x291);const ge={'tag':_0x3a1329(0x2eb),'attrs':{'xmlns':_0x3a1329(0x2dc),'fill':_0x3a1329(0x2b2),'viewBox':_0x3a1329(0x1e1),'width':_0x3a1329(0x31c),'height':_0x3a1329(0x31c)},'children':[{'tag':_0x3a1329(0x2ad),'attrs':{'fill':_0x3a1329(0x2e0),'d':_0x3a1329(0x26b)}}]},B=d[_0x3a1329(0x284)](function(_0x3a76d3,_0x5dc6f8){const _0x5fc75a=_0x3a1329;return d[_0x5fc75a(0x22a)](_,Object[_0x5fc75a(0x2cf)]({},_0x3a76d3,{'id':_0x5fc75a(0x29c),'ref':_0x5dc6f8,'icon':ge}));});B[_0x3a1329(0x305)]=_0x3a1329(0x220);const fe={'tag':_0x3a1329(0x2eb),'attrs':{'xmlns':_0x3a1329(0x2dc),'fill':_0x3a1329(0x2b2),'viewBox':_0x3a1329(0x1e1),'width':_0x3a1329(0x31c),'height':_0x3a1329(0x31c)},'children':[{'tag':_0x3a1329(0x2ad),'attrs':{'fill':'currentColor','d':_0x3a1329(0x1f3)}},{'tag':_0x3a1329(0x2ad),'attrs':{'fill':_0x3a1329(0x2e0),'d':_0x3a1329(0x30a)}},{'tag':'path','attrs':{'fill':'currentColor','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':_0x3a1329(0x1ff),'clipRule':_0x3a1329(0x1ff)}}]},F=d['forwardRef'](function(_0x6e5f9e,_0x13469d){const _0x46359a=_0x3a1329;return d[_0x46359a(0x22a)](_,Object[_0x46359a(0x2cf)]({},_0x6e5f9e,{'id':_0x46359a(0x2bc),'ref':_0x13469d,'icon':fe}));});F['displayName']=_0x3a1329(0x344);const pe={'tag':_0x3a1329(0x2eb),'attrs':{'xmlns':_0x3a1329(0x2dc),'fill':'none','viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x3a1329(0x31c)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x3a1329(0x2ad),'attrs':{'stroke':_0x3a1329(0x2e0),'d':_0x3a1329(0x2b0),'strokeLinecap':_0x3a1329(0x322),'strokeLinejoin':_0x3a1329(0x322),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x3a1329(0x28c),'attrs':{'id':_0x3a1329(0x24f)},'children':[{'tag':_0x3a1329(0x2ad),'attrs':{'fill':_0x3a1329(0x270),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x3a1329(0x24f)]},Y=d[_0x3a1329(0x284)](function(_0x3cb99a,_0x49c2ba){const _0x2923b6=_0x3a1329;return d[_0x2923b6(0x22a)](_,Object[_0x2923b6(0x2cf)]({},_0x3cb99a,{'id':_0x2923b6(0x205),'ref':_0x49c2ba,'icon':pe}));});Y[_0x3a1329(0x305)]=_0x3a1329(0x2c7);const he={'tag':_0x3a1329(0x2eb),'attrs':{'xmlns':_0x3a1329(0x2dc),'fill':'none','viewBox':_0x3a1329(0x249),'width':_0x3a1329(0x31c),'height':_0x3a1329(0x31c)},'children':[{'tag':'g','attrs':{'clipPath':_0x3a1329(0x357)},'children':[{'tag':_0x3a1329(0x2ad),'attrs':{'stroke':'currentColor','d':_0x3a1329(0x1e5),'strokeLinecap':_0x3a1329(0x322),'strokeLinejoin':_0x3a1329(0x322),'strokeWidth':1.2}}]},{'tag':_0x3a1329(0x2c9),'attrs':{},'children':[{'tag':_0x3a1329(0x28c),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x3a1329(0x2ad),'attrs':{'fill':'white','d':_0x3a1329(0x2e2),'transform':_0x3a1329(0x321)}}]}]}],'defIds':[_0x3a1329(0x2da)]},q=d[_0x3a1329(0x284)](function(_0x341afb,_0x89e13){const _0x2d8895=_0x3a1329;return d[_0x2d8895(0x22a)](_,Object[_0x2d8895(0x2cf)]({},_0x341afb,{'id':_0x2d8895(0x2d2),'ref':_0x89e13,'icon':he}));});q[_0x3a1329(0x305)]='OnLineIcon';function V(_0x4bbc33){const _0x55bb9d=_0x3a1329;var _0xfc9bc6,_0x450549;const {mcpCoreConfig:_0x2e1095,onSave:_0x401380,loading:_0x49bdd6=!0x1,config:_0x33fe87,connectionStatus$:_0x444b42,connectionError$:_0x199602,currentApiKey$:_0x188ea8,currentSessionId$:_0x2dfd63}=_0x4bbc33,_0x545194=v[_0x55bb9d(0x2ce)](u[_0x55bb9d(0x336)]),_0xddd09e=v[_0x55bb9d(0x2c5)](_0x444b42,s[_0x55bb9d(0x33b)][_0x55bb9d(0x20e)]),_0x18d4f3=v[_0x55bb9d(0x2c5)](_0x199602,s[_0x55bb9d(0x267)][_0x55bb9d(0x28b)]),_0x5118ff=v[_0x55bb9d(0x2c5)](_0x2dfd63,''),_0x3a3ad2=v['useObservable'](_0x188ea8,''),[_0x44a7a5,_0x1e3efc]=d[_0x55bb9d(0x2b1)](_0x3a3ad2||''),_0x429a6b=!0x0,_0x13ceba=_0x33fe87[_0x55bb9d(0x278)]&&_0x2e1095[_0x55bb9d(0x257)]&&(_0x2e1095[_0x55bb9d(0x257)][_0x55bb9d(0x21e)]('univer.plus')||_0x2e1095[_0x55bb9d(0x257)][_0x55bb9d(0x21e)](_0x55bb9d(0x256))),_0xde6782=(_0xfc9bc6=_0x2e1095[_0x55bb9d(0x257)])==null?void 0x0:_0xfc9bc6[_0x55bb9d(0x21e)](_0x55bb9d(0x219)),_0x46d28e=(_0x450549=_0x2e1095[_0x55bb9d(0x257)])==null?void 0x0:_0x450549['includes']('univer.ai'),_0x1a68df=_0xde6782?_0x55bb9d(0x269):'https://console.univer.ai',_0x340cd0=_0x33fe87[_0x55bb9d(0x278)]&&(_0xde6782||_0x46d28e),[_0x5dffeb,_0x4466d4]=d['useState'](!_0x44a7a5['trim']()),_0x3fa9ce=(_0xe31440,_0x33becb)=>{const _0xf863ce=_0x55bb9d;if(_0x33becb===s[_0xf863ce(0x267)][_0xf863ce(0x246)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0xe31440){case s[_0xf863ce(0x33b)][_0xf863ce(0x34b)]:return _0xf863ce(0x363);case s[_0xf863ce(0x33b)]['CONNECTING']:case s['MCPConnectionStatus'][_0xf863ce(0x238)]:return'univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200';case s['MCPConnectionStatus'][_0xf863ce(0x274)]:return _0xf863ce(0x2e5);default:return _0xf863ce(0x2f5);}},_0x2b0c77=(_0x3a259b,_0x18278d)=>{const _0x537de6=_0x55bb9d;if(_0x18278d===s[_0x537de6(0x267)][_0x537de6(0x246)])return'univer-bg-red-500';switch(_0x3a259b){case s[_0x537de6(0x33b)][_0x537de6(0x34b)]:return _0x537de6(0x225);case s[_0x537de6(0x33b)][_0x537de6(0x226)]:case s[_0x537de6(0x33b)][_0x537de6(0x238)]:return'univer-bg-blue-500';case s[_0x537de6(0x33b)][_0x537de6(0x274)]:return'univer-bg-red-500';default:return _0x537de6(0x309);}},_0x3f9b29=_0x312104=>{const _0x3f9488=_0x55bb9d;switch(_0x312104){case s['MCPConnectionStatus'][_0x3f9488(0x34b)]:return _0x545194['t'](_0x3f9488(0x1e2));case s['MCPConnectionStatus'][_0x3f9488(0x226)]:return _0x545194['t'](_0x3f9488(0x1f9));case s[_0x3f9488(0x33b)]['FAILED']:return _0x545194['t'](_0x3f9488(0x2a7));case s['MCPConnectionStatus']['RETRYING']:return _0x545194['t'](_0x3f9488(0x2f7));default:return _0x545194['t'](_0x3f9488(0x239));}},_0x2e22bb=_0x55f3a3=>{const _0x269954=_0x55bb9d;switch(_0x55f3a3){case s[_0x269954(0x267)][_0x269954(0x246)]:return _0x545194['t']('mcpConfig.connectionError.unauthorized');case s['MCPConnectionError']['SESSION_ID_OCCUPIED']:return _0x545194['t']('mcpConfig.connectionError.sessionOccupied');case s[_0x269954(0x267)][_0x269954(0x241)]:return _0x545194['t']('mcpConfig.connectionError.networkError');case s[_0x269954(0x267)][_0x269954(0x21c)]:return _0x545194['t'](_0x269954(0x280));default:return'';}},_0x42b0dc=d[_0x55bb9d(0x2d0)](()=>{const _0x26b05a=_0x55bb9d,_0x2560c4={..._0x2e1095,'apiKey':_0x44a7a5[_0x26b05a(0x317)](),'enableAuth':_0x429a6b};_0x401380(_0x2560c4);},[_0x2e1095,_0x44a7a5,_0x429a6b,_0x401380]),_0x76acef=_0x44a7a5[_0x55bb9d(0x317)]()[_0x55bb9d(0x337)]>0x0;return i['jsxs'](_0x55bb9d(0x1e0),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[i[_0x55bb9d(0x307)](_0x55bb9d(0x1e0),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':i[_0x55bb9d(0x2d8)](_0x55bb9d(0x1e0),{'className':_0x55bb9d(0x289),'children':[i[_0x55bb9d(0x307)](_0x55bb9d(0x1e0),{'className':'univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','children':i[_0x55bb9d(0x307)]('span',{'className':_0x55bb9d(0x2f3),'children':'⚙'})}),i['jsx']('div',{'children':i[_0x55bb9d(0x307)]('p',{'className':_0x55bb9d(0x2a8),'children':_0x545194['t']('mcpConfig.description')})})]})}),i[_0x55bb9d(0x2d8)]('div',{'className':_0x55bb9d(0x2f2),'children':[i[_0x55bb9d(0x307)](_0x55bb9d(0x1e0),{'className':f[_0x55bb9d(0x28d)](_0x55bb9d(0x27a),_0x3fa9ce(_0xddd09e,_0x18d4f3)),'children':i['jsxs']('div',{'className':_0x55bb9d(0x27c),'children':[i[_0x55bb9d(0x307)](_0x55bb9d(0x1e0),{'className':f[_0x55bb9d(0x28d)]('univer-size-2\x20univer-rounded-full',_0x2b0c77(_0xddd09e,_0x18d4f3))}),i[_0x55bb9d(0x307)]('span',{'className':_0x55bb9d(0x275),'children':_0x3f9b29(_0xddd09e)})]})}),_0x18d4f3!==s[_0x55bb9d(0x267)][_0x55bb9d(0x28b)]&&(_0xddd09e===s['MCPConnectionStatus'][_0x55bb9d(0x274)]||_0x18d4f3===s[_0x55bb9d(0x267)][_0x55bb9d(0x246)])&&i[_0x55bb9d(0x307)](_0x55bb9d(0x1e0),{'className':_0x55bb9d(0x2fe),'children':i['jsxs'](_0x55bb9d(0x1e0),{'className':_0x55bb9d(0x2c2),'children':[i['jsx'](_0x55bb9d(0x33c),{'className':_0x55bb9d(0x359),'children':'⚠️'}),i[_0x55bb9d(0x307)]('p',{'className':_0x55bb9d(0x35b),'children':_0x2e22bb(_0x18d4f3)})]})})]}),i[_0x55bb9d(0x307)](_0x55bb9d(0x1e0),{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':i[_0x55bb9d(0x2d8)](_0x55bb9d(0x1e0),{'className':_0x55bb9d(0x247),'children':[i['jsxs']('div',{'className':_0x55bb9d(0x23e),'children':[i[_0x55bb9d(0x2d8)](_0x55bb9d(0x339),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[i[_0x55bb9d(0x307)](_0x55bb9d(0x33c),{'children':'🔑'}),'\x20',_0x545194['t']('mcpConfig.apiKey'),i[_0x55bb9d(0x307)]('span',{'className':'univer-text-red-500','children':'*'}),_0x13ceba&&i['jsx']('a',{'className':_0x55bb9d(0x271),'title':_0x545194['t'](_0x55bb9d(0x313)),'role':_0x55bb9d(0x25b),'onClick':()=>_0x4466d4(!0x0),'children':i[_0x55bb9d(0x307)](F,{})})]}),i['jsx'](f[_0x55bb9d(0x328)],{'type':'text','placeholder':_0x545194['t'](_0x55bb9d(0x325)),'value':_0x44a7a5,'disabled':_0x49bdd6,'autoComplete':_0x55bb9d(0x2b7),'onChange':_0x1e3efc}),i[_0x55bb9d(0x307)]('p',{'className':_0x55bb9d(0x273),'children':_0x545194['t'](_0x55bb9d(0x1e6))})]}),_0x13ceba&&_0x5dffeb&&i[_0x55bb9d(0x2d8)](_0x55bb9d(0x1e0),{'className':'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','children':[i['jsx']('a',{'className':_0x55bb9d(0x290),'role':_0x55bb9d(0x25b),'onClick':()=>_0x4466d4(!0x1),'children':i[_0x55bb9d(0x307)](B,{'className':_0x55bb9d(0x20d)})}),i[_0x55bb9d(0x2d8)](_0x55bb9d(0x1e0),{'className':_0x55bb9d(0x272),'children':[i[_0x55bb9d(0x307)]('div',{'className':_0x55bb9d(0x365),'children':i[_0x55bb9d(0x307)]('span',{'className':_0x55bb9d(0x292),'children':'🚀'})}),i[_0x55bb9d(0x2d8)](_0x55bb9d(0x1e0),{'className':_0x55bb9d(0x2e8),'children':[i[_0x55bb9d(0x307)]('h4',{'className':_0x55bb9d(0x1dd),'children':_0x545194['t'](_0x55bb9d(0x313))}),i[_0x55bb9d(0x307)]('p',{'className':_0x55bb9d(0x21f),'children':_0x545194['t'](_0x55bb9d(0x302))}),i['jsx'](_0x55bb9d(0x1e0),{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x340cd0&&i['jsxs']('a',{'className':_0x55bb9d(0x323),'href':_0x1a68df,'target':_0x55bb9d(0x296),'rel':'noopener\x20noreferrer','children':[i['jsx'](_0x55bb9d(0x33c),{'children':'🤖'}),_0x545194['t']('mcpConfig.apiApplyInfo.univerAiLabel'),i[_0x55bb9d(0x307)]('span',{'className':_0x55bb9d(0x356),'children':'↗'})]})}),i[_0x55bb9d(0x2d8)](_0x55bb9d(0x1e0),{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x545194['t'](_0x55bb9d(0x1da))]})]})]})]}),_0x33fe87['showDeveloperTools']&&i[_0x55bb9d(0x2d8)](_0x55bb9d(0x1e0),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[i['jsxs']('h4',{'className':_0x55bb9d(0x28a),'children':[i[_0x55bb9d(0x307)](_0x55bb9d(0x33c),{'children':'🔗'}),'\x20',_0x545194['t'](_0x55bb9d(0x1eb))]}),i[_0x55bb9d(0x2d8)]('div',{'className':_0x55bb9d(0x230),'children':[i[_0x55bb9d(0x2d8)]('div',{'className':_0x55bb9d(0x248),'children':[i[_0x55bb9d(0x307)]('p',{'className':_0x55bb9d(0x314),'children':_0x545194['t'](_0x55bb9d(0x2ba))}),i[_0x55bb9d(0x2d8)](_0x55bb9d(0x1e0),{'className':'univer-space-y-2','children':[i[_0x55bb9d(0x307)](_0x55bb9d(0x1e0),{'className':_0x55bb9d(0x35f),'children':_0x545194['t']('mcpConfig.configStepTitle')}),i[_0x55bb9d(0x2d8)](_0x55bb9d(0x1e0),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[i[_0x55bb9d(0x2d8)](_0x55bb9d(0x1e0),{'className':_0x55bb9d(0x27c),'children':[i[_0x55bb9d(0x307)](_0x55bb9d(0x33c),{'className':_0x55bb9d(0x33f),'children':'1'}),_0x545194['t'](_0x55bb9d(0x1f8))]}),i[_0x55bb9d(0x2d8)]('div',{'className':_0x55bb9d(0x27c),'children':[i[_0x55bb9d(0x307)](_0x55bb9d(0x33c),{'className':_0x55bb9d(0x33f),'children':'2'}),_0x545194['t']('mcpConfig.configStep2')]}),i['jsxs']('div',{'className':_0x55bb9d(0x27c),'children':[i[_0x55bb9d(0x307)](_0x55bb9d(0x33c),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'3'}),_0x545194['t']('mcpConfig.configStep3')]})]})]})]}),i[_0x55bb9d(0x2d8)](_0x55bb9d(0x1e0),{'className':_0x55bb9d(0x23e),'children':[i[_0x55bb9d(0x307)](_0x55bb9d(0x1e0),{'className':_0x55bb9d(0x35f),'children':_0x55bb9d(0x304)}),i[_0x55bb9d(0x307)](_0x55bb9d(0x1e0),{'className':_0x55bb9d(0x1f1),'children':i[_0x55bb9d(0x307)](_0x55bb9d(0x200),{'className':_0x55bb9d(0x1de),'children':JSON[_0x55bb9d(0x253)]({'mcpServers':{'univer':{'url':'https://mcp.univer.ai/mcp/?univer_session_id='+(_0x5118ff||_0x55bb9d(0x349)),'type':_0x55bb9d(0x30e),'headers':{'Authorization':_0x55bb9d(0x23c)+(_0x44a7a5||_0x55bb9d(0x2ab))}}}},null,0x2)})})]}),i[_0x55bb9d(0x2d8)]('div',{'className':_0x55bb9d(0x248),'children':[i['jsx'](_0x55bb9d(0x1e0),{'className':_0x55bb9d(0x35f),'children':_0x545194['t'](_0x55bb9d(0x276))}),i[_0x55bb9d(0x2d8)](_0x55bb9d(0x1e0),{'className':_0x55bb9d(0x23e),'children':[i[_0x55bb9d(0x2d8)](_0x55bb9d(0x1e0),{'className':_0x55bb9d(0x24a),'children':[i[_0x55bb9d(0x307)](_0x55bb9d(0x1e0),{'className':_0x55bb9d(0x2c3)}),i[_0x55bb9d(0x2d8)](_0x55bb9d(0x1e0),{'className':_0x55bb9d(0x353),'children':[i[_0x55bb9d(0x307)](_0x55bb9d(0x1e0),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x55bb9d(0x229)}),i['jsx'](_0x55bb9d(0x1e0),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x545194['t'](_0x55bb9d(0x31b))})]})]}),i[_0x55bb9d(0x2d8)](_0x55bb9d(0x1e0),{'className':_0x55bb9d(0x24a),'children':[i[_0x55bb9d(0x307)](_0x55bb9d(0x1e0),{'className':_0x55bb9d(0x2c3)}),i['jsxs'](_0x55bb9d(0x1e0),{'className':'univer-min-w-0\x20univer-flex-1','children':[i[_0x55bb9d(0x307)](_0x55bb9d(0x1e0),{'className':_0x55bb9d(0x329),'children':_0x55bb9d(0x2cb)}),i[_0x55bb9d(0x307)]('div',{'className':_0x55bb9d(0x273),'children':_0x545194['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),i['jsx'](f[_0x55bb9d(0x254)],{'onClick':_0x42b0dc,'disabled':!_0x76acef||_0x49bdd6,'className':_0x55bb9d(0x251),'children':_0x49bdd6?i[_0x55bb9d(0x2d8)](_0x55bb9d(0x33c),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x55bb9d(0x307)](_0x55bb9d(0x33c),{'children':'⟲'}),_0x545194['t'](_0x55bb9d(0x21d))]}):i[_0x55bb9d(0x2d8)](_0x55bb9d(0x33c),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x55bb9d(0x307)](H,{}),_0x545194['t'](_0x55bb9d(0x217))]})}),i[_0x55bb9d(0x307)](_0x55bb9d(0x1e0),{'className':_0x55bb9d(0x23d),'children':i['jsxs']('div',{'className':_0x55bb9d(0x312),'children':[i['jsx'](_0x55bb9d(0x33c),{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),i['jsxs'](_0x55bb9d(0x1e0),{'className':_0x55bb9d(0x204),'children':[i[_0x55bb9d(0x307)](_0x55bb9d(0x1e0),{'className':_0x55bb9d(0x2e1),'children':_0x55bb9d(0x2c8)}),i[_0x55bb9d(0x2d8)](_0x55bb9d(0x1e0),{'children':['•',_0x545194['t']('mcpConfig.note1')]}),i[_0x55bb9d(0x2d8)](_0x55bb9d(0x1e0),{'children':['•',_0x545194['t'](_0x55bb9d(0x2ed))]})]})]})})]})})]});}const P='mcp-ui.config',L={'showDeveloperTools':!0x1,'showStatus':!0x0};var me=Object[_0x3a1329(0x22b)],xe=(_0x4da3f2,_0x4fd468,_0x186c7d,_0x298090)=>{const _0x131dfe=_0x3a1329;for(var _0x2536ed=_0x298090>0x1?void 0x0:_0x298090?me(_0x4fd468,_0x186c7d):_0x4fd468,_0x2ca177=_0x4da3f2[_0x131dfe(0x337)]-0x1,_0x33a8a3;_0x2ca177>=0x0;_0x2ca177--)(_0x33a8a3=_0x4da3f2[_0x2ca177])&&(_0x2536ed=_0x33a8a3(_0x2536ed)||_0x2536ed);return _0x2536ed;},g=(_0x4ef531,_0x21b6be)=>(_0x113354,_0x71b4c)=>_0x21b6be(_0x113354,_0x71b4c,_0x4ef531);const O=_0x3a1329(0x1f0),D='mcp-config-dialog';exports[_0x3a1329(0x29d)]=class extends u['Disposable']{constructor(_0x5707fa,_0x15cf4b,_0x5eaa4c,_0x55708f,_0x58141d,_0x894421,_0x1ee11c,_0x10f6ec,_0x211173,_0x13d4af){const _0x382b6c=_0x3a1329;super(),I(this,_0x382b6c(0x338),new M[(_0x382b6c(0x26e))](!0x1)),I(this,_0x382b6c(0x1f5),new M['BehaviorSubject']({})),I(this,_0x382b6c(0x203),new M['BehaviorSubject']({})),I(this,'_apiKey$',new M[(_0x382b6c(0x26e))]('')),I(this,'_handleConfigSave',async _0x2ccee5=>{const _0x325f1b=_0x382b6c;var _0x5b6975,_0x1b42a7;this[_0x325f1b(0x338)][_0x325f1b(0x2e7)](!0x0);try{const _0x2e5a70=await this[_0x325f1b(0x2e4)](_0x2ccee5);if(!_0x2e5a70[_0x325f1b(0x286)]){this[_0x325f1b(0x2ae)][_0x325f1b(0x30b)]({'type':f[_0x325f1b(0x298)][_0x325f1b(0x2de)],'content':_0x2e5a70[_0x325f1b(0x213)]||this[_0x325f1b(0x345)]['t']('mcpConfig.validation.invalidConfig')});return;}_0x2ccee5[_0x325f1b(0x355)]?await this['_localStorageService']['setItem'](O,_0x2ccee5[_0x325f1b(0x355)][_0x325f1b(0x317)]()):await this[_0x325f1b(0x234)][_0x325f1b(0x245)](O),this[_0x325f1b(0x265)][_0x325f1b(0x2e7)](((_0x5b6975=_0x2ccee5[_0x325f1b(0x355)])==null?void 0x0:_0x5b6975[_0x325f1b(0x317)]())||''),this[_0x325f1b(0x26f)][_0x325f1b(0x26c)]({'Authorization':_0x325f1b(0x23c)+((_0x1b42a7=_0x2ccee5[_0x325f1b(0x355)])==null?void 0x0:_0x1b42a7[_0x325f1b(0x317)]())}),this[_0x325f1b(0x2ae)][_0x325f1b(0x30b)]({'type':f[_0x325f1b(0x298)]['Success'],'content':this['_localeService']['t']('mcpConfig.configSaved')}),setTimeout(()=>{const _0x2bf621=_0x325f1b;this[_0x2bf621(0x2c1)][_0x2bf621(0x295)](D);},0x320);}catch(_0x55f87e){this[_0x325f1b(0x315)]['error'](_0x325f1b(0x35e),_0x55f87e),this[_0x325f1b(0x2ae)][_0x325f1b(0x30b)]({'type':f['MessageType'][_0x325f1b(0x2de)],'content':this[_0x325f1b(0x345)]['t'](_0x325f1b(0x29f))});}finally{this[_0x325f1b(0x338)]['next'](!0x1);}}),(this['_injector']=_0x5707fa,this[_0x382b6c(0x34f)]=_0x15cf4b,this[_0x382b6c(0x215)]=_0x5eaa4c,this['_localStorageService']=_0x55708f,this[_0x382b6c(0x2c1)]=_0x58141d,this[_0x382b6c(0x2ae)]=_0x894421,this[_0x382b6c(0x2aa)]=_0x1ee11c,this[_0x382b6c(0x345)]=_0x10f6ec,this['_logService']=_0x211173,this[_0x382b6c(0x26f)]=_0x13d4af,this[_0x382b6c(0x2f6)](),this[_0x382b6c(0x1fe)](),this[_0x382b6c(0x29e)]());}[_0x3a1329(0x34e)](){const _0x549260=_0x3a1329,_0x526474=this[_0x549260(0x215)]['getConfig'](P);_0x526474!=null&&_0x526474[_0x549260(0x278)]&&this[_0x549260(0x2c1)][_0x549260(0x2b5)]({'id':D,'title':{'title':this[_0x549260(0x345)]['t'](_0x549260(0x2f4))},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x1bb7e4=_0x549260;this[_0x1bb7e4(0x2c1)]['close'](D);}});}[_0x3a1329(0x340)](){const _0x11e0e8=_0x3a1329;return this[_0x11e0e8(0x1f5)][_0x11e0e8(0x320)];}[_0x3a1329(0x29e)](){const _0x578740=_0x3a1329;this['disposeWithMe'](this[_0x578740(0x2aa)][_0x578740(0x244)](_0x578740(0x208),this['_createConfigPanelComponent']()));}['_createConfigPanelComponent'](){const _0x17d673=_0x3a1329;return v[_0x17d673(0x221)](()=>{const _0x5bface=_0x17d673;var _0x5a1aec,_0x3551f8,_0x125135;return i[_0x5bface(0x307)](V,{'config':this[_0x5bface(0x203)][_0x5bface(0x320)],'mcpCoreConfig':this[_0x5bface(0x1f5)]['value'],'currentApiKey$':this[_0x5bface(0x265)],'onSave':this[_0x5bface(0x32e)],'loading':this[_0x5bface(0x338)]['value'],'connectionStatus$':(_0x5a1aec=this[_0x5bface(0x26f)])==null?void 0x0:_0x5a1aec[_0x5bface(0x1e9)],'connectionError$':(_0x3551f8=this[_0x5bface(0x26f)])==null?void 0x0:_0x3551f8[_0x5bface(0x224)],'currentSessionId$':(_0x125135=this[_0x5bface(0x26f)])==null?void 0x0:_0x125135[_0x5bface(0x326)]});},this[_0x17d673(0x343)]);}[_0x3a1329(0x2f6)](){const _0x56364f=_0x3a1329;this[_0x56364f(0x33a)](this[_0x56364f(0x215)]['subscribeConfigValue$'](s['MCP_PLUGIN_CONFIG_KEY'])[_0x56364f(0x202)](_0x2e9258=>{const _0x28185a=_0x56364f;this[_0x28185a(0x1f5)][_0x28185a(0x2e7)](_0x2e9258||{});}));const _0x269754=this['_configService']['getConfig'](s[_0x56364f(0x30c)]);this['_mcpCoreConfig$']['next'](_0x269754||{}),this[_0x56364f(0x33a)](this['_configService'][_0x56364f(0x34c)](P)[_0x56364f(0x202)](_0x5c9182=>{const _0x4b4d88=_0x56364f;this[_0x4b4d88(0x203)][_0x4b4d88(0x2e7)](_0x5c9182||{});}));const _0x42a32c=this[_0x56364f(0x215)][_0x56364f(0x2f0)](P);this[_0x56364f(0x203)]['next'](_0x42a32c||{});}async[_0x3a1329(0x1fe)](){const _0x51e5f2=_0x3a1329,_0x1d141e=this['_configService'][_0x51e5f2(0x2f0)](P);if(!(_0x1d141e!=null&&_0x1d141e[_0x51e5f2(0x278)]))return;const _0xdd9c89=await this[_0x51e5f2(0x234)][_0x51e5f2(0x206)](O);_0xdd9c89&&(this['_mcpConnectionController']['__setCustomHeaders']({'Authorization':_0x51e5f2(0x23c)+_0xdd9c89}),this[_0x51e5f2(0x265)]['next'](_0xdd9c89));}async[_0x3a1329(0x2e4)](_0x52aea7){const _0x31056b=_0x3a1329;if(!_0x52aea7[_0x31056b(0x355)]||_0x52aea7[_0x31056b(0x355)][_0x31056b(0x317)]()[_0x31056b(0x337)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x31056b(0x345)]['t'](_0x31056b(0x2cd))};if(_0x52aea7[_0x31056b(0x355)][_0x31056b(0x317)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0x31056b(0x345)]['t'](_0x31056b(0x1df))};try{const _0x3b8a1a=await this[_0x31056b(0x343)][_0x31056b(0x31e)](s[_0x31056b(0x237)])[_0x31056b(0x2c0)](_0x52aea7[_0x31056b(0x355)][_0x31056b(0x317)]());return _0x3b8a1a[_0x31056b(0x286)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x3b8a1a[_0x31056b(0x335)]||this[_0x31056b(0x345)]['t'](_0x31056b(0x332))};}catch(_0x31c34f){return console[_0x31056b(0x301)](_0x31056b(0x32c),_0x31c34f),{'isValid':!0x0};}}},exports['MCPConfigUIController']=xe([g(0x0,u[_0x3a1329(0x235)](u[_0x3a1329(0x210)])),g(0x1,v[_0x3a1329(0x28e)]),g(0x2,u[_0x3a1329(0x310)]),g(0x3,u[_0x3a1329(0x242)]),g(0x4,v[_0x3a1329(0x2a1)]),g(0x5,v[_0x3a1329(0x2ec)]),g(0x6,u['Inject'](v[_0x3a1329(0x2a4)])),g(0x7,u['Inject'](u[_0x3a1329(0x336)])),g(0x8,u['ILogService']),g(0x9,u[_0x3a1329(0x235)](s[_0x3a1329(0x237)]))],exports[_0x3a1329(0x29d)]);const b={'id':_0x3a1329(0x1ee),'type':u[_0x3a1329(0x348)][_0x3a1329(0x1fd)],'handler':async(_0x161288,_0x17b405)=>(_0x161288['get'](exports[_0x3a1329(0x29d)])[_0x3a1329(0x34e)](),!0x0)};function Z(_0x4d305a,_0x537038){const _0x54aa20=_0x3a1329;switch(_0x4d305a){case s['MCPConnectionStatus'][_0x54aa20(0x20e)]:return'mcpStatus.disconnected';case s[_0x54aa20(0x33b)]['CONNECTING']:return _0x54aa20(0x250);case s['MCPConnectionStatus'][_0x54aa20(0x34b)]:return _0x54aa20(0x260);case s[_0x54aa20(0x33b)][_0x54aa20(0x274)]:switch(_0x537038){case s[_0x54aa20(0x267)][_0x54aa20(0x246)]:return'mcpStatus.unauthorized';case s[_0x54aa20(0x267)]['SESSION_ID_OCCUPIED']:return'mcpStatus.sessionOccupied';case s['MCPConnectionError'][_0x54aa20(0x241)]:return _0x54aa20(0x2ca);case s[_0x54aa20(0x267)]['MAX_RETRIES_EXCEEDED']:return _0x54aa20(0x233);default:return _0x54aa20(0x35a);}case s[_0x54aa20(0x33b)]['RETRYING']:return _0x54aa20(0x25e);default:return _0x54aa20(0x222);}}function Se(_0xd07429,_0x407bbc,_0x4590a6,_0x2af1ff=!0x0){const _0x36a90b=_0x3a1329,_0x843367=Z(_0xd07429,_0x407bbc),_0x37cc27=_0x4590a6['t'](_0x843367);return _0x2af1ff?_0xd07429===s[_0x36a90b(0x33b)]['DISCONNECTED']&&_0x407bbc===s[_0x36a90b(0x267)]['UNAUTHORIZED']?_0x37cc27+_0x36a90b(0x351)+_0x4590a6['t'](_0x36a90b(0x2a6)):_0xd07429===s[_0x36a90b(0x33b)][_0x36a90b(0x34b)]?''+_0x37cc27:_0xd07429===s['MCPConnectionStatus'][_0x36a90b(0x20e)]||_0xd07429===s[_0x36a90b(0x33b)][_0x36a90b(0x274)]?_0x37cc27+_0x36a90b(0x351)+_0x4590a6['t']('mcpStatus.clickToConnect'):_0x37cc27:_0x37cc27;}function Pe(_0x3391f3){const _0x403cbd=_0x3a1329;switch(_0x3391f3){case s[_0x403cbd(0x33b)][_0x403cbd(0x34b)]:return _0x403cbd(0x308);case s[_0x403cbd(0x33b)][_0x403cbd(0x226)]:case s[_0x403cbd(0x33b)][_0x403cbd(0x238)]:return _0x403cbd(0x361);case s[_0x403cbd(0x33b)][_0x403cbd(0x274)]:case s['MCPConnectionStatus'][_0x403cbd(0x20e)]:return _0x403cbd(0x293);default:return _0x403cbd(0x32b);}}function W(_0x358991){const _0x1bfa10=_0x3a1329,{status$:_0x47a950,error$:_0x181af8,onConfigure:_0x13e3c4,showClickable:_0x374624=!0x0}=_0x358991,_0x3e1c64=v[_0x1bfa10(0x2c5)](_0x47a950,s[_0x1bfa10(0x33b)][_0x1bfa10(0x20e)]),_0x124366=v['useObservable'](_0x181af8,s[_0x1bfa10(0x267)][_0x1bfa10(0x28b)]),_0x3848f4=v[_0x1bfa10(0x2ce)](u['LocaleService']),_0x1cc977=_0x3e1c64===s[_0x1bfa10(0x33b)][_0x1bfa10(0x34b)];_0x3e1c64===s[_0x1bfa10(0x33b)][_0x1bfa10(0x226)]||s[_0x1bfa10(0x33b)][_0x1bfa10(0x238)];const _0x35346c=_0x3848f4['t'](Z(_0x3e1c64,_0x124366)),_0x761dae=Se(_0x3e1c64,_0x124366,_0x3848f4,_0x374624),_0x3bc661=Pe(_0x3e1c64),_0x2f63e1=_0x1cc977?i[_0x1bfa10(0x307)](q,{}):i[_0x1bfa10(0x307)](Y,{}),_0x30483d=d['useCallback'](()=>{_0x374624&&_0x13e3c4&&_0x13e3c4();},[_0x374624,_0x13e3c4]);function _0x39ec88(){const _0x4764ff=_0x1bfa10;return i[_0x4764ff(0x2d8)](_0x4764ff(0x1e0),{'className':f[_0x4764ff(0x28d)]('univer-flex\x20univer-items-center',_0x374624&&_0x13e3c4&&_0x4764ff(0x216)),'role':_0x4764ff(0x25b),'onClick':_0x374624&&_0x13e3c4?_0x30483d:void 0x0,'children':[i['jsx']('div',{'className':f[_0x4764ff(0x28d)](_0x4764ff(0x318),_0x3bc661),'children':_0x2f63e1}),i[_0x4764ff(0x307)](_0x4764ff(0x1e0),{'className':_0x4764ff(0x2af),'children':_0x35346c})]});}return i[_0x1bfa10(0x307)](f[_0x1bfa10(0x306)],{'title':_0x761dae,'placement':_0x1bfa10(0x20f),'children':_0x39ec88()});}function _0xa6a6(_0x226826,_0x1167d7){_0x226826=_0x226826-0x1da;const _0x11fef2=_0x11fe();let _0xa6a6be=_0x11fef2[_0x226826];return _0xa6a6be;}var Ie=Object[_0x3a1329(0x22b)],_e=(_0x378f8a,_0x2c4f6a,_0x1cd9d9,_0x5d135b)=>{const _0x47c40b=_0x3a1329;for(var _0x2b404b=_0x5d135b>0x1?void 0x0:_0x5d135b?Ie(_0x2c4f6a,_0x1cd9d9):_0x2c4f6a,_0x159570=_0x378f8a[_0x47c40b(0x337)]-0x1,_0x56df2c;_0x159570>=0x0;_0x159570--)(_0x56df2c=_0x378f8a[_0x159570])&&(_0x2b404b=_0x56df2c(_0x2b404b)||_0x2b404b);return _0x2b404b;},N=(_0x49cdaf,_0x223c6a)=>(_0xb38927,_0x892732)=>_0x223c6a(_0xb38927,_0x892732,_0x49cdaf);exports[_0x3a1329(0x27f)]=class extends u[_0x3a1329(0x236)]{constructor(_0x2a1c05,_0x2157cb,_0x1dfbb6,_0x48b174){const _0xea967e=_0x3a1329;super(),this['_injector']=_0x2a1c05,this['_connectionController']=_0x2157cb,this[_0xea967e(0x34f)]=_0x1dfbb6,this[_0xea967e(0x215)]=_0x48b174,this['_initAutoConnect'](),this[_0xea967e(0x1e3)]();}[_0x3a1329(0x282)](){const _0x25ddfc=_0x3a1329,_0x4992e1=this[_0x25ddfc(0x215)]['getConfig'](P);_0x4992e1!=null&&_0x4992e1[_0x25ddfc(0x278)]&&(this[_0x25ddfc(0x261)][_0x25ddfc(0x2b4)]=!0x1);}['_initStatusComponent'](){const _0x5ddf9c=_0x3a1329,_0xfb52b5=this[_0x5ddf9c(0x215)][_0x5ddf9c(0x2f0)](P);(_0xfb52b5==null?void 0x0:_0xfb52b5[_0x5ddf9c(0x341)])!==!0x1&&this[_0x5ddf9c(0x33a)](this[_0x5ddf9c(0x34f)][_0x5ddf9c(0x2fb)](v['BuiltInUIPart'][_0x5ddf9c(0x207)],()=>{const _0x32f120=_0x5ddf9c;var _0x3dac96;return v[_0x32f120(0x221)](ye({'status$':this['_connectionController'][_0x32f120(0x1e9)],'error$':this[_0x32f120(0x261)][_0x32f120(0x224)],'onConfigure':()=>this[_0x32f120(0x243)](),'showClickable':(_0x3dac96=_0xfb52b5==null?void 0x0:_0xfb52b5[_0x32f120(0x278)])!=null?_0x3dac96:!0x1}),this['_injector']);}));}[_0x3a1329(0x243)](){const _0xe810df=_0x3a1329;this['_injector'][_0xe810df(0x31e)](exports[_0xe810df(0x29d)])[_0xe810df(0x34e)]();}},exports[_0x3a1329(0x27f)]=_e([N(0x0,u['Inject'](u[_0x3a1329(0x210)])),N(0x1,u[_0x3a1329(0x235)](s['MCPConnectionController'])),N(0x2,v[_0x3a1329(0x28e)]),N(0x3,u[_0x3a1329(0x310)])],exports[_0x3a1329(0x27f)]);function _0x11fe(){const _0x3de066=['Inject','Disposable','MCPConnectionController','RETRYING','mcpConfig.connectionStatus.disconnected','未连接','Connecting...','Bearer\x20','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','univer-space-y-2','MCPUIMenuController','Plugin','NETWORK_ERROR','ILocalStorageService','_handleConfigure','register','removeItem','UNAUTHORIZED','univer-space-y-5','univer-space-y-3','0\x200\x2017\x2016','univer-flex\x20univer-items-start\x20univer-gap-3','Configuration\x20Parameters:','Click\x20to\x20connect\x20MCP','重连中...','url(#$1','off-line-icon_clip0_910_343','mcpStatus.connecting','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','MCP\x20Retrying...','stringify','Button','map','univer.ai','mcpServerUrl','check-mark-icon','MCP:\x20未授权','defineProperty','button','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Enable\x20Authentication','mcpStatus.retrying','Invalid\x20configuration','mcpStatus.connected','_connectionController','substring','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Unknown\x20Status','_apiKey$','已连接','MCPConnectionError','OpenMCPConfigPanelCommand','https://console.univer.plus','MCP\x20Disconnected','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','__setCustomHeaders','idSuffix','BehaviorSubject','_mcpConnectionController','white','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-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','univer-text-xs\x20univer-text-gray-500','FAILED','univer-text-sm\x20univer-font-medium','mcpConfig.configParameters','registerCommand','showDeveloperTools','M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','API\x20密钥长度至少需要\x2010\x20位','univer-flex\x20univer-items-center\x20univer-gap-2','MCP\x20连接失败','几秒钟内获取您的\x20API\x20密钥','MCPConnectionUIController','mcpConfig.connectionError.maxRetriesExceeded','MCPStatusDisplay','_initAutoConnect','点击连接\x20MCP','forwardRef','Get\x20your\x20API\x20key\x20in\x20seconds','isValid','配置参数:','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','univer-flex\x20univer-items-center\x20univer-gap-3','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','NONE','clipPath','clsx','IUIPartsService','请输入您的\x20API\x20密钥','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','CheckMarkIcon','univer-text-blue-600','univer-text-red-500','点击配置\x20MCP','close','_blank','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MessageType','MCP\x20配置','has','MCP\x20Connection\x20Failed','close-icon','MCPConfigUIController','_registerComponent','mcpConfig.configError','onStarting','IDialogService','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','API\x20密钥无效,请检查密钥是否正确','ComponentManager','_commandService','mcpStatus.clickToConfigure','mcpConfig.connectionStatus.failed','univer-text-sm\x20univer-text-gray-500','10bdDNXT','_componentManager','<API_KEY>','Failed\x20to\x20save\x20configuration','path','_messageService','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','useState','none','MCP\x20重连中...','enableAutoConnect','open','Retrying...','off','配置保存成功','useRef','mcpConfig.configInstructions','fill','help-icon','BUTTON','_initializeMenus','RibbonStartGroup','validateApiKey','_dialogService','univer-flex\x20univer-items-start\x20univer-gap-2','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','6120OVwJVe','useObservable','配置\x20MCP\x20使用\x20AI\x20操作电子表格','OffLineIcon','Configuration\x20Notes:','defs','mcpStatus.networkError','Authorization:','DependentOn','mcpConfig.validation.apiKeyRequired','useDependency','assign','useCallback','配置更改将立即生效','on-line-icon','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','API\x20密钥','会话\x20ID\x20已被占用,请稍后再试','673741WqazLZ','What\x20is\x20API\x20Key?','jsxs','MCP\x20Connected','on-line-icon_clip0_910_349','use','http://www.w3.org/2000/svg','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Error','add','currentColor','univer-font-medium','M0\x200H16V16H0z','push','_validateConfig','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','ISocketService','next','univer-flex-1','保存中...','MCP:\x20Network\x20Error','svg','IMessageService','mcpConfig.note2','6fGdygT','UniverMCPUIPlugin','getConfig','超出最大重试次数,请稍后再试','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','univer-text-white','mcpConfig.title','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','_initConfigSync','mcpConfig.connectionStatus.retrying','mask','Enter\x20your\x20API\x20key','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','registerComponent','Save\x20Configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','zhCN','35712516bejfLL','warn','mcpConfig.apiApplyInfo.description','Module','MCP\x20Configuration','displayName','Tooltip','jsx','univer-text-green-500','univer-bg-gray-500','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','show','MCP_PLUGIN_CONFIG_KEY','Connection\x20Failed','http','1324926kDjPst','IConfigService','MCP:\x20Unauthorized','univer-flex\x20univer-gap-3','mcpConfig.apiApplyInfo.title','univer-text-xs\x20univer-text-gray-600','_logService','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','trim','univer-mr-2\x20univer-flex\x20univer-text-xl','配置步骤:','8736321CageMG','mcpConfig.sessionIdDescription','1em','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','get','MCP\x20客户端配置','value','translate(.97)','round','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','8QwLNca','mcpConfig.apiKeyPlaceholder','sessionId$','MCP\x20Connecting...','Input','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','WebSocketService','univer-text-gray-500','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','mergeMenu','_handleConfigSave','tag','API\x20密钥不能为空','enUS','mcpConfig.validation.invalidApiKey','启用身份验证','_config','error','LocaleService','length','_loading$','label','disposeWithMe','MCPConnectionStatus','span','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Client\x20Configuration','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','getCurrentConfig','showStatus','attrs','_injector','HelpIcon','_localeService','启用身份验证以获得安全连接','12123iDGidI','CommandType','<SESSION_ID>','配置无效','CONNECTED','subscribeConfigValue$','MCP\x20已断开','showConfigPanel','_uiPartsService','1081645PGUpvf','\x20-\x20','_initializeCommands','univer-min-w-0\x20univer-flex-1','您的\x20API\x20密钥安全存储在本地存储中','apiKey','univer-text-gray-400','url(#on-line-icon_clip0_910_349)','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','univer-shrink-0\x20univer-text-red-500','mcpStatus.failed','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','replace','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','MCP\x20状态未知','univer-text-yellow-500','连接中...','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','current','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','mcpConfig.apiApplyInfo.getStarted','MCP\x20连接中...','toStringTag','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','mcpConfig.validation.apiKeyTooShort','div','0\x200\x2016\x2016','mcpConfig.connectionStatus.connected','_initStatusComponent','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','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','mcpConfig.apiKeyHint','带有\x20Bearer\x20前缀的\x20API\x20密钥。','univerjs-icon\x20univerjs-icon-','connectionStatus$','_menuManagerService','mcpConfig.connectionInfo','API\x20key\x20is\x20required','random','mcp-ui.command.openConfigPanel','API\x20Key','mcp.apiKey','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','Connected','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','setConfig','_mcpCoreConfig$','xlink:href','将以下配置添加到您的\x20MCP\x20客户端设置中:','mcpConfig.configStep1','mcpConfig.connectionStatus.connecting','将配置添加到您的\x20MCP\x20客户端设置文件中','重启您的\x20MCP\x20客户端以使配置生效','UniverIcon','COMMAND','_loadStoredApiKey','evenodd','pre','Disconnected','subscribe','_config$','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','off-line-icon','getItem','HEADER_MENU','MCPConfigPanel','821811NJZQap','forEach','MenuItemType','14MFCYdY','univer-size-4','DISCONNECTED','bottom','Injector','colorChannel1','OTHERS','errorMessage','连接失败','_configService','\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','mcpConfig.save','Copy\x20the\x20JSON\x20configuration\x20below','univer.plus','children','Univer\x20AI\x20Console','MAX_RETRIES_EXCEEDED','mcpConfig.saving','includes','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','CloseIcon','connectInjector','mcpStatus.unknown','string','connectionError$','univer-bg-green-500','CONNECTING','复制以下\x20JSON\x20配置','会话ID','univer_session_id:','createElement','getOwnPropertyDescriptor','MCP:\x20超出最大重试次数','Enable\x20authentication\x20for\x20secure\x20connections','权限验证失败,请检查您的\x20API\x20密钥','toString','univer-space-y-4','Click\x20to\x20configure\x20MCP','MCP:\x20会话\x20ID\x20已被占用','mcpStatus.maxRetriesExceeded','_localStorageService'];_0x11fe=function(){return _0x3de066;};return _0x11fe();}function ye(_0x5b5c77){const {status$:_0x2e95fe,error$:_0x5a44b0,onConfigure:_0x1a597f,showClickable:_0x238683}=_0x5b5c77;return function(){const _0x5e89da=_0xa6a6;return i[_0x5e89da(0x307)](W,{'status$':_0x2e95fe,'error$':_0x5a44b0,'onConfigure':_0x1a597f,'showClickable':_0x238683});};}function Me(_0x4b9f82){const _0x30bff5=_0x3a1329;return{'id':b['id'],'type':v[_0x30bff5(0x20b)][_0x30bff5(0x2bd)],'icon':'MenuIcon','title':_0x30bff5(0x2f4),'tooltip':_0x30bff5(0x2f4)};}const Ne={[v[_0x3a1329(0x2bf)][_0x3a1329(0x212)]]:{[b['id']]:{'order':0xa,'menuItemFactory':Me}}};var be=Object[_0x3a1329(0x22b)],je=(_0x3e3c87,_0x4c0c0b,_0x5c0d6f,_0x3c2e5b)=>{for(var _0x1204d6=_0x3c2e5b>0x1?void 0x0:_0x3c2e5b?be(_0x4c0c0b,_0x5c0d6f):_0x4c0c0b,_0x6068e1=_0x3e3c87['length']-0x1,_0x10bee8;_0x6068e1>=0x0;_0x6068e1--)(_0x10bee8=_0x3e3c87[_0x6068e1])&&(_0x1204d6=_0x10bee8(_0x1204d6)||_0x1204d6);return _0x1204d6;},z=(_0x1f676f,_0xd53e32)=>(_0x387bcc,_0x398f5e)=>_0xd53e32(_0x387bcc,_0x398f5e,_0x1f676f);exports[_0x3a1329(0x23f)]=class extends u['Disposable']{constructor(_0x446fac,_0x569288){const _0x349779=_0x3a1329;super(),this[_0x349779(0x2a5)]=_0x446fac,this[_0x349779(0x1ea)]=_0x569288,this[_0x349779(0x352)](),this[_0x349779(0x2be)]();}['_initializeCommands'](){const _0x1ca793=_0x3a1329;[b][_0x1ca793(0x20a)](_0x255cf3=>{const _0x4de08c=_0x1ca793;this[_0x4de08c(0x33a)](this[_0x4de08c(0x2a5)][_0x4de08c(0x277)](_0x255cf3));});}['_initializeMenus'](){const _0x30c0ec=_0x3a1329;this[_0x30c0ec(0x1ea)][_0x30c0ec(0x32d)](Ne);}},exports[_0x3a1329(0x23f)]=je([z(0x0,u['ICommandService']),z(0x1,v['IMenuManagerService'])],exports[_0x3a1329(0x23f)]);const Ee={'mcpStatus':{'disconnected':_0x3a1329(0x26a),'connecting':_0x3a1329(0x327),'connected':_0x3a1329(0x2d9),'failed':_0x3a1329(0x29b),'retrying':_0x3a1329(0x252),'unknown':_0x3a1329(0x264),'unauthorized':_0x3a1329(0x311),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x3a1329(0x2ea),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x3a1329(0x24c),'clickToConfigure':_0x3a1329(0x231)},'mcpConfig':{'title':_0x3a1329(0x304),'description':_0x3a1329(0x33d),'apiKey':_0x3a1329(0x1ef),'apiKeyPlaceholder':_0x3a1329(0x2f9),'apiKeyHint':_0x3a1329(0x358),'enableAuth':_0x3a1329(0x25d),'enableAuthHint':_0x3a1329(0x22d),'connectionInfo':_0x3a1329(0x33e),'mcpClientConfig':_0x3a1329(0x33e),'configInstructions':_0x3a1329(0x25c),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x3a1329(0x218),'configStep2':_0x3a1329(0x35d),'configStep3':_0x3a1329(0x1e4),'sessionId':'Session\x20ID','sessionIdDescription':_0x3a1329(0x2dd),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x3a1329(0x24b),'maxRetries':'Max\x20Retries','save':_0x3a1329(0x2fc),'saving':'Saving...','note1':_0x3a1329(0x297),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x3a1329(0x2ac),'apiApplyInfo':{'title':_0x3a1329(0x2d7),'description':_0x3a1329(0x31d),'univerAiLabel':_0x3a1329(0x21b),'getStarted':_0x3a1329(0x285)},'validation':{'apiKeyRequired':_0x3a1329(0x1ec),'apiKeyTooShort':_0x3a1329(0x2fd),'invalidConfig':_0x3a1329(0x25f),'invalidApiKey':_0x3a1329(0x2d3)},'connectionStatus':{'disconnected':_0x3a1329(0x201),'connecting':_0x3a1329(0x23b),'connected':_0x3a1329(0x1f2),'failed':_0x3a1329(0x30d),'retrying':_0x3a1329(0x2b6)},'connectionError':{'unauthorized':_0x3a1329(0x263),'sessionOccupied':_0x3a1329(0x2fa),'networkError':_0x3a1329(0x288),'maxRetriesExceeded':_0x3a1329(0x316)}}},we={'mcpStatus':{'disconnected':_0x3a1329(0x34d),'connecting':_0x3a1329(0x1db),'connected':'MCP\x20已连接','failed':_0x3a1329(0x27d),'retrying':_0x3a1329(0x2b3),'unknown':_0x3a1329(0x360),'unauthorized':_0x3a1329(0x259),'sessionOccupied':_0x3a1329(0x232),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x3a1329(0x22c),'clickToConnect':_0x3a1329(0x283),'clickToConfigure':_0x3a1329(0x294)},'mcpConfig':{'title':_0x3a1329(0x299),'description':_0x3a1329(0x2c6),'apiKey':_0x3a1329(0x2d4),'apiKeyPlaceholder':_0x3a1329(0x28f),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':_0x3a1329(0x333),'enableAuthHint':_0x3a1329(0x346),'connectionInfo':_0x3a1329(0x31f),'mcpClientConfig':_0x3a1329(0x31f),'configInstructions':_0x3a1329(0x1f7),'configStepTitle':_0x3a1329(0x319),'configStep1':_0x3a1329(0x227),'configStep2':_0x3a1329(0x1fa),'configStep3':_0x3a1329(0x1fb),'sessionId':_0x3a1329(0x228),'sessionIdDescription':_0x3a1329(0x2a2),'authorizationDescription':_0x3a1329(0x1e7),'configParameters':_0x3a1329(0x287),'maxRetries':'最大重试次数','save':'保存配置','saving':_0x3a1329(0x2e9),'note1':_0x3a1329(0x2d1),'note2':_0x3a1329(0x354),'configSaved':_0x3a1329(0x2b8),'configError':'配置保存失败','apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0x3a1329(0x27e)},'validation':{'apiKeyRequired':_0x3a1329(0x330),'apiKeyTooShort':_0x3a1329(0x27b),'invalidConfig':_0x3a1329(0x34a),'invalidApiKey':_0x3a1329(0x2a3)},'connectionStatus':{'disconnected':_0x3a1329(0x23a),'connecting':_0x3a1329(0x362),'connected':_0x3a1329(0x266),'failed':_0x3a1329(0x214),'retrying':_0x3a1329(0x24d)},'connectionError':{'unauthorized':_0x3a1329(0x22e),'sessionOccupied':_0x3a1329(0x2d5),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x3a1329(0x2f1)}}};var Ae=Object[_0x3a1329(0x25a)],Oe=Object[_0x3a1329(0x22b)],De=(_0x31cd11,_0x383596,_0x287b7d)=>_0x383596 in _0x31cd11?Ae(_0x31cd11,_0x383596,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x287b7d}):_0x31cd11[_0x383596]=_0x287b7d,Ue=(_0x2e56c6,_0x3181b5,_0x50ba68,_0x574f87)=>{for(var _0x32bcbd=_0x574f87>0x1?void 0x0:_0x574f87?Oe(_0x3181b5,_0x50ba68):_0x3181b5,_0x101b62=_0x2e56c6['length']-0x1,_0x3520ff;_0x101b62>=0x0;_0x101b62--)(_0x3520ff=_0x2e56c6[_0x101b62])&&(_0x32bcbd=_0x3520ff(_0x32bcbd)||_0x32bcbd);return _0x32bcbd;},y=(_0x8b0f93,_0x1fcd77)=>(_0xda2cab,_0x57e035)=>_0x1fcd77(_0xda2cab,_0x57e035,_0x8b0f93),$e=(_0x5ff1b5,_0xd2ac93,_0x2dfc15)=>De(_0x5ff1b5,_0xd2ac93+'',_0x2dfc15);exports[_0x3a1329(0x2ef)]=class extends u[_0x3a1329(0x240)]{constructor(_0x1b17b5=L,_0x2805b5,_0x143da2,_0xef8b53,_0x183a81,_0x15530e){const _0x397e4f=_0x3a1329;super(),this[_0x397e4f(0x334)]=_0x1b17b5,this[_0x397e4f(0x343)]=_0x2805b5,this['_configService']=_0x143da2,this[_0x397e4f(0x34f)]=_0xef8b53,this[_0x397e4f(0x234)]=_0x183a81,this[_0x397e4f(0x345)]=_0x15530e;const {..._0xeceba}=u['merge']({},L,this[_0x397e4f(0x334)]);this[_0x397e4f(0x215)][_0x397e4f(0x1f4)](P,_0xeceba);}async[_0x3a1329(0x2a0)](){const _0x35cfd4=_0x3a1329,_0x4e7afc=[[exports[_0x35cfd4(0x27f)]],[exports[_0x35cfd4(0x29d)]],[exports['MCPUIMenuController']]];this['_injector'][_0x35cfd4(0x29a)](A['ISocketService'])||_0x4e7afc[_0x35cfd4(0x2e3)]([A[_0x35cfd4(0x2e6)],{'useClass':A[_0x35cfd4(0x32a)]}]),_0x4e7afc[_0x35cfd4(0x20a)](_0x4d98c7=>this[_0x35cfd4(0x343)][_0x35cfd4(0x2df)](_0x4d98c7)),this[_0x35cfd4(0x343)]['get'](exports['MCPConnectionUIController']),this[_0x35cfd4(0x343)][_0x35cfd4(0x31e)](exports['MCPConfigUIController']),this[_0x35cfd4(0x343)]['get'](exports[_0x35cfd4(0x23f)]);}},$e(exports['UniverMCPUIPlugin'],'pluginName','MCP_UI_PLUGIN'),exports[_0x3a1329(0x2ef)]=Ue([u[_0x3a1329(0x2cc)](s['UniverMCPPlugin']),y(0x1,u[_0x3a1329(0x235)](u[_0x3a1329(0x210)])),y(0x2,u[_0x3a1329(0x310)]),y(0x3,v['IUIPartsService']),y(0x4,u[_0x3a1329(0x242)]),y(0x5,u[_0x3a1329(0x235)](u['LocaleService']))],exports[_0x3a1329(0x2ef)]),exports[_0x3a1329(0x208)]=V,exports[_0x3a1329(0x281)]=W,exports[_0x3a1329(0x268)]=b,exports[_0x3a1329(0x331)]=Ee,exports[_0x3a1329(0x2ff)]=we;
|
|
1
|
+
'use strict';const _0x5e1569=_0x5555;(function(_0x12dd4a,_0x2d5a3a){const _0x129581=_0x5555,_0x20e14e=_0x12dd4a();while(!![]){try{const _0x54b122=-parseInt(_0x129581(0x1aa))/0x1*(parseInt(_0x129581(0x2ad))/0x2)+parseInt(_0x129581(0x275))/0x3+parseInt(_0x129581(0x186))/0x4+-parseInt(_0x129581(0x159))/0x5*(-parseInt(_0x129581(0x22a))/0x6)+-parseInt(_0x129581(0x167))/0x7*(-parseInt(_0x129581(0x1d5))/0x8)+parseInt(_0x129581(0x1ca))/0x9*(-parseInt(_0x129581(0x135))/0xa)+parseInt(_0x129581(0x2a4))/0xb;if(_0x54b122===_0x2d5a3a)break;else _0x20e14e['push'](_0x20e14e['shift']());}catch(_0x56b168){_0x20e14e['push'](_0x20e14e['shift']());}}}(_0x4582,0xa9df0));var ae=Object[_0x5e1569(0x233)],le=(_0x13ceda,_0x4914b9,_0x46d84d)=>_0x4914b9 in _0x13ceda?ae(_0x13ceda,_0x4914b9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x46d84d}):_0x13ceda[_0x4914b9]=_0x46d84d,I=(_0x25a9df,_0x34bba4,_0x31edfa)=>le(_0x25a9df,typeof _0x34bba4!='symbol'?_0x34bba4+'':_0x34bba4,_0x31edfa);Object[_0x5e1569(0x233)](exports,Symbol[_0x5e1569(0x28b)],{'value':_0x5e1569(0x29c)});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:_0x16ffca,..._0xa35369}){const _0x53db24=_0x5e1569,{icon:_0x102d43,id:_0x225129,className:_0x3ab8ab,extend:_0x503e4c,..._0x29e36d}=_0xa35369,_0xbf2abf=(_0x53db24(0x196)+_0x225129+'\x20'+(_0x3ab8ab||''))[_0x53db24(0x222)](),_0x10b5e3=d[_0x53db24(0x1fc)]('_'+de());return G(_0x102d43,''+_0x225129,{'defIds':_0x102d43[_0x53db24(0x197)],'idSuffix':_0x10b5e3['current']},{'ref':_0x16ffca,'className':_0xbf2abf,..._0x29e36d},_0x503e4c);}function G(_0x583a32,_0x25b7ae,_0x4a6f0e,_0x565257,_0x245dac){const _0x4ec4d1=_0x5e1569;return d[_0x4ec4d1(0x237)](_0x583a32[_0x4ec4d1(0x1ad)],{'key':_0x25b7ae,...ue(_0x583a32,_0x4a6f0e,_0x245dac),..._0x565257},(ve(_0x583a32,_0x4a6f0e)[_0x4ec4d1(0x16c)]||[])[_0x4ec4d1(0x1d1)]((_0x47dc97,_0x53c7e0)=>G(_0x47dc97,_0x25b7ae+'-'+_0x583a32[_0x4ec4d1(0x1ad)]+'-'+_0x53c7e0,_0x4a6f0e,void 0x0,_0x245dac)));}function ue(_0x1bf83f,_0x2218ce,_0x130966){const _0x459bd2=_0x5e1569,_0x18bc3e={..._0x1bf83f[_0x459bd2(0x270)]};_0x130966!=null&&_0x130966[_0x459bd2(0x20a)]&&_0x18bc3e[_0x459bd2(0x269)]===_0x459bd2(0x20a)&&(_0x18bc3e[_0x459bd2(0x269)]=_0x130966[_0x459bd2(0x20a)]),_0x1bf83f[_0x459bd2(0x1ad)]===_0x459bd2(0x242)&&_0x18bc3e['id']&&(_0x18bc3e['id']=_0x18bc3e['id']+_0x2218ce[_0x459bd2(0x188)]),Object[_0x459bd2(0x232)](_0x18bc3e)[_0x459bd2(0x1e1)](([_0xf2895f,_0x4ea62b])=>{const _0x43b820=_0x459bd2;_0xf2895f===_0x43b820(0x242)&&typeof _0x4ea62b==_0x43b820(0x1eb)&&(_0x18bc3e[_0xf2895f]=_0x4ea62b[_0x43b820(0x15a)](/url\(#(.*)\)/,_0x43b820(0x2b8)+_0x2218ce[_0x43b820(0x188)]+')'));});const {defIds:_0x53d25e}=_0x2218ce;return!_0x53d25e||_0x53d25e[_0x459bd2(0x199)]===0x0||(_0x1bf83f['tag']===_0x459bd2(0x178)&&_0x18bc3e[_0x459bd2(0x293)]&&(_0x18bc3e[_0x459bd2(0x293)]=_0x18bc3e['xlink:href']+_0x2218ce[_0x459bd2(0x188)]),Object[_0x459bd2(0x232)](_0x18bc3e)[_0x459bd2(0x1e1)](([_0x3fdb40,_0x1c8a95])=>{const _0x17da45=_0x459bd2;typeof _0x1c8a95==_0x17da45(0x1eb)&&(_0x18bc3e[_0x3fdb40]=_0x1c8a95[_0x17da45(0x15a)](/url\(#(.*)\)/,_0x17da45(0x2b8)+_0x2218ce[_0x17da45(0x188)]+')'));})),_0x18bc3e;}function ve(_0x2d0188,_0x1d5f96){const _0x4a85dc=_0x5e1569;var _0x45ef89;const {defIds:_0x4dd4a5}=_0x1d5f96;return!_0x4dd4a5||_0x4dd4a5[_0x4a85dc(0x199)]===0x0?_0x2d0188:_0x2d0188[_0x4a85dc(0x1ad)]===_0x4a85dc(0x1c0)&&((_0x45ef89=_0x2d0188['children'])!=null&&_0x45ef89[_0x4a85dc(0x199)])?{..._0x2d0188,'children':_0x2d0188['children'][_0x4a85dc(0x1d1)](_0x13107a=>typeof _0x13107a[_0x4a85dc(0x270)]['id']==_0x4a85dc(0x1eb)&&_0x4dd4a5&&_0x4dd4a5[_0x4a85dc(0x181)](_0x13107a[_0x4a85dc(0x270)]['id'])?{..._0x13107a,'attrs':{..._0x13107a[_0x4a85dc(0x270)],'id':_0x13107a[_0x4a85dc(0x270)]['id']+_0x1d5f96['idSuffix']}}:_0x13107a)}:_0x2d0188;}function de(){const _0x4309a9=_0x5e1569;return Math[_0x4309a9(0x13e)]()[_0x4309a9(0x280)](0x24)[_0x4309a9(0x17c)](0x2,0x8);}_['displayName']=_0x5e1569(0x244);const Ce={'tag':_0x5e1569(0x1a6),'attrs':{'xmlns':_0x5e1569(0x1a9),'fill':'none','viewBox':_0x5e1569(0x1cd),'width':_0x5e1569(0x273),'height':_0x5e1569(0x273)},'children':[{'tag':_0x5e1569(0x17d),'attrs':{'fill':'currentColor','d':_0x5e1569(0x1c2),'fillRule':_0x5e1569(0x152),'clipRule':_0x5e1569(0x152)}}]},H=d[_0x5e1569(0x163)](function(_0x3680af,_0x3c6896){const _0x247633=_0x5e1569;return d['createElement'](_,Object[_0x247633(0x20b)]({},_0x3680af,{'id':_0x247633(0x1df),'ref':_0x3c6896,'icon':Ce}));});H[_0x5e1569(0x17a)]=_0x5e1569(0x1fa);const ge={'tag':_0x5e1569(0x1a6),'attrs':{'xmlns':_0x5e1569(0x1a9),'fill':'none','viewBox':_0x5e1569(0x1cd),'width':_0x5e1569(0x273),'height':_0x5e1569(0x273)},'children':[{'tag':_0x5e1569(0x17d),'attrs':{'fill':_0x5e1569(0x1ef),'d':_0x5e1569(0x2b5)}}]},B=d['forwardRef'](function(_0x41969,_0x260db5){const _0x34927d=_0x5e1569;return d['createElement'](_,Object[_0x34927d(0x20b)]({},_0x41969,{'id':_0x34927d(0x1e2),'ref':_0x260db5,'icon':ge}));});function _0x4582(){const _0x2ace63=['MCP:\x20会话\x20ID\x20已被占用','DISCONNECTED','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','NONE','disposeWithMe','mcpStatus.maxRetriesExceeded','CONNECTED','getItem','trim','MCPConfigUIController','univer-text-gray-500','MCP_PLUGIN_CONFIG_KEY','mcpConfig.connectionError.unauthorized','Retrying...','MCP:\x20未授权','MCPConfigPanel','1284EXfnlp','MCP\x20状态未知','M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','WebSocketService','mcpConfig.configParameters','span','entries','defineProperty','stringify','show','mcpConfig.description','createElement','showDeveloperTools','univer-font-medium','_messageService','univer-flex\x20univer-items-center','_config','mcpConfig.apiApplyInfo.description','univer-text-blue-600','_loading$','subscribe','MCP\x20连接失败','mask','CloseIcon','UniverIcon','mcpConfig.connectionStatus.retrying','univer-text-green-500','connectInjector','useObservable','API\x20密钥','什么是\x20API\x20密钥?','univer-bg-gray-500','OTHERS','univer-flex\x20univer-gap-3','mcpConfig.authorizationDescription','univer-size-4','配置步骤:','COMMAND','API\x20密钥无效,请检查密钥是否正确','_initializeCommands','复制以下\x20JSON\x20配置','Configuration\x20saved\x20successfully','ISocketService','univer-text-sm\x20univer-font-medium','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','univer-min-w-0\x20univer-flex-1','_injector','add','none','_config$','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','button','mcpConfig.title','OffLineIcon','enableAutoConnect','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','BuiltInUIPart','MessageType','registerComponent','div','重连中...','fill','close','mcpServerUrl','Connection\x20Failed','mcpConfig.apiKeyHint','showStatus','round','attrs','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','UniverMCPUIPlugin','1em','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','1363320MExWIm','连接中...','MCP\x20客户端配置','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-space-y-3','univer-shrink-0\x20univer-text-blue-500','https://mcp.univer.ai/mcp/?univer_session_id=','_menuManagerService','MCPConnectionUIController','HelpIcon','_configService','toString','mcpConfig.validation.invalidConfig','Click\x20to\x20configure\x20MCP','未连接','mcpConfig.apiKey','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','useCallback','jsxs','RETRYING','MCP:\x20Session\x20ID\x20Occupied','zhCN','toStringTag','Univer\x20AI\x20Console','univer-flex\x20univer-flex-wrap\x20univer-gap-2','sessionId$','mcpStatus.sessionOccupied','clsx','noopener\x20noreferrer','Plugin','xlink:href','Inject','mcpConfig.connectionStatus.disconnected','Univer\x20AI\x20控制台','univer-bg-red-500','get','保存配置','enUS','univer-text-gray-400','Module','MCP\x20Connection\x20Failed','配置保存失败','setItem','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','mcpConfig.note1','mcpConfig.validation.invalidApiKey','SESSION_ID_OCCUPIED','4422792degeuJ','MCPConnectionError','https://console.univer.ai','MenuIcon','http','univer-flex\x20univer-items-center\x20univer-gap-3','MenuItemType','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','MCPStatusDisplay','4EkVSKu','Error','_commandService','connectionStatus$','_initConfigSync','mcpConfig.apiKeyPlaceholder','connectionError$','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','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','MCP\x20连接中...','MCP:\x20网络错误','url(#$1','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','push','value','Click\x20to\x20connect\x20MCP','最大重试次数','mcpConfig.connectionError.maxRetriesExceeded','会话\x20ID\x20已被占用,请稍后再试','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','pluginName','12310ylslOV','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCPConnectionController','MCP\x20Unknown\x20Status','API\x20key\x20is\x20required','mcpStatus.clickToConnect','univer-size-2\x20univer-rounded-full','Save\x20Configuration','ILocalStorageService','random','univer-flex\x20univer-items-center\x20univer-gap-2','\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','univer.plus','label','_createConfigPanelComponent','univer.ai','mcpStatus.connected','univer-text-xs\x20univer-text-gray-500','mcpConfig.configSaved','clipPath','启用身份验证以获得安全连接','您的\x20API\x20密钥将在此浏览器中本地存储','Authorization:','_registerComponent','_loadStoredApiKey','配置\x20MCP\x20使用\x20AI\x20操作电子表格','univer-flex\x20univer-items-start\x20univer-gap-3','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','evenodd','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','mcpConfig.connectionError.sessionOccupied','error','Button','isValid','MCP\x20Client\x20Configuration','13355sEZihC','replace','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','mcp-config-dialog','mcpConfig.connectionInfo','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','removeItem','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','Enable\x20Authentication','mcpStatus.retrying','forwardRef','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','MCP:\x20Max\x20Retries\x20Exceeded','63924oFeicr','_componentManager','Success','white','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children','univer-shrink-0\x20univer-text-red-500','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','showConfigPanel','mcpConfig.saving','Get\x20your\x20API\x20key\x20in\x20seconds','ComponentManager','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','mcpConfig.connectionStatus.connecting','univer-bg-green-500','将配置添加到您的\x20MCP\x20客户端设置文件中','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','use','mcpConfig.configStep1','displayName','text','substring','path','OnLineIcon','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','next','includes','mcp.apiKey','mcpConfig.note2','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','mcpConfig.apiApplyInfo.univerAiLabel','402348JaIspL','Input','idSuffix','已连接','_mcpCoreConfig$','_localStorageService','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','url(#off-line-icon_clip0_910_343)','translate(.97)','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','mcpStatus.networkError','\x20-\x20','UniverMCPPlugin','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Configuration\x20Parameters:','univerjs-icon\x20univerjs-icon-','defIds','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','length','HEADER_MENU','IDialogService','MCP\x20已断开','会话ID','bottom','useState','MCPConnectionStatus','univer-flex-1','jsx','_initStatusComponent','几秒钟内获取您的\x20API\x20密钥','API\x20Key','svg','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','MCP\x20Connecting...','http://www.w3.org/2000/svg','115113nJoRLi','Copy\x20the\x20JSON\x20configuration\x20below','_apiKey$','tag','mcpConfig.configError','MAX_RETRIES_EXCEEDED','has','on-line-icon_clip0_910_349','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','_localeService','DependentOn','_connectionController','MCPUIMenuController','univer-space-y-2','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','配置更改将立即生效','ICommandService','MCP\x20Retrying...','https://console.univer.plus','univer-bg-blue-500','带有\x20Bearer\x20前缀的\x20API\x20密钥。','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','defs','off','M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','MCP\x20Disconnected','点击连接\x20MCP','registerCommand','mcpConfig.configStep3','onStarting','点击配置\x20MCP','4473VcTHfm','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','网络连接错误,请检查您的网络连接','0\x200\x2016\x2016','useDependency','Disposable','univer-text-white','map','mcp-ui.command.openConfigPanel','API\x20密钥长度至少需要\x2010\x20位','mcpConfig.connectionError.networkError','8BNspWa','Configuration\x20Steps:','_validateConfig','配置无效','LocaleService','apiKey','mcpConfig.apiApplyInfo.title','Configuration\x20Notes:','IMenuManagerService','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','check-mark-icon','API\x20key\x20with\x20Bearer\x20prefix.','forEach','close-icon','setConfig','BehaviorSubject','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','配置参数:','ILogService','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','IUIPartsService','string','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','_blank','IConfigService','currentColor','getOwnPropertyDescriptor','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','_initializeMenus','mcpStatus.clickToConfigure','getConfig','mcpStatus.unknown','univer-space-y-4','univer-mr-2\x20univer-flex\x20univer-text-xl','MCP:\x20Network\x20Error','CheckMarkIcon','CONNECTING','useRef','_logService','0\x200\x2017\x2016','Connecting...','mcpStatus.connecting','off-line-icon_clip0_910_343','_handleConfigSave','warn','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','超出最大重试次数,请稍后再试','NETWORK_ERROR','_dialogService','_initAutoConnect','_mcpConnectionController','colorChannel1','assign','mcpConfig.save','_uiPartsService','validateApiKey','url(#on-line-icon_clip0_910_349)','off-line-icon','Failed\x20to\x20save\x20configuration','mcpConfig.sessionIdDescription','UNAUTHORIZED','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','univer_session_id:','M0\x200H16V16H0z','Bearer\x20','merge','mcpConfig.configStepTitle'];_0x4582=function(){return _0x2ace63;};return _0x4582();}B[_0x5e1569(0x17a)]=_0x5e1569(0x243);const fe={'tag':_0x5e1569(0x1a6),'attrs':{'xmlns':_0x5e1569(0x1a9),'fill':_0x5e1569(0x25c),'viewBox':_0x5e1569(0x1cd),'width':_0x5e1569(0x273),'height':_0x5e1569(0x273)},'children':[{'tag':_0x5e1569(0x17d),'attrs':{'fill':_0x5e1569(0x1ef),'d':_0x5e1569(0x16e)}},{'tag':_0x5e1569(0x17d),'attrs':{'fill':_0x5e1569(0x1ef),'d':_0x5e1569(0x25e)}},{'tag':_0x5e1569(0x17d),'attrs':{'fill':'currentColor','d':_0x5e1569(0x22c),'fillRule':'evenodd','clipRule':_0x5e1569(0x152)}}]},F=d[_0x5e1569(0x163)](function(_0x40a6ba,_0x49c138){const _0x13b1f8=_0x5e1569;return d[_0x13b1f8(0x237)](_,Object[_0x13b1f8(0x20b)]({},_0x40a6ba,{'id':'help-icon','ref':_0x49c138,'icon':fe}));});F[_0x5e1569(0x17a)]=_0x5e1569(0x27e);const pe={'tag':_0x5e1569(0x1a6),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x5e1569(0x25c),'viewBox':_0x5e1569(0x1cd),'width':'1em','height':_0x5e1569(0x273)},'children':[{'tag':'g','attrs':{'clipPath':_0x5e1569(0x18d)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x5e1569(0x26f),'strokeLinejoin':_0x5e1569(0x26f),'strokeWidth':1.2}}]},{'tag':_0x5e1569(0x1c0),'attrs':{},'children':[{'tag':_0x5e1569(0x148),'attrs':{'id':_0x5e1569(0x201)},'children':[{'tag':_0x5e1569(0x17d),'attrs':{'fill':_0x5e1569(0x16a),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x5e1569(0x201)]},Y=d['forwardRef'](function(_0x28721b,_0xc3d18d){const _0xa0ab00=_0x5e1569;return d['createElement'](_,Object[_0xa0ab00(0x20b)]({},_0x28721b,{'id':_0xa0ab00(0x210),'ref':_0xc3d18d,'icon':pe}));});Y[_0x5e1569(0x17a)]=_0x5e1569(0x261);const he={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x5e1569(0x25c),'viewBox':_0x5e1569(0x1fe),'width':'1em','height':_0x5e1569(0x273)},'children':[{'tag':'g','attrs':{'clipPath':_0x5e1569(0x20f)},'children':[{'tag':'path','attrs':{'stroke':_0x5e1569(0x1ef),'d':_0x5e1569(0x278),'strokeLinecap':'round','strokeLinejoin':_0x5e1569(0x26f),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x5e1569(0x148),'attrs':{'id':_0x5e1569(0x1b1)},'children':[{'tag':'path','attrs':{'fill':_0x5e1569(0x16a),'d':_0x5e1569(0x216),'transform':_0x5e1569(0x18e)}}]}]}],'defIds':[_0x5e1569(0x1b1)]},q=d['forwardRef'](function(_0x289116,_0xfc4c1){const _0x2d44f4=_0x5e1569;return d[_0x2d44f4(0x237)](_,Object[_0x2d44f4(0x20b)]({},_0x289116,{'id':'on-line-icon','ref':_0xfc4c1,'icon':he}));});q[_0x5e1569(0x17a)]=_0x5e1569(0x17e);function V(_0x851923){const _0x1100fb=_0x5e1569;var _0x48dbd0,_0x2e6526;const {mcpCoreConfig:_0xe0a828,onSave:_0x41f6d6,loading:_0x4abc1b=!0x1,config:_0x6ac9eb,connectionStatus$:_0xdf613d,connectionError$:_0xd2e409,currentApiKey$:_0x386c66,currentSessionId$:_0x2d7665}=_0x851923,_0x151077=v[_0x1100fb(0x1ce)](u[_0x1100fb(0x1d9)]),_0x35b0af=v['useObservable'](_0xdf613d,s[_0x1100fb(0x1a0)]['DISCONNECTED']),_0x122a67=v[_0x1100fb(0x248)](_0xd2e409,s[_0x1100fb(0x2a5)][_0x1100fb(0x21d)]),_0x4515bf=v[_0x1100fb(0x248)](_0x2d7665,''),_0x49c575=v[_0x1100fb(0x248)](_0x386c66,''),[_0x66d3c9,_0x345c1d]=d[_0x1100fb(0x19f)](_0x49c575||''),_0x5b5765=!0x0,_0x3c06de=_0x6ac9eb['showDeveloperTools']&&_0xe0a828[_0x1100fb(0x26b)]&&(_0xe0a828[_0x1100fb(0x26b)][_0x1100fb(0x181)](_0x1100fb(0x141))||_0xe0a828[_0x1100fb(0x26b)][_0x1100fb(0x181)](_0x1100fb(0x144))),_0x10d480=(_0x48dbd0=_0xe0a828['mcpServerUrl'])==null?void 0x0:_0x48dbd0[_0x1100fb(0x181)](_0x1100fb(0x141)),_0x599123=(_0x2e6526=_0xe0a828[_0x1100fb(0x26b)])==null?void 0x0:_0x2e6526[_0x1100fb(0x181)](_0x1100fb(0x144)),_0x272495=_0x10d480?_0x1100fb(0x1bc):_0x1100fb(0x2a6),_0xa5b6d4=_0x6ac9eb['showDeveloperTools']&&(_0x10d480||_0x599123),[_0xae9ab9,_0x12d239]=d[_0x1100fb(0x19f)](!_0x66d3c9['trim']()),_0x54f214=(_0x4ffcf7,_0x56867d)=>{const _0x4d5e33=_0x1100fb;if(_0x56867d===s[_0x4d5e33(0x2a5)][_0x4d5e33(0x213)])return _0x4d5e33(0x22d);switch(_0x4ffcf7){case s['MCPConnectionStatus']['CONNECTED']:return _0x4d5e33(0x1de);case s['MCPConnectionStatus'][_0x4d5e33(0x1fb)]:case s[_0x4d5e33(0x1a0)]['RETRYING']:return _0x4d5e33(0x1cb);case s[_0x4d5e33(0x1a0)][_0x4d5e33(0x165)]:return _0x4d5e33(0x22d);default:return _0x4d5e33(0x160);}},_0xc3d87c=(_0x639fd3,_0x86f59b)=>{const _0x3aee59=_0x1100fb;if(_0x86f59b===s['MCPConnectionError'][_0x3aee59(0x213)])return _0x3aee59(0x297);switch(_0x639fd3){case s[_0x3aee59(0x1a0)][_0x3aee59(0x220)]:return _0x3aee59(0x175);case s[_0x3aee59(0x1a0)][_0x3aee59(0x1fb)]:case s['MCPConnectionStatus']['RETRYING']:return _0x3aee59(0x1bd);case s['MCPConnectionStatus']['FAILED']:return _0x3aee59(0x297);default:return _0x3aee59(0x24b);}},_0x4083fc=_0x162a43=>{const _0x3267e0=_0x1100fb;switch(_0x162a43){case s[_0x3267e0(0x1a0)][_0x3267e0(0x220)]:return _0x151077['t']('mcpConfig.connectionStatus.connected');case s[_0x3267e0(0x1a0)][_0x3267e0(0x1fb)]:return _0x151077['t'](_0x3267e0(0x174));case s[_0x3267e0(0x1a0)][_0x3267e0(0x165)]:return _0x151077['t']('mcpConfig.connectionStatus.failed');case s['MCPConnectionStatus'][_0x3267e0(0x288)]:return _0x151077['t'](_0x3267e0(0x245));default:return _0x151077['t'](_0x3267e0(0x295));}},_0x163845=_0x5a3877=>{const _0x376c30=_0x1100fb;switch(_0x5a3877){case s[_0x376c30(0x2a5)][_0x376c30(0x213)]:return _0x151077['t'](_0x376c30(0x226));case s[_0x376c30(0x2a5)]['SESSION_ID_OCCUPIED']:return _0x151077['t'](_0x376c30(0x154));case s[_0x376c30(0x2a5)][_0x376c30(0x206)]:return _0x151077['t'](_0x376c30(0x1d4));case s[_0x376c30(0x2a5)][_0x376c30(0x1af)]:return _0x151077['t'](_0x376c30(0x131));default:return'';}},_0x4749ce=d['useCallback'](()=>{const _0x1e9bbd=_0x1100fb,_0x52ac37={..._0xe0a828,'apiKey':_0x66d3c9[_0x1e9bbd(0x222)](),'enableAuth':_0x5b5765};_0x41f6d6(_0x52ac37);},[_0xe0a828,_0x66d3c9,_0x5b5765,_0x41f6d6]),_0x337eff=_0x66d3c9[_0x1100fb(0x222)]()[_0x1100fb(0x199)]>0x0;return i['jsxs']('div',{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[i[_0x1100fb(0x1a2)](_0x1100fb(0x267),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':i[_0x1100fb(0x287)]('div',{'className':_0x1100fb(0x2a9),'children':[i['jsx'](_0x1100fb(0x267),{'className':_0x1100fb(0x1c3),'children':i[_0x1100fb(0x1a2)](_0x1100fb(0x231),{'className':_0x1100fb(0x1d0),'children':'⚙'})}),i['jsx'](_0x1100fb(0x267),{'children':i[_0x1100fb(0x1a2)]('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x151077['t'](_0x1100fb(0x236))})})]})}),i['jsxs'](_0x1100fb(0x267),{'className':_0x1100fb(0x16b),'children':[i['jsx'](_0x1100fb(0x267),{'className':f[_0x1100fb(0x290)](_0x1100fb(0x133),_0x54f214(_0x35b0af,_0x122a67)),'children':i[_0x1100fb(0x287)]('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x1100fb(0x1a2)](_0x1100fb(0x267),{'className':f[_0x1100fb(0x290)](_0x1100fb(0x13b),_0xc3d87c(_0x35b0af,_0x122a67))}),i[_0x1100fb(0x1a2)]('span',{'className':_0x1100fb(0x257),'children':_0x4083fc(_0x35b0af)})]})}),_0x122a67!==s[_0x1100fb(0x2a5)][_0x1100fb(0x21d)]&&(_0x35b0af===s[_0x1100fb(0x1a0)][_0x1100fb(0x165)]||_0x122a67===s[_0x1100fb(0x2a5)][_0x1100fb(0x213)])&&i[_0x1100fb(0x1a2)](_0x1100fb(0x267),{'className':_0x1100fb(0x21c),'children':i[_0x1100fb(0x287)](_0x1100fb(0x267),{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[i[_0x1100fb(0x1a2)]('span',{'className':_0x1100fb(0x16d),'children':'⚠️'}),i['jsx']('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x163845(_0x122a67)})]})})]}),i['jsx'](_0x1100fb(0x267),{'className':_0x1100fb(0x22e),'children':i[_0x1100fb(0x287)](_0x1100fb(0x267),{'className':'univer-space-y-5','children':[i[_0x1100fb(0x287)](_0x1100fb(0x267),{'className':_0x1100fb(0x1b7),'children':[i['jsxs'](_0x1100fb(0x142),{'className':_0x1100fb(0x1f1),'children':[i[_0x1100fb(0x1a2)]('span',{'children':'🔑'}),'\x20',_0x151077['t'](_0x1100fb(0x284)),i['jsx'](_0x1100fb(0x231),{'className':'univer-text-red-500','children':'*'}),_0x3c06de&&i[_0x1100fb(0x1a2)]('a',{'className':_0x1100fb(0x18c),'title':_0x151077['t']('mcpConfig.apiApplyInfo.title'),'role':_0x1100fb(0x25f),'onClick':()=>_0x12d239(!0x0),'children':i[_0x1100fb(0x1a2)](F,{})})]}),i[_0x1100fb(0x1a2)](f[_0x1100fb(0x187)],{'type':_0x1100fb(0x17b),'placeholder':_0x151077['t'](_0x1100fb(0x2b2)),'value':_0x66d3c9,'disabled':_0x4abc1b,'autoComplete':_0x1100fb(0x1c1),'onChange':_0x345c1d}),i[_0x1100fb(0x1a2)]('p',{'className':_0x1100fb(0x146),'children':_0x151077['t'](_0x1100fb(0x26d))})]}),_0x3c06de&&_0xae9ab9&&i[_0x1100fb(0x287)]('div',{'className':_0x1100fb(0x150),'children':[i[_0x1100fb(0x1a2)]('a',{'className':_0x1100fb(0x271),'role':_0x1100fb(0x25f),'onClick':()=>_0x12d239(!0x1),'children':i[_0x1100fb(0x1a2)](B,{'className':_0x1100fb(0x24f)})}),i[_0x1100fb(0x287)]('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[i[_0x1100fb(0x1a2)](_0x1100fb(0x267),{'className':'univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':i[_0x1100fb(0x1a2)](_0x1100fb(0x231),{'className':_0x1100fb(0x23e),'children':'🚀'})}),i[_0x1100fb(0x287)](_0x1100fb(0x267),{'className':_0x1100fb(0x1a1),'children':[i[_0x1100fb(0x1a2)]('h4',{'className':_0x1100fb(0x1f2),'children':_0x151077['t'](_0x1100fb(0x1db))}),i[_0x1100fb(0x1a2)]('p',{'className':_0x1100fb(0x285),'children':_0x151077['t'](_0x1100fb(0x23d))}),i[_0x1100fb(0x1a2)](_0x1100fb(0x267),{'className':_0x1100fb(0x28d),'children':_0xa5b6d4&&i['jsxs']('a',{'className':_0x1100fb(0x15e),'href':_0x272495,'target':_0x1100fb(0x1ed),'rel':_0x1100fb(0x291),'children':[i[_0x1100fb(0x1a2)](_0x1100fb(0x231),{'children':'🤖'}),_0x151077['t'](_0x1100fb(0x185)),i[_0x1100fb(0x1a2)](_0x1100fb(0x231),{'className':_0x1100fb(0x29b),'children':'↗'})]})}),i[_0x1100fb(0x287)]('div',{'className':_0x1100fb(0x153),'children':['✨','\x20',_0x151077['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x6ac9eb[_0x1100fb(0x238)]&&i[_0x1100fb(0x287)]('div',{'className':_0x1100fb(0x1b8),'children':[i['jsxs']('h4',{'className':_0x1100fb(0x2b9),'children':[i['jsx'](_0x1100fb(0x231),{'children':'🔗'}),'\x20',_0x151077['t'](_0x1100fb(0x15d))]}),i[_0x1100fb(0x287)]('div',{'className':_0x1100fb(0x1f7),'children':[i[_0x1100fb(0x287)]('div',{'className':_0x1100fb(0x279),'children':[i[_0x1100fb(0x1a2)]('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x151077['t']('mcpConfig.configInstructions')}),i[_0x1100fb(0x287)]('div',{'className':'univer-space-y-2','children':[i[_0x1100fb(0x1a2)](_0x1100fb(0x267),{'className':_0x1100fb(0x173),'children':_0x151077['t'](_0x1100fb(0x219))}),i[_0x1100fb(0x287)](_0x1100fb(0x267),{'className':_0x1100fb(0x1bf),'children':[i[_0x1100fb(0x287)](_0x1100fb(0x267),{'className':_0x1100fb(0x13f),'children':[i[_0x1100fb(0x1a2)]('span',{'className':_0x1100fb(0x198),'children':'1'}),_0x151077['t'](_0x1100fb(0x179))]}),i[_0x1100fb(0x287)]('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x1100fb(0x1a2)]('span',{'className':_0x1100fb(0x198),'children':'2'}),_0x151077['t']('mcpConfig.configStep2')]}),i[_0x1100fb(0x287)](_0x1100fb(0x267),{'className':_0x1100fb(0x13f),'children':[i[_0x1100fb(0x1a2)](_0x1100fb(0x231),{'className':_0x1100fb(0x198),'children':'3'}),_0x151077['t'](_0x1100fb(0x1c7))]})]})]})]}),i[_0x1100fb(0x287)]('div',{'className':_0x1100fb(0x1b7),'children':[i[_0x1100fb(0x1a2)](_0x1100fb(0x267),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':'MCP\x20Configuration'}),i['jsx'](_0x1100fb(0x267),{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':i[_0x1100fb(0x1a2)]('pre',{'className':_0x1100fb(0x1ec),'children':JSON[_0x1100fb(0x234)]({'mcpServers':{'univer':{'url':_0x1100fb(0x27b)+(_0x4515bf||'<SESSION_ID>'),'type':_0x1100fb(0x2a8),'headers':{'Authorization':'Bearer\x20'+(_0x66d3c9||'<API_KEY>')}}}},null,0x2)})})]}),i[_0x1100fb(0x287)](_0x1100fb(0x267),{'className':_0x1100fb(0x279),'children':[i[_0x1100fb(0x1a2)](_0x1100fb(0x267),{'className':_0x1100fb(0x173),'children':_0x151077['t'](_0x1100fb(0x230))}),i[_0x1100fb(0x287)](_0x1100fb(0x267),{'className':_0x1100fb(0x1b7),'children':[i[_0x1100fb(0x287)](_0x1100fb(0x267),{'className':_0x1100fb(0x14f),'children':[i[_0x1100fb(0x1a2)](_0x1100fb(0x267),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),i[_0x1100fb(0x287)]('div',{'className':'univer-min-w-0\x20univer-flex-1','children':[i[_0x1100fb(0x1a2)]('div',{'className':_0x1100fb(0x17f),'children':_0x1100fb(0x215)}),i['jsx'](_0x1100fb(0x267),{'className':_0x1100fb(0x146),'children':_0x151077['t'](_0x1100fb(0x212))})]})]}),i[_0x1100fb(0x287)]('div',{'className':_0x1100fb(0x14f),'children':[i[_0x1100fb(0x1a2)](_0x1100fb(0x267),{'className':_0x1100fb(0x2ab)}),i[_0x1100fb(0x287)](_0x1100fb(0x267),{'className':_0x1100fb(0x259),'children':[i[_0x1100fb(0x1a2)](_0x1100fb(0x267),{'className':_0x1100fb(0x17f),'children':_0x1100fb(0x14b)}),i[_0x1100fb(0x1a2)](_0x1100fb(0x267),{'className':_0x1100fb(0x146),'children':_0x151077['t'](_0x1100fb(0x24e))})]})]})]})]})]})]}),i[_0x1100fb(0x1a2)](f[_0x1100fb(0x156)],{'onClick':_0x4749ce,'disabled':!_0x337eff||_0x4abc1b,'className':_0x1100fb(0x1a7),'children':_0x4abc1b?i[_0x1100fb(0x287)](_0x1100fb(0x231),{'className':_0x1100fb(0x13f),'children':[i['jsx'](_0x1100fb(0x231),{'children':'⟲'}),_0x151077['t'](_0x1100fb(0x170))]}):i[_0x1100fb(0x287)](_0x1100fb(0x231),{'className':_0x1100fb(0x13f),'children':[i['jsx'](H,{}),_0x151077['t'](_0x1100fb(0x20c))]})}),i[_0x1100fb(0x1a2)](_0x1100fb(0x267),{'className':_0x1100fb(0x258),'children':i['jsxs'](_0x1100fb(0x267),{'className':_0x1100fb(0x24d),'children':[i['jsx'](_0x1100fb(0x231),{'className':_0x1100fb(0x27a),'children':'💡'}),i['jsxs'](_0x1100fb(0x267),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[i['jsx'](_0x1100fb(0x267),{'className':_0x1100fb(0x239),'children':_0x1100fb(0x1dc)}),i[_0x1100fb(0x287)](_0x1100fb(0x267),{'children':['•',_0x151077['t'](_0x1100fb(0x2a1))]}),i[_0x1100fb(0x287)](_0x1100fb(0x267),{'children':['•',_0x151077['t'](_0x1100fb(0x183))]})]})]})})]})})]});}const P='mcp-ui.config',L={'showDeveloperTools':!0x1,'showStatus':!0x0};var me=Object[_0x5e1569(0x1f0)],xe=(_0x73a0c9,_0x387f5b,_0x830d92,_0x7eb7e5)=>{for(var _0x231a1b=_0x7eb7e5>0x1?void 0x0:_0x7eb7e5?me(_0x387f5b,_0x830d92):_0x387f5b,_0x3a96c3=_0x73a0c9['length']-0x1,_0x536bdc;_0x3a96c3>=0x0;_0x3a96c3--)(_0x536bdc=_0x73a0c9[_0x3a96c3])&&(_0x231a1b=_0x536bdc(_0x231a1b)||_0x231a1b);return _0x231a1b;},g=(_0xe10a3a,_0x329e10)=>(_0x2a28b0,_0x1fb384)=>_0x329e10(_0x2a28b0,_0x1fb384,_0xe10a3a);const O=_0x5e1569(0x182),D=_0x5e1569(0x15c);exports[_0x5e1569(0x223)]=class extends u[_0x5e1569(0x1cf)]{constructor(_0xea2518,_0x14dcd2,_0x1bcca7,_0x1bf70b,_0xbe8eb1,_0x374fb9,_0x2919b4,_0x3595c6,_0x5cc8c3,_0x37ab86){const _0x3613d9=_0x5e1569;super(),I(this,_0x3613d9(0x23f),new M[(_0x3613d9(0x1e4))](!0x1)),I(this,_0x3613d9(0x18a),new M[(_0x3613d9(0x1e4))]({})),I(this,_0x3613d9(0x25d),new M[(_0x3613d9(0x1e4))]({})),I(this,_0x3613d9(0x1ac),new M[(_0x3613d9(0x1e4))]('')),I(this,_0x3613d9(0x202),async _0x276bdb=>{const _0x556980=_0x3613d9;var _0x2597fc,_0x20ed90;this[_0x556980(0x23f)][_0x556980(0x180)](!0x0);try{const _0x23b58f=await this[_0x556980(0x1d7)](_0x276bdb);if(!_0x23b58f[_0x556980(0x157)]){this[_0x556980(0x23a)][_0x556980(0x235)]({'type':f[_0x556980(0x265)][_0x556980(0x2ae)],'content':_0x23b58f['errorMessage']||this[_0x556980(0x1b3)]['t'](_0x556980(0x281))});return;}_0x276bdb[_0x556980(0x1da)]?await this['_localStorageService'][_0x556980(0x29f)](O,_0x276bdb['apiKey'][_0x556980(0x222)]()):await this[_0x556980(0x18b)][_0x556980(0x15f)](O),this['_apiKey$']['next'](((_0x2597fc=_0x276bdb[_0x556980(0x1da)])==null?void 0x0:_0x2597fc[_0x556980(0x222)]())||''),this[_0x556980(0x209)]['__setCustomHeaders']({'Authorization':_0x556980(0x217)+((_0x20ed90=_0x276bdb[_0x556980(0x1da)])==null?void 0x0:_0x20ed90[_0x556980(0x222)]())}),this[_0x556980(0x23a)][_0x556980(0x235)]({'type':f[_0x556980(0x265)][_0x556980(0x169)],'content':this[_0x556980(0x1b3)]['t'](_0x556980(0x147))}),setTimeout(()=>{const _0x5d00fc=_0x556980;this[_0x5d00fc(0x207)][_0x5d00fc(0x26a)](D);},0x320);}catch(_0x3aa520){this[_0x556980(0x1fd)][_0x556980(0x155)](_0x556980(0x214),_0x3aa520),this[_0x556980(0x23a)][_0x556980(0x235)]({'type':f[_0x556980(0x265)][_0x556980(0x2ae)],'content':this['_localeService']['t'](_0x556980(0x1ae))});}finally{this[_0x556980(0x23f)]['next'](!0x1);}}),(this[_0x3613d9(0x25a)]=_0xea2518,this[_0x3613d9(0x20d)]=_0x14dcd2,this['_configService']=_0x1bcca7,this[_0x3613d9(0x18b)]=_0x1bf70b,this[_0x3613d9(0x207)]=_0xbe8eb1,this['_messageService']=_0x374fb9,this[_0x3613d9(0x168)]=_0x2919b4,this[_0x3613d9(0x1b3)]=_0x3595c6,this['_logService']=_0x5cc8c3,this['_mcpConnectionController']=_0x37ab86,this[_0x3613d9(0x2b1)](),this[_0x3613d9(0x14d)](),this[_0x3613d9(0x14c)]());}['showConfigPanel'](){const _0x225a46=_0x5e1569,_0x1df54d=this[_0x225a46(0x27f)][_0x225a46(0x1f5)](P);_0x1df54d!=null&&_0x1df54d[_0x225a46(0x238)]&&this['_dialogService']['open']({'id':D,'title':{'title':this[_0x225a46(0x1b3)]['t'](_0x225a46(0x260))},'children':{'label':_0x225a46(0x229)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x1d814e=_0x225a46;this[_0x1d814e(0x207)][_0x1d814e(0x26a)](D);}});}['getCurrentConfig'](){const _0x3fe860=_0x5e1569;return this[_0x3fe860(0x18a)]['value'];}[_0x5e1569(0x14c)](){const _0x150fdc=_0x5e1569;this[_0x150fdc(0x21e)](this[_0x150fdc(0x168)]['register'](_0x150fdc(0x229),this['_createConfigPanelComponent']()));}[_0x5e1569(0x143)](){const _0x1c3829=_0x5e1569;return v[_0x1c3829(0x247)](()=>{const _0x4b08ab=_0x1c3829;var _0x46885a,_0x22e845,_0x338701;return i[_0x4b08ab(0x1a2)](V,{'config':this[_0x4b08ab(0x25d)][_0x4b08ab(0x2bb)],'mcpCoreConfig':this[_0x4b08ab(0x18a)][_0x4b08ab(0x2bb)],'currentApiKey$':this[_0x4b08ab(0x1ac)],'onSave':this[_0x4b08ab(0x202)],'loading':this[_0x4b08ab(0x23f)]['value'],'connectionStatus$':(_0x46885a=this[_0x4b08ab(0x209)])==null?void 0x0:_0x46885a[_0x4b08ab(0x2b0)],'connectionError$':(_0x22e845=this[_0x4b08ab(0x209)])==null?void 0x0:_0x22e845['connectionError$'],'currentSessionId$':(_0x338701=this['_mcpConnectionController'])==null?void 0x0:_0x338701[_0x4b08ab(0x28e)]});},this['_injector']);}[_0x5e1569(0x2b1)](){const _0x3fbb6a=_0x5e1569;this[_0x3fbb6a(0x21e)](this[_0x3fbb6a(0x27f)]['subscribeConfigValue$'](s[_0x3fbb6a(0x225)])[_0x3fbb6a(0x240)](_0x3257c4=>{const _0x64f074=_0x3fbb6a;this[_0x64f074(0x18a)][_0x64f074(0x180)](_0x3257c4||{});}));const _0x46b68f=this['_configService']['getConfig'](s['MCP_PLUGIN_CONFIG_KEY']);this['_mcpCoreConfig$'][_0x3fbb6a(0x180)](_0x46b68f||{}),this[_0x3fbb6a(0x21e)](this[_0x3fbb6a(0x27f)]['subscribeConfigValue$'](P)['subscribe'](_0x29b541=>{const _0x49f72e=_0x3fbb6a;this['_config$'][_0x49f72e(0x180)](_0x29b541||{});}));const _0x308c2b=this[_0x3fbb6a(0x27f)]['getConfig'](P);this[_0x3fbb6a(0x25d)][_0x3fbb6a(0x180)](_0x308c2b||{});}async['_loadStoredApiKey'](){const _0x3830d8=_0x5e1569,_0x33c3d8=this[_0x3830d8(0x27f)]['getConfig'](P);if(!(_0x33c3d8!=null&&_0x33c3d8[_0x3830d8(0x238)]))return;const _0x5e6314=await this['_localStorageService'][_0x3830d8(0x221)](O);_0x5e6314&&(this[_0x3830d8(0x209)]['__setCustomHeaders']({'Authorization':_0x3830d8(0x217)+_0x5e6314}),this[_0x3830d8(0x1ac)][_0x3830d8(0x180)](_0x5e6314));}async[_0x5e1569(0x1d7)](_0x3efbf0){const _0x76c53c=_0x5e1569;if(!_0x3efbf0[_0x76c53c(0x1da)]||_0x3efbf0[_0x76c53c(0x1da)][_0x76c53c(0x222)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t']('mcpConfig.validation.apiKeyRequired')};if(_0x3efbf0[_0x76c53c(0x1da)]['trim']()[_0x76c53c(0x199)]<0xa)return{'isValid':!0x1,'errorMessage':this['_localeService']['t']('mcpConfig.validation.apiKeyTooShort')};try{const _0x183a83=await this[_0x76c53c(0x25a)][_0x76c53c(0x298)](s[_0x76c53c(0x137)])[_0x76c53c(0x20e)](_0x3efbf0['apiKey']['trim']());return _0x183a83[_0x76c53c(0x157)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x183a83[_0x76c53c(0x155)]||this[_0x76c53c(0x1b3)]['t'](_0x76c53c(0x2a2))};}catch(_0x429b70){return console[_0x76c53c(0x203)](_0x76c53c(0x2b4),_0x429b70),{'isValid':!0x0};}}},exports[_0x5e1569(0x223)]=xe([g(0x0,u['Inject'](u[_0x5e1569(0x151)])),g(0x1,v[_0x5e1569(0x1ea)]),g(0x2,u['IConfigService']),g(0x3,u[_0x5e1569(0x13d)]),g(0x4,v[_0x5e1569(0x19b)]),g(0x5,v['IMessageService']),g(0x6,u[_0x5e1569(0x294)](v[_0x5e1569(0x172)])),g(0x7,u[_0x5e1569(0x294)](u['LocaleService'])),g(0x8,u[_0x5e1569(0x1e7)]),g(0x9,u['Inject'](s[_0x5e1569(0x137)]))],exports[_0x5e1569(0x223)]);const b={'id':_0x5e1569(0x1d2),'type':u['CommandType'][_0x5e1569(0x251)],'handler':async(_0x4b7f1a,_0x3b334e)=>(_0x4b7f1a['get'](exports[_0x5e1569(0x223)])[_0x5e1569(0x16f)](),!0x0)};function Z(_0x53fa1e,_0xc371d8){const _0xfd7e86=_0x5e1569;switch(_0x53fa1e){case s['MCPConnectionStatus'][_0xfd7e86(0x21b)]:return'mcpStatus.disconnected';case s[_0xfd7e86(0x1a0)][_0xfd7e86(0x1fb)]:return _0xfd7e86(0x200);case s[_0xfd7e86(0x1a0)][_0xfd7e86(0x220)]:return _0xfd7e86(0x145);case s[_0xfd7e86(0x1a0)]['FAILED']:switch(_0xc371d8){case s[_0xfd7e86(0x2a5)][_0xfd7e86(0x213)]:return'mcpStatus.unauthorized';case s[_0xfd7e86(0x2a5)][_0xfd7e86(0x2a3)]:return _0xfd7e86(0x28f);case s['MCPConnectionError'][_0xfd7e86(0x206)]:return _0xfd7e86(0x191);case s['MCPConnectionError'][_0xfd7e86(0x1af)]:return _0xfd7e86(0x21f);default:return'mcpStatus.failed';}case s[_0xfd7e86(0x1a0)]['RETRYING']:return _0xfd7e86(0x162);default:return _0xfd7e86(0x1f6);}}function Se(_0x1f3b9f,_0x5990e8,_0x338292,_0x250f01=!0x0){const _0x5b258b=_0x5e1569,_0x9f6b23=Z(_0x1f3b9f,_0x5990e8),_0x4cf67b=_0x338292['t'](_0x9f6b23);return _0x250f01?_0x1f3b9f===s[_0x5b258b(0x1a0)][_0x5b258b(0x21b)]&&_0x5990e8===s[_0x5b258b(0x2a5)][_0x5b258b(0x213)]?_0x4cf67b+_0x5b258b(0x192)+_0x338292['t'](_0x5b258b(0x1f4)):_0x1f3b9f===s[_0x5b258b(0x1a0)]['CONNECTED']?''+_0x4cf67b:_0x1f3b9f===s['MCPConnectionStatus']['DISCONNECTED']||_0x1f3b9f===s['MCPConnectionStatus'][_0x5b258b(0x165)]?_0x4cf67b+'\x20-\x20'+_0x338292['t'](_0x5b258b(0x13a)):_0x4cf67b:_0x4cf67b;}function Pe(_0x3e05f7){const _0x1a6b7a=_0x5e1569;switch(_0x3e05f7){case s[_0x1a6b7a(0x1a0)][_0x1a6b7a(0x220)]:return _0x1a6b7a(0x246);case s[_0x1a6b7a(0x1a0)]['CONNECTING']:case s[_0x1a6b7a(0x1a0)]['RETRYING']:return'univer-text-yellow-500';case s[_0x1a6b7a(0x1a0)]['FAILED']:case s[_0x1a6b7a(0x1a0)][_0x1a6b7a(0x21b)]:return'univer-text-red-500';default:return _0x1a6b7a(0x224);}}function W(_0x30b207){const _0x2ddd81=_0x5e1569,{status$:_0x4b111f,error$:_0x4fb5f1,onConfigure:_0x2f1fe0,showClickable:_0x193eb5=!0x0}=_0x30b207,_0x457cfd=v[_0x2ddd81(0x248)](_0x4b111f,s[_0x2ddd81(0x1a0)][_0x2ddd81(0x21b)]),_0x4cca42=v[_0x2ddd81(0x248)](_0x4fb5f1,s[_0x2ddd81(0x2a5)][_0x2ddd81(0x21d)]),_0x5b7380=v[_0x2ddd81(0x1ce)](u[_0x2ddd81(0x1d9)]),_0x3a1bce=_0x457cfd===s[_0x2ddd81(0x1a0)][_0x2ddd81(0x220)];_0x457cfd===s['MCPConnectionStatus']['CONNECTING']||s[_0x2ddd81(0x1a0)][_0x2ddd81(0x288)];const _0x44520d=_0x5b7380['t'](Z(_0x457cfd,_0x4cca42)),_0x31653e=Se(_0x457cfd,_0x4cca42,_0x5b7380,_0x193eb5),_0x392da1=Pe(_0x457cfd),_0x426e69=_0x3a1bce?i[_0x2ddd81(0x1a2)](q,{}):i[_0x2ddd81(0x1a2)](Y,{}),_0x2c4093=d[_0x2ddd81(0x286)](()=>{_0x193eb5&&_0x2f1fe0&&_0x2f1fe0();},[_0x193eb5,_0x2f1fe0]);function _0x5b26f3(){const _0x7e5cb1=_0x2ddd81;return i[_0x7e5cb1(0x287)](_0x7e5cb1(0x267),{'className':f[_0x7e5cb1(0x290)](_0x7e5cb1(0x23b),_0x193eb5&&_0x2f1fe0&&_0x7e5cb1(0x140)),'role':_0x7e5cb1(0x25f),'onClick':_0x193eb5&&_0x2f1fe0?_0x2c4093:void 0x0,'children':[i[_0x7e5cb1(0x1a2)](_0x7e5cb1(0x267),{'className':f[_0x7e5cb1(0x290)](_0x7e5cb1(0x1f8),_0x392da1),'children':_0x426e69}),i['jsx'](_0x7e5cb1(0x267),{'className':_0x7e5cb1(0x204),'children':_0x44520d})]});}return i[_0x2ddd81(0x1a2)](f['Tooltip'],{'title':_0x31653e,'placement':_0x2ddd81(0x19e),'children':_0x5b26f3()});}var Ie=Object[_0x5e1569(0x1f0)],_e=(_0x309cc3,_0x530f8a,_0x459c9e,_0x5981a7)=>{const _0x3bf21a=_0x5e1569;for(var _0x5dc958=_0x5981a7>0x1?void 0x0:_0x5981a7?Ie(_0x530f8a,_0x459c9e):_0x530f8a,_0x2396ec=_0x309cc3[_0x3bf21a(0x199)]-0x1,_0xbb0d3a;_0x2396ec>=0x0;_0x2396ec--)(_0xbb0d3a=_0x309cc3[_0x2396ec])&&(_0x5dc958=_0xbb0d3a(_0x5dc958)||_0x5dc958);return _0x5dc958;},N=(_0xfb823e,_0x48e7e4)=>(_0x1f1b20,_0x3104d6)=>_0x48e7e4(_0x1f1b20,_0x3104d6,_0xfb823e);exports[_0x5e1569(0x27d)]=class extends u[_0x5e1569(0x1cf)]{constructor(_0x12d64c,_0x2a673f,_0x3e7350,_0x484c98){const _0x1a1e7c=_0x5e1569;super(),this[_0x1a1e7c(0x25a)]=_0x12d64c,this[_0x1a1e7c(0x1b5)]=_0x2a673f,this[_0x1a1e7c(0x20d)]=_0x3e7350,this[_0x1a1e7c(0x27f)]=_0x484c98,this[_0x1a1e7c(0x208)](),this[_0x1a1e7c(0x1a3)]();}[_0x5e1569(0x208)](){const _0x3fda06=_0x5e1569,_0x1927d5=this[_0x3fda06(0x27f)][_0x3fda06(0x1f5)](P);_0x1927d5!=null&&_0x1927d5['showDeveloperTools']&&(this[_0x3fda06(0x1b5)][_0x3fda06(0x262)]=!0x1);}['_initStatusComponent'](){const _0xfa76a7=_0x5e1569,_0x3bc873=this[_0xfa76a7(0x27f)][_0xfa76a7(0x1f5)](P);(_0x3bc873==null?void 0x0:_0x3bc873[_0xfa76a7(0x26e)])!==!0x1&&this[_0xfa76a7(0x21e)](this['_uiPartsService'][_0xfa76a7(0x266)](v[_0xfa76a7(0x264)][_0xfa76a7(0x19a)],()=>{const _0x29cae6=_0xfa76a7;var _0x38ec1f;return v['connectInjector'](ye({'status$':this[_0x29cae6(0x1b5)][_0x29cae6(0x2b0)],'error$':this[_0x29cae6(0x1b5)][_0x29cae6(0x2b3)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x38ec1f=_0x3bc873==null?void 0x0:_0x3bc873[_0x29cae6(0x238)])!=null?_0x38ec1f:!0x1}),this[_0x29cae6(0x25a)]);}));}['_handleConfigure'](){const _0x423a7f=_0x5e1569;this[_0x423a7f(0x25a)]['get'](exports['MCPConfigUIController'])[_0x423a7f(0x16f)]();}},exports[_0x5e1569(0x27d)]=_e([N(0x0,u['Inject'](u['Injector'])),N(0x1,u[_0x5e1569(0x294)](s['MCPConnectionController'])),N(0x2,v['IUIPartsService']),N(0x3,u['IConfigService'])],exports['MCPConnectionUIController']);function ye(_0x20d60d){const {status$:_0x413ef2,error$:_0x32a6b2,onConfigure:_0x56c1bc,showClickable:_0x57e84b}=_0x20d60d;return function(){const _0x441979=_0x5555;return i[_0x441979(0x1a2)](W,{'status$':_0x413ef2,'error$':_0x32a6b2,'onConfigure':_0x56c1bc,'showClickable':_0x57e84b});};}function Me(_0x5d2515){const _0x514e3e=_0x5e1569;return{'id':b['id'],'type':v[_0x514e3e(0x2aa)]['BUTTON'],'icon':_0x514e3e(0x2a7),'title':'mcpConfig.title','tooltip':_0x514e3e(0x260)};}const Ne={[v['RibbonStartGroup'][_0x5e1569(0x24c)]]:{[b['id']]:{'order':0xa,'menuItemFactory':Me}}};var be=Object[_0x5e1569(0x1f0)],je=(_0xcea47d,_0x45359b,_0xe9b1ca,_0x6e7654)=>{const _0x5ca64d=_0x5e1569;for(var _0x217d93=_0x6e7654>0x1?void 0x0:_0x6e7654?be(_0x45359b,_0xe9b1ca):_0x45359b,_0x18b002=_0xcea47d[_0x5ca64d(0x199)]-0x1,_0x1e41ff;_0x18b002>=0x0;_0x18b002--)(_0x1e41ff=_0xcea47d[_0x18b002])&&(_0x217d93=_0x1e41ff(_0x217d93)||_0x217d93);return _0x217d93;},z=(_0x347e95,_0x35ac95)=>(_0x147bc2,_0x149b79)=>_0x35ac95(_0x147bc2,_0x149b79,_0x347e95);exports[_0x5e1569(0x1b6)]=class extends u[_0x5e1569(0x1cf)]{constructor(_0x53bbca,_0x4b1e61){const _0x3ddad2=_0x5e1569;super(),this[_0x3ddad2(0x2af)]=_0x53bbca,this[_0x3ddad2(0x27c)]=_0x4b1e61,this[_0x3ddad2(0x253)](),this['_initializeMenus']();}['_initializeCommands'](){const _0x2c52b3=_0x5e1569;[b][_0x2c52b3(0x1e1)](_0x5e0381=>{const _0x474e79=_0x2c52b3;this[_0x474e79(0x21e)](this[_0x474e79(0x2af)][_0x474e79(0x1c6)](_0x5e0381));});}[_0x5e1569(0x1f3)](){this['_menuManagerService']['mergeMenu'](Ne);}},exports[_0x5e1569(0x1b6)]=je([z(0x0,u[_0x5e1569(0x1ba)]),z(0x1,v[_0x5e1569(0x1dd)])],exports['MCPUIMenuController']);const Ee={'mcpStatus':{'disconnected':_0x5e1569(0x1c4),'connecting':_0x5e1569(0x1a8),'connected':'MCP\x20Connected','failed':_0x5e1569(0x29d),'retrying':_0x5e1569(0x1bb),'unknown':_0x5e1569(0x138),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x5e1569(0x289),'networkError':_0x5e1569(0x1f9),'maxRetriesExceeded':_0x5e1569(0x166),'clickToConnect':_0x5e1569(0x12f),'clickToConfigure':_0x5e1569(0x282)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x5e1569(0x177),'apiKey':_0x5e1569(0x1a5),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x5e1569(0x1e9),'enableAuth':_0x5e1569(0x161),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x5e1569(0x158),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x5e1569(0x1e8),'configStepTitle':_0x5e1569(0x1d6),'configStep1':_0x5e1569(0x1ab),'configStep2':_0x5e1569(0x184),'configStep3':_0x5e1569(0x2a0),'sessionId':'Session\x20ID','sessionIdDescription':_0x5e1569(0x18f),'authorizationDescription':_0x5e1569(0x1e0),'configParameters':_0x5e1569(0x195),'maxRetries':'Max\x20Retries','save':_0x5e1569(0x13c),'saving':'Saving...','note1':_0x5e1569(0x1e5),'note2':_0x5e1569(0x1b2),'configSaved':_0x5e1569(0x255),'configError':_0x5e1569(0x211),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x5e1569(0x164),'univerAiLabel':_0x5e1569(0x28c),'getStarted':_0x5e1569(0x171)},'validation':{'apiKeyRequired':_0x5e1569(0x139),'apiKeyTooShort':_0x5e1569(0x194),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x5e1569(0x190)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x5e1569(0x1ff),'connected':'Connected','failed':_0x5e1569(0x26c),'retrying':_0x5e1569(0x227)},'connectionError':{'unauthorized':_0x5e1569(0x136),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x5e1569(0x263),'maxRetriesExceeded':_0x5e1569(0x274)}}},we={'mcpStatus':{'disconnected':_0x5e1569(0x19c),'connecting':_0x5e1569(0x2b6),'connected':'MCP\x20已连接','failed':_0x5e1569(0x241),'retrying':'MCP\x20重连中...','unknown':_0x5e1569(0x22b),'unauthorized':_0x5e1569(0x228),'sessionOccupied':_0x5e1569(0x21a),'networkError':_0x5e1569(0x2b7),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x5e1569(0x1c5),'clickToConfigure':_0x5e1569(0x1c9)},'mcpConfig':{'title':'MCP\x20配置','description':_0x5e1569(0x14e),'apiKey':_0x5e1569(0x249),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x5e1569(0x14a),'enableAuth':'启用身份验证','enableAuthHint':_0x5e1569(0x149),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x5e1569(0x277),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x5e1569(0x250),'configStep1':_0x5e1569(0x254),'configStep2':_0x5e1569(0x176),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':_0x5e1569(0x19d),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0x5e1569(0x1be),'configParameters':_0x5e1569(0x1e6),'maxRetries':_0x5e1569(0x130),'save':_0x5e1569(0x299),'saving':'保存中...','note1':_0x5e1569(0x1b9),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':'配置保存成功','configError':_0x5e1569(0x29e),'apiApplyInfo':{'title':_0x5e1569(0x24a),'description':_0x5e1569(0x15b),'univerAiLabel':_0x5e1569(0x296),'getStarted':_0x5e1569(0x1a4)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x5e1569(0x1d3),'invalidConfig':_0x5e1569(0x1d8),'invalidApiKey':_0x5e1569(0x252)},'connectionStatus':{'disconnected':_0x5e1569(0x283),'connecting':_0x5e1569(0x276),'connected':_0x5e1569(0x189),'failed':'连接失败','retrying':_0x5e1569(0x268)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x5e1569(0x132),'networkError':_0x5e1569(0x1cc),'maxRetriesExceeded':_0x5e1569(0x205)}}};function _0x5555(_0x2fd3ce,_0x5cd3d9){_0x2fd3ce=_0x2fd3ce-0x12f;const _0x4582f8=_0x4582();let _0x5555ff=_0x4582f8[_0x2fd3ce];return _0x5555ff;}var Ae=Object['defineProperty'],Oe=Object['getOwnPropertyDescriptor'],De=(_0xd8af05,_0xa0e05f,_0x222c7a)=>_0xa0e05f in _0xd8af05?Ae(_0xd8af05,_0xa0e05f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x222c7a}):_0xd8af05[_0xa0e05f]=_0x222c7a,Ue=(_0x381d67,_0x31995b,_0x3f10be,_0x16504b)=>{const _0x37f2f7=_0x5e1569;for(var _0x37f217=_0x16504b>0x1?void 0x0:_0x16504b?Oe(_0x31995b,_0x3f10be):_0x31995b,_0x98c6ae=_0x381d67[_0x37f2f7(0x199)]-0x1,_0x3c186d;_0x98c6ae>=0x0;_0x98c6ae--)(_0x3c186d=_0x381d67[_0x98c6ae])&&(_0x37f217=_0x3c186d(_0x37f217)||_0x37f217);return _0x37f217;},y=(_0x17af71,_0xec331a)=>(_0x10c121,_0x2cc31b)=>_0xec331a(_0x10c121,_0x2cc31b,_0x17af71),$e=(_0x5063fa,_0x539e4b,_0x443eac)=>De(_0x5063fa,_0x539e4b+'',_0x443eac);exports[_0x5e1569(0x272)]=class extends u[_0x5e1569(0x292)]{constructor(_0x4e2cb0=L,_0x31e76b,_0x435f1f,_0x2c348f,_0x4f9e4a,_0x39abc1){const _0x29b728=_0x5e1569;super(),this[_0x29b728(0x23c)]=_0x4e2cb0,this[_0x29b728(0x25a)]=_0x31e76b,this[_0x29b728(0x27f)]=_0x435f1f,this[_0x29b728(0x20d)]=_0x2c348f,this[_0x29b728(0x18b)]=_0x4f9e4a,this[_0x29b728(0x1b3)]=_0x39abc1;const {..._0x336c63}=u[_0x29b728(0x218)]({},L,this[_0x29b728(0x23c)]);this[_0x29b728(0x27f)][_0x29b728(0x1e3)](P,_0x336c63);}async[_0x5e1569(0x1c8)](){const _0x19f766=_0x5e1569,_0x26e770=[[exports[_0x19f766(0x27d)]],[exports[_0x19f766(0x223)]],[exports[_0x19f766(0x1b6)]]];this[_0x19f766(0x25a)][_0x19f766(0x1b0)](A[_0x19f766(0x256)])||_0x26e770[_0x19f766(0x2ba)]([A[_0x19f766(0x256)],{'useClass':A[_0x19f766(0x22f)]}]),_0x26e770[_0x19f766(0x1e1)](_0x567d6f=>this[_0x19f766(0x25a)][_0x19f766(0x25b)](_0x567d6f)),this[_0x19f766(0x25a)][_0x19f766(0x298)](exports[_0x19f766(0x27d)]),this[_0x19f766(0x25a)][_0x19f766(0x298)](exports[_0x19f766(0x223)]),this['_injector'][_0x19f766(0x298)](exports[_0x19f766(0x1b6)]);}},$e(exports['UniverMCPUIPlugin'],_0x5e1569(0x134),'MCP_UI_PLUGIN'),exports['UniverMCPUIPlugin']=Ue([u[_0x5e1569(0x1b4)](s[_0x5e1569(0x193)]),y(0x1,u[_0x5e1569(0x294)](u[_0x5e1569(0x151)])),y(0x2,u[_0x5e1569(0x1ee)]),y(0x3,v[_0x5e1569(0x1ea)]),y(0x4,u[_0x5e1569(0x13d)]),y(0x5,u[_0x5e1569(0x294)](u[_0x5e1569(0x1d9)]))],exports[_0x5e1569(0x272)]),exports[_0x5e1569(0x229)]=V,exports[_0x5e1569(0x2ac)]=W,exports['OpenMCPConfigPanelCommand']=b,exports[_0x5e1569(0x29a)]=Ee,exports[_0x5e1569(0x28a)]=we;
|
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x860663=_0x1989;(function(_0x732a9a,_0x527f9c){const _0xadafa7=_0x1989,_0x503572=_0x732a9a();while(!![]){try{const _0x954f51=parseInt(_0xadafa7(0xc1))/0x1+-parseInt(_0xadafa7(0xbb))/0x2*(-parseInt(_0xadafa7(0x9d))/0x3)+parseInt(_0xadafa7(0x95))/0x4+-parseInt(_0xadafa7(0xb8))/0x5*(parseInt(_0xadafa7(0xc4))/0x6)+parseInt(_0xadafa7(0x9e))/0x7*(parseInt(_0xadafa7(0x93))/0x8)+parseInt(_0xadafa7(0xa9))/0x9+parseInt(_0xadafa7(0xc0))/0xa*(-parseInt(_0xadafa7(0xc2))/0xb);if(_0x954f51===_0x527f9c)break;else _0x503572['push'](_0x503572['shift']());}catch(_0x2ebe2e){_0x503572['push'](_0x503572['shift']());}}}(_0xa763,0x696f8));function _0xa763(){const _0x53d7ce=['680321dSWhtl','25985201SYBkQV','Get\x20your\x20API\x20key\x20in\x20seconds','186saSNUI','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Configuration\x20Steps:','Saving...','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','5224PVpOzx','Disconnected','2202192rNbiaX','MCP\x20Disconnected','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Connected','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Connecting...','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','219ABgVTG','1687EcolRL','MCP:\x20Network\x20Error','Invalid\x20configuration','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Click\x20to\x20configure\x20MCP','Enter\x20your\x20API\x20key','What\x20is\x20API\x20Key?','Connection\x20Failed','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','6801822Melpvf','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP:\x20Session\x20ID\x20Occupied','MCP\x20Retrying...','Max\x20Retries','MCP\x20Configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP:\x20Unauthorized','Enable\x20authentication\x20for\x20secure\x20connections','Enable\x20Authentication','MCP\x20Client\x20Configuration','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Connecting...','Retrying...','16175JQKXgt','MCP\x20Connection\x20Failed','Save\x20Configuration','20560cEsRkb','exports','Connected','Failed\x20to\x20save\x20configuration','Configuration\x20saved\x20successfully','10TcLtaR'];_0xa763=function(){return _0x53d7ce;};return _0xa763();}const e={'mcpStatus':{'disconnected':_0x860663(0x96),'connecting':_0x860663(0x9a),'connected':_0x860663(0x98),'failed':_0x860663(0xb9),'retrying':_0x860663(0xac),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x860663(0xb1),'sessionOccupied':_0x860663(0xab),'networkError':_0x860663(0x9f),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x860663(0xa4)},'mcpConfig':{'title':_0x860663(0xae),'description':_0x860663(0x92),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x860663(0xa5),'apiKeyHint':_0x860663(0xaa),'enableAuth':_0x860663(0xb3),'enableAuthHint':_0x860663(0xb2),'connectionInfo':_0x860663(0xb4),'mcpClientConfig':_0x860663(0xb4),'configInstructions':_0x860663(0xaf),'configStepTitle':_0x860663(0xc6),'configStep1':_0x860663(0x99),'configStep2':_0x860663(0xa3),'configStep3':_0x860663(0x9c),'sessionId':'Session\x20ID','sessionIdDescription':_0x860663(0xa2),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':_0x860663(0xad),'save':_0x860663(0xba),'saving':_0x860663(0xc7),'note1':_0x860663(0xa8),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x860663(0xbf),'configError':_0x860663(0xbe),'apiApplyInfo':{'title':_0x860663(0xa6),'description':_0x860663(0xb0),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x860663(0xc3)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x860663(0xa0),'invalidApiKey':_0x860663(0x97)},'connectionStatus':{'disconnected':_0x860663(0x94),'connecting':_0x860663(0xb6),'connected':_0x860663(0xbd),'failed':_0x860663(0xa7),'retrying':_0x860663(0xb7)},'connectionError':{'unauthorized':_0x860663(0xb5),'sessionOccupied':_0x860663(0xc5),'networkError':_0x860663(0xa1),'maxRetriesExceeded':_0x860663(0x9b)}}},n=e;function _0x1989(_0xbd4802,_0x248906){_0xbd4802=_0xbd4802-0x92;const _0xa763ff=_0xa763();let _0x1989a5=_0xa763ff[_0xbd4802];return _0x1989a5;}module[_0x860663(0xbc)]=n;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x55acf8=_0x33d2;(function(_0x1cd916,_0x8c3e32){const _0x314ce9=_0x33d2,_0x3faa22=_0x1cd916();while(!![]){try{const _0x51ca0e=parseInt(_0x314ce9(0x152))/0x1*(-parseInt(_0x314ce9(0x146))/0x2)+parseInt(_0x314ce9(0x133))/0x3+-parseInt(_0x314ce9(0x12b))/0x4+parseInt(_0x314ce9(0x13d))/0x5+-parseInt(_0x314ce9(0x149))/0x6+-parseInt(_0x314ce9(0x137))/0x7+parseInt(_0x314ce9(0x14b))/0x8;if(_0x51ca0e===_0x8c3e32)break;else _0x3faa22['push'](_0x3faa22['shift']());}catch(_0x4332c7){_0x3faa22['push'](_0x3faa22['shift']());}}}(_0x5b07,0x8ceb6));function _0x33d2(_0x58788b,_0x1430a0){_0x58788b=_0x58788b-0x128;const _0x5b0755=_0x5b07();let _0x33d240=_0x5b0755[_0x58788b];return _0x33d240;}const e={'mcpStatus':{'disconnected':_0x55acf8(0x154),'connecting':_0x55acf8(0x131),'connected':'MCP\x20Connected','failed':_0x55acf8(0x158),'retrying':_0x55acf8(0x147),'unknown':_0x55acf8(0x13b),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x55acf8(0x159),'networkError':_0x55acf8(0x13f),'maxRetriesExceeded':_0x55acf8(0x145),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x55acf8(0x140)},'mcpConfig':{'title':_0x55acf8(0x138),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x55acf8(0x14a),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x55acf8(0x12c),'enableAuth':_0x55acf8(0x157),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x55acf8(0x15a),'configInstructions':_0x55acf8(0x12e),'configStepTitle':_0x55acf8(0x136),'configStep1':_0x55acf8(0x151),'configStep2':_0x55acf8(0x12d),'configStep3':_0x55acf8(0x130),'sessionId':_0x55acf8(0x148),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x55acf8(0x139),'configParameters':_0x55acf8(0x150),'maxRetries':'Max\x20Retries','save':_0x55acf8(0x14d),'saving':_0x55acf8(0x132),'note1':_0x55acf8(0x13a),'note2':_0x55acf8(0x135),'configSaved':_0x55acf8(0x143),'configError':_0x55acf8(0x144),'apiApplyInfo':{'title':_0x55acf8(0x129),'description':_0x55acf8(0x142),'univerAiLabel':_0x55acf8(0x13c),'getStarted':_0x55acf8(0x15b)},'validation':{'apiKeyRequired':_0x55acf8(0x155),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x55acf8(0x12f)},'connectionStatus':{'disconnected':_0x55acf8(0x134),'connecting':_0x55acf8(0x14e),'connected':_0x55acf8(0x12a),'failed':_0x55acf8(0x141),'retrying':_0x55acf8(0x156)},'connectionError':{'unauthorized':_0x55acf8(0x128),'sessionOccupied':_0x55acf8(0x13e),'networkError':_0x55acf8(0x153),'maxRetriesExceeded':_0x55acf8(0x14f)}}};function _0x5b07(){const _0x328a26=['MCP:\x20Network\x20Error','Click\x20to\x20configure\x20MCP','Connection\x20Failed','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Configuration\x20saved\x20successfully','Failed\x20to\x20save\x20configuration','MCP:\x20Max\x20Retries\x20Exceeded','2956hJENLn','MCP\x20Retrying...','Session\x20ID','2763120GcBeUn','API\x20Key','20432576DJdaKW','exports','Save\x20Configuration','Connecting...','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Configuration\x20Parameters:','Copy\x20the\x20JSON\x20configuration\x20below','178cHKzZl','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Disconnected','API\x20key\x20is\x20required','Retrying...','Enable\x20Authentication','MCP\x20Connection\x20Failed','MCP:\x20Session\x20ID\x20Occupied','MCP\x20Client\x20Configuration','Get\x20your\x20API\x20key\x20in\x20seconds','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','What\x20is\x20API\x20Key?','Connected','2211032bVtvrk','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Connecting...','Saving...','98871iTXSHP','Disconnected','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Configuration\x20Steps:','5549838rIbEFa','MCP\x20Configuration','API\x20key\x20with\x20Bearer\x20prefix.','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Unknown\x20Status','Univer\x20AI\x20Console','296865wvnugz','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later'];_0x5b07=function(){return _0x328a26;};return _0x5b07();}module[_0x55acf8(0x14c)]=e;
|
package/lib/cjs/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x429850=_0x2924;function _0x2924(_0x57dd99,_0x4d9fee){_0x57dd99=_0x57dd99-0x196;const _0x31d439=_0x31d4();let _0x2924c8=_0x31d439[_0x57dd99];return _0x2924c8;}(function(_0x38ce00,_0x46d447){const _0x137604=_0x2924,_0x4442e8=_0x38ce00();while(!![]){try{const _0x5b8314=parseInt(_0x137604(0x1ca))/0x1*(-parseInt(_0x137604(0x1a3))/0x2)+parseInt(_0x137604(0x1a8))/0x3+parseInt(_0x137604(0x1a9))/0x4*(-parseInt(_0x137604(0x1ba))/0x5)+parseInt(_0x137604(0x1ab))/0x6+-parseInt(_0x137604(0x1bf))/0x7+parseInt(_0x137604(0x1c9))/0x8*(-parseInt(_0x137604(0x1af))/0x9)+parseInt(_0x137604(0x1c5))/0xa;if(_0x5b8314===_0x46d447)break;else _0x4442e8['push'](_0x4442e8['shift']());}catch(_0x4f2314){_0x4442e8['push'](_0x4442e8['shift']());}}}(_0x31d4,0x93253));const e={'mcpStatus':{'disconnected':_0x429850(0x1be),'connecting':_0x429850(0x1bd),'connected':_0x429850(0x19a),'failed':_0x429850(0x19d),'retrying':_0x429850(0x1a1),'unknown':_0x429850(0x1b8),'unauthorized':_0x429850(0x1b5),'sessionOccupied':_0x429850(0x1b6),'networkError':_0x429850(0x198),'maxRetriesExceeded':_0x429850(0x1ae),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x429850(0x1c6)},'mcpConfig':{'title':_0x429850(0x1b3),'description':_0x429850(0x1ac),'apiKey':_0x429850(0x1b1),'apiKeyPlaceholder':_0x429850(0x1c3),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x429850(0x1c0),'enableAuthHint':_0x429850(0x19e),'connectionInfo':_0x429850(0x1b7),'mcpClientConfig':_0x429850(0x1b7),'configInstructions':_0x429850(0x1a5),'configStepTitle':_0x429850(0x1b9),'configStep1':_0x429850(0x19c),'configStep2':_0x429850(0x1c7),'configStep3':_0x429850(0x1c1),'sessionId':_0x429850(0x1b0),'sessionIdDescription':_0x429850(0x1aa),'authorizationDescription':_0x429850(0x1a2),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x429850(0x1a7),'save':_0x429850(0x199),'saving':_0x429850(0x1bc),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x429850(0x1c8),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x429850(0x1ad),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x429850(0x197),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x429850(0x19b)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x429850(0x19f),'invalidConfig':_0x429850(0x1b2),'invalidApiKey':_0x429850(0x1bb)},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':_0x429850(0x1a4),'failed':_0x429850(0x1b4),'retrying':_0x429850(0x196)},'connectionError':{'unauthorized':_0x429850(0x1c2),'sessionOccupied':_0x429850(0x1c4),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x429850(0x1a6)}}},n=e;function _0x31d4(){const _0x4ce694=['Get\x20your\x20API\x20key\x20in\x20seconds','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Connection\x20Failed','Enable\x20authentication\x20for\x20secure\x20connections','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','exports','MCP\x20Retrying...','API\x20key\x20with\x20Bearer\x20prefix.','185452ehXTVY','Connected','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Max\x20Retries','1284645DgFLHq','152qztVhn','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','4740990IqcPWz','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Failed\x20to\x20save\x20configuration','MCP:\x20Max\x20Retries\x20Exceeded','9vThvRA','Session\x20ID','API\x20Key','Invalid\x20configuration','MCP\x20Configuration','Connection\x20Failed','MCP:\x20Unauthorized','MCP:\x20Session\x20ID\x20Occupied','MCP\x20Client\x20Configuration','MCP\x20Unknown\x20Status','Configuration\x20Steps:','134620TkegsG','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Saving...','MCP\x20Connecting...','MCP\x20Disconnected','2843050jMfDaF','Enable\x20Authentication','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Enter\x20your\x20API\x20key','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','24437840jMJzUJ','Click\x20to\x20configure\x20MCP','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','9332520heuQkD','5YmdaAh','Retrying...','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP:\x20Network\x20Error','Save\x20Configuration','MCP\x20Connected'];_0x31d4=function(){return _0x4ce694;};return _0x31d4();}module[_0x429850(0x1a0)]=n;
|
package/lib/cjs/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const _0x275e99=_0x2a55;function _0x2a55(_0x331393,_0x162144){_0x331393=_0x331393-0x9d;const _0x1776c8=_0x1776();let _0x2a551b=_0x1776c8[_0x331393];return _0x2a551b;}(function(_0x2ddf0c,_0x5f3ac4){const _0x5e118f=_0x2a55,_0x3aa2cc=_0x2ddf0c();while(!![]){try{const _0xcc4df3=parseInt(_0x5e118f(0xb9))/0x1*(parseInt(_0x5e118f(0xc3))/0x2)+parseInt(_0x5e118f(0xb7))/0x3*(parseInt(_0x5e118f(0xbf))/0x4)+parseInt(_0x5e118f(0xa7))/0x5+parseInt(_0x5e118f(0xa5))/0x6*(-parseInt(_0x5e118f(0xa6))/0x7)+-parseInt(_0x5e118f(0x9f))/0x8+parseInt(_0x5e118f(0xab))/0x9*(parseInt(_0x5e118f(0xcb))/0xa)+-parseInt(_0x5e118f(0xaf))/0xb*(parseInt(_0x5e118f(0xc9))/0xc);if(_0xcc4df3===_0x5f3ac4)break;else _0x3aa2cc['push'](_0x3aa2cc['shift']());}catch(_0x592ff2){_0x3aa2cc['push'](_0x3aa2cc['shift']());}}}(_0x1776,0x1a903));const e={'mcpStatus':{'disconnected':_0x275e99(0xbd),'connecting':_0x275e99(0xb4),'connected':_0x275e99(0xb2),'failed':_0x275e99(0xa0),'retrying':_0x275e99(0xa4),'unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x275e99(0xc0),'maxRetriesExceeded':_0x275e99(0xad),'clickToConnect':_0x275e99(0xac),'clickToConfigure':_0x275e99(0xa9)},'mcpConfig':{'title':_0x275e99(0xcc),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x275e99(0xba),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x275e99(0xb1),'enableAuthHint':_0x275e99(0xae),'connectionInfo':_0x275e99(0xaa),'mcpClientConfig':_0x275e99(0xaa),'configInstructions':_0x275e99(0xbe),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x275e99(0xc1),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':_0x275e99(0xcf),'authorizationDescription':_0x275e99(0xc4),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x275e99(0xb0),'note1':_0x275e99(0xb5),'note2':_0x275e99(0xb8),'configSaved':_0x275e99(0xc6),'configError':_0x275e99(0x9d),'apiApplyInfo':{'title':_0x275e99(0xca),'description':_0x275e99(0xb3),'univerAiLabel':_0x275e99(0xce),'getStarted':_0x275e99(0xa1)},'validation':{'apiKeyRequired':_0x275e99(0xb6),'apiKeyTooShort':_0x275e99(0xc8),'invalidConfig':_0x275e99(0xcd),'invalidApiKey':_0x275e99(0xa3)},'connectionStatus':{'disconnected':_0x275e99(0xbc),'connecting':_0x275e99(0xc2),'connected':'Connected','failed':_0x275e99(0xc7),'retrying':_0x275e99(0xbb)},'connectionError':{'unauthorized':_0x275e99(0xa8),'sessionOccupied':_0x275e99(0xc5),'networkError':_0x275e99(0x9e),'maxRetriesExceeded':_0x275e99(0xa2)}}},n=e;function _0x1776(){const _0xc2c68a=['MCP\x20Connecting...','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','API\x20key\x20is\x20required','2541HHikSC','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','3721lINuug','API\x20Key','Retrying...','Disconnected','MCP\x20Disconnected','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','844pfONdL','MCP:\x20Network\x20Error','Copy\x20the\x20JSON\x20configuration\x20below','Connecting...','66cSjRUQ','API\x20key\x20with\x20Bearer\x20prefix.','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Configuration\x20saved\x20successfully','Connection\x20Failed','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','42396TNSvjb','What\x20is\x20API\x20Key?','61010LPOQeI','MCP\x20Configuration','Invalid\x20configuration','Univer\x20AI\x20Console','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Failed\x20to\x20save\x20configuration','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','164744ZZKjoa','MCP\x20Connection\x20Failed','Get\x20your\x20API\x20key\x20in\x20seconds','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Retrying...','1052154QhSsDW','7SeDaQc','226810olqBAk','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Click\x20to\x20configure\x20MCP','MCP\x20Client\x20Configuration','261wjwNZj','Click\x20to\x20connect\x20MCP','MCP:\x20Max\x20Retries\x20Exceeded','Enable\x20authentication\x20for\x20secure\x20connections','682vHxoUA','Saving...','Enable\x20Authentication','MCP\x20Connected','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.'];_0x1776=function(){return _0xc2c68a;};return _0x1776();}module['exports']=n;
|
package/lib/cjs/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x5aa7(){const _0x3b8cbb=['Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','9xAEjXq','MCP\x20Unknown\x20Status','Enter\x20your\x20API\x20key','MCP\x20Client\x20Configuration','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configuration\x20Parameters:','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','74ZwgFpS','Get\x20your\x20API\x20key\x20in\x20seconds','MCP:\x20Unauthorized','Session\x20ID','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Connection\x20Failed','30300gdvyHv','Enable\x20authentication\x20for\x20secure\x20connections','101883ebOYwX','Click\x20to\x20configure\x20MCP','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Click\x20to\x20connect\x20MCP','API\x20key\x20with\x20Bearer\x20prefix.','3396580vWglYl','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP:\x20Session\x20ID\x20Occupied','MCP:\x20Network\x20Error','MCP\x20Configuration','Univer\x20AI\x20Console','Save\x20Configuration','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Retrying...','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','144cqUlaK','Retrying...','MCP\x20Connecting...','17657bJSClR','Copy\x20the\x20JSON\x20configuration\x20below','Disconnected','Invalid\x20configuration','Configuration\x20Steps:','2455131cdDMqX','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','8tymcai','API\x20key\x20is\x20required','1326930uGcVZY','Max\x20Retries','Connected','Enable\x20Authentication','API\x20Key','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','1398616YlNAzP','MCP\x20Connection\x20Failed','Failed\x20to\x20save\x20configuration'];_0x5aa7=function(){return _0x3b8cbb;};return _0x5aa7();}const _0x17606c=_0x342a;(function(_0x19968b,_0x5b7c5c){const _0x406765=_0x342a,_0xa7de61=_0x19968b();while(!![]){try{const _0x25c11a=parseInt(_0x406765(0xf5))/0x1*(parseInt(_0x406765(0x112))/0x2)+parseInt(_0x406765(0x11a))/0x3+-parseInt(_0x406765(0x104))/0x4+parseInt(_0x406765(0x118))/0x5*(parseInt(_0x406765(0xf2))/0x6)+-parseInt(_0x406765(0xfa))/0x7*(-parseInt(_0x406765(0xfc))/0x8)+-parseInt(_0x406765(0x108))/0x9*(parseInt(_0x406765(0x11f))/0xa)+-parseInt(_0x406765(0xfe))/0xb;if(_0x25c11a===_0x5b7c5c)break;else _0xa7de61['push'](_0xa7de61['shift']());}catch(_0x495701){_0xa7de61['push'](_0xa7de61['shift']());}}}(_0x5aa7,0x5b2fd));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x17606c(0xf4),'connected':'MCP\x20Connected','failed':_0x17606c(0x105),'retrying':_0x17606c(0xf0),'unknown':_0x17606c(0x109),'unauthorized':_0x17606c(0x114),'sessionOccupied':_0x17606c(0x121),'networkError':_0x17606c(0x122),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x17606c(0x11d),'clickToConfigure':_0x17606c(0x11b)},'mcpConfig':{'title':_0x17606c(0x123),'description':_0x17606c(0x116),'apiKey':_0x17606c(0x102),'apiKeyPlaceholder':_0x17606c(0x10a),'apiKeyHint':_0x17606c(0xfb),'enableAuth':_0x17606c(0x101),'enableAuthHint':_0x17606c(0x119),'connectionInfo':_0x17606c(0x10b),'mcpClientConfig':_0x17606c(0x10b),'configInstructions':_0x17606c(0x11c),'configStepTitle':_0x17606c(0xf9),'configStep1':_0x17606c(0xf6),'configStep2':_0x17606c(0x120),'configStep3':_0x17606c(0x103),'sessionId':_0x17606c(0x115),'sessionIdDescription':_0x17606c(0x10c),'authorizationDescription':_0x17606c(0x11e),'configParameters':_0x17606c(0x10d),'maxRetries':_0x17606c(0xff),'save':_0x17606c(0x125),'saving':'Saving...','note1':_0x17606c(0x10e),'note2':_0x17606c(0xf1),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x17606c(0x106),'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':_0x17606c(0x124),'getStarted':_0x17606c(0x113)},'validation':{'apiKeyRequired':_0x17606c(0xfd),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x17606c(0xf8),'invalidApiKey':_0x17606c(0x110)},'connectionStatus':{'disconnected':_0x17606c(0xf7),'connecting':'Connecting...','connected':_0x17606c(0x100),'failed':_0x17606c(0x117),'retrying':_0x17606c(0xf3)},'connectionError':{'unauthorized':_0x17606c(0x107),'sessionOccupied':_0x17606c(0x10f),'networkError':_0x17606c(0x111),'maxRetriesExceeded':_0x17606c(0xef)}}},n=e;function _0x342a(_0x4a4110,_0x32c393){_0x4a4110=_0x4a4110-0xef;const _0x5aa78e=_0x5aa7();let _0x342a3a=_0x5aa78e[_0x4a4110];return _0x342a3a;}module['exports']=n;
|
package/lib/cjs/locale/ja-JP.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x3286c0=_0x16f5;(function(_0x54bb14,_0x5495ad){const _0x18b883=_0x16f5,_0xf8fadc=_0x54bb14();while(!![]){try{const _0x3b7292=parseInt(_0x18b883(0x138))/0x1*(parseInt(_0x18b883(0x146))/0x2)+parseInt(_0x18b883(0x130))/0x3+-parseInt(_0x18b883(0x13a))/0x4*(-parseInt(_0x18b883(0x147))/0x5)+-parseInt(_0x18b883(0x142))/0x6+parseInt(_0x18b883(0x136))/0x7+-parseInt(_0x18b883(0x134))/0x8*(-parseInt(_0x18b883(0x145))/0x9)+-parseInt(_0x18b883(0x135))/0xa;if(_0x3b7292===_0x5495ad)break;else _0xf8fadc['push'](_0xf8fadc['shift']());}catch(_0x132f84){_0xf8fadc['push'](_0xf8fadc['shift']());}}}(_0x4202,0xa2665));function _0x16f5(_0x1a61fd,_0x37b6e1){_0x1a61fd=_0x1a61fd-0x121;const _0x420269=_0x4202();let _0x16f513=_0x420269[_0x1a61fd];return _0x16f513;}const e={'mcpStatus':{'disconnected':_0x3286c0(0x125),'connecting':'MCP\x20接続中...','connected':_0x3286c0(0x148),'failed':_0x3286c0(0x123),'retrying':_0x3286c0(0x13c),'unknown':_0x3286c0(0x13b),'unauthorized':'MCP:\x20認証されていません','sessionOccupied':'MCP:\x20セッションIDが使用中','networkError':'MCP:\x20ネットワークエラー','maxRetriesExceeded':_0x3286c0(0x139),'clickToConnect':_0x3286c0(0x12a),'clickToConfigure':_0x3286c0(0x13f)},'mcpConfig':{'title':_0x3286c0(0x132),'description':'MCPを設定してAIでスプレッドシートを操作','apiKey':_0x3286c0(0x12c),'apiKeyPlaceholder':'APIキーを入力してください','apiKeyHint':'APIキーはこのブラウザのローカルに保存されます','enableAuth':_0x3286c0(0x143),'enableAuthHint':_0x3286c0(0x133),'connectionInfo':_0x3286c0(0x12f),'mcpClientConfig':_0x3286c0(0x12f),'configInstructions':_0x3286c0(0x126),'configStepTitle':_0x3286c0(0x121),'configStep1':'以下のJSON設定をコピー','configStep2':'MCPクライアントの設定ファイルに設定を追加','configStep3':'MCPクライアントを再起動して設定を適用','sessionId':_0x3286c0(0x12d),'sessionIdDescription':'一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','authorizationDescription':'Bearerプレフィックス付きのAPIキー。','configParameters':'設定パラメータ:','maxRetries':_0x3286c0(0x128),'save':_0x3286c0(0x141),'saving':_0x3286c0(0x149),'note1':_0x3286c0(0x12b),'note2':_0x3286c0(0x124),'configSaved':'設定が正常に保存されました','configError':'設定の保存に失敗しました','apiApplyInfo':{'title':_0x3286c0(0x131),'description':'APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','univerAiLabel':_0x3286c0(0x137),'getStarted':'数秒でAPIキーを取得'},'validation':{'apiKeyRequired':_0x3286c0(0x122),'apiKeyTooShort':'APIキーは10文字以上である必要があります','invalidConfig':'無効な設定','invalidApiKey':'無効なAPIキーです。キーが正しいか確認してください'},'connectionStatus':{'disconnected':_0x3286c0(0x13d),'connecting':_0x3286c0(0x140),'connected':_0x3286c0(0x129),'failed':_0x3286c0(0x14a),'retrying':_0x3286c0(0x12e)},'connectionError':{'unauthorized':'認証に失敗しました。APIキーを確認してください','sessionOccupied':_0x3286c0(0x127),'networkError':_0x3286c0(0x13e),'maxRetriesExceeded':'最大再試行回数を超過しました。後でもう一度お試しください'}}};module[_0x3286c0(0x144)]=e;function _0x4202(){const _0x55b526=['74105bWOFze','MCP\x20接続済み','保存中...','接続失敗','設定手順:','APIキーは必須です','MCP\x20接続失敗','APIキーはローカルストレージに安全に保存されます','MCP\x20未接続','MCPクライアントの設定に次の設定を追加してください:','セッションIDが現在使用中です。後でもう一度お試しください','最大再試行回数','接続済み','クリックしてMCPに接続','設定の変更は直ちに有効になります','APIキー','セッションID','再試行中...','MCPクライアント設定','2941950OcSwWq','APIキーとは?','MCP設定','セキュアな接続のために認証を有効にする','384ijtitk','18364590Obkgzs','1970969OQMyLX','Univer\x20AIコンソール','3491TxYUCX','MCP:\x20最大再試行回数を超過','116GBaCXB','MCP\x20不明な状態','MCP\x20再試行中...','未接続','ネットワーク接続エラー。インターネット接続を確認してください','クリックしてMCPを設定','接続中...','設定を保存','2429166oshTVL','認証を有効にする','exports','38547jjeAPr','578SBqWtc'];_0x4202=function(){return _0x55b526;};return _0x4202();}
|