@univerjs-pro/mcp-ui 0.15.3-insiders.20260131-cbd5fac → 0.15.4

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.
Files changed (53) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/cjs/locale/ca-ES.js +1 -1
  3. package/lib/cjs/locale/en-US.js +1 -1
  4. package/lib/cjs/locale/es-ES.js +1 -1
  5. package/lib/cjs/locale/fa-IR.js +1 -1
  6. package/lib/cjs/locale/fr-FR.js +1 -1
  7. package/lib/cjs/locale/ja-JP.js +1 -1
  8. package/lib/cjs/locale/ko-KR.js +1 -1
  9. package/lib/cjs/locale/ru-RU.js +1 -1
  10. package/lib/cjs/locale/sk-SK.js +1 -1
  11. package/lib/cjs/locale/vi-VN.js +1 -1
  12. package/lib/cjs/locale/zh-CN.js +1 -1
  13. package/lib/cjs/locale/zh-TW.js +1 -1
  14. package/lib/es/index.js +1 -1
  15. package/lib/es/locale/ca-ES.js +1 -1
  16. package/lib/es/locale/en-US.js +1 -1
  17. package/lib/es/locale/es-ES.js +1 -1
  18. package/lib/es/locale/fa-IR.js +1 -1
  19. package/lib/es/locale/fr-FR.js +1 -1
  20. package/lib/es/locale/ja-JP.js +1 -1
  21. package/lib/es/locale/ko-KR.js +1 -1
  22. package/lib/es/locale/ru-RU.js +1 -1
  23. package/lib/es/locale/sk-SK.js +1 -1
  24. package/lib/es/locale/vi-VN.js +1 -1
  25. package/lib/es/locale/zh-CN.js +1 -1
  26. package/lib/es/locale/zh-TW.js +1 -1
  27. package/lib/index.js +1 -1
  28. package/lib/locale/ca-ES.js +1 -1
  29. package/lib/locale/en-US.js +1 -1
  30. package/lib/locale/es-ES.js +1 -1
  31. package/lib/locale/fa-IR.js +1 -1
  32. package/lib/locale/fr-FR.js +1 -1
  33. package/lib/locale/ja-JP.js +1 -1
  34. package/lib/locale/ko-KR.js +1 -1
  35. package/lib/locale/ru-RU.js +1 -1
  36. package/lib/locale/sk-SK.js +1 -1
  37. package/lib/locale/vi-VN.js +1 -1
  38. package/lib/locale/zh-CN.js +1 -1
  39. package/lib/locale/zh-TW.js +1 -1
  40. package/lib/umd/index.js +1 -1
  41. package/lib/umd/locale/ca-ES.js +1 -1
  42. package/lib/umd/locale/en-US.js +1 -1
  43. package/lib/umd/locale/es-ES.js +1 -1
  44. package/lib/umd/locale/fa-IR.js +1 -1
  45. package/lib/umd/locale/fr-FR.js +1 -1
  46. package/lib/umd/locale/ja-JP.js +1 -1
  47. package/lib/umd/locale/ko-KR.js +1 -1
  48. package/lib/umd/locale/ru-RU.js +1 -1
  49. package/lib/umd/locale/sk-SK.js +1 -1
  50. package/lib/umd/locale/vi-VN.js +1 -1
  51. package/lib/umd/locale/zh-CN.js +1 -1
  52. package/lib/umd/locale/zh-TW.js +1 -1
  53. package/package.json +7 -7
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x23229f=_0x5902;(function(_0x2fe51a,_0x48a212){const _0x4a4825=_0x5902,_0x42e490=_0x2fe51a();while(!![]){try{const _0x270fa6=-parseInt(_0x4a4825(0xc3))/0x1+parseInt(_0x4a4825(0x100))/0x2*(parseInt(_0x4a4825(0x147))/0x3)+parseInt(_0x4a4825(0x120))/0x4+parseInt(_0x4a4825(0x7f))/0x5+-parseInt(_0x4a4825(0xba))/0x6+parseInt(_0x4a4825(0xd6))/0x7*(-parseInt(_0x4a4825(0x16c))/0x8)+parseInt(_0x4a4825(0x10b))/0x9;if(_0x270fa6===_0x48a212)break;else _0x42e490['push'](_0x42e490['shift']());}catch(_0x4f407f){_0x42e490['push'](_0x42e490['shift']());}}}(_0xc67f,0xa3494));var ae=Object[_0x23229f(0xd9)],le=(_0x1d8163,_0x859058,_0x349754)=>_0x859058 in _0x1d8163?ae(_0x1d8163,_0x859058,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x349754}):_0x1d8163[_0x859058]=_0x349754,I=(_0x5609a7,_0x377dd7,_0x1c48f2)=>le(_0x5609a7,typeof _0x377dd7!=_0x23229f(0x1b1)?_0x377dd7+'':_0x377dd7,_0x1c48f2);Object[_0x23229f(0xd9)](exports,Symbol['toStringTag'],{'value':_0x23229f(0x16a)});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:_0x4f8130,..._0x25fad9}){const _0x19d003=_0x23229f,{icon:_0x36ccf8,id:_0x5007c4,className:_0x30604a,extend:_0x535116,..._0xf82ef2}=_0x25fad9,_0x2de83e=(_0x19d003(0x132)+_0x5007c4+'\x20'+(_0x30604a||''))[_0x19d003(0xd8)](),_0x2d456d=d[_0x19d003(0x17b)]('_'+de());return G(_0x36ccf8,''+_0x5007c4,{'defIds':_0x36ccf8['defIds'],'idSuffix':_0x2d456d[_0x19d003(0x127)]},{'ref':_0x4f8130,'className':_0x2de83e,..._0xf82ef2},_0x535116);}function G(_0x4a1011,_0x60dd03,_0x28167c,_0x21e3ce,_0x14648f){const _0x10fb0b=_0x23229f;return d[_0x10fb0b(0x12b)](_0x4a1011[_0x10fb0b(0x1c2)],{'key':_0x60dd03,...ue(_0x4a1011,_0x28167c,_0x14648f),..._0x21e3ce},(ve(_0x4a1011,_0x28167c)[_0x10fb0b(0xe9)]||[])[_0x10fb0b(0x145)]((_0x21c4fc,_0x1f7bfd)=>G(_0x21c4fc,_0x60dd03+'-'+_0x4a1011[_0x10fb0b(0x1c2)]+'-'+_0x1f7bfd,_0x28167c,void 0x0,_0x14648f)));}function ue(_0x34dbfc,_0xc49bd2,_0x13b1ba){const _0x2c5741=_0x23229f,_0x58ccc9={..._0x34dbfc[_0x2c5741(0x109)]};_0x13b1ba!=null&&_0x13b1ba[_0x2c5741(0x111)]&&_0x58ccc9[_0x2c5741(0x1a3)]===_0x2c5741(0x111)&&(_0x58ccc9[_0x2c5741(0x1a3)]=_0x13b1ba[_0x2c5741(0x111)]),_0x34dbfc[_0x2c5741(0x1c2)]==='mask'&&_0x58ccc9['id']&&(_0x58ccc9['id']=_0x58ccc9['id']+_0xc49bd2[_0x2c5741(0x15a)]),Object[_0x2c5741(0x1ae)](_0x58ccc9)['forEach'](([_0x3196f7,_0x38c797])=>{const _0x39c5ff=_0x2c5741;_0x3196f7===_0x39c5ff(0x13a)&&typeof _0x38c797==_0x39c5ff(0x10d)&&(_0x58ccc9[_0x3196f7]=_0x38c797[_0x39c5ff(0x11b)](/url\(#(.*)\)/,_0x39c5ff(0xeb)+_0xc49bd2['idSuffix']+')'));});const {defIds:_0x49138a}=_0xc49bd2;return!_0x49138a||_0x49138a[_0x2c5741(0x129)]===0x0||(_0x34dbfc[_0x2c5741(0x1c2)]===_0x2c5741(0x18e)&&_0x58ccc9[_0x2c5741(0xf2)]&&(_0x58ccc9[_0x2c5741(0xf2)]=_0x58ccc9['xlink:href']+_0xc49bd2[_0x2c5741(0x15a)]),Object[_0x2c5741(0x1ae)](_0x58ccc9)[_0x2c5741(0x102)](([_0x1ba564,_0x19a0c1])=>{const _0x4ebe44=_0x2c5741;typeof _0x19a0c1=='string'&&(_0x58ccc9[_0x1ba564]=_0x19a0c1[_0x4ebe44(0x11b)](/url\(#(.*)\)/,'url(#$1'+_0xc49bd2['idSuffix']+')'));})),_0x58ccc9;}function ve(_0x3019bd,_0x37c406){const _0x411b6e=_0x23229f;var _0x1dc018;const {defIds:_0xa8dfcd}=_0x37c406;return!_0xa8dfcd||_0xa8dfcd[_0x411b6e(0x129)]===0x0?_0x3019bd:_0x3019bd[_0x411b6e(0x1c2)]===_0x411b6e(0x156)&&((_0x1dc018=_0x3019bd['children'])!=null&&_0x1dc018[_0x411b6e(0x129)])?{..._0x3019bd,'children':_0x3019bd[_0x411b6e(0xe9)][_0x411b6e(0x145)](_0x5154ea=>typeof _0x5154ea[_0x411b6e(0x109)]['id']==_0x411b6e(0x10d)&&_0xa8dfcd&&_0xa8dfcd[_0x411b6e(0x163)](_0x5154ea[_0x411b6e(0x109)]['id'])?{..._0x5154ea,'attrs':{..._0x5154ea[_0x411b6e(0x109)],'id':_0x5154ea[_0x411b6e(0x109)]['id']+_0x37c406[_0x411b6e(0x15a)]}}:_0x5154ea)}:_0x3019bd;}function de(){const _0x493f02=_0x23229f;return Math[_0x493f02(0x158)]()[_0x493f02(0xb9)](0x24)[_0x493f02(0x15e)](0x2,0x8);}_[_0x23229f(0xb5)]='UniverIcon';const Ce={'tag':'svg','attrs':{'xmlns':_0x23229f(0x121),'fill':_0x23229f(0x1e1),'viewBox':_0x23229f(0x1da),'width':_0x23229f(0x1b8),'height':_0x23229f(0x1b8)},'children':[{'tag':_0x23229f(0x1c9),'attrs':{'fill':_0x23229f(0x16d),'d':_0x23229f(0xef),'fillRule':_0x23229f(0xa2),'clipRule':_0x23229f(0xa2)}}]},H=d[_0x23229f(0x10f)](function(_0x4c22ea,_0x5491bd){const _0x48979d=_0x23229f;return d['createElement'](_,Object[_0x48979d(0x8b)]({},_0x4c22ea,{'id':'check-mark-icon','ref':_0x5491bd,'icon':Ce}));});H[_0x23229f(0xb5)]=_0x23229f(0x1a6);const ge={'tag':_0x23229f(0xa0),'attrs':{'xmlns':_0x23229f(0x121),'fill':'none','viewBox':_0x23229f(0x1da),'width':_0x23229f(0x1b8),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x23229f(0x16d),'d':'M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z'}}]},B=d[_0x23229f(0x10f)](function(_0x35c6f7,_0x585b87){const _0x404a8b=_0x23229f;return d[_0x404a8b(0x12b)](_,Object[_0x404a8b(0x8b)]({},_0x35c6f7,{'id':_0x404a8b(0xea),'ref':_0x585b87,'icon':ge}));});B[_0x23229f(0xb5)]=_0x23229f(0xe4);const fe={'tag':_0x23229f(0xa0),'attrs':{'xmlns':_0x23229f(0x121),'fill':_0x23229f(0x1e1),'viewBox':_0x23229f(0x1da),'width':'1em','height':_0x23229f(0x1b8)},'children':[{'tag':_0x23229f(0x1c9),'attrs':{'fill':_0x23229f(0x16d),'d':_0x23229f(0x94)}},{'tag':_0x23229f(0x1c9),'attrs':{'fill':'currentColor','d':_0x23229f(0xd5)}},{'tag':_0x23229f(0x1c9),'attrs':{'fill':_0x23229f(0x16d),'d':_0x23229f(0x16e),'fillRule':_0x23229f(0xa2),'clipRule':_0x23229f(0xa2)}}]},F=d[_0x23229f(0x10f)](function(_0x1c1215,_0x327340){const _0x1aa072=_0x23229f;return d[_0x1aa072(0x12b)](_,Object['assign']({},_0x1c1215,{'id':_0x1aa072(0xee),'ref':_0x327340,'icon':fe}));});F[_0x23229f(0xb5)]=_0x23229f(0x197);const pe={'tag':'svg','attrs':{'xmlns':_0x23229f(0x121),'fill':_0x23229f(0x1e1),'viewBox':_0x23229f(0x1da),'width':_0x23229f(0x1b8),'height':_0x23229f(0x1b8)},'children':[{'tag':'g','attrs':{'clipPath':_0x23229f(0x137)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x23229f(0x10a),'strokeLinecap':_0x23229f(0xbb),'strokeLinejoin':_0x23229f(0xbb),'strokeWidth':1.2}}]},{'tag':_0x23229f(0x156),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x23229f(0x1c9),'attrs':{'fill':_0x23229f(0x1bd),'d':_0x23229f(0xf1)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},Y=d[_0x23229f(0x10f)](function(_0x536318,_0x38c735){const _0x333e44=_0x23229f;return d['createElement'](_,Object['assign']({},_0x536318,{'id':_0x333e44(0x165),'ref':_0x38c735,'icon':pe}));});Y[_0x23229f(0xb5)]='OffLineIcon';const he={'tag':'svg','attrs':{'xmlns':_0x23229f(0x121),'fill':_0x23229f(0x1e1),'viewBox':_0x23229f(0xfc),'width':_0x23229f(0x1b8),'height':_0x23229f(0x1b8)},'children':[{'tag':'g','attrs':{'clipPath':_0x23229f(0x92)},'children':[{'tag':_0x23229f(0x1c9),'attrs':{'stroke':'currentColor','d':_0x23229f(0x125),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x23229f(0x156),'attrs':{},'children':[{'tag':_0x23229f(0x1ba),'attrs':{'id':_0x23229f(0x11f)},'children':[{'tag':_0x23229f(0x1c9),'attrs':{'fill':'white','d':_0x23229f(0xf1),'transform':_0x23229f(0x98)}}]}]}],'defIds':[_0x23229f(0x11f)]},q=d['forwardRef'](function(_0x1d1ca4,_0xb722e3){const _0x2c239a=_0x23229f;return d[_0x2c239a(0x12b)](_,Object['assign']({},_0x1d1ca4,{'id':_0x2c239a(0x1b7),'ref':_0xb722e3,'icon':he}));});q[_0x23229f(0xb5)]=_0x23229f(0x12d);function V(_0x4fb2b3){const _0x27b139=_0x23229f;var _0xe0c954,_0x3a49d4;const {mcpCoreConfig:_0x2e0668,onSave:_0x398ef5,loading:_0x86b6f1=!0x1,config:_0x220b1a,connectionStatus$:_0x235139,connectionError$:_0x2c59f0,currentApiKey$:_0xa6c999,currentSessionId$:_0x47067e}=_0x4fb2b3,_0x49a934=v[_0x27b139(0x13b)](u[_0x27b139(0x10c)]),_0x49fd4b=v[_0x27b139(0xb3)](_0x235139,s[_0x27b139(0xfa)]['DISCONNECTED']),_0x1f8342=v[_0x27b139(0xb3)](_0x2c59f0,s[_0x27b139(0x84)][_0x27b139(0x10e)]),_0x51625d=v['useObservable'](_0x47067e,''),_0x1ca442=v['useObservable'](_0xa6c999,''),[_0x40405e,_0xb6ed3b]=d[_0x27b139(0x11e)](_0x1ca442||''),_0x99504=!0x0,_0x399548=_0x220b1a[_0x27b139(0x19c)]&&_0x2e0668['mcpServerUrl']&&(_0x2e0668[_0x27b139(0x1d7)][_0x27b139(0x163)](_0x27b139(0x19f))||_0x2e0668[_0x27b139(0x1d7)][_0x27b139(0x163)](_0x27b139(0x9b))),_0x5a3e00=(_0xe0c954=_0x2e0668[_0x27b139(0x1d7)])==null?void 0x0:_0xe0c954[_0x27b139(0x163)]('univer.plus'),_0xc2bbed=(_0x3a49d4=_0x2e0668['mcpServerUrl'])==null?void 0x0:_0x3a49d4['includes']('univer.ai'),_0x397ed0=_0x5a3e00?_0x27b139(0x1cb):_0x27b139(0x1d8),_0x3090de=_0x220b1a[_0x27b139(0x19c)]&&(_0x5a3e00||_0xc2bbed),[_0x4b0b11,_0x127248]=d[_0x27b139(0x11e)](!_0x40405e[_0x27b139(0xd8)]()),_0x5ab014=(_0x1e2cd4,_0x4bd14e)=>{const _0x44d3c7=_0x27b139;if(_0x4bd14e===s[_0x44d3c7(0x84)][_0x44d3c7(0x133)])return _0x44d3c7(0x1d1);switch(_0x1e2cd4){case s[_0x44d3c7(0xfa)][_0x44d3c7(0xd7)]:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case s[_0x44d3c7(0xfa)]['CONNECTING']:case s[_0x44d3c7(0xfa)][_0x44d3c7(0x1e4)]:return _0x44d3c7(0x1ce);case s[_0x44d3c7(0xfa)][_0x44d3c7(0xe3)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return _0x44d3c7(0x159);}},_0x3528de=(_0x4c2eb9,_0x304fce)=>{const _0x167070=_0x27b139;if(_0x304fce===s[_0x167070(0x84)][_0x167070(0x133)])return _0x167070(0xe0);switch(_0x4c2eb9){case s[_0x167070(0xfa)][_0x167070(0xd7)]:return _0x167070(0x1dc);case s['MCPConnectionStatus'][_0x167070(0x13c)]:case s[_0x167070(0xfa)][_0x167070(0x1e4)]:return'univer-bg-blue-500';case s[_0x167070(0xfa)][_0x167070(0xe3)]:return _0x167070(0xe0);default:return _0x167070(0x87);}},_0x3cbf39=_0x394150=>{const _0xc0ac87=_0x27b139;switch(_0x394150){case s[_0xc0ac87(0xfa)][_0xc0ac87(0xd7)]:return _0x49a934['t'](_0xc0ac87(0x107));case s[_0xc0ac87(0xfa)][_0xc0ac87(0x13c)]:return _0x49a934['t']('mcpConfig.connectionStatus.connecting');case s[_0xc0ac87(0xfa)][_0xc0ac87(0xe3)]:return _0x49a934['t'](_0xc0ac87(0x1a4));case s[_0xc0ac87(0xfa)][_0xc0ac87(0x1e4)]:return _0x49a934['t']('mcpConfig.connectionStatus.retrying');default:return _0x49a934['t'](_0xc0ac87(0xc9));}},_0x11bde5=_0x498dc0=>{const _0x23cc47=_0x27b139;switch(_0x498dc0){case s[_0x23cc47(0x84)]['UNAUTHORIZED']:return _0x49a934['t'](_0x23cc47(0x182));case s[_0x23cc47(0x84)][_0x23cc47(0xf5)]:return _0x49a934['t'](_0x23cc47(0x101));case s[_0x23cc47(0x84)][_0x23cc47(0x8a)]:return _0x49a934['t']('mcpConfig.connectionError.networkError');case s['MCPConnectionError']['MAX_RETRIES_EXCEEDED']:return _0x49a934['t'](_0x23cc47(0x1b3));default:return'';}},_0x1c54de=d[_0x27b139(0x195)](()=>{const _0x172636=_0x27b139,_0x4ced47={..._0x2e0668,'apiKey':_0x40405e[_0x172636(0xd8)](),'enableAuth':_0x99504};_0x398ef5(_0x4ced47);},[_0x2e0668,_0x40405e,_0x99504,_0x398ef5]),_0x144ed6=_0x40405e[_0x27b139(0xd8)]()[_0x27b139(0x129)]>0x0;return i['jsxs'](_0x27b139(0x83),{'className':_0x27b139(0x155),'children':[i['jsx']('div',{'className':_0x27b139(0x154),'children':i['jsxs'](_0x27b139(0x83),{'className':_0x27b139(0x122),'children':[i[_0x27b139(0xe5)](_0x27b139(0x83),{'className':'univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','children':i['jsx'](_0x27b139(0xe1),{'className':'univer-text-white','children':'⚙'})}),i[_0x27b139(0xe5)](_0x27b139(0x83),{'children':i[_0x27b139(0xe5)]('p',{'className':_0x27b139(0x14b),'children':_0x49a934['t']('mcpConfig.description')})})]})}),i[_0x27b139(0xb8)](_0x27b139(0x83),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[i['jsx'](_0x27b139(0x83),{'className':f[_0x27b139(0x150)](_0x27b139(0x95),_0x5ab014(_0x49fd4b,_0x1f8342)),'children':i[_0x27b139(0xb8)](_0x27b139(0x83),{'className':_0x27b139(0x12e),'children':[i[_0x27b139(0xe5)]('div',{'className':f[_0x27b139(0x150)]('univer-size-2\x20univer-rounded-full',_0x3528de(_0x49fd4b,_0x1f8342))}),i[_0x27b139(0xe5)](_0x27b139(0xe1),{'className':_0x27b139(0xf6),'children':_0x3cbf39(_0x49fd4b)})]})}),_0x1f8342!==s[_0x27b139(0x84)][_0x27b139(0x10e)]&&(_0x49fd4b===s[_0x27b139(0xfa)][_0x27b139(0xe3)]||_0x1f8342===s[_0x27b139(0x84)][_0x27b139(0x133)])&&i[_0x27b139(0xe5)](_0x27b139(0x83),{'className':_0x27b139(0x1bf),'children':i['jsxs'](_0x27b139(0x83),{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[i[_0x27b139(0xe5)]('span',{'className':'univer-shrink-0\x20univer-text-red-500','children':'⚠️'}),i[_0x27b139(0xe5)]('p',{'className':_0x27b139(0x173),'children':_0x11bde5(_0x1f8342)})]})})]}),i['jsx']('div',{'className':_0x27b139(0x181),'children':i['jsxs'](_0x27b139(0x83),{'className':_0x27b139(0x1c0),'children':[i[_0x27b139(0xb8)](_0x27b139(0x83),{'className':'univer-space-y-2','children':[i[_0x27b139(0xb8)](_0x27b139(0xd4),{'className':_0x27b139(0xb6),'children':[i[_0x27b139(0xe5)](_0x27b139(0xe1),{'children':'🔑'}),'\x20',_0x49a934['t']('mcpConfig.apiKey'),i[_0x27b139(0xe5)]('span',{'className':_0x27b139(0xec),'children':'*'}),_0x399548&&i[_0x27b139(0xe5)]('a',{'className':'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','title':_0x49a934['t'](_0x27b139(0x186)),'role':'button','onClick':()=>_0x127248(!0x0),'children':i[_0x27b139(0xe5)](F,{})})]}),i[_0x27b139(0xe5)](f['Input'],{'type':_0x27b139(0x152),'placeholder':_0x49a934['t'](_0x27b139(0x192)),'value':_0x40405e,'disabled':_0x86b6f1,'autoComplete':_0x27b139(0x166),'onChange':_0xb6ed3b}),i[_0x27b139(0xe5)]('p',{'className':_0x27b139(0x1aa),'children':_0x49a934['t'](_0x27b139(0x18d))})]}),_0x399548&&_0x4b0b11&&i[_0x27b139(0xb8)]('div',{'className':_0x27b139(0xf7),'children':[i[_0x27b139(0xe5)]('a',{'className':'univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','role':_0x27b139(0x1ad),'onClick':()=>_0x127248(!0x1),'children':i['jsx'](B,{'className':_0x27b139(0x151)})}),i['jsxs'](_0x27b139(0x83),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[i[_0x27b139(0xe5)](_0x27b139(0x83),{'className':_0x27b139(0xa5),'children':i[_0x27b139(0xe5)](_0x27b139(0xe1),{'className':_0x27b139(0x14c),'children':'🚀'})}),i[_0x27b139(0xb8)](_0x27b139(0x83),{'className':_0x27b139(0xca),'children':[i['jsx']('h4',{'className':_0x27b139(0x177),'children':_0x49a934['t'](_0x27b139(0x186))}),i[_0x27b139(0xe5)]('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x49a934['t']('mcpConfig.apiApplyInfo.description')}),i['jsx'](_0x27b139(0x83),{'className':_0x27b139(0x7e),'children':_0x3090de&&i[_0x27b139(0xb8)]('a',{'className':_0x27b139(0x1e7),'href':_0x397ed0,'target':_0x27b139(0x138),'rel':_0x27b139(0x15b),'children':[i[_0x27b139(0xe5)](_0x27b139(0xe1),{'children':'🤖'}),_0x49a934['t'](_0x27b139(0xa6)),i[_0x27b139(0xe5)](_0x27b139(0xe1),{'className':'univer-text-gray-400','children':'↗'})]})}),i['jsxs'](_0x27b139(0x83),{'className':_0x27b139(0x1c4),'children':['✨','\x20',_0x49a934['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x220b1a[_0x27b139(0x19c)]&&i[_0x27b139(0xb8)](_0x27b139(0x83),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[i[_0x27b139(0xb8)]('h4',{'className':_0x27b139(0x119),'children':[i[_0x27b139(0xe5)]('span',{'children':'🔗'}),'\x20',_0x49a934['t']('mcpConfig.connectionInfo')]}),i[_0x27b139(0xb8)](_0x27b139(0x83),{'className':'univer-space-y-4','children':[i[_0x27b139(0xb8)](_0x27b139(0x83),{'className':_0x27b139(0x1bc),'children':[i[_0x27b139(0xe5)]('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x49a934['t'](_0x27b139(0x16f))}),i[_0x27b139(0xb8)](_0x27b139(0x83),{'className':_0x27b139(0x85),'children':[i[_0x27b139(0xe5)](_0x27b139(0x83),{'className':_0x27b139(0x1be),'children':_0x49a934['t']('mcpConfig.configStepTitle')}),i[_0x27b139(0xb8)](_0x27b139(0x83),{'className':_0x27b139(0x183),'children':[i[_0x27b139(0xb8)](_0x27b139(0x83),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x27b139(0xe5)](_0x27b139(0xe1),{'className':_0x27b139(0x167),'children':'1'}),_0x49a934['t'](_0x27b139(0xc0))]}),i[_0x27b139(0xb8)](_0x27b139(0x83),{'className':_0x27b139(0x12e),'children':[i[_0x27b139(0xe5)](_0x27b139(0xe1),{'className':_0x27b139(0x167),'children':'2'}),_0x49a934['t'](_0x27b139(0x88))]}),i[_0x27b139(0xb8)]('div',{'className':_0x27b139(0x12e),'children':[i[_0x27b139(0xe5)](_0x27b139(0xe1),{'className':_0x27b139(0x167),'children':'3'}),_0x49a934['t']('mcpConfig.configStep3')]})]})]})]}),i[_0x27b139(0xb8)](_0x27b139(0x83),{'className':_0x27b139(0x85),'children':[i[_0x27b139(0xe5)](_0x27b139(0x83),{'className':_0x27b139(0x1be),'children':_0x27b139(0xff)}),i['jsx'](_0x27b139(0x83),{'className':_0x27b139(0xbd),'children':i[_0x27b139(0xe5)]('pre',{'className':_0x27b139(0xa7),'children':JSON[_0x27b139(0xa1)]({'mcpServers':{'univer':{'url':_0x27b139(0x1a5)+(_0x51625d||_0x27b139(0x172)),'type':_0x27b139(0x18c),'headers':{'Authorization':'Bearer\x20'+(_0x40405e||_0x27b139(0xe6))}}}},null,0x2)})})]}),i[_0x27b139(0xb8)](_0x27b139(0x83),{'className':'univer-space-y-3','children':[i[_0x27b139(0xe5)](_0x27b139(0x83),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x49a934['t'](_0x27b139(0x184))}),i['jsxs']('div',{'className':'univer-space-y-2','children':[i[_0x27b139(0xb8)]('div',{'className':_0x27b139(0x12c),'children':[i[_0x27b139(0xe5)](_0x27b139(0x83),{'className':_0x27b139(0x93)}),i[_0x27b139(0xb8)](_0x27b139(0x83),{'className':_0x27b139(0x180),'children':[i[_0x27b139(0xe5)](_0x27b139(0x83),{'className':_0x27b139(0x123),'children':_0x27b139(0x168)}),i[_0x27b139(0xe5)](_0x27b139(0x83),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x49a934['t'](_0x27b139(0x1a7))})]})]}),i[_0x27b139(0xb8)](_0x27b139(0x83),{'className':_0x27b139(0x12c),'children':[i[_0x27b139(0xe5)]('div',{'className':_0x27b139(0x93)}),i['jsxs']('div',{'className':'univer-min-w-0\x20univer-flex-1','children':[i['jsx']('div',{'className':_0x27b139(0x123),'children':_0x27b139(0x161)}),i[_0x27b139(0xe5)](_0x27b139(0x83),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x49a934['t'](_0x27b139(0x1d4))})]})]})]})]})]})]}),i['jsx'](f['Button'],{'onClick':_0x1c54de,'disabled':!_0x144ed6||_0x86b6f1,'className':_0x27b139(0x112),'children':_0x86b6f1?i[_0x27b139(0xb8)](_0x27b139(0xe1),{'className':_0x27b139(0x12e),'children':[i[_0x27b139(0xe5)](_0x27b139(0xe1),{'children':'⟲'}),_0x49a934['t'](_0x27b139(0xbf))]}):i[_0x27b139(0xb8)](_0x27b139(0xe1),{'className':_0x27b139(0x12e),'children':[i[_0x27b139(0xe5)](H,{}),_0x49a934['t']('mcpConfig.save')]})}),i[_0x27b139(0xe5)](_0x27b139(0x83),{'className':_0x27b139(0x1c3),'children':i[_0x27b139(0xb8)]('div',{'className':_0x27b139(0xf8),'children':[i['jsx'](_0x27b139(0xe1),{'className':_0x27b139(0x19e),'children':'💡'}),i[_0x27b139(0xb8)](_0x27b139(0x83),{'className':_0x27b139(0xc7),'children':[i[_0x27b139(0xe5)]('div',{'className':_0x27b139(0x1a9),'children':'Configuration\x20Notes:'}),i['jsxs'](_0x27b139(0x83),{'children':['•',_0x49a934['t'](_0x27b139(0xc1))]}),i[_0x27b139(0xb8)]('div',{'children':['•',_0x49a934['t']('mcpConfig.note2')]})]})]})})]})})]});}const P=_0x23229f(0xde),L={'showDeveloperTools':!0x1,'showStatus':!0x0};var me=Object[_0x23229f(0x1e5)],xe=(_0x387536,_0x2f21a5,_0x5da763,_0x329667)=>{const _0x4a54ed=_0x23229f;for(var _0x3adc38=_0x329667>0x1?void 0x0:_0x329667?me(_0x2f21a5,_0x5da763):_0x2f21a5,_0x3ad2eb=_0x387536[_0x4a54ed(0x129)]-0x1,_0x4b6740;_0x3ad2eb>=0x0;_0x3ad2eb--)(_0x4b6740=_0x387536[_0x3ad2eb])&&(_0x3adc38=_0x4b6740(_0x3adc38)||_0x3adc38);return _0x3adc38;},g=(_0x48ade7,_0x246bd1)=>(_0x5635e6,_0x226fd3)=>_0x246bd1(_0x5635e6,_0x226fd3,_0x48ade7);const O=_0x23229f(0x1bb),D=_0x23229f(0x1a2);exports[_0x23229f(0x9a)]=class extends u[_0x23229f(0x1e0)]{constructor(_0x3d14b8,_0x45666d,_0x278c9d,_0x5f3342,_0x40614f,_0x123a8f,_0x288df5,_0x4e6145,_0x49296d,_0x35e20d){const _0x5e1bb2=_0x23229f;super(),I(this,_0x5e1bb2(0x191),new M[(_0x5e1bb2(0x104))](!0x1)),I(this,'_mcpCoreConfig$',new M['BehaviorSubject']({})),I(this,_0x5e1bb2(0x114),new M['BehaviorSubject']({})),I(this,_0x5e1bb2(0x9c),new M['BehaviorSubject']('')),I(this,_0x5e1bb2(0xa3),async _0x3e148c=>{const _0x3f30cb=_0x5e1bb2;var _0x925a20,_0x224ab4;this[_0x3f30cb(0x191)]['next'](!0x0);try{const _0xc01136=await this['_validateConfig'](_0x3e148c);if(!_0xc01136[_0x3f30cb(0x1db)]){this[_0x3f30cb(0x14e)][_0x3f30cb(0xc5)]({'type':f[_0x3f30cb(0x9f)][_0x3f30cb(0x1df)],'content':_0xc01136[_0x3f30cb(0x171)]||this[_0x3f30cb(0x124)]['t']('mcpConfig.validation.invalidConfig')});return;}_0x3e148c[_0x3f30cb(0x7d)]?await this[_0x3f30cb(0x1d6)][_0x3f30cb(0x160)](O,_0x3e148c['apiKey']['trim']()):await this[_0x3f30cb(0x1d6)]['removeItem'](O),this[_0x3f30cb(0x9c)][_0x3f30cb(0x1d0)](((_0x925a20=_0x3e148c['apiKey'])==null?void 0x0:_0x925a20[_0x3f30cb(0xd8)]())||''),this[_0x3f30cb(0xcb)][_0x3f30cb(0xb1)]({'Authorization':_0x3f30cb(0xfd)+((_0x224ab4=_0x3e148c['apiKey'])==null?void 0x0:_0x224ab4[_0x3f30cb(0xd8)]())}),this[_0x3f30cb(0x14e)]['show']({'type':f[_0x3f30cb(0x9f)]['Success'],'content':this['_localeService']['t'](_0x3f30cb(0x18b))}),setTimeout(()=>{const _0x3ca638=_0x3f30cb;this[_0x3ca638(0xaa)][_0x3ca638(0x1a0)](D);},0x320);}catch(_0x4329b1){this[_0x3f30cb(0xd3)][_0x3f30cb(0x16b)](_0x3f30cb(0x1d3),_0x4329b1),this[_0x3f30cb(0x14e)][_0x3f30cb(0xc5)]({'type':f['MessageType'][_0x3f30cb(0x1df)],'content':this[_0x3f30cb(0x124)]['t'](_0x3f30cb(0x135))});}finally{this[_0x3f30cb(0x191)][_0x3f30cb(0x1d0)](!0x1);}}),(this[_0x5e1bb2(0xf9)]=_0x3d14b8,this[_0x5e1bb2(0x103)]=_0x45666d,this['_configService']=_0x278c9d,this[_0x5e1bb2(0x1d6)]=_0x5f3342,this['_dialogService']=_0x40614f,this[_0x5e1bb2(0x14e)]=_0x123a8f,this[_0x5e1bb2(0x14a)]=_0x288df5,this[_0x5e1bb2(0x124)]=_0x4e6145,this[_0x5e1bb2(0xd3)]=_0x49296d,this['_mcpConnectionController']=_0x35e20d,this[_0x5e1bb2(0x86)](),this['_loadStoredApiKey'](),this[_0x5e1bb2(0xd0)]());}[_0x23229f(0xdf)](){const _0x48453d=_0x23229f,_0x4714e8=this['_configService'][_0x48453d(0x13e)](P);_0x4714e8!=null&&_0x4714e8[_0x48453d(0x19c)]&&this['_dialogService'][_0x48453d(0x169)]({'id':D,'title':{'title':this['_localeService']['t']('mcpConfig.title')},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0xeac768=_0x48453d;this[_0xeac768(0xaa)][_0xeac768(0x1a0)](D);}});}['getCurrentConfig'](){const _0x1fce2d=_0x23229f;return this[_0x1fce2d(0x1c8)][_0x1fce2d(0x13d)];}[_0x23229f(0xd0)](){const _0x22c90a=_0x23229f;this[_0x22c90a(0x1b0)](this[_0x22c90a(0x14a)]['register'](_0x22c90a(0x1c6),this['_createConfigPanelComponent']()));}[_0x23229f(0x188)](){const _0x11abbd=_0x23229f;return v[_0x11abbd(0x174)](()=>{const _0x388754=_0x11abbd;var _0x2343dd,_0x1caf1b,_0x11c1ee;return i['jsx'](V,{'config':this[_0x388754(0x114)][_0x388754(0x13d)],'mcpCoreConfig':this[_0x388754(0x1c8)][_0x388754(0x13d)],'currentApiKey$':this['_apiKey$'],'onSave':this[_0x388754(0xa3)],'loading':this['_loading$'][_0x388754(0x13d)],'connectionStatus$':(_0x2343dd=this[_0x388754(0xcb)])==null?void 0x0:_0x2343dd[_0x388754(0x91)],'connectionError$':(_0x1caf1b=this['_mcpConnectionController'])==null?void 0x0:_0x1caf1b['connectionError$'],'currentSessionId$':(_0x11c1ee=this[_0x388754(0xcb)])==null?void 0x0:_0x11c1ee[_0x388754(0xb0)]});},this[_0x11abbd(0xf9)]);}[_0x23229f(0x86)](){const _0x22a78d=_0x23229f;this[_0x22a78d(0x1b0)](this[_0x22a78d(0x131)][_0x22a78d(0x19d)](s[_0x22a78d(0x17c)])['subscribe'](_0x2f613a=>{const _0x645d43=_0x22a78d;this[_0x645d43(0x1c8)][_0x645d43(0x1d0)](_0x2f613a||{});}));const _0x8b1d4f=this[_0x22a78d(0x131)][_0x22a78d(0x13e)](s[_0x22a78d(0x17c)]);this[_0x22a78d(0x1c8)][_0x22a78d(0x1d0)](_0x8b1d4f||{}),this[_0x22a78d(0x1b0)](this[_0x22a78d(0x131)][_0x22a78d(0x19d)](P)[_0x22a78d(0x9e)](_0xe40e30=>{const _0xd4cec5=_0x22a78d;this[_0xd4cec5(0x114)][_0xd4cec5(0x1d0)](_0xe40e30||{});}));const _0x1bd73b=this[_0x22a78d(0x131)][_0x22a78d(0x13e)](P);this['_config$'][_0x22a78d(0x1d0)](_0x1bd73b||{});}async['_loadStoredApiKey'](){const _0x210450=_0x23229f,_0x6504eb=this[_0x210450(0x131)][_0x210450(0x13e)](P);if(!(_0x6504eb!=null&&_0x6504eb['showDeveloperTools']))return;const _0x5874a9=await this[_0x210450(0x1d6)][_0x210450(0x126)](O);_0x5874a9&&(this[_0x210450(0xcb)][_0x210450(0xb1)]({'Authorization':_0x210450(0xfd)+_0x5874a9}),this[_0x210450(0x9c)]['next'](_0x5874a9));}async[_0x23229f(0x13f)](_0x40953b){const _0x4a6681=_0x23229f;if(!_0x40953b[_0x4a6681(0x7d)]||_0x40953b[_0x4a6681(0x7d)][_0x4a6681(0xd8)]()[_0x4a6681(0x129)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x4a6681(0x124)]['t'](_0x4a6681(0x89))};if(_0x40953b[_0x4a6681(0x7d)][_0x4a6681(0xd8)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0x4a6681(0x124)]['t']('mcpConfig.validation.apiKeyTooShort')};try{const _0x9e2e05=await this['_injector'][_0x4a6681(0xcc)](s[_0x4a6681(0x1e8)])[_0x4a6681(0x1cf)](_0x40953b['apiKey']['trim']());return _0x9e2e05[_0x4a6681(0x1db)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x9e2e05['error']||this[_0x4a6681(0x124)]['t'](_0x4a6681(0x148))};}catch(_0x2b5cf7){return console['warn'](_0x4a6681(0x187),_0x2b5cf7),{'isValid':!0x0};}}},exports[_0x23229f(0x9a)]=xe([g(0x0,u['Inject'](u[_0x23229f(0xe2)])),g(0x1,v['IUIPartsService']),g(0x2,u['IConfigService']),g(0x3,u[_0x23229f(0x15d)]),g(0x4,v['IDialogService']),g(0x5,v[_0x23229f(0xc6)]),g(0x6,u[_0x23229f(0x134)](v[_0x23229f(0x82)])),g(0x7,u[_0x23229f(0x134)](u[_0x23229f(0x10c)])),g(0x8,u[_0x23229f(0x11c)]),g(0x9,u[_0x23229f(0x134)](s['MCPConnectionController']))],exports[_0x23229f(0x9a)]);function _0x5902(_0x316375,_0xe840b4){_0x316375=_0x316375-0x7b;const _0xc67f7f=_0xc67f();let _0x5902a2=_0xc67f7f[_0x316375];return _0x5902a2;}function _0xc67f(){const _0x515d45=['Connection\x20Failed','ILocalStorageService','substring','点击配置\x20MCP','setItem','Authorization:','MCP:\x20会话\x20ID\x20已被占用','includes','启用身份验证','off-line-icon','off','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','univer_session_id:','open','Module','error','49128svfKgk','currentColor','M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','mcpConfig.configInstructions','MenuItemType','errorMessage','<SESSION_ID>','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','connectInjector','配置\x20MCP\x20使用\x20AI\x20操作电子表格','MCP:\x20超出最大重试次数','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20已连接','useRef','MCP_PLUGIN_CONFIG_KEY','_initializeMenus','MenuIcon','MCPStatusDisplay','univer-min-w-0\x20univer-flex-1','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','mcpConfig.connectionError.unauthorized','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','mcpConfig.configParameters','univer-text-green-500','mcpConfig.apiApplyInfo.title','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','_createConfigPanelComponent','会话ID','MCP\x20Retrying...','mcpConfig.configSaved','http','mcpConfig.apiKeyHint','use','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','Click\x20to\x20configure\x20MCP','_loading$','mcpConfig.apiKeyPlaceholder','IMenuManagerService','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','useCallback','MCP:\x20未授权','HelpIcon','MCP\x20连接失败','MCP\x20Connecting...','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','什么是\x20API\x20密钥?','showDeveloperTools','subscribeConfigValue$','univer-shrink-0\x20univer-text-blue-500','univer.plus','close','保存中...','mcp-config-dialog','fill','mcpConfig.connectionStatus.failed','https://mcp.univer.ai/mcp/?univer_session_id=','CheckMarkIcon','mcpConfig.sessionIdDescription','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','univer-font-medium','univer-text-xs\x20univer-text-gray-500','API\x20密钥无效,请检查密钥是否正确','mcpConfig.title','button','entries','最大重试次数','disposeWithMe','symbol','API\x20密钥不能为空','mcpConfig.connectionError.maxRetriesExceeded','add','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Client\x20Configuration','on-line-icon','1em','Connecting...','clipPath','mcp.apiKey','univer-space-y-3','white','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','univer-space-y-5','_connectionController','tag','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','Configuration\x20Steps:','MCPConfigPanel','bottom','_mcpCoreConfig$','path','保存配置','https://console.univer.plus','Get\x20your\x20API\x20key\x20in\x20seconds','Disconnected','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','validateApiKey','next','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','连接失败','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','mcpConfig.authorizationDescription','MCP\x20已断开','_localStorageService','mcpServerUrl','https://console.univer.ai','enableAutoConnect','0\x200\x2016\x2016','isValid','univer-bg-green-500','MCPUIMenuController','Invalid\x20configuration','Error','Disposable','none','MCP:\x20Network\x20Error','_initStatusComponent','RETRYING','getOwnPropertyDescriptor','几秒钟内获取您的\x20API\x20密钥','univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','MCPConnectionController','zhCN','mcpStatus.connecting','apiKey','univer-flex\x20univer-flex-wrap\x20univer-gap-2','3053025PScpUG','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','COMMAND','ComponentManager','div','MCPConnectionError','univer-space-y-2','_initConfigSync','univer-bg-gray-500','mcpConfig.configStep2','mcpConfig.validation.apiKeyRequired','NETWORK_ERROR','assign','配置更改将立即生效','OpenMCPConfigPanelCommand','registerComponent','_initAutoConnect','mcpStatus.connected','connectionStatus$','url(#on-line-icon_clip0_910_349)','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-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','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','\x20-\x20','univer-flex\x20univer-items-center','translate(.97)','_commandService','MCPConfigUIController','univer.ai','_apiKey$','DISCONNECTED','subscribe','MessageType','svg','stringify','evenodd','_handleConfigSave','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','mcpConfig.apiApplyInfo.univerAiLabel','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','onStarting','Enable\x20Authentication','_dialogService','\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','请输入您的\x20API\x20密钥','网络连接错误,请检查您的网络连接','Tooltip','API\x20Key','sessionId$','__setCustomHeaders','MCP:\x20Session\x20ID\x20Occupied','useObservable','MCP\x20连接中...','displayName','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','MCP:\x20Unauthorized','jsxs','toString','51660Nqgoic','round','API\x20key\x20is\x20required','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','mcpConfig.saving','mcpConfig.configStep1','mcpConfig.note1','mcpStatus.maxRetriesExceeded','340504AxcLFr','showStatus','show','IMessageService','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','_menuManagerService','mcpConfig.connectionStatus.disconnected','univer-flex-1','_mcpConnectionController','get','您的\x20API\x20密钥安全存储在本地存储中','MCP\x20Connected','ICommandService','_registerComponent','重连中...','Enter\x20your\x20API\x20key','_logService','label','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','1169quzhFN','CONNECTED','trim','defineProperty','Session\x20ID','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','将配置添加到您的\x20MCP\x20客户端设置文件中','API\x20密钥','mcp-ui.config','showConfigPanel','univer-bg-red-500','span','Injector','FAILED','CloseIcon','jsx','<API_KEY>','What\x20is\x20API\x20Key?','IConfigService','children','close-icon','url(#$1','univer-text-red-500','mcpStatus.unknown','help-icon','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','UniverMCPUIPlugin','M0\x200H16V16H0z','xlink:href','MCP\x20客户端配置','mcpStatus.clickToConnect','SESSION_ID_OCCUPIED','univer-text-sm\x20univer-font-medium','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-flex\x20univer-gap-3','_injector','MCPConnectionStatus','配置无效','0\x200\x2017\x2016','Bearer\x20','配置保存成功','MCP\x20Configuration','19570cBwsvj','mcpConfig.connectionError.sessionOccupied','forEach','_uiPartsService','BehaviorSubject','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20状态未知','mcpConfig.connectionStatus.connected','univer-text-yellow-500','attrs','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','8454555bWeqLd','LocaleService','string','NONE','forwardRef','UniverMCPPlugin','colorChannel1','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','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','_config$','univer-text-gray-500','MCPConnectionUIController','您的\x20API\x20密钥将在此浏览器中本地存储','配置参数:','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','Univer\x20AI\x20控制台','replace','ILogService','会话\x20ID\x20已被占用,请稍后再试','useState','on-line-icon_clip0_910_349','1386824IhnTPb','http://www.w3.org/2000/svg','univer-flex\x20univer-items-center\x20univer-gap-3','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','_localeService','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','getItem','current','mcpStatus.failed','length','MCP\x20配置','createElement','univer-flex\x20univer-items-start\x20univer-gap-3','OnLineIcon','univer-flex\x20univer-items-center\x20univer-gap-2','mcpStatus.disconnected','enUS','_configService','univerjs-icon\x20univerjs-icon-','UNAUTHORIZED','Inject','mcpConfig.configError','mcpStatus.sessionOccupied','url(#off-line-icon_clip0_910_343)','_blank','registerCommand','mask','useDependency','CONNECTING','value','getConfig','_validateConfig','OTHERS','Save\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.','Click\x20to\x20connect\x20MCP','超出最大重试次数,请稍后再试','map','带有\x20Bearer\x20前缀的\x20API\x20密钥。','45OYchqQ','mcpConfig.validation.invalidApiKey','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','_componentManager','univer-text-sm\x20univer-text-gray-500','univer-text-blue-600','配置步骤:','_messageService','重启您的\x20MCP\x20客户端以使配置生效','clsx','univer-size-4','text','API\x20key\x20with\x20Bearer\x20prefix.','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','defs','未连接','random','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','idSuffix','noopener\x20noreferrer'];_0xc67f=function(){return _0x515d45;};return _0xc67f();}const b={'id':'mcp-ui.command.openConfigPanel','type':u['CommandType'][_0x23229f(0x81)],'handler':async(_0x41e346,_0x5a611e)=>(_0x41e346[_0x23229f(0xcc)](exports[_0x23229f(0x9a)])[_0x23229f(0xdf)](),!0x0)};function Z(_0xb19b13,_0x242ac5){const _0x39ec11=_0x23229f;switch(_0xb19b13){case s[_0x39ec11(0xfa)][_0x39ec11(0x9d)]:return _0x39ec11(0x12f);case s[_0x39ec11(0xfa)]['CONNECTING']:return _0x39ec11(0x7c);case s['MCPConnectionStatus'][_0x39ec11(0xd7)]:return _0x39ec11(0x90);case s[_0x39ec11(0xfa)][_0x39ec11(0xe3)]:switch(_0x242ac5){case s[_0x39ec11(0x84)][_0x39ec11(0x133)]:return'mcpStatus.unauthorized';case s[_0x39ec11(0x84)]['SESSION_ID_OCCUPIED']:return _0x39ec11(0x136);case s['MCPConnectionError']['NETWORK_ERROR']:return'mcpStatus.networkError';case s['MCPConnectionError']['MAX_RETRIES_EXCEEDED']:return _0x39ec11(0xc2);default:return _0x39ec11(0x128);}case s[_0x39ec11(0xfa)][_0x39ec11(0x1e4)]:return'mcpStatus.retrying';default:return _0x39ec11(0xed);}}function Se(_0x601fc7,_0x529dac,_0x7afbf2,_0x1acdeb=!0x0){const _0x5e0ce6=_0x23229f,_0x20a793=Z(_0x601fc7,_0x529dac),_0x4fab5c=_0x7afbf2['t'](_0x20a793);return _0x1acdeb?_0x601fc7===s['MCPConnectionStatus'][_0x5e0ce6(0x9d)]&&_0x529dac===s['MCPConnectionError'][_0x5e0ce6(0x133)]?_0x4fab5c+'\x20-\x20'+_0x7afbf2['t']('mcpStatus.clickToConfigure'):_0x601fc7===s[_0x5e0ce6(0xfa)][_0x5e0ce6(0xd7)]?''+_0x4fab5c:_0x601fc7===s['MCPConnectionStatus'][_0x5e0ce6(0x9d)]||_0x601fc7===s[_0x5e0ce6(0xfa)][_0x5e0ce6(0xe3)]?_0x4fab5c+_0x5e0ce6(0x96)+_0x7afbf2['t'](_0x5e0ce6(0xf4)):_0x4fab5c:_0x4fab5c;}function Pe(_0x388fab){const _0x767acb=_0x23229f;switch(_0x388fab){case s[_0x767acb(0xfa)][_0x767acb(0xd7)]:return _0x767acb(0x185);case s[_0x767acb(0xfa)]['CONNECTING']:case s[_0x767acb(0xfa)][_0x767acb(0x1e4)]:return _0x767acb(0x108);case s[_0x767acb(0xfa)]['FAILED']:case s[_0x767acb(0xfa)][_0x767acb(0x9d)]:return _0x767acb(0xec);default:return _0x767acb(0x115);}}function W(_0x101cc3){const _0x37e67e=_0x23229f,{status$:_0x2d42a3,error$:_0x4e5cbf,onConfigure:_0x2abc15,showClickable:_0x3d5dad=!0x0}=_0x101cc3,_0x3b79c5=v[_0x37e67e(0xb3)](_0x2d42a3,s[_0x37e67e(0xfa)][_0x37e67e(0x9d)]),_0x57ae1e=v[_0x37e67e(0xb3)](_0x4e5cbf,s[_0x37e67e(0x84)]['NONE']),_0x140e42=v['useDependency'](u['LocaleService']),_0x45794e=_0x3b79c5===s[_0x37e67e(0xfa)][_0x37e67e(0xd7)];_0x3b79c5===s[_0x37e67e(0xfa)][_0x37e67e(0x13c)]||s[_0x37e67e(0xfa)][_0x37e67e(0x1e4)];const _0x36c4b2=_0x140e42['t'](Z(_0x3b79c5,_0x57ae1e)),_0x42dffa=Se(_0x3b79c5,_0x57ae1e,_0x140e42,_0x3d5dad),_0x53adb8=Pe(_0x3b79c5),_0xb04b4c=_0x45794e?i[_0x37e67e(0xe5)](q,{}):i['jsx'](Y,{}),_0xb75f40=d[_0x37e67e(0x195)](()=>{_0x3d5dad&&_0x2abc15&&_0x2abc15();},[_0x3d5dad,_0x2abc15]);function _0x22f69f(){const _0x89fefb=_0x37e67e;return i[_0x89fefb(0xb8)](_0x89fefb(0x83),{'className':f[_0x89fefb(0x150)](_0x89fefb(0x97),_0x3d5dad&&_0x2abc15&&_0x89fefb(0xab)),'role':_0x89fefb(0x1ad),'onClick':_0x3d5dad&&_0x2abc15?_0xb75f40:void 0x0,'children':[i['jsx'](_0x89fefb(0x83),{'className':f[_0x89fefb(0x150)]('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x53adb8),'children':_0xb04b4c}),i[_0x89fefb(0xe5)]('div',{'className':_0x89fefb(0xdb),'children':_0x36c4b2})]});}return i['jsx'](f[_0x37e67e(0xae)],{'title':_0x42dffa,'placement':_0x37e67e(0x1c7),'children':_0x22f69f()});}var Ie=Object[_0x23229f(0x1e5)],_e=(_0x4c29ef,_0x409de8,_0xcf52dd,_0x2302f0)=>{const _0x3a75ac=_0x23229f;for(var _0x3a9c9b=_0x2302f0>0x1?void 0x0:_0x2302f0?Ie(_0x409de8,_0xcf52dd):_0x409de8,_0x3eba77=_0x4c29ef[_0x3a75ac(0x129)]-0x1,_0x51caf7;_0x3eba77>=0x0;_0x3eba77--)(_0x51caf7=_0x4c29ef[_0x3eba77])&&(_0x3a9c9b=_0x51caf7(_0x3a9c9b)||_0x3a9c9b);return _0x3a9c9b;},N=(_0x2d7c6a,_0x199ce1)=>(_0x264459,_0x3b87fb)=>_0x199ce1(_0x264459,_0x3b87fb,_0x2d7c6a);exports['MCPConnectionUIController']=class extends u[_0x23229f(0x1e0)]{constructor(_0x230b80,_0x7c9724,_0x1cdc02,_0x33eaf8){const _0x4b396f=_0x23229f;super(),this[_0x4b396f(0xf9)]=_0x230b80,this[_0x4b396f(0x1c1)]=_0x7c9724,this[_0x4b396f(0x103)]=_0x1cdc02,this['_configService']=_0x33eaf8,this[_0x4b396f(0x8f)](),this[_0x4b396f(0x1e3)]();}[_0x23229f(0x8f)](){const _0x372e73=_0x23229f,_0x5b687f=this[_0x372e73(0x131)][_0x372e73(0x13e)](P);_0x5b687f!=null&&_0x5b687f[_0x372e73(0x19c)]&&(this[_0x372e73(0x1c1)][_0x372e73(0x1d9)]=!0x1);}[_0x23229f(0x1e3)](){const _0x13ddda=_0x23229f,_0x3fad8e=this['_configService'][_0x13ddda(0x13e)](P);(_0x3fad8e==null?void 0x0:_0x3fad8e[_0x13ddda(0xc4)])!==!0x1&&this[_0x13ddda(0x1b0)](this[_0x13ddda(0x103)][_0x13ddda(0x8e)](v['BuiltInUIPart']['HEADER_MENU'],()=>{const _0x377440=_0x13ddda;var _0x3645be;return v['connectInjector'](ye({'status$':this[_0x377440(0x1c1)][_0x377440(0x91)],'error$':this[_0x377440(0x1c1)]['connectionError$'],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x3645be=_0x3fad8e==null?void 0x0:_0x3fad8e[_0x377440(0x19c)])!=null?_0x3645be:!0x1}),this['_injector']);}));}['_handleConfigure'](){this['_injector']['get'](exports['MCPConfigUIController'])['showConfigPanel']();}},exports['MCPConnectionUIController']=_e([N(0x0,u[_0x23229f(0x134)](u[_0x23229f(0xe2)])),N(0x1,u[_0x23229f(0x134)](s[_0x23229f(0x1e8)])),N(0x2,v['IUIPartsService']),N(0x3,u[_0x23229f(0xe8)])],exports[_0x23229f(0x116)]);function ye(_0x313b31){const {status$:_0x270f8f,error$:_0x2ce008,onConfigure:_0x4286cc,showClickable:_0x462c33}=_0x313b31;return function(){return i['jsx'](W,{'status$':_0x270f8f,'error$':_0x2ce008,'onConfigure':_0x4286cc,'showClickable':_0x462c33});};}function Me(_0x23532e){const _0xfd7533=_0x23229f;return{'id':b['id'],'type':v[_0xfd7533(0x170)]['BUTTON'],'icon':_0xfd7533(0x17e),'title':_0xfd7533(0x1ac),'tooltip':'mcpConfig.title'};}const Ne={[v['RibbonStartGroup'][_0x23229f(0x140)]]:{[b['id']]:{'order':0xa,'menuItemFactory':Me}}};var be=Object['getOwnPropertyDescriptor'],je=(_0x127485,_0x30036f,_0x599bc3,_0x4cdd27)=>{for(var _0x55b96f=_0x4cdd27>0x1?void 0x0:_0x4cdd27?be(_0x30036f,_0x599bc3):_0x30036f,_0x2f1f21=_0x127485['length']-0x1,_0x554d1b;_0x2f1f21>=0x0;_0x2f1f21--)(_0x554d1b=_0x127485[_0x2f1f21])&&(_0x55b96f=_0x554d1b(_0x55b96f)||_0x55b96f);return _0x55b96f;},z=(_0x25a74a,_0x22424d)=>(_0x2895bf,_0x271b1e)=>_0x22424d(_0x2895bf,_0x271b1e,_0x25a74a);exports[_0x23229f(0x1dd)]=class extends u[_0x23229f(0x1e0)]{constructor(_0x1cd5a1,_0x122c63){const _0xa8273a=_0x23229f;super(),this[_0xa8273a(0x99)]=_0x1cd5a1,this[_0xa8273a(0xc8)]=_0x122c63,this['_initializeCommands'](),this[_0xa8273a(0x17d)]();}['_initializeCommands'](){[b]['forEach'](_0x2ddb72=>{const _0x515e49=_0x5902;this[_0x515e49(0x1b0)](this[_0x515e49(0x99)][_0x515e49(0x139)](_0x2ddb72));});}[_0x23229f(0x17d)](){this['_menuManagerService']['mergeMenu'](Ne);}},exports[_0x23229f(0x1dd)]=je([z(0x0,u[_0x23229f(0xcf)]),z(0x1,v[_0x23229f(0x193)])],exports[_0x23229f(0x1dd)]);const Ee={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x23229f(0x199),'connected':_0x23229f(0xce),'failed':'MCP\x20Connection\x20Failed','retrying':_0x23229f(0x18a),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x23229f(0xb7),'sessionOccupied':_0x23229f(0xb2),'networkError':_0x23229f(0x1e2),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x23229f(0x143),'clickToConfigure':_0x23229f(0x190)},'mcpConfig':{'title':_0x23229f(0xff),'description':_0x23229f(0x1a8),'apiKey':_0x23229f(0xaf),'apiKeyPlaceholder':_0x23229f(0xd2),'apiKeyHint':_0x23229f(0x149),'enableAuth':_0x23229f(0xa9),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x23229f(0x1b6),'mcpClientConfig':_0x23229f(0x1b6),'configInstructions':_0x23229f(0x80),'configStepTitle':_0x23229f(0x1c5),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x23229f(0xbe),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x23229f(0xda),'sessionIdDescription':_0x23229f(0x1b5),'authorizationDescription':_0x23229f(0x153),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':_0x23229f(0x141),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x23229f(0x19a),'configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x23229f(0xe7),'description':_0x23229f(0x142),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x23229f(0x1cc)},'validation':{'apiKeyRequired':_0x23229f(0xbc),'apiKeyTooShort':_0x23229f(0x178),'invalidConfig':_0x23229f(0x1de),'invalidApiKey':_0x23229f(0x194)},'connectionStatus':{'disconnected':_0x23229f(0x1cd),'connecting':_0x23229f(0x1b9),'connected':'Connected','failed':_0x23229f(0x15c),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x23229f(0x113),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x23229f(0x105),'maxRetriesExceeded':_0x23229f(0x179)}}},we={'mcpStatus':{'disconnected':_0x23229f(0x1d5),'connecting':_0x23229f(0xb4),'connected':_0x23229f(0x17a),'failed':_0x23229f(0x198),'retrying':'MCP\x20重连中...','unknown':_0x23229f(0x106),'unauthorized':_0x23229f(0x196),'sessionOccupied':_0x23229f(0x162),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x23229f(0x176),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x23229f(0x15f)},'mcpConfig':{'title':_0x23229f(0x12a),'description':_0x23229f(0x175),'apiKey':_0x23229f(0xdd),'apiKeyPlaceholder':_0x23229f(0xac),'apiKeyHint':_0x23229f(0x117),'enableAuth':_0x23229f(0x164),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x23229f(0xf3),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x23229f(0x14d),'configStep1':'复制以下\x20JSON\x20配置','configStep2':_0x23229f(0xdc),'configStep3':_0x23229f(0x14f),'sessionId':_0x23229f(0x189),'sessionIdDescription':_0x23229f(0x18f),'authorizationDescription':_0x23229f(0x146),'configParameters':_0x23229f(0x118),'maxRetries':_0x23229f(0x1af),'save':_0x23229f(0x1ca),'saving':_0x23229f(0x1a1),'note1':_0x23229f(0x8c),'note2':_0x23229f(0xcd),'configSaved':_0x23229f(0xfe),'configError':'配置保存失败','apiApplyInfo':{'title':_0x23229f(0x19b),'description':_0x23229f(0xa4),'univerAiLabel':_0x23229f(0x11a),'getStarted':_0x23229f(0x1e6)},'validation':{'apiKeyRequired':_0x23229f(0x1b2),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x23229f(0xfb),'invalidApiKey':_0x23229f(0x1ab)},'connectionStatus':{'disconnected':_0x23229f(0x157),'connecting':'连接中...','connected':'已连接','failed':_0x23229f(0x1d2),'retrying':_0x23229f(0xd1)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x23229f(0x11d),'networkError':_0x23229f(0xad),'maxRetriesExceeded':_0x23229f(0x144)}}};var Ae=Object[_0x23229f(0xd9)],Oe=Object[_0x23229f(0x1e5)],De=(_0x20d6d1,_0x253550,_0x571599)=>_0x253550 in _0x20d6d1?Ae(_0x20d6d1,_0x253550,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x571599}):_0x20d6d1[_0x253550]=_0x571599,Ue=(_0x439ab8,_0x3df207,_0x303a0c,_0x3742fd)=>{const _0x43fd0f=_0x23229f;for(var _0x208ac1=_0x3742fd>0x1?void 0x0:_0x3742fd?Oe(_0x3df207,_0x303a0c):_0x3df207,_0x328598=_0x439ab8[_0x43fd0f(0x129)]-0x1,_0xb28853;_0x328598>=0x0;_0x328598--)(_0xb28853=_0x439ab8[_0x328598])&&(_0x208ac1=_0xb28853(_0x208ac1)||_0x208ac1);return _0x208ac1;},y=(_0x3193ae,_0x458188)=>(_0x228832,_0x6061d0)=>_0x458188(_0x228832,_0x6061d0,_0x3193ae),$e=(_0x226368,_0x24ba81,_0x1b7a40)=>De(_0x226368,_0x24ba81+'',_0x1b7a40);exports[_0x23229f(0xf0)]=class extends u['Plugin']{constructor(_0x413c46=L,_0xded43,_0x286725,_0x5bd608,_0x5c9097,_0x49c23e){const _0x573184=_0x23229f;super(),this['_config']=_0x413c46,this['_injector']=_0xded43,this[_0x573184(0x131)]=_0x286725,this[_0x573184(0x103)]=_0x5bd608,this[_0x573184(0x1d6)]=_0x5c9097,this[_0x573184(0x124)]=_0x49c23e;const {..._0x2f0e9d}=u['merge']({},L,this['_config']);this['_configService']['setConfig'](P,_0x2f0e9d);}async[_0x23229f(0xa8)](){const _0x569bd7=_0x23229f,_0x112905=[[exports[_0x569bd7(0x116)]],[exports[_0x569bd7(0x9a)]],[exports[_0x569bd7(0x1dd)]]];this[_0x569bd7(0xf9)]['has'](A['ISocketService'])||_0x112905['push']([A['ISocketService'],{'useClass':A['WebSocketService']}]),_0x112905[_0x569bd7(0x102)](_0x7949d8=>this[_0x569bd7(0xf9)][_0x569bd7(0x1b4)](_0x7949d8)),this[_0x569bd7(0xf9)][_0x569bd7(0xcc)](exports[_0x569bd7(0x116)]),this[_0x569bd7(0xf9)][_0x569bd7(0xcc)](exports['MCPConfigUIController']),this[_0x569bd7(0xf9)][_0x569bd7(0xcc)](exports['MCPUIMenuController']);}},$e(exports['UniverMCPUIPlugin'],'pluginName','MCP_UI_PLUGIN'),exports[_0x23229f(0xf0)]=Ue([u['DependentOn'](s[_0x23229f(0x110)]),y(0x1,u[_0x23229f(0x134)](u[_0x23229f(0xe2)])),y(0x2,u[_0x23229f(0xe8)]),y(0x3,v['IUIPartsService']),y(0x4,u['ILocalStorageService']),y(0x5,u[_0x23229f(0x134)](u[_0x23229f(0x10c)]))],exports[_0x23229f(0xf0)]),exports[_0x23229f(0x1c6)]=V,exports[_0x23229f(0x17f)]=W,exports[_0x23229f(0x8d)]=b,exports[_0x23229f(0x130)]=Ee,exports[_0x23229f(0x7b)]=we;
1
+ 'use strict';const _0x2a4830=_0x4002;(function(_0x50456d,_0x35beb7){const _0x30367f=_0x4002,_0x38ad16=_0x50456d();while(!![]){try{const _0x3b39ce=parseInt(_0x30367f(0x116))/0x1+-parseInt(_0x30367f(0xc2))/0x2*(parseInt(_0x30367f(0x1f2))/0x3)+-parseInt(_0x30367f(0xec))/0x4*(parseInt(_0x30367f(0x10d))/0x5)+parseInt(_0x30367f(0x146))/0x6+parseInt(_0x30367f(0x15e))/0x7+-parseInt(_0x30367f(0xcb))/0x8*(parseInt(_0x30367f(0xb4))/0x9)+-parseInt(_0x30367f(0x195))/0xa;if(_0x3b39ce===_0x35beb7)break;else _0x38ad16['push'](_0x38ad16['shift']());}catch(_0x52b4fe){_0x38ad16['push'](_0x38ad16['shift']());}}}(_0x5866,0x9cf6b));var ae=Object['defineProperty'],le=(_0xfbf794,_0x215975,_0x399dc8)=>_0x215975 in _0xfbf794?ae(_0xfbf794,_0x215975,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x399dc8}):_0xfbf794[_0x215975]=_0x399dc8,I=(_0x30eca2,_0x11476d,_0x2206fd)=>le(_0x30eca2,typeof _0x11476d!=_0x2a4830(0x141)?_0x11476d+'':_0x11476d,_0x2206fd);Object[_0x2a4830(0x1dd)](exports,Symbol[_0x2a4830(0x147)],{'value':_0x2a4830(0x11f)});function _0x5866(){const _0x7e940b=['mcpConfig.save','text','mcpConfig.sessionIdDescription','createElement','M0\x200H16V16H0z','IUIPartsService','errorMessage','includes','Tooltip','mcpConfig.connectionInfo','2035tvdCQF','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','connectInjector','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','mcpConfig.validation.apiKeyRequired','mcpConfig.connectionError.unauthorized','apiKey','mcp.apiKey','univer-text-green-500','1127897rwwTJb','Input','Disconnected','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','Authorization:','svg','mcpStatus.retrying','RibbonStartGroup','_registerComponent','Module','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','Invalid\x20configuration','mcpConfig.connectionStatus.retrying','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','close-icon','enableAutoConnect','API\x20密钥','CONNECTED','univer-text-sm\x20univer-font-medium','showConfigPanel','API\x20key\x20is\x20required','IMessageService','removeItem','_configService','Save\x20Configuration','UniverIcon','mcpConfig.configStep1','配置保存失败','univer-shrink-0\x20univer-text-blue-500','Bearer\x20','SESSION_ID_OCCUPIED','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','_menuManagerService','Click\x20to\x20configure\x20MCP','点击配置\x20MCP','univer-text-blue-600','forwardRef','mask','connectionStatus$','MCPStatusDisplay','已连接','https://console.univer.plus','symbol','bottom','evenodd','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','您的\x20API\x20密钥安全存储在本地存储中','5244918hvlZmh','toStringTag','subscribe','has','registerComponent','Click\x20to\x20connect\x20MCP','OnLineIcon','get','mcp-ui.config','API\x20Key','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Success','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20已连接','什么是\x20API\x20密钥?','map','ISocketService','IDialogService','MCP:\x20Unauthorized','Copy\x20the\x20JSON\x20configuration\x20below','Enable\x20authentication\x20for\x20secure\x20connections','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP:\x20超出最大重试次数','useDependency','1674722muDRjD','Session\x20ID','univer-bg-green-500','MCP:\x20Max\x20Retries\x20Exceeded','displayName','pluginName','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','onStarting','_logService','_handleConfigSave','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','value','defs','univer-bg-red-500','round','univer-mr-2\x20univer-flex\x20univer-text-xl','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','defIds','univer-space-y-4','配置无效','univerjs-icon\x20univerjs-icon-','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','mcpConfig.configError','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','mcpConfig.configInstructions','mcpStatus.maxRetriesExceeded','stringify','mcpConfig.configStepTitle','isValid','entries','univer-flex\x20univer-flex-wrap\x20univer-gap-2','https://console.univer.ai','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','BehaviorSubject','_localStorageService','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','会话ID','_initConfigSync','mergeMenu','zhCN','Button','span','check-mark-icon','_loadStoredApiKey','_uiPartsService','API\x20密钥不能为空','univer-flex\x20univer-items-center\x20univer-gap-2','UNAUTHORIZED','\x20-\x20','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer-flex\x20univer-items-start\x20univer-gap-2','Enable\x20Authentication','univer-font-medium','MCP:\x20网络错误','colorChannel1','224390fcjfWj','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','Inject','API\x20key\x20with\x20Bearer\x20prefix.','MCPConnectionStatus','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','Configuration\x20Parameters:','_commandService','mcpConfig.configStep2','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','mcpConfig.description','UniverMCPUIPlugin','NONE','MCP\x20Unknown\x20Status','将配置添加到您的\x20MCP\x20客户端设置文件中','_initAutoConnect','带有\x20Bearer\x20前缀的\x20API\x20密钥。','CommandType','_injector','univer-space-y-3','jsxs','超出最大重试次数,请稍后再试','trim','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','0\x200\x2016\x2016','_config','API\x20密钥无效,请检查密钥是否正确','MCP\x20Disconnected','_initStatusComponent','univer.plus','mcpConfig.authorizationDescription','univer-text-red-500','show','univer-bg-gray-500','0\x200\x2017\x2016','none','mcpStatus.disconnected','push','_componentManager','mcpStatus.sessionOccupied','What\x20is\x20API\x20Key?','help-icon','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','MCP:\x20会话\x20ID\x20已被占用','univer-text-xs\x20univer-text-gray-600','权限验证失败,请检查您的\x20API\x20密钥','toString','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','Univer\x20AI\x20控制台','Injector','_validateConfig','mcpConfig.connectionError.sessionOccupied','MCPConfigPanel','off','IMenuManagerService','getOwnPropertyDescriptor','UniverMCPPlugin','mcpStatus.unauthorized','useObservable','univer-space-y-2','M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','close','MCP\x20Client\x20Configuration','mcp-ui.command.openConfigPanel','random','univer-text-gray-400','RETRYING','on-line-icon','validateApiKey','xlink:href','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','defineProperty','button','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','mcpStatus.connecting','OffLineIcon','div','MCPConnectionUIController','connectionError$','univer-text-gray-500','__setCustomHeaders','1em','useCallback','MCP\x20客户端配置','Configuration\x20Notes:','<SESSION_ID>','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','translate(.97)','MCP:\x20Session\x20ID\x20Occupied','_initializeMenus','univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','MCP\x20连接失败','3VlFTgx','Plugin','sessionId$','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','use','Max\x20Retries','ILocalStorageService','连接失败','OTHERS','univer-flex\x20univer-items-center','_localeService','<API_KEY>','MenuIcon','length','_initializeCommands','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','FAILED','会话\x20ID\x20已被占用,请稍后再试','currentColor','mcpConfig.configStep3','Saving...','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','add','url(#$1','mcpConfig.title','LocaleService','univer.ai','off-line-icon','_dialogService','MCP_PLUGIN_CONFIG_KEY','启用身份验证以获得安全连接','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','url(#off-line-icon_clip0_910_343)','useState','Disposable','mcpConfig.validation.invalidApiKey','最大重试次数','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','getConfig','enUS','mcpConfig.validation.invalidConfig','mcpConfig.apiApplyInfo.description','IConfigService','NETWORK_ERROR','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','几秒钟内获取您的\x20API\x20密钥','MCPUIMenuController','\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','off-line-icon_clip0_910_343','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','substring','_messageService','useRef','disposeWithMe','ComponentManager','MCP\x20Configuration','HelpIcon','_handleConfigure','showDeveloperTools','warn','_blank','mcp-config-dialog','配置更改将立即生效','univer-space-y-5','BuiltInUIPart','path','_apiKey$','univer-flex\x20univer-items-center\x20univer-gap-3','DependentOn','subscribeConfigValue$','Error','error','18otOUoG','mcpConfig.connectionStatus.failed','配置保存成功','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','MCP\x20Connecting...','next','MessageType','register','WebSocketService','fill','children','attrs','_loading$','网络连接错误,请检查您的网络连接','322634OSbQeA','_mcpCoreConfig$','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','请输入您的\x20API\x20密钥','MAX_RETRIES_EXCEEDED','Enter\x20your\x20API\x20key','clsx','MCPConfigUIController','MCP\x20状态未知','795632CZJust','MCPConnectionError','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','mcpServerUrl','clipPath','mcpStatus.clickToConnect','启用身份验证','univer-text-xs\x20univer-text-gray-500','_mcpConnectionController','_createConfigPanelComponent','noopener\x20noreferrer','mcpConfig.connectionStatus.disconnected','current','assign','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','mcpConfig.saving','配置参数:','_connectionController','mcpStatus.connected','MCP\x20重连中...','MCP\x20连接中...','mcpConfig.apiApplyInfo.title','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','点击连接\x20MCP','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','replace','univer-min-w-0\x20univer-flex-1','mcpConfig.apiKey','idSuffix','mcpConfig.note1','open','tag','11948ncgxYl','setConfig','mcpStatus.unknown','MCP\x20Connected','jsx','MCPConnectionController','setItem','您的\x20API\x20密钥将在此浏览器中本地存储','MenuItemType','forEach','Univer\x20AI\x20Console','getCurrentConfig','string','http://www.w3.org/2000/svg','CONNECTING','ICommandService','Connection\x20Failed','_config$','mcpConfig.note2','univer-flex\x20univer-items-start\x20univer-gap-3','mcpConfig.connectionStatus.connecting','mcpConfig.apiKeyPlaceholder','DISCONNECTED'];_0x5866=function(){return _0x7e940b;};return _0x5866();}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:_0x121da,..._0x4dbc6c}){const _0xfed03b=_0x2a4830,{icon:_0x4a27e1,id:_0x20d783,className:_0x5ec0cc,extend:_0x18d565,..._0x4a7204}=_0x4dbc6c,_0x4dc96a=(_0xfed03b(0x172)+_0x20d783+'\x20'+(_0x5ec0cc||''))[_0xfed03b(0x1ab)](),_0x305cee=d[_0xfed03b(0x226)]('_'+de());return G(_0x4a27e1,''+_0x20d783,{'defIds':_0x4a27e1[_0xfed03b(0x16f)],'idSuffix':_0x305cee[_0xfed03b(0xd7)]},{'ref':_0x121da,'className':_0x4dc96a,..._0x4a7204},_0x18d565);}function G(_0x3cd32d,_0x351d76,_0x298794,_0x484ddc,_0x26e84e){const _0x8e0702=_0x2a4830;return d[_0x8e0702(0x106)](_0x3cd32d[_0x8e0702(0xeb)],{'key':_0x351d76,...ue(_0x3cd32d,_0x298794,_0x26e84e),..._0x484ddc},(ve(_0x3cd32d,_0x298794)['children']||[])[_0x8e0702(0x155)]((_0x338c2d,_0x478e91)=>G(_0x338c2d,_0x351d76+'-'+_0x3cd32d['tag']+'-'+_0x478e91,_0x298794,void 0x0,_0x26e84e)));}function ue(_0x5a807d,_0x112c0c,_0x147cdd){const _0x13c867=_0x2a4830,_0x36aca3={..._0x5a807d['attrs']};_0x147cdd!=null&&_0x147cdd[_0x13c867(0x194)]&&_0x36aca3['fill']===_0x13c867(0x194)&&(_0x36aca3[_0x13c867(0xbd)]=_0x147cdd['colorChannel1']),_0x5a807d[_0x13c867(0xeb)]===_0x13c867(0x13c)&&_0x36aca3['id']&&(_0x36aca3['id']=_0x36aca3['id']+_0x112c0c[_0x13c867(0xe8)]),Object[_0x13c867(0x17b)](_0x36aca3)['forEach'](([_0x4a71af,_0x486cfe])=>{const _0x240b71=_0x13c867;_0x4a71af==='mask'&&typeof _0x486cfe=='string'&&(_0x36aca3[_0x4a71af]=_0x486cfe[_0x240b71(0xe5)](/url\(#(.*)\)/,'url(#$1'+_0x112c0c[_0x240b71(0xe8)]+')'));});const {defIds:_0x3b4681}=_0x112c0c;return!_0x3b4681||_0x3b4681[_0x13c867(0x1ff)]===0x0||(_0x5a807d['tag']===_0x13c867(0x1f6)&&_0x36aca3[_0x13c867(0x1db)]&&(_0x36aca3[_0x13c867(0x1db)]=_0x36aca3[_0x13c867(0x1db)]+_0x112c0c[_0x13c867(0xe8)]),Object['entries'](_0x36aca3)[_0x13c867(0xf5)](([_0x34e63c,_0xb4cb0])=>{const _0x7cb013=_0x13c867;typeof _0xb4cb0=='string'&&(_0x36aca3[_0x34e63c]=_0xb4cb0['replace'](/url\(#(.*)\)/,_0x7cb013(0x209)+_0x112c0c[_0x7cb013(0xe8)]+')'));})),_0x36aca3;}function ve(_0x2303c9,_0x309638){const _0x151a13=_0x2a4830;var _0x366308;const {defIds:_0x8c666}=_0x309638;return!_0x8c666||_0x8c666['length']===0x0?_0x2303c9:_0x2303c9[_0x151a13(0xeb)]===_0x151a13(0x16a)&&((_0x366308=_0x2303c9[_0x151a13(0xbe)])!=null&&_0x366308[_0x151a13(0x1ff)])?{..._0x2303c9,'children':_0x2303c9[_0x151a13(0xbe)]['map'](_0x697984=>typeof _0x697984[_0x151a13(0xbf)]['id']==_0x151a13(0xf8)&&_0x8c666&&_0x8c666[_0x151a13(0x10a)](_0x697984[_0x151a13(0xbf)]['id'])?{..._0x697984,'attrs':{..._0x697984['attrs'],'id':_0x697984[_0x151a13(0xbf)]['id']+_0x309638[_0x151a13(0xe8)]}}:_0x697984)}:_0x2303c9;}function de(){const _0x14c656=_0x2a4830;return Math[_0x14c656(0x1d6)]()[_0x14c656(0x1c3)](0x24)[_0x14c656(0x224)](0x2,0x8);}_[_0x2a4830(0x162)]=_0x2a4830(0x130);const Ce={'tag':_0x2a4830(0x11b),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x2a4830(0x1b8),'viewBox':'0\x200\x2016\x2016','width':_0x2a4830(0x1e7),'height':_0x2a4830(0x1e7)},'children':[{'tag':_0x2a4830(0xad),'attrs':{'fill':_0x2a4830(0x204),'d':_0x2a4830(0x211),'fillRule':_0x2a4830(0x143),'clipRule':_0x2a4830(0x143)}}]},H=d['forwardRef'](function(_0x32b00c,_0x46c4c0){const _0x2211c7=_0x2a4830;return d['createElement'](_,Object['assign']({},_0x32b00c,{'id':_0x2211c7(0x188),'ref':_0x46c4c0,'icon':Ce}));});H[_0x2a4830(0x162)]='CheckMarkIcon';const ge={'tag':_0x2a4830(0x11b),'attrs':{'xmlns':_0x2a4830(0xf9),'fill':'none','viewBox':_0x2a4830(0x1ad),'width':_0x2a4830(0x1e7),'height':_0x2a4830(0x1e7)},'children':[{'tag':_0x2a4830(0xad),'attrs':{'fill':_0x2a4830(0x204),'d':_0x2a4830(0x119)}}]},B=d[_0x2a4830(0x13b)](function(_0x5513f4,_0x538d53){const _0x2847d2=_0x2a4830;return d[_0x2847d2(0x106)](_,Object[_0x2847d2(0xd8)]({},_0x5513f4,{'id':_0x2847d2(0x125),'ref':_0x538d53,'icon':ge}));});B[_0x2a4830(0x162)]='CloseIcon';const fe={'tag':_0x2a4830(0x11b),'attrs':{'xmlns':_0x2a4830(0xf9),'fill':_0x2a4830(0x1b8),'viewBox':_0x2a4830(0x1ad),'width':_0x2a4830(0x1e7),'height':_0x2a4830(0x1e7)},'children':[{'tag':_0x2a4830(0xad),'attrs':{'fill':_0x2a4830(0x204),'d':'M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z'}},{'tag':'path','attrs':{'fill':_0x2a4830(0x204),'d':_0x2a4830(0xcd)}},{'tag':_0x2a4830(0xad),'attrs':{'fill':_0x2a4830(0x204),'d':_0x2a4830(0x1d1),'fillRule':_0x2a4830(0x143),'clipRule':'evenodd'}}]},F=d[_0x2a4830(0x13b)](function(_0x238490,_0x72267e){const _0x54f459=_0x2a4830;return d[_0x54f459(0x106)](_,Object[_0x54f459(0xd8)]({},_0x238490,{'id':_0x54f459(0x1be),'ref':_0x72267e,'icon':fe}));});F['displayName']=_0x2a4830(0x22a);const pe={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x2a4830(0x1b8),'viewBox':_0x2a4830(0x1ad),'width':_0x2a4830(0x1e7),'height':_0x2a4830(0x1e7)},'children':[{'tag':'g','attrs':{'clipPath':_0x2a4830(0x212)},'children':[{'tag':'path','attrs':{'stroke':_0x2a4830(0x204),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x2a4830(0x16c),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x2a4830(0x16a),'attrs':{},'children':[{'tag':_0x2a4830(0xcf),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':'white','d':_0x2a4830(0x107)}}]}]}],'defIds':[_0x2a4830(0x222)]},Y=d[_0x2a4830(0x13b)](function(_0x16c95e,_0x4fb904){const _0x241e75=_0x2a4830;return d[_0x241e75(0x106)](_,Object[_0x241e75(0xd8)]({},_0x16c95e,{'id':_0x241e75(0x20d),'ref':_0x4fb904,'icon':pe}));});Y[_0x2a4830(0x162)]=_0x2a4830(0x1e1);const he={'tag':_0x2a4830(0x11b),'attrs':{'xmlns':_0x2a4830(0xf9),'fill':_0x2a4830(0x1b8),'viewBox':_0x2a4830(0x1b7),'width':'1em','height':_0x2a4830(0x1e7)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x2a4830(0xad),'attrs':{'stroke':_0x2a4830(0x204),'d':_0x2a4830(0x1ec),'strokeLinecap':_0x2a4830(0x16c),'strokeLinejoin':_0x2a4830(0x16c),'strokeWidth':1.2}}]},{'tag':_0x2a4830(0x16a),'attrs':{},'children':[{'tag':_0x2a4830(0xcf),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':'path','attrs':{'fill':'white','d':_0x2a4830(0x107),'transform':_0x2a4830(0x1ed)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},q=d[_0x2a4830(0x13b)](function(_0x3110c0,_0x1c8de7){const _0x4d2861=_0x2a4830;return d[_0x4d2861(0x106)](_,Object[_0x4d2861(0xd8)]({},_0x3110c0,{'id':_0x4d2861(0x1d9),'ref':_0x1c8de7,'icon':he}));});q['displayName']=_0x2a4830(0x14c);function V(_0x3c681d){const _0x360f3a=_0x2a4830;var _0x552351,_0x31bf4a;const {mcpCoreConfig:_0x1b81b9,onSave:_0x5609a8,loading:_0x473068=!0x1,config:_0x40c91e,connectionStatus$:_0x41b3bd,connectionError$:_0x40c2c0,currentApiKey$:_0x5c46ed,currentSessionId$:_0x28f7f5}=_0x3c681d,_0x4af89a=v[_0x360f3a(0x15d)](u[_0x360f3a(0x20b)]),_0x4f64ff=v[_0x360f3a(0x1cf)](_0x41b3bd,s[_0x360f3a(0x199)][_0x360f3a(0x102)]),_0x1514d8=v['useObservable'](_0x40c2c0,s['MCPConnectionError'][_0x360f3a(0x1a1)]),_0x2d5e32=v['useObservable'](_0x28f7f5,''),_0x207b58=v[_0x360f3a(0x1cf)](_0x5c46ed,''),[_0x36d4e0,_0x1be6e4]=d[_0x360f3a(0x213)](_0x207b58||''),_0xcce1fd=!0x0,_0x338e58=_0x40c91e[_0x360f3a(0x22c)]&&_0x1b81b9[_0x360f3a(0xce)]&&(_0x1b81b9[_0x360f3a(0xce)][_0x360f3a(0x10a)](_0x360f3a(0x1b2))||_0x1b81b9[_0x360f3a(0xce)][_0x360f3a(0x10a)](_0x360f3a(0x20c))),_0x59eb47=(_0x552351=_0x1b81b9[_0x360f3a(0xce)])==null?void 0x0:_0x552351[_0x360f3a(0x10a)](_0x360f3a(0x1b2)),_0x1a72f4=(_0x31bf4a=_0x1b81b9[_0x360f3a(0xce)])==null?void 0x0:_0x31bf4a[_0x360f3a(0x10a)](_0x360f3a(0x20c)),_0x523d00=_0x59eb47?_0x360f3a(0x140):_0x360f3a(0x17d),_0x55ca99=_0x40c91e['showDeveloperTools']&&(_0x59eb47||_0x1a72f4),[_0x56d3b5,_0x53c080]=d[_0x360f3a(0x213)](!_0x36d4e0['trim']()),_0x1ff6a7=(_0x4f7093,_0x382c21)=>{const _0xe9b5c3=_0x360f3a;if(_0x382c21===s[_0xe9b5c3(0xcc)]['UNAUTHORIZED'])return _0xe9b5c3(0x173);switch(_0x4f7093){case s[_0xe9b5c3(0x199)][_0xe9b5c3(0x128)]:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case s[_0xe9b5c3(0x199)][_0xe9b5c3(0xfa)]:case s[_0xe9b5c3(0x199)][_0xe9b5c3(0x1d8)]:return _0xe9b5c3(0x1c4);case s[_0xe9b5c3(0x199)][_0xe9b5c3(0x202)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return _0xe9b5c3(0x1d2);}},_0x5155d3=(_0x494932,_0x1d86d6)=>{const _0x1b8f35=_0x360f3a;if(_0x1d86d6===s[_0x1b8f35(0xcc)][_0x1b8f35(0x18d)])return _0x1b8f35(0x16b);switch(_0x494932){case s[_0x1b8f35(0x199)][_0x1b8f35(0x128)]:return _0x1b8f35(0x160);case s[_0x1b8f35(0x199)]['CONNECTING']:case s['MCPConnectionStatus']['RETRYING']:return'univer-bg-blue-500';case s[_0x1b8f35(0x199)]['FAILED']:return _0x1b8f35(0x16b);default:return _0x1b8f35(0x1b6);}},_0x219c21=_0x24a8d7=>{const _0x1228dc=_0x360f3a;switch(_0x24a8d7){case s['MCPConnectionStatus'][_0x1228dc(0x128)]:return _0x4af89a['t']('mcpConfig.connectionStatus.connected');case s[_0x1228dc(0x199)][_0x1228dc(0xfa)]:return _0x4af89a['t'](_0x1228dc(0x100));case s[_0x1228dc(0x199)][_0x1228dc(0x202)]:return _0x4af89a['t'](_0x1228dc(0xb5));case s[_0x1228dc(0x199)][_0x1228dc(0x1d8)]:return _0x4af89a['t'](_0x1228dc(0x123));default:return _0x4af89a['t'](_0x1228dc(0xd6));}},_0x5ef593=_0xb47451=>{const _0x4e5c14=_0x360f3a;switch(_0xb47451){case s[_0x4e5c14(0xcc)][_0x4e5c14(0x18d)]:return _0x4af89a['t'](_0x4e5c14(0x112));case s[_0x4e5c14(0xcc)][_0x4e5c14(0x135)]:return _0x4af89a['t'](_0x4e5c14(0x1c8));case s['MCPConnectionError'][_0x4e5c14(0x21d)]:return _0x4af89a['t']('mcpConfig.connectionError.networkError');case s['MCPConnectionError']['MAX_RETRIES_EXCEEDED']:return _0x4af89a['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x4e450f=d[_0x360f3a(0x1e8)](()=>{const _0x4548e5=_0x360f3a,_0x297e27={..._0x1b81b9,'apiKey':_0x36d4e0[_0x4548e5(0x1ab)](),'enableAuth':_0xcce1fd};_0x5609a8(_0x297e27);},[_0x1b81b9,_0x36d4e0,_0xcce1fd,_0x5609a8]),_0x53f2a5=_0x36d4e0[_0x360f3a(0x1ab)]()[_0x360f3a(0x1ff)]>0x0;return i['jsxs'](_0x360f3a(0x1e2),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[i[_0x360f3a(0xf0)](_0x360f3a(0x1e2),{'className':_0x360f3a(0x1bf),'children':i['jsxs'](_0x360f3a(0x1e2),{'className':_0x360f3a(0xaf),'children':[i[_0x360f3a(0xf0)](_0x360f3a(0x1e2),{'className':_0x360f3a(0x19a),'children':i['jsx'](_0x360f3a(0x187),{'className':'univer-text-white','children':'⚙'})}),i[_0x360f3a(0xf0)](_0x360f3a(0x1e2),{'children':i[_0x360f3a(0xf0)]('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x4af89a['t'](_0x360f3a(0x19f))})})]})}),i['jsxs']('div',{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[i['jsx'](_0x360f3a(0x1e2),{'className':f[_0x360f3a(0xc8)](_0x360f3a(0x1df),_0x1ff6a7(_0x4f64ff,_0x1514d8)),'children':i['jsxs'](_0x360f3a(0x1e2),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x360f3a(0xf0)](_0x360f3a(0x1e2),{'className':f[_0x360f3a(0xc8)]('univer-size-2\x20univer-rounded-full',_0x5155d3(_0x4f64ff,_0x1514d8))}),i['jsx'](_0x360f3a(0x187),{'className':_0x360f3a(0x129),'children':_0x219c21(_0x4f64ff)})]})}),_0x1514d8!==s[_0x360f3a(0xcc)][_0x360f3a(0x1a1)]&&(_0x4f64ff===s['MCPConnectionStatus'][_0x360f3a(0x202)]||_0x1514d8===s[_0x360f3a(0xcc)][_0x360f3a(0x18d)])&&i['jsx'](_0x360f3a(0x1e2),{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':i['jsxs'](_0x360f3a(0x1e2),{'className':_0x360f3a(0x190),'children':[i[_0x360f3a(0xf0)](_0x360f3a(0x187),{'className':'univer-shrink-0\x20univer-text-red-500','children':'⚠️'}),i[_0x360f3a(0xf0)]('p',{'className':_0x360f3a(0x10e),'children':_0x5ef593(_0x1514d8)})]})})]}),i[_0x360f3a(0xf0)]('div',{'className':_0x360f3a(0xe4),'children':i[_0x360f3a(0x1a9)](_0x360f3a(0x1e2),{'className':_0x360f3a(0x231),'children':[i[_0x360f3a(0x1a9)](_0x360f3a(0x1e2),{'className':_0x360f3a(0x1d0),'children':[i[_0x360f3a(0x1a9)]('label',{'className':_0x360f3a(0xb7),'children':[i[_0x360f3a(0xf0)](_0x360f3a(0x187),{'children':'🔑'}),'\x20',_0x4af89a['t'](_0x360f3a(0xe7)),i[_0x360f3a(0xf0)](_0x360f3a(0x187),{'className':_0x360f3a(0x1b4),'children':'*'}),_0x338e58&&i[_0x360f3a(0xf0)]('a',{'className':'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','title':_0x4af89a['t'](_0x360f3a(0xe0)),'role':_0x360f3a(0x1de),'onClick':()=>_0x53c080(!0x0),'children':i[_0x360f3a(0xf0)](F,{})})]}),i[_0x360f3a(0xf0)](f[_0x360f3a(0x117)],{'type':_0x360f3a(0x104),'placeholder':_0x4af89a['t'](_0x360f3a(0x101)),'value':_0x36d4e0,'disabled':_0x473068,'autoComplete':_0x360f3a(0x1ca),'onChange':_0x1be6e4}),i[_0x360f3a(0xf0)]('p',{'className':_0x360f3a(0xd2),'children':_0x4af89a['t']('mcpConfig.apiKeyHint')})]}),_0x338e58&&_0x56d3b5&&i[_0x360f3a(0x1a9)](_0x360f3a(0x1e2),{'className':_0x360f3a(0xe1),'children':[i[_0x360f3a(0xf0)]('a',{'className':_0x360f3a(0x19e),'role':_0x360f3a(0x1de),'onClick':()=>_0x53c080(!0x1),'children':i[_0x360f3a(0xf0)](B,{'className':'univer-size-4'})}),i[_0x360f3a(0x1a9)](_0x360f3a(0x1e2),{'className':_0x360f3a(0x181),'children':[i[_0x360f3a(0xf0)](_0x360f3a(0x1e2),{'className':'univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':i['jsx'](_0x360f3a(0x187),{'className':_0x360f3a(0x13a),'children':'🚀'})}),i[_0x360f3a(0x1a9)]('div',{'className':'univer-flex-1','children':[i[_0x360f3a(0xf0)]('h4',{'className':_0x360f3a(0x18f),'children':_0x4af89a['t'](_0x360f3a(0xe0))}),i[_0x360f3a(0xf0)]('p',{'className':_0x360f3a(0x120),'children':_0x4af89a['t'](_0x360f3a(0x21b))}),i[_0x360f3a(0xf0)]('div',{'className':_0x360f3a(0x17c),'children':_0x55ca99&&i['jsxs']('a',{'className':_0x360f3a(0x223),'href':_0x523d00,'target':_0x360f3a(0x22e),'rel':_0x360f3a(0xd5),'children':[i[_0x360f3a(0xf0)](_0x360f3a(0x187),{'children':'🤖'}),_0x4af89a['t']('mcpConfig.apiApplyInfo.univerAiLabel'),i[_0x360f3a(0xf0)](_0x360f3a(0x187),{'className':_0x360f3a(0x1d7),'children':'↗'})]})}),i[_0x360f3a(0x1a9)](_0x360f3a(0x1e2),{'className':_0x360f3a(0x110),'children':['✨','\x20',_0x4af89a['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x40c91e[_0x360f3a(0x22c)]&&i[_0x360f3a(0x1a9)]('div',{'className':_0x360f3a(0x144),'children':[i[_0x360f3a(0x1a9)]('h4',{'className':_0x360f3a(0xd9),'children':[i[_0x360f3a(0xf0)](_0x360f3a(0x187),{'children':'🔗'}),'\x20',_0x4af89a['t'](_0x360f3a(0x10c))]}),i['jsxs'](_0x360f3a(0x1e2),{'className':_0x360f3a(0x170),'children':[i[_0x360f3a(0x1a9)](_0x360f3a(0x1e2),{'className':_0x360f3a(0x1a8),'children':[i[_0x360f3a(0xf0)]('p',{'className':_0x360f3a(0x1c1),'children':_0x4af89a['t'](_0x360f3a(0x176))}),i[_0x360f3a(0x1a9)]('div',{'className':'univer-space-y-2','children':[i[_0x360f3a(0xf0)](_0x360f3a(0x1e2),{'className':_0x360f3a(0x17e),'children':_0x4af89a['t'](_0x360f3a(0x179))}),i[_0x360f3a(0x1a9)](_0x360f3a(0x1e2),{'className':_0x360f3a(0x164),'children':[i[_0x360f3a(0x1a9)](_0x360f3a(0x1e2),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x360f3a(0xf0)](_0x360f3a(0x187),{'className':_0x360f3a(0x217),'children':'1'}),_0x4af89a['t'](_0x360f3a(0x131))]}),i[_0x360f3a(0x1a9)]('div',{'className':_0x360f3a(0x18c),'children':[i[_0x360f3a(0xf0)](_0x360f3a(0x187),{'className':_0x360f3a(0x217),'children':'2'}),_0x4af89a['t'](_0x360f3a(0x19d))]}),i[_0x360f3a(0x1a9)](_0x360f3a(0x1e2),{'className':_0x360f3a(0x18c),'children':[i[_0x360f3a(0xf0)](_0x360f3a(0x187),{'className':_0x360f3a(0x217),'children':'3'}),_0x4af89a['t'](_0x360f3a(0x205))]})]})]})]}),i['jsxs']('div',{'className':_0x360f3a(0x1d0),'children':[i[_0x360f3a(0xf0)](_0x360f3a(0x1e2),{'className':_0x360f3a(0x17e),'children':_0x360f3a(0x229)}),i[_0x360f3a(0xf0)]('div',{'className':_0x360f3a(0x121),'children':i['jsx']('pre',{'className':_0x360f3a(0x1dc),'children':JSON[_0x360f3a(0x178)]({'mcpServers':{'univer':{'url':'https://mcp.univer.ai/mcp/?univer_session_id='+(_0x2d5e32||_0x360f3a(0x1eb)),'type':'http','headers':{'Authorization':'Bearer\x20'+(_0x36d4e0||_0x360f3a(0x1fd))}}}},null,0x2)})})]}),i['jsxs'](_0x360f3a(0x1e2),{'className':_0x360f3a(0x1a8),'children':[i['jsx'](_0x360f3a(0x1e2),{'className':_0x360f3a(0x17e),'children':_0x4af89a['t']('mcpConfig.configParameters')}),i[_0x360f3a(0x1a9)](_0x360f3a(0x1e2),{'className':_0x360f3a(0x1d0),'children':[i[_0x360f3a(0x1a9)](_0x360f3a(0x1e2),{'className':_0x360f3a(0xff),'children':[i['jsx']('div',{'className':_0x360f3a(0x21e)}),i[_0x360f3a(0x1a9)](_0x360f3a(0x1e2),{'className':_0x360f3a(0xe6),'children':[i[_0x360f3a(0xf0)](_0x360f3a(0x1e2),{'className':_0x360f3a(0x16e),'children':'univer_session_id:'}),i[_0x360f3a(0xf0)](_0x360f3a(0x1e2),{'className':_0x360f3a(0xd2),'children':_0x4af89a['t'](_0x360f3a(0x105))})]})]}),i[_0x360f3a(0x1a9)](_0x360f3a(0x1e2),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[i[_0x360f3a(0xf0)](_0x360f3a(0x1e2),{'className':_0x360f3a(0x21e)}),i['jsxs'](_0x360f3a(0x1e2),{'className':_0x360f3a(0xe6),'children':[i['jsx'](_0x360f3a(0x1e2),{'className':_0x360f3a(0x16e),'children':_0x360f3a(0x11a)}),i['jsx'](_0x360f3a(0x1e2),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x4af89a['t'](_0x360f3a(0x1b3))})]})]})]})]})]})]}),i[_0x360f3a(0xf0)](f[_0x360f3a(0x186)],{'onClick':_0x4e450f,'disabled':!_0x53f2a5||_0x473068,'className':_0x360f3a(0x1f0),'children':_0x473068?i[_0x360f3a(0x1a9)](_0x360f3a(0x187),{'className':_0x360f3a(0x18c),'children':[i[_0x360f3a(0xf0)](_0x360f3a(0x187),{'children':'⟲'}),_0x4af89a['t'](_0x360f3a(0xda))]}):i[_0x360f3a(0x1a9)](_0x360f3a(0x187),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x360f3a(0xf0)](H,{}),_0x4af89a['t'](_0x360f3a(0x103))]})}),i['jsx'](_0x360f3a(0x1e2),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':i[_0x360f3a(0x1a9)](_0x360f3a(0x1e2),{'className':'univer-flex\x20univer-gap-3','children':[i[_0x360f3a(0xf0)](_0x360f3a(0x187),{'className':_0x360f3a(0x133),'children':'💡'}),i[_0x360f3a(0x1a9)](_0x360f3a(0x1e2),{'className':_0x360f3a(0x196),'children':[i[_0x360f3a(0xf0)]('div',{'className':_0x360f3a(0x192),'children':_0x360f3a(0x1ea)}),i[_0x360f3a(0x1a9)](_0x360f3a(0x1e2),{'children':['•',_0x4af89a['t'](_0x360f3a(0xe9))]}),i['jsxs']('div',{'children':['•',_0x4af89a['t'](_0x360f3a(0xfe))]})]})]})})]})})]});}const P=_0x2a4830(0x14e),L={'showDeveloperTools':!0x1,'showStatus':!0x0};var me=Object['getOwnPropertyDescriptor'],xe=(_0x458ed5,_0x3f6752,_0x2f77c0,_0x5b22c3)=>{const _0x33c856=_0x2a4830;for(var _0x4917c2=_0x5b22c3>0x1?void 0x0:_0x5b22c3?me(_0x3f6752,_0x2f77c0):_0x3f6752,_0x34b1a5=_0x458ed5[_0x33c856(0x1ff)]-0x1,_0x2a0d22;_0x34b1a5>=0x0;_0x34b1a5--)(_0x2a0d22=_0x458ed5[_0x34b1a5])&&(_0x4917c2=_0x2a0d22(_0x4917c2)||_0x4917c2);return _0x4917c2;},g=(_0x4cfe18,_0x133726)=>(_0x4d61d8,_0x459f8f)=>_0x133726(_0x4d61d8,_0x459f8f,_0x4cfe18);const O=_0x2a4830(0x114),D=_0x2a4830(0x22f);exports[_0x2a4830(0xc9)]=class extends u[_0x2a4830(0x214)]{constructor(_0x480ef6,_0x161cf9,_0x2fb872,_0x1081ec,_0x5b1f75,_0x3fd513,_0x59b5d9,_0x2abad3,_0x450f32,_0x1b610e){const _0x48d44b=_0x2a4830;super(),I(this,_0x48d44b(0xc0),new M[(_0x48d44b(0x17f))](!0x1)),I(this,_0x48d44b(0xc3),new M[(_0x48d44b(0x17f))]({})),I(this,_0x48d44b(0xfd),new M[(_0x48d44b(0x17f))]({})),I(this,_0x48d44b(0xae),new M[(_0x48d44b(0x17f))]('')),I(this,_0x48d44b(0x167),async _0x5cbdb4=>{const _0x383bd7=_0x48d44b;var _0x480c0b,_0x2ab718;this[_0x383bd7(0xc0)]['next'](!0x0);try{const _0x395319=await this[_0x383bd7(0x1c7)](_0x5cbdb4);if(!_0x395319[_0x383bd7(0x17a)]){this[_0x383bd7(0x225)][_0x383bd7(0x1b5)]({'type':f[_0x383bd7(0xba)][_0x383bd7(0xb2)],'content':_0x395319[_0x383bd7(0x109)]||this[_0x383bd7(0x1fc)]['t'](_0x383bd7(0x21a))});return;}_0x5cbdb4[_0x383bd7(0x113)]?await this['_localStorageService'][_0x383bd7(0xf2)](O,_0x5cbdb4[_0x383bd7(0x113)][_0x383bd7(0x1ab)]()):await this[_0x383bd7(0x180)][_0x383bd7(0x12d)](O),this[_0x383bd7(0xae)][_0x383bd7(0xb9)](((_0x480c0b=_0x5cbdb4[_0x383bd7(0x113)])==null?void 0x0:_0x480c0b[_0x383bd7(0x1ab)]())||''),this[_0x383bd7(0xd3)][_0x383bd7(0x1e6)]({'Authorization':_0x383bd7(0x134)+((_0x2ab718=_0x5cbdb4['apiKey'])==null?void 0x0:_0x2ab718[_0x383bd7(0x1ab)]())}),this[_0x383bd7(0x225)][_0x383bd7(0x1b5)]({'type':f[_0x383bd7(0xba)][_0x383bd7(0x151)],'content':this['_localeService']['t']('mcpConfig.configSaved')}),setTimeout(()=>{const _0x2bdcef=_0x383bd7;this[_0x2bdcef(0x20e)]['close'](D);},0x320);}catch(_0x3b25e5){this['_logService'][_0x383bd7(0xb3)]('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x3b25e5),this[_0x383bd7(0x225)][_0x383bd7(0x1b5)]({'type':f[_0x383bd7(0xba)][_0x383bd7(0xb2)],'content':this[_0x383bd7(0x1fc)]['t'](_0x383bd7(0x174))});}finally{this[_0x383bd7(0xc0)][_0x383bd7(0xb9)](!0x1);}}),(this[_0x48d44b(0x1a7)]=_0x480ef6,this[_0x48d44b(0x18a)]=_0x161cf9,this[_0x48d44b(0x12e)]=_0x2fb872,this[_0x48d44b(0x180)]=_0x1081ec,this[_0x48d44b(0x20e)]=_0x5b1f75,this[_0x48d44b(0x225)]=_0x3fd513,this[_0x48d44b(0x1bb)]=_0x59b5d9,this[_0x48d44b(0x1fc)]=_0x2abad3,this[_0x48d44b(0x166)]=_0x450f32,this[_0x48d44b(0xd3)]=_0x1b610e,this[_0x48d44b(0x183)](),this[_0x48d44b(0x189)](),this[_0x48d44b(0x11e)]());}['showConfigPanel'](){const _0x3a8f3a=_0x2a4830,_0x117b2d=this[_0x3a8f3a(0x12e)]['getConfig'](P);_0x117b2d!=null&&_0x117b2d[_0x3a8f3a(0x22c)]&&this[_0x3a8f3a(0x20e)][_0x3a8f3a(0xea)]({'id':D,'title':{'title':this[_0x3a8f3a(0x1fc)]['t'](_0x3a8f3a(0x20a))},'children':{'label':_0x3a8f3a(0x1c9)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x2e6349=_0x3a8f3a;this[_0x2e6349(0x20e)][_0x2e6349(0x1d3)](D);}});}[_0x2a4830(0xf7)](){return this['_mcpCoreConfig$']['value'];}[_0x2a4830(0x11e)](){const _0x1afa04=_0x2a4830;this[_0x1afa04(0x227)](this[_0x1afa04(0x1bb)][_0x1afa04(0xbb)](_0x1afa04(0x1c9),this['_createConfigPanelComponent']()));}[_0x2a4830(0xd4)](){const _0x46ed3c=_0x2a4830;return v[_0x46ed3c(0x10f)](()=>{const _0x2a6407=_0x46ed3c;var _0x3592ef,_0x4b660d,_0x2ff5c8;return i[_0x2a6407(0xf0)](V,{'config':this[_0x2a6407(0xfd)][_0x2a6407(0x169)],'mcpCoreConfig':this[_0x2a6407(0xc3)]['value'],'currentApiKey$':this[_0x2a6407(0xae)],'onSave':this['_handleConfigSave'],'loading':this[_0x2a6407(0xc0)][_0x2a6407(0x169)],'connectionStatus$':(_0x3592ef=this[_0x2a6407(0xd3)])==null?void 0x0:_0x3592ef[_0x2a6407(0x13d)],'connectionError$':(_0x4b660d=this[_0x2a6407(0xd3)])==null?void 0x0:_0x4b660d['connectionError$'],'currentSessionId$':(_0x2ff5c8=this[_0x2a6407(0xd3)])==null?void 0x0:_0x2ff5c8[_0x2a6407(0x1f4)]});},this[_0x46ed3c(0x1a7)]);}['_initConfigSync'](){const _0x310006=_0x2a4830;this[_0x310006(0x227)](this[_0x310006(0x12e)][_0x310006(0xb1)](s['MCP_PLUGIN_CONFIG_KEY'])[_0x310006(0x148)](_0x49e826=>{const _0x4f3123=_0x310006;this[_0x4f3123(0xc3)][_0x4f3123(0xb9)](_0x49e826||{});}));const _0x156854=this[_0x310006(0x12e)][_0x310006(0x218)](s[_0x310006(0x20f)]);this[_0x310006(0xc3)][_0x310006(0xb9)](_0x156854||{}),this[_0x310006(0x227)](this[_0x310006(0x12e)][_0x310006(0xb1)](P)[_0x310006(0x148)](_0x5d5245=>{const _0x2efada=_0x310006;this[_0x2efada(0xfd)]['next'](_0x5d5245||{});}));const _0xc03cc5=this['_configService']['getConfig'](P);this[_0x310006(0xfd)][_0x310006(0xb9)](_0xc03cc5||{});}async[_0x2a4830(0x189)](){const _0x2e15a5=_0x2a4830,_0x5af155=this[_0x2e15a5(0x12e)][_0x2e15a5(0x218)](P);if(!(_0x5af155!=null&&_0x5af155[_0x2e15a5(0x22c)]))return;const _0x40f98b=await this[_0x2e15a5(0x180)]['getItem'](O);_0x40f98b&&(this['_mcpConnectionController'][_0x2e15a5(0x1e6)]({'Authorization':_0x2e15a5(0x134)+_0x40f98b}),this['_apiKey$'][_0x2e15a5(0xb9)](_0x40f98b));}async[_0x2a4830(0x1c7)](_0x3c29c0){const _0x201e1c=_0x2a4830;if(!_0x3c29c0[_0x201e1c(0x113)]||_0x3c29c0[_0x201e1c(0x113)]['trim']()[_0x201e1c(0x1ff)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x201e1c(0x1fc)]['t'](_0x201e1c(0x111))};if(_0x3c29c0[_0x201e1c(0x113)][_0x201e1c(0x1ab)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0x201e1c(0x1fc)]['t']('mcpConfig.validation.apiKeyTooShort')};try{const _0x46f3e6=await this[_0x201e1c(0x1a7)][_0x201e1c(0x14d)](s[_0x201e1c(0xf1)])[_0x201e1c(0x1da)](_0x3c29c0[_0x201e1c(0x113)]['trim']());return _0x46f3e6[_0x201e1c(0x17a)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x46f3e6[_0x201e1c(0xb3)]||this['_localeService']['t'](_0x201e1c(0x215))};}catch(_0xc0965d){return console[_0x201e1c(0x22d)]('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0xc0965d),{'isValid':!0x0};}}},exports[_0x2a4830(0xc9)]=xe([g(0x0,u[_0x2a4830(0x197)](u['Injector'])),g(0x1,v['IUIPartsService']),g(0x2,u[_0x2a4830(0x21c)]),g(0x3,u['ILocalStorageService']),g(0x4,v[_0x2a4830(0x157)]),g(0x5,v[_0x2a4830(0x12c)]),g(0x6,u['Inject'](v[_0x2a4830(0x228)])),g(0x7,u[_0x2a4830(0x197)](u[_0x2a4830(0x20b)])),g(0x8,u['ILogService']),g(0x9,u[_0x2a4830(0x197)](s[_0x2a4830(0xf1)]))],exports[_0x2a4830(0xc9)]);const b={'id':_0x2a4830(0x1d5),'type':u[_0x2a4830(0x1a6)]['COMMAND'],'handler':async(_0x467e89,_0x414207)=>(_0x467e89['get'](exports[_0x2a4830(0xc9)])[_0x2a4830(0x12a)](),!0x0)};function Z(_0x21c77b,_0x212981){const _0x11f779=_0x2a4830;switch(_0x21c77b){case s[_0x11f779(0x199)]['DISCONNECTED']:return _0x11f779(0x1b9);case s[_0x11f779(0x199)][_0x11f779(0xfa)]:return _0x11f779(0x1e0);case s[_0x11f779(0x199)][_0x11f779(0x128)]:return _0x11f779(0xdd);case s[_0x11f779(0x199)]['FAILED']:switch(_0x212981){case s[_0x11f779(0xcc)][_0x11f779(0x18d)]:return _0x11f779(0x1ce);case s[_0x11f779(0xcc)][_0x11f779(0x135)]:return _0x11f779(0x1bc);case s[_0x11f779(0xcc)]['NETWORK_ERROR']:return'mcpStatus.networkError';case s[_0x11f779(0xcc)][_0x11f779(0xc6)]:return _0x11f779(0x177);default:return'mcpStatus.failed';}case s[_0x11f779(0x199)]['RETRYING']:return _0x11f779(0x11c);default:return _0x11f779(0xee);}}function _0x4002(_0x14989b,_0x3e5e7b){_0x14989b=_0x14989b-0xac;const _0x586657=_0x5866();let _0x400289=_0x586657[_0x14989b];return _0x400289;}function Se(_0xd4d15,_0x543146,_0x167028,_0x5a10fe=!0x0){const _0x53f14e=_0x2a4830,_0x4f459f=Z(_0xd4d15,_0x543146),_0x4159cf=_0x167028['t'](_0x4f459f);return _0x5a10fe?_0xd4d15===s[_0x53f14e(0x199)][_0x53f14e(0x102)]&&_0x543146===s[_0x53f14e(0xcc)][_0x53f14e(0x18d)]?_0x4159cf+_0x53f14e(0x18e)+_0x167028['t']('mcpStatus.clickToConfigure'):_0xd4d15===s[_0x53f14e(0x199)][_0x53f14e(0x128)]?''+_0x4159cf:_0xd4d15===s[_0x53f14e(0x199)][_0x53f14e(0x102)]||_0xd4d15===s[_0x53f14e(0x199)][_0x53f14e(0x202)]?_0x4159cf+'\x20-\x20'+_0x167028['t'](_0x53f14e(0xd0)):_0x4159cf:_0x4159cf;}function Pe(_0x3f054c){const _0x512e68=_0x2a4830;switch(_0x3f054c){case s[_0x512e68(0x199)][_0x512e68(0x128)]:return _0x512e68(0x115);case s['MCPConnectionStatus']['CONNECTING']:case s['MCPConnectionStatus'][_0x512e68(0x1d8)]:return'univer-text-yellow-500';case s[_0x512e68(0x199)]['FAILED']:case s[_0x512e68(0x199)][_0x512e68(0x102)]:return _0x512e68(0x1b4);default:return _0x512e68(0x1e5);}}function W(_0x554562){const _0x9942f4=_0x2a4830,{status$:_0x5364f9,error$:_0x2d8f5c,onConfigure:_0x28e45a,showClickable:_0x1f724e=!0x0}=_0x554562,_0xa4e084=v[_0x9942f4(0x1cf)](_0x5364f9,s[_0x9942f4(0x199)]['DISCONNECTED']),_0x20972c=v[_0x9942f4(0x1cf)](_0x2d8f5c,s[_0x9942f4(0xcc)][_0x9942f4(0x1a1)]),_0xb18bc0=v[_0x9942f4(0x15d)](u[_0x9942f4(0x20b)]),_0xcc839a=_0xa4e084===s[_0x9942f4(0x199)][_0x9942f4(0x128)];_0xa4e084===s[_0x9942f4(0x199)][_0x9942f4(0xfa)]||s[_0x9942f4(0x199)][_0x9942f4(0x1d8)];const _0x4c2ac1=_0xb18bc0['t'](Z(_0xa4e084,_0x20972c)),_0x28dc2a=Se(_0xa4e084,_0x20972c,_0xb18bc0,_0x1f724e),_0x31894d=Pe(_0xa4e084),_0x35627f=_0xcc839a?i[_0x9942f4(0xf0)](q,{}):i[_0x9942f4(0xf0)](Y,{}),_0x2a7fab=d[_0x9942f4(0x1e8)](()=>{_0x1f724e&&_0x28e45a&&_0x28e45a();},[_0x1f724e,_0x28e45a]);function _0xa7ab1f(){const _0x3ce90d=_0x9942f4;return i[_0x3ce90d(0x1a9)]('div',{'className':f[_0x3ce90d(0xc8)](_0x3ce90d(0x1fb),_0x1f724e&&_0x28e45a&&_0x3ce90d(0x221)),'role':_0x3ce90d(0x1de),'onClick':_0x1f724e&&_0x28e45a?_0x2a7fab:void 0x0,'children':[i[_0x3ce90d(0xf0)]('div',{'className':f['clsx'](_0x3ce90d(0x16d),_0x31894d),'children':_0x35627f}),i[_0x3ce90d(0xf0)](_0x3ce90d(0x1e2),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x4c2ac1})]});}return i[_0x9942f4(0xf0)](f[_0x9942f4(0x10b)],{'title':_0x28dc2a,'placement':_0x9942f4(0x142),'children':_0xa7ab1f()});}var Ie=Object['getOwnPropertyDescriptor'],_e=(_0x2113fb,_0x1c7bac,_0x1f52c6,_0x744f84)=>{const _0x1e7d03=_0x2a4830;for(var _0x43f3b3=_0x744f84>0x1?void 0x0:_0x744f84?Ie(_0x1c7bac,_0x1f52c6):_0x1c7bac,_0x1933ee=_0x2113fb[_0x1e7d03(0x1ff)]-0x1,_0x2ac481;_0x1933ee>=0x0;_0x1933ee--)(_0x2ac481=_0x2113fb[_0x1933ee])&&(_0x43f3b3=_0x2ac481(_0x43f3b3)||_0x43f3b3);return _0x43f3b3;},N=(_0x38387f,_0x1e3ef7)=>(_0x1dbd6b,_0x460831)=>_0x1e3ef7(_0x1dbd6b,_0x460831,_0x38387f);exports['MCPConnectionUIController']=class extends u[_0x2a4830(0x214)]{constructor(_0x41ea15,_0x119ec5,_0x3a3883,_0x1582a4){const _0x19d8be=_0x2a4830;super(),this[_0x19d8be(0x1a7)]=_0x41ea15,this['_connectionController']=_0x119ec5,this[_0x19d8be(0x18a)]=_0x3a3883,this['_configService']=_0x1582a4,this[_0x19d8be(0x1a4)](),this['_initStatusComponent']();}[_0x2a4830(0x1a4)](){const _0x267907=_0x2a4830,_0x1cc5e5=this['_configService'][_0x267907(0x218)](P);_0x1cc5e5!=null&&_0x1cc5e5[_0x267907(0x22c)]&&(this[_0x267907(0xdc)][_0x267907(0x126)]=!0x1);}[_0x2a4830(0x1b1)](){const _0x3ee4a8=_0x2a4830,_0x263f04=this[_0x3ee4a8(0x12e)][_0x3ee4a8(0x218)](P);(_0x263f04==null?void 0x0:_0x263f04['showStatus'])!==!0x1&&this[_0x3ee4a8(0x227)](this['_uiPartsService'][_0x3ee4a8(0x14a)](v[_0x3ee4a8(0xac)]['HEADER_MENU'],()=>{const _0x58b5e1=_0x3ee4a8;var _0xd51a00;return v[_0x58b5e1(0x10f)](ye({'status$':this['_connectionController'][_0x58b5e1(0x13d)],'error$':this['_connectionController'][_0x58b5e1(0x1e4)],'onConfigure':()=>this[_0x58b5e1(0x22b)](),'showClickable':(_0xd51a00=_0x263f04==null?void 0x0:_0x263f04[_0x58b5e1(0x22c)])!=null?_0xd51a00:!0x1}),this[_0x58b5e1(0x1a7)]);}));}[_0x2a4830(0x22b)](){const _0x474c3e=_0x2a4830;this[_0x474c3e(0x1a7)][_0x474c3e(0x14d)](exports[_0x474c3e(0xc9)])[_0x474c3e(0x12a)]();}},exports[_0x2a4830(0x1e3)]=_e([N(0x0,u[_0x2a4830(0x197)](u[_0x2a4830(0x1c6)])),N(0x1,u[_0x2a4830(0x197)](s[_0x2a4830(0xf1)])),N(0x2,v[_0x2a4830(0x108)]),N(0x3,u[_0x2a4830(0x21c)])],exports[_0x2a4830(0x1e3)]);function ye(_0x4da7a5){const {status$:_0x11dcbe,error$:_0x52135a,onConfigure:_0x521880,showClickable:_0x59c3b6}=_0x4da7a5;return function(){const _0x530e2c=_0x4002;return i[_0x530e2c(0xf0)](W,{'status$':_0x11dcbe,'error$':_0x52135a,'onConfigure':_0x521880,'showClickable':_0x59c3b6});};}function Me(_0x58db21){const _0x5ec793=_0x2a4830;return{'id':b['id'],'type':v[_0x5ec793(0xf4)]['BUTTON'],'icon':_0x5ec793(0x1fe),'title':_0x5ec793(0x20a),'tooltip':_0x5ec793(0x20a)};}const Ne={[v[_0x2a4830(0x11d)][_0x2a4830(0x1fa)]]:{[b['id']]:{'order':0xa,'menuItemFactory':Me}}};var be=Object[_0x2a4830(0x1cc)],je=(_0x581c72,_0x3f9916,_0x985ec1,_0x64b548)=>{for(var _0x34455c=_0x64b548>0x1?void 0x0:_0x64b548?be(_0x3f9916,_0x985ec1):_0x3f9916,_0x436950=_0x581c72['length']-0x1,_0x6c101a;_0x436950>=0x0;_0x436950--)(_0x6c101a=_0x581c72[_0x436950])&&(_0x34455c=_0x6c101a(_0x34455c)||_0x34455c);return _0x34455c;},z=(_0x48402a,_0x26f975)=>(_0x93137a,_0x545383)=>_0x26f975(_0x93137a,_0x545383,_0x48402a);exports[_0x2a4830(0x220)]=class extends u['Disposable']{constructor(_0x22a787,_0x5254b4){const _0x36029b=_0x2a4830;super(),this[_0x36029b(0x19c)]=_0x22a787,this[_0x36029b(0x137)]=_0x5254b4,this['_initializeCommands'](),this[_0x36029b(0x1ef)]();}[_0x2a4830(0x200)](){const _0x22dda6=_0x2a4830;[b][_0x22dda6(0xf5)](_0xdebe09=>{const _0x3ebfb6=_0x22dda6;this[_0x3ebfb6(0x227)](this[_0x3ebfb6(0x19c)]['registerCommand'](_0xdebe09));});}['_initializeMenus'](){const _0x38ddc6=_0x2a4830;this[_0x38ddc6(0x137)][_0x38ddc6(0x184)](Ne);}},exports[_0x2a4830(0x220)]=je([z(0x0,u[_0x2a4830(0xfb)]),z(0x1,v[_0x2a4830(0x1cb)])],exports['MCPUIMenuController']);const Ee={'mcpStatus':{'disconnected':_0x2a4830(0x1b0),'connecting':_0x2a4830(0xb8),'connected':_0x2a4830(0xef),'failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':_0x2a4830(0x1a2),'unauthorized':_0x2a4830(0x158),'sessionOccupied':_0x2a4830(0x1ee),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x2a4830(0x161),'clickToConnect':_0x2a4830(0x14b),'clickToConfigure':_0x2a4830(0x138)},'mcpConfig':{'title':_0x2a4830(0x229),'description':_0x2a4830(0x1f5),'apiKey':_0x2a4830(0x14f),'apiKeyPlaceholder':_0x2a4830(0xc7),'apiKeyHint':_0x2a4830(0x168),'enableAuth':_0x2a4830(0x191),'enableAuthHint':_0x2a4830(0x15a),'connectionInfo':_0x2a4830(0x1d4),'mcpClientConfig':_0x2a4830(0x1d4),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':_0x2a4830(0x159),'configStep2':_0x2a4830(0x152),'configStep3':_0x2a4830(0x124),'sessionId':_0x2a4830(0x15f),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x2a4830(0x198),'configParameters':_0x2a4830(0x19b),'maxRetries':_0x2a4830(0x1f7),'save':_0x2a4830(0x12f),'saving':_0x2a4830(0x206),'note1':_0x2a4830(0x207),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x2a4830(0x1bd),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0x2a4830(0xf6),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x2a4830(0x12b),'apiKeyTooShort':_0x2a4830(0xe3),'invalidConfig':_0x2a4830(0x122),'invalidApiKey':_0x2a4830(0x150)},'connectionStatus':{'disconnected':_0x2a4830(0x118),'connecting':'Connecting...','connected':'Connected','failed':_0x2a4830(0xfc),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x2a4830(0x175),'sessionOccupied':_0x2a4830(0x201),'networkError':_0x2a4830(0x15b),'maxRetriesExceeded':_0x2a4830(0x1ac)}}},we={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':_0x2a4830(0xdf),'connected':_0x2a4830(0x153),'failed':_0x2a4830(0x1f1),'retrying':_0x2a4830(0xde),'unknown':_0x2a4830(0xca),'unauthorized':'MCP:\x20未授权','sessionOccupied':_0x2a4830(0x1c0),'networkError':_0x2a4830(0x193),'maxRetriesExceeded':_0x2a4830(0x15c),'clickToConnect':_0x2a4830(0xe2),'clickToConfigure':_0x2a4830(0x139)},'mcpConfig':{'title':'MCP\x20配置','description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x2a4830(0x127),'apiKeyPlaceholder':_0x2a4830(0xc5),'apiKeyHint':_0x2a4830(0xf3),'enableAuth':_0x2a4830(0xd1),'enableAuthHint':_0x2a4830(0x210),'connectionInfo':_0x2a4830(0x1e9),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':'配置步骤:','configStep1':'复制以下\x20JSON\x20配置','configStep2':_0x2a4830(0x1a3),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':_0x2a4830(0x182),'sessionIdDescription':_0x2a4830(0x136),'authorizationDescription':_0x2a4830(0x1a5),'configParameters':_0x2a4830(0xdb),'maxRetries':_0x2a4830(0x216),'save':'保存配置','saving':'保存中...','note1':_0x2a4830(0x230),'note2':_0x2a4830(0x145),'configSaved':_0x2a4830(0xb6),'configError':_0x2a4830(0x132),'apiApplyInfo':{'title':_0x2a4830(0x154),'description':_0x2a4830(0xc4),'univerAiLabel':_0x2a4830(0x1c5),'getStarted':_0x2a4830(0x21f)},'validation':{'apiKeyRequired':_0x2a4830(0x18b),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x2a4830(0x171),'invalidApiKey':_0x2a4830(0x1af)},'connectionStatus':{'disconnected':'未连接','connecting':'连接中...','connected':_0x2a4830(0x13f),'failed':_0x2a4830(0x1f9),'retrying':'重连中...'},'connectionError':{'unauthorized':_0x2a4830(0x1c2),'sessionOccupied':_0x2a4830(0x203),'networkError':_0x2a4830(0xc1),'maxRetriesExceeded':_0x2a4830(0x1aa)}}};var Ae=Object['defineProperty'],Oe=Object['getOwnPropertyDescriptor'],De=(_0x389318,_0x1dc07e,_0x2b521e)=>_0x1dc07e in _0x389318?Ae(_0x389318,_0x1dc07e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2b521e}):_0x389318[_0x1dc07e]=_0x2b521e,Ue=(_0x3336a2,_0x240e8f,_0x3af5b0,_0x307e4e)=>{const _0x2f01ed=_0x2a4830;for(var _0x22b35a=_0x307e4e>0x1?void 0x0:_0x307e4e?Oe(_0x240e8f,_0x3af5b0):_0x240e8f,_0xfa2408=_0x3336a2[_0x2f01ed(0x1ff)]-0x1,_0x51509f;_0xfa2408>=0x0;_0xfa2408--)(_0x51509f=_0x3336a2[_0xfa2408])&&(_0x22b35a=_0x51509f(_0x22b35a)||_0x22b35a);return _0x22b35a;},y=(_0x338b8b,_0x32036c)=>(_0x2b6b5a,_0x159024)=>_0x32036c(_0x2b6b5a,_0x159024,_0x338b8b),$e=(_0x174984,_0x2071f5,_0x571386)=>De(_0x174984,_0x2071f5+'',_0x571386);exports[_0x2a4830(0x1a0)]=class extends u[_0x2a4830(0x1f3)]{constructor(_0x3424e0=L,_0x20aee5,_0x451645,_0x5e6e49,_0x1086e5,_0x597eb9){const _0xa83948=_0x2a4830;super(),this[_0xa83948(0x1ae)]=_0x3424e0,this[_0xa83948(0x1a7)]=_0x20aee5,this['_configService']=_0x451645,this[_0xa83948(0x18a)]=_0x5e6e49,this[_0xa83948(0x180)]=_0x1086e5,this['_localeService']=_0x597eb9;const {..._0x69bc00}=u['merge']({},L,this['_config']);this[_0xa83948(0x12e)][_0xa83948(0xed)](P,_0x69bc00);}async[_0x2a4830(0x165)](){const _0x494518=_0x2a4830,_0x45c590=[[exports[_0x494518(0x1e3)]],[exports[_0x494518(0xc9)]],[exports[_0x494518(0x220)]]];this[_0x494518(0x1a7)][_0x494518(0x149)](A[_0x494518(0x156)])||_0x45c590[_0x494518(0x1ba)]([A[_0x494518(0x156)],{'useClass':A[_0x494518(0xbc)]}]),_0x45c590[_0x494518(0xf5)](_0x57c413=>this[_0x494518(0x1a7)][_0x494518(0x208)](_0x57c413)),this[_0x494518(0x1a7)][_0x494518(0x14d)](exports[_0x494518(0x1e3)]),this[_0x494518(0x1a7)][_0x494518(0x14d)](exports[_0x494518(0xc9)]),this['_injector'][_0x494518(0x14d)](exports['MCPUIMenuController']);}},$e(exports[_0x2a4830(0x1a0)],_0x2a4830(0x163),'MCP_UI_PLUGIN'),exports['UniverMCPUIPlugin']=Ue([u[_0x2a4830(0xb0)](s[_0x2a4830(0x1cd)]),y(0x1,u[_0x2a4830(0x197)](u['Injector'])),y(0x2,u[_0x2a4830(0x21c)]),y(0x3,v[_0x2a4830(0x108)]),y(0x4,u[_0x2a4830(0x1f8)]),y(0x5,u[_0x2a4830(0x197)](u[_0x2a4830(0x20b)]))],exports[_0x2a4830(0x1a0)]),exports['MCPConfigPanel']=V,exports[_0x2a4830(0x13e)]=W,exports['OpenMCPConfigPanelCommand']=b,exports[_0x2a4830(0x219)]=Ee,exports[_0x2a4830(0x185)]=we;
@@ -1 +1 @@
1
- 'use strict';const _0x37a2eb=_0x1e73;(function(_0x30ea17,_0x3e5d36){const _0x210bbb=_0x1e73,_0x20773d=_0x30ea17();while(!![]){try{const _0x1dc59f=-parseInt(_0x210bbb(0x148))/0x1+parseInt(_0x210bbb(0x156))/0x2+parseInt(_0x210bbb(0x150))/0x3*(parseInt(_0x210bbb(0x157))/0x4)+-parseInt(_0x210bbb(0x169))/0x5+-parseInt(_0x210bbb(0x173))/0x6+parseInt(_0x210bbb(0x155))/0x7+parseInt(_0x210bbb(0x16e))/0x8;if(_0x1dc59f===_0x3e5d36)break;else _0x20773d['push'](_0x20773d['shift']());}catch(_0x1cdbc7){_0x20773d['push'](_0x20773d['shift']());}}}(_0x5dfe,0x1c009));function _0x1e73(_0x15253c,_0x2f3493){_0x15253c=_0x15253c-0x145;const _0x5dfe81=_0x5dfe();let _0x1e7371=_0x5dfe81[_0x15253c];return _0x1e7371;}const e={'mcpStatus':{'disconnected':_0x37a2eb(0x14f),'connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':_0x37a2eb(0x149),'retrying':'MCP\x20Retrying...','unknown':_0x37a2eb(0x15e),'unauthorized':_0x37a2eb(0x168),'sessionOccupied':_0x37a2eb(0x14a),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x37a2eb(0x147),'clickToConfigure':_0x37a2eb(0x160)},'mcpConfig':{'title':_0x37a2eb(0x152),'description':_0x37a2eb(0x159),'apiKey':_0x37a2eb(0x15b),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x37a2eb(0x14c),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x37a2eb(0x171),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x37a2eb(0x158),'configInstructions':_0x37a2eb(0x172),'configStepTitle':_0x37a2eb(0x14d),'configStep1':_0x37a2eb(0x16c),'configStep2':_0x37a2eb(0x162),'configStep3':_0x37a2eb(0x151),'sessionId':_0x37a2eb(0x15f),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x37a2eb(0x16a),'maxRetries':_0x37a2eb(0x153),'save':_0x37a2eb(0x15a),'saving':_0x37a2eb(0x167),'note1':_0x37a2eb(0x16d),'note2':_0x37a2eb(0x14b),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x37a2eb(0x154),'apiApplyInfo':{'title':_0x37a2eb(0x161),'description':_0x37a2eb(0x146),'univerAiLabel':_0x37a2eb(0x163),'getStarted':_0x37a2eb(0x15c)},'validation':{'apiKeyRequired':_0x37a2eb(0x15d),'apiKeyTooShort':_0x37a2eb(0x170),'invalidConfig':_0x37a2eb(0x16b),'invalidApiKey':_0x37a2eb(0x14e)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x37a2eb(0x16f),'connected':_0x37a2eb(0x166),'failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x37a2eb(0x145),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x37a2eb(0x164)}}},n=e;function _0x5dfe(){const _0x3f692d=['Session\x20ID','Click\x20to\x20configure\x20MCP','What\x20is\x20API\x20Key?','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Univer\x20AI\x20Console','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','exports','Connected','Saving...','MCP:\x20Unauthorized','392205mEqnyA','Configuration\x20Parameters:','Invalid\x20configuration','Copy\x20the\x20JSON\x20configuration\x20below','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','1812728uQLZva','Connecting...','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Enable\x20authentication\x20for\x20secure\x20connections','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','875910WXkAsl','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Click\x20to\x20connect\x20MCP','219824febNLT','MCP\x20Connection\x20Failed','MCP:\x20Session\x20ID\x20Occupied','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Configuration\x20Steps:','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Disconnected','314547HIPGrd','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Configuration','Max\x20Retries','Failed\x20to\x20save\x20configuration','650202mUTfHF','269242rZMzaQ','4HFhReZ','MCP\x20Client\x20Configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Save\x20Configuration','API\x20Key','Get\x20your\x20API\x20key\x20in\x20seconds','API\x20key\x20is\x20required','MCP\x20Unknown\x20Status'];_0x5dfe=function(){return _0x3f692d;};return _0x5dfe();}module[_0x37a2eb(0x165)]=n;
1
+ 'use strict';const _0x296f9e=_0x29fb;(function(_0x4b5c86,_0x12b97f){const _0x5ed4be=_0x29fb,_0x5880b0=_0x4b5c86();while(!![]){try{const _0x112bc1=parseInt(_0x5ed4be(0x190))/0x1+parseInt(_0x5ed4be(0x1c0))/0x2+parseInt(_0x5ed4be(0x196))/0x3*(-parseInt(_0x5ed4be(0x1ab))/0x4)+-parseInt(_0x5ed4be(0x1c2))/0x5*(-parseInt(_0x5ed4be(0x19e))/0x6)+-parseInt(_0x5ed4be(0x1a9))/0x7*(parseInt(_0x5ed4be(0x1b3))/0x8)+-parseInt(_0x5ed4be(0x18e))/0x9*(parseInt(_0x5ed4be(0x1a1))/0xa)+parseInt(_0x5ed4be(0x195))/0xb*(parseInt(_0x5ed4be(0x1b5))/0xc);if(_0x112bc1===_0x12b97f)break;else _0x5880b0['push'](_0x5880b0['shift']());}catch(_0x24e20c){_0x5880b0['push'](_0x5880b0['shift']());}}}(_0x2a3a,0x8e0bc));function _0x2a3a(){const _0x445c43=['Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Get\x20your\x20API\x20key\x20in\x20seconds','117054OKqEIn','MCP\x20Configuration','745788kDQzxC','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Max\x20Retries','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.','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Connecting...','MCP:\x20Network\x20Error','24VEoaEo','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','837324lAvMVw','Enter\x20your\x20API\x20key','Session\x20ID','Enable\x20Authentication','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Connection\x20Failed','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Invalid\x20configuration','Configuration\x20Steps:','Connecting...','Enable\x20authentication\x20for\x20secure\x20connections','712412qwiqLA','MCP\x20Retrying...','536945CFNyel','9KrojEv','Copy\x20the\x20JSON\x20configuration\x20below','948190hSbspS','MCP\x20Disconnected','API\x20Key','exports','Click\x20to\x20connect\x20MCP','11GcDQWL','3XYaXOD','MCP\x20Connected','Retrying...','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','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.','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Client\x20Configuration','6DAMNfa','Disconnected','MCP\x20Unknown\x20Status','6631290oLzqaS','What\x20is\x20API\x20Key?','Univer\x20AI\x20Console','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Click\x20to\x20configure\x20MCP'];_0x2a3a=function(){return _0x445c43;};return _0x2a3a();}const e={'mcpStatus':{'disconnected':_0x296f9e(0x191),'connecting':_0x296f9e(0x1b1),'connected':_0x296f9e(0x197),'failed':'MCP\x20Connection\x20Failed','retrying':_0x296f9e(0x1c1),'unknown':_0x296f9e(0x1a0),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x296f9e(0x1ae),'networkError':_0x296f9e(0x1b2),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x296f9e(0x194),'clickToConfigure':_0x296f9e(0x1a5)},'mcpConfig':{'title':_0x296f9e(0x1aa),'description':_0x296f9e(0x1ac),'apiKey':_0x296f9e(0x192),'apiKeyPlaceholder':_0x296f9e(0x1b6),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x296f9e(0x1b8),'enableAuthHint':_0x296f9e(0x1bf),'connectionInfo':_0x296f9e(0x19d),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x296f9e(0x1a7),'configStepTitle':_0x296f9e(0x1bd),'configStep1':_0x296f9e(0x18f),'configStep2':_0x296f9e(0x1b4),'configStep3':_0x296f9e(0x1bb),'sessionId':_0x296f9e(0x1b7),'sessionIdDescription':_0x296f9e(0x19b),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':_0x296f9e(0x1ad),'save':'Save\x20Configuration','saving':'Saving...','note1':_0x296f9e(0x199),'note2':_0x296f9e(0x1a4),'configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x296f9e(0x1a2),'description':_0x296f9e(0x1af),'univerAiLabel':_0x296f9e(0x1a3),'getStarted':_0x296f9e(0x1a8)},'validation':{'apiKeyRequired':_0x296f9e(0x19a),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x296f9e(0x1bc),'invalidApiKey':_0x296f9e(0x19c)},'connectionStatus':{'disconnected':_0x296f9e(0x19f),'connecting':_0x296f9e(0x1be),'connected':'Connected','failed':_0x296f9e(0x1ba),'retrying':_0x296f9e(0x198)},'connectionError':{'unauthorized':_0x296f9e(0x1b9),'sessionOccupied':_0x296f9e(0x1a6),'networkError':_0x296f9e(0x1b0),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;function _0x29fb(_0xb7aaf5,_0x257eba){_0xb7aaf5=_0xb7aaf5-0x18e;const _0x2a3a29=_0x2a3a();let _0x29fb79=_0x2a3a29[_0xb7aaf5];return _0x29fb79;}module[_0x296f9e(0x193)]=n;
@@ -1 +1 @@
1
- 'use strict';function _0x25c2(){const _0x6246ad=['API\x20key\x20is\x20required','Configuration\x20Parameters:','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Configuration\x20saved\x20successfully','5LNZShn','MCP\x20Configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Save\x20Configuration','Invalid\x20configuration','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Connected','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Max\x20Retries','7310GsoLYG','Session\x20ID','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Enter\x20your\x20API\x20key','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','306dpgiVG','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Client\x20Configuration','Retrying...','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Click\x20to\x20configure\x20MCP','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Enable\x20authentication\x20for\x20secure\x20connections','MCP:\x20Unauthorized','Connection\x20Failed','15627645rGghvA','56LsMVIS','exports','408289nzuyKO','Get\x20your\x20API\x20key\x20in\x20seconds','MCP:\x20Session\x20ID\x20Occupied','API\x20key\x20with\x20Bearer\x20prefix.','Failed\x20to\x20save\x20configuration','3257376dqdlhu','Saving...','API\x20Key','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','248390rPPVOR','200735QYPsex','MCP:\x20Max\x20Retries\x20Exceeded','Connected','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Configuration\x20Steps:','1410544wlCvkC','MCP:\x20Network\x20Error','What\x20is\x20API\x20Key?','MCP\x20Connecting...','Connecting...','717GEbDMy','MCP\x20Retrying...','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser'];_0x25c2=function(){return _0x6246ad;};return _0x25c2();}const _0x4db9cd=_0x2d23;(function(_0x541399,_0x506644){const _0x34b9e9=_0x2d23,_0x282c2f=_0x541399();while(!![]){try{const _0x1157c8=parseInt(_0x34b9e9(0xd0))/0x1+-parseInt(_0x34b9e9(0xea))/0x2*(parseInt(_0x34b9e9(0xda))/0x3)+parseInt(_0x34b9e9(0xd5))/0x4*(-parseInt(_0x34b9e9(0xe1))/0x5)+parseInt(_0x34b9e9(0xcb))/0x6+parseInt(_0x34b9e9(0xc6))/0x7*(parseInt(_0x34b9e9(0xc4))/0x8)+parseInt(_0x34b9e9(0xb9))/0x9*(-parseInt(_0x34b9e9(0xcf))/0xa)+parseInt(_0x34b9e9(0xc3))/0xb;if(_0x1157c8===_0x506644)break;else _0x282c2f['push'](_0x282c2f['shift']());}catch(_0x243c59){_0x282c2f['push'](_0x282c2f['shift']());}}}(_0x25c2,0x7a894));function _0x2d23(_0x443efc,_0x43ffae){_0x443efc=_0x443efc-0xb6;const _0x25c2d1=_0x25c2();let _0x2d230=_0x25c2d1[_0x443efc];return _0x2d230;}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x4db9cd(0xd8),'connected':_0x4db9cd(0xe7),'failed':'MCP\x20Connection\x20Failed','retrying':_0x4db9cd(0xdb),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x4db9cd(0xc1),'sessionOccupied':_0x4db9cd(0xc8),'networkError':_0x4db9cd(0xd6),'maxRetriesExceeded':_0x4db9cd(0xd1),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x4db9cd(0xbe)},'mcpConfig':{'title':_0x4db9cd(0xe2),'description':_0x4db9cd(0xe3),'apiKey':_0x4db9cd(0xcd),'apiKeyPlaceholder':_0x4db9cd(0xb7),'apiKeyHint':_0x4db9cd(0xdc),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x4db9cd(0xc0),'connectionInfo':_0x4db9cd(0xbb),'mcpClientConfig':_0x4db9cd(0xbb),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x4db9cd(0xd4),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x4db9cd(0xdf),'configStep3':_0x4db9cd(0xe6),'sessionId':_0x4db9cd(0xeb),'sessionIdDescription':_0x4db9cd(0xce),'authorizationDescription':_0x4db9cd(0xc9),'configParameters':_0x4db9cd(0xde),'maxRetries':_0x4db9cd(0xe9),'save':_0x4db9cd(0xe4),'saving':_0x4db9cd(0xcc),'note1':_0x4db9cd(0xbd),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x4db9cd(0xe0),'configError':_0x4db9cd(0xca),'apiApplyInfo':{'title':_0x4db9cd(0xd7),'description':_0x4db9cd(0xb8),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x4db9cd(0xc7)},'validation':{'apiKeyRequired':_0x4db9cd(0xdd),'apiKeyTooShort':_0x4db9cd(0xbf),'invalidConfig':_0x4db9cd(0xe5),'invalidApiKey':_0x4db9cd(0xb6)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x4db9cd(0xd9),'connected':_0x4db9cd(0xd2),'failed':_0x4db9cd(0xc2),'retrying':_0x4db9cd(0xbc)},'connectionError':{'unauthorized':_0x4db9cd(0xe8),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x4db9cd(0xd3),'maxRetriesExceeded':_0x4db9cd(0xba)}}};module[_0x4db9cd(0xc5)]=e;
1
+ 'use strict';const _0xe7ca3a=_0x13bd;function _0x13bd(_0x394c46,_0x2dd7a2){_0x394c46=_0x394c46-0x10e;const _0x36b2d6=_0x36b2();let _0x13bd75=_0x36b2d6[_0x394c46];return _0x13bd75;}(function(_0x416e03,_0x56e87b){const _0x55824b=_0x13bd,_0x260195=_0x416e03();while(!![]){try{const _0xbacb0b=parseInt(_0x55824b(0x12c))/0x1*(-parseInt(_0x55824b(0x123))/0x2)+-parseInt(_0x55824b(0x11c))/0x3*(parseInt(_0x55824b(0x122))/0x4)+-parseInt(_0x55824b(0x124))/0x5*(-parseInt(_0x55824b(0x11d))/0x6)+parseInt(_0x55824b(0x13e))/0x7*(-parseInt(_0x55824b(0x11f))/0x8)+parseInt(_0x55824b(0x137))/0x9+-parseInt(_0x55824b(0x136))/0xa*(parseInt(_0x55824b(0x120))/0xb)+parseInt(_0x55824b(0x10f))/0xc;if(_0xbacb0b===_0x56e87b)break;else _0x260195['push'](_0x260195['shift']());}catch(_0x183ad7){_0x260195['push'](_0x260195['shift']());}}}(_0x36b2,0xc9ba5));function _0x36b2(){const _0x2351bf=['Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Max\x20Retries','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Invalid\x20configuration','API\x20Key','Configuration\x20Parameters:','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Saving...','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','1840ESUMaq','14244327EtLChH','Connecting...','Disconnected','Enter\x20your\x20API\x20key','Enable\x20Authentication','Univer\x20AI\x20Console','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','7kQdWwX','Configuration\x20saved\x20successfully','What\x20is\x20API\x20Key?','Failed\x20to\x20save\x20configuration','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Copy\x20the\x20JSON\x20configuration\x20below','23648028KabVFw','Click\x20to\x20configure\x20MCP','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Get\x20your\x20API\x20key\x20in\x20seconds','MCP:\x20Network\x20Error','Session\x20ID','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Connected','MCP:\x20Max\x20Retries\x20Exceeded','Configuration\x20Steps:','API\x20key\x20with\x20Bearer\x20prefix.','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Unknown\x20Status','3RbEIhr','854844IZWlRw','Connected','7038216tovcUq','53284jEoSRs','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','6142436VKwQFp','2nPTINH','30wyiBeH','API\x20key\x20is\x20required','MCP\x20Connection\x20Failed','MCP\x20Client\x20Configuration','MCP:\x20Unauthorized','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','exports','MCP\x20Configuration','275257ZFmccF'];_0x36b2=function(){return _0x2351bf;};return _0x36b2();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0xe7ca3a(0x116),'failed':_0xe7ca3a(0x126),'retrying':'MCP\x20Retrying...','unknown':_0xe7ca3a(0x11b),'unauthorized':_0xe7ca3a(0x128),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0xe7ca3a(0x113),'maxRetriesExceeded':_0xe7ca3a(0x117),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0xe7ca3a(0x110)},'mcpConfig':{'title':_0xe7ca3a(0x12b),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0xe7ca3a(0x131),'apiKeyPlaceholder':_0xe7ca3a(0x13a),'apiKeyHint':_0xe7ca3a(0x12f),'enableAuth':_0xe7ca3a(0x13b),'enableAuthHint':_0xe7ca3a(0x115),'connectionInfo':_0xe7ca3a(0x127),'mcpClientConfig':_0xe7ca3a(0x127),'configInstructions':_0xe7ca3a(0x129),'configStepTitle':_0xe7ca3a(0x118),'configStep1':_0xe7ca3a(0x10e),'configStep2':_0xe7ca3a(0x142),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0xe7ca3a(0x114),'sessionIdDescription':_0xe7ca3a(0x11a),'authorizationDescription':_0xe7ca3a(0x119),'configParameters':_0xe7ca3a(0x132),'maxRetries':_0xe7ca3a(0x12e),'save':'Save\x20Configuration','saving':_0xe7ca3a(0x134),'note1':_0xe7ca3a(0x12d),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0xe7ca3a(0x13f),'configError':_0xe7ca3a(0x141),'apiApplyInfo':{'title':_0xe7ca3a(0x140),'description':_0xe7ca3a(0x13d),'univerAiLabel':_0xe7ca3a(0x13c),'getStarted':_0xe7ca3a(0x112)},'validation':{'apiKeyRequired':_0xe7ca3a(0x125),'apiKeyTooShort':_0xe7ca3a(0x111),'invalidConfig':_0xe7ca3a(0x130),'invalidApiKey':_0xe7ca3a(0x135)},'connectionStatus':{'disconnected':_0xe7ca3a(0x139),'connecting':_0xe7ca3a(0x138),'connected':_0xe7ca3a(0x11e),'failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'unauthorized':_0xe7ca3a(0x133),'sessionOccupied':_0xe7ca3a(0x121),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}};module[_0xe7ca3a(0x12a)]=e;
@@ -1 +1 @@
1
- 'use strict';const _0x3c27aa=_0x4289;(function(_0x12e31a,_0x2d720e){const _0x5cd390=_0x4289,_0x5566f9=_0x12e31a();while(!![]){try{const _0x28eab3=parseInt(_0x5cd390(0x205))/0x1*(-parseInt(_0x5cd390(0x1f5))/0x2)+-parseInt(_0x5cd390(0x1f4))/0x3*(parseInt(_0x5cd390(0x1f3))/0x4)+-parseInt(_0x5cd390(0x1f1))/0x5*(-parseInt(_0x5cd390(0x1ee))/0x6)+parseInt(_0x5cd390(0x1d9))/0x7+-parseInt(_0x5cd390(0x20b))/0x8+parseInt(_0x5cd390(0x1dc))/0x9*(parseInt(_0x5cd390(0x20d))/0xa)+-parseInt(_0x5cd390(0x1e5))/0xb;if(_0x28eab3===_0x2d720e)break;else _0x5566f9['push'](_0x5566f9['shift']());}catch(_0x495798){_0x5566f9['push'](_0x5566f9['shift']());}}}(_0x3152,0x53ca7));function _0x4289(_0x303293,_0x13d617){_0x303293=_0x303293-0x1d9;const _0x3152fe=_0x3152();let _0x42893d=_0x3152fe[_0x303293];return _0x42893d;}const e={'mcpStatus':{'disconnected':_0x3c27aa(0x1f2),'connecting':'MCP\x20Connecting...','connected':_0x3c27aa(0x1e2),'failed':_0x3c27aa(0x210),'retrying':'MCP\x20Retrying...','unknown':_0x3c27aa(0x204),'unauthorized':_0x3c27aa(0x1ed),'sessionOccupied':_0x3c27aa(0x1fb),'networkError':_0x3c27aa(0x1da),'maxRetriesExceeded':_0x3c27aa(0x1dd),'clickToConnect':_0x3c27aa(0x1ea),'clickToConfigure':_0x3c27aa(0x1e4)},'mcpConfig':{'title':_0x3c27aa(0x20a),'description':_0x3c27aa(0x1f9),'apiKey':_0x3c27aa(0x20f),'apiKeyPlaceholder':_0x3c27aa(0x20e),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x3c27aa(0x1e1),'enableAuthHint':_0x3c27aa(0x1e0),'connectionInfo':_0x3c27aa(0x1e3),'mcpClientConfig':_0x3c27aa(0x1e3),'configInstructions':_0x3c27aa(0x1e9),'configStepTitle':_0x3c27aa(0x1e6),'configStep1':_0x3c27aa(0x1ec),'configStep2':_0x3c27aa(0x1fc),'configStep3':_0x3c27aa(0x1f6),'sessionId':_0x3c27aa(0x207),'sessionIdDescription':_0x3c27aa(0x202),'authorizationDescription':_0x3c27aa(0x206),'configParameters':_0x3c27aa(0x209),'maxRetries':_0x3c27aa(0x1ef),'save':_0x3c27aa(0x208),'saving':_0x3c27aa(0x20c),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x3c27aa(0x201),'configSaved':_0x3c27aa(0x203),'configError':_0x3c27aa(0x1fa),'apiApplyInfo':{'title':_0x3c27aa(0x1eb),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x3c27aa(0x1df)},'validation':{'apiKeyRequired':_0x3c27aa(0x1e7),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x3c27aa(0x1ff),'invalidApiKey':_0x3c27aa(0x1e8)},'connectionStatus':{'disconnected':_0x3c27aa(0x1fe),'connecting':_0x3c27aa(0x1fd),'connected':_0x3c27aa(0x1f8),'failed':_0x3c27aa(0x1f0),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x3c27aa(0x1db),'sessionOccupied':_0x3c27aa(0x1de),'networkError':_0x3c27aa(0x211),'maxRetriesExceeded':_0x3c27aa(0x200)}}},n=e;function _0x3152(){const _0x139b27=['10THgcMx','Enter\x20your\x20API\x20key','API\x20Key','MCP\x20Connection\x20Failed','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','2543583DmWQbu','MCP:\x20Network\x20Error','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','5368257LJkQjJ','MCP:\x20Max\x20Retries\x20Exceeded','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Get\x20your\x20API\x20key\x20in\x20seconds','Enable\x20authentication\x20for\x20secure\x20connections','Enable\x20Authentication','MCP\x20Connected','MCP\x20Client\x20Configuration','Click\x20to\x20configure\x20MCP','4358365KwuboZ','Configuration\x20Steps:','API\x20key\x20is\x20required','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Click\x20to\x20connect\x20MCP','What\x20is\x20API\x20Key?','Copy\x20the\x20JSON\x20configuration\x20below','MCP:\x20Unauthorized','1050kQaofM','Max\x20Retries','Connection\x20Failed','9490tViaRW','MCP\x20Disconnected','1196gsFqnB','207BYuhRP','4192kxEfSe','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','exports','Connected','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Failed\x20to\x20save\x20configuration','MCP:\x20Session\x20ID\x20Occupied','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Connecting...','Disconnected','Invalid\x20configuration','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configuration\x20saved\x20successfully','MCP\x20Unknown\x20Status','16pHXIOg','API\x20key\x20with\x20Bearer\x20prefix.','Session\x20ID','Save\x20Configuration','Configuration\x20Parameters:','MCP\x20Configuration','3987224IhVhtJ','Saving...'];_0x3152=function(){return _0x139b27;};return _0x3152();}module[_0x3c27aa(0x1f7)]=n;
1
+ 'use strict';function _0x5b21(_0x37af56,_0x5075a7){_0x37af56=_0x37af56-0xf8;const _0x3f51f2=_0x3f51();let _0x5b2186=_0x3f51f2[_0x37af56];return _0x5b2186;}const _0x27b63a=_0x5b21;(function(_0x540ec4,_0x1765f8){const _0x450889=_0x5b21,_0x57a27f=_0x540ec4();while(!![]){try{const _0x316e41=-parseInt(_0x450889(0x128))/0x1+-parseInt(_0x450889(0xf9))/0x2*(parseInt(_0x450889(0x10a))/0x3)+-parseInt(_0x450889(0x110))/0x4+-parseInt(_0x450889(0x116))/0x5*(parseInt(_0x450889(0x124))/0x6)+-parseInt(_0x450889(0xff))/0x7*(parseInt(_0x450889(0x11f))/0x8)+-parseInt(_0x450889(0x10b))/0x9+parseInt(_0x450889(0x112))/0xa*(parseInt(_0x450889(0xf8))/0xb);if(_0x316e41===_0x1765f8)break;else _0x57a27f['push'](_0x57a27f['shift']());}catch(_0x5b390b){_0x57a27f['push'](_0x57a27f['shift']());}}}(_0x3f51,0x95453));function _0x3f51(){const _0x463ec7=['1787790dIhsOO','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Retrying...','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','952687bVJGlH','MCP:\x20Unauthorized','26013317csLRIZ','20XrrrJE','API\x20key\x20is\x20required','Click\x20to\x20configure\x20MCP','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Connection\x20Failed','MCP\x20Client\x20Configuration','7077NuAyGL','Connected','API\x20Key','Enable\x20Authentication','API\x20key\x20with\x20Bearer\x20prefix.','exports','Max\x20Retries','MCP\x20Connected','Configuration\x20Parameters:','Retrying...','MCP\x20Disconnected','364197LHCTbe','4822416AaGhVO','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Configuration\x20saved\x20successfully','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','What\x20is\x20API\x20Key?','2097440BFmuzC','MCP\x20Configuration','20RsqldS','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Unknown\x20Status','Invalid\x20configuration','5cNnmwZ','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Failed\x20to\x20save\x20configuration','Saving...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP:\x20Network\x20Error','Session\x20ID','Disconnected','4696zZtIZt','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Click\x20to\x20connect\x20MCP','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Copy\x20the\x20JSON\x20configuration\x20below'];_0x3f51=function(){return _0x463ec7;};return _0x3f51();}const e={'mcpStatus':{'disconnected':_0x27b63a(0x109),'connecting':'MCP\x20Connecting...','connected':_0x27b63a(0x106),'failed':_0x27b63a(0xfd),'retrying':_0x27b63a(0x126),'unknown':_0x27b63a(0x114),'unauthorized':_0x27b63a(0x129),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x27b63a(0x11c),'maxRetriesExceeded':_0x27b63a(0x113),'clickToConnect':_0x27b63a(0x121),'clickToConfigure':_0x27b63a(0xfb)},'mcpConfig':{'title':_0x27b63a(0x111),'description':_0x27b63a(0x10e),'apiKey':_0x27b63a(0x101),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x27b63a(0x102),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x27b63a(0xfe),'mcpClientConfig':_0x27b63a(0xfe),'configInstructions':_0x27b63a(0x118),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x27b63a(0x123),'configStep2':_0x27b63a(0x10c),'configStep3':_0x27b63a(0x117),'sessionId':_0x27b63a(0x11d),'sessionIdDescription':_0x27b63a(0x125),'authorizationDescription':_0x27b63a(0x103),'configParameters':_0x27b63a(0x107),'maxRetries':_0x27b63a(0x105),'save':'Save\x20Configuration','saving':_0x27b63a(0x11a),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x27b63a(0x10d),'configError':_0x27b63a(0x119),'apiApplyInfo':{'title':_0x27b63a(0x10f),'description':_0x27b63a(0x127),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x27b63a(0xfa),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x27b63a(0x115),'invalidApiKey':_0x27b63a(0x122)},'connectionStatus':{'disconnected':_0x27b63a(0x11e),'connecting':'Connecting...','connected':_0x27b63a(0x100),'failed':'Connection\x20Failed','retrying':_0x27b63a(0x108)},'connectionError':{'unauthorized':_0x27b63a(0x11b),'sessionOccupied':_0x27b63a(0xfc),'networkError':_0x27b63a(0x120),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module[_0x27b63a(0x104)]=n;
@@ -1 +1 @@
1
- 'use strict';const _0x38241f=_0x57f9;function _0x5d2d(){const _0x57a559=['MCP\x20Client\x20Configuration','Session\x20ID','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','416uTimaR','Save\x20Configuration','API\x20key\x20with\x20Bearer\x20prefix.','Enable\x20Authentication','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP:\x20Max\x20Retries\x20Exceeded','MCP:\x20Session\x20ID\x20Occupied','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Failed\x20to\x20save\x20configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','7400zbVpKk','Connecting...','API\x20key\x20is\x20required','1920446ErSqLn','Click\x20to\x20connect\x20MCP','What\x20is\x20API\x20Key?','Connected','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configuration\x20Steps:','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','4519355DiOSTM','API\x20Key','Disconnected','2nEwnMu','12fkvnzY','2093811ovgWZt','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Connection\x20Failed','MCP\x20Retrying...','Configuration\x20Parameters:','MCP\x20Disconnected','Copy\x20the\x20JSON\x20configuration\x20below','Get\x20your\x20API\x20key\x20in\x20seconds','144977NdHnDK','1520003rnkihK','Univer\x20AI\x20Console','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Saving...','4bvSfxX','MCP\x20Configuration','MCP\x20Unknown\x20Status','MCP\x20Connection\x20Failed','Click\x20to\x20configure\x20MCP','MCP\x20Connected','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','exports','Enter\x20your\x20API\x20key','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','7839PYFvcy','Enable\x20authentication\x20for\x20secure\x20connections','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','3862794pqVBwv'];_0x5d2d=function(){return _0x57a559;};return _0x5d2d();}(function(_0x2c0f17,_0x5bddb0){const _0x2011ea=_0x57f9,_0x5f1438=_0x2c0f17();while(!![]){try{const _0x1d995c=-parseInt(_0x2011ea(0x11d))/0x1*(-parseInt(_0x2011ea(0x14b))/0x2)+-parseInt(_0x2011ea(0x14d))/0x3+-parseInt(_0x2011ea(0x122))/0x4*(parseInt(_0x2011ea(0x148))/0x5)+parseInt(_0x2011ea(0x130))/0x6+parseInt(_0x2011ea(0x155))/0x7*(parseInt(_0x2011ea(0x134))/0x8)+parseInt(_0x2011ea(0x12d))/0x9*(-parseInt(_0x2011ea(0x13e))/0xa)+-parseInt(_0x2011ea(0x141))/0xb*(parseInt(_0x2011ea(0x14c))/0xc);if(_0x1d995c===_0x5bddb0)break;else _0x5f1438['push'](_0x5f1438['shift']());}catch(_0x5455f3){_0x5f1438['push'](_0x5f1438['shift']());}}}(_0x5d2d,0xc8280));function _0x57f9(_0x5c3fc8,_0x5401a1){_0x5c3fc8=_0x5c3fc8-0x11d;const _0x5d2d11=_0x5d2d();let _0x57f96e=_0x5d2d11[_0x5c3fc8];return _0x57f96e;}const e={'mcpStatus':{'disconnected':_0x38241f(0x152),'connecting':'MCP\x20Connecting...','connected':_0x38241f(0x127),'failed':_0x38241f(0x125),'retrying':_0x38241f(0x150),'unknown':_0x38241f(0x124),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x38241f(0x13a),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x38241f(0x139),'clickToConnect':_0x38241f(0x142),'clickToConfigure':_0x38241f(0x126)},'mcpConfig':{'title':_0x38241f(0x123),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x38241f(0x149),'apiKeyPlaceholder':_0x38241f(0x12a),'apiKeyHint':_0x38241f(0x120),'enableAuth':_0x38241f(0x137),'enableAuthHint':_0x38241f(0x12e),'connectionInfo':_0x38241f(0x131),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x38241f(0x147),'configStepTitle':_0x38241f(0x146),'configStep1':_0x38241f(0x153),'configStep2':_0x38241f(0x12b),'configStep3':_0x38241f(0x12f),'sessionId':_0x38241f(0x132),'sessionIdDescription':_0x38241f(0x145),'authorizationDescription':_0x38241f(0x136),'configParameters':_0x38241f(0x151),'maxRetries':'Max\x20Retries','save':_0x38241f(0x135),'saving':_0x38241f(0x121),'note1':_0x38241f(0x13d),'note2':_0x38241f(0x12c),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x38241f(0x13c),'apiApplyInfo':{'title':_0x38241f(0x143),'description':_0x38241f(0x11f),'univerAiLabel':_0x38241f(0x11e),'getStarted':_0x38241f(0x154)},'validation':{'apiKeyRequired':_0x38241f(0x140),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x38241f(0x138)},'connectionStatus':{'disconnected':_0x38241f(0x14a),'connecting':_0x38241f(0x13f),'connected':_0x38241f(0x144),'failed':_0x38241f(0x14f),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x38241f(0x133),'sessionOccupied':_0x38241f(0x128),'networkError':_0x38241f(0x14e),'maxRetriesExceeded':_0x38241f(0x13b)}}},n=e;module[_0x38241f(0x129)]=n;
1
+ 'use strict';const _0x1135de=_0x4ddf;(function(_0x93bb6e,_0x1c51b2){const _0x5c16c3=_0x4ddf,_0x230851=_0x93bb6e();while(!![]){try{const _0x1773af=-parseInt(_0x5c16c3(0x1ee))/0x1+parseInt(_0x5c16c3(0x215))/0x2+-parseInt(_0x5c16c3(0x1f5))/0x3*(-parseInt(_0x5c16c3(0x1fe))/0x4)+parseInt(_0x5c16c3(0x210))/0x5+-parseInt(_0x5c16c3(0x204))/0x6*(parseInt(_0x5c16c3(0x1e5))/0x7)+parseInt(_0x5c16c3(0x1e1))/0x8+parseInt(_0x5c16c3(0x20f))/0x9*(-parseInt(_0x5c16c3(0x20b))/0xa);if(_0x1773af===_0x1c51b2)break;else _0x230851['push'](_0x230851['shift']());}catch(_0x56b4f0){_0x230851['push'](_0x230851['shift']());}}}(_0x2c4c,0x4a8a6));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x1135de(0x1ec),'connected':'MCP\x20Connected','failed':_0x1135de(0x1f6),'retrying':_0x1135de(0x1f2),'unknown':_0x1135de(0x1fc),'unauthorized':_0x1135de(0x20a),'sessionOccupied':_0x1135de(0x200),'networkError':_0x1135de(0x1ed),'maxRetriesExceeded':_0x1135de(0x211),'clickToConnect':_0x1135de(0x1f9),'clickToConfigure':_0x1135de(0x203)},'mcpConfig':{'title':_0x1135de(0x1e8),'description':_0x1135de(0x212),'apiKey':_0x1135de(0x1ef),'apiKeyPlaceholder':_0x1135de(0x20e),'apiKeyHint':_0x1135de(0x201),'enableAuth':_0x1135de(0x1e9),'enableAuthHint':_0x1135de(0x205),'connectionInfo':_0x1135de(0x1f8),'mcpClientConfig':_0x1135de(0x1f8),'configInstructions':_0x1135de(0x208),'configStepTitle':_0x1135de(0x1f4),'configStep1':_0x1135de(0x1fb),'configStep2':_0x1135de(0x1e4),'configStep3':_0x1135de(0x1f0),'sessionId':_0x1135de(0x213),'sessionIdDescription':_0x1135de(0x1fd),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x1135de(0x1e6),'maxRetries':_0x1135de(0x1fa),'save':'Save\x20Configuration','saving':_0x1135de(0x207),'note1':_0x1135de(0x1f3),'note2':_0x1135de(0x1eb),'configSaved':_0x1135de(0x202),'configError':_0x1135de(0x1e2),'apiApplyInfo':{'title':_0x1135de(0x1f1),'description':_0x1135de(0x1ff),'univerAiLabel':_0x1135de(0x1e7),'getStarted':_0x1135de(0x209)},'validation':{'apiKeyRequired':_0x1135de(0x216),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x1135de(0x1ea),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x1135de(0x20c),'connecting':'Connecting...','connected':'Connected','failed':_0x1135de(0x1e3),'retrying':_0x1135de(0x1f7)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x1135de(0x206),'maxRetriesExceeded':_0x1135de(0x214)}}},n=e;function _0x4ddf(_0x453b85,_0x41a506){_0x453b85=_0x453b85-0x1e1;const _0x2c4cb4=_0x2c4c();let _0x4ddf45=_0x2c4cb4[_0x453b85];return _0x4ddf45;}function _0x2c4c(){const _0x5bcc6b=['6933970NXfspq','Disconnected','exports','Enter\x20your\x20API\x20key','9VKyIVf','2739115yCrSWq','MCP:\x20Max\x20Retries\x20Exceeded','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Session\x20ID','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','359466ASUuEY','API\x20key\x20is\x20required','1596400uKpjBz','Failed\x20to\x20save\x20configuration','Connection\x20Failed','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','203UJkwGY','Configuration\x20Parameters:','Univer\x20AI\x20Console','MCP\x20Configuration','Enable\x20Authentication','Invalid\x20configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Connecting...','MCP:\x20Network\x20Error','99922PNkebv','API\x20Key','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','What\x20is\x20API\x20Key?','MCP\x20Retrying...','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Configuration\x20Steps:','5673hoUGNw','MCP\x20Connection\x20Failed','Retrying...','MCP\x20Client\x20Configuration','Click\x20to\x20connect\x20MCP','Max\x20Retries','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Unknown\x20Status','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','964nqeXUg','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP:\x20Session\x20ID\x20Occupied','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Configuration\x20saved\x20successfully','Click\x20to\x20configure\x20MCP','58800jPklxp','Enable\x20authentication\x20for\x20secure\x20connections','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Saving...','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Get\x20your\x20API\x20key\x20in\x20seconds','MCP:\x20Unauthorized'];_0x2c4c=function(){return _0x5bcc6b;};return _0x2c4c();}module[_0x1135de(0x20d)]=n;
@@ -1 +1 @@
1
- 'use strict';const _0xec038a=_0x4bfe;(function(_0x3d98d8,_0x3317c3){const _0x30aa6a=_0x4bfe,_0x4db774=_0x3d98d8();while(!![]){try{const _0x2f7f8e=parseInt(_0x30aa6a(0x16b))/0x1*(parseInt(_0x30aa6a(0x171))/0x2)+-parseInt(_0x30aa6a(0x14c))/0x3*(-parseInt(_0x30aa6a(0x149))/0x4)+parseInt(_0x30aa6a(0x14f))/0x5*(parseInt(_0x30aa6a(0x16c))/0x6)+parseInt(_0x30aa6a(0x155))/0x7+-parseInt(_0x30aa6a(0x157))/0x8+parseInt(_0x30aa6a(0x14e))/0x9+-parseInt(_0x30aa6a(0x175))/0xa;if(_0x2f7f8e===_0x3317c3)break;else _0x4db774['push'](_0x4db774['shift']());}catch(_0x4b2533){_0x4db774['push'](_0x4db774['shift']());}}}(_0x2db2,0xefd1b));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0xec038a(0x160),'connected':_0xec038a(0x16f),'failed':_0xec038a(0x164),'retrying':_0xec038a(0x177),'unknown':_0xec038a(0x14d),'unauthorized':_0xec038a(0x165),'sessionOccupied':_0xec038a(0x150),'networkError':_0xec038a(0x169),'maxRetriesExceeded':_0xec038a(0x17b),'clickToConnect':_0xec038a(0x167),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0xec038a(0x170),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0xec038a(0x163),'apiKeyPlaceholder':_0xec038a(0x162),'apiKeyHint':_0xec038a(0x156),'enableAuth':_0xec038a(0x161),'enableAuthHint':_0xec038a(0x158),'connectionInfo':_0xec038a(0x148),'mcpClientConfig':_0xec038a(0x148),'configInstructions':_0xec038a(0x179),'configStepTitle':_0xec038a(0x151),'configStep1':_0xec038a(0x15d),'configStep2':_0xec038a(0x14b),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0xec038a(0x15f),'configParameters':_0xec038a(0x16d),'maxRetries':_0xec038a(0x166),'save':_0xec038a(0x173),'saving':'Saving...','note1':_0xec038a(0x174),'note2':_0xec038a(0x152),'configSaved':_0xec038a(0x172),'configError':_0xec038a(0x178),'apiApplyInfo':{'title':_0xec038a(0x15b),'description':_0xec038a(0x15c),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0xec038a(0x147)},'validation':{'apiKeyRequired':_0xec038a(0x154),'apiKeyTooShort':_0xec038a(0x14a),'invalidConfig':_0xec038a(0x16e),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0xec038a(0x15e),'connecting':_0xec038a(0x176),'connected':_0xec038a(0x168),'failed':_0xec038a(0x15a),'retrying':_0xec038a(0x153)},'connectionError':{'unauthorized':_0xec038a(0x17a),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0xec038a(0x16a),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module[_0xec038a(0x159)]=n;function _0x4bfe(_0x237028,_0x46fef3){_0x237028=_0x237028-0x147;const _0x2db2e4=_0x2db2();let _0x4bfedc=_0x2db2e4[_0x237028];return _0x4bfedc;}function _0x2db2(){const _0x458415=['Click\x20to\x20connect\x20MCP','Connected','MCP:\x20Network\x20Error','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','2gQQmDr','756CmIaAq','Configuration\x20Parameters:','Invalid\x20configuration','MCP\x20Connected','MCP\x20Configuration','148914lZwgsd','Configuration\x20saved\x20successfully','Save\x20Configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','23823560ufLSup','Connecting...','MCP\x20Retrying...','Failed\x20to\x20save\x20configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP:\x20Max\x20Retries\x20Exceeded','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Client\x20Configuration','6341548UkWUgK','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','3MJJipp','MCP\x20Unknown\x20Status','1704213RnkuWG','31985BKQwHF','MCP:\x20Session\x20ID\x20Occupied','Configuration\x20Steps:','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Retrying...','API\x20key\x20is\x20required','9582636ombLjT','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','5871784GhmlDW','Enable\x20authentication\x20for\x20secure\x20connections','exports','Connection\x20Failed','What\x20is\x20API\x20Key?','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Copy\x20the\x20JSON\x20configuration\x20below','Disconnected','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Connecting...','Enable\x20Authentication','Enter\x20your\x20API\x20key','API\x20Key','MCP\x20Connection\x20Failed','MCP:\x20Unauthorized','Max\x20Retries'];_0x2db2=function(){return _0x458415;};return _0x2db2();}
1
+ 'use strict';const _0x2b893e=_0x291c;(function(_0x53e52e,_0x2b8eb5){const _0x2c7a87=_0x291c,_0x3750f8=_0x53e52e();while(!![]){try{const _0x168608=-parseInt(_0x2c7a87(0xff))/0x1+parseInt(_0x2c7a87(0xf8))/0x2+-parseInt(_0x2c7a87(0xef))/0x3*(-parseInt(_0x2c7a87(0xe5))/0x4)+parseInt(_0x2c7a87(0xfa))/0x5+-parseInt(_0x2c7a87(0xfe))/0x6+parseInt(_0x2c7a87(0xf9))/0x7+-parseInt(_0x2c7a87(0xe9))/0x8*(parseInt(_0x2c7a87(0xdb))/0x9);if(_0x168608===_0x2b8eb5)break;else _0x3750f8['push'](_0x3750f8['shift']());}catch(_0x2f996d){_0x3750f8['push'](_0x3750f8['shift']());}}}(_0x17c0,0x8b6ca));function _0x17c0(){const _0x7a2c04=['4248920lAcpeS','Retrying...','Click\x20to\x20connect\x20MCP','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','291738xPMVSG','763691zOlsWG','Configuration\x20Steps:','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Unknown\x20Status','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Connecting...','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Click\x20to\x20configure\x20MCP','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP:\x20Session\x20ID\x20Occupied','Max\x20Retries','MCP:\x20Max\x20Retries\x20Exceeded','API\x20Key','29961HWWfxJ','Configuration\x20saved\x20successfully','MCP\x20Retrying...','Get\x20your\x20API\x20key\x20in\x20seconds','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','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Configuration','Disconnected','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','663064YsBlnL','MCP:\x20Network\x20Error','API\x20key\x20with\x20Bearer\x20prefix.','Saving...','792CBhOPd','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','What\x20is\x20API\x20Key?','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','6xGMQmg','MCP\x20Disconnected','Invalid\x20configuration','MCP\x20Client\x20Configuration','Configuration\x20Parameters:','exports','API\x20key\x20is\x20required','MCP\x20Connection\x20Failed','Copy\x20the\x20JSON\x20configuration\x20below','813556tTnDrp','874111ionmjx'];_0x17c0=function(){return _0x7a2c04;};return _0x17c0();}const e={'mcpStatus':{'disconnected':_0x2b893e(0xf0),'connecting':_0x2b893e(0x104),'connected':'MCP\x20Connected','failed':_0x2b893e(0xf6),'retrying':_0x2b893e(0xdd),'unknown':_0x2b893e(0x102),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x2b893e(0xd7),'networkError':_0x2b893e(0xe6),'maxRetriesExceeded':_0x2b893e(0xd9),'clickToConnect':_0x2b893e(0xfc),'clickToConfigure':_0x2b893e(0xd5)},'mcpConfig':{'title':_0x2b893e(0xe2),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x2b893e(0xda),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x2b893e(0xe1),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x2b893e(0x103),'connectionInfo':_0x2b893e(0xf2),'mcpClientConfig':_0x2b893e(0xf2),'configInstructions':_0x2b893e(0x101),'configStepTitle':_0x2b893e(0x100),'configStep1':_0x2b893e(0xf7),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x2b893e(0xed),'sessionId':_0x2b893e(0xe0),'sessionIdDescription':_0x2b893e(0xee),'authorizationDescription':_0x2b893e(0xe7),'configParameters':_0x2b893e(0xf3),'maxRetries':_0x2b893e(0xd8),'save':'Save\x20Configuration','saving':_0x2b893e(0xe8),'note1':_0x2b893e(0xe4),'note2':_0x2b893e(0xfd),'configSaved':_0x2b893e(0xdc),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x2b893e(0xeb),'description':_0x2b893e(0xdf),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x2b893e(0xde)},'validation':{'apiKeyRequired':_0x2b893e(0xf5),'apiKeyTooShort':_0x2b893e(0xd4),'invalidConfig':_0x2b893e(0xf1),'invalidApiKey':_0x2b893e(0xd3)},'connectionStatus':{'disconnected':_0x2b893e(0xe3),'connecting':'Connecting...','connected':'Connected','failed':'Connection\x20Failed','retrying':_0x2b893e(0xfb)},'connectionError':{'unauthorized':_0x2b893e(0xd6),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x2b893e(0xea),'maxRetriesExceeded':_0x2b893e(0xec)}}},n=e;function _0x291c(_0x398c21,_0x4a2b66){_0x398c21=_0x398c21-0xd3;const _0x17c08c=_0x17c0();let _0x291c4f=_0x17c08c[_0x398c21];return _0x291c4f;}module[_0x2b893e(0xf4)]=n;
@@ -1 +1 @@
1
- 'use strict';function _0x4277(){const _0x236f63=['認証を有効にする','Univer\x20AIコンソール','9599508TzzrYs','777759oCKlqp','APIキーはこのブラウザのローカルに保存されます','Bearerプレフィックス付きのAPIキー。','数秒でAPIキーを取得','設定が正常に保存されました','1008268NTCqxR','APIキー','セッションID','13243881HCwYSg','最大再試行回数','MCP:\x20認証されていません','接続失敗','APIキーは必須です','設定パラメータ:','クリックしてMCPに接続','MCP:\x20最大再試行回数を超過','MCP:\x20ネットワークエラー','3ulrsAA','MCP\x20接続失敗','MCPクライアント設定','56qYxPlY','3937688ltMjBU','MCP\x20接続中...','ネットワーク接続エラー。インターネット接続を確認してください','MCP\x20未接続','無効な設定','4887306dwmtsI','保存中...','exports','MCP\x20不明な状態','以下のJSON設定をコピー','接続済み','設定手順:','無効なAPIキーです。キーが正しいか確認してください','APIキーは10文字以上である必要があります','MCPクライアントを再起動して設定を適用','セキュアな接続のために認証を有効にする','MCPクライアントの設定に次の設定を追加してください:','APIキーはローカルストレージに安全に保存されます','MCP\x20接続済み','設定の保存に失敗しました','セッションIDが現在使用中です。後でもう一度お試しください','一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','未接続','APIキーとは?','5971550YIQFEI'];_0x4277=function(){return _0x236f63;};return _0x4277();}function _0x504e(_0xd4744d,_0x2c886a){_0xd4744d=_0xd4744d-0x10f;const _0x427706=_0x4277();let _0x504ebe=_0x427706[_0xd4744d];return _0x504ebe;}const _0x585a12=_0x504e;(function(_0x3626fe,_0x13c701){const _0x18fca5=_0x504e,_0x126177=_0x3626fe();while(!![]){try{const _0x5d46df=parseInt(_0x18fca5(0x113))/0x1+parseInt(_0x18fca5(0x128))/0x2+-parseInt(_0x18fca5(0x124))/0x3*(parseInt(_0x18fca5(0x118))/0x4)+-parseInt(_0x18fca5(0x10f))/0x5+parseInt(_0x18fca5(0x112))/0x6+parseInt(_0x18fca5(0x11b))/0x7+-parseInt(_0x18fca5(0x127))/0x8*(parseInt(_0x18fca5(0x12d))/0x9);if(_0x5d46df===_0x13c701)break;else _0x126177['push'](_0x126177['shift']());}catch(_0x371088){_0x126177['push'](_0x126177['shift']());}}}(_0x4277,0xf1ea9));const e={'mcpStatus':{'disconnected':_0x585a12(0x12b),'connecting':_0x585a12(0x129),'connected':_0x585a12(0x13a),'failed':_0x585a12(0x125),'retrying':'MCP\x20再試行中...','unknown':_0x585a12(0x130),'unauthorized':_0x585a12(0x11d),'sessionOccupied':'MCP:\x20セッションIDが使用中','networkError':_0x585a12(0x123),'maxRetriesExceeded':_0x585a12(0x122),'clickToConnect':_0x585a12(0x121),'clickToConfigure':'クリックしてMCPを設定'},'mcpConfig':{'title':'MCP設定','description':'MCPを設定してAIでスプレッドシートを操作','apiKey':_0x585a12(0x119),'apiKeyPlaceholder':'APIキーを入力してください','apiKeyHint':_0x585a12(0x114),'enableAuth':_0x585a12(0x110),'enableAuthHint':_0x585a12(0x137),'connectionInfo':_0x585a12(0x126),'mcpClientConfig':_0x585a12(0x126),'configInstructions':_0x585a12(0x138),'configStepTitle':_0x585a12(0x133),'configStep1':_0x585a12(0x131),'configStep2':'MCPクライアントの設定ファイルに設定を追加','configStep3':_0x585a12(0x136),'sessionId':_0x585a12(0x11a),'sessionIdDescription':_0x585a12(0x13d),'authorizationDescription':_0x585a12(0x115),'configParameters':_0x585a12(0x120),'maxRetries':_0x585a12(0x11c),'save':'設定を保存','saving':_0x585a12(0x12e),'note1':'設定の変更は直ちに有効になります','note2':_0x585a12(0x139),'configSaved':_0x585a12(0x117),'configError':_0x585a12(0x13b),'apiApplyInfo':{'title':_0x585a12(0x13f),'description':'APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','univerAiLabel':_0x585a12(0x111),'getStarted':_0x585a12(0x116)},'validation':{'apiKeyRequired':_0x585a12(0x11f),'apiKeyTooShort':_0x585a12(0x135),'invalidConfig':_0x585a12(0x12c),'invalidApiKey':_0x585a12(0x134)},'connectionStatus':{'disconnected':_0x585a12(0x13e),'connecting':'接続中...','connected':_0x585a12(0x132),'failed':_0x585a12(0x11e),'retrying':'再試行中...'},'connectionError':{'unauthorized':'認証に失敗しました。APIキーを確認してください','sessionOccupied':_0x585a12(0x13c),'networkError':_0x585a12(0x12a),'maxRetriesExceeded':'最大再試行回数を超過しました。後でもう一度お試しください'}}};module[_0x585a12(0x12f)]=e;
1
+ 'use strict';const _0x1612fa=_0x464b;(function(_0x251889,_0x56c05d){const _0x52a6e0=_0x464b,_0x546466=_0x251889();while(!![]){try{const _0x134c30=-parseInt(_0x52a6e0(0xb6))/0x1+-parseInt(_0x52a6e0(0xb1))/0x2+-parseInt(_0x52a6e0(0xbd))/0x3*(parseInt(_0x52a6e0(0xbf))/0x4)+-parseInt(_0x52a6e0(0xc2))/0x5+-parseInt(_0x52a6e0(0xd1))/0x6*(-parseInt(_0x52a6e0(0xc5))/0x7)+parseInt(_0x52a6e0(0xc1))/0x8+-parseInt(_0x52a6e0(0xce))/0x9*(-parseInt(_0x52a6e0(0xc7))/0xa);if(_0x134c30===_0x56c05d)break;else _0x546466['push'](_0x546466['shift']());}catch(_0x21a45a){_0x546466['push'](_0x546466['shift']());}}}(_0x36f2,0x69a41));const e={'mcpStatus':{'disconnected':'MCP\x20未接続','connecting':_0x1612fa(0xae),'connected':'MCP\x20接続済み','failed':'MCP\x20接続失敗','retrying':'MCP\x20再試行中...','unknown':_0x1612fa(0xd3),'unauthorized':_0x1612fa(0xac),'sessionOccupied':_0x1612fa(0xc8),'networkError':_0x1612fa(0xab),'maxRetriesExceeded':_0x1612fa(0xad),'clickToConnect':_0x1612fa(0xbb),'clickToConfigure':_0x1612fa(0xc4)},'mcpConfig':{'title':_0x1612fa(0xba),'description':_0x1612fa(0xc3),'apiKey':_0x1612fa(0xd0),'apiKeyPlaceholder':'APIキーを入力してください','apiKeyHint':_0x1612fa(0xd2),'enableAuth':'認証を有効にする','enableAuthHint':_0x1612fa(0xb2),'connectionInfo':'MCPクライアント設定','mcpClientConfig':'MCPクライアント設定','configInstructions':_0x1612fa(0xcb),'configStepTitle':'設定手順:','configStep1':_0x1612fa(0xaa),'configStep2':_0x1612fa(0xa9),'configStep3':'MCPクライアントを再起動して設定を適用','sessionId':_0x1612fa(0xd5),'sessionIdDescription':_0x1612fa(0xcd),'authorizationDescription':'Bearerプレフィックス付きのAPIキー。','configParameters':_0x1612fa(0xc6),'maxRetries':_0x1612fa(0xc9),'save':_0x1612fa(0xcc),'saving':_0x1612fa(0xb5),'note1':_0x1612fa(0xbe),'note2':'APIキーはローカルストレージに安全に保存されます','configSaved':_0x1612fa(0xc0),'configError':'設定の保存に失敗しました','apiApplyInfo':{'title':_0x1612fa(0xa8),'description':_0x1612fa(0xb0),'univerAiLabel':_0x1612fa(0xbc),'getStarted':_0x1612fa(0xca)},'validation':{'apiKeyRequired':_0x1612fa(0xcf),'apiKeyTooShort':_0x1612fa(0xb4),'invalidConfig':_0x1612fa(0xb7),'invalidApiKey':_0x1612fa(0xa7)},'connectionStatus':{'disconnected':'未接続','connecting':'接続中...','connected':_0x1612fa(0xaf),'failed':'接続失敗','retrying':_0x1612fa(0xb3)},'connectionError':{'unauthorized':_0x1612fa(0xb8),'sessionOccupied':'セッションIDが現在使用中です。後でもう一度お試しください','networkError':_0x1612fa(0xd4),'maxRetriesExceeded':_0x1612fa(0xb9)}}};module['exports']=e;function _0x464b(_0x4ee243,_0x5782ee){_0x4ee243=_0x4ee243-0xa7;const _0x36f237=_0x36f2();let _0x464b8b=_0x36f237[_0x4ee243];return _0x464b8b;}function _0x36f2(){const _0x37e2ce=['MCP\x20不明な状態','ネットワーク接続エラー。インターネット接続を確認してください','セッションID','無効なAPIキーです。キーが正しいか確認してください','APIキーとは?','MCPクライアントの設定ファイルに設定を追加','以下のJSON設定をコピー','MCP:\x20ネットワークエラー','MCP:\x20認証されていません','MCP:\x20最大再試行回数を超過','MCP\x20接続中...','接続済み','APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','1032332oRICiy','セキュアな接続のために認証を有効にする','再試行中...','APIキーは10文字以上である必要があります','保存中...','819236euuaLL','無効な設定','認証に失敗しました。APIキーを確認してください','最大再試行回数を超過しました。後でもう一度お試しください','MCP設定','クリックしてMCPに接続','Univer\x20AIコンソール','3WOADKN','設定の変更は直ちに有効になります','1639220PhGUKy','設定が正常に保存されました','3958496dVtDqz','75135xbFuWH','MCPを設定してAIでスプレッドシートを操作','クリックしてMCPを設定','701057SwFBtT','設定パラメータ:','13976740IMMAqk','MCP:\x20セッションIDが使用中','最大再試行回数','数秒でAPIキーを取得','MCPクライアントの設定に次の設定を追加してください:','設定を保存','一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','9MQVjDC','APIキーは必須です','APIキー','18sGMsbg','APIキーはこのブラウザのローカルに保存されます'];_0x36f2=function(){return _0x37e2ce;};return _0x36f2();}