@univerjs-pro/mcp-ui 0.10.14-nightly.202511080715 → 0.11.0-nightly.202511151013

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 (50) 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 -0
  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/vi-VN.js +1 -1
  11. package/lib/cjs/locale/zh-CN.js +1 -1
  12. package/lib/cjs/locale/zh-TW.js +1 -1
  13. package/lib/es/index.js +1 -1
  14. package/lib/es/locale/ca-ES.js +1 -1
  15. package/lib/es/locale/en-US.js +1 -1
  16. package/lib/es/locale/es-ES.js +1 -1
  17. package/lib/es/locale/fa-IR.js +1 -1
  18. package/lib/es/locale/fr-FR.js +1 -1
  19. package/lib/es/locale/ja-JP.js +1 -0
  20. package/lib/es/locale/ko-KR.js +1 -1
  21. package/lib/es/locale/ru-RU.js +1 -1
  22. package/lib/es/locale/vi-VN.js +1 -1
  23. package/lib/es/locale/zh-CN.js +1 -1
  24. package/lib/es/locale/zh-TW.js +1 -1
  25. package/lib/index.js +1 -1
  26. package/lib/locale/ca-ES.js +1 -1
  27. package/lib/locale/en-US.js +1 -1
  28. package/lib/locale/es-ES.js +1 -1
  29. package/lib/locale/fa-IR.js +1 -1
  30. package/lib/locale/fr-FR.js +1 -1
  31. package/lib/locale/ja-JP.js +1 -0
  32. package/lib/locale/ko-KR.js +1 -1
  33. package/lib/locale/ru-RU.js +1 -1
  34. package/lib/locale/vi-VN.js +1 -1
  35. package/lib/locale/zh-CN.js +1 -1
  36. package/lib/locale/zh-TW.js +1 -1
  37. package/lib/types/locale/ja-JP.d.ts +3 -0
  38. package/lib/umd/index.js +1 -1
  39. package/lib/umd/locale/ca-ES.js +1 -1
  40. package/lib/umd/locale/en-US.js +1 -1
  41. package/lib/umd/locale/es-ES.js +1 -1
  42. package/lib/umd/locale/fa-IR.js +1 -1
  43. package/lib/umd/locale/fr-FR.js +1 -1
  44. package/lib/umd/locale/ja-JP.js +1 -0
  45. package/lib/umd/locale/ko-KR.js +1 -1
  46. package/lib/umd/locale/ru-RU.js +1 -1
  47. package/lib/umd/locale/vi-VN.js +1 -1
  48. package/lib/umd/locale/zh-CN.js +1 -1
  49. package/lib/umd/locale/zh-TW.js +1 -1
  50. package/package.json +8 -8
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x3e22ba=_0x4786;(function(_0x5e2f66,_0x12a28b){const _0x310576=_0x4786,_0x1b7d03=_0x5e2f66();while(!![]){try{const _0x17b76a=parseInt(_0x310576(0x182))/0x1+parseInt(_0x310576(0x120))/0x2+-parseInt(_0x310576(0xb7))/0x3*(-parseInt(_0x310576(0xd1))/0x4)+-parseInt(_0x310576(0x1c4))/0x5+parseInt(_0x310576(0x169))/0x6+-parseInt(_0x310576(0xdf))/0x7+-parseInt(_0x310576(0x10e))/0x8;if(_0x17b76a===_0x12a28b)break;else _0x1b7d03['push'](_0x1b7d03['shift']());}catch(_0x431ca8){_0x1b7d03['push'](_0x1b7d03['shift']());}}}(_0x2777,0x4d1d0));var ae=Object[_0x3e22ba(0xf2)],le=(_0x5e4664,_0x54e66d,_0x163c6d)=>_0x54e66d in _0x5e4664?ae(_0x5e4664,_0x54e66d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x163c6d}):_0x5e4664[_0x54e66d]=_0x163c6d,I=(_0x54fc85,_0x238df9,_0x588c20)=>le(_0x54fc85,typeof _0x238df9!=_0x3e22ba(0x1f2)?_0x238df9+'':_0x238df9,_0x588c20);Object[_0x3e22ba(0xf2)](exports,Symbol[_0x3e22ba(0x91)],{'value':_0x3e22ba(0x1d8)});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:_0x59d6de,..._0x233b66}){const _0x4b8f70=_0x3e22ba,{icon:_0x2a8494,id:_0x233959,className:_0x1ca0cb,extend:_0x316219,..._0xa52b19}=_0x233b66,_0xb4a43c=(_0x4b8f70(0x14d)+_0x233959+'\x20'+(_0x1ca0cb||''))[_0x4b8f70(0x1c9)](),_0x3555a3=d['useRef']('_'+de());return G(_0x2a8494,''+_0x233959,{'defIds':_0x2a8494[_0x4b8f70(0x186)],'idSuffix':_0x3555a3[_0x4b8f70(0x121)]},{'ref':_0x59d6de,'className':_0xb4a43c,..._0xa52b19},_0x316219);}function G(_0x30bd96,_0x32c4bb,_0x2664f9,_0x77725f,_0x3cc4e0){const _0x5bbd02=_0x3e22ba;return d[_0x5bbd02(0x1e3)](_0x30bd96[_0x5bbd02(0xe1)],{'key':_0x32c4bb,...ue(_0x30bd96,_0x2664f9,_0x3cc4e0),..._0x77725f},(ve(_0x30bd96,_0x2664f9)['children']||[])['map']((_0x6b0fe8,_0x211964)=>G(_0x6b0fe8,_0x32c4bb+'-'+_0x30bd96[_0x5bbd02(0xe1)]+'-'+_0x211964,_0x2664f9,void 0x0,_0x3cc4e0)));}function ue(_0x4f5660,_0x2f7e74,_0x400713){const _0x3878a5=_0x3e22ba,_0xf9c935={..._0x4f5660[_0x3878a5(0xd5)]};_0x400713!=null&&_0x400713['colorChannel1']&&_0xf9c935[_0x3878a5(0x78)]===_0x3878a5(0xf0)&&(_0xf9c935[_0x3878a5(0x78)]=_0x400713['colorChannel1']),_0x4f5660[_0x3878a5(0xe1)]===_0x3878a5(0x177)&&_0xf9c935['id']&&(_0xf9c935['id']=_0xf9c935['id']+_0x2f7e74[_0x3878a5(0x133)]),Object[_0x3878a5(0x79)](_0xf9c935)[_0x3878a5(0x84)](([_0x37702f,_0x14f4bc])=>{const _0x4f0f8b=_0x3878a5;_0x37702f===_0x4f0f8b(0x177)&&typeof _0x14f4bc==_0x4f0f8b(0x168)&&(_0xf9c935[_0x37702f]=_0x14f4bc[_0x4f0f8b(0x13f)](/url\(#(.*)\)/,_0x4f0f8b(0x165)+_0x2f7e74[_0x4f0f8b(0x133)]+')'));});const {defIds:_0x17ca17}=_0x2f7e74;return!_0x17ca17||_0x17ca17['length']===0x0||(_0x4f5660['tag']===_0x3878a5(0x1d5)&&_0xf9c935[_0x3878a5(0x9e)]&&(_0xf9c935[_0x3878a5(0x9e)]=_0xf9c935[_0x3878a5(0x9e)]+_0x2f7e74[_0x3878a5(0x133)]),Object['entries'](_0xf9c935)[_0x3878a5(0x84)](([_0x3b1844,_0xe4915c])=>{const _0x59aa3e=_0x3878a5;typeof _0xe4915c==_0x59aa3e(0x168)&&(_0xf9c935[_0x3b1844]=_0xe4915c[_0x59aa3e(0x13f)](/url\(#(.*)\)/,_0x59aa3e(0x165)+_0x2f7e74[_0x59aa3e(0x133)]+')'));})),_0xf9c935;}function ve(_0x9769e2,_0x1d093a){const _0x16c44b=_0x3e22ba;var _0x545d0c;const {defIds:_0x466b3c}=_0x1d093a;return!_0x466b3c||_0x466b3c[_0x16c44b(0xfe)]===0x0?_0x9769e2:_0x9769e2[_0x16c44b(0xe1)]==='defs'&&((_0x545d0c=_0x9769e2[_0x16c44b(0x1f6)])!=null&&_0x545d0c[_0x16c44b(0xfe)])?{..._0x9769e2,'children':_0x9769e2['children'][_0x16c44b(0x17a)](_0x5978ab=>typeof _0x5978ab[_0x16c44b(0xd5)]['id']==_0x16c44b(0x168)&&_0x466b3c&&_0x466b3c['includes'](_0x5978ab[_0x16c44b(0xd5)]['id'])?{..._0x5978ab,'attrs':{..._0x5978ab[_0x16c44b(0xd5)],'id':_0x5978ab[_0x16c44b(0xd5)]['id']+_0x1d093a[_0x16c44b(0x133)]}}:_0x5978ab)}:_0x9769e2;}function de(){const _0x4bf764=_0x3e22ba;return Math[_0x4bf764(0xce)]()[_0x4bf764(0x1b3)](0x24)[_0x4bf764(0x13c)](0x2,0x8);}_[_0x3e22ba(0xb5)]=_0x3e22ba(0x1b9);const Ce={'tag':_0x3e22ba(0x1a4),'attrs':{'xmlns':_0x3e22ba(0x17f),'fill':_0x3e22ba(0x1a5),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x3e22ba(0x8d)},'children':[{'tag':'path','attrs':{'fill':_0x3e22ba(0x1fc),'d':_0x3e22ba(0x183),'fillRule':_0x3e22ba(0x15d),'clipRule':_0x3e22ba(0x15d)}}]},H=d[_0x3e22ba(0x125)](function(_0x200eb1,_0x4d531b){const _0xf991a3=_0x3e22ba;return d[_0xf991a3(0x1e3)](_,Object[_0xf991a3(0x1df)]({},_0x200eb1,{'id':_0xf991a3(0xe0),'ref':_0x4d531b,'icon':Ce}));});H[_0x3e22ba(0xb5)]=_0x3e22ba(0x1f3);const ge={'tag':'svg','attrs':{'xmlns':_0x3e22ba(0x17f),'fill':_0x3e22ba(0x1a5),'viewBox':_0x3e22ba(0x1b6),'width':'1em','height':_0x3e22ba(0x8d)},'children':[{'tag':'path','attrs':{'fill':_0x3e22ba(0x1fc),'d':_0x3e22ba(0xa8)}}]},B=d['forwardRef'](function(_0x2fe92e,_0x81040f){const _0x398828=_0x3e22ba;return d['createElement'](_,Object[_0x398828(0x1df)]({},_0x2fe92e,{'id':_0x398828(0x19b),'ref':_0x81040f,'icon':ge}));});B[_0x3e22ba(0xb5)]=_0x3e22ba(0x144);const fe={'tag':_0x3e22ba(0x1a4),'attrs':{'xmlns':_0x3e22ba(0x17f),'fill':'none','viewBox':_0x3e22ba(0x1b6),'width':'1em','height':_0x3e22ba(0x8d)},'children':[{'tag':_0x3e22ba(0x13b),'attrs':{'fill':_0x3e22ba(0x1fc),'d':_0x3e22ba(0xea)}},{'tag':'path','attrs':{'fill':_0x3e22ba(0x1fc),'d':_0x3e22ba(0x8a)}},{'tag':'path','attrs':{'fill':'currentColor','d':_0x3e22ba(0x114),'fillRule':_0x3e22ba(0x15d),'clipRule':_0x3e22ba(0x15d)}}]},F=d['forwardRef'](function(_0x5f252e,_0x1e28c9){const _0x354058=_0x3e22ba;return d[_0x354058(0x1e3)](_,Object['assign']({},_0x5f252e,{'id':_0x354058(0x108),'ref':_0x1e28c9,'icon':fe}));});F[_0x3e22ba(0xb5)]=_0x3e22ba(0x10b);const pe={'tag':'svg','attrs':{'xmlns':_0x3e22ba(0x17f),'fill':_0x3e22ba(0x1a5),'viewBox':_0x3e22ba(0x1b6),'width':_0x3e22ba(0x8d),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x3e22ba(0xeb),'strokeLinecap':'round','strokeLinejoin':_0x3e22ba(0x193),'strokeWidth':1.2}}]},{'tag':_0x3e22ba(0xba),'attrs':{},'children':[{'tag':_0x3e22ba(0x9d),'attrs':{'id':_0x3e22ba(0x7c)},'children':[{'tag':_0x3e22ba(0x13b),'attrs':{'fill':_0x3e22ba(0x145),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-icon_clip0_910_343']},Y=d[_0x3e22ba(0x125)](function(_0x28fbc7,_0x40cef1){const _0x302b6d=_0x3e22ba;return d[_0x302b6d(0x1e3)](_,Object[_0x302b6d(0x1df)]({},_0x28fbc7,{'id':_0x302b6d(0x176),'ref':_0x40cef1,'icon':pe}));});Y[_0x3e22ba(0xb5)]=_0x3e22ba(0x19c);const he={'tag':_0x3e22ba(0x1a4),'attrs':{'xmlns':_0x3e22ba(0x17f),'fill':_0x3e22ba(0x1a5),'viewBox':_0x3e22ba(0x1ac),'width':_0x3e22ba(0x8d),'height':_0x3e22ba(0x8d)},'children':[{'tag':'g','attrs':{'clipPath':_0x3e22ba(0x134)},'children':[{'tag':_0x3e22ba(0x13b),'attrs':{'stroke':_0x3e22ba(0x1fc),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x3e22ba(0x193),'strokeLinejoin':_0x3e22ba(0x193),'strokeWidth':1.2}}]},{'tag':_0x3e22ba(0xba),'attrs':{},'children':[{'tag':_0x3e22ba(0x9d),'attrs':{'id':_0x3e22ba(0x19d)},'children':[{'tag':_0x3e22ba(0x13b),'attrs':{'fill':_0x3e22ba(0x145),'d':_0x3e22ba(0x184),'transform':_0x3e22ba(0x1e1)}}]}]}],'defIds':[_0x3e22ba(0x19d)]},q=d[_0x3e22ba(0x125)](function(_0x39662e,_0x446a86){const _0x5de831=_0x3e22ba;return d['createElement'](_,Object[_0x5de831(0x1df)]({},_0x39662e,{'id':_0x5de831(0x16f),'ref':_0x446a86,'icon':he}));});q[_0x3e22ba(0xb5)]=_0x3e22ba(0x192);function V(_0x222b84){const _0xaa3071=_0x3e22ba;var _0x2ca5f5,_0x29cbaa;const {mcpCoreConfig:_0x476e67,onSave:_0x31a21b,loading:_0x34f5e5=!0x1,config:_0x162459,connectionStatus$:_0x73c85d,connectionError$:_0x537c03,currentApiKey$:_0x14758c,currentSessionId$:_0x3b7519}=_0x222b84,_0x1fc6d8=v[_0xaa3071(0xcc)](u[_0xaa3071(0x123)]),_0x33115c=v[_0xaa3071(0xdd)](_0x73c85d,s[_0xaa3071(0x1e7)][_0xaa3071(0x1cf)]),_0x957fd3=v[_0xaa3071(0xdd)](_0x537c03,s[_0xaa3071(0x161)][_0xaa3071(0x1dc)]),_0x275168=v[_0xaa3071(0xdd)](_0x3b7519,''),_0x4cac6d=v[_0xaa3071(0xdd)](_0x14758c,''),[_0xed5849,_0x364d3f]=d[_0xaa3071(0x130)](_0x4cac6d||''),_0xefa42d=!0x0,_0x10ff06=_0x162459[_0xaa3071(0x96)]&&_0x476e67[_0xaa3071(0x1c3)]&&(_0x476e67['mcpServerUrl'][_0xaa3071(0x1d6)](_0xaa3071(0x82))||_0x476e67[_0xaa3071(0x1c3)][_0xaa3071(0x1d6)](_0xaa3071(0x181))),_0x4742aa=(_0x2ca5f5=_0x476e67['mcpServerUrl'])==null?void 0x0:_0x2ca5f5['includes'](_0xaa3071(0x82)),_0x5be0e6=(_0x29cbaa=_0x476e67[_0xaa3071(0x1c3)])==null?void 0x0:_0x29cbaa[_0xaa3071(0x1d6)](_0xaa3071(0x181)),_0x57c3dc=_0x4742aa?'https://console.univer.plus':_0xaa3071(0x132),_0x40fd8d=_0x162459[_0xaa3071(0x96)]&&(_0x4742aa||_0x5be0e6),[_0x45367f,_0x2ad99c]=d[_0xaa3071(0x130)](!_0xed5849['trim']()),_0x44556a=(_0x7f1ad1,_0x1ff894)=>{const _0x5a9d=_0xaa3071;if(_0x1ff894===s['MCPConnectionError'][_0x5a9d(0x1e4)])return _0x5a9d(0x1dd);switch(_0x7f1ad1){case s[_0x5a9d(0x1e7)][_0x5a9d(0x1ae)]:return _0x5a9d(0x173);case s[_0x5a9d(0x1e7)]['CONNECTING']:case s[_0x5a9d(0x1e7)]['RETRYING']:return _0x5a9d(0x113);case s[_0x5a9d(0x1e7)][_0x5a9d(0x75)]:return _0x5a9d(0x1dd);default:return _0x5a9d(0x131);}},_0x314ce6=(_0x2e9081,_0x3a987c)=>{const _0x52d94b=_0xaa3071;if(_0x3a987c===s['MCPConnectionError'][_0x52d94b(0x1e4)])return _0x52d94b(0xfa);switch(_0x2e9081){case s[_0x52d94b(0x1e7)]['CONNECTED']:return _0x52d94b(0x1f1);case s[_0x52d94b(0x1e7)]['CONNECTING']:case s['MCPConnectionStatus'][_0x52d94b(0x1e2)]:return _0x52d94b(0x180);case s[_0x52d94b(0x1e7)]['FAILED']:return _0x52d94b(0xfa);default:return'univer-bg-gray-500';}},_0x41444b=_0x44634c=>{const _0x315d56=_0xaa3071;switch(_0x44634c){case s[_0x315d56(0x1e7)][_0x315d56(0x1ae)]:return _0x1fc6d8['t'](_0x315d56(0x1d2));case s['MCPConnectionStatus'][_0x315d56(0xf6)]:return _0x1fc6d8['t'](_0x315d56(0x1b4));case s['MCPConnectionStatus']['FAILED']:return _0x1fc6d8['t'](_0x315d56(0xe3));case s[_0x315d56(0x1e7)]['RETRYING']:return _0x1fc6d8['t'](_0x315d56(0x175));default:return _0x1fc6d8['t'](_0x315d56(0x1d0));}},_0x31d84a=_0xde007d=>{const _0x15db34=_0xaa3071;switch(_0xde007d){case s['MCPConnectionError'][_0x15db34(0x1e4)]:return _0x1fc6d8['t']('mcpConfig.connectionError.unauthorized');case s['MCPConnectionError'][_0x15db34(0xc6)]:return _0x1fc6d8['t'](_0x15db34(0x70));case s[_0x15db34(0x161)]['NETWORK_ERROR']:return _0x1fc6d8['t'](_0x15db34(0x107));case s['MCPConnectionError'][_0x15db34(0xc9)]:return _0x1fc6d8['t'](_0x15db34(0x89));default:return'';}},_0x1638e7=d[_0xaa3071(0x12d)](()=>{const _0x301809={..._0x476e67,'apiKey':_0xed5849['trim'](),'enableAuth':_0xefa42d};_0x31a21b(_0x301809);},[_0x476e67,_0xed5849,_0xefa42d,_0x31a21b]),_0x39867d=_0xed5849['trim']()[_0xaa3071(0xfe)]>0x0;return i[_0xaa3071(0x1eb)](_0xaa3071(0xe6),{'className':_0xaa3071(0xa4),'children':[i[_0xaa3071(0xde)]('div',{'className':_0xaa3071(0x1b7),'children':i[_0xaa3071(0x1eb)](_0xaa3071(0xe6),{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[i['jsx'](_0xaa3071(0xe6),{'className':_0xaa3071(0xc0),'children':i[_0xaa3071(0xde)]('span',{'className':_0xaa3071(0x17b),'children':'⚙'})}),i['jsx'](_0xaa3071(0xe6),{'children':i[_0xaa3071(0xde)]('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x1fc6d8['t'](_0xaa3071(0xb0))})})]})}),i[_0xaa3071(0x1eb)](_0xaa3071(0xe6),{'className':_0xaa3071(0x1a0),'children':[i['jsx'](_0xaa3071(0xe6),{'className':f[_0xaa3071(0x87)](_0xaa3071(0x11a),_0x44556a(_0x33115c,_0x957fd3)),'children':i[_0xaa3071(0x1eb)](_0xaa3071(0xe6),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0xaa3071(0xde)](_0xaa3071(0xe6),{'className':f[_0xaa3071(0x87)](_0xaa3071(0x1ea),_0x314ce6(_0x33115c,_0x957fd3))}),i[_0xaa3071(0xde)](_0xaa3071(0x1ef),{'className':_0xaa3071(0xd0),'children':_0x41444b(_0x33115c)})]})}),_0x957fd3!==s['MCPConnectionError'][_0xaa3071(0x1dc)]&&(_0x33115c===s[_0xaa3071(0x1e7)][_0xaa3071(0x75)]||_0x957fd3===s['MCPConnectionError']['UNAUTHORIZED'])&&i[_0xaa3071(0xde)]('div',{'className':_0xaa3071(0x73),'children':i[_0xaa3071(0x1eb)]('div',{'className':_0xaa3071(0xa0),'children':[i[_0xaa3071(0xde)](_0xaa3071(0x1ef),{'className':_0xaa3071(0x128),'children':'⚠️'}),i[_0xaa3071(0xde)]('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x31d84a(_0x957fd3)})]})})]}),i['jsx'](_0xaa3071(0xe6),{'className':_0xaa3071(0x115),'children':i['jsxs']('div',{'className':'univer-space-y-5','children':[i[_0xaa3071(0x1eb)]('div',{'className':_0xaa3071(0x122),'children':[i[_0xaa3071(0x1eb)](_0xaa3071(0x1d3),{'className':_0xaa3071(0x171),'children':[i['jsx'](_0xaa3071(0x1ef),{'children':'🔑'}),'\x20',_0x1fc6d8['t'](_0xaa3071(0x1a9)),i[_0xaa3071(0xde)](_0xaa3071(0x1ef),{'className':_0xaa3071(0x146),'children':'*'}),_0x10ff06&&i[_0xaa3071(0xde)]('a',{'className':_0xaa3071(0xc2),'title':_0x1fc6d8['t']('mcpConfig.apiApplyInfo.title'),'role':_0xaa3071(0xfb),'onClick':()=>_0x2ad99c(!0x0),'children':i['jsx'](F,{})})]}),i[_0xaa3071(0xde)](f[_0xaa3071(0x137)],{'type':_0xaa3071(0x172),'placeholder':_0x1fc6d8['t'](_0xaa3071(0x90)),'value':_0xed5849,'disabled':_0x34f5e5,'autoComplete':_0xaa3071(0x1c6),'onChange':_0x364d3f}),i[_0xaa3071(0xde)]('p',{'className':_0xaa3071(0x16e),'children':_0x1fc6d8['t']('mcpConfig.apiKeyHint')})]}),_0x10ff06&&_0x45367f&&i[_0xaa3071(0x1eb)](_0xaa3071(0xe6),{'className':_0xaa3071(0xc1),'children':[i['jsx']('a',{'className':'univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','role':_0xaa3071(0xfb),'onClick':()=>_0x2ad99c(!0x1),'children':i[_0xaa3071(0xde)](B,{'className':_0xaa3071(0xf8)})}),i[_0xaa3071(0x1eb)]('div',{'className':_0xaa3071(0x10f),'children':[i[_0xaa3071(0xde)](_0xaa3071(0xe6),{'className':_0xaa3071(0xe2),'children':i[_0xaa3071(0xde)]('span',{'className':'univer-text-blue-600','children':'🚀'})}),i[_0xaa3071(0x1eb)](_0xaa3071(0xe6),{'className':_0xaa3071(0x112),'children':[i['jsx']('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x1fc6d8['t']('mcpConfig.apiApplyInfo.title')}),i[_0xaa3071(0xde)]('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x1fc6d8['t'](_0xaa3071(0xac))}),i[_0xaa3071(0xde)](_0xaa3071(0xe6),{'className':_0xaa3071(0x1e8),'children':_0x40fd8d&&i[_0xaa3071(0x1eb)]('a',{'className':_0xaa3071(0x19a),'href':_0x57c3dc,'target':_0xaa3071(0x170),'rel':_0xaa3071(0x11b),'children':[i[_0xaa3071(0xde)](_0xaa3071(0x1ef),{'children':'🤖'}),_0x1fc6d8['t'](_0xaa3071(0xa9)),i['jsx'](_0xaa3071(0x1ef),{'className':'univer-text-gray-400','children':'↗'})]})}),i['jsxs'](_0xaa3071(0xe6),{'className':_0xaa3071(0x158),'children':['✨','\x20',_0x1fc6d8['t'](_0xaa3071(0x1e5))]})]})]})]}),_0x162459[_0xaa3071(0x96)]&&i[_0xaa3071(0x1eb)](_0xaa3071(0xe6),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[i[_0xaa3071(0x1eb)]('h4',{'className':_0xaa3071(0x1f9),'children':[i[_0xaa3071(0xde)](_0xaa3071(0x1ef),{'children':'🔗'}),'\x20',_0x1fc6d8['t'](_0xaa3071(0xe8))]}),i[_0xaa3071(0x1eb)]('div',{'className':_0xaa3071(0x1f0),'children':[i[_0xaa3071(0x1eb)](_0xaa3071(0xe6),{'className':_0xaa3071(0xca),'children':[i[_0xaa3071(0xde)]('p',{'className':_0xaa3071(0x11f),'children':_0x1fc6d8['t'](_0xaa3071(0x1ad))}),i[_0xaa3071(0x1eb)](_0xaa3071(0xe6),{'className':_0xaa3071(0x122),'children':[i['jsx'](_0xaa3071(0xe6),{'className':_0xaa3071(0xbd),'children':_0x1fc6d8['t'](_0xaa3071(0x129))}),i[_0xaa3071(0x1eb)]('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[i[_0xaa3071(0x1eb)](_0xaa3071(0xe6),{'className':_0xaa3071(0x18a),'children':[i[_0xaa3071(0xde)](_0xaa3071(0x1ef),{'className':_0xaa3071(0xa6),'children':'1'}),_0x1fc6d8['t']('mcpConfig.configStep1')]}),i['jsxs']('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i['jsx']('span',{'className':_0xaa3071(0xa6),'children':'2'}),_0x1fc6d8['t'](_0xaa3071(0x14e))]}),i['jsxs'](_0xaa3071(0xe6),{'className':_0xaa3071(0x18a),'children':[i['jsx'](_0xaa3071(0x1ef),{'className':_0xaa3071(0xa6),'children':'3'}),_0x1fc6d8['t'](_0xaa3071(0x1a3))]})]})]})]}),i[_0xaa3071(0x1eb)](_0xaa3071(0xe6),{'className':_0xaa3071(0x122),'children':[i[_0xaa3071(0xde)](_0xaa3071(0xe6),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0xaa3071(0x1b1)}),i[_0xaa3071(0xde)](_0xaa3071(0xe6),{'className':_0xaa3071(0xe5),'children':i[_0xaa3071(0xde)](_0xaa3071(0x163),{'className':_0xaa3071(0xa2),'children':JSON['stringify']({'mcpServers':{'univer':{'url':_0xaa3071(0xa3)+(_0x275168||_0xaa3071(0xe7)),'type':_0xaa3071(0x8c),'headers':{'Authorization':'Bearer\x20'+(_0xed5849||_0xaa3071(0x104))}}}},null,0x2)})})]}),i[_0xaa3071(0x1eb)]('div',{'className':_0xaa3071(0xca),'children':[i[_0xaa3071(0xde)]('div',{'className':_0xaa3071(0xbd),'children':_0x1fc6d8['t']('mcpConfig.configParameters')}),i['jsxs'](_0xaa3071(0xe6),{'className':_0xaa3071(0x122),'children':[i['jsxs']('div',{'className':_0xaa3071(0xd3),'children':[i['jsx'](_0xaa3071(0xe6),{'className':_0xaa3071(0x196)}),i[_0xaa3071(0x1eb)](_0xaa3071(0xe6),{'className':_0xaa3071(0x179),'children':[i[_0xaa3071(0xde)](_0xaa3071(0xe6),{'className':_0xaa3071(0x12f),'children':_0xaa3071(0x1db)}),i[_0xaa3071(0xde)](_0xaa3071(0xe6),{'className':_0xaa3071(0x16e),'children':_0x1fc6d8['t'](_0xaa3071(0x1b0))})]})]}),i[_0xaa3071(0x1eb)](_0xaa3071(0xe6),{'className':_0xaa3071(0xd3),'children':[i[_0xaa3071(0xde)]('div',{'className':_0xaa3071(0x196)}),i[_0xaa3071(0x1eb)]('div',{'className':'univer-min-w-0\x20univer-flex-1','children':[i[_0xaa3071(0xde)](_0xaa3071(0xe6),{'className':_0xaa3071(0x12f),'children':_0xaa3071(0xab)}),i[_0xaa3071(0xde)](_0xaa3071(0xe6),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x1fc6d8['t'](_0xaa3071(0x126))})]})]})]})]})]})]}),i[_0xaa3071(0xde)](f['Button'],{'onClick':_0x1638e7,'disabled':!_0x39867d||_0x34f5e5,'className':'univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','children':_0x34f5e5?i['jsxs'](_0xaa3071(0x1ef),{'className':_0xaa3071(0x18a),'children':[i[_0xaa3071(0xde)](_0xaa3071(0x1ef),{'children':'⟲'}),_0x1fc6d8['t']('mcpConfig.saving')]}):i[_0xaa3071(0x1eb)](_0xaa3071(0x1ef),{'className':_0xaa3071(0x18a),'children':[i[_0xaa3071(0xde)](H,{}),_0x1fc6d8['t'](_0xaa3071(0x88))]})}),i['jsx'](_0xaa3071(0xe6),{'className':_0xaa3071(0x109),'children':i[_0xaa3071(0x1eb)](_0xaa3071(0xe6),{'className':'univer-flex\x20univer-gap-3','children':[i['jsx'](_0xaa3071(0x1ef),{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),i['jsxs'](_0xaa3071(0xe6),{'className':_0xaa3071(0xbf),'children':[i['jsx'](_0xaa3071(0xe6),{'className':_0xaa3071(0x153),'children':_0xaa3071(0x7a)}),i['jsxs'](_0xaa3071(0xe6),{'children':['•',_0x1fc6d8['t'](_0xaa3071(0x106))]}),i[_0xaa3071(0x1eb)](_0xaa3071(0xe6),{'children':['•',_0x1fc6d8['t'](_0xaa3071(0xda))]})]})]})})]})})]});}function _0x2777(){const _0x56997e=['mcpConfig.configSaved','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','权限验证失败,请检查您的\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','close-icon','OffLineIcon','on-line-icon_clip0_910_349','push','mcpStatus.clickToConnect','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','保存配置','API\x20密钥不能为空','mcpConfig.configStep3','svg','none','_initializeCommands','配置保存成功','Get\x20your\x20API\x20key\x20in\x20seconds','mcpConfig.apiKey','您的\x20API\x20密钥将在此浏览器中本地存储','ISocketService','0\x200\x2017\x2016','mcpConfig.configInstructions','CONNECTED','subscribeConfigValue$','mcpConfig.sessionIdDescription','MCP\x20Configuration','API\x20Key','toString','mcpConfig.connectionStatus.connecting','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','0\x200\x2016\x2016','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','IUIPartsService','UniverIcon','连接失败','MCP\x20Retrying...','IMessageService','Bearer\x20','您的\x20API\x20密钥安全存储在本地存储中','warn','validateApiKey','mcpStatus.failed','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','mcpServerUrl','1179725IijZdQ','ComponentManager','off','已连接','BuiltInUIPart','trim','MCPConfigPanel','\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','Invalid\x20configuration','将以下配置添加到您的\x20MCP\x20客户端设置中:','Save\x20Configuration','DISCONNECTED','mcpConfig.connectionStatus.disconnected','MCP\x20状态未知','mcpConfig.connectionStatus.connected','label','disposeWithMe','use','includes','__setCustomHeaders','Module','mcpConfig.title','get','univer_session_id:','NONE','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','mergeMenu','assign','_initStatusComponent','translate(.97)','RETRYING','createElement','UNAUTHORIZED','mcpConfig.apiApplyInfo.getStarted','IDialogService','MCPConnectionStatus','univer-flex\x20univer-flex-wrap\x20univer-gap-2','MCP\x20Connection\x20Failed','univer-size-2\x20univer-rounded-full','jsxs','mcpStatus.maxRetriesExceeded','univer-flex\x20univer-items-center','Max\x20Retries','span','univer-space-y-4','univer-bg-green-500','symbol','CheckMarkIcon','Tooltip','_initializeMenus','children','value','重连中...','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','_handleConfigSave','connectInjector','currentColor','MCP:\x20Unauthorized','mcpConfig.connectionError.sessionOccupied','connectionError$','_initAutoConnect','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','\x20-\x20','FAILED','MCP:\x20未授权','showConfigPanel','fill','entries','Configuration\x20Notes:','Saving...','off-line-icon_clip0_910_343','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20已断开','_connectionController','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','getConfig','univer.plus','UniverMCPUIPlugin','forEach','BUTTON','MCP\x20Connected','clsx','mcpConfig.save','mcpConfig.connectionError.maxRetriesExceeded','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','MCP\x20客户端配置','http','1em','mcpStatus.connecting','show','mcpConfig.apiKeyPlaceholder','toStringTag','_componentManager','mcp-config-dialog','_initConfigSync','Enable\x20authentication\x20for\x20secure\x20connections','showDeveloperTools','MCPConnectionUIController','Error','MCP_UI_PLUGIN','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','ILocalStorageService','MenuIcon','clipPath','xlink:href','mcpConfig.validation.invalidApiKey','univer-flex\x20univer-items-start\x20univer-gap-2','带有\x20Bearer\x20前缀的\x20API\x20密钥。','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','https://mcp.univer.ai/mcp/?univer_session_id=','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','enUS','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','apiKey','M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z','mcpConfig.apiApplyInfo.univerAiLabel','_config$','Authorization:','mcpConfig.apiApplyInfo.description','mcpConfig.configError','配置参数:','onStarting','mcpConfig.description','MCP:\x20会话\x20ID\x20已被占用','_mcpConnectionController','connectionStatus$','MCPUIMenuController','displayName','removeItem','78198cVRfCy','_menuManagerService','_createConfigPanelComponent','defs','API\x20密钥无效,请检查密钥是否正确','配置\x20MCP\x20使用\x20AI\x20操作电子表格','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','_injector','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','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','API\x20key\x20is\x20required','API\x20密钥长度至少需要\x2010\x20位','WebSocketService','SESSION_ID_OCCUPIED','MCP:\x20超出最大重试次数','What\x20is\x20API\x20Key?','MAX_RETRIES_EXCEEDED','univer-space-y-3','register','useDependency','Copy\x20the\x20JSON\x20configuration\x20below','random','mcpConfig.validation.invalidConfig','univer-text-sm\x20univer-font-medium','36kvYihQ','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','univer-flex\x20univer-items-start\x20univer-gap-3','_uiPartsService','attrs','MCP:\x20Network\x20Error','_validateConfig','errorMessage','配置更改将立即生效','mcpConfig.note2','UniverMCPPlugin','点击配置\x20MCP','useObservable','jsx','3065573dXOLLa','check-mark-icon','tag','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','mcpConfig.connectionStatus.failed','_loadStoredApiKey','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','div','<SESSION_ID>','mcpConfig.connectionInfo','请输入您的\x20API\x20密钥','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','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','什么是\x20API\x20密钥?','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Injector','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','colorChannel1','_mcpCoreConfig$','defineProperty','close','sessionId$','IMenuManagerService','CONNECTING','启用身份验证','univer-size-4','MCP:\x20网络错误','univer-bg-red-500','button','_handleConfigure','mcpStatus.sessionOccupied','length','univer-text-gray-500','点击连接\x20MCP','IConfigService','getOwnPropertyDescriptor','_dialogService','<API_KEY>','mcp-ui.command.openConfigPanel','mcpConfig.note1','mcpConfig.connectionError.networkError','help-icon','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','_commandService','HelpIcon','保存中...','_localStorageService','7342592UnAOLU','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','registerCommand','MCP\x20连接失败','univer-flex-1','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','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-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP_PLUGIN_CONFIG_KEY','mcpStatus.clickToConfigure','MCP\x20连接中...','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','noopener\x20noreferrer','API\x20密钥','Click\x20to\x20configure\x20MCP','_configService','univer-text-xs\x20univer-text-gray-600','1243690zfLhxX','current','univer-space-y-2','LocaleService','mcp-ui.config','forwardRef','mcpConfig.authorizationDescription','add','univer-shrink-0\x20univer-text-red-500','mcpConfig.configStepTitle','_config','Click\x20to\x20connect\x20MCP','_apiKey$','useCallback','MCP\x20重连中...','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','useState','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','https://console.univer.ai','idSuffix','url(#on-line-icon_clip0_910_349)','HEADER_MENU','MCP\x20Connecting...','Input','网络连接错误,请检查您的网络连接','MCPConnectionController','Configuration\x20Parameters:','path','substring','MCP:\x20Session\x20ID\x20Occupied','Enable\x20Authentication','replace','Univer\x20AI\x20控制台','_registerComponent','Session\x20ID','has','CloseIcon','white','univer-text-red-500','OTHERS','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MessageType','将配置添加到您的\x20MCP\x20客户端设置文件中','setItem','merge','univerjs-icon\x20univerjs-icon-','mcpConfig.configStep2','MCPConfigUIController','配置步骤:','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Success','univer-font-medium','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','_messageService','next','重启您的\x20MCP\x20客户端以使配置生效','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','MCP\x20已连接','连接中...','复制以下\x20JSON\x20配置','Disposable','evenodd','mcpStatus.disconnected','setConfig','Connection\x20Failed','MCPConnectionError','mcpStatus.unauthorized','pre','ILogService','url(#$1','mcp.apiKey','_localeService','string','2910144ZmOcRv','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','会话ID','Configuration\x20Steps:','subscribe','univer-text-xs\x20univer-text-gray-500','on-line-icon','_blank','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','text','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','未连接','mcpConfig.connectionStatus.retrying','off-line-icon','mask','ICommandService','univer-min-w-0\x20univer-flex-1','map','univer-text-white','BehaviorSubject','NETWORK_ERROR','_logService','http://www.w3.org/2000/svg','univer-bg-blue-500','univer.ai','566101EgJfUp','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','M0\x200H16V16H0z','Enter\x20your\x20API\x20key','defIds','mcpConfig.validation.apiKeyTooShort','mcpConfig.validation.apiKeyRequired','showStatus','univer-flex\x20univer-items-center\x20univer-gap-2','Inject','MCPStatusDisplay','error','Retrying...','OpenMCPConfigPanelCommand','会话\x20ID\x20已被占用,请稍后再试','_loading$','OnLineIcon','round','univer-text-green-500','open','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'];_0x2777=function(){return _0x56997e;};return _0x2777();}function _0x4786(_0x3a8455,_0x385e7b){const _0x277710=_0x2777();return _0x4786=function(_0x4786ad,_0x5f74a0){_0x4786ad=_0x4786ad-0x6f;let _0x4605b9=_0x277710[_0x4786ad];return _0x4605b9;},_0x4786(_0x3a8455,_0x385e7b);}const P=_0x3e22ba(0x124),L={'showDeveloperTools':!0x1,'showStatus':!0x0};var me=Object[_0x3e22ba(0x102)],xe=(_0x50c368,_0x16204a,_0x245428,_0x16acd2)=>{const _0x1f2fca=_0x3e22ba;for(var _0xb29cf9=_0x16acd2>0x1?void 0x0:_0x16acd2?me(_0x16204a,_0x245428):_0x16204a,_0x86504b=_0x50c368[_0x1f2fca(0xfe)]-0x1,_0x3ef15b;_0x86504b>=0x0;_0x86504b--)(_0x3ef15b=_0x50c368[_0x86504b])&&(_0xb29cf9=_0x3ef15b(_0xb29cf9)||_0xb29cf9);return _0xb29cf9;},g=(_0x78a215,_0x4461c9)=>(_0x35435b,_0x47c922)=>_0x4461c9(_0x35435b,_0x47c922,_0x78a215);const O=_0x3e22ba(0x166),D=_0x3e22ba(0x93);exports[_0x3e22ba(0x14f)]=class extends u[_0x3e22ba(0x15c)]{constructor(_0x28efba,_0x1087c2,_0x3f15bc,_0x307158,_0x928df6,_0x23b908,_0x435b5d,_0xdf1208,_0x458da7,_0x2a53a4){const _0x499ff4=_0x3e22ba;super(),I(this,_0x499ff4(0x191),new M[(_0x499ff4(0x17c))](!0x1)),I(this,_0x499ff4(0xf1),new M['BehaviorSubject']({})),I(this,'_config$',new M['BehaviorSubject']({})),I(this,_0x499ff4(0x12c),new M[(_0x499ff4(0x17c))]('')),I(this,_0x499ff4(0x1fa),async _0x40d971=>{const _0x282871=_0x499ff4;var _0x49adce,_0x324254;this[_0x282871(0x191)][_0x282871(0x156)](!0x0);try{const _0x20298c=await this[_0x282871(0xd7)](_0x40d971);if(!_0x20298c['isValid']){this[_0x282871(0x155)][_0x282871(0x8f)]({'type':f[_0x282871(0x149)]['Error'],'content':_0x20298c[_0x282871(0xd8)]||this[_0x282871(0x167)]['t'](_0x282871(0xcf))});return;}_0x40d971[_0x282871(0xa7)]?await this['_localStorageService'][_0x282871(0x14b)](O,_0x40d971[_0x282871(0xa7)]['trim']()):await this[_0x282871(0x10d)][_0x282871(0xb6)](O),this['_apiKey$'][_0x282871(0x156)](((_0x49adce=_0x40d971[_0x282871(0xa7)])==null?void 0x0:_0x49adce[_0x282871(0x1c9)]())||''),this[_0x282871(0xb2)][_0x282871(0x1d7)]({'Authorization':_0x282871(0x1bd)+((_0x324254=_0x40d971[_0x282871(0xa7)])==null?void 0x0:_0x324254['trim']())}),this['_messageService'][_0x282871(0x8f)]({'type':f[_0x282871(0x149)][_0x282871(0x152)],'content':this[_0x282871(0x167)]['t'](_0x282871(0x197))}),setTimeout(()=>{const _0x2df985=_0x282871;this[_0x2df985(0x103)][_0x2df985(0xf3)](D);},0x320);}catch(_0x52f612){this[_0x282871(0x17e)][_0x282871(0x18d)]('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x52f612),this['_messageService'][_0x282871(0x8f)]({'type':f[_0x282871(0x149)][_0x282871(0x98)],'content':this[_0x282871(0x167)]['t'](_0x282871(0xad))});}finally{this[_0x282871(0x191)]['next'](!0x1);}}),(this[_0x499ff4(0xbe)]=_0x28efba,this['_uiPartsService']=_0x1087c2,this[_0x499ff4(0x11e)]=_0x3f15bc,this['_localStorageService']=_0x307158,this[_0x499ff4(0x103)]=_0x928df6,this['_messageService']=_0x23b908,this[_0x499ff4(0x92)]=_0x435b5d,this['_localeService']=_0xdf1208,this[_0x499ff4(0x17e)]=_0x458da7,this[_0x499ff4(0xb2)]=_0x2a53a4,this['_initConfigSync'](),this[_0x499ff4(0xe4)](),this[_0x499ff4(0x141)]());}[_0x3e22ba(0x77)](){const _0x126842=_0x3e22ba,_0x66c4d6=this[_0x126842(0x11e)][_0x126842(0x81)](P);_0x66c4d6!=null&&_0x66c4d6[_0x126842(0x96)]&&this[_0x126842(0x103)][_0x126842(0x195)]({'id':D,'title':{'title':this[_0x126842(0x167)]['t'](_0x126842(0x1d9))},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x3a5e70=_0x126842;this['_dialogService'][_0x3a5e70(0xf3)](D);}});}['getCurrentConfig'](){const _0x5ee4dd=_0x3e22ba;return this[_0x5ee4dd(0xf1)][_0x5ee4dd(0x1f7)];}['_registerComponent'](){const _0x3b3ccd=_0x3e22ba;this[_0x3b3ccd(0x1d4)](this[_0x3b3ccd(0x92)][_0x3b3ccd(0xcb)](_0x3b3ccd(0x1ca),this[_0x3b3ccd(0xb9)]()));}[_0x3e22ba(0xb9)](){const _0x368a26=_0x3e22ba;return v[_0x368a26(0x1fb)](()=>{const _0x560827=_0x368a26;var _0x533e23,_0x404c9,_0x390ebe;return i[_0x560827(0xde)](V,{'config':this[_0x560827(0xaa)][_0x560827(0x1f7)],'mcpCoreConfig':this[_0x560827(0xf1)]['value'],'currentApiKey$':this[_0x560827(0x12c)],'onSave':this[_0x560827(0x1fa)],'loading':this[_0x560827(0x191)][_0x560827(0x1f7)],'connectionStatus$':(_0x533e23=this[_0x560827(0xb2)])==null?void 0x0:_0x533e23['connectionStatus$'],'connectionError$':(_0x404c9=this[_0x560827(0xb2)])==null?void 0x0:_0x404c9[_0x560827(0x71)],'currentSessionId$':(_0x390ebe=this[_0x560827(0xb2)])==null?void 0x0:_0x390ebe[_0x560827(0xf4)]});},this[_0x368a26(0xbe)]);}[_0x3e22ba(0x94)](){const _0x229e86=_0x3e22ba;this[_0x229e86(0x1d4)](this['_configService'][_0x229e86(0x1af)](s['MCP_PLUGIN_CONFIG_KEY'])[_0x229e86(0x16d)](_0x29db14=>{const _0x31d1c7=_0x229e86;this[_0x31d1c7(0xf1)]['next'](_0x29db14||{});}));const _0x14c217=this[_0x229e86(0x11e)][_0x229e86(0x81)](s[_0x229e86(0x117)]);this[_0x229e86(0xf1)]['next'](_0x14c217||{}),this['disposeWithMe'](this['_configService'][_0x229e86(0x1af)](P)[_0x229e86(0x16d)](_0x374935=>{const _0xb6b998=_0x229e86;this['_config$'][_0xb6b998(0x156)](_0x374935||{});}));const _0x365e76=this[_0x229e86(0x11e)][_0x229e86(0x81)](P);this[_0x229e86(0xaa)][_0x229e86(0x156)](_0x365e76||{});}async[_0x3e22ba(0xe4)](){const _0x4e9310=_0x3e22ba,_0x1191f8=this[_0x4e9310(0x11e)][_0x4e9310(0x81)](P);if(!(_0x1191f8!=null&&_0x1191f8['showDeveloperTools']))return;const _0x9bee8b=await this[_0x4e9310(0x10d)]['getItem'](O);_0x9bee8b&&(this[_0x4e9310(0xb2)][_0x4e9310(0x1d7)]({'Authorization':'Bearer\x20'+_0x9bee8b}),this[_0x4e9310(0x12c)][_0x4e9310(0x156)](_0x9bee8b));}async[_0x3e22ba(0xd7)](_0x3b1579){const _0x983402=_0x3e22ba;if(!_0x3b1579[_0x983402(0xa7)]||_0x3b1579[_0x983402(0xa7)][_0x983402(0x1c9)]()[_0x983402(0xfe)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x983402(0x167)]['t'](_0x983402(0x188))};if(_0x3b1579['apiKey'][_0x983402(0x1c9)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0x983402(0x167)]['t'](_0x983402(0x187))};try{const _0x434ade=await this[_0x983402(0xbe)][_0x983402(0x1da)](s[_0x983402(0x139)])[_0x983402(0x1c0)](_0x3b1579[_0x983402(0xa7)][_0x983402(0x1c9)]());return _0x434ade['isValid']?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x434ade['error']||this['_localeService']['t'](_0x983402(0x9f))};}catch(_0x1e7a98){return console[_0x983402(0x1bf)]('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0x1e7a98),{'isValid':!0x0};}}},exports[_0x3e22ba(0x14f)]=xe([g(0x0,u['Inject'](u[_0x3e22ba(0xee)])),g(0x1,v[_0x3e22ba(0x1b8)]),g(0x2,u[_0x3e22ba(0x101)]),g(0x3,u[_0x3e22ba(0x9b)]),g(0x4,v[_0x3e22ba(0x1e6)]),g(0x5,v[_0x3e22ba(0x1bc)]),g(0x6,u[_0x3e22ba(0x18b)](v[_0x3e22ba(0x1c5)])),g(0x7,u['Inject'](u[_0x3e22ba(0x123)])),g(0x8,u[_0x3e22ba(0x164)]),g(0x9,u[_0x3e22ba(0x18b)](s[_0x3e22ba(0x139)]))],exports['MCPConfigUIController']);const b={'id':_0x3e22ba(0x105),'type':u['CommandType']['COMMAND'],'handler':async(_0x4d5325,_0x5a0ec9)=>(_0x4d5325['get'](exports[_0x3e22ba(0x14f)])[_0x3e22ba(0x77)](),!0x0)};function Z(_0x35072a,_0x1f013a){const _0x3f71ba=_0x3e22ba;switch(_0x35072a){case s['MCPConnectionStatus'][_0x3f71ba(0x1cf)]:return _0x3f71ba(0x15e);case s['MCPConnectionStatus']['CONNECTING']:return _0x3f71ba(0x8e);case s[_0x3f71ba(0x1e7)][_0x3f71ba(0x1ae)]:return'mcpStatus.connected';case s[_0x3f71ba(0x1e7)][_0x3f71ba(0x75)]:switch(_0x1f013a){case s['MCPConnectionError'][_0x3f71ba(0x1e4)]:return _0x3f71ba(0x162);case s[_0x3f71ba(0x161)][_0x3f71ba(0xc6)]:return _0x3f71ba(0xfd);case s[_0x3f71ba(0x161)][_0x3f71ba(0x17d)]:return'mcpStatus.networkError';case s[_0x3f71ba(0x161)][_0x3f71ba(0xc9)]:return _0x3f71ba(0x1ec);default:return _0x3f71ba(0x1c1);}case s['MCPConnectionStatus'][_0x3f71ba(0x1e2)]:return'mcpStatus.retrying';default:return'mcpStatus.unknown';}}function Se(_0x8b7389,_0x1e030b,_0x3f9ba2,_0xc47446=!0x0){const _0x42b841=_0x3e22ba,_0x2e699d=Z(_0x8b7389,_0x1e030b),_0x258ca5=_0x3f9ba2['t'](_0x2e699d);return _0xc47446?_0x8b7389===s[_0x42b841(0x1e7)]['DISCONNECTED']&&_0x1e030b===s['MCPConnectionError'][_0x42b841(0x1e4)]?_0x258ca5+_0x42b841(0x74)+_0x3f9ba2['t'](_0x42b841(0x118)):_0x8b7389===s[_0x42b841(0x1e7)][_0x42b841(0x1ae)]?''+_0x258ca5:_0x8b7389===s['MCPConnectionStatus']['DISCONNECTED']||_0x8b7389===s['MCPConnectionStatus']['FAILED']?_0x258ca5+'\x20-\x20'+_0x3f9ba2['t'](_0x42b841(0x19f)):_0x258ca5:_0x258ca5;}function Pe(_0x32b33d){const _0x24a13c=_0x3e22ba;switch(_0x32b33d){case s['MCPConnectionStatus'][_0x24a13c(0x1ae)]:return _0x24a13c(0x194);case s[_0x24a13c(0x1e7)]['CONNECTING']:case s[_0x24a13c(0x1e7)]['RETRYING']:return'univer-text-yellow-500';case s[_0x24a13c(0x1e7)][_0x24a13c(0x75)]:case s[_0x24a13c(0x1e7)]['DISCONNECTED']:return _0x24a13c(0x146);default:return _0x24a13c(0xff);}}function W(_0x50f7b6){const _0x46710f=_0x3e22ba,{status$:_0x5e975c,error$:_0x50c4b6,onConfigure:_0xa97682,showClickable:_0x5c6527=!0x0}=_0x50f7b6,_0x68ef8d=v['useObservable'](_0x5e975c,s[_0x46710f(0x1e7)][_0x46710f(0x1cf)]),_0x1dbcb5=v[_0x46710f(0xdd)](_0x50c4b6,s[_0x46710f(0x161)][_0x46710f(0x1dc)]),_0x55897e=v[_0x46710f(0xcc)](u[_0x46710f(0x123)]),_0x1dfafa=_0x68ef8d===s[_0x46710f(0x1e7)][_0x46710f(0x1ae)];_0x68ef8d===s['MCPConnectionStatus'][_0x46710f(0xf6)]||s[_0x46710f(0x1e7)]['RETRYING'];const _0x20e7bd=_0x55897e['t'](Z(_0x68ef8d,_0x1dbcb5)),_0x151cf3=Se(_0x68ef8d,_0x1dbcb5,_0x55897e,_0x5c6527),_0x21c02d=Pe(_0x68ef8d),_0x1b7185=_0x1dfafa?i[_0x46710f(0xde)](q,{}):i[_0x46710f(0xde)](Y,{}),_0x13d68b=d[_0x46710f(0x12d)](()=>{_0x5c6527&&_0xa97682&&_0xa97682();},[_0x5c6527,_0xa97682]);function _0x5e5a90(){const _0x3ca040=_0x46710f;return i[_0x3ca040(0x1eb)](_0x3ca040(0xe6),{'className':f[_0x3ca040(0x87)](_0x3ca040(0x1ed),_0x5c6527&&_0xa97682&&_0x3ca040(0x1cb)),'role':'button','onClick':_0x5c6527&&_0xa97682?_0x13d68b:void 0x0,'children':[i[_0x3ca040(0xde)](_0x3ca040(0xe6),{'className':f['clsx']('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x21c02d),'children':_0x1b7185}),i['jsx'](_0x3ca040(0xe6),{'className':_0x3ca040(0xef),'children':_0x20e7bd})]});}return i['jsx'](f[_0x46710f(0x1f4)],{'title':_0x151cf3,'placement':'bottom','children':_0x5e5a90()});}var Ie=Object[_0x3e22ba(0x102)],_e=(_0x3711f0,_0x1739e1,_0x4e29dd,_0x59abd3)=>{const _0x38114b=_0x3e22ba;for(var _0x4f49bd=_0x59abd3>0x1?void 0x0:_0x59abd3?Ie(_0x1739e1,_0x4e29dd):_0x1739e1,_0x21bc9b=_0x3711f0[_0x38114b(0xfe)]-0x1,_0x4b91cc;_0x21bc9b>=0x0;_0x21bc9b--)(_0x4b91cc=_0x3711f0[_0x21bc9b])&&(_0x4f49bd=_0x4b91cc(_0x4f49bd)||_0x4f49bd);return _0x4f49bd;},N=(_0x320b57,_0x1c8303)=>(_0x1d3dc0,_0x45ceae)=>_0x1c8303(_0x1d3dc0,_0x45ceae,_0x320b57);exports[_0x3e22ba(0x97)]=class extends u[_0x3e22ba(0x15c)]{constructor(_0x224e73,_0x4ac728,_0x56e16f,_0x25103b){const _0x2c1128=_0x3e22ba;super(),this[_0x2c1128(0xbe)]=_0x224e73,this[_0x2c1128(0x7f)]=_0x4ac728,this[_0x2c1128(0xd4)]=_0x56e16f,this[_0x2c1128(0x11e)]=_0x25103b,this[_0x2c1128(0x72)](),this[_0x2c1128(0x1e0)]();}['_initAutoConnect'](){const _0x4dc356=_0x3e22ba,_0x1a48c3=this[_0x4dc356(0x11e)][_0x4dc356(0x81)](P);_0x1a48c3!=null&&_0x1a48c3[_0x4dc356(0x96)]&&(this[_0x4dc356(0x7f)]['enableAutoConnect']=!0x1);}[_0x3e22ba(0x1e0)](){const _0xf72eca=_0x3e22ba,_0x449eef=this[_0xf72eca(0x11e)][_0xf72eca(0x81)](P);(_0x449eef==null?void 0x0:_0x449eef[_0xf72eca(0x189)])!==!0x1&&this[_0xf72eca(0x1d4)](this[_0xf72eca(0xd4)]['registerComponent'](v[_0xf72eca(0x1c8)][_0xf72eca(0x135)],()=>{const _0x4ba6e2=_0xf72eca;var _0x328c4c;return v[_0x4ba6e2(0x1fb)](ye({'status$':this[_0x4ba6e2(0x7f)][_0x4ba6e2(0xb3)],'error$':this[_0x4ba6e2(0x7f)][_0x4ba6e2(0x71)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x328c4c=_0x449eef==null?void 0x0:_0x449eef['showDeveloperTools'])!=null?_0x328c4c:!0x1}),this[_0x4ba6e2(0xbe)]);}));}[_0x3e22ba(0xfc)](){const _0x58b606=_0x3e22ba;this[_0x58b606(0xbe)][_0x58b606(0x1da)](exports[_0x58b606(0x14f)])[_0x58b606(0x77)]();}},exports[_0x3e22ba(0x97)]=_e([N(0x0,u[_0x3e22ba(0x18b)](u['Injector'])),N(0x1,u['Inject'](s[_0x3e22ba(0x139)])),N(0x2,v[_0x3e22ba(0x1b8)]),N(0x3,u[_0x3e22ba(0x101)])],exports['MCPConnectionUIController']);function ye(_0x50f398){const {status$:_0x12830a,error$:_0x3472e4,onConfigure:_0x16370e,showClickable:_0x59ea4b}=_0x50f398;return function(){const _0x4f106a=_0x4786;return i[_0x4f106a(0xde)](W,{'status$':_0x12830a,'error$':_0x3472e4,'onConfigure':_0x16370e,'showClickable':_0x59ea4b});};}function Me(_0x12ceac){const _0x361836=_0x3e22ba;return{'id':b['id'],'type':v['MenuItemType'][_0x361836(0x85)],'icon':_0x361836(0x9c),'title':'mcpConfig.title','tooltip':_0x361836(0x1d9)};}const Ne={[v['RibbonStartGroup'][_0x3e22ba(0x147)]]:{[b['id']]:{'order':0xa,'menuItemFactory':Me}}};var be=Object[_0x3e22ba(0x102)],je=(_0x5dc66c,_0x36d669,_0x21634e,_0x4129c4)=>{for(var _0x5e239a=_0x4129c4>0x1?void 0x0:_0x4129c4?be(_0x36d669,_0x21634e):_0x36d669,_0x3ac7a6=_0x5dc66c['length']-0x1,_0x1c84af;_0x3ac7a6>=0x0;_0x3ac7a6--)(_0x1c84af=_0x5dc66c[_0x3ac7a6])&&(_0x5e239a=_0x1c84af(_0x5e239a)||_0x5e239a);return _0x5e239a;},z=(_0x8b783,_0x57b1cd)=>(_0x4b8b9d,_0x4daf05)=>_0x57b1cd(_0x4b8b9d,_0x4daf05,_0x8b783);exports[_0x3e22ba(0xb4)]=class extends u['Disposable']{constructor(_0xa48a30,_0x355d60){const _0x28861b=_0x3e22ba;super(),this[_0x28861b(0x10a)]=_0xa48a30,this[_0x28861b(0xb8)]=_0x355d60,this['_initializeCommands'](),this['_initializeMenus']();}[_0x3e22ba(0x1a6)](){const _0x1c66fa=_0x3e22ba;[b][_0x1c66fa(0x84)](_0x27ba55=>{const _0x4e116f=_0x1c66fa;this['disposeWithMe'](this[_0x4e116f(0x10a)][_0x4e116f(0x110)](_0x27ba55));});}[_0x3e22ba(0x1f5)](){const _0x5f2970=_0x3e22ba;this[_0x5f2970(0xb8)][_0x5f2970(0x1de)](Ne);}},exports['MCPUIMenuController']=je([z(0x0,u[_0x3e22ba(0x178)]),z(0x1,v[_0x3e22ba(0xf5)])],exports[_0x3e22ba(0xb4)]);const Ee={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x3e22ba(0x136),'connected':_0x3e22ba(0x86),'failed':_0x3e22ba(0x1e9),'retrying':_0x3e22ba(0x1bb),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x3e22ba(0x6f),'sessionOccupied':_0x3e22ba(0x13d),'networkError':_0x3e22ba(0xd6),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x3e22ba(0x12b),'clickToConfigure':_0x3e22ba(0x11d)},'mcpConfig':{'title':_0x3e22ba(0x1b1),'description':_0x3e22ba(0xed),'apiKey':_0x3e22ba(0x1b2),'apiKeyPlaceholder':_0x3e22ba(0x185),'apiKeyHint':_0x3e22ba(0x148),'enableAuth':_0x3e22ba(0x13e),'enableAuthHint':_0x3e22ba(0x95),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x3e22ba(0x1b5),'configStepTitle':_0x3e22ba(0x16c),'configStep1':_0x3e22ba(0xcd),'configStep2':_0x3e22ba(0x16a),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x3e22ba(0x142),'sessionIdDescription':_0x3e22ba(0x151),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x3e22ba(0x13a),'maxRetries':_0x3e22ba(0x1ee),'save':_0x3e22ba(0x1ce),'saving':_0x3e22ba(0x7b),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x3e22ba(0x7d),'configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x3e22ba(0xc8),'description':_0x3e22ba(0x80),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x3e22ba(0x1a8)},'validation':{'apiKeyRequired':_0x3e22ba(0xc3),'apiKeyTooShort':_0x3e22ba(0x116),'invalidConfig':_0x3e22ba(0x1cc),'invalidApiKey':_0x3e22ba(0xd2)},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':'Connected','failed':_0x3e22ba(0x160),'retrying':_0x3e22ba(0x18e)},'connectionError':{'unauthorized':_0x3e22ba(0x154),'sessionOccupied':_0x3e22ba(0x1c2),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},we={'mcpStatus':{'disconnected':_0x3e22ba(0x7e),'connecting':_0x3e22ba(0x119),'connected':_0x3e22ba(0x159),'failed':_0x3e22ba(0x111),'retrying':_0x3e22ba(0x12e),'unknown':_0x3e22ba(0x1d1),'unauthorized':_0x3e22ba(0x76),'sessionOccupied':_0x3e22ba(0xb1),'networkError':_0x3e22ba(0xf9),'maxRetriesExceeded':_0x3e22ba(0xc7),'clickToConnect':_0x3e22ba(0x100),'clickToConfigure':_0x3e22ba(0xdc)},'mcpConfig':{'title':'MCP\x20配置','description':_0x3e22ba(0xbc),'apiKey':_0x3e22ba(0x11c),'apiKeyPlaceholder':_0x3e22ba(0xe9),'apiKeyHint':_0x3e22ba(0x1aa),'enableAuth':_0x3e22ba(0xf7),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x3e22ba(0x8b),'mcpClientConfig':_0x3e22ba(0x8b),'configInstructions':_0x3e22ba(0x1cd),'configStepTitle':_0x3e22ba(0x150),'configStep1':_0x3e22ba(0x15b),'configStep2':_0x3e22ba(0x14a),'configStep3':_0x3e22ba(0x157),'sessionId':_0x3e22ba(0x16b),'sessionIdDescription':_0x3e22ba(0x198),'authorizationDescription':_0x3e22ba(0xa1),'configParameters':_0x3e22ba(0xae),'maxRetries':'最大重试次数','save':_0x3e22ba(0x1a1),'saving':_0x3e22ba(0x10c),'note1':_0x3e22ba(0xd9),'note2':_0x3e22ba(0x1be),'configSaved':_0x3e22ba(0x1a7),'configError':'配置保存失败','apiApplyInfo':{'title':_0x3e22ba(0xec),'description':_0x3e22ba(0x9a),'univerAiLabel':_0x3e22ba(0x140),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x3e22ba(0x1a2),'apiKeyTooShort':_0x3e22ba(0xc4),'invalidConfig':'配置无效','invalidApiKey':_0x3e22ba(0xbb)},'connectionStatus':{'disconnected':_0x3e22ba(0x174),'connecting':_0x3e22ba(0x15a),'connected':_0x3e22ba(0x1c7),'failed':_0x3e22ba(0x1ba),'retrying':_0x3e22ba(0x1f8)},'connectionError':{'unauthorized':_0x3e22ba(0x199),'sessionOccupied':_0x3e22ba(0x190),'networkError':_0x3e22ba(0x138),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var Ae=Object[_0x3e22ba(0xf2)],Oe=Object[_0x3e22ba(0x102)],De=(_0x3f139f,_0x2a7881,_0x4c265a)=>_0x2a7881 in _0x3f139f?Ae(_0x3f139f,_0x2a7881,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4c265a}):_0x3f139f[_0x2a7881]=_0x4c265a,Ue=(_0x299049,_0x4e68ed,_0x57cd54,_0x53a07d)=>{for(var _0x486be4=_0x53a07d>0x1?void 0x0:_0x53a07d?Oe(_0x4e68ed,_0x57cd54):_0x4e68ed,_0x4c831d=_0x299049['length']-0x1,_0x4e7d04;_0x4c831d>=0x0;_0x4c831d--)(_0x4e7d04=_0x299049[_0x4c831d])&&(_0x486be4=_0x4e7d04(_0x486be4)||_0x486be4);return _0x486be4;},y=(_0x332f61,_0x2f3e8f)=>(_0x32690a,_0x5ef908)=>_0x2f3e8f(_0x32690a,_0x5ef908,_0x332f61),$e=(_0x36bb1c,_0x2205f9,_0x5db23f)=>De(_0x36bb1c,_0x2205f9+'',_0x5db23f);exports['UniverMCPUIPlugin']=class extends u['Plugin']{constructor(_0x41c0cc=L,_0x14d7b5,_0x2b7e81,_0x19aad6,_0x58c57d,_0x2d7384){const _0x21111b=_0x3e22ba;super(),this[_0x21111b(0x12a)]=_0x41c0cc,this[_0x21111b(0xbe)]=_0x14d7b5,this['_configService']=_0x2b7e81,this['_uiPartsService']=_0x19aad6,this[_0x21111b(0x10d)]=_0x58c57d,this[_0x21111b(0x167)]=_0x2d7384;const {..._0x1082ce}=u[_0x21111b(0x14c)]({},L,this[_0x21111b(0x12a)]);this['_configService'][_0x21111b(0x15f)](P,_0x1082ce);}async[_0x3e22ba(0xaf)](){const _0x5d2d77=_0x3e22ba,_0x196e2b=[[exports[_0x5d2d77(0x97)]],[exports[_0x5d2d77(0x14f)]],[exports['MCPUIMenuController']]];this[_0x5d2d77(0xbe)][_0x5d2d77(0x143)](A[_0x5d2d77(0x1ab)])||_0x196e2b[_0x5d2d77(0x19e)]([A['ISocketService'],{'useClass':A[_0x5d2d77(0xc5)]}]),_0x196e2b[_0x5d2d77(0x84)](_0x2051b3=>this[_0x5d2d77(0xbe)][_0x5d2d77(0x127)](_0x2051b3)),this[_0x5d2d77(0xbe)][_0x5d2d77(0x1da)](exports[_0x5d2d77(0x97)]),this[_0x5d2d77(0xbe)][_0x5d2d77(0x1da)](exports[_0x5d2d77(0x14f)]),this[_0x5d2d77(0xbe)][_0x5d2d77(0x1da)](exports[_0x5d2d77(0xb4)]);}},$e(exports[_0x3e22ba(0x83)],'pluginName',_0x3e22ba(0x99)),exports[_0x3e22ba(0x83)]=Ue([u['DependentOn'](s[_0x3e22ba(0xdb)]),y(0x1,u['Inject'](u[_0x3e22ba(0xee)])),y(0x2,u[_0x3e22ba(0x101)]),y(0x3,v['IUIPartsService']),y(0x4,u[_0x3e22ba(0x9b)]),y(0x5,u[_0x3e22ba(0x18b)](u['LocaleService']))],exports[_0x3e22ba(0x83)]),exports['MCPConfigPanel']=V,exports[_0x3e22ba(0x18c)]=W,exports[_0x3e22ba(0x18f)]=b,exports[_0x3e22ba(0xa5)]=Ee,exports['zhCN']=we;
1
+ 'use strict';const _0x54e4df=_0x237e;(function(_0x2a26b2,_0x151cac){const _0x40aa93=_0x237e,_0x264673=_0x2a26b2();while(!![]){try{const _0x48f744=parseInt(_0x40aa93(0x17e))/0x1*(-parseInt(_0x40aa93(0x2be))/0x2)+parseInt(_0x40aa93(0x1e2))/0x3*(parseInt(_0x40aa93(0x259))/0x4)+parseInt(_0x40aa93(0x1b1))/0x5+parseInt(_0x40aa93(0x2ab))/0x6*(parseInt(_0x40aa93(0x220))/0x7)+parseInt(_0x40aa93(0x1c5))/0x8*(-parseInt(_0x40aa93(0x24d))/0x9)+parseInt(_0x40aa93(0x158))/0xa+parseInt(_0x40aa93(0x2c7))/0xb;if(_0x48f744===_0x151cac)break;else _0x264673['push'](_0x264673['shift']());}catch(_0x3fca4f){_0x264673['push'](_0x264673['shift']());}}}(_0x4a78,0xee153));function _0x4a78(){const _0x5d05e3=['4362330WwzOfn','MCP:\x20会话\x20ID\x20已被占用','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','API\x20密钥长度至少需要\x2010\x20位','_handleConfigSave','MCP\x20Client\x20Configuration','MCP\x20客户端配置','univer-text-white','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','MCP\x20Connection\x20Failed','mergeMenu','Input','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','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','_initializeCommands','univer-flex\x20univer-items-start\x20univer-gap-3','MCP\x20连接失败','register','mcpConfig.connectionStatus.connecting','Session\x20ID','url(#off-line-icon_clip0_910_343)','univer-text-gray-400','button','removeItem','clsx','mcpConfig.configStep1','univer-text-gray-500','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','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','API\x20密钥无效,请检查密钥是否正确','mcpConfig.configInstructions','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','mcpConfig.configStepTitle','OTHERS','_apiKey$','xlink:href','show','mcpStatus.maxRetriesExceeded','1294kqKEfU','mcpConfig.connectionError.networkError','复制以下\x20JSON\x20配置','toString','_messageService','mcpStatus.failed','string','univer-shrink-0\x20univer-text-red-500','connectInjector','超出最大重试次数,请稍后再试','on-line-icon','univer-text-red-500','MCPConnectionController','value','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','Button','_mcpConnectionController','RETRYING','SESSION_ID_OCCUPIED','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.','Failed\x20to\x20save\x20configuration','MCPConfigUIController','close-icon','_config$','random','univer-text-xs\x20univer-text-gray-600','UniverMCPPlugin','MCP_UI_PLUGIN','最大重试次数','mcpStatus.connecting','MCPStatusDisplay','help-icon','mcpStatus.sessionOccupied','mcpConfig.configStep2','ISocketService','off','univer-text-xs\x20univer-text-gray-500','配置\x20MCP\x20使用\x20AI\x20操作电子表格','univerjs-icon\x20univerjs-icon-','none','pluginName','Enter\x20your\x20API\x20key','evenodd','BehaviorSubject','mcpStatus.disconnected','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','mcpConfig.apiKeyHint','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','NONE','currentColor','553155qYXlaB','CONNECTING','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','forEach','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','MCP\x20已断开','FAILED','Enable\x20authentication\x20for\x20secure\x20connections','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','会话ID','_initAutoConnect','next','white','http://www.w3.org/2000/svg','_logService','warn','mcpConfig.configStep3','Configuration\x20Parameters:','511384dEeCXu','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','IDialogService','univer-flex-1','<API_KEY>','带有\x20Bearer\x20前缀的\x20API\x20密钥。','Inject','subscribeConfigValue$','_createConfigPanelComponent','Authorization:','Max\x20Retries','UniverMCPUIPlugin','replace','启用身份验证','MCP_PLUGIN_CONFIG_KEY','tag','连接中...','_injector','Injector','mcpConfig.note2','mcpConfig.apiKeyPlaceholder','univer-space-y-2','mcpConfig.note1','_registerComponent','MessageType','has','_localStorageService','配置保存成功','CommandType','33531duRKmx','length','colorChannel1','univer-size-2\x20univer-rounded-full','validateApiKey','您的\x20API\x20密钥将在此浏览器中本地存储','trim','MenuItemType','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','Success','Univer\x20AI\x20Console','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','close','push','isValid','mcpConfig.configSaved','includes','保存配置','MAX_RETRIES_EXCEEDED','subscribe','_validateConfig','disposeWithMe','ILogService','MCP:\x20网络错误','mcpConfig.connectionError.unauthorized','MCPUIMenuController','mcpStatus.clickToConnect','univer-text-sm\x20univer-text-gray-500','MCP\x20状态未知','children','mcpConfig.connectionInfo','useRef','IUIPartsService','您的\x20API\x20密钥安全存储在本地存储中','_initStatusComponent','Save\x20Configuration','Connecting...','_uiPartsService','enableAutoConnect','API\x20key\x20is\x20required','connectionStatus$','text','connectionError$','univer-flex\x20univer-flex-wrap\x20univer-gap-2','apiKey','fill','IMessageService','配置参数:','error','MCPConnectionError','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','_mcpCoreConfig$','MCP\x20已连接','网络连接错误,请检查您的网络连接','on-line-icon_clip0_910_349','univer.ai','Invalid\x20configuration','Configuration\x20Notes:','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','_handleConfigure','showConfigPanel','105dziVQR','setItem','univer-size-4','https://console.univer.plus','_loading$','mcpStatus.networkError','MCP\x20Unknown\x20Status','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','getCurrentConfig','1em','MCPConnectionStatus','current','mcpConfig.saving','MCP\x20连接中...','API\x20密钥不能为空','idSuffix','_dialogService','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','_commandService','_localeService','\x20-\x20','0\x200\x2017\x2016','<SESSION_ID>','点击配置\x20MCP','mcpConfig.apiApplyInfo.title','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','重启您的\x20MCP\x20客户端以使配置生效','UNAUTHORIZED','CONNECTED','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','MCP\x20Disconnected','useState','get','OnLineIcon','将以下配置添加到您的\x20MCP\x20客户端设置中:','LocaleService','mcpStatus.unauthorized','Click\x20to\x20configure\x20MCP','univer-bg-green-500','jsx','DISCONNECTED','round','MCP\x20Configuration','_loadStoredApiKey','mcpConfig.apiApplyInfo.description','9qheJrd','translate(.97)','配置步骤:','attrs','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','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','mcpStatus.unknown','0\x200\x2016\x2016','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer-bg-blue-500','_blank','onStarting','272PaAmjV','mcpConfig.authorizationDescription','defs','MenuIcon','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','配置保存失败','CheckMarkIcon','mcpConfig.sessionIdDescription','add','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Disposable','errorMessage','substring','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','_configService','__setCustomHeaders','symbol','会话\x20ID\x20已被占用,请稍后再试','getOwnPropertyDescriptor','_config','registerCommand','univer-space-y-5','Copy\x20the\x20JSON\x20configuration\x20below','Retrying...','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','mcpConfig.connectionError.sessionOccupied','CloseIcon','BUTTON','Connection\x20Failed','univer-text-blue-600','Univer\x20AI\x20控制台','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','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','MCPConfigPanel','请输入您的\x20API\x20密钥','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','What\x20is\x20API\x20Key?','mcpConfig.apiKey','clipPath','_initializeMenus','MCP:\x20超出最大重试次数','MCP:\x20Max\x20Retries\x20Exceeded','univer_session_id:','mask','univer-bg-gray-500','univer-space-y-4','getConfig','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','bottom','_componentManager','mcpConfig.validation.apiKeyRequired','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','已连接','defineProperty','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','配置更改将立即生效','univer-min-w-0\x20univer-flex-1','mcp-config-dialog','mcpServerUrl','useCallback','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','useDependency','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','mcpConfig.validation.apiKeyTooShort','未连接','univer-shrink-0\x20univer-text-blue-500','path','mcp-ui.config','ICommandService','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','noopener\x20noreferrer','jsxs','toStringTag','MCPConnectionUIController','WebSocketService','Saving...','Error','mcpConfig.title','div','open','376182poCESQ','displayName','BuiltInUIPart','univer-font-medium','Configuration\x20saved\x20successfully','https://console.univer.ai','MCP\x20Connected','entries','sessionId$','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','Click\x20to\x20connect\x20MCP','createElement','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-flex\x20univer-items-center\x20univer-gap-2','UniverIcon','enUS','forwardRef','DependentOn','\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','2738cVRsJZ','url(#$1','MCP\x20Retrying...','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','MCP:\x20Network\x20Error','配置无效','Configuration\x20Steps:','mcpConfig.configParameters','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','6195651TecMDq','showDeveloperTools','svg','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','check-mark-icon','_connectionController','NETWORK_ERROR','registerComponent','setConfig','univer.plus','url(#on-line-icon_clip0_910_349)','Tooltip','getItem','将配置添加到您的\x20MCP\x20客户端设置文件中','pre','assign','univer-space-y-3','mcpStatus.connected','use','点击连接\x20MCP','useObservable','off-line-icon_clip0_910_343','span','IConfigService','showStatus','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','Bearer\x20'];_0x4a78=function(){return _0x5d05e3;};return _0x4a78();}var ae=Object[_0x54e4df(0x28f)],le=(_0x362c85,_0x1b1717,_0x29a6d1)=>_0x1b1717 in _0x362c85?ae(_0x362c85,_0x1b1717,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x29a6d1}):_0x362c85[_0x1b1717]=_0x29a6d1,I=(_0x2d67a4,_0x1c576b,_0x3182e5)=>le(_0x2d67a4,typeof _0x1c576b!=_0x54e4df(0x269)?_0x1c576b+'':_0x1c576b,_0x3182e5);Object[_0x54e4df(0x28f)](exports,Symbol[_0x54e4df(0x2a3)],{'value':'Module'});const u=require('@univerjs/core'),i=require('react/jsx-runtime'),s=require('@univerjs-pro/mcp'),f=require('@univerjs/design'),v=require('@univerjs/ui'),M=require('rxjs'),d=require('react'),A=require('@univerjs/network');function _({ref:_0x2f07ad,..._0x3a7cdd}){const _0x12d303=_0x54e4df,{icon:_0x3b3799,id:_0x2e5e54,className:_0x59c8a7,extend:_0x830178,..._0x541a1f}=_0x3a7cdd,_0x253f85=(_0x12d303(0x1a5)+_0x2e5e54+'\x20'+(_0x59c8a7||''))[_0x12d303(0x1e8)](),_0x285998=d[_0x12d303(0x201)]('_'+de());return G(_0x3b3799,''+_0x2e5e54,{'defIds':_0x3b3799['defIds'],'idSuffix':_0x285998[_0x12d303(0x22b)]},{'ref':_0x2f07ad,'className':_0x253f85,..._0x541a1f},_0x830178);}function G(_0x19577c,_0x58882f,_0x3d091f,_0xe590e0,_0x32498d){const _0x137e4c=_0x54e4df;return d[_0x137e4c(0x2b6)](_0x19577c[_0x137e4c(0x1d4)],{'key':_0x58882f,...ue(_0x19577c,_0x3d091f,_0x32498d),..._0xe590e0},(ve(_0x19577c,_0x3d091f)[_0x137e4c(0x1ff)]||[])['map']((_0x20d715,_0x52b628)=>G(_0x20d715,_0x58882f+'-'+_0x19577c[_0x137e4c(0x1d4)]+'-'+_0x52b628,_0x3d091f,void 0x0,_0x32498d)));}function ue(_0x39c9f1,_0x17a998,_0x530abe){const _0x36f126=_0x54e4df,_0x2ce897={..._0x39c9f1[_0x36f126(0x250)]};_0x530abe!=null&&_0x530abe[_0x36f126(0x1e4)]&&_0x2ce897[_0x36f126(0x20f)]===_0x36f126(0x1e4)&&(_0x2ce897['fill']=_0x530abe['colorChannel1']),_0x39c9f1['tag']===_0x36f126(0x285)&&_0x2ce897['id']&&(_0x2ce897['id']=_0x2ce897['id']+_0x17a998[_0x36f126(0x22f)]),Object[_0x36f126(0x2b2)](_0x2ce897)['forEach'](([_0x6ab00,_0xedd3d5])=>{const _0x319b38=_0x36f126;_0x6ab00===_0x319b38(0x285)&&typeof _0xedd3d5==_0x319b38(0x184)&&(_0x2ce897[_0x6ab00]=_0xedd3d5[_0x319b38(0x1d1)](/url\(#(.*)\)/,_0x319b38(0x2bf)+_0x17a998['idSuffix']+')'));});const {defIds:_0x3d7ade}=_0x17a998;return!_0x3d7ade||_0x3d7ade[_0x36f126(0x1e3)]===0x0||(_0x39c9f1[_0x36f126(0x1d4)]===_0x36f126(0x2d9)&&_0x2ce897[_0x36f126(0x17b)]&&(_0x2ce897[_0x36f126(0x17b)]=_0x2ce897[_0x36f126(0x17b)]+_0x17a998[_0x36f126(0x22f)]),Object[_0x36f126(0x2b2)](_0x2ce897)['forEach'](([_0x1d6a3a,_0x481f67])=>{const _0x38aca1=_0x36f126;typeof _0x481f67=='string'&&(_0x2ce897[_0x1d6a3a]=_0x481f67[_0x38aca1(0x1d1)](/url\(#(.*)\)/,_0x38aca1(0x2bf)+_0x17a998[_0x38aca1(0x22f)]+')'));})),_0x2ce897;}function ve(_0x325f4c,_0x4eb73e){const _0x419dde=_0x54e4df;var _0x1a4135;const {defIds:_0x2bc0da}=_0x4eb73e;return!_0x2bc0da||_0x2bc0da[_0x419dde(0x1e3)]===0x0?_0x325f4c:_0x325f4c[_0x419dde(0x1d4)]===_0x419dde(0x25b)&&((_0x1a4135=_0x325f4c[_0x419dde(0x1ff)])!=null&&_0x1a4135[_0x419dde(0x1e3)])?{..._0x325f4c,'children':_0x325f4c[_0x419dde(0x1ff)]['map'](_0xb81d04=>typeof _0xb81d04[_0x419dde(0x250)]['id']=='string'&&_0x2bc0da&&_0x2bc0da[_0x419dde(0x1f2)](_0xb81d04[_0x419dde(0x250)]['id'])?{..._0xb81d04,'attrs':{..._0xb81d04['attrs'],'id':_0xb81d04[_0x419dde(0x250)]['id']+_0x4eb73e[_0x419dde(0x22f)]}}:_0xb81d04)}:_0x325f4c;}function de(){const _0x4a0d28=_0x54e4df;return Math[_0x4a0d28(0x197)]()[_0x4a0d28(0x181)](0x24)[_0x4a0d28(0x265)](0x2,0x8);}_[_0x54e4df(0x2ac)]=_0x54e4df(0x2b9);const Ce={'tag':'svg','attrs':{'xmlns':_0x54e4df(0x1c0),'fill':_0x54e4df(0x1a6),'viewBox':'0\x200\x2016\x2016','width':_0x54e4df(0x229),'height':'1em'},'children':[{'tag':_0x54e4df(0x29d),'attrs':{'fill':_0x54e4df(0x1b0),'d':_0x54e4df(0x173),'fillRule':'evenodd','clipRule':_0x54e4df(0x1a9)}}]},H=d['forwardRef'](function(_0x536b14,_0xf4af69){const _0x4c0f91=_0x54e4df;return d[_0x4c0f91(0x2b6)](_,Object[_0x4c0f91(0x2d6)]({},_0x536b14,{'id':_0x4c0f91(0x2cb),'ref':_0xf4af69,'icon':Ce}));});H[_0x54e4df(0x2ac)]=_0x54e4df(0x25f);const ge={'tag':_0x54e4df(0x2c9),'attrs':{'xmlns':_0x54e4df(0x1c0),'fill':'none','viewBox':_0x54e4df(0x254),'width':_0x54e4df(0x229),'height':_0x54e4df(0x229)},'children':[{'tag':_0x54e4df(0x29d),'attrs':{'fill':_0x54e4df(0x1b0),'d':_0x54e4df(0x279)}}]},B=d[_0x54e4df(0x2bb)](function(_0x3edaa5,_0x102f2d){const _0x2e0a1f=_0x54e4df;return d[_0x2e0a1f(0x2b6)](_,Object['assign']({},_0x3edaa5,{'id':_0x2e0a1f(0x195),'ref':_0x102f2d,'icon':ge}));});B['displayName']=_0x54e4df(0x273);const fe={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x54e4df(0x1a6),'viewBox':_0x54e4df(0x254),'width':_0x54e4df(0x229),'height':_0x54e4df(0x229)},'children':[{'tag':_0x54e4df(0x29d),'attrs':{'fill':_0x54e4df(0x1b0),'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':_0x54e4df(0x29d),'attrs':{'fill':'currentColor','d':'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'}},{'tag':_0x54e4df(0x29d),'attrs':{'fill':'currentColor','d':_0x54e4df(0x2b7),'fillRule':_0x54e4df(0x1a9),'clipRule':_0x54e4df(0x1a9)}}]},F=d[_0x54e4df(0x2bb)](function(_0x577faf,_0x469b38){const _0x3b225f=_0x54e4df;return d[_0x3b225f(0x2b6)](_,Object[_0x3b225f(0x2d6)]({},_0x577faf,{'id':_0x3b225f(0x19e),'ref':_0x469b38,'icon':fe}));});F[_0x54e4df(0x2ac)]='HelpIcon';const pe={'tag':'svg','attrs':{'xmlns':_0x54e4df(0x1c0),'fill':_0x54e4df(0x1a6),'viewBox':_0x54e4df(0x254),'width':_0x54e4df(0x229),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x54e4df(0x16c)},'children':[{'tag':_0x54e4df(0x29d),'attrs':{'stroke':'currentColor','d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x54e4df(0x249),'strokeLinejoin':_0x54e4df(0x249),'strokeWidth':1.2}}]},{'tag':_0x54e4df(0x25b),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x54e4df(0x152)},'children':[{'tag':_0x54e4df(0x29d),'attrs':{'fill':'white','d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-icon_clip0_910_343']},Y=d[_0x54e4df(0x2bb)](function(_0x5df621,_0x180ed6){const _0x4aba56=_0x54e4df;return d[_0x4aba56(0x2b6)](_,Object[_0x4aba56(0x2d6)]({},_0x5df621,{'id':'off-line-icon','ref':_0x180ed6,'icon':pe}));});Y[_0x54e4df(0x2ac)]='OffLineIcon';const he={'tag':_0x54e4df(0x2c9),'attrs':{'xmlns':_0x54e4df(0x1c0),'fill':_0x54e4df(0x1a6),'viewBox':_0x54e4df(0x235),'width':_0x54e4df(0x229),'height':_0x54e4df(0x229)},'children':[{'tag':'g','attrs':{'clipPath':_0x54e4df(0x2d1)},'children':[{'tag':_0x54e4df(0x29d),'attrs':{'stroke':'currentColor','d':_0x54e4df(0x252),'strokeLinecap':_0x54e4df(0x249),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x54e4df(0x280),'attrs':{'id':_0x54e4df(0x219)},'children':[{'tag':_0x54e4df(0x29d),'attrs':{'fill':_0x54e4df(0x1bf),'d':'M0\x200H16V16H0z','transform':_0x54e4df(0x24e)}}]}]}],'defIds':[_0x54e4df(0x219)]},q=d[_0x54e4df(0x2bb)](function(_0x5fcc3f,_0x549150){const _0x44d957=_0x54e4df;return d[_0x44d957(0x2b6)](_,Object['assign']({},_0x5fcc3f,{'id':_0x44d957(0x188),'ref':_0x549150,'icon':he}));});q[_0x54e4df(0x2ac)]=_0x54e4df(0x241);function V(_0x33aaec){const _0x508857=_0x54e4df;var _0x1fdb90,_0x4f5f5a;const {mcpCoreConfig:_0x4bff8,onSave:_0x2be63e,loading:_0xbfa26f=!0x1,config:_0x30927e,connectionStatus$:_0x2103f8,connectionError$:_0x4c9781,currentApiKey$:_0x4b1387,currentSessionId$:_0x2deb86}=_0x33aaec,_0x2b83f9=v['useDependency'](u[_0x508857(0x243)]),_0x25d483=v['useObservable'](_0x2103f8,s[_0x508857(0x22a)]['DISCONNECTED']),_0x51d2ad=v[_0x508857(0x151)](_0x4c9781,s[_0x508857(0x213)][_0x508857(0x1af)]),_0x31b3cc=v[_0x508857(0x151)](_0x2deb86,''),_0x17a63a=v[_0x508857(0x151)](_0x4b1387,''),[_0x27ee59,_0x5b427d]=d[_0x508857(0x23f)](_0x17a63a||''),_0x3773d7=!0x0,_0x3cd891=_0x30927e['showDeveloperTools']&&_0x4bff8['mcpServerUrl']&&(_0x4bff8[_0x508857(0x294)]['includes'](_0x508857(0x2d0))||_0x4bff8[_0x508857(0x294)][_0x508857(0x1f2)](_0x508857(0x21a))),_0x2f39a3=(_0x1fdb90=_0x4bff8[_0x508857(0x294)])==null?void 0x0:_0x1fdb90[_0x508857(0x1f2)]('univer.plus'),_0x409839=(_0x4f5f5a=_0x4bff8[_0x508857(0x294)])==null?void 0x0:_0x4f5f5a[_0x508857(0x1f2)]('univer.ai'),_0x43a985=_0x2f39a3?_0x508857(0x223):_0x508857(0x2b0),_0xfcbad7=_0x30927e[_0x508857(0x2c8)]&&(_0x2f39a3||_0x409839),[_0x305776,_0x31ae12]=d[_0x508857(0x23f)](!_0x27ee59[_0x508857(0x1e8)]()),_0x10bfcc=(_0x2ec74d,_0x5dae93)=>{const _0x50de2c=_0x508857;if(_0x5dae93===s['MCPConnectionError'][_0x50de2c(0x23b)])return _0x50de2c(0x1b7);switch(_0x2ec74d){case s[_0x50de2c(0x22a)][_0x50de2c(0x23c)]:return _0x50de2c(0x2b4);case s['MCPConnectionStatus'][_0x50de2c(0x1b2)]:case s['MCPConnectionStatus'][_0x50de2c(0x18f)]:return'univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200';case s[_0x50de2c(0x22a)][_0x50de2c(0x1b9)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return _0x50de2c(0x2a0);}},_0x48f0d7=(_0x2c5584,_0x5853cf)=>{const _0x3a6961=_0x508857;if(_0x5853cf===s[_0x3a6961(0x213)][_0x3a6961(0x23b)])return'univer-bg-red-500';switch(_0x2c5584){case s[_0x3a6961(0x22a)]['CONNECTED']:return _0x3a6961(0x246);case s[_0x3a6961(0x22a)][_0x3a6961(0x1b2)]:case s[_0x3a6961(0x22a)][_0x3a6961(0x18f)]:return _0x3a6961(0x256);case s[_0x3a6961(0x22a)]['FAILED']:return'univer-bg-red-500';default:return _0x3a6961(0x286);}},_0x56c105=_0x22fe87=>{const _0x471624=_0x508857;switch(_0x22fe87){case s[_0x471624(0x22a)]['CONNECTED']:return _0x2b83f9['t']('mcpConfig.connectionStatus.connected');case s[_0x471624(0x22a)]['CONNECTING']:return _0x2b83f9['t'](_0x471624(0x16a));case s[_0x471624(0x22a)][_0x471624(0x1b9)]:return _0x2b83f9['t']('mcpConfig.connectionStatus.failed');case s[_0x471624(0x22a)][_0x471624(0x18f)]:return _0x2b83f9['t']('mcpConfig.connectionStatus.retrying');default:return _0x2b83f9['t']('mcpConfig.connectionStatus.disconnected');}},_0xae08e4=_0x11017e=>{const _0x56b3f4=_0x508857;switch(_0x11017e){case s['MCPConnectionError']['UNAUTHORIZED']:return _0x2b83f9['t'](_0x56b3f4(0x1fa));case s[_0x56b3f4(0x213)][_0x56b3f4(0x190)]:return _0x2b83f9['t'](_0x56b3f4(0x272));case s[_0x56b3f4(0x213)][_0x56b3f4(0x2cd)]:return _0x2b83f9['t'](_0x56b3f4(0x17f));case s[_0x56b3f4(0x213)][_0x56b3f4(0x1f4)]:return _0x2b83f9['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x5b9a12=d[_0x508857(0x295)](()=>{const _0x12a155=_0x508857,_0x1a0377={..._0x4bff8,'apiKey':_0x27ee59[_0x12a155(0x1e8)](),'enableAuth':_0x3773d7};_0x2be63e(_0x1a0377);},[_0x4bff8,_0x27ee59,_0x3773d7,_0x2be63e]),_0xe77a03=_0x27ee59[_0x508857(0x1e8)]()[_0x508857(0x1e3)]>0x0;return i['jsxs'](_0x508857(0x2a9),{'className':_0x508857(0x156),'children':[i[_0x508857(0x247)](_0x508857(0x2a9),{'className':_0x508857(0x1b3),'children':i[_0x508857(0x2a2)](_0x508857(0x2a9),{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[i['jsx'](_0x508857(0x2a9),{'className':_0x508857(0x160),'children':i[_0x508857(0x247)](_0x508857(0x153),{'className':_0x508857(0x15f),'children':'⚙'})}),i[_0x508857(0x247)](_0x508857(0x2a9),{'children':i[_0x508857(0x247)]('p',{'className':_0x508857(0x1fd),'children':_0x2b83f9['t']('mcpConfig.description')})})]})}),i[_0x508857(0x2a2)](_0x508857(0x2a9),{'className':_0x508857(0x1b4),'children':[i[_0x508857(0x247)](_0x508857(0x2a9),{'className':f[_0x508857(0x170)]('univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2',_0x10bfcc(_0x25d483,_0x51d2ad)),'children':i[_0x508857(0x2a2)]('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x508857(0x247)]('div',{'className':f[_0x508857(0x170)](_0x508857(0x1e5),_0x48f0d7(_0x25d483,_0x51d2ad))}),i[_0x508857(0x247)](_0x508857(0x153),{'className':'univer-text-sm\x20univer-font-medium','children':_0x56c105(_0x25d483)})]})}),_0x51d2ad!==s[_0x508857(0x213)][_0x508857(0x1af)]&&(_0x25d483===s[_0x508857(0x22a)][_0x508857(0x1b9)]||_0x51d2ad===s['MCPConnectionError']['UNAUTHORIZED'])&&i[_0x508857(0x247)](_0x508857(0x2a9),{'className':_0x508857(0x27d),'children':i[_0x508857(0x2a2)](_0x508857(0x2a9),{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[i[_0x508857(0x247)](_0x508857(0x153),{'className':_0x508857(0x185),'children':'⚠️'}),i[_0x508857(0x247)]('p',{'className':_0x508857(0x1ea),'children':_0xae08e4(_0x51d2ad)})]})})]}),i[_0x508857(0x247)](_0x508857(0x2a9),{'className':_0x508857(0x271),'children':i[_0x508857(0x2a2)](_0x508857(0x2a9),{'className':_0x508857(0x26e),'children':[i[_0x508857(0x2a2)](_0x508857(0x2a9),{'className':_0x508857(0x1da),'children':[i[_0x508857(0x2a2)]('label',{'className':_0x508857(0x2c1),'children':[i[_0x508857(0x247)](_0x508857(0x153),{'children':'🔑'}),'\x20',_0x2b83f9['t'](_0x508857(0x27f)),i[_0x508857(0x247)](_0x508857(0x153),{'className':_0x508857(0x189),'children':'*'}),_0x3cd891&&i[_0x508857(0x247)]('a',{'className':_0x508857(0x2c6),'title':_0x2b83f9['t'](_0x508857(0x238)),'role':_0x508857(0x16e),'onClick':()=>_0x31ae12(!0x0),'children':i['jsx'](F,{})})]}),i[_0x508857(0x247)](f[_0x508857(0x163)],{'type':_0x508857(0x20b),'placeholder':_0x2b83f9['t'](_0x508857(0x1d9)),'value':_0x27ee59,'disabled':_0xbfa26f,'autoComplete':_0x508857(0x1a2),'onChange':_0x5b427d}),i['jsx']('p',{'className':_0x508857(0x1a3),'children':_0x2b83f9['t'](_0x508857(0x1ad))})]}),_0x3cd891&&_0x305776&&i[_0x508857(0x2a2)](_0x508857(0x2a9),{'className':_0x508857(0x1bb),'children':[i[_0x508857(0x247)]('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':_0x508857(0x16e),'onClick':()=>_0x31ae12(!0x1),'children':i[_0x508857(0x247)](B,{'className':_0x508857(0x222)})}),i['jsxs'](_0x508857(0x2a9),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[i[_0x508857(0x247)]('div',{'className':_0x508857(0x27c),'children':i[_0x508857(0x247)](_0x508857(0x153),{'className':_0x508857(0x276),'children':'🚀'})}),i['jsxs'](_0x508857(0x2a9),{'className':_0x508857(0x1c8),'children':[i['jsx']('h4',{'className':_0x508857(0x255),'children':_0x2b83f9['t']('mcpConfig.apiApplyInfo.title')}),i[_0x508857(0x247)]('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x2b83f9['t'](_0x508857(0x24c))}),i[_0x508857(0x247)](_0x508857(0x2a9),{'className':_0x508857(0x20d),'children':_0xfcbad7&&i[_0x508857(0x2a2)]('a',{'className':_0x508857(0x289),'href':_0x43a985,'target':_0x508857(0x257),'rel':_0x508857(0x2a1),'children':[i[_0x508857(0x247)](_0x508857(0x153),{'children':'🤖'}),_0x2b83f9['t']('mcpConfig.apiApplyInfo.univerAiLabel'),i[_0x508857(0x247)](_0x508857(0x153),{'className':_0x508857(0x16d),'children':'↗'})]})}),i['jsxs'](_0x508857(0x2a9),{'className':_0x508857(0x15a),'children':['✨','\x20',_0x2b83f9['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x30927e[_0x508857(0x2c8)]&&i[_0x508857(0x2a2)](_0x508857(0x2a9),{'className':_0x508857(0x23d),'children':[i[_0x508857(0x2a2)]('h4',{'className':_0x508857(0x215),'children':[i['jsx'](_0x508857(0x153),{'children':'🔗'}),'\x20',_0x2b83f9['t'](_0x508857(0x200))]}),i['jsxs'](_0x508857(0x2a9),{'className':_0x508857(0x287),'children':[i[_0x508857(0x2a2)](_0x508857(0x2a9),{'className':_0x508857(0x2d7),'children':[i[_0x508857(0x247)]('p',{'className':_0x508857(0x198),'children':_0x2b83f9['t'](_0x508857(0x176))}),i[_0x508857(0x2a2)]('div',{'className':_0x508857(0x1da),'children':[i['jsx'](_0x508857(0x2a9),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x2b83f9['t'](_0x508857(0x178))}),i[_0x508857(0x2a2)](_0x508857(0x2a9),{'className':_0x508857(0x25d),'children':[i['jsxs']('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x508857(0x247)]('span',{'className':_0x508857(0x165),'children':'1'}),_0x2b83f9['t'](_0x508857(0x171))]}),i['jsxs'](_0x508857(0x2a9),{'className':_0x508857(0x2b8),'children':[i[_0x508857(0x247)](_0x508857(0x153),{'className':_0x508857(0x165),'children':'2'}),_0x2b83f9['t'](_0x508857(0x1a0))]}),i[_0x508857(0x2a2)](_0x508857(0x2a9),{'className':_0x508857(0x2b8),'children':[i[_0x508857(0x247)](_0x508857(0x153),{'className':_0x508857(0x165),'children':'3'}),_0x2b83f9['t'](_0x508857(0x1c3))]})]})]})]}),i[_0x508857(0x2a2)](_0x508857(0x2a9),{'className':_0x508857(0x1da),'children':[i[_0x508857(0x247)](_0x508857(0x2a9),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':'MCP\x20Configuration'}),i['jsx'](_0x508857(0x2a9),{'className':_0x508857(0x28d),'children':i['jsx'](_0x508857(0x2d5),{'className':_0x508857(0x299),'children':JSON['stringify']({'mcpServers':{'univer':{'url':'https://mcp.univer.ai/mcp/?univer_session_id='+(_0x31b3cc||_0x508857(0x236)),'type':'http','headers':{'Authorization':_0x508857(0x157)+(_0x27ee59||_0x508857(0x1c9))}}}},null,0x2)})})]}),i['jsxs']('div',{'className':'univer-space-y-3','children':[i[_0x508857(0x247)](_0x508857(0x2a9),{'className':_0x508857(0x296),'children':_0x2b83f9['t'](_0x508857(0x2c5))}),i[_0x508857(0x2a2)](_0x508857(0x2a9),{'className':_0x508857(0x1da),'children':[i['jsxs']('div',{'className':_0x508857(0x167),'children':[i[_0x508857(0x247)](_0x508857(0x2a9),{'className':_0x508857(0x251)}),i[_0x508857(0x2a2)](_0x508857(0x2a9),{'className':_0x508857(0x292),'children':[i[_0x508857(0x247)](_0x508857(0x2a9),{'className':_0x508857(0x227),'children':_0x508857(0x284)}),i[_0x508857(0x247)](_0x508857(0x2a9),{'className':_0x508857(0x1a3),'children':_0x2b83f9['t'](_0x508857(0x260))})]})]}),i[_0x508857(0x2a2)]('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[i[_0x508857(0x247)](_0x508857(0x2a9),{'className':_0x508857(0x251)}),i['jsxs'](_0x508857(0x2a9),{'className':'univer-min-w-0\x20univer-flex-1','children':[i[_0x508857(0x247)](_0x508857(0x2a9),{'className':_0x508857(0x227),'children':_0x508857(0x1ce)}),i[_0x508857(0x247)]('div',{'className':_0x508857(0x1a3),'children':_0x2b83f9['t'](_0x508857(0x25a))})]})]})]})]})]})]}),i[_0x508857(0x247)](f[_0x508857(0x18d)],{'onClick':_0x5b9a12,'disabled':!_0xe77a03||_0xbfa26f,'className':_0x508857(0x21d),'children':_0xbfa26f?i[_0x508857(0x2a2)](_0x508857(0x153),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i['jsx'](_0x508857(0x153),{'children':'⟲'}),_0x2b83f9['t'](_0x508857(0x22c))]}):i[_0x508857(0x2a2)]('span',{'className':_0x508857(0x2b8),'children':[i[_0x508857(0x247)](H,{}),_0x2b83f9['t']('mcpConfig.save')]})}),i[_0x508857(0x247)]('div',{'className':_0x508857(0x18c),'children':i[_0x508857(0x2a2)](_0x508857(0x2a9),{'className':'univer-flex\x20univer-gap-3','children':[i['jsx'](_0x508857(0x153),{'className':_0x508857(0x29c),'children':'💡'}),i[_0x508857(0x2a2)](_0x508857(0x2a9),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[i[_0x508857(0x247)](_0x508857(0x2a9),{'className':_0x508857(0x2ae),'children':_0x508857(0x21c)}),i[_0x508857(0x2a2)](_0x508857(0x2a9),{'children':['•',_0x2b83f9['t'](_0x508857(0x1db))]}),i[_0x508857(0x2a2)](_0x508857(0x2a9),{'children':['•',_0x2b83f9['t'](_0x508857(0x1d8))]})]})]})})]})})]});}const P=_0x54e4df(0x29e),L={'showDeveloperTools':!0x1,'showStatus':!0x0};var me=Object[_0x54e4df(0x26b)],xe=(_0x163d4a,_0x3d0ce1,_0x36892b,_0x51924e)=>{for(var _0x106280=_0x51924e>0x1?void 0x0:_0x51924e?me(_0x3d0ce1,_0x36892b):_0x3d0ce1,_0x1dd4b8=_0x163d4a['length']-0x1,_0x19f291;_0x1dd4b8>=0x0;_0x1dd4b8--)(_0x19f291=_0x163d4a[_0x1dd4b8])&&(_0x106280=_0x19f291(_0x106280)||_0x106280);return _0x106280;},g=(_0x18279c,_0x284bc9)=>(_0x2f814e,_0x2e040a)=>_0x284bc9(_0x2f814e,_0x2e040a,_0x18279c);const O='mcp.apiKey',D=_0x54e4df(0x293);exports[_0x54e4df(0x194)]=class extends u['Disposable']{constructor(_0x542975,_0x5bedd4,_0x15a9ac,_0x4dba7f,_0x460416,_0x419400,_0x27f93e,_0x43071f,_0x139d2f,_0x72f41b){const _0x3bfced=_0x54e4df;super(),I(this,_0x3bfced(0x224),new M[(_0x3bfced(0x1aa))](!0x1)),I(this,_0x3bfced(0x216),new M['BehaviorSubject']({})),I(this,_0x3bfced(0x196),new M[(_0x3bfced(0x1aa))]({})),I(this,_0x3bfced(0x17a),new M['BehaviorSubject']('')),I(this,_0x3bfced(0x15c),async _0xe8f89c=>{const _0x501304=_0x3bfced;var _0x1a7d76,_0x2ab65e;this[_0x501304(0x224)][_0x501304(0x1be)](!0x0);try{const _0x38cf61=await this[_0x501304(0x1f6)](_0xe8f89c);if(!_0x38cf61[_0x501304(0x1f0)]){this[_0x501304(0x182)][_0x501304(0x17c)]({'type':f[_0x501304(0x1dd)][_0x501304(0x2a7)],'content':_0x38cf61[_0x501304(0x264)]||this[_0x501304(0x233)]['t']('mcpConfig.validation.invalidConfig')});return;}_0xe8f89c[_0x501304(0x20e)]?await this[_0x501304(0x1df)][_0x501304(0x221)](O,_0xe8f89c[_0x501304(0x20e)]['trim']()):await this[_0x501304(0x1df)][_0x501304(0x16f)](O),this[_0x501304(0x17a)][_0x501304(0x1be)](((_0x1a7d76=_0xe8f89c['apiKey'])==null?void 0x0:_0x1a7d76[_0x501304(0x1e8)]())||''),this[_0x501304(0x18e)][_0x501304(0x268)]({'Authorization':_0x501304(0x157)+((_0x2ab65e=_0xe8f89c['apiKey'])==null?void 0x0:_0x2ab65e[_0x501304(0x1e8)]())}),this['_messageService'][_0x501304(0x17c)]({'type':f[_0x501304(0x1dd)][_0x501304(0x1eb)],'content':this[_0x501304(0x233)]['t'](_0x501304(0x1f1))}),setTimeout(()=>{const _0x2b3f25=_0x501304;this[_0x2b3f25(0x230)]['close'](D);},0x320);}catch(_0x24c299){this[_0x501304(0x1c1)][_0x501304(0x212)](_0x501304(0x174),_0x24c299),this[_0x501304(0x182)][_0x501304(0x17c)]({'type':f[_0x501304(0x1dd)][_0x501304(0x2a7)],'content':this[_0x501304(0x233)]['t']('mcpConfig.configError')});}finally{this[_0x501304(0x224)][_0x501304(0x1be)](!0x1);}}),(this['_injector']=_0x542975,this[_0x3bfced(0x207)]=_0x5bedd4,this[_0x3bfced(0x267)]=_0x15a9ac,this[_0x3bfced(0x1df)]=_0x4dba7f,this['_dialogService']=_0x460416,this[_0x3bfced(0x182)]=_0x419400,this[_0x3bfced(0x28b)]=_0x27f93e,this[_0x3bfced(0x233)]=_0x43071f,this[_0x3bfced(0x1c1)]=_0x139d2f,this[_0x3bfced(0x18e)]=_0x72f41b,this['_initConfigSync'](),this[_0x3bfced(0x24b)](),this['_registerComponent']());}[_0x54e4df(0x21f)](){const _0x3d1cc0=_0x54e4df,_0x37ef32=this[_0x3d1cc0(0x267)][_0x3d1cc0(0x288)](P);_0x37ef32!=null&&_0x37ef32[_0x3d1cc0(0x2c8)]&&this[_0x3d1cc0(0x230)][_0x3d1cc0(0x2aa)]({'id':D,'title':{'title':this[_0x3d1cc0(0x233)]['t']('mcpConfig.title')},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x438740=_0x3d1cc0;this['_dialogService'][_0x438740(0x1ee)](D);}});}[_0x54e4df(0x228)](){const _0x4e9d33=_0x54e4df;return this['_mcpCoreConfig$'][_0x4e9d33(0x18b)];}[_0x54e4df(0x1dc)](){const _0x17b677=_0x54e4df;this[_0x17b677(0x1f7)](this[_0x17b677(0x28b)][_0x17b677(0x169)]('MCPConfigPanel',this[_0x17b677(0x1cd)]()));}[_0x54e4df(0x1cd)](){const _0x43b544=_0x54e4df;return v[_0x43b544(0x186)](()=>{const _0x9cb18f=_0x43b544;var _0x5aace2,_0x2638fe,_0x464206;return i[_0x9cb18f(0x247)](V,{'config':this['_config$'][_0x9cb18f(0x18b)],'mcpCoreConfig':this[_0x9cb18f(0x216)][_0x9cb18f(0x18b)],'currentApiKey$':this['_apiKey$'],'onSave':this[_0x9cb18f(0x15c)],'loading':this[_0x9cb18f(0x224)]['value'],'connectionStatus$':(_0x5aace2=this[_0x9cb18f(0x18e)])==null?void 0x0:_0x5aace2[_0x9cb18f(0x20a)],'connectionError$':(_0x2638fe=this[_0x9cb18f(0x18e)])==null?void 0x0:_0x2638fe[_0x9cb18f(0x20c)],'currentSessionId$':(_0x464206=this['_mcpConnectionController'])==null?void 0x0:_0x464206[_0x9cb18f(0x2b3)]});},this['_injector']);}['_initConfigSync'](){const _0x5f04ea=_0x54e4df;this[_0x5f04ea(0x1f7)](this[_0x5f04ea(0x267)][_0x5f04ea(0x1cc)](s[_0x5f04ea(0x1d3)])['subscribe'](_0x2dbd98=>{const _0x62544c=_0x5f04ea;this[_0x62544c(0x216)][_0x62544c(0x1be)](_0x2dbd98||{});}));const _0x530eb8=this[_0x5f04ea(0x267)][_0x5f04ea(0x288)](s[_0x5f04ea(0x1d3)]);this[_0x5f04ea(0x216)][_0x5f04ea(0x1be)](_0x530eb8||{}),this[_0x5f04ea(0x1f7)](this['_configService'][_0x5f04ea(0x1cc)](P)[_0x5f04ea(0x1f5)](_0x2dbebf=>{const _0x46fd02=_0x5f04ea;this[_0x46fd02(0x196)][_0x46fd02(0x1be)](_0x2dbebf||{});}));const _0xf14668=this[_0x5f04ea(0x267)][_0x5f04ea(0x288)](P);this[_0x5f04ea(0x196)][_0x5f04ea(0x1be)](_0xf14668||{});}async[_0x54e4df(0x24b)](){const _0x4237e1=_0x54e4df,_0x120843=this[_0x4237e1(0x267)]['getConfig'](P);if(!(_0x120843!=null&&_0x120843['showDeveloperTools']))return;const _0x54a56d=await this['_localStorageService'][_0x4237e1(0x2d3)](O);_0x54a56d&&(this[_0x4237e1(0x18e)][_0x4237e1(0x268)]({'Authorization':_0x4237e1(0x157)+_0x54a56d}),this[_0x4237e1(0x17a)]['next'](_0x54a56d));}async[_0x54e4df(0x1f6)](_0x541e34){const _0x23c71a=_0x54e4df;if(!_0x541e34[_0x23c71a(0x20e)]||_0x541e34[_0x23c71a(0x20e)][_0x23c71a(0x1e8)]()[_0x23c71a(0x1e3)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x23c71a(0x233)]['t'](_0x23c71a(0x28c))};if(_0x541e34[_0x23c71a(0x20e)][_0x23c71a(0x1e8)]()[_0x23c71a(0x1e3)]<0xa)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x23c71a(0x29a))};try{const _0x19dde5=await this['_injector']['get'](s[_0x23c71a(0x18a)])[_0x23c71a(0x1e6)](_0x541e34[_0x23c71a(0x20e)][_0x23c71a(0x1e8)]());return _0x19dde5[_0x23c71a(0x1f0)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x19dde5[_0x23c71a(0x212)]||this[_0x23c71a(0x233)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x21d588){return console[_0x23c71a(0x1c2)]('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0x21d588),{'isValid':!0x0};}}},exports[_0x54e4df(0x194)]=xe([g(0x0,u[_0x54e4df(0x1cb)](u[_0x54e4df(0x1d7)])),g(0x1,v[_0x54e4df(0x202)]),g(0x2,u[_0x54e4df(0x154)]),g(0x3,u['ILocalStorageService']),g(0x4,v[_0x54e4df(0x1c7)]),g(0x5,v[_0x54e4df(0x210)]),g(0x6,u[_0x54e4df(0x1cb)](v['ComponentManager'])),g(0x7,u[_0x54e4df(0x1cb)](u[_0x54e4df(0x243)])),g(0x8,u[_0x54e4df(0x1f8)]),g(0x9,u[_0x54e4df(0x1cb)](s[_0x54e4df(0x18a)]))],exports['MCPConfigUIController']);const b={'id':'mcp-ui.command.openConfigPanel','type':u[_0x54e4df(0x1e1)]['COMMAND'],'handler':async(_0x1d2880,_0x1a0866)=>(_0x1d2880['get'](exports[_0x54e4df(0x194)])[_0x54e4df(0x21f)](),!0x0)};function Z(_0x2dcbb6,_0x53b9c5){const _0x20c0c2=_0x54e4df;switch(_0x2dcbb6){case s[_0x20c0c2(0x22a)][_0x20c0c2(0x248)]:return _0x20c0c2(0x1ab);case s[_0x20c0c2(0x22a)][_0x20c0c2(0x1b2)]:return _0x20c0c2(0x19c);case s[_0x20c0c2(0x22a)]['CONNECTED']:return _0x20c0c2(0x2d8);case s[_0x20c0c2(0x22a)][_0x20c0c2(0x1b9)]:switch(_0x53b9c5){case s['MCPConnectionError'][_0x20c0c2(0x23b)]:return _0x20c0c2(0x244);case s[_0x20c0c2(0x213)][_0x20c0c2(0x190)]:return _0x20c0c2(0x19f);case s[_0x20c0c2(0x213)][_0x20c0c2(0x2cd)]:return _0x20c0c2(0x225);case s['MCPConnectionError']['MAX_RETRIES_EXCEEDED']:return _0x20c0c2(0x17d);default:return _0x20c0c2(0x183);}case s[_0x20c0c2(0x22a)]['RETRYING']:return'mcpStatus.retrying';default:return _0x20c0c2(0x253);}}function Se(_0x527e9f,_0x1b3780,_0x20a65d,_0xe20396=!0x0){const _0x5976bd=_0x54e4df,_0x21c5a4=Z(_0x527e9f,_0x1b3780),_0x8718e5=_0x20a65d['t'](_0x21c5a4);return _0xe20396?_0x527e9f===s[_0x5976bd(0x22a)][_0x5976bd(0x248)]&&_0x1b3780===s[_0x5976bd(0x213)][_0x5976bd(0x23b)]?_0x8718e5+'\x20-\x20'+_0x20a65d['t']('mcpStatus.clickToConfigure'):_0x527e9f===s[_0x5976bd(0x22a)]['CONNECTED']?''+_0x8718e5:_0x527e9f===s[_0x5976bd(0x22a)][_0x5976bd(0x248)]||_0x527e9f===s[_0x5976bd(0x22a)][_0x5976bd(0x1b9)]?_0x8718e5+_0x5976bd(0x234)+_0x20a65d['t'](_0x5976bd(0x1fc)):_0x8718e5:_0x8718e5;}function Pe(_0x5a462a){const _0x366241=_0x54e4df;switch(_0x5a462a){case s['MCPConnectionStatus'][_0x366241(0x23c)]:return'univer-text-green-500';case s[_0x366241(0x22a)][_0x366241(0x1b2)]:case s[_0x366241(0x22a)][_0x366241(0x18f)]:return'univer-text-yellow-500';case s['MCPConnectionStatus']['FAILED']:case s['MCPConnectionStatus'][_0x366241(0x248)]:return _0x366241(0x189);default:return _0x366241(0x172);}}function W(_0x9a7670){const _0x2c05c5=_0x54e4df,{status$:_0xece5f1,error$:_0x8bdef7,onConfigure:_0xd0aae7,showClickable:_0x1f8602=!0x0}=_0x9a7670,_0x39e200=v[_0x2c05c5(0x151)](_0xece5f1,s['MCPConnectionStatus'][_0x2c05c5(0x248)]),_0x3c8242=v['useObservable'](_0x8bdef7,s[_0x2c05c5(0x213)][_0x2c05c5(0x1af)]),_0x5d2cb1=v[_0x2c05c5(0x298)](u[_0x2c05c5(0x243)]),_0x231ffa=_0x39e200===s[_0x2c05c5(0x22a)][_0x2c05c5(0x23c)];_0x39e200===s[_0x2c05c5(0x22a)][_0x2c05c5(0x1b2)]||s[_0x2c05c5(0x22a)]['RETRYING'];const _0x54054d=_0x5d2cb1['t'](Z(_0x39e200,_0x3c8242)),_0x3807cd=Se(_0x39e200,_0x3c8242,_0x5d2cb1,_0x1f8602),_0x12ae84=Pe(_0x39e200),_0x27f88f=_0x231ffa?i['jsx'](q,{}):i[_0x2c05c5(0x247)](Y,{}),_0x720ff7=d[_0x2c05c5(0x295)](()=>{_0x1f8602&&_0xd0aae7&&_0xd0aae7();},[_0x1f8602,_0xd0aae7]);function _0x38c560(){const _0x5c765d=_0x2c05c5;return i['jsxs'](_0x5c765d(0x2a9),{'className':f['clsx']('univer-flex\x20univer-items-center',_0x1f8602&&_0xd0aae7&&_0x5c765d(0x2bd)),'role':_0x5c765d(0x16e),'onClick':_0x1f8602&&_0xd0aae7?_0x720ff7:void 0x0,'children':[i[_0x5c765d(0x247)](_0x5c765d(0x2a9),{'className':f[_0x5c765d(0x170)]('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x12ae84),'children':_0x27f88f}),i[_0x5c765d(0x247)](_0x5c765d(0x2a9),{'className':_0x5c765d(0x1c6),'children':_0x54054d})]});}return i[_0x2c05c5(0x247)](f[_0x2c05c5(0x2d2)],{'title':_0x3807cd,'placement':_0x2c05c5(0x28a),'children':_0x38c560()});}var Ie=Object[_0x54e4df(0x26b)],_e=(_0x13e8bc,_0x1d504d,_0x13112b,_0x54400d)=>{const _0x570cec=_0x54e4df;for(var _0x32fc27=_0x54400d>0x1?void 0x0:_0x54400d?Ie(_0x1d504d,_0x13112b):_0x1d504d,_0x5233cb=_0x13e8bc[_0x570cec(0x1e3)]-0x1,_0x504857;_0x5233cb>=0x0;_0x5233cb--)(_0x504857=_0x13e8bc[_0x5233cb])&&(_0x32fc27=_0x504857(_0x32fc27)||_0x32fc27);return _0x32fc27;},N=(_0x48286f,_0x593eee)=>(_0x4c3fc6,_0x48d333)=>_0x593eee(_0x4c3fc6,_0x48d333,_0x48286f);exports['MCPConnectionUIController']=class extends u[_0x54e4df(0x263)]{constructor(_0x19c80a,_0x22a978,_0x23fe55,_0x8e45ea){const _0xf728d0=_0x54e4df;super(),this[_0xf728d0(0x1d6)]=_0x19c80a,this[_0xf728d0(0x2cc)]=_0x22a978,this['_uiPartsService']=_0x23fe55,this[_0xf728d0(0x267)]=_0x8e45ea,this[_0xf728d0(0x1bd)](),this[_0xf728d0(0x204)]();}[_0x54e4df(0x1bd)](){const _0x3d78b3=_0x54e4df,_0x5246c8=this[_0x3d78b3(0x267)][_0x3d78b3(0x288)](P);_0x5246c8!=null&&_0x5246c8[_0x3d78b3(0x2c8)]&&(this['_connectionController'][_0x3d78b3(0x208)]=!0x1);}['_initStatusComponent'](){const _0x19ff3f=_0x54e4df,_0x9cd4f3=this[_0x19ff3f(0x267)]['getConfig'](P);(_0x9cd4f3==null?void 0x0:_0x9cd4f3[_0x19ff3f(0x155)])!==!0x1&&this['disposeWithMe'](this[_0x19ff3f(0x207)][_0x19ff3f(0x2ce)](v[_0x19ff3f(0x2ad)]['HEADER_MENU'],()=>{const _0x180113=_0x19ff3f;var _0x12055e;return v[_0x180113(0x186)](ye({'status$':this[_0x180113(0x2cc)][_0x180113(0x20a)],'error$':this[_0x180113(0x2cc)][_0x180113(0x20c)],'onConfigure':()=>this[_0x180113(0x21e)](),'showClickable':(_0x12055e=_0x9cd4f3==null?void 0x0:_0x9cd4f3['showDeveloperTools'])!=null?_0x12055e:!0x1}),this['_injector']);}));}[_0x54e4df(0x21e)](){const _0x248440=_0x54e4df;this[_0x248440(0x1d6)][_0x248440(0x240)](exports[_0x248440(0x194)])['showConfigPanel']();}},exports[_0x54e4df(0x2a4)]=_e([N(0x0,u[_0x54e4df(0x1cb)](u['Injector'])),N(0x1,u[_0x54e4df(0x1cb)](s['MCPConnectionController'])),N(0x2,v['IUIPartsService']),N(0x3,u[_0x54e4df(0x154)])],exports[_0x54e4df(0x2a4)]);function ye(_0x335204){const {status$:_0x186b54,error$:_0x748c54,onConfigure:_0x5a9001,showClickable:_0x5ad128}=_0x335204;return function(){const _0x8325c4=_0x237e;return i[_0x8325c4(0x247)](W,{'status$':_0x186b54,'error$':_0x748c54,'onConfigure':_0x5a9001,'showClickable':_0x5ad128});};}function Me(_0x27cf75){const _0x183dbc=_0x54e4df;return{'id':b['id'],'type':v[_0x183dbc(0x1e9)][_0x183dbc(0x274)],'icon':_0x183dbc(0x25c),'title':_0x183dbc(0x2a8),'tooltip':_0x183dbc(0x2a8)};}const Ne={[v['RibbonStartGroup'][_0x54e4df(0x179)]]:{[b['id']]:{'order':0xa,'menuItemFactory':Me}}};function _0x237e(_0x43b6a7,_0x540aaf){const _0x4a78ce=_0x4a78();return _0x237e=function(_0x237e95,_0x5957e0){_0x237e95=_0x237e95-0x151;let _0x568dc5=_0x4a78ce[_0x237e95];return _0x568dc5;},_0x237e(_0x43b6a7,_0x540aaf);}var be=Object['getOwnPropertyDescriptor'],je=(_0x3b07ce,_0x151803,_0x5e865c,_0x4082b0)=>{const _0x2e3d13=_0x54e4df;for(var _0x19bc17=_0x4082b0>0x1?void 0x0:_0x4082b0?be(_0x151803,_0x5e865c):_0x151803,_0x5910b3=_0x3b07ce[_0x2e3d13(0x1e3)]-0x1,_0x183baa;_0x5910b3>=0x0;_0x5910b3--)(_0x183baa=_0x3b07ce[_0x5910b3])&&(_0x19bc17=_0x183baa(_0x19bc17)||_0x19bc17);return _0x19bc17;},z=(_0x427a25,_0x5e162e)=>(_0x537077,_0x30aa3b)=>_0x5e162e(_0x537077,_0x30aa3b,_0x427a25);exports['MCPUIMenuController']=class extends u[_0x54e4df(0x263)]{constructor(_0x8dcc31,_0x588072){const _0x586e16=_0x54e4df;super(),this[_0x586e16(0x232)]=_0x8dcc31,this['_menuManagerService']=_0x588072,this[_0x586e16(0x166)](),this['_initializeMenus']();}[_0x54e4df(0x166)](){const _0x5fcd8b=_0x54e4df;[b][_0x5fcd8b(0x1b5)](_0x33c349=>{const _0x42aaa7=_0x5fcd8b;this[_0x42aaa7(0x1f7)](this[_0x42aaa7(0x232)][_0x42aaa7(0x26d)](_0x33c349));});}[_0x54e4df(0x281)](){const _0x975093=_0x54e4df;this['_menuManagerService'][_0x975093(0x162)](Ne);}},exports[_0x54e4df(0x1fb)]=je([z(0x0,u[_0x54e4df(0x29f)]),z(0x1,v['IMenuManagerService'])],exports[_0x54e4df(0x1fb)]);const Ee={'mcpStatus':{'disconnected':_0x54e4df(0x23e),'connecting':'MCP\x20Connecting...','connected':_0x54e4df(0x2b1),'failed':_0x54e4df(0x161),'retrying':_0x54e4df(0x2c0),'unknown':_0x54e4df(0x226),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x54e4df(0x191),'networkError':_0x54e4df(0x2c2),'maxRetriesExceeded':_0x54e4df(0x283),'clickToConnect':_0x54e4df(0x2b5),'clickToConfigure':_0x54e4df(0x245)},'mcpConfig':{'title':_0x54e4df(0x24a),'description':_0x54e4df(0x164),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x54e4df(0x1a8),'apiKeyHint':_0x54e4df(0x1ac),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x54e4df(0x1ba),'connectionInfo':_0x54e4df(0x15d),'mcpClientConfig':_0x54e4df(0x15d),'configInstructions':_0x54e4df(0x266),'configStepTitle':_0x54e4df(0x2c4),'configStep1':_0x54e4df(0x26f),'configStep2':_0x54e4df(0x1ae),'configStep3':_0x54e4df(0x297),'sessionId':_0x54e4df(0x16b),'sessionIdDescription':_0x54e4df(0x2ca),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x54e4df(0x1c4),'maxRetries':_0x54e4df(0x1cf),'save':_0x54e4df(0x205),'saving':_0x54e4df(0x2a6),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x54e4df(0x278),'configSaved':_0x54e4df(0x2af),'configError':_0x54e4df(0x193),'apiApplyInfo':{'title':_0x54e4df(0x27e),'description':_0x54e4df(0x192),'univerAiLabel':_0x54e4df(0x1ec),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x54e4df(0x209),'apiKeyTooShort':_0x54e4df(0x231),'invalidConfig':_0x54e4df(0x21b),'invalidApiKey':_0x54e4df(0x1ed)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x54e4df(0x206),'connected':'Connected','failed':_0x54e4df(0x275),'retrying':_0x54e4df(0x270)},'connectionError':{'unauthorized':_0x54e4df(0x177),'sessionOccupied':_0x54e4df(0x262),'networkError':_0x54e4df(0x1b6),'maxRetriesExceeded':_0x54e4df(0x214)}}},we={'mcpStatus':{'disconnected':_0x54e4df(0x1b8),'connecting':_0x54e4df(0x22d),'connected':_0x54e4df(0x217),'failed':_0x54e4df(0x168),'retrying':'MCP\x20重连中...','unknown':_0x54e4df(0x1fe),'unauthorized':'MCP:\x20未授权','sessionOccupied':_0x54e4df(0x159),'networkError':_0x54e4df(0x1f9),'maxRetriesExceeded':_0x54e4df(0x282),'clickToConnect':_0x54e4df(0x2da),'clickToConfigure':_0x54e4df(0x237)},'mcpConfig':{'title':'MCP\x20配置','description':_0x54e4df(0x1a4),'apiKey':'API\x20密钥','apiKeyPlaceholder':_0x54e4df(0x27b),'apiKeyHint':_0x54e4df(0x1e7),'enableAuth':_0x54e4df(0x1d2),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x54e4df(0x15e),'mcpClientConfig':_0x54e4df(0x15e),'configInstructions':_0x54e4df(0x242),'configStepTitle':_0x54e4df(0x24f),'configStep1':_0x54e4df(0x180),'configStep2':_0x54e4df(0x2d4),'configStep3':_0x54e4df(0x23a),'sessionId':_0x54e4df(0x1bc),'sessionIdDescription':_0x54e4df(0x290),'authorizationDescription':_0x54e4df(0x1ca),'configParameters':_0x54e4df(0x211),'maxRetries':_0x54e4df(0x19b),'save':_0x54e4df(0x1f3),'saving':'保存中...','note1':_0x54e4df(0x291),'note2':_0x54e4df(0x203),'configSaved':_0x54e4df(0x1e0),'configError':_0x54e4df(0x25e),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x54e4df(0x239),'univerAiLabel':_0x54e4df(0x277),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x54e4df(0x22e),'apiKeyTooShort':_0x54e4df(0x15b),'invalidConfig':_0x54e4df(0x2c3),'invalidApiKey':_0x54e4df(0x175)},'connectionStatus':{'disconnected':_0x54e4df(0x29b),'connecting':_0x54e4df(0x1d5),'connected':_0x54e4df(0x28e),'failed':'连接失败','retrying':'重连中...'},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x54e4df(0x26a),'networkError':_0x54e4df(0x218),'maxRetriesExceeded':_0x54e4df(0x187)}}};var Ae=Object[_0x54e4df(0x28f)],Oe=Object[_0x54e4df(0x26b)],De=(_0x1d2151,_0x40537,_0x531956)=>_0x40537 in _0x1d2151?Ae(_0x1d2151,_0x40537,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x531956}):_0x1d2151[_0x40537]=_0x531956,Ue=(_0x43e2de,_0x4c35fe,_0x17e27a,_0x4d142b)=>{for(var _0x327b28=_0x4d142b>0x1?void 0x0:_0x4d142b?Oe(_0x4c35fe,_0x17e27a):_0x4c35fe,_0x326aab=_0x43e2de['length']-0x1,_0x1f31bc;_0x326aab>=0x0;_0x326aab--)(_0x1f31bc=_0x43e2de[_0x326aab])&&(_0x327b28=_0x1f31bc(_0x327b28)||_0x327b28);return _0x327b28;},y=(_0x2121ca,_0x541f8a)=>(_0x1e5bcf,_0x15d206)=>_0x541f8a(_0x1e5bcf,_0x15d206,_0x2121ca),$e=(_0x325db7,_0x4961fa,_0x546d1e)=>De(_0x325db7,_0x4961fa+'',_0x546d1e);exports[_0x54e4df(0x1d0)]=class extends u['Plugin']{constructor(_0x1405b0=L,_0x5066cc,_0x3d380c,_0x170151,_0x496911,_0x44c498){const _0x33d538=_0x54e4df;super(),this[_0x33d538(0x26c)]=_0x1405b0,this[_0x33d538(0x1d6)]=_0x5066cc,this['_configService']=_0x3d380c,this[_0x33d538(0x207)]=_0x170151,this[_0x33d538(0x1df)]=_0x496911,this[_0x33d538(0x233)]=_0x44c498;const {..._0x1ea9b1}=u['merge']({},L,this[_0x33d538(0x26c)]);this[_0x33d538(0x267)][_0x33d538(0x2cf)](P,_0x1ea9b1);}async[_0x54e4df(0x258)](){const _0x8a561a=_0x54e4df,_0x2354eb=[[exports[_0x8a561a(0x2a4)]],[exports['MCPConfigUIController']],[exports[_0x8a561a(0x1fb)]]];this[_0x8a561a(0x1d6)][_0x8a561a(0x1de)](A[_0x8a561a(0x1a1)])||_0x2354eb[_0x8a561a(0x1ef)]([A[_0x8a561a(0x1a1)],{'useClass':A[_0x8a561a(0x2a5)]}]),_0x2354eb[_0x8a561a(0x1b5)](_0x4b6b29=>this['_injector'][_0x8a561a(0x261)](_0x4b6b29)),this[_0x8a561a(0x1d6)]['get'](exports['MCPConnectionUIController']),this[_0x8a561a(0x1d6)][_0x8a561a(0x240)](exports[_0x8a561a(0x194)]),this['_injector'][_0x8a561a(0x240)](exports[_0x8a561a(0x1fb)]);}},$e(exports[_0x54e4df(0x1d0)],_0x54e4df(0x1a7),_0x54e4df(0x19a)),exports[_0x54e4df(0x1d0)]=Ue([u[_0x54e4df(0x2bc)](s[_0x54e4df(0x199)]),y(0x1,u[_0x54e4df(0x1cb)](u['Injector'])),y(0x2,u[_0x54e4df(0x154)]),y(0x3,v[_0x54e4df(0x202)]),y(0x4,u['ILocalStorageService']),y(0x5,u['Inject'](u[_0x54e4df(0x243)]))],exports[_0x54e4df(0x1d0)]),exports[_0x54e4df(0x27a)]=V,exports[_0x54e4df(0x19d)]=W,exports['OpenMCPConfigPanelCommand']=b,exports[_0x54e4df(0x2ba)]=Ee,exports['zhCN']=we;
@@ -1 +1 @@
1
- 'use strict';const _0x1bde50=_0xc5b3;function _0xc5b3(_0x10a515,_0x3bc19c){const _0x2ed462=_0x2ed4();return _0xc5b3=function(_0xc5b3f2,_0x446977){_0xc5b3f2=_0xc5b3f2-0x175;let _0x138fef=_0x2ed462[_0xc5b3f2];return _0x138fef;},_0xc5b3(_0x10a515,_0x3bc19c);}(function(_0x1cf284,_0x31f993){const _0x4e197c=_0xc5b3,_0x1f6abc=_0x1cf284();while(!![]){try{const _0x578b26=-parseInt(_0x4e197c(0x195))/0x1+-parseInt(_0x4e197c(0x18b))/0x2*(parseInt(_0x4e197c(0x1a6))/0x3)+parseInt(_0x4e197c(0x182))/0x4*(parseInt(_0x4e197c(0x179))/0x5)+-parseInt(_0x4e197c(0x18e))/0x6*(parseInt(_0x4e197c(0x1a0))/0x7)+-parseInt(_0x4e197c(0x1a3))/0x8+parseInt(_0x4e197c(0x191))/0x9*(-parseInt(_0x4e197c(0x1a7))/0xa)+-parseInt(_0x4e197c(0x1a8))/0xb*(-parseInt(_0x4e197c(0x17d))/0xc);if(_0x578b26===_0x31f993)break;else _0x1f6abc['push'](_0x1f6abc['shift']());}catch(_0x1ab4f2){_0x1f6abc['push'](_0x1f6abc['shift']());}}}(_0x2ed4,0xc9367));const e={'mcpStatus':{'disconnected':_0x1bde50(0x178),'connecting':_0x1bde50(0x175),'connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':_0x1bde50(0x19f),'unauthorized':_0x1bde50(0x183),'sessionOccupied':_0x1bde50(0x18f),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x1bde50(0x17a),'clickToConnect':_0x1bde50(0x197),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x1bde50(0x18d),'description':_0x1bde50(0x17c),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x1bde50(0x189),'apiKeyHint':_0x1bde50(0x19b),'enableAuth':_0x1bde50(0x187),'enableAuthHint':_0x1bde50(0x17f),'connectionInfo':_0x1bde50(0x19e),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x1bde50(0x198),'configStepTitle':_0x1bde50(0x196),'configStep1':_0x1bde50(0x188),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x1bde50(0x186),'sessionIdDescription':_0x1bde50(0x199),'authorizationDescription':_0x1bde50(0x17e),'configParameters':_0x1bde50(0x180),'maxRetries':_0x1bde50(0x17b),'save':_0x1bde50(0x18a),'saving':_0x1bde50(0x190),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x1bde50(0x184),'configSaved':_0x1bde50(0x181),'configError':_0x1bde50(0x19a),'apiApplyInfo':{'title':_0x1bde50(0x1a4),'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':_0x1bde50(0x185),'getStarted':_0x1bde50(0x194)},'validation':{'apiKeyRequired':_0x1bde50(0x192),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x1bde50(0x1a1)},'connectionStatus':{'disconnected':_0x1bde50(0x1a9),'connecting':_0x1bde50(0x1a5),'connected':_0x1bde50(0x1a2),'failed':_0x1bde50(0x19d),'retrying':_0x1bde50(0x19c)},'connectionError':{'unauthorized':_0x1bde50(0x193),'sessionOccupied':_0x1bde50(0x177),'networkError':_0x1bde50(0x18c),'maxRetriesExceeded':_0x1bde50(0x176)}}},n=e;function _0x2ed4(){const _0x339572=['MCP\x20Client\x20Configuration','MCP\x20Unknown\x20Status','7PvAvDT','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Connected','10905912vTFJVS','What\x20is\x20API\x20Key?','Connecting...','129bPnqnE','10UFbJvv','19679mMrXwr','Disconnected','MCP\x20Connecting...','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Disconnected','25lCQJwG','MCP:\x20Max\x20Retries\x20Exceeded','Max\x20Retries','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','35268ATmixV','API\x20key\x20with\x20Bearer\x20prefix.','Enable\x20authentication\x20for\x20secure\x20connections','Configuration\x20Parameters:','Configuration\x20saved\x20successfully','548276pYZgYf','MCP:\x20Unauthorized','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Univer\x20AI\x20Console','Session\x20ID','Enable\x20Authentication','Copy\x20the\x20JSON\x20configuration\x20below','Enter\x20your\x20API\x20key','Save\x20Configuration','75778cXWlNN','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Configuration','5568150lUxYnP','MCP:\x20Session\x20ID\x20Occupied','Saving...','3341304TBnzwi','API\x20key\x20is\x20required','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Get\x20your\x20API\x20key\x20in\x20seconds','827302xvFbgK','Configuration\x20Steps:','Click\x20to\x20connect\x20MCP','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Failed\x20to\x20save\x20configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Retrying...','Connection\x20Failed'];_0x2ed4=function(){return _0x339572;};return _0x2ed4();}module['exports']=n;
1
+ 'use strict';const _0xd2c620=_0x4f1a;function _0x4643(){const _0x4e4b40=['54fLXahp','Failed\x20to\x20save\x20configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Configuration\x20saved\x20successfully','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Retrying...','Disconnected','Retrying...','27176sQLVKj','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Click\x20to\x20connect\x20MCP','What\x20is\x20API\x20Key?','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','API\x20Key','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Configuration','4193516GhJIMR','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Save\x20Configuration','MCP\x20Disconnected','Invalid\x20configuration','66YeSQOK','3SSJSfR','Connected','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','506934EpdQiz','Enter\x20your\x20API\x20key','MCP\x20Connection\x20Failed','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Connected','MCP\x20Connecting...','MCP\x20Client\x20Configuration','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP:\x20Max\x20Retries\x20Exceeded','API\x20key\x20with\x20Bearer\x20prefix.','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Connecting...','Enable\x20Authentication','1621113ibCDzM','Connection\x20Failed','934130PqXTlu','63LjLTmZ','Click\x20to\x20configure\x20MCP','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','3970320evxHJP','651106cMkHGi'];_0x4643=function(){return _0x4e4b40;};return _0x4643();}(function(_0x15a9f3,_0x2b4354){const _0x4d34eb=_0x4f1a,_0x45b354=_0x15a9f3();while(!![]){try{const _0x25f2a5=parseInt(_0x4d34eb(0x15c))/0x1+-parseInt(_0x4d34eb(0x163))/0x2+parseInt(_0x4d34eb(0x14b))/0x3*(-parseInt(_0x4d34eb(0x145))/0x4)+parseInt(_0x4d34eb(0x162))/0x5+-parseInt(_0x4d34eb(0x14e))/0x6*(parseInt(_0x4d34eb(0x15f))/0x7)+parseInt(_0x4d34eb(0x13c))/0x8*(parseInt(_0x4d34eb(0x164))/0x9)+-parseInt(_0x4d34eb(0x15e))/0xa*(-parseInt(_0x4d34eb(0x14a))/0xb);if(_0x25f2a5===_0x2b4354)break;else _0x45b354['push'](_0x45b354['shift']());}catch(_0x27edf4){_0x45b354['push'](_0x45b354['shift']());}}}(_0x4643,0xd2608));function _0x4f1a(_0x143a24,_0x132b90){const _0x46433d=_0x4643();return _0x4f1a=function(_0x4f1aeb,_0x431e16){_0x4f1aeb=_0x4f1aeb-0x139;let _0x147ae2=_0x46433d[_0x4f1aeb];return _0x147ae2;},_0x4f1a(_0x143a24,_0x132b90);}const e={'mcpStatus':{'disconnected':_0xd2c620(0x148),'connecting':_0xd2c620(0x154),'connected':_0xd2c620(0x153),'failed':_0xd2c620(0x150),'retrying':_0xd2c620(0x139),'unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0xd2c620(0x157),'clickToConnect':_0xd2c620(0x13e),'clickToConfigure':_0xd2c620(0x160)},'mcpConfig':{'title':_0xd2c620(0x144),'description':_0xd2c620(0x14d),'apiKey':_0xd2c620(0x142),'apiKeyPlaceholder':_0xd2c620(0x14f),'apiKeyHint':_0xd2c620(0x140),'enableAuth':_0xd2c620(0x15b),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0xd2c620(0x155),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0xd2c620(0x141),'configStepTitle':'Configuration\x20Steps:','configStep1':_0xd2c620(0x143),'configStep2':_0xd2c620(0x156),'configStep3':_0xd2c620(0x13d),'sessionId':'Session\x20ID','sessionIdDescription':_0xd2c620(0x168),'authorizationDescription':_0xd2c620(0x158),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':_0xd2c620(0x147),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0xd2c620(0x161),'configSaved':_0xd2c620(0x167),'configError':_0xd2c620(0x165),'apiApplyInfo':{'title':_0xd2c620(0x13f),'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':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0xd2c620(0x166),'invalidConfig':_0xd2c620(0x149),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0xd2c620(0x13a),'connecting':_0xd2c620(0x15a),'connected':_0xd2c620(0x14c),'failed':_0xd2c620(0x15d),'retrying':_0xd2c620(0x13b)},'connectionError':{'unauthorized':_0xd2c620(0x146),'sessionOccupied':_0xd2c620(0x151),'networkError':_0xd2c620(0x159),'maxRetriesExceeded':_0xd2c620(0x152)}}},n=e;module['exports']=n;
@@ -1 +1 @@
1
- 'use strict';const _0x142167=_0x45f1;(function(_0x22214f,_0x41e77a){const _0xdf97bb=_0x45f1,_0x1f24bc=_0x22214f();while(!![]){try{const _0x9d6481=parseInt(_0xdf97bb(0x95))/0x1*(parseInt(_0xdf97bb(0x94))/0x2)+-parseInt(_0xdf97bb(0xb5))/0x3+-parseInt(_0xdf97bb(0x83))/0x4+-parseInt(_0xdf97bb(0x8e))/0x5+parseInt(_0xdf97bb(0x9a))/0x6*(parseInt(_0xdf97bb(0xa3))/0x7)+parseInt(_0xdf97bb(0x91))/0x8*(parseInt(_0xdf97bb(0xb3))/0x9)+-parseInt(_0xdf97bb(0xaf))/0xa*(parseInt(_0xdf97bb(0x8d))/0xb);if(_0x9d6481===_0x41e77a)break;else _0x1f24bc['push'](_0x1f24bc['shift']());}catch(_0x5c3ab6){_0x1f24bc['push'](_0x1f24bc['shift']());}}}(_0x514b,0x5ca39));function _0x45f1(_0x35b691,_0xe3879c){const _0x514bab=_0x514b();return _0x45f1=function(_0x45f16e,_0x2e98e0){_0x45f16e=_0x45f16e-0x83;let _0xe9613f=_0x514bab[_0x45f16e];return _0xe9613f;},_0x45f1(_0x35b691,_0xe3879c);}function _0x514b(){const _0x2d464b=['MCP\x20Connection\x20Failed','MCP\x20Retrying...','API\x20key\x20with\x20Bearer\x20prefix.','Session\x20ID','28nwQtkE','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Connected','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Connected','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','exports','Disconnected','Enable\x20authentication\x20for\x20secure\x20connections','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Click\x20to\x20configure\x20MCP','1500570kpGuhO','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Disconnected','Get\x20your\x20API\x20key\x20in\x20seconds','2448Tvcjuw','MCP\x20Configuration','1079190EhHWeg','1780164zmaOAT','MCP:\x20Max\x20Retries\x20Exceeded','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Client\x20Configuration','Retrying...','Enter\x20your\x20API\x20key','Click\x20to\x20connect\x20MCP','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20Unauthorized','Connecting...','11SVCCaO','2053290XkqegU','Univer\x20AI\x20Console','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','16488jmGAHi','Copy\x20the\x20JSON\x20configuration\x20below','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','42RFOIHW','28043MtuhLF','Configuration\x20saved\x20successfully','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Connecting...','API\x20key\x20is\x20required','893160iTlPiM','MCP:\x20Session\x20ID\x20Occupied','Save\x20Configuration','MCP:\x20Network\x20Error','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.'];_0x514b=function(){return _0x2d464b;};return _0x514b();}const e={'mcpStatus':{'disconnected':_0x142167(0xb1),'connecting':_0x142167(0x98),'connected':_0x142167(0xa7),'failed':_0x142167(0x9f),'retrying':_0x142167(0xa0),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x142167(0x8b),'sessionOccupied':_0x142167(0x9b),'networkError':_0x142167(0x9d),'maxRetriesExceeded':_0x142167(0x84),'clickToConnect':_0x142167(0x89),'clickToConfigure':_0x142167(0xae)},'mcpConfig':{'title':_0x142167(0xb4),'description':_0x142167(0x8a),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x142167(0x88),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x142167(0xac),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x142167(0x86),'configInstructions':_0x142167(0x97),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x142167(0x92),'configStep2':_0x142167(0xa8),'configStep3':_0x142167(0xa6),'sessionId':_0x142167(0xa2),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x142167(0xa1),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':_0x142167(0x9c),'saving':'Saving...','note1':_0x142167(0xa4),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x142167(0x96),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x142167(0x9e),'univerAiLabel':_0x142167(0x8f),'getStarted':_0x142167(0xb2)},'validation':{'apiKeyRequired':_0x142167(0x99),'apiKeyTooShort':_0x142167(0x90),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x142167(0xad)},'connectionStatus':{'disconnected':_0x142167(0xab),'connecting':_0x142167(0x8c),'connected':_0x142167(0xa5),'failed':'Connection\x20Failed','retrying':_0x142167(0x87)},'connectionError':{'unauthorized':_0x142167(0xa9),'sessionOccupied':_0x142167(0x85),'networkError':_0x142167(0x93),'maxRetriesExceeded':_0x142167(0xb0)}}};module[_0x142167(0xaa)]=e;
1
+ 'use strict';const _0x404b44=_0x220c;(function(_0x3c1ffc,_0x26cfdb){const _0x1420f3=_0x220c,_0x36c036=_0x3c1ffc();while(!![]){try{const _0x442329=parseInt(_0x1420f3(0x105))/0x1+parseInt(_0x1420f3(0x112))/0x2*(parseInt(_0x1420f3(0xf2))/0x3)+-parseInt(_0x1420f3(0x111))/0x4*(parseInt(_0x1420f3(0x117))/0x5)+-parseInt(_0x1420f3(0x11b))/0x6*(parseInt(_0x1420f3(0x110))/0x7)+parseInt(_0x1420f3(0x116))/0x8+parseInt(_0x1420f3(0xf3))/0x9*(-parseInt(_0x1420f3(0x10f))/0xa)+parseInt(_0x1420f3(0x107))/0xb*(parseInt(_0x1420f3(0xf5))/0xc);if(_0x442329===_0x26cfdb)break;else _0x36c036['push'](_0x36c036['shift']());}catch(_0x197b45){_0x36c036['push'](_0x36c036['shift']());}}}(_0x5540,0xa1d89));function _0x220c(_0x1e6d57,_0x3210c7){const _0x55406f=_0x5540();return _0x220c=function(_0x220cb3,_0x290f54){_0x220cb3=_0x220cb3-0xe9;let _0xfbc54d=_0x55406f[_0x220cb3];return _0xfbc54d;},_0x220c(_0x1e6d57,_0x3210c7);}const e={'mcpStatus':{'disconnected':_0x404b44(0x108),'connecting':_0x404b44(0x115),'connected':'MCP\x20Connected','failed':_0x404b44(0x118),'retrying':_0x404b44(0xf0),'unknown':_0x404b44(0x113),'unauthorized':_0x404b44(0x10b),'sessionOccupied':_0x404b44(0x106),'networkError':_0x404b44(0xe9),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x404b44(0x11c)},'mcpConfig':{'title':_0x404b44(0xfb),'description':_0x404b44(0xfe),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x404b44(0x10e),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x404b44(0xec),'enableAuthHint':_0x404b44(0x103),'connectionInfo':_0x404b44(0xf8),'mcpClientConfig':_0x404b44(0xf8),'configInstructions':_0x404b44(0x104),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x404b44(0x119),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x404b44(0xf6),'sessionId':_0x404b44(0xea),'sessionIdDescription':_0x404b44(0x11a),'authorizationDescription':_0x404b44(0xee),'configParameters':_0x404b44(0x102),'maxRetries':'Max\x20Retries','save':_0x404b44(0x109),'saving':_0x404b44(0xff),'note1':_0x404b44(0xed),'note2':_0x404b44(0xf4),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x404b44(0xef),'apiApplyInfo':{'title':_0x404b44(0xfc),'description':_0x404b44(0x10c),'univerAiLabel':_0x404b44(0x101),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x404b44(0xfd)},'connectionStatus':{'disconnected':_0x404b44(0xeb),'connecting':_0x404b44(0xf1),'connected':_0x404b44(0xfa),'failed':_0x404b44(0x100),'retrying':_0x404b44(0x114)},'connectionError':{'unauthorized':_0x404b44(0xf7),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x404b44(0x10d),'maxRetriesExceeded':_0x404b44(0x10a)}}};function _0x5540(){const _0x116d3f=['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','Enter\x20your\x20API\x20key','3154090seSHfW','3238823hXldSP','4RFKSxx','2596534xlveoh','MCP\x20Unknown\x20Status','Retrying...','MCP\x20Connecting...','2533432UdKuIx','5180465QViXPC','MCP\x20Connection\x20Failed','Copy\x20the\x20JSON\x20configuration\x20below','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','6PmloWw','Click\x20to\x20configure\x20MCP','MCP:\x20Network\x20Error','Session\x20ID','Disconnected','Enable\x20Authentication','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','API\x20key\x20with\x20Bearer\x20prefix.','Failed\x20to\x20save\x20configuration','MCP\x20Retrying...','Connecting...','3XTHOsX','18NpbUdp','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','240ljSePa','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Client\x20Configuration','exports','Connected','MCP\x20Configuration','What\x20is\x20API\x20Key?','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Saving...','Connection\x20Failed','Univer\x20AI\x20Console','Configuration\x20Parameters:','Enable\x20authentication\x20for\x20secure\x20connections','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','373655HvbVeX','MCP:\x20Session\x20ID\x20Occupied','442156DuJfDo','MCP\x20Disconnected','Save\x20Configuration','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP:\x20Unauthorized'];_0x5540=function(){return _0x116d3f;};return _0x5540();}module[_0x404b44(0xf9)]=e;
@@ -1 +1 @@
1
- 'use strict';const _0x553b73=_0x372b;function _0x53a6(){const _0x988914=['exports','Saving...','MCP\x20Unknown\x20Status','181593gKugXV','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','2476twdpVs','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','66pXYnPs','80367BxZCtz','MCP\x20Client\x20Configuration','API\x20Key','MCP:\x20Network\x20Error','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP:\x20Max\x20Retries\x20Exceeded','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Disconnected','Invalid\x20configuration','629hqiYmn','MCP\x20Connection\x20Failed','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','API\x20key\x20is\x20required','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Configuration','Univer\x20AI\x20Console','Enable\x20Authentication','Disconnected','Save\x20Configuration','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Connected','Configuration\x20Steps:','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','API\x20key\x20with\x20Bearer\x20prefix.','Click\x20to\x20connect\x20MCP','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Retrying...','MCP:\x20Unauthorized','Click\x20to\x20configure\x20MCP','Configuration\x20saved\x20successfully','Configuration\x20Parameters:','1036299HOZjBB','Connected','Copy\x20the\x20JSON\x20configuration\x20below','128zEswlV','5095yQqWyB','1642ALbJgw','3413616MNmOed','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','189570lhkYla','What\x20is\x20API\x20Key?'];_0x53a6=function(){return _0x988914;};return _0x53a6();}(function(_0x287b31,_0x15859d){const _0x3da5a2=_0x372b,_0x37b30d=_0x287b31();while(!![]){try{const _0x5572f8=parseInt(_0x3da5a2(0xb9))/0x1*(parseInt(_0x3da5a2(0xa3))/0x2)+-parseInt(_0x3da5a2(0xd1))/0x3+-parseInt(_0x3da5a2(0xad))/0x4*(parseInt(_0x3da5a2(0xa2))/0x5)+parseInt(_0x3da5a2(0xa4))/0x6+parseInt(_0x3da5a2(0xb0))/0x7+-parseInt(_0x3da5a2(0xd4))/0x8*(-parseInt(_0x3da5a2(0xab))/0x9)+parseInt(_0x3da5a2(0xa6))/0xa*(-parseInt(_0x3da5a2(0xaf))/0xb);if(_0x5572f8===_0x15859d)break;else _0x37b30d['push'](_0x37b30d['shift']());}catch(_0x18b53c){_0x37b30d['push'](_0x37b30d['shift']());}}}(_0x53a6,0x507fa));function _0x372b(_0x518ef3,_0x3d7a1f){const _0x53a604=_0x53a6();return _0x372b=function(_0x372ba5,_0x5539ff){_0x372ba5=_0x372ba5-0xa2;let _0x4b7472=_0x53a604[_0x372ba5];return _0x4b7472;},_0x372b(_0x518ef3,_0x3d7a1f);}const e={'mcpStatus':{'disconnected':_0x553b73(0xb7),'connecting':'MCP\x20Connecting...','connected':_0x553b73(0xc5),'failed':_0x553b73(0xba),'retrying':_0x553b73(0xcc),'unknown':_0x553b73(0xaa),'unauthorized':_0x553b73(0xcd),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x553b73(0xb3),'maxRetriesExceeded':_0x553b73(0xb5),'clickToConnect':_0x553b73(0xc9),'clickToConfigure':_0x553b73(0xce)},'mcpConfig':{'title':_0x553b73(0xbe),'description':_0x553b73(0xc7),'apiKey':_0x553b73(0xb2),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x553b73(0xbd),'enableAuth':_0x553b73(0xc0),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x553b73(0xb1),'mcpClientConfig':_0x553b73(0xb1),'configInstructions':_0x553b73(0xcb),'configStepTitle':_0x553b73(0xc6),'configStep1':_0x553b73(0xd3),'configStep2':_0x553b73(0xb4),'configStep3':_0x553b73(0xc3),'sessionId':'Session\x20ID','sessionIdDescription':_0x553b73(0xa5),'authorizationDescription':_0x553b73(0xc8),'configParameters':_0x553b73(0xd0),'maxRetries':'Max\x20Retries','save':_0x553b73(0xc2),'saving':_0x553b73(0xa9),'note1':_0x553b73(0xc4),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x553b73(0xcf),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x553b73(0xa7),'description':_0x553b73(0xbb),'univerAiLabel':_0x553b73(0xbf),'getStarted':_0x553b73(0xb6)},'validation':{'apiKeyRequired':_0x553b73(0xbc),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x553b73(0xb8),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x553b73(0xc1),'connecting':'Connecting...','connected':_0x553b73(0xd2),'failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'unauthorized':_0x553b73(0xac),'sessionOccupied':_0x553b73(0xca),'networkError':_0x553b73(0xae),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module[_0x553b73(0xa8)]=n;
1
+ 'use strict';function _0x3afb(){const _0x257135=['1528653JSXvzD','MCP\x20Configuration','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Max\x20Retries','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Configuration\x20Parameters:','Session\x20ID','MCP\x20Unknown\x20Status','MCP:\x20Unauthorized','Retrying...','Enter\x20your\x20API\x20key','14412xCoQnh','3290018TOffvF','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Connection\x20Failed','MCP\x20Connecting...','Configuration\x20Steps:','Connection\x20Failed','Saving...','MCP\x20Connected','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Disconnected','MCP:\x20Session\x20ID\x20Occupied','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Enable\x20Authentication','API\x20key\x20is\x20required','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Disconnected','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP:\x20Max\x20Retries\x20Exceeded','Save\x20Configuration','MCP\x20Client\x20Configuration','API\x20key\x20with\x20Bearer\x20prefix.','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','27kBtuiw','17440480JgLkvm','3XzELZv','4VrcCPf','API\x20Key','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Enable\x20authentication\x20for\x20secure\x20connections','15924ApRMEn','4245704GslpZd','212055PEPqnL','Configuration\x20saved\x20successfully','Get\x20your\x20API\x20key\x20in\x20seconds','2317AYhesj','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','13310sDQPKR','Connected'];_0x3afb=function(){return _0x257135;};return _0x3afb();}function _0x2bb5(_0x1cdaeb,_0x25c5ae){const _0x3afbf8=_0x3afb();return _0x2bb5=function(_0x2bb558,_0x5c05d0){_0x2bb558=_0x2bb558-0x156;let _0x1baa78=_0x3afbf8[_0x2bb558];return _0x1baa78;},_0x2bb5(_0x1cdaeb,_0x25c5ae);}const _0x10e580=_0x2bb5;(function(_0x26c265,_0x473483){const _0x119213=_0x2bb5,_0x9569f8=_0x26c265();while(!![]){try{const _0x564d7d=-parseInt(_0x119213(0x16c))/0x1+parseInt(_0x119213(0x179))/0x2*(parseInt(_0x119213(0x15d))/0x3)+parseInt(_0x119213(0x15e))/0x4*(parseInt(_0x119213(0x164))/0x5)+parseInt(_0x119213(0x162))/0x6*(-parseInt(_0x119213(0x167))/0x7)+-parseInt(_0x119213(0x163))/0x8*(parseInt(_0x119213(0x15b))/0x9)+parseInt(_0x119213(0x15c))/0xa+-parseInt(_0x119213(0x16a))/0xb*(-parseInt(_0x119213(0x178))/0xc);if(_0x564d7d===_0x473483)break;else _0x9569f8['push'](_0x9569f8['shift']());}catch(_0x33c2c4){_0x9569f8['push'](_0x9569f8['shift']());}}}(_0x3afb,0xd82a4));const e={'mcpStatus':{'disconnected':_0x10e580(0x183),'connecting':_0x10e580(0x17c),'connected':_0x10e580(0x180),'failed':_0x10e580(0x17b),'retrying':'MCP\x20Retrying...','unknown':_0x10e580(0x174),'unauthorized':_0x10e580(0x175),'sessionOccupied':_0x10e580(0x184),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x10e580(0x156),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x10e580(0x16d),'description':_0x10e580(0x171),'apiKey':_0x10e580(0x15f),'apiKeyPlaceholder':_0x10e580(0x177),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x10e580(0x186),'enableAuthHint':_0x10e580(0x161),'connectionInfo':_0x10e580(0x158),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x10e580(0x160),'configStepTitle':_0x10e580(0x17d),'configStep1':_0x10e580(0x182),'configStep2':_0x10e580(0x17a),'configStep3':_0x10e580(0x169),'sessionId':_0x10e580(0x173),'sessionIdDescription':_0x10e580(0x18a),'authorizationDescription':_0x10e580(0x159),'configParameters':_0x10e580(0x172),'maxRetries':_0x10e580(0x16f),'save':_0x10e580(0x157),'saving':_0x10e580(0x17f),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x10e580(0x185),'configSaved':_0x10e580(0x165),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x10e580(0x188),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x10e580(0x166)},'validation':{'apiKeyRequired':_0x10e580(0x187),'apiKeyTooShort':_0x10e580(0x170),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x10e580(0x16e)},'connectionStatus':{'disconnected':_0x10e580(0x189),'connecting':'Connecting...','connected':_0x10e580(0x16b),'failed':_0x10e580(0x17e),'retrying':_0x10e580(0x176)},'connectionError':{'unauthorized':_0x10e580(0x181),'sessionOccupied':_0x10e580(0x168),'networkError':_0x10e580(0x15a),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module['exports']=n;
@@ -1 +1 @@
1
- 'use strict';const _0x208fb6=_0x22a6;(function(_0x3fcffb,_0x49d8f7){const _0x111b1f=_0x22a6,_0x132a03=_0x3fcffb();while(!![]){try{const _0x5a98c4=parseInt(_0x111b1f(0x78))/0x1+-parseInt(_0x111b1f(0x8a))/0x2*(-parseInt(_0x111b1f(0x77))/0x3)+-parseInt(_0x111b1f(0x96))/0x4+-parseInt(_0x111b1f(0x68))/0x5+parseInt(_0x111b1f(0x97))/0x6*(-parseInt(_0x111b1f(0x85))/0x7)+parseInt(_0x111b1f(0x75))/0x8*(-parseInt(_0x111b1f(0x94))/0x9)+-parseInt(_0x111b1f(0x7b))/0xa*(-parseInt(_0x111b1f(0x7a))/0xb);if(_0x5a98c4===_0x49d8f7)break;else _0x132a03['push'](_0x132a03['shift']());}catch(_0x229576){_0x132a03['push'](_0x132a03['shift']());}}}(_0x5e1e,0x217d3));function _0x5e1e(){const _0x540e70=['MCP\x20Connecting...','15911AJgGnd','Copy\x20the\x20JSON\x20configuration\x20below','Enter\x20your\x20API\x20key','Configuration\x20saved\x20successfully','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','10eJbzkF','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Invalid\x20configuration','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP:\x20Session\x20ID\x20Occupied','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','API\x20key\x20is\x20required','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Configuration','MCP\x20Retrying...','171pTQAiD','API\x20Key','937008kDTaad','654kJgUEt','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Failed\x20to\x20save\x20configuration','Enable\x20Authentication','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Configuration\x20Parameters:','Session\x20ID','MCP:\x20Unauthorized','835920fCvxLC','exports','Retrying...','MCP:\x20Network\x20Error','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Connected','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Connection\x20Failed','Get\x20your\x20API\x20key\x20in\x20seconds','Disconnected','Save\x20Configuration','MCP\x20Unknown\x20Status','Connecting...','95776wnIdZK','What\x20is\x20API\x20Key?','86919umAhxj','16688aRaVdl','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','3125023xcvmfS','30JlGTjD','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Univer\x20AI\x20Console','Click\x20to\x20connect\x20MCP','Click\x20to\x20configure\x20MCP','Configuration\x20Steps:','MCP\x20Client\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.','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.'];_0x5e1e=function(){return _0x540e70;};return _0x5e1e();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x208fb6(0x84),'connected':_0x208fb6(0x6d),'failed':_0x208fb6(0x6f),'retrying':_0x208fb6(0x93),'unknown':_0x208fb6(0x73),'unauthorized':_0x208fb6(0x67),'sessionOccupied':_0x208fb6(0x8e),'networkError':_0x208fb6(0x6b),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x208fb6(0x7e),'clickToConfigure':_0x208fb6(0x7f)},'mcpConfig':{'title':_0x208fb6(0x92),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x208fb6(0x95),'apiKeyPlaceholder':_0x208fb6(0x87),'apiKeyHint':_0x208fb6(0x89),'enableAuth':_0x208fb6(0x9a),'enableAuthHint':_0x208fb6(0x6e),'connectionInfo':_0x208fb6(0x81),'mcpClientConfig':_0x208fb6(0x81),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x208fb6(0x80),'configStep1':_0x208fb6(0x86),'configStep2':_0x208fb6(0x7c),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x208fb6(0x66),'sessionIdDescription':_0x208fb6(0x83),'authorizationDescription':_0x208fb6(0x6c),'configParameters':_0x208fb6(0x65),'maxRetries':'Max\x20Retries','save':_0x208fb6(0x72),'saving':'Saving...','note1':_0x208fb6(0x98),'note2':_0x208fb6(0x8b),'configSaved':_0x208fb6(0x88),'configError':_0x208fb6(0x99),'apiApplyInfo':{'title':_0x208fb6(0x76),'description':_0x208fb6(0x82),'univerAiLabel':_0x208fb6(0x7d),'getStarted':_0x208fb6(0x70)},'validation':{'apiKeyRequired':_0x208fb6(0x90),'apiKeyTooShort':_0x208fb6(0x79),'invalidConfig':_0x208fb6(0x8c),'invalidApiKey':_0x208fb6(0x91)},'connectionStatus':{'disconnected':_0x208fb6(0x71),'connecting':_0x208fb6(0x74),'connected':'Connected','failed':'Connection\x20Failed','retrying':_0x208fb6(0x6a)},'connectionError':{'unauthorized':_0x208fb6(0x8d),'sessionOccupied':_0x208fb6(0x8f),'networkError':_0x208fb6(0x9b),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;function _0x22a6(_0x197905,_0x116640){const _0x5e1eef=_0x5e1e();return _0x22a6=function(_0x22a679,_0x9614f7){_0x22a679=_0x22a679-0x65;let _0x2273ce=_0x5e1eef[_0x22a679];return _0x2273ce;},_0x22a6(_0x197905,_0x116640);}module[_0x208fb6(0x69)]=n;
1
+ 'use strict';const _0x4d5b09=_0x5d18;function _0x3416(){const _0x5388f1=['MCP:\x20Network\x20Error','Connecting...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Invalid\x20configuration','Disconnected','2040380afBQBa','Enable\x20Authentication','7GCrZZG','MCP\x20Connected','API\x20key\x20is\x20required','Enable\x20authentication\x20for\x20secure\x20connections','883063lMBsBx','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\x20is\x20stored\x20securely\x20in\x20local\x20storage','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','771DHhCJI','Saving...','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','4099810LVwmBg','Retrying...','Connected','1876158izWkyV','API\x20Key','Configuration\x20Parameters:','Click\x20to\x20configure\x20MCP','Copy\x20the\x20JSON\x20configuration\x20below','Connection\x20Failed','Configuration\x20saved\x20successfully','Enter\x20your\x20API\x20key','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Click\x20to\x20connect\x20MCP','282UUSgGS','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Unknown\x20Status','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Retrying...','Save\x20Configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','exports','MCP:\x20Session\x20ID\x20Occupied','Session\x20ID','20961108JQOIQf','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Max\x20Retries','Univer\x20AI\x20Console','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Failed\x20to\x20save\x20configuration','MCP:\x20Max\x20Retries\x20Exceeded','What\x20is\x20API\x20Key?','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Client\x20Configuration','Configuration\x20Steps:','2073032RpNvDt'];_0x3416=function(){return _0x5388f1;};return _0x3416();}(function(_0xaad456,_0x3149bf){const _0x89cd46=_0x5d18,_0x4ad3fb=_0xaad456();while(!![]){try{const _0x29838a=-parseInt(_0x89cd46(0x102))/0x1+parseInt(_0x89cd46(0xe1))/0x2*(-parseInt(_0x89cd46(0x106))/0x3)+parseInt(_0x89cd46(0xfc))/0x4+-parseInt(_0x89cd46(0x109))/0x5+-parseInt(_0x89cd46(0xd7))/0x6*(parseInt(_0x89cd46(0xfe))/0x7)+-parseInt(_0x89cd46(0xf6))/0x8+parseInt(_0x89cd46(0xeb))/0x9;if(_0x29838a===_0x3149bf)break;else _0x4ad3fb['push'](_0x4ad3fb['shift']());}catch(_0x5ce227){_0x4ad3fb['push'](_0x4ad3fb['shift']());}}}(_0x3416,0x80e97));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x4d5b09(0xff),'failed':'MCP\x20Connection\x20Failed','retrying':_0x4d5b09(0xe5),'unknown':_0x4d5b09(0xe3),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x4d5b09(0xe9),'networkError':_0x4d5b09(0xf7),'maxRetriesExceeded':_0x4d5b09(0xf1),'clickToConnect':_0x4d5b09(0xe0),'clickToConfigure':_0x4d5b09(0xda)},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x4d5b09(0xd8),'apiKeyPlaceholder':_0x4d5b09(0xde),'apiKeyHint':_0x4d5b09(0xef),'enableAuth':_0x4d5b09(0xfd),'enableAuthHint':_0x4d5b09(0x101),'connectionInfo':_0x4d5b09(0xf4),'mcpClientConfig':_0x4d5b09(0xf4),'configInstructions':_0x4d5b09(0xec),'configStepTitle':_0x4d5b09(0xf5),'configStep1':_0x4d5b09(0xdb),'configStep2':_0x4d5b09(0x108),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x4d5b09(0xea),'sessionIdDescription':_0x4d5b09(0xdf),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x4d5b09(0xd9),'maxRetries':_0x4d5b09(0xed),'save':_0x4d5b09(0xe6),'saving':_0x4d5b09(0x107),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x4d5b09(0x104),'configSaved':_0x4d5b09(0xdd),'configError':_0x4d5b09(0xf0),'apiApplyInfo':{'title':_0x4d5b09(0xf2),'description':_0x4d5b09(0x103),'univerAiLabel':_0x4d5b09(0xee),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x4d5b09(0x100),'apiKeyTooShort':_0x4d5b09(0xe7),'invalidConfig':_0x4d5b09(0xfa),'invalidApiKey':_0x4d5b09(0xe4)},'connectionStatus':{'disconnected':_0x4d5b09(0xfb),'connecting':_0x4d5b09(0xf8),'connected':_0x4d5b09(0x10b),'failed':_0x4d5b09(0xdc),'retrying':_0x4d5b09(0x10a)},'connectionError':{'unauthorized':_0x4d5b09(0xf9),'sessionOccupied':_0x4d5b09(0xe2),'networkError':_0x4d5b09(0xf3),'maxRetriesExceeded':_0x4d5b09(0x105)}}},n=e;function _0x5d18(_0x55df82,_0x556a11){const _0x34167e=_0x3416();return _0x5d18=function(_0x5d180e,_0x19e7d3){_0x5d180e=_0x5d180e-0xd7;let _0x4e35ee=_0x34167e[_0x5d180e];return _0x4e35ee;},_0x5d18(_0x55df82,_0x556a11);}module[_0x4d5b09(0xe8)]=n;
@@ -1 +1 @@
1
- 'use strict';const _0x9cc372=_0x58ee;(function(_0x2f2357,_0x4ce798){const _0x532f29=_0x58ee,_0x38a9f0=_0x2f2357();while(!![]){try{const _0x254939=parseInt(_0x532f29(0xad))/0x1*(parseInt(_0x532f29(0xbe))/0x2)+-parseInt(_0x532f29(0x9f))/0x3*(parseInt(_0x532f29(0xaa))/0x4)+-parseInt(_0x532f29(0xaf))/0x5+-parseInt(_0x532f29(0xac))/0x6*(parseInt(_0x532f29(0xb8))/0x7)+parseInt(_0x532f29(0xb2))/0x8*(parseInt(_0x532f29(0xa2))/0x9)+-parseInt(_0x532f29(0xb1))/0xa+parseInt(_0x532f29(0xba))/0xb;if(_0x254939===_0x4ce798)break;else _0x38a9f0['push'](_0x38a9f0['shift']());}catch(_0x5eb1de){_0x38a9f0['push'](_0x38a9f0['shift']());}}}(_0x5a30,0x96b22));const e={'mcpStatus':{'disconnected':_0x9cc372(0xc2),'connecting':_0x9cc372(0xc7),'connected':_0x9cc372(0xbd),'failed':_0x9cc372(0x9d),'retrying':_0x9cc372(0xbf),'unknown':_0x9cc372(0xa3),'unauthorized':_0x9cc372(0xc9),'sessionOccupied':_0x9cc372(0x9a),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x9cc372(0x9e),'clickToConfigure':_0x9cc372(0xc0)},'mcpConfig':{'title':_0x9cc372(0xbb),'description':_0x9cc372(0xa1),'apiKey':'API\x20Key','apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x9cc372(0xb0),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x9cc372(0xb3),'connectionInfo':_0x9cc372(0xc5),'mcpClientConfig':_0x9cc372(0xc5),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x9cc372(0xa4),'configStep1':_0x9cc372(0xab),'configStep2':_0x9cc372(0xc8),'configStep3':_0x9cc372(0xa0),'sessionId':_0x9cc372(0xca),'sessionIdDescription':_0x9cc372(0x99),'authorizationDescription':_0x9cc372(0xb4),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x9cc372(0xb6),'save':'Save\x20Configuration','saving':_0x9cc372(0x9b),'note1':_0x9cc372(0xc3),'note2':_0x9cc372(0xb9),'configSaved':_0x9cc372(0xc6),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x9cc372(0xb7),'description':_0x9cc372(0x9c),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x9cc372(0xa9)},'validation':{'apiKeyRequired':_0x9cc372(0xc4),'apiKeyTooShort':_0x9cc372(0xb5),'invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':_0x9cc372(0xa8),'failed':_0x9cc372(0xae),'retrying':_0x9cc372(0xc1)},'connectionError':{'unauthorized':_0x9cc372(0xa5),'sessionOccupied':_0x9cc372(0xa6),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x9cc372(0xa7)}}},n=e;function _0x5a30(){const _0x3a7d22=['8fhCmmp','Enable\x20authentication\x20for\x20secure\x20connections','API\x20key\x20with\x20Bearer\x20prefix.','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Max\x20Retries','What\x20is\x20API\x20Key?','7onMDkc','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','11880737kYAJcv','MCP\x20Configuration','exports','MCP\x20Connected','1694036FHQzGs','MCP\x20Retrying...','Click\x20to\x20configure\x20MCP','Retrying...','MCP\x20Disconnected','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','API\x20key\x20is\x20required','MCP\x20Client\x20Configuration','Configuration\x20saved\x20successfully','MCP\x20Connecting...','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP:\x20Unauthorized','Session\x20ID','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP:\x20Session\x20ID\x20Occupied','Saving...','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\x20Connection\x20Failed','Click\x20to\x20connect\x20MCP','384417rAEiaw','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','7532937uWNDNA','MCP\x20Unknown\x20Status','Configuration\x20Steps:','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Connected','Get\x20your\x20API\x20key\x20in\x20seconds','28VgWNcW','Copy\x20the\x20JSON\x20configuration\x20below','776868ZTGksF','1dkADXC','Connection\x20Failed','420770nfcNfC','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','10362230TZwNnH'];_0x5a30=function(){return _0x3a7d22;};return _0x5a30();}function _0x58ee(_0x5a8b18,_0x109369){const _0x5a3095=_0x5a30();return _0x58ee=function(_0x58eea2,_0x5d4ebe){_0x58eea2=_0x58eea2-0x99;let _0x4330d6=_0x5a3095[_0x58eea2];return _0x4330d6;},_0x58ee(_0x5a8b18,_0x109369);}module[_0x9cc372(0xbc)]=n;
1
+ 'use strict';const _0x1086a8=_0x3dd3;function _0x1d55(){const _0x691abb=['Get\x20your\x20API\x20key\x20in\x20seconds','898504uXMMbm','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP:\x20Network\x20Error','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Connection\x20Failed','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Connection\x20Failed','MCP\x20Disconnected','Click\x20to\x20connect\x20MCP','Session\x20ID','Invalid\x20configuration','Univer\x20AI\x20Console','16713ywTYMO','Connected','Enter\x20your\x20API\x20key','Configuration\x20Parameters:','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','1034052tpJtis','Retrying...','What\x20is\x20API\x20Key?','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','2887riyFxF','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','484FzDYQv','1610UWirAS','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','92OyLOEA','API\x20key\x20with\x20Bearer\x20prefix.','Enable\x20Authentication','Disconnected','2438235gPXgHc','42sROncU','Save\x20Configuration','Click\x20to\x20configure\x20MCP','MCP:\x20Max\x20Retries\x20Exceeded','exports','77jLfWGJ','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','4790NCyylj','API\x20Key','Max\x20Retries','6456078MQjooc','MCP\x20Retrying...','Configuration\x20Steps:','MCP:\x20Unauthorized','API\x20key\x20is\x20required','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key'];_0x1d55=function(){return _0x691abb;};return _0x1d55();}function _0x3dd3(_0x3f39f6,_0xaa48f1){const _0x1d5534=_0x1d55();return _0x3dd3=function(_0x3dd340,_0x109198){_0x3dd340=_0x3dd340-0x1f2;let _0x40eb89=_0x1d5534[_0x3dd340];return _0x40eb89;},_0x3dd3(_0x3f39f6,_0xaa48f1);}(function(_0xaacac1,_0x2aad25){const _0x480505=_0x3dd3,_0xf12bd0=_0xaacac1();while(!![]){try{const _0x81de6f=-parseInt(_0x480505(0x1f3))/0x1*(parseInt(_0x480505(0x1f5))/0x2)+parseInt(_0x480505(0x1fc))/0x3+parseInt(_0x480505(0x1f8))/0x4*(-parseInt(_0x480505(0x204))/0x5)+-parseInt(_0x480505(0x207))/0x6+parseInt(_0x480505(0x1fd))/0x7*(parseInt(_0x480505(0x20e))/0x8)+parseInt(_0x480505(0x21a))/0x9*(parseInt(_0x480505(0x1f6))/0xa)+parseInt(_0x480505(0x202))/0xb*(parseInt(_0x480505(0x21f))/0xc);if(_0x81de6f===_0x2aad25)break;else _0xf12bd0['push'](_0xf12bd0['shift']());}catch(_0x3639cb){_0xf12bd0['push'](_0xf12bd0['shift']());}}}(_0x1d55,0x908e0));const e={'mcpStatus':{'disconnected':_0x1086a8(0x215),'connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':_0x1086a8(0x214),'retrying':_0x1086a8(0x208),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x1086a8(0x20a),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x1086a8(0x210),'maxRetriesExceeded':_0x1086a8(0x200),'clickToConnect':_0x1086a8(0x216),'clickToConfigure':_0x1086a8(0x1ff)},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x1086a8(0x205),'apiKeyPlaceholder':_0x1086a8(0x21c),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x1086a8(0x1fa),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x1086a8(0x1f2),'configStepTitle':_0x1086a8(0x209),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x1086a8(0x21e),'sessionId':_0x1086a8(0x217),'sessionIdDescription':_0x1086a8(0x1f7),'authorizationDescription':_0x1086a8(0x1f9),'configParameters':_0x1086a8(0x21d),'maxRetries':_0x1086a8(0x206),'save':_0x1086a8(0x1fe),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x1086a8(0x203),'configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x1086a8(0x221),'description':_0x1086a8(0x211),'univerAiLabel':_0x1086a8(0x219),'getStarted':_0x1086a8(0x20d)},'validation':{'apiKeyRequired':_0x1086a8(0x20b),'apiKeyTooShort':_0x1086a8(0x1f4),'invalidConfig':_0x1086a8(0x218),'invalidApiKey':_0x1086a8(0x20f)},'connectionStatus':{'disconnected':_0x1086a8(0x1fb),'connecting':'Connecting...','connected':_0x1086a8(0x21b),'failed':_0x1086a8(0x212),'retrying':_0x1086a8(0x220)},'connectionError':{'unauthorized':_0x1086a8(0x20c),'sessionOccupied':_0x1086a8(0x213),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module[_0x1086a8(0x201)]=n;
@@ -0,0 +1 @@
1
+ 'use strict';const _0x558251=_0x3185;function _0x3185(_0x39ef55,_0x405740){const _0x29e3c8=_0x29e3();return _0x3185=function(_0x318511,_0x358da1){_0x318511=_0x318511-0xa9;let _0x269b0a=_0x29e3c8[_0x318511];return _0x269b0a;},_0x3185(_0x39ef55,_0x405740);}(function(_0x277e69,_0x57cb84){const _0x3c4318=_0x3185,_0x138db3=_0x277e69();while(!![]){try{const _0x25e4c0=parseInt(_0x3c4318(0xbb))/0x1*(parseInt(_0x3c4318(0xa9))/0x2)+-parseInt(_0x3c4318(0xc2))/0x3+parseInt(_0x3c4318(0xd2))/0x4+-parseInt(_0x3c4318(0xce))/0x5+parseInt(_0x3c4318(0xc3))/0x6*(parseInt(_0x3c4318(0xcb))/0x7)+-parseInt(_0x3c4318(0xb1))/0x8*(-parseInt(_0x3c4318(0xb3))/0x9)+parseInt(_0x3c4318(0xd5))/0xa;if(_0x25e4c0===_0x57cb84)break;else _0x138db3['push'](_0x138db3['shift']());}catch(_0x57a29b){_0x138db3['push'](_0x138db3['shift']());}}}(_0x29e3,0x8ef71));function _0x29e3(){const _0xae211f=['MCP:\x20最大再試行回数を超過','5896330ymKvgb','314SMlLnG','クリックしてMCPに接続','MCP\x20未接続','APIキーとは?','セッションID','APIキーを入力してください','以下のJSON設定をコピー','設定が正常に保存されました','12664UkzPAr','無効なAPIキーです。キーが正しいか確認してください','351BdJjEx','MCPを設定してAIでスプレッドシートを操作','exports','セキュアな接続のために認証を有効にする','セッションIDが現在使用中です。後でもう一度お試しください','認証を有効にする','最大再試行回数','MCPクライアントを再起動して設定を適用','1369dcvvMI','認証に失敗しました。APIキーを確認してください','MCP:\x20認証されていません','保存中...','設定パラメータ:','MCP:\x20ネットワークエラー','最大再試行回数を超過しました。後でもう一度お試しください','1122204ugesKK','102lYgoSd','MCPクライアント設定','MCP\x20再試行中...','APIキーは必須です','接続失敗','設定手順:','未接続','Univer\x20AIコンソール','202034jsyXfV','設定の変更は直ちに有効になります','クリックしてMCPを設定','3699915Icdsii','MCP:\x20セッションIDが使用中','APIキーはローカルストレージに安全に保存されます','MCPクライアントの設定に次の設定を追加してください:','1370716bqKtjm','MCP\x20接続済み'];_0x29e3=function(){return _0xae211f;};return _0x29e3();}const e={'mcpStatus':{'disconnected':_0x558251(0xab),'connecting':'MCP\x20接続中...','connected':_0x558251(0xd3),'failed':'MCP\x20接続失敗','retrying':_0x558251(0xc5),'unknown':'MCP\x20不明な状態','unauthorized':_0x558251(0xbd),'sessionOccupied':_0x558251(0xcf),'networkError':_0x558251(0xc0),'maxRetriesExceeded':_0x558251(0xd4),'clickToConnect':_0x558251(0xaa),'clickToConfigure':_0x558251(0xcd)},'mcpConfig':{'title':'MCP設定','description':_0x558251(0xb4),'apiKey':'APIキー','apiKeyPlaceholder':_0x558251(0xae),'apiKeyHint':'APIキーはこのブラウザのローカルに保存されます','enableAuth':_0x558251(0xb8),'enableAuthHint':_0x558251(0xb6),'connectionInfo':_0x558251(0xc4),'mcpClientConfig':'MCPクライアント設定','configInstructions':_0x558251(0xd1),'configStepTitle':_0x558251(0xc8),'configStep1':_0x558251(0xaf),'configStep2':'MCPクライアントの設定ファイルに設定を追加','configStep3':_0x558251(0xba),'sessionId':_0x558251(0xad),'sessionIdDescription':'一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','authorizationDescription':'Bearerプレフィックス付きのAPIキー。','configParameters':_0x558251(0xbf),'maxRetries':_0x558251(0xb9),'save':'設定を保存','saving':_0x558251(0xbe),'note1':_0x558251(0xcc),'note2':_0x558251(0xd0),'configSaved':_0x558251(0xb0),'configError':'設定の保存に失敗しました','apiApplyInfo':{'title':_0x558251(0xac),'description':'APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','univerAiLabel':_0x558251(0xca),'getStarted':'数秒でAPIキーを取得'},'validation':{'apiKeyRequired':_0x558251(0xc6),'apiKeyTooShort':'APIキーは10文字以上である必要があります','invalidConfig':'無効な設定','invalidApiKey':_0x558251(0xb2)},'connectionStatus':{'disconnected':_0x558251(0xc9),'connecting':'接続中...','connected':'接続済み','failed':_0x558251(0xc7),'retrying':'再試行中...'},'connectionError':{'unauthorized':_0x558251(0xbc),'sessionOccupied':_0x558251(0xb7),'networkError':'ネットワーク接続エラー。インターネット接続を確認してください','maxRetriesExceeded':_0x558251(0xc1)}}};module[_0x558251(0xb5)]=e;