@univerjs-pro/mcp-ui 0.15.1 → 0.15.2-insiders.20260119-edc718c
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +7 -7
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x33578c=_0x2812;(function(_0x494621,_0x2fb932){const _0x5e85fd=_0x2812,_0x5d5d0f=_0x494621();while(!![]){try{const _0x3b3867=parseInt(_0x5e85fd(0xa8))/0x1*(parseInt(_0x5e85fd(0x101))/0x2)+-parseInt(_0x5e85fd(0x121))/0x3+parseInt(_0x5e85fd(0xf1))/0x4+parseInt(_0x5e85fd(0x1e4))/0x5+parseInt(_0x5e85fd(0x113))/0x6*(-parseInt(_0x5e85fd(0x202))/0x7)+parseInt(_0x5e85fd(0x1fc))/0x8+parseInt(_0x5e85fd(0x1ff))/0x9;if(_0x3b3867===_0x2fb932)break;else _0x5d5d0f['push'](_0x5d5d0f['shift']());}catch(_0x175c4d){_0x5d5d0f['push'](_0x5d5d0f['shift']());}}}(_0x1b3d,0x2da40));var ae=Object['defineProperty'],le=(_0x5d64f9,_0xcf3bc2,_0x118104)=>_0xcf3bc2 in _0x5d64f9?ae(_0x5d64f9,_0xcf3bc2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x118104}):_0x5d64f9[_0xcf3bc2]=_0x118104,I=(_0x5aa1e8,_0x154480,_0x104041)=>le(_0x5aa1e8,typeof _0x154480!=_0x33578c(0xe0)?_0x154480+'':_0x154480,_0x104041);Object[_0x33578c(0x1ee)](exports,Symbol[_0x33578c(0x15c)],{'value':_0x33578c(0xf2)});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:_0x54ef5a,..._0x3ba55e}){const _0xbf8ce6=_0x33578c,{icon:_0x504444,id:_0x18a142,className:_0x2c8138,extend:_0x57a2aa,..._0x9b2e17}=_0x3ba55e,_0x4de296=(_0xbf8ce6(0x193)+_0x18a142+'\x20'+(_0x2c8138||''))[_0xbf8ce6(0x1c3)](),_0x1b1579=d['useRef']('_'+de());return G(_0x504444,''+_0x18a142,{'defIds':_0x504444[_0xbf8ce6(0x1aa)],'idSuffix':_0x1b1579['current']},{'ref':_0x54ef5a,'className':_0x4de296,..._0x9b2e17},_0x57a2aa);}function G(_0x5ba677,_0x2883fa,_0x48fdfc,_0x1d0ee0,_0x3bd008){const _0x37d2a6=_0x33578c;return d[_0x37d2a6(0x1ca)](_0x5ba677['tag'],{'key':_0x2883fa,...ue(_0x5ba677,_0x48fdfc,_0x3bd008),..._0x1d0ee0},(ve(_0x5ba677,_0x48fdfc)[_0x37d2a6(0x19f)]||[])['map']((_0x22ab3f,_0xef6cf4)=>G(_0x22ab3f,_0x2883fa+'-'+_0x5ba677['tag']+'-'+_0xef6cf4,_0x48fdfc,void 0x0,_0x3bd008)));}function ue(_0x175dfc,_0x5a9170,_0x1eb391){const _0x3cce03=_0x33578c,_0xca8c85={..._0x175dfc['attrs']};_0x1eb391!=null&&_0x1eb391[_0x3cce03(0x10f)]&&_0xca8c85[_0x3cce03(0x11e)]===_0x3cce03(0x10f)&&(_0xca8c85[_0x3cce03(0x11e)]=_0x1eb391[_0x3cce03(0x10f)]),_0x175dfc[_0x3cce03(0x1fe)]===_0x3cce03(0x116)&&_0xca8c85['id']&&(_0xca8c85['id']=_0xca8c85['id']+_0x5a9170[_0x3cce03(0xcf)]),Object[_0x3cce03(0x131)](_0xca8c85)['forEach'](([_0x1da7f7,_0x222691])=>{const _0x2aa487=_0x3cce03;_0x1da7f7==='mask'&&typeof _0x222691==_0x2aa487(0x1da)&&(_0xca8c85[_0x1da7f7]=_0x222691[_0x2aa487(0x213)](/url\(#(.*)\)/,_0x2aa487(0x15f)+_0x5a9170['idSuffix']+')'));});const {defIds:_0x2d3d9d}=_0x5a9170;return!_0x2d3d9d||_0x2d3d9d[_0x3cce03(0xed)]===0x0||(_0x175dfc[_0x3cce03(0x1fe)]==='use'&&_0xca8c85['xlink:href']&&(_0xca8c85[_0x3cce03(0x9e)]=_0xca8c85[_0x3cce03(0x9e)]+_0x5a9170[_0x3cce03(0xcf)]),Object[_0x3cce03(0x131)](_0xca8c85)[_0x3cce03(0x14c)](([_0x51ee8d,_0x2f2c5f])=>{const _0x4039b4=_0x3cce03;typeof _0x2f2c5f==_0x4039b4(0x1da)&&(_0xca8c85[_0x51ee8d]=_0x2f2c5f[_0x4039b4(0x213)](/url\(#(.*)\)/,_0x4039b4(0x15f)+_0x5a9170[_0x4039b4(0xcf)]+')'));})),_0xca8c85;}function ve(_0x41c503,_0x52b36d){const _0x902622=_0x33578c;var _0x441738;const {defIds:_0x4a9f8f}=_0x52b36d;return!_0x4a9f8f||_0x4a9f8f['length']===0x0?_0x41c503:_0x41c503[_0x902622(0x1fe)]===_0x902622(0x103)&&((_0x441738=_0x41c503[_0x902622(0x19f)])!=null&&_0x441738[_0x902622(0xed)])?{..._0x41c503,'children':_0x41c503[_0x902622(0x19f)][_0x902622(0xbd)](_0x226585=>typeof _0x226585[_0x902622(0x1a9)]['id']==_0x902622(0x1da)&&_0x4a9f8f&&_0x4a9f8f[_0x902622(0x117)](_0x226585['attrs']['id'])?{..._0x226585,'attrs':{..._0x226585[_0x902622(0x1a9)],'id':_0x226585[_0x902622(0x1a9)]['id']+_0x52b36d[_0x902622(0xcf)]}}:_0x226585)}:_0x41c503;}function de(){const _0x267d1f=_0x33578c;return Math['random']()[_0x267d1f(0x16f)](0x24)[_0x267d1f(0x12c)](0x2,0x8);}_['displayName']=_0x33578c(0x1ed);function _0x2812(_0x4d67df,_0x21ae95){_0x4d67df=_0x4d67df-0x9b;const _0x1b3df3=_0x1b3d();let _0x2812cb=_0x1b3df3[_0x4d67df];return _0x2812cb;}const Ce={'tag':_0x33578c(0xa3),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x33578c(0xb0),'viewBox':'0\x200\x2016\x2016','width':_0x33578c(0x1e8),'height':_0x33578c(0x1e8)},'children':[{'tag':_0x33578c(0xf8),'attrs':{'fill':_0x33578c(0x196),'d':_0x33578c(0x176),'fillRule':_0x33578c(0x14d),'clipRule':_0x33578c(0x14d)}}]},H=d[_0x33578c(0x15d)](function(_0x5e64bd,_0x14bd4a){const _0x242bc7=_0x33578c;return d[_0x242bc7(0x1ca)](_,Object[_0x242bc7(0x191)]({},_0x5e64bd,{'id':_0x242bc7(0x155),'ref':_0x14bd4a,'icon':Ce}));});H[_0x33578c(0xc2)]=_0x33578c(0xa0);const ge={'tag':_0x33578c(0xa3),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x33578c(0xb0),'viewBox':_0x33578c(0x10e),'width':_0x33578c(0x1e8),'height':'1em'},'children':[{'tag':_0x33578c(0xf8),'attrs':{'fill':_0x33578c(0x196),'d':_0x33578c(0x100)}}]},B=d[_0x33578c(0x15d)](function(_0x2cb1ca,_0x513762){const _0x4aff0c=_0x33578c;return d[_0x4aff0c(0x1ca)](_,Object[_0x4aff0c(0x191)]({},_0x2cb1ca,{'id':'close-icon','ref':_0x513762,'icon':ge}));});B[_0x33578c(0xc2)]=_0x33578c(0xad);const fe={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x33578c(0xb0),'viewBox':_0x33578c(0x10e),'width':'1em','height':_0x33578c(0x1e8)},'children':[{'tag':'path','attrs':{'fill':_0x33578c(0x196),'d':_0x33578c(0x1bb)}},{'tag':'path','attrs':{'fill':_0x33578c(0x196),'d':_0x33578c(0x185)}},{'tag':'path','attrs':{'fill':_0x33578c(0x196),'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':'evenodd','clipRule':_0x33578c(0x14d)}}]},F=d[_0x33578c(0x15d)](function(_0x510e89,_0x57d0d3){const _0x376974=_0x33578c;return d[_0x376974(0x1ca)](_,Object['assign']({},_0x510e89,{'id':_0x376974(0xc1),'ref':_0x57d0d3,'icon':fe}));});F[_0x33578c(0xc2)]='HelpIcon';const pe={'tag':'svg','attrs':{'xmlns':_0x33578c(0x169),'fill':_0x33578c(0xb0),'viewBox':'0\x200\x2016\x2016','width':_0x33578c(0x1e8),'height':_0x33578c(0x1e8)},'children':[{'tag':'g','attrs':{'clipPath':_0x33578c(0xa9)},'children':[{'tag':'path','attrs':{'stroke':_0x33578c(0x196),'d':_0x33578c(0x149),'strokeLinecap':'round','strokeLinejoin':_0x33578c(0x20f),'strokeWidth':1.2}}]},{'tag':_0x33578c(0x103),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x33578c(0xf8),'attrs':{'fill':_0x33578c(0x1b7),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-icon_clip0_910_343']},Y=d[_0x33578c(0x15d)](function(_0x4e89c1,_0x776db){const _0xce0453=_0x33578c;return d['createElement'](_,Object[_0xce0453(0x191)]({},_0x4e89c1,{'id':_0xce0453(0x130),'ref':_0x776db,'icon':pe}));});Y[_0x33578c(0xc2)]=_0x33578c(0x15a);const he={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x33578c(0x1d6),'width':'1em','height':_0x33578c(0x1e8)},'children':[{'tag':'g','attrs':{'clipPath':_0x33578c(0xb8)},'children':[{'tag':'path','attrs':{'stroke':_0x33578c(0x196),'d':_0x33578c(0x109),'strokeLinecap':'round','strokeLinejoin':_0x33578c(0x20f),'strokeWidth':1.2}}]},{'tag':_0x33578c(0x103),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x33578c(0x10d)},'children':[{'tag':'path','attrs':{'fill':'white','d':_0x33578c(0x1a2),'transform':_0x33578c(0x20b)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},q=d[_0x33578c(0x15d)](function(_0x5cde8f,_0xd14ebc){const _0x3a580e=_0x33578c;return d[_0x3a580e(0x1ca)](_,Object['assign']({},_0x5cde8f,{'id':_0x3a580e(0x203),'ref':_0xd14ebc,'icon':he}));});q['displayName']=_0x33578c(0x1e3);function V(_0x1f7367){const _0x175f5e=_0x33578c;var _0xc7ce63,_0x189c80;const {mcpCoreConfig:_0x57e3a3,onSave:_0x33203d,loading:_0x4299c5=!0x1,config:_0x3d2f3d,connectionStatus$:_0x5a6fe5,connectionError$:_0x29edcc,currentApiKey$:_0x2fff80,currentSessionId$:_0x535681}=_0x1f7367,_0x1c43e4=v[_0x175f5e(0x1a3)](u[_0x175f5e(0x212)]),_0x253ae2=v['useObservable'](_0x5a6fe5,s[_0x175f5e(0x177)]['DISCONNECTED']),_0x17eafd=v['useObservable'](_0x29edcc,s[_0x175f5e(0xfc)]['NONE']),_0x54befd=v[_0x175f5e(0x151)](_0x535681,''),_0x374c36=v[_0x175f5e(0x151)](_0x2fff80,''),[_0x2ac4e4,_0x2e4c2c]=d[_0x175f5e(0x1af)](_0x374c36||''),_0x345f1a=!0x0,_0x49cecf=_0x3d2f3d[_0x175f5e(0x17d)]&&_0x57e3a3[_0x175f5e(0x197)]&&(_0x57e3a3[_0x175f5e(0x197)][_0x175f5e(0x117)]('univer.plus')||_0x57e3a3[_0x175f5e(0x197)][_0x175f5e(0x117)]('univer.ai')),_0x11301f=(_0xc7ce63=_0x57e3a3['mcpServerUrl'])==null?void 0x0:_0xc7ce63[_0x175f5e(0x117)](_0x175f5e(0x1ba)),_0x29ce86=(_0x189c80=_0x57e3a3[_0x175f5e(0x197)])==null?void 0x0:_0x189c80[_0x175f5e(0x117)](_0x175f5e(0x161)),_0x4aa4b8=_0x11301f?_0x175f5e(0xe6):_0x175f5e(0xfd),_0x150d41=_0x3d2f3d[_0x175f5e(0x17d)]&&(_0x11301f||_0x29ce86),[_0x551ecd,_0x2d99da]=d[_0x175f5e(0x1af)](!_0x2ac4e4[_0x175f5e(0x1c3)]()),_0x5a434c=(_0x2ec51c,_0x49c698)=>{const _0x3fb40d=_0x175f5e;if(_0x49c698===s['MCPConnectionError']['UNAUTHORIZED'])return _0x3fb40d(0xef);switch(_0x2ec51c){case s[_0x3fb40d(0x177)][_0x3fb40d(0xe5)]:return _0x3fb40d(0x1bf);case s['MCPConnectionStatus'][_0x3fb40d(0x1a6)]:case s['MCPConnectionStatus'][_0x3fb40d(0x1d3)]:return _0x3fb40d(0x126);case s[_0x3fb40d(0x177)][_0x3fb40d(0x133)]:return _0x3fb40d(0xef);default:return _0x3fb40d(0x19e);}},_0x46ec8e=(_0x3709ac,_0x3c9435)=>{const _0x363fdd=_0x175f5e;if(_0x3c9435===s[_0x363fdd(0xfc)][_0x363fdd(0xce)])return'univer-bg-red-500';switch(_0x3709ac){case s[_0x363fdd(0x177)][_0x363fdd(0xe5)]:return'univer-bg-green-500';case s[_0x363fdd(0x177)][_0x363fdd(0x1a6)]:case s[_0x363fdd(0x177)]['RETRYING']:return'univer-bg-blue-500';case s[_0x363fdd(0x177)][_0x363fdd(0x133)]:return'univer-bg-red-500';default:return'univer-bg-gray-500';}},_0x4a8152=_0xf833ec=>{const _0x1f551c=_0x175f5e;switch(_0xf833ec){case s[_0x1f551c(0x177)]['CONNECTED']:return _0x1c43e4['t'](_0x1f551c(0xbc));case s[_0x1f551c(0x177)]['CONNECTING']:return _0x1c43e4['t'](_0x1f551c(0x13f));case s['MCPConnectionStatus'][_0x1f551c(0x133)]:return _0x1c43e4['t'](_0x1f551c(0x17f));case s[_0x1f551c(0x177)][_0x1f551c(0x1d3)]:return _0x1c43e4['t']('mcpConfig.connectionStatus.retrying');default:return _0x1c43e4['t'](_0x1f551c(0x1f9));}},_0x623eb=_0x53bbec=>{const _0x4e725d=_0x175f5e;switch(_0x53bbec){case s['MCPConnectionError'][_0x4e725d(0xce)]:return _0x1c43e4['t'](_0x4e725d(0xe3));case s['MCPConnectionError'][_0x4e725d(0x1d1)]:return _0x1c43e4['t'](_0x4e725d(0x17c));case s['MCPConnectionError'][_0x4e725d(0x1d2)]:return _0x1c43e4['t'](_0x4e725d(0x211));case s[_0x4e725d(0xfc)]['MAX_RETRIES_EXCEEDED']:return _0x1c43e4['t'](_0x4e725d(0x1ab));default:return'';}},_0x36fab6=d[_0x175f5e(0x1e0)](()=>{const _0x9e9cb2=_0x175f5e,_0x2be9d9={..._0x57e3a3,'apiKey':_0x2ac4e4[_0x9e9cb2(0x1c3)](),'enableAuth':_0x345f1a};_0x33203d(_0x2be9d9);},[_0x57e3a3,_0x2ac4e4,_0x345f1a,_0x33203d]),_0x52a4ef=_0x2ac4e4[_0x175f5e(0x1c3)]()[_0x175f5e(0xed)]>0x0;return i[_0x175f5e(0xd1)]('div',{'className':_0x175f5e(0x170),'children':[i[_0x175f5e(0xaa)](_0x175f5e(0x195),{'className':_0x175f5e(0x13a),'children':i[_0x175f5e(0xd1)](_0x175f5e(0x195),{'className':_0x175f5e(0xc4),'children':[i['jsx'](_0x175f5e(0x195),{'className':_0x175f5e(0x9d),'children':i[_0x175f5e(0xaa)](_0x175f5e(0x15b),{'className':'univer-text-white','children':'⚙'})}),i[_0x175f5e(0xaa)](_0x175f5e(0x195),{'children':i['jsx']('p',{'className':_0x175f5e(0x1c1),'children':_0x1c43e4['t'](_0x175f5e(0x16c))})})]})}),i['jsxs']('div',{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[i[_0x175f5e(0xaa)](_0x175f5e(0x195),{'className':f[_0x175f5e(0xe7)](_0x175f5e(0xd0),_0x5a434c(_0x253ae2,_0x17eafd)),'children':i[_0x175f5e(0xd1)](_0x175f5e(0x195),{'className':_0x175f5e(0x1b6),'children':[i[_0x175f5e(0xaa)](_0x175f5e(0x195),{'className':f[_0x175f5e(0xe7)](_0x175f5e(0x1dc),_0x46ec8e(_0x253ae2,_0x17eafd))}),i['jsx']('span',{'className':_0x175f5e(0x1d8),'children':_0x4a8152(_0x253ae2)})]})}),_0x17eafd!==s[_0x175f5e(0xfc)][_0x175f5e(0x12b)]&&(_0x253ae2===s['MCPConnectionStatus'][_0x175f5e(0x133)]||_0x17eafd===s[_0x175f5e(0xfc)]['UNAUTHORIZED'])&&i[_0x175f5e(0xaa)](_0x175f5e(0x195),{'className':_0x175f5e(0x21b),'children':i[_0x175f5e(0xd1)](_0x175f5e(0x195),{'className':_0x175f5e(0x14a),'children':[i[_0x175f5e(0xaa)]('span',{'className':_0x175f5e(0xc7),'children':'⚠️'}),i[_0x175f5e(0xaa)]('p',{'className':_0x175f5e(0x164),'children':_0x623eb(_0x17eafd)})]})})]}),i[_0x175f5e(0xaa)](_0x175f5e(0x195),{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':i[_0x175f5e(0xd1)](_0x175f5e(0x195),{'className':_0x175f5e(0x174),'children':[i[_0x175f5e(0xd1)]('div',{'className':'univer-space-y-2','children':[i['jsxs']('label',{'className':_0x175f5e(0x210),'children':[i['jsx'](_0x175f5e(0x15b),{'children':'🔑'}),'\x20',_0x1c43e4['t'](_0x175f5e(0xd5)),i['jsx'](_0x175f5e(0x15b),{'className':'univer-text-red-500','children':'*'}),_0x49cecf&&i[_0x175f5e(0xaa)]('a',{'className':_0x175f5e(0x12f),'title':_0x1c43e4['t'](_0x175f5e(0x122)),'role':_0x175f5e(0xe2),'onClick':()=>_0x2d99da(!0x0),'children':i[_0x175f5e(0xaa)](F,{})})]}),i['jsx'](f[_0x175f5e(0x1c8)],{'type':_0x175f5e(0x104),'placeholder':_0x1c43e4['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x2ac4e4,'disabled':_0x4299c5,'autoComplete':_0x175f5e(0x1bd),'onChange':_0x2e4c2c}),i[_0x175f5e(0xaa)]('p',{'className':_0x175f5e(0x1a1),'children':_0x1c43e4['t'](_0x175f5e(0x18c))})]}),_0x49cecf&&_0x551ecd&&i[_0x175f5e(0xd1)](_0x175f5e(0x195),{'className':_0x175f5e(0x20c),'children':[i[_0x175f5e(0xaa)]('a',{'className':_0x175f5e(0x9f),'role':_0x175f5e(0xe2),'onClick':()=>_0x2d99da(!0x1),'children':i[_0x175f5e(0xaa)](B,{'className':_0x175f5e(0x1b0)})}),i[_0x175f5e(0xd1)](_0x175f5e(0x195),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[i[_0x175f5e(0xaa)]('div',{'className':_0x175f5e(0x21c),'children':i[_0x175f5e(0xaa)](_0x175f5e(0x15b),{'className':_0x175f5e(0xdb),'children':'🚀'})}),i[_0x175f5e(0xd1)](_0x175f5e(0x195),{'className':_0x175f5e(0xb6),'children':[i[_0x175f5e(0xaa)]('h4',{'className':_0x175f5e(0x189),'children':_0x1c43e4['t'](_0x175f5e(0x122))}),i[_0x175f5e(0xaa)]('p',{'className':_0x175f5e(0xd6),'children':_0x1c43e4['t'](_0x175f5e(0x14f))}),i['jsx']('div',{'className':_0x175f5e(0x157),'children':_0x150d41&&i[_0x175f5e(0xd1)]('a',{'className':_0x175f5e(0x10b),'href':_0x4aa4b8,'target':_0x175f5e(0x163),'rel':_0x175f5e(0x1ad),'children':[i[_0x175f5e(0xaa)](_0x175f5e(0x15b),{'children':'🤖'}),_0x1c43e4['t'](_0x175f5e(0x20e)),i[_0x175f5e(0xaa)](_0x175f5e(0x15b),{'className':_0x175f5e(0x18b),'children':'↗'})]})}),i[_0x175f5e(0xd1)](_0x175f5e(0x195),{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x1c43e4['t'](_0x175f5e(0x21d))]})]})]})]}),_0x3d2f3d[_0x175f5e(0x17d)]&&i[_0x175f5e(0xd1)](_0x175f5e(0x195),{'className':_0x175f5e(0x1a8),'children':[i['jsxs']('h4',{'className':_0x175f5e(0x162),'children':[i[_0x175f5e(0xaa)](_0x175f5e(0x15b),{'children':'🔗'}),'\x20',_0x1c43e4['t'](_0x175f5e(0x1a0))]}),i['jsxs']('div',{'className':_0x175f5e(0x199),'children':[i[_0x175f5e(0xd1)](_0x175f5e(0x195),{'className':_0x175f5e(0xcd),'children':[i[_0x175f5e(0xaa)]('p',{'className':_0x175f5e(0xc0),'children':_0x1c43e4['t']('mcpConfig.configInstructions')}),i[_0x175f5e(0xd1)]('div',{'className':_0x175f5e(0xb7),'children':[i[_0x175f5e(0xaa)]('div',{'className':_0x175f5e(0x115),'children':_0x1c43e4['t'](_0x175f5e(0x112))}),i[_0x175f5e(0xd1)](_0x175f5e(0x195),{'className':_0x175f5e(0xff),'children':[i[_0x175f5e(0xd1)](_0x175f5e(0x195),{'className':_0x175f5e(0x1b6),'children':[i[_0x175f5e(0xaa)]('span',{'className':_0x175f5e(0x16b),'children':'1'}),_0x1c43e4['t'](_0x175f5e(0x128))]}),i[_0x175f5e(0xd1)](_0x175f5e(0x195),{'className':_0x175f5e(0x1b6),'children':[i[_0x175f5e(0xaa)](_0x175f5e(0x15b),{'className':_0x175f5e(0x16b),'children':'2'}),_0x1c43e4['t'](_0x175f5e(0x1cd))]}),i['jsxs'](_0x175f5e(0x195),{'className':_0x175f5e(0x1b6),'children':[i[_0x175f5e(0xaa)]('span',{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'3'}),_0x1c43e4['t']('mcpConfig.configStep3')]})]})]})]}),i[_0x175f5e(0xd1)]('div',{'className':_0x175f5e(0xb7),'children':[i[_0x175f5e(0xaa)](_0x175f5e(0x195),{'className':_0x175f5e(0x115),'children':_0x175f5e(0x201)}),i[_0x175f5e(0xaa)](_0x175f5e(0x195),{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':i[_0x175f5e(0xaa)](_0x175f5e(0x132),{'className':_0x175f5e(0x1a5),'children':JSON['stringify']({'mcpServers':{'univer':{'url':_0x175f5e(0xdf)+(_0x54befd||_0x175f5e(0x11b)),'type':_0x175f5e(0xa2),'headers':{'Authorization':'Bearer\x20'+(_0x2ac4e4||_0x175f5e(0x1cc))}}}},null,0x2)})})]}),i[_0x175f5e(0xd1)](_0x175f5e(0x195),{'className':_0x175f5e(0xcd),'children':[i[_0x175f5e(0xaa)]('div',{'className':_0x175f5e(0x115),'children':_0x1c43e4['t'](_0x175f5e(0xd9))}),i[_0x175f5e(0xd1)]('div',{'className':'univer-space-y-2','children':[i[_0x175f5e(0xd1)](_0x175f5e(0x195),{'className':_0x175f5e(0x20a),'children':[i['jsx'](_0x175f5e(0x195),{'className':_0x175f5e(0xfe)}),i[_0x175f5e(0xd1)]('div',{'className':'univer-min-w-0\x20univer-flex-1','children':[i[_0x175f5e(0xaa)](_0x175f5e(0x195),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x175f5e(0x219)}),i[_0x175f5e(0xaa)]('div',{'className':_0x175f5e(0x1a1),'children':_0x1c43e4['t'](_0x175f5e(0xa7))})]})]}),i[_0x175f5e(0xd1)]('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[i[_0x175f5e(0xaa)](_0x175f5e(0x195),{'className':_0x175f5e(0xfe)}),i['jsxs'](_0x175f5e(0x195),{'className':'univer-min-w-0\x20univer-flex-1','children':[i[_0x175f5e(0xaa)](_0x175f5e(0x195),{'className':_0x175f5e(0x13c),'children':_0x175f5e(0x105)}),i[_0x175f5e(0xaa)](_0x175f5e(0x195),{'className':_0x175f5e(0x1a1),'children':_0x1c43e4['t'](_0x175f5e(0xa6))})]})]})]})]})]})]}),i[_0x175f5e(0xaa)](f['Button'],{'onClick':_0x36fab6,'disabled':!_0x52a4ef||_0x4299c5,'className':'univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','children':_0x4299c5?i['jsxs'](_0x175f5e(0x15b),{'className':_0x175f5e(0x1b6),'children':[i[_0x175f5e(0xaa)](_0x175f5e(0x15b),{'children':'⟲'}),_0x1c43e4['t'](_0x175f5e(0x1ec))]}):i[_0x175f5e(0xd1)](_0x175f5e(0x15b),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x175f5e(0xaa)](H,{}),_0x1c43e4['t'](_0x175f5e(0x194))]})}),i[_0x175f5e(0xaa)]('div',{'className':_0x175f5e(0x1b9),'children':i[_0x175f5e(0xd1)]('div',{'className':'univer-flex\x20univer-gap-3','children':[i[_0x175f5e(0xaa)](_0x175f5e(0x15b),{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),i[_0x175f5e(0xd1)]('div',{'className':_0x175f5e(0x154),'children':[i[_0x175f5e(0xaa)]('div',{'className':_0x175f5e(0x182),'children':_0x175f5e(0xcb)}),i[_0x175f5e(0xd1)](_0x175f5e(0x195),{'children':['•',_0x1c43e4['t']('mcpConfig.note1')]}),i['jsxs'](_0x175f5e(0x195),{'children':['•',_0x1c43e4['t']('mcpConfig.note2')]})]})]})})]})})]});}const P=_0x33578c(0x118),L={'showDeveloperTools':!0x1,'showStatus':!0x0};var me=Object[_0x33578c(0xda)],xe=(_0x5d94ae,_0x5237e2,_0xe39ebe,_0x5533f9)=>{const _0x47a653=_0x33578c;for(var _0x55eb77=_0x5533f9>0x1?void 0x0:_0x5533f9?me(_0x5237e2,_0xe39ebe):_0x5237e2,_0x36a1b2=_0x5d94ae[_0x47a653(0xed)]-0x1,_0x353729;_0x36a1b2>=0x0;_0x36a1b2--)(_0x353729=_0x5d94ae[_0x36a1b2])&&(_0x55eb77=_0x353729(_0x55eb77)||_0x55eb77);return _0x55eb77;},g=(_0x429287,_0x1c2f26)=>(_0x304cca,_0xe69c77)=>_0x1c2f26(_0x304cca,_0xe69c77,_0x429287);const O=_0x33578c(0x1f5),D=_0x33578c(0x125);exports['MCPConfigUIController']=class extends u['Disposable']{constructor(_0x3f189e,_0x3efb18,_0x45b58f,_0x255e9c,_0x988cc8,_0x5cace7,_0x13d80c,_0x3607e1,_0x40fb30,_0x1b6ba0){const _0x1c4045=_0x33578c;super(),I(this,_0x1c4045(0x187),new M[(_0x1c4045(0x150))](!0x1)),I(this,_0x1c4045(0x16e),new M['BehaviorSubject']({})),I(this,_0x1c4045(0xea),new M[(_0x1c4045(0x150))]({})),I(this,_0x1c4045(0x1d9),new M[(_0x1c4045(0x150))]('')),I(this,_0x1c4045(0x11a),async _0x4f0940=>{const _0x3880cd=_0x1c4045;var _0x28465c,_0x2e4629;this[_0x3880cd(0x187)][_0x3880cd(0x186)](!0x0);try{const _0x35974e=await this['_validateConfig'](_0x4f0940);if(!_0x35974e['isValid']){this[_0x3880cd(0x1b5)]['show']({'type':f['MessageType'][_0x3880cd(0xcc)],'content':_0x35974e[_0x3880cd(0x141)]||this[_0x3880cd(0x12d)]['t']('mcpConfig.validation.invalidConfig')});return;}_0x4f0940[_0x3880cd(0x140)]?await this['_localStorageService'][_0x3880cd(0x1f6)](O,_0x4f0940[_0x3880cd(0x140)][_0x3880cd(0x1c3)]()):await this[_0x3880cd(0xe8)][_0x3880cd(0x10c)](O),this['_apiKey$'][_0x3880cd(0x186)](((_0x28465c=_0x4f0940[_0x3880cd(0x140)])==null?void 0x0:_0x28465c[_0x3880cd(0x1c3)]())||''),this[_0x3880cd(0x134)]['__setCustomHeaders']({'Authorization':_0x3880cd(0x1bc)+((_0x2e4629=_0x4f0940[_0x3880cd(0x140)])==null?void 0x0:_0x2e4629[_0x3880cd(0x1c3)]())}),this[_0x3880cd(0x1b5)][_0x3880cd(0x214)]({'type':f[_0x3880cd(0x1ae)][_0x3880cd(0xbe)],'content':this[_0x3880cd(0x12d)]['t'](_0x3880cd(0x14b))}),setTimeout(()=>{const _0x277c42=_0x3880cd;this[_0x277c42(0x142)][_0x277c42(0x1d0)](D);},0x320);}catch(_0x28a43d){this[_0x3880cd(0xa5)][_0x3880cd(0x111)](_0x3880cd(0x1b3),_0x28a43d),this[_0x3880cd(0x1b5)][_0x3880cd(0x214)]({'type':f[_0x3880cd(0x1ae)]['Error'],'content':this[_0x3880cd(0x12d)]['t'](_0x3880cd(0x1d7))});}finally{this['_loading$'][_0x3880cd(0x186)](!0x1);}}),(this['_injector']=_0x3f189e,this[_0x1c4045(0x1b2)]=_0x3efb18,this['_configService']=_0x45b58f,this['_localStorageService']=_0x255e9c,this[_0x1c4045(0x142)]=_0x988cc8,this['_messageService']=_0x5cace7,this[_0x1c4045(0xa1)]=_0x13d80c,this[_0x1c4045(0x12d)]=_0x3607e1,this[_0x1c4045(0xa5)]=_0x40fb30,this['_mcpConnectionController']=_0x1b6ba0,this[_0x1c4045(0x106)](),this[_0x1c4045(0x1ac)](),this['_registerComponent']());}['showConfigPanel'](){const _0x454623=_0x33578c,_0x36737d=this[_0x454623(0x143)][_0x454623(0x209)](P);_0x36737d!=null&&_0x36737d['showDeveloperTools']&&this[_0x454623(0x142)]['open']({'id':D,'title':{'title':this[_0x454623(0x12d)]['t'](_0x454623(0xe9))},'children':{'label':_0x454623(0x9b)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x264fbd=_0x454623;this[_0x264fbd(0x142)]['close'](D);}});}[_0x33578c(0xac)](){const _0x43e45a=_0x33578c;return this['_mcpCoreConfig$'][_0x43e45a(0x188)];}[_0x33578c(0x13e)](){const _0x3e633a=_0x33578c;this[_0x3e633a(0x15e)](this['_componentManager'][_0x3e633a(0x11c)](_0x3e633a(0x9b),this[_0x3e633a(0x127)]()));}[_0x33578c(0x127)](){const _0x2f98d5=_0x33578c;return v[_0x2f98d5(0x1be)](()=>{const _0x18dfc8=_0x2f98d5;var _0x12a507,_0x58c5d3,_0x3a2db0;return i[_0x18dfc8(0xaa)](V,{'config':this[_0x18dfc8(0xea)]['value'],'mcpCoreConfig':this[_0x18dfc8(0x16e)][_0x18dfc8(0x188)],'currentApiKey$':this[_0x18dfc8(0x1d9)],'onSave':this[_0x18dfc8(0x11a)],'loading':this['_loading$'][_0x18dfc8(0x188)],'connectionStatus$':(_0x12a507=this[_0x18dfc8(0x134)])==null?void 0x0:_0x12a507[_0x18dfc8(0x1dd)],'connectionError$':(_0x58c5d3=this['_mcpConnectionController'])==null?void 0x0:_0x58c5d3[_0x18dfc8(0x156)],'currentSessionId$':(_0x3a2db0=this['_mcpConnectionController'])==null?void 0x0:_0x3a2db0[_0x18dfc8(0x108)]});},this['_injector']);}[_0x33578c(0x106)](){const _0x34259b=_0x33578c;this[_0x34259b(0x15e)](this[_0x34259b(0x143)]['subscribeConfigValue$'](s[_0x34259b(0x1f4)])[_0x34259b(0x180)](_0x2188c0=>{const _0x545ffe=_0x34259b;this['_mcpCoreConfig$'][_0x545ffe(0x186)](_0x2188c0||{});}));const _0x55a484=this[_0x34259b(0x143)][_0x34259b(0x209)](s[_0x34259b(0x1f4)]);this[_0x34259b(0x16e)][_0x34259b(0x186)](_0x55a484||{}),this[_0x34259b(0x15e)](this[_0x34259b(0x143)][_0x34259b(0x153)](P)[_0x34259b(0x180)](_0x4189c3=>{const _0xb98944=_0x34259b;this[_0xb98944(0xea)][_0xb98944(0x186)](_0x4189c3||{});}));const _0x5017ab=this['_configService'][_0x34259b(0x209)](P);this[_0x34259b(0xea)][_0x34259b(0x186)](_0x5017ab||{});}async[_0x33578c(0x1ac)](){const _0x580d69=_0x33578c,_0x488970=this[_0x580d69(0x143)][_0x580d69(0x209)](P);if(!(_0x488970!=null&&_0x488970[_0x580d69(0x17d)]))return;const _0x223d08=await this[_0x580d69(0xe8)][_0x580d69(0xb3)](O);_0x223d08&&(this[_0x580d69(0x134)][_0x580d69(0x1cb)]({'Authorization':_0x580d69(0x1bc)+_0x223d08}),this[_0x580d69(0x1d9)][_0x580d69(0x186)](_0x223d08));}async[_0x33578c(0x173)](_0x5d133e){const _0x3bb124=_0x33578c;if(!_0x5d133e[_0x3bb124(0x140)]||_0x5d133e[_0x3bb124(0x140)][_0x3bb124(0x1c3)]()[_0x3bb124(0xed)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x3bb124(0x12d)]['t'](_0x3bb124(0x13b))};if(_0x5d133e[_0x3bb124(0x140)][_0x3bb124(0x1c3)]()[_0x3bb124(0xed)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x3bb124(0x12d)]['t'](_0x3bb124(0x215))};try{const _0x106ac2=await this[_0x3bb124(0x183)][_0x3bb124(0x144)](s[_0x3bb124(0x148)])['validateApiKey'](_0x5d133e[_0x3bb124(0x140)][_0x3bb124(0x1c3)]());return _0x106ac2[_0x3bb124(0x1eb)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x106ac2['error']||this[_0x3bb124(0x12d)]['t'](_0x3bb124(0x207))};}catch(_0x5c95f7){return console[_0x3bb124(0x1df)]('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0x5c95f7),{'isValid':!0x0};}}},exports['MCPConfigUIController']=xe([g(0x0,u['Inject'](u[_0x33578c(0x19a)])),g(0x1,v[_0x33578c(0x206)]),g(0x2,u[_0x33578c(0x200)]),g(0x3,u[_0x33578c(0x1e6)]),g(0x4,v[_0x33578c(0x9c)]),g(0x5,v[_0x33578c(0x120)]),g(0x6,u[_0x33578c(0x107)](v[_0x33578c(0x1fa)])),g(0x7,u[_0x33578c(0x107)](u[_0x33578c(0x212)])),g(0x8,u[_0x33578c(0x102)]),g(0x9,u[_0x33578c(0x107)](s['MCPConnectionController']))],exports[_0x33578c(0x10a)]);function _0x1b3d(){const _0x36ca18=['univer.plus','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','Bearer\x20','off','connectInjector','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','已连接','univer-text-sm\x20univer-text-gray-500','Tooltip','trim','Configuration\x20saved\x20successfully','Connected','Failed\x20to\x20save\x20configuration','DependentOn','Input','add','createElement','__setCustomHeaders','<API_KEY>','mcpConfig.configStep2','univer-flex\x20univer-items-center','MCP\x20Disconnected','close','SESSION_ID_OCCUPIED','NETWORK_ERROR','RETRYING','enableAutoConnect','univer-text-green-500','0\x200\x2017\x2016','mcpConfig.configError','univer-text-sm\x20univer-font-medium','_apiKey$','string','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','univer-size-2\x20univer-rounded-full','connectionStatus$','Configuration\x20Parameters:','warn','useCallback','点击配置\x20MCP','mcpStatus.clickToConnect','OnLineIcon','571435IffVhZ','_connectionController','ILocalStorageService','Get\x20your\x20API\x20key\x20in\x20seconds','1em','Max\x20Retries','连接中...','isValid','mcpConfig.saving','UniverIcon','defineProperty','Invalid\x20configuration','会话\x20ID\x20已被占用,请稍后再试','MCP\x20Connecting...','配置保存失败','Retrying...','MCP_PLUGIN_CONFIG_KEY','mcp.apiKey','setItem','MCP\x20Unknown\x20Status','MAX_RETRIES_EXCEEDED','mcpConfig.connectionStatus.disconnected','ComponentManager','BUTTON','1340408VQawhB','配置更改将立即生效','tag','1257156ezKfQL','IConfigService','MCP\x20Configuration','3227ywXvvm','on-line-icon','保存中...','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','IUIPartsService','mcpConfig.validation.invalidApiKey','MCP\x20客户端配置','getConfig','univer-flex\x20univer-items-start\x20univer-gap-3','translate(.97)','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','API\x20密钥不能为空','mcpConfig.apiApplyInfo.univerAiLabel','round','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','mcpConfig.connectionError.networkError','LocaleService','replace','show','mcpConfig.validation.apiKeyTooShort','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','超出最大重试次数,请稍后再试','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univer_session_id:','Disconnected','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','mcpConfig.apiApplyInfo.getStarted','MCPConfigPanel','IDialogService','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','xlink:href','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','_componentManager','http','svg','_commandService','_logService','mcpConfig.authorizationDescription','mcpConfig.sessionIdDescription','4127pOyjNk','url(#off-line-icon_clip0_910_343)','jsx','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','getCurrentConfig','CloseIcon','WebSocketService','CommandType','none','Enable\x20Authentication','MCP\x20配置','getItem','Configuration\x20Steps:','MCP:\x20Unauthorized','univer-flex-1','univer-space-y-2','url(#on-line-icon_clip0_910_349)','has','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','将以下配置添加到您的\x20MCP\x20客户端设置中:','mcpConfig.connectionStatus.connected','map','Success','请输入您的\x20API\x20密钥','univer-text-xs\x20univer-text-gray-600','help-icon','displayName','HEADER_MENU','univer-flex\x20univer-items-center\x20univer-gap-3','Univer\x20AI\x20Console','MCP\x20连接中...','univer-shrink-0\x20univer-text-red-500','_config','带有\x20Bearer\x20前缀的\x20API\x20密钥。','registerComponent','Configuration\x20Notes:','Error','univer-space-y-3','UNAUTHORIZED','idSuffix','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','jsxs','Saving...','_handleConfigure','MenuIcon','mcpConfig.apiKey','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','Connecting...','Univer\x20AI\x20控制台','mcpConfig.configParameters','getOwnPropertyDescriptor','univer-text-blue-600','点击连接\x20MCP','MCP:\x20Session\x20ID\x20Occupied','配置参数:','https://mcp.univer.ai/mcp/?univer_session_id=','symbol','MCP:\x20网络错误','button','mcpConfig.connectionError.unauthorized','配置\x20MCP\x20使用\x20AI\x20操作电子表格','CONNECTED','https://console.univer.plus','clsx','_localStorageService','mcpConfig.title','_config$','MCP:\x20会话\x20ID\x20已被占用','enUS','length','配置无效','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','API\x20密钥长度至少需要\x2010\x20位','1230308nWRIyz','Module','MCPConnectionUIController','_initializeMenus','COMMAND','DISCONNECTED','几秒钟内获取您的\x20API\x20密钥','path','MCPStatusDisplay','MCP\x20重连中...','MCPUIMenuController','MCPConnectionError','https://console.univer.ai','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','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','10NonYqp','ILogService','defs','text','Authorization:','_initConfigSync','Inject','sessionId$','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','MCPConfigUIController','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','on-line-icon_clip0_910_349','0\x200\x2016\x2016','colorChannel1','BuiltInUIPart','error','mcpConfig.configStepTitle','3018ECIFhH','MCP:\x20Max\x20Retries\x20Exceeded','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','mask','includes','mcp-ui.config','Plugin','_handleConfigSave','<SESSION_ID>','register','配置步骤:','fill','MCP\x20Client\x20Configuration','IMessageService','992721sXCCNE','mcpConfig.apiApplyInfo.title','mcpStatus.connected','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','mcp-config-dialog','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','_createConfigPanelComponent','mcpConfig.configStep1','ICommandService','_initAutoConnect','NONE','substring','_localeService','保存配置','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','off-line-icon','entries','pre','FAILED','_mcpConnectionController','zhCN','Session\x20ID','什么是\x20API\x20密钥?','MCP\x20Connection\x20Failed','push','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','mcpConfig.validation.apiKeyRequired','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','API\x20Key','_registerComponent','mcpConfig.connectionStatus.connecting','apiKey','errorMessage','_dialogService','_configService','get','重连中...','ISocketService','UniverMCPUIPlugin','MCPConnectionController','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','univer-flex\x20univer-items-start\x20univer-gap-2','mcpConfig.configSaved','forEach','evenodd','权限验证失败,请检查您的\x20API\x20密钥','mcpConfig.apiApplyInfo.description','BehaviorSubject','useObservable','Enter\x20your\x20API\x20key','subscribeConfigValue$','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','check-mark-icon','connectionError$','univer-flex\x20univer-flex-wrap\x20univer-gap-2','您的\x20API\x20密钥安全存储在本地存储中','MCP\x20Retrying...','OffLineIcon','span','toStringTag','forwardRef','disposeWithMe','url(#$1','复制以下\x20JSON\x20配置','univer.ai','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','_blank','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','univer-mr-2\x20univer-flex\x20univer-text-xl','_initializeCommands','_initStatusComponent','将配置添加到您的\x20MCP\x20客户端设置文件中','http://www.w3.org/2000/svg','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','mcpConfig.description','mcpStatus.maxRetriesExceeded','_mcpCoreConfig$','toString','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','MenuItemType','未连接','_validateConfig','univer-space-y-5','MCP\x20状态未知','M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','MCPConnectionStatus','MCP_UI_PLUGIN','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','mcpConfig.connectionError.sessionOccupied','showDeveloperTools','Click\x20to\x20configure\x20MCP','mcpConfig.connectionStatus.failed','subscribe','RibbonStartGroup','univer-font-medium','_injector','_menuManagerService','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','next','_loading$','value','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','UniverMCPPlugin','univer-text-gray-400','mcpConfig.apiKeyHint','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','启用身份验证','showStatus','assign','bottom','univerjs-icon\x20univerjs-icon-','mcpConfig.save','div','currentColor','mcpServerUrl','您的\x20API\x20密钥将在此浏览器中本地存储','univer-space-y-4','Injector','showConfigPanel','启用身份验证以获得安全连接','\x20-\x20','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','children','mcpConfig.connectionInfo','univer-text-xs\x20univer-text-gray-500','M0\x200H16V16H0z','useDependency','API\x20密钥无效,请检查密钥是否正确','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','CONNECTING','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','attrs','defIds','mcpConfig.connectionError.maxRetriesExceeded','_loadStoredApiKey','noopener\x20noreferrer','MessageType','useState','univer-size-4','mcpStatus.sessionOccupied','_uiPartsService','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','Copy\x20the\x20JSON\x20configuration\x20below','_messageService','univer-flex\x20univer-items-center\x20univer-gap-2','white','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3'];_0x1b3d=function(){return _0x36ca18;};return _0x1b3d();}const b={'id':'mcp-ui.command.openConfigPanel','type':u[_0x33578c(0xaf)][_0x33578c(0xf5)],'handler':async(_0x4d41df,_0x520a19)=>(_0x4d41df[_0x33578c(0x144)](exports['MCPConfigUIController'])[_0x33578c(0x19b)](),!0x0)};function Z(_0x54d975,_0xc732f3){const _0x3a85ad=_0x33578c;switch(_0x54d975){case s[_0x3a85ad(0x177)][_0x3a85ad(0xf6)]:return'mcpStatus.disconnected';case s[_0x3a85ad(0x177)][_0x3a85ad(0x1a6)]:return'mcpStatus.connecting';case s[_0x3a85ad(0x177)][_0x3a85ad(0xe5)]:return _0x3a85ad(0x123);case s[_0x3a85ad(0x177)][_0x3a85ad(0x133)]:switch(_0xc732f3){case s[_0x3a85ad(0xfc)]['UNAUTHORIZED']:return'mcpStatus.unauthorized';case s[_0x3a85ad(0xfc)][_0x3a85ad(0x1d1)]:return _0x3a85ad(0x1b1);case s['MCPConnectionError'][_0x3a85ad(0x1d2)]:return'mcpStatus.networkError';case s[_0x3a85ad(0xfc)][_0x3a85ad(0x1f8)]:return _0x3a85ad(0x16d);default:return'mcpStatus.failed';}case s['MCPConnectionStatus'][_0x3a85ad(0x1d3)]:return'mcpStatus.retrying';default:return'mcpStatus.unknown';}}function Se(_0x3a1322,_0x2f47fd,_0x1fbf03,_0x320d67=!0x0){const _0x2dc5fa=_0x33578c,_0x26452b=Z(_0x3a1322,_0x2f47fd),_0x4d9829=_0x1fbf03['t'](_0x26452b);return _0x320d67?_0x3a1322===s['MCPConnectionStatus'][_0x2dc5fa(0xf6)]&&_0x2f47fd===s[_0x2dc5fa(0xfc)][_0x2dc5fa(0xce)]?_0x4d9829+_0x2dc5fa(0x19d)+_0x1fbf03['t']('mcpStatus.clickToConfigure'):_0x3a1322===s['MCPConnectionStatus'][_0x2dc5fa(0xe5)]?''+_0x4d9829:_0x3a1322===s['MCPConnectionStatus'][_0x2dc5fa(0xf6)]||_0x3a1322===s[_0x2dc5fa(0x177)][_0x2dc5fa(0x133)]?_0x4d9829+_0x2dc5fa(0x19d)+_0x1fbf03['t'](_0x2dc5fa(0x1e2)):_0x4d9829:_0x4d9829;}function Pe(_0x45cd57){const _0x4c850b=_0x33578c;switch(_0x45cd57){case s[_0x4c850b(0x177)][_0x4c850b(0xe5)]:return _0x4c850b(0x1d5);case s['MCPConnectionStatus'][_0x4c850b(0x1a6)]:case s[_0x4c850b(0x177)]['RETRYING']:return'univer-text-yellow-500';case s[_0x4c850b(0x177)][_0x4c850b(0x133)]:case s[_0x4c850b(0x177)][_0x4c850b(0xf6)]:return'univer-text-red-500';default:return'univer-text-gray-500';}}function W(_0x866573){const _0x4455f0=_0x33578c,{status$:_0x3a17c5,error$:_0x3bd802,onConfigure:_0x2d67a9,showClickable:_0x1734c0=!0x0}=_0x866573,_0x32fb47=v['useObservable'](_0x3a17c5,s[_0x4455f0(0x177)][_0x4455f0(0xf6)]),_0x343b30=v[_0x4455f0(0x151)](_0x3bd802,s[_0x4455f0(0xfc)][_0x4455f0(0x12b)]),_0x208db6=v[_0x4455f0(0x1a3)](u[_0x4455f0(0x212)]),_0x229258=_0x32fb47===s['MCPConnectionStatus'][_0x4455f0(0xe5)];_0x32fb47===s[_0x4455f0(0x177)][_0x4455f0(0x1a6)]||s[_0x4455f0(0x177)]['RETRYING'];const _0x44b012=_0x208db6['t'](Z(_0x32fb47,_0x343b30)),_0x4f30d3=Se(_0x32fb47,_0x343b30,_0x208db6,_0x1734c0),_0x15832f=Pe(_0x32fb47),_0x16fe75=_0x229258?i[_0x4455f0(0xaa)](q,{}):i[_0x4455f0(0xaa)](Y,{}),_0x32774e=d['useCallback'](()=>{_0x1734c0&&_0x2d67a9&&_0x2d67a9();},[_0x1734c0,_0x2d67a9]);function _0x764d6e(){const _0x3f5811=_0x4455f0;return i[_0x3f5811(0xd1)](_0x3f5811(0x195),{'className':f[_0x3f5811(0xe7)](_0x3f5811(0x1ce),_0x1734c0&&_0x2d67a9&&'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'),'role':'button','onClick':_0x1734c0&&_0x2d67a9?_0x32774e:void 0x0,'children':[i['jsx'](_0x3f5811(0x195),{'className':f[_0x3f5811(0xe7)](_0x3f5811(0x165),_0x15832f),'children':_0x16fe75}),i[_0x3f5811(0xaa)](_0x3f5811(0x195),{'className':_0x3f5811(0xba),'children':_0x44b012})]});}return i[_0x4455f0(0xaa)](f[_0x4455f0(0x1c2)],{'title':_0x4f30d3,'placement':_0x4455f0(0x192),'children':_0x764d6e()});}var Ie=Object[_0x33578c(0xda)],_e=(_0x21258a,_0x55b331,_0x10565c,_0x5176f1)=>{for(var _0x42d29d=_0x5176f1>0x1?void 0x0:_0x5176f1?Ie(_0x55b331,_0x10565c):_0x55b331,_0x16dce9=_0x21258a['length']-0x1,_0x1c3dcb;_0x16dce9>=0x0;_0x16dce9--)(_0x1c3dcb=_0x21258a[_0x16dce9])&&(_0x42d29d=_0x1c3dcb(_0x42d29d)||_0x42d29d);return _0x42d29d;},N=(_0x1b15f5,_0x53ee73)=>(_0x30eb24,_0x5290a0)=>_0x53ee73(_0x30eb24,_0x5290a0,_0x1b15f5);exports[_0x33578c(0xf3)]=class extends u['Disposable']{constructor(_0x596067,_0x37edf5,_0x3577fb,_0x527acd){const _0x1d3176=_0x33578c;super(),this[_0x1d3176(0x183)]=_0x596067,this[_0x1d3176(0x1e5)]=_0x37edf5,this[_0x1d3176(0x1b2)]=_0x3577fb,this[_0x1d3176(0x143)]=_0x527acd,this[_0x1d3176(0x12a)](),this[_0x1d3176(0x167)]();}[_0x33578c(0x12a)](){const _0xc4ead9=_0x33578c,_0x3e4aed=this['_configService']['getConfig'](P);_0x3e4aed!=null&&_0x3e4aed[_0xc4ead9(0x17d)]&&(this[_0xc4ead9(0x1e5)][_0xc4ead9(0x1d4)]=!0x1);}[_0x33578c(0x167)](){const _0x1ebf18=_0x33578c,_0x40974d=this[_0x1ebf18(0x143)][_0x1ebf18(0x209)](P);(_0x40974d==null?void 0x0:_0x40974d[_0x1ebf18(0x190)])!==!0x1&&this['disposeWithMe'](this[_0x1ebf18(0x1b2)][_0x1ebf18(0xca)](v[_0x1ebf18(0x110)][_0x1ebf18(0xc3)],()=>{const _0x425836=_0x1ebf18;var _0x108b20;return v[_0x425836(0x1be)](ye({'status$':this[_0x425836(0x1e5)][_0x425836(0x1dd)],'error$':this[_0x425836(0x1e5)]['connectionError$'],'onConfigure':()=>this[_0x425836(0xd3)](),'showClickable':(_0x108b20=_0x40974d==null?void 0x0:_0x40974d['showDeveloperTools'])!=null?_0x108b20:!0x1}),this['_injector']);}));}[_0x33578c(0xd3)](){const _0x50e1d1=_0x33578c;this[_0x50e1d1(0x183)][_0x50e1d1(0x144)](exports[_0x50e1d1(0x10a)])[_0x50e1d1(0x19b)]();}},exports['MCPConnectionUIController']=_e([N(0x0,u[_0x33578c(0x107)](u[_0x33578c(0x19a)])),N(0x1,u['Inject'](s['MCPConnectionController'])),N(0x2,v[_0x33578c(0x206)]),N(0x3,u[_0x33578c(0x200)])],exports[_0x33578c(0xf3)]);function ye(_0x5da6fa){const {status$:_0x2f1d1f,error$:_0x399efd,onConfigure:_0x180990,showClickable:_0xade210}=_0x5da6fa;return function(){const _0x5aca9c=_0x2812;return i[_0x5aca9c(0xaa)](W,{'status$':_0x2f1d1f,'error$':_0x399efd,'onConfigure':_0x180990,'showClickable':_0xade210});};}function Me(_0x2d26d0){const _0x4569ab=_0x33578c;return{'id':b['id'],'type':v[_0x4569ab(0x171)][_0x4569ab(0x1fb)],'icon':_0x4569ab(0xd4),'title':_0x4569ab(0xe9),'tooltip':_0x4569ab(0xe9)};}const Ne={[v[_0x33578c(0x181)]['OTHERS']]:{[b['id']]:{'order':0xa,'menuItemFactory':Me}}};var be=Object['getOwnPropertyDescriptor'],je=(_0x2170b9,_0x5dc82a,_0x7720c0,_0x562fec)=>{const _0x42f4af=_0x33578c;for(var _0x458974=_0x562fec>0x1?void 0x0:_0x562fec?be(_0x5dc82a,_0x7720c0):_0x5dc82a,_0x6366d=_0x2170b9[_0x42f4af(0xed)]-0x1,_0x307392;_0x6366d>=0x0;_0x6366d--)(_0x307392=_0x2170b9[_0x6366d])&&(_0x458974=_0x307392(_0x458974)||_0x458974);return _0x458974;},z=(_0x316d85,_0x1496cc)=>(_0x21b32b,_0x1149ec)=>_0x1496cc(_0x21b32b,_0x1149ec,_0x316d85);exports['MCPUIMenuController']=class extends u['Disposable']{constructor(_0x2d390f,_0x411151){const _0x4ff992=_0x33578c;super(),this[_0x4ff992(0xa4)]=_0x2d390f,this[_0x4ff992(0x184)]=_0x411151,this[_0x4ff992(0x166)](),this[_0x4ff992(0xf4)]();}[_0x33578c(0x166)](){const _0x2f85a1=_0x33578c;[b][_0x2f85a1(0x14c)](_0x358c46=>{const _0x2ef880=_0x2f85a1;this[_0x2ef880(0x15e)](this[_0x2ef880(0xa4)]['registerCommand'](_0x358c46));});}['_initializeMenus'](){const _0x4cfc59=_0x33578c;this[_0x4cfc59(0x184)]['mergeMenu'](Ne);}},exports[_0x33578c(0xfb)]=je([z(0x0,u[_0x33578c(0x129)]),z(0x1,v['IMenuManagerService'])],exports['MCPUIMenuController']);const Ee={'mcpStatus':{'disconnected':_0x33578c(0x1cf),'connecting':_0x33578c(0x1f1),'connected':'MCP\x20Connected','failed':_0x33578c(0x138),'retrying':_0x33578c(0x159),'unknown':_0x33578c(0x1f7),'unauthorized':_0x33578c(0xb5),'sessionOccupied':_0x33578c(0xdd),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x33578c(0x114),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x33578c(0x17e)},'mcpConfig':{'title':_0x33578c(0x201),'description':_0x33578c(0x1b8),'apiKey':_0x33578c(0x13d),'apiKeyPlaceholder':_0x33578c(0x152),'apiKeyHint':_0x33578c(0x124),'enableAuth':_0x33578c(0xb1),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x33578c(0x11f),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x33578c(0xb4),'configStep1':_0x33578c(0x1b4),'configStep2':_0x33578c(0x18e),'configStep3':_0x33578c(0x216),'sessionId':_0x33578c(0x136),'sessionIdDescription':_0x33578c(0x179),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x33578c(0x1de),'maxRetries':_0x33578c(0x1e9),'save':'Save\x20Configuration','saving':_0x33578c(0xd2),'note1':_0x33578c(0x205),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x33578c(0x1c4),'configError':_0x33578c(0x1c6),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x33578c(0x218),'univerAiLabel':_0x33578c(0xc5),'getStarted':_0x33578c(0x1e7)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x33578c(0x1db),'invalidConfig':_0x33578c(0x1ef),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x33578c(0x21a),'connecting':_0x33578c(0xd7),'connected':_0x33578c(0x1c5),'failed':'Connection\x20Failed','retrying':_0x33578c(0x1f3)},'connectionError':{'unauthorized':_0x33578c(0x17a),'sessionOccupied':_0x33578c(0x1a7),'networkError':_0x33578c(0xab),'maxRetriesExceeded':_0x33578c(0x17b)}}},we={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':_0x33578c(0xc6),'connected':'MCP\x20已连接','failed':'MCP\x20连接失败','retrying':_0x33578c(0xfa),'unknown':_0x33578c(0x175),'unauthorized':'MCP:\x20未授权','sessionOccupied':_0x33578c(0xeb),'networkError':_0x33578c(0xe1),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x33578c(0xdc),'clickToConfigure':_0x33578c(0x1e1)},'mcpConfig':{'title':_0x33578c(0xb2),'description':_0x33578c(0xe4),'apiKey':'API\x20密钥','apiKeyPlaceholder':_0x33578c(0xbf),'apiKeyHint':_0x33578c(0x198),'enableAuth':_0x33578c(0x18f),'enableAuthHint':_0x33578c(0x19c),'connectionInfo':_0x33578c(0x208),'mcpClientConfig':_0x33578c(0x208),'configInstructions':_0x33578c(0xbb),'configStepTitle':_0x33578c(0x11d),'configStep1':_0x33578c(0x160),'configStep2':_0x33578c(0x168),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':'会话ID','sessionIdDescription':_0x33578c(0x18d),'authorizationDescription':_0x33578c(0xc9),'configParameters':_0x33578c(0xde),'maxRetries':'最大重试次数','save':_0x33578c(0x12e),'saving':_0x33578c(0x204),'note1':_0x33578c(0x1fd),'note2':_0x33578c(0x158),'configSaved':'配置保存成功','configError':_0x33578c(0x1f2),'apiApplyInfo':{'title':_0x33578c(0x137),'description':_0x33578c(0x16a),'univerAiLabel':_0x33578c(0xd8),'getStarted':_0x33578c(0xf7)},'validation':{'apiKeyRequired':_0x33578c(0x20d),'apiKeyTooShort':_0x33578c(0xf0),'invalidConfig':_0x33578c(0xee),'invalidApiKey':_0x33578c(0x1a4)},'connectionStatus':{'disconnected':_0x33578c(0x172),'connecting':_0x33578c(0x1ea),'connected':_0x33578c(0x1c0),'failed':'连接失败','retrying':_0x33578c(0x145)},'connectionError':{'unauthorized':_0x33578c(0x14e),'sessionOccupied':_0x33578c(0x1f0),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x33578c(0x217)}}};var Ae=Object[_0x33578c(0x1ee)],Oe=Object[_0x33578c(0xda)],De=(_0x1f81da,_0x2f1a28,_0x488c8b)=>_0x2f1a28 in _0x1f81da?Ae(_0x1f81da,_0x2f1a28,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x488c8b}):_0x1f81da[_0x2f1a28]=_0x488c8b,Ue=(_0x2fd725,_0x4c4783,_0x14d8ea,_0x5dd5ce)=>{const _0x2607ea=_0x33578c;for(var _0xecf7ef=_0x5dd5ce>0x1?void 0x0:_0x5dd5ce?Oe(_0x4c4783,_0x14d8ea):_0x4c4783,_0x358b92=_0x2fd725[_0x2607ea(0xed)]-0x1,_0x3aa523;_0x358b92>=0x0;_0x358b92--)(_0x3aa523=_0x2fd725[_0x358b92])&&(_0xecf7ef=_0x3aa523(_0xecf7ef)||_0xecf7ef);return _0xecf7ef;},y=(_0x4b3c2d,_0x36506a)=>(_0x11c51a,_0x1f1bb6)=>_0x36506a(_0x11c51a,_0x1f1bb6,_0x4b3c2d),$e=(_0x17d09d,_0x11ace5,_0x416644)=>De(_0x17d09d,_0x11ace5+'',_0x416644);exports[_0x33578c(0x147)]=class extends u[_0x33578c(0x119)]{constructor(_0x11f129=L,_0x507578,_0x3e1c5d,_0x2f1223,_0x509c6a,_0xe11aa9){const _0x558a1c=_0x33578c;super(),this['_config']=_0x11f129,this[_0x558a1c(0x183)]=_0x507578,this['_configService']=_0x3e1c5d,this[_0x558a1c(0x1b2)]=_0x2f1223,this['_localStorageService']=_0x509c6a,this[_0x558a1c(0x12d)]=_0xe11aa9;const {..._0x301747}=u['merge']({},L,this[_0x558a1c(0xc8)]);this[_0x558a1c(0x143)]['setConfig'](P,_0x301747);}async['onStarting'](){const _0x11626e=_0x33578c,_0xc0c04e=[[exports['MCPConnectionUIController']],[exports[_0x11626e(0x10a)]],[exports[_0x11626e(0xfb)]]];this['_injector'][_0x11626e(0xb9)](A[_0x11626e(0x146)])||_0xc0c04e[_0x11626e(0x139)]([A['ISocketService'],{'useClass':A[_0x11626e(0xae)]}]),_0xc0c04e[_0x11626e(0x14c)](_0x2b9c7f=>this[_0x11626e(0x183)][_0x11626e(0x1c9)](_0x2b9c7f)),this[_0x11626e(0x183)][_0x11626e(0x144)](exports[_0x11626e(0xf3)]),this[_0x11626e(0x183)][_0x11626e(0x144)](exports['MCPConfigUIController']),this[_0x11626e(0x183)][_0x11626e(0x144)](exports['MCPUIMenuController']);}},$e(exports[_0x33578c(0x147)],'pluginName',_0x33578c(0x178)),exports[_0x33578c(0x147)]=Ue([u[_0x33578c(0x1c7)](s[_0x33578c(0x18a)]),y(0x1,u[_0x33578c(0x107)](u[_0x33578c(0x19a)])),y(0x2,u[_0x33578c(0x200)]),y(0x3,v[_0x33578c(0x206)]),y(0x4,u[_0x33578c(0x1e6)]),y(0x5,u[_0x33578c(0x107)](u['LocaleService']))],exports[_0x33578c(0x147)]),exports[_0x33578c(0x9b)]=V,exports[_0x33578c(0xf9)]=W,exports['OpenMCPConfigPanelCommand']=b,exports[_0x33578c(0xec)]=Ee,exports[_0x33578c(0x135)]=we;
|
|
1
|
+
'use strict';const _0x50dde5=_0x5e38;(function(_0x1cb6fd,_0xfa5670){const _0x5c0aa3=_0x5e38,_0x3ee286=_0x1cb6fd();while(!![]){try{const _0x203c4b=-parseInt(_0x5c0aa3(0x2b2))/0x1*(-parseInt(_0x5c0aa3(0x193))/0x2)+parseInt(_0x5c0aa3(0x1e8))/0x3+parseInt(_0x5c0aa3(0x2d4))/0x4+-parseInt(_0x5c0aa3(0x243))/0x5*(parseInt(_0x5c0aa3(0x2c4))/0x6)+parseInt(_0x5c0aa3(0x196))/0x7+-parseInt(_0x5c0aa3(0x1d6))/0x8+-parseInt(_0x5c0aa3(0x1f8))/0x9;if(_0x203c4b===_0xfa5670)break;else _0x3ee286['push'](_0x3ee286['shift']());}catch(_0x528b44){_0x3ee286['push'](_0x3ee286['shift']());}}}(_0x2456,0x46178));var ae=Object[_0x50dde5(0x23d)],le=(_0x59f977,_0x5d90e8,_0x374655)=>_0x5d90e8 in _0x59f977?ae(_0x59f977,_0x5d90e8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x374655}):_0x59f977[_0x5d90e8]=_0x374655,I=(_0xc9b1c,_0x3f4d10,_0x3ce379)=>le(_0xc9b1c,typeof _0x3f4d10!=_0x50dde5(0x1fd)?_0x3f4d10+'':_0x3f4d10,_0x3ce379);Object[_0x50dde5(0x23d)](exports,Symbol[_0x50dde5(0x2a3)],{'value':_0x50dde5(0x251)});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:_0x17ed3c,..._0x500982}){const _0x45de65=_0x50dde5,{icon:_0x3ba0a0,id:_0x34978f,className:_0x5e09af,extend:_0x534cf6,..._0x14fa42}=_0x500982,_0x5580b6=(_0x45de65(0x22e)+_0x34978f+'\x20'+(_0x5e09af||''))['trim'](),_0x1a743a=d['useRef']('_'+de());return G(_0x3ba0a0,''+_0x34978f,{'defIds':_0x3ba0a0[_0x45de65(0x179)],'idSuffix':_0x1a743a[_0x45de65(0x29f)]},{'ref':_0x17ed3c,'className':_0x5580b6,..._0x14fa42},_0x534cf6);}function _0x5e38(_0x612e62,_0x32affa){_0x612e62=_0x612e62-0x167;const _0x24561b=_0x2456();let _0x5e3843=_0x24561b[_0x612e62];return _0x5e3843;}function G(_0x3f8830,_0x37f2b6,_0x11e82e,_0x1ab7ff,_0x165eaa){const _0x1b4f46=_0x50dde5;return d[_0x1b4f46(0x1fa)](_0x3f8830[_0x1b4f46(0x2c8)],{'key':_0x37f2b6,...ue(_0x3f8830,_0x11e82e,_0x165eaa),..._0x1ab7ff},(ve(_0x3f8830,_0x11e82e)[_0x1b4f46(0x170)]||[])[_0x1b4f46(0x27a)]((_0x22ce46,_0x4c5473)=>G(_0x22ce46,_0x37f2b6+'-'+_0x3f8830['tag']+'-'+_0x4c5473,_0x11e82e,void 0x0,_0x165eaa)));}function ue(_0x458ff0,_0x2a2a8c,_0x2c140b){const _0x59e648=_0x50dde5,_0x3532d7={..._0x458ff0['attrs']};_0x2c140b!=null&&_0x2c140b['colorChannel1']&&_0x3532d7[_0x59e648(0x25e)]==='colorChannel1'&&(_0x3532d7['fill']=_0x2c140b[_0x59e648(0x22f)]),_0x458ff0[_0x59e648(0x2c8)]===_0x59e648(0x2c3)&&_0x3532d7['id']&&(_0x3532d7['id']=_0x3532d7['id']+_0x2a2a8c[_0x59e648(0x218)]),Object['entries'](_0x3532d7)[_0x59e648(0x2eb)](([_0x2f3b60,_0x5d70ef])=>{const _0x298cd9=_0x59e648;_0x2f3b60===_0x298cd9(0x2c3)&&typeof _0x5d70ef=='string'&&(_0x3532d7[_0x2f3b60]=_0x5d70ef[_0x298cd9(0x275)](/url\(#(.*)\)/,'url(#$1'+_0x2a2a8c[_0x298cd9(0x218)]+')'));});const {defIds:_0x53978c}=_0x2a2a8c;return!_0x53978c||_0x53978c[_0x59e648(0x23f)]===0x0||(_0x458ff0['tag']==='use'&&_0x3532d7['xlink:href']&&(_0x3532d7[_0x59e648(0x24c)]=_0x3532d7[_0x59e648(0x24c)]+_0x2a2a8c[_0x59e648(0x218)]),Object[_0x59e648(0x1ca)](_0x3532d7)[_0x59e648(0x2eb)](([_0x2575dd,_0xd05863])=>{const _0x177e5e=_0x59e648;typeof _0xd05863==_0x177e5e(0x199)&&(_0x3532d7[_0x2575dd]=_0xd05863[_0x177e5e(0x275)](/url\(#(.*)\)/,_0x177e5e(0x240)+_0x2a2a8c[_0x177e5e(0x218)]+')'));})),_0x3532d7;}function ve(_0x56f039,_0x4f1ec1){const _0x5aadce=_0x50dde5;var _0x42ba64;const {defIds:_0x25f24d}=_0x4f1ec1;return!_0x25f24d||_0x25f24d[_0x5aadce(0x23f)]===0x0?_0x56f039:_0x56f039['tag']===_0x5aadce(0x202)&&((_0x42ba64=_0x56f039[_0x5aadce(0x170)])!=null&&_0x42ba64[_0x5aadce(0x23f)])?{..._0x56f039,'children':_0x56f039[_0x5aadce(0x170)]['map'](_0xd388b1=>typeof _0xd388b1[_0x5aadce(0x1dc)]['id']==_0x5aadce(0x199)&&_0x25f24d&&_0x25f24d[_0x5aadce(0x2e1)](_0xd388b1[_0x5aadce(0x1dc)]['id'])?{..._0xd388b1,'attrs':{..._0xd388b1[_0x5aadce(0x1dc)],'id':_0xd388b1[_0x5aadce(0x1dc)]['id']+_0x4f1ec1['idSuffix']}}:_0xd388b1)}:_0x56f039;}function de(){const _0x511147=_0x50dde5;return Math[_0x511147(0x290)]()[_0x511147(0x198)](0x24)[_0x511147(0x176)](0x2,0x8);}_[_0x50dde5(0x1d3)]='UniverIcon';const Ce={'tag':'svg','attrs':{'xmlns':_0x50dde5(0x280),'fill':_0x50dde5(0x231),'viewBox':'0\x200\x2016\x2016','width':_0x50dde5(0x1df),'height':'1em'},'children':[{'tag':_0x50dde5(0x17c),'attrs':{'fill':_0x50dde5(0x23e),'d':_0x50dde5(0x23a),'fillRule':_0x50dde5(0x1e4),'clipRule':_0x50dde5(0x1e4)}}]},H=d[_0x50dde5(0x270)](function(_0x43987a,_0x2866b5){const _0x2570f6=_0x50dde5;return d[_0x2570f6(0x1fa)](_,Object[_0x2570f6(0x1ac)]({},_0x43987a,{'id':_0x2570f6(0x263),'ref':_0x2866b5,'icon':Ce}));});H[_0x50dde5(0x1d3)]=_0x50dde5(0x2a7);const ge={'tag':_0x50dde5(0x249),'attrs':{'xmlns':_0x50dde5(0x280),'fill':_0x50dde5(0x231),'viewBox':_0x50dde5(0x1db),'width':_0x50dde5(0x1df),'height':_0x50dde5(0x1df)},'children':[{'tag':_0x50dde5(0x17c),'attrs':{'fill':_0x50dde5(0x23e),'d':_0x50dde5(0x1eb)}}]},B=d[_0x50dde5(0x270)](function(_0x20e519,_0x332bd2){const _0x4e0e87=_0x50dde5;return d['createElement'](_,Object[_0x4e0e87(0x1ac)]({},_0x20e519,{'id':_0x4e0e87(0x186),'ref':_0x332bd2,'icon':ge}));});B[_0x50dde5(0x1d3)]=_0x50dde5(0x2a9);const fe={'tag':_0x50dde5(0x249),'attrs':{'xmlns':_0x50dde5(0x280),'fill':_0x50dde5(0x231),'viewBox':_0x50dde5(0x1db),'width':'1em','height':'1em'},'children':[{'tag':_0x50dde5(0x17c),'attrs':{'fill':_0x50dde5(0x23e),'d':_0x50dde5(0x200)}},{'tag':_0x50dde5(0x17c),'attrs':{'fill':_0x50dde5(0x23e),'d':_0x50dde5(0x2aa)}},{'tag':'path','attrs':{'fill':_0x50dde5(0x23e),'d':_0x50dde5(0x1ae),'fillRule':_0x50dde5(0x1e4),'clipRule':'evenodd'}}]},F=d['forwardRef'](function(_0x4dd5e4,_0x31da9b){const _0x173c55=_0x50dde5;return d[_0x173c55(0x1fa)](_,Object[_0x173c55(0x1ac)]({},_0x4dd5e4,{'id':_0x173c55(0x2b8),'ref':_0x31da9b,'icon':fe}));});F[_0x50dde5(0x1d3)]='HelpIcon';const pe={'tag':'svg','attrs':{'xmlns':_0x50dde5(0x280),'fill':_0x50dde5(0x231),'viewBox':_0x50dde5(0x1db),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x50dde5(0x254)},'children':[{'tag':_0x50dde5(0x17c),'attrs':{'stroke':_0x50dde5(0x23e),'d':_0x50dde5(0x22c),'strokeLinecap':_0x50dde5(0x24f),'strokeLinejoin':_0x50dde5(0x24f),'strokeWidth':1.2}}]},{'tag':_0x50dde5(0x202),'attrs':{},'children':[{'tag':_0x50dde5(0x244),'attrs':{'id':_0x50dde5(0x230)},'children':[{'tag':_0x50dde5(0x17c),'attrs':{'fill':_0x50dde5(0x296),'d':_0x50dde5(0x1c8)}}]}]}],'defIds':[_0x50dde5(0x230)]},Y=d[_0x50dde5(0x270)](function(_0x5416b4,_0x49fa32){const _0xc5a3c4=_0x50dde5;return d[_0xc5a3c4(0x1fa)](_,Object[_0xc5a3c4(0x1ac)]({},_0x5416b4,{'id':_0xc5a3c4(0x1ab),'ref':_0x49fa32,'icon':pe}));});Y[_0x50dde5(0x1d3)]=_0x50dde5(0x1c6);const he={'tag':_0x50dde5(0x249),'attrs':{'xmlns':_0x50dde5(0x280),'fill':_0x50dde5(0x231),'viewBox':_0x50dde5(0x287),'width':'1em','height':_0x50dde5(0x1df)},'children':[{'tag':'g','attrs':{'clipPath':_0x50dde5(0x2dd)},'children':[{'tag':_0x50dde5(0x17c),'attrs':{'stroke':_0x50dde5(0x23e),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x50dde5(0x24f),'strokeLinejoin':_0x50dde5(0x24f),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x50dde5(0x244),'attrs':{'id':_0x50dde5(0x291)},'children':[{'tag':_0x50dde5(0x17c),'attrs':{'fill':_0x50dde5(0x296),'d':'M0\x200H16V16H0z','transform':_0x50dde5(0x1f7)}}]}]}],'defIds':[_0x50dde5(0x291)]},q=d[_0x50dde5(0x270)](function(_0xa970e8,_0x5f1c18){const _0x24a612=_0x50dde5;return d['createElement'](_,Object[_0x24a612(0x1ac)]({},_0xa970e8,{'id':_0x24a612(0x2ad),'ref':_0x5f1c18,'icon':he}));});q[_0x50dde5(0x1d3)]=_0x50dde5(0x1d2);function V(_0xb5ba23){const _0x2bb0b5=_0x50dde5;var _0x4b0990,_0x1e776f;const {mcpCoreConfig:_0x309b17,onSave:_0x2fdbc,loading:_0x3ef54d=!0x1,config:_0x5314d3,connectionStatus$:_0x4671b0,connectionError$:_0x3b3ae2,currentApiKey$:_0x3220ea,currentSessionId$:_0x2e23cc}=_0xb5ba23,_0x5c7b0e=v['useDependency'](u[_0x2bb0b5(0x2a2)]),_0x5311fb=v[_0x2bb0b5(0x2b7)](_0x4671b0,s['MCPConnectionStatus'][_0x2bb0b5(0x229)]),_0x42b61f=v['useObservable'](_0x3b3ae2,s[_0x2bb0b5(0x1bd)][_0x2bb0b5(0x269)]),_0x55a17c=v[_0x2bb0b5(0x2b7)](_0x2e23cc,''),_0x463f8b=v[_0x2bb0b5(0x2b7)](_0x3220ea,''),[_0x3c0790,_0xc6b301]=d[_0x2bb0b5(0x27f)](_0x463f8b||''),_0x51a700=!0x0,_0x21323b=_0x5314d3[_0x2bb0b5(0x1ec)]&&_0x309b17[_0x2bb0b5(0x2ce)]&&(_0x309b17[_0x2bb0b5(0x2ce)][_0x2bb0b5(0x2e1)]('univer.plus')||_0x309b17['mcpServerUrl']['includes'](_0x2bb0b5(0x2d5))),_0x4e2d82=(_0x4b0990=_0x309b17[_0x2bb0b5(0x2ce)])==null?void 0x0:_0x4b0990[_0x2bb0b5(0x2e1)](_0x2bb0b5(0x21c)),_0x43ed08=(_0x1e776f=_0x309b17[_0x2bb0b5(0x2ce)])==null?void 0x0:_0x1e776f[_0x2bb0b5(0x2e1)](_0x2bb0b5(0x2d5)),_0x1e0b08=_0x4e2d82?'https://console.univer.plus':_0x2bb0b5(0x261),_0x577885=_0x5314d3[_0x2bb0b5(0x1ec)]&&(_0x4e2d82||_0x43ed08),[_0x289eb5,_0x53bf1f]=d[_0x2bb0b5(0x27f)](!_0x3c0790[_0x2bb0b5(0x262)]()),_0x331994=(_0x133d95,_0x23a806)=>{const _0x2c1f24=_0x2bb0b5;if(_0x23a806===s['MCPConnectionError'][_0x2c1f24(0x19d)])return _0x2c1f24(0x1a9);switch(_0x133d95){case s[_0x2c1f24(0x2d8)][_0x2c1f24(0x26d)]:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case s['MCPConnectionStatus'][_0x2c1f24(0x2d6)]:case s[_0x2c1f24(0x2d8)][_0x2c1f24(0x27d)]:return _0x2c1f24(0x1e0);case s[_0x2c1f24(0x2d8)][_0x2c1f24(0x278)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return _0x2c1f24(0x1dd);}},_0x2b431f=(_0x4c852d,_0x18a99d)=>{const _0x2109e7=_0x2bb0b5;if(_0x18a99d===s['MCPConnectionError'][_0x2109e7(0x19d)])return _0x2109e7(0x1d5);switch(_0x4c852d){case s[_0x2109e7(0x2d8)]['CONNECTED']:return _0x2109e7(0x1b3);case s[_0x2109e7(0x2d8)][_0x2109e7(0x2d6)]:case s[_0x2109e7(0x2d8)][_0x2109e7(0x27d)]:return _0x2109e7(0x28b);case s[_0x2109e7(0x2d8)][_0x2109e7(0x278)]:return'univer-bg-red-500';default:return'univer-bg-gray-500';}},_0x55aacd=_0x7e678f=>{const _0x2578bd=_0x2bb0b5;switch(_0x7e678f){case s['MCPConnectionStatus'][_0x2578bd(0x26d)]:return _0x5c7b0e['t']('mcpConfig.connectionStatus.connected');case s['MCPConnectionStatus'][_0x2578bd(0x2d6)]:return _0x5c7b0e['t'](_0x2578bd(0x1bb));case s[_0x2578bd(0x2d8)][_0x2578bd(0x278)]:return _0x5c7b0e['t'](_0x2578bd(0x276));case s['MCPConnectionStatus']['RETRYING']:return _0x5c7b0e['t'](_0x2578bd(0x2bd));default:return _0x5c7b0e['t'](_0x2578bd(0x2e8));}},_0x46b466=_0x5a81d8=>{const _0x28ad5c=_0x2bb0b5;switch(_0x5a81d8){case s[_0x28ad5c(0x1bd)][_0x28ad5c(0x19d)]:return _0x5c7b0e['t'](_0x28ad5c(0x1d1));case s['MCPConnectionError'][_0x28ad5c(0x279)]:return _0x5c7b0e['t'](_0x28ad5c(0x178));case s['MCPConnectionError']['NETWORK_ERROR']:return _0x5c7b0e['t'](_0x28ad5c(0x1e9));case s['MCPConnectionError'][_0x28ad5c(0x28c)]:return _0x5c7b0e['t'](_0x28ad5c(0x225));default:return'';}},_0x34593d=d[_0x2bb0b5(0x2a1)](()=>{const _0x53867f=_0x2bb0b5,_0x5adb85={..._0x309b17,'apiKey':_0x3c0790[_0x53867f(0x262)](),'enableAuth':_0x51a700};_0x2fdbc(_0x5adb85);},[_0x309b17,_0x3c0790,_0x51a700,_0x2fdbc]),_0x10a1d8=_0x3c0790[_0x2bb0b5(0x262)]()[_0x2bb0b5(0x23f)]>0x0;return i[_0x2bb0b5(0x16f)](_0x2bb0b5(0x22d),{'className':_0x2bb0b5(0x19f),'children':[i[_0x2bb0b5(0x1fe)](_0x2bb0b5(0x22d),{'className':_0x2bb0b5(0x286),'children':i[_0x2bb0b5(0x16f)](_0x2bb0b5(0x22d),{'className':_0x2bb0b5(0x1b6),'children':[i[_0x2bb0b5(0x1fe)]('div',{'className':_0x2bb0b5(0x215),'children':i[_0x2bb0b5(0x1fe)](_0x2bb0b5(0x1e6),{'className':_0x2bb0b5(0x232),'children':'⚙'})}),i[_0x2bb0b5(0x1fe)]('div',{'children':i[_0x2bb0b5(0x1fe)]('p',{'className':_0x2bb0b5(0x21e),'children':_0x5c7b0e['t']('mcpConfig.description')})})]})}),i[_0x2bb0b5(0x16f)](_0x2bb0b5(0x22d),{'className':_0x2bb0b5(0x2e0),'children':[i[_0x2bb0b5(0x1fe)](_0x2bb0b5(0x22d),{'className':f['clsx'](_0x2bb0b5(0x1be),_0x331994(_0x5311fb,_0x42b61f)),'children':i[_0x2bb0b5(0x16f)](_0x2bb0b5(0x22d),{'className':_0x2bb0b5(0x250),'children':[i[_0x2bb0b5(0x1fe)](_0x2bb0b5(0x22d),{'className':f[_0x2bb0b5(0x226)](_0x2bb0b5(0x25d),_0x2b431f(_0x5311fb,_0x42b61f))}),i[_0x2bb0b5(0x1fe)](_0x2bb0b5(0x1e6),{'className':'univer-text-sm\x20univer-font-medium','children':_0x55aacd(_0x5311fb)})]})}),_0x42b61f!==s[_0x2bb0b5(0x1bd)][_0x2bb0b5(0x269)]&&(_0x5311fb===s[_0x2bb0b5(0x2d8)][_0x2bb0b5(0x278)]||_0x42b61f===s[_0x2bb0b5(0x1bd)]['UNAUTHORIZED'])&&i[_0x2bb0b5(0x1fe)](_0x2bb0b5(0x22d),{'className':_0x2bb0b5(0x1d9),'children':i[_0x2bb0b5(0x16f)](_0x2bb0b5(0x22d),{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[i[_0x2bb0b5(0x1fe)](_0x2bb0b5(0x1e6),{'className':_0x2bb0b5(0x1c9),'children':'⚠️'}),i[_0x2bb0b5(0x1fe)]('p',{'className':_0x2bb0b5(0x1e7),'children':_0x46b466(_0x42b61f)})]})})]}),i[_0x2bb0b5(0x1fe)](_0x2bb0b5(0x22d),{'className':_0x2bb0b5(0x23b),'children':i['jsxs']('div',{'className':_0x2bb0b5(0x27c),'children':[i[_0x2bb0b5(0x16f)](_0x2bb0b5(0x22d),{'className':_0x2bb0b5(0x2c0),'children':[i[_0x2bb0b5(0x16f)](_0x2bb0b5(0x1a5),{'className':_0x2bb0b5(0x2be),'children':[i['jsx'](_0x2bb0b5(0x1e6),{'children':'🔑'}),'\x20',_0x5c7b0e['t'](_0x2bb0b5(0x228)),i[_0x2bb0b5(0x1fe)](_0x2bb0b5(0x1e6),{'className':_0x2bb0b5(0x2c6),'children':'*'}),_0x21323b&&i[_0x2bb0b5(0x1fe)]('a',{'className':_0x2bb0b5(0x227),'title':_0x5c7b0e['t'](_0x2bb0b5(0x208)),'role':_0x2bb0b5(0x1c1),'onClick':()=>_0x53bf1f(!0x0),'children':i[_0x2bb0b5(0x1fe)](F,{})})]}),i[_0x2bb0b5(0x1fe)](f['Input'],{'type':'text','placeholder':_0x5c7b0e['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x3c0790,'disabled':_0x3ef54d,'autoComplete':_0x2bb0b5(0x26a),'onChange':_0xc6b301}),i['jsx']('p',{'className':_0x2bb0b5(0x1ee),'children':_0x5c7b0e['t'](_0x2bb0b5(0x19e))})]}),_0x21323b&&_0x289eb5&&i[_0x2bb0b5(0x16f)]('div',{'className':_0x2bb0b5(0x2b4),'children':[i[_0x2bb0b5(0x1fe)]('a',{'className':_0x2bb0b5(0x29e),'role':_0x2bb0b5(0x1c1),'onClick':()=>_0x53bf1f(!0x1),'children':i[_0x2bb0b5(0x1fe)](B,{'className':_0x2bb0b5(0x273)})}),i[_0x2bb0b5(0x16f)](_0x2bb0b5(0x22d),{'className':_0x2bb0b5(0x1a6),'children':[i[_0x2bb0b5(0x1fe)]('div',{'className':_0x2bb0b5(0x1b5),'children':i[_0x2bb0b5(0x1fe)](_0x2bb0b5(0x1e6),{'className':'univer-text-blue-600','children':'🚀'})}),i['jsxs'](_0x2bb0b5(0x22d),{'className':_0x2bb0b5(0x1a8),'children':[i[_0x2bb0b5(0x1fe)]('h4',{'className':_0x2bb0b5(0x17e),'children':_0x5c7b0e['t'](_0x2bb0b5(0x208))}),i[_0x2bb0b5(0x1fe)]('p',{'className':_0x2bb0b5(0x1a2),'children':_0x5c7b0e['t']('mcpConfig.apiApplyInfo.description')}),i[_0x2bb0b5(0x1fe)](_0x2bb0b5(0x22d),{'className':_0x2bb0b5(0x29d),'children':_0x577885&&i['jsxs']('a',{'className':_0x2bb0b5(0x2a6),'href':_0x1e0b08,'target':'_blank','rel':_0x2bb0b5(0x18d),'children':[i[_0x2bb0b5(0x1fe)](_0x2bb0b5(0x1e6),{'children':'🤖'}),_0x5c7b0e['t'](_0x2bb0b5(0x21f)),i[_0x2bb0b5(0x1fe)](_0x2bb0b5(0x1e6),{'className':_0x2bb0b5(0x238),'children':'↗'})]})}),i[_0x2bb0b5(0x16f)](_0x2bb0b5(0x22d),{'className':_0x2bb0b5(0x295),'children':['✨','\x20',_0x5c7b0e['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x5314d3[_0x2bb0b5(0x1ec)]&&i['jsxs'](_0x2bb0b5(0x22d),{'className':_0x2bb0b5(0x1ad),'children':[i[_0x2bb0b5(0x16f)]('h4',{'className':_0x2bb0b5(0x247),'children':[i[_0x2bb0b5(0x1fe)](_0x2bb0b5(0x1e6),{'children':'🔗'}),'\x20',_0x5c7b0e['t'](_0x2bb0b5(0x205))]}),i[_0x2bb0b5(0x16f)](_0x2bb0b5(0x22d),{'className':_0x2bb0b5(0x2db),'children':[i[_0x2bb0b5(0x16f)]('div',{'className':_0x2bb0b5(0x2c2),'children':[i[_0x2bb0b5(0x1fe)]('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x5c7b0e['t']('mcpConfig.configInstructions')}),i['jsxs'](_0x2bb0b5(0x22d),{'className':_0x2bb0b5(0x2c0),'children':[i[_0x2bb0b5(0x1fe)](_0x2bb0b5(0x22d),{'className':_0x2bb0b5(0x2b6),'children':_0x5c7b0e['t'](_0x2bb0b5(0x289))}),i[_0x2bb0b5(0x16f)]('div',{'className':_0x2bb0b5(0x253),'children':[i[_0x2bb0b5(0x16f)]('div',{'className':_0x2bb0b5(0x250),'children':[i[_0x2bb0b5(0x1fe)](_0x2bb0b5(0x1e6),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'1'}),_0x5c7b0e['t'](_0x2bb0b5(0x283))]}),i[_0x2bb0b5(0x16f)]('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x2bb0b5(0x1fe)](_0x2bb0b5(0x1e6),{'className':_0x2bb0b5(0x192),'children':'2'}),_0x5c7b0e['t'](_0x2bb0b5(0x2dc))]}),i['jsxs'](_0x2bb0b5(0x22d),{'className':_0x2bb0b5(0x250),'children':[i[_0x2bb0b5(0x1fe)](_0x2bb0b5(0x1e6),{'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'}),_0x5c7b0e['t']('mcpConfig.configStep3')]})]})]})]}),i[_0x2bb0b5(0x16f)]('div',{'className':_0x2bb0b5(0x2c0),'children':[i[_0x2bb0b5(0x1fe)]('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x2bb0b5(0x1aa)}),i['jsx'](_0x2bb0b5(0x22d),{'className':_0x2bb0b5(0x2b5),'children':i[_0x2bb0b5(0x1fe)]('pre',{'className':_0x2bb0b5(0x252),'children':JSON[_0x2bb0b5(0x2e9)]({'mcpServers':{'univer':{'url':_0x2bb0b5(0x255)+(_0x55a17c||_0x2bb0b5(0x292)),'type':_0x2bb0b5(0x216),'headers':{'Authorization':_0x2bb0b5(0x1b2)+(_0x3c0790||_0x2bb0b5(0x217))}}}},null,0x2)})})]}),i['jsxs'](_0x2bb0b5(0x22d),{'className':_0x2bb0b5(0x2c2),'children':[i['jsx']('div',{'className':_0x2bb0b5(0x2b6),'children':_0x5c7b0e['t'](_0x2bb0b5(0x2bc))}),i['jsxs'](_0x2bb0b5(0x22d),{'className':_0x2bb0b5(0x2c0),'children':[i[_0x2bb0b5(0x16f)](_0x2bb0b5(0x22d),{'className':_0x2bb0b5(0x2b0),'children':[i[_0x2bb0b5(0x1fe)]('div',{'className':_0x2bb0b5(0x28f)}),i[_0x2bb0b5(0x16f)]('div',{'className':_0x2bb0b5(0x25a),'children':[i[_0x2bb0b5(0x1fe)]('div',{'className':_0x2bb0b5(0x22a),'children':_0x2bb0b5(0x299)}),i['jsx'](_0x2bb0b5(0x22d),{'className':_0x2bb0b5(0x1ee),'children':_0x5c7b0e['t'](_0x2bb0b5(0x1d4))})]})]}),i['jsxs']('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[i[_0x2bb0b5(0x1fe)](_0x2bb0b5(0x22d),{'className':_0x2bb0b5(0x28f)}),i[_0x2bb0b5(0x16f)]('div',{'className':_0x2bb0b5(0x25a),'children':[i['jsx'](_0x2bb0b5(0x22d),{'className':_0x2bb0b5(0x22a),'children':_0x2bb0b5(0x272)}),i['jsx']('div',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x5c7b0e['t'](_0x2bb0b5(0x2df))})]})]})]})]})]})]}),i[_0x2bb0b5(0x1fe)](f['Button'],{'onClick':_0x34593d,'disabled':!_0x10a1d8||_0x3ef54d,'className':_0x2bb0b5(0x1ba),'children':_0x3ef54d?i[_0x2bb0b5(0x16f)](_0x2bb0b5(0x1e6),{'className':_0x2bb0b5(0x250),'children':[i['jsx'](_0x2bb0b5(0x1e6),{'children':'⟲'}),_0x5c7b0e['t']('mcpConfig.saving')]}):i[_0x2bb0b5(0x16f)]('span',{'className':_0x2bb0b5(0x250),'children':[i['jsx'](H,{}),_0x5c7b0e['t'](_0x2bb0b5(0x191))]})}),i['jsx'](_0x2bb0b5(0x22d),{'className':_0x2bb0b5(0x1f2),'children':i[_0x2bb0b5(0x16f)](_0x2bb0b5(0x22d),{'className':_0x2bb0b5(0x28d),'children':[i[_0x2bb0b5(0x1fe)](_0x2bb0b5(0x1e6),{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),i['jsxs'](_0x2bb0b5(0x22d),{'className':_0x2bb0b5(0x175),'children':[i['jsx'](_0x2bb0b5(0x22d),{'className':_0x2bb0b5(0x1f0),'children':_0x2bb0b5(0x2a4)}),i[_0x2bb0b5(0x16f)](_0x2bb0b5(0x22d),{'children':['•',_0x5c7b0e['t'](_0x2bb0b5(0x24a))]}),i['jsxs']('div',{'children':['•',_0x5c7b0e['t']('mcpConfig.note2')]})]})]})})]})})]});}const P=_0x50dde5(0x2c1),L={'showDeveloperTools':!0x1,'showStatus':!0x0};var me=Object[_0x50dde5(0x1de)],xe=(_0x1133ba,_0x2010bd,_0x30bce2,_0x5e652d)=>{for(var _0x3859c8=_0x5e652d>0x1?void 0x0:_0x5e652d?me(_0x2010bd,_0x30bce2):_0x2010bd,_0x539ab8=_0x1133ba['length']-0x1,_0x2117ce;_0x539ab8>=0x0;_0x539ab8--)(_0x2117ce=_0x1133ba[_0x539ab8])&&(_0x3859c8=_0x2117ce(_0x3859c8)||_0x3859c8);return _0x3859c8;},g=(_0x1171c4,_0x147f96)=>(_0x121ad2,_0x3790ba)=>_0x147f96(_0x121ad2,_0x3790ba,_0x1171c4);const O=_0x50dde5(0x2da),D='mcp-config-dialog';exports[_0x50dde5(0x293)]=class extends u[_0x50dde5(0x201)]{constructor(_0x540342,_0xb8102f,_0x109c14,_0x5e991c,_0x3bd3f4,_0x4a11e0,_0x402424,_0x409439,_0x4bed1b,_0x4dc5cd){const _0xe6378c=_0x50dde5;super(),I(this,_0xe6378c(0x257),new M[(_0xe6378c(0x1b9))](!0x1)),I(this,'_mcpCoreConfig$',new M[(_0xe6378c(0x1b9))]({})),I(this,'_config$',new M[(_0xe6378c(0x1b9))]({})),I(this,_0xe6378c(0x1cc),new M[(_0xe6378c(0x1b9))]('')),I(this,'_handleConfigSave',async _0x28d047=>{const _0x6c4638=_0xe6378c;var _0x21d302,_0x249b47;this[_0x6c4638(0x257)][_0x6c4638(0x24d)](!0x0);try{const _0x3739aa=await this[_0x6c4638(0x2cd)](_0x28d047);if(!_0x3739aa[_0x6c4638(0x214)]){this[_0x6c4638(0x265)][_0x6c4638(0x1ea)]({'type':f['MessageType'][_0x6c4638(0x2c9)],'content':_0x3739aa[_0x6c4638(0x2d9)]||this['_localeService']['t'](_0x6c4638(0x17d))});return;}_0x28d047[_0x6c4638(0x28a)]?await this[_0x6c4638(0x241)][_0x6c4638(0x19c)](O,_0x28d047[_0x6c4638(0x28a)][_0x6c4638(0x262)]()):await this['_localStorageService']['removeItem'](O),this[_0x6c4638(0x1cc)][_0x6c4638(0x24d)](((_0x21d302=_0x28d047[_0x6c4638(0x28a)])==null?void 0x0:_0x21d302['trim']())||''),this['_mcpConnectionController'][_0x6c4638(0x20c)]({'Authorization':'Bearer\x20'+((_0x249b47=_0x28d047['apiKey'])==null?void 0x0:_0x249b47[_0x6c4638(0x262)]())}),this['_messageService'][_0x6c4638(0x1ea)]({'type':f[_0x6c4638(0x2a8)]['Success'],'content':this[_0x6c4638(0x1d0)]['t'](_0x6c4638(0x2d0))}),setTimeout(()=>{const _0x16ff81=_0x6c4638;this[_0x16ff81(0x204)]['close'](D);},0x320);}catch(_0x37c616){this[_0x6c4638(0x19b)][_0x6c4638(0x2ab)]('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x37c616),this[_0x6c4638(0x265)]['show']({'type':f[_0x6c4638(0x2a8)][_0x6c4638(0x2c9)],'content':this['_localeService']['t'](_0x6c4638(0x213))});}finally{this['_loading$'][_0x6c4638(0x24d)](!0x1);}}),(this['_injector']=_0x540342,this['_uiPartsService']=_0xb8102f,this[_0xe6378c(0x1da)]=_0x109c14,this[_0xe6378c(0x241)]=_0x5e991c,this[_0xe6378c(0x204)]=_0x3bd3f4,this[_0xe6378c(0x265)]=_0x4a11e0,this[_0xe6378c(0x1fb)]=_0x402424,this[_0xe6378c(0x1d0)]=_0x409439,this[_0xe6378c(0x19b)]=_0x4bed1b,this['_mcpConnectionController']=_0x4dc5cd,this['_initConfigSync'](),this[_0xe6378c(0x1cf)](),this[_0xe6378c(0x285)]());}[_0x50dde5(0x2b3)](){const _0x3f19b1=_0x50dde5,_0x4ff0f7=this[_0x3f19b1(0x1da)]['getConfig'](P);_0x4ff0f7!=null&&_0x4ff0f7[_0x3f19b1(0x1ec)]&&this[_0x3f19b1(0x204)][_0x3f19b1(0x1bc)]({'id':D,'title':{'title':this[_0x3f19b1(0x1d0)]['t']('mcpConfig.title')},'children':{'label':_0x3f19b1(0x29c)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x296de5=_0x3f19b1;this[_0x296de5(0x204)][_0x296de5(0x29b)](D);}});}[_0x50dde5(0x246)](){const _0x1a528a=_0x50dde5;return this['_mcpCoreConfig$'][_0x1a528a(0x27b)];}[_0x50dde5(0x285)](){const _0x6ea45d=_0x50dde5;this[_0x6ea45d(0x26b)](this[_0x6ea45d(0x1fb)][_0x6ea45d(0x1b0)]('MCPConfigPanel',this[_0x6ea45d(0x1a3)]()));}[_0x50dde5(0x1a3)](){const _0x18297e=_0x50dde5;return v[_0x18297e(0x2de)](()=>{const _0x259e3f=_0x18297e;var _0x988e05,_0x3a8a62,_0x558e7f;return i['jsx'](V,{'config':this['_config$'][_0x259e3f(0x27b)],'mcpCoreConfig':this[_0x259e3f(0x271)]['value'],'currentApiKey$':this[_0x259e3f(0x1cc)],'onSave':this[_0x259e3f(0x236)],'loading':this[_0x259e3f(0x257)][_0x259e3f(0x27b)],'connectionStatus$':(_0x988e05=this['_mcpConnectionController'])==null?void 0x0:_0x988e05[_0x259e3f(0x194)],'connectionError$':(_0x3a8a62=this[_0x259e3f(0x298)])==null?void 0x0:_0x3a8a62[_0x259e3f(0x189)],'currentSessionId$':(_0x558e7f=this[_0x259e3f(0x298)])==null?void 0x0:_0x558e7f[_0x259e3f(0x1c5)]});},this[_0x18297e(0x17b)]);}[_0x50dde5(0x2ba)](){const _0x419ac0=_0x50dde5;this[_0x419ac0(0x26b)](this[_0x419ac0(0x1da)][_0x419ac0(0x20a)](s['MCP_PLUGIN_CONFIG_KEY'])[_0x419ac0(0x235)](_0x2172fb=>{const _0x1d9e31=_0x419ac0;this[_0x1d9e31(0x271)][_0x1d9e31(0x24d)](_0x2172fb||{});}));const _0xf1d562=this[_0x419ac0(0x1da)][_0x419ac0(0x182)](s[_0x419ac0(0x168)]);this[_0x419ac0(0x271)]['next'](_0xf1d562||{}),this[_0x419ac0(0x26b)](this[_0x419ac0(0x1da)][_0x419ac0(0x20a)](P)['subscribe'](_0x324378=>{const _0x263bd8=_0x419ac0;this[_0x263bd8(0x180)][_0x263bd8(0x24d)](_0x324378||{});}));const _0x4909f5=this[_0x419ac0(0x1da)][_0x419ac0(0x182)](P);this[_0x419ac0(0x180)][_0x419ac0(0x24d)](_0x4909f5||{});}async[_0x50dde5(0x1cf)](){const _0x511db4=_0x50dde5,_0x319ba3=this['_configService'][_0x511db4(0x182)](P);if(!(_0x319ba3!=null&&_0x319ba3[_0x511db4(0x1ec)]))return;const _0x4a2a2b=await this[_0x511db4(0x241)]['getItem'](O);_0x4a2a2b&&(this[_0x511db4(0x298)]['__setCustomHeaders']({'Authorization':_0x511db4(0x1b2)+_0x4a2a2b}),this[_0x511db4(0x1cc)][_0x511db4(0x24d)](_0x4a2a2b));}async['_validateConfig'](_0x1183bc){const _0xc4171f=_0x50dde5;if(!_0x1183bc['apiKey']||_0x1183bc[_0xc4171f(0x28a)][_0xc4171f(0x262)]()[_0xc4171f(0x23f)]===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0xc4171f(0x1f1))};if(_0x1183bc[_0xc4171f(0x28a)][_0xc4171f(0x262)]()[_0xc4171f(0x23f)]<0xa)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0xc4171f(0x1b8))};try{const _0x34eaff=await this[_0xc4171f(0x17b)]['get'](s['MCPConnectionController'])[_0xc4171f(0x23c)](_0x1183bc[_0xc4171f(0x28a)]['trim']());return _0x34eaff['isValid']?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x34eaff[_0xc4171f(0x2ab)]||this[_0xc4171f(0x1d0)]['t'](_0xc4171f(0x18e))};}catch(_0xbee2db){return console[_0xc4171f(0x181)](_0xc4171f(0x284),_0xbee2db),{'isValid':!0x0};}}},exports[_0x50dde5(0x293)]=xe([g(0x0,u['Inject'](u[_0x50dde5(0x2d2)])),g(0x1,v[_0x50dde5(0x1a1)]),g(0x2,u[_0x50dde5(0x209)]),g(0x3,u[_0x50dde5(0x22b)]),g(0x4,v['IDialogService']),g(0x5,v[_0x50dde5(0x2ea)]),g(0x6,u['Inject'](v['ComponentManager'])),g(0x7,u[_0x50dde5(0x19a)](u['LocaleService'])),g(0x8,u['ILogService']),g(0x9,u[_0x50dde5(0x19a)](s[_0x50dde5(0x20e)]))],exports[_0x50dde5(0x293)]);const b={'id':_0x50dde5(0x17a),'type':u[_0x50dde5(0x16e)][_0x50dde5(0x26f)],'handler':async(_0x3ae7eb,_0x3ecfea)=>(_0x3ae7eb[_0x50dde5(0x1a4)](exports[_0x50dde5(0x293)])['showConfigPanel'](),!0x0)};function Z(_0x1e6fe1,_0x4c3470){const _0x324f1c=_0x50dde5;switch(_0x1e6fe1){case s[_0x324f1c(0x2d8)]['DISCONNECTED']:return'mcpStatus.disconnected';case s[_0x324f1c(0x2d8)][_0x324f1c(0x2d6)]:return _0x324f1c(0x268);case s['MCPConnectionStatus'][_0x324f1c(0x26d)]:return _0x324f1c(0x2b1);case s[_0x324f1c(0x2d8)][_0x324f1c(0x278)]:switch(_0x4c3470){case s[_0x324f1c(0x1bd)][_0x324f1c(0x19d)]:return _0x324f1c(0x203);case s[_0x324f1c(0x1bd)][_0x324f1c(0x279)]:return _0x324f1c(0x1e3);case s[_0x324f1c(0x1bd)][_0x324f1c(0x21b)]:return _0x324f1c(0x1e2);case s[_0x324f1c(0x1bd)][_0x324f1c(0x28c)]:return'mcpStatus.maxRetriesExceeded';default:return _0x324f1c(0x2d7);}case s['MCPConnectionStatus'][_0x324f1c(0x27d)]:return _0x324f1c(0x1f3);default:return _0x324f1c(0x20d);}}function _0x2456(){const _0x4f361e=['Error','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','univer-text-yellow-500','MenuItemType','_validateConfig','mcpServerUrl','点击配置\x20MCP','mcpConfig.configSaved','univer-mr-2\x20univer-flex\x20univer-text-xl','Injector','mergeMenu','1883916oJBNRI','univer.ai','CONNECTING','mcpStatus.failed','MCPConnectionStatus','errorMessage','mcp.apiKey','univer-space-y-4','mcpConfig.configStep2','url(#on-line-icon_clip0_910_349)','connectInjector','mcpConfig.authorizationDescription','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','includes','add','Get\x20your\x20API\x20key\x20in\x20seconds','将配置添加到您的\x20MCP\x20客户端设置文件中','MCPConnectionUIController','Enter\x20your\x20API\x20key','MCP:\x20Network\x20Error','mcpConfig.connectionStatus.disconnected','stringify','IMessageService','forEach','MCP\x20重连中...','几秒钟内获取您的\x20API\x20密钥','MCP_PLUGIN_CONFIG_KEY','网络连接错误,请检查您的网络连接','MCPUIMenuController','API\x20密钥无效,请检查密钥是否正确','配置\x20MCP\x20使用\x20AI\x20操作电子表格','会话ID','CommandType','jsxs','children','Univer\x20AI\x20Console','Tooltip','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','配置步骤:','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','substring','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','mcpConfig.connectionError.sessionOccupied','defIds','mcp-ui.command.openConfigPanel','_injector','path','mcpConfig.validation.invalidConfig','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','Failed\x20to\x20save\x20configuration','_config$','warn','getConfig','_handleConfigure','启用身份验证','_initializeCommands','close-icon','UniverMCPPlugin','Retrying...','connectionError$','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','最大重试次数','noopener\x20noreferrer','mcpConfig.validation.invalidApiKey','MCP:\x20未授权','ICommandService','mcpConfig.save','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','940414RKroQd','connectionStatus$','保存配置','1864240bTvNsF','_config','toString','string','Inject','_logService','setItem','UNAUTHORIZED','mcpConfig.apiKeyHint','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','启用身份验证以获得安全连接','IUIPartsService','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','_createConfigPanelComponent','get','label','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','univer-flex-1','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','MCP\x20Configuration','off-line-icon','assign','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','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','会话\x20ID\x20已被占用,请稍后再试','register','Enable\x20Authentication','Bearer\x20','univer-bg-green-500','merge','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','univer-flex\x20univer-items-center\x20univer-gap-3','onStarting','mcpConfig.validation.apiKeyTooShort','BehaviorSubject','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','mcpConfig.connectionStatus.connecting','open','MCPConnectionError','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','MCP\x20Connection\x20Failed','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','button','univer-flex\x20univer-items-center','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP:\x20超出最大重试次数','sessionId$','OffLineIcon','MCP\x20已连接','M0\x200H16V16H0z','univer-shrink-0\x20univer-text-red-500','entries','MCP\x20状态未知','_apiKey$','已连接','未连接','_loadStoredApiKey','_localeService','mcpConfig.connectionError.unauthorized','OnLineIcon','displayName','mcpConfig.sessionIdDescription','univer-bg-red-500','3926384iIlciu','权限验证失败,请检查您的\x20API\x20密钥','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','_configService','0\x200\x2016\x2016','attrs','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','getOwnPropertyDescriptor','1em','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','enUS','mcpStatus.networkError','mcpStatus.sessionOccupied','evenodd','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','span','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','1445361IcDQgI','mcpConfig.connectionError.networkError','show','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','showDeveloperTools','Click\x20to\x20connect\x20MCP','univer-text-xs\x20univer-text-gray-500','请输入您的\x20API\x20密钥','univer-font-medium','mcpConfig.validation.apiKeyRequired','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','mcpStatus.retrying','Configuration\x20Parameters:','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','_initStatusComponent','translate(.97)','7439301KYcRyT','重启您的\x20MCP\x20客户端以使配置生效','createElement','_componentManager','配置保存失败','symbol','jsx','univer-text-gray-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','Disposable','defs','mcpStatus.unauthorized','_dialogService','mcpConfig.connectionInfo','Saving...','MCP\x20已断开','mcpConfig.apiApplyInfo.title','IConfigService','subscribeConfigValue$','带有\x20Bearer\x20前缀的\x20API\x20密钥。','__setCustomHeaders','mcpStatus.unknown','MCPConnectionController','Connecting...','MCP\x20Connected','BuiltInUIPart','MenuIcon','mcpConfig.configError','isValid','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','http','<API_KEY>','idSuffix','_uiPartsService','您的\x20API\x20密钥将在此浏览器中本地存储','NETWORK_ERROR','univer.plus','What\x20is\x20API\x20Key?','univer-text-sm\x20univer-text-gray-500','mcpConfig.apiApplyInfo.univerAiLabel','MCP\x20Client\x20Configuration','Session\x20ID','useDependency','_commandService','点击连接\x20MCP','mcpConfig.connectionError.maxRetriesExceeded','clsx','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','mcpConfig.apiKey','DISCONNECTED','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','ILocalStorageService','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','div','univerjs-icon\x20univerjs-icon-','colorChannel1','off-line-icon_clip0_910_343','none','univer-text-white','push','API\x20key\x20is\x20required','subscribe','_handleConfigSave','OpenMCPConfigPanelCommand','univer-text-gray-400','HEADER_MENU','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-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','validateApiKey','defineProperty','currentColor','length','url(#$1','_localStorageService','Univer\x20AI\x20控制台','50ZTVZgM','clipPath','mcpConfig.title','getCurrentConfig','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','Configuration\x20saved\x20successfully','svg','mcpConfig.note1','\x20-\x20','xlink:href','next','univer-text-green-500','round','univer-flex\x20univer-items-center\x20univer-gap-2','Module','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','url(#off-line-icon_clip0_910_343)','https://mcp.univer.ai/mcp/?univer_session_id=','OTHERS','_loading$','UniverMCPUIPlugin','Connected','univer-min-w-0\x20univer-flex-1','Configuration\x20Steps:','_connectionController','univer-size-2\x20univer-rounded-full','fill','API\x20密钥','Connection\x20Failed','https://console.univer.ai','trim','check-mark-icon','_initializeMenus','_messageService','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','ISocketService','mcpStatus.connecting','NONE','off','disposeWithMe','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','CONNECTED','配置无效','COMMAND','forwardRef','_mcpCoreConfig$','Authorization:','univer-size-4','将以下配置添加到您的\x20MCP\x20客户端设置中:','replace','mcpConfig.connectionStatus.failed','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','FAILED','SESSION_ID_OCCUPIED','map','value','univer-space-y-5','RETRYING','Copy\x20the\x20JSON\x20configuration\x20below','useState','http://www.w3.org/2000/svg','WebSocketService','has','mcpConfig.configStep1','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','_registerComponent','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','0\x200\x2017\x2016','MCP\x20连接失败','mcpConfig.configStepTitle','apiKey','univer-bg-blue-500','MAX_RETRIES_EXCEEDED','univer-flex\x20univer-gap-3','超出最大重试次数,请稍后再试','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','random','on-line-icon_clip0_910_349','<SESSION_ID>','MCPConfigUIController','Click\x20to\x20configure\x20MCP','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','white','BUTTON','_mcpConnectionController','univer_session_id:','_initAutoConnect','close','MCPConfigPanel','univer-flex\x20univer-flex-wrap\x20univer-gap-2','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','current','MCP\x20Retrying...','useCallback','LocaleService','toStringTag','Configuration\x20Notes:','配置更改将立即生效','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','CheckMarkIcon','MessageType','CloseIcon','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','error','配置保存成功','on-line-icon','DependentOn','Enable\x20authentication\x20for\x20secure\x20connections','univer-flex\x20univer-items-start\x20univer-gap-3','mcpStatus.connected','1CwBmRC','showConfigPanel','univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','useObservable','help-icon','MCP:\x20Unauthorized','_initConfigSync','MCP:\x20会话\x20ID\x20已被占用','mcpConfig.configParameters','mcpConfig.connectionStatus.retrying','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','\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-space-y-2','mcp-ui.config','univer-space-y-3','mask','50886jsUidf','MCP\x20Disconnected','univer-text-red-500','Plugin','tag'];_0x2456=function(){return _0x4f361e;};return _0x2456();}function Se(_0x4ae6c9,_0x3a787e,_0x2fbc4b,_0x476b37=!0x0){const _0x947fe=_0x50dde5,_0x384655=Z(_0x4ae6c9,_0x3a787e),_0x136a59=_0x2fbc4b['t'](_0x384655);return _0x476b37?_0x4ae6c9===s[_0x947fe(0x2d8)][_0x947fe(0x229)]&&_0x3a787e===s[_0x947fe(0x1bd)]['UNAUTHORIZED']?_0x136a59+_0x947fe(0x24b)+_0x2fbc4b['t']('mcpStatus.clickToConfigure'):_0x4ae6c9===s[_0x947fe(0x2d8)][_0x947fe(0x26d)]?''+_0x136a59:_0x4ae6c9===s[_0x947fe(0x2d8)][_0x947fe(0x229)]||_0x4ae6c9===s[_0x947fe(0x2d8)][_0x947fe(0x278)]?_0x136a59+_0x947fe(0x24b)+_0x2fbc4b['t']('mcpStatus.clickToConnect'):_0x136a59:_0x136a59;}function Pe(_0x14310b){const _0x363dbe=_0x50dde5;switch(_0x14310b){case s['MCPConnectionStatus']['CONNECTED']:return _0x363dbe(0x24e);case s[_0x363dbe(0x2d8)][_0x363dbe(0x2d6)]:case s['MCPConnectionStatus']['RETRYING']:return _0x363dbe(0x2cb);case s['MCPConnectionStatus']['FAILED']:case s['MCPConnectionStatus']['DISCONNECTED']:return _0x363dbe(0x2c6);default:return _0x363dbe(0x1ff);}}function W(_0x3a0706){const _0x59e9ee=_0x50dde5,{status$:_0x31b61c,error$:_0x284f59,onConfigure:_0x475c4e,showClickable:_0x10310c=!0x0}=_0x3a0706,_0x5bc996=v[_0x59e9ee(0x2b7)](_0x31b61c,s['MCPConnectionStatus'][_0x59e9ee(0x229)]),_0x9883aa=v['useObservable'](_0x284f59,s[_0x59e9ee(0x1bd)]['NONE']),_0x4e038=v[_0x59e9ee(0x222)](u[_0x59e9ee(0x2a2)]),_0xa8b9b2=_0x5bc996===s[_0x59e9ee(0x2d8)]['CONNECTED'];_0x5bc996===s[_0x59e9ee(0x2d8)][_0x59e9ee(0x2d6)]||s['MCPConnectionStatus']['RETRYING'];const _0x4efac8=_0x4e038['t'](Z(_0x5bc996,_0x9883aa)),_0x49dd69=Se(_0x5bc996,_0x9883aa,_0x4e038,_0x10310c),_0x5eae7a=Pe(_0x5bc996),_0x2b6e7e=_0xa8b9b2?i[_0x59e9ee(0x1fe)](q,{}):i['jsx'](Y,{}),_0x3784be=d['useCallback'](()=>{_0x10310c&&_0x475c4e&&_0x475c4e();},[_0x10310c,_0x475c4e]);function _0x1ebd73(){const _0x591b41=_0x59e9ee;return i[_0x591b41(0x16f)](_0x591b41(0x22d),{'className':f[_0x591b41(0x226)](_0x591b41(0x1c2),_0x10310c&&_0x475c4e&&_0x591b41(0x2bf)),'role':_0x591b41(0x1c1),'onClick':_0x10310c&&_0x475c4e?_0x3784be:void 0x0,'children':[i[_0x591b41(0x1fe)](_0x591b41(0x22d),{'className':f[_0x591b41(0x226)](_0x591b41(0x2d1),_0x5eae7a),'children':_0x2b6e7e}),i[_0x591b41(0x1fe)](_0x591b41(0x22d),{'className':_0x591b41(0x26c),'children':_0x4efac8})]});}return i[_0x59e9ee(0x1fe)](f[_0x59e9ee(0x172)],{'title':_0x49dd69,'placement':'bottom','children':_0x1ebd73()});}var Ie=Object['getOwnPropertyDescriptor'],_e=(_0x7aafd6,_0x54d82e,_0x299c9d,_0x152d16)=>{const _0x3fad0c=_0x50dde5;for(var _0xff54d0=_0x152d16>0x1?void 0x0:_0x152d16?Ie(_0x54d82e,_0x299c9d):_0x54d82e,_0x1297b6=_0x7aafd6[_0x3fad0c(0x23f)]-0x1,_0x2fd9e4;_0x1297b6>=0x0;_0x1297b6--)(_0x2fd9e4=_0x7aafd6[_0x1297b6])&&(_0xff54d0=_0x2fd9e4(_0xff54d0)||_0xff54d0);return _0xff54d0;},N=(_0x4c28c8,_0x445674)=>(_0x2cfd95,_0x3514e9)=>_0x445674(_0x2cfd95,_0x3514e9,_0x4c28c8);exports[_0x50dde5(0x2e5)]=class extends u[_0x50dde5(0x201)]{constructor(_0x36395b,_0x3d17bd,_0x23a25c,_0x48f228){const _0x5a848d=_0x50dde5;super(),this[_0x5a848d(0x17b)]=_0x36395b,this[_0x5a848d(0x25c)]=_0x3d17bd,this[_0x5a848d(0x219)]=_0x23a25c,this[_0x5a848d(0x1da)]=_0x48f228,this['_initAutoConnect'](),this[_0x5a848d(0x1f6)]();}[_0x50dde5(0x29a)](){const _0x2605a3=_0x50dde5,_0x227a4d=this[_0x2605a3(0x1da)]['getConfig'](P);_0x227a4d!=null&&_0x227a4d[_0x2605a3(0x1ec)]&&(this[_0x2605a3(0x25c)]['enableAutoConnect']=!0x1);}[_0x50dde5(0x1f6)](){const _0x5b04b6=_0x50dde5,_0x59ba3e=this[_0x5b04b6(0x1da)][_0x5b04b6(0x182)](P);(_0x59ba3e==null?void 0x0:_0x59ba3e['showStatus'])!==!0x1&&this['disposeWithMe'](this[_0x5b04b6(0x219)]['registerComponent'](v[_0x5b04b6(0x211)][_0x5b04b6(0x239)],()=>{const _0x2b78f9=_0x5b04b6;var _0x25bd9c;return v[_0x2b78f9(0x2de)](ye({'status$':this[_0x2b78f9(0x25c)][_0x2b78f9(0x194)],'error$':this[_0x2b78f9(0x25c)][_0x2b78f9(0x189)],'onConfigure':()=>this[_0x2b78f9(0x183)](),'showClickable':(_0x25bd9c=_0x59ba3e==null?void 0x0:_0x59ba3e[_0x2b78f9(0x1ec)])!=null?_0x25bd9c:!0x1}),this['_injector']);}));}['_handleConfigure'](){const _0x345a95=_0x50dde5;this[_0x345a95(0x17b)]['get'](exports[_0x345a95(0x293)])[_0x345a95(0x2b3)]();}},exports[_0x50dde5(0x2e5)]=_e([N(0x0,u[_0x50dde5(0x19a)](u[_0x50dde5(0x2d2)])),N(0x1,u['Inject'](s[_0x50dde5(0x20e)])),N(0x2,v[_0x50dde5(0x1a1)]),N(0x3,u[_0x50dde5(0x209)])],exports['MCPConnectionUIController']);function ye(_0x552f0c){const {status$:_0x5abecf,error$:_0x5822f6,onConfigure:_0x5e8f28,showClickable:_0x5caaab}=_0x552f0c;return function(){const _0x226b0f=_0x5e38;return i[_0x226b0f(0x1fe)](W,{'status$':_0x5abecf,'error$':_0x5822f6,'onConfigure':_0x5e8f28,'showClickable':_0x5caaab});};}function Me(_0x3cb253){const _0x169f6b=_0x50dde5;return{'id':b['id'],'type':v[_0x169f6b(0x2cc)][_0x169f6b(0x297)],'icon':_0x169f6b(0x212),'title':_0x169f6b(0x245),'tooltip':_0x169f6b(0x245)};}const Ne={[v['RibbonStartGroup'][_0x50dde5(0x256)]]:{[b['id']]:{'order':0xa,'menuItemFactory':Me}}};var be=Object[_0x50dde5(0x1de)],je=(_0xc26125,_0x480327,_0x4d7e0c,_0xdc65bb)=>{const _0x34bfbe=_0x50dde5;for(var _0x18b6df=_0xdc65bb>0x1?void 0x0:_0xdc65bb?be(_0x480327,_0x4d7e0c):_0x480327,_0x4c8c7b=_0xc26125[_0x34bfbe(0x23f)]-0x1,_0x3657b9;_0x4c8c7b>=0x0;_0x4c8c7b--)(_0x3657b9=_0xc26125[_0x4c8c7b])&&(_0x18b6df=_0x3657b9(_0x18b6df)||_0x18b6df);return _0x18b6df;},z=(_0x25c085,_0x28249e)=>(_0x29ab0e,_0x1a695e)=>_0x28249e(_0x29ab0e,_0x1a695e,_0x25c085);exports[_0x50dde5(0x16a)]=class extends u[_0x50dde5(0x201)]{constructor(_0x5b1f66,_0x21e31f){super(),this['_commandService']=_0x5b1f66,this['_menuManagerService']=_0x21e31f,this['_initializeCommands'](),this['_initializeMenus']();}[_0x50dde5(0x185)](){[b]['forEach'](_0x40fc9f=>{const _0x5490b4=_0x5e38;this[_0x5490b4(0x26b)](this[_0x5490b4(0x223)]['registerCommand'](_0x40fc9f));});}[_0x50dde5(0x264)](){const _0x40a851=_0x50dde5;this['_menuManagerService'][_0x40a851(0x2d3)](Ne);}},exports[_0x50dde5(0x16a)]=je([z(0x0,u[_0x50dde5(0x190)]),z(0x1,v['IMenuManagerService'])],exports[_0x50dde5(0x16a)]);const Ee={'mcpStatus':{'disconnected':_0x50dde5(0x2c5),'connecting':'MCP\x20Connecting...','connected':_0x50dde5(0x210),'failed':_0x50dde5(0x1bf),'retrying':_0x50dde5(0x2a0),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x50dde5(0x2b9),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x50dde5(0x2e7),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x50dde5(0x1ed),'clickToConfigure':_0x50dde5(0x294)},'mcpConfig':{'title':_0x50dde5(0x1aa),'description':_0x50dde5(0x1e5),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x50dde5(0x2e6),'apiKeyHint':_0x50dde5(0x1f5),'enableAuth':_0x50dde5(0x1b1),'enableAuthHint':_0x50dde5(0x2af),'connectionInfo':_0x50dde5(0x220),'mcpClientConfig':_0x50dde5(0x220),'configInstructions':_0x50dde5(0x266),'configStepTitle':_0x50dde5(0x25b),'configStep1':_0x50dde5(0x27e),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x50dde5(0x1c3),'sessionId':_0x50dde5(0x221),'sessionIdDescription':_0x50dde5(0x173),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x50dde5(0x1f4),'maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x50dde5(0x206),'note1':_0x50dde5(0x1a7),'note2':_0x50dde5(0x18b),'configSaved':_0x50dde5(0x248),'configError':_0x50dde5(0x17f),'apiApplyInfo':{'title':_0x50dde5(0x21d),'description':_0x50dde5(0x1c0),'univerAiLabel':_0x50dde5(0x171),'getStarted':_0x50dde5(0x2e3)},'validation':{'apiKeyRequired':_0x50dde5(0x234),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x50dde5(0x2ca)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x50dde5(0x20f),'connected':_0x50dde5(0x259),'failed':_0x50dde5(0x260),'retrying':_0x50dde5(0x188)},'connectionError':{'unauthorized':_0x50dde5(0x277),'sessionOccupied':_0x50dde5(0x18a),'networkError':_0x50dde5(0x1d8),'maxRetriesExceeded':_0x50dde5(0x177)}}},we={'mcpStatus':{'disconnected':_0x50dde5(0x207),'connecting':'MCP\x20连接中...','connected':_0x50dde5(0x1c7),'failed':_0x50dde5(0x288),'retrying':_0x50dde5(0x2ec),'unknown':_0x50dde5(0x1cb),'unauthorized':_0x50dde5(0x18f),'sessionOccupied':_0x50dde5(0x2bb),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x50dde5(0x1c4),'clickToConnect':_0x50dde5(0x224),'clickToConfigure':_0x50dde5(0x2cf)},'mcpConfig':{'title':'MCP\x20配置','description':_0x50dde5(0x16c),'apiKey':_0x50dde5(0x25f),'apiKeyPlaceholder':_0x50dde5(0x1ef),'apiKeyHint':_0x50dde5(0x21a),'enableAuth':_0x50dde5(0x184),'enableAuthHint':_0x50dde5(0x1a0),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':'MCP\x20客户端配置','configInstructions':_0x50dde5(0x274),'configStepTitle':_0x50dde5(0x174),'configStep1':'复制以下\x20JSON\x20配置','configStep2':_0x50dde5(0x2e4),'configStep3':_0x50dde5(0x1f9),'sessionId':_0x50dde5(0x16d),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0x50dde5(0x20b),'configParameters':'配置参数:','maxRetries':_0x50dde5(0x18c),'save':_0x50dde5(0x195),'saving':'保存中...','note1':_0x50dde5(0x2a5),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x50dde5(0x2ac),'configError':_0x50dde5(0x1fc),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0x50dde5(0x242),'getStarted':_0x50dde5(0x167)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x50dde5(0x26e),'invalidApiKey':_0x50dde5(0x16b)},'connectionStatus':{'disconnected':_0x50dde5(0x1ce),'connecting':'连接中...','connected':_0x50dde5(0x1cd),'failed':'连接失败','retrying':'重连中...'},'connectionError':{'unauthorized':_0x50dde5(0x1d7),'sessionOccupied':_0x50dde5(0x1af),'networkError':_0x50dde5(0x169),'maxRetriesExceeded':_0x50dde5(0x28e)}}};var Ae=Object[_0x50dde5(0x23d)],Oe=Object['getOwnPropertyDescriptor'],De=(_0x26466a,_0x70e6a,_0xab3a9d)=>_0x70e6a in _0x26466a?Ae(_0x26466a,_0x70e6a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xab3a9d}):_0x26466a[_0x70e6a]=_0xab3a9d,Ue=(_0x295da7,_0x7840b4,_0x29259d,_0x3b56e5)=>{const _0x5de9b5=_0x50dde5;for(var _0x3e6db8=_0x3b56e5>0x1?void 0x0:_0x3b56e5?Oe(_0x7840b4,_0x29259d):_0x7840b4,_0x349983=_0x295da7[_0x5de9b5(0x23f)]-0x1,_0x4574f7;_0x349983>=0x0;_0x349983--)(_0x4574f7=_0x295da7[_0x349983])&&(_0x3e6db8=_0x4574f7(_0x3e6db8)||_0x3e6db8);return _0x3e6db8;},y=(_0x273ce2,_0x4b856e)=>(_0x1671e4,_0x22bdc3)=>_0x4b856e(_0x1671e4,_0x22bdc3,_0x273ce2),$e=(_0x2e6d6d,_0x50d8de,_0x207471)=>De(_0x2e6d6d,_0x50d8de+'',_0x207471);exports[_0x50dde5(0x258)]=class extends u[_0x50dde5(0x2c7)]{constructor(_0x3b9b45=L,_0x30ed58,_0xbf49c1,_0x1478df,_0x3d30de,_0x2c1d6c){const _0x2a0460=_0x50dde5;super(),this[_0x2a0460(0x197)]=_0x3b9b45,this[_0x2a0460(0x17b)]=_0x30ed58,this['_configService']=_0xbf49c1,this[_0x2a0460(0x219)]=_0x1478df,this[_0x2a0460(0x241)]=_0x3d30de,this['_localeService']=_0x2c1d6c;const {..._0x5254d9}=u[_0x2a0460(0x1b4)]({},L,this[_0x2a0460(0x197)]);this[_0x2a0460(0x1da)]['setConfig'](P,_0x5254d9);}async[_0x50dde5(0x1b7)](){const _0x1fee99=_0x50dde5,_0x5bec5d=[[exports[_0x1fee99(0x2e5)]],[exports[_0x1fee99(0x293)]],[exports['MCPUIMenuController']]];this['_injector'][_0x1fee99(0x282)](A[_0x1fee99(0x267)])||_0x5bec5d[_0x1fee99(0x233)]([A['ISocketService'],{'useClass':A[_0x1fee99(0x281)]}]),_0x5bec5d['forEach'](_0x401573=>this[_0x1fee99(0x17b)][_0x1fee99(0x2e2)](_0x401573)),this[_0x1fee99(0x17b)][_0x1fee99(0x1a4)](exports[_0x1fee99(0x2e5)]),this['_injector']['get'](exports[_0x1fee99(0x293)]),this[_0x1fee99(0x17b)][_0x1fee99(0x1a4)](exports[_0x1fee99(0x16a)]);}},$e(exports[_0x50dde5(0x258)],'pluginName','MCP_UI_PLUGIN'),exports[_0x50dde5(0x258)]=Ue([u[_0x50dde5(0x2ae)](s[_0x50dde5(0x187)]),y(0x1,u[_0x50dde5(0x19a)](u[_0x50dde5(0x2d2)])),y(0x2,u[_0x50dde5(0x209)]),y(0x3,v[_0x50dde5(0x1a1)]),y(0x4,u[_0x50dde5(0x22b)]),y(0x5,u[_0x50dde5(0x19a)](u['LocaleService']))],exports[_0x50dde5(0x258)]),exports[_0x50dde5(0x29c)]=V,exports['MCPStatusDisplay']=W,exports[_0x50dde5(0x237)]=b,exports[_0x50dde5(0x1e1)]=Ee,exports['zhCN']=we;
|
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x30a1(){const _0x438ea9=['Click\x20to\x20configure\x20MCP','Retrying...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Connection\x20Failed','Connection\x20Failed','Enable\x20authentication\x20for\x20secure\x20connections','647966XsGJBy','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.','Enable\x20Authentication','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Connected','140ZNsxUR','Save\x20Configuration','Copy\x20the\x20JSON\x20configuration\x20below','Invalid\x20configuration','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Saving...','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','170208fWDdrS','MCP\x20Client\x20Configuration','API\x20key\x20is\x20required','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Configuration','1732jCOJuE','398TBiEPf','Disconnected','MCP:\x20Session\x20ID\x20Occupied','934176YHjzRu','Enter\x20your\x20API\x20key','What\x20is\x20API\x20Key?','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','85770qjtRul','2933562BsXZgM','Failed\x20to\x20save\x20configuration','Click\x20to\x20connect\x20MCP','4344768Omjjgh','Max\x20Retries','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Retrying...','MCP\x20Connecting...','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Configuration\x20Steps:','Configuration\x20Parameters:','exports','Get\x20your\x20API\x20key\x20in\x20seconds','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Session\x20ID','140lWgRRg','MCP:\x20Unauthorized','MCP:\x20Max\x20Retries\x20Exceeded','7ONGbUR','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Unknown\x20Status'];_0x30a1=function(){return _0x438ea9;};return _0x30a1();}function _0x41eb(_0x26c04d,_0x2767c1){_0x26c04d=_0x26c04d-0x9a;const _0x30a141=_0x30a1();let _0x41eb2e=_0x30a141[_0x26c04d];return _0x41eb2e;}const _0x33033e=_0x41eb;(function(_0x30bbf9,_0x3fcabf){const _0x669de6=_0x41eb,_0x5c53d5=_0x30bbf9();while(!![]){try{const _0x3662c1=parseInt(_0x669de6(0xc9))/0x1*(-parseInt(_0x669de6(0xc8))/0x2)+parseInt(_0x669de6(0x9c))/0x3+-parseInt(_0x669de6(0xa8))/0x4*(parseInt(_0x669de6(0xd0))/0x5)+parseInt(_0x669de6(0xd1))/0x6*(-parseInt(_0x669de6(0xab))/0x7)+-parseInt(_0x669de6(0xcc))/0x8+parseInt(_0x669de6(0xc1))/0x9+parseInt(_0x669de6(0xba))/0xa*(parseInt(_0x669de6(0xb4))/0xb);if(_0x3662c1===_0x3fcabf)break;else _0x5c53d5['push'](_0x5c53d5['shift']());}catch(_0xcc2dfa){_0x5c53d5['push'](_0x5c53d5['shift']());}}}(_0x30a1,0xb4ee7));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x33033e(0xa0),'connected':'MCP\x20Connected','failed':_0x33033e(0xb1),'retrying':_0x33033e(0x9f),'unknown':_0x33033e(0xad),'unauthorized':_0x33033e(0xa9),'sessionOccupied':_0x33033e(0xcb),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x33033e(0xaa),'clickToConnect':_0x33033e(0x9b),'clickToConfigure':_0x33033e(0xae)},'mcpConfig':{'title':_0x33033e(0xc7),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':_0x33033e(0xcd),'apiKeyHint':_0x33033e(0xc0),'enableAuth':_0x33033e(0xb7),'enableAuthHint':_0x33033e(0xb3),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x33033e(0xc2),'configInstructions':_0x33033e(0xac),'configStepTitle':_0x33033e(0xa2),'configStep1':_0x33033e(0xbc),'configStep2':_0x33033e(0xa1),'configStep3':_0x33033e(0xc4),'sessionId':_0x33033e(0xa7),'sessionIdDescription':_0x33033e(0xb6),'authorizationDescription':_0x33033e(0xc6),'configParameters':_0x33033e(0xa3),'maxRetries':_0x33033e(0x9d),'save':_0x33033e(0xbb),'saving':_0x33033e(0xbf),'note1':_0x33033e(0xcf),'note2':_0x33033e(0xc5),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x33033e(0x9a),'apiApplyInfo':{'title':_0x33033e(0xce),'description':_0x33033e(0xbe),'univerAiLabel':_0x33033e(0xb5),'getStarted':_0x33033e(0xa5)},'validation':{'apiKeyRequired':_0x33033e(0xc3),'apiKeyTooShort':_0x33033e(0xb8),'invalidConfig':_0x33033e(0xbd),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x33033e(0xca),'connecting':'Connecting...','connected':_0x33033e(0xb9),'failed':_0x33033e(0xb2),'retrying':_0x33033e(0xaf)},'connectionError':{'unauthorized':_0x33033e(0xb0),'sessionOccupied':_0x33033e(0x9e),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x33033e(0xa6)}}},n=e;module[_0x33033e(0xa4)]=n;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0xf9fb27=_0x8056;function _0x19c4(){const _0x5084fa=['MCP\x20Configuration','772658JGbOzq','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Session\x20ID','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','exports','Configuration\x20Steps:','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Disconnected','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Enable\x20authentication\x20for\x20secure\x20connections','MCP:\x20Network\x20Error','Get\x20your\x20API\x20key\x20in\x20seconds','Connection\x20Failed','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Connection\x20Failed','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Failed\x20to\x20save\x20configuration','8LvAtkl','API\x20Key','20rlRqEb','API\x20key\x20with\x20Bearer\x20prefix.','MCP:\x20Unauthorized','Univer\x20AI\x20Console','Configuration\x20Parameters:','MCP\x20Disconnected','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Connecting...','1347850FEoCHM','2863231tJOdWl','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','9295578uJuVzi','5462784GkobAB','41040dywZOV','7174700oKlkvo','Click\x20to\x20connect\x20MCP','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Saving...','MCP\x20Connected','API\x20key\x20is\x20required','Max\x20Retries','3YpCVtX','MCP\x20Client\x20Configuration','MCP:\x20Session\x20ID\x20Occupied','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP:\x20Max\x20Retries\x20Exceeded','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Enable\x20Authentication','Retrying...'];_0x19c4=function(){return _0x5084fa;};return _0x19c4();}(function(_0x1f3b77,_0x30b1d9){const _0x3ddb0e=_0x8056,_0xee3d2a=_0x1f3b77();while(!![]){try{const _0x4831b0=parseInt(_0x3ddb0e(0xbb))/0x1+-parseInt(_0x3ddb0e(0xa5))/0x2*(-parseInt(_0x3ddb0e(0xb2))/0x3)+-parseInt(_0x3ddb0e(0x9d))/0x4*(parseInt(_0x3ddb0e(0xaa))/0x5)+-parseInt(_0x3ddb0e(0xa9))/0x6+parseInt(_0x3ddb0e(0xa6))/0x7+-parseInt(_0x3ddb0e(0x9b))/0x8*(parseInt(_0x3ddb0e(0xa8))/0x9)+parseInt(_0x3ddb0e(0xab))/0xa;if(_0x4831b0===_0x30b1d9)break;else _0xee3d2a['push'](_0xee3d2a['shift']());}catch(_0x258b49){_0xee3d2a['push'](_0xee3d2a['shift']());}}}(_0x19c4,0x8fbc4));const e={'mcpStatus':{'disconnected':_0xf9fb27(0xa2),'connecting':'MCP\x20Connecting...','connected':_0xf9fb27(0xaf),'failed':_0xf9fb27(0x98),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':_0xf9fb27(0x9f),'sessionOccupied':_0xf9fb27(0xb4),'networkError':_0xf9fb27(0x94),'maxRetriesExceeded':_0xf9fb27(0xb6),'clickToConnect':_0xf9fb27(0xac),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0xf9fb27(0xba),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0xf9fb27(0x9c),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0xf9fb27(0x90),'enableAuth':_0xf9fb27(0xb8),'enableAuthHint':_0xf9fb27(0x93),'connectionInfo':_0xf9fb27(0xb3),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0xf9fb27(0xb5),'configStepTitle':_0xf9fb27(0x8f),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0xf9fb27(0xa7),'sessionId':_0xf9fb27(0xbd),'sessionIdDescription':_0xf9fb27(0xad),'authorizationDescription':_0xf9fb27(0x9e),'configParameters':_0xf9fb27(0xa1),'maxRetries':_0xf9fb27(0xb1),'save':'Save\x20Configuration','saving':_0xf9fb27(0xae),'note1':_0xf9fb27(0xb7),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0xf9fb27(0x9a),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0xf9fb27(0xbc),'univerAiLabel':_0xf9fb27(0xa0),'getStarted':_0xf9fb27(0x95)},'validation':{'apiKeyRequired':_0xf9fb27(0xb0),'apiKeyTooShort':_0xf9fb27(0xbe),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0xf9fb27(0x99)},'connectionStatus':{'disconnected':_0xf9fb27(0x91),'connecting':_0xf9fb27(0xa4),'connected':'Connected','failed':_0xf9fb27(0x96),'retrying':_0xf9fb27(0xb9)},'connectionError':{'unauthorized':_0xf9fb27(0xa3),'sessionOccupied':_0xf9fb27(0x92),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0xf9fb27(0x97)}}};function _0x8056(_0x32749f,_0x51c0b5){_0x32749f=_0x32749f-0x8e;const _0x19c415=_0x19c4();let _0x805645=_0x19c415[_0x32749f];return _0x805645;}module[_0xf9fb27(0x8e)]=e;
|
package/lib/cjs/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x1081(_0x2f3e79,_0x58d5da){_0x2f3e79=_0x2f3e79-0x161;const _0x294d47=_0x294d();let _0x1081ca=_0x294d47[_0x2f3e79];return _0x1081ca;}const _0x3f3399=_0x1081;(function(_0x29e5df,_0x2f0cb8){const _0x1e6dfb=_0x1081,_0x189796=_0x29e5df();while(!![]){try{const _0x51fc0e=-parseInt(_0x1e6dfb(0x192))/0x1+parseInt(_0x1e6dfb(0x16d))/0x2*(parseInt(_0x1e6dfb(0x18d))/0x3)+-parseInt(_0x1e6dfb(0x166))/0x4+-parseInt(_0x1e6dfb(0x167))/0x5*(-parseInt(_0x1e6dfb(0x18f))/0x6)+parseInt(_0x1e6dfb(0x16e))/0x7+parseInt(_0x1e6dfb(0x190))/0x8*(parseInt(_0x1e6dfb(0x180))/0x9)+-parseInt(_0x1e6dfb(0x168))/0xa;if(_0x51fc0e===_0x2f0cb8)break;else _0x189796['push'](_0x189796['shift']());}catch(_0x528ca1){_0x189796['push'](_0x189796['shift']());}}}(_0x294d,0x72ac2));function _0x294d(){const _0x235f7c=['MCP:\x20Unauthorized','Copy\x20the\x20JSON\x20configuration\x20below','124bsUsQo','3302348ANMsSU','Configuration\x20Steps:','Click\x20to\x20connect\x20MCP','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Max\x20Retries','Click\x20to\x20configure\x20MCP','MCP\x20Connecting...','Enable\x20authentication\x20for\x20secure\x20connections','Enable\x20Authentication','Connection\x20Failed','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Configuration\x20Parameters:','MCP:\x20Max\x20Retries\x20Exceeded','Enter\x20your\x20API\x20key','Connected','Retrying...','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','7996977glvFiT','Disconnected','API\x20key\x20is\x20required','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Connection\x20Failed','Save\x20Configuration','Saving...','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Invalid\x20configuration','Connecting...','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP:\x20Network\x20Error','14286HmSHiM','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','690366wKhqQZ','8qgZCRd','MCP\x20Unknown\x20Status','566691vUfGSi','MCP:\x20Session\x20ID\x20Occupied','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Session\x20ID','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','1752692SxwNwD','25uzbjVY','7563040bSAxyk','Get\x20your\x20API\x20key\x20in\x20seconds','What\x20is\x20API\x20Key?'];_0x294d=function(){return _0x235f7c;};return _0x294d();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x3f3399(0x174),'connected':'MCP\x20Connected','failed':_0x3f3399(0x184),'retrying':'MCP\x20Retrying...','unknown':_0x3f3399(0x191),'unauthorized':_0x3f3399(0x16b),'sessionOccupied':_0x3f3399(0x193),'networkError':_0x3f3399(0x18c),'maxRetriesExceeded':_0x3f3399(0x17b),'clickToConnect':_0x3f3399(0x170),'clickToConfigure':_0x3f3399(0x173)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x3f3399(0x171),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x3f3399(0x17c),'apiKeyHint':_0x3f3399(0x18b),'enableAuth':_0x3f3399(0x176),'enableAuthHint':_0x3f3399(0x175),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x3f3399(0x187),'configStepTitle':_0x3f3399(0x16f),'configStep1':_0x3f3399(0x16c),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x3f3399(0x161),'sessionId':_0x3f3399(0x164),'sessionIdDescription':_0x3f3399(0x183),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x3f3399(0x17a),'maxRetries':_0x3f3399(0x172),'save':_0x3f3399(0x185),'saving':_0x3f3399(0x186),'note1':_0x3f3399(0x179),'note2':_0x3f3399(0x178),'configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x3f3399(0x16a),'description':_0x3f3399(0x18e),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x3f3399(0x169)},'validation':{'apiKeyRequired':_0x3f3399(0x182),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x3f3399(0x189),'invalidApiKey':_0x3f3399(0x165)},'connectionStatus':{'disconnected':_0x3f3399(0x181),'connecting':_0x3f3399(0x18a),'connected':_0x3f3399(0x17d),'failed':_0x3f3399(0x177),'retrying':_0x3f3399(0x17e)},'connectionError':{'unauthorized':_0x3f3399(0x188),'sessionOccupied':_0x3f3399(0x163),'networkError':_0x3f3399(0x162),'maxRetriesExceeded':_0x3f3399(0x17f)}}},n=e;module['exports']=n;
|
package/lib/cjs/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x2eaa99=_0x3621;function _0x93c9(){const _0x27e3f2=['Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Saving...','2191088XfAfsk','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','12hpCvDK','MCP:\x20Unauthorized','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Enable\x20authentication\x20for\x20secure\x20connections','Click\x20to\x20configure\x20MCP','Save\x20Configuration','API\x20key\x20is\x20required','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Enter\x20your\x20API\x20key','256CTRJoT','exports','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20Max\x20Retries\x20Exceeded','Disconnected','259026TDsGTq','API\x20key\x20with\x20Bearer\x20prefix.','69552SqjNte','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','706315vfXRtd','Enable\x20Authentication','MCP\x20Unknown\x20Status','Connecting...','Copy\x20the\x20JSON\x20configuration\x20below','1800429Raqnzg','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','462598hWeYoB','MCP:\x20Network\x20Error','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Retrying...','2488680tzDPpm','MCP\x20Client\x20Configuration','Session\x20ID','Connected','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Get\x20your\x20API\x20key\x20in\x20seconds','Failed\x20to\x20save\x20configuration','Configuration\x20saved\x20successfully','Click\x20to\x20connect\x20MCP','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Configuration\x20Steps:','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage'];_0x93c9=function(){return _0x27e3f2;};return _0x93c9();}(function(_0x12a024,_0x32d993){const _0x5a8b14=_0x3621,_0x432045=_0x12a024();while(!![]){try{const _0x18a631=parseInt(_0x5a8b14(0xfd))/0x1+parseInt(_0x5a8b14(0xda))/0x2+parseInt(_0x5a8b14(0xd8))/0x3+-parseInt(_0x5a8b14(0xec))/0x4+-parseInt(_0x5a8b14(0x101))/0x5*(parseInt(_0x5a8b14(0xee))/0x6)+-parseInt(_0x5a8b14(0xff))/0x7*(-parseInt(_0x5a8b14(0xf8))/0x8)+-parseInt(_0x5a8b14(0xde))/0x9;if(_0x18a631===_0x32d993)break;else _0x432045['push'](_0x432045['shift']());}catch(_0x30b250){_0x432045['push'](_0x432045['shift']());}}}(_0x93c9,0x49a22));function _0x3621(_0x59dd7f,_0x5bce68){_0x59dd7f=_0x59dd7f-0xd8;const _0x93c9eb=_0x93c9();let _0x3621c3=_0x93c9eb[_0x59dd7f];return _0x3621c3;}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':_0x2eaa99(0x103),'unauthorized':_0x2eaa99(0xef),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x2eaa99(0xdb),'maxRetriesExceeded':_0x2eaa99(0xfb),'clickToConnect':_0x2eaa99(0xe6),'clickToConfigure':_0x2eaa99(0xf3)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x2eaa99(0xfa),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x2eaa99(0xf7),'apiKeyHint':_0x2eaa99(0xd9),'enableAuth':_0x2eaa99(0x102),'enableAuthHint':_0x2eaa99(0xf2),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x2eaa99(0xdf),'configInstructions':_0x2eaa99(0x100),'configStepTitle':_0x2eaa99(0xe8),'configStep1':_0x2eaa99(0x105),'configStep2':_0x2eaa99(0xe2),'configStep3':_0x2eaa99(0xea),'sessionId':_0x2eaa99(0xe0),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x2eaa99(0xfe),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':_0x2eaa99(0xf4),'saving':_0x2eaa99(0xeb),'note1':_0x2eaa99(0xf1),'note2':_0x2eaa99(0xe9),'configSaved':_0x2eaa99(0xe5),'configError':_0x2eaa99(0xe4),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x2eaa99(0xed),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x2eaa99(0xe3)},'validation':{'apiKeyRequired':_0x2eaa99(0xf5),'apiKeyTooShort':_0x2eaa99(0xdc),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x2eaa99(0xf6)},'connectionStatus':{'disconnected':_0x2eaa99(0xfc),'connecting':_0x2eaa99(0x104),'connected':_0x2eaa99(0xe1),'failed':'Connection\x20Failed','retrying':_0x2eaa99(0xdd)},'connectionError':{'unauthorized':_0x2eaa99(0xf0),'sessionOccupied':_0x2eaa99(0xe7),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module[_0x2eaa99(0xf9)]=n;
|
package/lib/cjs/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x33675e=_0x38b2;(function(_0x42ca66,_0xc801af){const _0x195bc3=_0x38b2,_0x551aac=_0x42ca66();while(!![]){try{const _0x4fdece=-parseInt(_0x195bc3(0x1e2))/0x1*(parseInt(_0x195bc3(0x1db))/0x2)+parseInt(_0x195bc3(0x1c9))/0x3+parseInt(_0x195bc3(0x1ee))/0x4*(parseInt(_0x195bc3(0x1e5))/0x5)+-parseInt(_0x195bc3(0x1ed))/0x6+-parseInt(_0x195bc3(0x1d8))/0x7+parseInt(_0x195bc3(0x1d9))/0x8+parseInt(_0x195bc3(0x1eb))/0x9;if(_0x4fdece===_0xc801af)break;else _0x551aac['push'](_0x551aac['shift']());}catch(_0x28ea1a){_0x551aac['push'](_0x551aac['shift']());}}}(_0x5978,0xb2533));function _0x38b2(_0x537571,_0x287f75){_0x537571=_0x537571-0x1c8;const _0x597858=_0x5978();let _0x38b2fe=_0x597858[_0x537571];return _0x38b2fe;}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x33675e(0x1e6),'connected':_0x33675e(0x1e7),'failed':'MCP\x20Connection\x20Failed','retrying':_0x33675e(0x1d4),'unknown':_0x33675e(0x1f4),'unauthorized':_0x33675e(0x1e9),'sessionOccupied':_0x33675e(0x1cd),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x33675e(0x1d2),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x33675e(0x1ef),'description':_0x33675e(0x1e3),'apiKey':_0x33675e(0x1f5),'apiKeyPlaceholder':_0x33675e(0x1f6),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x33675e(0x1f0),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x33675e(0x1de),'mcpClientConfig':_0x33675e(0x1de),'configInstructions':_0x33675e(0x1d0),'configStepTitle':_0x33675e(0x1c8),'configStep1':_0x33675e(0x1d7),'configStep2':_0x33675e(0x1f2),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x33675e(0x1ea),'sessionIdDescription':_0x33675e(0x1cb),'authorizationDescription':_0x33675e(0x1dc),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x33675e(0x1f7),'save':_0x33675e(0x1d5),'saving':'Saving...','note1':_0x33675e(0x1dd),'note2':_0x33675e(0x1e0),'configSaved':_0x33675e(0x1df),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x33675e(0x1f1),'description':_0x33675e(0x1ce),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x33675e(0x1d6)},'validation':{'apiKeyRequired':_0x33675e(0x1e4),'apiKeyTooShort':_0x33675e(0x1cc),'invalidConfig':_0x33675e(0x1cf),'invalidApiKey':_0x33675e(0x1d3)},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':_0x33675e(0x1ca),'failed':'Connection\x20Failed','retrying':_0x33675e(0x1f3)},'connectionError':{'unauthorized':_0x33675e(0x1ec),'sessionOccupied':_0x33675e(0x1e8),'networkError':_0x33675e(0x1da),'maxRetriesExceeded':_0x33675e(0x1e1)}}},n=e;function _0x5978(){const _0x10ad4e=['Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','8328270FYXNaV','4qYtnJa','MCP\x20Configuration','Enable\x20Authentication','What\x20is\x20API\x20Key?','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Retrying...','MCP\x20Unknown\x20Status','API\x20Key','Enter\x20your\x20API\x20key','Max\x20Retries','Configuration\x20Steps:','3212472aMQzgM','Connected','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP:\x20Session\x20ID\x20Occupied','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Invalid\x20configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','exports','Click\x20to\x20connect\x20MCP','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Retrying...','Save\x20Configuration','Get\x20your\x20API\x20key\x20in\x20seconds','Copy\x20the\x20JSON\x20configuration\x20below','6522642vrEyNT','8765656vSkauA','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','34ZfGtJN','API\x20key\x20with\x20Bearer\x20prefix.','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Client\x20Configuration','Configuration\x20saved\x20successfully','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','60378wivuXR','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','API\x20key\x20is\x20required','154065fqTODr','MCP\x20Connecting...','MCP\x20Connected','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP:\x20Unauthorized','Session\x20ID','16914168fBeCkq'];_0x5978=function(){return _0x10ad4e;};return _0x5978();}module[_0x33675e(0x1d1)]=n;
|
package/lib/cjs/locale/ja-JP.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0xd3ba70=_0x4a03;(function(_0x24a7d0,_0x5de521){const _0x4a4ead=_0x4a03,_0x3cf088=_0x24a7d0();while(!![]){try{const _0x3f1d7a=parseInt(_0x4a4ead(0xa2))/0x1*(parseInt(_0x4a4ead(0x8f))/0x2)+parseInt(_0x4a4ead(0x9c))/0x3*(parseInt(_0x4a4ead(0xa3))/0x4)+parseInt(_0x4a4ead(0x9d))/0x5*(-parseInt(_0x4a4ead(0x8d))/0x6)+-parseInt(_0x4a4ead(0x92))/0x7+-parseInt(_0x4a4ead(0xc0))/0x8*(-parseInt(_0x4a4ead(0x9b))/0x9)+parseInt(_0x4a4ead(0x93))/0xa*(-parseInt(_0x4a4ead(0x8e))/0xb)+parseInt(_0x4a4ead(0xad))/0xc*(parseInt(_0x4a4ead(0xbc))/0xd);if(_0x3f1d7a===_0x5de521)break;else _0x3cf088['push'](_0x3cf088['shift']());}catch(_0x250533){_0x3cf088['push'](_0x3cf088['shift']());}}}(_0x4788,0xc790c));function _0x4a03(_0x4f4c3e,_0x9e5428){_0x4f4c3e=_0x4f4c3e-0x8b;const _0x4788e1=_0x4788();let _0x4a03b2=_0x4788e1[_0x4f4c3e];return _0x4a03b2;}const e={'mcpStatus':{'disconnected':_0xd3ba70(0xb5),'connecting':_0xd3ba70(0xb2),'connected':_0xd3ba70(0xbd),'failed':_0xd3ba70(0x99),'retrying':_0xd3ba70(0x95),'unknown':_0xd3ba70(0xb6),'unauthorized':_0xd3ba70(0xbe),'sessionOccupied':'MCP:\x20セッションIDが使用中','networkError':_0xd3ba70(0xab),'maxRetriesExceeded':_0xd3ba70(0x9a),'clickToConnect':_0xd3ba70(0xb9),'clickToConfigure':'クリックしてMCPを設定'},'mcpConfig':{'title':_0xd3ba70(0x8c),'description':'MCPを設定してAIでスプレッドシートを操作','apiKey':_0xd3ba70(0xb7),'apiKeyPlaceholder':'APIキーを入力してください','apiKeyHint':'APIキーはこのブラウザのローカルに保存されます','enableAuth':'認証を有効にする','enableAuthHint':_0xd3ba70(0xae),'connectionInfo':'MCPクライアント設定','mcpClientConfig':_0xd3ba70(0x8b),'configInstructions':_0xd3ba70(0x90),'configStepTitle':_0xd3ba70(0xa4),'configStep1':'以下のJSON設定をコピー','configStep2':'MCPクライアントの設定ファイルに設定を追加','configStep3':_0xd3ba70(0xb0),'sessionId':_0xd3ba70(0xaf),'sessionIdDescription':_0xd3ba70(0xbf),'authorizationDescription':_0xd3ba70(0xaa),'configParameters':_0xd3ba70(0x96),'maxRetries':_0xd3ba70(0xa1),'save':_0xd3ba70(0xb1),'saving':_0xd3ba70(0x91),'note1':'設定の変更は直ちに有効になります','note2':_0xd3ba70(0xba),'configSaved':_0xd3ba70(0x9e),'configError':_0xd3ba70(0xac),'apiApplyInfo':{'title':_0xd3ba70(0xa5),'description':'APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','univerAiLabel':_0xd3ba70(0x98),'getStarted':_0xd3ba70(0x9f)},'validation':{'apiKeyRequired':_0xd3ba70(0xa6),'apiKeyTooShort':_0xd3ba70(0x97),'invalidConfig':_0xd3ba70(0xbb),'invalidApiKey':_0xd3ba70(0xb4)},'connectionStatus':{'disconnected':_0xd3ba70(0xb8),'connecting':_0xd3ba70(0xa7),'connected':_0xd3ba70(0xb3),'failed':_0xd3ba70(0x94),'retrying':_0xd3ba70(0xa0)},'connectionError':{'unauthorized':_0xd3ba70(0xa8),'sessionOccupied':_0xd3ba70(0xa9),'networkError':'ネットワーク接続エラー。インターネット接続を確認してください','maxRetriesExceeded':_0xd3ba70(0xc1)}}};module['exports']=e;function _0x4788(){const _0x42203d=['2276SEMlLo','設定手順:','APIキーとは?','APIキーは必須です','接続中...','認証に失敗しました。APIキーを確認してください','セッションIDが現在使用中です。後でもう一度お試しください','Bearerプレフィックス付きのAPIキー。','MCP:\x20ネットワークエラー','設定の保存に失敗しました','213108KhaMhw','セキュアな接続のために認証を有効にする','セッションID','MCPクライアントを再起動して設定を適用','設定を保存','MCP\x20接続中...','接続済み','無効なAPIキーです。キーが正しいか確認してください','MCP\x20未接続','MCP\x20不明な状態','APIキー','未接続','クリックしてMCPに接続','APIキーはローカルストレージに安全に保存されます','無効な設定','104cVuQDX','MCP\x20接続済み','MCP:\x20認証されていません','一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','5984lLUdfR','最大再試行回数を超過しました。後でもう一度お試しください','MCPクライアント設定','MCP設定','42obWPIc','5335dFzNeA','26cCDDjg','MCPクライアントの設定に次の設定を追加してください:','保存中...','4551547AAOmMU','20530HhkRFP','接続失敗','MCP\x20再試行中...','設定パラメータ:','APIキーは10文字以上である必要があります','Univer\x20AIコンソール','MCP\x20接続失敗','MCP:\x20最大再試行回数を超過','13671dPCIXK','405mMfXEC','113650AtqBtd','設定が正常に保存されました','数秒でAPIキーを取得','再試行中...','最大再試行回数','97489Bggmsr'];_0x4788=function(){return _0x42203d;};return _0x4788();}
|